1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for cdi 2.0.1. 4# 5# Report bugs to <https://mpimet.mpg.de/cdi>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, 9# Inc. 10# 11# 12# This configure script is free software; the Free Software Foundation 13# gives unlimited permission to copy, distribute and modify it. 14## -------------------- ## 15## M4sh Initialization. ## 16## -------------------- ## 17 18# Be more Bourne compatible 19DUALCASE=1; export DUALCASE # for MKS sh 20as_nop=: 21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 22then : 23 emulate sh 24 NULLCMD=: 25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 26 # is contrary to our usage. Disable this feature. 27 alias -g '${1+"$@"}'='"$@"' 28 setopt NO_GLOB_SUBST 29else $as_nop 30 case `(set -o) 2>/dev/null` in #( 31 *posix*) : 32 set -o posix ;; #( 33 *) : 34 ;; 35esac 36fi 37 38 39 40# Reset variables that may have inherited troublesome values from 41# the environment. 42 43# IFS needs to be set, to space, tab, and newline, in precisely that order. 44# (If _AS_PATH_WALK were called with IFS unset, it would have the 45# side effect of setting IFS to empty, thus disabling word splitting.) 46# Quoting is to prevent editors from complaining about space-tab. 47as_nl=' 48' 49export as_nl 50IFS=" "" $as_nl" 51 52PS1='$ ' 53PS2='> ' 54PS4='+ ' 55 56# Ensure predictable behavior from utilities with locale-dependent output. 57LC_ALL=C 58export LC_ALL 59LANGUAGE=C 60export LANGUAGE 61 62# We cannot yet rely on "unset" to work, but we need these variables 63# to be unset--not just set to an empty or harmless value--now, to 64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65# also avoids known problems related to "unset" and subshell syntax 66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70done 71 72# Ensure that fds 0, 1, and 2 are open. 73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77# The user is always right. 78if ${PATH_SEPARATOR+false} :; then 79 PATH_SEPARATOR=: 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 PATH_SEPARATOR=';' 83 } 84fi 85 86 87# Find who we are. Look in the path if we contain no directory separator. 88as_myself= 89case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92for as_dir in $PATH 93do 94 IFS=$as_save_IFS 95 case $as_dir in #((( 96 '') as_dir=./ ;; 97 */) ;; 98 *) as_dir=$as_dir/ ;; 99 esac 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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116 117# Use a proper internal environment variable to ensure we don't fall 118 # into an infinite loop, continuously re-executing ourselves. 119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 120 _as_can_reexec=no; export _as_can_reexec; 121 # We cannot yet assume a decent shell, so we have to provide a 122# neutralization value for shells without unset; and this also 123# works around shells that cannot unset nonexistent variables. 124# Preserve -v and -x to the replacement shell. 125BASH_ENV=/dev/null 126ENV=/dev/null 127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133esac 134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 135# Admittedly, this is quite paranoid, since all the known shells bail 136# out after a failed `exec'. 137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="as_nop=: 144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 145then : 146 emulate sh 147 NULLCMD=: 148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 149 # is contrary to our usage. Disable this feature. 150 alias -g '\${1+\"\$@\"}'='\"\$@\"' 151 setopt NO_GLOB_SUBST 152else \$as_nop 153 case \`(set -o) 2>/dev/null\` in #( 154 *posix*) : 155 set -o posix ;; #( 156 *) : 157 ;; 158esac 159fi 160" 161 as_required="as_fn_return () { (exit \$1); } 162as_fn_success () { as_fn_return 0; } 163as_fn_failure () { as_fn_return 1; } 164as_fn_ret_success () { return 0; } 165as_fn_ret_failure () { return 1; } 166 167exitcode=0 168as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173then : 174 175else \$as_nop 176 exitcode=1; echo positional parameters were not saved. 177fi 178test x\$exitcode = x0 || exit 1 179blah=\$(echo \$(echo blah)) 180test x\"\$blah\" = xblah || exit 1 181test -x / || exit 1" 182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 186 187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 191 PATH=/empty FPATH=/empty; export PATH FPATH 192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 194test \$(( 1 + 1 )) = 2 || exit 1" 195 if (eval "$as_required") 2>/dev/null 196then : 197 as_have_required=yes 198else $as_nop 199 as_have_required=no 200fi 201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 202then : 203 204else $as_nop 205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 206as_found=false 207for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 208do 209 IFS=$as_save_IFS 210 case $as_dir in #((( 211 '') as_dir=./ ;; 212 */) ;; 213 *) as_dir=$as_dir/ ;; 214 esac 215 as_found=: 216 case $as_dir in #( 217 /*) 218 for as_base in sh bash ksh sh5; do 219 # Try only shells that exist, to save several forks. 220 as_shell=$as_dir$as_base 221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 223then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 226then : 227 break 2 228fi 229fi 230 done;; 231 esac 232 as_found=false 233done 234IFS=$as_save_IFS 235if $as_found 236then : 237 238else $as_nop 239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 241then : 242 CONFIG_SHELL=$SHELL as_have_required=yes 243fi 244fi 245 246 247 if test "x$CONFIG_SHELL" != x 248then : 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'. 266printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno 271then : 272 printf "%s\n" "$0: This script requires a shell more modern than all" 273 printf "%s\n" "$0: the shells that I found on your system." 274 if test ${ZSH_VERSION+y} ; then 275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 277 else 278 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 279$0: https://mpimet.mpg.de/cdi about your system, including 280$0: any error possibly output before this message. Then 281$0: install a modern shell, or manually run the script 282$0: under such a shell if you do have one." 283 fi 284 exit 1 285fi 286fi 287fi 288SHELL=${CONFIG_SHELL-/bin/sh} 289export SHELL 290# Unset more variables known to interfere with behavior of common tools. 291CLICOLOR_FORCE= GREP_OPTIONS= 292unset CLICOLOR_FORCE GREP_OPTIONS 293 294## --------------------- ## 295## M4sh Shell Functions. ## 296## --------------------- ## 297# as_fn_unset VAR 298# --------------- 299# Portably unset VAR. 300as_fn_unset () 301{ 302 { eval $1=; unset $1;} 303} 304as_unset=as_fn_unset 305 306 307# as_fn_set_status STATUS 308# ----------------------- 309# Set $? to STATUS, without forking. 310as_fn_set_status () 311{ 312 return $1 313} # as_fn_set_status 314 315# as_fn_exit STATUS 316# ----------------- 317# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 318as_fn_exit () 319{ 320 set +e 321 as_fn_set_status $1 322 exit $1 323} # as_fn_exit 324# as_fn_nop 325# --------- 326# Do nothing but, unlike ":", preserve the value of $?. 327as_fn_nop () 328{ 329 return $? 330} 331as_nop=as_fn_nop 332 333# as_fn_mkdir_p 334# ------------- 335# Create "$as_dir" as a directory, including parents if necessary. 336as_fn_mkdir_p () 337{ 338 339 case $as_dir in #( 340 -*) as_dir=./$as_dir;; 341 esac 342 test -d "$as_dir" || eval $as_mkdir_p || { 343 as_dirs= 344 while :; do 345 case $as_dir in #( 346 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 347 *) as_qdir=$as_dir;; 348 esac 349 as_dirs="'$as_qdir' $as_dirs" 350 as_dir=`$as_dirname -- "$as_dir" || 351$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 352 X"$as_dir" : 'X\(//\)[^/]' \| \ 353 X"$as_dir" : 'X\(//\)$' \| \ 354 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 355printf "%s\n" X"$as_dir" | 356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 357 s//\1/ 358 q 359 } 360 /^X\(\/\/\)[^/].*/{ 361 s//\1/ 362 q 363 } 364 /^X\(\/\/\)$/{ 365 s//\1/ 366 q 367 } 368 /^X\(\/\).*/{ 369 s//\1/ 370 q 371 } 372 s/.*/./; q'` 373 test -d "$as_dir" && break 374 done 375 test -z "$as_dirs" || eval "mkdir $as_dirs" 376 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 377 378 379} # as_fn_mkdir_p 380 381# as_fn_executable_p FILE 382# ----------------------- 383# Test if FILE is an executable regular file. 384as_fn_executable_p () 385{ 386 test -f "$1" && test -x "$1" 387} # as_fn_executable_p 388# as_fn_append VAR VALUE 389# ---------------------- 390# Append the text in VALUE to the end of the definition contained in VAR. Take 391# advantage of any shell optimizations that allow amortized linear growth over 392# repeated appends, instead of the typical quadratic growth present in naive 393# implementations. 394if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 395then : 396 eval 'as_fn_append () 397 { 398 eval $1+=\$2 399 }' 400else $as_nop 401 as_fn_append () 402 { 403 eval $1=\$$1\$2 404 } 405fi # as_fn_append 406 407# as_fn_arith ARG... 408# ------------------ 409# Perform arithmetic evaluation on the ARGs, and store the result in the 410# global $as_val. Take advantage of shells that can avoid forks. The arguments 411# must be portable across $(()) and expr. 412if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 413then : 414 eval 'as_fn_arith () 415 { 416 as_val=$(( $* )) 417 }' 418else $as_nop 419 as_fn_arith () 420 { 421 as_val=`expr "$@" || test $? -eq 1` 422 } 423fi # as_fn_arith 424 425# as_fn_nop 426# --------- 427# Do nothing but, unlike ":", preserve the value of $?. 428as_fn_nop () 429{ 430 return $? 431} 432as_nop=as_fn_nop 433# as_fn_nop 434# --------- 435# Do nothing but, unlike ":", preserve the value of $?. 436as_fn_nop () 437{ 438 return $? 439} 440as_nop=as_fn_nop 441 442# as_fn_error STATUS ERROR [LINENO LOG_FD] 443# ---------------------------------------- 444# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 445# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 446# script with STATUS, using 1 if that was 0. 447as_fn_error () 448{ 449 as_status=$1; test $as_status -eq 0 && as_status=1 450 if test "$4"; then 451 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 452 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 453 fi 454 printf "%s\n" "$as_me: error: $2" >&2 455 as_fn_exit $as_status 456} # as_fn_error 457 458if expr a : '\(a\)' >/dev/null 2>&1 && 459 test "X`expr 00001 : '.*\(...\)'`" = X001; then 460 as_expr=expr 461else 462 as_expr=false 463fi 464 465if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 466 as_basename=basename 467else 468 as_basename=false 469fi 470 471if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 472 as_dirname=dirname 473else 474 as_dirname=false 475fi 476 477as_me=`$as_basename -- "$0" || 478$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 479 X"$0" : 'X\(//\)$' \| \ 480 X"$0" : 'X\(/\)' \| . 2>/dev/null || 481printf "%s\n" X/"$0" | 482 sed '/^.*\/\([^/][^/]*\)\/*$/{ 483 s//\1/ 484 q 485 } 486 /^X\/\(\/\/\)$/{ 487 s//\1/ 488 q 489 } 490 /^X\/\(\/\).*/{ 491 s//\1/ 492 q 493 } 494 s/.*/./; q'` 495 496# Avoid depending upon Character Ranges. 497as_cr_letters='abcdefghijklmnopqrstuvwxyz' 498as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 499as_cr_Letters=$as_cr_letters$as_cr_LETTERS 500as_cr_digits='0123456789' 501as_cr_alnum=$as_cr_Letters$as_cr_digits 502 503 504 as_lineno_1=$LINENO as_lineno_1a=$LINENO 505 as_lineno_2=$LINENO as_lineno_2a=$LINENO 506 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 507 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 508 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 509 sed -n ' 510 p 511 /[$]LINENO/= 512 ' <$as_myself | 513 sed ' 514 s/[$]LINENO.*/&-/ 515 t lineno 516 b 517 :lineno 518 N 519 :loop 520 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 521 t loop 522 s/-\n.*// 523 ' >$as_me.lineno && 524 chmod +x "$as_me.lineno" || 525 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 526 527 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 528 # already done that, so ensure we don't try to do so again and fall 529 # in an infinite loop. This has already happened in practice. 530 _as_can_reexec=no; export _as_can_reexec 531 # Don't try to exec as it changes $[0], causing all sort of problems 532 # (the dirname of $[0] is not the place where we might find the 533 # original and so on. Autoconf is especially sensitive to this). 534 . "./$as_me.lineno" 535 # Exit status is that of the last command. 536 exit 537} 538 539 540# Determine whether it's possible to make 'echo' print without a newline. 541# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 542# for compatibility with existing Makefiles. 543ECHO_C= ECHO_N= ECHO_T= 544case `echo -n x` in #((((( 545-n*) 546 case `echo 'xy\c'` in 547 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 548 xy) ECHO_C='\c';; 549 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 550 ECHO_T=' ';; 551 esac;; 552*) 553 ECHO_N='-n';; 554esac 555 556# For backward compatibility with old third-party macros, we provide 557# the shell variables $as_echo and $as_echo_n. New code should use 558# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 559as_echo='printf %s\n' 560as_echo_n='printf %s' 561 562 563rm -f conf$$ conf$$.exe conf$$.file 564if test -d conf$$.dir; then 565 rm -f conf$$.dir/conf$$.file 566else 567 rm -f conf$$.dir 568 mkdir conf$$.dir 2>/dev/null 569fi 570if (echo >conf$$.file) 2>/dev/null; then 571 if ln -s conf$$.file conf$$ 2>/dev/null; then 572 as_ln_s='ln -s' 573 # ... but there are two gotchas: 574 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 575 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 576 # In both cases, we have to default to `cp -pR'. 577 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 578 as_ln_s='cp -pR' 579 elif ln conf$$.file conf$$ 2>/dev/null; then 580 as_ln_s=ln 581 else 582 as_ln_s='cp -pR' 583 fi 584else 585 as_ln_s='cp -pR' 586fi 587rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 588rmdir conf$$.dir 2>/dev/null 589 590if mkdir -p . 2>/dev/null; then 591 as_mkdir_p='mkdir -p "$as_dir"' 592else 593 test -d ./-p && rmdir ./-p 594 as_mkdir_p=false 595fi 596 597as_test_x='test -x' 598as_executable_p=as_fn_executable_p 599 600# Sed expression to map a string onto a valid CPP name. 601as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 602 603# Sed expression to map a string onto a valid variable name. 604as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 605 606SHELL=${CONFIG_SHELL-/bin/sh} 607 608 609test -n "$DJDIR" || exec 7<&0 </dev/null 610exec 6>&1 611 612# Name of the host. 613# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 614# so uname gets run too. 615ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 616 617# 618# Initializations. 619# 620ac_default_prefix=/usr/local 621ac_clean_files= 622ac_config_libobj_dir=. 623LIBOBJS= 624cross_compiling=no 625subdirs= 626MFLAGS= 627MAKEFLAGS= 628 629# Identity of this package. 630PACKAGE_NAME='cdi' 631PACKAGE_TARNAME='cdi' 632PACKAGE_VERSION='2.0.1' 633PACKAGE_STRING='cdi 2.0.1' 634PACKAGE_BUGREPORT='https://mpimet.mpg.de/cdi' 635PACKAGE_URL='' 636 637# Factoring default headers for most tests. 638ac_includes_default="\ 639#include <stddef.h> 640#ifdef HAVE_STDIO_H 641# include <stdio.h> 642#endif 643#ifdef HAVE_STDLIB_H 644# include <stdlib.h> 645#endif 646#ifdef HAVE_STRING_H 647# include <string.h> 648#endif 649#ifdef HAVE_INTTYPES_H 650# include <inttypes.h> 651#endif 652#ifdef HAVE_STDINT_H 653# include <stdint.h> 654#endif 655#ifdef HAVE_STRINGS_H 656# include <strings.h> 657#endif 658#ifdef HAVE_SYS_TYPES_H 659# include <sys/types.h> 660#endif 661#ifdef HAVE_SYS_STAT_H 662# include <sys/stat.h> 663#endif 664#ifdef HAVE_UNISTD_H 665# include <unistd.h> 666#endif" 667 668ac_header_c_list= 669ac_func_c_list= 670ac_subst_vars='am__EXEEXT_FALSE 671am__EXEEXT_TRUE 672LTLIBOBJS 673LIBOBJS 674BUILD_F77 675BUILD_FC 676BUILD_CXX 677BUILD_CC 678BUILD_FC_INCLUDE 679BUILD_C_INCLUDE 680BUILD_MPI_FC_LIB 681BUILD_MPI_C_LIB 682BUILD_LIBS 683BUILD_LDFLAGS 684BUILD_FCFLAGS 685BUILD_CFLAGS 686USE_FC_FALSE 687USE_FC_TRUE 688CREATE_INTERFACES_FALSE 689CREATE_INTERFACES_TRUE 690ENABLE_PYTHON 691ENABLE_PYTHON_FALSE 692ENABLE_PYTHON_TRUE 693PYTHON 694ENABLE_RUBY 695ENABLE_RUBY_FALSE 696ENABLE_RUBY_TRUE 697RUBY 698ENABLE_SWIG_FALSE 699ENABLE_SWIG_TRUE 700SWIG 701FORTRAN_MOD_UC_FALSE 702FORTRAN_MOD_UC_TRUE 703FCMODCASE 704FCMODEXT 705CDI_F90_INTERFACE_FCFLAGS 706FC_MOD_FLAG 707ENABLE_F2003_ISOC 708CREATE_ISOC_FALSE 709CREATE_ISOC_TRUE 710LIBRT 711ENABLE_MPI 712USE_MPI 713HAVE_PARALLEL_NC4_FALSE 714HAVE_PARALLEL_NC4_TRUE 715USE_PPM_CORE_FALSE 716USE_PPM_CORE_TRUE 717USE_MPI_FALSE 718USE_MPI_TRUE 719HAVE_PARALLEL_NC4 720PPM_CORE_LIBS 721PPM_CORE_CFLAGS 722YAXT_LIBS 723YAXT_CFLAGS 724PKG_CONFIG_LIBDIR 725PKG_CONFIG_PATH 726PKG_CONFIG 727MPI_LAUNCH 728MPI_FC_LIB 729MPI_FC_INCLUDE 730MPI_C_LIB 731MPI_C_INCLUDE 732MPIROOT 733ENABLE_NETCDF_FALSE 734ENABLE_NETCDF_TRUE 735ENABLE_CDI_APP_FALSE 736ENABLE_CDI_APP_TRUE 737ENABLE_HIRLAM_EXTENSIONS_FALSE 738ENABLE_HIRLAM_EXTENSIONS_TRUE 739ENABLE_ALL_STATIC_FALSE 740ENABLE_ALL_STATIC_TRUE 741ENABLE_CDI_LIB 742ENABLE_CDI_LIB_FALSE 743ENABLE_CDI_LIB_TRUE 744ENABLE_IEG 745ENABLE_EXTRA 746ENABLE_SERVICE 747ENABLE_CGRIBEX 748ENABLE_GRIB 749HAVE_LIBGRIB_API_FALSE 750HAVE_LIBGRIB_API_TRUE 751GRIB_API_LIBS 752GRIB_API_INCLUDE 753ECCODES_LIBS 754ECCODES_INCLUDE 755NETCDF_LIBS 756NETCDF_INCLUDE 757NETCDF_ROOT 758ENABLE_NC4SZLIB 759ENABLE_NC4HDF5 760ENABLE_NC4 761ENABLE_NC2 762ENABLE_NETCDF 763NC_CONFIG 764SZLIB_LIBS 765SZLIB_INCLUDE 766FDB5_LIBS 767FDB5_INCLUDE 768THREADS_LIBS 769THREADS_INCLUDE 770PTHREAD_CFLAGS 771PTHREAD_LIBS 772PTHREAD_CC 773ax_pthread_config 774SYSTEM_TYPE 775UUID_C_LIB 776UUID_C_INCLUDE 777DCE_UUID_C_LIB 778DCE_UUID_C_INCLUDE 779DCE_UUIDROOT 780OSSP_UUID_C_LIB 781OSSP_UUID_C_INCLUDE 782OSSP_UUIDROOT 783UTIL_LINUX_UUID_C_LIB 784UTIL_LINUX_UUID_C_INCLUDE 785UTIL_LINUX_UUIDROOT 786CXXCPP 787LT_SYS_LIBRARY_PATH 788OTOOL64 789OTOOL 790LIPO 791NMEDIT 792DSYMUTIL 793MANIFEST_TOOL 794RANLIB 795ac_ct_AR 796AR 797DLLTOOL 798OBJDUMP 799LN_S 800NM 801ac_ct_DUMPBIN 802DUMPBIN 803LD 804FGREP 805EGREP 806GREP 807SED 808LIBTOOL 809am__fastdepCXX_FALSE 810am__fastdepCXX_TRUE 811CXXDEPMODE 812ac_ct_CXX 813CXXFLAGS 814CXX 815ac_ct_F77 816FFLAGS 817F77 818FPP_INCOPT 819FPP_DEFOPT 820FPPFLAGS 821FPP 822FCFLAGS_f90 823ac_ct_FC 824FCFLAGS 825FC 826am__fastdepCC_FALSE 827am__fastdepCC_TRUE 828CCDEPMODE 829am__nodep 830AMDEPBACKSLASH 831AMDEP_FALSE 832AMDEP_TRUE 833am__include 834DEPDIR 835OBJEXT 836EXEEXT 837ac_ct_CC 838CPPFLAGS 839LDFLAGS 840CFLAGS 841CC 842MAINT 843MAINTAINER_MODE_FALSE 844MAINTAINER_MODE_TRUE 845AM_BACKSLASH 846AM_DEFAULT_VERBOSITY 847AM_DEFAULT_V 848AM_V 849am__untar 850am__tar 851AMTAR 852am__leading_dot 853SET_MAKE 854AWK 855mkdir_p 856MKDIR_P 857INSTALL_STRIP_PROGRAM 858STRIP 859install_sh 860MAKEINFO 861AUTOHEADER 862AUTOMAKE 863AUTOCONF 864ACLOCAL 865VERSION 866PACKAGE 867CYGPATH_W 868am__isrc 869INSTALL_DATA 870INSTALL_SCRIPT 871INSTALL_PROGRAM 872host_os 873host_vendor 874host_cpu 875host 876build_os 877build_vendor 878build_cpu 879build 880target_alias 881host_alias 882build_alias 883LIBS 884ECHO_T 885ECHO_N 886ECHO_C 887DEFS 888mandir 889localedir 890libdir 891psdir 892pdfdir 893dvidir 894htmldir 895infodir 896docdir 897oldincludedir 898includedir 899runstatedir 900localstatedir 901sharedstatedir 902sysconfdir 903datadir 904datarootdir 905libexecdir 906sbindir 907bindir 908program_transform_name 909prefix 910exec_prefix 911PACKAGE_URL 912PACKAGE_BUGREPORT 913PACKAGE_STRING 914PACKAGE_VERSION 915PACKAGE_TARNAME 916PACKAGE_NAME 917PATH_SEPARATOR 918SHELL 919am__quote' 920ac_subst_files='' 921ac_user_opts=' 922enable_option_checking 923enable_silent_rules 924enable_maintainer_mode 925enable_dependency_tracking 926with_pic 927enable_shared 928enable_static 929enable_fast_install 930with_aix_soname 931with_gnu_ld 932with_sysroot 933enable_libtool_lock 934enable_largefile 935enable_util_linux_uuid 936enable_ossp_uuid 937enable_dce_uuid 938with_util_linux_uuid 939with_ossp_uuid 940with_dce_uuid 941with_util_linux_uuid_root 942with_util_linux_uuid_include 943with_util_linux_uuid_lib 944with_ossp_uuid_root 945with_ossp_uuid_include 946with_ossp_uuid_lib 947with_dce_uuid_root 948with_dce_uuid_include 949with_dce_uuid_lib 950with_threads 951with_fdb5 952with_szlib 953with_netcdf 954with_eccodes 955with_grib_api 956enable_grib 957enable_cgribex 958enable_service 959enable_extra 960enable_ieg 961enable_all_static 962enable_hirlam_extensions 963enable_cdi_app 964enable_mpi 965with_mpi_root 966with_mpi_include 967with_mpi_lib 968enable_iso_c_interface 969enable_swig 970enable_ruby 971enable_python 972enable_cf_interface 973' 974 ac_precious_vars='build_alias 975host_alias 976target_alias 977CC 978CFLAGS 979LDFLAGS 980LIBS 981CPPFLAGS 982FC 983FCFLAGS 984FPP 985FPPFLAGS 986F77 987FFLAGS 988CXX 989CXXFLAGS 990CCC 991LT_SYS_LIBRARY_PATH 992CXXCPP 993UTIL_LINUX_UUID_C_INCLUDE 994UTIL_LINUX_UUID_C_LIB 995OSSP_UUID_C_INCLUDE 996OSSP_UUID_C_LIB 997DCE_UUID_C_INCLUDE 998DCE_UUID_C_LIB 999MPI_C_INCLUDE 1000MPI_C_LIB 1001MPI_FC_INCLUDE 1002MPI_FC_LIB 1003PKG_CONFIG 1004PKG_CONFIG_PATH 1005PKG_CONFIG_LIBDIR 1006YAXT_CFLAGS 1007YAXT_LIBS 1008PPM_CORE_CFLAGS 1009PPM_CORE_LIBS 1010FCMODEXT 1011BUILD_CFLAGS 1012BUILD_FCFLAGS 1013BUILD_LDFLAGS 1014BUILD_LIBS 1015BUILD_MPI_C_LIB 1016BUILD_MPI_FC_LIB 1017BUILD_C_INCLUDE 1018BUILD_FC_INCLUDE 1019BUILD_CC 1020BUILD_CXX 1021BUILD_FC 1022BUILD_F77' 1023 1024 1025# Initialize some variables set by options. 1026ac_init_help= 1027ac_init_version=false 1028ac_unrecognized_opts= 1029ac_unrecognized_sep= 1030# The variables have the same names as the options, with 1031# dashes changed to underlines. 1032cache_file=/dev/null 1033exec_prefix=NONE 1034no_create= 1035no_recursion= 1036prefix=NONE 1037program_prefix=NONE 1038program_suffix=NONE 1039program_transform_name=s,x,x, 1040silent= 1041site= 1042srcdir= 1043verbose= 1044x_includes=NONE 1045x_libraries=NONE 1046 1047# Installation directory options. 1048# These are left unexpanded so users can "make install exec_prefix=/foo" 1049# and all the variables that are supposed to be based on exec_prefix 1050# by default will actually change. 1051# Use braces instead of parens because sh, perl, etc. also accept them. 1052# (The list follows the same order as the GNU Coding Standards.) 1053bindir='${exec_prefix}/bin' 1054sbindir='${exec_prefix}/sbin' 1055libexecdir='${exec_prefix}/libexec' 1056datarootdir='${prefix}/share' 1057datadir='${datarootdir}' 1058sysconfdir='${prefix}/etc' 1059sharedstatedir='${prefix}/com' 1060localstatedir='${prefix}/var' 1061runstatedir='${localstatedir}/run' 1062includedir='${prefix}/include' 1063oldincludedir='/usr/include' 1064docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1065infodir='${datarootdir}/info' 1066htmldir='${docdir}' 1067dvidir='${docdir}' 1068pdfdir='${docdir}' 1069psdir='${docdir}' 1070libdir='${exec_prefix}/lib' 1071localedir='${datarootdir}/locale' 1072mandir='${datarootdir}/man' 1073 1074ac_prev= 1075ac_dashdash= 1076for ac_option 1077do 1078 # If the previous option needs an argument, assign it. 1079 if test -n "$ac_prev"; then 1080 eval $ac_prev=\$ac_option 1081 ac_prev= 1082 continue 1083 fi 1084 1085 case $ac_option in 1086 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1087 *=) ac_optarg= ;; 1088 *) ac_optarg=yes ;; 1089 esac 1090 1091 case $ac_dashdash$ac_option in 1092 --) 1093 ac_dashdash=yes ;; 1094 1095 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1096 ac_prev=bindir ;; 1097 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1098 bindir=$ac_optarg ;; 1099 1100 -build | --build | --buil | --bui | --bu) 1101 ac_prev=build_alias ;; 1102 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1103 build_alias=$ac_optarg ;; 1104 1105 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1106 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1107 ac_prev=cache_file ;; 1108 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1109 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1110 cache_file=$ac_optarg ;; 1111 1112 --config-cache | -C) 1113 cache_file=config.cache ;; 1114 1115 -datadir | --datadir | --datadi | --datad) 1116 ac_prev=datadir ;; 1117 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1118 datadir=$ac_optarg ;; 1119 1120 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1121 | --dataroo | --dataro | --datar) 1122 ac_prev=datarootdir ;; 1123 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1124 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1125 datarootdir=$ac_optarg ;; 1126 1127 -disable-* | --disable-*) 1128 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1129 # Reject names that are not valid shell variable names. 1130 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1131 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1132 ac_useropt_orig=$ac_useropt 1133 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1134 case $ac_user_opts in 1135 *" 1136"enable_$ac_useropt" 1137"*) ;; 1138 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1139 ac_unrecognized_sep=', ';; 1140 esac 1141 eval enable_$ac_useropt=no ;; 1142 1143 -docdir | --docdir | --docdi | --doc | --do) 1144 ac_prev=docdir ;; 1145 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1146 docdir=$ac_optarg ;; 1147 1148 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1149 ac_prev=dvidir ;; 1150 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1151 dvidir=$ac_optarg ;; 1152 1153 -enable-* | --enable-*) 1154 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1155 # Reject names that are not valid shell variable names. 1156 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1157 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1158 ac_useropt_orig=$ac_useropt 1159 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1160 case $ac_user_opts in 1161 *" 1162"enable_$ac_useropt" 1163"*) ;; 1164 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1165 ac_unrecognized_sep=', ';; 1166 esac 1167 eval enable_$ac_useropt=\$ac_optarg ;; 1168 1169 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1170 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1171 | --exec | --exe | --ex) 1172 ac_prev=exec_prefix ;; 1173 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1174 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1175 | --exec=* | --exe=* | --ex=*) 1176 exec_prefix=$ac_optarg ;; 1177 1178 -gas | --gas | --ga | --g) 1179 # Obsolete; use --with-gas. 1180 with_gas=yes ;; 1181 1182 -help | --help | --hel | --he | -h) 1183 ac_init_help=long ;; 1184 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1185 ac_init_help=recursive ;; 1186 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1187 ac_init_help=short ;; 1188 1189 -host | --host | --hos | --ho) 1190 ac_prev=host_alias ;; 1191 -host=* | --host=* | --hos=* | --ho=*) 1192 host_alias=$ac_optarg ;; 1193 1194 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1195 ac_prev=htmldir ;; 1196 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1197 | --ht=*) 1198 htmldir=$ac_optarg ;; 1199 1200 -includedir | --includedir | --includedi | --included | --include \ 1201 | --includ | --inclu | --incl | --inc) 1202 ac_prev=includedir ;; 1203 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1204 | --includ=* | --inclu=* | --incl=* | --inc=*) 1205 includedir=$ac_optarg ;; 1206 1207 -infodir | --infodir | --infodi | --infod | --info | --inf) 1208 ac_prev=infodir ;; 1209 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1210 infodir=$ac_optarg ;; 1211 1212 -libdir | --libdir | --libdi | --libd) 1213 ac_prev=libdir ;; 1214 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1215 libdir=$ac_optarg ;; 1216 1217 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1218 | --libexe | --libex | --libe) 1219 ac_prev=libexecdir ;; 1220 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1221 | --libexe=* | --libex=* | --libe=*) 1222 libexecdir=$ac_optarg ;; 1223 1224 -localedir | --localedir | --localedi | --localed | --locale) 1225 ac_prev=localedir ;; 1226 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1227 localedir=$ac_optarg ;; 1228 1229 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1230 | --localstate | --localstat | --localsta | --localst | --locals) 1231 ac_prev=localstatedir ;; 1232 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1233 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1234 localstatedir=$ac_optarg ;; 1235 1236 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1237 ac_prev=mandir ;; 1238 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1239 mandir=$ac_optarg ;; 1240 1241 -nfp | --nfp | --nf) 1242 # Obsolete; use --without-fp. 1243 with_fp=no ;; 1244 1245 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1246 | --no-cr | --no-c | -n) 1247 no_create=yes ;; 1248 1249 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1250 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1251 no_recursion=yes ;; 1252 1253 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1254 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1255 | --oldin | --oldi | --old | --ol | --o) 1256 ac_prev=oldincludedir ;; 1257 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1258 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1259 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1260 oldincludedir=$ac_optarg ;; 1261 1262 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1263 ac_prev=prefix ;; 1264 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1265 prefix=$ac_optarg ;; 1266 1267 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1268 | --program-pre | --program-pr | --program-p) 1269 ac_prev=program_prefix ;; 1270 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1271 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1272 program_prefix=$ac_optarg ;; 1273 1274 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1275 | --program-suf | --program-su | --program-s) 1276 ac_prev=program_suffix ;; 1277 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1278 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1279 program_suffix=$ac_optarg ;; 1280 1281 -program-transform-name | --program-transform-name \ 1282 | --program-transform-nam | --program-transform-na \ 1283 | --program-transform-n | --program-transform- \ 1284 | --program-transform | --program-transfor \ 1285 | --program-transfo | --program-transf \ 1286 | --program-trans | --program-tran \ 1287 | --progr-tra | --program-tr | --program-t) 1288 ac_prev=program_transform_name ;; 1289 -program-transform-name=* | --program-transform-name=* \ 1290 | --program-transform-nam=* | --program-transform-na=* \ 1291 | --program-transform-n=* | --program-transform-=* \ 1292 | --program-transform=* | --program-transfor=* \ 1293 | --program-transfo=* | --program-transf=* \ 1294 | --program-trans=* | --program-tran=* \ 1295 | --progr-tra=* | --program-tr=* | --program-t=*) 1296 program_transform_name=$ac_optarg ;; 1297 1298 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1299 ac_prev=pdfdir ;; 1300 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1301 pdfdir=$ac_optarg ;; 1302 1303 -psdir | --psdir | --psdi | --psd | --ps) 1304 ac_prev=psdir ;; 1305 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1306 psdir=$ac_optarg ;; 1307 1308 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1309 | -silent | --silent | --silen | --sile | --sil) 1310 silent=yes ;; 1311 1312 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1313 | --runstate | --runstat | --runsta | --runst | --runs \ 1314 | --run | --ru | --r) 1315 ac_prev=runstatedir ;; 1316 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1317 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1318 | --run=* | --ru=* | --r=*) 1319 runstatedir=$ac_optarg ;; 1320 1321 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1322 ac_prev=sbindir ;; 1323 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1324 | --sbi=* | --sb=*) 1325 sbindir=$ac_optarg ;; 1326 1327 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1328 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1329 | --sharedst | --shareds | --shared | --share | --shar \ 1330 | --sha | --sh) 1331 ac_prev=sharedstatedir ;; 1332 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1333 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1334 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1335 | --sha=* | --sh=*) 1336 sharedstatedir=$ac_optarg ;; 1337 1338 -site | --site | --sit) 1339 ac_prev=site ;; 1340 -site=* | --site=* | --sit=*) 1341 site=$ac_optarg ;; 1342 1343 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1344 ac_prev=srcdir ;; 1345 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1346 srcdir=$ac_optarg ;; 1347 1348 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1349 | --syscon | --sysco | --sysc | --sys | --sy) 1350 ac_prev=sysconfdir ;; 1351 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1352 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1353 sysconfdir=$ac_optarg ;; 1354 1355 -target | --target | --targe | --targ | --tar | --ta | --t) 1356 ac_prev=target_alias ;; 1357 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1358 target_alias=$ac_optarg ;; 1359 1360 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1361 verbose=yes ;; 1362 1363 -version | --version | --versio | --versi | --vers | -V) 1364 ac_init_version=: ;; 1365 1366 -with-* | --with-*) 1367 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1368 # Reject names that are not valid shell variable names. 1369 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1370 as_fn_error $? "invalid package name: \`$ac_useropt'" 1371 ac_useropt_orig=$ac_useropt 1372 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1373 case $ac_user_opts in 1374 *" 1375"with_$ac_useropt" 1376"*) ;; 1377 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1378 ac_unrecognized_sep=', ';; 1379 esac 1380 eval with_$ac_useropt=\$ac_optarg ;; 1381 1382 -without-* | --without-*) 1383 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1384 # Reject names that are not valid shell variable names. 1385 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1386 as_fn_error $? "invalid package name: \`$ac_useropt'" 1387 ac_useropt_orig=$ac_useropt 1388 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1389 case $ac_user_opts in 1390 *" 1391"with_$ac_useropt" 1392"*) ;; 1393 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1394 ac_unrecognized_sep=', ';; 1395 esac 1396 eval with_$ac_useropt=no ;; 1397 1398 --x) 1399 # Obsolete; use --with-x. 1400 with_x=yes ;; 1401 1402 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1403 | --x-incl | --x-inc | --x-in | --x-i) 1404 ac_prev=x_includes ;; 1405 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1406 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1407 x_includes=$ac_optarg ;; 1408 1409 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1410 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1411 ac_prev=x_libraries ;; 1412 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1413 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1414 x_libraries=$ac_optarg ;; 1415 1416 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1417Try \`$0 --help' for more information" 1418 ;; 1419 1420 *=*) 1421 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1422 # Reject names that are not valid shell variable names. 1423 case $ac_envvar in #( 1424 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1425 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1426 esac 1427 eval $ac_envvar=\$ac_optarg 1428 export $ac_envvar ;; 1429 1430 *) 1431 # FIXME: should be removed in autoconf 3.0. 1432 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1433 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1434 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1435 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1436 ;; 1437 1438 esac 1439done 1440 1441if test -n "$ac_prev"; then 1442 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1443 as_fn_error $? "missing argument to $ac_option" 1444fi 1445 1446if test -n "$ac_unrecognized_opts"; then 1447 case $enable_option_checking in 1448 no) ;; 1449 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1450 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1451 esac 1452fi 1453 1454# Check all directory arguments for consistency. 1455for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1456 datadir sysconfdir sharedstatedir localstatedir includedir \ 1457 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1458 libdir localedir mandir runstatedir 1459do 1460 eval ac_val=\$$ac_var 1461 # Remove trailing slashes. 1462 case $ac_val in 1463 */ ) 1464 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1465 eval $ac_var=\$ac_val;; 1466 esac 1467 # Be sure to have absolute directory names. 1468 case $ac_val in 1469 [\\/$]* | ?:[\\/]* ) continue;; 1470 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1471 esac 1472 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1473done 1474 1475# There might be people who depend on the old broken behavior: `$host' 1476# used to hold the argument of --host etc. 1477# FIXME: To remove some day. 1478build=$build_alias 1479host=$host_alias 1480target=$target_alias 1481 1482# FIXME: To remove some day. 1483if test "x$host_alias" != x; then 1484 if test "x$build_alias" = x; then 1485 cross_compiling=maybe 1486 elif test "x$build_alias" != "x$host_alias"; then 1487 cross_compiling=yes 1488 fi 1489fi 1490 1491ac_tool_prefix= 1492test -n "$host_alias" && ac_tool_prefix=$host_alias- 1493 1494test "$silent" = yes && exec 6>/dev/null 1495 1496 1497ac_pwd=`pwd` && test -n "$ac_pwd" && 1498ac_ls_di=`ls -di .` && 1499ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1500 as_fn_error $? "working directory cannot be determined" 1501test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1502 as_fn_error $? "pwd does not report name of working directory" 1503 1504 1505# Find the source files, if location was not specified. 1506if test -z "$srcdir"; then 1507 ac_srcdir_defaulted=yes 1508 # Try the directory containing this script, then the parent directory. 1509 ac_confdir=`$as_dirname -- "$as_myself" || 1510$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1511 X"$as_myself" : 'X\(//\)[^/]' \| \ 1512 X"$as_myself" : 'X\(//\)$' \| \ 1513 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1514printf "%s\n" X"$as_myself" | 1515 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1516 s//\1/ 1517 q 1518 } 1519 /^X\(\/\/\)[^/].*/{ 1520 s//\1/ 1521 q 1522 } 1523 /^X\(\/\/\)$/{ 1524 s//\1/ 1525 q 1526 } 1527 /^X\(\/\).*/{ 1528 s//\1/ 1529 q 1530 } 1531 s/.*/./; q'` 1532 srcdir=$ac_confdir 1533 if test ! -r "$srcdir/$ac_unique_file"; then 1534 srcdir=.. 1535 fi 1536else 1537 ac_srcdir_defaulted=no 1538fi 1539if test ! -r "$srcdir/$ac_unique_file"; then 1540 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1541 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1542fi 1543ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1544ac_abs_confdir=`( 1545 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1546 pwd)` 1547# When building in place, set srcdir=. 1548if test "$ac_abs_confdir" = "$ac_pwd"; then 1549 srcdir=. 1550fi 1551# Remove unnecessary trailing slashes from srcdir. 1552# Double slashes in file names in object file debugging info 1553# mess up M-x gdb in Emacs. 1554case $srcdir in 1555*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1556esac 1557for ac_var in $ac_precious_vars; do 1558 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1559 eval ac_env_${ac_var}_value=\$${ac_var} 1560 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1561 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1562done 1563 1564# 1565# Report the --help message. 1566# 1567if test "$ac_init_help" = "long"; then 1568 # Omit some internal or obsolete options to make the list less imposing. 1569 # This message is too long to be a string in the A/UX 3.1 sh. 1570 cat <<_ACEOF 1571\`configure' configures cdi 2.0.1 to adapt to many kinds of systems. 1572 1573Usage: $0 [OPTION]... [VAR=VALUE]... 1574 1575To assign environment variables (e.g., CC, CFLAGS...), specify them as 1576VAR=VALUE. See below for descriptions of some of the useful variables. 1577 1578Defaults for the options are specified in brackets. 1579 1580Configuration: 1581 -h, --help display this help and exit 1582 --help=short display options specific to this package 1583 --help=recursive display the short help of all the included packages 1584 -V, --version display version information and exit 1585 -q, --quiet, --silent do not print \`checking ...' messages 1586 --cache-file=FILE cache test results in FILE [disabled] 1587 -C, --config-cache alias for \`--cache-file=config.cache' 1588 -n, --no-create do not create output files 1589 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1590 1591Installation directories: 1592 --prefix=PREFIX install architecture-independent files in PREFIX 1593 [$ac_default_prefix] 1594 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1595 [PREFIX] 1596 1597By default, \`make install' will install all the files in 1598\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1599an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1600for instance \`--prefix=\$HOME'. 1601 1602For better control, use the options below. 1603 1604Fine tuning of the installation directories: 1605 --bindir=DIR user executables [EPREFIX/bin] 1606 --sbindir=DIR system admin executables [EPREFIX/sbin] 1607 --libexecdir=DIR program executables [EPREFIX/libexec] 1608 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1609 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1610 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1611 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1612 --libdir=DIR object code libraries [EPREFIX/lib] 1613 --includedir=DIR C header files [PREFIX/include] 1614 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1615 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1616 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1617 --infodir=DIR info documentation [DATAROOTDIR/info] 1618 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1619 --mandir=DIR man documentation [DATAROOTDIR/man] 1620 --docdir=DIR documentation root [DATAROOTDIR/doc/cdi] 1621 --htmldir=DIR html documentation [DOCDIR] 1622 --dvidir=DIR dvi documentation [DOCDIR] 1623 --pdfdir=DIR pdf documentation [DOCDIR] 1624 --psdir=DIR ps documentation [DOCDIR] 1625_ACEOF 1626 1627 cat <<\_ACEOF 1628 1629Program names: 1630 --program-prefix=PREFIX prepend PREFIX to installed program names 1631 --program-suffix=SUFFIX append SUFFIX to installed program names 1632 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1633 1634System types: 1635 --build=BUILD configure for building on BUILD [guessed] 1636 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1637_ACEOF 1638fi 1639 1640if test -n "$ac_init_help"; then 1641 case $ac_init_help in 1642 short | recursive ) echo "Configuration of cdi 2.0.1:";; 1643 esac 1644 cat <<\_ACEOF 1645 1646Optional Features: 1647 --disable-option-checking ignore unrecognized --enable/--with options 1648 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1649 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1650 --enable-silent-rules less verbose build output (undo: "make V=1") 1651 --disable-silent-rules verbose build output (undo: "make V=0") 1652 --enable-maintainer-mode 1653 enable make rules and dependencies not useful (and 1654 sometimes confusing) to the casual installer 1655 --enable-dependency-tracking 1656 do not reject slow dependency extractors 1657 --disable-dependency-tracking 1658 speeds up one-time build 1659 --enable-shared[=PKGS] build shared libraries [default=yes] 1660 --enable-static[=PKGS] build static libraries [default=yes] 1661 --enable-fast-install[=PKGS] 1662 optimize for fast installation [default=yes] 1663 --disable-libtool-lock avoid locking (might break parallel builds) 1664 --disable-largefile omit support for large files 1665 --disable-util-linux-uuid 1666 Do not test for the util-linux UUID library, use 1667 OSSP or DCE versions instead 1668 --disable-ossp-uuid Do not test for the OSSP UUID library, use 1669 util-linux or DCE versions instead 1670 --disable-dce-uuid Do not test for the DCE UUID library, use util-linux 1671 or OSSP versions instead 1672 --enable-grib GRIB support [default=yes] 1673 --enable-cgribex Use the CGRIBEX library [default=yes] 1674 --enable-service Use the service library [default=yes] 1675 --enable-extra Use the extra library [default=yes] 1676 --enable-ieg Use the ieg library [default=yes] 1677 --enable-all-static build a completely statically linked CDO binary 1678 [default=no] 1679 --enable-hirlam-extensions 1680 HIRLAM extensions [default=no] 1681 --enable-cdi-app build and install CDI application [default=yes] 1682 --enable-mpi Compile with MPI compiler [default=no] 1683 --enable-iso-c-interface 1684 Create Fortran Interface via iso_c_bindings facility 1685 of F2003 [default=no]. 1686 --enable-swig use swig to create extra bindings [default=no] 1687 (EXPERIMENTAL) 1688 --enable-ruby ruby language bindings [default=no] (EXPERIMENTAL) 1689 --enable-python python language bindings [default=no] (EXPERIMENTAL) 1690 --disable-cf-interface Omit building of cfortran Interface 1691 1692Optional Packages: 1693 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1694 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1695 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1696 both] 1697 --with-aix-soname=aix|svr4|both 1698 shared library versioning (aka "SONAME") variant to 1699 provide on AIX, [default=aix]. 1700 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1701 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1702 compiler's sysroot if not specified). 1703 --with-util-linux-uuid[=yes|no|directory>] 1704 Use util-linux UUID library, do not test for OSSP 1705 UUID library. 1706 --with-ossp-uuid[=yes|no|directory>] 1707 Use OSSP UUID library, do not test for the 1708 util-linux UUID library. 1709 --with-dce-uuid[=yes|no|directory>] 1710 Use DCE UUID library, do not test for the util-linux 1711 UUID library. 1712 --with-util-linux-uuid-root 1713 set directory to search for util-linux-uuid headers 1714 and library 1715 --with-util-linux-uuid-include 1716 specifically set directory to search for 1717 util-linux-uuid headers, 1718 [default=$with_util_linux_uuid_root/include] 1719 --with-util-linux-uuid-lib 1720 specifically set directory to search for 1721 util-linux-uuid library, 1722 [default=$with_util_linux_uuid_root/lib] 1723 --with-ossp-uuid-root set directory to search for ossp-uuid headers and 1724 library 1725 --with-ossp-uuid-include 1726 specifically set directory to search for ossp-uuid 1727 headers, [default=$with_ossp_uuid_root/include] 1728 --with-ossp-uuid-lib specifically set directory to search for ossp-uuid 1729 library, [default=$with_ossp_uuid_root/lib] 1730 --with-dce-uuid-root set directory to search for dce-uuid headers and 1731 library 1732 --with-dce-uuid-include specifically set directory to search for dce-uuid 1733 headers, [default=$with_dce_uuid_root/include] 1734 --with-dce-uuid-lib specifically set directory to search for dce-uuid 1735 library, [default=$with_dce_uuid_root/lib] 1736 --with-threads=<yes/no/directory> 1737 Compile + link for multithreading [default=yes] 1738 --with-fdb5=<yes|no|directory> (default=no) 1739 location of fdb5 library (optional) 1740 --with-szlib=<yes|no|directory> (default=no) 1741 location of szlib library, optional for GRIB1 and 1742 NETCDF4 compression 1743 --with-netcdf=<yes|no|directory> (default=no) 1744 location of NetCDF library (lib and include subdirs) 1745 --with-eccodes=<yes|no|directory> 1746 library for grib2 encoding/decoding; if a directory 1747 is given, it will be used as a value for 1748 --with-eccodes-root 1749 --with-grib_api=<yes|no|directory> 1750 library for grib2 encoding/decoding; if a directory 1751 is given, it will be used as a value for 1752 --with-grib_api-root 1753 --with-mpi-root set directory to search for MPI headers and library 1754 --with-mpi-include specifically set directory to search for MPI 1755 headers, [default=$with_mpi_root/include] 1756 --with-mpi-lib specifically set directory to search for MPI 1757 library, [default=$with_mpi_root/lib] 1758 1759Some influential environment variables: 1760 CC C compiler command 1761 CFLAGS C compiler flags 1762 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1763 nonstandard directory <lib dir> 1764 LIBS libraries to pass to the linker, e.g. -l<library> 1765 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1766 you have headers in a nonstandard directory <include dir> 1767 FC Fortran compiler command 1768 FCFLAGS Fortran compiler flags 1769 FPP Command to preprocess Fortran code 1770 FPPFLAGS Flags for the Fortran preprocessor 1771 F77 Fortran 77 compiler command 1772 FFLAGS Fortran 77 compiler flags 1773 CXX C++ compiler command 1774 CXXFLAGS C++ compiler flags 1775 LT_SYS_LIBRARY_PATH 1776 User-defined run-time library search path. 1777 CXXCPP C++ preprocessor 1778 UTIL_LINUX_UUID_C_INCLUDE 1779 specifically set flags to use when compiling sources using 1780 util-linux-uuid includes. 1781 UTIL_LINUX_UUID_C_LIB 1782 specifically set flags to use when linking util-linux-uuid. 1783 OSSP_UUID_C_INCLUDE 1784 specifically set flags to use when compiling sources using 1785 ossp-uuid includes. 1786 OSSP_UUID_C_LIB 1787 specifically set flags to use when linking ossp-uuid. 1788 DCE_UUID_C_INCLUDE 1789 specifically set flags to use when compiling sources using 1790 dce-uuid includes. 1791 DCE_UUID_C_LIB 1792 specifically set flags to use when linking dce-uuid. 1793 MPI_C_INCLUDE 1794 specifically set flags to use when compiling sources using MPI 1795 includes. 1796 MPI_C_LIB specifically set flags to use when linking MPI. 1797 MPI_FC_INCLUDE 1798 specifically set flags to use when compiling sources using MPI 1799 includes. 1800 MPI_FC_LIB specifically set flags to use when linking MPI. 1801 PKG_CONFIG path to pkg-config utility 1802 PKG_CONFIG_PATH 1803 directories to add to pkg-config's search path 1804 PKG_CONFIG_LIBDIR 1805 path overriding pkg-config's built-in search path 1806 YAXT_CFLAGS C compiler flags for YAXT, overriding pkg-config 1807 YAXT_LIBS linker flags for YAXT, overriding pkg-config 1808 PPM_CORE_CFLAGS 1809 C compiler flags for PPM_CORE, overriding pkg-config 1810 PPM_CORE_LIBS 1811 linker flags for PPM_CORE, overriding pkg-config 1812 FCMODEXT file extension of compiled Fortran module files 1813 BUILD_CFLAGS 1814 append to CFLAGS during build but not in configure phase 1815 BUILD_FCFLAGS 1816 append to FCFLAGS during build but not in configure phase 1817 BUILD_LDFLAGS 1818 append to LDFLAGS during build but not in configure phase 1819 BUILD_LIBS append to LIBS during build but not in configure phase 1820 BUILD_MPI_C_LIB 1821 append to MPI_C_LIB during build but not in configure phase 1822 BUILD_MPI_FC_LIB 1823 append to MPI_FC_LIB during build but not in configure phase 1824 BUILD_C_INCLUDE 1825 append to C_INCLUDE during build but not in configure phase 1826 BUILD_FC_INCLUDE 1827 append to FC_INCLUDE during build but not in configure phase 1828 BUILD_CC replace CC with expansion of $BUILD_CC during build but not in 1829 configure phase 1830 BUILD_CXX replace CXX with expansion of $BUILD_CXX during build but not in 1831 configure phase 1832 BUILD_FC replace FC with expansion of $BUILD_FC during build but not in 1833 configure phase 1834 BUILD_F77 replace F77 with expansion of $BUILD_F77 during build but not in 1835 configure phase 1836 1837Use these variables to override the choices made by `configure' or to help 1838it to find libraries and programs with nonstandard names/locations. 1839 1840Report bugs to <https://mpimet.mpg.de/cdi>. 1841_ACEOF 1842ac_status=$? 1843fi 1844 1845if test "$ac_init_help" = "recursive"; then 1846 # If there are subdirs, report their specific --help. 1847 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1848 test -d "$ac_dir" || 1849 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1850 continue 1851 ac_builddir=. 1852 1853case "$ac_dir" in 1854.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1855*) 1856 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1857 # A ".." for each directory in $ac_dir_suffix. 1858 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1859 case $ac_top_builddir_sub in 1860 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1861 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1862 esac ;; 1863esac 1864ac_abs_top_builddir=$ac_pwd 1865ac_abs_builddir=$ac_pwd$ac_dir_suffix 1866# for backward compatibility: 1867ac_top_builddir=$ac_top_build_prefix 1868 1869case $srcdir in 1870 .) # We are building in place. 1871 ac_srcdir=. 1872 ac_top_srcdir=$ac_top_builddir_sub 1873 ac_abs_top_srcdir=$ac_pwd ;; 1874 [\\/]* | ?:[\\/]* ) # Absolute name. 1875 ac_srcdir=$srcdir$ac_dir_suffix; 1876 ac_top_srcdir=$srcdir 1877 ac_abs_top_srcdir=$srcdir ;; 1878 *) # Relative name. 1879 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1880 ac_top_srcdir=$ac_top_build_prefix$srcdir 1881 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1882esac 1883ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1884 1885 cd "$ac_dir" || { ac_status=$?; continue; } 1886 # Check for configure.gnu first; this name is used for a wrapper for 1887 # Metaconfig's "Configure" on case-insensitive file systems. 1888 if test -f "$ac_srcdir/configure.gnu"; then 1889 echo && 1890 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1891 elif test -f "$ac_srcdir/configure"; then 1892 echo && 1893 $SHELL "$ac_srcdir/configure" --help=recursive 1894 else 1895 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1896 fi || ac_status=$? 1897 cd "$ac_pwd" || { ac_status=$?; break; } 1898 done 1899fi 1900 1901test -n "$ac_init_help" && exit $ac_status 1902if $ac_init_version; then 1903 cat <<\_ACEOF 1904cdi configure 2.0.1 1905generated by GNU Autoconf 2.71 1906 1907Copyright (C) 2021 Free Software Foundation, Inc. 1908This configure script is free software; the Free Software Foundation 1909gives unlimited permission to copy, distribute and modify it. 1910_ACEOF 1911 exit 1912fi 1913 1914## ------------------------ ## 1915## Autoconf initialization. ## 1916## ------------------------ ## 1917 1918# ac_fn_c_try_compile LINENO 1919# -------------------------- 1920# Try to compile conftest.$ac_ext, and return whether this succeeded. 1921ac_fn_c_try_compile () 1922{ 1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1924 rm -f conftest.$ac_objext conftest.beam 1925 if { { ac_try="$ac_compile" 1926case "(($ac_try" in 1927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1928 *) ac_try_echo=$ac_try;; 1929esac 1930eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1931printf "%s\n" "$ac_try_echo"; } >&5 1932 (eval "$ac_compile") 2>conftest.err 1933 ac_status=$? 1934 if test -s conftest.err; then 1935 grep -v '^ *+' conftest.err >conftest.er1 1936 cat conftest.er1 >&5 1937 mv -f conftest.er1 conftest.err 1938 fi 1939 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1940 test $ac_status = 0; } && { 1941 test -z "$ac_c_werror_flag" || 1942 test ! -s conftest.err 1943 } && test -s conftest.$ac_objext 1944then : 1945 ac_retval=0 1946else $as_nop 1947 printf "%s\n" "$as_me: failed program was:" >&5 1948sed 's/^/| /' conftest.$ac_ext >&5 1949 1950 ac_retval=1 1951fi 1952 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1953 as_fn_set_status $ac_retval 1954 1955} # ac_fn_c_try_compile 1956 1957# ac_fn_fc_try_compile LINENO 1958# --------------------------- 1959# Try to compile conftest.$ac_ext, and return whether this succeeded. 1960ac_fn_fc_try_compile () 1961{ 1962 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1963 rm -f conftest.$ac_objext conftest.beam 1964 if { { ac_try="$ac_compile" 1965case "(($ac_try" in 1966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1967 *) ac_try_echo=$ac_try;; 1968esac 1969eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1970printf "%s\n" "$ac_try_echo"; } >&5 1971 (eval "$ac_compile") 2>conftest.err 1972 ac_status=$? 1973 if test -s conftest.err; then 1974 grep -v '^ *+' conftest.err >conftest.er1 1975 cat conftest.er1 >&5 1976 mv -f conftest.er1 conftest.err 1977 fi 1978 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1979 test $ac_status = 0; } && { 1980 test -z "$ac_fc_werror_flag" || 1981 test ! -s conftest.err 1982 } && test -s conftest.$ac_objext 1983then : 1984 ac_retval=0 1985else $as_nop 1986 printf "%s\n" "$as_me: failed program was:" >&5 1987sed 's/^/| /' conftest.$ac_ext >&5 1988 1989 ac_retval=1 1990fi 1991 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1992 as_fn_set_status $ac_retval 1993 1994} # ac_fn_fc_try_compile 1995 1996# ac_fn_f77_try_compile LINENO 1997# ---------------------------- 1998# Try to compile conftest.$ac_ext, and return whether this succeeded. 1999ac_fn_f77_try_compile () 2000{ 2001 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2002 rm -f conftest.$ac_objext conftest.beam 2003 if { { ac_try="$ac_compile" 2004case "(($ac_try" in 2005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2006 *) ac_try_echo=$ac_try;; 2007esac 2008eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2009printf "%s\n" "$ac_try_echo"; } >&5 2010 (eval "$ac_compile") 2>conftest.err 2011 ac_status=$? 2012 if test -s conftest.err; then 2013 grep -v '^ *+' conftest.err >conftest.er1 2014 cat conftest.er1 >&5 2015 mv -f conftest.er1 conftest.err 2016 fi 2017 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2018 test $ac_status = 0; } && { 2019 test -z "$ac_f77_werror_flag" || 2020 test ! -s conftest.err 2021 } && test -s conftest.$ac_objext 2022then : 2023 ac_retval=0 2024else $as_nop 2025 printf "%s\n" "$as_me: failed program was:" >&5 2026sed 's/^/| /' conftest.$ac_ext >&5 2027 2028 ac_retval=1 2029fi 2030 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2031 as_fn_set_status $ac_retval 2032 2033} # ac_fn_f77_try_compile 2034 2035# ac_fn_cxx_try_compile LINENO 2036# ---------------------------- 2037# Try to compile conftest.$ac_ext, and return whether this succeeded. 2038ac_fn_cxx_try_compile () 2039{ 2040 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2041 rm -f conftest.$ac_objext conftest.beam 2042 if { { ac_try="$ac_compile" 2043case "(($ac_try" in 2044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2045 *) ac_try_echo=$ac_try;; 2046esac 2047eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2048printf "%s\n" "$ac_try_echo"; } >&5 2049 (eval "$ac_compile") 2>conftest.err 2050 ac_status=$? 2051 if test -s conftest.err; then 2052 grep -v '^ *+' conftest.err >conftest.er1 2053 cat conftest.er1 >&5 2054 mv -f conftest.er1 conftest.err 2055 fi 2056 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2057 test $ac_status = 0; } && { 2058 test -z "$ac_cxx_werror_flag" || 2059 test ! -s conftest.err 2060 } && test -s conftest.$ac_objext 2061then : 2062 ac_retval=0 2063else $as_nop 2064 printf "%s\n" "$as_me: failed program was:" >&5 2065sed 's/^/| /' conftest.$ac_ext >&5 2066 2067 ac_retval=1 2068fi 2069 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2070 as_fn_set_status $ac_retval 2071 2072} # ac_fn_cxx_try_compile 2073 2074# ac_fn_c_try_link LINENO 2075# ----------------------- 2076# Try to link conftest.$ac_ext, and return whether this succeeded. 2077ac_fn_c_try_link () 2078{ 2079 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2080 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 2081 if { { ac_try="$ac_link" 2082case "(($ac_try" in 2083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2084 *) ac_try_echo=$ac_try;; 2085esac 2086eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2087printf "%s\n" "$ac_try_echo"; } >&5 2088 (eval "$ac_link") 2>conftest.err 2089 ac_status=$? 2090 if test -s conftest.err; then 2091 grep -v '^ *+' conftest.err >conftest.er1 2092 cat conftest.er1 >&5 2093 mv -f conftest.er1 conftest.err 2094 fi 2095 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2096 test $ac_status = 0; } && { 2097 test -z "$ac_c_werror_flag" || 2098 test ! -s conftest.err 2099 } && test -s conftest$ac_exeext && { 2100 test "$cross_compiling" = yes || 2101 test -x conftest$ac_exeext 2102 } 2103then : 2104 ac_retval=0 2105else $as_nop 2106 printf "%s\n" "$as_me: failed program was:" >&5 2107sed 's/^/| /' conftest.$ac_ext >&5 2108 2109 ac_retval=1 2110fi 2111 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2112 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2113 # interfere with the next link command; also delete a directory that is 2114 # left behind by Apple's compiler. We do this before executing the actions. 2115 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2116 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2117 as_fn_set_status $ac_retval 2118 2119} # ac_fn_c_try_link 2120 2121# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2122# ------------------------------------------------------- 2123# Tests whether HEADER exists and can be compiled using the include files in 2124# INCLUDES, setting the cache variable VAR accordingly. 2125ac_fn_c_check_header_compile () 2126{ 2127 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2129printf %s "checking for $2... " >&6; } 2130if eval test \${$3+y} 2131then : 2132 printf %s "(cached) " >&6 2133else $as_nop 2134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2135/* end confdefs.h. */ 2136$4 2137#include <$2> 2138_ACEOF 2139if ac_fn_c_try_compile "$LINENO" 2140then : 2141 eval "$3=yes" 2142else $as_nop 2143 eval "$3=no" 2144fi 2145rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2146fi 2147eval ac_res=\$$3 2148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2149printf "%s\n" "$ac_res" >&6; } 2150 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2151 2152} # ac_fn_c_check_header_compile 2153 2154# ac_fn_c_check_func LINENO FUNC VAR 2155# ---------------------------------- 2156# Tests whether FUNC exists, setting the cache variable VAR accordingly 2157ac_fn_c_check_func () 2158{ 2159 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2161printf %s "checking for $2... " >&6; } 2162if eval test \${$3+y} 2163then : 2164 printf %s "(cached) " >&6 2165else $as_nop 2166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2167/* end confdefs.h. */ 2168/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2169 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2170#define $2 innocuous_$2 2171 2172/* System header to define __stub macros and hopefully few prototypes, 2173 which can conflict with char $2 (); below. */ 2174 2175#include <limits.h> 2176#undef $2 2177 2178/* Override any GCC internal prototype to avoid an error. 2179 Use char because int might match the return type of a GCC 2180 builtin and then its argument prototype would still apply. */ 2181#ifdef __cplusplus 2182extern "C" 2183#endif 2184char $2 (); 2185/* The GNU C library defines this for functions which it implements 2186 to always fail with ENOSYS. Some functions are actually named 2187 something starting with __ and the normal name is an alias. */ 2188#if defined __stub_$2 || defined __stub___$2 2189choke me 2190#endif 2191 2192int 2193main (void) 2194{ 2195return $2 (); 2196 ; 2197 return 0; 2198} 2199_ACEOF 2200if ac_fn_c_try_link "$LINENO" 2201then : 2202 eval "$3=yes" 2203else $as_nop 2204 eval "$3=no" 2205fi 2206rm -f core conftest.err conftest.$ac_objext conftest.beam \ 2207 conftest$ac_exeext conftest.$ac_ext 2208fi 2209eval ac_res=\$$3 2210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2211printf "%s\n" "$ac_res" >&6; } 2212 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2213 2214} # ac_fn_c_check_func 2215 2216# ac_fn_cxx_try_cpp LINENO 2217# ------------------------ 2218# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2219ac_fn_cxx_try_cpp () 2220{ 2221 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2222 if { { ac_try="$ac_cpp conftest.$ac_ext" 2223case "(($ac_try" in 2224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2225 *) ac_try_echo=$ac_try;; 2226esac 2227eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2228printf "%s\n" "$ac_try_echo"; } >&5 2229 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2230 ac_status=$? 2231 if test -s conftest.err; then 2232 grep -v '^ *+' conftest.err >conftest.er1 2233 cat conftest.er1 >&5 2234 mv -f conftest.er1 conftest.err 2235 fi 2236 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2237 test $ac_status = 0; } > conftest.i && { 2238 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2239 test ! -s conftest.err 2240 } 2241then : 2242 ac_retval=0 2243else $as_nop 2244 printf "%s\n" "$as_me: failed program was:" >&5 2245sed 's/^/| /' conftest.$ac_ext >&5 2246 2247 ac_retval=1 2248fi 2249 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2250 as_fn_set_status $ac_retval 2251 2252} # ac_fn_cxx_try_cpp 2253 2254# ac_fn_cxx_try_link LINENO 2255# ------------------------- 2256# Try to link conftest.$ac_ext, and return whether this succeeded. 2257ac_fn_cxx_try_link () 2258{ 2259 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2260 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 2261 if { { ac_try="$ac_link" 2262case "(($ac_try" in 2263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2264 *) ac_try_echo=$ac_try;; 2265esac 2266eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2267printf "%s\n" "$ac_try_echo"; } >&5 2268 (eval "$ac_link") 2>conftest.err 2269 ac_status=$? 2270 if test -s conftest.err; then 2271 grep -v '^ *+' conftest.err >conftest.er1 2272 cat conftest.er1 >&5 2273 mv -f conftest.er1 conftest.err 2274 fi 2275 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2276 test $ac_status = 0; } && { 2277 test -z "$ac_cxx_werror_flag" || 2278 test ! -s conftest.err 2279 } && test -s conftest$ac_exeext && { 2280 test "$cross_compiling" = yes || 2281 test -x conftest$ac_exeext 2282 } 2283then : 2284 ac_retval=0 2285else $as_nop 2286 printf "%s\n" "$as_me: failed program was:" >&5 2287sed 's/^/| /' conftest.$ac_ext >&5 2288 2289 ac_retval=1 2290fi 2291 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2292 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2293 # interfere with the next link command; also delete a directory that is 2294 # left behind by Apple's compiler. We do this before executing the actions. 2295 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2296 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2297 as_fn_set_status $ac_retval 2298 2299} # ac_fn_cxx_try_link 2300 2301# ac_fn_f77_try_link LINENO 2302# ------------------------- 2303# Try to link conftest.$ac_ext, and return whether this succeeded. 2304ac_fn_f77_try_link () 2305{ 2306 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2307 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 2308 if { { ac_try="$ac_link" 2309case "(($ac_try" in 2310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2311 *) ac_try_echo=$ac_try;; 2312esac 2313eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2314printf "%s\n" "$ac_try_echo"; } >&5 2315 (eval "$ac_link") 2>conftest.err 2316 ac_status=$? 2317 if test -s conftest.err; then 2318 grep -v '^ *+' conftest.err >conftest.er1 2319 cat conftest.er1 >&5 2320 mv -f conftest.er1 conftest.err 2321 fi 2322 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2323 test $ac_status = 0; } && { 2324 test -z "$ac_f77_werror_flag" || 2325 test ! -s conftest.err 2326 } && test -s conftest$ac_exeext && { 2327 test "$cross_compiling" = yes || 2328 test -x conftest$ac_exeext 2329 } 2330then : 2331 ac_retval=0 2332else $as_nop 2333 printf "%s\n" "$as_me: failed program was:" >&5 2334sed 's/^/| /' conftest.$ac_ext >&5 2335 2336 ac_retval=1 2337fi 2338 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2339 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2340 # interfere with the next link command; also delete a directory that is 2341 # left behind by Apple's compiler. We do this before executing the actions. 2342 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2343 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2344 as_fn_set_status $ac_retval 2345 2346} # ac_fn_f77_try_link 2347 2348# ac_fn_fc_try_link LINENO 2349# ------------------------ 2350# Try to link conftest.$ac_ext, and return whether this succeeded. 2351ac_fn_fc_try_link () 2352{ 2353 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2354 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 2355 if { { ac_try="$ac_link" 2356case "(($ac_try" in 2357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2358 *) ac_try_echo=$ac_try;; 2359esac 2360eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2361printf "%s\n" "$ac_try_echo"; } >&5 2362 (eval "$ac_link") 2>conftest.err 2363 ac_status=$? 2364 if test -s conftest.err; then 2365 grep -v '^ *+' conftest.err >conftest.er1 2366 cat conftest.er1 >&5 2367 mv -f conftest.er1 conftest.err 2368 fi 2369 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2370 test $ac_status = 0; } && { 2371 test -z "$ac_fc_werror_flag" || 2372 test ! -s conftest.err 2373 } && test -s conftest$ac_exeext && { 2374 test "$cross_compiling" = yes || 2375 test -x conftest$ac_exeext 2376 } 2377then : 2378 ac_retval=0 2379else $as_nop 2380 printf "%s\n" "$as_me: failed program was:" >&5 2381sed 's/^/| /' conftest.$ac_ext >&5 2382 2383 ac_retval=1 2384fi 2385 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2386 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2387 # interfere with the next link command; also delete a directory that is 2388 # left behind by Apple's compiler. We do this before executing the actions. 2389 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2390 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2391 as_fn_set_status $ac_retval 2392 2393} # ac_fn_fc_try_link 2394 2395# ac_fn_c_try_run LINENO 2396# ---------------------- 2397# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that 2398# executables *can* be run. 2399ac_fn_c_try_run () 2400{ 2401 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2402 if { { ac_try="$ac_link" 2403case "(($ac_try" in 2404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2405 *) ac_try_echo=$ac_try;; 2406esac 2407eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2408printf "%s\n" "$ac_try_echo"; } >&5 2409 (eval "$ac_link") 2>&5 2410 ac_status=$? 2411 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2412 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2413 { { case "(($ac_try" in 2414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2415 *) ac_try_echo=$ac_try;; 2416esac 2417eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2418printf "%s\n" "$ac_try_echo"; } >&5 2419 (eval "$ac_try") 2>&5 2420 ac_status=$? 2421 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2422 test $ac_status = 0; }; } 2423then : 2424 ac_retval=0 2425else $as_nop 2426 printf "%s\n" "$as_me: program exited with status $ac_status" >&5 2427 printf "%s\n" "$as_me: failed program was:" >&5 2428sed 's/^/| /' conftest.$ac_ext >&5 2429 2430 ac_retval=$ac_status 2431fi 2432 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2433 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2434 as_fn_set_status $ac_retval 2435 2436} # ac_fn_c_try_run 2437 2438# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2439# ---------------------------------------------------- 2440# Tries to find if the field MEMBER exists in type AGGR, after including 2441# INCLUDES, setting cache variable VAR accordingly. 2442ac_fn_c_check_member () 2443{ 2444 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2446printf %s "checking for $2.$3... " >&6; } 2447if eval test \${$4+y} 2448then : 2449 printf %s "(cached) " >&6 2450else $as_nop 2451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2452/* end confdefs.h. */ 2453$5 2454int 2455main (void) 2456{ 2457static $2 ac_aggr; 2458if (ac_aggr.$3) 2459return 0; 2460 ; 2461 return 0; 2462} 2463_ACEOF 2464if ac_fn_c_try_compile "$LINENO" 2465then : 2466 eval "$4=yes" 2467else $as_nop 2468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2469/* end confdefs.h. */ 2470$5 2471int 2472main (void) 2473{ 2474static $2 ac_aggr; 2475if (sizeof ac_aggr.$3) 2476return 0; 2477 ; 2478 return 0; 2479} 2480_ACEOF 2481if ac_fn_c_try_compile "$LINENO" 2482then : 2483 eval "$4=yes" 2484else $as_nop 2485 eval "$4=no" 2486fi 2487rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2488fi 2489rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2490fi 2491eval ac_res=\$$4 2492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2493printf "%s\n" "$ac_res" >&6; } 2494 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2495 2496} # ac_fn_c_check_member 2497 2498# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 2499# ------------------------------------------------------------------ 2500# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2501# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 2502ac_fn_check_decl () 2503{ 2504 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2505 as_decl_name=`echo $2|sed 's/ *(.*//'` 2506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2507printf %s "checking whether $as_decl_name is declared... " >&6; } 2508if eval test \${$3+y} 2509then : 2510 printf %s "(cached) " >&6 2511else $as_nop 2512 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2513 eval ac_save_FLAGS=\$$6 2514 as_fn_append $6 " $5" 2515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2516/* end confdefs.h. */ 2517$4 2518int 2519main (void) 2520{ 2521#ifndef $as_decl_name 2522#ifdef __cplusplus 2523 (void) $as_decl_use; 2524#else 2525 (void) $as_decl_name; 2526#endif 2527#endif 2528 2529 ; 2530 return 0; 2531} 2532_ACEOF 2533if ac_fn_c_try_compile "$LINENO" 2534then : 2535 eval "$3=yes" 2536else $as_nop 2537 eval "$3=no" 2538fi 2539rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2540 eval $6=\$ac_save_FLAGS 2541 2542fi 2543eval ac_res=\$$3 2544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2545printf "%s\n" "$ac_res" >&6; } 2546 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2547 2548} # ac_fn_check_decl 2549 2550# ac_fn_fc_try_run LINENO 2551# ----------------------- 2552# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that 2553# executables *can* be run. 2554ac_fn_fc_try_run () 2555{ 2556 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2557 if { { ac_try="$ac_link" 2558case "(($ac_try" in 2559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2560 *) ac_try_echo=$ac_try;; 2561esac 2562eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2563printf "%s\n" "$ac_try_echo"; } >&5 2564 (eval "$ac_link") 2>&5 2565 ac_status=$? 2566 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2567 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2568 { { case "(($ac_try" in 2569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2570 *) ac_try_echo=$ac_try;; 2571esac 2572eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2573printf "%s\n" "$ac_try_echo"; } >&5 2574 (eval "$ac_try") 2>&5 2575 ac_status=$? 2576 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2577 test $ac_status = 0; }; } 2578then : 2579 ac_retval=0 2580else $as_nop 2581 printf "%s\n" "$as_me: program exited with status $ac_status" >&5 2582 printf "%s\n" "$as_me: failed program was:" >&5 2583sed 's/^/| /' conftest.$ac_ext >&5 2584 2585 ac_retval=$ac_status 2586fi 2587 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2588 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2589 as_fn_set_status $ac_retval 2590 2591} # ac_fn_fc_try_run 2592 2593# ac_fn_f77_try_run LINENO 2594# ------------------------ 2595# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that 2596# executables *can* be run. 2597ac_fn_f77_try_run () 2598{ 2599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2600 if { { ac_try="$ac_link" 2601case "(($ac_try" in 2602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2603 *) ac_try_echo=$ac_try;; 2604esac 2605eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2606printf "%s\n" "$ac_try_echo"; } >&5 2607 (eval "$ac_link") 2>&5 2608 ac_status=$? 2609 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2610 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2611 { { case "(($ac_try" in 2612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2613 *) ac_try_echo=$ac_try;; 2614esac 2615eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2616printf "%s\n" "$ac_try_echo"; } >&5 2617 (eval "$ac_try") 2>&5 2618 ac_status=$? 2619 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2620 test $ac_status = 0; }; } 2621then : 2622 ac_retval=0 2623else $as_nop 2624 printf "%s\n" "$as_me: program exited with status $ac_status" >&5 2625 printf "%s\n" "$as_me: failed program was:" >&5 2626sed 's/^/| /' conftest.$ac_ext >&5 2627 2628 ac_retval=$ac_status 2629fi 2630 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2631 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2632 as_fn_set_status $ac_retval 2633 2634} # ac_fn_f77_try_run 2635ac_configure_args_raw= 2636for ac_arg 2637do 2638 case $ac_arg in 2639 *\'*) 2640 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2641 esac 2642 as_fn_append ac_configure_args_raw " '$ac_arg'" 2643done 2644 2645case $ac_configure_args_raw in 2646 *$as_nl*) 2647 ac_safe_unquote= ;; 2648 *) 2649 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 2650 ac_unsafe_a="$ac_unsafe_z#~" 2651 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 2652 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 2653esac 2654 2655cat >config.log <<_ACEOF 2656This file contains any messages produced by compilers while 2657running configure, to aid debugging if configure makes a mistake. 2658 2659It was created by cdi $as_me 2.0.1, which was 2660generated by GNU Autoconf 2.71. Invocation command line was 2661 2662 $ $0$ac_configure_args_raw 2663 2664_ACEOF 2665exec 5>>config.log 2666{ 2667cat <<_ASUNAME 2668## --------- ## 2669## Platform. ## 2670## --------- ## 2671 2672hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2673uname -m = `(uname -m) 2>/dev/null || echo unknown` 2674uname -r = `(uname -r) 2>/dev/null || echo unknown` 2675uname -s = `(uname -s) 2>/dev/null || echo unknown` 2676uname -v = `(uname -v) 2>/dev/null || echo unknown` 2677 2678/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2679/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2680 2681/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2682/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2683/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2684/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2685/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2686/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2687/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2688 2689_ASUNAME 2690 2691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2692for as_dir in $PATH 2693do 2694 IFS=$as_save_IFS 2695 case $as_dir in #((( 2696 '') as_dir=./ ;; 2697 */) ;; 2698 *) as_dir=$as_dir/ ;; 2699 esac 2700 printf "%s\n" "PATH: $as_dir" 2701 done 2702IFS=$as_save_IFS 2703 2704} >&5 2705 2706cat >&5 <<_ACEOF 2707 2708 2709## ----------- ## 2710## Core tests. ## 2711## ----------- ## 2712 2713_ACEOF 2714 2715 2716# Keep a trace of the command line. 2717# Strip out --no-create and --no-recursion so they do not pile up. 2718# Strip out --silent because we don't want to record it for future runs. 2719# Also quote any args containing shell meta-characters. 2720# Make two passes to allow for proper duplicate-argument suppression. 2721ac_configure_args= 2722ac_configure_args0= 2723ac_configure_args1= 2724ac_must_keep_next=false 2725for ac_pass in 1 2 2726do 2727 for ac_arg 2728 do 2729 case $ac_arg in 2730 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2731 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2732 | -silent | --silent | --silen | --sile | --sil) 2733 continue ;; 2734 *\'*) 2735 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2736 esac 2737 case $ac_pass in 2738 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2739 2) 2740 as_fn_append ac_configure_args1 " '$ac_arg'" 2741 if test $ac_must_keep_next = true; then 2742 ac_must_keep_next=false # Got value, back to normal. 2743 else 2744 case $ac_arg in 2745 *=* | --config-cache | -C | -disable-* | --disable-* \ 2746 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2747 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2748 | -with-* | --with-* | -without-* | --without-* | --x) 2749 case "$ac_configure_args0 " in 2750 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2751 esac 2752 ;; 2753 -* ) ac_must_keep_next=true ;; 2754 esac 2755 fi 2756 as_fn_append ac_configure_args " '$ac_arg'" 2757 ;; 2758 esac 2759 done 2760done 2761{ ac_configure_args0=; unset ac_configure_args0;} 2762{ ac_configure_args1=; unset ac_configure_args1;} 2763 2764# When interrupted or exit'd, cleanup temporary files, and complete 2765# config.log. We remove comments because anyway the quotes in there 2766# would cause problems or look ugly. 2767# WARNING: Use '\'' to represent an apostrophe within the trap. 2768# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2769trap 'exit_status=$? 2770 # Sanitize IFS. 2771 IFS=" "" $as_nl" 2772 # Save into config.log some information that might help in debugging. 2773 { 2774 echo 2775 2776 printf "%s\n" "## ---------------- ## 2777## Cache variables. ## 2778## ---------------- ##" 2779 echo 2780 # The following way of writing the cache mishandles newlines in values, 2781( 2782 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2783 eval ac_val=\$$ac_var 2784 case $ac_val in #( 2785 *${as_nl}*) 2786 case $ac_var in #( 2787 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2788printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2789 esac 2790 case $ac_var in #( 2791 _ | IFS | as_nl) ;; #( 2792 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2793 *) { eval $ac_var=; unset $ac_var;} ;; 2794 esac ;; 2795 esac 2796 done 2797 (set) 2>&1 | 2798 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2799 *${as_nl}ac_space=\ *) 2800 sed -n \ 2801 "s/'\''/'\''\\\\'\'''\''/g; 2802 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2803 ;; #( 2804 *) 2805 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2806 ;; 2807 esac | 2808 sort 2809) 2810 echo 2811 2812 printf "%s\n" "## ----------------- ## 2813## Output variables. ## 2814## ----------------- ##" 2815 echo 2816 for ac_var in $ac_subst_vars 2817 do 2818 eval ac_val=\$$ac_var 2819 case $ac_val in 2820 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2821 esac 2822 printf "%s\n" "$ac_var='\''$ac_val'\''" 2823 done | sort 2824 echo 2825 2826 if test -n "$ac_subst_files"; then 2827 printf "%s\n" "## ------------------- ## 2828## File substitutions. ## 2829## ------------------- ##" 2830 echo 2831 for ac_var in $ac_subst_files 2832 do 2833 eval ac_val=\$$ac_var 2834 case $ac_val in 2835 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2836 esac 2837 printf "%s\n" "$ac_var='\''$ac_val'\''" 2838 done | sort 2839 echo 2840 fi 2841 2842 if test -s confdefs.h; then 2843 printf "%s\n" "## ----------- ## 2844## confdefs.h. ## 2845## ----------- ##" 2846 echo 2847 cat confdefs.h 2848 echo 2849 fi 2850 test "$ac_signal" != 0 && 2851 printf "%s\n" "$as_me: caught signal $ac_signal" 2852 printf "%s\n" "$as_me: exit $exit_status" 2853 } >&5 2854 rm -f core *.core core.conftest.* && 2855 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2856 exit $exit_status 2857' 0 2858for ac_signal in 1 2 13 15; do 2859 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2860done 2861ac_signal=0 2862 2863# confdefs.h avoids OS command line length limits that DEFS can exceed. 2864rm -f -r conftest* confdefs.h 2865 2866printf "%s\n" "/* confdefs.h */" > confdefs.h 2867 2868# Predefined preprocessor variables. 2869 2870printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2871 2872printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2873 2874printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2875 2876printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2877 2878printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2879 2880printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2881 2882 2883# Let the site file select an alternate cache file if it wants to. 2884# Prefer an explicitly selected file to automatically selected ones. 2885if test -n "$CONFIG_SITE"; then 2886 ac_site_files="$CONFIG_SITE" 2887elif test "x$prefix" != xNONE; then 2888 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2889else 2890 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2891fi 2892 2893for ac_site_file in $ac_site_files 2894do 2895 case $ac_site_file in #( 2896 */*) : 2897 ;; #( 2898 *) : 2899 ac_site_file=./$ac_site_file ;; 2900esac 2901 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2903printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2904 sed 's/^/| /' "$ac_site_file" >&5 2905 . "$ac_site_file" \ 2906 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2907printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2908as_fn_error $? "failed to load site script $ac_site_file 2909See \`config.log' for more details" "$LINENO" 5; } 2910 fi 2911done 2912 2913if test -r "$cache_file"; then 2914 # Some versions of bash will fail to source /dev/null (special files 2915 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2916 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2918printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2919 case $cache_file in 2920 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2921 *) . "./$cache_file";; 2922 esac 2923 fi 2924else 2925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2926printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2927 >$cache_file 2928fi 2929 2930# Test code for whether the C compiler supports C89 (global declarations) 2931ac_c_conftest_c89_globals=' 2932/* Does the compiler advertise C89 conformance? 2933 Do not test the value of __STDC__, because some compilers set it to 0 2934 while being otherwise adequately conformant. */ 2935#if !defined __STDC__ 2936# error "Compiler does not advertise C89 conformance" 2937#endif 2938 2939#include <stddef.h> 2940#include <stdarg.h> 2941struct stat; 2942/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2943struct buf { int x; }; 2944struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2945static char *e (p, i) 2946 char **p; 2947 int i; 2948{ 2949 return p[i]; 2950} 2951static char *f (char * (*g) (char **, int), char **p, ...) 2952{ 2953 char *s; 2954 va_list v; 2955 va_start (v,p); 2956 s = g (p, va_arg (v,int)); 2957 va_end (v); 2958 return s; 2959} 2960 2961/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2962 function prototypes and stuff, but not \xHH hex character constants. 2963 These do not provoke an error unfortunately, instead are silently treated 2964 as an "x". The following induces an error, until -std is added to get 2965 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2966 array size at least. It is necessary to write \x00 == 0 to get something 2967 that is true only with -std. */ 2968int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2969 2970/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2971 inside strings and character constants. */ 2972#define FOO(x) '\''x'\'' 2973int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2974 2975int test (int i, double x); 2976struct s1 {int (*f) (int a);}; 2977struct s2 {int (*f) (double a);}; 2978int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2979 int, int);' 2980 2981# Test code for whether the C compiler supports C89 (body of main). 2982ac_c_conftest_c89_main=' 2983ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2984' 2985 2986# Test code for whether the C compiler supports C99 (global declarations) 2987ac_c_conftest_c99_globals=' 2988// Does the compiler advertise C99 conformance? 2989#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2990# error "Compiler does not advertise C99 conformance" 2991#endif 2992 2993#include <stdbool.h> 2994extern int puts (const char *); 2995extern int printf (const char *, ...); 2996extern int dprintf (int, const char *, ...); 2997extern void *malloc (size_t); 2998 2999// Check varargs macros. These examples are taken from C99 6.10.3.5. 3000// dprintf is used instead of fprintf to avoid needing to declare 3001// FILE and stderr. 3002#define debug(...) dprintf (2, __VA_ARGS__) 3003#define showlist(...) puts (#__VA_ARGS__) 3004#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3005static void 3006test_varargs_macros (void) 3007{ 3008 int x = 1234; 3009 int y = 5678; 3010 debug ("Flag"); 3011 debug ("X = %d\n", x); 3012 showlist (The first, second, and third items.); 3013 report (x>y, "x is %d but y is %d", x, y); 3014} 3015 3016// Check long long types. 3017#define BIG64 18446744073709551615ull 3018#define BIG32 4294967295ul 3019#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3020#if !BIG_OK 3021 #error "your preprocessor is broken" 3022#endif 3023#if BIG_OK 3024#else 3025 #error "your preprocessor is broken" 3026#endif 3027static long long int bignum = -9223372036854775807LL; 3028static unsigned long long int ubignum = BIG64; 3029 3030struct incomplete_array 3031{ 3032 int datasize; 3033 double data[]; 3034}; 3035 3036struct named_init { 3037 int number; 3038 const wchar_t *name; 3039 double average; 3040}; 3041 3042typedef const char *ccp; 3043 3044static inline int 3045test_restrict (ccp restrict text) 3046{ 3047 // See if C++-style comments work. 3048 // Iterate through items via the restricted pointer. 3049 // Also check for declarations in for loops. 3050 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 3051 continue; 3052 return 0; 3053} 3054 3055// Check varargs and va_copy. 3056static bool 3057test_varargs (const char *format, ...) 3058{ 3059 va_list args; 3060 va_start (args, format); 3061 va_list args_copy; 3062 va_copy (args_copy, args); 3063 3064 const char *str = ""; 3065 int number = 0; 3066 float fnumber = 0; 3067 3068 while (*format) 3069 { 3070 switch (*format++) 3071 { 3072 case '\''s'\'': // string 3073 str = va_arg (args_copy, const char *); 3074 break; 3075 case '\''d'\'': // int 3076 number = va_arg (args_copy, int); 3077 break; 3078 case '\''f'\'': // float 3079 fnumber = va_arg (args_copy, double); 3080 break; 3081 default: 3082 break; 3083 } 3084 } 3085 va_end (args_copy); 3086 va_end (args); 3087 3088 return *str && number && fnumber; 3089} 3090' 3091 3092# Test code for whether the C compiler supports C99 (body of main). 3093ac_c_conftest_c99_main=' 3094 // Check bool. 3095 _Bool success = false; 3096 success |= (argc != 0); 3097 3098 // Check restrict. 3099 if (test_restrict ("String literal") == 0) 3100 success = true; 3101 char *restrict newvar = "Another string"; 3102 3103 // Check varargs. 3104 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 3105 test_varargs_macros (); 3106 3107 // Check flexible array members. 3108 struct incomplete_array *ia = 3109 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3110 ia->datasize = 10; 3111 for (int i = 0; i < ia->datasize; ++i) 3112 ia->data[i] = i * 1.234; 3113 3114 // Check named initializers. 3115 struct named_init ni = { 3116 .number = 34, 3117 .name = L"Test wide string", 3118 .average = 543.34343, 3119 }; 3120 3121 ni.number = 58; 3122 3123 int dynamic_array[ni.number]; 3124 dynamic_array[0] = argv[0][0]; 3125 dynamic_array[ni.number - 1] = 543; 3126 3127 // work around unused variable warnings 3128 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 3129 || dynamic_array[ni.number - 1] != 543); 3130' 3131 3132# Test code for whether the C compiler supports C11 (global declarations) 3133ac_c_conftest_c11_globals=' 3134// Does the compiler advertise C11 conformance? 3135#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 3136# error "Compiler does not advertise C11 conformance" 3137#endif 3138 3139// Check _Alignas. 3140char _Alignas (double) aligned_as_double; 3141char _Alignas (0) no_special_alignment; 3142extern char aligned_as_int; 3143char _Alignas (0) _Alignas (int) aligned_as_int; 3144 3145// Check _Alignof. 3146enum 3147{ 3148 int_alignment = _Alignof (int), 3149 int_array_alignment = _Alignof (int[100]), 3150 char_alignment = _Alignof (char) 3151}; 3152_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 3153 3154// Check _Noreturn. 3155int _Noreturn does_not_return (void) { for (;;) continue; } 3156 3157// Check _Static_assert. 3158struct test_static_assert 3159{ 3160 int x; 3161 _Static_assert (sizeof (int) <= sizeof (long int), 3162 "_Static_assert does not work in struct"); 3163 long int y; 3164}; 3165 3166// Check UTF-8 literals. 3167#define u8 syntax error! 3168char const utf8_literal[] = u8"happens to be ASCII" "another string"; 3169 3170// Check duplicate typedefs. 3171typedef long *long_ptr; 3172typedef long int *long_ptr; 3173typedef long_ptr long_ptr; 3174 3175// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 3176struct anonymous 3177{ 3178 union { 3179 struct { int i; int j; }; 3180 struct { int k; long int l; } w; 3181 }; 3182 int m; 3183} v1; 3184' 3185 3186# Test code for whether the C compiler supports C11 (body of main). 3187ac_c_conftest_c11_main=' 3188 _Static_assert ((offsetof (struct anonymous, i) 3189 == offsetof (struct anonymous, w.k)), 3190 "Anonymous union alignment botch"); 3191 v1.i = 2; 3192 v1.w.k = 5; 3193 ok |= v1.i != 5; 3194' 3195 3196# Test code for whether the C compiler supports C11 (complete). 3197ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 3198${ac_c_conftest_c99_globals} 3199${ac_c_conftest_c11_globals} 3200 3201int 3202main (int argc, char **argv) 3203{ 3204 int ok = 0; 3205 ${ac_c_conftest_c89_main} 3206 ${ac_c_conftest_c99_main} 3207 ${ac_c_conftest_c11_main} 3208 return ok; 3209} 3210" 3211 3212# Test code for whether the C compiler supports C99 (complete). 3213ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 3214${ac_c_conftest_c99_globals} 3215 3216int 3217main (int argc, char **argv) 3218{ 3219 int ok = 0; 3220 ${ac_c_conftest_c89_main} 3221 ${ac_c_conftest_c99_main} 3222 return ok; 3223} 3224" 3225 3226# Test code for whether the C compiler supports C89 (complete). 3227ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 3228 3229int 3230main (int argc, char **argv) 3231{ 3232 int ok = 0; 3233 ${ac_c_conftest_c89_main} 3234 return ok; 3235} 3236" 3237 3238# Test code for whether the C++ compiler supports C++98 (global declarations) 3239ac_cxx_conftest_cxx98_globals=' 3240// Does the compiler advertise C++98 conformance? 3241#if !defined __cplusplus || __cplusplus < 199711L 3242# error "Compiler does not advertise C++98 conformance" 3243#endif 3244 3245// These inclusions are to reject old compilers that 3246// lack the unsuffixed header files. 3247#include <cstdlib> 3248#include <exception> 3249 3250// <cassert> and <cstring> are *not* freestanding headers in C++98. 3251extern void assert (int); 3252namespace std { 3253 extern int strcmp (const char *, const char *); 3254} 3255 3256// Namespaces, exceptions, and templates were all added after "C++ 2.0". 3257using std::exception; 3258using std::strcmp; 3259 3260namespace { 3261 3262void test_exception_syntax() 3263{ 3264 try { 3265 throw "test"; 3266 } catch (const char *s) { 3267 // Extra parentheses suppress a warning when building autoconf itself, 3268 // due to lint rules shared with more typical C programs. 3269 assert (!(strcmp) (s, "test")); 3270 } 3271} 3272 3273template <typename T> struct test_template 3274{ 3275 T const val; 3276 explicit test_template(T t) : val(t) {} 3277 template <typename U> T add(U u) { return static_cast<T>(u) + val; } 3278}; 3279 3280} // anonymous namespace 3281' 3282 3283# Test code for whether the C++ compiler supports C++98 (body of main) 3284ac_cxx_conftest_cxx98_main=' 3285 assert (argc); 3286 assert (! argv[0]); 3287{ 3288 test_exception_syntax (); 3289 test_template<double> tt (2.0); 3290 assert (tt.add (4) == 6.0); 3291 assert (true && !false); 3292} 3293' 3294 3295# Test code for whether the C++ compiler supports C++11 (global declarations) 3296ac_cxx_conftest_cxx11_globals=' 3297// Does the compiler advertise C++ 2011 conformance? 3298#if !defined __cplusplus || __cplusplus < 201103L 3299# error "Compiler does not advertise C++11 conformance" 3300#endif 3301 3302namespace cxx11test 3303{ 3304 constexpr int get_val() { return 20; } 3305 3306 struct testinit 3307 { 3308 int i; 3309 double d; 3310 }; 3311 3312 class delegate 3313 { 3314 public: 3315 delegate(int n) : n(n) {} 3316 delegate(): delegate(2354) {} 3317 3318 virtual int getval() { return this->n; }; 3319 protected: 3320 int n; 3321 }; 3322 3323 class overridden : public delegate 3324 { 3325 public: 3326 overridden(int n): delegate(n) {} 3327 virtual int getval() override final { return this->n * 2; } 3328 }; 3329 3330 class nocopy 3331 { 3332 public: 3333 nocopy(int i): i(i) {} 3334 nocopy() = default; 3335 nocopy(const nocopy&) = delete; 3336 nocopy & operator=(const nocopy&) = delete; 3337 private: 3338 int i; 3339 }; 3340 3341 // for testing lambda expressions 3342 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v) 3343 { 3344 return f(v); 3345 } 3346 3347 // for testing variadic templates and trailing return types 3348 template <typename V> auto sum(V first) -> V 3349 { 3350 return first; 3351 } 3352 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V 3353 { 3354 return first + sum(rest...); 3355 } 3356} 3357' 3358 3359# Test code for whether the C++ compiler supports C++11 (body of main) 3360ac_cxx_conftest_cxx11_main=' 3361{ 3362 // Test auto and decltype 3363 auto a1 = 6538; 3364 auto a2 = 48573953.4; 3365 auto a3 = "String literal"; 3366 3367 int total = 0; 3368 for (auto i = a3; *i; ++i) { total += *i; } 3369 3370 decltype(a2) a4 = 34895.034; 3371} 3372{ 3373 // Test constexpr 3374 short sa[cxx11test::get_val()] = { 0 }; 3375} 3376{ 3377 // Test initializer lists 3378 cxx11test::testinit il = { 4323, 435234.23544 }; 3379} 3380{ 3381 // Test range-based for 3382 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3, 3383 14, 19, 17, 8, 6, 20, 16, 2, 11, 1}; 3384 for (auto &x : array) { x += 23; } 3385} 3386{ 3387 // Test lambda expressions 3388 using cxx11test::eval; 3389 assert (eval ([](int x) { return x*2; }, 21) == 42); 3390 double d = 2.0; 3391 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0); 3392 assert (d == 5.0); 3393 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0); 3394 assert (d == 5.0); 3395} 3396{ 3397 // Test use of variadic templates 3398 using cxx11test::sum; 3399 auto a = sum(1); 3400 auto b = sum(1, 2); 3401 auto c = sum(1.0, 2.0, 3.0); 3402} 3403{ 3404 // Test constructor delegation 3405 cxx11test::delegate d1; 3406 cxx11test::delegate d2(); 3407 cxx11test::delegate d3(45); 3408} 3409{ 3410 // Test override and final 3411 cxx11test::overridden o1(55464); 3412} 3413{ 3414 // Test nullptr 3415 char *c = nullptr; 3416} 3417{ 3418 // Test template brackets 3419 test_template<::test_template<int>> v(test_template<int>(12)); 3420} 3421{ 3422 // Unicode literals 3423 char const *utf8 = u8"UTF-8 string \u2500"; 3424 char16_t const *utf16 = u"UTF-8 string \u2500"; 3425 char32_t const *utf32 = U"UTF-32 string \u2500"; 3426} 3427' 3428 3429# Test code for whether the C compiler supports C++11 (complete). 3430ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals} 3431${ac_cxx_conftest_cxx11_globals} 3432 3433int 3434main (int argc, char **argv) 3435{ 3436 int ok = 0; 3437 ${ac_cxx_conftest_cxx98_main} 3438 ${ac_cxx_conftest_cxx11_main} 3439 return ok; 3440} 3441" 3442 3443# Test code for whether the C compiler supports C++98 (complete). 3444ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals} 3445int 3446main (int argc, char **argv) 3447{ 3448 int ok = 0; 3449 ${ac_cxx_conftest_cxx98_main} 3450 return ok; 3451} 3452" 3453 3454as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 3455as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 3456as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 3457as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 3458as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 3459as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 3460as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 3461as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 3462as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 3463as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H" 3464as_fn_append ac_func_c_list " getpagesize HAVE_GETPAGESIZE" 3465 3466# Auxiliary files required by this configure script. 3467ac_aux_files="ltmain.sh compile missing install-sh config.guess config.sub" 3468 3469# Locations in which to look for auxiliary files. 3470ac_aux_dir_candidates="${srcdir}/config" 3471 3472# Search for a directory containing all of the required auxiliary files, 3473# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 3474# If we don't find one directory that contains all the files we need, 3475# we report the set of missing files from the *first* directory in 3476# $ac_aux_dir_candidates and give up. 3477ac_missing_aux_files="" 3478ac_first_candidate=: 3479printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 3480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3481as_found=false 3482for as_dir in $ac_aux_dir_candidates 3483do 3484 IFS=$as_save_IFS 3485 case $as_dir in #((( 3486 '') as_dir=./ ;; 3487 */) ;; 3488 *) as_dir=$as_dir/ ;; 3489 esac 3490 as_found=: 3491 3492 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 3493 ac_aux_dir_found=yes 3494 ac_install_sh= 3495 for ac_aux in $ac_aux_files 3496 do 3497 # As a special case, if "install-sh" is required, that requirement 3498 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 3499 # and $ac_install_sh is set appropriately for whichever one is found. 3500 if test x"$ac_aux" = x"install-sh" 3501 then 3502 if test -f "${as_dir}install-sh"; then 3503 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 3504 ac_install_sh="${as_dir}install-sh -c" 3505 elif test -f "${as_dir}install.sh"; then 3506 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 3507 ac_install_sh="${as_dir}install.sh -c" 3508 elif test -f "${as_dir}shtool"; then 3509 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 3510 ac_install_sh="${as_dir}shtool install -c" 3511 else 3512 ac_aux_dir_found=no 3513 if $ac_first_candidate; then 3514 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 3515 else 3516 break 3517 fi 3518 fi 3519 else 3520 if test -f "${as_dir}${ac_aux}"; then 3521 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 3522 else 3523 ac_aux_dir_found=no 3524 if $ac_first_candidate; then 3525 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 3526 else 3527 break 3528 fi 3529 fi 3530 fi 3531 done 3532 if test "$ac_aux_dir_found" = yes; then 3533 ac_aux_dir="$as_dir" 3534 break 3535 fi 3536 ac_first_candidate=false 3537 3538 as_found=false 3539done 3540IFS=$as_save_IFS 3541if $as_found 3542then : 3543 3544else $as_nop 3545 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 3546fi 3547 3548 3549# These three variables are undocumented and unsupported, 3550# and are intended to be withdrawn in a future Autoconf release. 3551# They can cause serious problems if a builder's source tree is in a directory 3552# whose full name contains unusual characters. 3553if test -f "${ac_aux_dir}config.guess"; then 3554 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 3555fi 3556if test -f "${ac_aux_dir}config.sub"; then 3557 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 3558fi 3559if test -f "$ac_aux_dir/configure"; then 3560 ac_configure="$SHELL ${ac_aux_dir}configure" 3561fi 3562 3563# Check that the precious variables saved in the cache have kept the same 3564# value. 3565ac_cache_corrupted=false 3566for ac_var in $ac_precious_vars; do 3567 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3568 eval ac_new_set=\$ac_env_${ac_var}_set 3569 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3570 eval ac_new_val=\$ac_env_${ac_var}_value 3571 case $ac_old_set,$ac_new_set in 3572 set,) 3573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3574printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3575 ac_cache_corrupted=: ;; 3576 ,set) 3577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3578printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3579 ac_cache_corrupted=: ;; 3580 ,);; 3581 *) 3582 if test "x$ac_old_val" != "x$ac_new_val"; then 3583 # differences in whitespace do not lead to failure. 3584 ac_old_val_w=`echo x $ac_old_val` 3585 ac_new_val_w=`echo x $ac_new_val` 3586 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3588printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3589 ac_cache_corrupted=: 3590 else 3591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3592printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3593 eval $ac_var=\$ac_old_val 3594 fi 3595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3596printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 3597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3598printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 3599 fi;; 3600 esac 3601 # Pass precious variables to config.status. 3602 if test "$ac_new_set" = set; then 3603 case $ac_new_val in 3604 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3605 *) ac_arg=$ac_var=$ac_new_val ;; 3606 esac 3607 case " $ac_configure_args " in 3608 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3609 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3610 esac 3611 fi 3612done 3613if $ac_cache_corrupted; then 3614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3615printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3617printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 3618 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 3619 and start over" "$LINENO" 5 3620fi 3621## -------------------- ## 3622## Main body of script. ## 3623## -------------------- ## 3624 3625ac_ext=c 3626ac_cpp='$CPP $CPPFLAGS' 3627ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3628ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3629ac_compiler_gnu=$ac_cv_c_compiler_gnu 3630 3631 3632 3633 3634printf "%s\n" "#define CDI \"$PACKAGE_VERSION\"" >>confdefs.h 3635 3636 3637echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}" 3638 3639CONFIG_ABORT=yes 3640 3641 3642 3643 3644 3645 3646 # Make sure we can run config.sub. 3647$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 3648 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 3649 3650{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3651printf %s "checking build system type... " >&6; } 3652if test ${ac_cv_build+y} 3653then : 3654 printf %s "(cached) " >&6 3655else $as_nop 3656 ac_build_alias=$build_alias 3657test "x$ac_build_alias" = x && 3658 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 3659test "x$ac_build_alias" = x && 3660 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3661ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 3662 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 3663 3664fi 3665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3666printf "%s\n" "$ac_cv_build" >&6; } 3667case $ac_cv_build in 3668*-*-*) ;; 3669*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3670esac 3671build=$ac_cv_build 3672ac_save_IFS=$IFS; IFS='-' 3673set x $ac_cv_build 3674shift 3675build_cpu=$1 3676build_vendor=$2 3677shift; shift 3678# Remember, the first character of IFS is used to create $*, 3679# except with old shells: 3680build_os=$* 3681IFS=$ac_save_IFS 3682case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3683 3684 3685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3686printf %s "checking host system type... " >&6; } 3687if test ${ac_cv_host+y} 3688then : 3689 printf %s "(cached) " >&6 3690else $as_nop 3691 if test "x$host_alias" = x; then 3692 ac_cv_host=$ac_cv_build 3693else 3694 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 3695 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 3696fi 3697 3698fi 3699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3700printf "%s\n" "$ac_cv_host" >&6; } 3701case $ac_cv_host in 3702*-*-*) ;; 3703*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3704esac 3705host=$ac_cv_host 3706ac_save_IFS=$IFS; IFS='-' 3707set x $ac_cv_host 3708shift 3709host_cpu=$1 3710host_vendor=$2 3711shift; shift 3712# Remember, the first character of IFS is used to create $*, 3713# except with old shells: 3714host_os=$* 3715IFS=$ac_save_IFS 3716case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3717 3718 3719 3720 3721am__api_version='1.16' 3722 3723 3724 # Find a good install program. We prefer a C program (faster), 3725# so one script is as good as another. But avoid the broken or 3726# incompatible versions: 3727# SysV /etc/install, /usr/sbin/install 3728# SunOS /usr/etc/install 3729# IRIX /sbin/install 3730# AIX /bin/install 3731# AmigaOS /C/install, which installs bootblocks on floppy discs 3732# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3733# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3734# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3735# OS/2's system install, which has a completely different semantic 3736# ./install, which can be erroneously created by make from ./install.sh. 3737# Reject install programs that cannot install multiple files. 3738{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3739printf %s "checking for a BSD-compatible install... " >&6; } 3740if test -z "$INSTALL"; then 3741if test ${ac_cv_path_install+y} 3742then : 3743 printf %s "(cached) " >&6 3744else $as_nop 3745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3746for as_dir in $PATH 3747do 3748 IFS=$as_save_IFS 3749 case $as_dir in #((( 3750 '') as_dir=./ ;; 3751 */) ;; 3752 *) as_dir=$as_dir/ ;; 3753 esac 3754 # Account for fact that we put trailing slashes in our PATH walk. 3755case $as_dir in #(( 3756 ./ | /[cC]/* | \ 3757 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3758 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3759 /usr/ucb/* ) ;; 3760 *) 3761 # OSF1 and SCO ODT 3.0 have their own names for install. 3762 # Don't use installbsd from OSF since it installs stuff as root 3763 # by default. 3764 for ac_prog in ginstall scoinst install; do 3765 for ac_exec_ext in '' $ac_executable_extensions; do 3766 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 3767 if test $ac_prog = install && 3768 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3769 # AIX install. It has an incompatible calling convention. 3770 : 3771 elif test $ac_prog = install && 3772 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3773 # program-specific install script used by HP pwplus--don't use. 3774 : 3775 else 3776 rm -rf conftest.one conftest.two conftest.dir 3777 echo one > conftest.one 3778 echo two > conftest.two 3779 mkdir conftest.dir 3780 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 3781 test -s conftest.one && test -s conftest.two && 3782 test -s conftest.dir/conftest.one && 3783 test -s conftest.dir/conftest.two 3784 then 3785 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 3786 break 3 3787 fi 3788 fi 3789 fi 3790 done 3791 done 3792 ;; 3793esac 3794 3795 done 3796IFS=$as_save_IFS 3797 3798rm -rf conftest.one conftest.two conftest.dir 3799 3800fi 3801 if test ${ac_cv_path_install+y}; then 3802 INSTALL=$ac_cv_path_install 3803 else 3804 # As a last resort, use the slow shell script. Don't cache a 3805 # value for INSTALL within a source directory, because that will 3806 # break other packages using the cache if that directory is 3807 # removed, or if the value is a relative name. 3808 INSTALL=$ac_install_sh 3809 fi 3810fi 3811{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3812printf "%s\n" "$INSTALL" >&6; } 3813 3814# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3815# It thinks the first close brace ends the variable substitution. 3816test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3817 3818test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3819 3820test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3821 3822{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3823printf %s "checking whether build environment is sane... " >&6; } 3824# Reject unsafe characters in $srcdir or the absolute working directory 3825# name. Accept space and tab only in the latter. 3826am_lf=' 3827' 3828case `pwd` in 3829 *[\\\"\#\$\&\'\`$am_lf]*) 3830 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3831esac 3832case $srcdir in 3833 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3834 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3835esac 3836 3837# Do 'set' in a subshell so we don't clobber the current shell's 3838# arguments. Must try -L first in case configure is actually a 3839# symlink; some systems play weird games with the mod time of symlinks 3840# (eg FreeBSD returns the mod time of the symlink's containing 3841# directory). 3842if ( 3843 am_has_slept=no 3844 for am_try in 1 2; do 3845 echo "timestamp, slept: $am_has_slept" > conftest.file 3846 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3847 if test "$*" = "X"; then 3848 # -L didn't work. 3849 set X `ls -t "$srcdir/configure" conftest.file` 3850 fi 3851 if test "$*" != "X $srcdir/configure conftest.file" \ 3852 && test "$*" != "X conftest.file $srcdir/configure"; then 3853 3854 # If neither matched, then we have a broken ls. This can happen 3855 # if, for instance, CONFIG_SHELL is bash and it inherits a 3856 # broken ls alias from the environment. This has actually 3857 # happened. Such a system could not be considered "sane". 3858 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3859 alias in your environment" "$LINENO" 5 3860 fi 3861 if test "$2" = conftest.file || test $am_try -eq 2; then 3862 break 3863 fi 3864 # Just in case. 3865 sleep 1 3866 am_has_slept=yes 3867 done 3868 test "$2" = conftest.file 3869 ) 3870then 3871 # Ok. 3872 : 3873else 3874 as_fn_error $? "newly created file is older than distributed files! 3875Check your system clock" "$LINENO" 5 3876fi 3877{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3878printf "%s\n" "yes" >&6; } 3879# If we didn't sleep, we still need to ensure time stamps of config.status and 3880# generated files are strictly newer. 3881am_sleep_pid= 3882if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3883 ( sleep 1 ) & 3884 am_sleep_pid=$! 3885fi 3886 3887rm -f conftest.file 3888 3889test "$program_prefix" != NONE && 3890 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3891# Use a double $ so make ignores it. 3892test "$program_suffix" != NONE && 3893 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3894# Double any \ or $. 3895# By default was `s,x,x', remove it if useless. 3896ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3897program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 3898 3899 3900# Expand $ac_aux_dir to an absolute path. 3901am_aux_dir=`cd "$ac_aux_dir" && pwd` 3902 3903 3904 if test x"${MISSING+set}" != xset; then 3905 MISSING="\${SHELL} '$am_aux_dir/missing'" 3906fi 3907# Use eval to expand $SHELL 3908if eval "$MISSING --is-lightweight"; then 3909 am_missing_run="$MISSING " 3910else 3911 am_missing_run= 3912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3913printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3914fi 3915 3916if test x"${install_sh+set}" != xset; then 3917 case $am_aux_dir in 3918 *\ * | *\ *) 3919 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3920 *) 3921 install_sh="\${SHELL} $am_aux_dir/install-sh" 3922 esac 3923fi 3924 3925# Installed binaries are usually stripped using 'strip' when the user 3926# run "make install-strip". However 'strip' might not be the right 3927# tool to use in cross-compilation environments, therefore Automake 3928# will honor the 'STRIP' environment variable to overrule this program. 3929if test "$cross_compiling" != no; then 3930 if test -n "$ac_tool_prefix"; then 3931 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3932set dummy ${ac_tool_prefix}strip; ac_word=$2 3933{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3934printf %s "checking for $ac_word... " >&6; } 3935if test ${ac_cv_prog_STRIP+y} 3936then : 3937 printf %s "(cached) " >&6 3938else $as_nop 3939 if test -n "$STRIP"; then 3940 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3941else 3942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3943for as_dir in $PATH 3944do 3945 IFS=$as_save_IFS 3946 case $as_dir in #((( 3947 '') as_dir=./ ;; 3948 */) ;; 3949 *) as_dir=$as_dir/ ;; 3950 esac 3951 for ac_exec_ext in '' $ac_executable_extensions; do 3952 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3953 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3954 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3955 break 2 3956 fi 3957done 3958 done 3959IFS=$as_save_IFS 3960 3961fi 3962fi 3963STRIP=$ac_cv_prog_STRIP 3964if test -n "$STRIP"; then 3965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3966printf "%s\n" "$STRIP" >&6; } 3967else 3968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3969printf "%s\n" "no" >&6; } 3970fi 3971 3972 3973fi 3974if test -z "$ac_cv_prog_STRIP"; then 3975 ac_ct_STRIP=$STRIP 3976 # Extract the first word of "strip", so it can be a program name with args. 3977set dummy strip; ac_word=$2 3978{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3979printf %s "checking for $ac_word... " >&6; } 3980if test ${ac_cv_prog_ac_ct_STRIP+y} 3981then : 3982 printf %s "(cached) " >&6 3983else $as_nop 3984 if test -n "$ac_ct_STRIP"; then 3985 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3986else 3987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3988for as_dir in $PATH 3989do 3990 IFS=$as_save_IFS 3991 case $as_dir in #((( 3992 '') as_dir=./ ;; 3993 */) ;; 3994 *) as_dir=$as_dir/ ;; 3995 esac 3996 for ac_exec_ext in '' $ac_executable_extensions; do 3997 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3998 ac_cv_prog_ac_ct_STRIP="strip" 3999 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4000 break 2 4001 fi 4002done 4003 done 4004IFS=$as_save_IFS 4005 4006fi 4007fi 4008ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4009if test -n "$ac_ct_STRIP"; then 4010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4011printf "%s\n" "$ac_ct_STRIP" >&6; } 4012else 4013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4014printf "%s\n" "no" >&6; } 4015fi 4016 4017 if test "x$ac_ct_STRIP" = x; then 4018 STRIP=":" 4019 else 4020 case $cross_compiling:$ac_tool_warned in 4021yes:) 4022{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4023printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4024ac_tool_warned=yes ;; 4025esac 4026 STRIP=$ac_ct_STRIP 4027 fi 4028else 4029 STRIP="$ac_cv_prog_STRIP" 4030fi 4031 4032fi 4033INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4034 4035 4036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 4037printf %s "checking for a race-free mkdir -p... " >&6; } 4038if test -z "$MKDIR_P"; then 4039 if test ${ac_cv_path_mkdir+y} 4040then : 4041 printf %s "(cached) " >&6 4042else $as_nop 4043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4044for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4045do 4046 IFS=$as_save_IFS 4047 case $as_dir in #((( 4048 '') as_dir=./ ;; 4049 */) ;; 4050 *) as_dir=$as_dir/ ;; 4051 esac 4052 for ac_prog in mkdir gmkdir; do 4053 for ac_exec_ext in '' $ac_executable_extensions; do 4054 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 4055 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 4056 'mkdir ('*'coreutils) '* | \ 4057 'BusyBox '* | \ 4058 'mkdir (fileutils) '4.1*) 4059 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 4060 break 3;; 4061 esac 4062 done 4063 done 4064 done 4065IFS=$as_save_IFS 4066 4067fi 4068 4069 test -d ./--version && rmdir ./--version 4070 if test ${ac_cv_path_mkdir+y}; then 4071 MKDIR_P="$ac_cv_path_mkdir -p" 4072 else 4073 # As a last resort, use the slow shell script. Don't cache a 4074 # value for MKDIR_P within a source directory, because that will 4075 # break other packages using the cache if that directory is 4076 # removed, or if the value is a relative name. 4077 MKDIR_P="$ac_install_sh -d" 4078 fi 4079fi 4080{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4081printf "%s\n" "$MKDIR_P" >&6; } 4082 4083for ac_prog in gawk mawk nawk awk 4084do 4085 # Extract the first word of "$ac_prog", so it can be a program name with args. 4086set dummy $ac_prog; ac_word=$2 4087{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4088printf %s "checking for $ac_word... " >&6; } 4089if test ${ac_cv_prog_AWK+y} 4090then : 4091 printf %s "(cached) " >&6 4092else $as_nop 4093 if test -n "$AWK"; then 4094 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4095else 4096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4097for as_dir in $PATH 4098do 4099 IFS=$as_save_IFS 4100 case $as_dir in #((( 4101 '') as_dir=./ ;; 4102 */) ;; 4103 *) as_dir=$as_dir/ ;; 4104 esac 4105 for ac_exec_ext in '' $ac_executable_extensions; do 4106 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4107 ac_cv_prog_AWK="$ac_prog" 4108 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4109 break 2 4110 fi 4111done 4112 done 4113IFS=$as_save_IFS 4114 4115fi 4116fi 4117AWK=$ac_cv_prog_AWK 4118if test -n "$AWK"; then 4119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4120printf "%s\n" "$AWK" >&6; } 4121else 4122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4123printf "%s\n" "no" >&6; } 4124fi 4125 4126 4127 test -n "$AWK" && break 4128done 4129 4130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4131printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4132set x ${MAKE-make} 4133ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4134if eval test \${ac_cv_prog_make_${ac_make}_set+y} 4135then : 4136 printf %s "(cached) " >&6 4137else $as_nop 4138 cat >conftest.make <<\_ACEOF 4139SHELL = /bin/sh 4140all: 4141 @echo '@@@%%%=$(MAKE)=@@@%%%' 4142_ACEOF 4143# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4144case `${MAKE-make} -f conftest.make 2>/dev/null` in 4145 *@@@%%%=?*=@@@%%%*) 4146 eval ac_cv_prog_make_${ac_make}_set=yes;; 4147 *) 4148 eval ac_cv_prog_make_${ac_make}_set=no;; 4149esac 4150rm -f conftest.make 4151fi 4152if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4154printf "%s\n" "yes" >&6; } 4155 SET_MAKE= 4156else 4157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4158printf "%s\n" "no" >&6; } 4159 SET_MAKE="MAKE=${MAKE-make}" 4160fi 4161 4162rm -rf .tst 2>/dev/null 4163mkdir .tst 2>/dev/null 4164if test -d .tst; then 4165 am__leading_dot=. 4166else 4167 am__leading_dot=_ 4168fi 4169rmdir .tst 2>/dev/null 4170 4171# Check whether --enable-silent-rules was given. 4172if test ${enable_silent_rules+y} 4173then : 4174 enableval=$enable_silent_rules; 4175fi 4176 4177case $enable_silent_rules in # ((( 4178 yes) AM_DEFAULT_VERBOSITY=0;; 4179 no) AM_DEFAULT_VERBOSITY=1;; 4180 *) AM_DEFAULT_VERBOSITY=1;; 4181esac 4182am_make=${MAKE-make} 4183{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4184printf %s "checking whether $am_make supports nested variables... " >&6; } 4185if test ${am_cv_make_support_nested_variables+y} 4186then : 4187 printf %s "(cached) " >&6 4188else $as_nop 4189 if printf "%s\n" 'TRUE=$(BAR$(V)) 4190BAR0=false 4191BAR1=true 4192V=1 4193am__doit: 4194 @$(TRUE) 4195.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4196 am_cv_make_support_nested_variables=yes 4197else 4198 am_cv_make_support_nested_variables=no 4199fi 4200fi 4201{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4202printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 4203if test $am_cv_make_support_nested_variables = yes; then 4204 AM_V='$(V)' 4205 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4206else 4207 AM_V=$AM_DEFAULT_VERBOSITY 4208 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4209fi 4210AM_BACKSLASH='\' 4211 4212if test "`cd $srcdir && pwd`" != "`pwd`"; then 4213 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4214 # is not polluted with repeated "-I." 4215 am__isrc=' -I$(srcdir)' 4216 # test to see if srcdir already configured 4217 if test -f $srcdir/config.status; then 4218 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4219 fi 4220fi 4221 4222# test whether we have cygpath 4223if test -z "$CYGPATH_W"; then 4224 if (cygpath --version) >/dev/null 2>/dev/null; then 4225 CYGPATH_W='cygpath -w' 4226 else 4227 CYGPATH_W=echo 4228 fi 4229fi 4230 4231 4232# Define the identity of the package. 4233 PACKAGE='cdi' 4234 VERSION='2.0.1' 4235 4236 4237printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 4238 4239 4240printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 4241 4242# Some tools Automake needs. 4243 4244ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4245 4246 4247AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4248 4249 4250AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4251 4252 4253AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4254 4255 4256MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4257 4258# For better backward compatibility. To be removed once Automake 1.9.x 4259# dies out for good. For more background, see: 4260# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4261# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4262mkdir_p='$(MKDIR_P)' 4263 4264# We need awk for the "check" target (and possibly the TAP driver). The 4265# system "awk" is bad on some platforms. 4266# Always define AMTAR for backward compatibility. Yes, it's still used 4267# in the wild :-( We should find a proper way to deprecate it ... 4268AMTAR='$${TAR-tar}' 4269 4270 4271# We'll loop over all known methods to create a tar archive until one works. 4272_am_tools='gnutar pax cpio none' 4273 4274am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4275 4276 4277 4278 4279 4280 4281# POSIX will say in a future version that running "rm -f" with no argument 4282# is OK; and we want to be able to make that assumption in our Makefile 4283# recipes. So use an aggressive probe to check that the usage we want is 4284# actually supported "in the wild" to an acceptable degree. 4285# See automake bug#10828. 4286# To make any issue more visible, cause the running configure to be aborted 4287# by default if the 'rm' program in use doesn't match our expectations; the 4288# user can still override this though. 4289if rm -f && rm -fr && rm -rf; then : OK; else 4290 cat >&2 <<'END' 4291Oops! 4292 4293Your 'rm' program seems unable to run without file operands specified 4294on the command line, even when the '-f' option is present. This is contrary 4295to the behaviour of most rm programs out there, and not conforming with 4296the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4297 4298Please tell bug-automake@gnu.org about your system, including the value 4299of your $PATH and any error possibly output before this message. This 4300can help us improve future automake versions. 4301 4302END 4303 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4304 echo 'Configuration will proceed anyway, since you have set the' >&2 4305 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4306 echo >&2 4307 else 4308 cat >&2 <<'END' 4309Aborting the configuration process, to ensure you take notice of the issue. 4310 4311You can download and install GNU coreutils to get an 'rm' implementation 4312that behaves properly: <https://www.gnu.org/software/coreutils/>. 4313 4314If you want to complete the configuration process using your problematic 4315'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4316to "yes", and re-run configure. 4317 4318END 4319 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4320 fi 4321fi 4322 4323ac_config_headers="$ac_config_headers src/config.h" 4324 4325 4326{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 4327printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 4328 # Check whether --enable-maintainer-mode was given. 4329if test ${enable_maintainer_mode+y} 4330then : 4331 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 4332else $as_nop 4333 USE_MAINTAINER_MODE=no 4334fi 4335 4336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 4337printf "%s\n" "$USE_MAINTAINER_MODE" >&6; } 4338 if test $USE_MAINTAINER_MODE = yes; then 4339 MAINTAINER_MODE_TRUE= 4340 MAINTAINER_MODE_FALSE='#' 4341else 4342 MAINTAINER_MODE_TRUE='#' 4343 MAINTAINER_MODE_FALSE= 4344fi 4345 4346 MAINT=$MAINTAINER_MODE_TRUE 4347 4348 4349 4350# Check building environment 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360DEPDIR="${am__leading_dot}deps" 4361 4362ac_config_commands="$ac_config_commands depfiles" 4363 4364{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4365printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 4366cat > confinc.mk << 'END' 4367am__doit: 4368 @echo this is the am__doit target >confinc.out 4369.PHONY: am__doit 4370END 4371am__include="#" 4372am__quote= 4373# BSD make does it like this. 4374echo '.include "confinc.mk" # ignored' > confmf.BSD 4375# Other make implementations (GNU, Solaris 10, AIX) do it like this. 4376echo 'include confinc.mk # ignored' > confmf.GNU 4377_am_result=no 4378for s in GNU BSD; do 4379 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4380 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4381 ac_status=$? 4382 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4383 (exit $ac_status); } 4384 case $?:`cat confinc.out 2>/dev/null` in #( 4385 '0:this is the am__doit target') : 4386 case $s in #( 4387 BSD) : 4388 am__include='.include' am__quote='"' ;; #( 4389 *) : 4390 am__include='include' am__quote='' ;; 4391esac ;; #( 4392 *) : 4393 ;; 4394esac 4395 if test "$am__include" != "#"; then 4396 _am_result="yes ($s style)" 4397 break 4398 fi 4399done 4400rm -f confinc.* confmf.* 4401{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4402printf "%s\n" "${_am_result}" >&6; } 4403 4404# Check whether --enable-dependency-tracking was given. 4405if test ${enable_dependency_tracking+y} 4406then : 4407 enableval=$enable_dependency_tracking; 4408fi 4409 4410if test "x$enable_dependency_tracking" != xno; then 4411 am_depcomp="$ac_aux_dir/depcomp" 4412 AMDEPBACKSLASH='\' 4413 am__nodep='_no' 4414fi 4415 if test "x$enable_dependency_tracking" != xno; then 4416 AMDEP_TRUE= 4417 AMDEP_FALSE='#' 4418else 4419 AMDEP_TRUE='#' 4420 AMDEP_FALSE= 4421fi 4422 4423 4424ac_ext=c 4425ac_cpp='$CPP $CPPFLAGS' 4426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4428ac_compiler_gnu=$ac_cv_c_compiler_gnu 4429if test -n "$ac_tool_prefix"; then 4430 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4431set dummy ${ac_tool_prefix}gcc; ac_word=$2 4432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4433printf %s "checking for $ac_word... " >&6; } 4434if test ${ac_cv_prog_CC+y} 4435then : 4436 printf %s "(cached) " >&6 4437else $as_nop 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 case $as_dir in #((( 4446 '') as_dir=./ ;; 4447 */) ;; 4448 *) as_dir=$as_dir/ ;; 4449 esac 4450 for ac_exec_ext in '' $ac_executable_extensions; do 4451 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4452 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4453 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4454 break 2 4455 fi 4456done 4457 done 4458IFS=$as_save_IFS 4459 4460fi 4461fi 4462CC=$ac_cv_prog_CC 4463if test -n "$CC"; then 4464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4465printf "%s\n" "$CC" >&6; } 4466else 4467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4468printf "%s\n" "no" >&6; } 4469fi 4470 4471 4472fi 4473if test -z "$ac_cv_prog_CC"; then 4474 ac_ct_CC=$CC 4475 # Extract the first word of "gcc", so it can be a program name with args. 4476set dummy gcc; ac_word=$2 4477{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4478printf %s "checking for $ac_word... " >&6; } 4479if test ${ac_cv_prog_ac_ct_CC+y} 4480then : 4481 printf %s "(cached) " >&6 4482else $as_nop 4483 if test -n "$ac_ct_CC"; then 4484 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4485else 4486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4487for as_dir in $PATH 4488do 4489 IFS=$as_save_IFS 4490 case $as_dir in #((( 4491 '') as_dir=./ ;; 4492 */) ;; 4493 *) as_dir=$as_dir/ ;; 4494 esac 4495 for ac_exec_ext in '' $ac_executable_extensions; do 4496 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4497 ac_cv_prog_ac_ct_CC="gcc" 4498 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4499 break 2 4500 fi 4501done 4502 done 4503IFS=$as_save_IFS 4504 4505fi 4506fi 4507ac_ct_CC=$ac_cv_prog_ac_ct_CC 4508if test -n "$ac_ct_CC"; then 4509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4510printf "%s\n" "$ac_ct_CC" >&6; } 4511else 4512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4513printf "%s\n" "no" >&6; } 4514fi 4515 4516 if test "x$ac_ct_CC" = x; then 4517 CC="" 4518 else 4519 case $cross_compiling:$ac_tool_warned in 4520yes:) 4521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4522printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4523ac_tool_warned=yes ;; 4524esac 4525 CC=$ac_ct_CC 4526 fi 4527else 4528 CC="$ac_cv_prog_CC" 4529fi 4530 4531if test -z "$CC"; then 4532 if test -n "$ac_tool_prefix"; then 4533 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4534set dummy ${ac_tool_prefix}cc; ac_word=$2 4535{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4536printf %s "checking for $ac_word... " >&6; } 4537if test ${ac_cv_prog_CC+y} 4538then : 4539 printf %s "(cached) " >&6 4540else $as_nop 4541 if test -n "$CC"; then 4542 ac_cv_prog_CC="$CC" # Let the user override the test. 4543else 4544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4545for as_dir in $PATH 4546do 4547 IFS=$as_save_IFS 4548 case $as_dir in #((( 4549 '') as_dir=./ ;; 4550 */) ;; 4551 *) as_dir=$as_dir/ ;; 4552 esac 4553 for ac_exec_ext in '' $ac_executable_extensions; do 4554 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4555 ac_cv_prog_CC="${ac_tool_prefix}cc" 4556 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4557 break 2 4558 fi 4559done 4560 done 4561IFS=$as_save_IFS 4562 4563fi 4564fi 4565CC=$ac_cv_prog_CC 4566if test -n "$CC"; then 4567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4568printf "%s\n" "$CC" >&6; } 4569else 4570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4571printf "%s\n" "no" >&6; } 4572fi 4573 4574 4575 fi 4576fi 4577if test -z "$CC"; then 4578 # Extract the first word of "cc", so it can be a program name with args. 4579set dummy cc; ac_word=$2 4580{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4581printf %s "checking for $ac_word... " >&6; } 4582if test ${ac_cv_prog_CC+y} 4583then : 4584 printf %s "(cached) " >&6 4585else $as_nop 4586 if test -n "$CC"; then 4587 ac_cv_prog_CC="$CC" # Let the user override the test. 4588else 4589 ac_prog_rejected=no 4590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4591for as_dir in $PATH 4592do 4593 IFS=$as_save_IFS 4594 case $as_dir in #((( 4595 '') as_dir=./ ;; 4596 */) ;; 4597 *) as_dir=$as_dir/ ;; 4598 esac 4599 for ac_exec_ext in '' $ac_executable_extensions; do 4600 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4601 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4602 ac_prog_rejected=yes 4603 continue 4604 fi 4605 ac_cv_prog_CC="cc" 4606 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4607 break 2 4608 fi 4609done 4610 done 4611IFS=$as_save_IFS 4612 4613if test $ac_prog_rejected = yes; then 4614 # We found a bogon in the path, so make sure we never use it. 4615 set dummy $ac_cv_prog_CC 4616 shift 4617 if test $# != 0; then 4618 # We chose a different compiler from the bogus one. 4619 # However, it has the same basename, so the bogon will be chosen 4620 # first if we set CC to just the basename; use the full file name. 4621 shift 4622 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 4623 fi 4624fi 4625fi 4626fi 4627CC=$ac_cv_prog_CC 4628if test -n "$CC"; then 4629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4630printf "%s\n" "$CC" >&6; } 4631else 4632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4633printf "%s\n" "no" >&6; } 4634fi 4635 4636 4637fi 4638if test -z "$CC"; then 4639 if test -n "$ac_tool_prefix"; then 4640 for ac_prog in cl.exe 4641 do 4642 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4643set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4644{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4645printf %s "checking for $ac_word... " >&6; } 4646if test ${ac_cv_prog_CC+y} 4647then : 4648 printf %s "(cached) " >&6 4649else $as_nop 4650 if test -n "$CC"; then 4651 ac_cv_prog_CC="$CC" # Let the user override the test. 4652else 4653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4654for as_dir in $PATH 4655do 4656 IFS=$as_save_IFS 4657 case $as_dir in #((( 4658 '') as_dir=./ ;; 4659 */) ;; 4660 *) as_dir=$as_dir/ ;; 4661 esac 4662 for ac_exec_ext in '' $ac_executable_extensions; do 4663 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4664 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4665 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4666 break 2 4667 fi 4668done 4669 done 4670IFS=$as_save_IFS 4671 4672fi 4673fi 4674CC=$ac_cv_prog_CC 4675if test -n "$CC"; then 4676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4677printf "%s\n" "$CC" >&6; } 4678else 4679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4680printf "%s\n" "no" >&6; } 4681fi 4682 4683 4684 test -n "$CC" && break 4685 done 4686fi 4687if test -z "$CC"; then 4688 ac_ct_CC=$CC 4689 for ac_prog in cl.exe 4690do 4691 # Extract the first word of "$ac_prog", so it can be a program name with args. 4692set dummy $ac_prog; ac_word=$2 4693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4694printf %s "checking for $ac_word... " >&6; } 4695if test ${ac_cv_prog_ac_ct_CC+y} 4696then : 4697 printf %s "(cached) " >&6 4698else $as_nop 4699 if test -n "$ac_ct_CC"; then 4700 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4701else 4702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4703for as_dir in $PATH 4704do 4705 IFS=$as_save_IFS 4706 case $as_dir in #((( 4707 '') as_dir=./ ;; 4708 */) ;; 4709 *) as_dir=$as_dir/ ;; 4710 esac 4711 for ac_exec_ext in '' $ac_executable_extensions; do 4712 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4713 ac_cv_prog_ac_ct_CC="$ac_prog" 4714 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4715 break 2 4716 fi 4717done 4718 done 4719IFS=$as_save_IFS 4720 4721fi 4722fi 4723ac_ct_CC=$ac_cv_prog_ac_ct_CC 4724if test -n "$ac_ct_CC"; then 4725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4726printf "%s\n" "$ac_ct_CC" >&6; } 4727else 4728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4729printf "%s\n" "no" >&6; } 4730fi 4731 4732 4733 test -n "$ac_ct_CC" && break 4734done 4735 4736 if test "x$ac_ct_CC" = x; then 4737 CC="" 4738 else 4739 case $cross_compiling:$ac_tool_warned in 4740yes:) 4741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4742printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4743ac_tool_warned=yes ;; 4744esac 4745 CC=$ac_ct_CC 4746 fi 4747fi 4748 4749fi 4750if test -z "$CC"; then 4751 if test -n "$ac_tool_prefix"; then 4752 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 4753set dummy ${ac_tool_prefix}clang; ac_word=$2 4754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4755printf %s "checking for $ac_word... " >&6; } 4756if test ${ac_cv_prog_CC+y} 4757then : 4758 printf %s "(cached) " >&6 4759else $as_nop 4760 if test -n "$CC"; then 4761 ac_cv_prog_CC="$CC" # Let the user override the test. 4762else 4763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4764for as_dir in $PATH 4765do 4766 IFS=$as_save_IFS 4767 case $as_dir in #((( 4768 '') as_dir=./ ;; 4769 */) ;; 4770 *) as_dir=$as_dir/ ;; 4771 esac 4772 for ac_exec_ext in '' $ac_executable_extensions; do 4773 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4774 ac_cv_prog_CC="${ac_tool_prefix}clang" 4775 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4776 break 2 4777 fi 4778done 4779 done 4780IFS=$as_save_IFS 4781 4782fi 4783fi 4784CC=$ac_cv_prog_CC 4785if test -n "$CC"; then 4786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4787printf "%s\n" "$CC" >&6; } 4788else 4789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4790printf "%s\n" "no" >&6; } 4791fi 4792 4793 4794fi 4795if test -z "$ac_cv_prog_CC"; then 4796 ac_ct_CC=$CC 4797 # Extract the first word of "clang", so it can be a program name with args. 4798set dummy clang; ac_word=$2 4799{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4800printf %s "checking for $ac_word... " >&6; } 4801if test ${ac_cv_prog_ac_ct_CC+y} 4802then : 4803 printf %s "(cached) " >&6 4804else $as_nop 4805 if test -n "$ac_ct_CC"; then 4806 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4807else 4808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4809for as_dir in $PATH 4810do 4811 IFS=$as_save_IFS 4812 case $as_dir in #((( 4813 '') as_dir=./ ;; 4814 */) ;; 4815 *) as_dir=$as_dir/ ;; 4816 esac 4817 for ac_exec_ext in '' $ac_executable_extensions; do 4818 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4819 ac_cv_prog_ac_ct_CC="clang" 4820 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4821 break 2 4822 fi 4823done 4824 done 4825IFS=$as_save_IFS 4826 4827fi 4828fi 4829ac_ct_CC=$ac_cv_prog_ac_ct_CC 4830if test -n "$ac_ct_CC"; then 4831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4832printf "%s\n" "$ac_ct_CC" >&6; } 4833else 4834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4835printf "%s\n" "no" >&6; } 4836fi 4837 4838 if test "x$ac_ct_CC" = x; then 4839 CC="" 4840 else 4841 case $cross_compiling:$ac_tool_warned in 4842yes:) 4843{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4844printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4845ac_tool_warned=yes ;; 4846esac 4847 CC=$ac_ct_CC 4848 fi 4849else 4850 CC="$ac_cv_prog_CC" 4851fi 4852 4853fi 4854 4855 4856test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4857printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4858as_fn_error $? "no acceptable C compiler found in \$PATH 4859See \`config.log' for more details" "$LINENO" 5; } 4860 4861# Provide some information about the compiler. 4862printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4863set X $ac_compile 4864ac_compiler=$2 4865for ac_option in --version -v -V -qversion -version; do 4866 { { ac_try="$ac_compiler $ac_option >&5" 4867case "(($ac_try" in 4868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4869 *) ac_try_echo=$ac_try;; 4870esac 4871eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4872printf "%s\n" "$ac_try_echo"; } >&5 4873 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4874 ac_status=$? 4875 if test -s conftest.err; then 4876 sed '10a\ 4877... rest of stderr output deleted ... 4878 10q' conftest.err >conftest.er1 4879 cat conftest.er1 >&5 4880 fi 4881 rm -f conftest.er1 conftest.err 4882 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4883 test $ac_status = 0; } 4884done 4885 4886cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4887/* end confdefs.h. */ 4888 4889int 4890main (void) 4891{ 4892 4893 ; 4894 return 0; 4895} 4896_ACEOF 4897ac_clean_files_save=$ac_clean_files 4898ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4899# Try to create an executable without -o first, disregard a.out. 4900# It will help us diagnose broken compilers, and finding out an intuition 4901# of exeext. 4902{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4903printf %s "checking whether the C compiler works... " >&6; } 4904ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4905 4906# The possible output files: 4907ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4908 4909ac_rmfiles= 4910for ac_file in $ac_files 4911do 4912 case $ac_file in 4913 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4914 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4915 esac 4916done 4917rm -f $ac_rmfiles 4918 4919if { { ac_try="$ac_link_default" 4920case "(($ac_try" in 4921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4922 *) ac_try_echo=$ac_try;; 4923esac 4924eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4925printf "%s\n" "$ac_try_echo"; } >&5 4926 (eval "$ac_link_default") 2>&5 4927 ac_status=$? 4928 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4929 test $ac_status = 0; } 4930then : 4931 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4932# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4933# in a Makefile. We should not override ac_cv_exeext if it was cached, 4934# so that the user can short-circuit this test for compilers unknown to 4935# Autoconf. 4936for ac_file in $ac_files '' 4937do 4938 test -f "$ac_file" || continue 4939 case $ac_file in 4940 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4941 ;; 4942 [ab].out ) 4943 # We found the default executable, but exeext='' is most 4944 # certainly right. 4945 break;; 4946 *.* ) 4947 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 4948 then :; else 4949 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4950 fi 4951 # We set ac_cv_exeext here because the later test for it is not 4952 # safe: cross compilers may not add the suffix if given an `-o' 4953 # argument, so we may need to know it at that point already. 4954 # Even if this section looks crufty: it has the advantage of 4955 # actually working. 4956 break;; 4957 * ) 4958 break;; 4959 esac 4960done 4961test "$ac_cv_exeext" = no && ac_cv_exeext= 4962 4963else $as_nop 4964 ac_file='' 4965fi 4966if test -z "$ac_file" 4967then : 4968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4969printf "%s\n" "no" >&6; } 4970printf "%s\n" "$as_me: failed program was:" >&5 4971sed 's/^/| /' conftest.$ac_ext >&5 4972 4973{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4974printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4975as_fn_error 77 "C compiler cannot create executables 4976See \`config.log' for more details" "$LINENO" 5; } 4977else $as_nop 4978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4979printf "%s\n" "yes" >&6; } 4980fi 4981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4982printf %s "checking for C compiler default output file name... " >&6; } 4983{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4984printf "%s\n" "$ac_file" >&6; } 4985ac_exeext=$ac_cv_exeext 4986 4987rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4988ac_clean_files=$ac_clean_files_save 4989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4990printf %s "checking for suffix of executables... " >&6; } 4991if { { ac_try="$ac_link" 4992case "(($ac_try" in 4993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4994 *) ac_try_echo=$ac_try;; 4995esac 4996eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4997printf "%s\n" "$ac_try_echo"; } >&5 4998 (eval "$ac_link") 2>&5 4999 ac_status=$? 5000 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5001 test $ac_status = 0; } 5002then : 5003 # If both `conftest.exe' and `conftest' are `present' (well, observable) 5004# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 5005# work properly (i.e., refer to `conftest.exe'), while it won't with 5006# `rm'. 5007for ac_file in conftest.exe conftest conftest.*; do 5008 test -f "$ac_file" || continue 5009 case $ac_file in 5010 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 5011 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 5012 break;; 5013 * ) break;; 5014 esac 5015done 5016else $as_nop 5017 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5018printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5019as_fn_error $? "cannot compute suffix of executables: cannot compile and link 5020See \`config.log' for more details" "$LINENO" 5; } 5021fi 5022rm -f conftest conftest$ac_cv_exeext 5023{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 5024printf "%s\n" "$ac_cv_exeext" >&6; } 5025 5026rm -f conftest.$ac_ext 5027EXEEXT=$ac_cv_exeext 5028ac_exeext=$EXEEXT 5029cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5030/* end confdefs.h. */ 5031#include <stdio.h> 5032int 5033main (void) 5034{ 5035FILE *f = fopen ("conftest.out", "w"); 5036 return ferror (f) || fclose (f) != 0; 5037 5038 ; 5039 return 0; 5040} 5041_ACEOF 5042ac_clean_files="$ac_clean_files conftest.out" 5043# Check that the compiler produces executables we can run. If not, either 5044# the compiler is broken, or we cross compile. 5045{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 5046printf %s "checking whether we are cross compiling... " >&6; } 5047if test "$cross_compiling" != yes; then 5048 { { ac_try="$ac_link" 5049case "(($ac_try" in 5050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5051 *) ac_try_echo=$ac_try;; 5052esac 5053eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5054printf "%s\n" "$ac_try_echo"; } >&5 5055 (eval "$ac_link") 2>&5 5056 ac_status=$? 5057 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5058 test $ac_status = 0; } 5059 if { ac_try='./conftest$ac_cv_exeext' 5060 { { case "(($ac_try" in 5061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5062 *) ac_try_echo=$ac_try;; 5063esac 5064eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5065printf "%s\n" "$ac_try_echo"; } >&5 5066 (eval "$ac_try") 2>&5 5067 ac_status=$? 5068 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5069 test $ac_status = 0; }; }; then 5070 cross_compiling=no 5071 else 5072 if test "$cross_compiling" = maybe; then 5073 cross_compiling=yes 5074 else 5075 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5076printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5077as_fn_error 77 "cannot run C compiled programs. 5078If you meant to cross compile, use \`--host'. 5079See \`config.log' for more details" "$LINENO" 5; } 5080 fi 5081 fi 5082fi 5083{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 5084printf "%s\n" "$cross_compiling" >&6; } 5085 5086rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 5087ac_clean_files=$ac_clean_files_save 5088{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 5089printf %s "checking for suffix of object files... " >&6; } 5090if test ${ac_cv_objext+y} 5091then : 5092 printf %s "(cached) " >&6 5093else $as_nop 5094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5095/* end confdefs.h. */ 5096 5097int 5098main (void) 5099{ 5100 5101 ; 5102 return 0; 5103} 5104_ACEOF 5105rm -f conftest.o conftest.obj 5106if { { ac_try="$ac_compile" 5107case "(($ac_try" in 5108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5109 *) ac_try_echo=$ac_try;; 5110esac 5111eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5112printf "%s\n" "$ac_try_echo"; } >&5 5113 (eval "$ac_compile") 2>&5 5114 ac_status=$? 5115 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5116 test $ac_status = 0; } 5117then : 5118 for ac_file in conftest.o conftest.obj conftest.*; do 5119 test -f "$ac_file" || continue; 5120 case $ac_file in 5121 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 5122 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 5123 break;; 5124 esac 5125done 5126else $as_nop 5127 printf "%s\n" "$as_me: failed program was:" >&5 5128sed 's/^/| /' conftest.$ac_ext >&5 5129 5130{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5131printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5132as_fn_error $? "cannot compute suffix of object files: cannot compile 5133See \`config.log' for more details" "$LINENO" 5; } 5134fi 5135rm -f conftest.$ac_cv_objext conftest.$ac_ext 5136fi 5137{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 5138printf "%s\n" "$ac_cv_objext" >&6; } 5139OBJEXT=$ac_cv_objext 5140ac_objext=$OBJEXT 5141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 5142printf %s "checking whether the compiler supports GNU C... " >&6; } 5143if test ${ac_cv_c_compiler_gnu+y} 5144then : 5145 printf %s "(cached) " >&6 5146else $as_nop 5147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5148/* end confdefs.h. */ 5149 5150int 5151main (void) 5152{ 5153#ifndef __GNUC__ 5154 choke me 5155#endif 5156 5157 ; 5158 return 0; 5159} 5160_ACEOF 5161if ac_fn_c_try_compile "$LINENO" 5162then : 5163 ac_compiler_gnu=yes 5164else $as_nop 5165 ac_compiler_gnu=no 5166fi 5167rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5168ac_cv_c_compiler_gnu=$ac_compiler_gnu 5169 5170fi 5171{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5172printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 5173ac_compiler_gnu=$ac_cv_c_compiler_gnu 5174 5175if test $ac_compiler_gnu = yes; then 5176 GCC=yes 5177else 5178 GCC= 5179fi 5180ac_test_CFLAGS=${CFLAGS+y} 5181ac_save_CFLAGS=$CFLAGS 5182{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 5183printf %s "checking whether $CC accepts -g... " >&6; } 5184if test ${ac_cv_prog_cc_g+y} 5185then : 5186 printf %s "(cached) " >&6 5187else $as_nop 5188 ac_save_c_werror_flag=$ac_c_werror_flag 5189 ac_c_werror_flag=yes 5190 ac_cv_prog_cc_g=no 5191 CFLAGS="-g" 5192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5193/* end confdefs.h. */ 5194 5195int 5196main (void) 5197{ 5198 5199 ; 5200 return 0; 5201} 5202_ACEOF 5203if ac_fn_c_try_compile "$LINENO" 5204then : 5205 ac_cv_prog_cc_g=yes 5206else $as_nop 5207 CFLAGS="" 5208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5209/* end confdefs.h. */ 5210 5211int 5212main (void) 5213{ 5214 5215 ; 5216 return 0; 5217} 5218_ACEOF 5219if ac_fn_c_try_compile "$LINENO" 5220then : 5221 5222else $as_nop 5223 ac_c_werror_flag=$ac_save_c_werror_flag 5224 CFLAGS="-g" 5225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5226/* end confdefs.h. */ 5227 5228int 5229main (void) 5230{ 5231 5232 ; 5233 return 0; 5234} 5235_ACEOF 5236if ac_fn_c_try_compile "$LINENO" 5237then : 5238 ac_cv_prog_cc_g=yes 5239fi 5240rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5241fi 5242rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5243fi 5244rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5245 ac_c_werror_flag=$ac_save_c_werror_flag 5246fi 5247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5248printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 5249if test $ac_test_CFLAGS; then 5250 CFLAGS=$ac_save_CFLAGS 5251elif test $ac_cv_prog_cc_g = yes; then 5252 if test "$GCC" = yes; then 5253 CFLAGS="-g -O2" 5254 else 5255 CFLAGS="-g" 5256 fi 5257else 5258 if test "$GCC" = yes; then 5259 CFLAGS="-O2" 5260 else 5261 CFLAGS= 5262 fi 5263fi 5264ac_prog_cc_stdc=no 5265if test x$ac_prog_cc_stdc = xno 5266then : 5267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 5268printf %s "checking for $CC option to enable C11 features... " >&6; } 5269if test ${ac_cv_prog_cc_c11+y} 5270then : 5271 printf %s "(cached) " >&6 5272else $as_nop 5273 ac_cv_prog_cc_c11=no 5274ac_save_CC=$CC 5275cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5276/* end confdefs.h. */ 5277$ac_c_conftest_c11_program 5278_ACEOF 5279for ac_arg in '' -std=gnu11 5280do 5281 CC="$ac_save_CC $ac_arg" 5282 if ac_fn_c_try_compile "$LINENO" 5283then : 5284 ac_cv_prog_cc_c11=$ac_arg 5285fi 5286rm -f core conftest.err conftest.$ac_objext conftest.beam 5287 test "x$ac_cv_prog_cc_c11" != "xno" && break 5288done 5289rm -f conftest.$ac_ext 5290CC=$ac_save_CC 5291fi 5292 5293if test "x$ac_cv_prog_cc_c11" = xno 5294then : 5295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5296printf "%s\n" "unsupported" >&6; } 5297else $as_nop 5298 if test "x$ac_cv_prog_cc_c11" = x 5299then : 5300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5301printf "%s\n" "none needed" >&6; } 5302else $as_nop 5303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 5304printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 5305 CC="$CC $ac_cv_prog_cc_c11" 5306fi 5307 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 5308 ac_prog_cc_stdc=c11 5309fi 5310fi 5311if test x$ac_prog_cc_stdc = xno 5312then : 5313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 5314printf %s "checking for $CC option to enable C99 features... " >&6; } 5315if test ${ac_cv_prog_cc_c99+y} 5316then : 5317 printf %s "(cached) " >&6 5318else $as_nop 5319 ac_cv_prog_cc_c99=no 5320ac_save_CC=$CC 5321cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5322/* end confdefs.h. */ 5323$ac_c_conftest_c99_program 5324_ACEOF 5325for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 5326do 5327 CC="$ac_save_CC $ac_arg" 5328 if ac_fn_c_try_compile "$LINENO" 5329then : 5330 ac_cv_prog_cc_c99=$ac_arg 5331fi 5332rm -f core conftest.err conftest.$ac_objext conftest.beam 5333 test "x$ac_cv_prog_cc_c99" != "xno" && break 5334done 5335rm -f conftest.$ac_ext 5336CC=$ac_save_CC 5337fi 5338 5339if test "x$ac_cv_prog_cc_c99" = xno 5340then : 5341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5342printf "%s\n" "unsupported" >&6; } 5343else $as_nop 5344 if test "x$ac_cv_prog_cc_c99" = x 5345then : 5346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5347printf "%s\n" "none needed" >&6; } 5348else $as_nop 5349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 5350printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 5351 CC="$CC $ac_cv_prog_cc_c99" 5352fi 5353 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 5354 ac_prog_cc_stdc=c99 5355fi 5356fi 5357if test x$ac_prog_cc_stdc = xno 5358then : 5359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 5360printf %s "checking for $CC option to enable C89 features... " >&6; } 5361if test ${ac_cv_prog_cc_c89+y} 5362then : 5363 printf %s "(cached) " >&6 5364else $as_nop 5365 ac_cv_prog_cc_c89=no 5366ac_save_CC=$CC 5367cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5368/* end confdefs.h. */ 5369$ac_c_conftest_c89_program 5370_ACEOF 5371for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5372do 5373 CC="$ac_save_CC $ac_arg" 5374 if ac_fn_c_try_compile "$LINENO" 5375then : 5376 ac_cv_prog_cc_c89=$ac_arg 5377fi 5378rm -f core conftest.err conftest.$ac_objext conftest.beam 5379 test "x$ac_cv_prog_cc_c89" != "xno" && break 5380done 5381rm -f conftest.$ac_ext 5382CC=$ac_save_CC 5383fi 5384 5385if test "x$ac_cv_prog_cc_c89" = xno 5386then : 5387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5388printf "%s\n" "unsupported" >&6; } 5389else $as_nop 5390 if test "x$ac_cv_prog_cc_c89" = x 5391then : 5392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5393printf "%s\n" "none needed" >&6; } 5394else $as_nop 5395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5396printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 5397 CC="$CC $ac_cv_prog_cc_c89" 5398fi 5399 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 5400 ac_prog_cc_stdc=c89 5401fi 5402fi 5403 5404ac_ext=c 5405ac_cpp='$CPP $CPPFLAGS' 5406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5408ac_compiler_gnu=$ac_cv_c_compiler_gnu 5409 5410 5411 ac_ext=c 5412ac_cpp='$CPP $CPPFLAGS' 5413ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5414ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5415ac_compiler_gnu=$ac_cv_c_compiler_gnu 5416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 5417printf %s "checking whether $CC understands -c and -o together... " >&6; } 5418if test ${am_cv_prog_cc_c_o+y} 5419then : 5420 printf %s "(cached) " >&6 5421else $as_nop 5422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5423/* end confdefs.h. */ 5424 5425int 5426main (void) 5427{ 5428 5429 ; 5430 return 0; 5431} 5432_ACEOF 5433 # Make sure it works both with $CC and with simple cc. 5434 # Following AC_PROG_CC_C_O, we do the test twice because some 5435 # compilers refuse to overwrite an existing .o file with -o, 5436 # though they will create one. 5437 am_cv_prog_cc_c_o=yes 5438 for am_i in 1 2; do 5439 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 5440 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 5441 ac_status=$? 5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5443 (exit $ac_status); } \ 5444 && test -f conftest2.$ac_objext; then 5445 : OK 5446 else 5447 am_cv_prog_cc_c_o=no 5448 break 5449 fi 5450 done 5451 rm -f core conftest* 5452 unset am_i 5453fi 5454{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 5455printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 5456if test "$am_cv_prog_cc_c_o" != yes; then 5457 # Losing compiler, so override with the script. 5458 # FIXME: It is wrong to rewrite CC. 5459 # But if we don't then we get into trouble of one sort or another. 5460 # A longer-term fix would be to have automake use am__CC in this case, 5461 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 5462 CC="$am_aux_dir/compile $CC" 5463fi 5464ac_ext=c 5465ac_cpp='$CPP $CPPFLAGS' 5466ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5467ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5468ac_compiler_gnu=$ac_cv_c_compiler_gnu 5469 5470 5471depcc="$CC" am_compiler_list= 5472 5473{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5474printf %s "checking dependency style of $depcc... " >&6; } 5475if test ${am_cv_CC_dependencies_compiler_type+y} 5476then : 5477 printf %s "(cached) " >&6 5478else $as_nop 5479 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5480 # We make a subdir and do the tests there. Otherwise we can end up 5481 # making bogus files that we don't know about and never remove. For 5482 # instance it was reported that on HP-UX the gcc test will end up 5483 # making a dummy file named 'D' -- because '-MD' means "put the output 5484 # in D". 5485 rm -rf conftest.dir 5486 mkdir conftest.dir 5487 # Copy depcomp to subdir because otherwise we won't find it if we're 5488 # using a relative directory. 5489 cp "$am_depcomp" conftest.dir 5490 cd conftest.dir 5491 # We will build objects and dependencies in a subdirectory because 5492 # it helps to detect inapplicable dependency modes. For instance 5493 # both Tru64's cc and ICC support -MD to output dependencies as a 5494 # side effect of compilation, but ICC will put the dependencies in 5495 # the current directory while Tru64 will put them in the object 5496 # directory. 5497 mkdir sub 5498 5499 am_cv_CC_dependencies_compiler_type=none 5500 if test "$am_compiler_list" = ""; then 5501 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5502 fi 5503 am__universal=false 5504 case " $depcc " in #( 5505 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5506 esac 5507 5508 for depmode in $am_compiler_list; do 5509 # Setup a source with many dependencies, because some compilers 5510 # like to wrap large dependency lists on column 80 (with \), and 5511 # we should not choose a depcomp mode which is confused by this. 5512 # 5513 # We need to recreate these files for each test, as the compiler may 5514 # overwrite some of them when testing with obscure command lines. 5515 # This happens at least with the AIX C compiler. 5516 : > sub/conftest.c 5517 for i in 1 2 3 4 5 6; do 5518 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5519 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5520 # Solaris 10 /bin/sh. 5521 echo '/* dummy */' > sub/conftst$i.h 5522 done 5523 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5524 5525 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5526 # mode. It turns out that the SunPro C++ compiler does not properly 5527 # handle '-M -o', and we need to detect this. Also, some Intel 5528 # versions had trouble with output in subdirs. 5529 am__obj=sub/conftest.${OBJEXT-o} 5530 am__minus_obj="-o $am__obj" 5531 case $depmode in 5532 gcc) 5533 # This depmode causes a compiler race in universal mode. 5534 test "$am__universal" = false || continue 5535 ;; 5536 nosideeffect) 5537 # After this tag, mechanisms are not by side-effect, so they'll 5538 # only be used when explicitly requested. 5539 if test "x$enable_dependency_tracking" = xyes; then 5540 continue 5541 else 5542 break 5543 fi 5544 ;; 5545 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5546 # This compiler won't grok '-c -o', but also, the minuso test has 5547 # not run yet. These depmodes are late enough in the game, and 5548 # so weak that their functioning should not be impacted. 5549 am__obj=conftest.${OBJEXT-o} 5550 am__minus_obj= 5551 ;; 5552 none) break ;; 5553 esac 5554 if depmode=$depmode \ 5555 source=sub/conftest.c object=$am__obj \ 5556 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5557 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5558 >/dev/null 2>conftest.err && 5559 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5560 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5561 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5562 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5563 # icc doesn't choke on unknown options, it will just issue warnings 5564 # or remarks (even with -Werror). So we grep stderr for any message 5565 # that says an option was ignored or not supported. 5566 # When given -MP, icc 7.0 and 7.1 complain thusly: 5567 # icc: Command line warning: ignoring option '-M'; no argument required 5568 # The diagnosis changed in icc 8.0: 5569 # icc: Command line remark: option '-MP' not supported 5570 if (grep 'ignoring option' conftest.err || 5571 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5572 am_cv_CC_dependencies_compiler_type=$depmode 5573 break 5574 fi 5575 fi 5576 done 5577 5578 cd .. 5579 rm -rf conftest.dir 5580else 5581 am_cv_CC_dependencies_compiler_type=none 5582fi 5583 5584fi 5585{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5586printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 5587CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5588 5589 if 5590 test "x$enable_dependency_tracking" != xno \ 5591 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5592 am__fastdepCC_TRUE= 5593 am__fastdepCC_FALSE='#' 5594else 5595 am__fastdepCC_TRUE='#' 5596 am__fastdepCC_FALSE= 5597fi 5598 5599 5600 5601rm -rf conftest.dSYM 5602 5603acx_prog_cc_posix_version_value=200112 5604 acx_prog_cc_posix_version_print="POSIX.1-2001" 5605 ac_ext=c 5606ac_cpp='$CPP $CPPFLAGS' 5607ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5608ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5609ac_compiler_gnu=$ac_cv_c_compiler_gnu 5610 5611 5612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking For conformance to ${acx_prog_cc_posix_version_print}." >&5 5613printf %s "checking For conformance to ${acx_prog_cc_posix_version_print}.... " >&6; } 5614if test ${acx_cv_cc_posix_support2001+y} 5615then : 5616 printf %s "(cached) " >&6 5617else $as_nop 5618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5619/* end confdefs.h. */ 5620#include <unistd.h> 5621int 5622main (void) 5623{ 5624 int n[(_POSIX_VERSION >= ${acx_prog_cc_posix_version_value}L) * 2 - 1]; 5625 ; 5626 return 0; 5627} 5628_ACEOF 5629if ac_fn_c_try_compile "$LINENO" 5630then : 5631 acx_cv_cc_posix_support2001=yes 5632else $as_nop 5633 acx_cv_cc_posix_support2001=no 5634fi 5635rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5636fi 5637{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_posix_support2001" >&5 5638printf "%s\n" "$acx_cv_cc_posix_support2001" >&6; } 5639 if test "x$acx_cv_cc_posix_support2001" = xno 5640then : 5641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: It seems your system does not define _POSIX_VERSION to a value 5642greater-or-equal ${acx_prog_cc_posix_version_value}. This is typically the case when the 5643compiler is instructed to make ISO C features available only, 5644e.g. when using gcc -std=c99" >&5 5645printf "%s\n" "$as_me: It seems your system does not define _POSIX_VERSION to a value 5646greater-or-equal ${acx_prog_cc_posix_version_value}. This is typically the case when the 5647compiler is instructed to make ISO C features available only, 5648e.g. when using gcc -std=c99" >&6;} 5649 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5650printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5651as_fn_error $? "${acx_prog_cc_posix_version_print} profile required 5652See \`config.log' for more details" "$LINENO" 5; } 5653fi 5654{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5 5655printf %s "checking for C/C++ restrict keyword... " >&6; } 5656if test ${ac_cv_c_restrict+y} 5657then : 5658 printf %s "(cached) " >&6 5659else $as_nop 5660 ac_cv_c_restrict=no 5661 # Put '__restrict__' first, to avoid problems with glibc and non-GCC; see: 5662 # https://lists.gnu.org/archive/html/bug-autoconf/2016-02/msg00006.html 5663 # Put 'restrict' last, because C++ lacks it. 5664 for ac_kw in __restrict__ __restrict _Restrict restrict; do 5665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5666/* end confdefs.h. */ 5667typedef int *int_ptr; 5668 int foo (int_ptr $ac_kw ip) { return ip[0]; } 5669 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */ 5670 int bar (int ip[$ac_kw]) { return ip[0]; } 5671 5672int 5673main (void) 5674{ 5675int s[1]; 5676 int *$ac_kw t = s; 5677 t[0] = 0; 5678 return foo (t) + bar (t); 5679 5680 ; 5681 return 0; 5682} 5683_ACEOF 5684if ac_fn_c_try_compile "$LINENO" 5685then : 5686 ac_cv_c_restrict=$ac_kw 5687fi 5688rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5689 test "$ac_cv_c_restrict" != no && break 5690 done 5691 5692fi 5693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 5694printf "%s\n" "$ac_cv_c_restrict" >&6; } 5695 5696 case $ac_cv_c_restrict in 5697 restrict) ;; 5698 no) printf "%s\n" "#define restrict /**/" >>confdefs.h 5699 ;; 5700 *) printf "%s\n" "#define restrict $ac_cv_c_restrict" >>confdefs.h 5701 ;; 5702 esac 5703 5704ac_ext=${ac_fc_srcext-f} 5705ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 5706ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 5707ac_compiler_gnu=$ac_cv_fc_compiler_gnu 5708if test -n "$ac_tool_prefix"; then 5709 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 5710 do 5711 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5712set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5714printf %s "checking for $ac_word... " >&6; } 5715if test ${ac_cv_prog_FC+y} 5716then : 5717 printf %s "(cached) " >&6 5718else $as_nop 5719 if test -n "$FC"; then 5720 ac_cv_prog_FC="$FC" # Let the user override the test. 5721else 5722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5723for as_dir in $PATH 5724do 5725 IFS=$as_save_IFS 5726 case $as_dir in #((( 5727 '') as_dir=./ ;; 5728 */) ;; 5729 *) as_dir=$as_dir/ ;; 5730 esac 5731 for ac_exec_ext in '' $ac_executable_extensions; do 5732 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5733 ac_cv_prog_FC="$ac_tool_prefix$ac_prog" 5734 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5735 break 2 5736 fi 5737done 5738 done 5739IFS=$as_save_IFS 5740 5741fi 5742fi 5743FC=$ac_cv_prog_FC 5744if test -n "$FC"; then 5745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FC" >&5 5746printf "%s\n" "$FC" >&6; } 5747else 5748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5749printf "%s\n" "no" >&6; } 5750fi 5751 5752 5753 test -n "$FC" && break 5754 done 5755fi 5756if test -z "$FC"; then 5757 ac_ct_FC=$FC 5758 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 5759do 5760 # Extract the first word of "$ac_prog", so it can be a program name with args. 5761set dummy $ac_prog; ac_word=$2 5762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5763printf %s "checking for $ac_word... " >&6; } 5764if test ${ac_cv_prog_ac_ct_FC+y} 5765then : 5766 printf %s "(cached) " >&6 5767else $as_nop 5768 if test -n "$ac_ct_FC"; then 5769 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test. 5770else 5771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5772for as_dir in $PATH 5773do 5774 IFS=$as_save_IFS 5775 case $as_dir in #((( 5776 '') as_dir=./ ;; 5777 */) ;; 5778 *) as_dir=$as_dir/ ;; 5779 esac 5780 for ac_exec_ext in '' $ac_executable_extensions; do 5781 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5782 ac_cv_prog_ac_ct_FC="$ac_prog" 5783 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5784 break 2 5785 fi 5786done 5787 done 5788IFS=$as_save_IFS 5789 5790fi 5791fi 5792ac_ct_FC=$ac_cv_prog_ac_ct_FC 5793if test -n "$ac_ct_FC"; then 5794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5 5795printf "%s\n" "$ac_ct_FC" >&6; } 5796else 5797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5798printf "%s\n" "no" >&6; } 5799fi 5800 5801 5802 test -n "$ac_ct_FC" && break 5803done 5804 5805 if test "x$ac_ct_FC" = x; then 5806 FC="" 5807 else 5808 case $cross_compiling:$ac_tool_warned in 5809yes:) 5810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5811printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5812ac_tool_warned=yes ;; 5813esac 5814 FC=$ac_ct_FC 5815 fi 5816fi 5817 5818 5819# Provide some information about the compiler. 5820printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5 5821set X $ac_compile 5822ac_compiler=$2 5823for ac_option in --version -v -V -qversion; do 5824 { { ac_try="$ac_compiler $ac_option >&5" 5825case "(($ac_try" in 5826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5827 *) ac_try_echo=$ac_try;; 5828esac 5829eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5830printf "%s\n" "$ac_try_echo"; } >&5 5831 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5832 ac_status=$? 5833 if test -s conftest.err; then 5834 sed '10a\ 5835... rest of stderr output deleted ... 5836 10q' conftest.err >conftest.er1 5837 cat conftest.er1 >&5 5838 fi 5839 rm -f conftest.er1 conftest.err 5840 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5841 test $ac_status = 0; } 5842done 5843rm -f a.out 5844 5845# If we don't use `.F' as extension, the preprocessor is not run on the 5846# input file. (Note that this only needs to work for GNU compilers.) 5847ac_save_ext=$ac_ext 5848ac_ext=F 5849{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU Fortran" >&5 5850printf %s "checking whether the compiler supports GNU Fortran... " >&6; } 5851if test ${ac_cv_fc_compiler_gnu+y} 5852then : 5853 printf %s "(cached) " >&6 5854else $as_nop 5855 cat > conftest.$ac_ext <<_ACEOF 5856 program conftest 5857#ifndef __GNUC__ 5858 choke me 5859#endif 5860 5861 end 5862_ACEOF 5863if ac_fn_fc_try_compile "$LINENO" 5864then : 5865 ac_compiler_gnu=yes 5866else $as_nop 5867 ac_compiler_gnu=no 5868fi 5869rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5870ac_cv_fc_compiler_gnu=$ac_compiler_gnu 5871 5872fi 5873{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5 5874printf "%s\n" "$ac_cv_fc_compiler_gnu" >&6; } 5875ac_compiler_gnu=$ac_cv_fc_compiler_gnu 5876 5877ac_ext=$ac_save_ext 5878ac_test_FCFLAGS=${FCFLAGS+y} 5879ac_save_FCFLAGS=$FCFLAGS 5880FCFLAGS= 5881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5 5882printf %s "checking whether $FC accepts -g... " >&6; } 5883if test ${ac_cv_prog_fc_g+y} 5884then : 5885 printf %s "(cached) " >&6 5886else $as_nop 5887 FCFLAGS=-g 5888cat > conftest.$ac_ext <<_ACEOF 5889 program conftest 5890 5891 end 5892_ACEOF 5893if ac_fn_fc_try_compile "$LINENO" 5894then : 5895 ac_cv_prog_fc_g=yes 5896else $as_nop 5897 ac_cv_prog_fc_g=no 5898fi 5899rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5900 5901fi 5902{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5 5903printf "%s\n" "$ac_cv_prog_fc_g" >&6; } 5904if test $ac_test_FCFLAGS; then 5905 FCFLAGS=$ac_save_FCFLAGS 5906elif test $ac_cv_prog_fc_g = yes; then 5907 if test "x$ac_cv_fc_compiler_gnu" = xyes; then 5908 FCFLAGS="-g -O2" 5909 else 5910 FCFLAGS="-g" 5911 fi 5912else 5913 if test "x$ac_cv_fc_compiler_gnu" = xyes; then 5914 FCFLAGS="-O2" 5915 else 5916 FCFLAGS= 5917 fi 5918fi 5919 5920if test $ac_compiler_gnu = yes; then 5921 GFC=yes 5922else 5923 GFC= 5924fi 5925ac_ext=c 5926ac_cpp='$CPP $CPPFLAGS' 5927ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5928ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5929ac_compiler_gnu=$ac_cv_c_compiler_gnu 5930 5931 5932if test -n "$FC" && test "X$FC" != Xno 5933then : 5934 ac_ext=${ac_fc_srcext-f} 5935ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 5936ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 5937ac_compiler_gnu=$ac_cv_fc_compiler_gnu 5938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Fortran flag to compile .f90 files" >&5 5939printf %s "checking for Fortran flag to compile .f90 files... " >&6; } 5940if test ${ac_cv_fc_srcext_f90+y} 5941then : 5942 printf %s "(cached) " >&6 5943else $as_nop 5944 ac_ext=f90 5945ac_fcflags_srcext_save=$ac_fcflags_srcext 5946ac_fcflags_srcext= 5947ac_cv_fc_srcext_f90=unknown 5948case $ac_ext in #( 5949 [fF]77) ac_try=f77;; #( 5950 *) ac_try=f95;; 5951esac 5952for ac_flag in none -qsuffix=f=f90 -Tf "-x $ac_try"; do 5953 test "x$ac_flag" != xnone && ac_fcflags_srcext="$ac_flag" 5954 cat > conftest.$ac_ext <<_ACEOF 5955 program conftest 5956 5957 end 5958_ACEOF 5959if ac_fn_fc_try_compile "$LINENO" 5960then : 5961 ac_cv_fc_srcext_f90=$ac_flag; break 5962fi 5963rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5964done 5965rm -f conftest.$ac_objext conftest.f90 5966ac_fcflags_srcext=$ac_fcflags_srcext_save 5967 5968fi 5969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_srcext_f90" >&5 5970printf "%s\n" "$ac_cv_fc_srcext_f90" >&6; } 5971if test "x$ac_cv_fc_srcext_f90" = xunknown; then 5972 as_fn_error $? "Fortran could not compile .f90 files" "$LINENO" 5 5973else 5974 ac_fc_srcext=f90 5975 if test "x$ac_cv_fc_srcext_f90" = xnone; then 5976 ac_fcflags_srcext="" 5977 FCFLAGS_f90="" 5978 else 5979 ac_fcflags_srcext=$ac_cv_fc_srcext_f90 5980 FCFLAGS_f90=$ac_cv_fc_srcext_f90 5981 fi 5982 5983 5984fi 5985ac_ext=c 5986ac_cpp='$CPP $CPPFLAGS' 5987ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5988ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5989ac_compiler_gnu=$ac_cv_c_compiler_gnu 5990 5991 ac_ext=${ac_fc_srcext-f} 5992ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 5993ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 5994ac_compiler_gnu=$ac_cv_fc_compiler_gnu 5995 5996 5997 # Prefer AC_PROG_FC to AC_PROG_F77 5998 export FC FCFLAGS 5999 if test "X$F77" != X 6000then : 6001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Use AC_PROG_FC with AC_PROG_FPP, instead of AC_PROG_F77" >&5 6002printf "%s\n" "$as_me: WARNING: Use AC_PROG_FC with AC_PROG_FPP, instead of AC_PROG_F77" >&2;} 6003fi 6004 6005 6006 6007 6008 6009 acx_sl_fpp_srcext=${ac_fc_srcext-F} 6010 as_acx_sl_prog_fpp=`printf "%s\n" "acx_sl_cv_prog_fpp_fc_${ac_fc_srcext-f}" | $as_tr_sh` 6011 6012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to preprocess Fortran files with suffix $acx_sl_fpp_srcext" >&5 6013printf %s "checking how to preprocess Fortran files with suffix $acx_sl_fpp_srcext... " >&6; } 6014if eval test \${$as_acx_sl_prog_fpp+y} 6015then : 6016 printf %s "(cached) " >&6 6017else $as_nop 6018 eval "$as_acx_sl_prog_fpp=" 6019 # Let the user specify FPP 6020 if test -n "$FPP" 6021then : 6022 rm -f conftest* 6023 6024 cat > conftest.$ac_ext <<_ACEOF 6025 program conftest 6026#define OK 6027#ifdef OK 6028 REAL A 6029#else 6030 syntax error 6031#endif 6032 end 6033_ACEOF 6034 ac_tmp=conftest.fppout 6035 if { { ac_try="$FPP $FPPFLAGS conftest.$acx_sl_fpp_srcext >$ac_tmp" 6036case "(($ac_try" in 6037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6038 *) ac_try_echo=$ac_try;; 6039esac 6040eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6041printf "%s\n" "$ac_try_echo"; } >&5 6042 ($FPP conftest.$acx_sl_fpp_srcext >$ac_tmp) 2>&5 6043 ac_status=$? 6044 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6045 test $ac_status = 0; } 6046then : 6047 if test -f $ac_tmp \ 6048 && ! cmp conftest.$acx_sl_fpp_srcext $ac_tmp >/dev/null 2>&1 \ 6049 && grep '^ REAL A' $ac_tmp >/dev/null 2>&1 \ 6050 && ! grep 'syntax error' $ac_tmp >/dev/null 2>&1 6051then : 6052 # we have Fortran! See if the file can be compiled: 6053 mv $ac_tmp conftest.$ac_ext 6054 if ac_fn_fc_try_compile "$LINENO" 6055then : 6056 printf "%s\n" "$as_me: failed program was:" >&5 6057sed 's/^/| /' conftest.$ac_ext >&5 6058 6059 eval "$as_acx_sl_prog_fpp=\"\$FPP\"" 6060else $as_nop 6061 printf "%s\n" "$as_me: failed program was:" >&5 6062sed 's/^/| /' conftest.$ac_ext >&5 6063 6064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: user-specified \$FPP ($FPP) does not work" >&5 6065printf "%s\n" "$as_me: WARNING: user-specified \$FPP ($FPP) does not work" >&2;} 6066 FPP= 6067fi 6068rm -f core conftest.err conftest.$ac_objext conftest.beam 6069else $as_nop 6070 mv $ac_tmp conftest.$ac_ext 6071 printf "%s\n" "$as_me: failed program was:" >&5 6072sed 's/^/| /' conftest.$ac_ext >&5 6073 6074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: user-specified \$FPP ($FPP) does not work" >&5 6075printf "%s\n" "$as_me: WARNING: user-specified \$FPP ($FPP) does not work" >&2;} 6076 FPP= 6077fi 6078fi 6079 rm -f conftest* 6080 6081fi 6082 if test -z "$FPP" 6083then : 6084 for ac_fpp in `cd $srcdir ; pwd`/util/sxpreproc-wrapper \ 6085 `cd $srcdir ; pwd`/util/xlfpreproc-wrapper \ 6086 `cd $srcdir ; pwd`/util/sunf95preproc-wrapper \ 6087 `cd $srcdir ; pwd`/util/crayftnpreproc-wrapper \ 6088 "$FC -F" "$FC -F -fpp" "$FC -E" "$FC -E -cpp" \ 6089 "$FC $FCFLAGS -F" "$FC $FCFLAGS -E" "$FC $FCFLAGS -E" \ 6090 "$FC $FCFLAGS -E -cpp" "$FC $FCFLAGS -x f95-cpp-input -E -P" 6091 do 6092 rm -f conftest* 6093 6094 cat > conftest.$ac_ext <<_ACEOF 6095 program conftest 6096#define OK 6097#ifdef OK 6098 REAL A 6099#else 6100 syntax error 6101#endif 6102 end 6103_ACEOF 6104 ac_tmp=conftest.fppout 6105 if { { ac_try="$ac_fpp $FPPFLAGS conftest.$acx_sl_fpp_srcext >$ac_tmp" 6106case "(($ac_try" in 6107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6108 *) ac_try_echo=$ac_try;; 6109esac 6110eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6111printf "%s\n" "$ac_try_echo"; } >&5 6112 ($ac_fpp conftest.$acx_sl_fpp_srcext >$ac_tmp) 2>&5 6113 ac_status=$? 6114 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6115 test $ac_status = 0; } 6116then : 6117 if test -f $ac_tmp \ 6118 && ! cmp conftest.$acx_sl_fpp_srcext $ac_tmp >/dev/null 2>&1 \ 6119 && grep '^ REAL A' $ac_tmp >/dev/null 2>&1 \ 6120 && ! grep 'syntax error' $ac_tmp >/dev/null 2>&1 6121then : 6122 # we have Fortran! See if the file can be compiled: 6123 mv $ac_tmp conftest.$ac_ext 6124 if ac_fn_fc_try_compile "$LINENO" 6125then : 6126 printf "%s\n" "$as_me: failed program was:" >&5 6127sed 's/^/| /' conftest.$ac_ext >&5 6128 6129 FPP="$ac_fpp" 6130 break 6131else $as_nop 6132 printf "%s\n" "$as_me: failed program was:" >&5 6133sed 's/^/| /' conftest.$ac_ext >&5 6134 6135 6136fi 6137rm -f core conftest.err conftest.$ac_objext conftest.beam 6138else $as_nop 6139 mv $ac_tmp conftest.$ac_ext 6140 printf "%s\n" "$as_me: failed program was:" >&5 6141sed 's/^/| /' conftest.$ac_ext >&5 6142 6143 6144fi 6145fi 6146 rm -f conftest* 6147 6148 rm -f conftest* 6149 6150 cat > conftest.$ac_ext <<_ACEOF 6151 program conftest 6152#define OK 6153#ifdef OK 6154 REAL A 6155#else 6156 syntax error 6157#endif 6158 end 6159_ACEOF 6160 ac_tmp=conftest.fppout 6161 if { { ac_try="$ac_fpp -P $FPPFLAGS conftest.$acx_sl_fpp_srcext >$ac_tmp" 6162case "(($ac_try" in 6163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6164 *) ac_try_echo=$ac_try;; 6165esac 6166eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6167printf "%s\n" "$ac_try_echo"; } >&5 6168 ($ac_fpp -P conftest.$acx_sl_fpp_srcext >$ac_tmp) 2>&5 6169 ac_status=$? 6170 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6171 test $ac_status = 0; } 6172then : 6173 if test -f $ac_tmp \ 6174 && ! cmp conftest.$acx_sl_fpp_srcext $ac_tmp >/dev/null 2>&1 \ 6175 && grep '^ REAL A' $ac_tmp >/dev/null 2>&1 \ 6176 && ! grep 'syntax error' $ac_tmp >/dev/null 2>&1 6177then : 6178 # we have Fortran! See if the file can be compiled: 6179 mv $ac_tmp conftest.$ac_ext 6180 if ac_fn_fc_try_compile "$LINENO" 6181then : 6182 printf "%s\n" "$as_me: failed program was:" >&5 6183sed 's/^/| /' conftest.$ac_ext >&5 6184 6185 FPP="$ac_fpp -P" 6186 break 6187else $as_nop 6188 printf "%s\n" "$as_me: failed program was:" >&5 6189sed 's/^/| /' conftest.$ac_ext >&5 6190 6191 6192fi 6193rm -f core conftest.err conftest.$ac_objext conftest.beam 6194else $as_nop 6195 mv $ac_tmp conftest.$ac_ext 6196 printf "%s\n" "$as_me: failed program was:" >&5 6197sed 's/^/| /' conftest.$ac_ext >&5 6198 6199 6200fi 6201fi 6202 rm -f conftest* 6203 6204 done 6205 \rm a.out 2>/dev/null 6206fi 6207 if test -z "$FPP" 6208then : 6209 6210else $as_nop 6211 eval "$as_acx_sl_prog_fpp=\$FPP" 6212 6213fi 6214fi 6215eval ac_res=\$$as_acx_sl_prog_fpp 6216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6217printf "%s\n" "$ac_res" >&6; } 6218 6219 6220 6221 # ACX_SL_PROG_FC_FPP_FEATURES does the actual feature tests, 6222 # storing results of the checks in non-cv variables like 6223 # ac_prog_fc_cpp_*, which we copy to cv variables afterwards. This 6224 # allows this macro to be reusable for other cv variables (see 6225 # below) 6226 6227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if preprocessing with $FPP of Fortran source supports required preprocessor features" >&5 6228printf %s "checking if preprocessing with $FPP of Fortran source supports required preprocessor features... " >&6; } 6229if test ${acx_sl_cv_fc_indirect_ok+y} 6230then : 6231 printf %s "(cached) " >&6 6232else $as_nop 6233 acx_sl_cv_fc_indirect_ok=yes 6234 # Set up ac_fpp_need_* flags based on features in 6235 acx_sl_fpp_srcext=${ac_fc_srcext-F} 6236 # defaults for needed features 6237 ac_fpp_need_d=yes 6238 ac_fpp_need_i=yes 6239 ac_fpp_need_subs=no 6240 ac_fpp_need_wrap=no 6241 ac_fpp_need_cstyle=no 6242 ac_fpp_need_CSTYLE=no 6243 ac_fpp_need_cxxstyle=yes 6244 ac_fpp_need_CXXSTYLE=no 6245 for _t in nil 6246 do 6247 case $_t in #( 6248 define) : 6249 ac_fpp_need_d=yes ;; #( 6250 nodefine) : 6251 ac_fpp_need_d=no ;; #( 6252 include) : 6253 ac_fpp_need_i=yes ;; #( 6254 noinclude) : 6255 ac_fpp_need_i=no ;; #( 6256 substitute) : 6257 ac_fpp_need_subs=yes ;; #( 6258 nosubstitute) : 6259 ac_fpp_need_subs=no ;; #( 6260 wrap) : 6261 ac_fpp_need_wrap=yes ;; #( 6262 nowwrap) : 6263 ac_fpp_need_wrap=no ;; #( 6264 cstyle) : 6265 ac_fpp_need_cstyle=yes ;; #( 6266 nocstyle) : 6267 ac_fpp_need_cstyle=no ;; #( 6268 CSTYLE) : 6269 ac_fpp_need_CSTYLE=yes ;; #( 6270 noCSTYLE) : 6271 ac_fpp_need_CSTYLE=no ;; #( 6272 cxxstyle) : 6273 ac_fpp_need_cxxstyle=yes ;; #( 6274 nocxxstyle) : 6275 ac_fpp_need_cxxstyle=no ;; #( 6276 CXXSTYLE) : 6277 ac_fpp_need_CXXSTYLE=yes ;; #( 6278 noCXXSTYLE) : 6279 ac_fpp_need_CXXSTYLE=no ;; #( 6280 nil) : 6281 ;; #( 6282 *) : 6283 ;; 6284esac 6285 done 6286 # Wrapping requires substitution 6287 test $ac_fpp_need_wrap = yes && ac_fpp_need_subs=yes 6288 # CSTYLE and cstyle are mutually exclusive. 6289 # CSTYLE takes precedence, since if it is not fulfilled, 6290 # compile errors may arise 6291 test $ac_fpp_need_CSTYLE = yes && ac_fpp_need_cstyle=no 6292 test $ac_fpp_need_CXXSTYLE = yes && ac_fpp_need_cxxstyle=no 6293 6294 6295 acx_sl_prog_fc_cpp_CSTYLE=no 6296 acx_sl_prog_fc_cpp_cxxstyle=no 6297 6298 6299 ac_save_FCFLAGS=$FCFLAGS 6300 6301 6302 6303 # We need to skip the following tests if we're trying direct compilation 6304 # and FC won't preprocess. 6305 if test x$ac_fpp_need_d = xyes 6306then : 6307 acx_sl_prog_fc_cpp_d=no 6308 printf "%s\n" "$as_me:${as_lineno-$LINENO}: Trying flag to create preprocessor defines." >&5 6309 6310 ac_ext=${ac_fc_srcext-f} 6311ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 6312ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 6313ac_compiler_gnu=$ac_cv_fc_compiler_gnu 6314 6315 ac_ext="$acx_sl_fpp_srcext" 6316 cat > conftest.$ac_ext <<_ACEOF 6317 program conftest 6318#ifndef OK 6319 syntax error 6320#endif 6321 end 6322_ACEOF 6323 ac_ext=${ac_fc_srcext-f} 6324ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 6325ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 6326ac_compiler_gnu=$ac_cv_fc_compiler_gnu 6327 6328 6329 6330 # Normally we expect to be able to define preprocessor macros 6331 # with -D, but this might be IBM xlf compiler, which needs 6332 # -WF,-D or Fujitsu VPP700 which needs -Wp,-D 6333 mv conftest.$acx_sl_fpp_srcext conftest.${acx_sl_fpp_srcext}.bak 6334 for FPP_DEFOPT in "$FPP_DEFOPT" '-D' '-WF,-D' '-Wp,-D' 6335 do 6336 if test x"$FPP_DEFOPT" != x 6337then : 6338 cp conftest.${acx_sl_fpp_srcext}.bak conftest.$acx_sl_fpp_srcext 6339 { { echo Running preprocessor $FPP $FPPFLAGS ${FPP_DEFOPT}OK conftest.$acx_sl_fpp_srcext; } >&5 6340 ($FPP $FPPFLAGS ${FPP_DEFOPT}OK conftest.$acx_sl_fpp_srcext \ 6341 >conftest.${ac_ext}.tmp) 2>&5 6342 ac_status=$? 6343 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6344 test $ac_status = 0; } 6345 6346 mv conftest.${ac_ext}.tmp conftest.${ac_ext} 6347 if ac_fn_fc_try_compile "$LINENO" 6348then : 6349 acx_sl_prog_fc_cpp_d=yes; break 6350fi 6351rm -f core conftest.err conftest.$ac_objext conftest.beam 6352fi 6353 done 6354 FCFLAGS=$ac_save_FCFLAGS 6355 if test $acx_sl_prog_fc_cpp_d = no 6356then : 6357 acx_sl_cv_fc_indirect_ok=no 6358fi 6359 if test x$acx_sl_cv_fc_indirect_ok = xyes 6360then : 6361 printf "%s\n" "$as_me:${as_lineno-$LINENO}: Test successful." >&5 6362else $as_nop 6363 printf "%s\n" "$as_me:${as_lineno-$LINENO}: Test failed." >&5 6364fi 6365 6366fi 6367 6368 if test $ac_fpp_need_i = yes 6369then : 6370 acx_sl_prog_fc_cpp_i=no 6371 printf "%s\n" "$as_me:${as_lineno-$LINENO}: Trying flag to add directories to preprocessor search path." >&5 6372 as_dir=conftst; as_fn_mkdir_p 6373 cd conftst 6374 6375 ac_ext=${ac_fc_srcext-f} 6376ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 6377ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 6378ac_compiler_gnu=$ac_cv_fc_compiler_gnu 6379 6380 ac_ext="inc" 6381 cat > conftest.$ac_ext <<_ACEOF 6382 ! This statement overrides the IMPLICIT statement in the program 6383 REAL cc 6384_ACEOF 6385 ac_ext=${ac_fc_srcext-f} 6386ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 6387ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 6388ac_compiler_gnu=$ac_cv_fc_compiler_gnu 6389 6390 6391 6392 cd .. 6393 6394 ac_ext=${ac_fc_srcext-f} 6395ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 6396ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 6397ac_compiler_gnu=$ac_cv_fc_compiler_gnu 6398 6399 ac_ext="$acx_sl_fpp_srcext" 6400 cat > conftest.$ac_ext <<_ACEOF 6401 program conftest 6402 IMPLICIT CHARACTER (c) 6403 ! Comments in test programs should be freeform compliant just in case. 6404 ! conftest.inc contains the Fortran statement "REAL cc" 6405#include "conftest.inc" 6406 cc=1. 6407 end 6408_ACEOF 6409 ac_ext=${ac_fc_srcext-f} 6410ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 6411ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 6412ac_compiler_gnu=$ac_cv_fc_compiler_gnu 6413 6414 6415 6416 mv conftest.$acx_sl_fpp_srcext conftest.${acx_sl_fpp_srcext}.bak 6417 for FPP_INCOPT in "$FPP_INCOPT" '-I' '-WF,-I' '-Wp,-I' 6418 do 6419 if test x"$FPP_INCOPT" != x 6420then : 6421 cp conftest.${acx_sl_fpp_srcext}.bak conftest.$acx_sl_fpp_srcext 6422 { { echo Running preprocessor $FPP $FPPFLAGS ${FPP_INCOPT}conftst conftest.$acx_sl_fpp_srcext; } >&5 6423 ($FPP $FPPFLAGS ${FPP_INCOPT}conftst conftest.$acx_sl_fpp_srcext \ 6424 >conftest.${ac_ext}.tmp) 2>&5 6425 ac_status=$? 6426 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6427 test $ac_status = 0; } 6428 6429 mv conftest.${ac_ext}.tmp conftest.${ac_ext} 6430 if ac_fn_fc_try_compile "$LINENO" 6431then : 6432 acx_sl_prog_fc_cpp_i=yes 6433 break 6434fi 6435rm -f core conftest.err conftest.$ac_objext conftest.beam 6436fi 6437 done 6438 FCFLAGS=$ac_save_FCFLAGS 6439 rm -rf conftst 6440 if test $acx_sl_prog_fc_cpp_i = no 6441then : 6442 acx_sl_cv_fc_indirect_ok=no 6443fi 6444 if test x$acx_sl_cv_fc_indirect_ok = xyes 6445then : 6446 printf "%s\n" "$as_me:${as_lineno-$LINENO}: Test successful." >&5 6447else $as_nop 6448 printf "%s\n" "$as_me:${as_lineno-$LINENO}: Test failed." >&5 6449fi 6450fi 6451 if test $ac_fpp_need_subs = yes 6452then : 6453 acx_sl_prog_fc_cpp_subs=no 6454 printf "%s\n" "$as_me:${as_lineno-$LINENO}: Testing preprocessor expansion in Fortran code." >&5 6455 6456 ac_ext=${ac_fc_srcext-f} 6457ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 6458ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 6459ac_compiler_gnu=$ac_cv_fc_compiler_gnu 6460 6461 ac_ext="$acx_sl_fpp_srcext" 6462 cat > conftest.$ac_ext <<_ACEOF 6463 program conftest 6464#define NM xxxx 6465 IMPLICIT CHARACTER (n) 6466 REAL xxxx 6467 NM=1. 6468 end 6469_ACEOF 6470 ac_ext=${ac_fc_srcext-f} 6471ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 6472ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 6473ac_compiler_gnu=$ac_cv_fc_compiler_gnu 6474 6475 6476 6477 { { echo Running preprocessor $FPP $FPPFLAGS conftest.$acx_sl_fpp_srcext; } >&5 6478 ($FPP $FPPFLAGS conftest.$acx_sl_fpp_srcext \ 6479 >conftest.${ac_ext}.tmp) 2>&5 6480 ac_status=$? 6481 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6482 test $ac_status = 0; } 6483 6484 mv conftest.${ac_ext}.tmp conftest.${ac_ext} 6485 if ac_fn_fc_try_compile "$LINENO" 6486then : 6487 acx_sl_prog_fc_cpp_subs=yes 6488else $as_nop 6489 acx_sl_cv_fc_indirect_ok=no 6490fi 6491rm -f core conftest.err conftest.$ac_objext conftest.beam 6492 if test x$acx_sl_cv_fc_indirect_ok = xyes 6493then : 6494 printf "%s\n" "$as_me:${as_lineno-$LINENO}: Test successful." >&5 6495else $as_nop 6496 printf "%s\n" "$as_me:${as_lineno-$LINENO}: Test failed." >&5 6497fi 6498 6499fi 6500 if test $ac_fpp_need_wrap = yes 6501then : 6502 acx_sl_prog_fc_cpp_wrap=no 6503 printf "%s\n" "$as_me:${as_lineno-$LINENO}: Testing wether preprocessor wraps long lines." >&5 6504 6505 ac_ext=${ac_fc_srcext-f} 6506ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 6507ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 6508ac_compiler_gnu=$ac_cv_fc_compiler_gnu 6509 6510 ac_ext="$acx_sl_fpp_srcext" 6511 cat > conftest.$ac_ext <<_ACEOF 6512 program conftest 6513#define LONG '901234567890123456789012345678901234567890123456789012345678901234567890' 6514 CHARACTER(LEN=80) :: A 6515 A=LONG 6516 end 6517_ACEOF 6518 ac_ext=${ac_fc_srcext-f} 6519ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 6520ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 6521ac_compiler_gnu=$ac_cv_fc_compiler_gnu 6522 6523 6524 6525 { { echo Running preprocessor $FPP $FPPFLAGS conftest.$acx_sl_fpp_srcext; } >&5 6526 ($FPP $FPPFLAGS conftest.$acx_sl_fpp_srcext \ 6527 >conftest.${ac_ext}.tmp) 2>&5 6528 ac_status=$? 6529 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6530 test $ac_status = 0; } 6531 6532 mv conftest.${ac_ext}.tmp conftest.${ac_ext} 6533 if ac_fn_fc_try_compile "$LINENO" 6534then : 6535 acx_sl_prog_fc_cpp_wrap=yes 6536else $as_nop 6537 acx_sl_cv_fc_indirect_ok=no 6538fi 6539rm -f core conftest.err conftest.$ac_objext conftest.beam 6540 if test x$acx_sl_cv_fc_indirect_ok = xyes 6541then : 6542 printf "%s\n" "$as_me:${as_lineno-$LINENO}: Test successful." >&5 6543else $as_nop 6544 printf "%s\n" "$as_me:${as_lineno-$LINENO}: Test failed." >&5 6545fi 6546 6547fi 6548 if test $ac_fpp_need_CSTYLE = yes 6549then : 6550 printf "%s\n" "$as_me:${as_lineno-$LINENO}: Testing wether preprocessor removes C-style comments." >&5 6551 6552 ac_ext=${ac_fc_srcext-f} 6553ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 6554ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 6555ac_compiler_gnu=$ac_cv_fc_compiler_gnu 6556 6557 ac_ext="$acx_sl_fpp_srcext" 6558 cat > conftest.$ac_ext <<_ACEOF 6559 program conftest 6560 A=1. /* C-style comment */ 6561 end 6562_ACEOF 6563 ac_ext=${ac_fc_srcext-f} 6564ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 6565ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 6566ac_compiler_gnu=$ac_cv_fc_compiler_gnu 6567 6568 6569 6570 { { echo Running preprocessor $FPP $FPPFLAGS conftest.$acx_sl_fpp_srcext; } >&5 6571 ($FPP $FPPFLAGS conftest.$acx_sl_fpp_srcext \ 6572 >conftest.${ac_ext}.tmp) 2>&5 6573 ac_status=$? 6574 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6575 test $ac_status = 0; } 6576 6577 mv conftest.${ac_ext}.tmp conftest.${ac_ext} 6578 if ac_fn_fc_try_compile "$LINENO" 6579then : 6580 acx_sl_prog_fc_cpp_CSTYLE=yes 6581else $as_nop 6582 acx_sl_cv_fc_indirect_ok=no 6583fi 6584rm -f core conftest.err conftest.$ac_objext conftest.beam 6585 if test x$acx_sl_cv_fc_indirect_ok = xyes 6586then : 6587 printf "%s\n" "$as_me:${as_lineno-$LINENO}: Test successful." >&5 6588else $as_nop 6589 printf "%s\n" "$as_me:${as_lineno-$LINENO}: Test failed." >&5 6590fi 6591 6592fi 6593 if test $ac_fpp_need_cstyle = yes 6594then : 6595 printf "%s\n" "$as_me:${as_lineno-$LINENO}: Testing wether preprocessor leaves C-style comments in place." >&5 6596 6597 ac_ext=${ac_fc_srcext-f} 6598ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 6599ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 6600ac_compiler_gnu=$ac_cv_fc_compiler_gnu 6601 6602 ac_ext="$acx_sl_fpp_srcext" 6603 cat > conftest.$ac_ext <<_ACEOF 6604 program conftest 6605 A=1. /* C-style comment */ 6606 end 6607_ACEOF 6608 ac_ext=${ac_fc_srcext-f} 6609ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 6610ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 6611ac_compiler_gnu=$ac_cv_fc_compiler_gnu 6612 6613 6614 6615 { { echo Running preprocessor $FPP $FPPFLAGS conftest.$acx_sl_fpp_srcext; } >&5 6616 ($FPP $FPPFLAGS conftest.$acx_sl_fpp_srcext \ 6617 >conftest.${ac_ext}.tmp) 2>&5 6618 ac_status=$? 6619 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6620 test $ac_status = 0; } 6621 6622 mv conftest.${ac_ext}.tmp conftest.${ac_ext} 6623 if ac_fn_fc_try_compile "$LINENO" 6624then : 6625 acx_sl_prog_fc_cpp_CSTYLE=yes 6626else $as_nop 6627 acx_sl_cv_fc_indirect_ok=no 6628fi 6629rm -f core conftest.err conftest.$ac_objext conftest.beam 6630 if test x$acx_sl_cv_fc_indirect_ok = xyes 6631then : 6632 printf "%s\n" "$as_me:${as_lineno-$LINENO}: Test failed." >&5 6633else $as_nop 6634 printf "%s\n" "$as_me:${as_lineno-$LINENO}: Test successful." >&5 6635fi 6636 6637fi 6638 if test $ac_fpp_need_cxxstyle = yes 6639then : 6640 printf "%s\n" "$as_me:${as_lineno-$LINENO}: Testing if preprocessor leaves C++-style comments in place." >&5 6641 6642 ac_ext=${ac_fc_srcext-f} 6643ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 6644ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 6645ac_compiler_gnu=$ac_cv_fc_compiler_gnu 6646 6647 ac_ext="$acx_sl_fpp_srcext" 6648 cat > conftest.$ac_ext <<_ACEOF 6649 PROGRAM MAIN 6650 CHARACTER(LEN=10) :: C 6651 C = "abcde" // "fghij"; END PROGRAM 6652_ACEOF 6653 ac_ext=${ac_fc_srcext-f} 6654ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 6655ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 6656ac_compiler_gnu=$ac_cv_fc_compiler_gnu 6657 6658 6659 6660 { { echo Running preprocessor $FPP $FPPFLAGS conftest.$acx_sl_fpp_srcext; } >&5 6661 ($FPP $FPPFLAGS conftest.$acx_sl_fpp_srcext \ 6662 >conftest.${ac_ext}.tmp) 2>&5 6663 ac_status=$? 6664 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6665 test $ac_status = 0; } 6666 6667 mv conftest.${ac_ext}.tmp conftest.${ac_ext} 6668 if ac_fn_fc_try_compile "$LINENO" 6669then : 6670 acx_sl_prog_fc_cpp_cxxstyle=yes 6671else $as_nop 6672 acx_sl_cv_fc_indirect_ok=no 6673fi 6674rm -f core conftest.err conftest.$ac_objext conftest.beam 6675 if test x$acx_sl_cv_fc_indirect_ok = xyes 6676then : 6677 printf "%s\n" "$as_me:${as_lineno-$LINENO}: Test successful." >&5 6678else $as_nop 6679 printf "%s\n" "$as_me:${as_lineno-$LINENO}: Test failed." >&5 6680fi 6681 6682fi 6683 if test $ac_fpp_need_CXXSTYLE = yes 6684then : 6685 printf "%s\n" "$as_me:${as_lineno-$LINENO}: Testing if preprocessor suppresses C++-style comments." >&5 6686 6687 ac_ext=${ac_fc_srcext-f} 6688ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 6689ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 6690ac_compiler_gnu=$ac_cv_fc_compiler_gnu 6691 6692 ac_ext="$acx_sl_fpp_srcext" 6693 cat > conftest.$ac_ext <<_ACEOF 6694 PROGRAM MAIN 6695 CHARACTER(LEN=10) :: C 6696 C = "abcde" // "fghij"; END PROGRAM 6697_ACEOF 6698 ac_ext=${ac_fc_srcext-f} 6699ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 6700ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 6701ac_compiler_gnu=$ac_cv_fc_compiler_gnu 6702 6703 6704 6705 { { echo Running preprocessor $FPP $FPPFLAGS conftest.$acx_sl_fpp_srcext; } >&5 6706 ($FPP $FPPFLAGS conftest.$acx_sl_fpp_srcext \ 6707 >conftest.${ac_ext}.tmp) 2>&5 6708 ac_status=$? 6709 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6710 test $ac_status = 0; } 6711 6712 mv conftest.${ac_ext}.tmp conftest.${ac_ext} 6713 if ac_fn_fc_try_compile "$LINENO" 6714then : 6715 acx_sl_prog_fc_cpp_cxxstyle=yes 6716else $as_nop 6717 acx_sl_cv_fc_indirect_ok=no 6718fi 6719rm -f core conftest.err conftest.$ac_objext conftest.beam 6720 if test x$acx_sl_cv_fc_indirect_ok = xyes 6721then : 6722 printf "%s\n" "$as_me:${as_lineno-$LINENO}: Test failed." >&5 6723else $as_nop 6724 printf "%s\n" "$as_me:${as_lineno-$LINENO}: Test successful." >&5 6725fi 6726 6727fi 6728 FCFLAGS=$ac_save_FCFLAGS 6729 rm -f conftest.* 6730 if test x$acx_sl_cv_fc_indirect_ok = xyes 6731then : 6732 6733else $as_nop 6734 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6735printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 6736as_fn_error $? "required Fortran preprocessor not available 6737See \`config.log' for more details" "$LINENO" 5; } 6738fi 6739 6740fi 6741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acx_sl_cv_fc_indirect_ok" >&5 6742printf "%s\n" "$acx_sl_cv_fc_indirect_ok" >&6; } 6743 #FIXME we should probably do the AC_SUBST somewhere else. 6744 6745 6746 6747 6748 6749 ac_ext=c 6750ac_cpp='$CPP $CPPFLAGS' 6751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6753ac_compiler_gnu=$ac_cv_c_compiler_gnu 6754 6755fi 6756ac_ext=f 6757ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 6758ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6759ac_compiler_gnu=$ac_cv_f77_compiler_gnu 6760if test -n "$ac_tool_prefix"; then 6761 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 6762 do 6763 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6764set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6766printf %s "checking for $ac_word... " >&6; } 6767if test ${ac_cv_prog_F77+y} 6768then : 6769 printf %s "(cached) " >&6 6770else $as_nop 6771 if test -n "$F77"; then 6772 ac_cv_prog_F77="$F77" # Let the user override the test. 6773else 6774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6775for as_dir in $PATH 6776do 6777 IFS=$as_save_IFS 6778 case $as_dir in #((( 6779 '') as_dir=./ ;; 6780 */) ;; 6781 *) as_dir=$as_dir/ ;; 6782 esac 6783 for ac_exec_ext in '' $ac_executable_extensions; do 6784 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6785 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 6786 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6787 break 2 6788 fi 6789done 6790 done 6791IFS=$as_save_IFS 6792 6793fi 6794fi 6795F77=$ac_cv_prog_F77 6796if test -n "$F77"; then 6797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $F77" >&5 6798printf "%s\n" "$F77" >&6; } 6799else 6800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6801printf "%s\n" "no" >&6; } 6802fi 6803 6804 6805 test -n "$F77" && break 6806 done 6807fi 6808if test -z "$F77"; then 6809 ac_ct_F77=$F77 6810 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 6811do 6812 # Extract the first word of "$ac_prog", so it can be a program name with args. 6813set dummy $ac_prog; ac_word=$2 6814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6815printf %s "checking for $ac_word... " >&6; } 6816if test ${ac_cv_prog_ac_ct_F77+y} 6817then : 6818 printf %s "(cached) " >&6 6819else $as_nop 6820 if test -n "$ac_ct_F77"; then 6821 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 6822else 6823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6824for as_dir in $PATH 6825do 6826 IFS=$as_save_IFS 6827 case $as_dir in #((( 6828 '') as_dir=./ ;; 6829 */) ;; 6830 *) as_dir=$as_dir/ ;; 6831 esac 6832 for ac_exec_ext in '' $ac_executable_extensions; do 6833 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6834 ac_cv_prog_ac_ct_F77="$ac_prog" 6835 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6836 break 2 6837 fi 6838done 6839 done 6840IFS=$as_save_IFS 6841 6842fi 6843fi 6844ac_ct_F77=$ac_cv_prog_ac_ct_F77 6845if test -n "$ac_ct_F77"; then 6846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5 6847printf "%s\n" "$ac_ct_F77" >&6; } 6848else 6849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6850printf "%s\n" "no" >&6; } 6851fi 6852 6853 6854 test -n "$ac_ct_F77" && break 6855done 6856 6857 if test "x$ac_ct_F77" = x; then 6858 F77="" 6859 else 6860 case $cross_compiling:$ac_tool_warned in 6861yes:) 6862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6863printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6864ac_tool_warned=yes ;; 6865esac 6866 F77=$ac_ct_F77 6867 fi 6868fi 6869 6870 6871# Provide some information about the compiler. 6872printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5 6873set X $ac_compile 6874ac_compiler=$2 6875for ac_option in --version -v -V -qversion; do 6876 { { ac_try="$ac_compiler $ac_option >&5" 6877case "(($ac_try" in 6878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6879 *) ac_try_echo=$ac_try;; 6880esac 6881eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6882printf "%s\n" "$ac_try_echo"; } >&5 6883 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 6884 ac_status=$? 6885 if test -s conftest.err; then 6886 sed '10a\ 6887... rest of stderr output deleted ... 6888 10q' conftest.err >conftest.er1 6889 cat conftest.er1 >&5 6890 fi 6891 rm -f conftest.er1 conftest.err 6892 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6893 test $ac_status = 0; } 6894done 6895rm -f a.out 6896 6897# If we don't use `.F' as extension, the preprocessor is not run on the 6898# input file. (Note that this only needs to work for GNU compilers.) 6899ac_save_ext=$ac_ext 6900ac_ext=F 6901{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU Fortran 77" >&5 6902printf %s "checking whether the compiler supports GNU Fortran 77... " >&6; } 6903if test ${ac_cv_f77_compiler_gnu+y} 6904then : 6905 printf %s "(cached) " >&6 6906else $as_nop 6907 cat > conftest.$ac_ext <<_ACEOF 6908 program main 6909#ifndef __GNUC__ 6910 choke me 6911#endif 6912 6913 end 6914_ACEOF 6915if ac_fn_f77_try_compile "$LINENO" 6916then : 6917 ac_compiler_gnu=yes 6918else $as_nop 6919 ac_compiler_gnu=no 6920fi 6921rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6922ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6923 6924fi 6925{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5 6926printf "%s\n" "$ac_cv_f77_compiler_gnu" >&6; } 6927ac_compiler_gnu=$ac_cv_f77_compiler_gnu 6928 6929ac_ext=$ac_save_ext 6930ac_test_FFLAGS=${FFLAGS+y} 6931ac_save_FFLAGS=$FFLAGS 6932FFLAGS= 6933{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5 6934printf %s "checking whether $F77 accepts -g... " >&6; } 6935if test ${ac_cv_prog_f77_g+y} 6936then : 6937 printf %s "(cached) " >&6 6938else $as_nop 6939 FFLAGS=-g 6940cat > conftest.$ac_ext <<_ACEOF 6941 program main 6942 6943 end 6944_ACEOF 6945if ac_fn_f77_try_compile "$LINENO" 6946then : 6947 ac_cv_prog_f77_g=yes 6948else $as_nop 6949 ac_cv_prog_f77_g=no 6950fi 6951rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6952 6953fi 6954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5 6955printf "%s\n" "$ac_cv_prog_f77_g" >&6; } 6956if test $ac_test_FFLAGS; then 6957 FFLAGS=$ac_save_FFLAGS 6958elif test $ac_cv_prog_f77_g = yes; then 6959 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6960 FFLAGS="-g -O2" 6961 else 6962 FFLAGS="-g" 6963 fi 6964else 6965 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6966 FFLAGS="-O2" 6967 else 6968 FFLAGS= 6969 fi 6970fi 6971 6972if test $ac_compiler_gnu = yes; then 6973 G77=yes 6974else 6975 G77= 6976fi 6977ac_ext=c 6978ac_cpp='$CPP $CPPFLAGS' 6979ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6980ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6981ac_compiler_gnu=$ac_cv_c_compiler_gnu 6982 6983 6984 6985 6986 6987 6988 6989ac_ext=cpp 6990ac_cpp='$CXXCPP $CPPFLAGS' 6991ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6992ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6993ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6994if test -z "$CXX"; then 6995 if test -n "$CCC"; then 6996 CXX=$CCC 6997 else 6998 if test -n "$ac_tool_prefix"; then 6999 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ 7000 do 7001 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7002set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7003{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7004printf %s "checking for $ac_word... " >&6; } 7005if test ${ac_cv_prog_CXX+y} 7006then : 7007 printf %s "(cached) " >&6 7008else $as_nop 7009 if test -n "$CXX"; then 7010 ac_cv_prog_CXX="$CXX" # Let the user override the test. 7011else 7012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7013for as_dir in $PATH 7014do 7015 IFS=$as_save_IFS 7016 case $as_dir in #((( 7017 '') as_dir=./ ;; 7018 */) ;; 7019 *) as_dir=$as_dir/ ;; 7020 esac 7021 for ac_exec_ext in '' $ac_executable_extensions; do 7022 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7023 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 7024 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7025 break 2 7026 fi 7027done 7028 done 7029IFS=$as_save_IFS 7030 7031fi 7032fi 7033CXX=$ac_cv_prog_CXX 7034if test -n "$CXX"; then 7035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 7036printf "%s\n" "$CXX" >&6; } 7037else 7038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7039printf "%s\n" "no" >&6; } 7040fi 7041 7042 7043 test -n "$CXX" && break 7044 done 7045fi 7046if test -z "$CXX"; then 7047 ac_ct_CXX=$CXX 7048 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ 7049do 7050 # Extract the first word of "$ac_prog", so it can be a program name with args. 7051set dummy $ac_prog; ac_word=$2 7052{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7053printf %s "checking for $ac_word... " >&6; } 7054if test ${ac_cv_prog_ac_ct_CXX+y} 7055then : 7056 printf %s "(cached) " >&6 7057else $as_nop 7058 if test -n "$ac_ct_CXX"; then 7059 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 7060else 7061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7062for as_dir in $PATH 7063do 7064 IFS=$as_save_IFS 7065 case $as_dir in #((( 7066 '') as_dir=./ ;; 7067 */) ;; 7068 *) as_dir=$as_dir/ ;; 7069 esac 7070 for ac_exec_ext in '' $ac_executable_extensions; do 7071 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7072 ac_cv_prog_ac_ct_CXX="$ac_prog" 7073 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7074 break 2 7075 fi 7076done 7077 done 7078IFS=$as_save_IFS 7079 7080fi 7081fi 7082ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 7083if test -n "$ac_ct_CXX"; then 7084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 7085printf "%s\n" "$ac_ct_CXX" >&6; } 7086else 7087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7088printf "%s\n" "no" >&6; } 7089fi 7090 7091 7092 test -n "$ac_ct_CXX" && break 7093done 7094 7095 if test "x$ac_ct_CXX" = x; then 7096 CXX="g++" 7097 else 7098 case $cross_compiling:$ac_tool_warned in 7099yes:) 7100{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7101printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7102ac_tool_warned=yes ;; 7103esac 7104 CXX=$ac_ct_CXX 7105 fi 7106fi 7107 7108 fi 7109fi 7110# Provide some information about the compiler. 7111printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 7112set X $ac_compile 7113ac_compiler=$2 7114for ac_option in --version -v -V -qversion; do 7115 { { ac_try="$ac_compiler $ac_option >&5" 7116case "(($ac_try" in 7117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7118 *) ac_try_echo=$ac_try;; 7119esac 7120eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 7121printf "%s\n" "$ac_try_echo"; } >&5 7122 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 7123 ac_status=$? 7124 if test -s conftest.err; then 7125 sed '10a\ 7126... rest of stderr output deleted ... 7127 10q' conftest.err >conftest.er1 7128 cat conftest.er1 >&5 7129 fi 7130 rm -f conftest.er1 conftest.err 7131 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7132 test $ac_status = 0; } 7133done 7134 7135{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5 7136printf %s "checking whether the compiler supports GNU C++... " >&6; } 7137if test ${ac_cv_cxx_compiler_gnu+y} 7138then : 7139 printf %s "(cached) " >&6 7140else $as_nop 7141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7142/* end confdefs.h. */ 7143 7144int 7145main (void) 7146{ 7147#ifndef __GNUC__ 7148 choke me 7149#endif 7150 7151 ; 7152 return 0; 7153} 7154_ACEOF 7155if ac_fn_cxx_try_compile "$LINENO" 7156then : 7157 ac_compiler_gnu=yes 7158else $as_nop 7159 ac_compiler_gnu=no 7160fi 7161rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7162ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 7163 7164fi 7165{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 7166printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; } 7167ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7168 7169if test $ac_compiler_gnu = yes; then 7170 GXX=yes 7171else 7172 GXX= 7173fi 7174ac_test_CXXFLAGS=${CXXFLAGS+y} 7175ac_save_CXXFLAGS=$CXXFLAGS 7176{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 7177printf %s "checking whether $CXX accepts -g... " >&6; } 7178if test ${ac_cv_prog_cxx_g+y} 7179then : 7180 printf %s "(cached) " >&6 7181else $as_nop 7182 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 7183 ac_cxx_werror_flag=yes 7184 ac_cv_prog_cxx_g=no 7185 CXXFLAGS="-g" 7186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7187/* end confdefs.h. */ 7188 7189int 7190main (void) 7191{ 7192 7193 ; 7194 return 0; 7195} 7196_ACEOF 7197if ac_fn_cxx_try_compile "$LINENO" 7198then : 7199 ac_cv_prog_cxx_g=yes 7200else $as_nop 7201 CXXFLAGS="" 7202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7203/* end confdefs.h. */ 7204 7205int 7206main (void) 7207{ 7208 7209 ; 7210 return 0; 7211} 7212_ACEOF 7213if ac_fn_cxx_try_compile "$LINENO" 7214then : 7215 7216else $as_nop 7217 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 7218 CXXFLAGS="-g" 7219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7220/* end confdefs.h. */ 7221 7222int 7223main (void) 7224{ 7225 7226 ; 7227 return 0; 7228} 7229_ACEOF 7230if ac_fn_cxx_try_compile "$LINENO" 7231then : 7232 ac_cv_prog_cxx_g=yes 7233fi 7234rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7235fi 7236rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7237fi 7238rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7239 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 7240fi 7241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 7242printf "%s\n" "$ac_cv_prog_cxx_g" >&6; } 7243if test $ac_test_CXXFLAGS; then 7244 CXXFLAGS=$ac_save_CXXFLAGS 7245elif test $ac_cv_prog_cxx_g = yes; then 7246 if test "$GXX" = yes; then 7247 CXXFLAGS="-g -O2" 7248 else 7249 CXXFLAGS="-g" 7250 fi 7251else 7252 if test "$GXX" = yes; then 7253 CXXFLAGS="-O2" 7254 else 7255 CXXFLAGS= 7256 fi 7257fi 7258ac_prog_cxx_stdcxx=no 7259if test x$ac_prog_cxx_stdcxx = xno 7260then : 7261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5 7262printf %s "checking for $CXX option to enable C++11 features... " >&6; } 7263if test ${ac_cv_prog_cxx_11+y} 7264then : 7265 printf %s "(cached) " >&6 7266else $as_nop 7267 ac_cv_prog_cxx_11=no 7268ac_save_CXX=$CXX 7269cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7270/* end confdefs.h. */ 7271$ac_cxx_conftest_cxx11_program 7272_ACEOF 7273for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA 7274do 7275 CXX="$ac_save_CXX $ac_arg" 7276 if ac_fn_cxx_try_compile "$LINENO" 7277then : 7278 ac_cv_prog_cxx_cxx11=$ac_arg 7279fi 7280rm -f core conftest.err conftest.$ac_objext conftest.beam 7281 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break 7282done 7283rm -f conftest.$ac_ext 7284CXX=$ac_save_CXX 7285fi 7286 7287if test "x$ac_cv_prog_cxx_cxx11" = xno 7288then : 7289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 7290printf "%s\n" "unsupported" >&6; } 7291else $as_nop 7292 if test "x$ac_cv_prog_cxx_cxx11" = x 7293then : 7294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 7295printf "%s\n" "none needed" >&6; } 7296else $as_nop 7297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5 7298printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; } 7299 CXX="$CXX $ac_cv_prog_cxx_cxx11" 7300fi 7301 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11 7302 ac_prog_cxx_stdcxx=cxx11 7303fi 7304fi 7305if test x$ac_prog_cxx_stdcxx = xno 7306then : 7307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5 7308printf %s "checking for $CXX option to enable C++98 features... " >&6; } 7309if test ${ac_cv_prog_cxx_98+y} 7310then : 7311 printf %s "(cached) " >&6 7312else $as_nop 7313 ac_cv_prog_cxx_98=no 7314ac_save_CXX=$CXX 7315cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7316/* end confdefs.h. */ 7317$ac_cxx_conftest_cxx98_program 7318_ACEOF 7319for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA 7320do 7321 CXX="$ac_save_CXX $ac_arg" 7322 if ac_fn_cxx_try_compile "$LINENO" 7323then : 7324 ac_cv_prog_cxx_cxx98=$ac_arg 7325fi 7326rm -f core conftest.err conftest.$ac_objext conftest.beam 7327 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break 7328done 7329rm -f conftest.$ac_ext 7330CXX=$ac_save_CXX 7331fi 7332 7333if test "x$ac_cv_prog_cxx_cxx98" = xno 7334then : 7335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 7336printf "%s\n" "unsupported" >&6; } 7337else $as_nop 7338 if test "x$ac_cv_prog_cxx_cxx98" = x 7339then : 7340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 7341printf "%s\n" "none needed" >&6; } 7342else $as_nop 7343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5 7344printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; } 7345 CXX="$CXX $ac_cv_prog_cxx_cxx98" 7346fi 7347 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98 7348 ac_prog_cxx_stdcxx=cxx98 7349fi 7350fi 7351 7352ac_ext=c 7353ac_cpp='$CPP $CPPFLAGS' 7354ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7355ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7356ac_compiler_gnu=$ac_cv_c_compiler_gnu 7357 7358depcc="$CXX" am_compiler_list= 7359 7360{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 7361printf %s "checking dependency style of $depcc... " >&6; } 7362if test ${am_cv_CXX_dependencies_compiler_type+y} 7363then : 7364 printf %s "(cached) " >&6 7365else $as_nop 7366 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 7367 # We make a subdir and do the tests there. Otherwise we can end up 7368 # making bogus files that we don't know about and never remove. For 7369 # instance it was reported that on HP-UX the gcc test will end up 7370 # making a dummy file named 'D' -- because '-MD' means "put the output 7371 # in D". 7372 rm -rf conftest.dir 7373 mkdir conftest.dir 7374 # Copy depcomp to subdir because otherwise we won't find it if we're 7375 # using a relative directory. 7376 cp "$am_depcomp" conftest.dir 7377 cd conftest.dir 7378 # We will build objects and dependencies in a subdirectory because 7379 # it helps to detect inapplicable dependency modes. For instance 7380 # both Tru64's cc and ICC support -MD to output dependencies as a 7381 # side effect of compilation, but ICC will put the dependencies in 7382 # the current directory while Tru64 will put them in the object 7383 # directory. 7384 mkdir sub 7385 7386 am_cv_CXX_dependencies_compiler_type=none 7387 if test "$am_compiler_list" = ""; then 7388 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 7389 fi 7390 am__universal=false 7391 case " $depcc " in #( 7392 *\ -arch\ *\ -arch\ *) am__universal=true ;; 7393 esac 7394 7395 for depmode in $am_compiler_list; do 7396 # Setup a source with many dependencies, because some compilers 7397 # like to wrap large dependency lists on column 80 (with \), and 7398 # we should not choose a depcomp mode which is confused by this. 7399 # 7400 # We need to recreate these files for each test, as the compiler may 7401 # overwrite some of them when testing with obscure command lines. 7402 # This happens at least with the AIX C compiler. 7403 : > sub/conftest.c 7404 for i in 1 2 3 4 5 6; do 7405 echo '#include "conftst'$i'.h"' >> sub/conftest.c 7406 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 7407 # Solaris 10 /bin/sh. 7408 echo '/* dummy */' > sub/conftst$i.h 7409 done 7410 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 7411 7412 # We check with '-c' and '-o' for the sake of the "dashmstdout" 7413 # mode. It turns out that the SunPro C++ compiler does not properly 7414 # handle '-M -o', and we need to detect this. Also, some Intel 7415 # versions had trouble with output in subdirs. 7416 am__obj=sub/conftest.${OBJEXT-o} 7417 am__minus_obj="-o $am__obj" 7418 case $depmode in 7419 gcc) 7420 # This depmode causes a compiler race in universal mode. 7421 test "$am__universal" = false || continue 7422 ;; 7423 nosideeffect) 7424 # After this tag, mechanisms are not by side-effect, so they'll 7425 # only be used when explicitly requested. 7426 if test "x$enable_dependency_tracking" = xyes; then 7427 continue 7428 else 7429 break 7430 fi 7431 ;; 7432 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 7433 # This compiler won't grok '-c -o', but also, the minuso test has 7434 # not run yet. These depmodes are late enough in the game, and 7435 # so weak that their functioning should not be impacted. 7436 am__obj=conftest.${OBJEXT-o} 7437 am__minus_obj= 7438 ;; 7439 none) break ;; 7440 esac 7441 if depmode=$depmode \ 7442 source=sub/conftest.c object=$am__obj \ 7443 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 7444 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 7445 >/dev/null 2>conftest.err && 7446 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 7447 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 7448 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 7449 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 7450 # icc doesn't choke on unknown options, it will just issue warnings 7451 # or remarks (even with -Werror). So we grep stderr for any message 7452 # that says an option was ignored or not supported. 7453 # When given -MP, icc 7.0 and 7.1 complain thusly: 7454 # icc: Command line warning: ignoring option '-M'; no argument required 7455 # The diagnosis changed in icc 8.0: 7456 # icc: Command line remark: option '-MP' not supported 7457 if (grep 'ignoring option' conftest.err || 7458 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 7459 am_cv_CXX_dependencies_compiler_type=$depmode 7460 break 7461 fi 7462 fi 7463 done 7464 7465 cd .. 7466 rm -rf conftest.dir 7467else 7468 am_cv_CXX_dependencies_compiler_type=none 7469fi 7470 7471fi 7472{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 7473printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; } 7474CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 7475 7476 if 7477 test "x$enable_dependency_tracking" != xno \ 7478 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 7479 am__fastdepCXX_TRUE= 7480 am__fastdepCXX_FALSE='#' 7481else 7482 am__fastdepCXX_TRUE='#' 7483 am__fastdepCXX_FALSE= 7484fi 7485 7486 7487 7488 7489# Set up libtool. 7490{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: setting up libtool" >&5 7491printf "%s\n" "$as_me: setting up libtool" >&6;} 7492if test x"$enable_shared" != xno 7493then : 7494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking any compiler has problems building shared objects" >&5 7495printf %s "checking any compiler has problems building shared objects... " >&6; } 7496if test ${acx_cv_disable_shared+y} 7497then : 7498 printf %s "(cached) " >&6 7499else $as_nop 7500 acx_cv_disable_shared=no 7501 ac_ext=${ac_fc_srcext-f} 7502ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 7503ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 7504ac_compiler_gnu=$ac_cv_fc_compiler_gnu 7505 7506 7507 acx_Comp=$FC 7508 printf "%s\n" "$as_me:${as_lineno-$LINENO}: testing if $acx_Comp cannot build working shared objects" >&5 7509 case $host in #( 7510 *-ibm-aix*) : 7511 if $acx_Comp -G -v 2>&1 | grep ' -binitfini:poe_remote_main ' >/dev/null 7512then : 7513 acx_cv_disable_shared=yes 7514fi ;; #( 7515 x86_64-*-linux-*|i*86-*-linux-*|*-apple-darwin*|ia64-*-linux-*|x86_64-*-freebsd*|i*86-*-freebsd*) : 7516 if $acx_Comp -V 2>&1 | grep '^Intel(R).*Fortran.*Compiler.*Version 15.0.[123]' >/dev/null 7517then : 7518 acx_cv_disable_shared=yes 7519fi ;; #( 7520 *) : 7521 ;; 7522esac 7523 printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acx_cv_disable_shared" >&5 7524 ac_ext=c 7525ac_cpp='$CPP $CPPFLAGS' 7526ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7527ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7528ac_compiler_gnu=$ac_cv_c_compiler_gnu 7529 7530 ac_ext=f 7531ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 7532ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7533ac_compiler_gnu=$ac_cv_f77_compiler_gnu 7534 7535 7536 acx_Comp=$F77 7537 printf "%s\n" "$as_me:${as_lineno-$LINENO}: testing if $acx_Comp cannot build working shared objects" >&5 7538 case $host in #( 7539 *-ibm-aix*) : 7540 if $acx_Comp -G -v 2>&1 | grep ' -binitfini:poe_remote_main ' >/dev/null 7541then : 7542 acx_cv_disable_shared=yes 7543fi ;; #( 7544 x86_64-*-linux-*|i*86-*-linux-*|*-apple-darwin*|ia64-*-linux-*|x86_64-*-freebsd*|i*86-*-freebsd*) : 7545 if $acx_Comp -V 2>&1 | grep '^Intel(R).*Fortran.*Compiler.*Version 15.0.[123]' >/dev/null 7546then : 7547 acx_cv_disable_shared=yes 7548fi ;; #( 7549 *) : 7550 ;; 7551esac 7552 printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acx_cv_disable_shared" >&5 7553 ac_ext=c 7554ac_cpp='$CPP $CPPFLAGS' 7555ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7556ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7557ac_compiler_gnu=$ac_cv_c_compiler_gnu 7558 7559 ac_ext=c 7560ac_cpp='$CPP $CPPFLAGS' 7561ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7562ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7563ac_compiler_gnu=$ac_cv_c_compiler_gnu 7564 7565 7566 acx_Comp=$CC 7567 printf "%s\n" "$as_me:${as_lineno-$LINENO}: testing if $acx_Comp cannot build working shared objects" >&5 7568 case $host in #( 7569 *-ibm-aix*) : 7570 if $acx_Comp -G -v 2>&1 | grep ' -binitfini:poe_remote_main ' >/dev/null 7571then : 7572 acx_cv_disable_shared=yes 7573fi ;; #( 7574 x86_64-*-linux-*|i*86-*-linux-*|*-apple-darwin*|ia64-*-linux-*|x86_64-*-freebsd*|i*86-*-freebsd*) : 7575 if $acx_Comp -V 2>&1 | grep '^Intel(R).*Fortran.*Compiler.*Version 15.0.[123]' >/dev/null 7576then : 7577 acx_cv_disable_shared=yes 7578fi ;; #( 7579 *) : 7580 ;; 7581esac 7582 printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acx_cv_disable_shared" >&5 7583 ac_ext=c 7584ac_cpp='$CPP $CPPFLAGS' 7585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7587ac_compiler_gnu=$ac_cv_c_compiler_gnu 7588 7589fi 7590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acx_cv_disable_shared" >&5 7591printf "%s\n" "$acx_cv_disable_shared" >&6; } 7592 if test x"$acx_cv_disable_shared" = xyes 7593then : 7594 enable_shared=no 7595fi 7596fi 7597case `pwd` in 7598 *\ * | *\ *) 7599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 7600printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 7601esac 7602 7603 7604 7605macro_version='2.4.6' 7606macro_revision='2.4.6' 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621ltmain=$ac_aux_dir/ltmain.sh 7622 7623# Backslashify metacharacters that are still active within 7624# double-quoted strings. 7625sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 7626 7627# Same as above, but do not quote variable references. 7628double_quote_subst='s/\(["`\\]\)/\\\1/g' 7629 7630# Sed substitution to delay expansion of an escaped shell variable in a 7631# double_quote_subst'ed string. 7632delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7633 7634# Sed substitution to delay expansion of an escaped single quote. 7635delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 7636 7637# Sed substitution to avoid accidental globbing in evaled expressions 7638no_glob_subst='s/\*/\\\*/g' 7639 7640ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 7641ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 7642ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 7643 7644{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 7645printf %s "checking how to print strings... " >&6; } 7646# Test print first, because it will be a builtin if present. 7647if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 7648 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 7649 ECHO='print -r --' 7650elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 7651 ECHO='printf %s\n' 7652else 7653 # Use this function as a fallback that always works. 7654 func_fallback_echo () 7655 { 7656 eval 'cat <<_LTECHO_EOF 7657$1 7658_LTECHO_EOF' 7659 } 7660 ECHO='func_fallback_echo' 7661fi 7662 7663# func_echo_all arg... 7664# Invoke $ECHO with all args, space-separated. 7665func_echo_all () 7666{ 7667 $ECHO "" 7668} 7669 7670case $ECHO in 7671 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 7672printf "%s\n" "printf" >&6; } ;; 7673 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 7674printf "%s\n" "print -r" >&6; } ;; 7675 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 7676printf "%s\n" "cat" >&6; } ;; 7677esac 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 7693printf %s "checking for a sed that does not truncate output... " >&6; } 7694if test ${ac_cv_path_SED+y} 7695then : 7696 printf %s "(cached) " >&6 7697else $as_nop 7698 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 7699 for ac_i in 1 2 3 4 5 6 7; do 7700 ac_script="$ac_script$as_nl$ac_script" 7701 done 7702 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 7703 { ac_script=; unset ac_script;} 7704 if test -z "$SED"; then 7705 ac_path_SED_found=false 7706 # Loop through the user's path and test for each of PROGNAME-LIST 7707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7708for as_dir in $PATH 7709do 7710 IFS=$as_save_IFS 7711 case $as_dir in #((( 7712 '') as_dir=./ ;; 7713 */) ;; 7714 *) as_dir=$as_dir/ ;; 7715 esac 7716 for ac_prog in sed gsed 7717 do 7718 for ac_exec_ext in '' $ac_executable_extensions; do 7719 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 7720 as_fn_executable_p "$ac_path_SED" || continue 7721# Check for GNU ac_path_SED and select it if it is found. 7722 # Check for GNU $ac_path_SED 7723case `"$ac_path_SED" --version 2>&1` in 7724*GNU*) 7725 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 7726*) 7727 ac_count=0 7728 printf %s 0123456789 >"conftest.in" 7729 while : 7730 do 7731 cat "conftest.in" "conftest.in" >"conftest.tmp" 7732 mv "conftest.tmp" "conftest.in" 7733 cp "conftest.in" "conftest.nl" 7734 printf "%s\n" '' >> "conftest.nl" 7735 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 7736 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7737 as_fn_arith $ac_count + 1 && ac_count=$as_val 7738 if test $ac_count -gt ${ac_path_SED_max-0}; then 7739 # Best one so far, save it but keep looking for a better one 7740 ac_cv_path_SED="$ac_path_SED" 7741 ac_path_SED_max=$ac_count 7742 fi 7743 # 10*(2^10) chars as input seems more than enough 7744 test $ac_count -gt 10 && break 7745 done 7746 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7747esac 7748 7749 $ac_path_SED_found && break 3 7750 done 7751 done 7752 done 7753IFS=$as_save_IFS 7754 if test -z "$ac_cv_path_SED"; then 7755 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 7756 fi 7757else 7758 ac_cv_path_SED=$SED 7759fi 7760 7761fi 7762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 7763printf "%s\n" "$ac_cv_path_SED" >&6; } 7764 SED="$ac_cv_path_SED" 7765 rm -f conftest.sed 7766 7767test -z "$SED" && SED=sed 7768Xsed="$SED -e 1s/^X//" 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 7781printf %s "checking for grep that handles long lines and -e... " >&6; } 7782if test ${ac_cv_path_GREP+y} 7783then : 7784 printf %s "(cached) " >&6 7785else $as_nop 7786 if test -z "$GREP"; then 7787 ac_path_GREP_found=false 7788 # Loop through the user's path and test for each of PROGNAME-LIST 7789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7790for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7791do 7792 IFS=$as_save_IFS 7793 case $as_dir in #((( 7794 '') as_dir=./ ;; 7795 */) ;; 7796 *) as_dir=$as_dir/ ;; 7797 esac 7798 for ac_prog in grep ggrep 7799 do 7800 for ac_exec_ext in '' $ac_executable_extensions; do 7801 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 7802 as_fn_executable_p "$ac_path_GREP" || continue 7803# Check for GNU ac_path_GREP and select it if it is found. 7804 # Check for GNU $ac_path_GREP 7805case `"$ac_path_GREP" --version 2>&1` in 7806*GNU*) 7807 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 7808*) 7809 ac_count=0 7810 printf %s 0123456789 >"conftest.in" 7811 while : 7812 do 7813 cat "conftest.in" "conftest.in" >"conftest.tmp" 7814 mv "conftest.tmp" "conftest.in" 7815 cp "conftest.in" "conftest.nl" 7816 printf "%s\n" 'GREP' >> "conftest.nl" 7817 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 7818 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7819 as_fn_arith $ac_count + 1 && ac_count=$as_val 7820 if test $ac_count -gt ${ac_path_GREP_max-0}; then 7821 # Best one so far, save it but keep looking for a better one 7822 ac_cv_path_GREP="$ac_path_GREP" 7823 ac_path_GREP_max=$ac_count 7824 fi 7825 # 10*(2^10) chars as input seems more than enough 7826 test $ac_count -gt 10 && break 7827 done 7828 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7829esac 7830 7831 $ac_path_GREP_found && break 3 7832 done 7833 done 7834 done 7835IFS=$as_save_IFS 7836 if test -z "$ac_cv_path_GREP"; then 7837 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 7838 fi 7839else 7840 ac_cv_path_GREP=$GREP 7841fi 7842 7843fi 7844{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 7845printf "%s\n" "$ac_cv_path_GREP" >&6; } 7846 GREP="$ac_cv_path_GREP" 7847 7848 7849{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 7850printf %s "checking for egrep... " >&6; } 7851if test ${ac_cv_path_EGREP+y} 7852then : 7853 printf %s "(cached) " >&6 7854else $as_nop 7855 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 7856 then ac_cv_path_EGREP="$GREP -E" 7857 else 7858 if test -z "$EGREP"; then 7859 ac_path_EGREP_found=false 7860 # Loop through the user's path and test for each of PROGNAME-LIST 7861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7862for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7863do 7864 IFS=$as_save_IFS 7865 case $as_dir in #((( 7866 '') as_dir=./ ;; 7867 */) ;; 7868 *) as_dir=$as_dir/ ;; 7869 esac 7870 for ac_prog in egrep 7871 do 7872 for ac_exec_ext in '' $ac_executable_extensions; do 7873 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 7874 as_fn_executable_p "$ac_path_EGREP" || continue 7875# Check for GNU ac_path_EGREP and select it if it is found. 7876 # Check for GNU $ac_path_EGREP 7877case `"$ac_path_EGREP" --version 2>&1` in 7878*GNU*) 7879 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 7880*) 7881 ac_count=0 7882 printf %s 0123456789 >"conftest.in" 7883 while : 7884 do 7885 cat "conftest.in" "conftest.in" >"conftest.tmp" 7886 mv "conftest.tmp" "conftest.in" 7887 cp "conftest.in" "conftest.nl" 7888 printf "%s\n" 'EGREP' >> "conftest.nl" 7889 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 7890 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7891 as_fn_arith $ac_count + 1 && ac_count=$as_val 7892 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 7893 # Best one so far, save it but keep looking for a better one 7894 ac_cv_path_EGREP="$ac_path_EGREP" 7895 ac_path_EGREP_max=$ac_count 7896 fi 7897 # 10*(2^10) chars as input seems more than enough 7898 test $ac_count -gt 10 && break 7899 done 7900 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7901esac 7902 7903 $ac_path_EGREP_found && break 3 7904 done 7905 done 7906 done 7907IFS=$as_save_IFS 7908 if test -z "$ac_cv_path_EGREP"; then 7909 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 7910 fi 7911else 7912 ac_cv_path_EGREP=$EGREP 7913fi 7914 7915 fi 7916fi 7917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 7918printf "%s\n" "$ac_cv_path_EGREP" >&6; } 7919 EGREP="$ac_cv_path_EGREP" 7920 7921 7922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 7923printf %s "checking for fgrep... " >&6; } 7924if test ${ac_cv_path_FGREP+y} 7925then : 7926 printf %s "(cached) " >&6 7927else $as_nop 7928 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 7929 then ac_cv_path_FGREP="$GREP -F" 7930 else 7931 if test -z "$FGREP"; then 7932 ac_path_FGREP_found=false 7933 # Loop through the user's path and test for each of PROGNAME-LIST 7934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7935for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7936do 7937 IFS=$as_save_IFS 7938 case $as_dir in #((( 7939 '') as_dir=./ ;; 7940 */) ;; 7941 *) as_dir=$as_dir/ ;; 7942 esac 7943 for ac_prog in fgrep 7944 do 7945 for ac_exec_ext in '' $ac_executable_extensions; do 7946 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 7947 as_fn_executable_p "$ac_path_FGREP" || continue 7948# Check for GNU ac_path_FGREP and select it if it is found. 7949 # Check for GNU $ac_path_FGREP 7950case `"$ac_path_FGREP" --version 2>&1` in 7951*GNU*) 7952 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 7953*) 7954 ac_count=0 7955 printf %s 0123456789 >"conftest.in" 7956 while : 7957 do 7958 cat "conftest.in" "conftest.in" >"conftest.tmp" 7959 mv "conftest.tmp" "conftest.in" 7960 cp "conftest.in" "conftest.nl" 7961 printf "%s\n" 'FGREP' >> "conftest.nl" 7962 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 7963 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7964 as_fn_arith $ac_count + 1 && ac_count=$as_val 7965 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 7966 # Best one so far, save it but keep looking for a better one 7967 ac_cv_path_FGREP="$ac_path_FGREP" 7968 ac_path_FGREP_max=$ac_count 7969 fi 7970 # 10*(2^10) chars as input seems more than enough 7971 test $ac_count -gt 10 && break 7972 done 7973 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7974esac 7975 7976 $ac_path_FGREP_found && break 3 7977 done 7978 done 7979 done 7980IFS=$as_save_IFS 7981 if test -z "$ac_cv_path_FGREP"; then 7982 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 7983 fi 7984else 7985 ac_cv_path_FGREP=$FGREP 7986fi 7987 7988 fi 7989fi 7990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 7991printf "%s\n" "$ac_cv_path_FGREP" >&6; } 7992 FGREP="$ac_cv_path_FGREP" 7993 7994 7995test -z "$GREP" && GREP=grep 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015# Check whether --with-gnu-ld was given. 8016if test ${with_gnu_ld+y} 8017then : 8018 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 8019else $as_nop 8020 with_gnu_ld=no 8021fi 8022 8023ac_prog=ld 8024if test yes = "$GCC"; then 8025 # Check if gcc -print-prog-name=ld gives a path. 8026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 8027printf %s "checking for ld used by $CC... " >&6; } 8028 case $host in 8029 *-*-mingw*) 8030 # gcc leaves a trailing carriage return, which upsets mingw 8031 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 8032 *) 8033 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 8034 esac 8035 case $ac_prog in 8036 # Accept absolute paths. 8037 [\\/]* | ?:[\\/]*) 8038 re_direlt='/[^/][^/]*/\.\./' 8039 # Canonicalize the pathname of ld 8040 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 8041 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 8042 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 8043 done 8044 test -z "$LD" && LD=$ac_prog 8045 ;; 8046 "") 8047 # If it fails, then pretend we aren't using GCC. 8048 ac_prog=ld 8049 ;; 8050 *) 8051 # If it is relative, then search for the first ld in PATH. 8052 with_gnu_ld=unknown 8053 ;; 8054 esac 8055elif test yes = "$with_gnu_ld"; then 8056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 8057printf %s "checking for GNU ld... " >&6; } 8058else 8059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 8060printf %s "checking for non-GNU ld... " >&6; } 8061fi 8062if test ${lt_cv_path_LD+y} 8063then : 8064 printf %s "(cached) " >&6 8065else $as_nop 8066 if test -z "$LD"; then 8067 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8068 for ac_dir in $PATH; do 8069 IFS=$lt_save_ifs 8070 test -z "$ac_dir" && ac_dir=. 8071 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 8072 lt_cv_path_LD=$ac_dir/$ac_prog 8073 # Check to see if the program is GNU ld. I'd rather use --version, 8074 # but apparently some variants of GNU ld only accept -v. 8075 # Break only if it was the GNU/non-GNU ld that we prefer. 8076 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 8077 *GNU* | *'with BFD'*) 8078 test no != "$with_gnu_ld" && break 8079 ;; 8080 *) 8081 test yes != "$with_gnu_ld" && break 8082 ;; 8083 esac 8084 fi 8085 done 8086 IFS=$lt_save_ifs 8087else 8088 lt_cv_path_LD=$LD # Let the user override the test with a path. 8089fi 8090fi 8091 8092LD=$lt_cv_path_LD 8093if test -n "$LD"; then 8094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 8095printf "%s\n" "$LD" >&6; } 8096else 8097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8098printf "%s\n" "no" >&6; } 8099fi 8100test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 8101{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 8102printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 8103if test ${lt_cv_prog_gnu_ld+y} 8104then : 8105 printf %s "(cached) " >&6 8106else $as_nop 8107 # I'd rather use --version here, but apparently some GNU lds only accept -v. 8108case `$LD -v 2>&1 </dev/null` in 8109*GNU* | *'with BFD'*) 8110 lt_cv_prog_gnu_ld=yes 8111 ;; 8112*) 8113 lt_cv_prog_gnu_ld=no 8114 ;; 8115esac 8116fi 8117{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 8118printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 8119with_gnu_ld=$lt_cv_prog_gnu_ld 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 8130printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 8131if test ${lt_cv_path_NM+y} 8132then : 8133 printf %s "(cached) " >&6 8134else $as_nop 8135 if test -n "$NM"; then 8136 # Let the user override the test. 8137 lt_cv_path_NM=$NM 8138else 8139 lt_nm_to_check=${ac_tool_prefix}nm 8140 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 8141 lt_nm_to_check="$lt_nm_to_check nm" 8142 fi 8143 for lt_tmp_nm in $lt_nm_to_check; do 8144 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8145 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 8146 IFS=$lt_save_ifs 8147 test -z "$ac_dir" && ac_dir=. 8148 tmp_nm=$ac_dir/$lt_tmp_nm 8149 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 8150 # Check to see if the nm accepts a BSD-compat flag. 8151 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 8152 # nm: unknown option "B" ignored 8153 # Tru64's nm complains that /dev/null is an invalid object file 8154 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 8155 case $build_os in 8156 mingw*) lt_bad_file=conftest.nm/nofile ;; 8157 *) lt_bad_file=/dev/null ;; 8158 esac 8159 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 8160 *$lt_bad_file* | *'Invalid file or object type'*) 8161 lt_cv_path_NM="$tmp_nm -B" 8162 break 2 8163 ;; 8164 *) 8165 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 8166 */dev/null*) 8167 lt_cv_path_NM="$tmp_nm -p" 8168 break 2 8169 ;; 8170 *) 8171 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 8172 continue # so that we can try to find one that supports BSD flags 8173 ;; 8174 esac 8175 ;; 8176 esac 8177 fi 8178 done 8179 IFS=$lt_save_ifs 8180 done 8181 : ${lt_cv_path_NM=no} 8182fi 8183fi 8184{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 8185printf "%s\n" "$lt_cv_path_NM" >&6; } 8186if test no != "$lt_cv_path_NM"; then 8187 NM=$lt_cv_path_NM 8188else 8189 # Didn't find any BSD compatible name lister, look for dumpbin. 8190 if test -n "$DUMPBIN"; then : 8191 # Let the user override the test. 8192 else 8193 if test -n "$ac_tool_prefix"; then 8194 for ac_prog in dumpbin "link -dump" 8195 do 8196 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 8197set dummy $ac_tool_prefix$ac_prog; ac_word=$2 8198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8199printf %s "checking for $ac_word... " >&6; } 8200if test ${ac_cv_prog_DUMPBIN+y} 8201then : 8202 printf %s "(cached) " >&6 8203else $as_nop 8204 if test -n "$DUMPBIN"; then 8205 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 8206else 8207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8208for as_dir in $PATH 8209do 8210 IFS=$as_save_IFS 8211 case $as_dir in #((( 8212 '') as_dir=./ ;; 8213 */) ;; 8214 *) as_dir=$as_dir/ ;; 8215 esac 8216 for ac_exec_ext in '' $ac_executable_extensions; do 8217 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8218 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 8219 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8220 break 2 8221 fi 8222done 8223 done 8224IFS=$as_save_IFS 8225 8226fi 8227fi 8228DUMPBIN=$ac_cv_prog_DUMPBIN 8229if test -n "$DUMPBIN"; then 8230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 8231printf "%s\n" "$DUMPBIN" >&6; } 8232else 8233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8234printf "%s\n" "no" >&6; } 8235fi 8236 8237 8238 test -n "$DUMPBIN" && break 8239 done 8240fi 8241if test -z "$DUMPBIN"; then 8242 ac_ct_DUMPBIN=$DUMPBIN 8243 for ac_prog in dumpbin "link -dump" 8244do 8245 # Extract the first word of "$ac_prog", so it can be a program name with args. 8246set dummy $ac_prog; ac_word=$2 8247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8248printf %s "checking for $ac_word... " >&6; } 8249if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 8250then : 8251 printf %s "(cached) " >&6 8252else $as_nop 8253 if test -n "$ac_ct_DUMPBIN"; then 8254 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 8255else 8256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8257for as_dir in $PATH 8258do 8259 IFS=$as_save_IFS 8260 case $as_dir in #((( 8261 '') as_dir=./ ;; 8262 */) ;; 8263 *) as_dir=$as_dir/ ;; 8264 esac 8265 for ac_exec_ext in '' $ac_executable_extensions; do 8266 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8267 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 8268 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8269 break 2 8270 fi 8271done 8272 done 8273IFS=$as_save_IFS 8274 8275fi 8276fi 8277ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 8278if test -n "$ac_ct_DUMPBIN"; then 8279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 8280printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 8281else 8282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8283printf "%s\n" "no" >&6; } 8284fi 8285 8286 8287 test -n "$ac_ct_DUMPBIN" && break 8288done 8289 8290 if test "x$ac_ct_DUMPBIN" = x; then 8291 DUMPBIN=":" 8292 else 8293 case $cross_compiling:$ac_tool_warned in 8294yes:) 8295{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8296printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8297ac_tool_warned=yes ;; 8298esac 8299 DUMPBIN=$ac_ct_DUMPBIN 8300 fi 8301fi 8302 8303 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 8304 *COFF*) 8305 DUMPBIN="$DUMPBIN -symbols -headers" 8306 ;; 8307 *) 8308 DUMPBIN=: 8309 ;; 8310 esac 8311 fi 8312 8313 if test : != "$DUMPBIN"; then 8314 NM=$DUMPBIN 8315 fi 8316fi 8317test -z "$NM" && NM=nm 8318 8319 8320 8321 8322 8323 8324{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 8325printf %s "checking the name lister ($NM) interface... " >&6; } 8326if test ${lt_cv_nm_interface+y} 8327then : 8328 printf %s "(cached) " >&6 8329else $as_nop 8330 lt_cv_nm_interface="BSD nm" 8331 echo "int some_variable = 0;" > conftest.$ac_ext 8332 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 8333 (eval "$ac_compile" 2>conftest.err) 8334 cat conftest.err >&5 8335 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 8336 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 8337 cat conftest.err >&5 8338 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 8339 cat conftest.out >&5 8340 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 8341 lt_cv_nm_interface="MS dumpbin" 8342 fi 8343 rm -f conftest* 8344fi 8345{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 8346printf "%s\n" "$lt_cv_nm_interface" >&6; } 8347 8348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 8349printf %s "checking whether ln -s works... " >&6; } 8350LN_S=$as_ln_s 8351if test "$LN_S" = "ln -s"; then 8352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8353printf "%s\n" "yes" >&6; } 8354else 8355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 8356printf "%s\n" "no, using $LN_S" >&6; } 8357fi 8358 8359# find the maximum length of command line arguments 8360{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 8361printf %s "checking the maximum length of command line arguments... " >&6; } 8362if test ${lt_cv_sys_max_cmd_len+y} 8363then : 8364 printf %s "(cached) " >&6 8365else $as_nop 8366 i=0 8367 teststring=ABCD 8368 8369 case $build_os in 8370 msdosdjgpp*) 8371 # On DJGPP, this test can blow up pretty badly due to problems in libc 8372 # (any single argument exceeding 2000 bytes causes a buffer overrun 8373 # during glob expansion). Even if it were fixed, the result of this 8374 # check would be larger than it should be. 8375 lt_cv_sys_max_cmd_len=12288; # 12K is about right 8376 ;; 8377 8378 gnu*) 8379 # Under GNU Hurd, this test is not required because there is 8380 # no limit to the length of command line arguments. 8381 # Libtool will interpret -1 as no limit whatsoever 8382 lt_cv_sys_max_cmd_len=-1; 8383 ;; 8384 8385 cygwin* | mingw* | cegcc*) 8386 # On Win9x/ME, this test blows up -- it succeeds, but takes 8387 # about 5 minutes as the teststring grows exponentially. 8388 # Worse, since 9x/ME are not pre-emptively multitasking, 8389 # you end up with a "frozen" computer, even though with patience 8390 # the test eventually succeeds (with a max line length of 256k). 8391 # Instead, let's just punt: use the minimum linelength reported by 8392 # all of the supported platforms: 8192 (on NT/2K/XP). 8393 lt_cv_sys_max_cmd_len=8192; 8394 ;; 8395 8396 mint*) 8397 # On MiNT this can take a long time and run out of memory. 8398 lt_cv_sys_max_cmd_len=8192; 8399 ;; 8400 8401 amigaos*) 8402 # On AmigaOS with pdksh, this test takes hours, literally. 8403 # So we just punt and use a minimum line length of 8192. 8404 lt_cv_sys_max_cmd_len=8192; 8405 ;; 8406 8407 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 8408 # This has been around since 386BSD, at least. Likely further. 8409 if test -x /sbin/sysctl; then 8410 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 8411 elif test -x /usr/sbin/sysctl; then 8412 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 8413 else 8414 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 8415 fi 8416 # And add a safety zone 8417 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 8418 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 8419 ;; 8420 8421 interix*) 8422 # We know the value 262144 and hardcode it with a safety zone (like BSD) 8423 lt_cv_sys_max_cmd_len=196608 8424 ;; 8425 8426 os2*) 8427 # The test takes a long time on OS/2. 8428 lt_cv_sys_max_cmd_len=8192 8429 ;; 8430 8431 osf*) 8432 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 8433 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 8434 # nice to cause kernel panics so lets avoid the loop below. 8435 # First set a reasonable default. 8436 lt_cv_sys_max_cmd_len=16384 8437 # 8438 if test -x /sbin/sysconfig; then 8439 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 8440 *1*) lt_cv_sys_max_cmd_len=-1 ;; 8441 esac 8442 fi 8443 ;; 8444 sco3.2v5*) 8445 lt_cv_sys_max_cmd_len=102400 8446 ;; 8447 sysv5* | sco5v6* | sysv4.2uw2*) 8448 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 8449 if test -n "$kargmax"; then 8450 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 8451 else 8452 lt_cv_sys_max_cmd_len=32768 8453 fi 8454 ;; 8455 *) 8456 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 8457 if test -n "$lt_cv_sys_max_cmd_len" && \ 8458 test undefined != "$lt_cv_sys_max_cmd_len"; then 8459 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 8460 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 8461 else 8462 # Make teststring a little bigger before we do anything with it. 8463 # a 1K string should be a reasonable start. 8464 for i in 1 2 3 4 5 6 7 8; do 8465 teststring=$teststring$teststring 8466 done 8467 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 8468 # If test is not a shell built-in, we'll probably end up computing a 8469 # maximum length that is only half of the actual maximum length, but 8470 # we can't tell. 8471 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 8472 = "X$teststring$teststring"; } >/dev/null 2>&1 && 8473 test 17 != "$i" # 1/2 MB should be enough 8474 do 8475 i=`expr $i + 1` 8476 teststring=$teststring$teststring 8477 done 8478 # Only check the string length outside the loop. 8479 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 8480 teststring= 8481 # Add a significant safety factor because C++ compilers can tack on 8482 # massive amounts of additional arguments before passing them to the 8483 # linker. It appears as though 1/2 is a usable value. 8484 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 8485 fi 8486 ;; 8487 esac 8488 8489fi 8490 8491if test -n "$lt_cv_sys_max_cmd_len"; then 8492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 8493printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 8494else 8495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 8496printf "%s\n" "none" >&6; } 8497fi 8498max_cmd_len=$lt_cv_sys_max_cmd_len 8499 8500 8501 8502 8503 8504 8505: ${CP="cp -f"} 8506: ${MV="mv -f"} 8507: ${RM="rm -f"} 8508 8509if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 8510 lt_unset=unset 8511else 8512 lt_unset=false 8513fi 8514 8515 8516 8517 8518 8519# test EBCDIC or ASCII 8520case `echo X|tr X '\101'` in 8521 A) # ASCII based system 8522 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 8523 lt_SP2NL='tr \040 \012' 8524 lt_NL2SP='tr \015\012 \040\040' 8525 ;; 8526 *) # EBCDIC based system 8527 lt_SP2NL='tr \100 \n' 8528 lt_NL2SP='tr \r\n \100\100' 8529 ;; 8530esac 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 8541printf %s "checking how to convert $build file names to $host format... " >&6; } 8542if test ${lt_cv_to_host_file_cmd+y} 8543then : 8544 printf %s "(cached) " >&6 8545else $as_nop 8546 case $host in 8547 *-*-mingw* ) 8548 case $build in 8549 *-*-mingw* ) # actually msys 8550 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 8551 ;; 8552 *-*-cygwin* ) 8553 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 8554 ;; 8555 * ) # otherwise, assume *nix 8556 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 8557 ;; 8558 esac 8559 ;; 8560 *-*-cygwin* ) 8561 case $build in 8562 *-*-mingw* ) # actually msys 8563 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 8564 ;; 8565 *-*-cygwin* ) 8566 lt_cv_to_host_file_cmd=func_convert_file_noop 8567 ;; 8568 * ) # otherwise, assume *nix 8569 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 8570 ;; 8571 esac 8572 ;; 8573 * ) # unhandled hosts (and "normal" native builds) 8574 lt_cv_to_host_file_cmd=func_convert_file_noop 8575 ;; 8576esac 8577 8578fi 8579 8580to_host_file_cmd=$lt_cv_to_host_file_cmd 8581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 8582printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 8583 8584 8585 8586 8587 8588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 8589printf %s "checking how to convert $build file names to toolchain format... " >&6; } 8590if test ${lt_cv_to_tool_file_cmd+y} 8591then : 8592 printf %s "(cached) " >&6 8593else $as_nop 8594 #assume ordinary cross tools, or native build. 8595lt_cv_to_tool_file_cmd=func_convert_file_noop 8596case $host in 8597 *-*-mingw* ) 8598 case $build in 8599 *-*-mingw* ) # actually msys 8600 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 8601 ;; 8602 esac 8603 ;; 8604esac 8605 8606fi 8607 8608to_tool_file_cmd=$lt_cv_to_tool_file_cmd 8609{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 8610printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 8611 8612 8613 8614 8615 8616{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 8617printf %s "checking for $LD option to reload object files... " >&6; } 8618if test ${lt_cv_ld_reload_flag+y} 8619then : 8620 printf %s "(cached) " >&6 8621else $as_nop 8622 lt_cv_ld_reload_flag='-r' 8623fi 8624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 8625printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 8626reload_flag=$lt_cv_ld_reload_flag 8627case $reload_flag in 8628"" | " "*) ;; 8629*) reload_flag=" $reload_flag" ;; 8630esac 8631reload_cmds='$LD$reload_flag -o $output$reload_objs' 8632case $host_os in 8633 cygwin* | mingw* | pw32* | cegcc*) 8634 if test yes != "$GCC"; then 8635 reload_cmds=false 8636 fi 8637 ;; 8638 darwin*) 8639 if test yes = "$GCC"; then 8640 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 8641 else 8642 reload_cmds='$LD$reload_flag -o $output$reload_objs' 8643 fi 8644 ;; 8645esac 8646 8647 8648 8649 8650 8651 8652 8653 8654 8655if test -n "$ac_tool_prefix"; then 8656 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 8657set dummy ${ac_tool_prefix}objdump; ac_word=$2 8658{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8659printf %s "checking for $ac_word... " >&6; } 8660if test ${ac_cv_prog_OBJDUMP+y} 8661then : 8662 printf %s "(cached) " >&6 8663else $as_nop 8664 if test -n "$OBJDUMP"; then 8665 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 8666else 8667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8668for as_dir in $PATH 8669do 8670 IFS=$as_save_IFS 8671 case $as_dir in #((( 8672 '') as_dir=./ ;; 8673 */) ;; 8674 *) as_dir=$as_dir/ ;; 8675 esac 8676 for ac_exec_ext in '' $ac_executable_extensions; do 8677 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8678 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 8679 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8680 break 2 8681 fi 8682done 8683 done 8684IFS=$as_save_IFS 8685 8686fi 8687fi 8688OBJDUMP=$ac_cv_prog_OBJDUMP 8689if test -n "$OBJDUMP"; then 8690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 8691printf "%s\n" "$OBJDUMP" >&6; } 8692else 8693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8694printf "%s\n" "no" >&6; } 8695fi 8696 8697 8698fi 8699if test -z "$ac_cv_prog_OBJDUMP"; then 8700 ac_ct_OBJDUMP=$OBJDUMP 8701 # Extract the first word of "objdump", so it can be a program name with args. 8702set dummy objdump; ac_word=$2 8703{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8704printf %s "checking for $ac_word... " >&6; } 8705if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 8706then : 8707 printf %s "(cached) " >&6 8708else $as_nop 8709 if test -n "$ac_ct_OBJDUMP"; then 8710 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 8711else 8712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8713for as_dir in $PATH 8714do 8715 IFS=$as_save_IFS 8716 case $as_dir in #((( 8717 '') as_dir=./ ;; 8718 */) ;; 8719 *) as_dir=$as_dir/ ;; 8720 esac 8721 for ac_exec_ext in '' $ac_executable_extensions; do 8722 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8723 ac_cv_prog_ac_ct_OBJDUMP="objdump" 8724 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8725 break 2 8726 fi 8727done 8728 done 8729IFS=$as_save_IFS 8730 8731fi 8732fi 8733ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 8734if test -n "$ac_ct_OBJDUMP"; then 8735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 8736printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 8737else 8738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8739printf "%s\n" "no" >&6; } 8740fi 8741 8742 if test "x$ac_ct_OBJDUMP" = x; then 8743 OBJDUMP="false" 8744 else 8745 case $cross_compiling:$ac_tool_warned in 8746yes:) 8747{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8748printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8749ac_tool_warned=yes ;; 8750esac 8751 OBJDUMP=$ac_ct_OBJDUMP 8752 fi 8753else 8754 OBJDUMP="$ac_cv_prog_OBJDUMP" 8755fi 8756 8757test -z "$OBJDUMP" && OBJDUMP=objdump 8758 8759 8760 8761 8762 8763 8764 8765 8766 8767{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 8768printf %s "checking how to recognize dependent libraries... " >&6; } 8769if test ${lt_cv_deplibs_check_method+y} 8770then : 8771 printf %s "(cached) " >&6 8772else $as_nop 8773 lt_cv_file_magic_cmd='$MAGIC_CMD' 8774lt_cv_file_magic_test_file= 8775lt_cv_deplibs_check_method='unknown' 8776# Need to set the preceding variable on all platforms that support 8777# interlibrary dependencies. 8778# 'none' -- dependencies not supported. 8779# 'unknown' -- same as none, but documents that we really don't know. 8780# 'pass_all' -- all dependencies passed with no checks. 8781# 'test_compile' -- check by making test program. 8782# 'file_magic [[regex]]' -- check by looking for files in library path 8783# that responds to the $file_magic_cmd with a given extended regex. 8784# If you have 'file' or equivalent on your system and you're not sure 8785# whether 'pass_all' will *always* work, you probably want this one. 8786 8787case $host_os in 8788aix[4-9]*) 8789 lt_cv_deplibs_check_method=pass_all 8790 ;; 8791 8792beos*) 8793 lt_cv_deplibs_check_method=pass_all 8794 ;; 8795 8796bsdi[45]*) 8797 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 8798 lt_cv_file_magic_cmd='/usr/bin/file -L' 8799 lt_cv_file_magic_test_file=/shlib/libc.so 8800 ;; 8801 8802cygwin*) 8803 # func_win32_libid is a shell function defined in ltmain.sh 8804 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 8805 lt_cv_file_magic_cmd='func_win32_libid' 8806 ;; 8807 8808mingw* | pw32*) 8809 # Base MSYS/MinGW do not provide the 'file' command needed by 8810 # func_win32_libid shell function, so use a weaker test based on 'objdump', 8811 # unless we find 'file', for example because we are cross-compiling. 8812 if ( file / ) >/dev/null 2>&1; then 8813 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 8814 lt_cv_file_magic_cmd='func_win32_libid' 8815 else 8816 # Keep this pattern in sync with the one in func_win32_libid. 8817 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 8818 lt_cv_file_magic_cmd='$OBJDUMP -f' 8819 fi 8820 ;; 8821 8822cegcc*) 8823 # use the weaker test based on 'objdump'. See mingw*. 8824 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 8825 lt_cv_file_magic_cmd='$OBJDUMP -f' 8826 ;; 8827 8828darwin* | rhapsody*) 8829 lt_cv_deplibs_check_method=pass_all 8830 ;; 8831 8832freebsd* | dragonfly*) 8833 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 8834 case $host_cpu in 8835 i*86 ) 8836 # Not sure whether the presence of OpenBSD here was a mistake. 8837 # Let's accept both of them until this is cleared up. 8838 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 8839 lt_cv_file_magic_cmd=/usr/bin/file 8840 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 8841 ;; 8842 esac 8843 else 8844 lt_cv_deplibs_check_method=pass_all 8845 fi 8846 ;; 8847 8848haiku*) 8849 lt_cv_deplibs_check_method=pass_all 8850 ;; 8851 8852hpux10.20* | hpux11*) 8853 lt_cv_file_magic_cmd=/usr/bin/file 8854 case $host_cpu in 8855 ia64*) 8856 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 8857 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 8858 ;; 8859 hppa*64*) 8860 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]' 8861 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 8862 ;; 8863 *) 8864 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 8865 lt_cv_file_magic_test_file=/usr/lib/libc.sl 8866 ;; 8867 esac 8868 ;; 8869 8870interix[3-9]*) 8871 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 8872 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 8873 ;; 8874 8875irix5* | irix6* | nonstopux*) 8876 case $LD in 8877 *-32|*"-32 ") libmagic=32-bit;; 8878 *-n32|*"-n32 ") libmagic=N32;; 8879 *-64|*"-64 ") libmagic=64-bit;; 8880 *) libmagic=never-match;; 8881 esac 8882 lt_cv_deplibs_check_method=pass_all 8883 ;; 8884 8885# This must be glibc/ELF. 8886linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8887 lt_cv_deplibs_check_method=pass_all 8888 ;; 8889 8890netbsd*) 8891 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 8892 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 8893 else 8894 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 8895 fi 8896 ;; 8897 8898newos6*) 8899 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 8900 lt_cv_file_magic_cmd=/usr/bin/file 8901 lt_cv_file_magic_test_file=/usr/lib/libnls.so 8902 ;; 8903 8904*nto* | *qnx*) 8905 lt_cv_deplibs_check_method=pass_all 8906 ;; 8907 8908openbsd* | bitrig*) 8909 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 8910 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 8911 else 8912 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 8913 fi 8914 ;; 8915 8916osf3* | osf4* | osf5*) 8917 lt_cv_deplibs_check_method=pass_all 8918 ;; 8919 8920rdos*) 8921 lt_cv_deplibs_check_method=pass_all 8922 ;; 8923 8924solaris*) 8925 lt_cv_deplibs_check_method=pass_all 8926 ;; 8927 8928sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 8929 lt_cv_deplibs_check_method=pass_all 8930 ;; 8931 8932sysv4 | sysv4.3*) 8933 case $host_vendor in 8934 motorola) 8935 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]' 8936 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 8937 ;; 8938 ncr) 8939 lt_cv_deplibs_check_method=pass_all 8940 ;; 8941 sequent) 8942 lt_cv_file_magic_cmd='/bin/file' 8943 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 8944 ;; 8945 sni) 8946 lt_cv_file_magic_cmd='/bin/file' 8947 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 8948 lt_cv_file_magic_test_file=/lib/libc.so 8949 ;; 8950 siemens) 8951 lt_cv_deplibs_check_method=pass_all 8952 ;; 8953 pc) 8954 lt_cv_deplibs_check_method=pass_all 8955 ;; 8956 esac 8957 ;; 8958 8959tpf*) 8960 lt_cv_deplibs_check_method=pass_all 8961 ;; 8962os2*) 8963 lt_cv_deplibs_check_method=pass_all 8964 ;; 8965esac 8966 8967fi 8968{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 8969printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 8970 8971file_magic_glob= 8972want_nocaseglob=no 8973if test "$build" = "$host"; then 8974 case $host_os in 8975 mingw* | pw32*) 8976 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 8977 want_nocaseglob=yes 8978 else 8979 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 8980 fi 8981 ;; 8982 esac 8983fi 8984 8985file_magic_cmd=$lt_cv_file_magic_cmd 8986deplibs_check_method=$lt_cv_deplibs_check_method 8987test -z "$deplibs_check_method" && deplibs_check_method=unknown 8988 8989 8990 8991 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008 9009 9010if test -n "$ac_tool_prefix"; then 9011 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 9012set dummy ${ac_tool_prefix}dlltool; ac_word=$2 9013{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9014printf %s "checking for $ac_word... " >&6; } 9015if test ${ac_cv_prog_DLLTOOL+y} 9016then : 9017 printf %s "(cached) " >&6 9018else $as_nop 9019 if test -n "$DLLTOOL"; then 9020 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 9021else 9022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9023for as_dir in $PATH 9024do 9025 IFS=$as_save_IFS 9026 case $as_dir in #((( 9027 '') as_dir=./ ;; 9028 */) ;; 9029 *) as_dir=$as_dir/ ;; 9030 esac 9031 for ac_exec_ext in '' $ac_executable_extensions; do 9032 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9033 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 9034 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9035 break 2 9036 fi 9037done 9038 done 9039IFS=$as_save_IFS 9040 9041fi 9042fi 9043DLLTOOL=$ac_cv_prog_DLLTOOL 9044if test -n "$DLLTOOL"; then 9045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 9046printf "%s\n" "$DLLTOOL" >&6; } 9047else 9048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9049printf "%s\n" "no" >&6; } 9050fi 9051 9052 9053fi 9054if test -z "$ac_cv_prog_DLLTOOL"; then 9055 ac_ct_DLLTOOL=$DLLTOOL 9056 # Extract the first word of "dlltool", so it can be a program name with args. 9057set dummy dlltool; ac_word=$2 9058{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9059printf %s "checking for $ac_word... " >&6; } 9060if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 9061then : 9062 printf %s "(cached) " >&6 9063else $as_nop 9064 if test -n "$ac_ct_DLLTOOL"; then 9065 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 9066else 9067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9068for as_dir in $PATH 9069do 9070 IFS=$as_save_IFS 9071 case $as_dir in #((( 9072 '') as_dir=./ ;; 9073 */) ;; 9074 *) as_dir=$as_dir/ ;; 9075 esac 9076 for ac_exec_ext in '' $ac_executable_extensions; do 9077 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9078 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 9079 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9080 break 2 9081 fi 9082done 9083 done 9084IFS=$as_save_IFS 9085 9086fi 9087fi 9088ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 9089if test -n "$ac_ct_DLLTOOL"; then 9090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 9091printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 9092else 9093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9094printf "%s\n" "no" >&6; } 9095fi 9096 9097 if test "x$ac_ct_DLLTOOL" = x; then 9098 DLLTOOL="false" 9099 else 9100 case $cross_compiling:$ac_tool_warned in 9101yes:) 9102{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9103printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9104ac_tool_warned=yes ;; 9105esac 9106 DLLTOOL=$ac_ct_DLLTOOL 9107 fi 9108else 9109 DLLTOOL="$ac_cv_prog_DLLTOOL" 9110fi 9111 9112test -z "$DLLTOOL" && DLLTOOL=dlltool 9113 9114 9115 9116 9117 9118 9119 9120 9121 9122 9123{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 9124printf %s "checking how to associate runtime and link libraries... " >&6; } 9125if test ${lt_cv_sharedlib_from_linklib_cmd+y} 9126then : 9127 printf %s "(cached) " >&6 9128else $as_nop 9129 lt_cv_sharedlib_from_linklib_cmd='unknown' 9130 9131case $host_os in 9132cygwin* | mingw* | pw32* | cegcc*) 9133 # two different shell functions defined in ltmain.sh; 9134 # decide which one to use based on capabilities of $DLLTOOL 9135 case `$DLLTOOL --help 2>&1` in 9136 *--identify-strict*) 9137 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 9138 ;; 9139 *) 9140 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 9141 ;; 9142 esac 9143 ;; 9144*) 9145 # fallback: assume linklib IS sharedlib 9146 lt_cv_sharedlib_from_linklib_cmd=$ECHO 9147 ;; 9148esac 9149 9150fi 9151{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 9152printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 9153sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 9154test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 9155 9156 9157 9158 9159 9160 9161 9162if test -n "$ac_tool_prefix"; then 9163 for ac_prog in ar 9164 do 9165 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 9166set dummy $ac_tool_prefix$ac_prog; ac_word=$2 9167{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9168printf %s "checking for $ac_word... " >&6; } 9169if test ${ac_cv_prog_AR+y} 9170then : 9171 printf %s "(cached) " >&6 9172else $as_nop 9173 if test -n "$AR"; then 9174 ac_cv_prog_AR="$AR" # Let the user override the test. 9175else 9176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9177for as_dir in $PATH 9178do 9179 IFS=$as_save_IFS 9180 case $as_dir in #((( 9181 '') as_dir=./ ;; 9182 */) ;; 9183 *) as_dir=$as_dir/ ;; 9184 esac 9185 for ac_exec_ext in '' $ac_executable_extensions; do 9186 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9187 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 9188 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9189 break 2 9190 fi 9191done 9192 done 9193IFS=$as_save_IFS 9194 9195fi 9196fi 9197AR=$ac_cv_prog_AR 9198if test -n "$AR"; then 9199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 9200printf "%s\n" "$AR" >&6; } 9201else 9202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9203printf "%s\n" "no" >&6; } 9204fi 9205 9206 9207 test -n "$AR" && break 9208 done 9209fi 9210if test -z "$AR"; then 9211 ac_ct_AR=$AR 9212 for ac_prog in ar 9213do 9214 # Extract the first word of "$ac_prog", so it can be a program name with args. 9215set dummy $ac_prog; ac_word=$2 9216{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9217printf %s "checking for $ac_word... " >&6; } 9218if test ${ac_cv_prog_ac_ct_AR+y} 9219then : 9220 printf %s "(cached) " >&6 9221else $as_nop 9222 if test -n "$ac_ct_AR"; then 9223 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 9224else 9225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9226for as_dir in $PATH 9227do 9228 IFS=$as_save_IFS 9229 case $as_dir in #((( 9230 '') as_dir=./ ;; 9231 */) ;; 9232 *) as_dir=$as_dir/ ;; 9233 esac 9234 for ac_exec_ext in '' $ac_executable_extensions; do 9235 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9236 ac_cv_prog_ac_ct_AR="$ac_prog" 9237 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9238 break 2 9239 fi 9240done 9241 done 9242IFS=$as_save_IFS 9243 9244fi 9245fi 9246ac_ct_AR=$ac_cv_prog_ac_ct_AR 9247if test -n "$ac_ct_AR"; then 9248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 9249printf "%s\n" "$ac_ct_AR" >&6; } 9250else 9251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9252printf "%s\n" "no" >&6; } 9253fi 9254 9255 9256 test -n "$ac_ct_AR" && break 9257done 9258 9259 if test "x$ac_ct_AR" = x; then 9260 AR="false" 9261 else 9262 case $cross_compiling:$ac_tool_warned in 9263yes:) 9264{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9265printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9266ac_tool_warned=yes ;; 9267esac 9268 AR=$ac_ct_AR 9269 fi 9270fi 9271 9272: ${AR=ar} 9273: ${AR_FLAGS=cru} 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283 9284 9285{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 9286printf %s "checking for archiver @FILE support... " >&6; } 9287if test ${lt_cv_ar_at_file+y} 9288then : 9289 printf %s "(cached) " >&6 9290else $as_nop 9291 lt_cv_ar_at_file=no 9292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9293/* end confdefs.h. */ 9294 9295int 9296main (void) 9297{ 9298 9299 ; 9300 return 0; 9301} 9302_ACEOF 9303if ac_fn_c_try_compile "$LINENO" 9304then : 9305 echo conftest.$ac_objext > conftest.lst 9306 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 9307 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 9308 (eval $lt_ar_try) 2>&5 9309 ac_status=$? 9310 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9311 test $ac_status = 0; } 9312 if test 0 -eq "$ac_status"; then 9313 # Ensure the archiver fails upon bogus file names. 9314 rm -f conftest.$ac_objext libconftest.a 9315 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 9316 (eval $lt_ar_try) 2>&5 9317 ac_status=$? 9318 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9319 test $ac_status = 0; } 9320 if test 0 -ne "$ac_status"; then 9321 lt_cv_ar_at_file=@ 9322 fi 9323 fi 9324 rm -f conftest.* libconftest.a 9325 9326fi 9327rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9328 9329fi 9330{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 9331printf "%s\n" "$lt_cv_ar_at_file" >&6; } 9332 9333if test no = "$lt_cv_ar_at_file"; then 9334 archiver_list_spec= 9335else 9336 archiver_list_spec=$lt_cv_ar_at_file 9337fi 9338 9339 9340 9341 9342 9343 9344 9345if test -n "$ac_tool_prefix"; then 9346 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 9347set dummy ${ac_tool_prefix}strip; ac_word=$2 9348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9349printf %s "checking for $ac_word... " >&6; } 9350if test ${ac_cv_prog_STRIP+y} 9351then : 9352 printf %s "(cached) " >&6 9353else $as_nop 9354 if test -n "$STRIP"; then 9355 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 9356else 9357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9358for as_dir in $PATH 9359do 9360 IFS=$as_save_IFS 9361 case $as_dir in #((( 9362 '') as_dir=./ ;; 9363 */) ;; 9364 *) as_dir=$as_dir/ ;; 9365 esac 9366 for ac_exec_ext in '' $ac_executable_extensions; do 9367 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9368 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 9369 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9370 break 2 9371 fi 9372done 9373 done 9374IFS=$as_save_IFS 9375 9376fi 9377fi 9378STRIP=$ac_cv_prog_STRIP 9379if test -n "$STRIP"; then 9380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 9381printf "%s\n" "$STRIP" >&6; } 9382else 9383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9384printf "%s\n" "no" >&6; } 9385fi 9386 9387 9388fi 9389if test -z "$ac_cv_prog_STRIP"; then 9390 ac_ct_STRIP=$STRIP 9391 # Extract the first word of "strip", so it can be a program name with args. 9392set dummy strip; ac_word=$2 9393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9394printf %s "checking for $ac_word... " >&6; } 9395if test ${ac_cv_prog_ac_ct_STRIP+y} 9396then : 9397 printf %s "(cached) " >&6 9398else $as_nop 9399 if test -n "$ac_ct_STRIP"; then 9400 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 9401else 9402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9403for as_dir in $PATH 9404do 9405 IFS=$as_save_IFS 9406 case $as_dir in #((( 9407 '') as_dir=./ ;; 9408 */) ;; 9409 *) as_dir=$as_dir/ ;; 9410 esac 9411 for ac_exec_ext in '' $ac_executable_extensions; do 9412 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9413 ac_cv_prog_ac_ct_STRIP="strip" 9414 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9415 break 2 9416 fi 9417done 9418 done 9419IFS=$as_save_IFS 9420 9421fi 9422fi 9423ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 9424if test -n "$ac_ct_STRIP"; then 9425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 9426printf "%s\n" "$ac_ct_STRIP" >&6; } 9427else 9428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9429printf "%s\n" "no" >&6; } 9430fi 9431 9432 if test "x$ac_ct_STRIP" = x; then 9433 STRIP=":" 9434 else 9435 case $cross_compiling:$ac_tool_warned in 9436yes:) 9437{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9438printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9439ac_tool_warned=yes ;; 9440esac 9441 STRIP=$ac_ct_STRIP 9442 fi 9443else 9444 STRIP="$ac_cv_prog_STRIP" 9445fi 9446 9447test -z "$STRIP" && STRIP=: 9448 9449 9450 9451 9452 9453 9454if test -n "$ac_tool_prefix"; then 9455 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 9456set dummy ${ac_tool_prefix}ranlib; ac_word=$2 9457{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9458printf %s "checking for $ac_word... " >&6; } 9459if test ${ac_cv_prog_RANLIB+y} 9460then : 9461 printf %s "(cached) " >&6 9462else $as_nop 9463 if test -n "$RANLIB"; then 9464 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 9465else 9466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9467for as_dir in $PATH 9468do 9469 IFS=$as_save_IFS 9470 case $as_dir in #((( 9471 '') as_dir=./ ;; 9472 */) ;; 9473 *) as_dir=$as_dir/ ;; 9474 esac 9475 for ac_exec_ext in '' $ac_executable_extensions; do 9476 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9477 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 9478 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9479 break 2 9480 fi 9481done 9482 done 9483IFS=$as_save_IFS 9484 9485fi 9486fi 9487RANLIB=$ac_cv_prog_RANLIB 9488if test -n "$RANLIB"; then 9489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 9490printf "%s\n" "$RANLIB" >&6; } 9491else 9492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9493printf "%s\n" "no" >&6; } 9494fi 9495 9496 9497fi 9498if test -z "$ac_cv_prog_RANLIB"; then 9499 ac_ct_RANLIB=$RANLIB 9500 # Extract the first word of "ranlib", so it can be a program name with args. 9501set dummy ranlib; ac_word=$2 9502{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9503printf %s "checking for $ac_word... " >&6; } 9504if test ${ac_cv_prog_ac_ct_RANLIB+y} 9505then : 9506 printf %s "(cached) " >&6 9507else $as_nop 9508 if test -n "$ac_ct_RANLIB"; then 9509 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 9510else 9511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9512for as_dir in $PATH 9513do 9514 IFS=$as_save_IFS 9515 case $as_dir in #((( 9516 '') as_dir=./ ;; 9517 */) ;; 9518 *) as_dir=$as_dir/ ;; 9519 esac 9520 for ac_exec_ext in '' $ac_executable_extensions; do 9521 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9522 ac_cv_prog_ac_ct_RANLIB="ranlib" 9523 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9524 break 2 9525 fi 9526done 9527 done 9528IFS=$as_save_IFS 9529 9530fi 9531fi 9532ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 9533if test -n "$ac_ct_RANLIB"; then 9534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 9535printf "%s\n" "$ac_ct_RANLIB" >&6; } 9536else 9537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9538printf "%s\n" "no" >&6; } 9539fi 9540 9541 if test "x$ac_ct_RANLIB" = x; then 9542 RANLIB=":" 9543 else 9544 case $cross_compiling:$ac_tool_warned in 9545yes:) 9546{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9547printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9548ac_tool_warned=yes ;; 9549esac 9550 RANLIB=$ac_ct_RANLIB 9551 fi 9552else 9553 RANLIB="$ac_cv_prog_RANLIB" 9554fi 9555 9556test -z "$RANLIB" && RANLIB=: 9557 9558 9559 9560 9561 9562 9563# Determine commands to create old-style static archives. 9564old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 9565old_postinstall_cmds='chmod 644 $oldlib' 9566old_postuninstall_cmds= 9567 9568if test -n "$RANLIB"; then 9569 case $host_os in 9570 bitrig* | openbsd*) 9571 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 9572 ;; 9573 *) 9574 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 9575 ;; 9576 esac 9577 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 9578fi 9579 9580case $host_os in 9581 darwin*) 9582 lock_old_archive_extraction=yes ;; 9583 *) 9584 lock_old_archive_extraction=no ;; 9585esac 9586 9587 9588 9589 9590 9591 9592 9593 9594 9595 9596 9597 9598 9599 9600 9601 9602 9603 9604 9605 9606 9607 9608 9609 9610 9611 9612 9613 9614 9615 9616 9617 9618 9619 9620 9621 9622 9623 9624 9625# If no C compiler was specified, use CC. 9626LTCC=${LTCC-"$CC"} 9627 9628# If no C compiler flags were specified, use CFLAGS. 9629LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9630 9631# Allow CC to be a program name with arguments. 9632compiler=$CC 9633 9634 9635# Check for command to grab the raw symbol name followed by C symbol from nm. 9636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 9637printf %s "checking command to parse $NM output from $compiler object... " >&6; } 9638if test ${lt_cv_sys_global_symbol_pipe+y} 9639then : 9640 printf %s "(cached) " >&6 9641else $as_nop 9642 9643# These are sane defaults that work on at least a few old systems. 9644# [They come from Ultrix. What could be older than Ultrix?!! ;)] 9645 9646# Character class describing NM global symbol codes. 9647symcode='[BCDEGRST]' 9648 9649# Regexp to match symbols that can be accessed directly from C. 9650sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 9651 9652# Define system-specific variables. 9653case $host_os in 9654aix*) 9655 symcode='[BCDT]' 9656 ;; 9657cygwin* | mingw* | pw32* | cegcc*) 9658 symcode='[ABCDGISTW]' 9659 ;; 9660hpux*) 9661 if test ia64 = "$host_cpu"; then 9662 symcode='[ABCDEGRST]' 9663 fi 9664 ;; 9665irix* | nonstopux*) 9666 symcode='[BCDEGRST]' 9667 ;; 9668osf*) 9669 symcode='[BCDEGQRST]' 9670 ;; 9671solaris*) 9672 symcode='[BDRT]' 9673 ;; 9674sco3.2v5*) 9675 symcode='[DT]' 9676 ;; 9677sysv4.2uw2*) 9678 symcode='[DT]' 9679 ;; 9680sysv5* | sco5v6* | unixware* | OpenUNIX*) 9681 symcode='[ABDT]' 9682 ;; 9683sysv4) 9684 symcode='[DFNSTU]' 9685 ;; 9686esac 9687 9688# If we're using GNU nm, then use its standard symbol codes. 9689case `$NM -V 2>&1` in 9690*GNU* | *'with BFD'*) 9691 symcode='[ABCDGIRSTW]' ;; 9692esac 9693 9694if test "$lt_cv_nm_interface" = "MS dumpbin"; then 9695 # Gets list of data symbols to import. 9696 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 9697 # Adjust the below global symbol transforms to fixup imported variables. 9698 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 9699 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 9700 lt_c_name_lib_hook="\ 9701 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 9702 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 9703else 9704 # Disable hooks by default. 9705 lt_cv_sys_global_symbol_to_import= 9706 lt_cdecl_hook= 9707 lt_c_name_hook= 9708 lt_c_name_lib_hook= 9709fi 9710 9711# Transform an extracted symbol line into a proper C declaration. 9712# Some systems (esp. on ia64) link data and code symbols differently, 9713# so use this general approach. 9714lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 9715$lt_cdecl_hook\ 9716" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 9717" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 9718 9719# Transform an extracted symbol line into symbol name and symbol address 9720lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 9721$lt_c_name_hook\ 9722" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 9723" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 9724 9725# Transform an extracted symbol line into symbol name with lib prefix and 9726# symbol address. 9727lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 9728$lt_c_name_lib_hook\ 9729" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 9730" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 9731" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 9732 9733# Handle CRLF in mingw tool chain 9734opt_cr= 9735case $build_os in 9736mingw*) 9737 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 9738 ;; 9739esac 9740 9741# Try without a prefix underscore, then with it. 9742for ac_symprfx in "" "_"; do 9743 9744 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 9745 symxfrm="\\1 $ac_symprfx\\2 \\2" 9746 9747 # Write the raw and C identifiers. 9748 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 9749 # Fake it for dumpbin and say T for any non-static function, 9750 # D for any global variable and I for any imported variable. 9751 # Also find C++ and __fastcall symbols from MSVC++, 9752 # which start with @ or ?. 9753 lt_cv_sys_global_symbol_pipe="$AWK '"\ 9754" {last_section=section; section=\$ 3};"\ 9755" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 9756" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 9757" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 9758" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 9759" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 9760" \$ 0!~/External *\|/{next};"\ 9761" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 9762" {if(hide[section]) next};"\ 9763" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 9764" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 9765" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 9766" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 9767" ' prfx=^$ac_symprfx" 9768 else 9769 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 9770 fi 9771 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 9772 9773 # Check to see that the pipe works correctly. 9774 pipe_works=no 9775 9776 rm -f conftest* 9777 cat > conftest.$ac_ext <<_LT_EOF 9778#ifdef __cplusplus 9779extern "C" { 9780#endif 9781char nm_test_var; 9782void nm_test_func(void); 9783void nm_test_func(void){} 9784#ifdef __cplusplus 9785} 9786#endif 9787int main(){nm_test_var='a';nm_test_func();return(0);} 9788_LT_EOF 9789 9790 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9791 (eval $ac_compile) 2>&5 9792 ac_status=$? 9793 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9794 test $ac_status = 0; }; then 9795 # Now try to grab the symbols. 9796 nlist=conftest.nm 9797 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 9798 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 9799 ac_status=$? 9800 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9801 test $ac_status = 0; } && test -s "$nlist"; then 9802 # Try sorting and uniquifying the output. 9803 if sort "$nlist" | uniq > "$nlist"T; then 9804 mv -f "$nlist"T "$nlist" 9805 else 9806 rm -f "$nlist"T 9807 fi 9808 9809 # Make sure that we snagged all the symbols we need. 9810 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 9811 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 9812 cat <<_LT_EOF > conftest.$ac_ext 9813/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 9814#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 9815/* DATA imports from DLLs on WIN32 can't be const, because runtime 9816 relocations are performed -- see ld's documentation on pseudo-relocs. */ 9817# define LT_DLSYM_CONST 9818#elif defined __osf__ 9819/* This system does not cope well with relocations in const data. */ 9820# define LT_DLSYM_CONST 9821#else 9822# define LT_DLSYM_CONST const 9823#endif 9824 9825#ifdef __cplusplus 9826extern "C" { 9827#endif 9828 9829_LT_EOF 9830 # Now generate the symbol file. 9831 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 9832 9833 cat <<_LT_EOF >> conftest.$ac_ext 9834 9835/* The mapping between symbol names and symbols. */ 9836LT_DLSYM_CONST struct { 9837 const char *name; 9838 void *address; 9839} 9840lt__PROGRAM__LTX_preloaded_symbols[] = 9841{ 9842 { "@PROGRAM@", (void *) 0 }, 9843_LT_EOF 9844 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 9845 cat <<\_LT_EOF >> conftest.$ac_ext 9846 {0, (void *) 0} 9847}; 9848 9849/* This works around a problem in FreeBSD linker */ 9850#ifdef FREEBSD_WORKAROUND 9851static const void *lt_preloaded_setup() { 9852 return lt__PROGRAM__LTX_preloaded_symbols; 9853} 9854#endif 9855 9856#ifdef __cplusplus 9857} 9858#endif 9859_LT_EOF 9860 # Now try linking the two files. 9861 mv conftest.$ac_objext conftstm.$ac_objext 9862 lt_globsym_save_LIBS=$LIBS 9863 lt_globsym_save_CFLAGS=$CFLAGS 9864 LIBS=conftstm.$ac_objext 9865 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 9866 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 9867 (eval $ac_link) 2>&5 9868 ac_status=$? 9869 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9870 test $ac_status = 0; } && test -s conftest$ac_exeext; then 9871 pipe_works=yes 9872 fi 9873 LIBS=$lt_globsym_save_LIBS 9874 CFLAGS=$lt_globsym_save_CFLAGS 9875 else 9876 echo "cannot find nm_test_func in $nlist" >&5 9877 fi 9878 else 9879 echo "cannot find nm_test_var in $nlist" >&5 9880 fi 9881 else 9882 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 9883 fi 9884 else 9885 echo "$progname: failed program was:" >&5 9886 cat conftest.$ac_ext >&5 9887 fi 9888 rm -rf conftest* conftst* 9889 9890 # Do not use the global_symbol_pipe unless it works. 9891 if test yes = "$pipe_works"; then 9892 break 9893 else 9894 lt_cv_sys_global_symbol_pipe= 9895 fi 9896done 9897 9898fi 9899 9900if test -z "$lt_cv_sys_global_symbol_pipe"; then 9901 lt_cv_sys_global_symbol_to_cdecl= 9902fi 9903if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 9904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 9905printf "%s\n" "failed" >&6; } 9906else 9907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 9908printf "%s\n" "ok" >&6; } 9909fi 9910 9911# Response file support. 9912if test "$lt_cv_nm_interface" = "MS dumpbin"; then 9913 nm_file_list_spec='@' 9914elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 9915 nm_file_list_spec='@' 9916fi 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 9955printf %s "checking for sysroot... " >&6; } 9956 9957# Check whether --with-sysroot was given. 9958if test ${with_sysroot+y} 9959then : 9960 withval=$with_sysroot; 9961else $as_nop 9962 with_sysroot=no 9963fi 9964 9965 9966lt_sysroot= 9967case $with_sysroot in #( 9968 yes) 9969 if test yes = "$GCC"; then 9970 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 9971 fi 9972 ;; #( 9973 /*) 9974 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 9975 ;; #( 9976 no|'') 9977 ;; #( 9978 *) 9979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 9980printf "%s\n" "$with_sysroot" >&6; } 9981 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 9982 ;; 9983esac 9984 9985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 9986printf "%s\n" "${lt_sysroot:-no}" >&6; } 9987 9988 9989 9990 9991 9992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 9993printf %s "checking for a working dd... " >&6; } 9994if test ${ac_cv_path_lt_DD+y} 9995then : 9996 printf %s "(cached) " >&6 9997else $as_nop 9998 printf 0123456789abcdef0123456789abcdef >conftest.i 9999cat conftest.i conftest.i >conftest2.i 10000: ${lt_DD:=$DD} 10001if test -z "$lt_DD"; then 10002 ac_path_lt_DD_found=false 10003 # Loop through the user's path and test for each of PROGNAME-LIST 10004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10005for as_dir in $PATH 10006do 10007 IFS=$as_save_IFS 10008 case $as_dir in #((( 10009 '') as_dir=./ ;; 10010 */) ;; 10011 *) as_dir=$as_dir/ ;; 10012 esac 10013 for ac_prog in dd 10014 do 10015 for ac_exec_ext in '' $ac_executable_extensions; do 10016 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 10017 as_fn_executable_p "$ac_path_lt_DD" || continue 10018if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 10019 cmp -s conftest.i conftest.out \ 10020 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 10021fi 10022 $ac_path_lt_DD_found && break 3 10023 done 10024 done 10025 done 10026IFS=$as_save_IFS 10027 if test -z "$ac_cv_path_lt_DD"; then 10028 : 10029 fi 10030else 10031 ac_cv_path_lt_DD=$lt_DD 10032fi 10033 10034rm -f conftest.i conftest2.i conftest.out 10035fi 10036{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 10037printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 10038 10039 10040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 10041printf %s "checking how to truncate binary pipes... " >&6; } 10042if test ${lt_cv_truncate_bin+y} 10043then : 10044 printf %s "(cached) " >&6 10045else $as_nop 10046 printf 0123456789abcdef0123456789abcdef >conftest.i 10047cat conftest.i conftest.i >conftest2.i 10048lt_cv_truncate_bin= 10049if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 10050 cmp -s conftest.i conftest.out \ 10051 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 10052fi 10053rm -f conftest.i conftest2.i conftest.out 10054test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 10055fi 10056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 10057printf "%s\n" "$lt_cv_truncate_bin" >&6; } 10058 10059 10060 10061 10062 10063 10064 10065# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 10066func_cc_basename () 10067{ 10068 for cc_temp in $*""; do 10069 case $cc_temp in 10070 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10071 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10072 \-*) ;; 10073 *) break;; 10074 esac 10075 done 10076 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 10077} 10078 10079# Check whether --enable-libtool-lock was given. 10080if test ${enable_libtool_lock+y} 10081then : 10082 enableval=$enable_libtool_lock; 10083fi 10084 10085test no = "$enable_libtool_lock" || enable_libtool_lock=yes 10086 10087# Some flags need to be propagated to the compiler or linker for good 10088# libtool support. 10089case $host in 10090ia64-*-hpux*) 10091 # Find out what ABI is being produced by ac_compile, and set mode 10092 # options accordingly. 10093 echo 'int i;' > conftest.$ac_ext 10094 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10095 (eval $ac_compile) 2>&5 10096 ac_status=$? 10097 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10098 test $ac_status = 0; }; then 10099 case `/usr/bin/file conftest.$ac_objext` in 10100 *ELF-32*) 10101 HPUX_IA64_MODE=32 10102 ;; 10103 *ELF-64*) 10104 HPUX_IA64_MODE=64 10105 ;; 10106 esac 10107 fi 10108 rm -rf conftest* 10109 ;; 10110*-*-irix6*) 10111 # Find out what ABI is being produced by ac_compile, and set linker 10112 # options accordingly. 10113 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 10114 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10115 (eval $ac_compile) 2>&5 10116 ac_status=$? 10117 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10118 test $ac_status = 0; }; then 10119 if test yes = "$lt_cv_prog_gnu_ld"; then 10120 case `/usr/bin/file conftest.$ac_objext` in 10121 *32-bit*) 10122 LD="${LD-ld} -melf32bsmip" 10123 ;; 10124 *N32*) 10125 LD="${LD-ld} -melf32bmipn32" 10126 ;; 10127 *64-bit*) 10128 LD="${LD-ld} -melf64bmip" 10129 ;; 10130 esac 10131 else 10132 case `/usr/bin/file conftest.$ac_objext` in 10133 *32-bit*) 10134 LD="${LD-ld} -32" 10135 ;; 10136 *N32*) 10137 LD="${LD-ld} -n32" 10138 ;; 10139 *64-bit*) 10140 LD="${LD-ld} -64" 10141 ;; 10142 esac 10143 fi 10144 fi 10145 rm -rf conftest* 10146 ;; 10147 10148mips64*-*linux*) 10149 # Find out what ABI is being produced by ac_compile, and set linker 10150 # options accordingly. 10151 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 10152 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10153 (eval $ac_compile) 2>&5 10154 ac_status=$? 10155 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10156 test $ac_status = 0; }; then 10157 emul=elf 10158 case `/usr/bin/file conftest.$ac_objext` in 10159 *32-bit*) 10160 emul="${emul}32" 10161 ;; 10162 *64-bit*) 10163 emul="${emul}64" 10164 ;; 10165 esac 10166 case `/usr/bin/file conftest.$ac_objext` in 10167 *MSB*) 10168 emul="${emul}btsmip" 10169 ;; 10170 *LSB*) 10171 emul="${emul}ltsmip" 10172 ;; 10173 esac 10174 case `/usr/bin/file conftest.$ac_objext` in 10175 *N32*) 10176 emul="${emul}n32" 10177 ;; 10178 esac 10179 LD="${LD-ld} -m $emul" 10180 fi 10181 rm -rf conftest* 10182 ;; 10183 10184x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 10185s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 10186 # Find out what ABI is being produced by ac_compile, and set linker 10187 # options accordingly. Note that the listed cases only cover the 10188 # situations where additional linker options are needed (such as when 10189 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 10190 # vice versa); the common cases where no linker options are needed do 10191 # not appear in the list. 10192 echo 'int i;' > conftest.$ac_ext 10193 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10194 (eval $ac_compile) 2>&5 10195 ac_status=$? 10196 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10197 test $ac_status = 0; }; then 10198 case `/usr/bin/file conftest.o` in 10199 *32-bit*) 10200 case $host in 10201 x86_64-*kfreebsd*-gnu) 10202 LD="${LD-ld} -m elf_i386_fbsd" 10203 ;; 10204 x86_64-*linux*) 10205 case `/usr/bin/file conftest.o` in 10206 *x86-64*) 10207 LD="${LD-ld} -m elf32_x86_64" 10208 ;; 10209 *) 10210 LD="${LD-ld} -m elf_i386" 10211 ;; 10212 esac 10213 ;; 10214 powerpc64le-*linux*) 10215 LD="${LD-ld} -m elf32lppclinux" 10216 ;; 10217 powerpc64-*linux*) 10218 LD="${LD-ld} -m elf32ppclinux" 10219 ;; 10220 s390x-*linux*) 10221 LD="${LD-ld} -m elf_s390" 10222 ;; 10223 sparc64-*linux*) 10224 LD="${LD-ld} -m elf32_sparc" 10225 ;; 10226 esac 10227 ;; 10228 *64-bit*) 10229 case $host in 10230 x86_64-*kfreebsd*-gnu) 10231 LD="${LD-ld} -m elf_x86_64_fbsd" 10232 ;; 10233 x86_64-*linux*) 10234 LD="${LD-ld} -m elf_x86_64" 10235 ;; 10236 powerpcle-*linux*) 10237 LD="${LD-ld} -m elf64lppc" 10238 ;; 10239 powerpc-*linux*) 10240 LD="${LD-ld} -m elf64ppc" 10241 ;; 10242 s390*-*linux*|s390*-*tpf*) 10243 LD="${LD-ld} -m elf64_s390" 10244 ;; 10245 sparc*-*linux*) 10246 LD="${LD-ld} -m elf64_sparc" 10247 ;; 10248 esac 10249 ;; 10250 esac 10251 fi 10252 rm -rf conftest* 10253 ;; 10254 10255*-*-sco3.2v5*) 10256 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 10257 SAVE_CFLAGS=$CFLAGS 10258 CFLAGS="$CFLAGS -belf" 10259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 10260printf %s "checking whether the C compiler needs -belf... " >&6; } 10261if test ${lt_cv_cc_needs_belf+y} 10262then : 10263 printf %s "(cached) " >&6 10264else $as_nop 10265 ac_ext=c 10266ac_cpp='$CPP $CPPFLAGS' 10267ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10268ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10269ac_compiler_gnu=$ac_cv_c_compiler_gnu 10270 10271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10272/* end confdefs.h. */ 10273 10274int 10275main (void) 10276{ 10277 10278 ; 10279 return 0; 10280} 10281_ACEOF 10282if ac_fn_c_try_link "$LINENO" 10283then : 10284 lt_cv_cc_needs_belf=yes 10285else $as_nop 10286 lt_cv_cc_needs_belf=no 10287fi 10288rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10289 conftest$ac_exeext conftest.$ac_ext 10290 ac_ext=c 10291ac_cpp='$CPP $CPPFLAGS' 10292ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10293ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10294ac_compiler_gnu=$ac_cv_c_compiler_gnu 10295 10296fi 10297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 10298printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 10299 if test yes != "$lt_cv_cc_needs_belf"; then 10300 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 10301 CFLAGS=$SAVE_CFLAGS 10302 fi 10303 ;; 10304*-*solaris*) 10305 # Find out what ABI is being produced by ac_compile, and set linker 10306 # options accordingly. 10307 echo 'int i;' > conftest.$ac_ext 10308 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10309 (eval $ac_compile) 2>&5 10310 ac_status=$? 10311 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10312 test $ac_status = 0; }; then 10313 case `/usr/bin/file conftest.o` in 10314 *64-bit*) 10315 case $lt_cv_prog_gnu_ld in 10316 yes*) 10317 case $host in 10318 i?86-*-solaris*|x86_64-*-solaris*) 10319 LD="${LD-ld} -m elf_x86_64" 10320 ;; 10321 sparc*-*-solaris*) 10322 LD="${LD-ld} -m elf64_sparc" 10323 ;; 10324 esac 10325 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 10326 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 10327 LD=${LD-ld}_sol2 10328 fi 10329 ;; 10330 *) 10331 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 10332 LD="${LD-ld} -64" 10333 fi 10334 ;; 10335 esac 10336 ;; 10337 esac 10338 fi 10339 rm -rf conftest* 10340 ;; 10341esac 10342 10343need_locks=$enable_libtool_lock 10344 10345if test -n "$ac_tool_prefix"; then 10346 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 10347set dummy ${ac_tool_prefix}mt; ac_word=$2 10348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10349printf %s "checking for $ac_word... " >&6; } 10350if test ${ac_cv_prog_MANIFEST_TOOL+y} 10351then : 10352 printf %s "(cached) " >&6 10353else $as_nop 10354 if test -n "$MANIFEST_TOOL"; then 10355 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 10356else 10357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10358for as_dir in $PATH 10359do 10360 IFS=$as_save_IFS 10361 case $as_dir in #((( 10362 '') as_dir=./ ;; 10363 */) ;; 10364 *) as_dir=$as_dir/ ;; 10365 esac 10366 for ac_exec_ext in '' $ac_executable_extensions; do 10367 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10368 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 10369 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10370 break 2 10371 fi 10372done 10373 done 10374IFS=$as_save_IFS 10375 10376fi 10377fi 10378MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 10379if test -n "$MANIFEST_TOOL"; then 10380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 10381printf "%s\n" "$MANIFEST_TOOL" >&6; } 10382else 10383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10384printf "%s\n" "no" >&6; } 10385fi 10386 10387 10388fi 10389if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 10390 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 10391 # Extract the first word of "mt", so it can be a program name with args. 10392set dummy mt; ac_word=$2 10393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10394printf %s "checking for $ac_word... " >&6; } 10395if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 10396then : 10397 printf %s "(cached) " >&6 10398else $as_nop 10399 if test -n "$ac_ct_MANIFEST_TOOL"; then 10400 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 10401else 10402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10403for as_dir in $PATH 10404do 10405 IFS=$as_save_IFS 10406 case $as_dir in #((( 10407 '') as_dir=./ ;; 10408 */) ;; 10409 *) as_dir=$as_dir/ ;; 10410 esac 10411 for ac_exec_ext in '' $ac_executable_extensions; do 10412 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10413 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 10414 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10415 break 2 10416 fi 10417done 10418 done 10419IFS=$as_save_IFS 10420 10421fi 10422fi 10423ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 10424if test -n "$ac_ct_MANIFEST_TOOL"; then 10425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 10426printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 10427else 10428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10429printf "%s\n" "no" >&6; } 10430fi 10431 10432 if test "x$ac_ct_MANIFEST_TOOL" = x; then 10433 MANIFEST_TOOL=":" 10434 else 10435 case $cross_compiling:$ac_tool_warned in 10436yes:) 10437{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10438printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10439ac_tool_warned=yes ;; 10440esac 10441 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 10442 fi 10443else 10444 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 10445fi 10446 10447test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 10448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 10449printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 10450if test ${lt_cv_path_mainfest_tool+y} 10451then : 10452 printf %s "(cached) " >&6 10453else $as_nop 10454 lt_cv_path_mainfest_tool=no 10455 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 10456 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 10457 cat conftest.err >&5 10458 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 10459 lt_cv_path_mainfest_tool=yes 10460 fi 10461 rm -f conftest* 10462fi 10463{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 10464printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 10465if test yes != "$lt_cv_path_mainfest_tool"; then 10466 MANIFEST_TOOL=: 10467fi 10468 10469 10470 10471 10472 10473 10474 case $host_os in 10475 rhapsody* | darwin*) 10476 if test -n "$ac_tool_prefix"; then 10477 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 10478set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 10479{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10480printf %s "checking for $ac_word... " >&6; } 10481if test ${ac_cv_prog_DSYMUTIL+y} 10482then : 10483 printf %s "(cached) " >&6 10484else $as_nop 10485 if test -n "$DSYMUTIL"; then 10486 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 10487else 10488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10489for as_dir in $PATH 10490do 10491 IFS=$as_save_IFS 10492 case $as_dir in #((( 10493 '') as_dir=./ ;; 10494 */) ;; 10495 *) as_dir=$as_dir/ ;; 10496 esac 10497 for ac_exec_ext in '' $ac_executable_extensions; do 10498 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10499 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 10500 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10501 break 2 10502 fi 10503done 10504 done 10505IFS=$as_save_IFS 10506 10507fi 10508fi 10509DSYMUTIL=$ac_cv_prog_DSYMUTIL 10510if test -n "$DSYMUTIL"; then 10511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 10512printf "%s\n" "$DSYMUTIL" >&6; } 10513else 10514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10515printf "%s\n" "no" >&6; } 10516fi 10517 10518 10519fi 10520if test -z "$ac_cv_prog_DSYMUTIL"; then 10521 ac_ct_DSYMUTIL=$DSYMUTIL 10522 # Extract the first word of "dsymutil", so it can be a program name with args. 10523set dummy dsymutil; ac_word=$2 10524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10525printf %s "checking for $ac_word... " >&6; } 10526if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 10527then : 10528 printf %s "(cached) " >&6 10529else $as_nop 10530 if test -n "$ac_ct_DSYMUTIL"; then 10531 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 10532else 10533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10534for as_dir in $PATH 10535do 10536 IFS=$as_save_IFS 10537 case $as_dir in #((( 10538 '') as_dir=./ ;; 10539 */) ;; 10540 *) as_dir=$as_dir/ ;; 10541 esac 10542 for ac_exec_ext in '' $ac_executable_extensions; do 10543 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10544 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 10545 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10546 break 2 10547 fi 10548done 10549 done 10550IFS=$as_save_IFS 10551 10552fi 10553fi 10554ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 10555if test -n "$ac_ct_DSYMUTIL"; then 10556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 10557printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 10558else 10559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10560printf "%s\n" "no" >&6; } 10561fi 10562 10563 if test "x$ac_ct_DSYMUTIL" = x; then 10564 DSYMUTIL=":" 10565 else 10566 case $cross_compiling:$ac_tool_warned in 10567yes:) 10568{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10569printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10570ac_tool_warned=yes ;; 10571esac 10572 DSYMUTIL=$ac_ct_DSYMUTIL 10573 fi 10574else 10575 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 10576fi 10577 10578 if test -n "$ac_tool_prefix"; then 10579 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 10580set dummy ${ac_tool_prefix}nmedit; ac_word=$2 10581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10582printf %s "checking for $ac_word... " >&6; } 10583if test ${ac_cv_prog_NMEDIT+y} 10584then : 10585 printf %s "(cached) " >&6 10586else $as_nop 10587 if test -n "$NMEDIT"; then 10588 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 10589else 10590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10591for as_dir in $PATH 10592do 10593 IFS=$as_save_IFS 10594 case $as_dir in #((( 10595 '') as_dir=./ ;; 10596 */) ;; 10597 *) as_dir=$as_dir/ ;; 10598 esac 10599 for ac_exec_ext in '' $ac_executable_extensions; do 10600 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10601 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 10602 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10603 break 2 10604 fi 10605done 10606 done 10607IFS=$as_save_IFS 10608 10609fi 10610fi 10611NMEDIT=$ac_cv_prog_NMEDIT 10612if test -n "$NMEDIT"; then 10613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 10614printf "%s\n" "$NMEDIT" >&6; } 10615else 10616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10617printf "%s\n" "no" >&6; } 10618fi 10619 10620 10621fi 10622if test -z "$ac_cv_prog_NMEDIT"; then 10623 ac_ct_NMEDIT=$NMEDIT 10624 # Extract the first word of "nmedit", so it can be a program name with args. 10625set dummy nmedit; ac_word=$2 10626{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10627printf %s "checking for $ac_word... " >&6; } 10628if test ${ac_cv_prog_ac_ct_NMEDIT+y} 10629then : 10630 printf %s "(cached) " >&6 10631else $as_nop 10632 if test -n "$ac_ct_NMEDIT"; then 10633 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 10634else 10635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10636for as_dir in $PATH 10637do 10638 IFS=$as_save_IFS 10639 case $as_dir in #((( 10640 '') as_dir=./ ;; 10641 */) ;; 10642 *) as_dir=$as_dir/ ;; 10643 esac 10644 for ac_exec_ext in '' $ac_executable_extensions; do 10645 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10646 ac_cv_prog_ac_ct_NMEDIT="nmedit" 10647 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10648 break 2 10649 fi 10650done 10651 done 10652IFS=$as_save_IFS 10653 10654fi 10655fi 10656ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 10657if test -n "$ac_ct_NMEDIT"; then 10658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 10659printf "%s\n" "$ac_ct_NMEDIT" >&6; } 10660else 10661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10662printf "%s\n" "no" >&6; } 10663fi 10664 10665 if test "x$ac_ct_NMEDIT" = x; then 10666 NMEDIT=":" 10667 else 10668 case $cross_compiling:$ac_tool_warned in 10669yes:) 10670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10671printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10672ac_tool_warned=yes ;; 10673esac 10674 NMEDIT=$ac_ct_NMEDIT 10675 fi 10676else 10677 NMEDIT="$ac_cv_prog_NMEDIT" 10678fi 10679 10680 if test -n "$ac_tool_prefix"; then 10681 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 10682set dummy ${ac_tool_prefix}lipo; ac_word=$2 10683{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10684printf %s "checking for $ac_word... " >&6; } 10685if test ${ac_cv_prog_LIPO+y} 10686then : 10687 printf %s "(cached) " >&6 10688else $as_nop 10689 if test -n "$LIPO"; then 10690 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 10691else 10692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10693for as_dir in $PATH 10694do 10695 IFS=$as_save_IFS 10696 case $as_dir in #((( 10697 '') as_dir=./ ;; 10698 */) ;; 10699 *) as_dir=$as_dir/ ;; 10700 esac 10701 for ac_exec_ext in '' $ac_executable_extensions; do 10702 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10703 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 10704 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10705 break 2 10706 fi 10707done 10708 done 10709IFS=$as_save_IFS 10710 10711fi 10712fi 10713LIPO=$ac_cv_prog_LIPO 10714if test -n "$LIPO"; then 10715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 10716printf "%s\n" "$LIPO" >&6; } 10717else 10718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10719printf "%s\n" "no" >&6; } 10720fi 10721 10722 10723fi 10724if test -z "$ac_cv_prog_LIPO"; then 10725 ac_ct_LIPO=$LIPO 10726 # Extract the first word of "lipo", so it can be a program name with args. 10727set dummy lipo; ac_word=$2 10728{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10729printf %s "checking for $ac_word... " >&6; } 10730if test ${ac_cv_prog_ac_ct_LIPO+y} 10731then : 10732 printf %s "(cached) " >&6 10733else $as_nop 10734 if test -n "$ac_ct_LIPO"; then 10735 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 10736else 10737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10738for as_dir in $PATH 10739do 10740 IFS=$as_save_IFS 10741 case $as_dir in #((( 10742 '') as_dir=./ ;; 10743 */) ;; 10744 *) as_dir=$as_dir/ ;; 10745 esac 10746 for ac_exec_ext in '' $ac_executable_extensions; do 10747 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10748 ac_cv_prog_ac_ct_LIPO="lipo" 10749 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10750 break 2 10751 fi 10752done 10753 done 10754IFS=$as_save_IFS 10755 10756fi 10757fi 10758ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 10759if test -n "$ac_ct_LIPO"; then 10760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 10761printf "%s\n" "$ac_ct_LIPO" >&6; } 10762else 10763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10764printf "%s\n" "no" >&6; } 10765fi 10766 10767 if test "x$ac_ct_LIPO" = x; then 10768 LIPO=":" 10769 else 10770 case $cross_compiling:$ac_tool_warned in 10771yes:) 10772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10773printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10774ac_tool_warned=yes ;; 10775esac 10776 LIPO=$ac_ct_LIPO 10777 fi 10778else 10779 LIPO="$ac_cv_prog_LIPO" 10780fi 10781 10782 if test -n "$ac_tool_prefix"; then 10783 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 10784set dummy ${ac_tool_prefix}otool; ac_word=$2 10785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10786printf %s "checking for $ac_word... " >&6; } 10787if test ${ac_cv_prog_OTOOL+y} 10788then : 10789 printf %s "(cached) " >&6 10790else $as_nop 10791 if test -n "$OTOOL"; then 10792 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 10793else 10794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10795for as_dir in $PATH 10796do 10797 IFS=$as_save_IFS 10798 case $as_dir in #((( 10799 '') as_dir=./ ;; 10800 */) ;; 10801 *) as_dir=$as_dir/ ;; 10802 esac 10803 for ac_exec_ext in '' $ac_executable_extensions; do 10804 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10805 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 10806 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10807 break 2 10808 fi 10809done 10810 done 10811IFS=$as_save_IFS 10812 10813fi 10814fi 10815OTOOL=$ac_cv_prog_OTOOL 10816if test -n "$OTOOL"; then 10817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 10818printf "%s\n" "$OTOOL" >&6; } 10819else 10820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10821printf "%s\n" "no" >&6; } 10822fi 10823 10824 10825fi 10826if test -z "$ac_cv_prog_OTOOL"; then 10827 ac_ct_OTOOL=$OTOOL 10828 # Extract the first word of "otool", so it can be a program name with args. 10829set dummy otool; ac_word=$2 10830{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10831printf %s "checking for $ac_word... " >&6; } 10832if test ${ac_cv_prog_ac_ct_OTOOL+y} 10833then : 10834 printf %s "(cached) " >&6 10835else $as_nop 10836 if test -n "$ac_ct_OTOOL"; then 10837 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 10838else 10839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10840for as_dir in $PATH 10841do 10842 IFS=$as_save_IFS 10843 case $as_dir in #((( 10844 '') as_dir=./ ;; 10845 */) ;; 10846 *) as_dir=$as_dir/ ;; 10847 esac 10848 for ac_exec_ext in '' $ac_executable_extensions; do 10849 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10850 ac_cv_prog_ac_ct_OTOOL="otool" 10851 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10852 break 2 10853 fi 10854done 10855 done 10856IFS=$as_save_IFS 10857 10858fi 10859fi 10860ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 10861if test -n "$ac_ct_OTOOL"; then 10862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 10863printf "%s\n" "$ac_ct_OTOOL" >&6; } 10864else 10865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10866printf "%s\n" "no" >&6; } 10867fi 10868 10869 if test "x$ac_ct_OTOOL" = x; then 10870 OTOOL=":" 10871 else 10872 case $cross_compiling:$ac_tool_warned in 10873yes:) 10874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10875printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10876ac_tool_warned=yes ;; 10877esac 10878 OTOOL=$ac_ct_OTOOL 10879 fi 10880else 10881 OTOOL="$ac_cv_prog_OTOOL" 10882fi 10883 10884 if test -n "$ac_tool_prefix"; then 10885 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 10886set dummy ${ac_tool_prefix}otool64; ac_word=$2 10887{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10888printf %s "checking for $ac_word... " >&6; } 10889if test ${ac_cv_prog_OTOOL64+y} 10890then : 10891 printf %s "(cached) " >&6 10892else $as_nop 10893 if test -n "$OTOOL64"; then 10894 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 10895else 10896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10897for as_dir in $PATH 10898do 10899 IFS=$as_save_IFS 10900 case $as_dir in #((( 10901 '') as_dir=./ ;; 10902 */) ;; 10903 *) as_dir=$as_dir/ ;; 10904 esac 10905 for ac_exec_ext in '' $ac_executable_extensions; do 10906 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10907 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 10908 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10909 break 2 10910 fi 10911done 10912 done 10913IFS=$as_save_IFS 10914 10915fi 10916fi 10917OTOOL64=$ac_cv_prog_OTOOL64 10918if test -n "$OTOOL64"; then 10919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 10920printf "%s\n" "$OTOOL64" >&6; } 10921else 10922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10923printf "%s\n" "no" >&6; } 10924fi 10925 10926 10927fi 10928if test -z "$ac_cv_prog_OTOOL64"; then 10929 ac_ct_OTOOL64=$OTOOL64 10930 # Extract the first word of "otool64", so it can be a program name with args. 10931set dummy otool64; ac_word=$2 10932{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10933printf %s "checking for $ac_word... " >&6; } 10934if test ${ac_cv_prog_ac_ct_OTOOL64+y} 10935then : 10936 printf %s "(cached) " >&6 10937else $as_nop 10938 if test -n "$ac_ct_OTOOL64"; then 10939 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 10940else 10941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10942for as_dir in $PATH 10943do 10944 IFS=$as_save_IFS 10945 case $as_dir in #((( 10946 '') as_dir=./ ;; 10947 */) ;; 10948 *) as_dir=$as_dir/ ;; 10949 esac 10950 for ac_exec_ext in '' $ac_executable_extensions; do 10951 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10952 ac_cv_prog_ac_ct_OTOOL64="otool64" 10953 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10954 break 2 10955 fi 10956done 10957 done 10958IFS=$as_save_IFS 10959 10960fi 10961fi 10962ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 10963if test -n "$ac_ct_OTOOL64"; then 10964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 10965printf "%s\n" "$ac_ct_OTOOL64" >&6; } 10966else 10967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10968printf "%s\n" "no" >&6; } 10969fi 10970 10971 if test "x$ac_ct_OTOOL64" = x; then 10972 OTOOL64=":" 10973 else 10974 case $cross_compiling:$ac_tool_warned in 10975yes:) 10976{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10977printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10978ac_tool_warned=yes ;; 10979esac 10980 OTOOL64=$ac_ct_OTOOL64 10981 fi 10982else 10983 OTOOL64="$ac_cv_prog_OTOOL64" 10984fi 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 11013printf %s "checking for -single_module linker flag... " >&6; } 11014if test ${lt_cv_apple_cc_single_mod+y} 11015then : 11016 printf %s "(cached) " >&6 11017else $as_nop 11018 lt_cv_apple_cc_single_mod=no 11019 if test -z "$LT_MULTI_MODULE"; then 11020 # By default we will add the -single_module flag. You can override 11021 # by either setting the environment variable LT_MULTI_MODULE 11022 # non-empty at configure time, or by adding -multi_module to the 11023 # link flags. 11024 rm -rf libconftest.dylib* 11025 echo "int foo(void){return 1;}" > conftest.c 11026 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 11027-dynamiclib -Wl,-single_module conftest.c" >&5 11028 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 11029 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 11030 _lt_result=$? 11031 # If there is a non-empty error log, and "single_module" 11032 # appears in it, assume the flag caused a linker warning 11033 if test -s conftest.err && $GREP single_module conftest.err; then 11034 cat conftest.err >&5 11035 # Otherwise, if the output was created with a 0 exit code from 11036 # the compiler, it worked. 11037 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 11038 lt_cv_apple_cc_single_mod=yes 11039 else 11040 cat conftest.err >&5 11041 fi 11042 rm -rf libconftest.dylib* 11043 rm -f conftest.* 11044 fi 11045fi 11046{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 11047printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 11048 11049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 11050printf %s "checking for -exported_symbols_list linker flag... " >&6; } 11051if test ${lt_cv_ld_exported_symbols_list+y} 11052then : 11053 printf %s "(cached) " >&6 11054else $as_nop 11055 lt_cv_ld_exported_symbols_list=no 11056 save_LDFLAGS=$LDFLAGS 11057 echo "_main" > conftest.sym 11058 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 11059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11060/* end confdefs.h. */ 11061 11062int 11063main (void) 11064{ 11065 11066 ; 11067 return 0; 11068} 11069_ACEOF 11070if ac_fn_c_try_link "$LINENO" 11071then : 11072 lt_cv_ld_exported_symbols_list=yes 11073else $as_nop 11074 lt_cv_ld_exported_symbols_list=no 11075fi 11076rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11077 conftest$ac_exeext conftest.$ac_ext 11078 LDFLAGS=$save_LDFLAGS 11079 11080fi 11081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 11082printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 11083 11084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 11085printf %s "checking for -force_load linker flag... " >&6; } 11086if test ${lt_cv_ld_force_load+y} 11087then : 11088 printf %s "(cached) " >&6 11089else $as_nop 11090 lt_cv_ld_force_load=no 11091 cat > conftest.c << _LT_EOF 11092int forced_loaded() { return 2;} 11093_LT_EOF 11094 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 11095 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 11096 echo "$AR cru libconftest.a conftest.o" >&5 11097 $AR cru libconftest.a conftest.o 2>&5 11098 echo "$RANLIB libconftest.a" >&5 11099 $RANLIB libconftest.a 2>&5 11100 cat > conftest.c << _LT_EOF 11101int main() { return 0;} 11102_LT_EOF 11103 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 11104 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 11105 _lt_result=$? 11106 if test -s conftest.err && $GREP force_load conftest.err; then 11107 cat conftest.err >&5 11108 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 11109 lt_cv_ld_force_load=yes 11110 else 11111 cat conftest.err >&5 11112 fi 11113 rm -f conftest.err libconftest.a conftest conftest.c 11114 rm -rf conftest.dSYM 11115 11116fi 11117{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 11118printf "%s\n" "$lt_cv_ld_force_load" >&6; } 11119 case $host_os in 11120 rhapsody* | darwin1.[012]) 11121 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 11122 darwin1.*) 11123 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 11124 darwin*) 11125 case ${MACOSX_DEPLOYMENT_TARGET},$host in 11126 10.[012],*|,*powerpc*) 11127 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 11128 *) 11129 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 11130 esac 11131 ;; 11132 esac 11133 if test yes = "$lt_cv_apple_cc_single_mod"; then 11134 _lt_dar_single_mod='$single_module' 11135 fi 11136 if test yes = "$lt_cv_ld_exported_symbols_list"; then 11137 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 11138 else 11139 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 11140 fi 11141 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 11142 _lt_dsymutil='~$DSYMUTIL $lib || :' 11143 else 11144 _lt_dsymutil= 11145 fi 11146 ;; 11147 esac 11148 11149# func_munge_path_list VARIABLE PATH 11150# ----------------------------------- 11151# VARIABLE is name of variable containing _space_ separated list of 11152# directories to be munged by the contents of PATH, which is string 11153# having a format: 11154# "DIR[:DIR]:" 11155# string "DIR[ DIR]" will be prepended to VARIABLE 11156# ":DIR[:DIR]" 11157# string "DIR[ DIR]" will be appended to VARIABLE 11158# "DIRP[:DIRP]::[DIRA:]DIRA" 11159# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 11160# "DIRA[ DIRA]" will be appended to VARIABLE 11161# "DIR[:DIR]" 11162# VARIABLE will be replaced by "DIR[ DIR]" 11163func_munge_path_list () 11164{ 11165 case x$2 in 11166 x) 11167 ;; 11168 *:) 11169 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 11170 ;; 11171 x:*) 11172 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 11173 ;; 11174 *::*) 11175 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 11176 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 11177 ;; 11178 *) 11179 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 11180 ;; 11181 esac 11182} 11183 11184ac_header= ac_cache= 11185for ac_item in $ac_header_c_list 11186do 11187 if test $ac_cache; then 11188 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 11189 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 11190 printf "%s\n" "#define $ac_item 1" >> confdefs.h 11191 fi 11192 ac_header= ac_cache= 11193 elif test $ac_header; then 11194 ac_cache=$ac_item 11195 else 11196 ac_header=$ac_item 11197 fi 11198done 11199 11200 11201 11202 11203 11204 11205 11206 11207if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 11208then : 11209 11210printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 11211 11212fi 11213ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 11214" 11215if test "x$ac_cv_header_dlfcn_h" = xyes 11216then : 11217 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 11218 11219fi 11220 11221 11222 11223 11224func_stripname_cnf () 11225{ 11226 case $2 in 11227 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; 11228 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; 11229 esac 11230} # func_stripname_cnf 11231 11232 11233 11234 11235 11236 11237# Set options 11238 11239# Check whether --with-pic was given. 11240if test ${with_pic+y} 11241then : 11242 withval=$with_pic; lt_p=${PACKAGE-default} 11243 case $withval in 11244 yes|no) pic_mode=$withval ;; 11245 *) 11246 pic_mode=default 11247 # Look at the argument we got. We use all the common list separators. 11248 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11249 for lt_pkg in $withval; do 11250 IFS=$lt_save_ifs 11251 if test "X$lt_pkg" = "X$lt_p"; then 11252 pic_mode=yes 11253 fi 11254 done 11255 IFS=$lt_save_ifs 11256 ;; 11257 esac 11258else $as_nop 11259 pic_mode=yes 11260fi 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 enable_dlopen=no 11271 11272 11273 enable_win32_dll=no 11274 11275 11276 # Check whether --enable-shared was given. 11277if test ${enable_shared+y} 11278then : 11279 enableval=$enable_shared; p=${PACKAGE-default} 11280 case $enableval in 11281 yes) enable_shared=yes ;; 11282 no) enable_shared=no ;; 11283 *) 11284 enable_shared=no 11285 # Look at the argument we got. We use all the common list separators. 11286 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11287 for pkg in $enableval; do 11288 IFS=$lt_save_ifs 11289 if test "X$pkg" = "X$p"; then 11290 enable_shared=yes 11291 fi 11292 done 11293 IFS=$lt_save_ifs 11294 ;; 11295 esac 11296else $as_nop 11297 enable_shared=yes 11298fi 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 # Check whether --enable-static was given. 11309if test ${enable_static+y} 11310then : 11311 enableval=$enable_static; p=${PACKAGE-default} 11312 case $enableval in 11313 yes) enable_static=yes ;; 11314 no) enable_static=no ;; 11315 *) 11316 enable_static=no 11317 # Look at the argument we got. We use all the common list separators. 11318 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11319 for pkg in $enableval; do 11320 IFS=$lt_save_ifs 11321 if test "X$pkg" = "X$p"; then 11322 enable_static=yes 11323 fi 11324 done 11325 IFS=$lt_save_ifs 11326 ;; 11327 esac 11328else $as_nop 11329 enable_static=yes 11330fi 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 # Check whether --enable-fast-install was given. 11342if test ${enable_fast_install+y} 11343then : 11344 enableval=$enable_fast_install; p=${PACKAGE-default} 11345 case $enableval in 11346 yes) enable_fast_install=yes ;; 11347 no) enable_fast_install=no ;; 11348 *) 11349 enable_fast_install=no 11350 # Look at the argument we got. We use all the common list separators. 11351 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11352 for pkg in $enableval; do 11353 IFS=$lt_save_ifs 11354 if test "X$pkg" = "X$p"; then 11355 enable_fast_install=yes 11356 fi 11357 done 11358 IFS=$lt_save_ifs 11359 ;; 11360 esac 11361else $as_nop 11362 enable_fast_install=yes 11363fi 11364 11365 11366 11367 11368 11369 11370 11371 11372 shared_archive_member_spec= 11373case $host,$enable_shared in 11374power*-*-aix[5-9]*,yes) 11375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 11376printf %s "checking which variant of shared library versioning to provide... " >&6; } 11377 11378# Check whether --with-aix-soname was given. 11379if test ${with_aix_soname+y} 11380then : 11381 withval=$with_aix_soname; case $withval in 11382 aix|svr4|both) 11383 ;; 11384 *) 11385 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 11386 ;; 11387 esac 11388 lt_cv_with_aix_soname=$with_aix_soname 11389else $as_nop 11390 if test ${lt_cv_with_aix_soname+y} 11391then : 11392 printf %s "(cached) " >&6 11393else $as_nop 11394 lt_cv_with_aix_soname=aix 11395fi 11396 11397 with_aix_soname=$lt_cv_with_aix_soname 11398fi 11399 11400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 11401printf "%s\n" "$with_aix_soname" >&6; } 11402 if test aix != "$with_aix_soname"; then 11403 # For the AIX way of multilib, we name the shared archive member 11404 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 11405 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 11406 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 11407 # the AIX toolchain works better with OBJECT_MODE set (default 32). 11408 if test 64 = "${OBJECT_MODE-32}"; then 11409 shared_archive_member_spec=shr_64 11410 else 11411 shared_archive_member_spec=shr 11412 fi 11413 fi 11414 ;; 11415*) 11416 with_aix_soname=aix 11417 ;; 11418esac 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429# This can be used to rebuild libtool when needed 11430LIBTOOL_DEPS=$ltmain 11431 11432# Always use our own libtool. 11433LIBTOOL='$(SHELL) $(top_builddir)/libtool' 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 11450 11451 11452 11453 11454 11455 11456 11457 11458 11459 11460 11461 11462 11463 11464test -z "$LN_S" && LN_S="ln -s" 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479if test -n "${ZSH_VERSION+set}"; then 11480 setopt NO_GLOB_SUBST 11481fi 11482 11483{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 11484printf %s "checking for objdir... " >&6; } 11485if test ${lt_cv_objdir+y} 11486then : 11487 printf %s "(cached) " >&6 11488else $as_nop 11489 rm -f .libs 2>/dev/null 11490mkdir .libs 2>/dev/null 11491if test -d .libs; then 11492 lt_cv_objdir=.libs 11493else 11494 # MS-DOS does not allow filenames that begin with a dot. 11495 lt_cv_objdir=_libs 11496fi 11497rmdir .libs 2>/dev/null 11498fi 11499{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 11500printf "%s\n" "$lt_cv_objdir" >&6; } 11501objdir=$lt_cv_objdir 11502 11503 11504 11505 11506 11507printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 11508 11509 11510 11511 11512case $host_os in 11513aix3*) 11514 # AIX sometimes has problems with the GCC collect2 program. For some 11515 # reason, if we set the COLLECT_NAMES environment variable, the problems 11516 # vanish in a puff of smoke. 11517 if test set != "${COLLECT_NAMES+set}"; then 11518 COLLECT_NAMES= 11519 export COLLECT_NAMES 11520 fi 11521 ;; 11522esac 11523 11524# Global variables: 11525ofile=libtool 11526can_build_shared=yes 11527 11528# All known linkers require a '.a' archive for static linking (except MSVC, 11529# which needs '.lib'). 11530libext=a 11531 11532with_gnu_ld=$lt_cv_prog_gnu_ld 11533 11534old_CC=$CC 11535old_CFLAGS=$CFLAGS 11536 11537# Set sane defaults for various variables 11538test -z "$CC" && CC=cc 11539test -z "$LTCC" && LTCC=$CC 11540test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 11541test -z "$LD" && LD=ld 11542test -z "$ac_objext" && ac_objext=o 11543 11544func_cc_basename $compiler 11545cc_basename=$func_cc_basename_result 11546 11547 11548# Only perform the check for file, if the check method requires it 11549test -z "$MAGIC_CMD" && MAGIC_CMD=file 11550case $deplibs_check_method in 11551file_magic*) 11552 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 11553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 11554printf %s "checking for ${ac_tool_prefix}file... " >&6; } 11555if test ${lt_cv_path_MAGIC_CMD+y} 11556then : 11557 printf %s "(cached) " >&6 11558else $as_nop 11559 case $MAGIC_CMD in 11560[\\/*] | ?:[\\/]*) 11561 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 11562 ;; 11563*) 11564 lt_save_MAGIC_CMD=$MAGIC_CMD 11565 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11566 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 11567 for ac_dir in $ac_dummy; do 11568 IFS=$lt_save_ifs 11569 test -z "$ac_dir" && ac_dir=. 11570 if test -f "$ac_dir/${ac_tool_prefix}file"; then 11571 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 11572 if test -n "$file_magic_test_file"; then 11573 case $deplibs_check_method in 11574 "file_magic "*) 11575 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 11576 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 11577 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 11578 $EGREP "$file_magic_regex" > /dev/null; then 11579 : 11580 else 11581 cat <<_LT_EOF 1>&2 11582 11583*** Warning: the command libtool uses to detect shared libraries, 11584*** $file_magic_cmd, produces output that libtool cannot recognize. 11585*** The result is that libtool may fail to recognize shared libraries 11586*** as such. This will affect the creation of libtool libraries that 11587*** depend on shared libraries, but programs linked with such libtool 11588*** libraries will work regardless of this problem. Nevertheless, you 11589*** may want to report the problem to your system manager and/or to 11590*** bug-libtool@gnu.org 11591 11592_LT_EOF 11593 fi ;; 11594 esac 11595 fi 11596 break 11597 fi 11598 done 11599 IFS=$lt_save_ifs 11600 MAGIC_CMD=$lt_save_MAGIC_CMD 11601 ;; 11602esac 11603fi 11604 11605MAGIC_CMD=$lt_cv_path_MAGIC_CMD 11606if test -n "$MAGIC_CMD"; then 11607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 11608printf "%s\n" "$MAGIC_CMD" >&6; } 11609else 11610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11611printf "%s\n" "no" >&6; } 11612fi 11613 11614 11615 11616 11617 11618if test -z "$lt_cv_path_MAGIC_CMD"; then 11619 if test -n "$ac_tool_prefix"; then 11620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 11621printf %s "checking for file... " >&6; } 11622if test ${lt_cv_path_MAGIC_CMD+y} 11623then : 11624 printf %s "(cached) " >&6 11625else $as_nop 11626 case $MAGIC_CMD in 11627[\\/*] | ?:[\\/]*) 11628 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 11629 ;; 11630*) 11631 lt_save_MAGIC_CMD=$MAGIC_CMD 11632 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11633 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 11634 for ac_dir in $ac_dummy; do 11635 IFS=$lt_save_ifs 11636 test -z "$ac_dir" && ac_dir=. 11637 if test -f "$ac_dir/file"; then 11638 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 11639 if test -n "$file_magic_test_file"; then 11640 case $deplibs_check_method in 11641 "file_magic "*) 11642 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 11643 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 11644 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 11645 $EGREP "$file_magic_regex" > /dev/null; then 11646 : 11647 else 11648 cat <<_LT_EOF 1>&2 11649 11650*** Warning: the command libtool uses to detect shared libraries, 11651*** $file_magic_cmd, produces output that libtool cannot recognize. 11652*** The result is that libtool may fail to recognize shared libraries 11653*** as such. This will affect the creation of libtool libraries that 11654*** depend on shared libraries, but programs linked with such libtool 11655*** libraries will work regardless of this problem. Nevertheless, you 11656*** may want to report the problem to your system manager and/or to 11657*** bug-libtool@gnu.org 11658 11659_LT_EOF 11660 fi ;; 11661 esac 11662 fi 11663 break 11664 fi 11665 done 11666 IFS=$lt_save_ifs 11667 MAGIC_CMD=$lt_save_MAGIC_CMD 11668 ;; 11669esac 11670fi 11671 11672MAGIC_CMD=$lt_cv_path_MAGIC_CMD 11673if test -n "$MAGIC_CMD"; then 11674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 11675printf "%s\n" "$MAGIC_CMD" >&6; } 11676else 11677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11678printf "%s\n" "no" >&6; } 11679fi 11680 11681 11682 else 11683 MAGIC_CMD=: 11684 fi 11685fi 11686 11687 fi 11688 ;; 11689esac 11690 11691# Use C for the default configuration in the libtool script 11692 11693lt_save_CC=$CC 11694ac_ext=c 11695ac_cpp='$CPP $CPPFLAGS' 11696ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11697ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11698ac_compiler_gnu=$ac_cv_c_compiler_gnu 11699 11700 11701# Source file extension for C test sources. 11702ac_ext=c 11703 11704# Object file extension for compiled C test sources. 11705objext=o 11706objext=$objext 11707 11708# Code to be used in simple compile tests 11709lt_simple_compile_test_code="int some_variable = 0;" 11710 11711# Code to be used in simple link tests 11712lt_simple_link_test_code='int main(){return(0);}' 11713 11714 11715 11716 11717 11718 11719 11720# If no C compiler was specified, use CC. 11721LTCC=${LTCC-"$CC"} 11722 11723# If no C compiler flags were specified, use CFLAGS. 11724LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11725 11726# Allow CC to be a program name with arguments. 11727compiler=$CC 11728 11729# Save the default compiler, since it gets overwritten when the other 11730# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 11731compiler_DEFAULT=$CC 11732 11733# save warnings/boilerplate of simple test code 11734ac_outfile=conftest.$ac_objext 11735echo "$lt_simple_compile_test_code" >conftest.$ac_ext 11736eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11737_lt_compiler_boilerplate=`cat conftest.err` 11738$RM conftest* 11739 11740ac_outfile=conftest.$ac_objext 11741echo "$lt_simple_link_test_code" >conftest.$ac_ext 11742eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11743_lt_linker_boilerplate=`cat conftest.err` 11744$RM -r conftest* 11745 11746 11747## CAVEAT EMPTOR: 11748## There is no encapsulation within the following macros, do not change 11749## the running order or otherwise move them around unless you know exactly 11750## what you are doing... 11751if test -n "$compiler"; then 11752 11753lt_prog_compiler_no_builtin_flag= 11754 11755if test yes = "$GCC"; then 11756 case $cc_basename in 11757 nvcc*) 11758 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 11759 *) 11760 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 11761 esac 11762 11763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 11764printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 11765if test ${lt_cv_prog_compiler_rtti_exceptions+y} 11766then : 11767 printf %s "(cached) " >&6 11768else $as_nop 11769 lt_cv_prog_compiler_rtti_exceptions=no 11770 ac_outfile=conftest.$ac_objext 11771 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11772 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 11773 # Insert the option either (1) after the last *FLAGS variable, or 11774 # (2) before a word containing "conftest.", or (3) at the end. 11775 # Note that $ac_compile itself does not contain backslashes and begins 11776 # with a dollar sign (not a hyphen), so the echo should work correctly. 11777 # The option is referenced via a variable to avoid confusing sed. 11778 lt_compile=`echo "$ac_compile" | $SED \ 11779 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11780 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11781 -e 's:$: $lt_compiler_flag:'` 11782 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11783 (eval "$lt_compile" 2>conftest.err) 11784 ac_status=$? 11785 cat conftest.err >&5 11786 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11787 if (exit $ac_status) && test -s "$ac_outfile"; then 11788 # The compiler can only warn and ignore the option if not recognized 11789 # So say no if there are warnings other than the usual output. 11790 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 11791 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11792 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 11793 lt_cv_prog_compiler_rtti_exceptions=yes 11794 fi 11795 fi 11796 $RM conftest* 11797 11798fi 11799{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 11800printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 11801 11802if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 11803 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 11804else 11805 : 11806fi 11807 11808fi 11809 11810 11811 11812 11813 11814 11815 lt_prog_compiler_wl= 11816lt_prog_compiler_pic= 11817lt_prog_compiler_static= 11818 11819 11820 if test yes = "$GCC"; then 11821 lt_prog_compiler_wl='-Wl,' 11822 lt_prog_compiler_static='-static' 11823 11824 case $host_os in 11825 aix*) 11826 # All AIX code is PIC. 11827 if test ia64 = "$host_cpu"; then 11828 # AIX 5 now supports IA64 processor 11829 lt_prog_compiler_static='-Bstatic' 11830 fi 11831 lt_prog_compiler_pic='-fPIC' 11832 ;; 11833 11834 amigaos*) 11835 case $host_cpu in 11836 powerpc) 11837 # see comment about AmigaOS4 .so support 11838 lt_prog_compiler_pic='-fPIC' 11839 ;; 11840 m68k) 11841 # FIXME: we need at least 68020 code to build shared libraries, but 11842 # adding the '-m68020' flag to GCC prevents building anything better, 11843 # like '-m68040'. 11844 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 11845 ;; 11846 esac 11847 ;; 11848 11849 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 11850 # PIC is the default for these OSes. 11851 ;; 11852 11853 mingw* | cygwin* | pw32* | os2* | cegcc*) 11854 # This hack is so that the source file can tell whether it is being 11855 # built for inclusion in a dll (and should export symbols for example). 11856 # Although the cygwin gcc ignores -fPIC, still need this for old-style 11857 # (--disable-auto-import) libraries 11858 lt_prog_compiler_pic='-DDLL_EXPORT' 11859 case $host_os in 11860 os2*) 11861 lt_prog_compiler_static='$wl-static' 11862 ;; 11863 esac 11864 ;; 11865 11866 darwin* | rhapsody*) 11867 # PIC is the default on this platform 11868 # Common symbols not allowed in MH_DYLIB files 11869 lt_prog_compiler_pic='-fno-common' 11870 ;; 11871 11872 haiku*) 11873 # PIC is the default for Haiku. 11874 # The "-static" flag exists, but is broken. 11875 lt_prog_compiler_static= 11876 ;; 11877 11878 hpux*) 11879 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 11880 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 11881 # sets the default TLS model and affects inlining. 11882 case $host_cpu in 11883 hppa*64*) 11884 # +Z the default 11885 ;; 11886 *) 11887 lt_prog_compiler_pic='-fPIC' 11888 ;; 11889 esac 11890 ;; 11891 11892 interix[3-9]*) 11893 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 11894 # Instead, we relocate shared libraries at runtime. 11895 ;; 11896 11897 msdosdjgpp*) 11898 # Just because we use GCC doesn't mean we suddenly get shared libraries 11899 # on systems that don't support them. 11900 lt_prog_compiler_can_build_shared=no 11901 enable_shared=no 11902 ;; 11903 11904 *nto* | *qnx*) 11905 # QNX uses GNU C++, but need to define -shared option too, otherwise 11906 # it will coredump. 11907 lt_prog_compiler_pic='-fPIC -shared' 11908 ;; 11909 11910 sysv4*MP*) 11911 if test -d /usr/nec; then 11912 lt_prog_compiler_pic=-Kconform_pic 11913 fi 11914 ;; 11915 11916 *) 11917 lt_prog_compiler_pic='-fPIC' 11918 ;; 11919 esac 11920 11921 case $cc_basename in 11922 nvcc*) # Cuda Compiler Driver 2.2 11923 lt_prog_compiler_wl='-Xlinker ' 11924 if test -n "$lt_prog_compiler_pic"; then 11925 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 11926 fi 11927 ;; 11928 esac 11929 else 11930 # PORTME Check for flag to pass linker flags through the system compiler. 11931 case $host_os in 11932 aix*) 11933 lt_prog_compiler_wl='-Wl,' 11934 if test ia64 = "$host_cpu"; then 11935 # AIX 5 now supports IA64 processor 11936 lt_prog_compiler_static='-Bstatic' 11937 else 11938 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 11939 fi 11940 ;; 11941 11942 darwin* | rhapsody*) 11943 # PIC is the default on this platform 11944 # Common symbols not allowed in MH_DYLIB files 11945 lt_prog_compiler_pic='-fno-common' 11946 case $cc_basename in 11947 nagfor*) 11948 # NAG Fortran compiler 11949 lt_prog_compiler_wl='-Wl,-Wl,,' 11950 lt_prog_compiler_pic='-PIC' 11951 lt_prog_compiler_static='-Bstatic' 11952 ;; 11953 esac 11954 ;; 11955 11956 mingw* | cygwin* | pw32* | os2* | cegcc*) 11957 # This hack is so that the source file can tell whether it is being 11958 # built for inclusion in a dll (and should export symbols for example). 11959 lt_prog_compiler_pic='-DDLL_EXPORT' 11960 case $host_os in 11961 os2*) 11962 lt_prog_compiler_static='$wl-static' 11963 ;; 11964 esac 11965 ;; 11966 11967 hpux9* | hpux10* | hpux11*) 11968 lt_prog_compiler_wl='-Wl,' 11969 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11970 # not for PA HP-UX. 11971 case $host_cpu in 11972 hppa*64*|ia64*) 11973 # +Z the default 11974 ;; 11975 *) 11976 lt_prog_compiler_pic='+Z' 11977 ;; 11978 esac 11979 # Is there a better lt_prog_compiler_static that works with the bundled CC? 11980 lt_prog_compiler_static='$wl-a ${wl}archive' 11981 ;; 11982 11983 irix5* | irix6* | nonstopux*) 11984 lt_prog_compiler_wl='-Wl,' 11985 # PIC (with -KPIC) is the default. 11986 lt_prog_compiler_static='-non_shared' 11987 ;; 11988 11989 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11990 case $cc_basename in 11991 # old Intel for x86_64, which still supported -KPIC. 11992 ecc*) 11993 lt_prog_compiler_wl='-Wl,' 11994 lt_prog_compiler_pic='-KPIC' 11995 lt_prog_compiler_static='-static' 11996 ;; 11997 # icc used to be incompatible with GCC. 11998 # ICC 10 doesn't accept -KPIC any more. 11999 icc* | ifort*) 12000 lt_prog_compiler_wl='-Wl,' 12001 lt_prog_compiler_pic='-fPIC' 12002 lt_prog_compiler_static='-static' 12003 ;; 12004 # Lahey Fortran 8.1. 12005 lf95*) 12006 lt_prog_compiler_wl='-Wl,' 12007 lt_prog_compiler_pic='--shared' 12008 lt_prog_compiler_static='--static' 12009 ;; 12010 nagfor*) 12011 # NAG Fortran compiler 12012 lt_prog_compiler_wl='-Wl,-Wl,,' 12013 lt_prog_compiler_pic='-PIC' 12014 lt_prog_compiler_static='-Bstatic' 12015 ;; 12016 tcc*) 12017 # Fabrice Bellard et al's Tiny C Compiler 12018 lt_prog_compiler_wl='-Wl,' 12019 lt_prog_compiler_pic='-fPIC' 12020 lt_prog_compiler_static='-static' 12021 ;; 12022 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 12023 # Portland Group compilers (*not* the Pentium gcc compiler, 12024 # which looks to be a dead project) 12025 lt_prog_compiler_wl='-Wl,' 12026 lt_prog_compiler_pic='-fpic' 12027 lt_prog_compiler_static='-Bstatic' 12028 ;; 12029 ccc*) 12030 lt_prog_compiler_wl='-Wl,' 12031 # All Alpha code is PIC. 12032 lt_prog_compiler_static='-non_shared' 12033 ;; 12034 xl* | bgxl* | bgf* | mpixl*) 12035 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 12036 lt_prog_compiler_wl='-Wl,' 12037 lt_prog_compiler_pic='-qpic' 12038 lt_prog_compiler_static='-qstaticlink' 12039 ;; 12040 *) 12041 case `$CC -V 2>&1 | sed 5q` in 12042 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 12043 # Sun Fortran 8.3 passes all unrecognized flags to the linker 12044 lt_prog_compiler_pic='-KPIC' 12045 lt_prog_compiler_static='-Bstatic' 12046 lt_prog_compiler_wl='' 12047 ;; 12048 *Sun\ F* | *Sun*Fortran*) 12049 lt_prog_compiler_pic='-KPIC' 12050 lt_prog_compiler_static='-Bstatic' 12051 lt_prog_compiler_wl='-Qoption ld ' 12052 ;; 12053 *Sun\ C*) 12054 # Sun C 5.9 12055 lt_prog_compiler_pic='-KPIC' 12056 lt_prog_compiler_static='-Bstatic' 12057 lt_prog_compiler_wl='-Wl,' 12058 ;; 12059 *Intel*\ [CF]*Compiler*) 12060 lt_prog_compiler_wl='-Wl,' 12061 lt_prog_compiler_pic='-fPIC' 12062 lt_prog_compiler_static='-static' 12063 ;; 12064 *Portland\ Group*) 12065 lt_prog_compiler_wl='-Wl,' 12066 lt_prog_compiler_pic='-fpic' 12067 lt_prog_compiler_static='-Bstatic' 12068 ;; 12069 esac 12070 ;; 12071 esac 12072 ;; 12073 12074 newsos6) 12075 lt_prog_compiler_pic='-KPIC' 12076 lt_prog_compiler_static='-Bstatic' 12077 ;; 12078 12079 *nto* | *qnx*) 12080 # QNX uses GNU C++, but need to define -shared option too, otherwise 12081 # it will coredump. 12082 lt_prog_compiler_pic='-fPIC -shared' 12083 ;; 12084 12085 osf3* | osf4* | osf5*) 12086 lt_prog_compiler_wl='-Wl,' 12087 # All OSF/1 code is PIC. 12088 lt_prog_compiler_static='-non_shared' 12089 ;; 12090 12091 rdos*) 12092 lt_prog_compiler_static='-non_shared' 12093 ;; 12094 12095 solaris*) 12096 lt_prog_compiler_pic='-KPIC' 12097 lt_prog_compiler_static='-Bstatic' 12098 case $cc_basename in 12099 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 12100 lt_prog_compiler_wl='-Qoption ld ';; 12101 *) 12102 lt_prog_compiler_wl='-Wl,';; 12103 esac 12104 ;; 12105 12106 sunos4*) 12107 lt_prog_compiler_wl='-Qoption ld ' 12108 lt_prog_compiler_pic='-PIC' 12109 lt_prog_compiler_static='-Bstatic' 12110 ;; 12111 12112 sysv4 | sysv4.2uw2* | sysv4.3*) 12113 lt_prog_compiler_wl='-Wl,' 12114 lt_prog_compiler_pic='-KPIC' 12115 lt_prog_compiler_static='-Bstatic' 12116 ;; 12117 12118 sysv4*MP*) 12119 if test -d /usr/nec; then 12120 lt_prog_compiler_pic='-Kconform_pic' 12121 lt_prog_compiler_static='-Bstatic' 12122 fi 12123 ;; 12124 12125 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12126 lt_prog_compiler_wl='-Wl,' 12127 lt_prog_compiler_pic='-KPIC' 12128 lt_prog_compiler_static='-Bstatic' 12129 ;; 12130 12131 unicos*) 12132 lt_prog_compiler_wl='-Wl,' 12133 lt_prog_compiler_can_build_shared=no 12134 ;; 12135 12136 uts4*) 12137 lt_prog_compiler_pic='-pic' 12138 lt_prog_compiler_static='-Bstatic' 12139 ;; 12140 12141 *) 12142 lt_prog_compiler_can_build_shared=no 12143 ;; 12144 esac 12145 fi 12146 12147case $host_os in 12148 # For platforms that do not support PIC, -DPIC is meaningless: 12149 *djgpp*) 12150 lt_prog_compiler_pic= 12151 ;; 12152 *) 12153 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 12154 ;; 12155esac 12156 12157{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 12158printf %s "checking for $compiler option to produce PIC... " >&6; } 12159if test ${lt_cv_prog_compiler_pic+y} 12160then : 12161 printf %s "(cached) " >&6 12162else $as_nop 12163 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 12164fi 12165{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 12166printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 12167lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 12168 12169# 12170# Check to make sure the PIC flag actually works. 12171# 12172if test -n "$lt_prog_compiler_pic"; then 12173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 12174printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 12175if test ${lt_cv_prog_compiler_pic_works+y} 12176then : 12177 printf %s "(cached) " >&6 12178else $as_nop 12179 lt_cv_prog_compiler_pic_works=no 12180 ac_outfile=conftest.$ac_objext 12181 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12182 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 12183 # Insert the option either (1) after the last *FLAGS variable, or 12184 # (2) before a word containing "conftest.", or (3) at the end. 12185 # Note that $ac_compile itself does not contain backslashes and begins 12186 # with a dollar sign (not a hyphen), so the echo should work correctly. 12187 # The option is referenced via a variable to avoid confusing sed. 12188 lt_compile=`echo "$ac_compile" | $SED \ 12189 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12190 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12191 -e 's:$: $lt_compiler_flag:'` 12192 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12193 (eval "$lt_compile" 2>conftest.err) 12194 ac_status=$? 12195 cat conftest.err >&5 12196 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12197 if (exit $ac_status) && test -s "$ac_outfile"; then 12198 # The compiler can only warn and ignore the option if not recognized 12199 # So say no if there are warnings other than the usual output. 12200 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 12201 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12202 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12203 lt_cv_prog_compiler_pic_works=yes 12204 fi 12205 fi 12206 $RM conftest* 12207 12208fi 12209{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 12210printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 12211 12212if test yes = "$lt_cv_prog_compiler_pic_works"; then 12213 case $lt_prog_compiler_pic in 12214 "" | " "*) ;; 12215 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 12216 esac 12217else 12218 lt_prog_compiler_pic= 12219 lt_prog_compiler_can_build_shared=no 12220fi 12221 12222fi 12223 12224 12225 12226 12227 12228 12229 12230 12231 12232 12233 12234# 12235# Check to make sure the static flag actually works. 12236# 12237wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 12238{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12239printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 12240if test ${lt_cv_prog_compiler_static_works+y} 12241then : 12242 printf %s "(cached) " >&6 12243else $as_nop 12244 lt_cv_prog_compiler_static_works=no 12245 save_LDFLAGS=$LDFLAGS 12246 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12247 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12248 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12249 # The linker can only warn and ignore the option if not recognized 12250 # So say no if there are warnings 12251 if test -s conftest.err; then 12252 # Append any errors to the config.log. 12253 cat conftest.err 1>&5 12254 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 12255 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12256 if diff conftest.exp conftest.er2 >/dev/null; then 12257 lt_cv_prog_compiler_static_works=yes 12258 fi 12259 else 12260 lt_cv_prog_compiler_static_works=yes 12261 fi 12262 fi 12263 $RM -r conftest* 12264 LDFLAGS=$save_LDFLAGS 12265 12266fi 12267{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 12268printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 12269 12270if test yes = "$lt_cv_prog_compiler_static_works"; then 12271 : 12272else 12273 lt_prog_compiler_static= 12274fi 12275 12276 12277 12278 12279 12280 12281 12282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 12283printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 12284if test ${lt_cv_prog_compiler_c_o+y} 12285then : 12286 printf %s "(cached) " >&6 12287else $as_nop 12288 lt_cv_prog_compiler_c_o=no 12289 $RM -r conftest 2>/dev/null 12290 mkdir conftest 12291 cd conftest 12292 mkdir out 12293 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12294 12295 lt_compiler_flag="-o out/conftest2.$ac_objext" 12296 # Insert the option either (1) after the last *FLAGS variable, or 12297 # (2) before a word containing "conftest.", or (3) at the end. 12298 # Note that $ac_compile itself does not contain backslashes and begins 12299 # with a dollar sign (not a hyphen), so the echo should work correctly. 12300 lt_compile=`echo "$ac_compile" | $SED \ 12301 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12302 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12303 -e 's:$: $lt_compiler_flag:'` 12304 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12305 (eval "$lt_compile" 2>out/conftest.err) 12306 ac_status=$? 12307 cat out/conftest.err >&5 12308 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12309 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12310 then 12311 # The compiler can only warn and ignore the option if not recognized 12312 # So say no if there are warnings 12313 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 12314 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12315 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12316 lt_cv_prog_compiler_c_o=yes 12317 fi 12318 fi 12319 chmod u+w . 2>&5 12320 $RM conftest* 12321 # SGI C++ compiler will create directory out/ii_files/ for 12322 # template instantiation 12323 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 12324 $RM out/* && rmdir out 12325 cd .. 12326 $RM -r conftest 12327 $RM conftest* 12328 12329fi 12330{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 12331printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 12332 12333 12334 12335 12336 12337 12338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 12339printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 12340if test ${lt_cv_prog_compiler_c_o+y} 12341then : 12342 printf %s "(cached) " >&6 12343else $as_nop 12344 lt_cv_prog_compiler_c_o=no 12345 $RM -r conftest 2>/dev/null 12346 mkdir conftest 12347 cd conftest 12348 mkdir out 12349 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12350 12351 lt_compiler_flag="-o out/conftest2.$ac_objext" 12352 # Insert the option either (1) after the last *FLAGS variable, or 12353 # (2) before a word containing "conftest.", or (3) at the end. 12354 # Note that $ac_compile itself does not contain backslashes and begins 12355 # with a dollar sign (not a hyphen), so the echo should work correctly. 12356 lt_compile=`echo "$ac_compile" | $SED \ 12357 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12358 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12359 -e 's:$: $lt_compiler_flag:'` 12360 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12361 (eval "$lt_compile" 2>out/conftest.err) 12362 ac_status=$? 12363 cat out/conftest.err >&5 12364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12365 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12366 then 12367 # The compiler can only warn and ignore the option if not recognized 12368 # So say no if there are warnings 12369 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 12370 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12371 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12372 lt_cv_prog_compiler_c_o=yes 12373 fi 12374 fi 12375 chmod u+w . 2>&5 12376 $RM conftest* 12377 # SGI C++ compiler will create directory out/ii_files/ for 12378 # template instantiation 12379 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 12380 $RM out/* && rmdir out 12381 cd .. 12382 $RM -r conftest 12383 $RM conftest* 12384 12385fi 12386{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 12387printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 12388 12389 12390 12391 12392hard_links=nottested 12393if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 12394 # do not overwrite the value of need_locks provided by the user 12395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 12396printf %s "checking if we can lock with hard links... " >&6; } 12397 hard_links=yes 12398 $RM conftest* 12399 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12400 touch conftest.a 12401 ln conftest.a conftest.b 2>&5 || hard_links=no 12402 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 12404printf "%s\n" "$hard_links" >&6; } 12405 if test no = "$hard_links"; then 12406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 12407printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 12408 need_locks=warn 12409 fi 12410else 12411 need_locks=no 12412fi 12413 12414 12415 12416 12417 12418 12419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12420printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 12421 12422 runpath_var= 12423 allow_undefined_flag= 12424 always_export_symbols=no 12425 archive_cmds= 12426 archive_expsym_cmds= 12427 compiler_needs_object=no 12428 enable_shared_with_static_runtimes=no 12429 export_dynamic_flag_spec= 12430 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12431 hardcode_automatic=no 12432 hardcode_direct=no 12433 hardcode_direct_absolute=no 12434 hardcode_libdir_flag_spec= 12435 hardcode_libdir_separator= 12436 hardcode_minus_L=no 12437 hardcode_shlibpath_var=unsupported 12438 inherit_rpath=no 12439 link_all_deplibs=unknown 12440 module_cmds= 12441 module_expsym_cmds= 12442 old_archive_from_new_cmds= 12443 old_archive_from_expsyms_cmds= 12444 thread_safe_flag_spec= 12445 whole_archive_flag_spec= 12446 # include_expsyms should be a list of space-separated symbols to be *always* 12447 # included in the symbol list 12448 include_expsyms= 12449 # exclude_expsyms can be an extended regexp of symbols to exclude 12450 # it will be wrapped by ' (' and ')$', so one must not match beginning or 12451 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 12452 # as well as any symbol that contains 'd'. 12453 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 12454 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 12455 # platforms (ab)use it in PIC code, but their linkers get confused if 12456 # the symbol is explicitly referenced. Since portable code cannot 12457 # rely on this symbol name, it's probably fine to never include it in 12458 # preloaded symbol tables. 12459 # Exclude shared library initialization/finalization symbols. 12460 extract_expsyms_cmds= 12461 12462 case $host_os in 12463 cygwin* | mingw* | pw32* | cegcc*) 12464 # FIXME: the MSVC++ port hasn't been tested in a loooong time 12465 # When not using gcc, we currently assume that we are using 12466 # Microsoft Visual C++. 12467 if test yes != "$GCC"; then 12468 with_gnu_ld=no 12469 fi 12470 ;; 12471 interix*) 12472 # we just hope/assume this is gcc and not c89 (= MSVC++) 12473 with_gnu_ld=yes 12474 ;; 12475 openbsd* | bitrig*) 12476 with_gnu_ld=no 12477 ;; 12478 esac 12479 12480 ld_shlibs=yes 12481 12482 # On some targets, GNU ld is compatible enough with the native linker 12483 # that we're better off using the native interface for both. 12484 lt_use_gnu_ld_interface=no 12485 if test yes = "$with_gnu_ld"; then 12486 case $host_os in 12487 aix*) 12488 # The AIX port of GNU ld has always aspired to compatibility 12489 # with the native linker. However, as the warning in the GNU ld 12490 # block says, versions before 2.19.5* couldn't really create working 12491 # shared libraries, regardless of the interface used. 12492 case `$LD -v 2>&1` in 12493 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 12494 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 12495 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 12496 *) 12497 lt_use_gnu_ld_interface=yes 12498 ;; 12499 esac 12500 ;; 12501 *) 12502 lt_use_gnu_ld_interface=yes 12503 ;; 12504 esac 12505 fi 12506 12507 if test yes = "$lt_use_gnu_ld_interface"; then 12508 # If archive_cmds runs LD, not CC, wlarc should be empty 12509 wlarc='$wl' 12510 12511 # Set some defaults for GNU ld with shared library support. These 12512 # are reset later if shared libraries are not supported. Putting them 12513 # here allows them to be overridden if necessary. 12514 runpath_var=LD_RUN_PATH 12515 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12516 export_dynamic_flag_spec='$wl--export-dynamic' 12517 # ancient GNU ld didn't support --whole-archive et. al. 12518 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 12519 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 12520 else 12521 whole_archive_flag_spec= 12522 fi 12523 supports_anon_versioning=no 12524 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 12525 *GNU\ gold*) supports_anon_versioning=yes ;; 12526 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 12527 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 12528 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 12529 *\ 2.11.*) ;; # other 2.11 versions 12530 *) supports_anon_versioning=yes ;; 12531 esac 12532 12533 # See if GNU ld supports shared libraries. 12534 case $host_os in 12535 aix[3-9]*) 12536 # On AIX/PPC, the GNU linker is very broken 12537 if test ia64 != "$host_cpu"; then 12538 ld_shlibs=no 12539 cat <<_LT_EOF 1>&2 12540 12541*** Warning: the GNU linker, at least up to release 2.19, is reported 12542*** to be unable to reliably create shared libraries on AIX. 12543*** Therefore, libtool is disabling shared libraries support. If you 12544*** really care for shared libraries, you may want to install binutils 12545*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 12546*** You will then need to restart the configuration process. 12547 12548_LT_EOF 12549 fi 12550 ;; 12551 12552 amigaos*) 12553 case $host_cpu in 12554 powerpc) 12555 # see comment about AmigaOS4 .so support 12556 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12557 archive_expsym_cmds='' 12558 ;; 12559 m68k) 12560 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)' 12561 hardcode_libdir_flag_spec='-L$libdir' 12562 hardcode_minus_L=yes 12563 ;; 12564 esac 12565 ;; 12566 12567 beos*) 12568 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12569 allow_undefined_flag=unsupported 12570 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 12571 # support --undefined. This deserves some investigation. FIXME 12572 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12573 else 12574 ld_shlibs=no 12575 fi 12576 ;; 12577 12578 cygwin* | mingw* | pw32* | cegcc*) 12579 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 12580 # as there is no search path for DLLs. 12581 hardcode_libdir_flag_spec='-L$libdir' 12582 export_dynamic_flag_spec='$wl--export-all-symbols' 12583 allow_undefined_flag=unsupported 12584 always_export_symbols=no 12585 enable_shared_with_static_runtimes=yes 12586 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' 12587 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 12588 12589 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 12590 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12591 # If the export-symbols file already is a .def file, use it as 12592 # is; otherwise, prepend EXPORTS... 12593 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 12594 cp $export_symbols $output_objdir/$soname.def; 12595 else 12596 echo EXPORTS > $output_objdir/$soname.def; 12597 cat $export_symbols >> $output_objdir/$soname.def; 12598 fi~ 12599 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12600 else 12601 ld_shlibs=no 12602 fi 12603 ;; 12604 12605 haiku*) 12606 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12607 link_all_deplibs=yes 12608 ;; 12609 12610 os2*) 12611 hardcode_libdir_flag_spec='-L$libdir' 12612 hardcode_minus_L=yes 12613 allow_undefined_flag=unsupported 12614 shrext_cmds=.dll 12615 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 12616 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 12617 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 12618 $ECHO EXPORTS >> $output_objdir/$libname.def~ 12619 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 12620 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 12621 emximp -o $lib $output_objdir/$libname.def' 12622 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 12623 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 12624 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 12625 $ECHO EXPORTS >> $output_objdir/$libname.def~ 12626 prefix_cmds="$SED"~ 12627 if test EXPORTS = "`$SED 1q $export_symbols`"; then 12628 prefix_cmds="$prefix_cmds -e 1d"; 12629 fi~ 12630 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 12631 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 12632 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 12633 emximp -o $lib $output_objdir/$libname.def' 12634 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 12635 enable_shared_with_static_runtimes=yes 12636 ;; 12637 12638 interix[3-9]*) 12639 hardcode_direct=no 12640 hardcode_shlibpath_var=no 12641 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 12642 export_dynamic_flag_spec='$wl-E' 12643 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 12644 # Instead, shared libraries are loaded at an image base (0x10000000 by 12645 # default) and relocated if they conflict, which is a slow very memory 12646 # consuming and fragmenting process. To avoid this, we pick a random, 12647 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 12648 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 12649 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 12650 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' 12651 ;; 12652 12653 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 12654 tmp_diet=no 12655 if test linux-dietlibc = "$host_os"; then 12656 case $cc_basename in 12657 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 12658 esac 12659 fi 12660 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 12661 && test no = "$tmp_diet" 12662 then 12663 tmp_addflag=' $pic_flag' 12664 tmp_sharedflag='-shared' 12665 case $cc_basename,$host_cpu in 12666 pgcc*) # Portland Group C compiler 12667 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' 12668 tmp_addflag=' $pic_flag' 12669 ;; 12670 pgf77* | pgf90* | pgf95* | pgfortran*) 12671 # Portland Group f77 and f90 compilers 12672 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' 12673 tmp_addflag=' $pic_flag -Mnomain' ;; 12674 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 12675 tmp_addflag=' -i_dynamic' ;; 12676 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 12677 tmp_addflag=' -i_dynamic -nofor_main' ;; 12678 ifc* | ifort*) # Intel Fortran compiler 12679 tmp_addflag=' -nofor_main' ;; 12680 lf95*) # Lahey Fortran 8.1 12681 whole_archive_flag_spec= 12682 tmp_sharedflag='--shared' ;; 12683 nagfor*) # NAGFOR 5.3 12684 tmp_sharedflag='-Wl,-shared' ;; 12685 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 12686 tmp_sharedflag='-qmkshrobj' 12687 tmp_addflag= ;; 12688 nvcc*) # Cuda Compiler Driver 2.2 12689 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' 12690 compiler_needs_object=yes 12691 ;; 12692 esac 12693 case `$CC -V 2>&1 | sed 5q` in 12694 *Sun\ C*) # Sun C 5.9 12695 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' 12696 compiler_needs_object=yes 12697 tmp_sharedflag='-G' ;; 12698 *Sun\ F*) # Sun Fortran 8.3 12699 tmp_sharedflag='-G' ;; 12700 esac 12701 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12702 12703 if test yes = "$supports_anon_versioning"; then 12704 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 12705 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 12706 echo "local: *; };" >> $output_objdir/$libname.ver~ 12707 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 12708 fi 12709 12710 case $cc_basename in 12711 tcc*) 12712 export_dynamic_flag_spec='-rdynamic' 12713 ;; 12714 xlf* | bgf* | bgxlf* | mpixlf*) 12715 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 12716 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 12717 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12718 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 12719 if test yes = "$supports_anon_versioning"; then 12720 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 12721 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 12722 echo "local: *; };" >> $output_objdir/$libname.ver~ 12723 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 12724 fi 12725 ;; 12726 esac 12727 else 12728 ld_shlibs=no 12729 fi 12730 ;; 12731 12732 netbsd*) 12733 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12734 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 12735 wlarc= 12736 else 12737 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12738 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 12739 fi 12740 ;; 12741 12742 solaris*) 12743 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 12744 ld_shlibs=no 12745 cat <<_LT_EOF 1>&2 12746 12747*** Warning: The releases 2.8.* of the GNU linker cannot reliably 12748*** create shared libraries on Solaris systems. Therefore, libtool 12749*** is disabling shared libraries support. We urge you to upgrade GNU 12750*** binutils to release 2.9.1 or newer. Another option is to modify 12751*** your PATH or compiler configuration so that the native linker is 12752*** used, and then restart. 12753 12754_LT_EOF 12755 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12756 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12757 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 12758 else 12759 ld_shlibs=no 12760 fi 12761 ;; 12762 12763 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 12764 case `$LD -v 2>&1` in 12765 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 12766 ld_shlibs=no 12767 cat <<_LT_EOF 1>&2 12768 12769*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 12770*** reliably create shared libraries on SCO systems. Therefore, libtool 12771*** is disabling shared libraries support. We urge you to upgrade GNU 12772*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 12773*** your PATH or compiler configuration so that the native linker is 12774*** used, and then restart. 12775 12776_LT_EOF 12777 ;; 12778 *) 12779 # For security reasons, it is highly recommended that you always 12780 # use absolute paths for naming shared libraries, and exclude the 12781 # DT_RUNPATH tag from executables and libraries. But doing so 12782 # requires that you compile everything twice, which is a pain. 12783 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12784 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12785 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12786 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 12787 else 12788 ld_shlibs=no 12789 fi 12790 ;; 12791 esac 12792 ;; 12793 12794 sunos4*) 12795 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 12796 wlarc= 12797 hardcode_direct=yes 12798 hardcode_shlibpath_var=no 12799 ;; 12800 12801 *) 12802 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12803 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12804 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 12805 else 12806 ld_shlibs=no 12807 fi 12808 ;; 12809 esac 12810 12811 if test no = "$ld_shlibs"; then 12812 runpath_var= 12813 hardcode_libdir_flag_spec= 12814 export_dynamic_flag_spec= 12815 whole_archive_flag_spec= 12816 fi 12817 else 12818 # PORTME fill in a description of your system's linker (not GNU ld) 12819 case $host_os in 12820 aix3*) 12821 allow_undefined_flag=unsupported 12822 always_export_symbols=yes 12823 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' 12824 # Note: this linker hardcodes the directories in LIBPATH if there 12825 # are no directories specified by -L. 12826 hardcode_minus_L=yes 12827 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 12828 # Neither direct hardcoding nor static linking is supported with a 12829 # broken collect2. 12830 hardcode_direct=unsupported 12831 fi 12832 ;; 12833 12834 aix[4-9]*) 12835 if test ia64 = "$host_cpu"; then 12836 # On IA64, the linker does run time linking by default, so we don't 12837 # have to do anything special. 12838 aix_use_runtimelinking=no 12839 exp_sym_flag='-Bexport' 12840 no_entry_flag= 12841 else 12842 # If we're using GNU nm, then we don't want the "-C" option. 12843 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 12844 # Without the "-l" option, or with the "-B" option, AIX nm treats 12845 # weak defined symbols like other global defined symbols, whereas 12846 # GNU nm marks them as "W". 12847 # While the 'weak' keyword is ignored in the Export File, we need 12848 # it in the Import File for the 'aix-soname' feature, so we have 12849 # to replace the "-B" option with "-P" for AIX nm. 12850 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 12851 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' 12852 else 12853 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' 12854 fi 12855 aix_use_runtimelinking=no 12856 12857 # Test if we are trying to use run time linking or normal 12858 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 12859 # have runtime linking enabled, and use it for executables. 12860 # For shared libraries, we enable/disable runtime linking 12861 # depending on the kind of the shared library created - 12862 # when "with_aix_soname,aix_use_runtimelinking" is: 12863 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 12864 # "aix,yes" lib.so shared, rtl:yes, for executables 12865 # lib.a static archive 12866 # "both,no" lib.so.V(shr.o) shared, rtl:yes 12867 # lib.a(lib.so.V) shared, rtl:no, for executables 12868 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 12869 # lib.a(lib.so.V) shared, rtl:no 12870 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 12871 # lib.a static archive 12872 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 12873 for ld_flag in $LDFLAGS; do 12874 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 12875 aix_use_runtimelinking=yes 12876 break 12877 fi 12878 done 12879 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 12880 # With aix-soname=svr4, we create the lib.so.V shared archives only, 12881 # so we don't have lib.a shared libs to link our executables. 12882 # We have to force runtime linking in this case. 12883 aix_use_runtimelinking=yes 12884 LDFLAGS="$LDFLAGS -Wl,-brtl" 12885 fi 12886 ;; 12887 esac 12888 12889 exp_sym_flag='-bexport' 12890 no_entry_flag='-bnoentry' 12891 fi 12892 12893 # When large executables or shared objects are built, AIX ld can 12894 # have problems creating the table of contents. If linking a library 12895 # or program results in "error TOC overflow" add -mminimal-toc to 12896 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 12897 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 12898 12899 archive_cmds='' 12900 hardcode_direct=yes 12901 hardcode_direct_absolute=yes 12902 hardcode_libdir_separator=':' 12903 link_all_deplibs=yes 12904 file_list_spec='$wl-f,' 12905 case $with_aix_soname,$aix_use_runtimelinking in 12906 aix,*) ;; # traditional, no import file 12907 svr4,* | *,yes) # use import file 12908 # The Import File defines what to hardcode. 12909 hardcode_direct=no 12910 hardcode_direct_absolute=no 12911 ;; 12912 esac 12913 12914 if test yes = "$GCC"; then 12915 case $host_os in aix4.[012]|aix4.[012].*) 12916 # We only want to do this on AIX 4.2 and lower, the check 12917 # below for broken collect2 doesn't work under 4.3+ 12918 collect2name=`$CC -print-prog-name=collect2` 12919 if test -f "$collect2name" && 12920 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 12921 then 12922 # We have reworked collect2 12923 : 12924 else 12925 # We have old collect2 12926 hardcode_direct=unsupported 12927 # It fails to find uninstalled libraries when the uninstalled 12928 # path is not listed in the libpath. Setting hardcode_minus_L 12929 # to unsupported forces relinking 12930 hardcode_minus_L=yes 12931 hardcode_libdir_flag_spec='-L$libdir' 12932 hardcode_libdir_separator= 12933 fi 12934 ;; 12935 esac 12936 shared_flag='-shared' 12937 if test yes = "$aix_use_runtimelinking"; then 12938 shared_flag="$shared_flag "'$wl-G' 12939 fi 12940 # Need to ensure runtime linking is disabled for the traditional 12941 # shared library, or the linker may eventually find shared libraries 12942 # /with/ Import File - we do not want to mix them. 12943 shared_flag_aix='-shared' 12944 shared_flag_svr4='-shared $wl-G' 12945 else 12946 # not using gcc 12947 if test ia64 = "$host_cpu"; then 12948 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12949 # chokes on -Wl,-G. The following line is correct: 12950 shared_flag='-G' 12951 else 12952 if test yes = "$aix_use_runtimelinking"; then 12953 shared_flag='$wl-G' 12954 else 12955 shared_flag='$wl-bM:SRE' 12956 fi 12957 shared_flag_aix='$wl-bM:SRE' 12958 shared_flag_svr4='$wl-G' 12959 fi 12960 fi 12961 12962 export_dynamic_flag_spec='$wl-bexpall' 12963 # It seems that -bexpall does not export symbols beginning with 12964 # underscore (_), so it is better to generate a list of symbols to export. 12965 always_export_symbols=yes 12966 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 12967 # Warning - without using the other runtime loading flags (-brtl), 12968 # -berok will link without error, but may produce a broken library. 12969 allow_undefined_flag='-berok' 12970 # Determine the default libpath from the value encoded in an 12971 # empty executable. 12972 if test set = "${lt_cv_aix_libpath+set}"; then 12973 aix_libpath=$lt_cv_aix_libpath 12974else 12975 if test ${lt_cv_aix_libpath_+y} 12976then : 12977 printf %s "(cached) " >&6 12978else $as_nop 12979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12980/* end confdefs.h. */ 12981 12982int 12983main (void) 12984{ 12985 12986 ; 12987 return 0; 12988} 12989_ACEOF 12990if ac_fn_c_try_link "$LINENO" 12991then : 12992 12993 lt_aix_libpath_sed=' 12994 /Import File Strings/,/^$/ { 12995 /^0/ { 12996 s/^0 *\([^ ]*\) *$/\1/ 12997 p 12998 } 12999 }' 13000 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13001 # Check for a 64-bit object if we didn't find anything. 13002 if test -z "$lt_cv_aix_libpath_"; then 13003 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13004 fi 13005fi 13006rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13007 conftest$ac_exeext conftest.$ac_ext 13008 if test -z "$lt_cv_aix_libpath_"; then 13009 lt_cv_aix_libpath_=/usr/lib:/lib 13010 fi 13011 13012fi 13013 13014 aix_libpath=$lt_cv_aix_libpath_ 13015fi 13016 13017 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 13018 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 13019 else 13020 if test ia64 = "$host_cpu"; then 13021 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 13022 allow_undefined_flag="-z nodefs" 13023 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" 13024 else 13025 # Determine the default libpath from the value encoded in an 13026 # empty executable. 13027 if test set = "${lt_cv_aix_libpath+set}"; then 13028 aix_libpath=$lt_cv_aix_libpath 13029else 13030 if test ${lt_cv_aix_libpath_+y} 13031then : 13032 printf %s "(cached) " >&6 13033else $as_nop 13034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13035/* end confdefs.h. */ 13036 13037int 13038main (void) 13039{ 13040 13041 ; 13042 return 0; 13043} 13044_ACEOF 13045if ac_fn_c_try_link "$LINENO" 13046then : 13047 13048 lt_aix_libpath_sed=' 13049 /Import File Strings/,/^$/ { 13050 /^0/ { 13051 s/^0 *\([^ ]*\) *$/\1/ 13052 p 13053 } 13054 }' 13055 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13056 # Check for a 64-bit object if we didn't find anything. 13057 if test -z "$lt_cv_aix_libpath_"; then 13058 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13059 fi 13060fi 13061rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13062 conftest$ac_exeext conftest.$ac_ext 13063 if test -z "$lt_cv_aix_libpath_"; then 13064 lt_cv_aix_libpath_=/usr/lib:/lib 13065 fi 13066 13067fi 13068 13069 aix_libpath=$lt_cv_aix_libpath_ 13070fi 13071 13072 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 13073 # Warning - without using the other run time loading flags, 13074 # -berok will link without error, but may produce a broken library. 13075 no_undefined_flag=' $wl-bernotok' 13076 allow_undefined_flag=' $wl-berok' 13077 if test yes = "$with_gnu_ld"; then 13078 # We only use this code for GNU lds that support --whole-archive. 13079 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 13080 else 13081 # Exported symbols can be pulled into shared objects from archives 13082 whole_archive_flag_spec='$convenience' 13083 fi 13084 archive_cmds_need_lc=yes 13085 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 13086 # -brtl affects multiple linker settings, -berok does not and is overridden later 13087 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 13088 if test svr4 != "$with_aix_soname"; then 13089 # This is similar to how AIX traditionally builds its shared libraries. 13090 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' 13091 fi 13092 if test aix != "$with_aix_soname"; then 13093 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' 13094 else 13095 # used by -dlpreopen to get the symbols 13096 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 13097 fi 13098 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 13099 fi 13100 fi 13101 ;; 13102 13103 amigaos*) 13104 case $host_cpu in 13105 powerpc) 13106 # see comment about AmigaOS4 .so support 13107 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13108 archive_expsym_cmds='' 13109 ;; 13110 m68k) 13111 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)' 13112 hardcode_libdir_flag_spec='-L$libdir' 13113 hardcode_minus_L=yes 13114 ;; 13115 esac 13116 ;; 13117 13118 bsdi[45]*) 13119 export_dynamic_flag_spec=-rdynamic 13120 ;; 13121 13122 cygwin* | mingw* | pw32* | cegcc*) 13123 # When not using gcc, we currently assume that we are using 13124 # Microsoft Visual C++. 13125 # hardcode_libdir_flag_spec is actually meaningless, as there is 13126 # no search path for DLLs. 13127 case $cc_basename in 13128 cl*) 13129 # Native MSVC 13130 hardcode_libdir_flag_spec=' ' 13131 allow_undefined_flag=unsupported 13132 always_export_symbols=yes 13133 file_list_spec='@' 13134 # Tell ltmain to make .lib files, not .a files. 13135 libext=lib 13136 # Tell ltmain to make .dll files, not .so files. 13137 shrext_cmds=.dll 13138 # FIXME: Setting linknames here is a bad hack. 13139 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 13140 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 13141 cp "$export_symbols" "$output_objdir/$soname.def"; 13142 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 13143 else 13144 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 13145 fi~ 13146 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 13147 linknames=' 13148 # The linker will not automatically build a static lib if we build a DLL. 13149 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 13150 enable_shared_with_static_runtimes=yes 13151 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 13152 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 13153 # Don't use ranlib 13154 old_postinstall_cmds='chmod 644 $oldlib' 13155 postlink_cmds='lt_outputfile="@OUTPUT@"~ 13156 lt_tool_outputfile="@TOOL_OUTPUT@"~ 13157 case $lt_outputfile in 13158 *.exe|*.EXE) ;; 13159 *) 13160 lt_outputfile=$lt_outputfile.exe 13161 lt_tool_outputfile=$lt_tool_outputfile.exe 13162 ;; 13163 esac~ 13164 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 13165 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 13166 $RM "$lt_outputfile.manifest"; 13167 fi' 13168 ;; 13169 *) 13170 # Assume MSVC wrapper 13171 hardcode_libdir_flag_spec=' ' 13172 allow_undefined_flag=unsupported 13173 # Tell ltmain to make .lib files, not .a files. 13174 libext=lib 13175 # Tell ltmain to make .dll files, not .so files. 13176 shrext_cmds=.dll 13177 # FIXME: Setting linknames here is a bad hack. 13178 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 13179 # The linker will automatically build a .lib file if we build a DLL. 13180 old_archive_from_new_cmds='true' 13181 # FIXME: Should let the user specify the lib program. 13182 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 13183 enable_shared_with_static_runtimes=yes 13184 ;; 13185 esac 13186 ;; 13187 13188 darwin* | rhapsody*) 13189 13190 13191 archive_cmds_need_lc=no 13192 hardcode_direct=no 13193 hardcode_automatic=yes 13194 hardcode_shlibpath_var=unsupported 13195 if test yes = "$lt_cv_ld_force_load"; then 13196 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\"`' 13197 13198 else 13199 whole_archive_flag_spec='' 13200 fi 13201 link_all_deplibs=yes 13202 allow_undefined_flag=$_lt_dar_allow_undefined 13203 case $cc_basename in 13204 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 13205 *) _lt_dar_can_shared=$GCC ;; 13206 esac 13207 if test yes = "$_lt_dar_can_shared"; then 13208 output_verbose_link_cmd=func_echo_all 13209 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 13210 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 13211 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" 13212 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" 13213 13214 else 13215 ld_shlibs=no 13216 fi 13217 13218 ;; 13219 13220 dgux*) 13221 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13222 hardcode_libdir_flag_spec='-L$libdir' 13223 hardcode_shlibpath_var=no 13224 ;; 13225 13226 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 13227 # support. Future versions do this automatically, but an explicit c++rt0.o 13228 # does not break anything, and helps significantly (at the cost of a little 13229 # extra space). 13230 freebsd2.2*) 13231 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 13232 hardcode_libdir_flag_spec='-R$libdir' 13233 hardcode_direct=yes 13234 hardcode_shlibpath_var=no 13235 ;; 13236 13237 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 13238 freebsd2.*) 13239 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13240 hardcode_direct=yes 13241 hardcode_minus_L=yes 13242 hardcode_shlibpath_var=no 13243 ;; 13244 13245 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 13246 freebsd* | dragonfly*) 13247 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13248 hardcode_libdir_flag_spec='-R$libdir' 13249 hardcode_direct=yes 13250 hardcode_shlibpath_var=no 13251 ;; 13252 13253 hpux9*) 13254 if test yes = "$GCC"; then 13255 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' 13256 else 13257 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' 13258 fi 13259 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 13260 hardcode_libdir_separator=: 13261 hardcode_direct=yes 13262 13263 # hardcode_minus_L: Not really in the search PATH, 13264 # but as the default location of the library. 13265 hardcode_minus_L=yes 13266 export_dynamic_flag_spec='$wl-E' 13267 ;; 13268 13269 hpux10*) 13270 if test yes,no = "$GCC,$with_gnu_ld"; then 13271 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13272 else 13273 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 13274 fi 13275 if test no = "$with_gnu_ld"; then 13276 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 13277 hardcode_libdir_separator=: 13278 hardcode_direct=yes 13279 hardcode_direct_absolute=yes 13280 export_dynamic_flag_spec='$wl-E' 13281 # hardcode_minus_L: Not really in the search PATH, 13282 # but as the default location of the library. 13283 hardcode_minus_L=yes 13284 fi 13285 ;; 13286 13287 hpux11*) 13288 if test yes,no = "$GCC,$with_gnu_ld"; then 13289 case $host_cpu in 13290 hppa*64*) 13291 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 13292 ;; 13293 ia64*) 13294 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 13295 ;; 13296 *) 13297 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13298 ;; 13299 esac 13300 else 13301 case $host_cpu in 13302 hppa*64*) 13303 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 13304 ;; 13305 ia64*) 13306 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 13307 ;; 13308 *) 13309 13310 # Older versions of the 11.00 compiler do not understand -b yet 13311 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 13312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 13313printf %s "checking if $CC understands -b... " >&6; } 13314if test ${lt_cv_prog_compiler__b+y} 13315then : 13316 printf %s "(cached) " >&6 13317else $as_nop 13318 lt_cv_prog_compiler__b=no 13319 save_LDFLAGS=$LDFLAGS 13320 LDFLAGS="$LDFLAGS -b" 13321 echo "$lt_simple_link_test_code" > conftest.$ac_ext 13322 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13323 # The linker can only warn and ignore the option if not recognized 13324 # So say no if there are warnings 13325 if test -s conftest.err; then 13326 # Append any errors to the config.log. 13327 cat conftest.err 1>&5 13328 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 13329 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13330 if diff conftest.exp conftest.er2 >/dev/null; then 13331 lt_cv_prog_compiler__b=yes 13332 fi 13333 else 13334 lt_cv_prog_compiler__b=yes 13335 fi 13336 fi 13337 $RM -r conftest* 13338 LDFLAGS=$save_LDFLAGS 13339 13340fi 13341{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 13342printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 13343 13344if test yes = "$lt_cv_prog_compiler__b"; then 13345 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13346else 13347 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 13348fi 13349 13350 ;; 13351 esac 13352 fi 13353 if test no = "$with_gnu_ld"; then 13354 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 13355 hardcode_libdir_separator=: 13356 13357 case $host_cpu in 13358 hppa*64*|ia64*) 13359 hardcode_direct=no 13360 hardcode_shlibpath_var=no 13361 ;; 13362 *) 13363 hardcode_direct=yes 13364 hardcode_direct_absolute=yes 13365 export_dynamic_flag_spec='$wl-E' 13366 13367 # hardcode_minus_L: Not really in the search PATH, 13368 # but as the default location of the library. 13369 hardcode_minus_L=yes 13370 ;; 13371 esac 13372 fi 13373 ;; 13374 13375 irix5* | irix6* | nonstopux*) 13376 if test yes = "$GCC"; then 13377 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' 13378 # Try to use the -exported_symbol ld option, if it does not 13379 # work, assume that -exports_file does not work either and 13380 # implicitly export all symbols. 13381 # This should be the same for all languages, so no per-tag cache variable. 13382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 13383printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 13384if test ${lt_cv_irix_exported_symbol+y} 13385then : 13386 printf %s "(cached) " >&6 13387else $as_nop 13388 save_LDFLAGS=$LDFLAGS 13389 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 13390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13391/* end confdefs.h. */ 13392int foo (void) { return 0; } 13393_ACEOF 13394if ac_fn_c_try_link "$LINENO" 13395then : 13396 lt_cv_irix_exported_symbol=yes 13397else $as_nop 13398 lt_cv_irix_exported_symbol=no 13399fi 13400rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13401 conftest$ac_exeext conftest.$ac_ext 13402 LDFLAGS=$save_LDFLAGS 13403fi 13404{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 13405printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 13406 if test yes = "$lt_cv_irix_exported_symbol"; then 13407 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' 13408 fi 13409 else 13410 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' 13411 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' 13412 fi 13413 archive_cmds_need_lc='no' 13414 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13415 hardcode_libdir_separator=: 13416 inherit_rpath=yes 13417 link_all_deplibs=yes 13418 ;; 13419 13420 linux*) 13421 case $cc_basename in 13422 tcc*) 13423 # Fabrice Bellard et al's Tiny C Compiler 13424 ld_shlibs=yes 13425 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13426 ;; 13427 esac 13428 ;; 13429 13430 netbsd*) 13431 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13432 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 13433 else 13434 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 13435 fi 13436 hardcode_libdir_flag_spec='-R$libdir' 13437 hardcode_direct=yes 13438 hardcode_shlibpath_var=no 13439 ;; 13440 13441 newsos6) 13442 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13443 hardcode_direct=yes 13444 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13445 hardcode_libdir_separator=: 13446 hardcode_shlibpath_var=no 13447 ;; 13448 13449 *nto* | *qnx*) 13450 ;; 13451 13452 openbsd* | bitrig*) 13453 if test -f /usr/libexec/ld.so; then 13454 hardcode_direct=yes 13455 hardcode_shlibpath_var=no 13456 hardcode_direct_absolute=yes 13457 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 13458 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13459 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 13460 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 13461 export_dynamic_flag_spec='$wl-E' 13462 else 13463 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13464 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 13465 fi 13466 else 13467 ld_shlibs=no 13468 fi 13469 ;; 13470 13471 os2*) 13472 hardcode_libdir_flag_spec='-L$libdir' 13473 hardcode_minus_L=yes 13474 allow_undefined_flag=unsupported 13475 shrext_cmds=.dll 13476 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13477 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13478 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13479 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13480 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 13481 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13482 emximp -o $lib $output_objdir/$libname.def' 13483 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13484 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13485 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13486 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13487 prefix_cmds="$SED"~ 13488 if test EXPORTS = "`$SED 1q $export_symbols`"; then 13489 prefix_cmds="$prefix_cmds -e 1d"; 13490 fi~ 13491 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 13492 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 13493 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13494 emximp -o $lib $output_objdir/$libname.def' 13495 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 13496 enable_shared_with_static_runtimes=yes 13497 ;; 13498 13499 osf3*) 13500 if test yes = "$GCC"; then 13501 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 13502 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' 13503 else 13504 allow_undefined_flag=' -expect_unresolved \*' 13505 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' 13506 fi 13507 archive_cmds_need_lc='no' 13508 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13509 hardcode_libdir_separator=: 13510 ;; 13511 13512 osf4* | osf5*) # as osf3* with the addition of -msym flag 13513 if test yes = "$GCC"; then 13514 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 13515 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' 13516 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13517 else 13518 allow_undefined_flag=' -expect_unresolved \*' 13519 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' 13520 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~ 13521 $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' 13522 13523 # Both c and cxx compiler support -rpath directly 13524 hardcode_libdir_flag_spec='-rpath $libdir' 13525 fi 13526 archive_cmds_need_lc='no' 13527 hardcode_libdir_separator=: 13528 ;; 13529 13530 solaris*) 13531 no_undefined_flag=' -z defs' 13532 if test yes = "$GCC"; then 13533 wlarc='$wl' 13534 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 13535 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13536 $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' 13537 else 13538 case `$CC -V 2>&1` in 13539 *"Compilers 5.0"*) 13540 wlarc='' 13541 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 13542 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13543 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 13544 ;; 13545 *) 13546 wlarc='$wl' 13547 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 13548 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13549 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 13550 ;; 13551 esac 13552 fi 13553 hardcode_libdir_flag_spec='-R$libdir' 13554 hardcode_shlibpath_var=no 13555 case $host_os in 13556 solaris2.[0-5] | solaris2.[0-5].*) ;; 13557 *) 13558 # The compiler driver will combine and reorder linker options, 13559 # but understands '-z linker_flag'. GCC discards it without '$wl', 13560 # but is careful enough not to reorder. 13561 # Supported since Solaris 2.6 (maybe 2.5.1?) 13562 if test yes = "$GCC"; then 13563 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 13564 else 13565 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 13566 fi 13567 ;; 13568 esac 13569 link_all_deplibs=yes 13570 ;; 13571 13572 sunos4*) 13573 if test sequent = "$host_vendor"; then 13574 # Use $CC to link under sequent, because it throws in some extra .o 13575 # files that make .init and .fini sections work. 13576 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 13577 else 13578 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 13579 fi 13580 hardcode_libdir_flag_spec='-L$libdir' 13581 hardcode_direct=yes 13582 hardcode_minus_L=yes 13583 hardcode_shlibpath_var=no 13584 ;; 13585 13586 sysv4) 13587 case $host_vendor in 13588 sni) 13589 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13590 hardcode_direct=yes # is this really true??? 13591 ;; 13592 siemens) 13593 ## LD is ld it makes a PLAMLIB 13594 ## CC just makes a GrossModule. 13595 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 13596 reload_cmds='$CC -r -o $output$reload_objs' 13597 hardcode_direct=no 13598 ;; 13599 motorola) 13600 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13601 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 13602 ;; 13603 esac 13604 runpath_var='LD_RUN_PATH' 13605 hardcode_shlibpath_var=no 13606 ;; 13607 13608 sysv4.3*) 13609 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13610 hardcode_shlibpath_var=no 13611 export_dynamic_flag_spec='-Bexport' 13612 ;; 13613 13614 sysv4*MP*) 13615 if test -d /usr/nec; then 13616 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13617 hardcode_shlibpath_var=no 13618 runpath_var=LD_RUN_PATH 13619 hardcode_runpath_var=yes 13620 ld_shlibs=yes 13621 fi 13622 ;; 13623 13624 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 13625 no_undefined_flag='$wl-z,text' 13626 archive_cmds_need_lc=no 13627 hardcode_shlibpath_var=no 13628 runpath_var='LD_RUN_PATH' 13629 13630 if test yes = "$GCC"; then 13631 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13632 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13633 else 13634 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13635 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13636 fi 13637 ;; 13638 13639 sysv5* | sco3.2v5* | sco5v6*) 13640 # Note: We CANNOT use -z defs as we might desire, because we do not 13641 # link with -lc, and that would cause any symbols used from libc to 13642 # always be unresolved, which means just about no library would 13643 # ever link correctly. If we're not using GNU ld we use -z text 13644 # though, which does catch some bad symbols but isn't as heavy-handed 13645 # as -z defs. 13646 no_undefined_flag='$wl-z,text' 13647 allow_undefined_flag='$wl-z,nodefs' 13648 archive_cmds_need_lc=no 13649 hardcode_shlibpath_var=no 13650 hardcode_libdir_flag_spec='$wl-R,$libdir' 13651 hardcode_libdir_separator=':' 13652 link_all_deplibs=yes 13653 export_dynamic_flag_spec='$wl-Bexport' 13654 runpath_var='LD_RUN_PATH' 13655 13656 if test yes = "$GCC"; then 13657 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13658 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13659 else 13660 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13661 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13662 fi 13663 ;; 13664 13665 uts4*) 13666 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13667 hardcode_libdir_flag_spec='-L$libdir' 13668 hardcode_shlibpath_var=no 13669 ;; 13670 13671 *) 13672 ld_shlibs=no 13673 ;; 13674 esac 13675 13676 if test sni = "$host_vendor"; then 13677 case $host in 13678 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 13679 export_dynamic_flag_spec='$wl-Blargedynsym' 13680 ;; 13681 esac 13682 fi 13683 fi 13684 13685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 13686printf "%s\n" "$ld_shlibs" >&6; } 13687test no = "$ld_shlibs" && can_build_shared=no 13688 13689with_gnu_ld=$with_gnu_ld 13690 13691 13692 13693 13694 13695 13696 13697 13698 13699 13700 13701 13702 13703 13704 13705# 13706# Do we need to explicitly link libc? 13707# 13708case "x$archive_cmds_need_lc" in 13709x|xyes) 13710 # Assume -lc should be added 13711 archive_cmds_need_lc=yes 13712 13713 if test yes,yes = "$GCC,$enable_shared"; then 13714 case $archive_cmds in 13715 *'~'*) 13716 # FIXME: we may have to deal with multi-command sequences. 13717 ;; 13718 '$CC '*) 13719 # Test whether the compiler implicitly links with -lc since on some 13720 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13721 # to ld, don't add -lc before -lgcc. 13722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 13723printf %s "checking whether -lc should be explicitly linked in... " >&6; } 13724if test ${lt_cv_archive_cmds_need_lc+y} 13725then : 13726 printf %s "(cached) " >&6 13727else $as_nop 13728 $RM conftest* 13729 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13730 13731 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13732 (eval $ac_compile) 2>&5 13733 ac_status=$? 13734 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13735 test $ac_status = 0; } 2>conftest.err; then 13736 soname=conftest 13737 lib=conftest 13738 libobjs=conftest.$ac_objext 13739 deplibs= 13740 wl=$lt_prog_compiler_wl 13741 pic_flag=$lt_prog_compiler_pic 13742 compiler_flags=-v 13743 linker_flags=-v 13744 verstring= 13745 output_objdir=. 13746 libname=conftest 13747 lt_save_allow_undefined_flag=$allow_undefined_flag 13748 allow_undefined_flag= 13749 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 13750 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 13751 ac_status=$? 13752 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13753 test $ac_status = 0; } 13754 then 13755 lt_cv_archive_cmds_need_lc=no 13756 else 13757 lt_cv_archive_cmds_need_lc=yes 13758 fi 13759 allow_undefined_flag=$lt_save_allow_undefined_flag 13760 else 13761 cat conftest.err 1>&5 13762 fi 13763 $RM conftest* 13764 13765fi 13766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 13767printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 13768 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 13769 ;; 13770 esac 13771 fi 13772 ;; 13773esac 13774 13775 13776 13777 13778 13779 13780 13781 13782 13783 13784 13785 13786 13787 13788 13789 13790 13791 13792 13793 13794 13795 13796 13797 13798 13799 13800 13801 13802 13803 13804 13805 13806 13807 13808 13809 13810 13811 13812 13813 13814 13815 13816 13817 13818 13819 13820 13821 13822 13823 13824 13825 13826 13827 13828 13829 13830 13831 13832 13833 13834 13835 13836 13837 13838 13839 13840 13841 13842 13843 13844 13845 13846 13847 13848 13849 13850 13851 13852 13853 13854 13855 13856 13857 13858 13859 13860 13861 13862 13863 13864 13865 13866 13867 13868 13869 13870 13871 13872 13873 13874 13875 13876 13877 13878 13879 13880 13881 13882 13883 13884 13885 13886 13887 13888 13889 13890 13891 13892 13893 13894 13895 13896 13897 13898 13899 13900 13901 13902 13903 13904 13905 13906 13907 13908 13909 13910 13911 13912 13913 13914 13915 13916 13917 13918 13919 13920 13921 13922 13923 13924 13925 13926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 13927printf %s "checking dynamic linker characteristics... " >&6; } 13928 13929if test yes = "$GCC"; then 13930 case $host_os in 13931 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 13932 *) lt_awk_arg='/^libraries:/' ;; 13933 esac 13934 case $host_os in 13935 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 13936 *) lt_sed_strip_eq='s|=/|/|g' ;; 13937 esac 13938 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 13939 case $lt_search_path_spec in 13940 *\;*) 13941 # if the path contains ";" then we assume it to be the separator 13942 # otherwise default to the standard path separator (i.e. ":") - it is 13943 # assumed that no part of a normal pathname contains ";" but that should 13944 # okay in the real world where ";" in dirpaths is itself problematic. 13945 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 13946 ;; 13947 *) 13948 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 13949 ;; 13950 esac 13951 # Ok, now we have the path, separated by spaces, we can step through it 13952 # and add multilib dir if necessary... 13953 lt_tmp_lt_search_path_spec= 13954 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 13955 # ...but if some path component already ends with the multilib dir we assume 13956 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 13957 case "$lt_multi_os_dir; $lt_search_path_spec " in 13958 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 13959 lt_multi_os_dir= 13960 ;; 13961 esac 13962 for lt_sys_path in $lt_search_path_spec; do 13963 if test -d "$lt_sys_path$lt_multi_os_dir"; then 13964 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 13965 elif test -n "$lt_multi_os_dir"; then 13966 test -d "$lt_sys_path" && \ 13967 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 13968 fi 13969 done 13970 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 13971BEGIN {RS = " "; FS = "/|\n";} { 13972 lt_foo = ""; 13973 lt_count = 0; 13974 for (lt_i = NF; lt_i > 0; lt_i--) { 13975 if ($lt_i != "" && $lt_i != ".") { 13976 if ($lt_i == "..") { 13977 lt_count++; 13978 } else { 13979 if (lt_count == 0) { 13980 lt_foo = "/" $lt_i lt_foo; 13981 } else { 13982 lt_count--; 13983 } 13984 } 13985 } 13986 } 13987 if (lt_foo != "") { lt_freq[lt_foo]++; } 13988 if (lt_freq[lt_foo] == 1) { print lt_foo; } 13989}'` 13990 # AWK program above erroneously prepends '/' to C:/dos/paths 13991 # for these hosts. 13992 case $host_os in 13993 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 13994 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 13995 esac 13996 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 13997else 13998 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 13999fi 14000library_names_spec= 14001libname_spec='lib$name' 14002soname_spec= 14003shrext_cmds=.so 14004postinstall_cmds= 14005postuninstall_cmds= 14006finish_cmds= 14007finish_eval= 14008shlibpath_var= 14009shlibpath_overrides_runpath=unknown 14010version_type=none 14011dynamic_linker="$host_os ld.so" 14012sys_lib_dlsearch_path_spec="/lib /usr/lib" 14013need_lib_prefix=unknown 14014hardcode_into_libs=no 14015 14016# when you set need_version to no, make sure it does not cause -set_version 14017# flags to be left without arguments 14018need_version=unknown 14019 14020 14021 14022case $host_os in 14023aix3*) 14024 version_type=linux # correct to gnu/linux during the next big refactor 14025 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 14026 shlibpath_var=LIBPATH 14027 14028 # AIX 3 has no versioning support, so we append a major version to the name. 14029 soname_spec='$libname$release$shared_ext$major' 14030 ;; 14031 14032aix[4-9]*) 14033 version_type=linux # correct to gnu/linux during the next big refactor 14034 need_lib_prefix=no 14035 need_version=no 14036 hardcode_into_libs=yes 14037 if test ia64 = "$host_cpu"; then 14038 # AIX 5 supports IA64 14039 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 14040 shlibpath_var=LD_LIBRARY_PATH 14041 else 14042 # With GCC up to 2.95.x, collect2 would create an import file 14043 # for dependence libraries. The import file would start with 14044 # the line '#! .'. This would cause the generated library to 14045 # depend on '.', always an invalid library. This was fixed in 14046 # development snapshots of GCC prior to 3.0. 14047 case $host_os in 14048 aix4 | aix4.[01] | aix4.[01].*) 14049 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14050 echo ' yes ' 14051 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 14052 : 14053 else 14054 can_build_shared=no 14055 fi 14056 ;; 14057 esac 14058 # Using Import Files as archive members, it is possible to support 14059 # filename-based versioning of shared library archives on AIX. While 14060 # this would work for both with and without runtime linking, it will 14061 # prevent static linking of such archives. So we do filename-based 14062 # shared library versioning with .so extension only, which is used 14063 # when both runtime linking and shared linking is enabled. 14064 # Unfortunately, runtime linking may impact performance, so we do 14065 # not want this to be the default eventually. Also, we use the 14066 # versioned .so libs for executables only if there is the -brtl 14067 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 14068 # To allow for filename-based versioning support, we need to create 14069 # libNAME.so.V as an archive file, containing: 14070 # *) an Import File, referring to the versioned filename of the 14071 # archive as well as the shared archive member, telling the 14072 # bitwidth (32 or 64) of that shared object, and providing the 14073 # list of exported symbols of that shared object, eventually 14074 # decorated with the 'weak' keyword 14075 # *) the shared object with the F_LOADONLY flag set, to really avoid 14076 # it being seen by the linker. 14077 # At run time we better use the real file rather than another symlink, 14078 # but for link time we create the symlink libNAME.so -> libNAME.so.V 14079 14080 case $with_aix_soname,$aix_use_runtimelinking in 14081 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 14082 # soname into executable. Probably we can add versioning support to 14083 # collect2, so additional links can be useful in future. 14084 aix,yes) # traditional libtool 14085 dynamic_linker='AIX unversionable lib.so' 14086 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14087 # instead of lib<name>.a to let people know that these are not 14088 # typical AIX shared libraries. 14089 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14090 ;; 14091 aix,no) # traditional AIX only 14092 dynamic_linker='AIX lib.a(lib.so.V)' 14093 # We preserve .a as extension for shared libraries through AIX4.2 14094 # and later when we are not doing run time linking. 14095 library_names_spec='$libname$release.a $libname.a' 14096 soname_spec='$libname$release$shared_ext$major' 14097 ;; 14098 svr4,*) # full svr4 only 14099 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 14100 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 14101 # We do not specify a path in Import Files, so LIBPATH fires. 14102 shlibpath_overrides_runpath=yes 14103 ;; 14104 *,yes) # both, prefer svr4 14105 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 14106 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 14107 # unpreferred sharedlib libNAME.a needs extra handling 14108 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"' 14109 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"' 14110 # We do not specify a path in Import Files, so LIBPATH fires. 14111 shlibpath_overrides_runpath=yes 14112 ;; 14113 *,no) # both, prefer aix 14114 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 14115 library_names_spec='$libname$release.a $libname.a' 14116 soname_spec='$libname$release$shared_ext$major' 14117 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 14118 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)' 14119 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"' 14120 ;; 14121 esac 14122 shlibpath_var=LIBPATH 14123 fi 14124 ;; 14125 14126amigaos*) 14127 case $host_cpu in 14128 powerpc) 14129 # Since July 2007 AmigaOS4 officially supports .so libraries. 14130 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 14131 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14132 ;; 14133 m68k) 14134 library_names_spec='$libname.ixlibrary $libname.a' 14135 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14136 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' 14137 ;; 14138 esac 14139 ;; 14140 14141beos*) 14142 library_names_spec='$libname$shared_ext' 14143 dynamic_linker="$host_os ld.so" 14144 shlibpath_var=LIBRARY_PATH 14145 ;; 14146 14147bsdi[45]*) 14148 version_type=linux # correct to gnu/linux during the next big refactor 14149 need_version=no 14150 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14151 soname_spec='$libname$release$shared_ext$major' 14152 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14153 shlibpath_var=LD_LIBRARY_PATH 14154 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14155 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14156 # the default ld.so.conf also contains /usr/contrib/lib and 14157 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14158 # libtool to hard-code these into programs 14159 ;; 14160 14161cygwin* | mingw* | pw32* | cegcc*) 14162 version_type=windows 14163 shrext_cmds=.dll 14164 need_version=no 14165 need_lib_prefix=no 14166 14167 case $GCC,$cc_basename in 14168 yes,*) 14169 # gcc 14170 library_names_spec='$libname.dll.a' 14171 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14172 postinstall_cmds='base_file=`basename \$file`~ 14173 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 14174 dldir=$destdir/`dirname \$dlpath`~ 14175 test -d \$dldir || mkdir -p \$dldir~ 14176 $install_prog $dir/$dlname \$dldir/$dlname~ 14177 chmod a+x \$dldir/$dlname~ 14178 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 14179 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 14180 fi' 14181 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14182 dlpath=$dir/\$dldll~ 14183 $RM \$dlpath' 14184 shlibpath_overrides_runpath=yes 14185 14186 case $host_os in 14187 cygwin*) 14188 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14189 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 14190 14191 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 14192 ;; 14193 mingw* | cegcc*) 14194 # MinGW DLLs use traditional 'lib' prefix 14195 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 14196 ;; 14197 pw32*) 14198 # pw32 DLLs use 'pw' prefix rather than 'lib' 14199 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 14200 ;; 14201 esac 14202 dynamic_linker='Win32 ld.exe' 14203 ;; 14204 14205 *,cl*) 14206 # Native MSVC 14207 libname_spec='$name' 14208 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 14209 library_names_spec='$libname.dll.lib' 14210 14211 case $build_os in 14212 mingw*) 14213 sys_lib_search_path_spec= 14214 lt_save_ifs=$IFS 14215 IFS=';' 14216 for lt_path in $LIB 14217 do 14218 IFS=$lt_save_ifs 14219 # Let DOS variable expansion print the short 8.3 style file name. 14220 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 14221 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 14222 done 14223 IFS=$lt_save_ifs 14224 # Convert to MSYS style. 14225 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 14226 ;; 14227 cygwin*) 14228 # Convert to unix form, then to dos form, then back to unix form 14229 # but this time dos style (no spaces!) so that the unix form looks 14230 # like /cygdrive/c/PROGRA~1:/cygdr... 14231 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 14232 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 14233 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14234 ;; 14235 *) 14236 sys_lib_search_path_spec=$LIB 14237 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 14238 # It is most probably a Windows format PATH. 14239 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14240 else 14241 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14242 fi 14243 # FIXME: find the short name or the path components, as spaces are 14244 # common. (e.g. "Program Files" -> "PROGRA~1") 14245 ;; 14246 esac 14247 14248 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14249 postinstall_cmds='base_file=`basename \$file`~ 14250 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 14251 dldir=$destdir/`dirname \$dlpath`~ 14252 test -d \$dldir || mkdir -p \$dldir~ 14253 $install_prog $dir/$dlname \$dldir/$dlname' 14254 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14255 dlpath=$dir/\$dldll~ 14256 $RM \$dlpath' 14257 shlibpath_overrides_runpath=yes 14258 dynamic_linker='Win32 link.exe' 14259 ;; 14260 14261 *) 14262 # Assume MSVC wrapper 14263 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 14264 dynamic_linker='Win32 ld.exe' 14265 ;; 14266 esac 14267 # FIXME: first we should search . and the directory the executable is in 14268 shlibpath_var=PATH 14269 ;; 14270 14271darwin* | rhapsody*) 14272 dynamic_linker="$host_os dyld" 14273 version_type=darwin 14274 need_lib_prefix=no 14275 need_version=no 14276 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 14277 soname_spec='$libname$release$major$shared_ext' 14278 shlibpath_overrides_runpath=yes 14279 shlibpath_var=DYLD_LIBRARY_PATH 14280 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 14281 14282 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 14283 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14284 ;; 14285 14286dgux*) 14287 version_type=linux # correct to gnu/linux during the next big refactor 14288 need_lib_prefix=no 14289 need_version=no 14290 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14291 soname_spec='$libname$release$shared_ext$major' 14292 shlibpath_var=LD_LIBRARY_PATH 14293 ;; 14294 14295freebsd* | dragonfly*) 14296 # DragonFly does not have aout. When/if they implement a new 14297 # versioning mechanism, adjust this. 14298 if test -x /usr/bin/objformat; then 14299 objformat=`/usr/bin/objformat` 14300 else 14301 case $host_os in 14302 freebsd[23].*) objformat=aout ;; 14303 *) objformat=elf ;; 14304 esac 14305 fi 14306 version_type=freebsd-$objformat 14307 case $version_type in 14308 freebsd-elf*) 14309 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14310 soname_spec='$libname$release$shared_ext$major' 14311 need_version=no 14312 need_lib_prefix=no 14313 ;; 14314 freebsd-*) 14315 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 14316 need_version=yes 14317 ;; 14318 esac 14319 shlibpath_var=LD_LIBRARY_PATH 14320 case $host_os in 14321 freebsd2.*) 14322 shlibpath_overrides_runpath=yes 14323 ;; 14324 freebsd3.[01]* | freebsdelf3.[01]*) 14325 shlibpath_overrides_runpath=yes 14326 hardcode_into_libs=yes 14327 ;; 14328 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 14329 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 14330 shlibpath_overrides_runpath=no 14331 hardcode_into_libs=yes 14332 ;; 14333 *) # from 4.6 on, and DragonFly 14334 shlibpath_overrides_runpath=yes 14335 hardcode_into_libs=yes 14336 ;; 14337 esac 14338 ;; 14339 14340haiku*) 14341 version_type=linux # correct to gnu/linux during the next big refactor 14342 need_lib_prefix=no 14343 need_version=no 14344 dynamic_linker="$host_os runtime_loader" 14345 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14346 soname_spec='$libname$release$shared_ext$major' 14347 shlibpath_var=LIBRARY_PATH 14348 shlibpath_overrides_runpath=no 14349 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 14350 hardcode_into_libs=yes 14351 ;; 14352 14353hpux9* | hpux10* | hpux11*) 14354 # Give a soname corresponding to the major version so that dld.sl refuses to 14355 # link against other versions. 14356 version_type=sunos 14357 need_lib_prefix=no 14358 need_version=no 14359 case $host_cpu in 14360 ia64*) 14361 shrext_cmds='.so' 14362 hardcode_into_libs=yes 14363 dynamic_linker="$host_os dld.so" 14364 shlibpath_var=LD_LIBRARY_PATH 14365 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14366 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14367 soname_spec='$libname$release$shared_ext$major' 14368 if test 32 = "$HPUX_IA64_MODE"; then 14369 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14370 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 14371 else 14372 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14373 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 14374 fi 14375 ;; 14376 hppa*64*) 14377 shrext_cmds='.sl' 14378 hardcode_into_libs=yes 14379 dynamic_linker="$host_os dld.sl" 14380 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14381 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14382 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14383 soname_spec='$libname$release$shared_ext$major' 14384 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14385 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14386 ;; 14387 *) 14388 shrext_cmds='.sl' 14389 dynamic_linker="$host_os dld.sl" 14390 shlibpath_var=SHLIB_PATH 14391 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14392 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14393 soname_spec='$libname$release$shared_ext$major' 14394 ;; 14395 esac 14396 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 14397 postinstall_cmds='chmod 555 $lib' 14398 # or fails outright, so override atomically: 14399 install_override_mode=555 14400 ;; 14401 14402interix[3-9]*) 14403 version_type=linux # correct to gnu/linux during the next big refactor 14404 need_lib_prefix=no 14405 need_version=no 14406 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14407 soname_spec='$libname$release$shared_ext$major' 14408 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 14409 shlibpath_var=LD_LIBRARY_PATH 14410 shlibpath_overrides_runpath=no 14411 hardcode_into_libs=yes 14412 ;; 14413 14414irix5* | irix6* | nonstopux*) 14415 case $host_os in 14416 nonstopux*) version_type=nonstopux ;; 14417 *) 14418 if test yes = "$lt_cv_prog_gnu_ld"; then 14419 version_type=linux # correct to gnu/linux during the next big refactor 14420 else 14421 version_type=irix 14422 fi ;; 14423 esac 14424 need_lib_prefix=no 14425 need_version=no 14426 soname_spec='$libname$release$shared_ext$major' 14427 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 14428 case $host_os in 14429 irix5* | nonstopux*) 14430 libsuff= shlibsuff= 14431 ;; 14432 *) 14433 case $LD in # libtool.m4 will add one of these switches to LD 14434 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14435 libsuff= shlibsuff= libmagic=32-bit;; 14436 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14437 libsuff=32 shlibsuff=N32 libmagic=N32;; 14438 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14439 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14440 *) libsuff= shlibsuff= libmagic=never-match;; 14441 esac 14442 ;; 14443 esac 14444 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14445 shlibpath_overrides_runpath=no 14446 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 14447 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 14448 hardcode_into_libs=yes 14449 ;; 14450 14451# No shared lib support for Linux oldld, aout, or coff. 14452linux*oldld* | linux*aout* | linux*coff*) 14453 dynamic_linker=no 14454 ;; 14455 14456linux*android*) 14457 version_type=none # Android doesn't support versioned libraries. 14458 need_lib_prefix=no 14459 need_version=no 14460 library_names_spec='$libname$release$shared_ext' 14461 soname_spec='$libname$release$shared_ext' 14462 finish_cmds= 14463 shlibpath_var=LD_LIBRARY_PATH 14464 shlibpath_overrides_runpath=yes 14465 14466 # This implies no fast_install, which is unacceptable. 14467 # Some rework will be needed to allow for fast_install 14468 # before this can be enabled. 14469 hardcode_into_libs=yes 14470 14471 dynamic_linker='Android linker' 14472 # Don't embed -rpath directories since the linker doesn't support them. 14473 hardcode_libdir_flag_spec='-L$libdir' 14474 ;; 14475 14476# This must be glibc/ELF. 14477linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14478 version_type=linux # correct to gnu/linux during the next big refactor 14479 need_lib_prefix=no 14480 need_version=no 14481 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14482 soname_spec='$libname$release$shared_ext$major' 14483 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14484 shlibpath_var=LD_LIBRARY_PATH 14485 shlibpath_overrides_runpath=no 14486 14487 # Some binutils ld are patched to set DT_RUNPATH 14488 if test ${lt_cv_shlibpath_overrides_runpath+y} 14489then : 14490 printf %s "(cached) " >&6 14491else $as_nop 14492 lt_cv_shlibpath_overrides_runpath=no 14493 save_LDFLAGS=$LDFLAGS 14494 save_libdir=$libdir 14495 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 14496 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 14497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14498/* end confdefs.h. */ 14499 14500int 14501main (void) 14502{ 14503 14504 ; 14505 return 0; 14506} 14507_ACEOF 14508if ac_fn_c_try_link "$LINENO" 14509then : 14510 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 14511then : 14512 lt_cv_shlibpath_overrides_runpath=yes 14513fi 14514fi 14515rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14516 conftest$ac_exeext conftest.$ac_ext 14517 LDFLAGS=$save_LDFLAGS 14518 libdir=$save_libdir 14519 14520fi 14521 14522 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 14523 14524 # This implies no fast_install, which is unacceptable. 14525 # Some rework will be needed to allow for fast_install 14526 # before this can be enabled. 14527 hardcode_into_libs=yes 14528 14529 # Ideally, we could use ldconfig to report *all* directores which are 14530 # searched for libraries, however this is still not possible. Aside from not 14531 # being certain /sbin/ldconfig is available, command 14532 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 14533 # even though it is searched at run-time. Try to do the best guess by 14534 # appending ld.so.conf contents (and includes) to the search path. 14535 if test -f /etc/ld.so.conf; then 14536 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' ' '` 14537 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 14538 fi 14539 14540 # We used to test for /lib/ld.so.1 and disable shared libraries on 14541 # powerpc, because MkLinux only supported shared libraries with the 14542 # GNU dynamic linker. Since this was broken with cross compilers, 14543 # most powerpc-linux boxes support dynamic linking these days and 14544 # people can always --disable-shared, the test was removed, and we 14545 # assume the GNU/Linux dynamic linker is in use. 14546 dynamic_linker='GNU/Linux ld.so' 14547 ;; 14548 14549netbsd*) 14550 version_type=sunos 14551 need_lib_prefix=no 14552 need_version=no 14553 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14554 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 14555 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14556 dynamic_linker='NetBSD (a.out) ld.so' 14557 else 14558 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14559 soname_spec='$libname$release$shared_ext$major' 14560 dynamic_linker='NetBSD ld.elf_so' 14561 fi 14562 shlibpath_var=LD_LIBRARY_PATH 14563 shlibpath_overrides_runpath=yes 14564 hardcode_into_libs=yes 14565 ;; 14566 14567newsos6) 14568 version_type=linux # correct to gnu/linux during the next big refactor 14569 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14570 shlibpath_var=LD_LIBRARY_PATH 14571 shlibpath_overrides_runpath=yes 14572 ;; 14573 14574*nto* | *qnx*) 14575 version_type=qnx 14576 need_lib_prefix=no 14577 need_version=no 14578 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14579 soname_spec='$libname$release$shared_ext$major' 14580 shlibpath_var=LD_LIBRARY_PATH 14581 shlibpath_overrides_runpath=no 14582 hardcode_into_libs=yes 14583 dynamic_linker='ldqnx.so' 14584 ;; 14585 14586openbsd* | bitrig*) 14587 version_type=sunos 14588 sys_lib_dlsearch_path_spec=/usr/lib 14589 need_lib_prefix=no 14590 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 14591 need_version=no 14592 else 14593 need_version=yes 14594 fi 14595 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 14596 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14597 shlibpath_var=LD_LIBRARY_PATH 14598 shlibpath_overrides_runpath=yes 14599 ;; 14600 14601os2*) 14602 libname_spec='$name' 14603 version_type=windows 14604 shrext_cmds=.dll 14605 need_version=no 14606 need_lib_prefix=no 14607 # OS/2 can only load a DLL with a base name of 8 characters or less. 14608 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 14609 v=$($ECHO $release$versuffix | tr -d .-); 14610 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 14611 $ECHO $n$v`$shared_ext' 14612 library_names_spec='${libname}_dll.$libext' 14613 dynamic_linker='OS/2 ld.exe' 14614 shlibpath_var=BEGINLIBPATH 14615 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 14616 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14617 postinstall_cmds='base_file=`basename \$file`~ 14618 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 14619 dldir=$destdir/`dirname \$dlpath`~ 14620 test -d \$dldir || mkdir -p \$dldir~ 14621 $install_prog $dir/$dlname \$dldir/$dlname~ 14622 chmod a+x \$dldir/$dlname~ 14623 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 14624 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 14625 fi' 14626 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 14627 dlpath=$dir/\$dldll~ 14628 $RM \$dlpath' 14629 ;; 14630 14631osf3* | osf4* | osf5*) 14632 version_type=osf 14633 need_lib_prefix=no 14634 need_version=no 14635 soname_spec='$libname$release$shared_ext$major' 14636 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14637 shlibpath_var=LD_LIBRARY_PATH 14638 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14639 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14640 ;; 14641 14642rdos*) 14643 dynamic_linker=no 14644 ;; 14645 14646solaris*) 14647 version_type=linux # correct to gnu/linux during the next big refactor 14648 need_lib_prefix=no 14649 need_version=no 14650 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14651 soname_spec='$libname$release$shared_ext$major' 14652 shlibpath_var=LD_LIBRARY_PATH 14653 shlibpath_overrides_runpath=yes 14654 hardcode_into_libs=yes 14655 # ldd complains unless libraries are executable 14656 postinstall_cmds='chmod +x $lib' 14657 ;; 14658 14659sunos4*) 14660 version_type=sunos 14661 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 14662 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14663 shlibpath_var=LD_LIBRARY_PATH 14664 shlibpath_overrides_runpath=yes 14665 if test yes = "$with_gnu_ld"; then 14666 need_lib_prefix=no 14667 fi 14668 need_version=yes 14669 ;; 14670 14671sysv4 | sysv4.3*) 14672 version_type=linux # correct to gnu/linux during the next big refactor 14673 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14674 soname_spec='$libname$release$shared_ext$major' 14675 shlibpath_var=LD_LIBRARY_PATH 14676 case $host_vendor in 14677 sni) 14678 shlibpath_overrides_runpath=no 14679 need_lib_prefix=no 14680 runpath_var=LD_RUN_PATH 14681 ;; 14682 siemens) 14683 need_lib_prefix=no 14684 ;; 14685 motorola) 14686 need_lib_prefix=no 14687 need_version=no 14688 shlibpath_overrides_runpath=no 14689 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14690 ;; 14691 esac 14692 ;; 14693 14694sysv4*MP*) 14695 if test -d /usr/nec; then 14696 version_type=linux # correct to gnu/linux during the next big refactor 14697 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 14698 soname_spec='$libname$shared_ext.$major' 14699 shlibpath_var=LD_LIBRARY_PATH 14700 fi 14701 ;; 14702 14703sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 14704 version_type=sco 14705 need_lib_prefix=no 14706 need_version=no 14707 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 14708 soname_spec='$libname$release$shared_ext$major' 14709 shlibpath_var=LD_LIBRARY_PATH 14710 shlibpath_overrides_runpath=yes 14711 hardcode_into_libs=yes 14712 if test yes = "$with_gnu_ld"; then 14713 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 14714 else 14715 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 14716 case $host_os in 14717 sco3.2v5*) 14718 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 14719 ;; 14720 esac 14721 fi 14722 sys_lib_dlsearch_path_spec='/usr/lib' 14723 ;; 14724 14725tpf*) 14726 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 14727 version_type=linux # correct to gnu/linux during the next big refactor 14728 need_lib_prefix=no 14729 need_version=no 14730 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14731 shlibpath_var=LD_LIBRARY_PATH 14732 shlibpath_overrides_runpath=no 14733 hardcode_into_libs=yes 14734 ;; 14735 14736uts4*) 14737 version_type=linux # correct to gnu/linux during the next big refactor 14738 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14739 soname_spec='$libname$release$shared_ext$major' 14740 shlibpath_var=LD_LIBRARY_PATH 14741 ;; 14742 14743*) 14744 dynamic_linker=no 14745 ;; 14746esac 14747{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 14748printf "%s\n" "$dynamic_linker" >&6; } 14749test no = "$dynamic_linker" && can_build_shared=no 14750 14751variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14752if test yes = "$GCC"; then 14753 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14754fi 14755 14756if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 14757 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 14758fi 14759 14760if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 14761 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 14762fi 14763 14764# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 14765configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 14766 14767# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 14768func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 14769 14770# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 14771configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 14772 14773 14774 14775 14776 14777 14778 14779 14780 14781 14782 14783 14784 14785 14786 14787 14788 14789 14790 14791 14792 14793 14794 14795 14796 14797 14798 14799 14800 14801 14802 14803 14804 14805 14806 14807 14808 14809 14810 14811 14812 14813 14814 14815 14816 14817 14818 14819 14820 14821 14822 14823 14824 14825 14826 14827 14828 14829 14830 14831 14832 14833 14834 14835 14836 14837 14838 14839 14840 14841 14842 14843 14844 14845 14846 14847 14848 14849 14850 14851 14852 14853 14854 14855 14856 14857 14858 14859 14860 14861 14862 14863 14864 14865 14866 14867 14868 14869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 14870printf %s "checking how to hardcode library paths into programs... " >&6; } 14871hardcode_action= 14872if test -n "$hardcode_libdir_flag_spec" || 14873 test -n "$runpath_var" || 14874 test yes = "$hardcode_automatic"; then 14875 14876 # We can hardcode non-existent directories. 14877 if test no != "$hardcode_direct" && 14878 # If the only mechanism to avoid hardcoding is shlibpath_var, we 14879 # have to relink, otherwise we might link with an installed library 14880 # when we should be linking with a yet-to-be-installed one 14881 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 14882 test no != "$hardcode_minus_L"; then 14883 # Linking always hardcodes the temporary library directory. 14884 hardcode_action=relink 14885 else 14886 # We can link without hardcoding, and we can hardcode nonexisting dirs. 14887 hardcode_action=immediate 14888 fi 14889else 14890 # We cannot hardcode anything, or else we can only hardcode existing 14891 # directories. 14892 hardcode_action=unsupported 14893fi 14894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 14895printf "%s\n" "$hardcode_action" >&6; } 14896 14897if test relink = "$hardcode_action" || 14898 test yes = "$inherit_rpath"; then 14899 # Fast installation is not supported 14900 enable_fast_install=no 14901elif test yes = "$shlibpath_overrides_runpath" || 14902 test no = "$enable_shared"; then 14903 # Fast installation is not necessary 14904 enable_fast_install=needless 14905fi 14906 14907 14908 14909 14910 14911 14912 if test yes != "$enable_dlopen"; then 14913 enable_dlopen=unknown 14914 enable_dlopen_self=unknown 14915 enable_dlopen_self_static=unknown 14916else 14917 lt_cv_dlopen=no 14918 lt_cv_dlopen_libs= 14919 14920 case $host_os in 14921 beos*) 14922 lt_cv_dlopen=load_add_on 14923 lt_cv_dlopen_libs= 14924 lt_cv_dlopen_self=yes 14925 ;; 14926 14927 mingw* | pw32* | cegcc*) 14928 lt_cv_dlopen=LoadLibrary 14929 lt_cv_dlopen_libs= 14930 ;; 14931 14932 cygwin*) 14933 lt_cv_dlopen=dlopen 14934 lt_cv_dlopen_libs= 14935 ;; 14936 14937 darwin*) 14938 # if libdl is installed we need to link against it 14939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 14940printf %s "checking for dlopen in -ldl... " >&6; } 14941if test ${ac_cv_lib_dl_dlopen+y} 14942then : 14943 printf %s "(cached) " >&6 14944else $as_nop 14945 ac_check_lib_save_LIBS=$LIBS 14946LIBS="-ldl $LIBS" 14947cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14948/* end confdefs.h. */ 14949 14950/* Override any GCC internal prototype to avoid an error. 14951 Use char because int might match the return type of a GCC 14952 builtin and then its argument prototype would still apply. */ 14953char dlopen (); 14954int 14955main (void) 14956{ 14957return dlopen (); 14958 ; 14959 return 0; 14960} 14961_ACEOF 14962if ac_fn_c_try_link "$LINENO" 14963then : 14964 ac_cv_lib_dl_dlopen=yes 14965else $as_nop 14966 ac_cv_lib_dl_dlopen=no 14967fi 14968rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14969 conftest$ac_exeext conftest.$ac_ext 14970LIBS=$ac_check_lib_save_LIBS 14971fi 14972{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 14973printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 14974if test "x$ac_cv_lib_dl_dlopen" = xyes 14975then : 14976 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 14977else $as_nop 14978 14979 lt_cv_dlopen=dyld 14980 lt_cv_dlopen_libs= 14981 lt_cv_dlopen_self=yes 14982 14983fi 14984 14985 ;; 14986 14987 tpf*) 14988 # Don't try to run any link tests for TPF. We know it's impossible 14989 # because TPF is a cross-compiler, and we know how we open DSOs. 14990 lt_cv_dlopen=dlopen 14991 lt_cv_dlopen_libs= 14992 lt_cv_dlopen_self=no 14993 ;; 14994 14995 *) 14996 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 14997if test "x$ac_cv_func_shl_load" = xyes 14998then : 14999 lt_cv_dlopen=shl_load 15000else $as_nop 15001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 15002printf %s "checking for shl_load in -ldld... " >&6; } 15003if test ${ac_cv_lib_dld_shl_load+y} 15004then : 15005 printf %s "(cached) " >&6 15006else $as_nop 15007 ac_check_lib_save_LIBS=$LIBS 15008LIBS="-ldld $LIBS" 15009cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15010/* end confdefs.h. */ 15011 15012/* Override any GCC internal prototype to avoid an error. 15013 Use char because int might match the return type of a GCC 15014 builtin and then its argument prototype would still apply. */ 15015char shl_load (); 15016int 15017main (void) 15018{ 15019return shl_load (); 15020 ; 15021 return 0; 15022} 15023_ACEOF 15024if ac_fn_c_try_link "$LINENO" 15025then : 15026 ac_cv_lib_dld_shl_load=yes 15027else $as_nop 15028 ac_cv_lib_dld_shl_load=no 15029fi 15030rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15031 conftest$ac_exeext conftest.$ac_ext 15032LIBS=$ac_check_lib_save_LIBS 15033fi 15034{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 15035printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 15036if test "x$ac_cv_lib_dld_shl_load" = xyes 15037then : 15038 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 15039else $as_nop 15040 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 15041if test "x$ac_cv_func_dlopen" = xyes 15042then : 15043 lt_cv_dlopen=dlopen 15044else $as_nop 15045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 15046printf %s "checking for dlopen in -ldl... " >&6; } 15047if test ${ac_cv_lib_dl_dlopen+y} 15048then : 15049 printf %s "(cached) " >&6 15050else $as_nop 15051 ac_check_lib_save_LIBS=$LIBS 15052LIBS="-ldl $LIBS" 15053cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15054/* end confdefs.h. */ 15055 15056/* Override any GCC internal prototype to avoid an error. 15057 Use char because int might match the return type of a GCC 15058 builtin and then its argument prototype would still apply. */ 15059char dlopen (); 15060int 15061main (void) 15062{ 15063return dlopen (); 15064 ; 15065 return 0; 15066} 15067_ACEOF 15068if ac_fn_c_try_link "$LINENO" 15069then : 15070 ac_cv_lib_dl_dlopen=yes 15071else $as_nop 15072 ac_cv_lib_dl_dlopen=no 15073fi 15074rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15075 conftest$ac_exeext conftest.$ac_ext 15076LIBS=$ac_check_lib_save_LIBS 15077fi 15078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 15079printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 15080if test "x$ac_cv_lib_dl_dlopen" = xyes 15081then : 15082 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 15083else $as_nop 15084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 15085printf %s "checking for dlopen in -lsvld... " >&6; } 15086if test ${ac_cv_lib_svld_dlopen+y} 15087then : 15088 printf %s "(cached) " >&6 15089else $as_nop 15090 ac_check_lib_save_LIBS=$LIBS 15091LIBS="-lsvld $LIBS" 15092cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15093/* end confdefs.h. */ 15094 15095/* Override any GCC internal prototype to avoid an error. 15096 Use char because int might match the return type of a GCC 15097 builtin and then its argument prototype would still apply. */ 15098char dlopen (); 15099int 15100main (void) 15101{ 15102return dlopen (); 15103 ; 15104 return 0; 15105} 15106_ACEOF 15107if ac_fn_c_try_link "$LINENO" 15108then : 15109 ac_cv_lib_svld_dlopen=yes 15110else $as_nop 15111 ac_cv_lib_svld_dlopen=no 15112fi 15113rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15114 conftest$ac_exeext conftest.$ac_ext 15115LIBS=$ac_check_lib_save_LIBS 15116fi 15117{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 15118printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 15119if test "x$ac_cv_lib_svld_dlopen" = xyes 15120then : 15121 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 15122else $as_nop 15123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 15124printf %s "checking for dld_link in -ldld... " >&6; } 15125if test ${ac_cv_lib_dld_dld_link+y} 15126then : 15127 printf %s "(cached) " >&6 15128else $as_nop 15129 ac_check_lib_save_LIBS=$LIBS 15130LIBS="-ldld $LIBS" 15131cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15132/* end confdefs.h. */ 15133 15134/* Override any GCC internal prototype to avoid an error. 15135 Use char because int might match the return type of a GCC 15136 builtin and then its argument prototype would still apply. */ 15137char dld_link (); 15138int 15139main (void) 15140{ 15141return dld_link (); 15142 ; 15143 return 0; 15144} 15145_ACEOF 15146if ac_fn_c_try_link "$LINENO" 15147then : 15148 ac_cv_lib_dld_dld_link=yes 15149else $as_nop 15150 ac_cv_lib_dld_dld_link=no 15151fi 15152rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15153 conftest$ac_exeext conftest.$ac_ext 15154LIBS=$ac_check_lib_save_LIBS 15155fi 15156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 15157printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 15158if test "x$ac_cv_lib_dld_dld_link" = xyes 15159then : 15160 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 15161fi 15162 15163 15164fi 15165 15166 15167fi 15168 15169 15170fi 15171 15172 15173fi 15174 15175 15176fi 15177 15178 ;; 15179 esac 15180 15181 if test no = "$lt_cv_dlopen"; then 15182 enable_dlopen=no 15183 else 15184 enable_dlopen=yes 15185 fi 15186 15187 case $lt_cv_dlopen in 15188 dlopen) 15189 save_CPPFLAGS=$CPPFLAGS 15190 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 15191 15192 save_LDFLAGS=$LDFLAGS 15193 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 15194 15195 save_LIBS=$LIBS 15196 LIBS="$lt_cv_dlopen_libs $LIBS" 15197 15198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 15199printf %s "checking whether a program can dlopen itself... " >&6; } 15200if test ${lt_cv_dlopen_self+y} 15201then : 15202 printf %s "(cached) " >&6 15203else $as_nop 15204 if test yes = "$cross_compiling"; then : 15205 lt_cv_dlopen_self=cross 15206else 15207 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 15208 lt_status=$lt_dlunknown 15209 cat > conftest.$ac_ext <<_LT_EOF 15210#line $LINENO "configure" 15211#include "confdefs.h" 15212 15213#if HAVE_DLFCN_H 15214#include <dlfcn.h> 15215#endif 15216 15217#include <stdio.h> 15218 15219#ifdef RTLD_GLOBAL 15220# define LT_DLGLOBAL RTLD_GLOBAL 15221#else 15222# ifdef DL_GLOBAL 15223# define LT_DLGLOBAL DL_GLOBAL 15224# else 15225# define LT_DLGLOBAL 0 15226# endif 15227#endif 15228 15229/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 15230 find out it does not work in some platform. */ 15231#ifndef LT_DLLAZY_OR_NOW 15232# ifdef RTLD_LAZY 15233# define LT_DLLAZY_OR_NOW RTLD_LAZY 15234# else 15235# ifdef DL_LAZY 15236# define LT_DLLAZY_OR_NOW DL_LAZY 15237# else 15238# ifdef RTLD_NOW 15239# define LT_DLLAZY_OR_NOW RTLD_NOW 15240# else 15241# ifdef DL_NOW 15242# define LT_DLLAZY_OR_NOW DL_NOW 15243# else 15244# define LT_DLLAZY_OR_NOW 0 15245# endif 15246# endif 15247# endif 15248# endif 15249#endif 15250 15251/* When -fvisibility=hidden is used, assume the code has been annotated 15252 correspondingly for the symbols needed. */ 15253#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 15254int fnord () __attribute__((visibility("default"))); 15255#endif 15256 15257int fnord () { return 42; } 15258int main () 15259{ 15260 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 15261 int status = $lt_dlunknown; 15262 15263 if (self) 15264 { 15265 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 15266 else 15267 { 15268 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 15269 else puts (dlerror ()); 15270 } 15271 /* dlclose (self); */ 15272 } 15273 else 15274 puts (dlerror ()); 15275 15276 return status; 15277} 15278_LT_EOF 15279 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 15280 (eval $ac_link) 2>&5 15281 ac_status=$? 15282 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15283 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 15284 (./conftest; exit; ) >&5 2>/dev/null 15285 lt_status=$? 15286 case x$lt_status in 15287 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 15288 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 15289 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 15290 esac 15291 else : 15292 # compilation failed 15293 lt_cv_dlopen_self=no 15294 fi 15295fi 15296rm -fr conftest* 15297 15298 15299fi 15300{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 15301printf "%s\n" "$lt_cv_dlopen_self" >&6; } 15302 15303 if test yes = "$lt_cv_dlopen_self"; then 15304 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 15305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 15306printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 15307if test ${lt_cv_dlopen_self_static+y} 15308then : 15309 printf %s "(cached) " >&6 15310else $as_nop 15311 if test yes = "$cross_compiling"; then : 15312 lt_cv_dlopen_self_static=cross 15313else 15314 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 15315 lt_status=$lt_dlunknown 15316 cat > conftest.$ac_ext <<_LT_EOF 15317#line $LINENO "configure" 15318#include "confdefs.h" 15319 15320#if HAVE_DLFCN_H 15321#include <dlfcn.h> 15322#endif 15323 15324#include <stdio.h> 15325 15326#ifdef RTLD_GLOBAL 15327# define LT_DLGLOBAL RTLD_GLOBAL 15328#else 15329# ifdef DL_GLOBAL 15330# define LT_DLGLOBAL DL_GLOBAL 15331# else 15332# define LT_DLGLOBAL 0 15333# endif 15334#endif 15335 15336/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 15337 find out it does not work in some platform. */ 15338#ifndef LT_DLLAZY_OR_NOW 15339# ifdef RTLD_LAZY 15340# define LT_DLLAZY_OR_NOW RTLD_LAZY 15341# else 15342# ifdef DL_LAZY 15343# define LT_DLLAZY_OR_NOW DL_LAZY 15344# else 15345# ifdef RTLD_NOW 15346# define LT_DLLAZY_OR_NOW RTLD_NOW 15347# else 15348# ifdef DL_NOW 15349# define LT_DLLAZY_OR_NOW DL_NOW 15350# else 15351# define LT_DLLAZY_OR_NOW 0 15352# endif 15353# endif 15354# endif 15355# endif 15356#endif 15357 15358/* When -fvisibility=hidden is used, assume the code has been annotated 15359 correspondingly for the symbols needed. */ 15360#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 15361int fnord () __attribute__((visibility("default"))); 15362#endif 15363 15364int fnord () { return 42; } 15365int main () 15366{ 15367 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 15368 int status = $lt_dlunknown; 15369 15370 if (self) 15371 { 15372 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 15373 else 15374 { 15375 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 15376 else puts (dlerror ()); 15377 } 15378 /* dlclose (self); */ 15379 } 15380 else 15381 puts (dlerror ()); 15382 15383 return status; 15384} 15385_LT_EOF 15386 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 15387 (eval $ac_link) 2>&5 15388 ac_status=$? 15389 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15390 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 15391 (./conftest; exit; ) >&5 2>/dev/null 15392 lt_status=$? 15393 case x$lt_status in 15394 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 15395 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 15396 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 15397 esac 15398 else : 15399 # compilation failed 15400 lt_cv_dlopen_self_static=no 15401 fi 15402fi 15403rm -fr conftest* 15404 15405 15406fi 15407{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 15408printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 15409 fi 15410 15411 CPPFLAGS=$save_CPPFLAGS 15412 LDFLAGS=$save_LDFLAGS 15413 LIBS=$save_LIBS 15414 ;; 15415 esac 15416 15417 case $lt_cv_dlopen_self in 15418 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 15419 *) enable_dlopen_self=unknown ;; 15420 esac 15421 15422 case $lt_cv_dlopen_self_static in 15423 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 15424 *) enable_dlopen_self_static=unknown ;; 15425 esac 15426fi 15427 15428 15429 15430 15431 15432 15433 15434 15435 15436 15437 15438 15439 15440 15441 15442 15443 15444striplib= 15445old_striplib= 15446{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 15447printf %s "checking whether stripping libraries is possible... " >&6; } 15448if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 15449 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 15450 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 15451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15452printf "%s\n" "yes" >&6; } 15453else 15454# FIXME - insert some real tests, host_os isn't really good enough 15455 case $host_os in 15456 darwin*) 15457 if test -n "$STRIP"; then 15458 striplib="$STRIP -x" 15459 old_striplib="$STRIP -S" 15460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15461printf "%s\n" "yes" >&6; } 15462 else 15463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15464printf "%s\n" "no" >&6; } 15465 fi 15466 ;; 15467 *) 15468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15469printf "%s\n" "no" >&6; } 15470 ;; 15471 esac 15472fi 15473 15474 15475 15476 15477 15478 15479 15480 15481 15482 15483 15484 15485 # Report what library types will actually be built 15486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 15487printf %s "checking if libtool supports shared libraries... " >&6; } 15488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 15489printf "%s\n" "$can_build_shared" >&6; } 15490 15491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 15492printf %s "checking whether to build shared libraries... " >&6; } 15493 test no = "$can_build_shared" && enable_shared=no 15494 15495 # On AIX, shared libraries and static libraries use the same namespace, and 15496 # are all built from PIC. 15497 case $host_os in 15498 aix3*) 15499 test yes = "$enable_shared" && enable_static=no 15500 if test -n "$RANLIB"; then 15501 archive_cmds="$archive_cmds~\$RANLIB \$lib" 15502 postinstall_cmds='$RANLIB $lib' 15503 fi 15504 ;; 15505 15506 aix[4-9]*) 15507 if test ia64 != "$host_cpu"; then 15508 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 15509 yes,aix,yes) ;; # shared object as lib.so file only 15510 yes,svr4,*) ;; # shared object as lib.so archive member only 15511 yes,*) enable_static=no ;; # shared object in lib.a archive as well 15512 esac 15513 fi 15514 ;; 15515 esac 15516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 15517printf "%s\n" "$enable_shared" >&6; } 15518 15519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 15520printf %s "checking whether to build static libraries... " >&6; } 15521 # Make sure either enable_shared or enable_static is yes. 15522 test yes = "$enable_shared" || enable_static=yes 15523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 15524printf "%s\n" "$enable_static" >&6; } 15525 15526 15527 15528 15529fi 15530ac_ext=c 15531ac_cpp='$CPP $CPPFLAGS' 15532ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15533ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15534ac_compiler_gnu=$ac_cv_c_compiler_gnu 15535 15536CC=$lt_save_CC 15537 15538 if test -n "$CXX" && ( test no != "$CXX" && 15539 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 15540 (test g++ != "$CXX"))); then 15541 ac_ext=cpp 15542ac_cpp='$CXXCPP $CPPFLAGS' 15543ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15544ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15545ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 15546{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 15547printf %s "checking how to run the C++ preprocessor... " >&6; } 15548if test -z "$CXXCPP"; then 15549 if test ${ac_cv_prog_CXXCPP+y} 15550then : 15551 printf %s "(cached) " >&6 15552else $as_nop 15553 # Double quotes because $CXX needs to be expanded 15554 for CXXCPP in "$CXX -E" cpp /lib/cpp 15555 do 15556 ac_preproc_ok=false 15557for ac_cxx_preproc_warn_flag in '' yes 15558do 15559 # Use a header file that comes with gcc, so configuring glibc 15560 # with a fresh cross-compiler works. 15561 # On the NeXT, cc -E runs the code through the compiler's parser, 15562 # not just through cpp. "Syntax error" is here to catch this case. 15563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15564/* end confdefs.h. */ 15565#include <limits.h> 15566 Syntax error 15567_ACEOF 15568if ac_fn_cxx_try_cpp "$LINENO" 15569then : 15570 15571else $as_nop 15572 # Broken: fails on valid input. 15573continue 15574fi 15575rm -f conftest.err conftest.i conftest.$ac_ext 15576 15577 # OK, works on sane cases. Now check whether nonexistent headers 15578 # can be detected and how. 15579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15580/* end confdefs.h. */ 15581#include <ac_nonexistent.h> 15582_ACEOF 15583if ac_fn_cxx_try_cpp "$LINENO" 15584then : 15585 # Broken: success on invalid input. 15586continue 15587else $as_nop 15588 # Passes both tests. 15589ac_preproc_ok=: 15590break 15591fi 15592rm -f conftest.err conftest.i conftest.$ac_ext 15593 15594done 15595# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 15596rm -f conftest.i conftest.err conftest.$ac_ext 15597if $ac_preproc_ok 15598then : 15599 break 15600fi 15601 15602 done 15603 ac_cv_prog_CXXCPP=$CXXCPP 15604 15605fi 15606 CXXCPP=$ac_cv_prog_CXXCPP 15607else 15608 ac_cv_prog_CXXCPP=$CXXCPP 15609fi 15610{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 15611printf "%s\n" "$CXXCPP" >&6; } 15612ac_preproc_ok=false 15613for ac_cxx_preproc_warn_flag in '' yes 15614do 15615 # Use a header file that comes with gcc, so configuring glibc 15616 # with a fresh cross-compiler works. 15617 # On the NeXT, cc -E runs the code through the compiler's parser, 15618 # not just through cpp. "Syntax error" is here to catch this case. 15619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15620/* end confdefs.h. */ 15621#include <limits.h> 15622 Syntax error 15623_ACEOF 15624if ac_fn_cxx_try_cpp "$LINENO" 15625then : 15626 15627else $as_nop 15628 # Broken: fails on valid input. 15629continue 15630fi 15631rm -f conftest.err conftest.i conftest.$ac_ext 15632 15633 # OK, works on sane cases. Now check whether nonexistent headers 15634 # can be detected and how. 15635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15636/* end confdefs.h. */ 15637#include <ac_nonexistent.h> 15638_ACEOF 15639if ac_fn_cxx_try_cpp "$LINENO" 15640then : 15641 # Broken: success on invalid input. 15642continue 15643else $as_nop 15644 # Passes both tests. 15645ac_preproc_ok=: 15646break 15647fi 15648rm -f conftest.err conftest.i conftest.$ac_ext 15649 15650done 15651# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 15652rm -f conftest.i conftest.err conftest.$ac_ext 15653if $ac_preproc_ok 15654then : 15655 15656else $as_nop 15657 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15658printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 15659as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 15660See \`config.log' for more details" "$LINENO" 5; } 15661fi 15662 15663ac_ext=c 15664ac_cpp='$CPP $CPPFLAGS' 15665ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15666ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15667ac_compiler_gnu=$ac_cv_c_compiler_gnu 15668 15669else 15670 _lt_caught_CXX_error=yes 15671fi 15672 15673ac_ext=cpp 15674ac_cpp='$CXXCPP $CPPFLAGS' 15675ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15676ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15677ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 15678 15679archive_cmds_need_lc_CXX=no 15680allow_undefined_flag_CXX= 15681always_export_symbols_CXX=no 15682archive_expsym_cmds_CXX= 15683compiler_needs_object_CXX=no 15684export_dynamic_flag_spec_CXX= 15685hardcode_direct_CXX=no 15686hardcode_direct_absolute_CXX=no 15687hardcode_libdir_flag_spec_CXX= 15688hardcode_libdir_separator_CXX= 15689hardcode_minus_L_CXX=no 15690hardcode_shlibpath_var_CXX=unsupported 15691hardcode_automatic_CXX=no 15692inherit_rpath_CXX=no 15693module_cmds_CXX= 15694module_expsym_cmds_CXX= 15695link_all_deplibs_CXX=unknown 15696old_archive_cmds_CXX=$old_archive_cmds 15697reload_flag_CXX=$reload_flag 15698reload_cmds_CXX=$reload_cmds 15699no_undefined_flag_CXX= 15700whole_archive_flag_spec_CXX= 15701enable_shared_with_static_runtimes_CXX=no 15702 15703# Source file extension for C++ test sources. 15704ac_ext=cpp 15705 15706# Object file extension for compiled C++ test sources. 15707objext=o 15708objext_CXX=$objext 15709 15710# No sense in running all these tests if we already determined that 15711# the CXX compiler isn't working. Some variables (like enable_shared) 15712# are currently assumed to apply to all compilers on this platform, 15713# and will be corrupted by setting them based on a non-working compiler. 15714if test yes != "$_lt_caught_CXX_error"; then 15715 # Code to be used in simple compile tests 15716 lt_simple_compile_test_code="int some_variable = 0;" 15717 15718 # Code to be used in simple link tests 15719 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 15720 15721 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 15722 15723 15724 15725 15726 15727 15728# If no C compiler was specified, use CC. 15729LTCC=${LTCC-"$CC"} 15730 15731# If no C compiler flags were specified, use CFLAGS. 15732LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 15733 15734# Allow CC to be a program name with arguments. 15735compiler=$CC 15736 15737 15738 # save warnings/boilerplate of simple test code 15739 ac_outfile=conftest.$ac_objext 15740echo "$lt_simple_compile_test_code" >conftest.$ac_ext 15741eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15742_lt_compiler_boilerplate=`cat conftest.err` 15743$RM conftest* 15744 15745 ac_outfile=conftest.$ac_objext 15746echo "$lt_simple_link_test_code" >conftest.$ac_ext 15747eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15748_lt_linker_boilerplate=`cat conftest.err` 15749$RM -r conftest* 15750 15751 15752 # Allow CC to be a program name with arguments. 15753 lt_save_CC=$CC 15754 lt_save_CFLAGS=$CFLAGS 15755 lt_save_LD=$LD 15756 lt_save_GCC=$GCC 15757 GCC=$GXX 15758 lt_save_with_gnu_ld=$with_gnu_ld 15759 lt_save_path_LD=$lt_cv_path_LD 15760 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 15761 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 15762 else 15763 $as_unset lt_cv_prog_gnu_ld 15764 fi 15765 if test -n "${lt_cv_path_LDCXX+set}"; then 15766 lt_cv_path_LD=$lt_cv_path_LDCXX 15767 else 15768 $as_unset lt_cv_path_LD 15769 fi 15770 test -z "${LDCXX+set}" || LD=$LDCXX 15771 CC=${CXX-"c++"} 15772 CFLAGS=$CXXFLAGS 15773 compiler=$CC 15774 compiler_CXX=$CC 15775 func_cc_basename $compiler 15776cc_basename=$func_cc_basename_result 15777 15778 15779 if test -n "$compiler"; then 15780 # We don't want -fno-exception when compiling C++ code, so set the 15781 # no_builtin_flag separately 15782 if test yes = "$GXX"; then 15783 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 15784 else 15785 lt_prog_compiler_no_builtin_flag_CXX= 15786 fi 15787 15788 if test yes = "$GXX"; then 15789 # Set up default GNU C++ configuration 15790 15791 15792 15793# Check whether --with-gnu-ld was given. 15794if test ${with_gnu_ld+y} 15795then : 15796 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 15797else $as_nop 15798 with_gnu_ld=no 15799fi 15800 15801ac_prog=ld 15802if test yes = "$GCC"; then 15803 # Check if gcc -print-prog-name=ld gives a path. 15804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 15805printf %s "checking for ld used by $CC... " >&6; } 15806 case $host in 15807 *-*-mingw*) 15808 # gcc leaves a trailing carriage return, which upsets mingw 15809 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 15810 *) 15811 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 15812 esac 15813 case $ac_prog in 15814 # Accept absolute paths. 15815 [\\/]* | ?:[\\/]*) 15816 re_direlt='/[^/][^/]*/\.\./' 15817 # Canonicalize the pathname of ld 15818 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 15819 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 15820 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 15821 done 15822 test -z "$LD" && LD=$ac_prog 15823 ;; 15824 "") 15825 # If it fails, then pretend we aren't using GCC. 15826 ac_prog=ld 15827 ;; 15828 *) 15829 # If it is relative, then search for the first ld in PATH. 15830 with_gnu_ld=unknown 15831 ;; 15832 esac 15833elif test yes = "$with_gnu_ld"; then 15834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 15835printf %s "checking for GNU ld... " >&6; } 15836else 15837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 15838printf %s "checking for non-GNU ld... " >&6; } 15839fi 15840if test ${lt_cv_path_LD+y} 15841then : 15842 printf %s "(cached) " >&6 15843else $as_nop 15844 if test -z "$LD"; then 15845 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 15846 for ac_dir in $PATH; do 15847 IFS=$lt_save_ifs 15848 test -z "$ac_dir" && ac_dir=. 15849 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 15850 lt_cv_path_LD=$ac_dir/$ac_prog 15851 # Check to see if the program is GNU ld. I'd rather use --version, 15852 # but apparently some variants of GNU ld only accept -v. 15853 # Break only if it was the GNU/non-GNU ld that we prefer. 15854 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 15855 *GNU* | *'with BFD'*) 15856 test no != "$with_gnu_ld" && break 15857 ;; 15858 *) 15859 test yes != "$with_gnu_ld" && break 15860 ;; 15861 esac 15862 fi 15863 done 15864 IFS=$lt_save_ifs 15865else 15866 lt_cv_path_LD=$LD # Let the user override the test with a path. 15867fi 15868fi 15869 15870LD=$lt_cv_path_LD 15871if test -n "$LD"; then 15872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 15873printf "%s\n" "$LD" >&6; } 15874else 15875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15876printf "%s\n" "no" >&6; } 15877fi 15878test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 15879{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 15880printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 15881if test ${lt_cv_prog_gnu_ld+y} 15882then : 15883 printf %s "(cached) " >&6 15884else $as_nop 15885 # I'd rather use --version here, but apparently some GNU lds only accept -v. 15886case `$LD -v 2>&1 </dev/null` in 15887*GNU* | *'with BFD'*) 15888 lt_cv_prog_gnu_ld=yes 15889 ;; 15890*) 15891 lt_cv_prog_gnu_ld=no 15892 ;; 15893esac 15894fi 15895{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 15896printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 15897with_gnu_ld=$lt_cv_prog_gnu_ld 15898 15899 15900 15901 15902 15903 15904 15905 # Check if GNU C++ uses GNU ld as the underlying linker, since the 15906 # archiving commands below assume that GNU ld is being used. 15907 if test yes = "$with_gnu_ld"; then 15908 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 15909 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' 15910 15911 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 15912 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 15913 15914 # If archive_cmds runs LD, not CC, wlarc should be empty 15915 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 15916 # investigate it a little bit more. (MM) 15917 wlarc='$wl' 15918 15919 # ancient GNU ld didn't support --whole-archive et. al. 15920 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 15921 $GREP 'no-whole-archive' > /dev/null; then 15922 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 15923 else 15924 whole_archive_flag_spec_CXX= 15925 fi 15926 else 15927 with_gnu_ld=no 15928 wlarc= 15929 15930 # A generic and very simple default shared library creation 15931 # command for GNU C++ for the case where it uses the native 15932 # linker, instead of GNU ld. If possible, this setting should 15933 # overridden to take advantage of the native linker features on 15934 # the platform it is being used on. 15935 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 15936 fi 15937 15938 # Commands to make compiler produce verbose output that lists 15939 # what "hidden" libraries, object files and flags are used when 15940 # linking a shared library. 15941 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 15942 15943 else 15944 GXX=no 15945 with_gnu_ld=no 15946 wlarc= 15947 fi 15948 15949 # PORTME: fill in a description of your system's C++ link characteristics 15950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15951printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15952 ld_shlibs_CXX=yes 15953 case $host_os in 15954 aix3*) 15955 # FIXME: insert proper C++ library support 15956 ld_shlibs_CXX=no 15957 ;; 15958 aix[4-9]*) 15959 if test ia64 = "$host_cpu"; then 15960 # On IA64, the linker does run time linking by default, so we don't 15961 # have to do anything special. 15962 aix_use_runtimelinking=no 15963 exp_sym_flag='-Bexport' 15964 no_entry_flag= 15965 else 15966 aix_use_runtimelinking=no 15967 15968 # Test if we are trying to use run time linking or normal 15969 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15970 # have runtime linking enabled, and use it for executables. 15971 # For shared libraries, we enable/disable runtime linking 15972 # depending on the kind of the shared library created - 15973 # when "with_aix_soname,aix_use_runtimelinking" is: 15974 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 15975 # "aix,yes" lib.so shared, rtl:yes, for executables 15976 # lib.a static archive 15977 # "both,no" lib.so.V(shr.o) shared, rtl:yes 15978 # lib.a(lib.so.V) shared, rtl:no, for executables 15979 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 15980 # lib.a(lib.so.V) shared, rtl:no 15981 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 15982 # lib.a static archive 15983 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 15984 for ld_flag in $LDFLAGS; do 15985 case $ld_flag in 15986 *-brtl*) 15987 aix_use_runtimelinking=yes 15988 break 15989 ;; 15990 esac 15991 done 15992 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 15993 # With aix-soname=svr4, we create the lib.so.V shared archives only, 15994 # so we don't have lib.a shared libs to link our executables. 15995 # We have to force runtime linking in this case. 15996 aix_use_runtimelinking=yes 15997 LDFLAGS="$LDFLAGS -Wl,-brtl" 15998 fi 15999 ;; 16000 esac 16001 16002 exp_sym_flag='-bexport' 16003 no_entry_flag='-bnoentry' 16004 fi 16005 16006 # When large executables or shared objects are built, AIX ld can 16007 # have problems creating the table of contents. If linking a library 16008 # or program results in "error TOC overflow" add -mminimal-toc to 16009 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16010 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16011 16012 archive_cmds_CXX='' 16013 hardcode_direct_CXX=yes 16014 hardcode_direct_absolute_CXX=yes 16015 hardcode_libdir_separator_CXX=':' 16016 link_all_deplibs_CXX=yes 16017 file_list_spec_CXX='$wl-f,' 16018 case $with_aix_soname,$aix_use_runtimelinking in 16019 aix,*) ;; # no import file 16020 svr4,* | *,yes) # use import file 16021 # The Import File defines what to hardcode. 16022 hardcode_direct_CXX=no 16023 hardcode_direct_absolute_CXX=no 16024 ;; 16025 esac 16026 16027 if test yes = "$GXX"; then 16028 case $host_os in aix4.[012]|aix4.[012].*) 16029 # We only want to do this on AIX 4.2 and lower, the check 16030 # below for broken collect2 doesn't work under 4.3+ 16031 collect2name=`$CC -print-prog-name=collect2` 16032 if test -f "$collect2name" && 16033 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 16034 then 16035 # We have reworked collect2 16036 : 16037 else 16038 # We have old collect2 16039 hardcode_direct_CXX=unsupported 16040 # It fails to find uninstalled libraries when the uninstalled 16041 # path is not listed in the libpath. Setting hardcode_minus_L 16042 # to unsupported forces relinking 16043 hardcode_minus_L_CXX=yes 16044 hardcode_libdir_flag_spec_CXX='-L$libdir' 16045 hardcode_libdir_separator_CXX= 16046 fi 16047 esac 16048 shared_flag='-shared' 16049 if test yes = "$aix_use_runtimelinking"; then 16050 shared_flag=$shared_flag' $wl-G' 16051 fi 16052 # Need to ensure runtime linking is disabled for the traditional 16053 # shared library, or the linker may eventually find shared libraries 16054 # /with/ Import File - we do not want to mix them. 16055 shared_flag_aix='-shared' 16056 shared_flag_svr4='-shared $wl-G' 16057 else 16058 # not using gcc 16059 if test ia64 = "$host_cpu"; then 16060 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16061 # chokes on -Wl,-G. The following line is correct: 16062 shared_flag='-G' 16063 else 16064 if test yes = "$aix_use_runtimelinking"; then 16065 shared_flag='$wl-G' 16066 else 16067 shared_flag='$wl-bM:SRE' 16068 fi 16069 shared_flag_aix='$wl-bM:SRE' 16070 shared_flag_svr4='$wl-G' 16071 fi 16072 fi 16073 16074 export_dynamic_flag_spec_CXX='$wl-bexpall' 16075 # It seems that -bexpall does not export symbols beginning with 16076 # underscore (_), so it is better to generate a list of symbols to 16077 # export. 16078 always_export_symbols_CXX=yes 16079 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 16080 # Warning - without using the other runtime loading flags (-brtl), 16081 # -berok will link without error, but may produce a broken library. 16082 # The "-G" linker flag allows undefined symbols. 16083 no_undefined_flag_CXX='-bernotok' 16084 # Determine the default libpath from the value encoded in an empty 16085 # executable. 16086 if test set = "${lt_cv_aix_libpath+set}"; then 16087 aix_libpath=$lt_cv_aix_libpath 16088else 16089 if test ${lt_cv_aix_libpath__CXX+y} 16090then : 16091 printf %s "(cached) " >&6 16092else $as_nop 16093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16094/* end confdefs.h. */ 16095 16096int 16097main (void) 16098{ 16099 16100 ; 16101 return 0; 16102} 16103_ACEOF 16104if ac_fn_cxx_try_link "$LINENO" 16105then : 16106 16107 lt_aix_libpath_sed=' 16108 /Import File Strings/,/^$/ { 16109 /^0/ { 16110 s/^0 *\([^ ]*\) *$/\1/ 16111 p 16112 } 16113 }' 16114 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16115 # Check for a 64-bit object if we didn't find anything. 16116 if test -z "$lt_cv_aix_libpath__CXX"; then 16117 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16118 fi 16119fi 16120rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16121 conftest$ac_exeext conftest.$ac_ext 16122 if test -z "$lt_cv_aix_libpath__CXX"; then 16123 lt_cv_aix_libpath__CXX=/usr/lib:/lib 16124 fi 16125 16126fi 16127 16128 aix_libpath=$lt_cv_aix_libpath__CXX 16129fi 16130 16131 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 16132 16133 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 16134 else 16135 if test ia64 = "$host_cpu"; then 16136 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 16137 allow_undefined_flag_CXX="-z nodefs" 16138 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" 16139 else 16140 # Determine the default libpath from the value encoded in an 16141 # empty executable. 16142 if test set = "${lt_cv_aix_libpath+set}"; then 16143 aix_libpath=$lt_cv_aix_libpath 16144else 16145 if test ${lt_cv_aix_libpath__CXX+y} 16146then : 16147 printf %s "(cached) " >&6 16148else $as_nop 16149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16150/* end confdefs.h. */ 16151 16152int 16153main (void) 16154{ 16155 16156 ; 16157 return 0; 16158} 16159_ACEOF 16160if ac_fn_cxx_try_link "$LINENO" 16161then : 16162 16163 lt_aix_libpath_sed=' 16164 /Import File Strings/,/^$/ { 16165 /^0/ { 16166 s/^0 *\([^ ]*\) *$/\1/ 16167 p 16168 } 16169 }' 16170 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16171 # Check for a 64-bit object if we didn't find anything. 16172 if test -z "$lt_cv_aix_libpath__CXX"; then 16173 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16174 fi 16175fi 16176rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16177 conftest$ac_exeext conftest.$ac_ext 16178 if test -z "$lt_cv_aix_libpath__CXX"; then 16179 lt_cv_aix_libpath__CXX=/usr/lib:/lib 16180 fi 16181 16182fi 16183 16184 aix_libpath=$lt_cv_aix_libpath__CXX 16185fi 16186 16187 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 16188 # Warning - without using the other run time loading flags, 16189 # -berok will link without error, but may produce a broken library. 16190 no_undefined_flag_CXX=' $wl-bernotok' 16191 allow_undefined_flag_CXX=' $wl-berok' 16192 if test yes = "$with_gnu_ld"; then 16193 # We only use this code for GNU lds that support --whole-archive. 16194 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 16195 else 16196 # Exported symbols can be pulled into shared objects from archives 16197 whole_archive_flag_spec_CXX='$convenience' 16198 fi 16199 archive_cmds_need_lc_CXX=yes 16200 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 16201 # -brtl affects multiple linker settings, -berok does not and is overridden later 16202 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 16203 if test svr4 != "$with_aix_soname"; then 16204 # This is similar to how AIX traditionally builds its shared 16205 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 16206 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' 16207 fi 16208 if test aix != "$with_aix_soname"; then 16209 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' 16210 else 16211 # used by -dlpreopen to get the symbols 16212 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 16213 fi 16214 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' 16215 fi 16216 fi 16217 ;; 16218 16219 beos*) 16220 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16221 allow_undefined_flag_CXX=unsupported 16222 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16223 # support --undefined. This deserves some investigation. FIXME 16224 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16225 else 16226 ld_shlibs_CXX=no 16227 fi 16228 ;; 16229 16230 chorus*) 16231 case $cc_basename in 16232 *) 16233 # FIXME: insert proper C++ library support 16234 ld_shlibs_CXX=no 16235 ;; 16236 esac 16237 ;; 16238 16239 cygwin* | mingw* | pw32* | cegcc*) 16240 case $GXX,$cc_basename in 16241 ,cl* | no,cl*) 16242 # Native MSVC 16243 # hardcode_libdir_flag_spec is actually meaningless, as there is 16244 # no search path for DLLs. 16245 hardcode_libdir_flag_spec_CXX=' ' 16246 allow_undefined_flag_CXX=unsupported 16247 always_export_symbols_CXX=yes 16248 file_list_spec_CXX='@' 16249 # Tell ltmain to make .lib files, not .a files. 16250 libext=lib 16251 # Tell ltmain to make .dll files, not .so files. 16252 shrext_cmds=.dll 16253 # FIXME: Setting linknames here is a bad hack. 16254 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 16255 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 16256 cp "$export_symbols" "$output_objdir/$soname.def"; 16257 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 16258 else 16259 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 16260 fi~ 16261 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 16262 linknames=' 16263 # The linker will not automatically build a static lib if we build a DLL. 16264 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 16265 enable_shared_with_static_runtimes_CXX=yes 16266 # Don't use ranlib 16267 old_postinstall_cmds_CXX='chmod 644 $oldlib' 16268 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 16269 lt_tool_outputfile="@TOOL_OUTPUT@"~ 16270 case $lt_outputfile in 16271 *.exe|*.EXE) ;; 16272 *) 16273 lt_outputfile=$lt_outputfile.exe 16274 lt_tool_outputfile=$lt_tool_outputfile.exe 16275 ;; 16276 esac~ 16277 func_to_tool_file "$lt_outputfile"~ 16278 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 16279 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 16280 $RM "$lt_outputfile.manifest"; 16281 fi' 16282 ;; 16283 *) 16284 # g++ 16285 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 16286 # as there is no search path for DLLs. 16287 hardcode_libdir_flag_spec_CXX='-L$libdir' 16288 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 16289 allow_undefined_flag_CXX=unsupported 16290 always_export_symbols_CXX=no 16291 enable_shared_with_static_runtimes_CXX=yes 16292 16293 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 16294 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' 16295 # If the export-symbols file already is a .def file, use it as 16296 # is; otherwise, prepend EXPORTS... 16297 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 16298 cp $export_symbols $output_objdir/$soname.def; 16299 else 16300 echo EXPORTS > $output_objdir/$soname.def; 16301 cat $export_symbols >> $output_objdir/$soname.def; 16302 fi~ 16303 $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' 16304 else 16305 ld_shlibs_CXX=no 16306 fi 16307 ;; 16308 esac 16309 ;; 16310 darwin* | rhapsody*) 16311 16312 16313 archive_cmds_need_lc_CXX=no 16314 hardcode_direct_CXX=no 16315 hardcode_automatic_CXX=yes 16316 hardcode_shlibpath_var_CXX=unsupported 16317 if test yes = "$lt_cv_ld_force_load"; then 16318 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\"`' 16319 16320 else 16321 whole_archive_flag_spec_CXX='' 16322 fi 16323 link_all_deplibs_CXX=yes 16324 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 16325 case $cc_basename in 16326 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 16327 *) _lt_dar_can_shared=$GCC ;; 16328 esac 16329 if test yes = "$_lt_dar_can_shared"; then 16330 output_verbose_link_cmd=func_echo_all 16331 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" 16332 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 16333 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" 16334 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" 16335 if test yes != "$lt_cv_apple_cc_single_mod"; then 16336 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" 16337 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" 16338 fi 16339 16340 else 16341 ld_shlibs_CXX=no 16342 fi 16343 16344 ;; 16345 16346 os2*) 16347 hardcode_libdir_flag_spec_CXX='-L$libdir' 16348 hardcode_minus_L_CXX=yes 16349 allow_undefined_flag_CXX=unsupported 16350 shrext_cmds=.dll 16351 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16352 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16353 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16354 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16355 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 16356 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16357 emximp -o $lib $output_objdir/$libname.def' 16358 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16359 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16360 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16361 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16362 prefix_cmds="$SED"~ 16363 if test EXPORTS = "`$SED 1q $export_symbols`"; then 16364 prefix_cmds="$prefix_cmds -e 1d"; 16365 fi~ 16366 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 16367 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 16368 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16369 emximp -o $lib $output_objdir/$libname.def' 16370 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 16371 enable_shared_with_static_runtimes_CXX=yes 16372 ;; 16373 16374 dgux*) 16375 case $cc_basename in 16376 ec++*) 16377 # FIXME: insert proper C++ library support 16378 ld_shlibs_CXX=no 16379 ;; 16380 ghcx*) 16381 # Green Hills C++ Compiler 16382 # FIXME: insert proper C++ library support 16383 ld_shlibs_CXX=no 16384 ;; 16385 *) 16386 # FIXME: insert proper C++ library support 16387 ld_shlibs_CXX=no 16388 ;; 16389 esac 16390 ;; 16391 16392 freebsd2.*) 16393 # C++ shared libraries reported to be fairly broken before 16394 # switch to ELF 16395 ld_shlibs_CXX=no 16396 ;; 16397 16398 freebsd-elf*) 16399 archive_cmds_need_lc_CXX=no 16400 ;; 16401 16402 freebsd* | dragonfly*) 16403 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 16404 # conventions 16405 ld_shlibs_CXX=yes 16406 ;; 16407 16408 haiku*) 16409 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16410 link_all_deplibs_CXX=yes 16411 ;; 16412 16413 hpux9*) 16414 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 16415 hardcode_libdir_separator_CXX=: 16416 export_dynamic_flag_spec_CXX='$wl-E' 16417 hardcode_direct_CXX=yes 16418 hardcode_minus_L_CXX=yes # Not in the search PATH, 16419 # but as the default 16420 # location of the library. 16421 16422 case $cc_basename in 16423 CC*) 16424 # FIXME: insert proper C++ library support 16425 ld_shlibs_CXX=no 16426 ;; 16427 aCC*) 16428 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' 16429 # Commands to make compiler produce verbose output that lists 16430 # what "hidden" libraries, object files and flags are used when 16431 # linking a shared library. 16432 # 16433 # There doesn't appear to be a way to prevent this compiler from 16434 # explicitly linking system object files so we need to strip them 16435 # from the output so that they don't get included in the library 16436 # dependencies. 16437 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"' 16438 ;; 16439 *) 16440 if test yes = "$GXX"; then 16441 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' 16442 else 16443 # FIXME: insert proper C++ library support 16444 ld_shlibs_CXX=no 16445 fi 16446 ;; 16447 esac 16448 ;; 16449 16450 hpux10*|hpux11*) 16451 if test no = "$with_gnu_ld"; then 16452 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 16453 hardcode_libdir_separator_CXX=: 16454 16455 case $host_cpu in 16456 hppa*64*|ia64*) 16457 ;; 16458 *) 16459 export_dynamic_flag_spec_CXX='$wl-E' 16460 ;; 16461 esac 16462 fi 16463 case $host_cpu in 16464 hppa*64*|ia64*) 16465 hardcode_direct_CXX=no 16466 hardcode_shlibpath_var_CXX=no 16467 ;; 16468 *) 16469 hardcode_direct_CXX=yes 16470 hardcode_direct_absolute_CXX=yes 16471 hardcode_minus_L_CXX=yes # Not in the search PATH, 16472 # but as the default 16473 # location of the library. 16474 ;; 16475 esac 16476 16477 case $cc_basename in 16478 CC*) 16479 # FIXME: insert proper C++ library support 16480 ld_shlibs_CXX=no 16481 ;; 16482 aCC*) 16483 case $host_cpu in 16484 hppa*64*) 16485 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 16486 ;; 16487 ia64*) 16488 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 16489 ;; 16490 *) 16491 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 16492 ;; 16493 esac 16494 # Commands to make compiler produce verbose output that lists 16495 # what "hidden" libraries, object files and flags are used when 16496 # linking a shared library. 16497 # 16498 # There doesn't appear to be a way to prevent this compiler from 16499 # explicitly linking system object files so we need to strip them 16500 # from the output so that they don't get included in the library 16501 # dependencies. 16502 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"' 16503 ;; 16504 *) 16505 if test yes = "$GXX"; then 16506 if test no = "$with_gnu_ld"; then 16507 case $host_cpu in 16508 hppa*64*) 16509 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 16510 ;; 16511 ia64*) 16512 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 16513 ;; 16514 *) 16515 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' 16516 ;; 16517 esac 16518 fi 16519 else 16520 # FIXME: insert proper C++ library support 16521 ld_shlibs_CXX=no 16522 fi 16523 ;; 16524 esac 16525 ;; 16526 16527 interix[3-9]*) 16528 hardcode_direct_CXX=no 16529 hardcode_shlibpath_var_CXX=no 16530 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 16531 export_dynamic_flag_spec_CXX='$wl-E' 16532 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16533 # Instead, shared libraries are loaded at an image base (0x10000000 by 16534 # default) and relocated if they conflict, which is a slow very memory 16535 # consuming and fragmenting process. To avoid this, we pick a random, 16536 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16537 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16538 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' 16539 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' 16540 ;; 16541 irix5* | irix6*) 16542 case $cc_basename in 16543 CC*) 16544 # SGI C++ 16545 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' 16546 16547 # Archives containing C++ object files must be created using 16548 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 16549 # necessary to make sure instantiated templates are included 16550 # in the archive. 16551 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 16552 ;; 16553 *) 16554 if test yes = "$GXX"; then 16555 if test no = "$with_gnu_ld"; then 16556 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' 16557 else 16558 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' 16559 fi 16560 fi 16561 link_all_deplibs_CXX=yes 16562 ;; 16563 esac 16564 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 16565 hardcode_libdir_separator_CXX=: 16566 inherit_rpath_CXX=yes 16567 ;; 16568 16569 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 16570 case $cc_basename in 16571 KCC*) 16572 # Kuck and Associates, Inc. (KAI) C++ Compiler 16573 16574 # KCC will only create a shared library if the output file 16575 # ends with ".so" (or ".sl" for HP-UX), so rename the library 16576 # to its proper name (with version) after linking. 16577 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' 16578 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' 16579 # Commands to make compiler produce verbose output that lists 16580 # what "hidden" libraries, object files and flags are used when 16581 # linking a shared library. 16582 # 16583 # There doesn't appear to be a way to prevent this compiler from 16584 # explicitly linking system object files so we need to strip them 16585 # from the output so that they don't get included in the library 16586 # dependencies. 16587 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"' 16588 16589 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 16590 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 16591 16592 # Archives containing C++ object files must be created using 16593 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 16594 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 16595 ;; 16596 icpc* | ecpc* ) 16597 # Intel C++ 16598 with_gnu_ld=yes 16599 # version 8.0 and above of icpc choke on multiply defined symbols 16600 # if we add $predep_objects and $postdep_objects, however 7.1 and 16601 # earlier do not add the objects themselves. 16602 case `$CC -V 2>&1` in 16603 *"Version 7."*) 16604 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 16605 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' 16606 ;; 16607 *) # Version 8.0 or newer 16608 tmp_idyn= 16609 case $host_cpu in 16610 ia64*) tmp_idyn=' -i_dynamic';; 16611 esac 16612 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16613 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' 16614 ;; 16615 esac 16616 archive_cmds_need_lc_CXX=no 16617 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 16618 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 16619 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 16620 ;; 16621 pgCC* | pgcpp*) 16622 # Portland Group C++ compiler 16623 case `$CC -V` in 16624 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 16625 prelink_cmds_CXX='tpldir=Template.dir~ 16626 rm -rf $tpldir~ 16627 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 16628 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 16629 old_archive_cmds_CXX='tpldir=Template.dir~ 16630 rm -rf $tpldir~ 16631 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 16632 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 16633 $RANLIB $oldlib' 16634 archive_cmds_CXX='tpldir=Template.dir~ 16635 rm -rf $tpldir~ 16636 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 16637 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 16638 archive_expsym_cmds_CXX='tpldir=Template.dir~ 16639 rm -rf $tpldir~ 16640 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 16641 $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' 16642 ;; 16643 *) # Version 6 and above use weak symbols 16644 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 16645 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' 16646 ;; 16647 esac 16648 16649 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 16650 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 16651 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' 16652 ;; 16653 cxx*) 16654 # Compaq C++ 16655 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 16656 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' 16657 16658 runpath_var=LD_RUN_PATH 16659 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 16660 hardcode_libdir_separator_CXX=: 16661 16662 # Commands to make compiler produce verbose output that lists 16663 # what "hidden" libraries, object files and flags are used when 16664 # linking a shared library. 16665 # 16666 # There doesn't appear to be a way to prevent this compiler from 16667 # explicitly linking system object files so we need to strip them 16668 # from the output so that they don't get included in the library 16669 # dependencies. 16670 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' 16671 ;; 16672 xl* | mpixl* | bgxl*) 16673 # IBM XL 8.0 on PPC, with GNU ld 16674 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 16675 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 16676 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16677 if test yes = "$supports_anon_versioning"; then 16678 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 16679 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16680 echo "local: *; };" >> $output_objdir/$libname.ver~ 16681 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 16682 fi 16683 ;; 16684 *) 16685 case `$CC -V 2>&1 | sed 5q` in 16686 *Sun\ C*) 16687 # Sun C++ 5.9 16688 no_undefined_flag_CXX=' -zdefs' 16689 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 16690 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' 16691 hardcode_libdir_flag_spec_CXX='-R$libdir' 16692 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' 16693 compiler_needs_object_CXX=yes 16694 16695 # Not sure whether something based on 16696 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 16697 # would be better. 16698 output_verbose_link_cmd='func_echo_all' 16699 16700 # Archives containing C++ object files must be created using 16701 # "CC -xar", where "CC" is the Sun C++ compiler. This is 16702 # necessary to make sure instantiated templates are included 16703 # in the archive. 16704 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 16705 ;; 16706 esac 16707 ;; 16708 esac 16709 ;; 16710 16711 lynxos*) 16712 # FIXME: insert proper C++ library support 16713 ld_shlibs_CXX=no 16714 ;; 16715 16716 m88k*) 16717 # FIXME: insert proper C++ library support 16718 ld_shlibs_CXX=no 16719 ;; 16720 16721 mvs*) 16722 case $cc_basename in 16723 cxx*) 16724 # FIXME: insert proper C++ library support 16725 ld_shlibs_CXX=no 16726 ;; 16727 *) 16728 # FIXME: insert proper C++ library support 16729 ld_shlibs_CXX=no 16730 ;; 16731 esac 16732 ;; 16733 16734 netbsd*) 16735 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16736 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 16737 wlarc= 16738 hardcode_libdir_flag_spec_CXX='-R$libdir' 16739 hardcode_direct_CXX=yes 16740 hardcode_shlibpath_var_CXX=no 16741 fi 16742 # Workaround some broken pre-1.5 toolchains 16743 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 16744 ;; 16745 16746 *nto* | *qnx*) 16747 ld_shlibs_CXX=yes 16748 ;; 16749 16750 openbsd* | bitrig*) 16751 if test -f /usr/libexec/ld.so; then 16752 hardcode_direct_CXX=yes 16753 hardcode_shlibpath_var_CXX=no 16754 hardcode_direct_absolute_CXX=yes 16755 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 16756 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 16757 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 16758 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 16759 export_dynamic_flag_spec_CXX='$wl-E' 16760 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 16761 fi 16762 output_verbose_link_cmd=func_echo_all 16763 else 16764 ld_shlibs_CXX=no 16765 fi 16766 ;; 16767 16768 osf3* | osf4* | osf5*) 16769 case $cc_basename in 16770 KCC*) 16771 # Kuck and Associates, Inc. (KAI) C++ Compiler 16772 16773 # KCC will only create a shared library if the output file 16774 # ends with ".so" (or ".sl" for HP-UX), so rename the library 16775 # to its proper name (with version) after linking. 16776 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' 16777 16778 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 16779 hardcode_libdir_separator_CXX=: 16780 16781 # Archives containing C++ object files must be created using 16782 # the KAI C++ compiler. 16783 case $host in 16784 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 16785 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 16786 esac 16787 ;; 16788 RCC*) 16789 # Rational C++ 2.4.1 16790 # FIXME: insert proper C++ library support 16791 ld_shlibs_CXX=no 16792 ;; 16793 cxx*) 16794 case $host in 16795 osf3*) 16796 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 16797 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' 16798 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 16799 ;; 16800 *) 16801 allow_undefined_flag_CXX=' -expect_unresolved \*' 16802 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' 16803 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 16804 echo "-hidden">> $lib.exp~ 16805 $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~ 16806 $RM $lib.exp' 16807 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 16808 ;; 16809 esac 16810 16811 hardcode_libdir_separator_CXX=: 16812 16813 # Commands to make compiler produce verbose output that lists 16814 # what "hidden" libraries, object files and flags are used when 16815 # linking a shared library. 16816 # 16817 # There doesn't appear to be a way to prevent this compiler from 16818 # explicitly linking system object files so we need to strip them 16819 # from the output so that they don't get included in the library 16820 # dependencies. 16821 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"' 16822 ;; 16823 *) 16824 if test yes,no = "$GXX,$with_gnu_ld"; then 16825 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 16826 case $host in 16827 osf3*) 16828 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' 16829 ;; 16830 *) 16831 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' 16832 ;; 16833 esac 16834 16835 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 16836 hardcode_libdir_separator_CXX=: 16837 16838 # Commands to make compiler produce verbose output that lists 16839 # what "hidden" libraries, object files and flags are used when 16840 # linking a shared library. 16841 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 16842 16843 else 16844 # FIXME: insert proper C++ library support 16845 ld_shlibs_CXX=no 16846 fi 16847 ;; 16848 esac 16849 ;; 16850 16851 psos*) 16852 # FIXME: insert proper C++ library support 16853 ld_shlibs_CXX=no 16854 ;; 16855 16856 sunos4*) 16857 case $cc_basename in 16858 CC*) 16859 # Sun C++ 4.x 16860 # FIXME: insert proper C++ library support 16861 ld_shlibs_CXX=no 16862 ;; 16863 lcc*) 16864 # Lucid 16865 # FIXME: insert proper C++ library support 16866 ld_shlibs_CXX=no 16867 ;; 16868 *) 16869 # FIXME: insert proper C++ library support 16870 ld_shlibs_CXX=no 16871 ;; 16872 esac 16873 ;; 16874 16875 solaris*) 16876 case $cc_basename in 16877 CC* | sunCC*) 16878 # Sun C++ 4.2, 5.x and Centerline C++ 16879 archive_cmds_need_lc_CXX=yes 16880 no_undefined_flag_CXX=' -zdefs' 16881 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 16882 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16883 $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' 16884 16885 hardcode_libdir_flag_spec_CXX='-R$libdir' 16886 hardcode_shlibpath_var_CXX=no 16887 case $host_os in 16888 solaris2.[0-5] | solaris2.[0-5].*) ;; 16889 *) 16890 # The compiler driver will combine and reorder linker options, 16891 # but understands '-z linker_flag'. 16892 # Supported since Solaris 2.6 (maybe 2.5.1?) 16893 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 16894 ;; 16895 esac 16896 link_all_deplibs_CXX=yes 16897 16898 output_verbose_link_cmd='func_echo_all' 16899 16900 # Archives containing C++ object files must be created using 16901 # "CC -xar", where "CC" is the Sun C++ compiler. This is 16902 # necessary to make sure instantiated templates are included 16903 # in the archive. 16904 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 16905 ;; 16906 gcx*) 16907 # Green Hills C++ Compiler 16908 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 16909 16910 # The C++ compiler must be used to create the archive. 16911 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 16912 ;; 16913 *) 16914 # GNU C++ compiler with Solaris linker 16915 if test yes,no = "$GXX,$with_gnu_ld"; then 16916 no_undefined_flag_CXX=' $wl-z ${wl}defs' 16917 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 16918 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 16919 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16920 $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' 16921 16922 # Commands to make compiler produce verbose output that lists 16923 # what "hidden" libraries, object files and flags are used when 16924 # linking a shared library. 16925 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 16926 else 16927 # g++ 2.7 appears to require '-G' NOT '-shared' on this 16928 # platform. 16929 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 16930 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16931 $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' 16932 16933 # Commands to make compiler produce verbose output that lists 16934 # what "hidden" libraries, object files and flags are used when 16935 # linking a shared library. 16936 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 16937 fi 16938 16939 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 16940 case $host_os in 16941 solaris2.[0-5] | solaris2.[0-5].*) ;; 16942 *) 16943 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 16944 ;; 16945 esac 16946 fi 16947 ;; 16948 esac 16949 ;; 16950 16951 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 16952 no_undefined_flag_CXX='$wl-z,text' 16953 archive_cmds_need_lc_CXX=no 16954 hardcode_shlibpath_var_CXX=no 16955 runpath_var='LD_RUN_PATH' 16956 16957 case $cc_basename in 16958 CC*) 16959 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16960 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16961 ;; 16962 *) 16963 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16964 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16965 ;; 16966 esac 16967 ;; 16968 16969 sysv5* | sco3.2v5* | sco5v6*) 16970 # Note: We CANNOT use -z defs as we might desire, because we do not 16971 # link with -lc, and that would cause any symbols used from libc to 16972 # always be unresolved, which means just about no library would 16973 # ever link correctly. If we're not using GNU ld we use -z text 16974 # though, which does catch some bad symbols but isn't as heavy-handed 16975 # as -z defs. 16976 no_undefined_flag_CXX='$wl-z,text' 16977 allow_undefined_flag_CXX='$wl-z,nodefs' 16978 archive_cmds_need_lc_CXX=no 16979 hardcode_shlibpath_var_CXX=no 16980 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 16981 hardcode_libdir_separator_CXX=':' 16982 link_all_deplibs_CXX=yes 16983 export_dynamic_flag_spec_CXX='$wl-Bexport' 16984 runpath_var='LD_RUN_PATH' 16985 16986 case $cc_basename in 16987 CC*) 16988 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16989 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16990 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 16991 '"$old_archive_cmds_CXX" 16992 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 16993 '"$reload_cmds_CXX" 16994 ;; 16995 *) 16996 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16997 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16998 ;; 16999 esac 17000 ;; 17001 17002 tandem*) 17003 case $cc_basename in 17004 NCC*) 17005 # NonStop-UX NCC 3.20 17006 # FIXME: insert proper C++ library support 17007 ld_shlibs_CXX=no 17008 ;; 17009 *) 17010 # FIXME: insert proper C++ library support 17011 ld_shlibs_CXX=no 17012 ;; 17013 esac 17014 ;; 17015 17016 vxworks*) 17017 # FIXME: insert proper C++ library support 17018 ld_shlibs_CXX=no 17019 ;; 17020 17021 *) 17022 # FIXME: insert proper C++ library support 17023 ld_shlibs_CXX=no 17024 ;; 17025 esac 17026 17027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 17028printf "%s\n" "$ld_shlibs_CXX" >&6; } 17029 test no = "$ld_shlibs_CXX" && can_build_shared=no 17030 17031 GCC_CXX=$GXX 17032 LD_CXX=$LD 17033 17034 ## CAVEAT EMPTOR: 17035 ## There is no encapsulation within the following macros, do not change 17036 ## the running order or otherwise move them around unless you know exactly 17037 ## what you are doing... 17038 # Dependencies to place before and after the object being linked: 17039predep_objects_CXX= 17040postdep_objects_CXX= 17041predeps_CXX= 17042postdeps_CXX= 17043compiler_lib_search_path_CXX= 17044 17045cat > conftest.$ac_ext <<_LT_EOF 17046class Foo 17047{ 17048public: 17049 Foo (void) { a = 0; } 17050private: 17051 int a; 17052}; 17053_LT_EOF 17054 17055 17056_lt_libdeps_save_CFLAGS=$CFLAGS 17057case "$CC $CFLAGS " in #( 17058*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 17059*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 17060*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 17061esac 17062 17063if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 17064 (eval $ac_compile) 2>&5 17065 ac_status=$? 17066 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17067 test $ac_status = 0; }; then 17068 # Parse the compiler output and extract the necessary 17069 # objects, libraries and library flags. 17070 17071 # Sentinel used to keep track of whether or not we are before 17072 # the conftest object file. 17073 pre_test_object_deps_done=no 17074 17075 for p in `eval "$output_verbose_link_cmd"`; do 17076 case $prev$p in 17077 17078 -L* | -R* | -l*) 17079 # Some compilers place space between "-{L,R}" and the path. 17080 # Remove the space. 17081 if test x-L = "$p" || 17082 test x-R = "$p"; then 17083 prev=$p 17084 continue 17085 fi 17086 17087 # Expand the sysroot to ease extracting the directories later. 17088 if test -z "$prev"; then 17089 case $p in 17090 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 17091 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 17092 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 17093 esac 17094 fi 17095 case $p in 17096 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 17097 esac 17098 if test no = "$pre_test_object_deps_done"; then 17099 case $prev in 17100 -L | -R) 17101 # Internal compiler library paths should come after those 17102 # provided the user. The postdeps already come after the 17103 # user supplied libs so there is no need to process them. 17104 if test -z "$compiler_lib_search_path_CXX"; then 17105 compiler_lib_search_path_CXX=$prev$p 17106 else 17107 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 17108 fi 17109 ;; 17110 # The "-l" case would never come before the object being 17111 # linked, so don't bother handling this case. 17112 esac 17113 else 17114 if test -z "$postdeps_CXX"; then 17115 postdeps_CXX=$prev$p 17116 else 17117 postdeps_CXX="${postdeps_CXX} $prev$p" 17118 fi 17119 fi 17120 prev= 17121 ;; 17122 17123 *.lto.$objext) ;; # Ignore GCC LTO objects 17124 *.$objext) 17125 # This assumes that the test object file only shows up 17126 # once in the compiler output. 17127 if test "$p" = "conftest.$objext"; then 17128 pre_test_object_deps_done=yes 17129 continue 17130 fi 17131 17132 if test no = "$pre_test_object_deps_done"; then 17133 if test -z "$predep_objects_CXX"; then 17134 predep_objects_CXX=$p 17135 else 17136 predep_objects_CXX="$predep_objects_CXX $p" 17137 fi 17138 else 17139 if test -z "$postdep_objects_CXX"; then 17140 postdep_objects_CXX=$p 17141 else 17142 postdep_objects_CXX="$postdep_objects_CXX $p" 17143 fi 17144 fi 17145 ;; 17146 17147 *) ;; # Ignore the rest. 17148 17149 esac 17150 done 17151 17152 # Clean up. 17153 rm -f a.out a.exe 17154else 17155 echo "libtool.m4: error: problem compiling CXX test program" 17156fi 17157 17158$RM -f confest.$objext 17159CFLAGS=$_lt_libdeps_save_CFLAGS 17160 17161# PORTME: override above test on systems where it is broken 17162case $host_os in 17163interix[3-9]*) 17164 # Interix 3.5 installs completely hosed .la files for C++, so rather than 17165 # hack all around it, let's just trust "g++" to DTRT. 17166 predep_objects_CXX= 17167 postdep_objects_CXX= 17168 postdeps_CXX= 17169 ;; 17170esac 17171 17172 17173case " $postdeps_CXX " in 17174*" -lc "*) archive_cmds_need_lc_CXX=no ;; 17175esac 17176 compiler_lib_search_dirs_CXX= 17177if test -n "${compiler_lib_search_path_CXX}"; then 17178 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 17179fi 17180 17181 17182 17183 17184 17185 17186 17187 17188 17189 17190 17191 17192 17193 17194 17195 17196 17197 17198 17199 17200 17201 17202 17203 17204 17205 17206 17207 17208 17209 17210 17211 lt_prog_compiler_wl_CXX= 17212lt_prog_compiler_pic_CXX= 17213lt_prog_compiler_static_CXX= 17214 17215 17216 # C++ specific cases for pic, static, wl, etc. 17217 if test yes = "$GXX"; then 17218 lt_prog_compiler_wl_CXX='-Wl,' 17219 lt_prog_compiler_static_CXX='-static' 17220 17221 case $host_os in 17222 aix*) 17223 # All AIX code is PIC. 17224 if test ia64 = "$host_cpu"; then 17225 # AIX 5 now supports IA64 processor 17226 lt_prog_compiler_static_CXX='-Bstatic' 17227 fi 17228 lt_prog_compiler_pic_CXX='-fPIC' 17229 ;; 17230 17231 amigaos*) 17232 case $host_cpu in 17233 powerpc) 17234 # see comment about AmigaOS4 .so support 17235 lt_prog_compiler_pic_CXX='-fPIC' 17236 ;; 17237 m68k) 17238 # FIXME: we need at least 68020 code to build shared libraries, but 17239 # adding the '-m68020' flag to GCC prevents building anything better, 17240 # like '-m68040'. 17241 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 17242 ;; 17243 esac 17244 ;; 17245 17246 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 17247 # PIC is the default for these OSes. 17248 ;; 17249 mingw* | cygwin* | os2* | pw32* | cegcc*) 17250 # This hack is so that the source file can tell whether it is being 17251 # built for inclusion in a dll (and should export symbols for example). 17252 # Although the cygwin gcc ignores -fPIC, still need this for old-style 17253 # (--disable-auto-import) libraries 17254 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 17255 case $host_os in 17256 os2*) 17257 lt_prog_compiler_static_CXX='$wl-static' 17258 ;; 17259 esac 17260 ;; 17261 darwin* | rhapsody*) 17262 # PIC is the default on this platform 17263 # Common symbols not allowed in MH_DYLIB files 17264 lt_prog_compiler_pic_CXX='-fno-common' 17265 ;; 17266 *djgpp*) 17267 # DJGPP does not support shared libraries at all 17268 lt_prog_compiler_pic_CXX= 17269 ;; 17270 haiku*) 17271 # PIC is the default for Haiku. 17272 # The "-static" flag exists, but is broken. 17273 lt_prog_compiler_static_CXX= 17274 ;; 17275 interix[3-9]*) 17276 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 17277 # Instead, we relocate shared libraries at runtime. 17278 ;; 17279 sysv4*MP*) 17280 if test -d /usr/nec; then 17281 lt_prog_compiler_pic_CXX=-Kconform_pic 17282 fi 17283 ;; 17284 hpux*) 17285 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 17286 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 17287 # sets the default TLS model and affects inlining. 17288 case $host_cpu in 17289 hppa*64*) 17290 ;; 17291 *) 17292 lt_prog_compiler_pic_CXX='-fPIC' 17293 ;; 17294 esac 17295 ;; 17296 *qnx* | *nto*) 17297 # QNX uses GNU C++, but need to define -shared option too, otherwise 17298 # it will coredump. 17299 lt_prog_compiler_pic_CXX='-fPIC -shared' 17300 ;; 17301 *) 17302 lt_prog_compiler_pic_CXX='-fPIC' 17303 ;; 17304 esac 17305 else 17306 case $host_os in 17307 aix[4-9]*) 17308 # All AIX code is PIC. 17309 if test ia64 = "$host_cpu"; then 17310 # AIX 5 now supports IA64 processor 17311 lt_prog_compiler_static_CXX='-Bstatic' 17312 else 17313 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 17314 fi 17315 ;; 17316 chorus*) 17317 case $cc_basename in 17318 cxch68*) 17319 # Green Hills C++ Compiler 17320 # _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" 17321 ;; 17322 esac 17323 ;; 17324 mingw* | cygwin* | os2* | pw32* | cegcc*) 17325 # This hack is so that the source file can tell whether it is being 17326 # built for inclusion in a dll (and should export symbols for example). 17327 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 17328 ;; 17329 dgux*) 17330 case $cc_basename in 17331 ec++*) 17332 lt_prog_compiler_pic_CXX='-KPIC' 17333 ;; 17334 ghcx*) 17335 # Green Hills C++ Compiler 17336 lt_prog_compiler_pic_CXX='-pic' 17337 ;; 17338 *) 17339 ;; 17340 esac 17341 ;; 17342 freebsd* | dragonfly*) 17343 # FreeBSD uses GNU C++ 17344 ;; 17345 hpux9* | hpux10* | hpux11*) 17346 case $cc_basename in 17347 CC*) 17348 lt_prog_compiler_wl_CXX='-Wl,' 17349 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 17350 if test ia64 != "$host_cpu"; then 17351 lt_prog_compiler_pic_CXX='+Z' 17352 fi 17353 ;; 17354 aCC*) 17355 lt_prog_compiler_wl_CXX='-Wl,' 17356 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 17357 case $host_cpu in 17358 hppa*64*|ia64*) 17359 # +Z the default 17360 ;; 17361 *) 17362 lt_prog_compiler_pic_CXX='+Z' 17363 ;; 17364 esac 17365 ;; 17366 *) 17367 ;; 17368 esac 17369 ;; 17370 interix*) 17371 # This is c89, which is MS Visual C++ (no shared libs) 17372 # Anyone wants to do a port? 17373 ;; 17374 irix5* | irix6* | nonstopux*) 17375 case $cc_basename in 17376 CC*) 17377 lt_prog_compiler_wl_CXX='-Wl,' 17378 lt_prog_compiler_static_CXX='-non_shared' 17379 # CC pic flag -KPIC is the default. 17380 ;; 17381 *) 17382 ;; 17383 esac 17384 ;; 17385 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 17386 case $cc_basename in 17387 KCC*) 17388 # KAI C++ Compiler 17389 lt_prog_compiler_wl_CXX='--backend -Wl,' 17390 lt_prog_compiler_pic_CXX='-fPIC' 17391 ;; 17392 ecpc* ) 17393 # old Intel C++ for x86_64, which still supported -KPIC. 17394 lt_prog_compiler_wl_CXX='-Wl,' 17395 lt_prog_compiler_pic_CXX='-KPIC' 17396 lt_prog_compiler_static_CXX='-static' 17397 ;; 17398 icpc* ) 17399 # Intel C++, used to be incompatible with GCC. 17400 # ICC 10 doesn't accept -KPIC any more. 17401 lt_prog_compiler_wl_CXX='-Wl,' 17402 lt_prog_compiler_pic_CXX='-fPIC' 17403 lt_prog_compiler_static_CXX='-static' 17404 ;; 17405 pgCC* | pgcpp*) 17406 # Portland Group C++ compiler 17407 lt_prog_compiler_wl_CXX='-Wl,' 17408 lt_prog_compiler_pic_CXX='-fpic' 17409 lt_prog_compiler_static_CXX='-Bstatic' 17410 ;; 17411 cxx*) 17412 # Compaq C++ 17413 # Make sure the PIC flag is empty. It appears that all Alpha 17414 # Linux and Compaq Tru64 Unix objects are PIC. 17415 lt_prog_compiler_pic_CXX= 17416 lt_prog_compiler_static_CXX='-non_shared' 17417 ;; 17418 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 17419 # IBM XL 8.0, 9.0 on PPC and BlueGene 17420 lt_prog_compiler_wl_CXX='-Wl,' 17421 lt_prog_compiler_pic_CXX='-qpic' 17422 lt_prog_compiler_static_CXX='-qstaticlink' 17423 ;; 17424 *) 17425 case `$CC -V 2>&1 | sed 5q` in 17426 *Sun\ C*) 17427 # Sun C++ 5.9 17428 lt_prog_compiler_pic_CXX='-KPIC' 17429 lt_prog_compiler_static_CXX='-Bstatic' 17430 lt_prog_compiler_wl_CXX='-Qoption ld ' 17431 ;; 17432 esac 17433 ;; 17434 esac 17435 ;; 17436 lynxos*) 17437 ;; 17438 m88k*) 17439 ;; 17440 mvs*) 17441 case $cc_basename in 17442 cxx*) 17443 lt_prog_compiler_pic_CXX='-W c,exportall' 17444 ;; 17445 *) 17446 ;; 17447 esac 17448 ;; 17449 netbsd*) 17450 ;; 17451 *qnx* | *nto*) 17452 # QNX uses GNU C++, but need to define -shared option too, otherwise 17453 # it will coredump. 17454 lt_prog_compiler_pic_CXX='-fPIC -shared' 17455 ;; 17456 osf3* | osf4* | osf5*) 17457 case $cc_basename in 17458 KCC*) 17459 lt_prog_compiler_wl_CXX='--backend -Wl,' 17460 ;; 17461 RCC*) 17462 # Rational C++ 2.4.1 17463 lt_prog_compiler_pic_CXX='-pic' 17464 ;; 17465 cxx*) 17466 # Digital/Compaq C++ 17467 lt_prog_compiler_wl_CXX='-Wl,' 17468 # Make sure the PIC flag is empty. It appears that all Alpha 17469 # Linux and Compaq Tru64 Unix objects are PIC. 17470 lt_prog_compiler_pic_CXX= 17471 lt_prog_compiler_static_CXX='-non_shared' 17472 ;; 17473 *) 17474 ;; 17475 esac 17476 ;; 17477 psos*) 17478 ;; 17479 solaris*) 17480 case $cc_basename in 17481 CC* | sunCC*) 17482 # Sun C++ 4.2, 5.x and Centerline C++ 17483 lt_prog_compiler_pic_CXX='-KPIC' 17484 lt_prog_compiler_static_CXX='-Bstatic' 17485 lt_prog_compiler_wl_CXX='-Qoption ld ' 17486 ;; 17487 gcx*) 17488 # Green Hills C++ Compiler 17489 lt_prog_compiler_pic_CXX='-PIC' 17490 ;; 17491 *) 17492 ;; 17493 esac 17494 ;; 17495 sunos4*) 17496 case $cc_basename in 17497 CC*) 17498 # Sun C++ 4.x 17499 lt_prog_compiler_pic_CXX='-pic' 17500 lt_prog_compiler_static_CXX='-Bstatic' 17501 ;; 17502 lcc*) 17503 # Lucid 17504 lt_prog_compiler_pic_CXX='-pic' 17505 ;; 17506 *) 17507 ;; 17508 esac 17509 ;; 17510 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 17511 case $cc_basename in 17512 CC*) 17513 lt_prog_compiler_wl_CXX='-Wl,' 17514 lt_prog_compiler_pic_CXX='-KPIC' 17515 lt_prog_compiler_static_CXX='-Bstatic' 17516 ;; 17517 esac 17518 ;; 17519 tandem*) 17520 case $cc_basename in 17521 NCC*) 17522 # NonStop-UX NCC 3.20 17523 lt_prog_compiler_pic_CXX='-KPIC' 17524 ;; 17525 *) 17526 ;; 17527 esac 17528 ;; 17529 vxworks*) 17530 ;; 17531 *) 17532 lt_prog_compiler_can_build_shared_CXX=no 17533 ;; 17534 esac 17535 fi 17536 17537case $host_os in 17538 # For platforms that do not support PIC, -DPIC is meaningless: 17539 *djgpp*) 17540 lt_prog_compiler_pic_CXX= 17541 ;; 17542 *) 17543 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 17544 ;; 17545esac 17546 17547{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 17548printf %s "checking for $compiler option to produce PIC... " >&6; } 17549if test ${lt_cv_prog_compiler_pic_CXX+y} 17550then : 17551 printf %s "(cached) " >&6 17552else $as_nop 17553 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 17554fi 17555{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 17556printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; } 17557lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 17558 17559# 17560# Check to make sure the PIC flag actually works. 17561# 17562if test -n "$lt_prog_compiler_pic_CXX"; then 17563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 17564printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 17565if test ${lt_cv_prog_compiler_pic_works_CXX+y} 17566then : 17567 printf %s "(cached) " >&6 17568else $as_nop 17569 lt_cv_prog_compiler_pic_works_CXX=no 17570 ac_outfile=conftest.$ac_objext 17571 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17572 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment 17573 # Insert the option either (1) after the last *FLAGS variable, or 17574 # (2) before a word containing "conftest.", or (3) at the end. 17575 # Note that $ac_compile itself does not contain backslashes and begins 17576 # with a dollar sign (not a hyphen), so the echo should work correctly. 17577 # The option is referenced via a variable to avoid confusing sed. 17578 lt_compile=`echo "$ac_compile" | $SED \ 17579 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17580 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17581 -e 's:$: $lt_compiler_flag:'` 17582 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 17583 (eval "$lt_compile" 2>conftest.err) 17584 ac_status=$? 17585 cat conftest.err >&5 17586 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17587 if (exit $ac_status) && test -s "$ac_outfile"; then 17588 # The compiler can only warn and ignore the option if not recognized 17589 # So say no if there are warnings other than the usual output. 17590 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 17591 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17592 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17593 lt_cv_prog_compiler_pic_works_CXX=yes 17594 fi 17595 fi 17596 $RM conftest* 17597 17598fi 17599{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 17600printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 17601 17602if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 17603 case $lt_prog_compiler_pic_CXX in 17604 "" | " "*) ;; 17605 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 17606 esac 17607else 17608 lt_prog_compiler_pic_CXX= 17609 lt_prog_compiler_can_build_shared_CXX=no 17610fi 17611 17612fi 17613 17614 17615 17616 17617 17618# 17619# Check to make sure the static flag actually works. 17620# 17621wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 17622{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 17623printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 17624if test ${lt_cv_prog_compiler_static_works_CXX+y} 17625then : 17626 printf %s "(cached) " >&6 17627else $as_nop 17628 lt_cv_prog_compiler_static_works_CXX=no 17629 save_LDFLAGS=$LDFLAGS 17630 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 17631 echo "$lt_simple_link_test_code" > conftest.$ac_ext 17632 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17633 # The linker can only warn and ignore the option if not recognized 17634 # So say no if there are warnings 17635 if test -s conftest.err; then 17636 # Append any errors to the config.log. 17637 cat conftest.err 1>&5 17638 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 17639 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17640 if diff conftest.exp conftest.er2 >/dev/null; then 17641 lt_cv_prog_compiler_static_works_CXX=yes 17642 fi 17643 else 17644 lt_cv_prog_compiler_static_works_CXX=yes 17645 fi 17646 fi 17647 $RM -r conftest* 17648 LDFLAGS=$save_LDFLAGS 17649 17650fi 17651{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 17652printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; } 17653 17654if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 17655 : 17656else 17657 lt_prog_compiler_static_CXX= 17658fi 17659 17660 17661 17662 17663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 17664printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 17665if test ${lt_cv_prog_compiler_c_o_CXX+y} 17666then : 17667 printf %s "(cached) " >&6 17668else $as_nop 17669 lt_cv_prog_compiler_c_o_CXX=no 17670 $RM -r conftest 2>/dev/null 17671 mkdir conftest 17672 cd conftest 17673 mkdir out 17674 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17675 17676 lt_compiler_flag="-o out/conftest2.$ac_objext" 17677 # Insert the option either (1) after the last *FLAGS variable, or 17678 # (2) before a word containing "conftest.", or (3) at the end. 17679 # Note that $ac_compile itself does not contain backslashes and begins 17680 # with a dollar sign (not a hyphen), so the echo should work correctly. 17681 lt_compile=`echo "$ac_compile" | $SED \ 17682 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17683 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17684 -e 's:$: $lt_compiler_flag:'` 17685 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 17686 (eval "$lt_compile" 2>out/conftest.err) 17687 ac_status=$? 17688 cat out/conftest.err >&5 17689 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17690 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17691 then 17692 # The compiler can only warn and ignore the option if not recognized 17693 # So say no if there are warnings 17694 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 17695 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17696 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17697 lt_cv_prog_compiler_c_o_CXX=yes 17698 fi 17699 fi 17700 chmod u+w . 2>&5 17701 $RM conftest* 17702 # SGI C++ compiler will create directory out/ii_files/ for 17703 # template instantiation 17704 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 17705 $RM out/* && rmdir out 17706 cd .. 17707 $RM -r conftest 17708 $RM conftest* 17709 17710fi 17711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 17712printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; } 17713 17714 17715 17716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 17717printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 17718if test ${lt_cv_prog_compiler_c_o_CXX+y} 17719then : 17720 printf %s "(cached) " >&6 17721else $as_nop 17722 lt_cv_prog_compiler_c_o_CXX=no 17723 $RM -r conftest 2>/dev/null 17724 mkdir conftest 17725 cd conftest 17726 mkdir out 17727 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17728 17729 lt_compiler_flag="-o out/conftest2.$ac_objext" 17730 # Insert the option either (1) after the last *FLAGS variable, or 17731 # (2) before a word containing "conftest.", or (3) at the end. 17732 # Note that $ac_compile itself does not contain backslashes and begins 17733 # with a dollar sign (not a hyphen), so the echo should work correctly. 17734 lt_compile=`echo "$ac_compile" | $SED \ 17735 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17736 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17737 -e 's:$: $lt_compiler_flag:'` 17738 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 17739 (eval "$lt_compile" 2>out/conftest.err) 17740 ac_status=$? 17741 cat out/conftest.err >&5 17742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17743 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17744 then 17745 # The compiler can only warn and ignore the option if not recognized 17746 # So say no if there are warnings 17747 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 17748 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17749 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17750 lt_cv_prog_compiler_c_o_CXX=yes 17751 fi 17752 fi 17753 chmod u+w . 2>&5 17754 $RM conftest* 17755 # SGI C++ compiler will create directory out/ii_files/ for 17756 # template instantiation 17757 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 17758 $RM out/* && rmdir out 17759 cd .. 17760 $RM -r conftest 17761 $RM conftest* 17762 17763fi 17764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 17765printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; } 17766 17767 17768 17769 17770hard_links=nottested 17771if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 17772 # do not overwrite the value of need_locks provided by the user 17773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 17774printf %s "checking if we can lock with hard links... " >&6; } 17775 hard_links=yes 17776 $RM conftest* 17777 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17778 touch conftest.a 17779 ln conftest.a conftest.b 2>&5 || hard_links=no 17780 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 17782printf "%s\n" "$hard_links" >&6; } 17783 if test no = "$hard_links"; then 17784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 17785printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 17786 need_locks=warn 17787 fi 17788else 17789 need_locks=no 17790fi 17791 17792 17793 17794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17795printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 17796 17797 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17798 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 17799 case $host_os in 17800 aix[4-9]*) 17801 # If we're using GNU nm, then we don't want the "-C" option. 17802 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 17803 # Without the "-l" option, or with the "-B" option, AIX nm treats 17804 # weak defined symbols like other global defined symbols, whereas 17805 # GNU nm marks them as "W". 17806 # While the 'weak' keyword is ignored in the Export File, we need 17807 # it in the Import File for the 'aix-soname' feature, so we have 17808 # to replace the "-B" option with "-P" for AIX nm. 17809 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 17810 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' 17811 else 17812 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' 17813 fi 17814 ;; 17815 pw32*) 17816 export_symbols_cmds_CXX=$ltdll_cmds 17817 ;; 17818 cygwin* | mingw* | cegcc*) 17819 case $cc_basename in 17820 cl*) 17821 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 17822 ;; 17823 *) 17824 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' 17825 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 17826 ;; 17827 esac 17828 ;; 17829 *) 17830 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17831 ;; 17832 esac 17833 17834{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 17835printf "%s\n" "$ld_shlibs_CXX" >&6; } 17836test no = "$ld_shlibs_CXX" && can_build_shared=no 17837 17838with_gnu_ld_CXX=$with_gnu_ld 17839 17840 17841 17842 17843 17844 17845# 17846# Do we need to explicitly link libc? 17847# 17848case "x$archive_cmds_need_lc_CXX" in 17849x|xyes) 17850 # Assume -lc should be added 17851 archive_cmds_need_lc_CXX=yes 17852 17853 if test yes,yes = "$GCC,$enable_shared"; then 17854 case $archive_cmds_CXX in 17855 *'~'*) 17856 # FIXME: we may have to deal with multi-command sequences. 17857 ;; 17858 '$CC '*) 17859 # Test whether the compiler implicitly links with -lc since on some 17860 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17861 # to ld, don't add -lc before -lgcc. 17862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 17863printf %s "checking whether -lc should be explicitly linked in... " >&6; } 17864if test ${lt_cv_archive_cmds_need_lc_CXX+y} 17865then : 17866 printf %s "(cached) " >&6 17867else $as_nop 17868 $RM conftest* 17869 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17870 17871 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 17872 (eval $ac_compile) 2>&5 17873 ac_status=$? 17874 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17875 test $ac_status = 0; } 2>conftest.err; then 17876 soname=conftest 17877 lib=conftest 17878 libobjs=conftest.$ac_objext 17879 deplibs= 17880 wl=$lt_prog_compiler_wl_CXX 17881 pic_flag=$lt_prog_compiler_pic_CXX 17882 compiler_flags=-v 17883 linker_flags=-v 17884 verstring= 17885 output_objdir=. 17886 libname=conftest 17887 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 17888 allow_undefined_flag_CXX= 17889 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 17890 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 17891 ac_status=$? 17892 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17893 test $ac_status = 0; } 17894 then 17895 lt_cv_archive_cmds_need_lc_CXX=no 17896 else 17897 lt_cv_archive_cmds_need_lc_CXX=yes 17898 fi 17899 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 17900 else 17901 cat conftest.err 1>&5 17902 fi 17903 $RM conftest* 17904 17905fi 17906{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 17907printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 17908 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 17909 ;; 17910 esac 17911 fi 17912 ;; 17913esac 17914 17915 17916 17917 17918 17919 17920 17921 17922 17923 17924 17925 17926 17927 17928 17929 17930 17931 17932 17933 17934 17935 17936 17937 17938 17939 17940 17941 17942 17943 17944 17945 17946 17947 17948 17949 17950 17951 17952 17953 17954 17955 17956 17957 17958 17959 17960 17961 17962 17963 17964 17965 17966 17967 17968 17969 17970 17971 17972 17973 17974 17975 17976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 17977printf %s "checking dynamic linker characteristics... " >&6; } 17978 17979library_names_spec= 17980libname_spec='lib$name' 17981soname_spec= 17982shrext_cmds=.so 17983postinstall_cmds= 17984postuninstall_cmds= 17985finish_cmds= 17986finish_eval= 17987shlibpath_var= 17988shlibpath_overrides_runpath=unknown 17989version_type=none 17990dynamic_linker="$host_os ld.so" 17991sys_lib_dlsearch_path_spec="/lib /usr/lib" 17992need_lib_prefix=unknown 17993hardcode_into_libs=no 17994 17995# when you set need_version to no, make sure it does not cause -set_version 17996# flags to be left without arguments 17997need_version=unknown 17998 17999 18000 18001case $host_os in 18002aix3*) 18003 version_type=linux # correct to gnu/linux during the next big refactor 18004 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 18005 shlibpath_var=LIBPATH 18006 18007 # AIX 3 has no versioning support, so we append a major version to the name. 18008 soname_spec='$libname$release$shared_ext$major' 18009 ;; 18010 18011aix[4-9]*) 18012 version_type=linux # correct to gnu/linux during the next big refactor 18013 need_lib_prefix=no 18014 need_version=no 18015 hardcode_into_libs=yes 18016 if test ia64 = "$host_cpu"; then 18017 # AIX 5 supports IA64 18018 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 18019 shlibpath_var=LD_LIBRARY_PATH 18020 else 18021 # With GCC up to 2.95.x, collect2 would create an import file 18022 # for dependence libraries. The import file would start with 18023 # the line '#! .'. This would cause the generated library to 18024 # depend on '.', always an invalid library. This was fixed in 18025 # development snapshots of GCC prior to 3.0. 18026 case $host_os in 18027 aix4 | aix4.[01] | aix4.[01].*) 18028 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18029 echo ' yes ' 18030 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 18031 : 18032 else 18033 can_build_shared=no 18034 fi 18035 ;; 18036 esac 18037 # Using Import Files as archive members, it is possible to support 18038 # filename-based versioning of shared library archives on AIX. While 18039 # this would work for both with and without runtime linking, it will 18040 # prevent static linking of such archives. So we do filename-based 18041 # shared library versioning with .so extension only, which is used 18042 # when both runtime linking and shared linking is enabled. 18043 # Unfortunately, runtime linking may impact performance, so we do 18044 # not want this to be the default eventually. Also, we use the 18045 # versioned .so libs for executables only if there is the -brtl 18046 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 18047 # To allow for filename-based versioning support, we need to create 18048 # libNAME.so.V as an archive file, containing: 18049 # *) an Import File, referring to the versioned filename of the 18050 # archive as well as the shared archive member, telling the 18051 # bitwidth (32 or 64) of that shared object, and providing the 18052 # list of exported symbols of that shared object, eventually 18053 # decorated with the 'weak' keyword 18054 # *) the shared object with the F_LOADONLY flag set, to really avoid 18055 # it being seen by the linker. 18056 # At run time we better use the real file rather than another symlink, 18057 # but for link time we create the symlink libNAME.so -> libNAME.so.V 18058 18059 case $with_aix_soname,$aix_use_runtimelinking in 18060 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 18061 # soname into executable. Probably we can add versioning support to 18062 # collect2, so additional links can be useful in future. 18063 aix,yes) # traditional libtool 18064 dynamic_linker='AIX unversionable lib.so' 18065 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18066 # instead of lib<name>.a to let people know that these are not 18067 # typical AIX shared libraries. 18068 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18069 ;; 18070 aix,no) # traditional AIX only 18071 dynamic_linker='AIX lib.a(lib.so.V)' 18072 # We preserve .a as extension for shared libraries through AIX4.2 18073 # and later when we are not doing run time linking. 18074 library_names_spec='$libname$release.a $libname.a' 18075 soname_spec='$libname$release$shared_ext$major' 18076 ;; 18077 svr4,*) # full svr4 only 18078 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 18079 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 18080 # We do not specify a path in Import Files, so LIBPATH fires. 18081 shlibpath_overrides_runpath=yes 18082 ;; 18083 *,yes) # both, prefer svr4 18084 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 18085 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 18086 # unpreferred sharedlib libNAME.a needs extra handling 18087 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"' 18088 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"' 18089 # We do not specify a path in Import Files, so LIBPATH fires. 18090 shlibpath_overrides_runpath=yes 18091 ;; 18092 *,no) # both, prefer aix 18093 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 18094 library_names_spec='$libname$release.a $libname.a' 18095 soname_spec='$libname$release$shared_ext$major' 18096 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 18097 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)' 18098 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"' 18099 ;; 18100 esac 18101 shlibpath_var=LIBPATH 18102 fi 18103 ;; 18104 18105amigaos*) 18106 case $host_cpu in 18107 powerpc) 18108 # Since July 2007 AmigaOS4 officially supports .so libraries. 18109 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 18110 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18111 ;; 18112 m68k) 18113 library_names_spec='$libname.ixlibrary $libname.a' 18114 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18115 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' 18116 ;; 18117 esac 18118 ;; 18119 18120beos*) 18121 library_names_spec='$libname$shared_ext' 18122 dynamic_linker="$host_os ld.so" 18123 shlibpath_var=LIBRARY_PATH 18124 ;; 18125 18126bsdi[45]*) 18127 version_type=linux # correct to gnu/linux during the next big refactor 18128 need_version=no 18129 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18130 soname_spec='$libname$release$shared_ext$major' 18131 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18132 shlibpath_var=LD_LIBRARY_PATH 18133 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18134 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18135 # the default ld.so.conf also contains /usr/contrib/lib and 18136 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18137 # libtool to hard-code these into programs 18138 ;; 18139 18140cygwin* | mingw* | pw32* | cegcc*) 18141 version_type=windows 18142 shrext_cmds=.dll 18143 need_version=no 18144 need_lib_prefix=no 18145 18146 case $GCC,$cc_basename in 18147 yes,*) 18148 # gcc 18149 library_names_spec='$libname.dll.a' 18150 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18151 postinstall_cmds='base_file=`basename \$file`~ 18152 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 18153 dldir=$destdir/`dirname \$dlpath`~ 18154 test -d \$dldir || mkdir -p \$dldir~ 18155 $install_prog $dir/$dlname \$dldir/$dlname~ 18156 chmod a+x \$dldir/$dlname~ 18157 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 18158 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 18159 fi' 18160 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18161 dlpath=$dir/\$dldll~ 18162 $RM \$dlpath' 18163 shlibpath_overrides_runpath=yes 18164 18165 case $host_os in 18166 cygwin*) 18167 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18168 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18169 18170 ;; 18171 mingw* | cegcc*) 18172 # MinGW DLLs use traditional 'lib' prefix 18173 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18174 ;; 18175 pw32*) 18176 # pw32 DLLs use 'pw' prefix rather than 'lib' 18177 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18178 ;; 18179 esac 18180 dynamic_linker='Win32 ld.exe' 18181 ;; 18182 18183 *,cl*) 18184 # Native MSVC 18185 libname_spec='$name' 18186 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18187 library_names_spec='$libname.dll.lib' 18188 18189 case $build_os in 18190 mingw*) 18191 sys_lib_search_path_spec= 18192 lt_save_ifs=$IFS 18193 IFS=';' 18194 for lt_path in $LIB 18195 do 18196 IFS=$lt_save_ifs 18197 # Let DOS variable expansion print the short 8.3 style file name. 18198 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 18199 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 18200 done 18201 IFS=$lt_save_ifs 18202 # Convert to MSYS style. 18203 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 18204 ;; 18205 cygwin*) 18206 # Convert to unix form, then to dos form, then back to unix form 18207 # but this time dos style (no spaces!) so that the unix form looks 18208 # like /cygdrive/c/PROGRA~1:/cygdr... 18209 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 18210 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 18211 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18212 ;; 18213 *) 18214 sys_lib_search_path_spec=$LIB 18215 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 18216 # It is most probably a Windows format PATH. 18217 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18218 else 18219 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18220 fi 18221 # FIXME: find the short name or the path components, as spaces are 18222 # common. (e.g. "Program Files" -> "PROGRA~1") 18223 ;; 18224 esac 18225 18226 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18227 postinstall_cmds='base_file=`basename \$file`~ 18228 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 18229 dldir=$destdir/`dirname \$dlpath`~ 18230 test -d \$dldir || mkdir -p \$dldir~ 18231 $install_prog $dir/$dlname \$dldir/$dlname' 18232 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18233 dlpath=$dir/\$dldll~ 18234 $RM \$dlpath' 18235 shlibpath_overrides_runpath=yes 18236 dynamic_linker='Win32 link.exe' 18237 ;; 18238 18239 *) 18240 # Assume MSVC wrapper 18241 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 18242 dynamic_linker='Win32 ld.exe' 18243 ;; 18244 esac 18245 # FIXME: first we should search . and the directory the executable is in 18246 shlibpath_var=PATH 18247 ;; 18248 18249darwin* | rhapsody*) 18250 dynamic_linker="$host_os dyld" 18251 version_type=darwin 18252 need_lib_prefix=no 18253 need_version=no 18254 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 18255 soname_spec='$libname$release$major$shared_ext' 18256 shlibpath_overrides_runpath=yes 18257 shlibpath_var=DYLD_LIBRARY_PATH 18258 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18259 18260 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18261 ;; 18262 18263dgux*) 18264 version_type=linux # correct to gnu/linux during the next big refactor 18265 need_lib_prefix=no 18266 need_version=no 18267 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18268 soname_spec='$libname$release$shared_ext$major' 18269 shlibpath_var=LD_LIBRARY_PATH 18270 ;; 18271 18272freebsd* | dragonfly*) 18273 # DragonFly does not have aout. When/if they implement a new 18274 # versioning mechanism, adjust this. 18275 if test -x /usr/bin/objformat; then 18276 objformat=`/usr/bin/objformat` 18277 else 18278 case $host_os in 18279 freebsd[23].*) objformat=aout ;; 18280 *) objformat=elf ;; 18281 esac 18282 fi 18283 version_type=freebsd-$objformat 18284 case $version_type in 18285 freebsd-elf*) 18286 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18287 soname_spec='$libname$release$shared_ext$major' 18288 need_version=no 18289 need_lib_prefix=no 18290 ;; 18291 freebsd-*) 18292 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18293 need_version=yes 18294 ;; 18295 esac 18296 shlibpath_var=LD_LIBRARY_PATH 18297 case $host_os in 18298 freebsd2.*) 18299 shlibpath_overrides_runpath=yes 18300 ;; 18301 freebsd3.[01]* | freebsdelf3.[01]*) 18302 shlibpath_overrides_runpath=yes 18303 hardcode_into_libs=yes 18304 ;; 18305 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18306 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18307 shlibpath_overrides_runpath=no 18308 hardcode_into_libs=yes 18309 ;; 18310 *) # from 4.6 on, and DragonFly 18311 shlibpath_overrides_runpath=yes 18312 hardcode_into_libs=yes 18313 ;; 18314 esac 18315 ;; 18316 18317haiku*) 18318 version_type=linux # correct to gnu/linux during the next big refactor 18319 need_lib_prefix=no 18320 need_version=no 18321 dynamic_linker="$host_os runtime_loader" 18322 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18323 soname_spec='$libname$release$shared_ext$major' 18324 shlibpath_var=LIBRARY_PATH 18325 shlibpath_overrides_runpath=no 18326 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 18327 hardcode_into_libs=yes 18328 ;; 18329 18330hpux9* | hpux10* | hpux11*) 18331 # Give a soname corresponding to the major version so that dld.sl refuses to 18332 # link against other versions. 18333 version_type=sunos 18334 need_lib_prefix=no 18335 need_version=no 18336 case $host_cpu in 18337 ia64*) 18338 shrext_cmds='.so' 18339 hardcode_into_libs=yes 18340 dynamic_linker="$host_os dld.so" 18341 shlibpath_var=LD_LIBRARY_PATH 18342 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18343 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18344 soname_spec='$libname$release$shared_ext$major' 18345 if test 32 = "$HPUX_IA64_MODE"; then 18346 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18347 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 18348 else 18349 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18350 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 18351 fi 18352 ;; 18353 hppa*64*) 18354 shrext_cmds='.sl' 18355 hardcode_into_libs=yes 18356 dynamic_linker="$host_os dld.sl" 18357 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18358 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18359 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18360 soname_spec='$libname$release$shared_ext$major' 18361 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18362 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18363 ;; 18364 *) 18365 shrext_cmds='.sl' 18366 dynamic_linker="$host_os dld.sl" 18367 shlibpath_var=SHLIB_PATH 18368 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18369 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18370 soname_spec='$libname$release$shared_ext$major' 18371 ;; 18372 esac 18373 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 18374 postinstall_cmds='chmod 555 $lib' 18375 # or fails outright, so override atomically: 18376 install_override_mode=555 18377 ;; 18378 18379interix[3-9]*) 18380 version_type=linux # correct to gnu/linux during the next big refactor 18381 need_lib_prefix=no 18382 need_version=no 18383 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18384 soname_spec='$libname$release$shared_ext$major' 18385 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18386 shlibpath_var=LD_LIBRARY_PATH 18387 shlibpath_overrides_runpath=no 18388 hardcode_into_libs=yes 18389 ;; 18390 18391irix5* | irix6* | nonstopux*) 18392 case $host_os in 18393 nonstopux*) version_type=nonstopux ;; 18394 *) 18395 if test yes = "$lt_cv_prog_gnu_ld"; then 18396 version_type=linux # correct to gnu/linux during the next big refactor 18397 else 18398 version_type=irix 18399 fi ;; 18400 esac 18401 need_lib_prefix=no 18402 need_version=no 18403 soname_spec='$libname$release$shared_ext$major' 18404 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 18405 case $host_os in 18406 irix5* | nonstopux*) 18407 libsuff= shlibsuff= 18408 ;; 18409 *) 18410 case $LD in # libtool.m4 will add one of these switches to LD 18411 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18412 libsuff= shlibsuff= libmagic=32-bit;; 18413 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18414 libsuff=32 shlibsuff=N32 libmagic=N32;; 18415 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18416 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18417 *) libsuff= shlibsuff= libmagic=never-match;; 18418 esac 18419 ;; 18420 esac 18421 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18422 shlibpath_overrides_runpath=no 18423 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 18424 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 18425 hardcode_into_libs=yes 18426 ;; 18427 18428# No shared lib support for Linux oldld, aout, or coff. 18429linux*oldld* | linux*aout* | linux*coff*) 18430 dynamic_linker=no 18431 ;; 18432 18433linux*android*) 18434 version_type=none # Android doesn't support versioned libraries. 18435 need_lib_prefix=no 18436 need_version=no 18437 library_names_spec='$libname$release$shared_ext' 18438 soname_spec='$libname$release$shared_ext' 18439 finish_cmds= 18440 shlibpath_var=LD_LIBRARY_PATH 18441 shlibpath_overrides_runpath=yes 18442 18443 # This implies no fast_install, which is unacceptable. 18444 # Some rework will be needed to allow for fast_install 18445 # before this can be enabled. 18446 hardcode_into_libs=yes 18447 18448 dynamic_linker='Android linker' 18449 # Don't embed -rpath directories since the linker doesn't support them. 18450 hardcode_libdir_flag_spec_CXX='-L$libdir' 18451 ;; 18452 18453# This must be glibc/ELF. 18454linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 18455 version_type=linux # correct to gnu/linux during the next big refactor 18456 need_lib_prefix=no 18457 need_version=no 18458 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18459 soname_spec='$libname$release$shared_ext$major' 18460 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18461 shlibpath_var=LD_LIBRARY_PATH 18462 shlibpath_overrides_runpath=no 18463 18464 # Some binutils ld are patched to set DT_RUNPATH 18465 if test ${lt_cv_shlibpath_overrides_runpath+y} 18466then : 18467 printf %s "(cached) " >&6 18468else $as_nop 18469 lt_cv_shlibpath_overrides_runpath=no 18470 save_LDFLAGS=$LDFLAGS 18471 save_libdir=$libdir 18472 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 18473 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 18474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18475/* end confdefs.h. */ 18476 18477int 18478main (void) 18479{ 18480 18481 ; 18482 return 0; 18483} 18484_ACEOF 18485if ac_fn_cxx_try_link "$LINENO" 18486then : 18487 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 18488then : 18489 lt_cv_shlibpath_overrides_runpath=yes 18490fi 18491fi 18492rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18493 conftest$ac_exeext conftest.$ac_ext 18494 LDFLAGS=$save_LDFLAGS 18495 libdir=$save_libdir 18496 18497fi 18498 18499 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 18500 18501 # This implies no fast_install, which is unacceptable. 18502 # Some rework will be needed to allow for fast_install 18503 # before this can be enabled. 18504 hardcode_into_libs=yes 18505 18506 # Ideally, we could use ldconfig to report *all* directores which are 18507 # searched for libraries, however this is still not possible. Aside from not 18508 # being certain /sbin/ldconfig is available, command 18509 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 18510 # even though it is searched at run-time. Try to do the best guess by 18511 # appending ld.so.conf contents (and includes) to the search path. 18512 if test -f /etc/ld.so.conf; then 18513 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' ' '` 18514 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18515 fi 18516 18517 # We used to test for /lib/ld.so.1 and disable shared libraries on 18518 # powerpc, because MkLinux only supported shared libraries with the 18519 # GNU dynamic linker. Since this was broken with cross compilers, 18520 # most powerpc-linux boxes support dynamic linking these days and 18521 # people can always --disable-shared, the test was removed, and we 18522 # assume the GNU/Linux dynamic linker is in use. 18523 dynamic_linker='GNU/Linux ld.so' 18524 ;; 18525 18526netbsd*) 18527 version_type=sunos 18528 need_lib_prefix=no 18529 need_version=no 18530 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 18531 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18532 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18533 dynamic_linker='NetBSD (a.out) ld.so' 18534 else 18535 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18536 soname_spec='$libname$release$shared_ext$major' 18537 dynamic_linker='NetBSD ld.elf_so' 18538 fi 18539 shlibpath_var=LD_LIBRARY_PATH 18540 shlibpath_overrides_runpath=yes 18541 hardcode_into_libs=yes 18542 ;; 18543 18544newsos6) 18545 version_type=linux # correct to gnu/linux during the next big refactor 18546 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18547 shlibpath_var=LD_LIBRARY_PATH 18548 shlibpath_overrides_runpath=yes 18549 ;; 18550 18551*nto* | *qnx*) 18552 version_type=qnx 18553 need_lib_prefix=no 18554 need_version=no 18555 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18556 soname_spec='$libname$release$shared_ext$major' 18557 shlibpath_var=LD_LIBRARY_PATH 18558 shlibpath_overrides_runpath=no 18559 hardcode_into_libs=yes 18560 dynamic_linker='ldqnx.so' 18561 ;; 18562 18563openbsd* | bitrig*) 18564 version_type=sunos 18565 sys_lib_dlsearch_path_spec=/usr/lib 18566 need_lib_prefix=no 18567 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 18568 need_version=no 18569 else 18570 need_version=yes 18571 fi 18572 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18573 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18574 shlibpath_var=LD_LIBRARY_PATH 18575 shlibpath_overrides_runpath=yes 18576 ;; 18577 18578os2*) 18579 libname_spec='$name' 18580 version_type=windows 18581 shrext_cmds=.dll 18582 need_version=no 18583 need_lib_prefix=no 18584 # OS/2 can only load a DLL with a base name of 8 characters or less. 18585 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 18586 v=$($ECHO $release$versuffix | tr -d .-); 18587 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 18588 $ECHO $n$v`$shared_ext' 18589 library_names_spec='${libname}_dll.$libext' 18590 dynamic_linker='OS/2 ld.exe' 18591 shlibpath_var=BEGINLIBPATH 18592 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18593 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18594 postinstall_cmds='base_file=`basename \$file`~ 18595 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 18596 dldir=$destdir/`dirname \$dlpath`~ 18597 test -d \$dldir || mkdir -p \$dldir~ 18598 $install_prog $dir/$dlname \$dldir/$dlname~ 18599 chmod a+x \$dldir/$dlname~ 18600 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 18601 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 18602 fi' 18603 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 18604 dlpath=$dir/\$dldll~ 18605 $RM \$dlpath' 18606 ;; 18607 18608osf3* | osf4* | osf5*) 18609 version_type=osf 18610 need_lib_prefix=no 18611 need_version=no 18612 soname_spec='$libname$release$shared_ext$major' 18613 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18614 shlibpath_var=LD_LIBRARY_PATH 18615 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18616 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18617 ;; 18618 18619rdos*) 18620 dynamic_linker=no 18621 ;; 18622 18623solaris*) 18624 version_type=linux # correct to gnu/linux during the next big refactor 18625 need_lib_prefix=no 18626 need_version=no 18627 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18628 soname_spec='$libname$release$shared_ext$major' 18629 shlibpath_var=LD_LIBRARY_PATH 18630 shlibpath_overrides_runpath=yes 18631 hardcode_into_libs=yes 18632 # ldd complains unless libraries are executable 18633 postinstall_cmds='chmod +x $lib' 18634 ;; 18635 18636sunos4*) 18637 version_type=sunos 18638 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18639 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18640 shlibpath_var=LD_LIBRARY_PATH 18641 shlibpath_overrides_runpath=yes 18642 if test yes = "$with_gnu_ld"; then 18643 need_lib_prefix=no 18644 fi 18645 need_version=yes 18646 ;; 18647 18648sysv4 | sysv4.3*) 18649 version_type=linux # correct to gnu/linux during the next big refactor 18650 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18651 soname_spec='$libname$release$shared_ext$major' 18652 shlibpath_var=LD_LIBRARY_PATH 18653 case $host_vendor in 18654 sni) 18655 shlibpath_overrides_runpath=no 18656 need_lib_prefix=no 18657 runpath_var=LD_RUN_PATH 18658 ;; 18659 siemens) 18660 need_lib_prefix=no 18661 ;; 18662 motorola) 18663 need_lib_prefix=no 18664 need_version=no 18665 shlibpath_overrides_runpath=no 18666 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18667 ;; 18668 esac 18669 ;; 18670 18671sysv4*MP*) 18672 if test -d /usr/nec; then 18673 version_type=linux # correct to gnu/linux during the next big refactor 18674 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 18675 soname_spec='$libname$shared_ext.$major' 18676 shlibpath_var=LD_LIBRARY_PATH 18677 fi 18678 ;; 18679 18680sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18681 version_type=sco 18682 need_lib_prefix=no 18683 need_version=no 18684 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 18685 soname_spec='$libname$release$shared_ext$major' 18686 shlibpath_var=LD_LIBRARY_PATH 18687 shlibpath_overrides_runpath=yes 18688 hardcode_into_libs=yes 18689 if test yes = "$with_gnu_ld"; then 18690 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18691 else 18692 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18693 case $host_os in 18694 sco3.2v5*) 18695 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18696 ;; 18697 esac 18698 fi 18699 sys_lib_dlsearch_path_spec='/usr/lib' 18700 ;; 18701 18702tpf*) 18703 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 18704 version_type=linux # correct to gnu/linux during the next big refactor 18705 need_lib_prefix=no 18706 need_version=no 18707 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18708 shlibpath_var=LD_LIBRARY_PATH 18709 shlibpath_overrides_runpath=no 18710 hardcode_into_libs=yes 18711 ;; 18712 18713uts4*) 18714 version_type=linux # correct to gnu/linux during the next big refactor 18715 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18716 soname_spec='$libname$release$shared_ext$major' 18717 shlibpath_var=LD_LIBRARY_PATH 18718 ;; 18719 18720*) 18721 dynamic_linker=no 18722 ;; 18723esac 18724{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 18725printf "%s\n" "$dynamic_linker" >&6; } 18726test no = "$dynamic_linker" && can_build_shared=no 18727 18728variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18729if test yes = "$GCC"; then 18730 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18731fi 18732 18733if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 18734 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 18735fi 18736 18737if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 18738 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 18739fi 18740 18741# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 18742configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 18743 18744# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 18745func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 18746 18747# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 18748configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 18749 18750 18751 18752 18753 18754 18755 18756 18757 18758 18759 18760 18761 18762 18763 18764 18765 18766 18767 18768 18769 18770 18771 18772 18773 18774 18775 18776 18777 18778 18779 18780 18781 18782 18783 18784 18785 18786 18787 18788 18789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 18790printf %s "checking how to hardcode library paths into programs... " >&6; } 18791hardcode_action_CXX= 18792if test -n "$hardcode_libdir_flag_spec_CXX" || 18793 test -n "$runpath_var_CXX" || 18794 test yes = "$hardcode_automatic_CXX"; then 18795 18796 # We can hardcode non-existent directories. 18797 if test no != "$hardcode_direct_CXX" && 18798 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18799 # have to relink, otherwise we might link with an installed library 18800 # when we should be linking with a yet-to-be-installed one 18801 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 18802 test no != "$hardcode_minus_L_CXX"; then 18803 # Linking always hardcodes the temporary library directory. 18804 hardcode_action_CXX=relink 18805 else 18806 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18807 hardcode_action_CXX=immediate 18808 fi 18809else 18810 # We cannot hardcode anything, or else we can only hardcode existing 18811 # directories. 18812 hardcode_action_CXX=unsupported 18813fi 18814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 18815printf "%s\n" "$hardcode_action_CXX" >&6; } 18816 18817if test relink = "$hardcode_action_CXX" || 18818 test yes = "$inherit_rpath_CXX"; then 18819 # Fast installation is not supported 18820 enable_fast_install=no 18821elif test yes = "$shlibpath_overrides_runpath" || 18822 test no = "$enable_shared"; then 18823 # Fast installation is not necessary 18824 enable_fast_install=needless 18825fi 18826 18827 18828 18829 18830 18831 18832 18833 fi # test -n "$compiler" 18834 18835 CC=$lt_save_CC 18836 CFLAGS=$lt_save_CFLAGS 18837 LDCXX=$LD 18838 LD=$lt_save_LD 18839 GCC=$lt_save_GCC 18840 with_gnu_ld=$lt_save_with_gnu_ld 18841 lt_cv_path_LDCXX=$lt_cv_path_LD 18842 lt_cv_path_LD=$lt_save_path_LD 18843 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 18844 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 18845fi # test yes != "$_lt_caught_CXX_error" 18846 18847ac_ext=c 18848ac_cpp='$CPP $CPPFLAGS' 18849ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18850ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18851ac_compiler_gnu=$ac_cv_c_compiler_gnu 18852 18853 18854 18855 ac_ext=f 18856ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 18857ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18858ac_compiler_gnu=$ac_cv_f77_compiler_gnu 18859 18860if test -z "$F77" || test no = "$F77"; then 18861 _lt_disable_F77=yes 18862fi 18863 18864archive_cmds_need_lc_F77=no 18865allow_undefined_flag_F77= 18866always_export_symbols_F77=no 18867archive_expsym_cmds_F77= 18868export_dynamic_flag_spec_F77= 18869hardcode_direct_F77=no 18870hardcode_direct_absolute_F77=no 18871hardcode_libdir_flag_spec_F77= 18872hardcode_libdir_separator_F77= 18873hardcode_minus_L_F77=no 18874hardcode_automatic_F77=no 18875inherit_rpath_F77=no 18876module_cmds_F77= 18877module_expsym_cmds_F77= 18878link_all_deplibs_F77=unknown 18879old_archive_cmds_F77=$old_archive_cmds 18880reload_flag_F77=$reload_flag 18881reload_cmds_F77=$reload_cmds 18882no_undefined_flag_F77= 18883whole_archive_flag_spec_F77= 18884enable_shared_with_static_runtimes_F77=no 18885 18886# Source file extension for f77 test sources. 18887ac_ext=f 18888 18889# Object file extension for compiled f77 test sources. 18890objext=o 18891objext_F77=$objext 18892 18893# No sense in running all these tests if we already determined that 18894# the F77 compiler isn't working. Some variables (like enable_shared) 18895# are currently assumed to apply to all compilers on this platform, 18896# and will be corrupted by setting them based on a non-working compiler. 18897if test yes != "$_lt_disable_F77"; then 18898 # Code to be used in simple compile tests 18899 lt_simple_compile_test_code="\ 18900 subroutine t 18901 return 18902 end 18903" 18904 18905 # Code to be used in simple link tests 18906 lt_simple_link_test_code="\ 18907 program t 18908 end 18909" 18910 18911 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 18912 18913 18914 18915 18916 18917 18918# If no C compiler was specified, use CC. 18919LTCC=${LTCC-"$CC"} 18920 18921# If no C compiler flags were specified, use CFLAGS. 18922LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 18923 18924# Allow CC to be a program name with arguments. 18925compiler=$CC 18926 18927 18928 # save warnings/boilerplate of simple test code 18929 ac_outfile=conftest.$ac_objext 18930echo "$lt_simple_compile_test_code" >conftest.$ac_ext 18931eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18932_lt_compiler_boilerplate=`cat conftest.err` 18933$RM conftest* 18934 18935 ac_outfile=conftest.$ac_objext 18936echo "$lt_simple_link_test_code" >conftest.$ac_ext 18937eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18938_lt_linker_boilerplate=`cat conftest.err` 18939$RM -r conftest* 18940 18941 18942 # Allow CC to be a program name with arguments. 18943 lt_save_CC=$CC 18944 lt_save_GCC=$GCC 18945 lt_save_CFLAGS=$CFLAGS 18946 CC=${F77-"f77"} 18947 CFLAGS=$FFLAGS 18948 compiler=$CC 18949 compiler_F77=$CC 18950 func_cc_basename $compiler 18951cc_basename=$func_cc_basename_result 18952 18953 GCC=$G77 18954 if test -n "$compiler"; then 18955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 18956printf %s "checking if libtool supports shared libraries... " >&6; } 18957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 18958printf "%s\n" "$can_build_shared" >&6; } 18959 18960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 18961printf %s "checking whether to build shared libraries... " >&6; } 18962 test no = "$can_build_shared" && enable_shared=no 18963 18964 # On AIX, shared libraries and static libraries use the same namespace, and 18965 # are all built from PIC. 18966 case $host_os in 18967 aix3*) 18968 test yes = "$enable_shared" && enable_static=no 18969 if test -n "$RANLIB"; then 18970 archive_cmds="$archive_cmds~\$RANLIB \$lib" 18971 postinstall_cmds='$RANLIB $lib' 18972 fi 18973 ;; 18974 aix[4-9]*) 18975 if test ia64 != "$host_cpu"; then 18976 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 18977 yes,aix,yes) ;; # shared object as lib.so file only 18978 yes,svr4,*) ;; # shared object as lib.so archive member only 18979 yes,*) enable_static=no ;; # shared object in lib.a archive as well 18980 esac 18981 fi 18982 ;; 18983 esac 18984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 18985printf "%s\n" "$enable_shared" >&6; } 18986 18987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 18988printf %s "checking whether to build static libraries... " >&6; } 18989 # Make sure either enable_shared or enable_static is yes. 18990 test yes = "$enable_shared" || enable_static=yes 18991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 18992printf "%s\n" "$enable_static" >&6; } 18993 18994 GCC_F77=$G77 18995 LD_F77=$LD 18996 18997 ## CAVEAT EMPTOR: 18998 ## There is no encapsulation within the following macros, do not change 18999 ## the running order or otherwise move them around unless you know exactly 19000 ## what you are doing... 19001 lt_prog_compiler_wl_F77= 19002lt_prog_compiler_pic_F77= 19003lt_prog_compiler_static_F77= 19004 19005 19006 if test yes = "$GCC"; then 19007 lt_prog_compiler_wl_F77='-Wl,' 19008 lt_prog_compiler_static_F77='-static' 19009 19010 case $host_os in 19011 aix*) 19012 # All AIX code is PIC. 19013 if test ia64 = "$host_cpu"; then 19014 # AIX 5 now supports IA64 processor 19015 lt_prog_compiler_static_F77='-Bstatic' 19016 fi 19017 lt_prog_compiler_pic_F77='-fPIC' 19018 ;; 19019 19020 amigaos*) 19021 case $host_cpu in 19022 powerpc) 19023 # see comment about AmigaOS4 .so support 19024 lt_prog_compiler_pic_F77='-fPIC' 19025 ;; 19026 m68k) 19027 # FIXME: we need at least 68020 code to build shared libraries, but 19028 # adding the '-m68020' flag to GCC prevents building anything better, 19029 # like '-m68040'. 19030 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 19031 ;; 19032 esac 19033 ;; 19034 19035 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 19036 # PIC is the default for these OSes. 19037 ;; 19038 19039 mingw* | cygwin* | pw32* | os2* | cegcc*) 19040 # This hack is so that the source file can tell whether it is being 19041 # built for inclusion in a dll (and should export symbols for example). 19042 # Although the cygwin gcc ignores -fPIC, still need this for old-style 19043 # (--disable-auto-import) libraries 19044 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 19045 case $host_os in 19046 os2*) 19047 lt_prog_compiler_static_F77='$wl-static' 19048 ;; 19049 esac 19050 ;; 19051 19052 darwin* | rhapsody*) 19053 # PIC is the default on this platform 19054 # Common symbols not allowed in MH_DYLIB files 19055 lt_prog_compiler_pic_F77='-fno-common' 19056 ;; 19057 19058 haiku*) 19059 # PIC is the default for Haiku. 19060 # The "-static" flag exists, but is broken. 19061 lt_prog_compiler_static_F77= 19062 ;; 19063 19064 hpux*) 19065 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 19066 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 19067 # sets the default TLS model and affects inlining. 19068 case $host_cpu in 19069 hppa*64*) 19070 # +Z the default 19071 ;; 19072 *) 19073 lt_prog_compiler_pic_F77='-fPIC' 19074 ;; 19075 esac 19076 ;; 19077 19078 interix[3-9]*) 19079 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 19080 # Instead, we relocate shared libraries at runtime. 19081 ;; 19082 19083 msdosdjgpp*) 19084 # Just because we use GCC doesn't mean we suddenly get shared libraries 19085 # on systems that don't support them. 19086 lt_prog_compiler_can_build_shared_F77=no 19087 enable_shared=no 19088 ;; 19089 19090 *nto* | *qnx*) 19091 # QNX uses GNU C++, but need to define -shared option too, otherwise 19092 # it will coredump. 19093 lt_prog_compiler_pic_F77='-fPIC -shared' 19094 ;; 19095 19096 sysv4*MP*) 19097 if test -d /usr/nec; then 19098 lt_prog_compiler_pic_F77=-Kconform_pic 19099 fi 19100 ;; 19101 19102 *) 19103 lt_prog_compiler_pic_F77='-fPIC' 19104 ;; 19105 esac 19106 19107 case $cc_basename in 19108 nvcc*) # Cuda Compiler Driver 2.2 19109 lt_prog_compiler_wl_F77='-Xlinker ' 19110 if test -n "$lt_prog_compiler_pic_F77"; then 19111 lt_prog_compiler_pic_F77="-Xcompiler $lt_prog_compiler_pic_F77" 19112 fi 19113 ;; 19114 esac 19115 else 19116 # PORTME Check for flag to pass linker flags through the system compiler. 19117 case $host_os in 19118 aix*) 19119 lt_prog_compiler_wl_F77='-Wl,' 19120 if test ia64 = "$host_cpu"; then 19121 # AIX 5 now supports IA64 processor 19122 lt_prog_compiler_static_F77='-Bstatic' 19123 else 19124 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 19125 fi 19126 ;; 19127 19128 darwin* | rhapsody*) 19129 # PIC is the default on this platform 19130 # Common symbols not allowed in MH_DYLIB files 19131 lt_prog_compiler_pic_F77='-fno-common' 19132 case $cc_basename in 19133 nagfor*) 19134 # NAG Fortran compiler 19135 lt_prog_compiler_wl_F77='-Wl,-Wl,,' 19136 lt_prog_compiler_pic_F77='-PIC' 19137 lt_prog_compiler_static_F77='-Bstatic' 19138 ;; 19139 esac 19140 ;; 19141 19142 mingw* | cygwin* | pw32* | os2* | cegcc*) 19143 # This hack is so that the source file can tell whether it is being 19144 # built for inclusion in a dll (and should export symbols for example). 19145 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 19146 case $host_os in 19147 os2*) 19148 lt_prog_compiler_static_F77='$wl-static' 19149 ;; 19150 esac 19151 ;; 19152 19153 hpux9* | hpux10* | hpux11*) 19154 lt_prog_compiler_wl_F77='-Wl,' 19155 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 19156 # not for PA HP-UX. 19157 case $host_cpu in 19158 hppa*64*|ia64*) 19159 # +Z the default 19160 ;; 19161 *) 19162 lt_prog_compiler_pic_F77='+Z' 19163 ;; 19164 esac 19165 # Is there a better lt_prog_compiler_static that works with the bundled CC? 19166 lt_prog_compiler_static_F77='$wl-a ${wl}archive' 19167 ;; 19168 19169 irix5* | irix6* | nonstopux*) 19170 lt_prog_compiler_wl_F77='-Wl,' 19171 # PIC (with -KPIC) is the default. 19172 lt_prog_compiler_static_F77='-non_shared' 19173 ;; 19174 19175 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 19176 case $cc_basename in 19177 # old Intel for x86_64, which still supported -KPIC. 19178 ecc*) 19179 lt_prog_compiler_wl_F77='-Wl,' 19180 lt_prog_compiler_pic_F77='-KPIC' 19181 lt_prog_compiler_static_F77='-static' 19182 ;; 19183 # icc used to be incompatible with GCC. 19184 # ICC 10 doesn't accept -KPIC any more. 19185 icc* | ifort*) 19186 lt_prog_compiler_wl_F77='-Wl,' 19187 lt_prog_compiler_pic_F77='-fPIC' 19188 lt_prog_compiler_static_F77='-static' 19189 ;; 19190 # Lahey Fortran 8.1. 19191 lf95*) 19192 lt_prog_compiler_wl_F77='-Wl,' 19193 lt_prog_compiler_pic_F77='--shared' 19194 lt_prog_compiler_static_F77='--static' 19195 ;; 19196 nagfor*) 19197 # NAG Fortran compiler 19198 lt_prog_compiler_wl_F77='-Wl,-Wl,,' 19199 lt_prog_compiler_pic_F77='-PIC' 19200 lt_prog_compiler_static_F77='-Bstatic' 19201 ;; 19202 tcc*) 19203 # Fabrice Bellard et al's Tiny C Compiler 19204 lt_prog_compiler_wl_F77='-Wl,' 19205 lt_prog_compiler_pic_F77='-fPIC' 19206 lt_prog_compiler_static_F77='-static' 19207 ;; 19208 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 19209 # Portland Group compilers (*not* the Pentium gcc compiler, 19210 # which looks to be a dead project) 19211 lt_prog_compiler_wl_F77='-Wl,' 19212 lt_prog_compiler_pic_F77='-fpic' 19213 lt_prog_compiler_static_F77='-Bstatic' 19214 ;; 19215 ccc*) 19216 lt_prog_compiler_wl_F77='-Wl,' 19217 # All Alpha code is PIC. 19218 lt_prog_compiler_static_F77='-non_shared' 19219 ;; 19220 xl* | bgxl* | bgf* | mpixl*) 19221 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 19222 lt_prog_compiler_wl_F77='-Wl,' 19223 lt_prog_compiler_pic_F77='-qpic' 19224 lt_prog_compiler_static_F77='-qstaticlink' 19225 ;; 19226 *) 19227 case `$CC -V 2>&1 | sed 5q` in 19228 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 19229 # Sun Fortran 8.3 passes all unrecognized flags to the linker 19230 lt_prog_compiler_pic_F77='-KPIC' 19231 lt_prog_compiler_static_F77='-Bstatic' 19232 lt_prog_compiler_wl_F77='' 19233 ;; 19234 *Sun\ F* | *Sun*Fortran*) 19235 lt_prog_compiler_pic_F77='-KPIC' 19236 lt_prog_compiler_static_F77='-Bstatic' 19237 lt_prog_compiler_wl_F77='-Qoption ld ' 19238 ;; 19239 *Sun\ C*) 19240 # Sun C 5.9 19241 lt_prog_compiler_pic_F77='-KPIC' 19242 lt_prog_compiler_static_F77='-Bstatic' 19243 lt_prog_compiler_wl_F77='-Wl,' 19244 ;; 19245 *Intel*\ [CF]*Compiler*) 19246 lt_prog_compiler_wl_F77='-Wl,' 19247 lt_prog_compiler_pic_F77='-fPIC' 19248 lt_prog_compiler_static_F77='-static' 19249 ;; 19250 *Portland\ Group*) 19251 lt_prog_compiler_wl_F77='-Wl,' 19252 lt_prog_compiler_pic_F77='-fpic' 19253 lt_prog_compiler_static_F77='-Bstatic' 19254 ;; 19255 esac 19256 ;; 19257 esac 19258 ;; 19259 19260 newsos6) 19261 lt_prog_compiler_pic_F77='-KPIC' 19262 lt_prog_compiler_static_F77='-Bstatic' 19263 ;; 19264 19265 *nto* | *qnx*) 19266 # QNX uses GNU C++, but need to define -shared option too, otherwise 19267 # it will coredump. 19268 lt_prog_compiler_pic_F77='-fPIC -shared' 19269 ;; 19270 19271 osf3* | osf4* | osf5*) 19272 lt_prog_compiler_wl_F77='-Wl,' 19273 # All OSF/1 code is PIC. 19274 lt_prog_compiler_static_F77='-non_shared' 19275 ;; 19276 19277 rdos*) 19278 lt_prog_compiler_static_F77='-non_shared' 19279 ;; 19280 19281 solaris*) 19282 lt_prog_compiler_pic_F77='-KPIC' 19283 lt_prog_compiler_static_F77='-Bstatic' 19284 case $cc_basename in 19285 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 19286 lt_prog_compiler_wl_F77='-Qoption ld ';; 19287 *) 19288 lt_prog_compiler_wl_F77='-Wl,';; 19289 esac 19290 ;; 19291 19292 sunos4*) 19293 lt_prog_compiler_wl_F77='-Qoption ld ' 19294 lt_prog_compiler_pic_F77='-PIC' 19295 lt_prog_compiler_static_F77='-Bstatic' 19296 ;; 19297 19298 sysv4 | sysv4.2uw2* | sysv4.3*) 19299 lt_prog_compiler_wl_F77='-Wl,' 19300 lt_prog_compiler_pic_F77='-KPIC' 19301 lt_prog_compiler_static_F77='-Bstatic' 19302 ;; 19303 19304 sysv4*MP*) 19305 if test -d /usr/nec; then 19306 lt_prog_compiler_pic_F77='-Kconform_pic' 19307 lt_prog_compiler_static_F77='-Bstatic' 19308 fi 19309 ;; 19310 19311 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 19312 lt_prog_compiler_wl_F77='-Wl,' 19313 lt_prog_compiler_pic_F77='-KPIC' 19314 lt_prog_compiler_static_F77='-Bstatic' 19315 ;; 19316 19317 unicos*) 19318 lt_prog_compiler_wl_F77='-Wl,' 19319 lt_prog_compiler_can_build_shared_F77=no 19320 ;; 19321 19322 uts4*) 19323 lt_prog_compiler_pic_F77='-pic' 19324 lt_prog_compiler_static_F77='-Bstatic' 19325 ;; 19326 19327 *) 19328 lt_prog_compiler_can_build_shared_F77=no 19329 ;; 19330 esac 19331 fi 19332 19333case $host_os in 19334 # For platforms that do not support PIC, -DPIC is meaningless: 19335 *djgpp*) 19336 lt_prog_compiler_pic_F77= 19337 ;; 19338 *) 19339 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 19340 ;; 19341esac 19342 19343{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 19344printf %s "checking for $compiler option to produce PIC... " >&6; } 19345if test ${lt_cv_prog_compiler_pic_F77+y} 19346then : 19347 printf %s "(cached) " >&6 19348else $as_nop 19349 lt_cv_prog_compiler_pic_F77=$lt_prog_compiler_pic_F77 19350fi 19351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_F77" >&5 19352printf "%s\n" "$lt_cv_prog_compiler_pic_F77" >&6; } 19353lt_prog_compiler_pic_F77=$lt_cv_prog_compiler_pic_F77 19354 19355# 19356# Check to make sure the PIC flag actually works. 19357# 19358if test -n "$lt_prog_compiler_pic_F77"; then 19359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 19360printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; } 19361if test ${lt_cv_prog_compiler_pic_works_F77+y} 19362then : 19363 printf %s "(cached) " >&6 19364else $as_nop 19365 lt_cv_prog_compiler_pic_works_F77=no 19366 ac_outfile=conftest.$ac_objext 19367 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 19368 lt_compiler_flag="$lt_prog_compiler_pic_F77" ## exclude from sc_useless_quotes_in_assignment 19369 # Insert the option either (1) after the last *FLAGS variable, or 19370 # (2) before a word containing "conftest.", or (3) at the end. 19371 # Note that $ac_compile itself does not contain backslashes and begins 19372 # with a dollar sign (not a hyphen), so the echo should work correctly. 19373 # The option is referenced via a variable to avoid confusing sed. 19374 lt_compile=`echo "$ac_compile" | $SED \ 19375 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 19376 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 19377 -e 's:$: $lt_compiler_flag:'` 19378 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 19379 (eval "$lt_compile" 2>conftest.err) 19380 ac_status=$? 19381 cat conftest.err >&5 19382 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19383 if (exit $ac_status) && test -s "$ac_outfile"; then 19384 # The compiler can only warn and ignore the option if not recognized 19385 # So say no if there are warnings other than the usual output. 19386 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 19387 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 19388 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 19389 lt_cv_prog_compiler_pic_works_F77=yes 19390 fi 19391 fi 19392 $RM conftest* 19393 19394fi 19395{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5 19396printf "%s\n" "$lt_cv_prog_compiler_pic_works_F77" >&6; } 19397 19398if test yes = "$lt_cv_prog_compiler_pic_works_F77"; then 19399 case $lt_prog_compiler_pic_F77 in 19400 "" | " "*) ;; 19401 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 19402 esac 19403else 19404 lt_prog_compiler_pic_F77= 19405 lt_prog_compiler_can_build_shared_F77=no 19406fi 19407 19408fi 19409 19410 19411 19412 19413 19414# 19415# Check to make sure the static flag actually works. 19416# 19417wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 19418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 19419printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 19420if test ${lt_cv_prog_compiler_static_works_F77+y} 19421then : 19422 printf %s "(cached) " >&6 19423else $as_nop 19424 lt_cv_prog_compiler_static_works_F77=no 19425 save_LDFLAGS=$LDFLAGS 19426 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 19427 echo "$lt_simple_link_test_code" > conftest.$ac_ext 19428 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 19429 # The linker can only warn and ignore the option if not recognized 19430 # So say no if there are warnings 19431 if test -s conftest.err; then 19432 # Append any errors to the config.log. 19433 cat conftest.err 1>&5 19434 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 19435 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 19436 if diff conftest.exp conftest.er2 >/dev/null; then 19437 lt_cv_prog_compiler_static_works_F77=yes 19438 fi 19439 else 19440 lt_cv_prog_compiler_static_works_F77=yes 19441 fi 19442 fi 19443 $RM -r conftest* 19444 LDFLAGS=$save_LDFLAGS 19445 19446fi 19447{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5 19448printf "%s\n" "$lt_cv_prog_compiler_static_works_F77" >&6; } 19449 19450if test yes = "$lt_cv_prog_compiler_static_works_F77"; then 19451 : 19452else 19453 lt_prog_compiler_static_F77= 19454fi 19455 19456 19457 19458 19459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 19460printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 19461if test ${lt_cv_prog_compiler_c_o_F77+y} 19462then : 19463 printf %s "(cached) " >&6 19464else $as_nop 19465 lt_cv_prog_compiler_c_o_F77=no 19466 $RM -r conftest 2>/dev/null 19467 mkdir conftest 19468 cd conftest 19469 mkdir out 19470 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 19471 19472 lt_compiler_flag="-o out/conftest2.$ac_objext" 19473 # Insert the option either (1) after the last *FLAGS variable, or 19474 # (2) before a word containing "conftest.", or (3) at the end. 19475 # Note that $ac_compile itself does not contain backslashes and begins 19476 # with a dollar sign (not a hyphen), so the echo should work correctly. 19477 lt_compile=`echo "$ac_compile" | $SED \ 19478 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 19479 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 19480 -e 's:$: $lt_compiler_flag:'` 19481 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 19482 (eval "$lt_compile" 2>out/conftest.err) 19483 ac_status=$? 19484 cat out/conftest.err >&5 19485 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19486 if (exit $ac_status) && test -s out/conftest2.$ac_objext 19487 then 19488 # The compiler can only warn and ignore the option if not recognized 19489 # So say no if there are warnings 19490 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 19491 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 19492 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 19493 lt_cv_prog_compiler_c_o_F77=yes 19494 fi 19495 fi 19496 chmod u+w . 2>&5 19497 $RM conftest* 19498 # SGI C++ compiler will create directory out/ii_files/ for 19499 # template instantiation 19500 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 19501 $RM out/* && rmdir out 19502 cd .. 19503 $RM -r conftest 19504 $RM conftest* 19505 19506fi 19507{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5 19508printf "%s\n" "$lt_cv_prog_compiler_c_o_F77" >&6; } 19509 19510 19511 19512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 19513printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 19514if test ${lt_cv_prog_compiler_c_o_F77+y} 19515then : 19516 printf %s "(cached) " >&6 19517else $as_nop 19518 lt_cv_prog_compiler_c_o_F77=no 19519 $RM -r conftest 2>/dev/null 19520 mkdir conftest 19521 cd conftest 19522 mkdir out 19523 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 19524 19525 lt_compiler_flag="-o out/conftest2.$ac_objext" 19526 # Insert the option either (1) after the last *FLAGS variable, or 19527 # (2) before a word containing "conftest.", or (3) at the end. 19528 # Note that $ac_compile itself does not contain backslashes and begins 19529 # with a dollar sign (not a hyphen), so the echo should work correctly. 19530 lt_compile=`echo "$ac_compile" | $SED \ 19531 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 19532 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 19533 -e 's:$: $lt_compiler_flag:'` 19534 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 19535 (eval "$lt_compile" 2>out/conftest.err) 19536 ac_status=$? 19537 cat out/conftest.err >&5 19538 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19539 if (exit $ac_status) && test -s out/conftest2.$ac_objext 19540 then 19541 # The compiler can only warn and ignore the option if not recognized 19542 # So say no if there are warnings 19543 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 19544 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 19545 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 19546 lt_cv_prog_compiler_c_o_F77=yes 19547 fi 19548 fi 19549 chmod u+w . 2>&5 19550 $RM conftest* 19551 # SGI C++ compiler will create directory out/ii_files/ for 19552 # template instantiation 19553 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 19554 $RM out/* && rmdir out 19555 cd .. 19556 $RM -r conftest 19557 $RM conftest* 19558 19559fi 19560{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5 19561printf "%s\n" "$lt_cv_prog_compiler_c_o_F77" >&6; } 19562 19563 19564 19565 19566hard_links=nottested 19567if test no = "$lt_cv_prog_compiler_c_o_F77" && test no != "$need_locks"; then 19568 # do not overwrite the value of need_locks provided by the user 19569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 19570printf %s "checking if we can lock with hard links... " >&6; } 19571 hard_links=yes 19572 $RM conftest* 19573 ln conftest.a conftest.b 2>/dev/null && hard_links=no 19574 touch conftest.a 19575 ln conftest.a conftest.b 2>&5 || hard_links=no 19576 ln conftest.a conftest.b 2>/dev/null && hard_links=no 19577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 19578printf "%s\n" "$hard_links" >&6; } 19579 if test no = "$hard_links"; then 19580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 19581printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 19582 need_locks=warn 19583 fi 19584else 19585 need_locks=no 19586fi 19587 19588 19589 19590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 19591printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 19592 19593 runpath_var= 19594 allow_undefined_flag_F77= 19595 always_export_symbols_F77=no 19596 archive_cmds_F77= 19597 archive_expsym_cmds_F77= 19598 compiler_needs_object_F77=no 19599 enable_shared_with_static_runtimes_F77=no 19600 export_dynamic_flag_spec_F77= 19601 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 19602 hardcode_automatic_F77=no 19603 hardcode_direct_F77=no 19604 hardcode_direct_absolute_F77=no 19605 hardcode_libdir_flag_spec_F77= 19606 hardcode_libdir_separator_F77= 19607 hardcode_minus_L_F77=no 19608 hardcode_shlibpath_var_F77=unsupported 19609 inherit_rpath_F77=no 19610 link_all_deplibs_F77=unknown 19611 module_cmds_F77= 19612 module_expsym_cmds_F77= 19613 old_archive_from_new_cmds_F77= 19614 old_archive_from_expsyms_cmds_F77= 19615 thread_safe_flag_spec_F77= 19616 whole_archive_flag_spec_F77= 19617 # include_expsyms should be a list of space-separated symbols to be *always* 19618 # included in the symbol list 19619 include_expsyms_F77= 19620 # exclude_expsyms can be an extended regexp of symbols to exclude 19621 # it will be wrapped by ' (' and ')$', so one must not match beginning or 19622 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 19623 # as well as any symbol that contains 'd'. 19624 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 19625 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 19626 # platforms (ab)use it in PIC code, but their linkers get confused if 19627 # the symbol is explicitly referenced. Since portable code cannot 19628 # rely on this symbol name, it's probably fine to never include it in 19629 # preloaded symbol tables. 19630 # Exclude shared library initialization/finalization symbols. 19631 extract_expsyms_cmds= 19632 19633 case $host_os in 19634 cygwin* | mingw* | pw32* | cegcc*) 19635 # FIXME: the MSVC++ port hasn't been tested in a loooong time 19636 # When not using gcc, we currently assume that we are using 19637 # Microsoft Visual C++. 19638 if test yes != "$GCC"; then 19639 with_gnu_ld=no 19640 fi 19641 ;; 19642 interix*) 19643 # we just hope/assume this is gcc and not c89 (= MSVC++) 19644 with_gnu_ld=yes 19645 ;; 19646 openbsd* | bitrig*) 19647 with_gnu_ld=no 19648 ;; 19649 esac 19650 19651 ld_shlibs_F77=yes 19652 19653 # On some targets, GNU ld is compatible enough with the native linker 19654 # that we're better off using the native interface for both. 19655 lt_use_gnu_ld_interface=no 19656 if test yes = "$with_gnu_ld"; then 19657 case $host_os in 19658 aix*) 19659 # The AIX port of GNU ld has always aspired to compatibility 19660 # with the native linker. However, as the warning in the GNU ld 19661 # block says, versions before 2.19.5* couldn't really create working 19662 # shared libraries, regardless of the interface used. 19663 case `$LD -v 2>&1` in 19664 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 19665 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 19666 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 19667 *) 19668 lt_use_gnu_ld_interface=yes 19669 ;; 19670 esac 19671 ;; 19672 *) 19673 lt_use_gnu_ld_interface=yes 19674 ;; 19675 esac 19676 fi 19677 19678 if test yes = "$lt_use_gnu_ld_interface"; then 19679 # If archive_cmds runs LD, not CC, wlarc should be empty 19680 wlarc='$wl' 19681 19682 # Set some defaults for GNU ld with shared library support. These 19683 # are reset later if shared libraries are not supported. Putting them 19684 # here allows them to be overridden if necessary. 19685 runpath_var=LD_RUN_PATH 19686 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir' 19687 export_dynamic_flag_spec_F77='$wl--export-dynamic' 19688 # ancient GNU ld didn't support --whole-archive et. al. 19689 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 19690 whole_archive_flag_spec_F77=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 19691 else 19692 whole_archive_flag_spec_F77= 19693 fi 19694 supports_anon_versioning=no 19695 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 19696 *GNU\ gold*) supports_anon_versioning=yes ;; 19697 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 19698 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 19699 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 19700 *\ 2.11.*) ;; # other 2.11 versions 19701 *) supports_anon_versioning=yes ;; 19702 esac 19703 19704 # See if GNU ld supports shared libraries. 19705 case $host_os in 19706 aix[3-9]*) 19707 # On AIX/PPC, the GNU linker is very broken 19708 if test ia64 != "$host_cpu"; then 19709 ld_shlibs_F77=no 19710 cat <<_LT_EOF 1>&2 19711 19712*** Warning: the GNU linker, at least up to release 2.19, is reported 19713*** to be unable to reliably create shared libraries on AIX. 19714*** Therefore, libtool is disabling shared libraries support. If you 19715*** really care for shared libraries, you may want to install binutils 19716*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 19717*** You will then need to restart the configuration process. 19718 19719_LT_EOF 19720 fi 19721 ;; 19722 19723 amigaos*) 19724 case $host_cpu in 19725 powerpc) 19726 # see comment about AmigaOS4 .so support 19727 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 19728 archive_expsym_cmds_F77='' 19729 ;; 19730 m68k) 19731 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)' 19732 hardcode_libdir_flag_spec_F77='-L$libdir' 19733 hardcode_minus_L_F77=yes 19734 ;; 19735 esac 19736 ;; 19737 19738 beos*) 19739 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 19740 allow_undefined_flag_F77=unsupported 19741 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 19742 # support --undefined. This deserves some investigation. FIXME 19743 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 19744 else 19745 ld_shlibs_F77=no 19746 fi 19747 ;; 19748 19749 cygwin* | mingw* | pw32* | cegcc*) 19750 # _LT_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 19751 # as there is no search path for DLLs. 19752 hardcode_libdir_flag_spec_F77='-L$libdir' 19753 export_dynamic_flag_spec_F77='$wl--export-all-symbols' 19754 allow_undefined_flag_F77=unsupported 19755 always_export_symbols_F77=no 19756 enable_shared_with_static_runtimes_F77=yes 19757 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' 19758 exclude_expsyms_F77='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 19759 19760 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 19761 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 19762 # If the export-symbols file already is a .def file, use it as 19763 # is; otherwise, prepend EXPORTS... 19764 archive_expsym_cmds_F77='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 19765 cp $export_symbols $output_objdir/$soname.def; 19766 else 19767 echo EXPORTS > $output_objdir/$soname.def; 19768 cat $export_symbols >> $output_objdir/$soname.def; 19769 fi~ 19770 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 19771 else 19772 ld_shlibs_F77=no 19773 fi 19774 ;; 19775 19776 haiku*) 19777 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 19778 link_all_deplibs_F77=yes 19779 ;; 19780 19781 os2*) 19782 hardcode_libdir_flag_spec_F77='-L$libdir' 19783 hardcode_minus_L_F77=yes 19784 allow_undefined_flag_F77=unsupported 19785 shrext_cmds=.dll 19786 archive_cmds_F77='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 19787 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 19788 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 19789 $ECHO EXPORTS >> $output_objdir/$libname.def~ 19790 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 19791 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 19792 emximp -o $lib $output_objdir/$libname.def' 19793 archive_expsym_cmds_F77='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 19794 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 19795 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 19796 $ECHO EXPORTS >> $output_objdir/$libname.def~ 19797 prefix_cmds="$SED"~ 19798 if test EXPORTS = "`$SED 1q $export_symbols`"; then 19799 prefix_cmds="$prefix_cmds -e 1d"; 19800 fi~ 19801 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 19802 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 19803 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 19804 emximp -o $lib $output_objdir/$libname.def' 19805 old_archive_From_new_cmds_F77='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 19806 enable_shared_with_static_runtimes_F77=yes 19807 ;; 19808 19809 interix[3-9]*) 19810 hardcode_direct_F77=no 19811 hardcode_shlibpath_var_F77=no 19812 hardcode_libdir_flag_spec_F77='$wl-rpath,$libdir' 19813 export_dynamic_flag_spec_F77='$wl-E' 19814 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 19815 # Instead, shared libraries are loaded at an image base (0x10000000 by 19816 # default) and relocated if they conflict, which is a slow very memory 19817 # consuming and fragmenting process. To avoid this, we pick a random, 19818 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 19819 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 19820 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' 19821 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' 19822 ;; 19823 19824 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 19825 tmp_diet=no 19826 if test linux-dietlibc = "$host_os"; then 19827 case $cc_basename in 19828 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 19829 esac 19830 fi 19831 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 19832 && test no = "$tmp_diet" 19833 then 19834 tmp_addflag=' $pic_flag' 19835 tmp_sharedflag='-shared' 19836 case $cc_basename,$host_cpu in 19837 pgcc*) # Portland Group C compiler 19838 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' 19839 tmp_addflag=' $pic_flag' 19840 ;; 19841 pgf77* | pgf90* | pgf95* | pgfortran*) 19842 # Portland Group f77 and f90 compilers 19843 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' 19844 tmp_addflag=' $pic_flag -Mnomain' ;; 19845 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 19846 tmp_addflag=' -i_dynamic' ;; 19847 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 19848 tmp_addflag=' -i_dynamic -nofor_main' ;; 19849 ifc* | ifort*) # Intel Fortran compiler 19850 tmp_addflag=' -nofor_main' ;; 19851 lf95*) # Lahey Fortran 8.1 19852 whole_archive_flag_spec_F77= 19853 tmp_sharedflag='--shared' ;; 19854 nagfor*) # NAGFOR 5.3 19855 tmp_sharedflag='-Wl,-shared' ;; 19856 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 19857 tmp_sharedflag='-qmkshrobj' 19858 tmp_addflag= ;; 19859 nvcc*) # Cuda Compiler Driver 2.2 19860 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' 19861 compiler_needs_object_F77=yes 19862 ;; 19863 esac 19864 case `$CC -V 2>&1 | sed 5q` in 19865 *Sun\ C*) # Sun C 5.9 19866 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' 19867 compiler_needs_object_F77=yes 19868 tmp_sharedflag='-G' ;; 19869 *Sun\ F*) # Sun Fortran 8.3 19870 tmp_sharedflag='-G' ;; 19871 esac 19872 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 19873 19874 if test yes = "$supports_anon_versioning"; then 19875 archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~ 19876 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 19877 echo "local: *; };" >> $output_objdir/$libname.ver~ 19878 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 19879 fi 19880 19881 case $cc_basename in 19882 tcc*) 19883 export_dynamic_flag_spec_F77='-rdynamic' 19884 ;; 19885 xlf* | bgf* | bgxlf* | mpixlf*) 19886 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 19887 whole_archive_flag_spec_F77='--whole-archive$convenience --no-whole-archive' 19888 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir' 19889 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 19890 if test yes = "$supports_anon_versioning"; then 19891 archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~ 19892 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 19893 echo "local: *; };" >> $output_objdir/$libname.ver~ 19894 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 19895 fi 19896 ;; 19897 esac 19898 else 19899 ld_shlibs_F77=no 19900 fi 19901 ;; 19902 19903 netbsd*) 19904 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 19905 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 19906 wlarc= 19907 else 19908 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 19909 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' 19910 fi 19911 ;; 19912 19913 solaris*) 19914 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 19915 ld_shlibs_F77=no 19916 cat <<_LT_EOF 1>&2 19917 19918*** Warning: The releases 2.8.* of the GNU linker cannot reliably 19919*** create shared libraries on Solaris systems. Therefore, libtool 19920*** is disabling shared libraries support. We urge you to upgrade GNU 19921*** binutils to release 2.9.1 or newer. Another option is to modify 19922*** your PATH or compiler configuration so that the native linker is 19923*** used, and then restart. 19924 19925_LT_EOF 19926 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 19927 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 19928 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' 19929 else 19930 ld_shlibs_F77=no 19931 fi 19932 ;; 19933 19934 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 19935 case `$LD -v 2>&1` in 19936 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 19937 ld_shlibs_F77=no 19938 cat <<_LT_EOF 1>&2 19939 19940*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 19941*** reliably create shared libraries on SCO systems. Therefore, libtool 19942*** is disabling shared libraries support. We urge you to upgrade GNU 19943*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 19944*** your PATH or compiler configuration so that the native linker is 19945*** used, and then restart. 19946 19947_LT_EOF 19948 ;; 19949 *) 19950 # For security reasons, it is highly recommended that you always 19951 # use absolute paths for naming shared libraries, and exclude the 19952 # DT_RUNPATH tag from executables and libraries. But doing so 19953 # requires that you compile everything twice, which is a pain. 19954 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 19955 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir' 19956 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 19957 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 19958 else 19959 ld_shlibs_F77=no 19960 fi 19961 ;; 19962 esac 19963 ;; 19964 19965 sunos4*) 19966 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 19967 wlarc= 19968 hardcode_direct_F77=yes 19969 hardcode_shlibpath_var_F77=no 19970 ;; 19971 19972 *) 19973 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 19974 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 19975 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' 19976 else 19977 ld_shlibs_F77=no 19978 fi 19979 ;; 19980 esac 19981 19982 if test no = "$ld_shlibs_F77"; then 19983 runpath_var= 19984 hardcode_libdir_flag_spec_F77= 19985 export_dynamic_flag_spec_F77= 19986 whole_archive_flag_spec_F77= 19987 fi 19988 else 19989 # PORTME fill in a description of your system's linker (not GNU ld) 19990 case $host_os in 19991 aix3*) 19992 allow_undefined_flag_F77=unsupported 19993 always_export_symbols_F77=yes 19994 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' 19995 # Note: this linker hardcodes the directories in LIBPATH if there 19996 # are no directories specified by -L. 19997 hardcode_minus_L_F77=yes 19998 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 19999 # Neither direct hardcoding nor static linking is supported with a 20000 # broken collect2. 20001 hardcode_direct_F77=unsupported 20002 fi 20003 ;; 20004 20005 aix[4-9]*) 20006 if test ia64 = "$host_cpu"; then 20007 # On IA64, the linker does run time linking by default, so we don't 20008 # have to do anything special. 20009 aix_use_runtimelinking=no 20010 exp_sym_flag='-Bexport' 20011 no_entry_flag= 20012 else 20013 # If we're using GNU nm, then we don't want the "-C" option. 20014 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 20015 # Without the "-l" option, or with the "-B" option, AIX nm treats 20016 # weak defined symbols like other global defined symbols, whereas 20017 # GNU nm marks them as "W". 20018 # While the 'weak' keyword is ignored in the Export File, we need 20019 # it in the Import File for the 'aix-soname' feature, so we have 20020 # to replace the "-B" option with "-P" for AIX nm. 20021 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 20022 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' 20023 else 20024 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' 20025 fi 20026 aix_use_runtimelinking=no 20027 20028 # Test if we are trying to use run time linking or normal 20029 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 20030 # have runtime linking enabled, and use it for executables. 20031 # For shared libraries, we enable/disable runtime linking 20032 # depending on the kind of the shared library created - 20033 # when "with_aix_soname,aix_use_runtimelinking" is: 20034 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 20035 # "aix,yes" lib.so shared, rtl:yes, for executables 20036 # lib.a static archive 20037 # "both,no" lib.so.V(shr.o) shared, rtl:yes 20038 # lib.a(lib.so.V) shared, rtl:no, for executables 20039 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 20040 # lib.a(lib.so.V) shared, rtl:no 20041 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 20042 # lib.a static archive 20043 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 20044 for ld_flag in $LDFLAGS; do 20045 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 20046 aix_use_runtimelinking=yes 20047 break 20048 fi 20049 done 20050 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 20051 # With aix-soname=svr4, we create the lib.so.V shared archives only, 20052 # so we don't have lib.a shared libs to link our executables. 20053 # We have to force runtime linking in this case. 20054 aix_use_runtimelinking=yes 20055 LDFLAGS="$LDFLAGS -Wl,-brtl" 20056 fi 20057 ;; 20058 esac 20059 20060 exp_sym_flag='-bexport' 20061 no_entry_flag='-bnoentry' 20062 fi 20063 20064 # When large executables or shared objects are built, AIX ld can 20065 # have problems creating the table of contents. If linking a library 20066 # or program results in "error TOC overflow" add -mminimal-toc to 20067 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 20068 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 20069 20070 archive_cmds_F77='' 20071 hardcode_direct_F77=yes 20072 hardcode_direct_absolute_F77=yes 20073 hardcode_libdir_separator_F77=':' 20074 link_all_deplibs_F77=yes 20075 file_list_spec_F77='$wl-f,' 20076 case $with_aix_soname,$aix_use_runtimelinking in 20077 aix,*) ;; # traditional, no import file 20078 svr4,* | *,yes) # use import file 20079 # The Import File defines what to hardcode. 20080 hardcode_direct_F77=no 20081 hardcode_direct_absolute_F77=no 20082 ;; 20083 esac 20084 20085 if test yes = "$GCC"; then 20086 case $host_os in aix4.[012]|aix4.[012].*) 20087 # We only want to do this on AIX 4.2 and lower, the check 20088 # below for broken collect2 doesn't work under 4.3+ 20089 collect2name=`$CC -print-prog-name=collect2` 20090 if test -f "$collect2name" && 20091 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 20092 then 20093 # We have reworked collect2 20094 : 20095 else 20096 # We have old collect2 20097 hardcode_direct_F77=unsupported 20098 # It fails to find uninstalled libraries when the uninstalled 20099 # path is not listed in the libpath. Setting hardcode_minus_L 20100 # to unsupported forces relinking 20101 hardcode_minus_L_F77=yes 20102 hardcode_libdir_flag_spec_F77='-L$libdir' 20103 hardcode_libdir_separator_F77= 20104 fi 20105 ;; 20106 esac 20107 shared_flag='-shared' 20108 if test yes = "$aix_use_runtimelinking"; then 20109 shared_flag="$shared_flag "'$wl-G' 20110 fi 20111 # Need to ensure runtime linking is disabled for the traditional 20112 # shared library, or the linker may eventually find shared libraries 20113 # /with/ Import File - we do not want to mix them. 20114 shared_flag_aix='-shared' 20115 shared_flag_svr4='-shared $wl-G' 20116 else 20117 # not using gcc 20118 if test ia64 = "$host_cpu"; then 20119 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 20120 # chokes on -Wl,-G. The following line is correct: 20121 shared_flag='-G' 20122 else 20123 if test yes = "$aix_use_runtimelinking"; then 20124 shared_flag='$wl-G' 20125 else 20126 shared_flag='$wl-bM:SRE' 20127 fi 20128 shared_flag_aix='$wl-bM:SRE' 20129 shared_flag_svr4='$wl-G' 20130 fi 20131 fi 20132 20133 export_dynamic_flag_spec_F77='$wl-bexpall' 20134 # It seems that -bexpall does not export symbols beginning with 20135 # underscore (_), so it is better to generate a list of symbols to export. 20136 always_export_symbols_F77=yes 20137 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 20138 # Warning - without using the other runtime loading flags (-brtl), 20139 # -berok will link without error, but may produce a broken library. 20140 allow_undefined_flag_F77='-berok' 20141 # Determine the default libpath from the value encoded in an 20142 # empty executable. 20143 if test set = "${lt_cv_aix_libpath+set}"; then 20144 aix_libpath=$lt_cv_aix_libpath 20145else 20146 if test ${lt_cv_aix_libpath__F77+y} 20147then : 20148 printf %s "(cached) " >&6 20149else $as_nop 20150 cat > conftest.$ac_ext <<_ACEOF 20151 program main 20152 20153 end 20154_ACEOF 20155if ac_fn_f77_try_link "$LINENO" 20156then : 20157 20158 lt_aix_libpath_sed=' 20159 /Import File Strings/,/^$/ { 20160 /^0/ { 20161 s/^0 *\([^ ]*\) *$/\1/ 20162 p 20163 } 20164 }' 20165 lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 20166 # Check for a 64-bit object if we didn't find anything. 20167 if test -z "$lt_cv_aix_libpath__F77"; then 20168 lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 20169 fi 20170fi 20171rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20172 conftest$ac_exeext conftest.$ac_ext 20173 if test -z "$lt_cv_aix_libpath__F77"; then 20174 lt_cv_aix_libpath__F77=/usr/lib:/lib 20175 fi 20176 20177fi 20178 20179 aix_libpath=$lt_cv_aix_libpath__F77 20180fi 20181 20182 hardcode_libdir_flag_spec_F77='$wl-blibpath:$libdir:'"$aix_libpath" 20183 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 20184 else 20185 if test ia64 = "$host_cpu"; then 20186 hardcode_libdir_flag_spec_F77='$wl-R $libdir:/usr/lib:/lib' 20187 allow_undefined_flag_F77="-z nodefs" 20188 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" 20189 else 20190 # Determine the default libpath from the value encoded in an 20191 # empty executable. 20192 if test set = "${lt_cv_aix_libpath+set}"; then 20193 aix_libpath=$lt_cv_aix_libpath 20194else 20195 if test ${lt_cv_aix_libpath__F77+y} 20196then : 20197 printf %s "(cached) " >&6 20198else $as_nop 20199 cat > conftest.$ac_ext <<_ACEOF 20200 program main 20201 20202 end 20203_ACEOF 20204if ac_fn_f77_try_link "$LINENO" 20205then : 20206 20207 lt_aix_libpath_sed=' 20208 /Import File Strings/,/^$/ { 20209 /^0/ { 20210 s/^0 *\([^ ]*\) *$/\1/ 20211 p 20212 } 20213 }' 20214 lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 20215 # Check for a 64-bit object if we didn't find anything. 20216 if test -z "$lt_cv_aix_libpath__F77"; then 20217 lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 20218 fi 20219fi 20220rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20221 conftest$ac_exeext conftest.$ac_ext 20222 if test -z "$lt_cv_aix_libpath__F77"; then 20223 lt_cv_aix_libpath__F77=/usr/lib:/lib 20224 fi 20225 20226fi 20227 20228 aix_libpath=$lt_cv_aix_libpath__F77 20229fi 20230 20231 hardcode_libdir_flag_spec_F77='$wl-blibpath:$libdir:'"$aix_libpath" 20232 # Warning - without using the other run time loading flags, 20233 # -berok will link without error, but may produce a broken library. 20234 no_undefined_flag_F77=' $wl-bernotok' 20235 allow_undefined_flag_F77=' $wl-berok' 20236 if test yes = "$with_gnu_ld"; then 20237 # We only use this code for GNU lds that support --whole-archive. 20238 whole_archive_flag_spec_F77='$wl--whole-archive$convenience $wl--no-whole-archive' 20239 else 20240 # Exported symbols can be pulled into shared objects from archives 20241 whole_archive_flag_spec_F77='$convenience' 20242 fi 20243 archive_cmds_need_lc_F77=yes 20244 archive_expsym_cmds_F77='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 20245 # -brtl affects multiple linker settings, -berok does not and is overridden later 20246 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 20247 if test svr4 != "$with_aix_soname"; then 20248 # This is similar to how AIX traditionally builds its shared libraries. 20249 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' 20250 fi 20251 if test aix != "$with_aix_soname"; then 20252 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' 20253 else 20254 # used by -dlpreopen to get the symbols 20255 archive_expsym_cmds_F77="$archive_expsym_cmds_F77"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 20256 fi 20257 archive_expsym_cmds_F77="$archive_expsym_cmds_F77"'~$RM -r $output_objdir/$realname.d' 20258 fi 20259 fi 20260 ;; 20261 20262 amigaos*) 20263 case $host_cpu in 20264 powerpc) 20265 # see comment about AmigaOS4 .so support 20266 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 20267 archive_expsym_cmds_F77='' 20268 ;; 20269 m68k) 20270 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)' 20271 hardcode_libdir_flag_spec_F77='-L$libdir' 20272 hardcode_minus_L_F77=yes 20273 ;; 20274 esac 20275 ;; 20276 20277 bsdi[45]*) 20278 export_dynamic_flag_spec_F77=-rdynamic 20279 ;; 20280 20281 cygwin* | mingw* | pw32* | cegcc*) 20282 # When not using gcc, we currently assume that we are using 20283 # Microsoft Visual C++. 20284 # hardcode_libdir_flag_spec is actually meaningless, as there is 20285 # no search path for DLLs. 20286 case $cc_basename in 20287 cl*) 20288 # Native MSVC 20289 hardcode_libdir_flag_spec_F77=' ' 20290 allow_undefined_flag_F77=unsupported 20291 always_export_symbols_F77=yes 20292 file_list_spec_F77='@' 20293 # Tell ltmain to make .lib files, not .a files. 20294 libext=lib 20295 # Tell ltmain to make .dll files, not .so files. 20296 shrext_cmds=.dll 20297 # FIXME: Setting linknames here is a bad hack. 20298 archive_cmds_F77='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 20299 archive_expsym_cmds_F77='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 20300 cp "$export_symbols" "$output_objdir/$soname.def"; 20301 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 20302 else 20303 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 20304 fi~ 20305 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 20306 linknames=' 20307 # The linker will not automatically build a static lib if we build a DLL. 20308 # _LT_TAGVAR(old_archive_from_new_cmds, F77)='true' 20309 enable_shared_with_static_runtimes_F77=yes 20310 exclude_expsyms_F77='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 20311 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 20312 # Don't use ranlib 20313 old_postinstall_cmds_F77='chmod 644 $oldlib' 20314 postlink_cmds_F77='lt_outputfile="@OUTPUT@"~ 20315 lt_tool_outputfile="@TOOL_OUTPUT@"~ 20316 case $lt_outputfile in 20317 *.exe|*.EXE) ;; 20318 *) 20319 lt_outputfile=$lt_outputfile.exe 20320 lt_tool_outputfile=$lt_tool_outputfile.exe 20321 ;; 20322 esac~ 20323 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 20324 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 20325 $RM "$lt_outputfile.manifest"; 20326 fi' 20327 ;; 20328 *) 20329 # Assume MSVC wrapper 20330 hardcode_libdir_flag_spec_F77=' ' 20331 allow_undefined_flag_F77=unsupported 20332 # Tell ltmain to make .lib files, not .a files. 20333 libext=lib 20334 # Tell ltmain to make .dll files, not .so files. 20335 shrext_cmds=.dll 20336 # FIXME: Setting linknames here is a bad hack. 20337 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 20338 # The linker will automatically build a .lib file if we build a DLL. 20339 old_archive_from_new_cmds_F77='true' 20340 # FIXME: Should let the user specify the lib program. 20341 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' 20342 enable_shared_with_static_runtimes_F77=yes 20343 ;; 20344 esac 20345 ;; 20346 20347 darwin* | rhapsody*) 20348 20349 20350 archive_cmds_need_lc_F77=no 20351 hardcode_direct_F77=no 20352 hardcode_automatic_F77=yes 20353 hardcode_shlibpath_var_F77=unsupported 20354 if test yes = "$lt_cv_ld_force_load"; then 20355 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\"`' 20356 compiler_needs_object_F77=yes 20357 else 20358 whole_archive_flag_spec_F77='' 20359 fi 20360 link_all_deplibs_F77=yes 20361 allow_undefined_flag_F77=$_lt_dar_allow_undefined 20362 case $cc_basename in 20363 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 20364 *) _lt_dar_can_shared=$GCC ;; 20365 esac 20366 if test yes = "$_lt_dar_can_shared"; then 20367 output_verbose_link_cmd=func_echo_all 20368 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" 20369 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 20370 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" 20371 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" 20372 20373 else 20374 ld_shlibs_F77=no 20375 fi 20376 20377 ;; 20378 20379 dgux*) 20380 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20381 hardcode_libdir_flag_spec_F77='-L$libdir' 20382 hardcode_shlibpath_var_F77=no 20383 ;; 20384 20385 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 20386 # support. Future versions do this automatically, but an explicit c++rt0.o 20387 # does not break anything, and helps significantly (at the cost of a little 20388 # extra space). 20389 freebsd2.2*) 20390 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 20391 hardcode_libdir_flag_spec_F77='-R$libdir' 20392 hardcode_direct_F77=yes 20393 hardcode_shlibpath_var_F77=no 20394 ;; 20395 20396 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 20397 freebsd2.*) 20398 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 20399 hardcode_direct_F77=yes 20400 hardcode_minus_L_F77=yes 20401 hardcode_shlibpath_var_F77=no 20402 ;; 20403 20404 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 20405 freebsd* | dragonfly*) 20406 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 20407 hardcode_libdir_flag_spec_F77='-R$libdir' 20408 hardcode_direct_F77=yes 20409 hardcode_shlibpath_var_F77=no 20410 ;; 20411 20412 hpux9*) 20413 if test yes = "$GCC"; then 20414 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' 20415 else 20416 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' 20417 fi 20418 hardcode_libdir_flag_spec_F77='$wl+b $wl$libdir' 20419 hardcode_libdir_separator_F77=: 20420 hardcode_direct_F77=yes 20421 20422 # hardcode_minus_L: Not really in the search PATH, 20423 # but as the default location of the library. 20424 hardcode_minus_L_F77=yes 20425 export_dynamic_flag_spec_F77='$wl-E' 20426 ;; 20427 20428 hpux10*) 20429 if test yes,no = "$GCC,$with_gnu_ld"; then 20430 archive_cmds_F77='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 20431 else 20432 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 20433 fi 20434 if test no = "$with_gnu_ld"; then 20435 hardcode_libdir_flag_spec_F77='$wl+b $wl$libdir' 20436 hardcode_libdir_separator_F77=: 20437 hardcode_direct_F77=yes 20438 hardcode_direct_absolute_F77=yes 20439 export_dynamic_flag_spec_F77='$wl-E' 20440 # hardcode_minus_L: Not really in the search PATH, 20441 # but as the default location of the library. 20442 hardcode_minus_L_F77=yes 20443 fi 20444 ;; 20445 20446 hpux11*) 20447 if test yes,no = "$GCC,$with_gnu_ld"; then 20448 case $host_cpu in 20449 hppa*64*) 20450 archive_cmds_F77='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 20451 ;; 20452 ia64*) 20453 archive_cmds_F77='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 20454 ;; 20455 *) 20456 archive_cmds_F77='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 20457 ;; 20458 esac 20459 else 20460 case $host_cpu in 20461 hppa*64*) 20462 archive_cmds_F77='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 20463 ;; 20464 ia64*) 20465 archive_cmds_F77='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 20466 ;; 20467 *) 20468 archive_cmds_F77='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 20469 ;; 20470 esac 20471 fi 20472 if test no = "$with_gnu_ld"; then 20473 hardcode_libdir_flag_spec_F77='$wl+b $wl$libdir' 20474 hardcode_libdir_separator_F77=: 20475 20476 case $host_cpu in 20477 hppa*64*|ia64*) 20478 hardcode_direct_F77=no 20479 hardcode_shlibpath_var_F77=no 20480 ;; 20481 *) 20482 hardcode_direct_F77=yes 20483 hardcode_direct_absolute_F77=yes 20484 export_dynamic_flag_spec_F77='$wl-E' 20485 20486 # hardcode_minus_L: Not really in the search PATH, 20487 # but as the default location of the library. 20488 hardcode_minus_L_F77=yes 20489 ;; 20490 esac 20491 fi 20492 ;; 20493 20494 irix5* | irix6* | nonstopux*) 20495 if test yes = "$GCC"; then 20496 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' 20497 # Try to use the -exported_symbol ld option, if it does not 20498 # work, assume that -exports_file does not work either and 20499 # implicitly export all symbols. 20500 # This should be the same for all languages, so no per-tag cache variable. 20501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 20502printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 20503if test ${lt_cv_irix_exported_symbol+y} 20504then : 20505 printf %s "(cached) " >&6 20506else $as_nop 20507 save_LDFLAGS=$LDFLAGS 20508 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 20509 cat > conftest.$ac_ext <<_ACEOF 20510 20511 subroutine foo 20512 end 20513_ACEOF 20514if ac_fn_f77_try_link "$LINENO" 20515then : 20516 lt_cv_irix_exported_symbol=yes 20517else $as_nop 20518 lt_cv_irix_exported_symbol=no 20519fi 20520rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20521 conftest$ac_exeext conftest.$ac_ext 20522 LDFLAGS=$save_LDFLAGS 20523fi 20524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 20525printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 20526 if test yes = "$lt_cv_irix_exported_symbol"; then 20527 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' 20528 fi 20529 else 20530 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' 20531 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' 20532 fi 20533 archive_cmds_need_lc_F77='no' 20534 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir' 20535 hardcode_libdir_separator_F77=: 20536 inherit_rpath_F77=yes 20537 link_all_deplibs_F77=yes 20538 ;; 20539 20540 linux*) 20541 case $cc_basename in 20542 tcc*) 20543 # Fabrice Bellard et al's Tiny C Compiler 20544 ld_shlibs_F77=yes 20545 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 20546 ;; 20547 esac 20548 ;; 20549 20550 netbsd*) 20551 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 20552 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 20553 else 20554 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 20555 fi 20556 hardcode_libdir_flag_spec_F77='-R$libdir' 20557 hardcode_direct_F77=yes 20558 hardcode_shlibpath_var_F77=no 20559 ;; 20560 20561 newsos6) 20562 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20563 hardcode_direct_F77=yes 20564 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir' 20565 hardcode_libdir_separator_F77=: 20566 hardcode_shlibpath_var_F77=no 20567 ;; 20568 20569 *nto* | *qnx*) 20570 ;; 20571 20572 openbsd* | bitrig*) 20573 if test -f /usr/libexec/ld.so; then 20574 hardcode_direct_F77=yes 20575 hardcode_shlibpath_var_F77=no 20576 hardcode_direct_absolute_F77=yes 20577 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 20578 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 20579 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 20580 hardcode_libdir_flag_spec_F77='$wl-rpath,$libdir' 20581 export_dynamic_flag_spec_F77='$wl-E' 20582 else 20583 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 20584 hardcode_libdir_flag_spec_F77='$wl-rpath,$libdir' 20585 fi 20586 else 20587 ld_shlibs_F77=no 20588 fi 20589 ;; 20590 20591 os2*) 20592 hardcode_libdir_flag_spec_F77='-L$libdir' 20593 hardcode_minus_L_F77=yes 20594 allow_undefined_flag_F77=unsupported 20595 shrext_cmds=.dll 20596 archive_cmds_F77='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 20597 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 20598 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 20599 $ECHO EXPORTS >> $output_objdir/$libname.def~ 20600 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 20601 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 20602 emximp -o $lib $output_objdir/$libname.def' 20603 archive_expsym_cmds_F77='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 20604 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 20605 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 20606 $ECHO EXPORTS >> $output_objdir/$libname.def~ 20607 prefix_cmds="$SED"~ 20608 if test EXPORTS = "`$SED 1q $export_symbols`"; then 20609 prefix_cmds="$prefix_cmds -e 1d"; 20610 fi~ 20611 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 20612 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 20613 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 20614 emximp -o $lib $output_objdir/$libname.def' 20615 old_archive_From_new_cmds_F77='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 20616 enable_shared_with_static_runtimes_F77=yes 20617 ;; 20618 20619 osf3*) 20620 if test yes = "$GCC"; then 20621 allow_undefined_flag_F77=' $wl-expect_unresolved $wl\*' 20622 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' 20623 else 20624 allow_undefined_flag_F77=' -expect_unresolved \*' 20625 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' 20626 fi 20627 archive_cmds_need_lc_F77='no' 20628 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir' 20629 hardcode_libdir_separator_F77=: 20630 ;; 20631 20632 osf4* | osf5*) # as osf3* with the addition of -msym flag 20633 if test yes = "$GCC"; then 20634 allow_undefined_flag_F77=' $wl-expect_unresolved $wl\*' 20635 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' 20636 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir' 20637 else 20638 allow_undefined_flag_F77=' -expect_unresolved \*' 20639 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' 20640 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~ 20641 $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' 20642 20643 # Both c and cxx compiler support -rpath directly 20644 hardcode_libdir_flag_spec_F77='-rpath $libdir' 20645 fi 20646 archive_cmds_need_lc_F77='no' 20647 hardcode_libdir_separator_F77=: 20648 ;; 20649 20650 solaris*) 20651 no_undefined_flag_F77=' -z defs' 20652 if test yes = "$GCC"; then 20653 wlarc='$wl' 20654 archive_cmds_F77='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 20655 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 20656 $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' 20657 else 20658 case `$CC -V 2>&1` in 20659 *"Compilers 5.0"*) 20660 wlarc='' 20661 archive_cmds_F77='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 20662 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 20663 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 20664 ;; 20665 *) 20666 wlarc='$wl' 20667 archive_cmds_F77='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 20668 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 20669 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 20670 ;; 20671 esac 20672 fi 20673 hardcode_libdir_flag_spec_F77='-R$libdir' 20674 hardcode_shlibpath_var_F77=no 20675 case $host_os in 20676 solaris2.[0-5] | solaris2.[0-5].*) ;; 20677 *) 20678 # The compiler driver will combine and reorder linker options, 20679 # but understands '-z linker_flag'. GCC discards it without '$wl', 20680 # but is careful enough not to reorder. 20681 # Supported since Solaris 2.6 (maybe 2.5.1?) 20682 if test yes = "$GCC"; then 20683 whole_archive_flag_spec_F77='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 20684 else 20685 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' 20686 fi 20687 ;; 20688 esac 20689 link_all_deplibs_F77=yes 20690 ;; 20691 20692 sunos4*) 20693 if test sequent = "$host_vendor"; then 20694 # Use $CC to link under sequent, because it throws in some extra .o 20695 # files that make .init and .fini sections work. 20696 archive_cmds_F77='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 20697 else 20698 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 20699 fi 20700 hardcode_libdir_flag_spec_F77='-L$libdir' 20701 hardcode_direct_F77=yes 20702 hardcode_minus_L_F77=yes 20703 hardcode_shlibpath_var_F77=no 20704 ;; 20705 20706 sysv4) 20707 case $host_vendor in 20708 sni) 20709 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20710 hardcode_direct_F77=yes # is this really true??? 20711 ;; 20712 siemens) 20713 ## LD is ld it makes a PLAMLIB 20714 ## CC just makes a GrossModule. 20715 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 20716 reload_cmds_F77='$CC -r -o $output$reload_objs' 20717 hardcode_direct_F77=no 20718 ;; 20719 motorola) 20720 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20721 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 20722 ;; 20723 esac 20724 runpath_var='LD_RUN_PATH' 20725 hardcode_shlibpath_var_F77=no 20726 ;; 20727 20728 sysv4.3*) 20729 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20730 hardcode_shlibpath_var_F77=no 20731 export_dynamic_flag_spec_F77='-Bexport' 20732 ;; 20733 20734 sysv4*MP*) 20735 if test -d /usr/nec; then 20736 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20737 hardcode_shlibpath_var_F77=no 20738 runpath_var=LD_RUN_PATH 20739 hardcode_runpath_var=yes 20740 ld_shlibs_F77=yes 20741 fi 20742 ;; 20743 20744 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 20745 no_undefined_flag_F77='$wl-z,text' 20746 archive_cmds_need_lc_F77=no 20747 hardcode_shlibpath_var_F77=no 20748 runpath_var='LD_RUN_PATH' 20749 20750 if test yes = "$GCC"; then 20751 archive_cmds_F77='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20752 archive_expsym_cmds_F77='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20753 else 20754 archive_cmds_F77='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20755 archive_expsym_cmds_F77='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20756 fi 20757 ;; 20758 20759 sysv5* | sco3.2v5* | sco5v6*) 20760 # Note: We CANNOT use -z defs as we might desire, because we do not 20761 # link with -lc, and that would cause any symbols used from libc to 20762 # always be unresolved, which means just about no library would 20763 # ever link correctly. If we're not using GNU ld we use -z text 20764 # though, which does catch some bad symbols but isn't as heavy-handed 20765 # as -z defs. 20766 no_undefined_flag_F77='$wl-z,text' 20767 allow_undefined_flag_F77='$wl-z,nodefs' 20768 archive_cmds_need_lc_F77=no 20769 hardcode_shlibpath_var_F77=no 20770 hardcode_libdir_flag_spec_F77='$wl-R,$libdir' 20771 hardcode_libdir_separator_F77=':' 20772 link_all_deplibs_F77=yes 20773 export_dynamic_flag_spec_F77='$wl-Bexport' 20774 runpath_var='LD_RUN_PATH' 20775 20776 if test yes = "$GCC"; then 20777 archive_cmds_F77='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20778 archive_expsym_cmds_F77='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20779 else 20780 archive_cmds_F77='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20781 archive_expsym_cmds_F77='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20782 fi 20783 ;; 20784 20785 uts4*) 20786 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20787 hardcode_libdir_flag_spec_F77='-L$libdir' 20788 hardcode_shlibpath_var_F77=no 20789 ;; 20790 20791 *) 20792 ld_shlibs_F77=no 20793 ;; 20794 esac 20795 20796 if test sni = "$host_vendor"; then 20797 case $host in 20798 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 20799 export_dynamic_flag_spec_F77='$wl-Blargedynsym' 20800 ;; 20801 esac 20802 fi 20803 fi 20804 20805{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5 20806printf "%s\n" "$ld_shlibs_F77" >&6; } 20807test no = "$ld_shlibs_F77" && can_build_shared=no 20808 20809with_gnu_ld_F77=$with_gnu_ld 20810 20811 20812 20813 20814 20815 20816# 20817# Do we need to explicitly link libc? 20818# 20819case "x$archive_cmds_need_lc_F77" in 20820x|xyes) 20821 # Assume -lc should be added 20822 archive_cmds_need_lc_F77=yes 20823 20824 if test yes,yes = "$GCC,$enable_shared"; then 20825 case $archive_cmds_F77 in 20826 *'~'*) 20827 # FIXME: we may have to deal with multi-command sequences. 20828 ;; 20829 '$CC '*) 20830 # Test whether the compiler implicitly links with -lc since on some 20831 # systems, -lgcc has to come before -lc. If gcc already passes -lc 20832 # to ld, don't add -lc before -lgcc. 20833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 20834printf %s "checking whether -lc should be explicitly linked in... " >&6; } 20835if test ${lt_cv_archive_cmds_need_lc_F77+y} 20836then : 20837 printf %s "(cached) " >&6 20838else $as_nop 20839 $RM conftest* 20840 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 20841 20842 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 20843 (eval $ac_compile) 2>&5 20844 ac_status=$? 20845 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20846 test $ac_status = 0; } 2>conftest.err; then 20847 soname=conftest 20848 lib=conftest 20849 libobjs=conftest.$ac_objext 20850 deplibs= 20851 wl=$lt_prog_compiler_wl_F77 20852 pic_flag=$lt_prog_compiler_pic_F77 20853 compiler_flags=-v 20854 linker_flags=-v 20855 verstring= 20856 output_objdir=. 20857 libname=conftest 20858 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 20859 allow_undefined_flag_F77= 20860 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 20861 (eval $archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 20862 ac_status=$? 20863 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20864 test $ac_status = 0; } 20865 then 20866 lt_cv_archive_cmds_need_lc_F77=no 20867 else 20868 lt_cv_archive_cmds_need_lc_F77=yes 20869 fi 20870 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 20871 else 20872 cat conftest.err 1>&5 20873 fi 20874 $RM conftest* 20875 20876fi 20877{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_F77" >&5 20878printf "%s\n" "$lt_cv_archive_cmds_need_lc_F77" >&6; } 20879 archive_cmds_need_lc_F77=$lt_cv_archive_cmds_need_lc_F77 20880 ;; 20881 esac 20882 fi 20883 ;; 20884esac 20885 20886 20887 20888 20889 20890 20891 20892 20893 20894 20895 20896 20897 20898 20899 20900 20901 20902 20903 20904 20905 20906 20907 20908 20909 20910 20911 20912 20913 20914 20915 20916 20917 20918 20919 20920 20921 20922 20923 20924 20925 20926 20927 20928 20929 20930 20931 20932 20933 20934 20935 20936 20937 20938 20939 20940 20941 20942 20943 20944 20945 20946 20947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 20948printf %s "checking dynamic linker characteristics... " >&6; } 20949 20950library_names_spec= 20951libname_spec='lib$name' 20952soname_spec= 20953shrext_cmds=.so 20954postinstall_cmds= 20955postuninstall_cmds= 20956finish_cmds= 20957finish_eval= 20958shlibpath_var= 20959shlibpath_overrides_runpath=unknown 20960version_type=none 20961dynamic_linker="$host_os ld.so" 20962sys_lib_dlsearch_path_spec="/lib /usr/lib" 20963need_lib_prefix=unknown 20964hardcode_into_libs=no 20965 20966# when you set need_version to no, make sure it does not cause -set_version 20967# flags to be left without arguments 20968need_version=unknown 20969 20970 20971 20972case $host_os in 20973aix3*) 20974 version_type=linux # correct to gnu/linux during the next big refactor 20975 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 20976 shlibpath_var=LIBPATH 20977 20978 # AIX 3 has no versioning support, so we append a major version to the name. 20979 soname_spec='$libname$release$shared_ext$major' 20980 ;; 20981 20982aix[4-9]*) 20983 version_type=linux # correct to gnu/linux during the next big refactor 20984 need_lib_prefix=no 20985 need_version=no 20986 hardcode_into_libs=yes 20987 if test ia64 = "$host_cpu"; then 20988 # AIX 5 supports IA64 20989 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 20990 shlibpath_var=LD_LIBRARY_PATH 20991 else 20992 # With GCC up to 2.95.x, collect2 would create an import file 20993 # for dependence libraries. The import file would start with 20994 # the line '#! .'. This would cause the generated library to 20995 # depend on '.', always an invalid library. This was fixed in 20996 # development snapshots of GCC prior to 3.0. 20997 case $host_os in 20998 aix4 | aix4.[01] | aix4.[01].*) 20999 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 21000 echo ' yes ' 21001 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 21002 : 21003 else 21004 can_build_shared=no 21005 fi 21006 ;; 21007 esac 21008 # Using Import Files as archive members, it is possible to support 21009 # filename-based versioning of shared library archives on AIX. While 21010 # this would work for both with and without runtime linking, it will 21011 # prevent static linking of such archives. So we do filename-based 21012 # shared library versioning with .so extension only, which is used 21013 # when both runtime linking and shared linking is enabled. 21014 # Unfortunately, runtime linking may impact performance, so we do 21015 # not want this to be the default eventually. Also, we use the 21016 # versioned .so libs for executables only if there is the -brtl 21017 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 21018 # To allow for filename-based versioning support, we need to create 21019 # libNAME.so.V as an archive file, containing: 21020 # *) an Import File, referring to the versioned filename of the 21021 # archive as well as the shared archive member, telling the 21022 # bitwidth (32 or 64) of that shared object, and providing the 21023 # list of exported symbols of that shared object, eventually 21024 # decorated with the 'weak' keyword 21025 # *) the shared object with the F_LOADONLY flag set, to really avoid 21026 # it being seen by the linker. 21027 # At run time we better use the real file rather than another symlink, 21028 # but for link time we create the symlink libNAME.so -> libNAME.so.V 21029 21030 case $with_aix_soname,$aix_use_runtimelinking in 21031 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 21032 # soname into executable. Probably we can add versioning support to 21033 # collect2, so additional links can be useful in future. 21034 aix,yes) # traditional libtool 21035 dynamic_linker='AIX unversionable lib.so' 21036 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 21037 # instead of lib<name>.a to let people know that these are not 21038 # typical AIX shared libraries. 21039 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21040 ;; 21041 aix,no) # traditional AIX only 21042 dynamic_linker='AIX lib.a(lib.so.V)' 21043 # We preserve .a as extension for shared libraries through AIX4.2 21044 # and later when we are not doing run time linking. 21045 library_names_spec='$libname$release.a $libname.a' 21046 soname_spec='$libname$release$shared_ext$major' 21047 ;; 21048 svr4,*) # full svr4 only 21049 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 21050 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 21051 # We do not specify a path in Import Files, so LIBPATH fires. 21052 shlibpath_overrides_runpath=yes 21053 ;; 21054 *,yes) # both, prefer svr4 21055 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 21056 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 21057 # unpreferred sharedlib libNAME.a needs extra handling 21058 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"' 21059 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"' 21060 # We do not specify a path in Import Files, so LIBPATH fires. 21061 shlibpath_overrides_runpath=yes 21062 ;; 21063 *,no) # both, prefer aix 21064 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 21065 library_names_spec='$libname$release.a $libname.a' 21066 soname_spec='$libname$release$shared_ext$major' 21067 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 21068 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)' 21069 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"' 21070 ;; 21071 esac 21072 shlibpath_var=LIBPATH 21073 fi 21074 ;; 21075 21076amigaos*) 21077 case $host_cpu in 21078 powerpc) 21079 # Since July 2007 AmigaOS4 officially supports .so libraries. 21080 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 21081 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21082 ;; 21083 m68k) 21084 library_names_spec='$libname.ixlibrary $libname.a' 21085 # Create ${libname}_ixlibrary.a entries in /sys/libs. 21086 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' 21087 ;; 21088 esac 21089 ;; 21090 21091beos*) 21092 library_names_spec='$libname$shared_ext' 21093 dynamic_linker="$host_os ld.so" 21094 shlibpath_var=LIBRARY_PATH 21095 ;; 21096 21097bsdi[45]*) 21098 version_type=linux # correct to gnu/linux during the next big refactor 21099 need_version=no 21100 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21101 soname_spec='$libname$release$shared_ext$major' 21102 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 21103 shlibpath_var=LD_LIBRARY_PATH 21104 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 21105 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 21106 # the default ld.so.conf also contains /usr/contrib/lib and 21107 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 21108 # libtool to hard-code these into programs 21109 ;; 21110 21111cygwin* | mingw* | pw32* | cegcc*) 21112 version_type=windows 21113 shrext_cmds=.dll 21114 need_version=no 21115 need_lib_prefix=no 21116 21117 case $GCC,$cc_basename in 21118 yes,*) 21119 # gcc 21120 library_names_spec='$libname.dll.a' 21121 # DLL is installed to $(libdir)/../bin by postinstall_cmds 21122 postinstall_cmds='base_file=`basename \$file`~ 21123 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 21124 dldir=$destdir/`dirname \$dlpath`~ 21125 test -d \$dldir || mkdir -p \$dldir~ 21126 $install_prog $dir/$dlname \$dldir/$dlname~ 21127 chmod a+x \$dldir/$dlname~ 21128 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 21129 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 21130 fi' 21131 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 21132 dlpath=$dir/\$dldll~ 21133 $RM \$dlpath' 21134 shlibpath_overrides_runpath=yes 21135 21136 case $host_os in 21137 cygwin*) 21138 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 21139 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 21140 21141 ;; 21142 mingw* | cegcc*) 21143 # MinGW DLLs use traditional 'lib' prefix 21144 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 21145 ;; 21146 pw32*) 21147 # pw32 DLLs use 'pw' prefix rather than 'lib' 21148 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 21149 ;; 21150 esac 21151 dynamic_linker='Win32 ld.exe' 21152 ;; 21153 21154 *,cl*) 21155 # Native MSVC 21156 libname_spec='$name' 21157 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 21158 library_names_spec='$libname.dll.lib' 21159 21160 case $build_os in 21161 mingw*) 21162 sys_lib_search_path_spec= 21163 lt_save_ifs=$IFS 21164 IFS=';' 21165 for lt_path in $LIB 21166 do 21167 IFS=$lt_save_ifs 21168 # Let DOS variable expansion print the short 8.3 style file name. 21169 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 21170 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 21171 done 21172 IFS=$lt_save_ifs 21173 # Convert to MSYS style. 21174 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 21175 ;; 21176 cygwin*) 21177 # Convert to unix form, then to dos form, then back to unix form 21178 # but this time dos style (no spaces!) so that the unix form looks 21179 # like /cygdrive/c/PROGRA~1:/cygdr... 21180 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 21181 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 21182 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 21183 ;; 21184 *) 21185 sys_lib_search_path_spec=$LIB 21186 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 21187 # It is most probably a Windows format PATH. 21188 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 21189 else 21190 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 21191 fi 21192 # FIXME: find the short name or the path components, as spaces are 21193 # common. (e.g. "Program Files" -> "PROGRA~1") 21194 ;; 21195 esac 21196 21197 # DLL is installed to $(libdir)/../bin by postinstall_cmds 21198 postinstall_cmds='base_file=`basename \$file`~ 21199 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 21200 dldir=$destdir/`dirname \$dlpath`~ 21201 test -d \$dldir || mkdir -p \$dldir~ 21202 $install_prog $dir/$dlname \$dldir/$dlname' 21203 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 21204 dlpath=$dir/\$dldll~ 21205 $RM \$dlpath' 21206 shlibpath_overrides_runpath=yes 21207 dynamic_linker='Win32 link.exe' 21208 ;; 21209 21210 *) 21211 # Assume MSVC wrapper 21212 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 21213 dynamic_linker='Win32 ld.exe' 21214 ;; 21215 esac 21216 # FIXME: first we should search . and the directory the executable is in 21217 shlibpath_var=PATH 21218 ;; 21219 21220darwin* | rhapsody*) 21221 dynamic_linker="$host_os dyld" 21222 version_type=darwin 21223 need_lib_prefix=no 21224 need_version=no 21225 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 21226 soname_spec='$libname$release$major$shared_ext' 21227 shlibpath_overrides_runpath=yes 21228 shlibpath_var=DYLD_LIBRARY_PATH 21229 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 21230 21231 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 21232 ;; 21233 21234dgux*) 21235 version_type=linux # correct to gnu/linux during the next big refactor 21236 need_lib_prefix=no 21237 need_version=no 21238 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21239 soname_spec='$libname$release$shared_ext$major' 21240 shlibpath_var=LD_LIBRARY_PATH 21241 ;; 21242 21243freebsd* | dragonfly*) 21244 # DragonFly does not have aout. When/if they implement a new 21245 # versioning mechanism, adjust this. 21246 if test -x /usr/bin/objformat; then 21247 objformat=`/usr/bin/objformat` 21248 else 21249 case $host_os in 21250 freebsd[23].*) objformat=aout ;; 21251 *) objformat=elf ;; 21252 esac 21253 fi 21254 version_type=freebsd-$objformat 21255 case $version_type in 21256 freebsd-elf*) 21257 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21258 soname_spec='$libname$release$shared_ext$major' 21259 need_version=no 21260 need_lib_prefix=no 21261 ;; 21262 freebsd-*) 21263 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 21264 need_version=yes 21265 ;; 21266 esac 21267 shlibpath_var=LD_LIBRARY_PATH 21268 case $host_os in 21269 freebsd2.*) 21270 shlibpath_overrides_runpath=yes 21271 ;; 21272 freebsd3.[01]* | freebsdelf3.[01]*) 21273 shlibpath_overrides_runpath=yes 21274 hardcode_into_libs=yes 21275 ;; 21276 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 21277 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 21278 shlibpath_overrides_runpath=no 21279 hardcode_into_libs=yes 21280 ;; 21281 *) # from 4.6 on, and DragonFly 21282 shlibpath_overrides_runpath=yes 21283 hardcode_into_libs=yes 21284 ;; 21285 esac 21286 ;; 21287 21288haiku*) 21289 version_type=linux # correct to gnu/linux during the next big refactor 21290 need_lib_prefix=no 21291 need_version=no 21292 dynamic_linker="$host_os runtime_loader" 21293 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21294 soname_spec='$libname$release$shared_ext$major' 21295 shlibpath_var=LIBRARY_PATH 21296 shlibpath_overrides_runpath=no 21297 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 21298 hardcode_into_libs=yes 21299 ;; 21300 21301hpux9* | hpux10* | hpux11*) 21302 # Give a soname corresponding to the major version so that dld.sl refuses to 21303 # link against other versions. 21304 version_type=sunos 21305 need_lib_prefix=no 21306 need_version=no 21307 case $host_cpu in 21308 ia64*) 21309 shrext_cmds='.so' 21310 hardcode_into_libs=yes 21311 dynamic_linker="$host_os dld.so" 21312 shlibpath_var=LD_LIBRARY_PATH 21313 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 21314 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21315 soname_spec='$libname$release$shared_ext$major' 21316 if test 32 = "$HPUX_IA64_MODE"; then 21317 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 21318 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 21319 else 21320 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 21321 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 21322 fi 21323 ;; 21324 hppa*64*) 21325 shrext_cmds='.sl' 21326 hardcode_into_libs=yes 21327 dynamic_linker="$host_os dld.sl" 21328 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 21329 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 21330 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21331 soname_spec='$libname$release$shared_ext$major' 21332 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 21333 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 21334 ;; 21335 *) 21336 shrext_cmds='.sl' 21337 dynamic_linker="$host_os dld.sl" 21338 shlibpath_var=SHLIB_PATH 21339 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 21340 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21341 soname_spec='$libname$release$shared_ext$major' 21342 ;; 21343 esac 21344 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 21345 postinstall_cmds='chmod 555 $lib' 21346 # or fails outright, so override atomically: 21347 install_override_mode=555 21348 ;; 21349 21350interix[3-9]*) 21351 version_type=linux # correct to gnu/linux during the next big refactor 21352 need_lib_prefix=no 21353 need_version=no 21354 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21355 soname_spec='$libname$release$shared_ext$major' 21356 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 21357 shlibpath_var=LD_LIBRARY_PATH 21358 shlibpath_overrides_runpath=no 21359 hardcode_into_libs=yes 21360 ;; 21361 21362irix5* | irix6* | nonstopux*) 21363 case $host_os in 21364 nonstopux*) version_type=nonstopux ;; 21365 *) 21366 if test yes = "$lt_cv_prog_gnu_ld"; then 21367 version_type=linux # correct to gnu/linux during the next big refactor 21368 else 21369 version_type=irix 21370 fi ;; 21371 esac 21372 need_lib_prefix=no 21373 need_version=no 21374 soname_spec='$libname$release$shared_ext$major' 21375 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 21376 case $host_os in 21377 irix5* | nonstopux*) 21378 libsuff= shlibsuff= 21379 ;; 21380 *) 21381 case $LD in # libtool.m4 will add one of these switches to LD 21382 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 21383 libsuff= shlibsuff= libmagic=32-bit;; 21384 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 21385 libsuff=32 shlibsuff=N32 libmagic=N32;; 21386 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 21387 libsuff=64 shlibsuff=64 libmagic=64-bit;; 21388 *) libsuff= shlibsuff= libmagic=never-match;; 21389 esac 21390 ;; 21391 esac 21392 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 21393 shlibpath_overrides_runpath=no 21394 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 21395 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 21396 hardcode_into_libs=yes 21397 ;; 21398 21399# No shared lib support for Linux oldld, aout, or coff. 21400linux*oldld* | linux*aout* | linux*coff*) 21401 dynamic_linker=no 21402 ;; 21403 21404linux*android*) 21405 version_type=none # Android doesn't support versioned libraries. 21406 need_lib_prefix=no 21407 need_version=no 21408 library_names_spec='$libname$release$shared_ext' 21409 soname_spec='$libname$release$shared_ext' 21410 finish_cmds= 21411 shlibpath_var=LD_LIBRARY_PATH 21412 shlibpath_overrides_runpath=yes 21413 21414 # This implies no fast_install, which is unacceptable. 21415 # Some rework will be needed to allow for fast_install 21416 # before this can be enabled. 21417 hardcode_into_libs=yes 21418 21419 dynamic_linker='Android linker' 21420 # Don't embed -rpath directories since the linker doesn't support them. 21421 hardcode_libdir_flag_spec_F77='-L$libdir' 21422 ;; 21423 21424# This must be glibc/ELF. 21425linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 21426 version_type=linux # correct to gnu/linux during the next big refactor 21427 need_lib_prefix=no 21428 need_version=no 21429 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21430 soname_spec='$libname$release$shared_ext$major' 21431 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 21432 shlibpath_var=LD_LIBRARY_PATH 21433 shlibpath_overrides_runpath=no 21434 21435 # Some binutils ld are patched to set DT_RUNPATH 21436 if test ${lt_cv_shlibpath_overrides_runpath+y} 21437then : 21438 printf %s "(cached) " >&6 21439else $as_nop 21440 lt_cv_shlibpath_overrides_runpath=no 21441 save_LDFLAGS=$LDFLAGS 21442 save_libdir=$libdir 21443 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_F77\"; \ 21444 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_F77\"" 21445 cat > conftest.$ac_ext <<_ACEOF 21446 program main 21447 21448 end 21449_ACEOF 21450if ac_fn_f77_try_link "$LINENO" 21451then : 21452 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 21453then : 21454 lt_cv_shlibpath_overrides_runpath=yes 21455fi 21456fi 21457rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21458 conftest$ac_exeext conftest.$ac_ext 21459 LDFLAGS=$save_LDFLAGS 21460 libdir=$save_libdir 21461 21462fi 21463 21464 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 21465 21466 # This implies no fast_install, which is unacceptable. 21467 # Some rework will be needed to allow for fast_install 21468 # before this can be enabled. 21469 hardcode_into_libs=yes 21470 21471 # Ideally, we could use ldconfig to report *all* directores which are 21472 # searched for libraries, however this is still not possible. Aside from not 21473 # being certain /sbin/ldconfig is available, command 21474 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 21475 # even though it is searched at run-time. Try to do the best guess by 21476 # appending ld.so.conf contents (and includes) to the search path. 21477 if test -f /etc/ld.so.conf; then 21478 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' ' '` 21479 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 21480 fi 21481 21482 # We used to test for /lib/ld.so.1 and disable shared libraries on 21483 # powerpc, because MkLinux only supported shared libraries with the 21484 # GNU dynamic linker. Since this was broken with cross compilers, 21485 # most powerpc-linux boxes support dynamic linking these days and 21486 # people can always --disable-shared, the test was removed, and we 21487 # assume the GNU/Linux dynamic linker is in use. 21488 dynamic_linker='GNU/Linux ld.so' 21489 ;; 21490 21491netbsd*) 21492 version_type=sunos 21493 need_lib_prefix=no 21494 need_version=no 21495 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 21496 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 21497 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 21498 dynamic_linker='NetBSD (a.out) ld.so' 21499 else 21500 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21501 soname_spec='$libname$release$shared_ext$major' 21502 dynamic_linker='NetBSD ld.elf_so' 21503 fi 21504 shlibpath_var=LD_LIBRARY_PATH 21505 shlibpath_overrides_runpath=yes 21506 hardcode_into_libs=yes 21507 ;; 21508 21509newsos6) 21510 version_type=linux # correct to gnu/linux during the next big refactor 21511 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21512 shlibpath_var=LD_LIBRARY_PATH 21513 shlibpath_overrides_runpath=yes 21514 ;; 21515 21516*nto* | *qnx*) 21517 version_type=qnx 21518 need_lib_prefix=no 21519 need_version=no 21520 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21521 soname_spec='$libname$release$shared_ext$major' 21522 shlibpath_var=LD_LIBRARY_PATH 21523 shlibpath_overrides_runpath=no 21524 hardcode_into_libs=yes 21525 dynamic_linker='ldqnx.so' 21526 ;; 21527 21528openbsd* | bitrig*) 21529 version_type=sunos 21530 sys_lib_dlsearch_path_spec=/usr/lib 21531 need_lib_prefix=no 21532 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 21533 need_version=no 21534 else 21535 need_version=yes 21536 fi 21537 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 21538 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 21539 shlibpath_var=LD_LIBRARY_PATH 21540 shlibpath_overrides_runpath=yes 21541 ;; 21542 21543os2*) 21544 libname_spec='$name' 21545 version_type=windows 21546 shrext_cmds=.dll 21547 need_version=no 21548 need_lib_prefix=no 21549 # OS/2 can only load a DLL with a base name of 8 characters or less. 21550 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 21551 v=$($ECHO $release$versuffix | tr -d .-); 21552 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 21553 $ECHO $n$v`$shared_ext' 21554 library_names_spec='${libname}_dll.$libext' 21555 dynamic_linker='OS/2 ld.exe' 21556 shlibpath_var=BEGINLIBPATH 21557 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 21558 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 21559 postinstall_cmds='base_file=`basename \$file`~ 21560 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 21561 dldir=$destdir/`dirname \$dlpath`~ 21562 test -d \$dldir || mkdir -p \$dldir~ 21563 $install_prog $dir/$dlname \$dldir/$dlname~ 21564 chmod a+x \$dldir/$dlname~ 21565 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 21566 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 21567 fi' 21568 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 21569 dlpath=$dir/\$dldll~ 21570 $RM \$dlpath' 21571 ;; 21572 21573osf3* | osf4* | osf5*) 21574 version_type=osf 21575 need_lib_prefix=no 21576 need_version=no 21577 soname_spec='$libname$release$shared_ext$major' 21578 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21579 shlibpath_var=LD_LIBRARY_PATH 21580 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 21581 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 21582 ;; 21583 21584rdos*) 21585 dynamic_linker=no 21586 ;; 21587 21588solaris*) 21589 version_type=linux # correct to gnu/linux during the next big refactor 21590 need_lib_prefix=no 21591 need_version=no 21592 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21593 soname_spec='$libname$release$shared_ext$major' 21594 shlibpath_var=LD_LIBRARY_PATH 21595 shlibpath_overrides_runpath=yes 21596 hardcode_into_libs=yes 21597 # ldd complains unless libraries are executable 21598 postinstall_cmds='chmod +x $lib' 21599 ;; 21600 21601sunos4*) 21602 version_type=sunos 21603 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 21604 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 21605 shlibpath_var=LD_LIBRARY_PATH 21606 shlibpath_overrides_runpath=yes 21607 if test yes = "$with_gnu_ld"; then 21608 need_lib_prefix=no 21609 fi 21610 need_version=yes 21611 ;; 21612 21613sysv4 | sysv4.3*) 21614 version_type=linux # correct to gnu/linux during the next big refactor 21615 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21616 soname_spec='$libname$release$shared_ext$major' 21617 shlibpath_var=LD_LIBRARY_PATH 21618 case $host_vendor in 21619 sni) 21620 shlibpath_overrides_runpath=no 21621 need_lib_prefix=no 21622 runpath_var=LD_RUN_PATH 21623 ;; 21624 siemens) 21625 need_lib_prefix=no 21626 ;; 21627 motorola) 21628 need_lib_prefix=no 21629 need_version=no 21630 shlibpath_overrides_runpath=no 21631 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 21632 ;; 21633 esac 21634 ;; 21635 21636sysv4*MP*) 21637 if test -d /usr/nec; then 21638 version_type=linux # correct to gnu/linux during the next big refactor 21639 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 21640 soname_spec='$libname$shared_ext.$major' 21641 shlibpath_var=LD_LIBRARY_PATH 21642 fi 21643 ;; 21644 21645sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 21646 version_type=sco 21647 need_lib_prefix=no 21648 need_version=no 21649 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 21650 soname_spec='$libname$release$shared_ext$major' 21651 shlibpath_var=LD_LIBRARY_PATH 21652 shlibpath_overrides_runpath=yes 21653 hardcode_into_libs=yes 21654 if test yes = "$with_gnu_ld"; then 21655 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 21656 else 21657 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 21658 case $host_os in 21659 sco3.2v5*) 21660 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 21661 ;; 21662 esac 21663 fi 21664 sys_lib_dlsearch_path_spec='/usr/lib' 21665 ;; 21666 21667tpf*) 21668 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 21669 version_type=linux # correct to gnu/linux during the next big refactor 21670 need_lib_prefix=no 21671 need_version=no 21672 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21673 shlibpath_var=LD_LIBRARY_PATH 21674 shlibpath_overrides_runpath=no 21675 hardcode_into_libs=yes 21676 ;; 21677 21678uts4*) 21679 version_type=linux # correct to gnu/linux during the next big refactor 21680 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21681 soname_spec='$libname$release$shared_ext$major' 21682 shlibpath_var=LD_LIBRARY_PATH 21683 ;; 21684 21685*) 21686 dynamic_linker=no 21687 ;; 21688esac 21689{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 21690printf "%s\n" "$dynamic_linker" >&6; } 21691test no = "$dynamic_linker" && can_build_shared=no 21692 21693variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 21694if test yes = "$GCC"; then 21695 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 21696fi 21697 21698if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 21699 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 21700fi 21701 21702if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 21703 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 21704fi 21705 21706# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 21707configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 21708 21709# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 21710func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 21711 21712# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 21713configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 21714 21715 21716 21717 21718 21719 21720 21721 21722 21723 21724 21725 21726 21727 21728 21729 21730 21731 21732 21733 21734 21735 21736 21737 21738 21739 21740 21741 21742 21743 21744 21745 21746 21747 21748 21749 21750 21751 21752 21753 21754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 21755printf %s "checking how to hardcode library paths into programs... " >&6; } 21756hardcode_action_F77= 21757if test -n "$hardcode_libdir_flag_spec_F77" || 21758 test -n "$runpath_var_F77" || 21759 test yes = "$hardcode_automatic_F77"; then 21760 21761 # We can hardcode non-existent directories. 21762 if test no != "$hardcode_direct_F77" && 21763 # If the only mechanism to avoid hardcoding is shlibpath_var, we 21764 # have to relink, otherwise we might link with an installed library 21765 # when we should be linking with a yet-to-be-installed one 21766 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, F77)" && 21767 test no != "$hardcode_minus_L_F77"; then 21768 # Linking always hardcodes the temporary library directory. 21769 hardcode_action_F77=relink 21770 else 21771 # We can link without hardcoding, and we can hardcode nonexisting dirs. 21772 hardcode_action_F77=immediate 21773 fi 21774else 21775 # We cannot hardcode anything, or else we can only hardcode existing 21776 # directories. 21777 hardcode_action_F77=unsupported 21778fi 21779{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5 21780printf "%s\n" "$hardcode_action_F77" >&6; } 21781 21782if test relink = "$hardcode_action_F77" || 21783 test yes = "$inherit_rpath_F77"; then 21784 # Fast installation is not supported 21785 enable_fast_install=no 21786elif test yes = "$shlibpath_overrides_runpath" || 21787 test no = "$enable_shared"; then 21788 # Fast installation is not necessary 21789 enable_fast_install=needless 21790fi 21791 21792 21793 21794 21795 21796 21797 21798 fi # test -n "$compiler" 21799 21800 GCC=$lt_save_GCC 21801 CC=$lt_save_CC 21802 CFLAGS=$lt_save_CFLAGS 21803fi # test yes != "$_lt_disable_F77" 21804 21805ac_ext=c 21806ac_cpp='$CPP $CPPFLAGS' 21807ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21808ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21809ac_compiler_gnu=$ac_cv_c_compiler_gnu 21810 21811 21812 21813 ac_ext=${ac_fc_srcext-f} 21814ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 21815ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 21816ac_compiler_gnu=$ac_cv_fc_compiler_gnu 21817 21818 21819if test -z "$FC" || test no = "$FC"; then 21820 _lt_disable_FC=yes 21821fi 21822 21823archive_cmds_need_lc_FC=no 21824allow_undefined_flag_FC= 21825always_export_symbols_FC=no 21826archive_expsym_cmds_FC= 21827export_dynamic_flag_spec_FC= 21828hardcode_direct_FC=no 21829hardcode_direct_absolute_FC=no 21830hardcode_libdir_flag_spec_FC= 21831hardcode_libdir_separator_FC= 21832hardcode_minus_L_FC=no 21833hardcode_automatic_FC=no 21834inherit_rpath_FC=no 21835module_cmds_FC= 21836module_expsym_cmds_FC= 21837link_all_deplibs_FC=unknown 21838old_archive_cmds_FC=$old_archive_cmds 21839reload_flag_FC=$reload_flag 21840reload_cmds_FC=$reload_cmds 21841no_undefined_flag_FC= 21842whole_archive_flag_spec_FC= 21843enable_shared_with_static_runtimes_FC=no 21844 21845# Source file extension for fc test sources. 21846ac_ext=${ac_fc_srcext-f} 21847 21848# Object file extension for compiled fc test sources. 21849objext=o 21850objext_FC=$objext 21851 21852# No sense in running all these tests if we already determined that 21853# the FC compiler isn't working. Some variables (like enable_shared) 21854# are currently assumed to apply to all compilers on this platform, 21855# and will be corrupted by setting them based on a non-working compiler. 21856if test yes != "$_lt_disable_FC"; then 21857 # Code to be used in simple compile tests 21858 lt_simple_compile_test_code="\ 21859 subroutine t 21860 return 21861 end 21862" 21863 21864 # Code to be used in simple link tests 21865 lt_simple_link_test_code="\ 21866 program t 21867 end 21868" 21869 21870 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 21871 21872 21873 21874 21875 21876 21877# If no C compiler was specified, use CC. 21878LTCC=${LTCC-"$CC"} 21879 21880# If no C compiler flags were specified, use CFLAGS. 21881LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 21882 21883# Allow CC to be a program name with arguments. 21884compiler=$CC 21885 21886 21887 # save warnings/boilerplate of simple test code 21888 ac_outfile=conftest.$ac_objext 21889echo "$lt_simple_compile_test_code" >conftest.$ac_ext 21890eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 21891_lt_compiler_boilerplate=`cat conftest.err` 21892$RM conftest* 21893 21894 ac_outfile=conftest.$ac_objext 21895echo "$lt_simple_link_test_code" >conftest.$ac_ext 21896eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 21897_lt_linker_boilerplate=`cat conftest.err` 21898$RM -r conftest* 21899 21900 21901 # Allow CC to be a program name with arguments. 21902 lt_save_CC=$CC 21903 lt_save_GCC=$GCC 21904 lt_save_CFLAGS=$CFLAGS 21905 CC=${FC-"f95"} 21906 CFLAGS=$FCFLAGS 21907 compiler=$CC 21908 GCC=$ac_cv_fc_compiler_gnu 21909 21910 compiler_FC=$CC 21911 func_cc_basename $compiler 21912cc_basename=$func_cc_basename_result 21913 21914 21915 if test -n "$compiler"; then 21916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 21917printf %s "checking if libtool supports shared libraries... " >&6; } 21918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 21919printf "%s\n" "$can_build_shared" >&6; } 21920 21921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 21922printf %s "checking whether to build shared libraries... " >&6; } 21923 test no = "$can_build_shared" && enable_shared=no 21924 21925 # On AIX, shared libraries and static libraries use the same namespace, and 21926 # are all built from PIC. 21927 case $host_os in 21928 aix3*) 21929 test yes = "$enable_shared" && enable_static=no 21930 if test -n "$RANLIB"; then 21931 archive_cmds="$archive_cmds~\$RANLIB \$lib" 21932 postinstall_cmds='$RANLIB $lib' 21933 fi 21934 ;; 21935 aix[4-9]*) 21936 if test ia64 != "$host_cpu"; then 21937 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 21938 yes,aix,yes) ;; # shared object as lib.so file only 21939 yes,svr4,*) ;; # shared object as lib.so archive member only 21940 yes,*) enable_static=no ;; # shared object in lib.a archive as well 21941 esac 21942 fi 21943 ;; 21944 esac 21945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 21946printf "%s\n" "$enable_shared" >&6; } 21947 21948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 21949printf %s "checking whether to build static libraries... " >&6; } 21950 # Make sure either enable_shared or enable_static is yes. 21951 test yes = "$enable_shared" || enable_static=yes 21952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 21953printf "%s\n" "$enable_static" >&6; } 21954 21955 GCC_FC=$ac_cv_fc_compiler_gnu 21956 LD_FC=$LD 21957 21958 ## CAVEAT EMPTOR: 21959 ## There is no encapsulation within the following macros, do not change 21960 ## the running order or otherwise move them around unless you know exactly 21961 ## what you are doing... 21962 # Dependencies to place before and after the object being linked: 21963predep_objects_FC= 21964postdep_objects_FC= 21965predeps_FC= 21966postdeps_FC= 21967compiler_lib_search_path_FC= 21968 21969cat > conftest.$ac_ext <<_LT_EOF 21970 subroutine foo 21971 implicit none 21972 integer a 21973 a=0 21974 return 21975 end 21976_LT_EOF 21977 21978 21979_lt_libdeps_save_CFLAGS=$CFLAGS 21980case "$CC $CFLAGS " in #( 21981*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 21982*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 21983*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 21984esac 21985 21986if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 21987 (eval $ac_compile) 2>&5 21988 ac_status=$? 21989 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21990 test $ac_status = 0; }; then 21991 # Parse the compiler output and extract the necessary 21992 # objects, libraries and library flags. 21993 21994 # Sentinel used to keep track of whether or not we are before 21995 # the conftest object file. 21996 pre_test_object_deps_done=no 21997 21998 for p in `eval "$output_verbose_link_cmd"`; do 21999 case $prev$p in 22000 22001 -L* | -R* | -l*) 22002 # Some compilers place space between "-{L,R}" and the path. 22003 # Remove the space. 22004 if test x-L = "$p" || 22005 test x-R = "$p"; then 22006 prev=$p 22007 continue 22008 fi 22009 22010 # Expand the sysroot to ease extracting the directories later. 22011 if test -z "$prev"; then 22012 case $p in 22013 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 22014 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 22015 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 22016 esac 22017 fi 22018 case $p in 22019 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 22020 esac 22021 if test no = "$pre_test_object_deps_done"; then 22022 case $prev in 22023 -L | -R) 22024 # Internal compiler library paths should come after those 22025 # provided the user. The postdeps already come after the 22026 # user supplied libs so there is no need to process them. 22027 if test -z "$compiler_lib_search_path_FC"; then 22028 compiler_lib_search_path_FC=$prev$p 22029 else 22030 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} $prev$p" 22031 fi 22032 ;; 22033 # The "-l" case would never come before the object being 22034 # linked, so don't bother handling this case. 22035 esac 22036 else 22037 if test -z "$postdeps_FC"; then 22038 postdeps_FC=$prev$p 22039 else 22040 postdeps_FC="${postdeps_FC} $prev$p" 22041 fi 22042 fi 22043 prev= 22044 ;; 22045 22046 *.lto.$objext) ;; # Ignore GCC LTO objects 22047 *.$objext) 22048 # This assumes that the test object file only shows up 22049 # once in the compiler output. 22050 if test "$p" = "conftest.$objext"; then 22051 pre_test_object_deps_done=yes 22052 continue 22053 fi 22054 22055 if test no = "$pre_test_object_deps_done"; then 22056 if test -z "$predep_objects_FC"; then 22057 predep_objects_FC=$p 22058 else 22059 predep_objects_FC="$predep_objects_FC $p" 22060 fi 22061 else 22062 if test -z "$postdep_objects_FC"; then 22063 postdep_objects_FC=$p 22064 else 22065 postdep_objects_FC="$postdep_objects_FC $p" 22066 fi 22067 fi 22068 ;; 22069 22070 *) ;; # Ignore the rest. 22071 22072 esac 22073 done 22074 22075 # Clean up. 22076 rm -f a.out a.exe 22077else 22078 echo "libtool.m4: error: problem compiling FC test program" 22079fi 22080 22081$RM -f confest.$objext 22082CFLAGS=$_lt_libdeps_save_CFLAGS 22083 22084# PORTME: override above test on systems where it is broken 22085 22086 22087case " $postdeps_FC " in 22088*" -lc "*) archive_cmds_need_lc_FC=no ;; 22089esac 22090 compiler_lib_search_dirs_FC= 22091if test -n "${compiler_lib_search_path_FC}"; then 22092 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | $SED -e 's! -L! !g' -e 's!^ !!'` 22093fi 22094 22095 22096 22097 22098 22099 22100 22101 22102 22103 22104 22105 22106 22107 lt_prog_compiler_wl_FC= 22108lt_prog_compiler_pic_FC= 22109lt_prog_compiler_static_FC= 22110 22111 22112 if test yes = "$GCC"; then 22113 lt_prog_compiler_wl_FC='-Wl,' 22114 lt_prog_compiler_static_FC='-static' 22115 22116 case $host_os in 22117 aix*) 22118 # All AIX code is PIC. 22119 if test ia64 = "$host_cpu"; then 22120 # AIX 5 now supports IA64 processor 22121 lt_prog_compiler_static_FC='-Bstatic' 22122 fi 22123 lt_prog_compiler_pic_FC='-fPIC' 22124 ;; 22125 22126 amigaos*) 22127 case $host_cpu in 22128 powerpc) 22129 # see comment about AmigaOS4 .so support 22130 lt_prog_compiler_pic_FC='-fPIC' 22131 ;; 22132 m68k) 22133 # FIXME: we need at least 68020 code to build shared libraries, but 22134 # adding the '-m68020' flag to GCC prevents building anything better, 22135 # like '-m68040'. 22136 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4' 22137 ;; 22138 esac 22139 ;; 22140 22141 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 22142 # PIC is the default for these OSes. 22143 ;; 22144 22145 mingw* | cygwin* | pw32* | os2* | cegcc*) 22146 # This hack is so that the source file can tell whether it is being 22147 # built for inclusion in a dll (and should export symbols for example). 22148 # Although the cygwin gcc ignores -fPIC, still need this for old-style 22149 # (--disable-auto-import) libraries 22150 lt_prog_compiler_pic_FC='-DDLL_EXPORT' 22151 case $host_os in 22152 os2*) 22153 lt_prog_compiler_static_FC='$wl-static' 22154 ;; 22155 esac 22156 ;; 22157 22158 darwin* | rhapsody*) 22159 # PIC is the default on this platform 22160 # Common symbols not allowed in MH_DYLIB files 22161 lt_prog_compiler_pic_FC='-fno-common' 22162 ;; 22163 22164 haiku*) 22165 # PIC is the default for Haiku. 22166 # The "-static" flag exists, but is broken. 22167 lt_prog_compiler_static_FC= 22168 ;; 22169 22170 hpux*) 22171 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 22172 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 22173 # sets the default TLS model and affects inlining. 22174 case $host_cpu in 22175 hppa*64*) 22176 # +Z the default 22177 ;; 22178 *) 22179 lt_prog_compiler_pic_FC='-fPIC' 22180 ;; 22181 esac 22182 ;; 22183 22184 interix[3-9]*) 22185 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 22186 # Instead, we relocate shared libraries at runtime. 22187 ;; 22188 22189 msdosdjgpp*) 22190 # Just because we use GCC doesn't mean we suddenly get shared libraries 22191 # on systems that don't support them. 22192 lt_prog_compiler_can_build_shared_FC=no 22193 enable_shared=no 22194 ;; 22195 22196 *nto* | *qnx*) 22197 # QNX uses GNU C++, but need to define -shared option too, otherwise 22198 # it will coredump. 22199 lt_prog_compiler_pic_FC='-fPIC -shared' 22200 ;; 22201 22202 sysv4*MP*) 22203 if test -d /usr/nec; then 22204 lt_prog_compiler_pic_FC=-Kconform_pic 22205 fi 22206 ;; 22207 22208 *) 22209 lt_prog_compiler_pic_FC='-fPIC' 22210 ;; 22211 esac 22212 22213 case $cc_basename in 22214 nvcc*) # Cuda Compiler Driver 2.2 22215 lt_prog_compiler_wl_FC='-Xlinker ' 22216 if test -n "$lt_prog_compiler_pic_FC"; then 22217 lt_prog_compiler_pic_FC="-Xcompiler $lt_prog_compiler_pic_FC" 22218 fi 22219 ;; 22220 esac 22221 else 22222 # PORTME Check for flag to pass linker flags through the system compiler. 22223 case $host_os in 22224 aix*) 22225 lt_prog_compiler_wl_FC='-Wl,' 22226 if test ia64 = "$host_cpu"; then 22227 # AIX 5 now supports IA64 processor 22228 lt_prog_compiler_static_FC='-Bstatic' 22229 else 22230 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp' 22231 fi 22232 ;; 22233 22234 darwin* | rhapsody*) 22235 # PIC is the default on this platform 22236 # Common symbols not allowed in MH_DYLIB files 22237 lt_prog_compiler_pic_FC='-fno-common' 22238 case $cc_basename in 22239 nagfor*) 22240 # NAG Fortran compiler 22241 lt_prog_compiler_wl_FC='-Wl,-Wl,,' 22242 lt_prog_compiler_pic_FC='-PIC' 22243 lt_prog_compiler_static_FC='-Bstatic' 22244 ;; 22245 esac 22246 ;; 22247 22248 mingw* | cygwin* | pw32* | os2* | cegcc*) 22249 # This hack is so that the source file can tell whether it is being 22250 # built for inclusion in a dll (and should export symbols for example). 22251 lt_prog_compiler_pic_FC='-DDLL_EXPORT' 22252 case $host_os in 22253 os2*) 22254 lt_prog_compiler_static_FC='$wl-static' 22255 ;; 22256 esac 22257 ;; 22258 22259 hpux9* | hpux10* | hpux11*) 22260 lt_prog_compiler_wl_FC='-Wl,' 22261 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 22262 # not for PA HP-UX. 22263 case $host_cpu in 22264 hppa*64*|ia64*) 22265 # +Z the default 22266 ;; 22267 *) 22268 lt_prog_compiler_pic_FC='+Z' 22269 ;; 22270 esac 22271 # Is there a better lt_prog_compiler_static that works with the bundled CC? 22272 lt_prog_compiler_static_FC='$wl-a ${wl}archive' 22273 ;; 22274 22275 irix5* | irix6* | nonstopux*) 22276 lt_prog_compiler_wl_FC='-Wl,' 22277 # PIC (with -KPIC) is the default. 22278 lt_prog_compiler_static_FC='-non_shared' 22279 ;; 22280 22281 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 22282 case $cc_basename in 22283 # old Intel for x86_64, which still supported -KPIC. 22284 ecc*) 22285 lt_prog_compiler_wl_FC='-Wl,' 22286 lt_prog_compiler_pic_FC='-KPIC' 22287 lt_prog_compiler_static_FC='-static' 22288 ;; 22289 # icc used to be incompatible with GCC. 22290 # ICC 10 doesn't accept -KPIC any more. 22291 icc* | ifort*) 22292 lt_prog_compiler_wl_FC='-Wl,' 22293 lt_prog_compiler_pic_FC='-fPIC' 22294 lt_prog_compiler_static_FC='-static' 22295 ;; 22296 # Lahey Fortran 8.1. 22297 lf95*) 22298 lt_prog_compiler_wl_FC='-Wl,' 22299 lt_prog_compiler_pic_FC='--shared' 22300 lt_prog_compiler_static_FC='--static' 22301 ;; 22302 nagfor*) 22303 # NAG Fortran compiler 22304 lt_prog_compiler_wl_FC='-Wl,-Wl,,' 22305 lt_prog_compiler_pic_FC='-PIC' 22306 lt_prog_compiler_static_FC='-Bstatic' 22307 ;; 22308 tcc*) 22309 # Fabrice Bellard et al's Tiny C Compiler 22310 lt_prog_compiler_wl_FC='-Wl,' 22311 lt_prog_compiler_pic_FC='-fPIC' 22312 lt_prog_compiler_static_FC='-static' 22313 ;; 22314 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 22315 # Portland Group compilers (*not* the Pentium gcc compiler, 22316 # which looks to be a dead project) 22317 lt_prog_compiler_wl_FC='-Wl,' 22318 lt_prog_compiler_pic_FC='-fpic' 22319 lt_prog_compiler_static_FC='-Bstatic' 22320 ;; 22321 ccc*) 22322 lt_prog_compiler_wl_FC='-Wl,' 22323 # All Alpha code is PIC. 22324 lt_prog_compiler_static_FC='-non_shared' 22325 ;; 22326 xl* | bgxl* | bgf* | mpixl*) 22327 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 22328 lt_prog_compiler_wl_FC='-Wl,' 22329 lt_prog_compiler_pic_FC='-qpic' 22330 lt_prog_compiler_static_FC='-qstaticlink' 22331 ;; 22332 *) 22333 case `$CC -V 2>&1 | sed 5q` in 22334 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 22335 # Sun Fortran 8.3 passes all unrecognized flags to the linker 22336 lt_prog_compiler_pic_FC='-KPIC' 22337 lt_prog_compiler_static_FC='-Bstatic' 22338 lt_prog_compiler_wl_FC='' 22339 ;; 22340 *Sun\ F* | *Sun*Fortran*) 22341 lt_prog_compiler_pic_FC='-KPIC' 22342 lt_prog_compiler_static_FC='-Bstatic' 22343 lt_prog_compiler_wl_FC='-Qoption ld ' 22344 ;; 22345 *Sun\ C*) 22346 # Sun C 5.9 22347 lt_prog_compiler_pic_FC='-KPIC' 22348 lt_prog_compiler_static_FC='-Bstatic' 22349 lt_prog_compiler_wl_FC='-Wl,' 22350 ;; 22351 *Intel*\ [CF]*Compiler*) 22352 lt_prog_compiler_wl_FC='-Wl,' 22353 lt_prog_compiler_pic_FC='-fPIC' 22354 lt_prog_compiler_static_FC='-static' 22355 ;; 22356 *Portland\ Group*) 22357 lt_prog_compiler_wl_FC='-Wl,' 22358 lt_prog_compiler_pic_FC='-fpic' 22359 lt_prog_compiler_static_FC='-Bstatic' 22360 ;; 22361 esac 22362 ;; 22363 esac 22364 ;; 22365 22366 newsos6) 22367 lt_prog_compiler_pic_FC='-KPIC' 22368 lt_prog_compiler_static_FC='-Bstatic' 22369 ;; 22370 22371 *nto* | *qnx*) 22372 # QNX uses GNU C++, but need to define -shared option too, otherwise 22373 # it will coredump. 22374 lt_prog_compiler_pic_FC='-fPIC -shared' 22375 ;; 22376 22377 osf3* | osf4* | osf5*) 22378 lt_prog_compiler_wl_FC='-Wl,' 22379 # All OSF/1 code is PIC. 22380 lt_prog_compiler_static_FC='-non_shared' 22381 ;; 22382 22383 rdos*) 22384 lt_prog_compiler_static_FC='-non_shared' 22385 ;; 22386 22387 solaris*) 22388 lt_prog_compiler_pic_FC='-KPIC' 22389 lt_prog_compiler_static_FC='-Bstatic' 22390 case $cc_basename in 22391 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 22392 lt_prog_compiler_wl_FC='-Qoption ld ';; 22393 *) 22394 lt_prog_compiler_wl_FC='-Wl,';; 22395 esac 22396 ;; 22397 22398 sunos4*) 22399 lt_prog_compiler_wl_FC='-Qoption ld ' 22400 lt_prog_compiler_pic_FC='-PIC' 22401 lt_prog_compiler_static_FC='-Bstatic' 22402 ;; 22403 22404 sysv4 | sysv4.2uw2* | sysv4.3*) 22405 lt_prog_compiler_wl_FC='-Wl,' 22406 lt_prog_compiler_pic_FC='-KPIC' 22407 lt_prog_compiler_static_FC='-Bstatic' 22408 ;; 22409 22410 sysv4*MP*) 22411 if test -d /usr/nec; then 22412 lt_prog_compiler_pic_FC='-Kconform_pic' 22413 lt_prog_compiler_static_FC='-Bstatic' 22414 fi 22415 ;; 22416 22417 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 22418 lt_prog_compiler_wl_FC='-Wl,' 22419 lt_prog_compiler_pic_FC='-KPIC' 22420 lt_prog_compiler_static_FC='-Bstatic' 22421 ;; 22422 22423 unicos*) 22424 lt_prog_compiler_wl_FC='-Wl,' 22425 lt_prog_compiler_can_build_shared_FC=no 22426 ;; 22427 22428 uts4*) 22429 lt_prog_compiler_pic_FC='-pic' 22430 lt_prog_compiler_static_FC='-Bstatic' 22431 ;; 22432 22433 *) 22434 lt_prog_compiler_can_build_shared_FC=no 22435 ;; 22436 esac 22437 fi 22438 22439case $host_os in 22440 # For platforms that do not support PIC, -DPIC is meaningless: 22441 *djgpp*) 22442 lt_prog_compiler_pic_FC= 22443 ;; 22444 *) 22445 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC" 22446 ;; 22447esac 22448 22449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 22450printf %s "checking for $compiler option to produce PIC... " >&6; } 22451if test ${lt_cv_prog_compiler_pic_FC+y} 22452then : 22453 printf %s "(cached) " >&6 22454else $as_nop 22455 lt_cv_prog_compiler_pic_FC=$lt_prog_compiler_pic_FC 22456fi 22457{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_FC" >&5 22458printf "%s\n" "$lt_cv_prog_compiler_pic_FC" >&6; } 22459lt_prog_compiler_pic_FC=$lt_cv_prog_compiler_pic_FC 22460 22461# 22462# Check to make sure the PIC flag actually works. 22463# 22464if test -n "$lt_prog_compiler_pic_FC"; then 22465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5 22466printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; } 22467if test ${lt_cv_prog_compiler_pic_works_FC+y} 22468then : 22469 printf %s "(cached) " >&6 22470else $as_nop 22471 lt_cv_prog_compiler_pic_works_FC=no 22472 ac_outfile=conftest.$ac_objext 22473 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 22474 lt_compiler_flag="$lt_prog_compiler_pic_FC" ## exclude from sc_useless_quotes_in_assignment 22475 # Insert the option either (1) after the last *FLAGS variable, or 22476 # (2) before a word containing "conftest.", or (3) at the end. 22477 # Note that $ac_compile itself does not contain backslashes and begins 22478 # with a dollar sign (not a hyphen), so the echo should work correctly. 22479 # The option is referenced via a variable to avoid confusing sed. 22480 lt_compile=`echo "$ac_compile" | $SED \ 22481 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 22482 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 22483 -e 's:$: $lt_compiler_flag:'` 22484 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 22485 (eval "$lt_compile" 2>conftest.err) 22486 ac_status=$? 22487 cat conftest.err >&5 22488 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22489 if (exit $ac_status) && test -s "$ac_outfile"; then 22490 # The compiler can only warn and ignore the option if not recognized 22491 # So say no if there are warnings other than the usual output. 22492 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 22493 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 22494 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 22495 lt_cv_prog_compiler_pic_works_FC=yes 22496 fi 22497 fi 22498 $RM conftest* 22499 22500fi 22501{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5 22502printf "%s\n" "$lt_cv_prog_compiler_pic_works_FC" >&6; } 22503 22504if test yes = "$lt_cv_prog_compiler_pic_works_FC"; then 22505 case $lt_prog_compiler_pic_FC in 22506 "" | " "*) ;; 22507 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;; 22508 esac 22509else 22510 lt_prog_compiler_pic_FC= 22511 lt_prog_compiler_can_build_shared_FC=no 22512fi 22513 22514fi 22515 22516 22517 22518 22519 22520# 22521# Check to make sure the static flag actually works. 22522# 22523wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\" 22524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 22525printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 22526if test ${lt_cv_prog_compiler_static_works_FC+y} 22527then : 22528 printf %s "(cached) " >&6 22529else $as_nop 22530 lt_cv_prog_compiler_static_works_FC=no 22531 save_LDFLAGS=$LDFLAGS 22532 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 22533 echo "$lt_simple_link_test_code" > conftest.$ac_ext 22534 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 22535 # The linker can only warn and ignore the option if not recognized 22536 # So say no if there are warnings 22537 if test -s conftest.err; then 22538 # Append any errors to the config.log. 22539 cat conftest.err 1>&5 22540 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 22541 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 22542 if diff conftest.exp conftest.er2 >/dev/null; then 22543 lt_cv_prog_compiler_static_works_FC=yes 22544 fi 22545 else 22546 lt_cv_prog_compiler_static_works_FC=yes 22547 fi 22548 fi 22549 $RM -r conftest* 22550 LDFLAGS=$save_LDFLAGS 22551 22552fi 22553{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5 22554printf "%s\n" "$lt_cv_prog_compiler_static_works_FC" >&6; } 22555 22556if test yes = "$lt_cv_prog_compiler_static_works_FC"; then 22557 : 22558else 22559 lt_prog_compiler_static_FC= 22560fi 22561 22562 22563 22564 22565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 22566printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 22567if test ${lt_cv_prog_compiler_c_o_FC+y} 22568then : 22569 printf %s "(cached) " >&6 22570else $as_nop 22571 lt_cv_prog_compiler_c_o_FC=no 22572 $RM -r conftest 2>/dev/null 22573 mkdir conftest 22574 cd conftest 22575 mkdir out 22576 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 22577 22578 lt_compiler_flag="-o out/conftest2.$ac_objext" 22579 # Insert the option either (1) after the last *FLAGS variable, or 22580 # (2) before a word containing "conftest.", or (3) at the end. 22581 # Note that $ac_compile itself does not contain backslashes and begins 22582 # with a dollar sign (not a hyphen), so the echo should work correctly. 22583 lt_compile=`echo "$ac_compile" | $SED \ 22584 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 22585 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 22586 -e 's:$: $lt_compiler_flag:'` 22587 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 22588 (eval "$lt_compile" 2>out/conftest.err) 22589 ac_status=$? 22590 cat out/conftest.err >&5 22591 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22592 if (exit $ac_status) && test -s out/conftest2.$ac_objext 22593 then 22594 # The compiler can only warn and ignore the option if not recognized 22595 # So say no if there are warnings 22596 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 22597 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 22598 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 22599 lt_cv_prog_compiler_c_o_FC=yes 22600 fi 22601 fi 22602 chmod u+w . 2>&5 22603 $RM conftest* 22604 # SGI C++ compiler will create directory out/ii_files/ for 22605 # template instantiation 22606 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 22607 $RM out/* && rmdir out 22608 cd .. 22609 $RM -r conftest 22610 $RM conftest* 22611 22612fi 22613{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5 22614printf "%s\n" "$lt_cv_prog_compiler_c_o_FC" >&6; } 22615 22616 22617 22618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 22619printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 22620if test ${lt_cv_prog_compiler_c_o_FC+y} 22621then : 22622 printf %s "(cached) " >&6 22623else $as_nop 22624 lt_cv_prog_compiler_c_o_FC=no 22625 $RM -r conftest 2>/dev/null 22626 mkdir conftest 22627 cd conftest 22628 mkdir out 22629 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 22630 22631 lt_compiler_flag="-o out/conftest2.$ac_objext" 22632 # Insert the option either (1) after the last *FLAGS variable, or 22633 # (2) before a word containing "conftest.", or (3) at the end. 22634 # Note that $ac_compile itself does not contain backslashes and begins 22635 # with a dollar sign (not a hyphen), so the echo should work correctly. 22636 lt_compile=`echo "$ac_compile" | $SED \ 22637 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 22638 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 22639 -e 's:$: $lt_compiler_flag:'` 22640 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 22641 (eval "$lt_compile" 2>out/conftest.err) 22642 ac_status=$? 22643 cat out/conftest.err >&5 22644 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22645 if (exit $ac_status) && test -s out/conftest2.$ac_objext 22646 then 22647 # The compiler can only warn and ignore the option if not recognized 22648 # So say no if there are warnings 22649 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 22650 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 22651 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 22652 lt_cv_prog_compiler_c_o_FC=yes 22653 fi 22654 fi 22655 chmod u+w . 2>&5 22656 $RM conftest* 22657 # SGI C++ compiler will create directory out/ii_files/ for 22658 # template instantiation 22659 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 22660 $RM out/* && rmdir out 22661 cd .. 22662 $RM -r conftest 22663 $RM conftest* 22664 22665fi 22666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5 22667printf "%s\n" "$lt_cv_prog_compiler_c_o_FC" >&6; } 22668 22669 22670 22671 22672hard_links=nottested 22673if test no = "$lt_cv_prog_compiler_c_o_FC" && test no != "$need_locks"; then 22674 # do not overwrite the value of need_locks provided by the user 22675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 22676printf %s "checking if we can lock with hard links... " >&6; } 22677 hard_links=yes 22678 $RM conftest* 22679 ln conftest.a conftest.b 2>/dev/null && hard_links=no 22680 touch conftest.a 22681 ln conftest.a conftest.b 2>&5 || hard_links=no 22682 ln conftest.a conftest.b 2>/dev/null && hard_links=no 22683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 22684printf "%s\n" "$hard_links" >&6; } 22685 if test no = "$hard_links"; then 22686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 22687printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 22688 need_locks=warn 22689 fi 22690else 22691 need_locks=no 22692fi 22693 22694 22695 22696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 22697printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 22698 22699 runpath_var= 22700 allow_undefined_flag_FC= 22701 always_export_symbols_FC=no 22702 archive_cmds_FC= 22703 archive_expsym_cmds_FC= 22704 compiler_needs_object_FC=no 22705 enable_shared_with_static_runtimes_FC=no 22706 export_dynamic_flag_spec_FC= 22707 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 22708 hardcode_automatic_FC=no 22709 hardcode_direct_FC=no 22710 hardcode_direct_absolute_FC=no 22711 hardcode_libdir_flag_spec_FC= 22712 hardcode_libdir_separator_FC= 22713 hardcode_minus_L_FC=no 22714 hardcode_shlibpath_var_FC=unsupported 22715 inherit_rpath_FC=no 22716 link_all_deplibs_FC=unknown 22717 module_cmds_FC= 22718 module_expsym_cmds_FC= 22719 old_archive_from_new_cmds_FC= 22720 old_archive_from_expsyms_cmds_FC= 22721 thread_safe_flag_spec_FC= 22722 whole_archive_flag_spec_FC= 22723 # include_expsyms should be a list of space-separated symbols to be *always* 22724 # included in the symbol list 22725 include_expsyms_FC= 22726 # exclude_expsyms can be an extended regexp of symbols to exclude 22727 # it will be wrapped by ' (' and ')$', so one must not match beginning or 22728 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 22729 # as well as any symbol that contains 'd'. 22730 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 22731 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 22732 # platforms (ab)use it in PIC code, but their linkers get confused if 22733 # the symbol is explicitly referenced. Since portable code cannot 22734 # rely on this symbol name, it's probably fine to never include it in 22735 # preloaded symbol tables. 22736 # Exclude shared library initialization/finalization symbols. 22737 extract_expsyms_cmds= 22738 22739 case $host_os in 22740 cygwin* | mingw* | pw32* | cegcc*) 22741 # FIXME: the MSVC++ port hasn't been tested in a loooong time 22742 # When not using gcc, we currently assume that we are using 22743 # Microsoft Visual C++. 22744 if test yes != "$GCC"; then 22745 with_gnu_ld=no 22746 fi 22747 ;; 22748 interix*) 22749 # we just hope/assume this is gcc and not c89 (= MSVC++) 22750 with_gnu_ld=yes 22751 ;; 22752 openbsd* | bitrig*) 22753 with_gnu_ld=no 22754 ;; 22755 esac 22756 22757 ld_shlibs_FC=yes 22758 22759 # On some targets, GNU ld is compatible enough with the native linker 22760 # that we're better off using the native interface for both. 22761 lt_use_gnu_ld_interface=no 22762 if test yes = "$with_gnu_ld"; then 22763 case $host_os in 22764 aix*) 22765 # The AIX port of GNU ld has always aspired to compatibility 22766 # with the native linker. However, as the warning in the GNU ld 22767 # block says, versions before 2.19.5* couldn't really create working 22768 # shared libraries, regardless of the interface used. 22769 case `$LD -v 2>&1` in 22770 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 22771 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 22772 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 22773 *) 22774 lt_use_gnu_ld_interface=yes 22775 ;; 22776 esac 22777 ;; 22778 *) 22779 lt_use_gnu_ld_interface=yes 22780 ;; 22781 esac 22782 fi 22783 22784 if test yes = "$lt_use_gnu_ld_interface"; then 22785 # If archive_cmds runs LD, not CC, wlarc should be empty 22786 wlarc='$wl' 22787 22788 # Set some defaults for GNU ld with shared library support. These 22789 # are reset later if shared libraries are not supported. Putting them 22790 # here allows them to be overridden if necessary. 22791 runpath_var=LD_RUN_PATH 22792 hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir' 22793 export_dynamic_flag_spec_FC='$wl--export-dynamic' 22794 # ancient GNU ld didn't support --whole-archive et. al. 22795 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 22796 whole_archive_flag_spec_FC=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 22797 else 22798 whole_archive_flag_spec_FC= 22799 fi 22800 supports_anon_versioning=no 22801 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 22802 *GNU\ gold*) supports_anon_versioning=yes ;; 22803 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 22804 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 22805 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 22806 *\ 2.11.*) ;; # other 2.11 versions 22807 *) supports_anon_versioning=yes ;; 22808 esac 22809 22810 # See if GNU ld supports shared libraries. 22811 case $host_os in 22812 aix[3-9]*) 22813 # On AIX/PPC, the GNU linker is very broken 22814 if test ia64 != "$host_cpu"; then 22815 ld_shlibs_FC=no 22816 cat <<_LT_EOF 1>&2 22817 22818*** Warning: the GNU linker, at least up to release 2.19, is reported 22819*** to be unable to reliably create shared libraries on AIX. 22820*** Therefore, libtool is disabling shared libraries support. If you 22821*** really care for shared libraries, you may want to install binutils 22822*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 22823*** You will then need to restart the configuration process. 22824 22825_LT_EOF 22826 fi 22827 ;; 22828 22829 amigaos*) 22830 case $host_cpu in 22831 powerpc) 22832 # see comment about AmigaOS4 .so support 22833 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 22834 archive_expsym_cmds_FC='' 22835 ;; 22836 m68k) 22837 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)' 22838 hardcode_libdir_flag_spec_FC='-L$libdir' 22839 hardcode_minus_L_FC=yes 22840 ;; 22841 esac 22842 ;; 22843 22844 beos*) 22845 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 22846 allow_undefined_flag_FC=unsupported 22847 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 22848 # support --undefined. This deserves some investigation. FIXME 22849 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 22850 else 22851 ld_shlibs_FC=no 22852 fi 22853 ;; 22854 22855 cygwin* | mingw* | pw32* | cegcc*) 22856 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless, 22857 # as there is no search path for DLLs. 22858 hardcode_libdir_flag_spec_FC='-L$libdir' 22859 export_dynamic_flag_spec_FC='$wl--export-all-symbols' 22860 allow_undefined_flag_FC=unsupported 22861 always_export_symbols_FC=no 22862 enable_shared_with_static_runtimes_FC=yes 22863 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' 22864 exclude_expsyms_FC='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 22865 22866 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 22867 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 22868 # If the export-symbols file already is a .def file, use it as 22869 # is; otherwise, prepend EXPORTS... 22870 archive_expsym_cmds_FC='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 22871 cp $export_symbols $output_objdir/$soname.def; 22872 else 22873 echo EXPORTS > $output_objdir/$soname.def; 22874 cat $export_symbols >> $output_objdir/$soname.def; 22875 fi~ 22876 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 22877 else 22878 ld_shlibs_FC=no 22879 fi 22880 ;; 22881 22882 haiku*) 22883 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 22884 link_all_deplibs_FC=yes 22885 ;; 22886 22887 os2*) 22888 hardcode_libdir_flag_spec_FC='-L$libdir' 22889 hardcode_minus_L_FC=yes 22890 allow_undefined_flag_FC=unsupported 22891 shrext_cmds=.dll 22892 archive_cmds_FC='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 22893 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 22894 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 22895 $ECHO EXPORTS >> $output_objdir/$libname.def~ 22896 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 22897 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 22898 emximp -o $lib $output_objdir/$libname.def' 22899 archive_expsym_cmds_FC='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 22900 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 22901 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 22902 $ECHO EXPORTS >> $output_objdir/$libname.def~ 22903 prefix_cmds="$SED"~ 22904 if test EXPORTS = "`$SED 1q $export_symbols`"; then 22905 prefix_cmds="$prefix_cmds -e 1d"; 22906 fi~ 22907 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 22908 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 22909 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 22910 emximp -o $lib $output_objdir/$libname.def' 22911 old_archive_From_new_cmds_FC='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 22912 enable_shared_with_static_runtimes_FC=yes 22913 ;; 22914 22915 interix[3-9]*) 22916 hardcode_direct_FC=no 22917 hardcode_shlibpath_var_FC=no 22918 hardcode_libdir_flag_spec_FC='$wl-rpath,$libdir' 22919 export_dynamic_flag_spec_FC='$wl-E' 22920 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 22921 # Instead, shared libraries are loaded at an image base (0x10000000 by 22922 # default) and relocated if they conflict, which is a slow very memory 22923 # consuming and fragmenting process. To avoid this, we pick a random, 22924 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 22925 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 22926 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' 22927 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' 22928 ;; 22929 22930 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 22931 tmp_diet=no 22932 if test linux-dietlibc = "$host_os"; then 22933 case $cc_basename in 22934 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 22935 esac 22936 fi 22937 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 22938 && test no = "$tmp_diet" 22939 then 22940 tmp_addflag=' $pic_flag' 22941 tmp_sharedflag='-shared' 22942 case $cc_basename,$host_cpu in 22943 pgcc*) # Portland Group C compiler 22944 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' 22945 tmp_addflag=' $pic_flag' 22946 ;; 22947 pgf77* | pgf90* | pgf95* | pgfortran*) 22948 # Portland Group f77 and f90 compilers 22949 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' 22950 tmp_addflag=' $pic_flag -Mnomain' ;; 22951 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 22952 tmp_addflag=' -i_dynamic' ;; 22953 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 22954 tmp_addflag=' -i_dynamic -nofor_main' ;; 22955 ifc* | ifort*) # Intel Fortran compiler 22956 tmp_addflag=' -nofor_main' ;; 22957 lf95*) # Lahey Fortran 8.1 22958 whole_archive_flag_spec_FC= 22959 tmp_sharedflag='--shared' ;; 22960 nagfor*) # NAGFOR 5.3 22961 tmp_sharedflag='-Wl,-shared' ;; 22962 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 22963 tmp_sharedflag='-qmkshrobj' 22964 tmp_addflag= ;; 22965 nvcc*) # Cuda Compiler Driver 2.2 22966 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' 22967 compiler_needs_object_FC=yes 22968 ;; 22969 esac 22970 case `$CC -V 2>&1 | sed 5q` in 22971 *Sun\ C*) # Sun C 5.9 22972 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' 22973 compiler_needs_object_FC=yes 22974 tmp_sharedflag='-G' ;; 22975 *Sun\ F*) # Sun Fortran 8.3 22976 tmp_sharedflag='-G' ;; 22977 esac 22978 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 22979 22980 if test yes = "$supports_anon_versioning"; then 22981 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~ 22982 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 22983 echo "local: *; };" >> $output_objdir/$libname.ver~ 22984 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 22985 fi 22986 22987 case $cc_basename in 22988 tcc*) 22989 export_dynamic_flag_spec_FC='-rdynamic' 22990 ;; 22991 xlf* | bgf* | bgxlf* | mpixlf*) 22992 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 22993 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive' 22994 hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir' 22995 archive_cmds_FC='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 22996 if test yes = "$supports_anon_versioning"; then 22997 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~ 22998 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 22999 echo "local: *; };" >> $output_objdir/$libname.ver~ 23000 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 23001 fi 23002 ;; 23003 esac 23004 else 23005 ld_shlibs_FC=no 23006 fi 23007 ;; 23008 23009 netbsd*) 23010 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 23011 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 23012 wlarc= 23013 else 23014 archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 23015 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' 23016 fi 23017 ;; 23018 23019 solaris*) 23020 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 23021 ld_shlibs_FC=no 23022 cat <<_LT_EOF 1>&2 23023 23024*** Warning: The releases 2.8.* of the GNU linker cannot reliably 23025*** create shared libraries on Solaris systems. Therefore, libtool 23026*** is disabling shared libraries support. We urge you to upgrade GNU 23027*** binutils to release 2.9.1 or newer. Another option is to modify 23028*** your PATH or compiler configuration so that the native linker is 23029*** used, and then restart. 23030 23031_LT_EOF 23032 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 23033 archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 23034 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' 23035 else 23036 ld_shlibs_FC=no 23037 fi 23038 ;; 23039 23040 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 23041 case `$LD -v 2>&1` in 23042 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 23043 ld_shlibs_FC=no 23044 cat <<_LT_EOF 1>&2 23045 23046*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 23047*** reliably create shared libraries on SCO systems. Therefore, libtool 23048*** is disabling shared libraries support. We urge you to upgrade GNU 23049*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 23050*** your PATH or compiler configuration so that the native linker is 23051*** used, and then restart. 23052 23053_LT_EOF 23054 ;; 23055 *) 23056 # For security reasons, it is highly recommended that you always 23057 # use absolute paths for naming shared libraries, and exclude the 23058 # DT_RUNPATH tag from executables and libraries. But doing so 23059 # requires that you compile everything twice, which is a pain. 23060 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 23061 hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir' 23062 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 23063 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 23064 else 23065 ld_shlibs_FC=no 23066 fi 23067 ;; 23068 esac 23069 ;; 23070 23071 sunos4*) 23072 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 23073 wlarc= 23074 hardcode_direct_FC=yes 23075 hardcode_shlibpath_var_FC=no 23076 ;; 23077 23078 *) 23079 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 23080 archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 23081 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' 23082 else 23083 ld_shlibs_FC=no 23084 fi 23085 ;; 23086 esac 23087 23088 if test no = "$ld_shlibs_FC"; then 23089 runpath_var= 23090 hardcode_libdir_flag_spec_FC= 23091 export_dynamic_flag_spec_FC= 23092 whole_archive_flag_spec_FC= 23093 fi 23094 else 23095 # PORTME fill in a description of your system's linker (not GNU ld) 23096 case $host_os in 23097 aix3*) 23098 allow_undefined_flag_FC=unsupported 23099 always_export_symbols_FC=yes 23100 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' 23101 # Note: this linker hardcodes the directories in LIBPATH if there 23102 # are no directories specified by -L. 23103 hardcode_minus_L_FC=yes 23104 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 23105 # Neither direct hardcoding nor static linking is supported with a 23106 # broken collect2. 23107 hardcode_direct_FC=unsupported 23108 fi 23109 ;; 23110 23111 aix[4-9]*) 23112 if test ia64 = "$host_cpu"; then 23113 # On IA64, the linker does run time linking by default, so we don't 23114 # have to do anything special. 23115 aix_use_runtimelinking=no 23116 exp_sym_flag='-Bexport' 23117 no_entry_flag= 23118 else 23119 # If we're using GNU nm, then we don't want the "-C" option. 23120 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 23121 # Without the "-l" option, or with the "-B" option, AIX nm treats 23122 # weak defined symbols like other global defined symbols, whereas 23123 # GNU nm marks them as "W". 23124 # While the 'weak' keyword is ignored in the Export File, we need 23125 # it in the Import File for the 'aix-soname' feature, so we have 23126 # to replace the "-B" option with "-P" for AIX nm. 23127 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 23128 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' 23129 else 23130 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' 23131 fi 23132 aix_use_runtimelinking=no 23133 23134 # Test if we are trying to use run time linking or normal 23135 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 23136 # have runtime linking enabled, and use it for executables. 23137 # For shared libraries, we enable/disable runtime linking 23138 # depending on the kind of the shared library created - 23139 # when "with_aix_soname,aix_use_runtimelinking" is: 23140 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 23141 # "aix,yes" lib.so shared, rtl:yes, for executables 23142 # lib.a static archive 23143 # "both,no" lib.so.V(shr.o) shared, rtl:yes 23144 # lib.a(lib.so.V) shared, rtl:no, for executables 23145 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 23146 # lib.a(lib.so.V) shared, rtl:no 23147 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 23148 # lib.a static archive 23149 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 23150 for ld_flag in $LDFLAGS; do 23151 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 23152 aix_use_runtimelinking=yes 23153 break 23154 fi 23155 done 23156 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 23157 # With aix-soname=svr4, we create the lib.so.V shared archives only, 23158 # so we don't have lib.a shared libs to link our executables. 23159 # We have to force runtime linking in this case. 23160 aix_use_runtimelinking=yes 23161 LDFLAGS="$LDFLAGS -Wl,-brtl" 23162 fi 23163 ;; 23164 esac 23165 23166 exp_sym_flag='-bexport' 23167 no_entry_flag='-bnoentry' 23168 fi 23169 23170 # When large executables or shared objects are built, AIX ld can 23171 # have problems creating the table of contents. If linking a library 23172 # or program results in "error TOC overflow" add -mminimal-toc to 23173 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 23174 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 23175 23176 archive_cmds_FC='' 23177 hardcode_direct_FC=yes 23178 hardcode_direct_absolute_FC=yes 23179 hardcode_libdir_separator_FC=':' 23180 link_all_deplibs_FC=yes 23181 file_list_spec_FC='$wl-f,' 23182 case $with_aix_soname,$aix_use_runtimelinking in 23183 aix,*) ;; # traditional, no import file 23184 svr4,* | *,yes) # use import file 23185 # The Import File defines what to hardcode. 23186 hardcode_direct_FC=no 23187 hardcode_direct_absolute_FC=no 23188 ;; 23189 esac 23190 23191 if test yes = "$GCC"; then 23192 case $host_os in aix4.[012]|aix4.[012].*) 23193 # We only want to do this on AIX 4.2 and lower, the check 23194 # below for broken collect2 doesn't work under 4.3+ 23195 collect2name=`$CC -print-prog-name=collect2` 23196 if test -f "$collect2name" && 23197 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 23198 then 23199 # We have reworked collect2 23200 : 23201 else 23202 # We have old collect2 23203 hardcode_direct_FC=unsupported 23204 # It fails to find uninstalled libraries when the uninstalled 23205 # path is not listed in the libpath. Setting hardcode_minus_L 23206 # to unsupported forces relinking 23207 hardcode_minus_L_FC=yes 23208 hardcode_libdir_flag_spec_FC='-L$libdir' 23209 hardcode_libdir_separator_FC= 23210 fi 23211 ;; 23212 esac 23213 shared_flag='-shared' 23214 if test yes = "$aix_use_runtimelinking"; then 23215 shared_flag="$shared_flag "'$wl-G' 23216 fi 23217 # Need to ensure runtime linking is disabled for the traditional 23218 # shared library, or the linker may eventually find shared libraries 23219 # /with/ Import File - we do not want to mix them. 23220 shared_flag_aix='-shared' 23221 shared_flag_svr4='-shared $wl-G' 23222 else 23223 # not using gcc 23224 if test ia64 = "$host_cpu"; then 23225 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 23226 # chokes on -Wl,-G. The following line is correct: 23227 shared_flag='-G' 23228 else 23229 if test yes = "$aix_use_runtimelinking"; then 23230 shared_flag='$wl-G' 23231 else 23232 shared_flag='$wl-bM:SRE' 23233 fi 23234 shared_flag_aix='$wl-bM:SRE' 23235 shared_flag_svr4='$wl-G' 23236 fi 23237 fi 23238 23239 export_dynamic_flag_spec_FC='$wl-bexpall' 23240 # It seems that -bexpall does not export symbols beginning with 23241 # underscore (_), so it is better to generate a list of symbols to export. 23242 always_export_symbols_FC=yes 23243 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 23244 # Warning - without using the other runtime loading flags (-brtl), 23245 # -berok will link without error, but may produce a broken library. 23246 allow_undefined_flag_FC='-berok' 23247 # Determine the default libpath from the value encoded in an 23248 # empty executable. 23249 if test set = "${lt_cv_aix_libpath+set}"; then 23250 aix_libpath=$lt_cv_aix_libpath 23251else 23252 if test ${lt_cv_aix_libpath__FC+y} 23253then : 23254 printf %s "(cached) " >&6 23255else $as_nop 23256 cat > conftest.$ac_ext <<_ACEOF 23257 program conftest 23258 23259 end 23260_ACEOF 23261if ac_fn_fc_try_link "$LINENO" 23262then : 23263 23264 lt_aix_libpath_sed=' 23265 /Import File Strings/,/^$/ { 23266 /^0/ { 23267 s/^0 *\([^ ]*\) *$/\1/ 23268 p 23269 } 23270 }' 23271 lt_cv_aix_libpath__FC=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 23272 # Check for a 64-bit object if we didn't find anything. 23273 if test -z "$lt_cv_aix_libpath__FC"; then 23274 lt_cv_aix_libpath__FC=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 23275 fi 23276fi 23277rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23278 conftest$ac_exeext conftest.$ac_ext 23279 if test -z "$lt_cv_aix_libpath__FC"; then 23280 lt_cv_aix_libpath__FC=/usr/lib:/lib 23281 fi 23282 23283fi 23284 23285 aix_libpath=$lt_cv_aix_libpath__FC 23286fi 23287 23288 hardcode_libdir_flag_spec_FC='$wl-blibpath:$libdir:'"$aix_libpath" 23289 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 23290 else 23291 if test ia64 = "$host_cpu"; then 23292 hardcode_libdir_flag_spec_FC='$wl-R $libdir:/usr/lib:/lib' 23293 allow_undefined_flag_FC="-z nodefs" 23294 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" 23295 else 23296 # Determine the default libpath from the value encoded in an 23297 # empty executable. 23298 if test set = "${lt_cv_aix_libpath+set}"; then 23299 aix_libpath=$lt_cv_aix_libpath 23300else 23301 if test ${lt_cv_aix_libpath__FC+y} 23302then : 23303 printf %s "(cached) " >&6 23304else $as_nop 23305 cat > conftest.$ac_ext <<_ACEOF 23306 program conftest 23307 23308 end 23309_ACEOF 23310if ac_fn_fc_try_link "$LINENO" 23311then : 23312 23313 lt_aix_libpath_sed=' 23314 /Import File Strings/,/^$/ { 23315 /^0/ { 23316 s/^0 *\([^ ]*\) *$/\1/ 23317 p 23318 } 23319 }' 23320 lt_cv_aix_libpath__FC=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 23321 # Check for a 64-bit object if we didn't find anything. 23322 if test -z "$lt_cv_aix_libpath__FC"; then 23323 lt_cv_aix_libpath__FC=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 23324 fi 23325fi 23326rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23327 conftest$ac_exeext conftest.$ac_ext 23328 if test -z "$lt_cv_aix_libpath__FC"; then 23329 lt_cv_aix_libpath__FC=/usr/lib:/lib 23330 fi 23331 23332fi 23333 23334 aix_libpath=$lt_cv_aix_libpath__FC 23335fi 23336 23337 hardcode_libdir_flag_spec_FC='$wl-blibpath:$libdir:'"$aix_libpath" 23338 # Warning - without using the other run time loading flags, 23339 # -berok will link without error, but may produce a broken library. 23340 no_undefined_flag_FC=' $wl-bernotok' 23341 allow_undefined_flag_FC=' $wl-berok' 23342 if test yes = "$with_gnu_ld"; then 23343 # We only use this code for GNU lds that support --whole-archive. 23344 whole_archive_flag_spec_FC='$wl--whole-archive$convenience $wl--no-whole-archive' 23345 else 23346 # Exported symbols can be pulled into shared objects from archives 23347 whole_archive_flag_spec_FC='$convenience' 23348 fi 23349 archive_cmds_need_lc_FC=yes 23350 archive_expsym_cmds_FC='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 23351 # -brtl affects multiple linker settings, -berok does not and is overridden later 23352 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 23353 if test svr4 != "$with_aix_soname"; then 23354 # This is similar to how AIX traditionally builds its shared libraries. 23355 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' 23356 fi 23357 if test aix != "$with_aix_soname"; then 23358 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' 23359 else 23360 # used by -dlpreopen to get the symbols 23361 archive_expsym_cmds_FC="$archive_expsym_cmds_FC"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 23362 fi 23363 archive_expsym_cmds_FC="$archive_expsym_cmds_FC"'~$RM -r $output_objdir/$realname.d' 23364 fi 23365 fi 23366 ;; 23367 23368 amigaos*) 23369 case $host_cpu in 23370 powerpc) 23371 # see comment about AmigaOS4 .so support 23372 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 23373 archive_expsym_cmds_FC='' 23374 ;; 23375 m68k) 23376 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)' 23377 hardcode_libdir_flag_spec_FC='-L$libdir' 23378 hardcode_minus_L_FC=yes 23379 ;; 23380 esac 23381 ;; 23382 23383 bsdi[45]*) 23384 export_dynamic_flag_spec_FC=-rdynamic 23385 ;; 23386 23387 cygwin* | mingw* | pw32* | cegcc*) 23388 # When not using gcc, we currently assume that we are using 23389 # Microsoft Visual C++. 23390 # hardcode_libdir_flag_spec is actually meaningless, as there is 23391 # no search path for DLLs. 23392 case $cc_basename in 23393 cl*) 23394 # Native MSVC 23395 hardcode_libdir_flag_spec_FC=' ' 23396 allow_undefined_flag_FC=unsupported 23397 always_export_symbols_FC=yes 23398 file_list_spec_FC='@' 23399 # Tell ltmain to make .lib files, not .a files. 23400 libext=lib 23401 # Tell ltmain to make .dll files, not .so files. 23402 shrext_cmds=.dll 23403 # FIXME: Setting linknames here is a bad hack. 23404 archive_cmds_FC='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 23405 archive_expsym_cmds_FC='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 23406 cp "$export_symbols" "$output_objdir/$soname.def"; 23407 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 23408 else 23409 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 23410 fi~ 23411 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 23412 linknames=' 23413 # The linker will not automatically build a static lib if we build a DLL. 23414 # _LT_TAGVAR(old_archive_from_new_cmds, FC)='true' 23415 enable_shared_with_static_runtimes_FC=yes 23416 exclude_expsyms_FC='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 23417 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 23418 # Don't use ranlib 23419 old_postinstall_cmds_FC='chmod 644 $oldlib' 23420 postlink_cmds_FC='lt_outputfile="@OUTPUT@"~ 23421 lt_tool_outputfile="@TOOL_OUTPUT@"~ 23422 case $lt_outputfile in 23423 *.exe|*.EXE) ;; 23424 *) 23425 lt_outputfile=$lt_outputfile.exe 23426 lt_tool_outputfile=$lt_tool_outputfile.exe 23427 ;; 23428 esac~ 23429 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 23430 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 23431 $RM "$lt_outputfile.manifest"; 23432 fi' 23433 ;; 23434 *) 23435 # Assume MSVC wrapper 23436 hardcode_libdir_flag_spec_FC=' ' 23437 allow_undefined_flag_FC=unsupported 23438 # Tell ltmain to make .lib files, not .a files. 23439 libext=lib 23440 # Tell ltmain to make .dll files, not .so files. 23441 shrext_cmds=.dll 23442 # FIXME: Setting linknames here is a bad hack. 23443 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 23444 # The linker will automatically build a .lib file if we build a DLL. 23445 old_archive_from_new_cmds_FC='true' 23446 # FIXME: Should let the user specify the lib program. 23447 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs' 23448 enable_shared_with_static_runtimes_FC=yes 23449 ;; 23450 esac 23451 ;; 23452 23453 darwin* | rhapsody*) 23454 23455 23456 archive_cmds_need_lc_FC=no 23457 hardcode_direct_FC=no 23458 hardcode_automatic_FC=yes 23459 hardcode_shlibpath_var_FC=unsupported 23460 if test yes = "$lt_cv_ld_force_load"; then 23461 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\"`' 23462 compiler_needs_object_FC=yes 23463 else 23464 whole_archive_flag_spec_FC='' 23465 fi 23466 link_all_deplibs_FC=yes 23467 allow_undefined_flag_FC=$_lt_dar_allow_undefined 23468 case $cc_basename in 23469 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 23470 *) _lt_dar_can_shared=$GCC ;; 23471 esac 23472 if test yes = "$_lt_dar_can_shared"; then 23473 output_verbose_link_cmd=func_echo_all 23474 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" 23475 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 23476 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" 23477 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" 23478 23479 else 23480 ld_shlibs_FC=no 23481 fi 23482 23483 ;; 23484 23485 dgux*) 23486 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 23487 hardcode_libdir_flag_spec_FC='-L$libdir' 23488 hardcode_shlibpath_var_FC=no 23489 ;; 23490 23491 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 23492 # support. Future versions do this automatically, but an explicit c++rt0.o 23493 # does not break anything, and helps significantly (at the cost of a little 23494 # extra space). 23495 freebsd2.2*) 23496 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 23497 hardcode_libdir_flag_spec_FC='-R$libdir' 23498 hardcode_direct_FC=yes 23499 hardcode_shlibpath_var_FC=no 23500 ;; 23501 23502 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 23503 freebsd2.*) 23504 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 23505 hardcode_direct_FC=yes 23506 hardcode_minus_L_FC=yes 23507 hardcode_shlibpath_var_FC=no 23508 ;; 23509 23510 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 23511 freebsd* | dragonfly*) 23512 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 23513 hardcode_libdir_flag_spec_FC='-R$libdir' 23514 hardcode_direct_FC=yes 23515 hardcode_shlibpath_var_FC=no 23516 ;; 23517 23518 hpux9*) 23519 if test yes = "$GCC"; then 23520 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' 23521 else 23522 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' 23523 fi 23524 hardcode_libdir_flag_spec_FC='$wl+b $wl$libdir' 23525 hardcode_libdir_separator_FC=: 23526 hardcode_direct_FC=yes 23527 23528 # hardcode_minus_L: Not really in the search PATH, 23529 # but as the default location of the library. 23530 hardcode_minus_L_FC=yes 23531 export_dynamic_flag_spec_FC='$wl-E' 23532 ;; 23533 23534 hpux10*) 23535 if test yes,no = "$GCC,$with_gnu_ld"; then 23536 archive_cmds_FC='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 23537 else 23538 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 23539 fi 23540 if test no = "$with_gnu_ld"; then 23541 hardcode_libdir_flag_spec_FC='$wl+b $wl$libdir' 23542 hardcode_libdir_separator_FC=: 23543 hardcode_direct_FC=yes 23544 hardcode_direct_absolute_FC=yes 23545 export_dynamic_flag_spec_FC='$wl-E' 23546 # hardcode_minus_L: Not really in the search PATH, 23547 # but as the default location of the library. 23548 hardcode_minus_L_FC=yes 23549 fi 23550 ;; 23551 23552 hpux11*) 23553 if test yes,no = "$GCC,$with_gnu_ld"; then 23554 case $host_cpu in 23555 hppa*64*) 23556 archive_cmds_FC='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 23557 ;; 23558 ia64*) 23559 archive_cmds_FC='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 23560 ;; 23561 *) 23562 archive_cmds_FC='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 23563 ;; 23564 esac 23565 else 23566 case $host_cpu in 23567 hppa*64*) 23568 archive_cmds_FC='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 23569 ;; 23570 ia64*) 23571 archive_cmds_FC='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 23572 ;; 23573 *) 23574 archive_cmds_FC='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 23575 ;; 23576 esac 23577 fi 23578 if test no = "$with_gnu_ld"; then 23579 hardcode_libdir_flag_spec_FC='$wl+b $wl$libdir' 23580 hardcode_libdir_separator_FC=: 23581 23582 case $host_cpu in 23583 hppa*64*|ia64*) 23584 hardcode_direct_FC=no 23585 hardcode_shlibpath_var_FC=no 23586 ;; 23587 *) 23588 hardcode_direct_FC=yes 23589 hardcode_direct_absolute_FC=yes 23590 export_dynamic_flag_spec_FC='$wl-E' 23591 23592 # hardcode_minus_L: Not really in the search PATH, 23593 # but as the default location of the library. 23594 hardcode_minus_L_FC=yes 23595 ;; 23596 esac 23597 fi 23598 ;; 23599 23600 irix5* | irix6* | nonstopux*) 23601 if test yes = "$GCC"; then 23602 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' 23603 # Try to use the -exported_symbol ld option, if it does not 23604 # work, assume that -exports_file does not work either and 23605 # implicitly export all symbols. 23606 # This should be the same for all languages, so no per-tag cache variable. 23607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 23608printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 23609if test ${lt_cv_irix_exported_symbol+y} 23610then : 23611 printf %s "(cached) " >&6 23612else $as_nop 23613 save_LDFLAGS=$LDFLAGS 23614 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 23615 cat > conftest.$ac_ext <<_ACEOF 23616 23617 subroutine foo 23618 end 23619_ACEOF 23620if ac_fn_fc_try_link "$LINENO" 23621then : 23622 lt_cv_irix_exported_symbol=yes 23623else $as_nop 23624 lt_cv_irix_exported_symbol=no 23625fi 23626rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23627 conftest$ac_exeext conftest.$ac_ext 23628 LDFLAGS=$save_LDFLAGS 23629fi 23630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 23631printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 23632 if test yes = "$lt_cv_irix_exported_symbol"; then 23633 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' 23634 fi 23635 else 23636 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' 23637 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' 23638 fi 23639 archive_cmds_need_lc_FC='no' 23640 hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir' 23641 hardcode_libdir_separator_FC=: 23642 inherit_rpath_FC=yes 23643 link_all_deplibs_FC=yes 23644 ;; 23645 23646 linux*) 23647 case $cc_basename in 23648 tcc*) 23649 # Fabrice Bellard et al's Tiny C Compiler 23650 ld_shlibs_FC=yes 23651 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 23652 ;; 23653 esac 23654 ;; 23655 23656 netbsd*) 23657 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 23658 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 23659 else 23660 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 23661 fi 23662 hardcode_libdir_flag_spec_FC='-R$libdir' 23663 hardcode_direct_FC=yes 23664 hardcode_shlibpath_var_FC=no 23665 ;; 23666 23667 newsos6) 23668 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 23669 hardcode_direct_FC=yes 23670 hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir' 23671 hardcode_libdir_separator_FC=: 23672 hardcode_shlibpath_var_FC=no 23673 ;; 23674 23675 *nto* | *qnx*) 23676 ;; 23677 23678 openbsd* | bitrig*) 23679 if test -f /usr/libexec/ld.so; then 23680 hardcode_direct_FC=yes 23681 hardcode_shlibpath_var_FC=no 23682 hardcode_direct_absolute_FC=yes 23683 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 23684 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 23685 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 23686 hardcode_libdir_flag_spec_FC='$wl-rpath,$libdir' 23687 export_dynamic_flag_spec_FC='$wl-E' 23688 else 23689 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 23690 hardcode_libdir_flag_spec_FC='$wl-rpath,$libdir' 23691 fi 23692 else 23693 ld_shlibs_FC=no 23694 fi 23695 ;; 23696 23697 os2*) 23698 hardcode_libdir_flag_spec_FC='-L$libdir' 23699 hardcode_minus_L_FC=yes 23700 allow_undefined_flag_FC=unsupported 23701 shrext_cmds=.dll 23702 archive_cmds_FC='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 23703 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 23704 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 23705 $ECHO EXPORTS >> $output_objdir/$libname.def~ 23706 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 23707 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 23708 emximp -o $lib $output_objdir/$libname.def' 23709 archive_expsym_cmds_FC='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 23710 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 23711 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 23712 $ECHO EXPORTS >> $output_objdir/$libname.def~ 23713 prefix_cmds="$SED"~ 23714 if test EXPORTS = "`$SED 1q $export_symbols`"; then 23715 prefix_cmds="$prefix_cmds -e 1d"; 23716 fi~ 23717 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 23718 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 23719 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 23720 emximp -o $lib $output_objdir/$libname.def' 23721 old_archive_From_new_cmds_FC='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 23722 enable_shared_with_static_runtimes_FC=yes 23723 ;; 23724 23725 osf3*) 23726 if test yes = "$GCC"; then 23727 allow_undefined_flag_FC=' $wl-expect_unresolved $wl\*' 23728 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' 23729 else 23730 allow_undefined_flag_FC=' -expect_unresolved \*' 23731 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' 23732 fi 23733 archive_cmds_need_lc_FC='no' 23734 hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir' 23735 hardcode_libdir_separator_FC=: 23736 ;; 23737 23738 osf4* | osf5*) # as osf3* with the addition of -msym flag 23739 if test yes = "$GCC"; then 23740 allow_undefined_flag_FC=' $wl-expect_unresolved $wl\*' 23741 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' 23742 hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir' 23743 else 23744 allow_undefined_flag_FC=' -expect_unresolved \*' 23745 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' 23746 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~ 23747 $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' 23748 23749 # Both c and cxx compiler support -rpath directly 23750 hardcode_libdir_flag_spec_FC='-rpath $libdir' 23751 fi 23752 archive_cmds_need_lc_FC='no' 23753 hardcode_libdir_separator_FC=: 23754 ;; 23755 23756 solaris*) 23757 no_undefined_flag_FC=' -z defs' 23758 if test yes = "$GCC"; then 23759 wlarc='$wl' 23760 archive_cmds_FC='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 23761 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 23762 $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' 23763 else 23764 case `$CC -V 2>&1` in 23765 *"Compilers 5.0"*) 23766 wlarc='' 23767 archive_cmds_FC='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 23768 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 23769 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 23770 ;; 23771 *) 23772 wlarc='$wl' 23773 archive_cmds_FC='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 23774 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 23775 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 23776 ;; 23777 esac 23778 fi 23779 hardcode_libdir_flag_spec_FC='-R$libdir' 23780 hardcode_shlibpath_var_FC=no 23781 case $host_os in 23782 solaris2.[0-5] | solaris2.[0-5].*) ;; 23783 *) 23784 # The compiler driver will combine and reorder linker options, 23785 # but understands '-z linker_flag'. GCC discards it without '$wl', 23786 # but is careful enough not to reorder. 23787 # Supported since Solaris 2.6 (maybe 2.5.1?) 23788 if test yes = "$GCC"; then 23789 whole_archive_flag_spec_FC='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 23790 else 23791 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract' 23792 fi 23793 ;; 23794 esac 23795 link_all_deplibs_FC=yes 23796 ;; 23797 23798 sunos4*) 23799 if test sequent = "$host_vendor"; then 23800 # Use $CC to link under sequent, because it throws in some extra .o 23801 # files that make .init and .fini sections work. 23802 archive_cmds_FC='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 23803 else 23804 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 23805 fi 23806 hardcode_libdir_flag_spec_FC='-L$libdir' 23807 hardcode_direct_FC=yes 23808 hardcode_minus_L_FC=yes 23809 hardcode_shlibpath_var_FC=no 23810 ;; 23811 23812 sysv4) 23813 case $host_vendor in 23814 sni) 23815 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 23816 hardcode_direct_FC=yes # is this really true??? 23817 ;; 23818 siemens) 23819 ## LD is ld it makes a PLAMLIB 23820 ## CC just makes a GrossModule. 23821 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags' 23822 reload_cmds_FC='$CC -r -o $output$reload_objs' 23823 hardcode_direct_FC=no 23824 ;; 23825 motorola) 23826 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 23827 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie 23828 ;; 23829 esac 23830 runpath_var='LD_RUN_PATH' 23831 hardcode_shlibpath_var_FC=no 23832 ;; 23833 23834 sysv4.3*) 23835 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 23836 hardcode_shlibpath_var_FC=no 23837 export_dynamic_flag_spec_FC='-Bexport' 23838 ;; 23839 23840 sysv4*MP*) 23841 if test -d /usr/nec; then 23842 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 23843 hardcode_shlibpath_var_FC=no 23844 runpath_var=LD_RUN_PATH 23845 hardcode_runpath_var=yes 23846 ld_shlibs_FC=yes 23847 fi 23848 ;; 23849 23850 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 23851 no_undefined_flag_FC='$wl-z,text' 23852 archive_cmds_need_lc_FC=no 23853 hardcode_shlibpath_var_FC=no 23854 runpath_var='LD_RUN_PATH' 23855 23856 if test yes = "$GCC"; then 23857 archive_cmds_FC='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 23858 archive_expsym_cmds_FC='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 23859 else 23860 archive_cmds_FC='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 23861 archive_expsym_cmds_FC='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 23862 fi 23863 ;; 23864 23865 sysv5* | sco3.2v5* | sco5v6*) 23866 # Note: We CANNOT use -z defs as we might desire, because we do not 23867 # link with -lc, and that would cause any symbols used from libc to 23868 # always be unresolved, which means just about no library would 23869 # ever link correctly. If we're not using GNU ld we use -z text 23870 # though, which does catch some bad symbols but isn't as heavy-handed 23871 # as -z defs. 23872 no_undefined_flag_FC='$wl-z,text' 23873 allow_undefined_flag_FC='$wl-z,nodefs' 23874 archive_cmds_need_lc_FC=no 23875 hardcode_shlibpath_var_FC=no 23876 hardcode_libdir_flag_spec_FC='$wl-R,$libdir' 23877 hardcode_libdir_separator_FC=':' 23878 link_all_deplibs_FC=yes 23879 export_dynamic_flag_spec_FC='$wl-Bexport' 23880 runpath_var='LD_RUN_PATH' 23881 23882 if test yes = "$GCC"; then 23883 archive_cmds_FC='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 23884 archive_expsym_cmds_FC='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 23885 else 23886 archive_cmds_FC='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 23887 archive_expsym_cmds_FC='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 23888 fi 23889 ;; 23890 23891 uts4*) 23892 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 23893 hardcode_libdir_flag_spec_FC='-L$libdir' 23894 hardcode_shlibpath_var_FC=no 23895 ;; 23896 23897 *) 23898 ld_shlibs_FC=no 23899 ;; 23900 esac 23901 23902 if test sni = "$host_vendor"; then 23903 case $host in 23904 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 23905 export_dynamic_flag_spec_FC='$wl-Blargedynsym' 23906 ;; 23907 esac 23908 fi 23909 fi 23910 23911{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5 23912printf "%s\n" "$ld_shlibs_FC" >&6; } 23913test no = "$ld_shlibs_FC" && can_build_shared=no 23914 23915with_gnu_ld_FC=$with_gnu_ld 23916 23917 23918 23919 23920 23921 23922# 23923# Do we need to explicitly link libc? 23924# 23925case "x$archive_cmds_need_lc_FC" in 23926x|xyes) 23927 # Assume -lc should be added 23928 archive_cmds_need_lc_FC=yes 23929 23930 if test yes,yes = "$GCC,$enable_shared"; then 23931 case $archive_cmds_FC in 23932 *'~'*) 23933 # FIXME: we may have to deal with multi-command sequences. 23934 ;; 23935 '$CC '*) 23936 # Test whether the compiler implicitly links with -lc since on some 23937 # systems, -lgcc has to come before -lc. If gcc already passes -lc 23938 # to ld, don't add -lc before -lgcc. 23939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 23940printf %s "checking whether -lc should be explicitly linked in... " >&6; } 23941if test ${lt_cv_archive_cmds_need_lc_FC+y} 23942then : 23943 printf %s "(cached) " >&6 23944else $as_nop 23945 $RM conftest* 23946 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 23947 23948 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 23949 (eval $ac_compile) 2>&5 23950 ac_status=$? 23951 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23952 test $ac_status = 0; } 2>conftest.err; then 23953 soname=conftest 23954 lib=conftest 23955 libobjs=conftest.$ac_objext 23956 deplibs= 23957 wl=$lt_prog_compiler_wl_FC 23958 pic_flag=$lt_prog_compiler_pic_FC 23959 compiler_flags=-v 23960 linker_flags=-v 23961 verstring= 23962 output_objdir=. 23963 libname=conftest 23964 lt_save_allow_undefined_flag=$allow_undefined_flag_FC 23965 allow_undefined_flag_FC= 23966 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 23967 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 23968 ac_status=$? 23969 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23970 test $ac_status = 0; } 23971 then 23972 lt_cv_archive_cmds_need_lc_FC=no 23973 else 23974 lt_cv_archive_cmds_need_lc_FC=yes 23975 fi 23976 allow_undefined_flag_FC=$lt_save_allow_undefined_flag 23977 else 23978 cat conftest.err 1>&5 23979 fi 23980 $RM conftest* 23981 23982fi 23983{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5 23984printf "%s\n" "$lt_cv_archive_cmds_need_lc_FC" >&6; } 23985 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC 23986 ;; 23987 esac 23988 fi 23989 ;; 23990esac 23991 23992 23993 23994 23995 23996 23997 23998 23999 24000 24001 24002 24003 24004 24005 24006 24007 24008 24009 24010 24011 24012 24013 24014 24015 24016 24017 24018 24019 24020 24021 24022 24023 24024 24025 24026 24027 24028 24029 24030 24031 24032 24033 24034 24035 24036 24037 24038 24039 24040 24041 24042 24043 24044 24045 24046 24047 24048 24049 24050 24051 24052 24053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 24054printf %s "checking dynamic linker characteristics... " >&6; } 24055 24056library_names_spec= 24057libname_spec='lib$name' 24058soname_spec= 24059shrext_cmds=.so 24060postinstall_cmds= 24061postuninstall_cmds= 24062finish_cmds= 24063finish_eval= 24064shlibpath_var= 24065shlibpath_overrides_runpath=unknown 24066version_type=none 24067dynamic_linker="$host_os ld.so" 24068sys_lib_dlsearch_path_spec="/lib /usr/lib" 24069need_lib_prefix=unknown 24070hardcode_into_libs=no 24071 24072# when you set need_version to no, make sure it does not cause -set_version 24073# flags to be left without arguments 24074need_version=unknown 24075 24076 24077 24078case $host_os in 24079aix3*) 24080 version_type=linux # correct to gnu/linux during the next big refactor 24081 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 24082 shlibpath_var=LIBPATH 24083 24084 # AIX 3 has no versioning support, so we append a major version to the name. 24085 soname_spec='$libname$release$shared_ext$major' 24086 ;; 24087 24088aix[4-9]*) 24089 version_type=linux # correct to gnu/linux during the next big refactor 24090 need_lib_prefix=no 24091 need_version=no 24092 hardcode_into_libs=yes 24093 if test ia64 = "$host_cpu"; then 24094 # AIX 5 supports IA64 24095 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 24096 shlibpath_var=LD_LIBRARY_PATH 24097 else 24098 # With GCC up to 2.95.x, collect2 would create an import file 24099 # for dependence libraries. The import file would start with 24100 # the line '#! .'. This would cause the generated library to 24101 # depend on '.', always an invalid library. This was fixed in 24102 # development snapshots of GCC prior to 3.0. 24103 case $host_os in 24104 aix4 | aix4.[01] | aix4.[01].*) 24105 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 24106 echo ' yes ' 24107 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 24108 : 24109 else 24110 can_build_shared=no 24111 fi 24112 ;; 24113 esac 24114 # Using Import Files as archive members, it is possible to support 24115 # filename-based versioning of shared library archives on AIX. While 24116 # this would work for both with and without runtime linking, it will 24117 # prevent static linking of such archives. So we do filename-based 24118 # shared library versioning with .so extension only, which is used 24119 # when both runtime linking and shared linking is enabled. 24120 # Unfortunately, runtime linking may impact performance, so we do 24121 # not want this to be the default eventually. Also, we use the 24122 # versioned .so libs for executables only if there is the -brtl 24123 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 24124 # To allow for filename-based versioning support, we need to create 24125 # libNAME.so.V as an archive file, containing: 24126 # *) an Import File, referring to the versioned filename of the 24127 # archive as well as the shared archive member, telling the 24128 # bitwidth (32 or 64) of that shared object, and providing the 24129 # list of exported symbols of that shared object, eventually 24130 # decorated with the 'weak' keyword 24131 # *) the shared object with the F_LOADONLY flag set, to really avoid 24132 # it being seen by the linker. 24133 # At run time we better use the real file rather than another symlink, 24134 # but for link time we create the symlink libNAME.so -> libNAME.so.V 24135 24136 case $with_aix_soname,$aix_use_runtimelinking in 24137 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 24138 # soname into executable. Probably we can add versioning support to 24139 # collect2, so additional links can be useful in future. 24140 aix,yes) # traditional libtool 24141 dynamic_linker='AIX unversionable lib.so' 24142 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 24143 # instead of lib<name>.a to let people know that these are not 24144 # typical AIX shared libraries. 24145 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 24146 ;; 24147 aix,no) # traditional AIX only 24148 dynamic_linker='AIX lib.a(lib.so.V)' 24149 # We preserve .a as extension for shared libraries through AIX4.2 24150 # and later when we are not doing run time linking. 24151 library_names_spec='$libname$release.a $libname.a' 24152 soname_spec='$libname$release$shared_ext$major' 24153 ;; 24154 svr4,*) # full svr4 only 24155 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 24156 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 24157 # We do not specify a path in Import Files, so LIBPATH fires. 24158 shlibpath_overrides_runpath=yes 24159 ;; 24160 *,yes) # both, prefer svr4 24161 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 24162 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 24163 # unpreferred sharedlib libNAME.a needs extra handling 24164 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"' 24165 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"' 24166 # We do not specify a path in Import Files, so LIBPATH fires. 24167 shlibpath_overrides_runpath=yes 24168 ;; 24169 *,no) # both, prefer aix 24170 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 24171 library_names_spec='$libname$release.a $libname.a' 24172 soname_spec='$libname$release$shared_ext$major' 24173 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 24174 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)' 24175 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"' 24176 ;; 24177 esac 24178 shlibpath_var=LIBPATH 24179 fi 24180 ;; 24181 24182amigaos*) 24183 case $host_cpu in 24184 powerpc) 24185 # Since July 2007 AmigaOS4 officially supports .so libraries. 24186 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 24187 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 24188 ;; 24189 m68k) 24190 library_names_spec='$libname.ixlibrary $libname.a' 24191 # Create ${libname}_ixlibrary.a entries in /sys/libs. 24192 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' 24193 ;; 24194 esac 24195 ;; 24196 24197beos*) 24198 library_names_spec='$libname$shared_ext' 24199 dynamic_linker="$host_os ld.so" 24200 shlibpath_var=LIBRARY_PATH 24201 ;; 24202 24203bsdi[45]*) 24204 version_type=linux # correct to gnu/linux during the next big refactor 24205 need_version=no 24206 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 24207 soname_spec='$libname$release$shared_ext$major' 24208 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 24209 shlibpath_var=LD_LIBRARY_PATH 24210 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 24211 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 24212 # the default ld.so.conf also contains /usr/contrib/lib and 24213 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 24214 # libtool to hard-code these into programs 24215 ;; 24216 24217cygwin* | mingw* | pw32* | cegcc*) 24218 version_type=windows 24219 shrext_cmds=.dll 24220 need_version=no 24221 need_lib_prefix=no 24222 24223 case $GCC,$cc_basename in 24224 yes,*) 24225 # gcc 24226 library_names_spec='$libname.dll.a' 24227 # DLL is installed to $(libdir)/../bin by postinstall_cmds 24228 postinstall_cmds='base_file=`basename \$file`~ 24229 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 24230 dldir=$destdir/`dirname \$dlpath`~ 24231 test -d \$dldir || mkdir -p \$dldir~ 24232 $install_prog $dir/$dlname \$dldir/$dlname~ 24233 chmod a+x \$dldir/$dlname~ 24234 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 24235 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 24236 fi' 24237 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 24238 dlpath=$dir/\$dldll~ 24239 $RM \$dlpath' 24240 shlibpath_overrides_runpath=yes 24241 24242 case $host_os in 24243 cygwin*) 24244 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 24245 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 24246 24247 ;; 24248 mingw* | cegcc*) 24249 # MinGW DLLs use traditional 'lib' prefix 24250 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 24251 ;; 24252 pw32*) 24253 # pw32 DLLs use 'pw' prefix rather than 'lib' 24254 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 24255 ;; 24256 esac 24257 dynamic_linker='Win32 ld.exe' 24258 ;; 24259 24260 *,cl*) 24261 # Native MSVC 24262 libname_spec='$name' 24263 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 24264 library_names_spec='$libname.dll.lib' 24265 24266 case $build_os in 24267 mingw*) 24268 sys_lib_search_path_spec= 24269 lt_save_ifs=$IFS 24270 IFS=';' 24271 for lt_path in $LIB 24272 do 24273 IFS=$lt_save_ifs 24274 # Let DOS variable expansion print the short 8.3 style file name. 24275 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 24276 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 24277 done 24278 IFS=$lt_save_ifs 24279 # Convert to MSYS style. 24280 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 24281 ;; 24282 cygwin*) 24283 # Convert to unix form, then to dos form, then back to unix form 24284 # but this time dos style (no spaces!) so that the unix form looks 24285 # like /cygdrive/c/PROGRA~1:/cygdr... 24286 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 24287 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 24288 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 24289 ;; 24290 *) 24291 sys_lib_search_path_spec=$LIB 24292 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 24293 # It is most probably a Windows format PATH. 24294 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 24295 else 24296 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 24297 fi 24298 # FIXME: find the short name or the path components, as spaces are 24299 # common. (e.g. "Program Files" -> "PROGRA~1") 24300 ;; 24301 esac 24302 24303 # DLL is installed to $(libdir)/../bin by postinstall_cmds 24304 postinstall_cmds='base_file=`basename \$file`~ 24305 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 24306 dldir=$destdir/`dirname \$dlpath`~ 24307 test -d \$dldir || mkdir -p \$dldir~ 24308 $install_prog $dir/$dlname \$dldir/$dlname' 24309 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 24310 dlpath=$dir/\$dldll~ 24311 $RM \$dlpath' 24312 shlibpath_overrides_runpath=yes 24313 dynamic_linker='Win32 link.exe' 24314 ;; 24315 24316 *) 24317 # Assume MSVC wrapper 24318 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 24319 dynamic_linker='Win32 ld.exe' 24320 ;; 24321 esac 24322 # FIXME: first we should search . and the directory the executable is in 24323 shlibpath_var=PATH 24324 ;; 24325 24326darwin* | rhapsody*) 24327 dynamic_linker="$host_os dyld" 24328 version_type=darwin 24329 need_lib_prefix=no 24330 need_version=no 24331 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 24332 soname_spec='$libname$release$major$shared_ext' 24333 shlibpath_overrides_runpath=yes 24334 shlibpath_var=DYLD_LIBRARY_PATH 24335 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 24336 24337 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 24338 ;; 24339 24340dgux*) 24341 version_type=linux # correct to gnu/linux during the next big refactor 24342 need_lib_prefix=no 24343 need_version=no 24344 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 24345 soname_spec='$libname$release$shared_ext$major' 24346 shlibpath_var=LD_LIBRARY_PATH 24347 ;; 24348 24349freebsd* | dragonfly*) 24350 # DragonFly does not have aout. When/if they implement a new 24351 # versioning mechanism, adjust this. 24352 if test -x /usr/bin/objformat; then 24353 objformat=`/usr/bin/objformat` 24354 else 24355 case $host_os in 24356 freebsd[23].*) objformat=aout ;; 24357 *) objformat=elf ;; 24358 esac 24359 fi 24360 version_type=freebsd-$objformat 24361 case $version_type in 24362 freebsd-elf*) 24363 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 24364 soname_spec='$libname$release$shared_ext$major' 24365 need_version=no 24366 need_lib_prefix=no 24367 ;; 24368 freebsd-*) 24369 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 24370 need_version=yes 24371 ;; 24372 esac 24373 shlibpath_var=LD_LIBRARY_PATH 24374 case $host_os in 24375 freebsd2.*) 24376 shlibpath_overrides_runpath=yes 24377 ;; 24378 freebsd3.[01]* | freebsdelf3.[01]*) 24379 shlibpath_overrides_runpath=yes 24380 hardcode_into_libs=yes 24381 ;; 24382 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 24383 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 24384 shlibpath_overrides_runpath=no 24385 hardcode_into_libs=yes 24386 ;; 24387 *) # from 4.6 on, and DragonFly 24388 shlibpath_overrides_runpath=yes 24389 hardcode_into_libs=yes 24390 ;; 24391 esac 24392 ;; 24393 24394haiku*) 24395 version_type=linux # correct to gnu/linux during the next big refactor 24396 need_lib_prefix=no 24397 need_version=no 24398 dynamic_linker="$host_os runtime_loader" 24399 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 24400 soname_spec='$libname$release$shared_ext$major' 24401 shlibpath_var=LIBRARY_PATH 24402 shlibpath_overrides_runpath=no 24403 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 24404 hardcode_into_libs=yes 24405 ;; 24406 24407hpux9* | hpux10* | hpux11*) 24408 # Give a soname corresponding to the major version so that dld.sl refuses to 24409 # link against other versions. 24410 version_type=sunos 24411 need_lib_prefix=no 24412 need_version=no 24413 case $host_cpu in 24414 ia64*) 24415 shrext_cmds='.so' 24416 hardcode_into_libs=yes 24417 dynamic_linker="$host_os dld.so" 24418 shlibpath_var=LD_LIBRARY_PATH 24419 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 24420 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 24421 soname_spec='$libname$release$shared_ext$major' 24422 if test 32 = "$HPUX_IA64_MODE"; then 24423 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 24424 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 24425 else 24426 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 24427 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 24428 fi 24429 ;; 24430 hppa*64*) 24431 shrext_cmds='.sl' 24432 hardcode_into_libs=yes 24433 dynamic_linker="$host_os dld.sl" 24434 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 24435 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 24436 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 24437 soname_spec='$libname$release$shared_ext$major' 24438 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 24439 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 24440 ;; 24441 *) 24442 shrext_cmds='.sl' 24443 dynamic_linker="$host_os dld.sl" 24444 shlibpath_var=SHLIB_PATH 24445 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 24446 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 24447 soname_spec='$libname$release$shared_ext$major' 24448 ;; 24449 esac 24450 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 24451 postinstall_cmds='chmod 555 $lib' 24452 # or fails outright, so override atomically: 24453 install_override_mode=555 24454 ;; 24455 24456interix[3-9]*) 24457 version_type=linux # correct to gnu/linux during the next big refactor 24458 need_lib_prefix=no 24459 need_version=no 24460 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 24461 soname_spec='$libname$release$shared_ext$major' 24462 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 24463 shlibpath_var=LD_LIBRARY_PATH 24464 shlibpath_overrides_runpath=no 24465 hardcode_into_libs=yes 24466 ;; 24467 24468irix5* | irix6* | nonstopux*) 24469 case $host_os in 24470 nonstopux*) version_type=nonstopux ;; 24471 *) 24472 if test yes = "$lt_cv_prog_gnu_ld"; then 24473 version_type=linux # correct to gnu/linux during the next big refactor 24474 else 24475 version_type=irix 24476 fi ;; 24477 esac 24478 need_lib_prefix=no 24479 need_version=no 24480 soname_spec='$libname$release$shared_ext$major' 24481 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 24482 case $host_os in 24483 irix5* | nonstopux*) 24484 libsuff= shlibsuff= 24485 ;; 24486 *) 24487 case $LD in # libtool.m4 will add one of these switches to LD 24488 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 24489 libsuff= shlibsuff= libmagic=32-bit;; 24490 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 24491 libsuff=32 shlibsuff=N32 libmagic=N32;; 24492 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 24493 libsuff=64 shlibsuff=64 libmagic=64-bit;; 24494 *) libsuff= shlibsuff= libmagic=never-match;; 24495 esac 24496 ;; 24497 esac 24498 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 24499 shlibpath_overrides_runpath=no 24500 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 24501 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 24502 hardcode_into_libs=yes 24503 ;; 24504 24505# No shared lib support for Linux oldld, aout, or coff. 24506linux*oldld* | linux*aout* | linux*coff*) 24507 dynamic_linker=no 24508 ;; 24509 24510linux*android*) 24511 version_type=none # Android doesn't support versioned libraries. 24512 need_lib_prefix=no 24513 need_version=no 24514 library_names_spec='$libname$release$shared_ext' 24515 soname_spec='$libname$release$shared_ext' 24516 finish_cmds= 24517 shlibpath_var=LD_LIBRARY_PATH 24518 shlibpath_overrides_runpath=yes 24519 24520 # This implies no fast_install, which is unacceptable. 24521 # Some rework will be needed to allow for fast_install 24522 # before this can be enabled. 24523 hardcode_into_libs=yes 24524 24525 dynamic_linker='Android linker' 24526 # Don't embed -rpath directories since the linker doesn't support them. 24527 hardcode_libdir_flag_spec_FC='-L$libdir' 24528 ;; 24529 24530# This must be glibc/ELF. 24531linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 24532 version_type=linux # correct to gnu/linux during the next big refactor 24533 need_lib_prefix=no 24534 need_version=no 24535 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 24536 soname_spec='$libname$release$shared_ext$major' 24537 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 24538 shlibpath_var=LD_LIBRARY_PATH 24539 shlibpath_overrides_runpath=no 24540 24541 # Some binutils ld are patched to set DT_RUNPATH 24542 if test ${lt_cv_shlibpath_overrides_runpath+y} 24543then : 24544 printf %s "(cached) " >&6 24545else $as_nop 24546 lt_cv_shlibpath_overrides_runpath=no 24547 save_LDFLAGS=$LDFLAGS 24548 save_libdir=$libdir 24549 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \ 24550 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\"" 24551 cat > conftest.$ac_ext <<_ACEOF 24552 program conftest 24553 24554 end 24555_ACEOF 24556if ac_fn_fc_try_link "$LINENO" 24557then : 24558 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 24559then : 24560 lt_cv_shlibpath_overrides_runpath=yes 24561fi 24562fi 24563rm -f core conftest.err conftest.$ac_objext conftest.beam \ 24564 conftest$ac_exeext conftest.$ac_ext 24565 LDFLAGS=$save_LDFLAGS 24566 libdir=$save_libdir 24567 24568fi 24569 24570 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 24571 24572 # This implies no fast_install, which is unacceptable. 24573 # Some rework will be needed to allow for fast_install 24574 # before this can be enabled. 24575 hardcode_into_libs=yes 24576 24577 # Ideally, we could use ldconfig to report *all* directores which are 24578 # searched for libraries, however this is still not possible. Aside from not 24579 # being certain /sbin/ldconfig is available, command 24580 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 24581 # even though it is searched at run-time. Try to do the best guess by 24582 # appending ld.so.conf contents (and includes) to the search path. 24583 if test -f /etc/ld.so.conf; then 24584 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' ' '` 24585 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 24586 fi 24587 24588 # We used to test for /lib/ld.so.1 and disable shared libraries on 24589 # powerpc, because MkLinux only supported shared libraries with the 24590 # GNU dynamic linker. Since this was broken with cross compilers, 24591 # most powerpc-linux boxes support dynamic linking these days and 24592 # people can always --disable-shared, the test was removed, and we 24593 # assume the GNU/Linux dynamic linker is in use. 24594 dynamic_linker='GNU/Linux ld.so' 24595 ;; 24596 24597netbsd*) 24598 version_type=sunos 24599 need_lib_prefix=no 24600 need_version=no 24601 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 24602 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 24603 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 24604 dynamic_linker='NetBSD (a.out) ld.so' 24605 else 24606 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 24607 soname_spec='$libname$release$shared_ext$major' 24608 dynamic_linker='NetBSD ld.elf_so' 24609 fi 24610 shlibpath_var=LD_LIBRARY_PATH 24611 shlibpath_overrides_runpath=yes 24612 hardcode_into_libs=yes 24613 ;; 24614 24615newsos6) 24616 version_type=linux # correct to gnu/linux during the next big refactor 24617 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 24618 shlibpath_var=LD_LIBRARY_PATH 24619 shlibpath_overrides_runpath=yes 24620 ;; 24621 24622*nto* | *qnx*) 24623 version_type=qnx 24624 need_lib_prefix=no 24625 need_version=no 24626 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 24627 soname_spec='$libname$release$shared_ext$major' 24628 shlibpath_var=LD_LIBRARY_PATH 24629 shlibpath_overrides_runpath=no 24630 hardcode_into_libs=yes 24631 dynamic_linker='ldqnx.so' 24632 ;; 24633 24634openbsd* | bitrig*) 24635 version_type=sunos 24636 sys_lib_dlsearch_path_spec=/usr/lib 24637 need_lib_prefix=no 24638 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 24639 need_version=no 24640 else 24641 need_version=yes 24642 fi 24643 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 24644 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 24645 shlibpath_var=LD_LIBRARY_PATH 24646 shlibpath_overrides_runpath=yes 24647 ;; 24648 24649os2*) 24650 libname_spec='$name' 24651 version_type=windows 24652 shrext_cmds=.dll 24653 need_version=no 24654 need_lib_prefix=no 24655 # OS/2 can only load a DLL with a base name of 8 characters or less. 24656 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 24657 v=$($ECHO $release$versuffix | tr -d .-); 24658 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 24659 $ECHO $n$v`$shared_ext' 24660 library_names_spec='${libname}_dll.$libext' 24661 dynamic_linker='OS/2 ld.exe' 24662 shlibpath_var=BEGINLIBPATH 24663 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 24664 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 24665 postinstall_cmds='base_file=`basename \$file`~ 24666 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 24667 dldir=$destdir/`dirname \$dlpath`~ 24668 test -d \$dldir || mkdir -p \$dldir~ 24669 $install_prog $dir/$dlname \$dldir/$dlname~ 24670 chmod a+x \$dldir/$dlname~ 24671 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 24672 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 24673 fi' 24674 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 24675 dlpath=$dir/\$dldll~ 24676 $RM \$dlpath' 24677 ;; 24678 24679osf3* | osf4* | osf5*) 24680 version_type=osf 24681 need_lib_prefix=no 24682 need_version=no 24683 soname_spec='$libname$release$shared_ext$major' 24684 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 24685 shlibpath_var=LD_LIBRARY_PATH 24686 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 24687 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 24688 ;; 24689 24690rdos*) 24691 dynamic_linker=no 24692 ;; 24693 24694solaris*) 24695 version_type=linux # correct to gnu/linux during the next big refactor 24696 need_lib_prefix=no 24697 need_version=no 24698 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 24699 soname_spec='$libname$release$shared_ext$major' 24700 shlibpath_var=LD_LIBRARY_PATH 24701 shlibpath_overrides_runpath=yes 24702 hardcode_into_libs=yes 24703 # ldd complains unless libraries are executable 24704 postinstall_cmds='chmod +x $lib' 24705 ;; 24706 24707sunos4*) 24708 version_type=sunos 24709 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 24710 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 24711 shlibpath_var=LD_LIBRARY_PATH 24712 shlibpath_overrides_runpath=yes 24713 if test yes = "$with_gnu_ld"; then 24714 need_lib_prefix=no 24715 fi 24716 need_version=yes 24717 ;; 24718 24719sysv4 | sysv4.3*) 24720 version_type=linux # correct to gnu/linux during the next big refactor 24721 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 24722 soname_spec='$libname$release$shared_ext$major' 24723 shlibpath_var=LD_LIBRARY_PATH 24724 case $host_vendor in 24725 sni) 24726 shlibpath_overrides_runpath=no 24727 need_lib_prefix=no 24728 runpath_var=LD_RUN_PATH 24729 ;; 24730 siemens) 24731 need_lib_prefix=no 24732 ;; 24733 motorola) 24734 need_lib_prefix=no 24735 need_version=no 24736 shlibpath_overrides_runpath=no 24737 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 24738 ;; 24739 esac 24740 ;; 24741 24742sysv4*MP*) 24743 if test -d /usr/nec; then 24744 version_type=linux # correct to gnu/linux during the next big refactor 24745 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 24746 soname_spec='$libname$shared_ext.$major' 24747 shlibpath_var=LD_LIBRARY_PATH 24748 fi 24749 ;; 24750 24751sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 24752 version_type=sco 24753 need_lib_prefix=no 24754 need_version=no 24755 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 24756 soname_spec='$libname$release$shared_ext$major' 24757 shlibpath_var=LD_LIBRARY_PATH 24758 shlibpath_overrides_runpath=yes 24759 hardcode_into_libs=yes 24760 if test yes = "$with_gnu_ld"; then 24761 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 24762 else 24763 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 24764 case $host_os in 24765 sco3.2v5*) 24766 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 24767 ;; 24768 esac 24769 fi 24770 sys_lib_dlsearch_path_spec='/usr/lib' 24771 ;; 24772 24773tpf*) 24774 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 24775 version_type=linux # correct to gnu/linux during the next big refactor 24776 need_lib_prefix=no 24777 need_version=no 24778 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 24779 shlibpath_var=LD_LIBRARY_PATH 24780 shlibpath_overrides_runpath=no 24781 hardcode_into_libs=yes 24782 ;; 24783 24784uts4*) 24785 version_type=linux # correct to gnu/linux during the next big refactor 24786 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 24787 soname_spec='$libname$release$shared_ext$major' 24788 shlibpath_var=LD_LIBRARY_PATH 24789 ;; 24790 24791*) 24792 dynamic_linker=no 24793 ;; 24794esac 24795{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 24796printf "%s\n" "$dynamic_linker" >&6; } 24797test no = "$dynamic_linker" && can_build_shared=no 24798 24799variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 24800if test yes = "$GCC"; then 24801 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 24802fi 24803 24804if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 24805 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 24806fi 24807 24808if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 24809 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 24810fi 24811 24812# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 24813configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 24814 24815# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 24816func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 24817 24818# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 24819configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 24820 24821 24822 24823 24824 24825 24826 24827 24828 24829 24830 24831 24832 24833 24834 24835 24836 24837 24838 24839 24840 24841 24842 24843 24844 24845 24846 24847 24848 24849 24850 24851 24852 24853 24854 24855 24856 24857 24858 24859 24860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 24861printf %s "checking how to hardcode library paths into programs... " >&6; } 24862hardcode_action_FC= 24863if test -n "$hardcode_libdir_flag_spec_FC" || 24864 test -n "$runpath_var_FC" || 24865 test yes = "$hardcode_automatic_FC"; then 24866 24867 # We can hardcode non-existent directories. 24868 if test no != "$hardcode_direct_FC" && 24869 # If the only mechanism to avoid hardcoding is shlibpath_var, we 24870 # have to relink, otherwise we might link with an installed library 24871 # when we should be linking with a yet-to-be-installed one 24872 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" && 24873 test no != "$hardcode_minus_L_FC"; then 24874 # Linking always hardcodes the temporary library directory. 24875 hardcode_action_FC=relink 24876 else 24877 # We can link without hardcoding, and we can hardcode nonexisting dirs. 24878 hardcode_action_FC=immediate 24879 fi 24880else 24881 # We cannot hardcode anything, or else we can only hardcode existing 24882 # directories. 24883 hardcode_action_FC=unsupported 24884fi 24885{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5 24886printf "%s\n" "$hardcode_action_FC" >&6; } 24887 24888if test relink = "$hardcode_action_FC" || 24889 test yes = "$inherit_rpath_FC"; then 24890 # Fast installation is not supported 24891 enable_fast_install=no 24892elif test yes = "$shlibpath_overrides_runpath" || 24893 test no = "$enable_shared"; then 24894 # Fast installation is not necessary 24895 enable_fast_install=needless 24896fi 24897 24898 24899 24900 24901 24902 24903 24904 fi # test -n "$compiler" 24905 24906 GCC=$lt_save_GCC 24907 CC=$lt_save_CC 24908 CFLAGS=$lt_save_CFLAGS 24909fi # test yes != "$_lt_disable_FC" 24910 24911ac_ext=c 24912ac_cpp='$CPP $CPPFLAGS' 24913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24915ac_compiler_gnu=$ac_cv_c_compiler_gnu 24916 24917 24918 24919 24920 24921 24922 24923 24924 24925 24926 24927 ac_config_commands="$ac_config_commands libtool" 24928 24929 24930 24931 24932# Only expand once: 24933 24934 24935rm -f a.out 24936## _KPSE_USE_LIBTOOL: Generate a libtool script for use in configure tests 24937: ${CONFIG_LT=./config.lt} 24938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_LT" >&5 24939printf "%s\n" "$as_me: creating $CONFIG_LT" >&6;} 24940as_write_fail=0 24941cat >"$CONFIG_LT" <<_ASEOF || as_write_fail=1 24942#! $SHELL 24943# Generated by $as_me. 24944# Run this file to recreate a libtool stub with the current configuration. 24945SHELL=\${CONFIG_SHELL-$SHELL} 24946export SHELL 24947_ASEOF 24948cat >>"$CONFIG_LT" <<\_ASEOF || as_write_fail=1 24949## -------------------- ## 24950## M4sh Initialization. ## 24951## -------------------- ## 24952 24953# Be more Bourne compatible 24954DUALCASE=1; export DUALCASE # for MKS sh 24955as_nop=: 24956if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 24957then : 24958 emulate sh 24959 NULLCMD=: 24960 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 24961 # is contrary to our usage. Disable this feature. 24962 alias -g '${1+"$@"}'='"$@"' 24963 setopt NO_GLOB_SUBST 24964else $as_nop 24965 case `(set -o) 2>/dev/null` in #( 24966 *posix*) : 24967 set -o posix ;; #( 24968 *) : 24969 ;; 24970esac 24971fi 24972 24973 24974 24975# Reset variables that may have inherited troublesome values from 24976# the environment. 24977 24978# IFS needs to be set, to space, tab, and newline, in precisely that order. 24979# (If _AS_PATH_WALK were called with IFS unset, it would have the 24980# side effect of setting IFS to empty, thus disabling word splitting.) 24981# Quoting is to prevent editors from complaining about space-tab. 24982as_nl=' 24983' 24984export as_nl 24985IFS=" "" $as_nl" 24986 24987PS1='$ ' 24988PS2='> ' 24989PS4='+ ' 24990 24991# Ensure predictable behavior from utilities with locale-dependent output. 24992LC_ALL=C 24993export LC_ALL 24994LANGUAGE=C 24995export LANGUAGE 24996 24997# We cannot yet rely on "unset" to work, but we need these variables 24998# to be unset--not just set to an empty or harmless value--now, to 24999# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 25000# also avoids known problems related to "unset" and subshell syntax 25001# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 25002for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 25003do eval test \${$as_var+y} \ 25004 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 25005done 25006 25007# Ensure that fds 0, 1, and 2 are open. 25008if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 25009if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 25010if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 25011 25012# The user is always right. 25013if ${PATH_SEPARATOR+false} :; then 25014 PATH_SEPARATOR=: 25015 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 25016 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 25017 PATH_SEPARATOR=';' 25018 } 25019fi 25020 25021 25022# Find who we are. Look in the path if we contain no directory separator. 25023as_myself= 25024case $0 in #(( 25025 *[\\/]* ) as_myself=$0 ;; 25026 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25027for as_dir in $PATH 25028do 25029 IFS=$as_save_IFS 25030 case $as_dir in #((( 25031 '') as_dir=./ ;; 25032 */) ;; 25033 *) as_dir=$as_dir/ ;; 25034 esac 25035 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 25036 done 25037IFS=$as_save_IFS 25038 25039 ;; 25040esac 25041# We did not find ourselves, most probably we were run as `sh COMMAND' 25042# in which case we are not to be found in the path. 25043if test "x$as_myself" = x; then 25044 as_myself=$0 25045fi 25046if test ! -f "$as_myself"; then 25047 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 25048 exit 1 25049fi 25050 25051 25052 25053# as_fn_error STATUS ERROR [LINENO LOG_FD] 25054# ---------------------------------------- 25055# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 25056# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 25057# script with STATUS, using 1 if that was 0. 25058as_fn_error () 25059{ 25060 as_status=$1; test $as_status -eq 0 && as_status=1 25061 if test "$4"; then 25062 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 25063 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 25064 fi 25065 printf "%s\n" "$as_me: error: $2" >&2 25066 as_fn_exit $as_status 25067} # as_fn_error 25068 25069 25070 25071# as_fn_set_status STATUS 25072# ----------------------- 25073# Set $? to STATUS, without forking. 25074as_fn_set_status () 25075{ 25076 return $1 25077} # as_fn_set_status 25078 25079# as_fn_exit STATUS 25080# ----------------- 25081# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 25082as_fn_exit () 25083{ 25084 set +e 25085 as_fn_set_status $1 25086 exit $1 25087} # as_fn_exit 25088 25089# as_fn_unset VAR 25090# --------------- 25091# Portably unset VAR. 25092as_fn_unset () 25093{ 25094 { eval $1=; unset $1;} 25095} 25096as_unset=as_fn_unset 25097 25098# as_fn_append VAR VALUE 25099# ---------------------- 25100# Append the text in VALUE to the end of the definition contained in VAR. Take 25101# advantage of any shell optimizations that allow amortized linear growth over 25102# repeated appends, instead of the typical quadratic growth present in naive 25103# implementations. 25104if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 25105then : 25106 eval 'as_fn_append () 25107 { 25108 eval $1+=\$2 25109 }' 25110else $as_nop 25111 as_fn_append () 25112 { 25113 eval $1=\$$1\$2 25114 } 25115fi # as_fn_append 25116 25117# as_fn_arith ARG... 25118# ------------------ 25119# Perform arithmetic evaluation on the ARGs, and store the result in the 25120# global $as_val. Take advantage of shells that can avoid forks. The arguments 25121# must be portable across $(()) and expr. 25122if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 25123then : 25124 eval 'as_fn_arith () 25125 { 25126 as_val=$(( $* )) 25127 }' 25128else $as_nop 25129 as_fn_arith () 25130 { 25131 as_val=`expr "$@" || test $? -eq 1` 25132 } 25133fi # as_fn_arith 25134 25135 25136if expr a : '\(a\)' >/dev/null 2>&1 && 25137 test "X`expr 00001 : '.*\(...\)'`" = X001; then 25138 as_expr=expr 25139else 25140 as_expr=false 25141fi 25142 25143if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 25144 as_basename=basename 25145else 25146 as_basename=false 25147fi 25148 25149if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 25150 as_dirname=dirname 25151else 25152 as_dirname=false 25153fi 25154 25155as_me=`$as_basename -- "$0" || 25156$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 25157 X"$0" : 'X\(//\)$' \| \ 25158 X"$0" : 'X\(/\)' \| . 2>/dev/null || 25159printf "%s\n" X/"$0" | 25160 sed '/^.*\/\([^/][^/]*\)\/*$/{ 25161 s//\1/ 25162 q 25163 } 25164 /^X\/\(\/\/\)$/{ 25165 s//\1/ 25166 q 25167 } 25168 /^X\/\(\/\).*/{ 25169 s//\1/ 25170 q 25171 } 25172 s/.*/./; q'` 25173 25174# Avoid depending upon Character Ranges. 25175as_cr_letters='abcdefghijklmnopqrstuvwxyz' 25176as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 25177as_cr_Letters=$as_cr_letters$as_cr_LETTERS 25178as_cr_digits='0123456789' 25179as_cr_alnum=$as_cr_Letters$as_cr_digits 25180 25181 25182# Determine whether it's possible to make 'echo' print without a newline. 25183# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 25184# for compatibility with existing Makefiles. 25185ECHO_C= ECHO_N= ECHO_T= 25186case `echo -n x` in #((((( 25187-n*) 25188 case `echo 'xy\c'` in 25189 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 25190 xy) ECHO_C='\c';; 25191 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 25192 ECHO_T=' ';; 25193 esac;; 25194*) 25195 ECHO_N='-n';; 25196esac 25197 25198# For backward compatibility with old third-party macros, we provide 25199# the shell variables $as_echo and $as_echo_n. New code should use 25200# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 25201as_echo='printf %s\n' 25202as_echo_n='printf %s' 25203 25204rm -f conf$$ conf$$.exe conf$$.file 25205if test -d conf$$.dir; then 25206 rm -f conf$$.dir/conf$$.file 25207else 25208 rm -f conf$$.dir 25209 mkdir conf$$.dir 2>/dev/null 25210fi 25211if (echo >conf$$.file) 2>/dev/null; then 25212 if ln -s conf$$.file conf$$ 2>/dev/null; then 25213 as_ln_s='ln -s' 25214 # ... but there are two gotchas: 25215 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 25216 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 25217 # In both cases, we have to default to `cp -pR'. 25218 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 25219 as_ln_s='cp -pR' 25220 elif ln conf$$.file conf$$ 2>/dev/null; then 25221 as_ln_s=ln 25222 else 25223 as_ln_s='cp -pR' 25224 fi 25225else 25226 as_ln_s='cp -pR' 25227fi 25228rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 25229rmdir conf$$.dir 2>/dev/null 25230 25231 25232# as_fn_mkdir_p 25233# ------------- 25234# Create "$as_dir" as a directory, including parents if necessary. 25235as_fn_mkdir_p () 25236{ 25237 25238 case $as_dir in #( 25239 -*) as_dir=./$as_dir;; 25240 esac 25241 test -d "$as_dir" || eval $as_mkdir_p || { 25242 as_dirs= 25243 while :; do 25244 case $as_dir in #( 25245 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 25246 *) as_qdir=$as_dir;; 25247 esac 25248 as_dirs="'$as_qdir' $as_dirs" 25249 as_dir=`$as_dirname -- "$as_dir" || 25250$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25251 X"$as_dir" : 'X\(//\)[^/]' \| \ 25252 X"$as_dir" : 'X\(//\)$' \| \ 25253 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 25254printf "%s\n" X"$as_dir" | 25255 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 25256 s//\1/ 25257 q 25258 } 25259 /^X\(\/\/\)[^/].*/{ 25260 s//\1/ 25261 q 25262 } 25263 /^X\(\/\/\)$/{ 25264 s//\1/ 25265 q 25266 } 25267 /^X\(\/\).*/{ 25268 s//\1/ 25269 q 25270 } 25271 s/.*/./; q'` 25272 test -d "$as_dir" && break 25273 done 25274 test -z "$as_dirs" || eval "mkdir $as_dirs" 25275 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 25276 25277 25278} # as_fn_mkdir_p 25279if mkdir -p . 2>/dev/null; then 25280 as_mkdir_p='mkdir -p "$as_dir"' 25281else 25282 test -d ./-p && rmdir ./-p 25283 as_mkdir_p=false 25284fi 25285 25286 25287# as_fn_executable_p FILE 25288# ----------------------- 25289# Test if FILE is an executable regular file. 25290as_fn_executable_p () 25291{ 25292 test -f "$1" && test -x "$1" 25293} # as_fn_executable_p 25294as_test_x='test -x' 25295as_executable_p=as_fn_executable_p 25296 25297# Sed expression to map a string onto a valid CPP name. 25298as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 25299 25300# Sed expression to map a string onto a valid variable name. 25301as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 25302 25303 25304exec 6>&1 25305## --------------------------------- ## 25306## Main body of "$CONFIG_LT" script. ## 25307## --------------------------------- ## 25308_ASEOF 25309test $as_write_fail = 0 && chmod +x "$CONFIG_LT" 25310 25311cat >>"$CONFIG_LT" <<\_LTEOF 25312lt_cl_silent=false 25313exec 5>>config.log 25314{ 25315 echo 25316 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 25317## Running $as_me. ## 25318_ASBOX 25319} >&5 25320 25321lt_cl_help="\ 25322'$as_me' creates a local libtool stub from the current configuration, 25323for use in further configure time tests before the real libtool is 25324generated. 25325 25326Usage: $0 [OPTIONS] 25327 25328 -h, --help print this help, then exit 25329 -V, --version print version number, then exit 25330 -q, --quiet do not print progress messages 25331 -d, --debug don't remove temporary files 25332 25333Report bugs to <bug-libtool@gnu.org>." 25334 25335lt_cl_version="\ 25336cdi config.lt 2.0.1 25337configured by $0, generated by GNU Autoconf 2.71. 25338 25339Copyright (C) 2011 Free Software Foundation, Inc. 25340This config.lt script is free software; the Free Software Foundation 25341gives unlimited permision to copy, distribute and modify it." 25342 25343while test 0 != $# 25344do 25345 case $1 in 25346 --version | --v* | -V ) 25347 echo "$lt_cl_version"; exit 0 ;; 25348 --help | --h* | -h ) 25349 echo "$lt_cl_help"; exit 0 ;; 25350 --debug | --d* | -d ) 25351 debug=: ;; 25352 --quiet | --q* | --silent | --s* | -q ) 25353 lt_cl_silent=: ;; 25354 25355 -*) as_fn_error $? "unrecognized option: $1 25356Try '$0 --help' for more information." "$LINENO" 5 ;; 25357 25358 *) as_fn_error $? "unrecognized argument: $1 25359Try '$0 --help' for more information." "$LINENO" 5 ;; 25360 esac 25361 shift 25362done 25363 25364if $lt_cl_silent; then 25365 exec 6>/dev/null 25366fi 25367_LTEOF 25368 25369cat >>"$CONFIG_LT" <<_LTEOF 25370 25371 25372# The HP-UX ksh and POSIX shell print the target directory to stdout 25373# if CDPATH is set. 25374(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 25375 25376sed_quote_subst='$sed_quote_subst' 25377double_quote_subst='$double_quote_subst' 25378delay_variable_subst='$delay_variable_subst' 25379macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 25380macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 25381pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 25382enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 25383enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 25384enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 25385shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 25386SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 25387ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 25388PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 25389host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 25390host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 25391host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 25392build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 25393build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 25394build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 25395SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 25396Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 25397GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 25398EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 25399FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 25400LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 25401NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 25402LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 25403max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 25404ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 25405exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 25406lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 25407lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 25408lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 25409lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 25410lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 25411reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 25412reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 25413OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 25414deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 25415file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 25416file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 25417want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 25418DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 25419sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 25420AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 25421AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 25422archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 25423STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 25424RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 25425old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 25426old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 25427old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 25428lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 25429CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 25430CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 25431compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 25432GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 25433lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 25434lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 25435lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 25436lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 25437lt_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"`' 25438lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 25439nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 25440lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 25441lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 25442objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 25443MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 25444lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 25445lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 25446lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 25447lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 25448lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 25449need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 25450MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 25451DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 25452NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 25453LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 25454OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 25455OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 25456libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 25457shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 25458extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 25459archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 25460enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 25461export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 25462whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 25463compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 25464old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 25465old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 25466archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 25467archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 25468module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 25469module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 25470with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 25471allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 25472no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 25473hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 25474hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 25475hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 25476hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 25477hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 25478hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 25479hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 25480inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 25481link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 25482always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 25483export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 25484exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 25485include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 25486prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 25487postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 25488file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 25489variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 25490need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 25491need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 25492version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 25493runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 25494shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 25495shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 25496libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 25497library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 25498soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 25499install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 25500postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 25501postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 25502finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 25503finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 25504hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 25505sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 25506configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 25507configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 25508hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 25509enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 25510enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 25511enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 25512old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 25513striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 25514compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 25515predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 25516postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 25517predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 25518postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 25519compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 25520LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 25521LD_F77='`$ECHO "$LD_F77" | $SED "$delay_single_quote_subst"`' 25522LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`' 25523reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 25524reload_flag_F77='`$ECHO "$reload_flag_F77" | $SED "$delay_single_quote_subst"`' 25525reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`' 25526reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 25527reload_cmds_F77='`$ECHO "$reload_cmds_F77" | $SED "$delay_single_quote_subst"`' 25528reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`' 25529old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 25530old_archive_cmds_F77='`$ECHO "$old_archive_cmds_F77" | $SED "$delay_single_quote_subst"`' 25531old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`' 25532compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 25533compiler_F77='`$ECHO "$compiler_F77" | $SED "$delay_single_quote_subst"`' 25534compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`' 25535GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 25536GCC_F77='`$ECHO "$GCC_F77" | $SED "$delay_single_quote_subst"`' 25537GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`' 25538lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 25539lt_prog_compiler_no_builtin_flag_F77='`$ECHO "$lt_prog_compiler_no_builtin_flag_F77" | $SED "$delay_single_quote_subst"`' 25540lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`' 25541lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 25542lt_prog_compiler_pic_F77='`$ECHO "$lt_prog_compiler_pic_F77" | $SED "$delay_single_quote_subst"`' 25543lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`' 25544lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 25545lt_prog_compiler_wl_F77='`$ECHO "$lt_prog_compiler_wl_F77" | $SED "$delay_single_quote_subst"`' 25546lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`' 25547lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 25548lt_prog_compiler_static_F77='`$ECHO "$lt_prog_compiler_static_F77" | $SED "$delay_single_quote_subst"`' 25549lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`' 25550lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 25551lt_cv_prog_compiler_c_o_F77='`$ECHO "$lt_cv_prog_compiler_c_o_F77" | $SED "$delay_single_quote_subst"`' 25552lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`' 25553archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 25554archive_cmds_need_lc_F77='`$ECHO "$archive_cmds_need_lc_F77" | $SED "$delay_single_quote_subst"`' 25555archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`' 25556enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 25557enable_shared_with_static_runtimes_F77='`$ECHO "$enable_shared_with_static_runtimes_F77" | $SED "$delay_single_quote_subst"`' 25558enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`' 25559export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 25560export_dynamic_flag_spec_F77='`$ECHO "$export_dynamic_flag_spec_F77" | $SED "$delay_single_quote_subst"`' 25561export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`' 25562whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 25563whole_archive_flag_spec_F77='`$ECHO "$whole_archive_flag_spec_F77" | $SED "$delay_single_quote_subst"`' 25564whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`' 25565compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 25566compiler_needs_object_F77='`$ECHO "$compiler_needs_object_F77" | $SED "$delay_single_quote_subst"`' 25567compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`' 25568old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 25569old_archive_from_new_cmds_F77='`$ECHO "$old_archive_from_new_cmds_F77" | $SED "$delay_single_quote_subst"`' 25570old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`' 25571old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 25572old_archive_from_expsyms_cmds_F77='`$ECHO "$old_archive_from_expsyms_cmds_F77" | $SED "$delay_single_quote_subst"`' 25573old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`' 25574archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 25575archive_cmds_F77='`$ECHO "$archive_cmds_F77" | $SED "$delay_single_quote_subst"`' 25576archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`' 25577archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 25578archive_expsym_cmds_F77='`$ECHO "$archive_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`' 25579archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`' 25580module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 25581module_cmds_F77='`$ECHO "$module_cmds_F77" | $SED "$delay_single_quote_subst"`' 25582module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`' 25583module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 25584module_expsym_cmds_F77='`$ECHO "$module_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`' 25585module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`' 25586with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 25587with_gnu_ld_F77='`$ECHO "$with_gnu_ld_F77" | $SED "$delay_single_quote_subst"`' 25588with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`' 25589allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 25590allow_undefined_flag_F77='`$ECHO "$allow_undefined_flag_F77" | $SED "$delay_single_quote_subst"`' 25591allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`' 25592no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 25593no_undefined_flag_F77='`$ECHO "$no_undefined_flag_F77" | $SED "$delay_single_quote_subst"`' 25594no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`' 25595hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 25596hardcode_libdir_flag_spec_F77='`$ECHO "$hardcode_libdir_flag_spec_F77" | $SED "$delay_single_quote_subst"`' 25597hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`' 25598hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 25599hardcode_libdir_separator_F77='`$ECHO "$hardcode_libdir_separator_F77" | $SED "$delay_single_quote_subst"`' 25600hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`' 25601hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 25602hardcode_direct_F77='`$ECHO "$hardcode_direct_F77" | $SED "$delay_single_quote_subst"`' 25603hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`' 25604hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 25605hardcode_direct_absolute_F77='`$ECHO "$hardcode_direct_absolute_F77" | $SED "$delay_single_quote_subst"`' 25606hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`' 25607hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 25608hardcode_minus_L_F77='`$ECHO "$hardcode_minus_L_F77" | $SED "$delay_single_quote_subst"`' 25609hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`' 25610hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 25611hardcode_shlibpath_var_F77='`$ECHO "$hardcode_shlibpath_var_F77" | $SED "$delay_single_quote_subst"`' 25612hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`' 25613hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 25614hardcode_automatic_F77='`$ECHO "$hardcode_automatic_F77" | $SED "$delay_single_quote_subst"`' 25615hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`' 25616inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 25617inherit_rpath_F77='`$ECHO "$inherit_rpath_F77" | $SED "$delay_single_quote_subst"`' 25618inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`' 25619link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 25620link_all_deplibs_F77='`$ECHO "$link_all_deplibs_F77" | $SED "$delay_single_quote_subst"`' 25621link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`' 25622always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 25623always_export_symbols_F77='`$ECHO "$always_export_symbols_F77" | $SED "$delay_single_quote_subst"`' 25624always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`' 25625export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 25626export_symbols_cmds_F77='`$ECHO "$export_symbols_cmds_F77" | $SED "$delay_single_quote_subst"`' 25627export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`' 25628exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 25629exclude_expsyms_F77='`$ECHO "$exclude_expsyms_F77" | $SED "$delay_single_quote_subst"`' 25630exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`' 25631include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 25632include_expsyms_F77='`$ECHO "$include_expsyms_F77" | $SED "$delay_single_quote_subst"`' 25633include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`' 25634prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 25635prelink_cmds_F77='`$ECHO "$prelink_cmds_F77" | $SED "$delay_single_quote_subst"`' 25636prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`' 25637postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 25638postlink_cmds_F77='`$ECHO "$postlink_cmds_F77" | $SED "$delay_single_quote_subst"`' 25639postlink_cmds_FC='`$ECHO "$postlink_cmds_FC" | $SED "$delay_single_quote_subst"`' 25640file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 25641file_list_spec_F77='`$ECHO "$file_list_spec_F77" | $SED "$delay_single_quote_subst"`' 25642file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`' 25643hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 25644hardcode_action_F77='`$ECHO "$hardcode_action_F77" | $SED "$delay_single_quote_subst"`' 25645hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`' 25646compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 25647compiler_lib_search_dirs_F77='`$ECHO "$compiler_lib_search_dirs_F77" | $SED "$delay_single_quote_subst"`' 25648compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`' 25649predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 25650predep_objects_F77='`$ECHO "$predep_objects_F77" | $SED "$delay_single_quote_subst"`' 25651predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`' 25652postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 25653postdep_objects_F77='`$ECHO "$postdep_objects_F77" | $SED "$delay_single_quote_subst"`' 25654postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`' 25655predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 25656predeps_F77='`$ECHO "$predeps_F77" | $SED "$delay_single_quote_subst"`' 25657predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`' 25658postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 25659postdeps_F77='`$ECHO "$postdeps_F77" | $SED "$delay_single_quote_subst"`' 25660postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`' 25661compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 25662compiler_lib_search_path_F77='`$ECHO "$compiler_lib_search_path_F77" | $SED "$delay_single_quote_subst"`' 25663compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`' 25664 25665LTCC='$LTCC' 25666LTCFLAGS='$LTCFLAGS' 25667compiler='$compiler_DEFAULT' 25668 25669# A function that is used when there is no print builtin or printf. 25670func_fallback_echo () 25671{ 25672 eval 'cat <<_LTECHO_EOF 25673\$1 25674_LTECHO_EOF' 25675} 25676 25677# Quote evaled strings. 25678for var in SHELL \ 25679ECHO \ 25680PATH_SEPARATOR \ 25681SED \ 25682GREP \ 25683EGREP \ 25684FGREP \ 25685LD \ 25686NM \ 25687LN_S \ 25688lt_SP2NL \ 25689lt_NL2SP \ 25690reload_flag \ 25691OBJDUMP \ 25692deplibs_check_method \ 25693file_magic_cmd \ 25694file_magic_glob \ 25695want_nocaseglob \ 25696DLLTOOL \ 25697sharedlib_from_linklib_cmd \ 25698AR \ 25699AR_FLAGS \ 25700archiver_list_spec \ 25701STRIP \ 25702RANLIB \ 25703CC \ 25704CFLAGS \ 25705compiler \ 25706lt_cv_sys_global_symbol_pipe \ 25707lt_cv_sys_global_symbol_to_cdecl \ 25708lt_cv_sys_global_symbol_to_import \ 25709lt_cv_sys_global_symbol_to_c_name_address \ 25710lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 25711lt_cv_nm_interface \ 25712nm_file_list_spec \ 25713lt_cv_truncate_bin \ 25714lt_prog_compiler_no_builtin_flag \ 25715lt_prog_compiler_pic \ 25716lt_prog_compiler_wl \ 25717lt_prog_compiler_static \ 25718lt_cv_prog_compiler_c_o \ 25719need_locks \ 25720MANIFEST_TOOL \ 25721DSYMUTIL \ 25722NMEDIT \ 25723LIPO \ 25724OTOOL \ 25725OTOOL64 \ 25726shrext_cmds \ 25727export_dynamic_flag_spec \ 25728whole_archive_flag_spec \ 25729compiler_needs_object \ 25730with_gnu_ld \ 25731allow_undefined_flag \ 25732no_undefined_flag \ 25733hardcode_libdir_flag_spec \ 25734hardcode_libdir_separator \ 25735exclude_expsyms \ 25736include_expsyms \ 25737file_list_spec \ 25738variables_saved_for_relink \ 25739libname_spec \ 25740library_names_spec \ 25741soname_spec \ 25742install_override_mode \ 25743finish_eval \ 25744old_striplib \ 25745striplib \ 25746compiler_lib_search_dirs \ 25747predep_objects \ 25748postdep_objects \ 25749predeps \ 25750postdeps \ 25751compiler_lib_search_path \ 25752LD_CXX \ 25753LD_F77 \ 25754LD_FC \ 25755reload_flag_CXX \ 25756reload_flag_F77 \ 25757reload_flag_FC \ 25758compiler_CXX \ 25759compiler_F77 \ 25760compiler_FC \ 25761lt_prog_compiler_no_builtin_flag_CXX \ 25762lt_prog_compiler_no_builtin_flag_F77 \ 25763lt_prog_compiler_no_builtin_flag_FC \ 25764lt_prog_compiler_pic_CXX \ 25765lt_prog_compiler_pic_F77 \ 25766lt_prog_compiler_pic_FC \ 25767lt_prog_compiler_wl_CXX \ 25768lt_prog_compiler_wl_F77 \ 25769lt_prog_compiler_wl_FC \ 25770lt_prog_compiler_static_CXX \ 25771lt_prog_compiler_static_F77 \ 25772lt_prog_compiler_static_FC \ 25773lt_cv_prog_compiler_c_o_CXX \ 25774lt_cv_prog_compiler_c_o_F77 \ 25775lt_cv_prog_compiler_c_o_FC \ 25776export_dynamic_flag_spec_CXX \ 25777export_dynamic_flag_spec_F77 \ 25778export_dynamic_flag_spec_FC \ 25779whole_archive_flag_spec_CXX \ 25780whole_archive_flag_spec_F77 \ 25781whole_archive_flag_spec_FC \ 25782compiler_needs_object_CXX \ 25783compiler_needs_object_F77 \ 25784compiler_needs_object_FC \ 25785with_gnu_ld_CXX \ 25786with_gnu_ld_F77 \ 25787with_gnu_ld_FC \ 25788allow_undefined_flag_CXX \ 25789allow_undefined_flag_F77 \ 25790allow_undefined_flag_FC \ 25791no_undefined_flag_CXX \ 25792no_undefined_flag_F77 \ 25793no_undefined_flag_FC \ 25794hardcode_libdir_flag_spec_CXX \ 25795hardcode_libdir_flag_spec_F77 \ 25796hardcode_libdir_flag_spec_FC \ 25797hardcode_libdir_separator_CXX \ 25798hardcode_libdir_separator_F77 \ 25799hardcode_libdir_separator_FC \ 25800exclude_expsyms_CXX \ 25801exclude_expsyms_F77 \ 25802exclude_expsyms_FC \ 25803include_expsyms_CXX \ 25804include_expsyms_F77 \ 25805include_expsyms_FC \ 25806file_list_spec_CXX \ 25807file_list_spec_F77 \ 25808file_list_spec_FC \ 25809compiler_lib_search_dirs_CXX \ 25810compiler_lib_search_dirs_F77 \ 25811compiler_lib_search_dirs_FC \ 25812predep_objects_CXX \ 25813predep_objects_F77 \ 25814predep_objects_FC \ 25815postdep_objects_CXX \ 25816postdep_objects_F77 \ 25817postdep_objects_FC \ 25818predeps_CXX \ 25819predeps_F77 \ 25820predeps_FC \ 25821postdeps_CXX \ 25822postdeps_F77 \ 25823postdeps_FC \ 25824compiler_lib_search_path_CXX \ 25825compiler_lib_search_path_F77 \ 25826compiler_lib_search_path_FC; do 25827 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 25828 *[\\\\\\\`\\"\\\$]*) 25829 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 25830 ;; 25831 *) 25832 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 25833 ;; 25834 esac 25835done 25836 25837# Double-quote double-evaled strings. 25838for var in reload_cmds \ 25839old_postinstall_cmds \ 25840old_postuninstall_cmds \ 25841old_archive_cmds \ 25842extract_expsyms_cmds \ 25843old_archive_from_new_cmds \ 25844old_archive_from_expsyms_cmds \ 25845archive_cmds \ 25846archive_expsym_cmds \ 25847module_cmds \ 25848module_expsym_cmds \ 25849export_symbols_cmds \ 25850prelink_cmds \ 25851postlink_cmds \ 25852postinstall_cmds \ 25853postuninstall_cmds \ 25854finish_cmds \ 25855sys_lib_search_path_spec \ 25856configure_time_dlsearch_path \ 25857configure_time_lt_sys_library_path \ 25858reload_cmds_CXX \ 25859reload_cmds_F77 \ 25860reload_cmds_FC \ 25861old_archive_cmds_CXX \ 25862old_archive_cmds_F77 \ 25863old_archive_cmds_FC \ 25864old_archive_from_new_cmds_CXX \ 25865old_archive_from_new_cmds_F77 \ 25866old_archive_from_new_cmds_FC \ 25867old_archive_from_expsyms_cmds_CXX \ 25868old_archive_from_expsyms_cmds_F77 \ 25869old_archive_from_expsyms_cmds_FC \ 25870archive_cmds_CXX \ 25871archive_cmds_F77 \ 25872archive_cmds_FC \ 25873archive_expsym_cmds_CXX \ 25874archive_expsym_cmds_F77 \ 25875archive_expsym_cmds_FC \ 25876module_cmds_CXX \ 25877module_cmds_F77 \ 25878module_cmds_FC \ 25879module_expsym_cmds_CXX \ 25880module_expsym_cmds_F77 \ 25881module_expsym_cmds_FC \ 25882export_symbols_cmds_CXX \ 25883export_symbols_cmds_F77 \ 25884export_symbols_cmds_FC \ 25885prelink_cmds_CXX \ 25886prelink_cmds_F77 \ 25887prelink_cmds_FC \ 25888postlink_cmds_CXX \ 25889postlink_cmds_F77 \ 25890postlink_cmds_FC; do 25891 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 25892 *[\\\\\\\`\\"\\\$]*) 25893 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 25894 ;; 25895 *) 25896 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 25897 ;; 25898 esac 25899done 25900 25901ac_aux_dir='$ac_aux_dir' 25902 25903# See if we are running on zsh, and set the options that allow our 25904# commands through without removal of \ escapes INIT. 25905if test -n "\${ZSH_VERSION+set}"; then 25906 setopt NO_GLOB_SUBST 25907fi 25908 25909 25910 PACKAGE='$PACKAGE' 25911 VERSION='$VERSION' 25912 RM='$RM' 25913 ofile='$ofile' 25914 25915 25916 25917 25918 25919 25920 25921 25922 25923_LTEOF 25924 25925cat >>"$CONFIG_LT" <<\_LTEOF 25926{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5 25927printf "%s\n" "$as_me: creating $ofile" >&6;} 25928 25929 25930 # See if we are running on zsh, and set the options that allow our 25931 # commands through without removal of \ escapes. 25932 if test -n "${ZSH_VERSION+set}"; then 25933 setopt NO_GLOB_SUBST 25934 fi 25935 25936 cfgfile=${ofile}T 25937 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 25938 $RM "$cfgfile" 25939 25940 cat <<_LT_EOF >> "$cfgfile" 25941#! $SHELL 25942# Generated automatically by $as_me ($PACKAGE) $VERSION 25943# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 25944# NOTE: Changes made to this file will be lost: look at ltmain.sh. 25945 25946# Provide generalized library-building support services. 25947# Written by Gordon Matzigkeit, 1996 25948 25949# Copyright (C) 2014 Free Software Foundation, Inc. 25950# This is free software; see the source for copying conditions. There is NO 25951# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 25952 25953# GNU Libtool is free software; you can redistribute it and/or modify 25954# it under the terms of the GNU General Public License as published by 25955# the Free Software Foundation; either version 2 of of the License, or 25956# (at your option) any later version. 25957# 25958# As a special exception to the GNU General Public License, if you 25959# distribute this file as part of a program or library that is built 25960# using GNU Libtool, you may include this file under the same 25961# distribution terms that you use for the rest of that program. 25962# 25963# GNU Libtool is distributed in the hope that it will be useful, but 25964# WITHOUT ANY WARRANTY; without even the implied warranty of 25965# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25966# GNU General Public License for more details. 25967# 25968# You should have received a copy of the GNU General Public License 25969# along with this program. If not, see <http://www.gnu.org/licenses/>. 25970 25971 25972# The names of the tagged configurations supported by this script. 25973available_tags='CXX F77 FC ' 25974 25975# Configured defaults for sys_lib_dlsearch_path munging. 25976: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 25977 25978# ### BEGIN LIBTOOL CONFIG 25979 25980# Which release of libtool.m4 was used? 25981macro_version=$macro_version 25982macro_revision=$macro_revision 25983 25984# What type of objects to build. 25985pic_mode=$pic_mode 25986 25987# Whether or not to build shared libraries. 25988build_libtool_libs=$enable_shared 25989 25990# Whether or not to build static libraries. 25991build_old_libs=$enable_static 25992 25993# Whether or not to optimize for fast installation. 25994fast_install=$enable_fast_install 25995 25996# Shared archive member basename,for filename based shared library versioning on AIX. 25997shared_archive_member_spec=$shared_archive_member_spec 25998 25999# Shell to use when invoking shell scripts. 26000SHELL=$lt_SHELL 26001 26002# An echo program that protects backslashes. 26003ECHO=$lt_ECHO 26004 26005# The PATH separator for the build system. 26006PATH_SEPARATOR=$lt_PATH_SEPARATOR 26007 26008# The host system. 26009host_alias=$host_alias 26010host=$host 26011host_os=$host_os 26012 26013# The build system. 26014build_alias=$build_alias 26015build=$build 26016build_os=$build_os 26017 26018# A sed program that does not truncate output. 26019SED=$lt_SED 26020 26021# Sed that helps us avoid accidentally triggering echo(1) options like -n. 26022Xsed="\$SED -e 1s/^X//" 26023 26024# A grep program that handles long lines. 26025GREP=$lt_GREP 26026 26027# An ERE matcher. 26028EGREP=$lt_EGREP 26029 26030# A literal string matcher. 26031FGREP=$lt_FGREP 26032 26033# A BSD- or MS-compatible name lister. 26034NM=$lt_NM 26035 26036# Whether we need soft or hard links. 26037LN_S=$lt_LN_S 26038 26039# What is the maximum length of a command? 26040max_cmd_len=$max_cmd_len 26041 26042# Object file suffix (normally "o"). 26043objext=$ac_objext 26044 26045# Executable file suffix (normally ""). 26046exeext=$exeext 26047 26048# whether the shell understands "unset". 26049lt_unset=$lt_unset 26050 26051# turn spaces into newlines. 26052SP2NL=$lt_lt_SP2NL 26053 26054# turn newlines into spaces. 26055NL2SP=$lt_lt_NL2SP 26056 26057# convert \$build file names to \$host format. 26058to_host_file_cmd=$lt_cv_to_host_file_cmd 26059 26060# convert \$build files to toolchain format. 26061to_tool_file_cmd=$lt_cv_to_tool_file_cmd 26062 26063# An object symbol dumper. 26064OBJDUMP=$lt_OBJDUMP 26065 26066# Method to check whether dependent libraries are shared objects. 26067deplibs_check_method=$lt_deplibs_check_method 26068 26069# Command to use when deplibs_check_method = "file_magic". 26070file_magic_cmd=$lt_file_magic_cmd 26071 26072# How to find potential files when deplibs_check_method = "file_magic". 26073file_magic_glob=$lt_file_magic_glob 26074 26075# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 26076want_nocaseglob=$lt_want_nocaseglob 26077 26078# DLL creation program. 26079DLLTOOL=$lt_DLLTOOL 26080 26081# Command to associate shared and link libraries. 26082sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 26083 26084# The archiver. 26085AR=$lt_AR 26086 26087# Flags to create an archive. 26088AR_FLAGS=$lt_AR_FLAGS 26089 26090# How to feed a file listing to the archiver. 26091archiver_list_spec=$lt_archiver_list_spec 26092 26093# A symbol stripping program. 26094STRIP=$lt_STRIP 26095 26096# Commands used to install an old-style archive. 26097RANLIB=$lt_RANLIB 26098old_postinstall_cmds=$lt_old_postinstall_cmds 26099old_postuninstall_cmds=$lt_old_postuninstall_cmds 26100 26101# Whether to use a lock for old archive extraction. 26102lock_old_archive_extraction=$lock_old_archive_extraction 26103 26104# A C compiler. 26105LTCC=$lt_CC 26106 26107# LTCC compiler flags. 26108LTCFLAGS=$lt_CFLAGS 26109 26110# Take the output of nm and produce a listing of raw symbols and C names. 26111global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 26112 26113# Transform the output of nm in a proper C declaration. 26114global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 26115 26116# Transform the output of nm into a list of symbols to manually relocate. 26117global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 26118 26119# Transform the output of nm in a C name address pair. 26120global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 26121 26122# Transform the output of nm in a C name address pair when lib prefix is needed. 26123global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 26124 26125# The name lister interface. 26126nm_interface=$lt_lt_cv_nm_interface 26127 26128# Specify filename containing input files for \$NM. 26129nm_file_list_spec=$lt_nm_file_list_spec 26130 26131# The root where to search for dependent libraries,and where our libraries should be installed. 26132lt_sysroot=$lt_sysroot 26133 26134# Command to truncate a binary pipe. 26135lt_truncate_bin=$lt_lt_cv_truncate_bin 26136 26137# The name of the directory that contains temporary libtool files. 26138objdir=$objdir 26139 26140# Used to examine libraries when file_magic_cmd begins with "file". 26141MAGIC_CMD=$MAGIC_CMD 26142 26143# Must we lock files when doing compilation? 26144need_locks=$lt_need_locks 26145 26146# Manifest tool. 26147MANIFEST_TOOL=$lt_MANIFEST_TOOL 26148 26149# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 26150DSYMUTIL=$lt_DSYMUTIL 26151 26152# Tool to change global to local symbols on Mac OS X. 26153NMEDIT=$lt_NMEDIT 26154 26155# Tool to manipulate fat objects and archives on Mac OS X. 26156LIPO=$lt_LIPO 26157 26158# ldd/readelf like tool for Mach-O binaries on Mac OS X. 26159OTOOL=$lt_OTOOL 26160 26161# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 26162OTOOL64=$lt_OTOOL64 26163 26164# Old archive suffix (normally "a"). 26165libext=$libext 26166 26167# Shared library suffix (normally ".so"). 26168shrext_cmds=$lt_shrext_cmds 26169 26170# The commands to extract the exported symbol list from a shared archive. 26171extract_expsyms_cmds=$lt_extract_expsyms_cmds 26172 26173# Variables whose values should be saved in libtool wrapper scripts and 26174# restored at link time. 26175variables_saved_for_relink=$lt_variables_saved_for_relink 26176 26177# Do we need the "lib" prefix for modules? 26178need_lib_prefix=$need_lib_prefix 26179 26180# Do we need a version for libraries? 26181need_version=$need_version 26182 26183# Library versioning type. 26184version_type=$version_type 26185 26186# Shared library runtime path variable. 26187runpath_var=$runpath_var 26188 26189# Shared library path variable. 26190shlibpath_var=$shlibpath_var 26191 26192# Is shlibpath searched before the hard-coded library search path? 26193shlibpath_overrides_runpath=$shlibpath_overrides_runpath 26194 26195# Format of library name prefix. 26196libname_spec=$lt_libname_spec 26197 26198# List of archive names. First name is the real one, the rest are links. 26199# The last name is the one that the linker finds with -lNAME 26200library_names_spec=$lt_library_names_spec 26201 26202# The coded name of the library, if different from the real name. 26203soname_spec=$lt_soname_spec 26204 26205# Permission mode override for installation of shared libraries. 26206install_override_mode=$lt_install_override_mode 26207 26208# Command to use after installation of a shared archive. 26209postinstall_cmds=$lt_postinstall_cmds 26210 26211# Command to use after uninstallation of a shared archive. 26212postuninstall_cmds=$lt_postuninstall_cmds 26213 26214# Commands used to finish a libtool library installation in a directory. 26215finish_cmds=$lt_finish_cmds 26216 26217# As "finish_cmds", except a single script fragment to be evaled but 26218# not shown. 26219finish_eval=$lt_finish_eval 26220 26221# Whether we should hardcode library paths into libraries. 26222hardcode_into_libs=$hardcode_into_libs 26223 26224# Compile-time system search path for libraries. 26225sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 26226 26227# Detected run-time system search path for libraries. 26228sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 26229 26230# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 26231configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 26232 26233# Whether dlopen is supported. 26234dlopen_support=$enable_dlopen 26235 26236# Whether dlopen of programs is supported. 26237dlopen_self=$enable_dlopen_self 26238 26239# Whether dlopen of statically linked programs is supported. 26240dlopen_self_static=$enable_dlopen_self_static 26241 26242# Commands to strip libraries. 26243old_striplib=$lt_old_striplib 26244striplib=$lt_striplib 26245 26246 26247# The linker used to build libraries. 26248LD=$lt_LD 26249 26250# How to create reloadable object files. 26251reload_flag=$lt_reload_flag 26252reload_cmds=$lt_reload_cmds 26253 26254# Commands used to build an old-style archive. 26255old_archive_cmds=$lt_old_archive_cmds 26256 26257# A language specific compiler. 26258CC=$lt_compiler 26259 26260# Is the compiler the GNU compiler? 26261with_gcc=$GCC 26262 26263# Compiler flag to turn off builtin functions. 26264no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 26265 26266# Additional compiler flags for building library objects. 26267pic_flag=$lt_lt_prog_compiler_pic 26268 26269# How to pass a linker flag through the compiler. 26270wl=$lt_lt_prog_compiler_wl 26271 26272# Compiler flag to prevent dynamic linking. 26273link_static_flag=$lt_lt_prog_compiler_static 26274 26275# Does compiler simultaneously support -c and -o options? 26276compiler_c_o=$lt_lt_cv_prog_compiler_c_o 26277 26278# Whether or not to add -lc for building shared libraries. 26279build_libtool_need_lc=$archive_cmds_need_lc 26280 26281# Whether or not to disallow shared libs when runtime libs are static. 26282allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 26283 26284# Compiler flag to allow reflexive dlopens. 26285export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 26286 26287# Compiler flag to generate shared objects directly from archives. 26288whole_archive_flag_spec=$lt_whole_archive_flag_spec 26289 26290# Whether the compiler copes with passing no objects directly. 26291compiler_needs_object=$lt_compiler_needs_object 26292 26293# Create an old-style archive from a shared archive. 26294old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 26295 26296# Create a temporary old-style archive to link instead of a shared archive. 26297old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 26298 26299# Commands used to build a shared archive. 26300archive_cmds=$lt_archive_cmds 26301archive_expsym_cmds=$lt_archive_expsym_cmds 26302 26303# Commands used to build a loadable module if different from building 26304# a shared archive. 26305module_cmds=$lt_module_cmds 26306module_expsym_cmds=$lt_module_expsym_cmds 26307 26308# Whether we are building with GNU ld or not. 26309with_gnu_ld=$lt_with_gnu_ld 26310 26311# Flag that allows shared libraries with undefined symbols to be built. 26312allow_undefined_flag=$lt_allow_undefined_flag 26313 26314# Flag that enforces no undefined symbols. 26315no_undefined_flag=$lt_no_undefined_flag 26316 26317# Flag to hardcode \$libdir into a binary during linking. 26318# This must work even if \$libdir does not exist 26319hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 26320 26321# Whether we need a single "-rpath" flag with a separated argument. 26322hardcode_libdir_separator=$lt_hardcode_libdir_separator 26323 26324# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 26325# DIR into the resulting binary. 26326hardcode_direct=$hardcode_direct 26327 26328# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 26329# DIR into the resulting binary and the resulting library dependency is 26330# "absolute",i.e impossible to change by setting \$shlibpath_var if the 26331# library is relocated. 26332hardcode_direct_absolute=$hardcode_direct_absolute 26333 26334# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 26335# into the resulting binary. 26336hardcode_minus_L=$hardcode_minus_L 26337 26338# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 26339# into the resulting binary. 26340hardcode_shlibpath_var=$hardcode_shlibpath_var 26341 26342# Set to "yes" if building a shared library automatically hardcodes DIR 26343# into the library and all subsequent libraries and executables linked 26344# against it. 26345hardcode_automatic=$hardcode_automatic 26346 26347# Set to yes if linker adds runtime paths of dependent libraries 26348# to runtime path list. 26349inherit_rpath=$inherit_rpath 26350 26351# Whether libtool must link a program against all its dependency libraries. 26352link_all_deplibs=$link_all_deplibs 26353 26354# Set to "yes" if exported symbols are required. 26355always_export_symbols=$always_export_symbols 26356 26357# The commands to list exported symbols. 26358export_symbols_cmds=$lt_export_symbols_cmds 26359 26360# Symbols that should not be listed in the preloaded symbols. 26361exclude_expsyms=$lt_exclude_expsyms 26362 26363# Symbols that must always be exported. 26364include_expsyms=$lt_include_expsyms 26365 26366# Commands necessary for linking programs (against libraries) with templates. 26367prelink_cmds=$lt_prelink_cmds 26368 26369# Commands necessary for finishing linking programs. 26370postlink_cmds=$lt_postlink_cmds 26371 26372# Specify filename containing input files. 26373file_list_spec=$lt_file_list_spec 26374 26375# How to hardcode a shared library path into an executable. 26376hardcode_action=$hardcode_action 26377 26378# The directories searched by this compiler when creating a shared library. 26379compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 26380 26381# Dependencies to place before and after the objects being linked to 26382# create a shared library. 26383predep_objects=$lt_predep_objects 26384postdep_objects=$lt_postdep_objects 26385predeps=$lt_predeps 26386postdeps=$lt_postdeps 26387 26388# The library search path used internally by the compiler when linking 26389# a shared library. 26390compiler_lib_search_path=$lt_compiler_lib_search_path 26391 26392# ### END LIBTOOL CONFIG 26393 26394_LT_EOF 26395 26396 cat <<'_LT_EOF' >> "$cfgfile" 26397 26398# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 26399 26400# func_munge_path_list VARIABLE PATH 26401# ----------------------------------- 26402# VARIABLE is name of variable containing _space_ separated list of 26403# directories to be munged by the contents of PATH, which is string 26404# having a format: 26405# "DIR[:DIR]:" 26406# string "DIR[ DIR]" will be prepended to VARIABLE 26407# ":DIR[:DIR]" 26408# string "DIR[ DIR]" will be appended to VARIABLE 26409# "DIRP[:DIRP]::[DIRA:]DIRA" 26410# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 26411# "DIRA[ DIRA]" will be appended to VARIABLE 26412# "DIR[:DIR]" 26413# VARIABLE will be replaced by "DIR[ DIR]" 26414func_munge_path_list () 26415{ 26416 case x$2 in 26417 x) 26418 ;; 26419 *:) 26420 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 26421 ;; 26422 x:*) 26423 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 26424 ;; 26425 *::*) 26426 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 26427 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 26428 ;; 26429 *) 26430 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 26431 ;; 26432 esac 26433} 26434 26435 26436# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 26437func_cc_basename () 26438{ 26439 for cc_temp in $*""; do 26440 case $cc_temp in 26441 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 26442 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 26443 \-*) ;; 26444 *) break;; 26445 esac 26446 done 26447 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 26448} 26449 26450 26451# ### END FUNCTIONS SHARED WITH CONFIGURE 26452 26453_LT_EOF 26454 26455 case $host_os in 26456 aix3*) 26457 cat <<\_LT_EOF >> "$cfgfile" 26458# AIX sometimes has problems with the GCC collect2 program. For some 26459# reason, if we set the COLLECT_NAMES environment variable, the problems 26460# vanish in a puff of smoke. 26461if test set != "${COLLECT_NAMES+set}"; then 26462 COLLECT_NAMES= 26463 export COLLECT_NAMES 26464fi 26465_LT_EOF 26466 ;; 26467 esac 26468 26469 26470 26471ltmain=$ac_aux_dir/ltmain.sh 26472 26473 26474 # We use sed instead of cat because bash on DJGPP gets confused if 26475 # if finds mixed CR/LF and LF-only lines. Since sed operates in 26476 # text mode, it properly converts lines to CR/LF. This bash problem 26477 # is reportedly fixed, but why not run on old versions too? 26478 sed '$q' "$ltmain" >> "$cfgfile" \ 26479 || (rm -f "$cfgfile"; exit 1) 26480 26481 mv -f "$cfgfile" "$ofile" || 26482 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 26483 chmod +x "$ofile" 26484 26485 26486 cat <<_LT_EOF >> "$ofile" 26487 26488# ### BEGIN LIBTOOL TAG CONFIG: CXX 26489 26490# The linker used to build libraries. 26491LD=$lt_LD_CXX 26492 26493# How to create reloadable object files. 26494reload_flag=$lt_reload_flag_CXX 26495reload_cmds=$lt_reload_cmds_CXX 26496 26497# Commands used to build an old-style archive. 26498old_archive_cmds=$lt_old_archive_cmds_CXX 26499 26500# A language specific compiler. 26501CC=$lt_compiler_CXX 26502 26503# Is the compiler the GNU compiler? 26504with_gcc=$GCC_CXX 26505 26506# Compiler flag to turn off builtin functions. 26507no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 26508 26509# Additional compiler flags for building library objects. 26510pic_flag=$lt_lt_prog_compiler_pic_CXX 26511 26512# How to pass a linker flag through the compiler. 26513wl=$lt_lt_prog_compiler_wl_CXX 26514 26515# Compiler flag to prevent dynamic linking. 26516link_static_flag=$lt_lt_prog_compiler_static_CXX 26517 26518# Does compiler simultaneously support -c and -o options? 26519compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 26520 26521# Whether or not to add -lc for building shared libraries. 26522build_libtool_need_lc=$archive_cmds_need_lc_CXX 26523 26524# Whether or not to disallow shared libs when runtime libs are static. 26525allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 26526 26527# Compiler flag to allow reflexive dlopens. 26528export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 26529 26530# Compiler flag to generate shared objects directly from archives. 26531whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 26532 26533# Whether the compiler copes with passing no objects directly. 26534compiler_needs_object=$lt_compiler_needs_object_CXX 26535 26536# Create an old-style archive from a shared archive. 26537old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 26538 26539# Create a temporary old-style archive to link instead of a shared archive. 26540old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 26541 26542# Commands used to build a shared archive. 26543archive_cmds=$lt_archive_cmds_CXX 26544archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 26545 26546# Commands used to build a loadable module if different from building 26547# a shared archive. 26548module_cmds=$lt_module_cmds_CXX 26549module_expsym_cmds=$lt_module_expsym_cmds_CXX 26550 26551# Whether we are building with GNU ld or not. 26552with_gnu_ld=$lt_with_gnu_ld_CXX 26553 26554# Flag that allows shared libraries with undefined symbols to be built. 26555allow_undefined_flag=$lt_allow_undefined_flag_CXX 26556 26557# Flag that enforces no undefined symbols. 26558no_undefined_flag=$lt_no_undefined_flag_CXX 26559 26560# Flag to hardcode \$libdir into a binary during linking. 26561# This must work even if \$libdir does not exist 26562hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 26563 26564# Whether we need a single "-rpath" flag with a separated argument. 26565hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 26566 26567# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 26568# DIR into the resulting binary. 26569hardcode_direct=$hardcode_direct_CXX 26570 26571# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 26572# DIR into the resulting binary and the resulting library dependency is 26573# "absolute",i.e impossible to change by setting \$shlibpath_var if the 26574# library is relocated. 26575hardcode_direct_absolute=$hardcode_direct_absolute_CXX 26576 26577# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 26578# into the resulting binary. 26579hardcode_minus_L=$hardcode_minus_L_CXX 26580 26581# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 26582# into the resulting binary. 26583hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 26584 26585# Set to "yes" if building a shared library automatically hardcodes DIR 26586# into the library and all subsequent libraries and executables linked 26587# against it. 26588hardcode_automatic=$hardcode_automatic_CXX 26589 26590# Set to yes if linker adds runtime paths of dependent libraries 26591# to runtime path list. 26592inherit_rpath=$inherit_rpath_CXX 26593 26594# Whether libtool must link a program against all its dependency libraries. 26595link_all_deplibs=$link_all_deplibs_CXX 26596 26597# Set to "yes" if exported symbols are required. 26598always_export_symbols=$always_export_symbols_CXX 26599 26600# The commands to list exported symbols. 26601export_symbols_cmds=$lt_export_symbols_cmds_CXX 26602 26603# Symbols that should not be listed in the preloaded symbols. 26604exclude_expsyms=$lt_exclude_expsyms_CXX 26605 26606# Symbols that must always be exported. 26607include_expsyms=$lt_include_expsyms_CXX 26608 26609# Commands necessary for linking programs (against libraries) with templates. 26610prelink_cmds=$lt_prelink_cmds_CXX 26611 26612# Commands necessary for finishing linking programs. 26613postlink_cmds=$lt_postlink_cmds_CXX 26614 26615# Specify filename containing input files. 26616file_list_spec=$lt_file_list_spec_CXX 26617 26618# How to hardcode a shared library path into an executable. 26619hardcode_action=$hardcode_action_CXX 26620 26621# The directories searched by this compiler when creating a shared library. 26622compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 26623 26624# Dependencies to place before and after the objects being linked to 26625# create a shared library. 26626predep_objects=$lt_predep_objects_CXX 26627postdep_objects=$lt_postdep_objects_CXX 26628predeps=$lt_predeps_CXX 26629postdeps=$lt_postdeps_CXX 26630 26631# The library search path used internally by the compiler when linking 26632# a shared library. 26633compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 26634 26635# ### END LIBTOOL TAG CONFIG: CXX 26636_LT_EOF 26637 26638 26639 cat <<_LT_EOF >> "$ofile" 26640 26641# ### BEGIN LIBTOOL TAG CONFIG: F77 26642 26643# The linker used to build libraries. 26644LD=$lt_LD_F77 26645 26646# How to create reloadable object files. 26647reload_flag=$lt_reload_flag_F77 26648reload_cmds=$lt_reload_cmds_F77 26649 26650# Commands used to build an old-style archive. 26651old_archive_cmds=$lt_old_archive_cmds_F77 26652 26653# A language specific compiler. 26654CC=$lt_compiler_F77 26655 26656# Is the compiler the GNU compiler? 26657with_gcc=$GCC_F77 26658 26659# Compiler flag to turn off builtin functions. 26660no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 26661 26662# Additional compiler flags for building library objects. 26663pic_flag=$lt_lt_prog_compiler_pic_F77 26664 26665# How to pass a linker flag through the compiler. 26666wl=$lt_lt_prog_compiler_wl_F77 26667 26668# Compiler flag to prevent dynamic linking. 26669link_static_flag=$lt_lt_prog_compiler_static_F77 26670 26671# Does compiler simultaneously support -c and -o options? 26672compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 26673 26674# Whether or not to add -lc for building shared libraries. 26675build_libtool_need_lc=$archive_cmds_need_lc_F77 26676 26677# Whether or not to disallow shared libs when runtime libs are static. 26678allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 26679 26680# Compiler flag to allow reflexive dlopens. 26681export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 26682 26683# Compiler flag to generate shared objects directly from archives. 26684whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 26685 26686# Whether the compiler copes with passing no objects directly. 26687compiler_needs_object=$lt_compiler_needs_object_F77 26688 26689# Create an old-style archive from a shared archive. 26690old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 26691 26692# Create a temporary old-style archive to link instead of a shared archive. 26693old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 26694 26695# Commands used to build a shared archive. 26696archive_cmds=$lt_archive_cmds_F77 26697archive_expsym_cmds=$lt_archive_expsym_cmds_F77 26698 26699# Commands used to build a loadable module if different from building 26700# a shared archive. 26701module_cmds=$lt_module_cmds_F77 26702module_expsym_cmds=$lt_module_expsym_cmds_F77 26703 26704# Whether we are building with GNU ld or not. 26705with_gnu_ld=$lt_with_gnu_ld_F77 26706 26707# Flag that allows shared libraries with undefined symbols to be built. 26708allow_undefined_flag=$lt_allow_undefined_flag_F77 26709 26710# Flag that enforces no undefined symbols. 26711no_undefined_flag=$lt_no_undefined_flag_F77 26712 26713# Flag to hardcode \$libdir into a binary during linking. 26714# This must work even if \$libdir does not exist 26715hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 26716 26717# Whether we need a single "-rpath" flag with a separated argument. 26718hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 26719 26720# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 26721# DIR into the resulting binary. 26722hardcode_direct=$hardcode_direct_F77 26723 26724# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 26725# DIR into the resulting binary and the resulting library dependency is 26726# "absolute",i.e impossible to change by setting \$shlibpath_var if the 26727# library is relocated. 26728hardcode_direct_absolute=$hardcode_direct_absolute_F77 26729 26730# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 26731# into the resulting binary. 26732hardcode_minus_L=$hardcode_minus_L_F77 26733 26734# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 26735# into the resulting binary. 26736hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 26737 26738# Set to "yes" if building a shared library automatically hardcodes DIR 26739# into the library and all subsequent libraries and executables linked 26740# against it. 26741hardcode_automatic=$hardcode_automatic_F77 26742 26743# Set to yes if linker adds runtime paths of dependent libraries 26744# to runtime path list. 26745inherit_rpath=$inherit_rpath_F77 26746 26747# Whether libtool must link a program against all its dependency libraries. 26748link_all_deplibs=$link_all_deplibs_F77 26749 26750# Set to "yes" if exported symbols are required. 26751always_export_symbols=$always_export_symbols_F77 26752 26753# The commands to list exported symbols. 26754export_symbols_cmds=$lt_export_symbols_cmds_F77 26755 26756# Symbols that should not be listed in the preloaded symbols. 26757exclude_expsyms=$lt_exclude_expsyms_F77 26758 26759# Symbols that must always be exported. 26760include_expsyms=$lt_include_expsyms_F77 26761 26762# Commands necessary for linking programs (against libraries) with templates. 26763prelink_cmds=$lt_prelink_cmds_F77 26764 26765# Commands necessary for finishing linking programs. 26766postlink_cmds=$lt_postlink_cmds_F77 26767 26768# Specify filename containing input files. 26769file_list_spec=$lt_file_list_spec_F77 26770 26771# How to hardcode a shared library path into an executable. 26772hardcode_action=$hardcode_action_F77 26773 26774# The directories searched by this compiler when creating a shared library. 26775compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77 26776 26777# Dependencies to place before and after the objects being linked to 26778# create a shared library. 26779predep_objects=$lt_predep_objects_F77 26780postdep_objects=$lt_postdep_objects_F77 26781predeps=$lt_predeps_F77 26782postdeps=$lt_postdeps_F77 26783 26784# The library search path used internally by the compiler when linking 26785# a shared library. 26786compiler_lib_search_path=$lt_compiler_lib_search_path_F77 26787 26788# ### END LIBTOOL TAG CONFIG: F77 26789_LT_EOF 26790 26791 26792 cat <<_LT_EOF >> "$ofile" 26793 26794# ### BEGIN LIBTOOL TAG CONFIG: FC 26795 26796# The linker used to build libraries. 26797LD=$lt_LD_FC 26798 26799# How to create reloadable object files. 26800reload_flag=$lt_reload_flag_FC 26801reload_cmds=$lt_reload_cmds_FC 26802 26803# Commands used to build an old-style archive. 26804old_archive_cmds=$lt_old_archive_cmds_FC 26805 26806# A language specific compiler. 26807CC=$lt_compiler_FC 26808 26809# Is the compiler the GNU compiler? 26810with_gcc=$GCC_FC 26811 26812# Compiler flag to turn off builtin functions. 26813no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC 26814 26815# Additional compiler flags for building library objects. 26816pic_flag=$lt_lt_prog_compiler_pic_FC 26817 26818# How to pass a linker flag through the compiler. 26819wl=$lt_lt_prog_compiler_wl_FC 26820 26821# Compiler flag to prevent dynamic linking. 26822link_static_flag=$lt_lt_prog_compiler_static_FC 26823 26824# Does compiler simultaneously support -c and -o options? 26825compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC 26826 26827# Whether or not to add -lc for building shared libraries. 26828build_libtool_need_lc=$archive_cmds_need_lc_FC 26829 26830# Whether or not to disallow shared libs when runtime libs are static. 26831allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC 26832 26833# Compiler flag to allow reflexive dlopens. 26834export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC 26835 26836# Compiler flag to generate shared objects directly from archives. 26837whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC 26838 26839# Whether the compiler copes with passing no objects directly. 26840compiler_needs_object=$lt_compiler_needs_object_FC 26841 26842# Create an old-style archive from a shared archive. 26843old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC 26844 26845# Create a temporary old-style archive to link instead of a shared archive. 26846old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC 26847 26848# Commands used to build a shared archive. 26849archive_cmds=$lt_archive_cmds_FC 26850archive_expsym_cmds=$lt_archive_expsym_cmds_FC 26851 26852# Commands used to build a loadable module if different from building 26853# a shared archive. 26854module_cmds=$lt_module_cmds_FC 26855module_expsym_cmds=$lt_module_expsym_cmds_FC 26856 26857# Whether we are building with GNU ld or not. 26858with_gnu_ld=$lt_with_gnu_ld_FC 26859 26860# Flag that allows shared libraries with undefined symbols to be built. 26861allow_undefined_flag=$lt_allow_undefined_flag_FC 26862 26863# Flag that enforces no undefined symbols. 26864no_undefined_flag=$lt_no_undefined_flag_FC 26865 26866# Flag to hardcode \$libdir into a binary during linking. 26867# This must work even if \$libdir does not exist 26868hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC 26869 26870# Whether we need a single "-rpath" flag with a separated argument. 26871hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC 26872 26873# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 26874# DIR into the resulting binary. 26875hardcode_direct=$hardcode_direct_FC 26876 26877# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 26878# DIR into the resulting binary and the resulting library dependency is 26879# "absolute",i.e impossible to change by setting \$shlibpath_var if the 26880# library is relocated. 26881hardcode_direct_absolute=$hardcode_direct_absolute_FC 26882 26883# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 26884# into the resulting binary. 26885hardcode_minus_L=$hardcode_minus_L_FC 26886 26887# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 26888# into the resulting binary. 26889hardcode_shlibpath_var=$hardcode_shlibpath_var_FC 26890 26891# Set to "yes" if building a shared library automatically hardcodes DIR 26892# into the library and all subsequent libraries and executables linked 26893# against it. 26894hardcode_automatic=$hardcode_automatic_FC 26895 26896# Set to yes if linker adds runtime paths of dependent libraries 26897# to runtime path list. 26898inherit_rpath=$inherit_rpath_FC 26899 26900# Whether libtool must link a program against all its dependency libraries. 26901link_all_deplibs=$link_all_deplibs_FC 26902 26903# Set to "yes" if exported symbols are required. 26904always_export_symbols=$always_export_symbols_FC 26905 26906# The commands to list exported symbols. 26907export_symbols_cmds=$lt_export_symbols_cmds_FC 26908 26909# Symbols that should not be listed in the preloaded symbols. 26910exclude_expsyms=$lt_exclude_expsyms_FC 26911 26912# Symbols that must always be exported. 26913include_expsyms=$lt_include_expsyms_FC 26914 26915# Commands necessary for linking programs (against libraries) with templates. 26916prelink_cmds=$lt_prelink_cmds_FC 26917 26918# Commands necessary for finishing linking programs. 26919postlink_cmds=$lt_postlink_cmds_FC 26920 26921# Specify filename containing input files. 26922file_list_spec=$lt_file_list_spec_FC 26923 26924# How to hardcode a shared library path into an executable. 26925hardcode_action=$hardcode_action_FC 26926 26927# The directories searched by this compiler when creating a shared library. 26928compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC 26929 26930# Dependencies to place before and after the objects being linked to 26931# create a shared library. 26932predep_objects=$lt_predep_objects_FC 26933postdep_objects=$lt_postdep_objects_FC 26934predeps=$lt_predeps_FC 26935postdeps=$lt_postdeps_FC 26936 26937# The library search path used internally by the compiler when linking 26938# a shared library. 26939compiler_lib_search_path=$lt_compiler_lib_search_path_FC 26940 26941# ### END LIBTOOL TAG CONFIG: FC 26942_LT_EOF 26943 26944 26945as_fn_exit 0 26946_LTEOF 26947chmod +x "$CONFIG_LT" 26948 26949# configure is writing to config.log, but config.lt does its own redirection, 26950# appending to config.log, which fails on DOS, as config.log is still kept 26951# open by configure. Here we exec the FD to /dev/null, effectively closing 26952# config.log, so it can be properly (re)opened and appended to by config.lt. 26953lt_cl_success=: 26954test yes = "$silent" && 26955 lt_config_lt_args="$lt_config_lt_args --quiet" 26956exec 5>/dev/null 26957$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false 26958exec 5>>config.log 26959$lt_cl_success || as_fn_exit 1 26960 26961ac_ext=c 26962ac_cpp='$CPP $CPPFLAGS' 26963ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 26964ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 26965ac_compiler_gnu=$ac_cv_c_compiler_gnu 26966ac_link="./libtool --mode=link --tag=CC $ac_link" 26967 26968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether libtool can link C programs" >&5 26969printf %s "checking whether libtool can link C programs... " >&6; } 26970if test ${acx_cv_libtool_c_works+y} 26971then : 26972 printf %s "(cached) " >&6 26973else $as_nop 26974 acx_cv_libtool_c_works=no 26975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26976/* end confdefs.h. */ 26977 26978int 26979main (void) 26980{ 26981 26982 ; 26983 return 0; 26984} 26985_ACEOF 26986if ac_fn_c_try_link "$LINENO" 26987then : 26988 acx_cv_libtool_c_works=yes 26989fi 26990rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26991 conftest$ac_exeext conftest.$ac_ext 26992fi 26993{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acx_cv_libtool_c_works" >&5 26994printf "%s\n" "$acx_cv_libtool_c_works" >&6; } 26995 if test "x$acx_cv_libtool_c_works" = xno 26996then : 26997 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 26998printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 26999as_fn_error $? "unable to link a C program using libtool 27000See \`config.log' for more details" "$LINENO" 5; } 27001fi 27002 27003if test -n "$FC" && test "X$FC" != Xno 27004then : 27005 ac_ext=${ac_fc_srcext-f} 27006ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 27007ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 27008ac_compiler_gnu=$ac_cv_fc_compiler_gnu 27009ac_link="./libtool --mode=link --tag=FC $ac_link" 27010 27011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether libtool can link Fortran programs" >&5 27012printf %s "checking whether libtool can link Fortran programs... " >&6; } 27013if test ${acx_cv_libtool_fc_works+y} 27014then : 27015 printf %s "(cached) " >&6 27016else $as_nop 27017 acx_cv_libtool_fc_works=no 27018 cat > conftest.$ac_ext <<_ACEOF 27019 program conftest 27020 27021 end 27022_ACEOF 27023if ac_fn_fc_try_link "$LINENO" 27024then : 27025 acx_cv_libtool_fc_works=yes 27026fi 27027rm -f core conftest.err conftest.$ac_objext conftest.beam \ 27028 conftest$ac_exeext conftest.$ac_ext 27029fi 27030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acx_cv_libtool_fc_works" >&5 27031printf "%s\n" "$acx_cv_libtool_fc_works" >&6; } 27032 if test "x$acx_cv_libtool_fc_works" = xno 27033then : 27034 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 27035printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 27036as_fn_error $? "unable to link a Fortran program using libtool 27037See \`config.log' for more details" "$LINENO" 5; } 27038fi 27039 27040 ac_ext=c 27041ac_cpp='$CPP $CPPFLAGS' 27042ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27043ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27044ac_compiler_gnu=$ac_cv_c_compiler_gnu 27045ac_link="./libtool --mode=link --tag=CC $ac_link" 27046 27047fi 27048if test -n "$F77" && test "X$F77" != Xno 27049then : 27050 ac_ext=f 27051ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 27052ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27053ac_compiler_gnu=$ac_cv_f77_compiler_gnu 27054ac_link="./libtool --mode=link --tag=F77 $ac_link" 27055 27056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether libtool can link Fortran 77 programs" >&5 27057printf %s "checking whether libtool can link Fortran 77 programs... " >&6; } 27058if test ${acx_cv_libtool_f77_works+y} 27059then : 27060 printf %s "(cached) " >&6 27061else $as_nop 27062 acx_cv_libtool_f77_works=no 27063 cat > conftest.$ac_ext <<_ACEOF 27064 program main 27065 27066 end 27067_ACEOF 27068if ac_fn_f77_try_link "$LINENO" 27069then : 27070 acx_cv_libtool_f77_works=yes 27071fi 27072rm -f core conftest.err conftest.$ac_objext conftest.beam \ 27073 conftest$ac_exeext conftest.$ac_ext 27074fi 27075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acx_cv_libtool_f77_works" >&5 27076printf "%s\n" "$acx_cv_libtool_f77_works" >&6; } 27077 if test "x$acx_cv_libtool_f77_works" = xno 27078then : 27079 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 27080printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 27081as_fn_error $? "unable to link a Fortran 77 program using libtool 27082See \`config.log' for more details" "$LINENO" 5; } 27083fi 27084 27085 ac_ext=c 27086ac_cpp='$CPP $CPPFLAGS' 27087ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27088ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27089ac_compiler_gnu=$ac_cv_c_compiler_gnu 27090ac_link="./libtool --mode=link --tag=CC $ac_link" 27091 27092fi 27093if test -n "$CXX" && test "X$CXX" != Xno 27094then : 27095 ac_ext=cpp 27096ac_cpp='$CXXCPP $CPPFLAGS' 27097ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27098ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27099ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 27100ac_link="./libtool --mode=link --tag=CXX $ac_link" 27101 27102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether libtool can link C++ programs" >&5 27103printf %s "checking whether libtool can link C++ programs... " >&6; } 27104if test ${acx_cv_libtool_cxx_works+y} 27105then : 27106 printf %s "(cached) " >&6 27107else $as_nop 27108 acx_cv_libtool_cxx_works=no 27109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27110/* end confdefs.h. */ 27111 27112int 27113main (void) 27114{ 27115 27116 ; 27117 return 0; 27118} 27119_ACEOF 27120if ac_fn_cxx_try_link "$LINENO" 27121then : 27122 acx_cv_libtool_cxx_works=yes 27123fi 27124rm -f core conftest.err conftest.$ac_objext conftest.beam \ 27125 conftest$ac_exeext conftest.$ac_ext 27126fi 27127{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acx_cv_libtool_cxx_works" >&5 27128printf "%s\n" "$acx_cv_libtool_cxx_works" >&6; } 27129 if test "x$acx_cv_libtool_cxx_works" = xno 27130then : 27131 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 27132printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 27133as_fn_error $? "unable to link a C++ program using libtool 27134See \`config.log' for more details" "$LINENO" 5; } 27135fi 27136 27137 ac_ext=c 27138ac_cpp='$CPP $CPPFLAGS' 27139ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27140ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27141ac_compiler_gnu=$ac_cv_c_compiler_gnu 27142ac_link="./libtool --mode=link --tag=CC $ac_link" 27143 27144fi 27145 27146# ----------------------------------------------------------------------- 27147# Check endianess of system 27148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 27149printf %s "checking whether byte ordering is bigendian... " >&6; } 27150if test ${ac_cv_c_bigendian+y} 27151then : 27152 printf %s "(cached) " >&6 27153else $as_nop 27154 ac_cv_c_bigendian=unknown 27155 # See if we're dealing with a universal compiler. 27156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27157/* end confdefs.h. */ 27158#ifndef __APPLE_CC__ 27159 not a universal capable compiler 27160 #endif 27161 typedef int dummy; 27162 27163_ACEOF 27164if ac_fn_c_try_compile "$LINENO" 27165then : 27166 27167 # Check for potential -arch flags. It is not universal unless 27168 # there are at least two -arch flags with different values. 27169 ac_arch= 27170 ac_prev= 27171 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 27172 if test -n "$ac_prev"; then 27173 case $ac_word in 27174 i?86 | x86_64 | ppc | ppc64) 27175 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 27176 ac_arch=$ac_word 27177 else 27178 ac_cv_c_bigendian=universal 27179 break 27180 fi 27181 ;; 27182 esac 27183 ac_prev= 27184 elif test "x$ac_word" = "x-arch"; then 27185 ac_prev=arch 27186 fi 27187 done 27188fi 27189rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 27190 if test $ac_cv_c_bigendian = unknown; then 27191 # See if sys/param.h defines the BYTE_ORDER macro. 27192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27193/* end confdefs.h. */ 27194#include <sys/types.h> 27195 #include <sys/param.h> 27196 27197int 27198main (void) 27199{ 27200#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 27201 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 27202 && LITTLE_ENDIAN) 27203 bogus endian macros 27204 #endif 27205 27206 ; 27207 return 0; 27208} 27209_ACEOF 27210if ac_fn_c_try_compile "$LINENO" 27211then : 27212 # It does; now see whether it defined to BIG_ENDIAN or not. 27213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27214/* end confdefs.h. */ 27215#include <sys/types.h> 27216 #include <sys/param.h> 27217 27218int 27219main (void) 27220{ 27221#if BYTE_ORDER != BIG_ENDIAN 27222 not big endian 27223 #endif 27224 27225 ; 27226 return 0; 27227} 27228_ACEOF 27229if ac_fn_c_try_compile "$LINENO" 27230then : 27231 ac_cv_c_bigendian=yes 27232else $as_nop 27233 ac_cv_c_bigendian=no 27234fi 27235rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 27236fi 27237rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 27238 fi 27239 if test $ac_cv_c_bigendian = unknown; then 27240 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 27241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27242/* end confdefs.h. */ 27243#include <limits.h> 27244 27245int 27246main (void) 27247{ 27248#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 27249 bogus endian macros 27250 #endif 27251 27252 ; 27253 return 0; 27254} 27255_ACEOF 27256if ac_fn_c_try_compile "$LINENO" 27257then : 27258 # It does; now see whether it defined to _BIG_ENDIAN or not. 27259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27260/* end confdefs.h. */ 27261#include <limits.h> 27262 27263int 27264main (void) 27265{ 27266#ifndef _BIG_ENDIAN 27267 not big endian 27268 #endif 27269 27270 ; 27271 return 0; 27272} 27273_ACEOF 27274if ac_fn_c_try_compile "$LINENO" 27275then : 27276 ac_cv_c_bigendian=yes 27277else $as_nop 27278 ac_cv_c_bigendian=no 27279fi 27280rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 27281fi 27282rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 27283 fi 27284 if test $ac_cv_c_bigendian = unknown; then 27285 # Compile a test program. 27286 if test "$cross_compiling" = yes 27287then : 27288 # Try to guess by grepping values from an object file. 27289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27290/* end confdefs.h. */ 27291unsigned short int ascii_mm[] = 27292 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 27293 unsigned short int ascii_ii[] = 27294 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 27295 int use_ascii (int i) { 27296 return ascii_mm[i] + ascii_ii[i]; 27297 } 27298 unsigned short int ebcdic_ii[] = 27299 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 27300 unsigned short int ebcdic_mm[] = 27301 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 27302 int use_ebcdic (int i) { 27303 return ebcdic_mm[i] + ebcdic_ii[i]; 27304 } 27305 extern int foo; 27306 27307int 27308main (void) 27309{ 27310return use_ascii (foo) == use_ebcdic (foo); 27311 ; 27312 return 0; 27313} 27314_ACEOF 27315if ac_fn_c_try_compile "$LINENO" 27316then : 27317 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 27318 ac_cv_c_bigendian=yes 27319 fi 27320 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 27321 if test "$ac_cv_c_bigendian" = unknown; then 27322 ac_cv_c_bigendian=no 27323 else 27324 # finding both strings is unlikely to happen, but who knows? 27325 ac_cv_c_bigendian=unknown 27326 fi 27327 fi 27328fi 27329rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 27330else $as_nop 27331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27332/* end confdefs.h. */ 27333$ac_includes_default 27334int 27335main (void) 27336{ 27337 27338 /* Are we little or big endian? From Harbison&Steele. */ 27339 union 27340 { 27341 long int l; 27342 char c[sizeof (long int)]; 27343 } u; 27344 u.l = 1; 27345 return u.c[sizeof (long int) - 1] == 1; 27346 27347 ; 27348 return 0; 27349} 27350_ACEOF 27351if ac_fn_c_try_run "$LINENO" 27352then : 27353 ac_cv_c_bigendian=no 27354else $as_nop 27355 ac_cv_c_bigendian=yes 27356fi 27357rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 27358 conftest.$ac_objext conftest.beam conftest.$ac_ext 27359fi 27360 27361 fi 27362fi 27363{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 27364printf "%s\n" "$ac_cv_c_bigendian" >&6; } 27365 case $ac_cv_c_bigendian in #( 27366 yes) 27367 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h 27368;; #( 27369 no) 27370 ;; #( 27371 universal) 27372 27373printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 27374 27375 ;; #( 27376 *) 27377 as_fn_error $? "unknown endianness 27378 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 27379 esac 27380 27381# ---------------------------------------------------------------------- 27382# Check large file support on 32 bit systems 27383# Check whether --enable-largefile was given. 27384if test ${enable_largefile+y} 27385then : 27386 enableval=$enable_largefile; 27387fi 27388 27389if test "$enable_largefile" != no; then 27390 27391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 27392printf %s "checking for special C compiler options needed for large files... " >&6; } 27393if test ${ac_cv_sys_largefile_CC+y} 27394then : 27395 printf %s "(cached) " >&6 27396else $as_nop 27397 ac_cv_sys_largefile_CC=no 27398 if test "$GCC" != yes; then 27399 ac_save_CC=$CC 27400 while :; do 27401 # IRIX 6.2 and later do not support large files by default, 27402 # so use the C compiler's -n32 option if that helps. 27403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27404/* end confdefs.h. */ 27405#include <sys/types.h> 27406 /* Check that off_t can represent 2**63 - 1 correctly. 27407 We can't simply define LARGE_OFF_T to be 9223372036854775807, 27408 since some C++ compilers masquerading as C compilers 27409 incorrectly reject 9223372036854775807. */ 27410#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 27411 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 27412 && LARGE_OFF_T % 2147483647 == 1) 27413 ? 1 : -1]; 27414int 27415main (void) 27416{ 27417 27418 ; 27419 return 0; 27420} 27421_ACEOF 27422 if ac_fn_c_try_compile "$LINENO" 27423then : 27424 break 27425fi 27426rm -f core conftest.err conftest.$ac_objext conftest.beam 27427 CC="$CC -n32" 27428 if ac_fn_c_try_compile "$LINENO" 27429then : 27430 ac_cv_sys_largefile_CC=' -n32'; break 27431fi 27432rm -f core conftest.err conftest.$ac_objext conftest.beam 27433 break 27434 done 27435 CC=$ac_save_CC 27436 rm -f conftest.$ac_ext 27437 fi 27438fi 27439{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 27440printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; } 27441 if test "$ac_cv_sys_largefile_CC" != no; then 27442 CC=$CC$ac_cv_sys_largefile_CC 27443 fi 27444 27445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 27446printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 27447if test ${ac_cv_sys_file_offset_bits+y} 27448then : 27449 printf %s "(cached) " >&6 27450else $as_nop 27451 while :; do 27452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27453/* end confdefs.h. */ 27454#include <sys/types.h> 27455 /* Check that off_t can represent 2**63 - 1 correctly. 27456 We can't simply define LARGE_OFF_T to be 9223372036854775807, 27457 since some C++ compilers masquerading as C compilers 27458 incorrectly reject 9223372036854775807. */ 27459#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 27460 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 27461 && LARGE_OFF_T % 2147483647 == 1) 27462 ? 1 : -1]; 27463int 27464main (void) 27465{ 27466 27467 ; 27468 return 0; 27469} 27470_ACEOF 27471if ac_fn_c_try_compile "$LINENO" 27472then : 27473 ac_cv_sys_file_offset_bits=no; break 27474fi 27475rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 27476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27477/* end confdefs.h. */ 27478#define _FILE_OFFSET_BITS 64 27479#include <sys/types.h> 27480 /* Check that off_t can represent 2**63 - 1 correctly. 27481 We can't simply define LARGE_OFF_T to be 9223372036854775807, 27482 since some C++ compilers masquerading as C compilers 27483 incorrectly reject 9223372036854775807. */ 27484#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 27485 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 27486 && LARGE_OFF_T % 2147483647 == 1) 27487 ? 1 : -1]; 27488int 27489main (void) 27490{ 27491 27492 ; 27493 return 0; 27494} 27495_ACEOF 27496if ac_fn_c_try_compile "$LINENO" 27497then : 27498 ac_cv_sys_file_offset_bits=64; break 27499fi 27500rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 27501 ac_cv_sys_file_offset_bits=unknown 27502 break 27503done 27504fi 27505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 27506printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; } 27507case $ac_cv_sys_file_offset_bits in #( 27508 no | unknown) ;; 27509 *) 27510printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h 27511;; 27512esac 27513rm -rf conftest* 27514 if test $ac_cv_sys_file_offset_bits = unknown; then 27515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 27516printf %s "checking for _LARGE_FILES value needed for large files... " >&6; } 27517if test ${ac_cv_sys_large_files+y} 27518then : 27519 printf %s "(cached) " >&6 27520else $as_nop 27521 while :; do 27522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27523/* end confdefs.h. */ 27524#include <sys/types.h> 27525 /* Check that off_t can represent 2**63 - 1 correctly. 27526 We can't simply define LARGE_OFF_T to be 9223372036854775807, 27527 since some C++ compilers masquerading as C compilers 27528 incorrectly reject 9223372036854775807. */ 27529#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 27530 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 27531 && LARGE_OFF_T % 2147483647 == 1) 27532 ? 1 : -1]; 27533int 27534main (void) 27535{ 27536 27537 ; 27538 return 0; 27539} 27540_ACEOF 27541if ac_fn_c_try_compile "$LINENO" 27542then : 27543 ac_cv_sys_large_files=no; break 27544fi 27545rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 27546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27547/* end confdefs.h. */ 27548#define _LARGE_FILES 1 27549#include <sys/types.h> 27550 /* Check that off_t can represent 2**63 - 1 correctly. 27551 We can't simply define LARGE_OFF_T to be 9223372036854775807, 27552 since some C++ compilers masquerading as C compilers 27553 incorrectly reject 9223372036854775807. */ 27554#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 27555 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 27556 && LARGE_OFF_T % 2147483647 == 1) 27557 ? 1 : -1]; 27558int 27559main (void) 27560{ 27561 27562 ; 27563 return 0; 27564} 27565_ACEOF 27566if ac_fn_c_try_compile "$LINENO" 27567then : 27568 ac_cv_sys_large_files=1; break 27569fi 27570rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 27571 ac_cv_sys_large_files=unknown 27572 break 27573done 27574fi 27575{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 27576printf "%s\n" "$ac_cv_sys_large_files" >&6; } 27577case $ac_cv_sys_large_files in #( 27578 no | unknown) ;; 27579 *) 27580printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h 27581;; 27582esac 27583rm -rf conftest* 27584 fi 27585fi 27586 27587# ---------------------------------------------------------------------- 27588# Checks for library functions. 27589 27590ac_func= 27591for ac_item in $ac_func_c_list 27592do 27593 if test $ac_func; then 27594 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func 27595 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then 27596 echo "#define $ac_item 1" >> confdefs.h 27597 fi 27598 ac_func= 27599 else 27600 ac_func=$ac_item 27601 fi 27602done 27603 27604 27605{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 27606printf %s "checking for working mmap... " >&6; } 27607if test ${ac_cv_func_mmap_fixed_mapped+y} 27608then : 27609 printf %s "(cached) " >&6 27610else $as_nop 27611 if test "$cross_compiling" = yes 27612then : 27613 case "$host_os" in # (( 27614 # Guess yes on platforms where we know the result. 27615 linux*) ac_cv_func_mmap_fixed_mapped=yes ;; 27616 # If we don't know, assume the worst. 27617 *) ac_cv_func_mmap_fixed_mapped=no ;; 27618 esac 27619else $as_nop 27620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27621/* end confdefs.h. */ 27622$ac_includes_default 27623/* malloc might have been renamed as rpl_malloc. */ 27624#undef malloc 27625 27626/* Thanks to Mike Haertel and Jim Avera for this test. 27627 Here is a matrix of mmap possibilities: 27628 mmap private not fixed 27629 mmap private fixed at somewhere currently unmapped 27630 mmap private fixed at somewhere already mapped 27631 mmap shared not fixed 27632 mmap shared fixed at somewhere currently unmapped 27633 mmap shared fixed at somewhere already mapped 27634 For private mappings, we should verify that changes cannot be read() 27635 back from the file, nor mmap's back from the file at a different 27636 address. (There have been systems where private was not correctly 27637 implemented like the infamous i386 svr4.0, and systems where the 27638 VM page cache was not coherent with the file system buffer cache 27639 like early versions of FreeBSD and possibly contemporary NetBSD.) 27640 For shared mappings, we should conversely verify that changes get 27641 propagated back to all the places they're supposed to be. 27642 27643 Grep wants private fixed already mapped. 27644 The main things grep needs to know about mmap are: 27645 * does it exist and is it safe to write into the mmap'd area 27646 * how to use it (BSD variants) */ 27647 27648#include <fcntl.h> 27649#include <sys/mman.h> 27650 27651/* This mess was copied from the GNU getpagesize.h. */ 27652#ifndef HAVE_GETPAGESIZE 27653# ifdef _SC_PAGESIZE 27654# define getpagesize() sysconf(_SC_PAGESIZE) 27655# else /* no _SC_PAGESIZE */ 27656# ifdef HAVE_SYS_PARAM_H 27657# include <sys/param.h> 27658# ifdef EXEC_PAGESIZE 27659# define getpagesize() EXEC_PAGESIZE 27660# else /* no EXEC_PAGESIZE */ 27661# ifdef NBPG 27662# define getpagesize() NBPG * CLSIZE 27663# ifndef CLSIZE 27664# define CLSIZE 1 27665# endif /* no CLSIZE */ 27666# else /* no NBPG */ 27667# ifdef NBPC 27668# define getpagesize() NBPC 27669# else /* no NBPC */ 27670# ifdef PAGESIZE 27671# define getpagesize() PAGESIZE 27672# endif /* PAGESIZE */ 27673# endif /* no NBPC */ 27674# endif /* no NBPG */ 27675# endif /* no EXEC_PAGESIZE */ 27676# else /* no HAVE_SYS_PARAM_H */ 27677# define getpagesize() 8192 /* punt totally */ 27678# endif /* no HAVE_SYS_PARAM_H */ 27679# endif /* no _SC_PAGESIZE */ 27680 27681#endif /* no HAVE_GETPAGESIZE */ 27682 27683int 27684main (void) 27685{ 27686 char *data, *data2, *data3; 27687 const char *cdata2; 27688 int i, pagesize; 27689 int fd, fd2; 27690 27691 pagesize = getpagesize (); 27692 27693 /* First, make a file with some known garbage in it. */ 27694 data = (char *) malloc (pagesize); 27695 if (!data) 27696 return 1; 27697 for (i = 0; i < pagesize; ++i) 27698 *(data + i) = rand (); 27699 umask (0); 27700 fd = creat ("conftest.mmap", 0600); 27701 if (fd < 0) 27702 return 2; 27703 if (write (fd, data, pagesize) != pagesize) 27704 return 3; 27705 close (fd); 27706 27707 /* Next, check that the tail of a page is zero-filled. File must have 27708 non-zero length, otherwise we risk SIGBUS for entire page. */ 27709 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 27710 if (fd2 < 0) 27711 return 4; 27712 cdata2 = ""; 27713 if (write (fd2, cdata2, 1) != 1) 27714 return 5; 27715 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 27716 if (data2 == MAP_FAILED) 27717 return 6; 27718 for (i = 0; i < pagesize; ++i) 27719 if (*(data2 + i)) 27720 return 7; 27721 close (fd2); 27722 if (munmap (data2, pagesize)) 27723 return 8; 27724 27725 /* Next, try to mmap the file at a fixed address which already has 27726 something else allocated at it. If we can, also make sure that 27727 we see the same garbage. */ 27728 fd = open ("conftest.mmap", O_RDWR); 27729 if (fd < 0) 27730 return 9; 27731 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 27732 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 27733 return 10; 27734 for (i = 0; i < pagesize; ++i) 27735 if (*(data + i) != *(data2 + i)) 27736 return 11; 27737 27738 /* Finally, make sure that changes to the mapped area do not 27739 percolate back to the file as seen by read(). (This is a bug on 27740 some variants of i386 svr4.0.) */ 27741 for (i = 0; i < pagesize; ++i) 27742 *(data2 + i) = *(data2 + i) + 1; 27743 data3 = (char *) malloc (pagesize); 27744 if (!data3) 27745 return 12; 27746 if (read (fd, data3, pagesize) != pagesize) 27747 return 13; 27748 for (i = 0; i < pagesize; ++i) 27749 if (*(data + i) != *(data3 + i)) 27750 return 14; 27751 close (fd); 27752 free (data); 27753 free (data3); 27754 return 0; 27755} 27756_ACEOF 27757if ac_fn_c_try_run "$LINENO" 27758then : 27759 ac_cv_func_mmap_fixed_mapped=yes 27760else $as_nop 27761 ac_cv_func_mmap_fixed_mapped=no 27762fi 27763rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 27764 conftest.$ac_objext conftest.beam conftest.$ac_ext 27765fi 27766 27767fi 27768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 27769printf "%s\n" "$ac_cv_func_mmap_fixed_mapped" >&6; } 27770if test $ac_cv_func_mmap_fixed_mapped = yes; then 27771 27772printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h 27773 27774fi 27775rm -f conftest.mmap conftest.txt 27776 27777# ---------------------------------------------------------------------- 27778# Checks for structures. 27779ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" 27780if test "x$ac_cv_member_struct_stat_st_blksize" = xyes 27781then : 27782 27783printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BLKSIZE 1" >>confdefs.h 27784 27785 27786fi 27787 27788# ---------------------------------------------------------------------- 27789# Checks for header files 27790ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default 27791" 27792if test "x$ac_cv_header_malloc_h" = xyes 27793then : 27794 printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h 27795 27796fi 27797ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default 27798" 27799if test "x$ac_cv_header_unistd_h" = xyes 27800then : 27801 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h 27802 27803fi 27804ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default 27805" 27806if test "x$ac_cv_header_sys_time_h" = xyes 27807then : 27808 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h 27809 27810fi 27811 27812ac_fn_c_check_header_compile "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default 27813" 27814if test "x$ac_cv_header_execinfo_h" = xyes 27815then : 27816 printf "%s\n" "#define HAVE_EXECINFO_H 1" >>confdefs.h 27817 27818fi 27819 27820 if test x"$ac_cv_header_execinfo_h" = xyes 27821then : 27822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size parameter type for backtrace()" >&5 27823printf %s "checking size parameter type for backtrace()... " >&6; } 27824if test ${ax_cv_proto_backtrace_type+y} 27825then : 27826 printf %s "(cached) " >&6 27827else $as_nop 27828 ac_ext=c 27829ac_cpp='$CPP $CPPFLAGS' 27830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27832ac_compiler_gnu=$ac_cv_c_compiler_gnu 27833ac_link="./libtool --mode=link --tag=CC $ac_link" 27834 27835 for ax_cv_proto_backtrace_type in size_t int none; do 27836 if test "${ax_cv_proto_backtrace_type}" = none 27837then : 27838 ax_cv_proto_backtrace_type= ; break 27839fi 27840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27841/* end confdefs.h. */ 27842 27843#include <execinfo.h> 27844extern 27845${ax_cv_proto_backtrace_type} backtrace(void **addrlist, ${ax_cv_proto_backtrace_type} len); 27846char **backtrace_symbols(void *const *buffer, ${ax_cv_proto_backtrace_type} size); 27847 27848int 27849main (void) 27850{ 27851 27852 ; 27853 return 0; 27854} 27855_ACEOF 27856if ac_fn_c_try_compile "$LINENO" 27857then : 27858 break 27859fi 27860rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 27861 done 27862 ac_ext=c 27863ac_cpp='$CPP $CPPFLAGS' 27864ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27865ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27866ac_compiler_gnu=$ac_cv_c_compiler_gnu 27867ac_link="./libtool --mode=link --tag=CC $ac_link" 27868 27869fi 27870{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_proto_backtrace_type" >&5 27871printf "%s\n" "$ax_cv_proto_backtrace_type" >&6; } 27872fi 27873 if test x${ax_cv_proto_backtrace_type} != x 27874then : 27875 27876printf "%s\n" "#define backtrace_size_t $ax_cv_proto_backtrace_type" >>confdefs.h 27877 27878fi 27879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace" >&5 27880printf %s "checking for library containing backtrace... " >&6; } 27881if test ${ac_cv_search_backtrace+y} 27882then : 27883 printf %s "(cached) " >&6 27884else $as_nop 27885 ac_func_search_save_LIBS=$LIBS 27886cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27887/* end confdefs.h. */ 27888 27889/* Override any GCC internal prototype to avoid an error. 27890 Use char because int might match the return type of a GCC 27891 builtin and then its argument prototype would still apply. */ 27892char backtrace (); 27893int 27894main (void) 27895{ 27896return backtrace (); 27897 ; 27898 return 0; 27899} 27900_ACEOF 27901for ac_lib in '' execinfo 27902do 27903 if test -z "$ac_lib"; then 27904 ac_res="none required" 27905 else 27906 ac_res=-l$ac_lib 27907 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 27908 fi 27909 if ac_fn_c_try_link "$LINENO" 27910then : 27911 ac_cv_search_backtrace=$ac_res 27912fi 27913rm -f core conftest.err conftest.$ac_objext conftest.beam \ 27914 conftest$ac_exeext 27915 if test ${ac_cv_search_backtrace+y} 27916then : 27917 break 27918fi 27919done 27920if test ${ac_cv_search_backtrace+y} 27921then : 27922 27923else $as_nop 27924 ac_cv_search_backtrace=no 27925fi 27926rm conftest.$ac_ext 27927LIBS=$ac_func_search_save_LIBS 27928fi 27929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace" >&5 27930printf "%s\n" "$ac_cv_search_backtrace" >&6; } 27931ac_res=$ac_cv_search_backtrace 27932if test "$ac_res" != no 27933then : 27934 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 27935 27936fi 27937 27938 if test x"${ax_cv_proto_backtrace_type}" != x -a x"$ac_cv_header_execinfo_h" = xyes -a x"$ac_cv_search_backtrace" != xno 27939then : 27940 27941printf "%s\n" "#define HAVE_BACKTRACE 1" >>confdefs.h 27942 27943 27944fi 27945# ---------------------------------------------------------------------- 27946# Checks for the availability of functions 27947ac_fn_c_check_func "$LINENO" "mallinfo" "ac_cv_func_mallinfo" 27948if test "x$ac_cv_func_mallinfo" = xyes 27949then : 27950 printf "%s\n" "#define HAVE_MALLINFO 1" >>confdefs.h 27951 27952fi 27953 27954ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline" 27955if test "x$ac_cv_func_getline" = xyes 27956then : 27957 printf "%s\n" "#define HAVE_GETLINE 1" >>confdefs.h 27958 27959fi 27960 27961# Sed expression to map a string onto a valid argument string part. 27962asx_tr_arg="eval sed 'y%*+%pp%;s%[^-$as_cr_alnum]%-%g'" 27963 27964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 27965printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 27966if test ${ac_cv_c_undeclared_builtin_options+y} 27967then : 27968 printf %s "(cached) " >&6 27969else $as_nop 27970 ac_save_CFLAGS=$CFLAGS 27971 ac_cv_c_undeclared_builtin_options='cannot detect' 27972 for ac_arg in '' -fno-builtin; do 27973 CFLAGS="$ac_save_CFLAGS $ac_arg" 27974 # This test program should *not* compile successfully. 27975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27976/* end confdefs.h. */ 27977 27978int 27979main (void) 27980{ 27981(void) strchr; 27982 ; 27983 return 0; 27984} 27985_ACEOF 27986if ac_fn_c_try_compile "$LINENO" 27987then : 27988 27989else $as_nop 27990 # This test program should compile successfully. 27991 # No library function is consistently available on 27992 # freestanding implementations, so test against a dummy 27993 # declaration. Include always-available headers on the 27994 # off chance that they somehow elicit warnings. 27995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27996/* end confdefs.h. */ 27997#include <float.h> 27998#include <limits.h> 27999#include <stdarg.h> 28000#include <stddef.h> 28001extern void ac_decl (int, char *); 28002 28003int 28004main (void) 28005{ 28006(void) ac_decl (0, (char *) 0); 28007 (void) ac_decl; 28008 28009 ; 28010 return 0; 28011} 28012_ACEOF 28013if ac_fn_c_try_compile "$LINENO" 28014then : 28015 if test x"$ac_arg" = x 28016then : 28017 ac_cv_c_undeclared_builtin_options='none needed' 28018else $as_nop 28019 ac_cv_c_undeclared_builtin_options=$ac_arg 28020fi 28021 break 28022fi 28023rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 28024fi 28025rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 28026 done 28027 CFLAGS=$ac_save_CFLAGS 28028 28029fi 28030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 28031printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 28032 case $ac_cv_c_undeclared_builtin_options in #( 28033 'cannot detect') : 28034 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28035printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 28036as_fn_error $? "cannot make $CC report undeclared builtins 28037See \`config.log' for more details" "$LINENO" 5; } ;; #( 28038 'none needed') : 28039 ac_c_undeclared_builtin_options='' ;; #( 28040 *) : 28041 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 28042esac 28043 28044have_dce_uuid_c_bindings=no 28045 have_util_linux_uuid_c_bindings=no 28046 have_ossp_uuid_c_bindings=no 28047 # Check whether --enable-util-linux-uuid was given. 28048if test ${enable_util_linux_uuid+y} 28049then : 28050 enableval=$enable_util_linux_uuid; 28051else $as_nop 28052 enable_util_linux_uuid=auto 28053fi 28054 28055 # Check whether --enable-ossp-uuid was given. 28056if test ${enable_ossp_uuid+y} 28057then : 28058 enableval=$enable_ossp_uuid; 28059else $as_nop 28060 enable_ossp_uuid=auto 28061fi 28062 28063 # Check whether --enable-dce-uuid was given. 28064if test ${enable_dce_uuid+y} 28065then : 28066 enableval=$enable_dce_uuid; 28067else $as_nop 28068 enable_dce_uuid=auto 28069fi 28070 28071 28072 28073# Check whether --with-util-linux-uuid was given. 28074if test ${with_util_linux_uuid+y} 28075then : 28076 withval=$with_util_linux_uuid; case $with_util_linux_uuid in #( 28077 yes) : 28078 enable_ossp_uuid=no enable_dce_uuid=no ;; #( 28079 no) : 28080 enable_util_linux_uuid=no ;; #( 28081 /*) : 28082 if test x${with_util_linux_uuid_root+set} != xset 28083then : 28084 with_util_linux_uuid_root=$with_util_linux_uuid 28085elif test x"${with_util_linux_uuid_root}" != x"${with_util_linux_uuid}" 28086then : 28087 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28088printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 28089as_fn_error $? "inconsistent directories specified for --with-util-linux-uuid and --with-util-linux-uuid-root 28090See \`config.log' for more details" "$LINENO" 5; } 28091fi 28092 enable_ossp_uuid=no enable_dce_uuid=no ;; #( 28093 *) : 28094 ;; 28095esac 28096fi 28097 28098 28099# Check whether --with-ossp-uuid was given. 28100if test ${with_ossp_uuid+y} 28101then : 28102 withval=$with_ossp_uuid; case $with_ossp_uuid in #( 28103 yes) : 28104 enable_util_linux_uuid=no enable_dce_uuid=no ;; #( 28105 no) : 28106 enable_ossp_uuid=no ;; #( 28107 /*) : 28108 if test x${with_ossp_uuid_root+set} != xset 28109then : 28110 with_ossp_uuid_root=$with_ossp_uuid 28111elif test x"${with_ossp_uuid_root}" != x"${with_ossp_uuid}" 28112then : 28113 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28114printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 28115as_fn_error $? "inconsistent directories specified for --with-ossp-uuid and --with-ossp-uuid-root 28116See \`config.log' for more details" "$LINENO" 5; } 28117fi 28118 enable_util_linux_uuid=no enable_dce_uuid=no ;; #( 28119 *) : 28120 ;; 28121esac 28122fi 28123 28124 28125# Check whether --with-dce-uuid was given. 28126if test ${with_dce_uuid+y} 28127then : 28128 withval=$with_dce_uuid; case $with_dce_uuid in #( 28129 yes) : 28130 enable_util_linux_uuid=no enable_ossp_uuid=no ;; #( 28131 no) : 28132 enable_dce_uuid=no ;; #( 28133 /*) : 28134 if test x${with_dce_uuid_root+set} != xset 28135then : 28136 with_dce_uuid_root=$with_dce_uuid 28137elif test x"${with_dce_uuid_root}" != x"${with_dce_uuid}" 28138then : 28139 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28140printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 28141as_fn_error $? "inconsistent directories specified for --with-dce-uuid and --with-dce-uuid-root 28142See \`config.log' for more details" "$LINENO" 5; } 28143fi 28144 enable_util_linux_uuid=no enable_ossp_uuid=no ;; #( 28145 *) : 28146 ;; 28147esac 28148fi 28149 28150 28151 if test x"$enable_util_linux_uuid" != xno 28152then : 28153 ac_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 28158ac_link="./libtool --mode=link --tag=CC $ac_link" 28159 28160 28161 28162 28163 28164 28165 28166 have_util_linux_uuid_c_bindings=yes 28167 28168 28169# Check whether --with-util-linux-uuid-root was given. 28170if test ${with_util_linux_uuid_root+y} 28171then : 28172 withval=$with_util_linux_uuid_root; UTIL_LINUX_UUIDROOT="$with_util_linux_uuid_root" 28173fi 28174 28175 if test ${UTIL_LINUX_UUIDROOT+y} 28176then : 28177 if test ${UTIL_LINUX_UUID_C_LIB+y} 28178then : 28179 28180else $as_nop 28181 acx_temp=$UTIL_LINUX_UUIDROOT 28182 UTIL_LINUX_UUID_C_LIB="-L$acx_temp/lib" 28183fi 28184 if test ${UTIL_LINUX_UUID_C_INCLUDE+y} 28185then : 28186 28187else $as_nop 28188 acx_temp=$UTIL_LINUX_UUIDROOT 28189 UTIL_LINUX_UUID_C_INCLUDE="-I$acx_temp/include" 28190fi 28191fi 28192 28193# Check whether --with-util-linux-uuid-include was given. 28194if test ${with_util_linux_uuid_include+y} 28195then : 28196 withval=$with_util_linux_uuid_include; UTIL_LINUX_UUID_C_INCLUDE="-I$with_util_linux_uuid_include" 28197fi 28198 28199 28200 28201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid/uuid.h extra include path" >&5 28202printf %s "checking for uuid/uuid.h extra include path... " >&6; } 28203 if test ${acx_cv_c_include_uuid_uuid_h+y} 28204then : 28205 printf %s "(cached) " >&6 28206else $as_nop 28207 ac_include_search_uuid_uuid_h_SAVE="$CPPFLAGS" 28208 while :; do 28209 for ac_incdir in ''; do 28210 if test -z "$ac_incdir" 28211then : 28212 ac_res="none required" 28213 CPPFLAGS="$UTIL_LINUX_UUID_C_INCLUDE $ac_include_search_uuid_uuid_h_SAVE" 28214else $as_nop 28215 ac_res="-I$ac_incdir" 28216 CPPFLAGS="$UTIL_LINUX_UUID_C_INCLUDE $ac_res $ac_include_search_uuid_uuid_h_SAVE" 28217fi 28218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28219/* end confdefs.h. */ 28220$ac_includes_default 28221#include <uuid/uuid.h> 28222_ACEOF 28223if ac_fn_c_try_compile "$LINENO" 28224then : 28225 acx_cv_c_include_uuid_uuid_h=yes 28226fi 28227rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 28228 if test ${acx_cv_c_include_uuid_uuid_h+y} 28229then : 28230 if test -z "$ac_incdir" 28231then : 28232 acx_cv_c_include_uuid_uuid_h="$UTIL_LINUX_UUID_C_INCLUDE" 28233else $as_nop 28234 acx_cv_c_include_uuid_uuid_h="$UTIL_LINUX_UUID_C_INCLUDE -I$ac_incdir" 28235fi 28236fi 28237 if test ${acx_cv_c_include_uuid_uuid_h+y} 28238then : 28239 break 28240fi 28241 done 28242 if test ${acx_cv_c_include_uuid_uuid_h+y} 28243then : 28244 break 28245fi 28246 28247 break 28248 done 28249 CPPFLAGS=$ac_include_search_uuid_uuid_h_SAVE 28250fi 28251 28252 if test ${acx_cv_c_include_uuid_uuid_h+y} 28253then : 28254 acx_temp=$acx_cv_c_include_uuid_uuid_h 28255 if test x"$acx_temp" = x 28256then : 28257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (none required)" >&5 28258printf "%s\n" "(none required)" >&6; } 28259else $as_nop 28260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acx_temp" >&5 28261printf "%s\n" "$acx_temp" >&6; } 28262fi 28263else $as_nop 28264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5 28265printf "%s\n" "not found" >&6; } 28266fi 28267 if test ${acx_cv_c_include_uuid_uuid_h+y} 28268then : 28269 acx_temp=$acx_cv_c_include_uuid_uuid_h 28270 acx_temp=`echo "$acx_temp" | sed -e 's/^ *//;s/ *$//'` 28271 UTIL_LINUX_UUID_C_INCLUDE=$acx_temp 28272else $as_nop 28273 have_util_linux_uuid_c_bindings=no 28274 28275fi 28276 28277 28278# Check whether --with-util-linux-uuid-lib was given. 28279if test ${with_util_linux_uuid_lib+y} 28280then : 28281 withval=$with_util_linux_uuid_lib; UTIL_LINUX_UUID_C_LIB="-L$with_util_linux_uuid_lib" 28282fi 28283 28284 28285 28286 if test "x$have_util_linux_uuid_c_bindings" = xyes 28287then : 28288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_generate" >&5 28289printf %s "checking for library containing uuid_generate... " >&6; } 28290 if test ${acx_cv_option_search_uuid_generate_c+y} 28291then : 28292 printf %s "(cached) " >&6 28293else $as_nop 28294 while :; do 28295 acx_option_func_search_save_LIBS="$LIBS" 28296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28297/* end confdefs.h. */ 28298 28299/* Override any GCC internal prototype to avoid an error. 28300 Use char because int might match the return type of a GCC 28301 builtin and then its argument prototype would still apply. */ 28302char uuid_generate (); 28303int 28304main (void) 28305{ 28306return uuid_generate (); 28307 ; 28308 return 0; 28309} 28310_ACEOF 28311 for ac_lib in '' uuid; do 28312 if test -z "$ac_lib" 28313then : 28314 ac_res="none required" 28315 LIBS="$UTIL_LINUX_UUID_C_LIB $acx_option_func_search_save_LIBS" 28316else $as_nop 28317 ac_res="-l$ac_lib" 28318 LIBS="$UTIL_LINUX_UUID_C_LIB $ac_res $acx_option_func_search_save_LIBS" 28319fi 28320 if ac_fn_c_try_link "$LINENO" 28321then : 28322 if test x"$ac_res" = x"none required" 28323then : 28324 acx_cv_option_search_uuid_generate_c="$UTIL_LINUX_UUID_C_LIB " 28325else $as_nop 28326 acx_cv_option_search_uuid_generate_c="$UTIL_LINUX_UUID_C_LIB -l$ac_lib " 28327fi 28328fi 28329rm -f core conftest.err conftest.$ac_objext conftest.beam \ 28330 conftest$ac_exeext 28331 if test ${acx_cv_option_search_uuid_generate_c+y} 28332then : 28333 break 28334fi 28335 done 28336 rm conftest.$ac_ext 28337 LIBS="$acx_option_func_search_save_LIBS" 28338 if test ${acx_cv_option_search_uuid_generate_c+y} 28339then : 28340 break 28341fi 28342 28343 break 28344 done 28345fi 28346 28347 if test ${acx_cv_option_search_uuid_generate_c+y} 28348then : 28349 if test x"$acx_cv_option_search_uuid_generate_c" = x 28350then : 28351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (none required)" >&5 28352printf "%s\n" "(none required)" >&6; } 28353else $as_nop 28354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acx_cv_option_search_uuid_generate_c" >&5 28355printf "%s\n" "$acx_cv_option_search_uuid_generate_c" >&6; } 28356fi 28357else $as_nop 28358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5 28359printf "%s\n" "not found" >&6; } 28360fi 28361 if test ${acx_cv_option_search_uuid_generate_c+y} 28362then : 28363 28364else $as_nop 28365 have_util_linux_uuid_c_bindings=no 28366 28367fi 28368 28369 acx_temp=$acx_cv_option_search_uuid_generate_c 28370 acx_temp=`echo "$acx_temp" | sed -e 's/^ *//;s/ *$//'` 28371 UTIL_LINUX_UUID_C_LIB=$acx_temp 28372 28373fi 28374 28375 28376 28377 28378 28379 28380 ac_ext=c 28381ac_cpp='$CPP $CPPFLAGS' 28382ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28383ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28384ac_compiler_gnu=$ac_cv_c_compiler_gnu 28385ac_link="./libtool --mode=link --tag=CC $ac_link" 28386 28387 if test x"$have_util_linux_uuid_c_bindings" = xyes 28388then : 28389 acx_save_CPPFLAGS=$CPPFLAGS 28390 CPPFLAGS="$CPPFLAGS $UTIL_LINUX_UUID_C_INCLUDE" 28391 for ac_header in uuid/uuid.h 28392do : 28393 ac_fn_c_check_header_compile "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default 28394" 28395if test "x$ac_cv_header_uuid_uuid_h" = xyes 28396then : 28397 printf "%s\n" "#define HAVE_UUID_UUID_H 1" >>confdefs.h 28398 ac_fn_check_decl "$LINENO" "uuid_generate" "ac_cv_have_decl_uuid_generate" "$ac_includes_default 28399#include <uuid/uuid.h> 28400" "$ac_c_undeclared_builtin_options" "CFLAGS" 28401if test "x$ac_cv_have_decl_uuid_generate" = xyes 28402then : 28403 ac_have_decl=1 28404else $as_nop 28405 ac_have_decl=0 28406fi 28407printf "%s\n" "#define HAVE_DECL_UUID_GENERATE $ac_have_decl" >>confdefs.h 28408if test $ac_have_decl = 1 28409then : 28410 28411else $as_nop 28412 have_util_linux_uuid_c_bindings=no 28413fi 28414 28415else $as_nop 28416 have_util_linux_uuid_c_bindings=no 28417fi 28418 28419done 28420 CPPFLAGS=$acx_save_CPPFLAGS 28421fi 28422else $as_nop 28423 have_util_linux_uuid_c_bindings=no 28424fi 28425 if test x"$enable_ossp_uuid" != xno -a x"$have_util_linux_uuid_c_bindings" = xno 28426then : 28427 ac_ext=c 28428ac_cpp='$CPP $CPPFLAGS' 28429ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28430ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28431ac_compiler_gnu=$ac_cv_c_compiler_gnu 28432ac_link="./libtool --mode=link --tag=CC $ac_link" 28433 28434 28435 28436 28437 28438 28439 28440 have_ossp_uuid_c_bindings=yes 28441 28442 28443# Check whether --with-ossp-uuid-root was given. 28444if test ${with_ossp_uuid_root+y} 28445then : 28446 withval=$with_ossp_uuid_root; OSSP_UUIDROOT="$with_ossp_uuid_root" 28447fi 28448 28449 if test ${OSSP_UUIDROOT+y} 28450then : 28451 if test ${OSSP_UUID_C_LIB+y} 28452then : 28453 28454else $as_nop 28455 acx_temp=$OSSP_UUIDROOT 28456 OSSP_UUID_C_LIB="-L$acx_temp/lib" 28457fi 28458 if test ${OSSP_UUID_C_INCLUDE+y} 28459then : 28460 28461else $as_nop 28462 acx_temp=$OSSP_UUIDROOT 28463 OSSP_UUID_C_INCLUDE="-I$acx_temp/include" 28464fi 28465fi 28466 28467# Check whether --with-ossp-uuid-include was given. 28468if test ${with_ossp_uuid_include+y} 28469then : 28470 withval=$with_ossp_uuid_include; OSSP_UUID_C_INCLUDE="-I$with_ossp_uuid_include" 28471fi 28472 28473 28474 28475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid.h extra include path" >&5 28476printf %s "checking for uuid.h extra include path... " >&6; } 28477 if test ${acx_cv_c_include_uuid_h+y} 28478then : 28479 printf %s "(cached) " >&6 28480else $as_nop 28481 ac_include_search_uuid_h_SAVE="$CPPFLAGS" 28482 while :; do 28483 for ac_incdir in '' /usr/include/ossp; do 28484 if test -z "$ac_incdir" 28485then : 28486 ac_res="none required" 28487 CPPFLAGS="$OSSP_UUID_C_INCLUDE $ac_include_search_uuid_h_SAVE" 28488else $as_nop 28489 ac_res="-I$ac_incdir" 28490 CPPFLAGS="$OSSP_UUID_C_INCLUDE $ac_res $ac_include_search_uuid_h_SAVE" 28491fi 28492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28493/* end confdefs.h. */ 28494#include <uuid.h> 28495$ac_includes_default 28496 28497#include <uuid.h> 28498_ACEOF 28499if ac_fn_c_try_compile "$LINENO" 28500then : 28501 acx_cv_c_include_uuid_h=yes 28502fi 28503rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 28504 if test ${acx_cv_c_include_uuid_h+y} 28505then : 28506 if test -z "$ac_incdir" 28507then : 28508 acx_cv_c_include_uuid_h="$OSSP_UUID_C_INCLUDE" 28509else $as_nop 28510 acx_cv_c_include_uuid_h="$OSSP_UUID_C_INCLUDE -I$ac_incdir" 28511fi 28512fi 28513 if test ${acx_cv_c_include_uuid_h+y} 28514then : 28515 break 28516fi 28517 done 28518 if test ${acx_cv_c_include_uuid_h+y} 28519then : 28520 break 28521fi 28522 28523 break 28524 done 28525 CPPFLAGS=$ac_include_search_uuid_h_SAVE 28526fi 28527 28528 if test ${acx_cv_c_include_uuid_h+y} 28529then : 28530 acx_temp=$acx_cv_c_include_uuid_h 28531 if test x"$acx_temp" = x 28532then : 28533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (none required)" >&5 28534printf "%s\n" "(none required)" >&6; } 28535else $as_nop 28536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acx_temp" >&5 28537printf "%s\n" "$acx_temp" >&6; } 28538fi 28539else $as_nop 28540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5 28541printf "%s\n" "not found" >&6; } 28542fi 28543 if test ${acx_cv_c_include_uuid_h+y} 28544then : 28545 acx_temp=$acx_cv_c_include_uuid_h 28546 acx_temp=`echo "$acx_temp" | sed -e 's/^ *//;s/ *$//'` 28547 OSSP_UUID_C_INCLUDE=$acx_temp 28548else $as_nop 28549 have_ossp_uuid_c_bindings=no 28550 28551fi 28552 28553 28554# Check whether --with-ossp-uuid-lib was given. 28555if test ${with_ossp_uuid_lib+y} 28556then : 28557 withval=$with_ossp_uuid_lib; OSSP_UUID_C_LIB="-L$with_ossp_uuid_lib" 28558fi 28559 28560 28561 28562 if test "x$have_ossp_uuid_c_bindings" = xyes 28563then : 28564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_create" >&5 28565printf %s "checking for library containing uuid_create... " >&6; } 28566 if test ${acx_cv_option_search_uuid_create_c+y} 28567then : 28568 printf %s "(cached) " >&6 28569else $as_nop 28570 while :; do 28571 acx_option_func_search_save_LIBS="$LIBS" 28572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28573/* end confdefs.h. */ 28574 28575/* Override any GCC internal prototype to avoid an error. 28576 Use char because int might match the return type of a GCC 28577 builtin and then its argument prototype would still apply. */ 28578char uuid_create (); 28579int 28580main (void) 28581{ 28582return uuid_create (); 28583 ; 28584 return 0; 28585} 28586_ACEOF 28587 for ac_lib in '' ossp-uuid uuid; do 28588 if test -z "$ac_lib" 28589then : 28590 ac_res="none required" 28591 LIBS="$OSSP_UUID_C_LIB $acx_option_func_search_save_LIBS" 28592else $as_nop 28593 ac_res="-l$ac_lib" 28594 LIBS="$OSSP_UUID_C_LIB $ac_res $acx_option_func_search_save_LIBS" 28595fi 28596 if ac_fn_c_try_link "$LINENO" 28597then : 28598 if test x"$ac_res" = x"none required" 28599then : 28600 acx_cv_option_search_uuid_create_c="$OSSP_UUID_C_LIB " 28601else $as_nop 28602 acx_cv_option_search_uuid_create_c="$OSSP_UUID_C_LIB -l$ac_lib " 28603fi 28604fi 28605rm -f core conftest.err conftest.$ac_objext conftest.beam \ 28606 conftest$ac_exeext 28607 if test ${acx_cv_option_search_uuid_create_c+y} 28608then : 28609 break 28610fi 28611 done 28612 rm conftest.$ac_ext 28613 LIBS="$acx_option_func_search_save_LIBS" 28614 if test ${acx_cv_option_search_uuid_create_c+y} 28615then : 28616 break 28617fi 28618 28619 break 28620 done 28621fi 28622 28623 if test ${acx_cv_option_search_uuid_create_c+y} 28624then : 28625 if test x"$acx_cv_option_search_uuid_create_c" = x 28626then : 28627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (none required)" >&5 28628printf "%s\n" "(none required)" >&6; } 28629else $as_nop 28630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acx_cv_option_search_uuid_create_c" >&5 28631printf "%s\n" "$acx_cv_option_search_uuid_create_c" >&6; } 28632fi 28633else $as_nop 28634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5 28635printf "%s\n" "not found" >&6; } 28636fi 28637 if test ${acx_cv_option_search_uuid_create_c+y} 28638then : 28639 28640else $as_nop 28641 have_ossp_uuid_c_bindings=no 28642 28643fi 28644 28645 acx_temp=$acx_cv_option_search_uuid_create_c 28646 acx_temp=`echo "$acx_temp" | sed -e 's/^ *//;s/ *$//'` 28647 OSSP_UUID_C_LIB=$acx_temp 28648 28649fi 28650 28651 28652 28653 28654 28655 28656 ac_ext=c 28657ac_cpp='$CPP $CPPFLAGS' 28658ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28659ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28660ac_compiler_gnu=$ac_cv_c_compiler_gnu 28661ac_link="./libtool --mode=link --tag=CC $ac_link" 28662 28663 if test x"$have_ossp_uuid_c_bindings" = xyes 28664then : 28665 acx_save_CPPFLAGS=$CPPFLAGS 28666 CPPFLAGS="${CPPFLAGS+$CPPFLAGS }$OSSP_UUID_C_INCLUDE" 28667 for ac_header in uuid.h 28668do : 28669 ac_fn_c_check_header_compile "$LINENO" "uuid.h" "ac_cv_header_uuid_h" "#include <uuid.h> 28670$ac_includes_default 28671" 28672if test "x$ac_cv_header_uuid_h" = xyes 28673then : 28674 printf "%s\n" "#define HAVE_UUID_H 1" >>confdefs.h 28675 ac_fn_check_decl "$LINENO" "uuid_create" "ac_cv_have_decl_uuid_create" "#include <uuid.h> 28676$ac_includes_default 28677" "$ac_c_undeclared_builtin_options" "CFLAGS" 28678if test "x$ac_cv_have_decl_uuid_create" = xyes 28679then : 28680 ac_have_decl=1 28681else $as_nop 28682 ac_have_decl=0 28683fi 28684printf "%s\n" "#define HAVE_DECL_UUID_CREATE $ac_have_decl" >>confdefs.h 28685if test $ac_have_decl = 1 28686then : 28687 ac_fn_check_decl "$LINENO" "UUID_MAKE_V5" "ac_cv_have_decl_UUID_MAKE_V5" "#include <uuid.h> 28688$ac_includes_default 28689" "$ac_c_undeclared_builtin_options" "CFLAGS" 28690if test "x$ac_cv_have_decl_UUID_MAKE_V5" = xyes 28691then : 28692 ac_have_decl=1 28693else $as_nop 28694 ac_have_decl=0 28695fi 28696printf "%s\n" "#define HAVE_DECL_UUID_MAKE_V5 $ac_have_decl" >>confdefs.h 28697if test $ac_have_decl = 1 28698then : 28699 28700else $as_nop 28701 have_ossp_uuid_c_bindings=no 28702fi 28703 28704else $as_nop 28705 have_ossp_uuid_c_bindings=no 28706fi 28707 28708else $as_nop 28709 have_ossp_uuid_c_bindings=no 28710fi 28711 28712done 28713 CPPFLAGS=$acx_save_CPPFLAGS 28714fi 28715else $as_nop 28716 have_ossp_uuid_c_bindings=no 28717fi 28718 # check for DCE uuid_create if util-linux and OSSP variants cannot be found 28719 if test x"$enable_dce_uuid" != xno -a x"$have_util_linux_uuid_c_bindings$have_ossp_uuid_c_bindings" = xnono 28720then : 28721 ac_ext=c 28722ac_cpp='$CPP $CPPFLAGS' 28723ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28724ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28725ac_compiler_gnu=$ac_cv_c_compiler_gnu 28726ac_link="./libtool --mode=link --tag=CC $ac_link" 28727 28728 28729 28730 28731 28732 28733 28734 have_dce_uuid_c_bindings=yes 28735 28736 28737# Check whether --with-dce-uuid-root was given. 28738if test ${with_dce_uuid_root+y} 28739then : 28740 withval=$with_dce_uuid_root; DCE_UUIDROOT="$with_dce_uuid_root" 28741fi 28742 28743 if test ${DCE_UUIDROOT+y} 28744then : 28745 if test ${DCE_UUID_C_LIB+y} 28746then : 28747 28748else $as_nop 28749 acx_temp=$DCE_UUIDROOT 28750 DCE_UUID_C_LIB="-L$acx_temp/lib" 28751fi 28752 if test ${DCE_UUID_C_INCLUDE+y} 28753then : 28754 28755else $as_nop 28756 acx_temp=$DCE_UUIDROOT 28757 DCE_UUID_C_INCLUDE="-I$acx_temp/include" 28758fi 28759fi 28760 28761# Check whether --with-dce-uuid-include was given. 28762if test ${with_dce_uuid_include+y} 28763then : 28764 withval=$with_dce_uuid_include; DCE_UUID_C_INCLUDE="-I$with_dce_uuid_include" 28765fi 28766 28767 28768 28769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid.h extra include path" >&5 28770printf %s "checking for uuid.h extra include path... " >&6; } 28771 if test ${acx_cv_c_include_uuid_h+y} 28772then : 28773 printf %s "(cached) " >&6 28774else $as_nop 28775 ac_include_search_uuid_h_SAVE="$CPPFLAGS" 28776 while :; do 28777 for ac_incdir in ''; do 28778 if test -z "$ac_incdir" 28779then : 28780 ac_res="none required" 28781 CPPFLAGS="$DCE_UUID_C_INCLUDE $ac_include_search_uuid_h_SAVE" 28782else $as_nop 28783 ac_res="-I$ac_incdir" 28784 CPPFLAGS="$DCE_UUID_C_INCLUDE $ac_res $ac_include_search_uuid_h_SAVE" 28785fi 28786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28787/* end confdefs.h. */ 28788$ac_includes_default 28789#include <uuid.h> 28790_ACEOF 28791if ac_fn_c_try_compile "$LINENO" 28792then : 28793 acx_cv_c_include_uuid_h=yes 28794fi 28795rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 28796 if test ${acx_cv_c_include_uuid_h+y} 28797then : 28798 if test -z "$ac_incdir" 28799then : 28800 acx_cv_c_include_uuid_h="$DCE_UUID_C_INCLUDE" 28801else $as_nop 28802 acx_cv_c_include_uuid_h="$DCE_UUID_C_INCLUDE -I$ac_incdir" 28803fi 28804fi 28805 if test ${acx_cv_c_include_uuid_h+y} 28806then : 28807 break 28808fi 28809 done 28810 if test ${acx_cv_c_include_uuid_h+y} 28811then : 28812 break 28813fi 28814 28815 break 28816 done 28817 CPPFLAGS=$ac_include_search_uuid_h_SAVE 28818fi 28819 28820 if test ${acx_cv_c_include_uuid_h+y} 28821then : 28822 acx_temp=$acx_cv_c_include_uuid_h 28823 if test x"$acx_temp" = x 28824then : 28825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (none required)" >&5 28826printf "%s\n" "(none required)" >&6; } 28827else $as_nop 28828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acx_temp" >&5 28829printf "%s\n" "$acx_temp" >&6; } 28830fi 28831else $as_nop 28832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5 28833printf "%s\n" "not found" >&6; } 28834fi 28835 if test ${acx_cv_c_include_uuid_h+y} 28836then : 28837 acx_temp=$acx_cv_c_include_uuid_h 28838 acx_temp=`echo "$acx_temp" | sed -e 's/^ *//;s/ *$//'` 28839 DCE_UUID_C_INCLUDE=$acx_temp 28840else $as_nop 28841 have_dce_uuid_c_bindings=no 28842 28843fi 28844 28845 28846# Check whether --with-dce-uuid-lib was given. 28847if test ${with_dce_uuid_lib+y} 28848then : 28849 withval=$with_dce_uuid_lib; DCE_UUID_C_LIB="-L$with_dce_uuid_lib" 28850fi 28851 28852 28853 28854 if test "x$have_dce_uuid_c_bindings" = xyes 28855then : 28856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_create" >&5 28857printf %s "checking for library containing uuid_create... " >&6; } 28858 if test ${acx_cv_option_search_uuid_create_c+y} 28859then : 28860 printf %s "(cached) " >&6 28861else $as_nop 28862 while :; do 28863 acx_option_func_search_save_LIBS="$LIBS" 28864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28865/* end confdefs.h. */ 28866 28867/* Override any GCC internal prototype to avoid an error. 28868 Use char because int might match the return type of a GCC 28869 builtin and then its argument prototype would still apply. */ 28870char uuid_create (); 28871int 28872main (void) 28873{ 28874return uuid_create (); 28875 ; 28876 return 0; 28877} 28878_ACEOF 28879 for ac_lib in '' ; do 28880 if test -z "$ac_lib" 28881then : 28882 ac_res="none required" 28883 LIBS="$DCE_UUID_C_LIB $acx_option_func_search_save_LIBS" 28884else $as_nop 28885 ac_res="-l$ac_lib" 28886 LIBS="$DCE_UUID_C_LIB $ac_res $acx_option_func_search_save_LIBS" 28887fi 28888 if ac_fn_c_try_link "$LINENO" 28889then : 28890 if test x"$ac_res" = x"none required" 28891then : 28892 acx_cv_option_search_uuid_create_c="$DCE_UUID_C_LIB " 28893else $as_nop 28894 acx_cv_option_search_uuid_create_c="$DCE_UUID_C_LIB -l$ac_lib " 28895fi 28896fi 28897rm -f core conftest.err conftest.$ac_objext conftest.beam \ 28898 conftest$ac_exeext 28899 if test ${acx_cv_option_search_uuid_create_c+y} 28900then : 28901 break 28902fi 28903 done 28904 rm conftest.$ac_ext 28905 LIBS="$acx_option_func_search_save_LIBS" 28906 if test ${acx_cv_option_search_uuid_create_c+y} 28907then : 28908 break 28909fi 28910 28911 break 28912 done 28913fi 28914 28915 if test ${acx_cv_option_search_uuid_create_c+y} 28916then : 28917 if test x"$acx_cv_option_search_uuid_create_c" = x 28918then : 28919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (none required)" >&5 28920printf "%s\n" "(none required)" >&6; } 28921else $as_nop 28922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acx_cv_option_search_uuid_create_c" >&5 28923printf "%s\n" "$acx_cv_option_search_uuid_create_c" >&6; } 28924fi 28925else $as_nop 28926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5 28927printf "%s\n" "not found" >&6; } 28928fi 28929 if test ${acx_cv_option_search_uuid_create_c+y} 28930then : 28931 28932else $as_nop 28933 have_dce_uuid_c_bindings=no 28934 28935fi 28936 28937 acx_temp=$acx_cv_option_search_uuid_create_c 28938 acx_temp=`echo "$acx_temp" | sed -e 's/^ *//;s/ *$//'` 28939 DCE_UUID_C_LIB=$acx_temp 28940 28941fi 28942 28943 28944 28945 28946 28947 28948 ac_ext=c 28949ac_cpp='$CPP $CPPFLAGS' 28950ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28951ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28952ac_compiler_gnu=$ac_cv_c_compiler_gnu 28953ac_link="./libtool --mode=link --tag=CC $ac_link" 28954 28955 if test x"$have_dce_uuid_c_bindings" = xyes 28956then : 28957 acx_save_CPPFLAGS=$CPPFLAGS 28958 CPPFLAGS="$CPPFLAGS $DCE_UUID_C_INCLUDE" 28959 for ac_header in uuid.h 28960do : 28961 ac_fn_c_check_header_compile "$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default 28962" 28963if test "x$ac_cv_header_uuid_h" = xyes 28964then : 28965 printf "%s\n" "#define HAVE_UUID_H 1" >>confdefs.h 28966 ac_fn_check_decl "$LINENO" "uuid_create" "ac_cv_have_decl_uuid_create" "$ac_includes_default 28967#include <uuid.h> 28968" "$ac_c_undeclared_builtin_options" "CFLAGS" 28969if test "x$ac_cv_have_decl_uuid_create" = xyes 28970then : 28971 ac_have_decl=1 28972else $as_nop 28973 ac_have_decl=0 28974fi 28975printf "%s\n" "#define HAVE_DECL_UUID_CREATE $ac_have_decl" >>confdefs.h 28976if test $ac_have_decl = 1 28977then : 28978 have_dce_uuid_c_bindings=yes 28979else $as_nop 28980 have_dce_uuid_c_bindings=no 28981fi 28982 28983else $as_nop 28984 have_dce_uuid_c_bindings=yes 28985fi 28986 28987done 28988 CPPFLAGS=$acx_save_CPPFLAGS 28989fi 28990fi 28991 28992if test x"$have_util_linux_uuid_c_bindings" = xyes 28993then : 28994 UUID_C_INCLUDE=$UTIL_LINUX_UUID_C_INCLUDE 28995 UUID_C_LIB=$UTIL_LINUX_UUID_C_LIB 28996elif test x"$have_ossp_uuid_c_bindings" = xyes 28997then : 28998 UUID_C_INCLUDE=$OSSP_UUID_C_INCLUDE 28999 UUID_C_LIB=$OSSP_UUID_C_LIB 29000elif test x"$have_dce_uuid_c_bindings" = xyes 29001then : 29002 UUID_C_INCLUDE=$DCE_UUID_C_INCLUDE 29003 UUID_C_LIB=$DCE_UUID_C_LIB 29004fi 29005 29006 29007LIBS="${LIBS+$LIBS }$UUID_C_LIB" 29008CPPFLAGS="${CPPFLAGS+$CPPFLAGS }$UUID_C_INCLUDE" 29009# ---------------------------------------------------------------------- 29010# Checks for the availability of ANSI-C99 functions 29011ac_fn_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "$ac_includes_default 29012#include <math.h> 29013" "$ac_c_undeclared_builtin_options" "CFLAGS" 29014if test "x$ac_cv_have_decl_isnan" = xyes 29015then : 29016 ac_have_decl=1 29017else $as_nop 29018 ac_have_decl=0 29019fi 29020printf "%s\n" "#define HAVE_DECL_ISNAN $ac_have_decl" >>confdefs.h 29021 29022 29023# check for sysconf names 29024ac_fn_check_decl "$LINENO" "_SC_LARGE_PAGESIZE" "ac_cv_have_decl__SC_LARGE_PAGESIZE" "$ac_includes_default 29025#include <limits.h> 29026#include <unistd.h> 29027" "$ac_c_undeclared_builtin_options" "CFLAGS" 29028if test "x$ac_cv_have_decl__SC_LARGE_PAGESIZE" = xyes 29029then : 29030 ac_have_decl=1 29031else $as_nop 29032 ac_have_decl=0 29033fi 29034printf "%s\n" "#define HAVE_DECL__SC_LARGE_PAGESIZE $ac_have_decl" >>confdefs.h 29035ac_fn_check_decl "$LINENO" "PAGESIZE" "ac_cv_have_decl_PAGESIZE" "$ac_includes_default 29036#include <limits.h> 29037#include <unistd.h> 29038" "$ac_c_undeclared_builtin_options" "CFLAGS" 29039if test "x$ac_cv_have_decl_PAGESIZE" = xyes 29040then : 29041 ac_have_decl=1 29042else $as_nop 29043 ac_have_decl=0 29044fi 29045printf "%s\n" "#define HAVE_DECL_PAGESIZE $ac_have_decl" >>confdefs.h 29046ac_fn_check_decl "$LINENO" "PAGE_SIZE" "ac_cv_have_decl_PAGE_SIZE" "$ac_includes_default 29047#include <limits.h> 29048#include <unistd.h> 29049" "$ac_c_undeclared_builtin_options" "CFLAGS" 29050if test "x$ac_cv_have_decl_PAGE_SIZE" = xyes 29051then : 29052 ac_have_decl=1 29053else $as_nop 29054 ac_have_decl=0 29055fi 29056printf "%s\n" "#define HAVE_DECL_PAGE_SIZE $ac_have_decl" >>confdefs.h 29057ac_fn_check_decl "$LINENO" "_SC_PAGE_SIZE" "ac_cv_have_decl__SC_PAGE_SIZE" "$ac_includes_default 29058#include <limits.h> 29059#include <unistd.h> 29060" "$ac_c_undeclared_builtin_options" "CFLAGS" 29061if test "x$ac_cv_have_decl__SC_PAGE_SIZE" = xyes 29062then : 29063 ac_have_decl=1 29064else $as_nop 29065 ac_have_decl=0 29066fi 29067printf "%s\n" "#define HAVE_DECL__SC_PAGE_SIZE $ac_have_decl" >>confdefs.h 29068ac_fn_check_decl "$LINENO" "_SC_PAGESIZE" "ac_cv_have_decl__SC_PAGESIZE" "$ac_includes_default 29069#include <limits.h> 29070#include <unistd.h> 29071" "$ac_c_undeclared_builtin_options" "CFLAGS" 29072if test "x$ac_cv_have_decl__SC_PAGESIZE" = xyes 29073then : 29074 ac_have_decl=1 29075else $as_nop 29076 ac_have_decl=0 29077fi 29078printf "%s\n" "#define HAVE_DECL__SC_PAGESIZE $ac_have_decl" >>confdefs.h 29079ac_fn_check_decl "$LINENO" "_PC_REC_XFER_ALIGN" "ac_cv_have_decl__PC_REC_XFER_ALIGN" "$ac_includes_default 29080#include <limits.h> 29081#include <unistd.h> 29082" "$ac_c_undeclared_builtin_options" "CFLAGS" 29083if test "x$ac_cv_have_decl__PC_REC_XFER_ALIGN" = xyes 29084then : 29085 ac_have_decl=1 29086else $as_nop 29087 ac_have_decl=0 29088fi 29089printf "%s\n" "#define HAVE_DECL__PC_REC_XFER_ALIGN $ac_have_decl" >>confdefs.h 29090ac_fn_check_decl "$LINENO" "POSIX_REC_XFER_ALIGN" "ac_cv_have_decl_POSIX_REC_XFER_ALIGN" "$ac_includes_default 29091#include <limits.h> 29092#include <unistd.h> 29093" "$ac_c_undeclared_builtin_options" "CFLAGS" 29094if test "x$ac_cv_have_decl_POSIX_REC_XFER_ALIGN" = xyes 29095then : 29096 ac_have_decl=1 29097else $as_nop 29098 ac_have_decl=0 29099fi 29100printf "%s\n" "#define HAVE_DECL_POSIX_REC_XFER_ALIGN $ac_have_decl" >>confdefs.h 29101 29102# 29103# Check for non-standard builtin 29104for builtin in __builtin_ctz 29105do : 29106 29107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether __builtin_ctz is declared" >&5 29108printf %s "checking whether __builtin_ctz is declared... " >&6; } 29109if test ${acx_cv_have_decl___builtin_ctz+y} 29110then : 29111 printf %s "(cached) " >&6 29112else $as_nop 29113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29114/* end confdefs.h. */ 29115 29116int 29117main (void) 29118{ 29119 unsigned lbz = __builtin_ctz(56U) 29120 ; 29121 return 0; 29122} 29123_ACEOF 29124if ac_fn_c_try_link "$LINENO" 29125then : 29126 acx_cv_have_decl___builtin_ctz=yes 29127else $as_nop 29128 acx_cv_have_decl___builtin_ctz=no 29129fi 29130rm -f core conftest.err conftest.$ac_objext conftest.beam \ 29131 conftest$ac_exeext conftest.$ac_ext 29132fi 29133{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acx_cv_have_decl___builtin_ctz" >&5 29134printf "%s\n" "$acx_cv_have_decl___builtin_ctz" >&6; } 29135 if test "x$acx_cv_have_decl___builtin_ctz" = xyes 29136then : 29137 printf "%s\n" "#define HAVE_DECL___BUILTIN_CTZ 1" >>confdefs.h 29138 29139 break 29140else $as_nop 29141 printf "%s\n" "#define HAVE_DECL___BUILTIN_CTZ 0" >>confdefs.h 29142 29143fi 29144done 29145 29146 29147# Check compiler version 29148case "$CC" in 29149 pgcc*) COMP_VERSION=`$CC -V | head -2 | tail -n 1`;; 29150 *gcc*) COMP_VERSION=`$CC --version | head -n 1`;; 29151 g++*) COMP_VERSION=`$CC --version | head -n 1`;; 29152 clang*) COMP_VERSION=`$CC --version | head -n 1`;; 29153 sxc*) COMP_VERSION=`$CC -V 2>&1 | tail -n 1`;; 29154 xlc*) COMP_VERSION=`$CC -qversion 2>&1 | head -n 1`;; 29155 *) 29156 # 'head -n 1' exits after printing the first line, which closes the pipe 29157 # and kills the compiler's process leaving it no chance to clean any 29158 # temporary files it might have created (e.g. Intel compiler creates 29159 # 'a.out' when it is called with additional flags like -I, -L, etc., 29160 # which is the case when $CC is an MPI wrapper). Therefore, we have to 29161 # run the processes one after another: 29162 COMP_VERSION=`$CC -V 2>&1` 29163 COMP_VERSION=`echo "$COMP_VERSION" | head -n 1` ;; 29164esac 29165 29166if test -z "$COMP_VERSION" ; then COMP_VERSION="unknown"; fi; 29167 29168printf "%s\n" "#define COMP_VERSION \"$COMP_VERSION\"" >>confdefs.h 29169 29170 29171# Check for system type 29172 29173printf "%s\n" "#define SYSTEM_TYPE \"$ac_cv_build\"" >>confdefs.h 29174 29175SYSTEM_TYPE="$ac_cv_build" 29176 29177# ----------------------------------------------------------------------- 29178# Check for math library and add -lm to LIBS 29179{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5 29180printf %s "checking for library containing floor... " >&6; } 29181if test ${ac_cv_search_floor+y} 29182then : 29183 printf %s "(cached) " >&6 29184else $as_nop 29185 ac_func_search_save_LIBS=$LIBS 29186cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29187/* end confdefs.h. */ 29188 29189/* Override any GCC internal prototype to avoid an error. 29190 Use char because int might match the return type of a GCC 29191 builtin and then its argument prototype would still apply. */ 29192char floor (); 29193int 29194main (void) 29195{ 29196return floor (); 29197 ; 29198 return 0; 29199} 29200_ACEOF 29201for ac_lib in '' m 29202do 29203 if test -z "$ac_lib"; then 29204 ac_res="none required" 29205 else 29206 ac_res=-l$ac_lib 29207 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 29208 fi 29209 if ac_fn_c_try_link "$LINENO" 29210then : 29211 ac_cv_search_floor=$ac_res 29212fi 29213rm -f core conftest.err conftest.$ac_objext conftest.beam \ 29214 conftest$ac_exeext 29215 if test ${ac_cv_search_floor+y} 29216then : 29217 break 29218fi 29219done 29220if test ${ac_cv_search_floor+y} 29221then : 29222 29223else $as_nop 29224 ac_cv_search_floor=no 29225fi 29226rm conftest.$ac_ext 29227LIBS=$ac_func_search_save_LIBS 29228fi 29229{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floor" >&5 29230printf "%s\n" "$ac_cv_search_floor" >&6; } 29231ac_res=$ac_cv_search_floor 29232if test "$ac_res" != no 29233then : 29234 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 29235 29236fi 29237 29238# ---------------------------------------------------------------------- 29239# Add basic configure options 29240 29241# ---------------------------------------------------------------------- 29242# Checks for multithreaded compiling + linking 29243 29244# Check whether --with-threads was given. 29245if test ${with_threads+y} 29246then : 29247 withval=$with_threads; 29248else $as_nop 29249 with_threads=yes 29250fi 29251 29252THREADS_INCLUDE='' 29253THREADS_LIBS='' 29254case $with_threads in #( 29255 no) : 29256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking multithreading" >&5 29257printf %s "checking multithreading... " >&6; } 29258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: suppressed" >&5 29259printf "%s\n" "suppressed" >&6; } ;; #( 29260 yes) : 29261 29262 29263ac_ext=c 29264ac_cpp='$CPP $CPPFLAGS' 29265ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 29266ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 29267ac_compiler_gnu=$ac_cv_c_compiler_gnu 29268ac_link="./libtool --mode=link --tag=CC $ac_link" 29269 29270ax_pthread_ok=no 29271 29272# We used to check for pthread.h first, but this fails if pthread.h 29273# requires special compiler flags (e.g. on True64 or Sequent). 29274# It gets checked for in the link test anyway. 29275 29276# First of all, check if the user has set any of the PTHREAD_LIBS, 29277# etcetera environment variables, and if threads linking works using 29278# them: 29279if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 29280 save_CFLAGS="$CFLAGS" 29281 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 29282 save_LIBS="$LIBS" 29283 LIBS="$PTHREAD_LIBS $LIBS" 29284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 29285printf %s "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 29286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29287/* end confdefs.h. */ 29288 29289/* Override any GCC internal prototype to avoid an error. 29290 Use char because int might match the return type of a GCC 29291 builtin and then its argument prototype would still apply. */ 29292char pthread_join (); 29293int 29294main (void) 29295{ 29296return pthread_join (); 29297 ; 29298 return 0; 29299} 29300_ACEOF 29301if ac_fn_c_try_link "$LINENO" 29302then : 29303 ax_pthread_ok=yes 29304fi 29305rm -f core conftest.err conftest.$ac_objext conftest.beam \ 29306 conftest$ac_exeext conftest.$ac_ext 29307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 29308printf "%s\n" "$ax_pthread_ok" >&6; } 29309 if test x"$ax_pthread_ok" = xno; then 29310 PTHREAD_LIBS="" 29311 PTHREAD_CFLAGS="" 29312 fi 29313 LIBS="$save_LIBS" 29314 CFLAGS="$save_CFLAGS" 29315fi 29316 29317# We must check for the threads library under a number of different 29318# names; the ordering is very important because some systems 29319# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 29320# libraries is broken (non-POSIX). 29321 29322# Create a list of thread flags to try. Items starting with a "-" are 29323# C compiler flags, and other items are library names, except for "none" 29324# which indicates that we try without any flags at all, and "pthread-config" 29325# which is a program returning the flags for the Pth emulation library. 29326 29327ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 29328 29329# The ordering *is* (sometimes) important. Some notes on the 29330# individual items follow: 29331 29332# pthreads: AIX (must check this before -lpthread) 29333# none: in case threads are in libc; should be tried before -Kthread and 29334# other compiler flags to prevent continual compiler warnings 29335# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 29336# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 29337# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 29338# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 29339# -pthreads: Solaris/gcc 29340# -mthreads: Mingw32/gcc, Lynx/gcc 29341# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 29342# doesn't hurt to check since this sometimes defines pthreads too; 29343# also defines -D_REENTRANT) 29344# ... -mt is also the pthreads flag for HP/aCC 29345# pthread: Linux, etcetera 29346# --thread-safe: KAI C++ 29347# pthread-config: use pthread-config program (for GNU Pth library) 29348 29349case ${host_os} in 29350 solaris*) 29351 29352 # On Solaris (at least, for some versions), libc contains stubbed 29353 # (non-functional) versions of the pthreads routines, so link-based 29354 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ 29355 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 29356 # a function called by this macro, so we could check for that, but 29357 # who knows whether they'll stub that too in a future libc.) So, 29358 # we'll just look for -pthreads and -lpthread first: 29359 29360 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" 29361 ;; 29362 29363 darwin*) 29364 ax_pthread_flags="-pthread $ax_pthread_flags" 29365 ;; 29366esac 29367 29368# Clang doesn't consider unrecognized options an error unless we specify 29369# -Werror. We throw in some extra Clang-specific options to ensure that 29370# this doesn't happen for GCC, which also accepts -Werror. 29371 29372{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5 29373printf %s "checking if compiler needs -Werror to reject unknown flags... " >&6; } 29374save_CFLAGS="$CFLAGS" 29375ax_pthread_extra_flags="-Werror" 29376CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument" 29377cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29378/* end confdefs.h. */ 29379int foo(void); 29380int 29381main (void) 29382{ 29383foo() 29384 ; 29385 return 0; 29386} 29387_ACEOF 29388if ac_fn_c_try_compile "$LINENO" 29389then : 29390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29391printf "%s\n" "yes" >&6; } 29392else $as_nop 29393 ax_pthread_extra_flags= 29394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29395printf "%s\n" "no" >&6; } 29396fi 29397rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 29398CFLAGS="$save_CFLAGS" 29399 29400if test x"$ax_pthread_ok" = xno; then 29401for flag in $ax_pthread_flags; do 29402 29403 case $flag in 29404 none) 29405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 29406printf %s "checking whether pthreads work without any flags... " >&6; } 29407 ;; 29408 29409 -*) 29410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 29411printf %s "checking whether pthreads work with $flag... " >&6; } 29412 PTHREAD_CFLAGS="$flag" 29413 ;; 29414 29415 pthread-config) 29416 # Extract the first word of "pthread-config", so it can be a program name with args. 29417set dummy pthread-config; ac_word=$2 29418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29419printf %s "checking for $ac_word... " >&6; } 29420if test ${ac_cv_prog_ax_pthread_config+y} 29421then : 29422 printf %s "(cached) " >&6 29423else $as_nop 29424 if test -n "$ax_pthread_config"; then 29425 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 29426else 29427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29428for as_dir in $PATH 29429do 29430 IFS=$as_save_IFS 29431 case $as_dir in #((( 29432 '') as_dir=./ ;; 29433 */) ;; 29434 *) as_dir=$as_dir/ ;; 29435 esac 29436 for ac_exec_ext in '' $ac_executable_extensions; do 29437 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 29438 ac_cv_prog_ax_pthread_config="yes" 29439 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 29440 break 2 29441 fi 29442done 29443 done 29444IFS=$as_save_IFS 29445 29446 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 29447fi 29448fi 29449ax_pthread_config=$ac_cv_prog_ax_pthread_config 29450if test -n "$ax_pthread_config"; then 29451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 29452printf "%s\n" "$ax_pthread_config" >&6; } 29453else 29454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29455printf "%s\n" "no" >&6; } 29456fi 29457 29458 29459 if test x"$ax_pthread_config" = xno; then continue; fi 29460 PTHREAD_CFLAGS="`pthread-config --cflags`" 29461 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 29462 ;; 29463 29464 *) 29465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 29466printf %s "checking for the pthreads library -l$flag... " >&6; } 29467 PTHREAD_LIBS="-l$flag" 29468 ;; 29469 esac 29470 29471 save_LIBS="$LIBS" 29472 save_CFLAGS="$CFLAGS" 29473 LIBS="$PTHREAD_LIBS $LIBS" 29474 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags" 29475 29476 # Check for various functions. We must include pthread.h, 29477 # since some functions may be macros. (On the Sequent, we 29478 # need a special flag -Kthread to make this header compile.) 29479 # We check for pthread_join because it is in -lpthread on IRIX 29480 # while pthread_create is in libc. We check for pthread_attr_init 29481 # due to DEC craziness with -lpthreads. We check for 29482 # pthread_cleanup_push because it is one of the few pthread 29483 # functions on Solaris that doesn't have a non-functional libc stub. 29484 # We try pthread_create on general principles. 29485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29486/* end confdefs.h. */ 29487#include <pthread.h> 29488 static void routine(void *a) { a = 0; } 29489 static void *start_routine(void *a) { return a; } 29490int 29491main (void) 29492{ 29493pthread_t th; pthread_attr_t attr; 29494 pthread_create(&th, 0, start_routine, 0); 29495 pthread_join(th, 0); 29496 pthread_attr_init(&attr); 29497 pthread_cleanup_push(routine, 0); 29498 pthread_cleanup_pop(0) /* ; */ 29499 ; 29500 return 0; 29501} 29502_ACEOF 29503if ac_fn_c_try_link "$LINENO" 29504then : 29505 ax_pthread_ok=yes 29506fi 29507rm -f core conftest.err conftest.$ac_objext conftest.beam \ 29508 conftest$ac_exeext conftest.$ac_ext 29509 29510 LIBS="$save_LIBS" 29511 CFLAGS="$save_CFLAGS" 29512 29513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 29514printf "%s\n" "$ax_pthread_ok" >&6; } 29515 if test "x$ax_pthread_ok" = xyes; then 29516 break; 29517 fi 29518 29519 PTHREAD_LIBS="" 29520 PTHREAD_CFLAGS="" 29521done 29522fi 29523 29524# Various other checks: 29525if test "x$ax_pthread_ok" = xyes; then 29526 save_LIBS="$LIBS" 29527 LIBS="$PTHREAD_LIBS $LIBS" 29528 save_CFLAGS="$CFLAGS" 29529 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 29530 29531 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 29532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 29533printf %s "checking for joinable pthread attribute... " >&6; } 29534 attr_name=unknown 29535 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 29536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29537/* end confdefs.h. */ 29538#include <pthread.h> 29539int 29540main (void) 29541{ 29542int attr = $attr; return attr /* ; */ 29543 ; 29544 return 0; 29545} 29546_ACEOF 29547if ac_fn_c_try_link "$LINENO" 29548then : 29549 attr_name=$attr; break 29550fi 29551rm -f core conftest.err conftest.$ac_objext conftest.beam \ 29552 conftest$ac_exeext conftest.$ac_ext 29553 done 29554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 29555printf "%s\n" "$attr_name" >&6; } 29556 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 29557 29558printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $attr_name" >>confdefs.h 29559 29560 fi 29561 29562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 29563printf %s "checking if more special flags are required for pthreads... " >&6; } 29564 flag=no 29565 case ${host_os} in 29566 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";; 29567 osf* | hpux*) flag="-D_REENTRANT";; 29568 solaris*) 29569 if test "$GCC" = "yes"; then 29570 flag="-D_REENTRANT" 29571 else 29572 # TODO: What about Clang on Solaris? 29573 flag="-mt -D_REENTRANT" 29574 fi 29575 ;; 29576 esac 29577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $flag" >&5 29578printf "%s\n" "$flag" >&6; } 29579 if test "x$flag" != xno; then 29580 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 29581 fi 29582 29583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 29584printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; } 29585if test ${ax_cv_PTHREAD_PRIO_INHERIT+y} 29586then : 29587 printf %s "(cached) " >&6 29588else $as_nop 29589 29590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29591/* end confdefs.h. */ 29592#include <pthread.h> 29593int 29594main (void) 29595{ 29596int i = PTHREAD_PRIO_INHERIT; 29597 ; 29598 return 0; 29599} 29600_ACEOF 29601if ac_fn_c_try_link "$LINENO" 29602then : 29603 ax_cv_PTHREAD_PRIO_INHERIT=yes 29604else $as_nop 29605 ax_cv_PTHREAD_PRIO_INHERIT=no 29606fi 29607rm -f core conftest.err conftest.$ac_objext conftest.beam \ 29608 conftest$ac_exeext conftest.$ac_ext 29609 29610fi 29611{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 29612printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } 29613 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" 29614then : 29615 29616printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h 29617 29618fi 29619 29620 LIBS="$save_LIBS" 29621 CFLAGS="$save_CFLAGS" 29622 29623 # More AIX lossage: compile with *_r variant 29624 if test "x$GCC" != xyes; then 29625 case $host_os in 29626 aix*) 29627 case "x/$CC" in #( 29628 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : 29629 #handle absolute path differently from PATH based program lookup 29630 case "x$CC" in #( 29631 x/*) : 29632 if as_fn_executable_p ${CC}_r 29633then : 29634 PTHREAD_CC="${CC}_r" 29635fi ;; #( 29636 *) : 29637 for ac_prog in ${CC}_r 29638do 29639 # Extract the first word of "$ac_prog", so it can be a program name with args. 29640set dummy $ac_prog; ac_word=$2 29641{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29642printf %s "checking for $ac_word... " >&6; } 29643if test ${ac_cv_prog_PTHREAD_CC+y} 29644then : 29645 printf %s "(cached) " >&6 29646else $as_nop 29647 if test -n "$PTHREAD_CC"; then 29648 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 29649else 29650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29651for as_dir in $PATH 29652do 29653 IFS=$as_save_IFS 29654 case $as_dir in #((( 29655 '') as_dir=./ ;; 29656 */) ;; 29657 *) as_dir=$as_dir/ ;; 29658 esac 29659 for ac_exec_ext in '' $ac_executable_extensions; do 29660 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 29661 ac_cv_prog_PTHREAD_CC="$ac_prog" 29662 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 29663 break 2 29664 fi 29665done 29666 done 29667IFS=$as_save_IFS 29668 29669fi 29670fi 29671PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 29672if test -n "$PTHREAD_CC"; then 29673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 29674printf "%s\n" "$PTHREAD_CC" >&6; } 29675else 29676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29677printf "%s\n" "no" >&6; } 29678fi 29679 29680 29681 test -n "$PTHREAD_CC" && break 29682done 29683test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 29684 ;; 29685esac ;; #( 29686 *) : 29687 ;; 29688esac 29689 ;; 29690 esac 29691 fi 29692fi 29693 29694test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 29695 29696 29697 29698 29699 29700# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 29701if test x"$ax_pthread_ok" = xyes; then 29702 29703printf "%s\n" "#define HAVE_LIBPTHREAD 1" >>confdefs.h 29704 29705 : 29706else 29707 ax_pthread_ok=no 29708 as_fn_error $? "multithreaded settings NOT found" "$LINENO" 5 29709fi 29710ac_ext=c 29711ac_cpp='$CPP $CPPFLAGS' 29712ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 29713ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 29714ac_compiler_gnu=$ac_cv_c_compiler_gnu 29715ac_link="./libtool --mode=link --tag=CC $ac_link" 29716 29717 29718 LIBS="$PTHREAD_LIBS $LIBS" 29719 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 29720 CC="$PTHREAD_CC" 29721 printf "%s\n" "CC:$CC CFLAGS:$CFLAGS LIBS:$LIBS" ;; #( 29722 *) : 29723 THREADS_ROOT=$with_threads 29724 LDFLAGS="-L$THREADS_ROOT/lib $LDFLAGS" 29725 CPPFLAGS="-I$THREADS_ROOT/include $CPPFLAGS " 29726 ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default 29727" 29728if test "x$ac_cv_header_pthread_h" = xyes 29729then : 29730 printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h 29731 29732fi 29733 29734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 29735printf %s "checking for pthread_create in -lpthread... " >&6; } 29736if test ${ac_cv_lib_pthread_pthread_create+y} 29737then : 29738 printf %s "(cached) " >&6 29739else $as_nop 29740 ac_check_lib_save_LIBS=$LIBS 29741LIBS="-lpthread $LIBS" 29742cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29743/* end confdefs.h. */ 29744 29745/* Override any GCC internal prototype to avoid an error. 29746 Use char because int might match the return type of a GCC 29747 builtin and then its argument prototype would still apply. */ 29748char pthread_create (); 29749int 29750main (void) 29751{ 29752return pthread_create (); 29753 ; 29754 return 0; 29755} 29756_ACEOF 29757if ac_fn_c_try_link "$LINENO" 29758then : 29759 ac_cv_lib_pthread_pthread_create=yes 29760else $as_nop 29761 ac_cv_lib_pthread_pthread_create=no 29762fi 29763rm -f core conftest.err conftest.$ac_objext conftest.beam \ 29764 conftest$ac_exeext conftest.$ac_ext 29765LIBS=$ac_check_lib_save_LIBS 29766fi 29767{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5 29768printf "%s\n" "$ac_cv_lib_pthread_pthread_create" >&6; } 29769if test "x$ac_cv_lib_pthread_pthread_create" = xyes 29770then : 29771 printf "%s\n" "#define HAVE_LIBPTHREAD 1" >>confdefs.h 29772 29773 LIBS="-lpthread $LIBS" 29774 29775fi 29776 29777 THREADS_LIBS=" -L$THREADS_ROOT/lib -lpthread" 29778 THREADS_INCLUDE=" -I$THREADS_ROOT/include" ;; #( 29779 *) : 29780 ;; 29781esac 29782 29783 29784# ---------------------------------------------------------------------- 29785# Compile application with FDB5 library 29786FDB5_INCLUDE='' 29787FDB5_LIBS='' 29788 29789# Check whether --with-fdb5 was given. 29790if test ${with_fdb5+y} 29791then : 29792 withval=$with_fdb5; case "$with_fdb5" in #( 29793 no) : 29794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fdb5 library" >&5 29795printf %s "checking for fdb5 library... " >&6; } 29796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: suppressed" >&5 29797printf "%s\n" "suppressed" >&6; } ;; #( 29798 yes) : 29799 for ac_header in fdb5/api/fdb_c.h 29800do : 29801 ac_fn_c_check_header_compile "$LINENO" "fdb5/api/fdb_c.h" "ac_cv_header_fdb5_api_fdb_c_h" "$ac_includes_default 29802" 29803if test "x$ac_cv_header_fdb5_api_fdb_c_h" = xyes 29804then : 29805 printf "%s\n" "#define HAVE_FDB5_API_FDB_C_H 1" >>confdefs.h 29806 29807else $as_nop 29808 as_fn_error $? "Could not find fdb5/api/fdb_c.h" "$LINENO" 5 29809fi 29810 29811done 29812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing fdb_initialise" >&5 29813printf %s "checking for library containing fdb_initialise... " >&6; } 29814if test ${ac_cv_search_fdb_initialise+y} 29815then : 29816 printf %s "(cached) " >&6 29817else $as_nop 29818 ac_func_search_save_LIBS=$LIBS 29819cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29820/* end confdefs.h. */ 29821 29822/* Override any GCC internal prototype to avoid an error. 29823 Use char because int might match the return type of a GCC 29824 builtin and then its argument prototype would still apply. */ 29825char fdb_initialise (); 29826int 29827main (void) 29828{ 29829return fdb_initialise (); 29830 ; 29831 return 0; 29832} 29833_ACEOF 29834for ac_lib in '' fdb5 29835do 29836 if test -z "$ac_lib"; then 29837 ac_res="none required" 29838 else 29839 ac_res=-l$ac_lib 29840 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 29841 fi 29842 if ac_fn_c_try_link "$LINENO" 29843then : 29844 ac_cv_search_fdb_initialise=$ac_res 29845fi 29846rm -f core conftest.err conftest.$ac_objext conftest.beam \ 29847 conftest$ac_exeext 29848 if test ${ac_cv_search_fdb_initialise+y} 29849then : 29850 break 29851fi 29852done 29853if test ${ac_cv_search_fdb_initialise+y} 29854then : 29855 29856else $as_nop 29857 ac_cv_search_fdb_initialise=no 29858fi 29859rm conftest.$ac_ext 29860LIBS=$ac_func_search_save_LIBS 29861fi 29862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdb_initialise" >&5 29863printf "%s\n" "$ac_cv_search_fdb_initialise" >&6; } 29864ac_res=$ac_cv_search_fdb_initialise 29865if test "$ac_res" != no 29866then : 29867 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 29868 29869printf "%s\n" "#define HAVE_LIBFDB5 1" >>confdefs.h 29870 29871else $as_nop 29872 as_fn_error $? "Could not link to fdb5" "$LINENO" 5 29873fi 29874 29875 FDB5_LIBS=" -lfdb5" ;; #( 29876 *) : 29877 FDB5_ROOT=$with_fdb5 29878 if test -d "$FDB5_ROOT" 29879then : 29880 LDFLAGS="-L$FDB5_ROOT/lib $LDFLAGS" 29881 CPPFLAGS="-I$FDB5_ROOT/include $CPPFLAGS" 29882 for ac_header in fdb5/api/fdb_c.h 29883do : 29884 ac_fn_c_check_header_compile "$LINENO" "fdb5/api/fdb_c.h" "ac_cv_header_fdb5_api_fdb_c_h" "$ac_includes_default 29885" 29886if test "x$ac_cv_header_fdb5_api_fdb_c_h" = xyes 29887then : 29888 printf "%s\n" "#define HAVE_FDB5_API_FDB_C_H 1" >>confdefs.h 29889 29890else $as_nop 29891 as_fn_error $? "Could not find fdb5/api/fdb_c.h" "$LINENO" 5 29892fi 29893 29894done 29895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing fdb_initialise" >&5 29896printf %s "checking for library containing fdb_initialise... " >&6; } 29897if test ${ac_cv_search_fdb_initialise+y} 29898then : 29899 printf %s "(cached) " >&6 29900else $as_nop 29901 ac_func_search_save_LIBS=$LIBS 29902cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29903/* end confdefs.h. */ 29904 29905/* Override any GCC internal prototype to avoid an error. 29906 Use char because int might match the return type of a GCC 29907 builtin and then its argument prototype would still apply. */ 29908char fdb_initialise (); 29909int 29910main (void) 29911{ 29912return fdb_initialise (); 29913 ; 29914 return 0; 29915} 29916_ACEOF 29917for ac_lib in '' fdb5 29918do 29919 if test -z "$ac_lib"; then 29920 ac_res="none required" 29921 else 29922 ac_res=-l$ac_lib 29923 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 29924 fi 29925 if ac_fn_c_try_link "$LINENO" 29926then : 29927 ac_cv_search_fdb_initialise=$ac_res 29928fi 29929rm -f core conftest.err conftest.$ac_objext conftest.beam \ 29930 conftest$ac_exeext 29931 if test ${ac_cv_search_fdb_initialise+y} 29932then : 29933 break 29934fi 29935done 29936if test ${ac_cv_search_fdb_initialise+y} 29937then : 29938 29939else $as_nop 29940 ac_cv_search_fdb_initialise=no 29941fi 29942rm conftest.$ac_ext 29943LIBS=$ac_func_search_save_LIBS 29944fi 29945{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdb_initialise" >&5 29946printf "%s\n" "$ac_cv_search_fdb_initialise" >&6; } 29947ac_res=$ac_cv_search_fdb_initialise 29948if test "$ac_res" != no 29949then : 29950 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 29951 29952printf "%s\n" "#define HAVE_LIBFDB5 1" >>confdefs.h 29953 29954else $as_nop 29955 as_fn_error $? "Could not link to fdb5" "$LINENO" 5 29956fi 29957 29958 FDB5_LIBS=" -L$FDB5_ROOT/lib -lfdb5" 29959 FDB5_INCLUDE=" -I$FDB5_ROOT/include" 29960else $as_nop 29961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $FDB5_ROOT is not a directory! FDB5 suppressed" >&5 29962printf "%s\n" "$as_me: $FDB5_ROOT is not a directory! FDB5 suppressed" >&6;} 29963fi ;; #( 29964 *) : 29965 ;; 29966esac 29967else $as_nop 29968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fdb5 library" >&5 29969printf %s "checking for fdb5 library... " >&6; } 29970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: suppressed" >&5 29971printf "%s\n" "suppressed" >&6; } 29972fi 29973 29974 29975 29976# ---------------------------------------------------------------------- 29977# Compile application with SZLIB library, needed for GRIB1 29978SZLIB_INCLUDE='' 29979SZLIB_LIBS='' 29980 29981# Check whether --with-szlib was given. 29982if test ${with_szlib+y} 29983then : 29984 withval=$with_szlib; case "$with_szlib" in #( 29985 no) : 29986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for szlib library" >&5 29987printf %s "checking for szlib library... " >&6; } 29988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: suppressed" >&5 29989printf "%s\n" "suppressed" >&6; } ;; #( 29990 yes) : 29991 for ac_header in szlib.h 29992do : 29993 ac_fn_c_check_header_compile "$LINENO" "szlib.h" "ac_cv_header_szlib_h" "$ac_includes_default 29994" 29995if test "x$ac_cv_header_szlib_h" = xyes 29996then : 29997 printf "%s\n" "#define HAVE_SZLIB_H 1" >>confdefs.h 29998 29999else $as_nop 30000 as_fn_error $? "Could not find szlib.h" "$LINENO" 5 30001fi 30002 30003done 30004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing SZ_BufftoBuffCompress" >&5 30005printf %s "checking for library containing SZ_BufftoBuffCompress... " >&6; } 30006if test ${ac_cv_search_SZ_BufftoBuffCompress+y} 30007then : 30008 printf %s "(cached) " >&6 30009else $as_nop 30010 ac_func_search_save_LIBS=$LIBS 30011cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30012/* end confdefs.h. */ 30013 30014/* Override any GCC internal prototype to avoid an error. 30015 Use char because int might match the return type of a GCC 30016 builtin and then its argument prototype would still apply. */ 30017char SZ_BufftoBuffCompress (); 30018int 30019main (void) 30020{ 30021return SZ_BufftoBuffCompress (); 30022 ; 30023 return 0; 30024} 30025_ACEOF 30026for ac_lib in '' sz 30027do 30028 if test -z "$ac_lib"; then 30029 ac_res="none required" 30030 else 30031 ac_res=-l$ac_lib 30032 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 30033 fi 30034 if ac_fn_c_try_link "$LINENO" 30035then : 30036 ac_cv_search_SZ_BufftoBuffCompress=$ac_res 30037fi 30038rm -f core conftest.err conftest.$ac_objext conftest.beam \ 30039 conftest$ac_exeext 30040 if test ${ac_cv_search_SZ_BufftoBuffCompress+y} 30041then : 30042 break 30043fi 30044done 30045if test ${ac_cv_search_SZ_BufftoBuffCompress+y} 30046then : 30047 30048else $as_nop 30049 ac_cv_search_SZ_BufftoBuffCompress=no 30050fi 30051rm conftest.$ac_ext 30052LIBS=$ac_func_search_save_LIBS 30053fi 30054{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SZ_BufftoBuffCompress" >&5 30055printf "%s\n" "$ac_cv_search_SZ_BufftoBuffCompress" >&6; } 30056ac_res=$ac_cv_search_SZ_BufftoBuffCompress 30057if test "$ac_res" != no 30058then : 30059 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 30060 30061printf "%s\n" "#define HAVE_LIBSZ 1" >>confdefs.h 30062 30063else $as_nop 30064 as_fn_error $? "Could not link to szlib" "$LINENO" 5 30065fi 30066 30067 SZLIB_LIBS=" -lsz" ;; #( 30068 *) : 30069 SZLIB_ROOT=$with_szlib 30070 if test -d "$SZLIB_ROOT" 30071then : 30072 LDFLAGS="-L$SZLIB_ROOT/lib $LDFLAGS" 30073 CPPFLAGS="-I$SZLIB_ROOT/include $CPPFLAGS" 30074 for ac_header in szlib.h 30075do : 30076 ac_fn_c_check_header_compile "$LINENO" "szlib.h" "ac_cv_header_szlib_h" "$ac_includes_default 30077" 30078if test "x$ac_cv_header_szlib_h" = xyes 30079then : 30080 printf "%s\n" "#define HAVE_SZLIB_H 1" >>confdefs.h 30081 30082else $as_nop 30083 as_fn_error $? "Could not find szlib.h" "$LINENO" 5 30084fi 30085 30086done 30087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing SZ_BufftoBuffCompress" >&5 30088printf %s "checking for library containing SZ_BufftoBuffCompress... " >&6; } 30089if test ${ac_cv_search_SZ_BufftoBuffCompress+y} 30090then : 30091 printf %s "(cached) " >&6 30092else $as_nop 30093 ac_func_search_save_LIBS=$LIBS 30094cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30095/* end confdefs.h. */ 30096 30097/* Override any GCC internal prototype to avoid an error. 30098 Use char because int might match the return type of a GCC 30099 builtin and then its argument prototype would still apply. */ 30100char SZ_BufftoBuffCompress (); 30101int 30102main (void) 30103{ 30104return SZ_BufftoBuffCompress (); 30105 ; 30106 return 0; 30107} 30108_ACEOF 30109for ac_lib in '' sz 30110do 30111 if test -z "$ac_lib"; then 30112 ac_res="none required" 30113 else 30114 ac_res=-l$ac_lib 30115 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 30116 fi 30117 if ac_fn_c_try_link "$LINENO" 30118then : 30119 ac_cv_search_SZ_BufftoBuffCompress=$ac_res 30120fi 30121rm -f core conftest.err conftest.$ac_objext conftest.beam \ 30122 conftest$ac_exeext 30123 if test ${ac_cv_search_SZ_BufftoBuffCompress+y} 30124then : 30125 break 30126fi 30127done 30128if test ${ac_cv_search_SZ_BufftoBuffCompress+y} 30129then : 30130 30131else $as_nop 30132 ac_cv_search_SZ_BufftoBuffCompress=no 30133fi 30134rm conftest.$ac_ext 30135LIBS=$ac_func_search_save_LIBS 30136fi 30137{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SZ_BufftoBuffCompress" >&5 30138printf "%s\n" "$ac_cv_search_SZ_BufftoBuffCompress" >&6; } 30139ac_res=$ac_cv_search_SZ_BufftoBuffCompress 30140if test "$ac_res" != no 30141then : 30142 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 30143 30144printf "%s\n" "#define HAVE_LIBSZ 1" >>confdefs.h 30145 30146else $as_nop 30147 as_fn_error $? "Could not link to szlib" "$LINENO" 5 30148fi 30149 30150 SZLIB_LIBS=" -L$SZLIB_ROOT/lib -lsz" 30151 SZLIB_INCLUDE=" -I$SZLIB_ROOT/include" 30152else $as_nop 30153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $SZLIB_ROOT is not a directory! SZLIB suppressed" >&5 30154printf "%s\n" "$as_me: $SZLIB_ROOT is not a directory! SZLIB suppressed" >&6;} 30155fi ;; #( 30156 *) : 30157 ;; 30158esac 30159else $as_nop 30160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for szlib library" >&5 30161printf %s "checking for szlib library... " >&6; } 30162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: suppressed" >&5 30163printf "%s\n" "suppressed" >&6; } 30164fi 30165 30166 30167 30168# ---------------------------------------------------------------------- 30169# Compile application with netcdf 30170NETCDF_ROOT='' 30171NETCDF_INCLUDE='' 30172NETCDF_LIBS='' 30173ENABLE_NETCDF=no 30174ENABLE_NC2=no 30175ENABLE_NC4=no 30176ENABLE_NC4HDF5=no 30177ENABLE_NC4SZLIB=no 30178 30179# Check whether --with-netcdf was given. 30180if test ${with_netcdf+y} 30181then : 30182 withval=$with_netcdf; case "$with_netcdf" in #( 30183 no) : 30184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for NetCDF library" >&5 30185printf %s "checking for NetCDF library... " >&6; } 30186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: suppressed" >&5 30187printf "%s\n" "suppressed" >&6; } ;; #( 30188 yes) : 30189 for ac_header in netcdf.h 30190do : 30191 ac_fn_c_check_header_compile "$LINENO" "netcdf.h" "ac_cv_header_netcdf_h" "$ac_includes_default 30192" 30193if test "x$ac_cv_header_netcdf_h" = xyes 30194then : 30195 printf "%s\n" "#define HAVE_NETCDF_H 1" >>confdefs.h 30196 30197else $as_nop 30198 as_fn_error $? "Could not find netcdf.h" "$LINENO" 5 30199fi 30200 30201done 30202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing nc_open" >&5 30203printf %s "checking for library containing nc_open... " >&6; } 30204if test ${ac_cv_search_nc_open+y} 30205then : 30206 printf %s "(cached) " >&6 30207else $as_nop 30208 ac_func_search_save_LIBS=$LIBS 30209cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30210/* end confdefs.h. */ 30211 30212/* Override any GCC internal prototype to avoid an error. 30213 Use char because int might match the return type of a GCC 30214 builtin and then its argument prototype would still apply. */ 30215char nc_open (); 30216int 30217main (void) 30218{ 30219return nc_open (); 30220 ; 30221 return 0; 30222} 30223_ACEOF 30224for ac_lib in '' netcdf 30225do 30226 if test -z "$ac_lib"; then 30227 ac_res="none required" 30228 else 30229 ac_res=-l$ac_lib 30230 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 30231 fi 30232 if ac_fn_c_try_link "$LINENO" 30233then : 30234 ac_cv_search_nc_open=$ac_res 30235fi 30236rm -f core conftest.err conftest.$ac_objext conftest.beam \ 30237 conftest$ac_exeext 30238 if test ${ac_cv_search_nc_open+y} 30239then : 30240 break 30241fi 30242done 30243if test ${ac_cv_search_nc_open+y} 30244then : 30245 30246else $as_nop 30247 ac_cv_search_nc_open=no 30248fi 30249rm conftest.$ac_ext 30250LIBS=$ac_func_search_save_LIBS 30251fi 30252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nc_open" >&5 30253printf "%s\n" "$ac_cv_search_nc_open" >&6; } 30254ac_res=$ac_cv_search_nc_open 30255if test "$ac_res" != no 30256then : 30257 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 30258 30259printf "%s\n" "#define HAVE_LIBNETCDF 1" >>confdefs.h 30260 30261 ENABLE_NETCDF=yes 30262else $as_nop 30263 as_fn_error $? "Could not link to NetCDF library" "$LINENO" 5 30264fi 30265 30266 NETCDF_LIBS=" -lnetcdf" 30267 # Extract the first word of "nc-config", so it can be a program name with args. 30268set dummy nc-config; ac_word=$2 30269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30270printf %s "checking for $ac_word... " >&6; } 30271if test ${ac_cv_prog_NC_CONFIG+y} 30272then : 30273 printf %s "(cached) " >&6 30274else $as_nop 30275 if test -n "$NC_CONFIG"; then 30276 ac_cv_prog_NC_CONFIG="$NC_CONFIG" # Let the user override the test. 30277else 30278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30279for as_dir in $PATH 30280do 30281 IFS=$as_save_IFS 30282 case $as_dir in #((( 30283 '') as_dir=./ ;; 30284 */) ;; 30285 *) as_dir=$as_dir/ ;; 30286 esac 30287 for ac_exec_ext in '' $ac_executable_extensions; do 30288 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 30289 ac_cv_prog_NC_CONFIG="nc-config" 30290 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 30291 break 2 30292 fi 30293done 30294 done 30295IFS=$as_save_IFS 30296 30297fi 30298fi 30299NC_CONFIG=$ac_cv_prog_NC_CONFIG 30300if test -n "$NC_CONFIG"; then 30301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NC_CONFIG" >&5 30302printf "%s\n" "$NC_CONFIG" >&6; } 30303else 30304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30305printf "%s\n" "no" >&6; } 30306fi 30307 30308 ;; #( 30309 *) : 30310 if test -d "$with_netcdf" 30311then : 30312 NETCDF_ROOT=$with_netcdf 30313 LDFLAGS="-L$NETCDF_ROOT/lib $LDFLAGS" 30314 CPPFLAGS="-I$NETCDF_ROOT/include $CPPFLAGS" 30315 for ac_header in netcdf.h 30316do : 30317 ac_fn_c_check_header_compile "$LINENO" "netcdf.h" "ac_cv_header_netcdf_h" "$ac_includes_default 30318" 30319if test "x$ac_cv_header_netcdf_h" = xyes 30320then : 30321 printf "%s\n" "#define HAVE_NETCDF_H 1" >>confdefs.h 30322 30323else $as_nop 30324 as_fn_error $? "Could not find netcdf.h" "$LINENO" 5 30325fi 30326 30327done 30328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing nc_open" >&5 30329printf %s "checking for library containing nc_open... " >&6; } 30330if test ${ac_cv_search_nc_open+y} 30331then : 30332 printf %s "(cached) " >&6 30333else $as_nop 30334 ac_func_search_save_LIBS=$LIBS 30335cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30336/* end confdefs.h. */ 30337 30338/* Override any GCC internal prototype to avoid an error. 30339 Use char because int might match the return type of a GCC 30340 builtin and then its argument prototype would still apply. */ 30341char nc_open (); 30342int 30343main (void) 30344{ 30345return nc_open (); 30346 ; 30347 return 0; 30348} 30349_ACEOF 30350for ac_lib in '' netcdf 30351do 30352 if test -z "$ac_lib"; then 30353 ac_res="none required" 30354 else 30355 ac_res=-l$ac_lib 30356 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 30357 fi 30358 if ac_fn_c_try_link "$LINENO" 30359then : 30360 ac_cv_search_nc_open=$ac_res 30361fi 30362rm -f core conftest.err conftest.$ac_objext conftest.beam \ 30363 conftest$ac_exeext 30364 if test ${ac_cv_search_nc_open+y} 30365then : 30366 break 30367fi 30368done 30369if test ${ac_cv_search_nc_open+y} 30370then : 30371 30372else $as_nop 30373 ac_cv_search_nc_open=no 30374fi 30375rm conftest.$ac_ext 30376LIBS=$ac_func_search_save_LIBS 30377fi 30378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nc_open" >&5 30379printf "%s\n" "$ac_cv_search_nc_open" >&6; } 30380ac_res=$ac_cv_search_nc_open 30381if test "$ac_res" != no 30382then : 30383 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 30384 30385printf "%s\n" "#define HAVE_LIBNETCDF 1" >>confdefs.h 30386 30387 ENABLE_NETCDF=yes 30388else $as_nop 30389 as_fn_error $? "Could not link to NetCDF library" "$LINENO" 5 30390fi 30391 30392 NETCDF_LIBS=" -L$NETCDF_ROOT/lib -lnetcdf" 30393 NETCDF_INCLUDE=" -I$NETCDF_ROOT/include" 30394 # Extract the first word of "nc-config", so it can be a program name with args. 30395set dummy nc-config; ac_word=$2 30396{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30397printf %s "checking for $ac_word... " >&6; } 30398if test ${ac_cv_prog_NC_CONFIG+y} 30399then : 30400 printf %s "(cached) " >&6 30401else $as_nop 30402 if test -n "$NC_CONFIG"; then 30403 ac_cv_prog_NC_CONFIG="$NC_CONFIG" # Let the user override the test. 30404else 30405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30406for as_dir in "$NETCDF_ROOT/bin" 30407do 30408 IFS=$as_save_IFS 30409 case $as_dir in #((( 30410 '') as_dir=./ ;; 30411 */) ;; 30412 *) as_dir=$as_dir/ ;; 30413 esac 30414 for ac_exec_ext in '' $ac_executable_extensions; do 30415 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 30416 ac_cv_prog_NC_CONFIG="$NETCDF_ROOT/bin/nc-config" 30417 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 30418 break 2 30419 fi 30420done 30421 done 30422IFS=$as_save_IFS 30423 30424fi 30425fi 30426NC_CONFIG=$ac_cv_prog_NC_CONFIG 30427if test -n "$NC_CONFIG"; then 30428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NC_CONFIG" >&5 30429printf "%s\n" "$NC_CONFIG" >&6; } 30430else 30431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30432printf "%s\n" "no" >&6; } 30433fi 30434 30435 30436else $as_nop 30437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $with_netcdf is not a directory! NetCDF suppressed" >&5 30438printf "%s\n" "$as_me: $with_netcdf is not a directory! NetCDF suppressed" >&6;} 30439fi ;; #( 30440 *) : 30441 ;; 30442esac 30443else $as_nop 30444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for NetCDF library" >&5 30445printf %s "checking for NetCDF library... " >&6; } 30446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: suppressed" >&5 30447printf "%s\n" "suppressed" >&6; } 30448fi 30449 30450 30451if test "x$ENABLE_NETCDF" = xyes 30452then : 30453 if ${NC_CONFIG:+false} : 30454then : 30455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Could not find nc-config! go on with default configuration" >&5 30456printf "%s\n" "$as_me: WARNING: Could not find nc-config! go on with default configuration" >&2;} 30457fi 30458 30459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking netcdf's OpenDAP support" >&5 30460printf %s "checking netcdf's OpenDAP support... " >&6; } 30461if test ${acx_cv_have_libnc_dap+y} 30462then : 30463 printf %s "(cached) " >&6 30464else $as_nop 30465 acx_cv_have_libnc_dap=no 30466 test "x$NC_CONFIG" != "x" && \ 30467 test "x$($NC_CONFIG --has-dap)" = "xyes" && \ 30468 acx_cv_have_libnc_dap=yes 30469fi 30470{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acx_cv_have_libnc_dap" >&5 30471printf "%s\n" "$acx_cv_have_libnc_dap" >&6; } 30472 if test "x$acx_cv_have_libnc_dap" = xyes 30473then : 30474 30475printf "%s\n" "#define HAVE_LIBNC_DAP 1" >>confdefs.h 30476 30477fi 30478 30479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking netcdf's nc2 support" >&5 30480printf %s "checking netcdf's nc2 support... " >&6; } 30481if test ${acx_cv_have_netcdf2+y} 30482then : 30483 printf %s "(cached) " >&6 30484else $as_nop 30485 acx_cv_have_netcdf2=no 30486 test "x$NC_CONFIG" != "x" && \ 30487 test "x$($NC_CONFIG --has-nc2)" = "xyes" && \ 30488 acx_cv_have_netcdf2=yes 30489fi 30490{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acx_cv_have_netcdf2" >&5 30491printf "%s\n" "$acx_cv_have_netcdf2" >&6; } 30492 if test "x$acx_cv_have_netcdf2" = xyes 30493then : 30494 30495printf "%s\n" "#define HAVE_NETCDF2 1" >>confdefs.h 30496 30497 ENABLE_NC2=yes 30498fi 30499 30500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking netcdf's nc4 support" >&5 30501printf %s "checking netcdf's nc4 support... " >&6; } 30502if test ${acx_cv_have_netcdf4+y} 30503then : 30504 printf %s "(cached) " >&6 30505else $as_nop 30506 acx_cv_have_netcdf4=no 30507 test "x$NC_CONFIG" != "x" && \ 30508 test "x$($NC_CONFIG --has-nc4)" = "xyes" && \ 30509 acx_cv_have_netcdf4=yes 30510fi 30511{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acx_cv_have_netcdf4" >&5 30512printf "%s\n" "$acx_cv_have_netcdf4" >&6; } 30513 if test "x$acx_cv_have_netcdf4" = xyes 30514then : 30515 30516printf "%s\n" "#define HAVE_NETCDF4 1" >>confdefs.h 30517 30518 ENABLE_NC4=yes 30519fi 30520 30521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking netcdf's nc4/hdf5 support" >&5 30522printf %s "checking netcdf's nc4/hdf5 support... " >&6; } 30523if test ${acx_cv_have_nc4hdf5+y} 30524then : 30525 printf %s "(cached) " >&6 30526else $as_nop 30527 acx_cv_have_nc4hdf5=no 30528 test "x$NC_CONFIG" != "x" && \ 30529 test "x$($NC_CONFIG --has-hdf5)" = "xyes" && \ 30530 acx_cv_have_nc4hdf5=yes 30531fi 30532{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acx_cv_have_nc4hdf5" >&5 30533printf "%s\n" "$acx_cv_have_nc4hdf5" >&6; } 30534 if test "x$acx_cv_have_nc4hdf5" = xyes 30535then : 30536 30537printf "%s\n" "#define HAVE_NC4HDF5 1" >>confdefs.h 30538 30539 ENABLE_NC4HDF5=yes 30540fi 30541 30542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking netcdf's nc4/szlib support" >&5 30543printf %s "checking netcdf's nc4/szlib support... " >&6; } 30544if test ${acx_cv_have_nc4szlib+y} 30545then : 30546 printf %s "(cached) " >&6 30547else $as_nop 30548 acx_cv_have_nc4szlib=no 30549 test "x$NC_CONFIG" != "x" && \ 30550 test "x$($NC_CONFIG --has-szlib)" = "xyes" && \ 30551 acx_cv_have_nc4szlib=yes 30552fi 30553{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acx_cv_have_nc4szlib" >&5 30554printf "%s\n" "$acx_cv_have_nc4szlib" >&6; } 30555 if test "x$acx_cv_have_nc4szlib" = xyes 30556then : 30557 30558printf "%s\n" "#define HAVE_NC4SZLIB 1" >>confdefs.h 30559 30560 ENABLE_NC4SZLIB=yes 30561fi 30562fi 30563 30564if test "x$ENABLE_NC4SZLIB" = "xyes" 30565then : 30566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing nc_def_var_szip" >&5 30567printf %s "checking for library containing nc_def_var_szip... " >&6; } 30568if test ${ac_cv_search_nc_def_var_szip+y} 30569then : 30570 printf %s "(cached) " >&6 30571else $as_nop 30572 ac_func_search_save_LIBS=$LIBS 30573cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30574/* end confdefs.h. */ 30575 30576/* Override any GCC internal prototype to avoid an error. 30577 Use char because int might match the return type of a GCC 30578 builtin and then its argument prototype would still apply. */ 30579char nc_def_var_szip (); 30580int 30581main (void) 30582{ 30583return nc_def_var_szip (); 30584 ; 30585 return 0; 30586} 30587_ACEOF 30588for ac_lib in '' netcdf 30589do 30590 if test -z "$ac_lib"; then 30591 ac_res="none required" 30592 else 30593 ac_res=-l$ac_lib 30594 LIBS="-l$ac_lib -lhdf5 $ac_func_search_save_LIBS" 30595 fi 30596 if ac_fn_c_try_link "$LINENO" 30597then : 30598 ac_cv_search_nc_def_var_szip=$ac_res 30599fi 30600rm -f core conftest.err conftest.$ac_objext conftest.beam \ 30601 conftest$ac_exeext 30602 if test ${ac_cv_search_nc_def_var_szip+y} 30603then : 30604 break 30605fi 30606done 30607if test ${ac_cv_search_nc_def_var_szip+y} 30608then : 30609 30610else $as_nop 30611 ac_cv_search_nc_def_var_szip=no 30612fi 30613rm conftest.$ac_ext 30614LIBS=$ac_func_search_save_LIBS 30615fi 30616{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nc_def_var_szip" >&5 30617printf "%s\n" "$ac_cv_search_nc_def_var_szip" >&6; } 30618ac_res=$ac_cv_search_nc_def_var_szip 30619if test "$ac_res" != no 30620then : 30621 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 30622 30623printf "%s\n" "#define HAVE_NC_DEF_VAR_SZIP 1" >>confdefs.h 30624 30625fi 30626 30627fi 30628 30629if test "x$ENABLE_NC4HDF5" = "xyes" 30630then : 30631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing H5TS_mutex_lock" >&5 30632printf %s "checking for library containing H5TS_mutex_lock... " >&6; } 30633if test ${ac_cv_search_H5TS_mutex_lock+y} 30634then : 30635 printf %s "(cached) " >&6 30636else $as_nop 30637 ac_func_search_save_LIBS=$LIBS 30638cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30639/* end confdefs.h. */ 30640 30641/* Override any GCC internal prototype to avoid an error. 30642 Use char because int might match the return type of a GCC 30643 builtin and then its argument prototype would still apply. */ 30644char H5TS_mutex_lock (); 30645int 30646main (void) 30647{ 30648return H5TS_mutex_lock (); 30649 ; 30650 return 0; 30651} 30652_ACEOF 30653for ac_lib in '' netcdf 30654do 30655 if test -z "$ac_lib"; then 30656 ac_res="none required" 30657 else 30658 ac_res=-l$ac_lib 30659 LIBS="-l$ac_lib -lhdf5 $ac_func_search_save_LIBS" 30660 fi 30661 if ac_fn_c_try_link "$LINENO" 30662then : 30663 ac_cv_search_H5TS_mutex_lock=$ac_res 30664fi 30665rm -f core conftest.err conftest.$ac_objext conftest.beam \ 30666 conftest$ac_exeext 30667 if test ${ac_cv_search_H5TS_mutex_lock+y} 30668then : 30669 break 30670fi 30671done 30672if test ${ac_cv_search_H5TS_mutex_lock+y} 30673then : 30674 30675else $as_nop 30676 ac_cv_search_H5TS_mutex_lock=no 30677fi 30678rm conftest.$ac_ext 30679LIBS=$ac_func_search_save_LIBS 30680fi 30681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_H5TS_mutex_lock" >&5 30682printf "%s\n" "$ac_cv_search_H5TS_mutex_lock" >&6; } 30683ac_res=$ac_cv_search_H5TS_mutex_lock 30684if test "$ac_res" != no 30685then : 30686 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 30687 30688printf "%s\n" "#define HAVE_NC4HDF5_THREADSAFE 1" >>confdefs.h 30689 30690fi 30691 30692fi 30693 30694if test "x$ENABLE_NC4HDF5" = "xyes" 30695then : 30696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing H5get_libversion" >&5 30697printf %s "checking for library containing H5get_libversion... " >&6; } 30698if test ${ac_cv_search_H5get_libversion+y} 30699then : 30700 printf %s "(cached) " >&6 30701else $as_nop 30702 ac_func_search_save_LIBS=$LIBS 30703cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30704/* end confdefs.h. */ 30705 30706/* Override any GCC internal prototype to avoid an error. 30707 Use char because int might match the return type of a GCC 30708 builtin and then its argument prototype would still apply. */ 30709char H5get_libversion (); 30710int 30711main (void) 30712{ 30713return H5get_libversion (); 30714 ; 30715 return 0; 30716} 30717_ACEOF 30718for ac_lib in '' netcdf hdf5 30719do 30720 if test -z "$ac_lib"; then 30721 ac_res="none required" 30722 else 30723 ac_res=-l$ac_lib 30724 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 30725 fi 30726 if ac_fn_c_try_link "$LINENO" 30727then : 30728 ac_cv_search_H5get_libversion=$ac_res 30729fi 30730rm -f core conftest.err conftest.$ac_objext conftest.beam \ 30731 conftest$ac_exeext 30732 if test ${ac_cv_search_H5get_libversion+y} 30733then : 30734 break 30735fi 30736done 30737if test ${ac_cv_search_H5get_libversion+y} 30738then : 30739 30740else $as_nop 30741 ac_cv_search_H5get_libversion=no 30742fi 30743rm conftest.$ac_ext 30744LIBS=$ac_func_search_save_LIBS 30745fi 30746{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_H5get_libversion" >&5 30747printf "%s\n" "$ac_cv_search_H5get_libversion" >&6; } 30748ac_res=$ac_cv_search_H5get_libversion 30749if test "$ac_res" != no 30750then : 30751 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 30752 30753printf "%s\n" "#define HAVE_H5GET_LIBVERSION 1" >>confdefs.h 30754 30755fi 30756 30757fi 30758 30759 30760 30761 30762 30763 30764 30765 30766 30767# ---------------------------------------------------------------------- 30768# Compile application with ECCODES library (for GRIB2 support) 30769ECCODES_INCLUDE='' 30770ECCODES_LIBS='' 30771 30772# Check whether --with-eccodes was given. 30773if test ${with_eccodes+y} 30774then : 30775 withval=$with_eccodes; case "$with_eccodes" in #( 30776 no) : 30777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ECCODES library" >&5 30778printf %s "checking for ECCODES library... " >&6; } 30779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: suppressed" >&5 30780printf "%s\n" "suppressed" >&6; } ;; #( 30781 yes) : 30782 for ac_header in grib_api.h 30783do : 30784 ac_fn_c_check_header_compile "$LINENO" "grib_api.h" "ac_cv_header_grib_api_h" "$ac_includes_default 30785" 30786if test "x$ac_cv_header_grib_api_h" = xyes 30787then : 30788 printf "%s\n" "#define HAVE_GRIB_API_H 1" >>confdefs.h 30789 30790else $as_nop 30791 as_fn_error $? "Could not find grib_api.h" "$LINENO" 5 30792fi 30793 30794done 30795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing grib_get_message" >&5 30796printf %s "checking for library containing grib_get_message... " >&6; } 30797if test ${ac_cv_search_grib_get_message+y} 30798then : 30799 printf %s "(cached) " >&6 30800else $as_nop 30801 ac_func_search_save_LIBS=$LIBS 30802cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30803/* end confdefs.h. */ 30804 30805/* Override any GCC internal prototype to avoid an error. 30806 Use char because int might match the return type of a GCC 30807 builtin and then its argument prototype would still apply. */ 30808char grib_get_message (); 30809int 30810main (void) 30811{ 30812return grib_get_message (); 30813 ; 30814 return 0; 30815} 30816_ACEOF 30817for ac_lib in '' eccodes 30818do 30819 if test -z "$ac_lib"; then 30820 ac_res="none required" 30821 else 30822 ac_res=-l$ac_lib 30823 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 30824 fi 30825 if ac_fn_c_try_link "$LINENO" 30826then : 30827 ac_cv_search_grib_get_message=$ac_res 30828fi 30829rm -f core conftest.err conftest.$ac_objext conftest.beam \ 30830 conftest$ac_exeext 30831 if test ${ac_cv_search_grib_get_message+y} 30832then : 30833 break 30834fi 30835done 30836if test ${ac_cv_search_grib_get_message+y} 30837then : 30838 30839else $as_nop 30840 ac_cv_search_grib_get_message=no 30841fi 30842rm conftest.$ac_ext 30843LIBS=$ac_func_search_save_LIBS 30844fi 30845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_grib_get_message" >&5 30846printf "%s\n" "$ac_cv_search_grib_get_message" >&6; } 30847ac_res=$ac_cv_search_grib_get_message 30848if test "$ac_res" != no 30849then : 30850 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 30851 30852printf "%s\n" "#define HAVE_LIBGRIB_API 1" >>confdefs.h 30853 30854else $as_nop 30855 as_fn_error $? "Could not link to eccodes library" "$LINENO" 5 30856fi 30857 ;; #( 30858 *) : 30859 ECCODES_ROOT=$with_eccodes 30860 if test -d "$ECCODES_ROOT" 30861then : 30862 LDFLAGS="-L$ECCODES_ROOT/lib $LDFLAGS" 30863 CPPFLAGS="-I$ECCODES_ROOT/include $CPPFLAGS" 30864 for ac_header in grib_api.h 30865do : 30866 ac_fn_c_check_header_compile "$LINENO" "grib_api.h" "ac_cv_header_grib_api_h" "$ac_includes_default 30867" 30868if test "x$ac_cv_header_grib_api_h" = xyes 30869then : 30870 printf "%s\n" "#define HAVE_GRIB_API_H 1" >>confdefs.h 30871 30872else $as_nop 30873 as_fn_error $? "Could not find grib_api.h" "$LINENO" 5 30874fi 30875 30876done 30877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing grib_get_message" >&5 30878printf %s "checking for library containing grib_get_message... " >&6; } 30879if test ${ac_cv_search_grib_get_message+y} 30880then : 30881 printf %s "(cached) " >&6 30882else $as_nop 30883 ac_func_search_save_LIBS=$LIBS 30884cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30885/* end confdefs.h. */ 30886 30887/* Override any GCC internal prototype to avoid an error. 30888 Use char because int might match the return type of a GCC 30889 builtin and then its argument prototype would still apply. */ 30890char grib_get_message (); 30891int 30892main (void) 30893{ 30894return grib_get_message (); 30895 ; 30896 return 0; 30897} 30898_ACEOF 30899for ac_lib in '' eccodes 30900do 30901 if test -z "$ac_lib"; then 30902 ac_res="none required" 30903 else 30904 ac_res=-l$ac_lib 30905 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 30906 fi 30907 if ac_fn_c_try_link "$LINENO" 30908then : 30909 ac_cv_search_grib_get_message=$ac_res 30910fi 30911rm -f core conftest.err conftest.$ac_objext conftest.beam \ 30912 conftest$ac_exeext 30913 if test ${ac_cv_search_grib_get_message+y} 30914then : 30915 break 30916fi 30917done 30918if test ${ac_cv_search_grib_get_message+y} 30919then : 30920 30921else $as_nop 30922 ac_cv_search_grib_get_message=no 30923fi 30924rm conftest.$ac_ext 30925LIBS=$ac_func_search_save_LIBS 30926fi 30927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_grib_get_message" >&5 30928printf "%s\n" "$ac_cv_search_grib_get_message" >&6; } 30929ac_res=$ac_cv_search_grib_get_message 30930if test "$ac_res" != no 30931then : 30932 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 30933 30934printf "%s\n" "#define HAVE_LIBGRIB_API 1" >>confdefs.h 30935 30936else $as_nop 30937 as_fn_error $? "Could not link to eccodes library" "$LINENO" 5 30938fi 30939 30940 ECCODES_LIBS=" -L$ECCODES_ROOT/lib -leccodes" 30941 ECCODES_INCLUDE=" -I$ECCODES_ROOT/include" 30942else $as_nop 30943 as_fn_error $? "$ECCODES_ROOT is not a directory! ECCODES suppressed" "$LINENO" 5 30944fi ;; #( 30945 *) : 30946 ;; 30947esac 30948else $as_nop 30949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the ECCODES library" >&5 30950printf %s "checking for the ECCODES library... " >&6; } 30951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: suppressed" >&5 30952printf "%s\n" "suppressed" >&6; } 30953fi 30954 30955 30956 30957# AM_CONDITIONAL([HAVE_LIBGRIB_API],[test "x$with_eccodes" != 'x' -a "x$with_eccodes" != 'xno' ]) 30958# ---------------------------------------------------------------------- 30959# Compile application with GRIB_API library (for GRIB2 support) 30960GRIB_API_INCLUDE='' 30961GRIB_API_LIBS='' 30962 30963# Check whether --with-grib_api was given. 30964if test ${with_grib_api+y} 30965then : 30966 withval=$with_grib_api; case "$with_grib_api" in #( 30967 no) : 30968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GRIB_API library" >&5 30969printf %s "checking for GRIB_API library... " >&6; } 30970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: suppressed" >&5 30971printf "%s\n" "suppressed" >&6; } ;; #( 30972 yes) : 30973 for ac_header in grib_api.h 30974do : 30975 ac_fn_c_check_header_compile "$LINENO" "grib_api.h" "ac_cv_header_grib_api_h" "$ac_includes_default 30976" 30977if test "x$ac_cv_header_grib_api_h" = xyes 30978then : 30979 printf "%s\n" "#define HAVE_GRIB_API_H 1" >>confdefs.h 30980 30981else $as_nop 30982 as_fn_error $? "Could not find grib_api.h" "$LINENO" 5 30983fi 30984 30985done 30986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing grib_get_message" >&5 30987printf %s "checking for library containing grib_get_message... " >&6; } 30988if test ${ac_cv_search_grib_get_message+y} 30989then : 30990 printf %s "(cached) " >&6 30991else $as_nop 30992 ac_func_search_save_LIBS=$LIBS 30993cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30994/* end confdefs.h. */ 30995 30996/* Override any GCC internal prototype to avoid an error. 30997 Use char because int might match the return type of a GCC 30998 builtin and then its argument prototype would still apply. */ 30999char grib_get_message (); 31000int 31001main (void) 31002{ 31003return grib_get_message (); 31004 ; 31005 return 0; 31006} 31007_ACEOF 31008for ac_lib in '' grib_api 31009do 31010 if test -z "$ac_lib"; then 31011 ac_res="none required" 31012 else 31013 ac_res=-l$ac_lib 31014 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 31015 fi 31016 if ac_fn_c_try_link "$LINENO" 31017then : 31018 ac_cv_search_grib_get_message=$ac_res 31019fi 31020rm -f core conftest.err conftest.$ac_objext conftest.beam \ 31021 conftest$ac_exeext 31022 if test ${ac_cv_search_grib_get_message+y} 31023then : 31024 break 31025fi 31026done 31027if test ${ac_cv_search_grib_get_message+y} 31028then : 31029 31030else $as_nop 31031 ac_cv_search_grib_get_message=no 31032fi 31033rm conftest.$ac_ext 31034LIBS=$ac_func_search_save_LIBS 31035fi 31036{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_grib_get_message" >&5 31037printf "%s\n" "$ac_cv_search_grib_get_message" >&6; } 31038ac_res=$ac_cv_search_grib_get_message 31039if test "$ac_res" != no 31040then : 31041 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 31042 31043printf "%s\n" "#define HAVE_LIBGRIB_API 1" >>confdefs.h 31044 31045else $as_nop 31046 as_fn_error $? "Could not link to grib_api library" "$LINENO" 5 31047fi 31048 ;; #( 31049 *) : 31050 GRIB_API_ROOT=$with_grib_api 31051 if test -d "$GRIB_API_ROOT" 31052then : 31053 LDFLAGS="-L$GRIB_API_ROOT/lib $LDFLAGS" 31054 CPPFLAGS="-I$GRIB_API_ROOT/include $CPPFLAGS" 31055 for ac_header in grib_api.h 31056do : 31057 ac_fn_c_check_header_compile "$LINENO" "grib_api.h" "ac_cv_header_grib_api_h" "$ac_includes_default 31058" 31059if test "x$ac_cv_header_grib_api_h" = xyes 31060then : 31061 printf "%s\n" "#define HAVE_GRIB_API_H 1" >>confdefs.h 31062 31063else $as_nop 31064 as_fn_error $? "Could not find grib_api.h" "$LINENO" 5 31065fi 31066 31067done 31068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing grib_get_message" >&5 31069printf %s "checking for library containing grib_get_message... " >&6; } 31070if test ${ac_cv_search_grib_get_message+y} 31071then : 31072 printf %s "(cached) " >&6 31073else $as_nop 31074 ac_func_search_save_LIBS=$LIBS 31075cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31076/* end confdefs.h. */ 31077 31078/* Override any GCC internal prototype to avoid an error. 31079 Use char because int might match the return type of a GCC 31080 builtin and then its argument prototype would still apply. */ 31081char grib_get_message (); 31082int 31083main (void) 31084{ 31085return grib_get_message (); 31086 ; 31087 return 0; 31088} 31089_ACEOF 31090for ac_lib in '' grib_api 31091do 31092 if test -z "$ac_lib"; then 31093 ac_res="none required" 31094 else 31095 ac_res=-l$ac_lib 31096 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 31097 fi 31098 if ac_fn_c_try_link "$LINENO" 31099then : 31100 ac_cv_search_grib_get_message=$ac_res 31101fi 31102rm -f core conftest.err conftest.$ac_objext conftest.beam \ 31103 conftest$ac_exeext 31104 if test ${ac_cv_search_grib_get_message+y} 31105then : 31106 break 31107fi 31108done 31109if test ${ac_cv_search_grib_get_message+y} 31110then : 31111 31112else $as_nop 31113 ac_cv_search_grib_get_message=no 31114fi 31115rm conftest.$ac_ext 31116LIBS=$ac_func_search_save_LIBS 31117fi 31118{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_grib_get_message" >&5 31119printf "%s\n" "$ac_cv_search_grib_get_message" >&6; } 31120ac_res=$ac_cv_search_grib_get_message 31121if test "$ac_res" != no 31122then : 31123 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 31124 31125printf "%s\n" "#define HAVE_LIBGRIB_API 1" >>confdefs.h 31126 31127else $as_nop 31128 as_fn_error $? "Could not link to grib_api library" "$LINENO" 5 31129fi 31130 31131 GRIB_API_LIBS=" -L$GRIB_API_ROOT/lib -lgrib_api" 31132 GRIB_API_INCLUDE=" -I$GRIB_API_ROOT/include" 31133else $as_nop 31134 as_fn_error $? "$GRIB_API_ROOT is not a directory! GRIB_API suppressed" "$LINENO" 5 31135fi ;; #( 31136 *) : 31137 ;; 31138esac 31139else $as_nop 31140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the GRIB_API library" >&5 31141printf %s "checking for the GRIB_API library... " >&6; } 31142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: suppressed" >&5 31143printf "%s\n" "suppressed" >&6; } 31144fi 31145 31146 31147 31148 if test \( "x$with_grib_api" != 'x' -a "x$with_grib_api" != 'xno' \) -o \( "x$with_eccodes" != 'x' -a "x$with_eccodes" != 'xno' \) ; then 31149 HAVE_LIBGRIB_API_TRUE= 31150 HAVE_LIBGRIB_API_FALSE='#' 31151else 31152 HAVE_LIBGRIB_API_TRUE='#' 31153 HAVE_LIBGRIB_API_FALSE= 31154fi 31155 31156# ---------------------------------------------------------------------- 31157# Enable GRIB support 31158{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GRIB support" >&5 31159printf %s "checking for GRIB support... " >&6; } 31160# Check whether --enable-grib was given. 31161if test ${enable_grib+y} 31162then : 31163 enableval=$enable_grib; if test "x$enable_grib" != 'xno' 31164then : 31165 31166printf "%s\n" "#define HAVE_LIBGRIB 1" >>confdefs.h 31167 31168 enable_grib=yes 31169fi 31170else $as_nop 31171 31172printf "%s\n" "#define HAVE_LIBGRIB 1" >>confdefs.h 31173 31174 enable_grib=yes 31175fi 31176 31177{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_grib" >&5 31178printf "%s\n" "$enable_grib" >&6; } 31179ENABLE_GRIB=$enable_grib 31180 31181# ---------------------------------------------------------------------- 31182# Compile interface with internal CGRIBEX library 31183{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CGRIBEX support" >&5 31184printf %s "checking for CGRIBEX support... " >&6; } 31185# Check whether --enable-cgribex was given. 31186if test ${enable_cgribex+y} 31187then : 31188 enableval=$enable_cgribex; if test "x$enable_cgribex" != 'xno' 31189then : 31190 31191printf "%s\n" "#define HAVE_LIBCGRIBEX 1" >>confdefs.h 31192 31193 enable_cgribex=yes 31194fi 31195else $as_nop 31196 31197printf "%s\n" "#define HAVE_LIBCGRIBEX 1" >>confdefs.h 31198 31199 enable_cgribex=yes 31200fi 31201 31202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_cgribex" >&5 31203printf "%s\n" "$enable_cgribex" >&6; } 31204ENABLE_CGRIBEX=$enable_cgribex 31205 31206# ---------------------------------------------------------------------- 31207# Compile interface with internal SERVICE library 31208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SERVICE support" >&5 31209printf %s "checking for SERVICE support... " >&6; } 31210# Check whether --enable-service was given. 31211if test ${enable_service+y} 31212then : 31213 enableval=$enable_service; if test "x$enable_service" != 'xno' 31214then : 31215 31216printf "%s\n" "#define HAVE_LIBSERVICE 1" >>confdefs.h 31217 31218 enable_service=yes 31219fi 31220else $as_nop 31221 31222printf "%s\n" "#define HAVE_LIBSERVICE 1" >>confdefs.h 31223 31224 enable_service=yes 31225fi 31226 31227{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_service" >&5 31228printf "%s\n" "$enable_service" >&6; } 31229ENABLE_SERVICE=$enable_service 31230 31231# ---------------------------------------------------------------------- 31232# Compile interface with internal EXTRA library 31233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EXTRA support" >&5 31234printf %s "checking for EXTRA support... " >&6; } 31235# Check whether --enable-extra was given. 31236if test ${enable_extra+y} 31237then : 31238 enableval=$enable_extra; if test "x$enable_extra" != 'xno' 31239then : 31240 31241printf "%s\n" "#define HAVE_LIBEXTRA 1" >>confdefs.h 31242 31243 enable_extra=yes 31244fi 31245else $as_nop 31246 31247printf "%s\n" "#define HAVE_LIBEXTRA 1" >>confdefs.h 31248 31249 enable_extra=yes 31250fi 31251 31252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_extra" >&5 31253printf "%s\n" "$enable_extra" >&6; } 31254ENABLE_EXTRA=$enable_extra 31255 31256# ---------------------------------------------------------------------- 31257# Compile interface with internal IEG library 31258{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IEG support" >&5 31259printf %s "checking for IEG support... " >&6; } 31260# Check whether --enable-ieg was given. 31261if test ${enable_ieg+y} 31262then : 31263 enableval=$enable_ieg; if test "x$enable_ieg" != 'xno' 31264then : 31265 31266printf "%s\n" "#define HAVE_LIBIEG 1" >>confdefs.h 31267 31268 enable_ieg=yes 31269fi 31270else $as_nop 31271 31272printf "%s\n" "#define HAVE_LIBIEG 1" >>confdefs.h 31273 31274 enable_ieg=yes 31275fi 31276 31277{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_ieg" >&5 31278printf "%s\n" "$enable_ieg" >&6; } 31279ENABLE_IEG=$enable_ieg 31280 31281# ---------------------------------------------------------------------- 31282# At the moment, there are two possible CDI bindings 31283# (default for CDO) linking directly to CDI convenience library with libtool 31284# (default for CDI) build and link to a shared CDI library 31285if test "x$CDO_DISABLE_CDILIB" = "x1" 31286then : 31287 enable_cdi_lib=no 31288else $as_nop 31289 enable_cdi_lib=yes 31290fi 31291# save CDI binding mode for later automake use 31292 if test x$enable_cdi_lib = 'xyes'; then 31293 ENABLE_CDI_LIB_TRUE= 31294 ENABLE_CDI_LIB_FALSE='#' 31295else 31296 ENABLE_CDI_LIB_TRUE='#' 31297 ENABLE_CDI_LIB_FALSE= 31298fi 31299 31300# create shell variables for the representation of configure results 31301if test x$enable_cdi_lib = 'xno' 31302then : 31303 ENABLE_CDI_LIB=false 31304 31305else $as_nop 31306 ENABLE_CDI_LIB=true 31307 31308fi 31309# ---------------------------------------------------------------------- 31310# Build a static CDI 31311{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for building an additional static CDI binary" >&5 31312printf %s "checking for building an additional static CDI binary... " >&6; } 31313# Check whether --enable-all-static was given. 31314if test ${enable_all_static+y} 31315then : 31316 enableval=$enable_all_static; if test "x$enable_all_static" != "xno" 31317then : 31318 enable_all_static=yes 31319else $as_nop 31320 enable_all_static=no 31321fi 31322else $as_nop 31323 enable_all_static=no 31324fi 31325 31326{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_all_static" >&5 31327printf "%s\n" "$enable_all_static" >&6; } 31328 if test x$enable_all_static = 'xyes'; then 31329 ENABLE_ALL_STATIC_TRUE= 31330 ENABLE_ALL_STATIC_FALSE='#' 31331else 31332 ENABLE_ALL_STATIC_TRUE='#' 31333 ENABLE_ALL_STATIC_FALSE= 31334fi 31335 31336# ---------------------------------------------------------------------- 31337# Build CDO with HIRLAM extensions 31338{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for HIRLAM extensions" >&5 31339printf %s "checking for HIRLAM extensions... " >&6; } 31340# Check whether --enable-hirlam-extensions was given. 31341if test ${enable_hirlam_extensions+y} 31342then : 31343 enableval=$enable_hirlam_extensions; if test "x$enable_hirlam_extensions" != "xno" 31344then : 31345 31346printf "%s\n" "#define HIRLAM_EXTENSIONS 1" >>confdefs.h 31347 31348 enable_hirlam_extensions=yes 31349else $as_nop 31350 enable_hirlam_extensions=no 31351fi 31352else $as_nop 31353 enable_hirlam_extensions=no 31354fi 31355 31356{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_hirlam_extensions" >&5 31357printf "%s\n" "$enable_hirlam_extensions" >&6; } 31358 if test x$enable_hirlam_extensions = 'xyes'; then 31359 ENABLE_HIRLAM_EXTENSIONS_TRUE= 31360 ENABLE_HIRLAM_EXTENSIONS_FALSE='#' 31361else 31362 ENABLE_HIRLAM_EXTENSIONS_TRUE='#' 31363 ENABLE_HIRLAM_EXTENSIONS_FALSE= 31364fi 31365 31366# ---------------------------------------------------------------------- 31367# Build CDI application 31368# Check whether --enable-cdi-app was given. 31369if test ${enable_cdi_app+y} 31370then : 31371 enableval=$enable_cdi_app; 31372else $as_nop 31373 enable_cdi_app=yes 31374fi 31375 31376 if test x$enable_cdi_app = 'xyes'; then 31377 ENABLE_CDI_APP_TRUE= 31378 ENABLE_CDI_APP_FALSE='#' 31379else 31380 ENABLE_CDI_APP_TRUE='#' 31381 ENABLE_CDI_APP_FALSE= 31382fi 31383 31384# 31385 31386 if test x$ENABLE_NETCDF = xyes; then 31387 ENABLE_NETCDF_TRUE= 31388 ENABLE_NETCDF_FALSE='#' 31389else 31390 ENABLE_NETCDF_TRUE='#' 31391 ENABLE_NETCDF_FALSE= 31392fi 31393 31394ac_fn_c_check_func "$LINENO" "grib_get_length" "ac_cv_func_grib_get_length" 31395if test "x$ac_cv_func_grib_get_length" = xyes 31396then : 31397 printf "%s\n" "#define HAVE_GRIB_GET_LENGTH 1" >>confdefs.h 31398 31399fi 31400 31401# ---------------------------------------------------------------------- 31402# Compile with MPI support 31403# Check whether --enable-mpi was given. 31404if test ${enable_mpi+y} 31405then : 31406 enableval=$enable_mpi; 31407else $as_nop 31408 enable_mpi=no 31409fi 31410 31411if test "x$enable_mpi" = xyes 31412then : 31413 ac_ext=c 31414ac_cpp='$CPP $CPPFLAGS' 31415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31417ac_compiler_gnu=$ac_cv_c_compiler_gnu 31418ac_link="./libtool --mode=link --tag=CC $ac_link" 31419 31420 31421 31422 31423 31424 31425 31426 have_MPI_c_bindings=yes 31427 31428 31429# Check whether --with-mpi-root was given. 31430if test ${with_mpi_root+y} 31431then : 31432 withval=$with_mpi_root; MPIROOT="$with_mpi_root" 31433fi 31434 31435 if test ${MPIROOT+y} 31436then : 31437 if test ${MPI_C_LIB+y} 31438then : 31439 31440else $as_nop 31441 acx_temp=$MPIROOT 31442 MPI_C_LIB="-L$acx_temp/lib" 31443fi 31444 if test ${MPI_C_INCLUDE+y} 31445then : 31446 31447else $as_nop 31448 acx_temp=$MPIROOT 31449 MPI_C_INCLUDE="-I$acx_temp/include" 31450fi 31451fi 31452 31453# Check whether --with-mpi-include was given. 31454if test ${with_mpi_include+y} 31455then : 31456 withval=$with_mpi_include; MPI_C_INCLUDE="-I$with_mpi_include" 31457fi 31458 31459 31460 31461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mpi.h extra include path" >&5 31462printf %s "checking for mpi.h extra include path... " >&6; } 31463 if test ${acx_cv_c_include_mpi_h+y} 31464then : 31465 printf %s "(cached) " >&6 31466else $as_nop 31467 ac_include_search_mpi_h_SAVE="$CPPFLAGS" 31468 while :; do 31469 for ac_incdir in ''; do 31470 if test -z "$ac_incdir" 31471then : 31472 ac_res="none required" 31473 CPPFLAGS="$MPI_C_INCLUDE $ac_include_search_mpi_h_SAVE" 31474else $as_nop 31475 ac_res="-I$ac_incdir" 31476 CPPFLAGS="$MPI_C_INCLUDE $ac_res $ac_include_search_mpi_h_SAVE" 31477fi 31478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31479/* end confdefs.h. */ 31480$ac_includes_default 31481#include <mpi.h> 31482_ACEOF 31483if ac_fn_c_try_compile "$LINENO" 31484then : 31485 acx_cv_c_include_mpi_h=yes 31486fi 31487rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 31488 if test ${acx_cv_c_include_mpi_h+y} 31489then : 31490 if test -z "$ac_incdir" 31491then : 31492 acx_cv_c_include_mpi_h="$MPI_C_INCLUDE" 31493else $as_nop 31494 acx_cv_c_include_mpi_h="$MPI_C_INCLUDE -I$ac_incdir" 31495fi 31496fi 31497 if test ${acx_cv_c_include_mpi_h+y} 31498then : 31499 break 31500fi 31501 done 31502 if test ${acx_cv_c_include_mpi_h+y} 31503then : 31504 break 31505fi 31506 31507 break 31508 done 31509 CPPFLAGS=$ac_include_search_mpi_h_SAVE 31510fi 31511 31512 if test ${acx_cv_c_include_mpi_h+y} 31513then : 31514 acx_temp=$acx_cv_c_include_mpi_h 31515 if test x"$acx_temp" = x 31516then : 31517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (none required)" >&5 31518printf "%s\n" "(none required)" >&6; } 31519else $as_nop 31520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acx_temp" >&5 31521printf "%s\n" "$acx_temp" >&6; } 31522fi 31523else $as_nop 31524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31525printf "%s\n" "not found" >&6; } 31526fi 31527 if test ${acx_cv_c_include_mpi_h+y} 31528then : 31529 acx_temp=$acx_cv_c_include_mpi_h 31530 acx_temp=`echo "$acx_temp" | sed -e 's/^ *//;s/ *$//'` 31531 MPI_C_INCLUDE=$acx_temp 31532else $as_nop 31533 have_MPI_c_bindings=no 31534 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 31535printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 31536as_fn_error $? "Required header mpi.h not found or not compilable. 31537See \`config.log' for more details" "$LINENO" 5; } 31538 enable_MPI=no 31539fi 31540 31541 31542# Check whether --with-mpi-lib was given. 31543if test ${with_mpi_lib+y} 31544then : 31545 withval=$with_mpi_lib; MPI_C_LIB="-L$with_mpi_lib" 31546fi 31547 31548 31549 31550 if test "x$have_MPI_c_bindings" = xyes 31551then : 31552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing MPI_Waitall" >&5 31553printf %s "checking for library containing MPI_Waitall... " >&6; } 31554 if test ${acx_cv_option_search_MPI_Waitall_c+y} 31555then : 31556 printf %s "(cached) " >&6 31557else $as_nop 31558 while :; do 31559 acx_option_func_search_save_LIBS="$LIBS" 31560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31561/* end confdefs.h. */ 31562 31563/* Override any GCC internal prototype to avoid an error. 31564 Use char because int might match the return type of a GCC 31565 builtin and then its argument prototype would still apply. */ 31566char MPI_Waitall (); 31567int 31568main (void) 31569{ 31570return MPI_Waitall (); 31571 ; 31572 return 0; 31573} 31574_ACEOF 31575 for ac_lib in '' mpi mpich; do 31576 if test -z "$ac_lib" 31577then : 31578 ac_res="none required" 31579 LIBS="$MPI_C_LIB $acx_option_func_search_save_LIBS" 31580else $as_nop 31581 ac_res="-l$ac_lib" 31582 LIBS="$MPI_C_LIB $ac_res $acx_option_func_search_save_LIBS" 31583fi 31584 if ac_fn_c_try_link "$LINENO" 31585then : 31586 if test x"$ac_res" = x"none required" 31587then : 31588 acx_cv_option_search_MPI_Waitall_c="$MPI_C_LIB " 31589else $as_nop 31590 acx_cv_option_search_MPI_Waitall_c="$MPI_C_LIB -l$ac_lib " 31591fi 31592fi 31593rm -f core conftest.err conftest.$ac_objext conftest.beam \ 31594 conftest$ac_exeext 31595 if test ${acx_cv_option_search_MPI_Waitall_c+y} 31596then : 31597 break 31598fi 31599 done 31600 rm conftest.$ac_ext 31601 LIBS="$acx_option_func_search_save_LIBS" 31602 if test ${acx_cv_option_search_MPI_Waitall_c+y} 31603then : 31604 break 31605fi 31606 31607 break 31608 done 31609fi 31610 31611 if test ${acx_cv_option_search_MPI_Waitall_c+y} 31612then : 31613 if test x"$acx_cv_option_search_MPI_Waitall_c" = x 31614then : 31615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (none required)" >&5 31616printf "%s\n" "(none required)" >&6; } 31617else $as_nop 31618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acx_cv_option_search_MPI_Waitall_c" >&5 31619printf "%s\n" "$acx_cv_option_search_MPI_Waitall_c" >&6; } 31620fi 31621else $as_nop 31622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31623printf "%s\n" "not found" >&6; } 31624fi 31625 if test ${acx_cv_option_search_MPI_Waitall_c+y} 31626then : 31627 31628else $as_nop 31629 have_MPI_c_bindings=no 31630 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 31631printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 31632as_fn_error $? "Cannot link C MPI programs. 31633See \`config.log' for more details" "$LINENO" 5; } 31634 enable_MPI=no 31635fi 31636 31637 acx_temp=$acx_cv_option_search_MPI_Waitall_c 31638 acx_temp=`echo "$acx_temp" | sed -e 's/^ *//;s/ *$//'` 31639 MPI_C_LIB=$acx_temp 31640 31641fi 31642 31643 31644 31645 31646 31647 31648 ac_ext=c 31649ac_cpp='$CPP $CPPFLAGS' 31650ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31651ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31652ac_compiler_gnu=$ac_cv_c_compiler_gnu 31653ac_link="./libtool --mode=link --tag=CC $ac_link" 31654 31655 if test -n "$FC" && test "X$FC" != "Xno" 31656then : 31657 ac_ext=${ac_fc_srcext-f} 31658ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 31659ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 31660ac_compiler_gnu=$ac_cv_fc_compiler_gnu 31661ac_link="./libtool --mode=link --tag=FC $ac_link" 31662 31663 31664 31665 31666 31667 31668 31669 31670 have_MPI_fc_bindings=yes 31671 31672 31673# Check whether --with-mpi-root was given. 31674if test ${with_mpi_root+y} 31675then : 31676 withval=$with_mpi_root; MPIROOT="$with_mpi_root" 31677fi 31678 31679 if test ${MPIROOT+y} 31680then : 31681 if test ${MPI_FC_LIB+y} 31682then : 31683 31684else $as_nop 31685 acx_temp=$MPIROOT 31686 MPI_FC_LIB="-L$acx_temp/lib" 31687fi 31688 if test ${MPI_FC_INCLUDE+y} 31689then : 31690 31691else $as_nop 31692 acx_temp=$MPIROOT 31693 MPI_FC_INCLUDE="$FPP_INCOPT$acx_temp/include" 31694fi 31695fi 31696 31697# Check whether --with-mpi-include was given. 31698if test ${with_mpi_include+y} 31699then : 31700 withval=$with_mpi_include; MPI_FC_INCLUDE="$FPP_INCOPT$with_mpi_include" 31701fi 31702 31703 31704 31705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mpif.h extra include path" >&5 31706printf %s "checking for mpif.h extra include path... " >&6; } 31707 if test ${acx_cv_fc_include_mpif_h+y} 31708then : 31709 printf %s "(cached) " >&6 31710else $as_nop 31711 ac_include_search_mpif_h_SAVE="$FCFLAGS" 31712 while :; do 31713 for ac_incdir in ''; do 31714 if test -z "$ac_incdir" 31715then : 31716 ac_res="none required" 31717 FCFLAGS="$MPI_FC_INCLUDE $ac_include_search_mpif_h_SAVE" 31718else $as_nop 31719 ac_res="$FPP_INCOPT$ac_incdir" 31720 FCFLAGS="$MPI_FC_INCLUDE $ac_res $ac_include_search_mpif_h_SAVE" 31721fi 31722 cat > conftest.$ac_ext <<_ACEOF 31723 program conftest 31724 include 'mpif.h' 31725 end 31726_ACEOF 31727if ac_fn_fc_try_compile "$LINENO" 31728then : 31729 acx_cv_fc_include_mpif_h=yes 31730fi 31731rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 31732 if test ${acx_cv_fc_include_mpif_h+y} 31733then : 31734 if test -z "$ac_incdir" 31735then : 31736 acx_cv_fc_include_mpif_h="$MPI_FC_INCLUDE" 31737else $as_nop 31738 acx_cv_fc_include_mpif_h="$MPI_FC_INCLUDE $FPP_INCOPT$ac_incdir" 31739fi 31740fi 31741 if test ${acx_cv_fc_include_mpif_h+y} 31742then : 31743 break 31744fi 31745 done 31746 if test ${acx_cv_fc_include_mpif_h+y} 31747then : 31748 break 31749fi 31750 31751 break 31752 done 31753 FCFLAGS=$ac_include_search_mpif_h_SAVE 31754fi 31755 31756 if test ${acx_cv_fc_include_mpif_h+y} 31757then : 31758 acx_temp=$acx_cv_fc_include_mpif_h 31759 if test x"$acx_temp" = x 31760then : 31761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (none required)" >&5 31762printf "%s\n" "(none required)" >&6; } 31763else $as_nop 31764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acx_temp" >&5 31765printf "%s\n" "$acx_temp" >&6; } 31766fi 31767else $as_nop 31768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31769printf "%s\n" "not found" >&6; } 31770fi 31771 if test ${acx_cv_fc_include_mpif_h+y} 31772then : 31773 acx_temp=$acx_cv_fc_include_mpif_h 31774 acx_temp=`echo "$acx_temp" | sed -e 's/^ *//;s/ *$//'` 31775 MPI_FC_INCLUDE=$acx_temp 31776else $as_nop 31777 have_MPI_fc_bindings=no 31778 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 31779printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 31780as_fn_error $? "Required include mpif.h not found or not compilable. 31781See \`config.log' for more details" "$LINENO" 5; } 31782 enable_MPI=no 31783fi 31784 31785 31786# Check whether --with-mpi-lib was given. 31787if test ${with_mpi_lib+y} 31788then : 31789 withval=$with_mpi_lib; MPI_FC_LIB="-L$with_mpi_lib" 31790fi 31791 31792 31793 31794 if test "x$have_MPI_fc_bindings" = xyes 31795then : 31796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing mpi_waitall" >&5 31797printf %s "checking for library containing mpi_waitall... " >&6; } 31798 if test ${acx_cv_option_search_mpi_waitall_fc+y} 31799then : 31800 printf %s "(cached) " >&6 31801else $as_nop 31802 while :; do 31803 acx_option_func_search_save_LIBS="$LIBS" 31804 cat > conftest.$ac_ext <<_ACEOF 31805 program conftest 31806 call mpi_waitall 31807 end 31808_ACEOF 31809 for ac_lib in '' mpi mpi_f90 mpi_f77 mpich; do 31810 if test -z "$ac_lib" 31811then : 31812 ac_res="none required" 31813 LIBS="$MPI_FC_LIB $acx_option_func_search_save_LIBS" 31814else $as_nop 31815 ac_res="-l$ac_lib" 31816 LIBS="$MPI_FC_LIB $ac_res $acx_option_func_search_save_LIBS" 31817fi 31818 if ac_fn_fc_try_link "$LINENO" 31819then : 31820 if test x"$ac_res" = x"none required" 31821then : 31822 acx_cv_option_search_mpi_waitall_fc="$MPI_FC_LIB " 31823else $as_nop 31824 acx_cv_option_search_mpi_waitall_fc="$MPI_FC_LIB -l$ac_lib " 31825fi 31826fi 31827rm -f core conftest.err conftest.$ac_objext conftest.beam \ 31828 conftest$ac_exeext 31829 if test ${acx_cv_option_search_mpi_waitall_fc+y} 31830then : 31831 break 31832fi 31833 done 31834 rm conftest.$ac_ext 31835 LIBS="$acx_option_func_search_save_LIBS" 31836 if test ${acx_cv_option_search_mpi_waitall_fc+y} 31837then : 31838 break 31839fi 31840 acx_option_func_search_save_LIBS="$LIBS" 31841 cat > conftest.$ac_ext <<_ACEOF 31842 program conftest 31843 call mpi_waitall 31844 end 31845_ACEOF 31846 for ac_lib in '' mpi mpi_f90 mpi_f77 mpich; do 31847 if test -z "$ac_lib" 31848then : 31849 ac_res="none required" 31850 LIBS="$MPI_FC_LIB -lmpi_f77 -lmpi $acx_option_func_search_save_LIBS" 31851else $as_nop 31852 ac_res="-l$ac_lib" 31853 LIBS="$MPI_FC_LIB $ac_res -lmpi_f77 -lmpi $acx_option_func_search_save_LIBS" 31854fi 31855 if ac_fn_fc_try_link "$LINENO" 31856then : 31857 if test x"$ac_res" = x"none required" 31858then : 31859 acx_cv_option_search_mpi_waitall_fc="$MPI_FC_LIB -lmpi_f77 -lmpi" 31860else $as_nop 31861 acx_cv_option_search_mpi_waitall_fc="$MPI_FC_LIB -l$ac_lib -lmpi_f77 -lmpi" 31862fi 31863fi 31864rm -f core conftest.err conftest.$ac_objext conftest.beam \ 31865 conftest$ac_exeext 31866 if test ${acx_cv_option_search_mpi_waitall_fc+y} 31867then : 31868 break 31869fi 31870 done 31871 rm conftest.$ac_ext 31872 LIBS="$acx_option_func_search_save_LIBS" 31873 if test ${acx_cv_option_search_mpi_waitall_fc+y} 31874then : 31875 break 31876fi 31877 acx_option_func_search_save_LIBS="$LIBS" 31878 cat > conftest.$ac_ext <<_ACEOF 31879 program conftest 31880 call mpi_waitall 31881 end 31882_ACEOF 31883 for ac_lib in '' mpi mpi_f90 mpi_f77 mpich; do 31884 if test -z "$ac_lib" 31885then : 31886 ac_res="none required" 31887 LIBS="$MPI_FC_LIB -lmpi $acx_option_func_search_save_LIBS" 31888else $as_nop 31889 ac_res="-l$ac_lib" 31890 LIBS="$MPI_FC_LIB $ac_res -lmpi $acx_option_func_search_save_LIBS" 31891fi 31892 if ac_fn_fc_try_link "$LINENO" 31893then : 31894 if test x"$ac_res" = x"none required" 31895then : 31896 acx_cv_option_search_mpi_waitall_fc="$MPI_FC_LIB -lmpi" 31897else $as_nop 31898 acx_cv_option_search_mpi_waitall_fc="$MPI_FC_LIB -l$ac_lib -lmpi" 31899fi 31900fi 31901rm -f core conftest.err conftest.$ac_objext conftest.beam \ 31902 conftest$ac_exeext 31903 if test ${acx_cv_option_search_mpi_waitall_fc+y} 31904then : 31905 break 31906fi 31907 done 31908 rm conftest.$ac_ext 31909 LIBS="$acx_option_func_search_save_LIBS" 31910 if test ${acx_cv_option_search_mpi_waitall_fc+y} 31911then : 31912 break 31913fi 31914 31915 break 31916 done 31917fi 31918 31919 if test ${acx_cv_option_search_mpi_waitall_fc+y} 31920then : 31921 if test x"$acx_cv_option_search_mpi_waitall_fc" = x 31922then : 31923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (none required)" >&5 31924printf "%s\n" "(none required)" >&6; } 31925else $as_nop 31926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acx_cv_option_search_mpi_waitall_fc" >&5 31927printf "%s\n" "$acx_cv_option_search_mpi_waitall_fc" >&6; } 31928fi 31929else $as_nop 31930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31931printf "%s\n" "not found" >&6; } 31932fi 31933 if test ${acx_cv_option_search_mpi_waitall_fc+y} 31934then : 31935 31936else $as_nop 31937 have_MPI_fc_bindings=no 31938 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 31939printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 31940as_fn_error $? "Cannot link Fortran MPI programs. 31941See \`config.log' for more details" "$LINENO" 5; } 31942 enable_MPI=no 31943fi 31944 31945 acx_temp=$acx_cv_option_search_mpi_waitall_fc 31946 acx_temp=`echo "$acx_temp" | sed -e 's/^ *//;s/ *$//'` 31947 MPI_FC_LIB=$acx_temp 31948 31949fi 31950 31951 31952 31953 31954 31955 31956 ac_ext=c 31957ac_cpp='$CPP $CPPFLAGS' 31958ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31959ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31960ac_compiler_gnu=$ac_cv_c_compiler_gnu 31961ac_link="./libtool --mode=link --tag=CC $ac_link" 31962 31963fi 31964fi 31965if test x"${enable_mpi}" = x"yes" 31966then : 31967 USE_MPI=yes 31968fi 31969HAVE_PARALLEL_NC4=0 31970enable_ppm=no 31971 31972 31973 31974 31975 31976 31977 31978if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 31979 if test -n "$ac_tool_prefix"; then 31980 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 31981set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 31982{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31983printf %s "checking for $ac_word... " >&6; } 31984if test ${ac_cv_path_PKG_CONFIG+y} 31985then : 31986 printf %s "(cached) " >&6 31987else $as_nop 31988 case $PKG_CONFIG in 31989 [\\/]* | ?:[\\/]*) 31990 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 31991 ;; 31992 *) 31993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31994for as_dir in $PATH 31995do 31996 IFS=$as_save_IFS 31997 case $as_dir in #((( 31998 '') as_dir=./ ;; 31999 */) ;; 32000 *) as_dir=$as_dir/ ;; 32001 esac 32002 for ac_exec_ext in '' $ac_executable_extensions; do 32003 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 32004 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 32005 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 32006 break 2 32007 fi 32008done 32009 done 32010IFS=$as_save_IFS 32011 32012 ;; 32013esac 32014fi 32015PKG_CONFIG=$ac_cv_path_PKG_CONFIG 32016if test -n "$PKG_CONFIG"; then 32017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 32018printf "%s\n" "$PKG_CONFIG" >&6; } 32019else 32020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32021printf "%s\n" "no" >&6; } 32022fi 32023 32024 32025fi 32026if test -z "$ac_cv_path_PKG_CONFIG"; then 32027 ac_pt_PKG_CONFIG=$PKG_CONFIG 32028 # Extract the first word of "pkg-config", so it can be a program name with args. 32029set dummy pkg-config; ac_word=$2 32030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32031printf %s "checking for $ac_word... " >&6; } 32032if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 32033then : 32034 printf %s "(cached) " >&6 32035else $as_nop 32036 case $ac_pt_PKG_CONFIG in 32037 [\\/]* | ?:[\\/]*) 32038 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 32039 ;; 32040 *) 32041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32042for as_dir in $PATH 32043do 32044 IFS=$as_save_IFS 32045 case $as_dir in #((( 32046 '') as_dir=./ ;; 32047 */) ;; 32048 *) as_dir=$as_dir/ ;; 32049 esac 32050 for ac_exec_ext in '' $ac_executable_extensions; do 32051 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 32052 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 32053 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 32054 break 2 32055 fi 32056done 32057 done 32058IFS=$as_save_IFS 32059 32060 ;; 32061esac 32062fi 32063ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 32064if test -n "$ac_pt_PKG_CONFIG"; then 32065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 32066printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 32067else 32068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32069printf "%s\n" "no" >&6; } 32070fi 32071 32072 if test "x$ac_pt_PKG_CONFIG" = x; then 32073 PKG_CONFIG="" 32074 else 32075 case $cross_compiling:$ac_tool_warned in 32076yes:) 32077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 32078printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 32079ac_tool_warned=yes ;; 32080esac 32081 PKG_CONFIG=$ac_pt_PKG_CONFIG 32082 fi 32083else 32084 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 32085fi 32086 32087fi 32088if test -n "$PKG_CONFIG"; then 32089 _pkg_min_version=0.9.0 32090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 32091printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 32092 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 32093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32094printf "%s\n" "yes" >&6; } 32095 else 32096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32097printf "%s\n" "no" >&6; } 32098 PKG_CONFIG="" 32099 fi 32100fi 32101if test x"$USE_MPI" = xyes 32102then : 32103 32104printf "%s\n" "#define USE_MPI 1" >>confdefs.h 32105 32106 for ac_prog in mpirun mpiexec 32107do 32108 # Extract the first word of "$ac_prog", so it can be a program name with args. 32109set dummy $ac_prog; ac_word=$2 32110{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32111printf %s "checking for $ac_word... " >&6; } 32112if test ${ac_cv_path_MPI_LAUNCH+y} 32113then : 32114 printf %s "(cached) " >&6 32115else $as_nop 32116 case $MPI_LAUNCH in 32117 [\\/]* | ?:[\\/]*) 32118 ac_cv_path_MPI_LAUNCH="$MPI_LAUNCH" # Let the user override the test with a path. 32119 ;; 32120 *) 32121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32122for as_dir in $PATH 32123do 32124 IFS=$as_save_IFS 32125 case $as_dir in #((( 32126 '') as_dir=./ ;; 32127 */) ;; 32128 *) as_dir=$as_dir/ ;; 32129 esac 32130 for ac_exec_ext in '' $ac_executable_extensions; do 32131 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 32132 ac_cv_path_MPI_LAUNCH="$as_dir$ac_word$ac_exec_ext" 32133 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 32134 break 2 32135 fi 32136done 32137 done 32138IFS=$as_save_IFS 32139 32140 ;; 32141esac 32142fi 32143MPI_LAUNCH=$ac_cv_path_MPI_LAUNCH 32144if test -n "$MPI_LAUNCH"; then 32145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MPI_LAUNCH" >&5 32146printf "%s\n" "$MPI_LAUNCH" >&6; } 32147else 32148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32149printf "%s\n" "no" >&6; } 32150fi 32151 32152 32153 test -n "$MPI_LAUNCH" && break 32154done 32155test -n "$MPI_LAUNCH" || MPI_LAUNCH="true" 32156 32157 if test x"$cross_compiling" = xno 32158then : 32159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MPI_LAUNCH works" >&5 32160printf %s "checking if $MPI_LAUNCH works... " >&6; } 32161 saved_CFLAGS=$CFLAGS 32162 saved_LIBS=$LIBS 32163 CFLAGS="$CFLAGS $MPI_C_INCLUDE" 32164 LIBS="$LIBS $MPI_C_LIB" 32165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32166/* end confdefs.h. */ 32167 32168#include <stdio.h> 32169#include <stdlib.h> 32170 32171#include <mpi.h> 32172 32173#define xmpi(ret) \\ 32174 do { \\ 32175 if (ret != MPI_SUCCESS) \\ 32176 exit(EXIT_FAILURE); \\ 32177 } while (0) 32178 32179int 32180main(int argc, char **argv) 32181{ 32182 xmpi(MPI_Init(&argc, &argv)); 32183 char *numarg = argv[1]; 32184 int cmdnum = atoi(numarg); 32185 int procnum = 1; 32186 xmpi(MPI_Allreduce(MPI_IN_PLACE, &procnum, 1, MPI_INT, MPI_SUM, 32187 MPI_COMM_WORLD)); 32188 xmpi(MPI_Finalize()); 32189 return (procnum == cmdnum)?EXIT_SUCCESS:EXIT_FAILURE; 32190} 32191 32192_ACEOF 32193if ac_fn_c_try_link "$LINENO" 32194then : 32195 if $MPI_LAUNCH -n 4 ./conftest$EXEEXT 4 32196then : 32197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32198printf "%s\n" "yes" >&6; } 32199else $as_nop 32200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32201printf "%s\n" "no" >&6; } 32202 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 32203printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 32204as_fn_error $? "mpirun doesn't work 32205See \`config.log' for more details" "$LINENO" 5; } 32206fi 32207else $as_nop 32208 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 32209printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 32210as_fn_error $? "Cannot compile simple MPI program 32211See \`config.log' for more details" "$LINENO" 5; } 32212fi 32213rm -f core conftest.err conftest.$ac_objext conftest.beam \ 32214 conftest$ac_exeext conftest.$ac_ext 32215 CFLAGS=$saved_CFLAGS 32216 LIBS=$saved_LIBS 32217 32218fi 32219 if test "x$MPI_LAUNCH" = xtrue 32220then : 32221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: MPI launch command unavailable" >&5 32222printf "%s\n" "$as_me: WARNING: MPI launch command unavailable" >&2;} 32223fi 32224 32225 32226pkg_failed=no 32227{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for YAXT" >&5 32228printf %s "checking for YAXT... " >&6; } 32229 32230if test -n "$YAXT_CFLAGS"; then 32231 pkg_cv_YAXT_CFLAGS="$YAXT_CFLAGS" 32232 elif test -n "$PKG_CONFIG"; then 32233 if test -n "$PKG_CONFIG" && \ 32234 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"yaxt\""; } >&5 32235 ($PKG_CONFIG --exists --print-errors "yaxt") 2>&5 32236 ac_status=$? 32237 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32238 test $ac_status = 0; }; then 32239 pkg_cv_YAXT_CFLAGS=`$PKG_CONFIG --cflags "yaxt" 2>/dev/null` 32240 test "x$?" != "x0" && pkg_failed=yes 32241else 32242 pkg_failed=yes 32243fi 32244 else 32245 pkg_failed=untried 32246fi 32247if test -n "$YAXT_LIBS"; then 32248 pkg_cv_YAXT_LIBS="$YAXT_LIBS" 32249 elif test -n "$PKG_CONFIG"; then 32250 if test -n "$PKG_CONFIG" && \ 32251 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"yaxt\""; } >&5 32252 ($PKG_CONFIG --exists --print-errors "yaxt") 2>&5 32253 ac_status=$? 32254 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32255 test $ac_status = 0; }; then 32256 pkg_cv_YAXT_LIBS=`$PKG_CONFIG --libs "yaxt" 2>/dev/null` 32257 test "x$?" != "x0" && pkg_failed=yes 32258else 32259 pkg_failed=yes 32260fi 32261 else 32262 pkg_failed=untried 32263fi 32264 32265 32266 32267if test $pkg_failed = yes; then 32268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32269printf "%s\n" "no" >&6; } 32270 32271if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 32272 _pkg_short_errors_supported=yes 32273else 32274 _pkg_short_errors_supported=no 32275fi 32276 if test $_pkg_short_errors_supported = yes; then 32277 YAXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "yaxt" 2>&1` 32278 else 32279 YAXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "yaxt" 2>&1` 32280 fi 32281 # Put the nasty error message in config.log where it belongs 32282 echo "$YAXT_PKG_ERRORS" >&5 32283 32284 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 32285printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 32286as_fn_error $? "Required yaxt library unavailable. 32287See \`config.log' for more details" "$LINENO" 5; } 32288elif test $pkg_failed = untried; then 32289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32290printf "%s\n" "no" >&6; } 32291 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 32292printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 32293as_fn_error $? "Required yaxt library unavailable. 32294See \`config.log' for more details" "$LINENO" 5; } 32295else 32296 YAXT_CFLAGS=$pkg_cv_YAXT_CFLAGS 32297 YAXT_LIBS=$pkg_cv_YAXT_LIBS 32298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32299printf "%s\n" "yes" >&6; } 32300 32301printf "%s\n" "#define HAVE_YAXT /**/" >>confdefs.h 32302 32303fi 32304 if test x"$ENABLE_NC4" = xyes 32305then : 32306 for ac_header in netcdf_par.h 32307do : 32308 ac_fn_c_check_header_compile "$LINENO" "netcdf_par.h" "ac_cv_header_netcdf_par_h" "$ac_includes_default 32309#ifdef HAVE_NETCDF_H 32310#include <netcdf.h> 32311#endif 32312" 32313if test "x$ac_cv_header_netcdf_par_h" = xyes 32314then : 32315 printf "%s\n" "#define HAVE_NETCDF_PAR_H 1" >>confdefs.h 32316 ac_fn_check_decl "$LINENO" "MPI_Bcast" "ac_cv_have_decl_MPI_Bcast" "$ac_includes_default 32317#include <netcdf.h> 32318#include <netcdf_par.h> 32319" "$ac_c_undeclared_builtin_options" "CFLAGS" 32320if test "x$ac_cv_have_decl_MPI_Bcast" = xyes 32321then : 32322 HAVE_PARALLEL_NC4=1 32323else $as_nop 32324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: The supplied netCDF library does not support MPI parallel invocations" >&5 32325printf "%s\n" "$as_me: WARNING: The supplied netCDF library does not support MPI parallel invocations" >&2;} 32326fi 32327else $as_nop 32328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: The supplied netCDF library does not support MPI parallel invocations" >&5 32329printf "%s\n" "$as_me: WARNING: The supplied netCDF library does not support MPI parallel invocations" >&2;} 32330fi 32331 32332done 32333 32334pkg_failed=no 32335{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PPM_CORE" >&5 32336printf %s "checking for PPM_CORE... " >&6; } 32337 32338if test -n "$PPM_CORE_CFLAGS"; then 32339 pkg_cv_PPM_CORE_CFLAGS="$PPM_CORE_CFLAGS" 32340 elif test -n "$PKG_CONFIG"; then 32341 if test -n "$PKG_CONFIG" && \ 32342 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"scales-ppm-core\""; } >&5 32343 ($PKG_CONFIG --exists --print-errors "scales-ppm-core") 2>&5 32344 ac_status=$? 32345 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32346 test $ac_status = 0; }; then 32347 pkg_cv_PPM_CORE_CFLAGS=`$PKG_CONFIG --cflags "scales-ppm-core" 2>/dev/null` 32348 test "x$?" != "x0" && pkg_failed=yes 32349else 32350 pkg_failed=yes 32351fi 32352 else 32353 pkg_failed=untried 32354fi 32355if test -n "$PPM_CORE_LIBS"; then 32356 pkg_cv_PPM_CORE_LIBS="$PPM_CORE_LIBS" 32357 elif test -n "$PKG_CONFIG"; then 32358 if test -n "$PKG_CONFIG" && \ 32359 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"scales-ppm-core\""; } >&5 32360 ($PKG_CONFIG --exists --print-errors "scales-ppm-core") 2>&5 32361 ac_status=$? 32362 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32363 test $ac_status = 0; }; then 32364 pkg_cv_PPM_CORE_LIBS=`$PKG_CONFIG --libs "scales-ppm-core" 2>/dev/null` 32365 test "x$?" != "x0" && pkg_failed=yes 32366else 32367 pkg_failed=yes 32368fi 32369 else 32370 pkg_failed=untried 32371fi 32372 32373 32374 32375if test $pkg_failed = yes; then 32376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32377printf "%s\n" "no" >&6; } 32378 32379if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 32380 _pkg_short_errors_supported=yes 32381else 32382 _pkg_short_errors_supported=no 32383fi 32384 if test $_pkg_short_errors_supported = yes; then 32385 PPM_CORE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "scales-ppm-core" 2>&1` 32386 else 32387 PPM_CORE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "scales-ppm-core" 2>&1` 32388 fi 32389 # Put the nasty error message in config.log where it belongs 32390 echo "$PPM_CORE_PKG_ERRORS" >&5 32391 32392 enable_ppm=no 32393elif test $pkg_failed = untried; then 32394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32395printf "%s\n" "no" >&6; } 32396 enable_ppm=no 32397else 32398 PPM_CORE_CFLAGS=$pkg_cv_PPM_CORE_CFLAGS 32399 PPM_CORE_LIBS=$pkg_cv_PPM_CORE_LIBS 32400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32401printf "%s\n" "yes" >&6; } 32402 enable_ppm=yes 32403 32404printf "%s\n" "#define HAVE_PPM_CORE /**/" >>confdefs.h 32405 32406 32407fi 32408 if test x$enable_ppm != xyes 32409then : 32410 HAVE_PARALLEL_NC4=0 32411fi 32412 32413fi 32414 32415else $as_nop 32416 MPI_LAUNCH="`pwd`/util/serialrun" 32417 32418fi 32419if test $HAVE_PARALLEL_NC4 -gt 0 32420then : 32421 32422printf "%s\n" "#define HAVE_PARALLEL_NC4 1" >>confdefs.h 32423 32424fi 32425 32426 if test x"$USE_MPI" = xyes; then 32427 USE_MPI_TRUE= 32428 USE_MPI_FALSE='#' 32429else 32430 USE_MPI_TRUE='#' 32431 USE_MPI_FALSE= 32432fi 32433 32434 if test $enable_ppm = yes; then 32435 USE_PPM_CORE_TRUE= 32436 USE_PPM_CORE_FALSE='#' 32437else 32438 USE_PPM_CORE_TRUE='#' 32439 USE_PPM_CORE_FALSE= 32440fi 32441 32442 if test $HAVE_PARALLEL_NC4 -gt 0; then 32443 HAVE_PARALLEL_NC4_TRUE= 32444 HAVE_PARALLEL_NC4_FALSE='#' 32445else 32446 HAVE_PARALLEL_NC4_TRUE='#' 32447 HAVE_PARALLEL_NC4_FALSE= 32448fi 32449 32450 32451ENABLE_MPI=`test x"$enable_mpi" = xyes && echo true || echo false` 32452 32453 32454if test -z "$USE_MPI_TRUE"; then : 32455 LIBRT= 32456 LIBS_save=$LIBS 32457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing aio_suspend" >&5 32458printf %s "checking for library containing aio_suspend... " >&6; } 32459if test ${ac_cv_search_aio_suspend+y} 32460then : 32461 printf %s "(cached) " >&6 32462else $as_nop 32463 ac_func_search_save_LIBS=$LIBS 32464cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32465/* end confdefs.h. */ 32466 32467/* Override any GCC internal prototype to avoid an error. 32468 Use char because int might match the return type of a GCC 32469 builtin and then its argument prototype would still apply. */ 32470char aio_suspend (); 32471int 32472main (void) 32473{ 32474return aio_suspend (); 32475 ; 32476 return 0; 32477} 32478_ACEOF 32479for ac_lib in '' rt 32480do 32481 if test -z "$ac_lib"; then 32482 ac_res="none required" 32483 else 32484 ac_res=-l$ac_lib 32485 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 32486 fi 32487 if ac_fn_c_try_link "$LINENO" 32488then : 32489 ac_cv_search_aio_suspend=$ac_res 32490fi 32491rm -f core conftest.err conftest.$ac_objext conftest.beam \ 32492 conftest$ac_exeext 32493 if test ${ac_cv_search_aio_suspend+y} 32494then : 32495 break 32496fi 32497done 32498if test ${ac_cv_search_aio_suspend+y} 32499then : 32500 32501else $as_nop 32502 ac_cv_search_aio_suspend=no 32503fi 32504rm conftest.$ac_ext 32505LIBS=$ac_func_search_save_LIBS 32506fi 32507{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_aio_suspend" >&5 32508printf "%s\n" "$ac_cv_search_aio_suspend" >&6; } 32509ac_res=$ac_cv_search_aio_suspend 32510if test "$ac_res" != no 32511then : 32512 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 32513 test "$ac_res" = "none required" || LIBRT=$ac_res 32514fi 32515 32516 LIBS=$LIBS_save 32517fi 32518# ---------------------------------------------------------------------- 32519# Create the Fortran Interface via iso_c_binding module (Fortran 2003 Standard) 32520# 32521# Check whether --enable-iso-c-interface was given. 32522if test ${enable_iso_c_interface+y} 32523then : 32524 enableval=$enable_iso_c_interface; enable_isoc=${enableval} 32525else $as_nop 32526 enable_isoc=no 32527fi 32528 32529if test x"$enable_isoc" = xyes 32530then : 32531 if test -z "$FC" || test "X$FC" = "Xno" 32532then : 32533 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 32534printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 32535as_fn_error $? "Fortran compiler not found or disabled: either disable Fortran 2003 interface (--disable-iso-c-interface) or set FC accordingly 32536See \`config.log' for more details" "$LINENO" 5; } 32537fi 32538 ac_ext=${ac_fc_srcext-f} 32539ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 32540ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 32541ac_compiler_gnu=$ac_cv_fc_compiler_gnu 32542ac_link="./libtool --mode=link --tag=FC $ac_link" 32543 32544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler can handle complex CHARACTER interoperability" >&5 32545printf %s "checking if Fortran compiler can handle complex CHARACTER interoperability... " >&6; } 32546 cat > conftest.$ac_ext <<_ACEOF 32547module conftest_mod 32548 use iso_c_binding 32549 implicit none 32550 private 32551 public :: errstr 32552contains 32553 function errstr(errno) 32554 integer, intent(in) :: errno 32555 interface 32556 function strerror(errno) bind(c, name='strerror') 32557 import :: c_int, c_ptr 32558 integer(c_int), value, intent(in) :: errno 32559 type(c_ptr) :: strerror 32560 end function strerror 32561 function strlen(s) bind(c, name='strlen') 32562 import :: c_ptr, c_size_t 32563 type(c_ptr), value, intent(in) :: s 32564 integer(c_size_t) :: strlen 32565 end function strlen 32566 end interface 32567 type(c_ptr) :: cptr 32568 character(kind=c_char), dimension(:), pointer :: buf 32569 character(len=:), pointer :: errstr 32570 integer :: i, rv_shape(1) 32571 32572 cptr = strerror(int(errno, c_int)) 32573 rv_shape(1) = int(strlen(cptr)) 32574 call c_f_pointer(cptr, buf, rv_shape) 32575 allocate(character(rv_shape(1)) :: errstr) 32576 do i = 1, rv_shape(1) 32577 errstr(i:i) = buf(i) 32578 end do 32579 end function errstr 32580end module conftest_mod 32581 32582program conftest 32583 use conftest_mod, only: errstr 32584 implicit none 32585 character(len=:), pointer :: msg 32586 msg => errstr(42) 32587 write (0, '(a)') msg 32588end program conftest 32589_ACEOF 32590if ac_fn_fc_try_compile "$LINENO" 32591then : 32592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32593printf "%s\n" "yes" >&6; } 32594 32595else $as_nop 32596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32597printf "%s\n" "no" >&6; } 32598{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 32599printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 32600as_fn_error $? "the Fortran compiler cannot handle complex CHARACTER interoperability: disable Fortran 2003 interface (--disable-iso-c-interface) 32601See \`config.log' for more details" "$LINENO" 5; } 32602fi 32603rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 32604 ac_ext=c 32605ac_cpp='$CPP $CPPFLAGS' 32606ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 32607ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 32608ac_compiler_gnu=$ac_cv_c_compiler_gnu 32609ac_link="./libtool --mode=link --tag=CC $ac_link" 32610 32611else $as_nop 32612 enable_isoc=no 32613fi 32614 if test "x$enable_isoc" = 'xyes'; then 32615 CREATE_ISOC_TRUE= 32616 CREATE_ISOC_FALSE='#' 32617else 32618 CREATE_ISOC_TRUE='#' 32619 CREATE_ISOC_FALSE= 32620fi 32621 32622ENABLE_F2003_ISOC=$enable_isoc 32623 32624 32625# in case the Fortran interface uses the more modern F90-style interface, 32626# the FCFLAGS for users of the library have to include a switch to use the 32627# .mod file 32628CDI_F90_INTERFACE_FCFLAGS='' 32629if test "x${enable_isoc}" = "xyes" 32630then : 32631 ac_ext=${ac_fc_srcext-f} 32632ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 32633ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 32634ac_compiler_gnu=$ac_cv_fc_compiler_gnu 32635ac_link="./libtool --mode=link --tag=FC $ac_link" 32636 32637 32638 32639 unset acx_sl_cv_fc_mod_path_flag_fc 32640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for flag to alter module search path" >&5 32641printf %s "checking for flag to alter module search path... " >&6; } 32642if test ${acx_sl_cv_fc_mod_path_flag_fc+y} 32643then : 32644 printf %s "(cached) " >&6 32645else $as_nop 32646 mkdir conftestdir 32647 cd conftestdir 32648 cat > conftest.$ac_ext <<_ACEOF 32649 module cnftst 32650 implicit none 32651 integer,public :: i 32652 end module cnftst 32653_ACEOF 32654if ac_fn_fc_try_compile "$LINENO" 32655then : 32656 32657else $as_nop 32658 as_fn_error $? "Cannot compile fortran modules" "$LINENO" 5 32659fi 32660rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 32661 cd .. 32662 for i in -I -M -module -p; do 32663 FCFLAGS_save=$FCFLAGS 32664 FCFLAGS="$FCFLAGS ${i}conftestdir" 32665 cat > conftest.$ac_ext <<_ACEOF 32666 program conftest 32667 use cnftst 32668 implicit none 32669 i = 0 32670 end 32671_ACEOF 32672if ac_fn_fc_try_compile "$LINENO" 32673then : 32674 acx_sl_cv_fc_mod_path_flag_fc=$i ; FCFLAGS=$FCFLAGS_save ; break 32675else $as_nop 32676 : 32677fi 32678rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 32679 FCFLAGS=$FCFLAGS_save 32680 done 32681 FCFLAGS=$FCFLAGS_save 32682 rm -rf conftestdir 32683 if test ${acx_sl_cv_fc_mod_path_flag_fc+y} 32684then : 32685 : 32686else $as_nop 32687 as_fn_error $? "Cannot find flag to alter module search path" "$LINENO" 5 32688fi 32689fi 32690{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acx_sl_cv_fc_mod_path_flag_fc" >&5 32691printf "%s\n" "$acx_sl_cv_fc_mod_path_flag_fc" >&6; } 32692 FC_MOD_FLAG=$acx_sl_cv_fc_mod_path_flag_fc 32693 32694 32695 ac_ext=c 32696ac_cpp='$CPP $CPPFLAGS' 32697ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 32698ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 32699ac_compiler_gnu=$ac_cv_c_compiler_gnu 32700ac_link="./libtool --mode=link --tag=CC $ac_link" 32701 32702 CDI_F90_INTERFACE_FCFLAGS="${FC_MOD_FLAG}${includedir}" 32703fi 32704 32705# Check the module extension of the fortran compiler 32706if test -n "$FC" && test "X$FC" != "Xno" 32707then : 32708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of module files" >&5 32709printf %s "checking for suffix of module files... " >&6; } 32710 32711 ac_fc_mod_uppercase=no 32712 ac_ext=${ac_fc_srcext-f} 32713ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 32714ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 32715ac_compiler_gnu=$ac_cv_fc_compiler_gnu 32716ac_link="./libtool --mode=link --tag=FC $ac_link" 32717 32718 cat > conftest.$ac_ext <<_ACEOF 32719 module conftest 32720 implicit none 32721 integer :: i 32722 end module conftest 32723_ACEOF 32724if ac_fn_fc_try_compile "$LINENO" 32725then : 32726 32727fi 32728rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 32729 while :; do 32730 acx_fc_mod_name= 32731 if test -n "conftest.$FCMODEXT" -a -f "conftest.$FCMODEXT" 32732then : 32733 acx_fc_mod_name="conftest.$FCMODEXT" ; break 32734fi 32735 if test -n "conftest.mod" -a -f "conftest.mod" 32736then : 32737 acx_fc_mod_name="conftest.mod" ; break 32738fi 32739 if test -n "conftest.MOD" -a -f "conftest.MOD" 32740then : 32741 acx_fc_mod_name="conftest.MOD" ; break 32742fi 32743 if test -n "conftest.M" -a -f "conftest.M" 32744then : 32745 acx_fc_mod_name="conftest.M" ; break 32746fi 32747 if test -n "CONFTEST.MOD" -a -f "CONFTEST.MOD" 32748then : 32749 acx_fc_mod_name="CONFTEST.MOD" ; break 32750fi 32751 if test -n "CONFTEST.mod" -a -f "CONFTEST.mod" 32752then : 32753 acx_fc_mod_name="CONFTEST.mod" ; break 32754fi 32755 32756 break 32757 done 32758 rm -f conftest* CONFTEST* 32759 ac_ext=c 32760ac_cpp='$CPP $CPPFLAGS' 32761ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 32762ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 32763ac_compiler_gnu=$ac_cv_c_compiler_gnu 32764ac_link="./libtool --mode=link --tag=CC $ac_link" 32765 32766 case "$acx_fc_mod_name" in #( 32767 conftest.$FCMODEXT) : 32768 : ;; #( 32769 CONFTEST.$FCMODEXT) : 32770 ac_fc_mod_uppercase=yes ;; #( 32771 conftest.mod) : 32772 FCMODEXT=mod ;; #( 32773 conftest.MOD) : 32774 FCMODEXT=MOD ;; #( 32775 conftest.M) : 32776 FCMODEXT=M ;; #( 32777 CONFTEST.MOD) : 32778 FCMODEXT=MOD 32779 ac_fc_mod_uppercase=yes ;; #( 32780 CONFTEST.mod) : 32781 FCMODEXT=mod 32782 ac_fc_mod_uppercase=yes ;; #( 32783 *) : 32784 ;; 32785esac 32786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FCMODEXT-not found}" >&5 32787printf "%s\n" "${FCMODEXT-not found}" >&6; } 32788 test ${FCMODEXT+y} 32789 if test $ac_fc_mod_uppercase = yes 32790then : 32791 FCMODCASE=uc 32792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Fortran module filenames are uppercase." >&5 32793printf "%s\n" "$as_me: Fortran module filenames are uppercase." >&6;} 32794else $as_nop 32795 FCMODCASE=lc 32796fi 32797 32798 32799 32800fi 32801 if test "x$FCMODCASE" = "xuc"; then 32802 FORTRAN_MOD_UC_TRUE= 32803 FORTRAN_MOD_UC_FALSE='#' 32804else 32805 FORTRAN_MOD_UC_TRUE='#' 32806 FORTRAN_MOD_UC_FALSE= 32807fi 32808 32809# ----------------------------------------------------------------------- 32810# Check for SWIG - Generator for script-language bindings 32811# Check whether --enable-swig was given. 32812if test ${enable_swig+y} 32813then : 32814 enableval=$enable_swig; # Extract the first word of "swig", so it can be a program name with args. 32815set dummy swig; ac_word=$2 32816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32817printf %s "checking for $ac_word... " >&6; } 32818if test ${ac_cv_prog_SWIG+y} 32819then : 32820 printf %s "(cached) " >&6 32821else $as_nop 32822 if test -n "$SWIG"; then 32823 ac_cv_prog_SWIG="$SWIG" # Let the user override the test. 32824else 32825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32826for as_dir in $PATH 32827do 32828 IFS=$as_save_IFS 32829 case $as_dir in #((( 32830 '') as_dir=./ ;; 32831 */) ;; 32832 *) as_dir=$as_dir/ ;; 32833 esac 32834 for ac_exec_ext in '' $ac_executable_extensions; do 32835 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 32836 ac_cv_prog_SWIG="swig" 32837 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 32838 break 2 32839 fi 32840done 32841 done 32842IFS=$as_save_IFS 32843 32844fi 32845fi 32846SWIG=$ac_cv_prog_SWIG 32847if test -n "$SWIG"; then 32848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5 32849printf "%s\n" "$SWIG" >&6; } 32850else 32851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32852printf "%s\n" "no" >&6; } 32853fi 32854 32855 32856else $as_nop 32857 enable_swig=no 32858fi 32859 32860 if test "x$SWIG" != "x"; then 32861 ENABLE_SWIG_TRUE= 32862 ENABLE_SWIG_FALSE='#' 32863else 32864 ENABLE_SWIG_TRUE='#' 32865 ENABLE_SWIG_FALSE= 32866fi 32867 32868# ---------------------------------------------------------------------- 32869# Create the Ruby Interface via swig 32870# 32871# Check whether --enable-ruby was given. 32872if test ${enable_ruby+y} 32873then : 32874 enableval=$enable_ruby; # Extract the first word of "ruby", so it can be a program name with args. 32875set dummy ruby; ac_word=$2 32876{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32877printf %s "checking for $ac_word... " >&6; } 32878if test ${ac_cv_prog_RUBY+y} 32879then : 32880 printf %s "(cached) " >&6 32881else $as_nop 32882 if test -n "$RUBY"; then 32883 ac_cv_prog_RUBY="$RUBY" # Let the user override the test. 32884else 32885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32886for as_dir in $PATH 32887do 32888 IFS=$as_save_IFS 32889 case $as_dir in #((( 32890 '') as_dir=./ ;; 32891 */) ;; 32892 *) as_dir=$as_dir/ ;; 32893 esac 32894 for ac_exec_ext in '' $ac_executable_extensions; do 32895 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 32896 ac_cv_prog_RUBY="ruby" 32897 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 32898 break 2 32899 fi 32900done 32901 done 32902IFS=$as_save_IFS 32903 32904fi 32905fi 32906RUBY=$ac_cv_prog_RUBY 32907if test -n "$RUBY"; then 32908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5 32909printf "%s\n" "$RUBY" >&6; } 32910else 32911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32912printf "%s\n" "no" >&6; } 32913fi 32914 32915 32916 RUBY_INCLUDES="$($RUBY $srcdir/config/interface.rb)" 32917 save_CPPFLAGS=$CPPFLAGS 32918 CPPFLAGS="$CPPFLAGS $RUBY_INCLUDES" 32919 ac_fn_c_check_header_compile "$LINENO" "ruby.h" "ac_cv_header_ruby_h" "$ac_includes_default 32920" 32921if test "x$ac_cv_header_ruby_h" = xyes 32922then : 32923 32924else $as_nop 32925 enable_ruby=no 32926fi 32927 32928 CPPFLAGS=$save_CPPFLAGS 32929 if test "x$RUBY" != "x" 32930then : 32931 if test "x$SWIG" = "x" 32932then : 32933 as_fn_error $? "Ruby bindings: Please enable SWIG with '--enable-swig'!" "$LINENO" 5 32934fi 32935else $as_nop 32936 if test `$SWIG -help 2>&1 | $GREP -c '\-ruby *- Generate'` = 0 32937then : 32938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No (swig does not support -ruby option)" >&5 32939printf "%s\n" "$as_me: No (swig does not support -ruby option)" >&6;} 32940 enable_ruby=no 32941 32942fi 32943fi 32944else $as_nop 32945 enable_ruby=no 32946fi 32947 32948 if test "x$enable_ruby" != "xno"; then 32949 ENABLE_RUBY_TRUE= 32950 ENABLE_RUBY_FALSE='#' 32951else 32952 ENABLE_RUBY_TRUE='#' 32953 ENABLE_RUBY_FALSE= 32954fi 32955 32956if test "x$enable_ruby" != "xno" 32957then : 32958 ENABLE_RUBY=true 32959 32960else $as_nop 32961 ENABLE_RUBY=false 32962 32963fi 32964# Ruby is also used for the Fortran 2003 ISO C generator in maintainer mode. 32965# Report properly if it's missing: 32966if ${RUBY:+false} : 32967then : 32968 { RUBY=; unset RUBY;} 32969fi 32970 32971RUBY=${RUBY-"${am_missing_run}ruby"} 32972 32973# ---------------------------------------------------------------------- 32974# Create the Python Interface via swig 32975# Check whether --enable-python was given. 32976if test ${enable_python+y} 32977then : 32978 enableval=$enable_python; # Extract the first word of "python", so it can be a program name with args. 32979set dummy python; ac_word=$2 32980{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32981printf %s "checking for $ac_word... " >&6; } 32982if test ${ac_cv_prog_PYTHON+y} 32983then : 32984 printf %s "(cached) " >&6 32985else $as_nop 32986 if test -n "$PYTHON"; then 32987 ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test. 32988else 32989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32990for as_dir in $PATH 32991do 32992 IFS=$as_save_IFS 32993 case $as_dir in #((( 32994 '') as_dir=./ ;; 32995 */) ;; 32996 *) as_dir=$as_dir/ ;; 32997 esac 32998 for ac_exec_ext in '' $ac_executable_extensions; do 32999 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 33000 ac_cv_prog_PYTHON="python" 33001 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 33002 break 2 33003 fi 33004done 33005 done 33006IFS=$as_save_IFS 33007 33008fi 33009fi 33010PYTHON=$ac_cv_prog_PYTHON 33011if test -n "$PYTHON"; then 33012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 33013printf "%s\n" "$PYTHON" >&6; } 33014else 33015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 33016printf "%s\n" "no" >&6; } 33017fi 33018 33019 33020 enable_python=no 33021 for PYTHON_INCLUDES in \ 33022 "-I`$PYTHON -c 'from distutils import sysconfig;print(sysconfig.get_python_inc())'`" \ 33023 "-I`$PYTHON -c 'from distutils import sysconfig;print(sysconfig.get_python_lib(1,1))' | $SED 's/lib/include/'`" 33024 do 33025 save_CPPFLAGS=$CPPFLAGS 33026 CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES" 33027 ac_fn_c_check_header_compile "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default 33028" 33029if test "x$ac_cv_header_Python_h" = xyes 33030then : 33031 enable_python=yes 33032 break 33033fi 33034 33035 CPPFLAGS=$save_CPPFLAGS 33036 done 33037 if test "x$enable_python" != "xno" 33038then : 33039 if test "x$SWIG" = "x" 33040then : 33041 as_fn_error $? "Python bindings: Please enable SWIG with '--enable-swig'!" "$LINENO" 5 33042else $as_nop 33043 PYTHON= 33044fi 33045else $as_nop 33046 if test `$SWIG -help 2>&1 | $GREP -c '\-python *- Generate'` = 0 33047then : 33048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No (swig does not support -python option)" >&5 33049printf "%s\n" "$as_me: No (swig does not support -python option)" >&6;} 33050 enable_python=no 33051 33052fi 33053fi 33054else $as_nop 33055 enable_python=no 33056fi 33057 33058 if test "x$enable_python" != "xno"; then 33059 ENABLE_PYTHON_TRUE= 33060 ENABLE_PYTHON_FALSE='#' 33061else 33062 ENABLE_PYTHON_TRUE='#' 33063 ENABLE_PYTHON_FALSE= 33064fi 33065 33066if test "x$enable_python" != "xno" 33067then : 33068 ENABLE_PYTHON=true 33069 33070else $as_nop 33071 ENABLE_PYTHON=false 33072 33073fi 33074# ---------------------------------------------------------------------- 33075 if test "x$enable_ruby" = "xyes" -o "x$enable_python" = "xyes"; then 33076 CREATE_INTERFACES_TRUE= 33077 CREATE_INTERFACES_FALSE='#' 33078else 33079 CREATE_INTERFACES_TRUE='#' 33080 CREATE_INTERFACES_FALSE= 33081fi 33082 33083# ---------------------------------------------------------------------- 33084# Create the CDI Fortran77 Interface via cfortran.h 33085# Check whether --enable-cf-interface was given. 33086if test ${enable_cf_interface+y} 33087then : 33088 enableval=$enable_cf_interface; enable_cfinterface=${enableval} 33089else $as_nop 33090 enable_cfinterface=yes 33091fi 33092 33093if test "x${enable_cfinterface}" = "xyes" 33094then : 33095 33096{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking C preprocessor flags for Fortran calling convention cfortran.h" >&5 33097printf %s "checking C preprocessor flags for Fortran calling convention cfortran.h... " >&6; } 33098if test ${acx_cv_cf_flag+y} 33099then : 33100 printf %s "(cached) " >&6 33101else $as_nop 33102 acx_cv_cf_flag='' 33103 for macro in pgiFortran NAGf90Fortran f2cFortran hpuxFortran apolloFortran sunFortran IBMR2Fortran CRAYFortran PATHSCALE_COMPILER gFortran mipsFortran DECFortran vmsFortran CONVEXFortran PowerStationFortran AbsoftUNIXFortran AbsoftProFortran SXFortran 33104do : 33105 acx_temp=`echo "$CPPFLAGS $CFLAGS" | sed -n 's/^\(.* \)*-D\('"$macro"'\)\( .*\)*$/\2/;t print 33106b 33107: print 33108p'` 33109 if test x"$acx_temp" != x 33110then : 33111 if test x"$acx_cv_cf_flag" = x 33112then : 33113 acx_cv_cf_flag="$acx_temp (user-specified)" 33114else $as_nop 33115 echo ; echo '"'"$acx_cv_cf_flag $acx_temp"'"' 33116 as_fn_error $? "Multiple specification of cfortran.h flags" "$LINENO" 5 33117fi 33118fi 33119done 33120 if test x"$acx_cv_cf_flag" = x 33121then : 33122 if test -n "$FC" -a X"$FC" != Xno 33123then : 33124 ac_ext=${ac_fc_srcext-f} 33125ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 33126ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 33127ac_compiler_gnu=$ac_cv_fc_compiler_gnu 33128ac_link="./libtool --mode=link --tag=FC $ac_link" 33129 33130 33131 33132 33133 save_FC=$FC ; acx_FC=$FC 33134 case $host in #( 33135 x86_64-*-linux-*|i*86-*-linux-*|*-apple-darwin*|ia64-*-linux-*|x86_64-*-freebsd*|i*86-*-freebsd*) : 33136 acx_temp=`$acx_FC -V 2>&1` 33137 if echo "$acx_temp" | grep '^Copyright.*\(The Portland Group\|NVIDIA CORPORATION\)' >/dev/null 33138then : 33139 acx_cv_fc_cf_flag=-DgFortran 33140elif echo "$acx_temp" | grep '^NAG Fortran Compiler Release' >/dev/null 33141then : 33142 acx_cv_fc_cf_flag=-DNAGf90Fortran 33143elif echo "$acx_temp" | grep '^Intel(R) Fortran.*Compiler' >/dev/null 33144then : 33145 acx_cv_fc_cf_flag=-DgFortran 33146elif echo "$acx_temp" | grep '^Cray Fortran' >/dev/null 33147then : 33148 acx_cv_fc_cf_flag=-DgFortran 33149elif acx_temp=`$acx_FC --version 2>&1` \ 33150 && echo $acx_temp | grep '^GNU Fortran' >/dev/null 33151then : 33152 if echo $acx_temp | grep g77 >/dev/null 33153then : 33154 acx_cv_fc_cf_flag=-Dg77Fortran 33155else $as_nop 33156 if echo "$FCFLAGS" | grep '^\(.* \)*-ff2c\( .*\)*$' >/dev/null 33157then : 33158 acx_cv_fc_cf_flag=-Df2cFortran 33159else $as_nop 33160 acx_cv_fc_cf_flag=-DgFortran 33161fi 33162fi 33163elif acx_temp=`$acx_FC -v 2>&1` \ 33164 && echo $acx_temp | grep '^f2c' 33165then : 33166 acx_cv_fc_cf_flag=-Df2cFortran 33167fi ;; #( 33168 *-ibm-aix*) : 33169 if $CC -qversion 2>&1 | grep '^IBM XL C' >/dev/null 33170then : 33171 33172else $as_nop 33173 acx_cv_fc_cf_flag=-DIBMR2Fortran 33174fi 33175 ;; #( 33176 *-*-hpux*) : 33177 acx_cv_fc_cf_flag=-DhpuxFortran ;; #( 33178 sx*-*-*|es*-*-*) : 33179 acx_cv_fc_cf_flag=-DSXFortran ;; #( 33180 *) : 33181 ;; 33182esac 33183 33184 ac_ext=c 33185ac_cpp='$CPP $CPPFLAGS' 33186ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 33187ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 33188ac_compiler_gnu=$ac_cv_c_compiler_gnu 33189ac_link="./libtool --mode=link --tag=CC $ac_link" 33190 33191fi 33192 if test -n "$F77" -a X"$F77" != Xno 33193then : 33194 ac_ext=f 33195ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 33196ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 33197ac_compiler_gnu=$ac_cv_f77_compiler_gnu 33198ac_link="./libtool --mode=link --tag=F77 $ac_link" 33199 33200 33201 33202 33203 save_F77=$F77 ; acx_FC=$F77 33204 case $host in #( 33205 x86_64-*-linux-*|i*86-*-linux-*|*-apple-darwin*|ia64-*-linux-*|x86_64-*-freebsd*|i*86-*-freebsd*) : 33206 acx_temp=`$acx_FC -V 2>&1` 33207 if echo "$acx_temp" | grep '^Copyright.*\(The Portland Group\|NVIDIA CORPORATION\)' >/dev/null 33208then : 33209 acx_cv_f77_cf_flag=-DgFortran 33210elif echo "$acx_temp" | grep '^NAG Fortran Compiler Release' >/dev/null 33211then : 33212 acx_cv_f77_cf_flag=-DNAGf90Fortran 33213elif echo "$acx_temp" | grep '^Intel(R) Fortran.*Compiler' >/dev/null 33214then : 33215 acx_cv_f77_cf_flag=-DgFortran 33216elif echo "$acx_temp" | grep '^Cray Fortran' >/dev/null 33217then : 33218 acx_cv_f77_cf_flag=-DgFortran 33219elif acx_temp=`$acx_FC --version 2>&1` \ 33220 && echo $acx_temp | grep '^GNU Fortran' >/dev/null 33221then : 33222 if echo $acx_temp | grep g77 >/dev/null 33223then : 33224 acx_cv_f77_cf_flag=-Dg77Fortran 33225else $as_nop 33226 if echo "$FFLAGS" | grep '^\(.* \)*-ff2c\( .*\)*$' >/dev/null 33227then : 33228 acx_cv_f77_cf_flag=-Df2cFortran 33229else $as_nop 33230 acx_cv_f77_cf_flag=-DgFortran 33231fi 33232fi 33233elif acx_temp=`$acx_FC -v 2>&1` \ 33234 && echo $acx_temp | grep '^f2c' 33235then : 33236 acx_cv_f77_cf_flag=-Df2cFortran 33237fi ;; #( 33238 *-ibm-aix*) : 33239 if $CC -qversion 2>&1 | grep '^IBM XL C' >/dev/null 33240then : 33241 33242else $as_nop 33243 acx_cv_f77_cf_flag=-DIBMR2Fortran 33244fi 33245 ;; #( 33246 *-*-hpux*) : 33247 acx_cv_f77_cf_flag=-DhpuxFortran ;; #( 33248 sx*-*-*|es*-*-*) : 33249 acx_cv_f77_cf_flag=-DSXFortran ;; #( 33250 *) : 33251 ;; 33252esac 33253 33254 ac_ext=c 33255ac_cpp='$CPP $CPPFLAGS' 33256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 33257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 33258ac_compiler_gnu=$ac_cv_c_compiler_gnu 33259ac_link="./libtool --mode=link --tag=CC $ac_link" 33260 33261fi 33262 if test -z "$F77" -o X"$F77" = Xno 33263then : 33264 acx_cv_cf_flag="$acx_cv_fc_cf_flag (probed)" 33265elif test -z "$FC" -o X"$FC" = Xno 33266then : 33267 acx_cv_cf_flag="$acx_cv_f77_cf_flag (probed)" 33268else $as_nop 33269 if test x"$acx_cv_f77_cf_flag" = x"$acx_cv_fc_cf_flag" 33270then : 33271 acx_cv_cf_flag="$acx_cv_f77_cf_flag (probed)" 33272else $as_nop 33273 as_fn_error $? "cfortran.h flag for $F77 does not match the flag for $FC. 33274Have you configured compatible compilers?" "$LINENO" 5 33275fi 33276fi 33277 33278 33279fi 33280 33281fi 33282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cf_flag" >&5 33283printf "%s\n" "$acx_cv_cf_flag" >&6; } 33284 if echo "$acx_cv_cf_flag" | grep ' (probed)$' >/dev/null 33285then : 33286 CPPFLAGS="${CPPFLAGS+$CPPFLAGS }`echo "$acx_cv_cf_flag" | sed 's/ (probed)$//'`" 33287fi 33288 33289case $host in #( 33290 *-ibm-aix*) : 33291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -Dappendus needs to be added to CPPFLAGS for cfortran.h" >&5 33292printf %s "checking if -Dappendus needs to be added to CPPFLAGS for cfortran.h... " >&6; } 33293 if $CC -qversion 2>&1 | grep '^IBM XL C' >/dev/null 33294then : 33295 acx_temp_qextname_f77flags=`echo "$FFLAGS" | sed -n '/-qextname/{ s/^\(.* \)*-qextname\( .*\)*$/-qextname/;p;}'` 33296 acx_temp_qextname_fcflags=`echo "$FCFLAGS" | sed -n '/-qextname/{ s/^\(.* \)*-qextname\( .*\)*$/-qextname/;p;}'` 33297 33298 if $FC -qversion 2>&1 | grep '^IBM XL Fortran' >/dev/null 33299then : 33300 33301else $as_nop 33302 acx_temp_qextname_fcflags=-qextname 33303fi 33304 case x"$acx_temp_qextname_fcflags$acx_temp_qextname_f77flags" in #( 33305 x-qextname) : 33306 as_fn_error $? "Option -qextname must be provided consistently to F77 and FC" "$LINENO" 5 ;; #( 33307 x-qextname-qextname) : 33308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33309printf "%s\n" "yes" >&6; } 33310 CPPFLAGS="${CPPFLAGS+$CPPFLAGS }-Dappendus" ;; #( 33311 *) : 33312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 33313printf "%s\n" "no" >&6; } ;; 33314esac 33315 33316else $as_nop 33317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 33318printf "%s\n" "no" >&6; } 33319fi ;; #( 33320 *) : 33321 ;; 33322esac 33323if test -n "$FC" -a X"$FC" != Xno -o -n "$F77" -a X"$F77" != Xno 33324then : 33325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C externals constructed with cfortran.h work" >&5 33326printf %s "checking if C externals constructed with cfortran.h work... " >&6; } 33327if test ${acx_cv_cfortran_works+y} 33328then : 33329 printf %s "(cached) " >&6 33330else $as_nop 33331 acx_cv_cfortran_works=no 33332 save_CPPFLAGS=$CPPFLAGS 33333 CPPFLAGS="-I$srcdir/src $CPPFLAGS" 33334 ac_ext=c 33335ac_cpp='$CPP $CPPFLAGS' 33336ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 33337ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 33338ac_compiler_gnu=$ac_cv_c_compiler_gnu 33339ac_link="./libtool --mode=link --tag=CC $ac_link" 33340 33341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33342/* end confdefs.h. */ 33343#include "cfortran.h" 33344#include <math.h> 33345#include <stdio.h> 33346#include <stdlib.h> 33347 33348PROTOCCALLSFFUN1(FLOAT,CFTSTF,cftstf,FLOAT) 33349#define conftest_F(v) \ 33350 CCALLSFFUN1(CFTSTF,cftstf,FLOAT,(v)); 33351 33352static float 33353cftstC(int i, float v, int *p, float *q) 33354{ 33355 float f; 33356 *p = (int)roundf(v * i); 33357 *q = f = conftest_F(v * i); 33358 return f; 33359} 33360 33361FCALLSCFUN4(FLOAT,cftstC,CFTSTC,cftstc,INT,FLOAT,PINT,PFLOAT) 33362 33363/* test string returns */ 33364static const char * 33365conftest_str_C(void) 33366{ 33367 static const char msg[100] = "AAAAAAAAAAAAAAAAAAAA" 33368 "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" 33369 "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"; 33370 return msg; 33371} 33372 33373FCALLSCFUN0(STRING,conftest_str_C,CHTST,chtst) 33374 33375/* This function is required simply because some Fortran compilers 33376 * won't stop with exit code n when encountering STOP n */ 33377static void 33378errExit(void) 33379{ 33380 exit(1); 33381} 33382 33383FCALLSCSUB0(errExit,ERR_EXIT,err_exit) 33384 33385 33386_ACEOF 33387if ac_fn_c_try_compile "$LINENO" 33388then : 33389 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Renaming C object file." >&5; } >&5 33390 (mv "conftest.$ac_objext" "conftest_c.$ac_objext") 2>&5 33391 ac_status=$? 33392 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33393 test $ac_status = 0; } 33394 ac_ext=${ac_fc_srcext-f} 33395ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 33396ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 33397ac_compiler_gnu=$ac_cv_fc_compiler_gnu 33398ac_link="./libtool --mode=link --tag=FC $ac_link" 33399 33400 cat > conftest.$ac_ext <<_ACEOF 33401 MODULE conftest_data 33402 IMPLICIT NONE 33403 PRIVATE 33404 REAL :: ri 33405 PUBLIC :: ri 33406 END MODULE conftest_data 33407 33408 FUNCTION cftstf(v) RESULT(r) 33409 USE conftest_data, ONLY: ri 33410 REAL, INTENT(in) :: v 33411 REAL :: r 33412 r = v * 100.0 33413 ri = 1.0 / v 33414 END FUNCTION cftstf 33415_ACEOF 33416if ac_fn_fc_try_compile "$LINENO" 33417then : 33418 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Renaming Fortran object file." >&5; } >&5 33419 (mv "conftest.$ac_objext" "conftest_f.$ac_objext") 2>&5 33420 ac_status=$? 33421 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33422 test $ac_status = 0; } 33423 save_LIBS=$LIBS 33424 LIBS="conftest_c.$ac_objext conftest_f.$ac_objext $LIBS" 33425 if test "$cross_compiling" = yes 33426then : 33427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Skipping run test for cfortran.h in cross-compilation mode," >&5 33428printf "%s\n" "$as_me: Skipping run test for cfortran.h in cross-compilation mode," >&6;} 33429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: link test succeeded." >&5 33430printf "%s\n" "$as_me: link test succeeded." >&6;} 33431 acx_cv_cfortran_works=yes 33432else $as_nop 33433 cat > conftest.$ac_ext <<_ACEOF 33434 program conftest 33435 USE conftest_data, ONLY: ri 33436 IMPLICIT NONE 33437 INTERFACE 33438 FUNCTION cftstc(i, v, p, q) RESULT(f) 33439 INTEGER, INTENT(in) :: i 33440 REAL, INTENT(in) :: v 33441 INTEGER, INTENT(out) :: p 33442 REAL, INTENT(out) :: q 33443 REAL :: f 33444 END FUNCTION cftstc 33445 FUNCTION chtst() result(s) 33446 CHARACTER(99) :: s 33447 END FUNCTION chtst 33448 END INTERFACE 33449 REAL, PARAMETER :: eps = 10e-6 33450 REAL :: foo, boo, too 33451 INTEGER :: bar, baz, i 33452 CHARACTER(99) :: aaaaaa 33453 bar = 5 33454 foo = 0.3 33455 too = cftstc(bar, foo, baz, boo) 33456 IF (ABS(baz - NINT(bar * foo)) /= 0) THEN 33457 WRITE (0, '(2(a,i0))') "error checking, when baz, baz=", baz, & 33458 ", NINT(bar * foo) =", NINT(bar * foo) 33459 FLUSH(0) 33460 CALL err_exit 33461 END IF 33462 IF (ABS((ri - 1.0 / (bar * foo)) / ABS(ri)) > eps) THEN 33463 WRITE (0, '(2(a,g24.15))') "error checking ri, ri=", ri, ", 1.0 / & 33464 &(bar * foo) = ", 1.0 / (bar * foo) 33465 FLUSH(0) 33466 CALL err_exit 33467 END IF 33468 IF (ABS((boo - (bar * foo * 100.0))/ABS(boo)) > eps) THEN 33469 WRITE (0, '(2(a,g24.15))') "error checking boo, boo=", boo, & 33470 ", bar * foo * 100.0 = ", bar * foo * 100.0 33471 FLUSH(0) 33472 CALL err_exit 33473 END IF 33474 IF (too /= boo) THEN 33475 WRITE (0, '(2(a,g24.15))') "error checking too vs. boo, too=", too, & 33476 ", boo = ", boo 33477 FLUSH(0) 33478 CALL err_exit 33479 END IF 33480 aaaaaa = chtst() 33481 DO i = 1, 99 33482 IF (aaaaaa(i:i) /= 'A') THEN 33483 WRITE (0, '(a,i0,a)') "error checking aaaaaa(", i, ")=", & 33484 aaaaaa(i:i) 33485 FLUSH(0) 33486 CALL err_exit 33487 END IF 33488 END DO 33489 end 33490_ACEOF 33491if ac_fn_fc_try_run "$LINENO" 33492then : 33493 acx_cv_cfortran_works=yes 33494else $as_nop 33495 acx_cv_cfortran_works="error" 33496fi 33497rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 33498 conftest.$ac_objext conftest.beam conftest.$ac_ext 33499fi 33500 33501 LIBS=$save_LIBS 33502else $as_nop 33503 acx_cv_cfortran_works="error compiling Fortran subroutine" 33504fi 33505rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 33506 ac_ext=c 33507ac_cpp='$CPP $CPPFLAGS' 33508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 33509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 33510ac_compiler_gnu=$ac_cv_c_compiler_gnu 33511ac_link="./libtool --mode=link --tag=CC $ac_link" 33512 33513 ac_ext=f 33514ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 33515ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 33516ac_compiler_gnu=$ac_cv_f77_compiler_gnu 33517ac_link="./libtool --mode=link --tag=F77 $ac_link" 33518 33519 cat > conftest.$ac_ext <<_ACEOF 33520 REAL FUNCTION CFTSTF(v) 33521 REAL RI 33522 COMMON /CFTSTD/ RI 33523 REAL V 33524 REAL R 33525 CFTSTF = V * 100.0 33526 RI = 1.0 / V 33527 END FUNCTION CFTSTF 33528_ACEOF 33529if ac_fn_f77_try_compile "$LINENO" 33530then : 33531 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Renaming Fortran object file." >&5; } >&5 33532 (mv "conftest.$ac_objext" "conftest_f.$ac_objext") 2>&5 33533 ac_status=$? 33534 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33535 test $ac_status = 0; } 33536 save_LIBS=$LIBS 33537 LIBS="conftest_c.$ac_objext conftest_f.$ac_objext $LIBS" 33538 if test "$cross_compiling" = yes 33539then : 33540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Skipping run test for cfortran.h in cross-compilation mode," >&5 33541printf "%s\n" "$as_me: Skipping run test for cfortran.h in cross-compilation mode," >&6;} 33542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: link test succeeded." >&5 33543printf "%s\n" "$as_me: link test succeeded." >&6;} 33544 acx_cv_cfortran_works=yes 33545else $as_nop 33546 cat > conftest.$ac_ext <<_ACEOF 33547 program main 33548 REAL RI 33549 COMMON /CFTSTD/ RI 33550 REAL EPS 33551 PARAMETER(EPS=10E-6) 33552 REAL FOO, BOO, TOO 33553 INTEGER BAR, BAZ, I 33554 CHARACTER(99) AAAAAA 33555 EXTERNAL CFTSTC, CFTSTF, CHTST, ERR_EXIT 33556 REAL CFTSTC, CFTSTF 33557 CHARACTER(99) CHTST 33558 BAR = 5 33559 FOO = 0.3 33560 TOO = CFTSTC(BAR, FOO, BAZ, BOO) 33561 IF (ABS(BAZ - NINT(BAR * FOO)) /= 0) THEN 33562 WRITE (0, '(2(A,I0))') "ERROR CHECKING, WHEN BAZ, BAZ=", BAZ, 33563 & ", NINT(BAR * FOO) =", NINT(BAR * FOO) 33564 CALL ERR_EXIT 33565 END IF 33566 IF (ABS((RI - 1.0 / (BAR * FOO)) / ABS(RI)) > EPS) THEN 33567 WRITE (0, '(2(A,F24.15))') "ERROR CHECKING RI, RI=", RI, ", 33568 & 1.0 / (BAR * FOO) = ", 1.0 / (BAR * FOO) 33569 CALL err_exit 33570 END IF 33571 IF (ABS((BOO - (BAR * FOO * 100.0))/ABS(BOO)) > EPS) THEN 33572 WRITE (0, '(2(A,F24.15))') "ERROR CHECKING BOO, BOO=", BOO, 33573 & ", BAR * FOO * 100.0 = ", BAR * FOO * 100.0 33574 CALL ERR_EXIT 33575 END IF 33576 IF (TOO /= BOO) THEN 33577 WRITE (0, '(2(A,F24.15))') "ERROR CHECKING TOO VS. BOO, TOO=", 33578 & TOO, ", BOO = ", BOO 33579 CALL ERR_EXIT 33580 END IF 33581 AAAAAA = CHTST() 33582 DO i = 1, 99 33583 IF (AAAAAA(I:I) /= 'A') THEN 33584 WRITE (0, '(A,I0,2A)') "ERROR CHECKING AAAAAA(", I, ")=", 33585 & AAAAAA(I:I) 33586 CALL ERR_EXIT 33587 END IF 33588 END DO 33589 end 33590_ACEOF 33591if ac_fn_f77_try_run "$LINENO" 33592then : 33593 acx_cv_cfortran_works=yes 33594else $as_nop 33595 acx_cv_cfortran_works="error" 33596fi 33597rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 33598 conftest.$ac_objext conftest.beam conftest.$ac_ext 33599fi 33600 33601 LIBS=$save_LIBS 33602else $as_nop 33603 acx_cv_cfortran_works="error compiling Fortran subroutine" 33604fi 33605rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 33606 ac_ext=c 33607ac_cpp='$CPP $CPPFLAGS' 33608ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 33609ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 33610ac_compiler_gnu=$ac_cv_c_compiler_gnu 33611ac_link="./libtool --mode=link --tag=CC $ac_link" 33612 33613 33614else $as_nop 33615 acx_cv_cfortran_works="compiling with cfortran.h failed" 33616fi 33617rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 33618 ac_ext=c 33619ac_cpp='$CPP $CPPFLAGS' 33620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 33621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 33622ac_compiler_gnu=$ac_cv_c_compiler_gnu 33623ac_link="./libtool --mode=link --tag=CC $ac_link" 33624 33625 CPPFLAGS=$save_CPPFLAGS 33626 33627fi 33628{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cfortran_works" >&5 33629printf "%s\n" "$acx_cv_cfortran_works" >&6; } 33630 if test x"$acx_cv_cfortran_works" = xyes 33631then : 33632 33633printf "%s\n" "#define HAVE_CF_INTERFACE 1" >>confdefs.h 33634 33635else $as_nop 33636 case x"$acx_cv_cfortran_works" in #( 33637 x"error") : 33638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Linking/Running with C EXTERNAL built with cfortran.h does not work!" >&5 33639printf "%s\n" "$as_me: Linking/Running with C EXTERNAL built with cfortran.h does not work!" >&6;} ;; #( 33640 x"compiling with cfortran.h failed") : 33641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Compilation with cfortran.h is not working!" >&5 33642printf "%s\n" "$as_me: Compilation with cfortran.h is not working!" >&6;} ;; #( 33643 x"error compiling Fortran subroutine") : 33644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: compilation of simple Fortran source failed!" >&5 33645printf "%s\n" "$as_me: compilation of simple Fortran source failed!" >&6;} ;; #( 33646 *) : 33647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Unexpected error when linking C and Fortran via cfortran.h!" >&5 33648printf "%s\n" "$as_me: Unexpected error when linking C and Fortran via cfortran.h!" >&6;} ;; 33649esac 33650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Disabling cfortran.h bindings generation" >&5 33651printf "%s\n" "$as_me: Disabling cfortran.h bindings generation" >&6;} 33652 acx_cv_cfortran_works=no 33653fi 33654 33655fi 33656 33657fi 33658 if test -n "$FC" -a X"$FC" != Xno -a x"$acx_cv_cfortran_works" = xyes; then 33659 USE_FC_TRUE= 33660 USE_FC_FALSE='#' 33661else 33662 USE_FC_TRUE='#' 33663 USE_FC_FALSE= 33664fi 33665 33666# Checks for compiler 33667COMPILER="$CC $CFLAGS" 33668 33669printf "%s\n" "#define COMPILER \"$COMPILER\"" >>confdefs.h 33670 33671 33672ac_config_files="$ac_config_files tests/test_cksum_grib tests/test_cksum_nc tests/test_cksum_nc2 tests/test_cksum_nc4 tests/test_cksum_extra tests/test_cksum_service tests/test_cksum_ieg tests/test_chunk_cksum tests/test_f2003 tests/pio_write_run tests/pio_write_deco2d_run tests/pio_cksum_mpinonb tests/pio_cksum_mpi_fw_ordered tests/pio_cksum_mpi_fw_at_all tests/pio_cksum_mpi_fw_at_reblock tests/pio_cksum_fpguard tests/pio_cksum_asynch tests/pio_cksum_writer tests/pio_cksum_cdf tests/test_byteswap_run tests/test_resource_copy_run tests/test_resource_copy_mpi_run tests/test_cdf_transformation tests/test_cdf_const tests/test_table_run tables/gen_tableheaderfile util/serialrun" 33673 33674 33675ac_config_files="$ac_config_files Makefile src/Makefile interfaces/Makefile app/Makefile tests/Makefile examples/Makefile cdi.settings examples/pio/Makefile src/pkgconfig/cdi.pc src/pkgconfig/cdipio.pc src/pkgconfig/cdi_f2003.pc" 33676 33677cat >confcache <<\_ACEOF 33678# This file is a shell script that caches the results of configure 33679# tests run on this system so they can be shared between configure 33680# scripts and configure runs, see configure's option --config-cache. 33681# It is not useful on other systems. If it contains results you don't 33682# want to keep, you may remove or edit it. 33683# 33684# config.status only pays attention to the cache file if you give it 33685# the --recheck option to rerun configure. 33686# 33687# `ac_cv_env_foo' variables (set or unset) will be overridden when 33688# loading this file, other *unset* `ac_cv_foo' will be assigned the 33689# following values. 33690 33691_ACEOF 33692 33693# The following way of writing the cache mishandles newlines in values, 33694# but we know of no workaround that is simple, portable, and efficient. 33695# So, we kill variables containing newlines. 33696# Ultrix sh set writes to stderr and can't be redirected directly, 33697# and sets the high bit in the cache file unless we assign to the vars. 33698( 33699 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 33700 eval ac_val=\$$ac_var 33701 case $ac_val in #( 33702 *${as_nl}*) 33703 case $ac_var in #( 33704 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 33705printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 33706 esac 33707 case $ac_var in #( 33708 _ | IFS | as_nl) ;; #( 33709 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 33710 *) { eval $ac_var=; unset $ac_var;} ;; 33711 esac ;; 33712 esac 33713 done 33714 33715 (set) 2>&1 | 33716 case $as_nl`(ac_space=' '; set) 2>&1` in #( 33717 *${as_nl}ac_space=\ *) 33718 # `set' does not quote correctly, so add quotes: double-quote 33719 # substitution turns \\\\ into \\, and sed turns \\ into \. 33720 sed -n \ 33721 "s/'/'\\\\''/g; 33722 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 33723 ;; #( 33724 *) 33725 # `set' quotes correctly as required by POSIX, so do not add quotes. 33726 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 33727 ;; 33728 esac | 33729 sort 33730) | 33731 sed ' 33732 /^ac_cv_env_/b end 33733 t clear 33734 :clear 33735 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 33736 t end 33737 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 33738 :end' >>confcache 33739if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 33740 if test -w "$cache_file"; then 33741 if test "x$cache_file" != "x/dev/null"; then 33742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 33743printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 33744 if test ! -f "$cache_file" || test -h "$cache_file"; then 33745 cat confcache >"$cache_file" 33746 else 33747 case $cache_file in #( 33748 */* | ?:*) 33749 mv -f confcache "$cache_file"$$ && 33750 mv -f "$cache_file"$$ "$cache_file" ;; #( 33751 *) 33752 mv -f confcache "$cache_file" ;; 33753 esac 33754 fi 33755 fi 33756 else 33757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 33758printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 33759 fi 33760fi 33761rm -f confcache 33762 33763test "x$prefix" = xNONE && prefix=$ac_default_prefix 33764# Let make expand exec_prefix. 33765test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 33766 33767DEFS=-DHAVE_CONFIG_H 33768 33769ac_libobjs= 33770ac_ltlibobjs= 33771U= 33772for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 33773 # 1. Remove the extension, and $U if already installed. 33774 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 33775 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 33776 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 33777 # will be set to the directory where LIBOBJS objects are built. 33778 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 33779 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 33780done 33781LIBOBJS=$ac_libobjs 33782 33783LTLIBOBJS=$ac_ltlibobjs 33784 33785 33786{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 33787printf %s "checking that generated files are newer than configure... " >&6; } 33788 if test -n "$am_sleep_pid"; then 33789 # Hide warnings about reused PIDs. 33790 wait $am_sleep_pid 2>/dev/null 33791 fi 33792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 33793printf "%s\n" "done" >&6; } 33794 if test -n "$EXEEXT"; then 33795 am__EXEEXT_TRUE= 33796 am__EXEEXT_FALSE='#' 33797else 33798 am__EXEEXT_TRUE='#' 33799 am__EXEEXT_FALSE= 33800fi 33801 33802if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 33803 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 33804Usually this means the macro was only invoked conditionally." "$LINENO" 5 33805fi 33806if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 33807 as_fn_error $? "conditional \"AMDEP\" was never defined. 33808Usually this means the macro was only invoked conditionally." "$LINENO" 5 33809fi 33810if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 33811 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 33812Usually this means the macro was only invoked conditionally." "$LINENO" 5 33813fi 33814if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 33815 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 33816Usually this means the macro was only invoked conditionally." "$LINENO" 5 33817fi 33818 33819if test -z "${HAVE_LIBGRIB_API_TRUE}" && test -z "${HAVE_LIBGRIB_API_FALSE}"; then 33820 as_fn_error $? "conditional \"HAVE_LIBGRIB_API\" was never defined. 33821Usually this means the macro was only invoked conditionally." "$LINENO" 5 33822fi 33823if test -z "${ENABLE_CDI_LIB_TRUE}" && test -z "${ENABLE_CDI_LIB_FALSE}"; then 33824 as_fn_error $? "conditional \"ENABLE_CDI_LIB\" was never defined. 33825Usually this means the macro was only invoked conditionally." "$LINENO" 5 33826fi 33827if test -z "${ENABLE_ALL_STATIC_TRUE}" && test -z "${ENABLE_ALL_STATIC_FALSE}"; then 33828 as_fn_error $? "conditional \"ENABLE_ALL_STATIC\" was never defined. 33829Usually this means the macro was only invoked conditionally." "$LINENO" 5 33830fi 33831if test -z "${ENABLE_HIRLAM_EXTENSIONS_TRUE}" && test -z "${ENABLE_HIRLAM_EXTENSIONS_FALSE}"; then 33832 as_fn_error $? "conditional \"ENABLE_HIRLAM_EXTENSIONS\" was never defined. 33833Usually this means the macro was only invoked conditionally." "$LINENO" 5 33834fi 33835if test -z "${ENABLE_CDI_APP_TRUE}" && test -z "${ENABLE_CDI_APP_FALSE}"; then 33836 as_fn_error $? "conditional \"ENABLE_CDI_APP\" was never defined. 33837Usually this means the macro was only invoked conditionally." "$LINENO" 5 33838fi 33839if test -z "${ENABLE_NETCDF_TRUE}" && test -z "${ENABLE_NETCDF_FALSE}"; then 33840 as_fn_error $? "conditional \"ENABLE_NETCDF\" was never defined. 33841Usually this means the macro was only invoked conditionally." "$LINENO" 5 33842fi 33843if test -z "${USE_MPI_TRUE}" && test -z "${USE_MPI_FALSE}"; then 33844 as_fn_error $? "conditional \"USE_MPI\" was never defined. 33845Usually this means the macro was only invoked conditionally." "$LINENO" 5 33846fi 33847if test -z "${USE_PPM_CORE_TRUE}" && test -z "${USE_PPM_CORE_FALSE}"; then 33848 as_fn_error $? "conditional \"USE_PPM_CORE\" was never defined. 33849Usually this means the macro was only invoked conditionally." "$LINENO" 5 33850fi 33851if test -z "${HAVE_PARALLEL_NC4_TRUE}" && test -z "${HAVE_PARALLEL_NC4_FALSE}"; then 33852 as_fn_error $? "conditional \"HAVE_PARALLEL_NC4\" was never defined. 33853Usually this means the macro was only invoked conditionally." "$LINENO" 5 33854fi 33855if test -z "${CREATE_ISOC_TRUE}" && test -z "${CREATE_ISOC_FALSE}"; then 33856 as_fn_error $? "conditional \"CREATE_ISOC\" was never defined. 33857Usually this means the macro was only invoked conditionally." "$LINENO" 5 33858fi 33859if test -z "${FORTRAN_MOD_UC_TRUE}" && test -z "${FORTRAN_MOD_UC_FALSE}"; then 33860 as_fn_error $? "conditional \"FORTRAN_MOD_UC\" was never defined. 33861Usually this means the macro was only invoked conditionally." "$LINENO" 5 33862fi 33863if test -z "${ENABLE_SWIG_TRUE}" && test -z "${ENABLE_SWIG_FALSE}"; then 33864 as_fn_error $? "conditional \"ENABLE_SWIG\" was never defined. 33865Usually this means the macro was only invoked conditionally." "$LINENO" 5 33866fi 33867if test -z "${ENABLE_RUBY_TRUE}" && test -z "${ENABLE_RUBY_FALSE}"; then 33868 as_fn_error $? "conditional \"ENABLE_RUBY\" was never defined. 33869Usually this means the macro was only invoked conditionally." "$LINENO" 5 33870fi 33871if test -z "${ENABLE_PYTHON_TRUE}" && test -z "${ENABLE_PYTHON_FALSE}"; then 33872 as_fn_error $? "conditional \"ENABLE_PYTHON\" was never defined. 33873Usually this means the macro was only invoked conditionally." "$LINENO" 5 33874fi 33875if test -z "${CREATE_INTERFACES_TRUE}" && test -z "${CREATE_INTERFACES_FALSE}"; then 33876 as_fn_error $? "conditional \"CREATE_INTERFACES\" was never defined. 33877Usually this means the macro was only invoked conditionally." "$LINENO" 5 33878fi 33879if test -z "${USE_FC_TRUE}" && test -z "${USE_FC_FALSE}"; then 33880 as_fn_error $? "conditional \"USE_FC\" was never defined. 33881Usually this means the macro was only invoked conditionally." "$LINENO" 5 33882fi 33883CFLAGS="$CFLAGS${BUILD_CFLAGS+ $BUILD_CFLAGS}" 33884FCFLAGS="$FCFLAGS${BUILD_FCFLAGS+ $BUILD_FCFLAGS}" 33885LDFLAGS="$LDFLAGS${BUILD_LDFLAGS+ $BUILD_LDFLAGS}" 33886LIBS="$LIBS${BUILD_LIBS+ $BUILD_LIBS}" 33887MPI_C_LIB="$MPI_C_LIB${BUILD_MPI_C_LIB+ $BUILD_MPI_C_LIB}" 33888MPI_FC_LIB="$MPI_FC_LIB${BUILD_MPI_FC_LIB+ $BUILD_MPI_FC_LIB}" 33889C_INCLUDE="$C_INCLUDE${BUILD_C_INCLUDE+ $BUILD_C_INCLUDE}" 33890FC_INCLUDE="$FC_INCLUDE${BUILD_FC_INCLUDE+ $BUILD_FC_INCLUDE}" 33891CC="${BUILD_CC-$CC}" 33892CXX="${BUILD_CXX-$CXX}" 33893FC="${BUILD_FC-$FC}" 33894F77="${BUILD_F77-$F77}" 33895 33896: "${CONFIG_STATUS=./config.status}" 33897ac_write_fail=0 33898ac_clean_files_save=$ac_clean_files 33899ac_clean_files="$ac_clean_files $CONFIG_STATUS" 33900{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 33901printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 33902as_write_fail=0 33903cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 33904#! $SHELL 33905# Generated by $as_me. 33906# Run this file to recreate the current configuration. 33907# Compiler output produced by configure, useful for debugging 33908# configure, is in config.log if it exists. 33909 33910debug=false 33911ac_cs_recheck=false 33912ac_cs_silent=false 33913 33914SHELL=\${CONFIG_SHELL-$SHELL} 33915export SHELL 33916_ASEOF 33917cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 33918## -------------------- ## 33919## M4sh Initialization. ## 33920## -------------------- ## 33921 33922# Be more Bourne compatible 33923DUALCASE=1; export DUALCASE # for MKS sh 33924as_nop=: 33925if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 33926then : 33927 emulate sh 33928 NULLCMD=: 33929 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 33930 # is contrary to our usage. Disable this feature. 33931 alias -g '${1+"$@"}'='"$@"' 33932 setopt NO_GLOB_SUBST 33933else $as_nop 33934 case `(set -o) 2>/dev/null` in #( 33935 *posix*) : 33936 set -o posix ;; #( 33937 *) : 33938 ;; 33939esac 33940fi 33941 33942 33943 33944# Reset variables that may have inherited troublesome values from 33945# the environment. 33946 33947# IFS needs to be set, to space, tab, and newline, in precisely that order. 33948# (If _AS_PATH_WALK were called with IFS unset, it would have the 33949# side effect of setting IFS to empty, thus disabling word splitting.) 33950# Quoting is to prevent editors from complaining about space-tab. 33951as_nl=' 33952' 33953export as_nl 33954IFS=" "" $as_nl" 33955 33956PS1='$ ' 33957PS2='> ' 33958PS4='+ ' 33959 33960# Ensure predictable behavior from utilities with locale-dependent output. 33961LC_ALL=C 33962export LC_ALL 33963LANGUAGE=C 33964export LANGUAGE 33965 33966# We cannot yet rely on "unset" to work, but we need these variables 33967# to be unset--not just set to an empty or harmless value--now, to 33968# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 33969# also avoids known problems related to "unset" and subshell syntax 33970# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 33971for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 33972do eval test \${$as_var+y} \ 33973 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 33974done 33975 33976# Ensure that fds 0, 1, and 2 are open. 33977if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 33978if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 33979if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 33980 33981# The user is always right. 33982if ${PATH_SEPARATOR+false} :; then 33983 PATH_SEPARATOR=: 33984 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 33985 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 33986 PATH_SEPARATOR=';' 33987 } 33988fi 33989 33990 33991# Find who we are. Look in the path if we contain no directory separator. 33992as_myself= 33993case $0 in #(( 33994 *[\\/]* ) as_myself=$0 ;; 33995 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33996for as_dir in $PATH 33997do 33998 IFS=$as_save_IFS 33999 case $as_dir in #((( 34000 '') as_dir=./ ;; 34001 */) ;; 34002 *) as_dir=$as_dir/ ;; 34003 esac 34004 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 34005 done 34006IFS=$as_save_IFS 34007 34008 ;; 34009esac 34010# We did not find ourselves, most probably we were run as `sh COMMAND' 34011# in which case we are not to be found in the path. 34012if test "x$as_myself" = x; then 34013 as_myself=$0 34014fi 34015if test ! -f "$as_myself"; then 34016 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 34017 exit 1 34018fi 34019 34020 34021 34022# as_fn_error STATUS ERROR [LINENO LOG_FD] 34023# ---------------------------------------- 34024# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 34025# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 34026# script with STATUS, using 1 if that was 0. 34027as_fn_error () 34028{ 34029 as_status=$1; test $as_status -eq 0 && as_status=1 34030 if test "$4"; then 34031 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 34032 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 34033 fi 34034 printf "%s\n" "$as_me: error: $2" >&2 34035 as_fn_exit $as_status 34036} # as_fn_error 34037 34038 34039 34040# as_fn_set_status STATUS 34041# ----------------------- 34042# Set $? to STATUS, without forking. 34043as_fn_set_status () 34044{ 34045 return $1 34046} # as_fn_set_status 34047 34048# as_fn_exit STATUS 34049# ----------------- 34050# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 34051as_fn_exit () 34052{ 34053 set +e 34054 as_fn_set_status $1 34055 exit $1 34056} # as_fn_exit 34057 34058# as_fn_unset VAR 34059# --------------- 34060# Portably unset VAR. 34061as_fn_unset () 34062{ 34063 { eval $1=; unset $1;} 34064} 34065as_unset=as_fn_unset 34066 34067# as_fn_append VAR VALUE 34068# ---------------------- 34069# Append the text in VALUE to the end of the definition contained in VAR. Take 34070# advantage of any shell optimizations that allow amortized linear growth over 34071# repeated appends, instead of the typical quadratic growth present in naive 34072# implementations. 34073if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 34074then : 34075 eval 'as_fn_append () 34076 { 34077 eval $1+=\$2 34078 }' 34079else $as_nop 34080 as_fn_append () 34081 { 34082 eval $1=\$$1\$2 34083 } 34084fi # as_fn_append 34085 34086# as_fn_arith ARG... 34087# ------------------ 34088# Perform arithmetic evaluation on the ARGs, and store the result in the 34089# global $as_val. Take advantage of shells that can avoid forks. The arguments 34090# must be portable across $(()) and expr. 34091if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 34092then : 34093 eval 'as_fn_arith () 34094 { 34095 as_val=$(( $* )) 34096 }' 34097else $as_nop 34098 as_fn_arith () 34099 { 34100 as_val=`expr "$@" || test $? -eq 1` 34101 } 34102fi # as_fn_arith 34103 34104 34105if expr a : '\(a\)' >/dev/null 2>&1 && 34106 test "X`expr 00001 : '.*\(...\)'`" = X001; then 34107 as_expr=expr 34108else 34109 as_expr=false 34110fi 34111 34112if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 34113 as_basename=basename 34114else 34115 as_basename=false 34116fi 34117 34118if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 34119 as_dirname=dirname 34120else 34121 as_dirname=false 34122fi 34123 34124as_me=`$as_basename -- "$0" || 34125$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 34126 X"$0" : 'X\(//\)$' \| \ 34127 X"$0" : 'X\(/\)' \| . 2>/dev/null || 34128printf "%s\n" X/"$0" | 34129 sed '/^.*\/\([^/][^/]*\)\/*$/{ 34130 s//\1/ 34131 q 34132 } 34133 /^X\/\(\/\/\)$/{ 34134 s//\1/ 34135 q 34136 } 34137 /^X\/\(\/\).*/{ 34138 s//\1/ 34139 q 34140 } 34141 s/.*/./; q'` 34142 34143# Avoid depending upon Character Ranges. 34144as_cr_letters='abcdefghijklmnopqrstuvwxyz' 34145as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 34146as_cr_Letters=$as_cr_letters$as_cr_LETTERS 34147as_cr_digits='0123456789' 34148as_cr_alnum=$as_cr_Letters$as_cr_digits 34149 34150 34151# Determine whether it's possible to make 'echo' print without a newline. 34152# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 34153# for compatibility with existing Makefiles. 34154ECHO_C= ECHO_N= ECHO_T= 34155case `echo -n x` in #((((( 34156-n*) 34157 case `echo 'xy\c'` in 34158 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 34159 xy) ECHO_C='\c';; 34160 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 34161 ECHO_T=' ';; 34162 esac;; 34163*) 34164 ECHO_N='-n';; 34165esac 34166 34167# For backward compatibility with old third-party macros, we provide 34168# the shell variables $as_echo and $as_echo_n. New code should use 34169# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 34170as_echo='printf %s\n' 34171as_echo_n='printf %s' 34172 34173rm -f conf$$ conf$$.exe conf$$.file 34174if test -d conf$$.dir; then 34175 rm -f conf$$.dir/conf$$.file 34176else 34177 rm -f conf$$.dir 34178 mkdir conf$$.dir 2>/dev/null 34179fi 34180if (echo >conf$$.file) 2>/dev/null; then 34181 if ln -s conf$$.file conf$$ 2>/dev/null; then 34182 as_ln_s='ln -s' 34183 # ... but there are two gotchas: 34184 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 34185 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 34186 # In both cases, we have to default to `cp -pR'. 34187 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 34188 as_ln_s='cp -pR' 34189 elif ln conf$$.file conf$$ 2>/dev/null; then 34190 as_ln_s=ln 34191 else 34192 as_ln_s='cp -pR' 34193 fi 34194else 34195 as_ln_s='cp -pR' 34196fi 34197rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 34198rmdir conf$$.dir 2>/dev/null 34199 34200 34201# as_fn_mkdir_p 34202# ------------- 34203# Create "$as_dir" as a directory, including parents if necessary. 34204as_fn_mkdir_p () 34205{ 34206 34207 case $as_dir in #( 34208 -*) as_dir=./$as_dir;; 34209 esac 34210 test -d "$as_dir" || eval $as_mkdir_p || { 34211 as_dirs= 34212 while :; do 34213 case $as_dir in #( 34214 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 34215 *) as_qdir=$as_dir;; 34216 esac 34217 as_dirs="'$as_qdir' $as_dirs" 34218 as_dir=`$as_dirname -- "$as_dir" || 34219$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 34220 X"$as_dir" : 'X\(//\)[^/]' \| \ 34221 X"$as_dir" : 'X\(//\)$' \| \ 34222 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 34223printf "%s\n" X"$as_dir" | 34224 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 34225 s//\1/ 34226 q 34227 } 34228 /^X\(\/\/\)[^/].*/{ 34229 s//\1/ 34230 q 34231 } 34232 /^X\(\/\/\)$/{ 34233 s//\1/ 34234 q 34235 } 34236 /^X\(\/\).*/{ 34237 s//\1/ 34238 q 34239 } 34240 s/.*/./; q'` 34241 test -d "$as_dir" && break 34242 done 34243 test -z "$as_dirs" || eval "mkdir $as_dirs" 34244 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 34245 34246 34247} # as_fn_mkdir_p 34248if mkdir -p . 2>/dev/null; then 34249 as_mkdir_p='mkdir -p "$as_dir"' 34250else 34251 test -d ./-p && rmdir ./-p 34252 as_mkdir_p=false 34253fi 34254 34255 34256# as_fn_executable_p FILE 34257# ----------------------- 34258# Test if FILE is an executable regular file. 34259as_fn_executable_p () 34260{ 34261 test -f "$1" && test -x "$1" 34262} # as_fn_executable_p 34263as_test_x='test -x' 34264as_executable_p=as_fn_executable_p 34265 34266# Sed expression to map a string onto a valid CPP name. 34267as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 34268 34269# Sed expression to map a string onto a valid variable name. 34270as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 34271 34272 34273exec 6>&1 34274## ----------------------------------- ## 34275## Main body of $CONFIG_STATUS script. ## 34276## ----------------------------------- ## 34277_ASEOF 34278test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 34279 34280cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34281# Save the log message, to keep $0 and so on meaningful, and to 34282# report actual input values of CONFIG_FILES etc. instead of their 34283# values after options handling. 34284ac_log=" 34285This file was extended by cdi $as_me 2.0.1, which was 34286generated by GNU Autoconf 2.71. Invocation command line was 34287 34288 CONFIG_FILES = $CONFIG_FILES 34289 CONFIG_HEADERS = $CONFIG_HEADERS 34290 CONFIG_LINKS = $CONFIG_LINKS 34291 CONFIG_COMMANDS = $CONFIG_COMMANDS 34292 $ $0 $@ 34293 34294on `(hostname || uname -n) 2>/dev/null | sed 1q` 34295" 34296 34297_ACEOF 34298 34299case $ac_config_files in *" 34300"*) set x $ac_config_files; shift; ac_config_files=$*;; 34301esac 34302 34303case $ac_config_headers in *" 34304"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 34305esac 34306 34307 34308cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 34309# Files that config.status was made for. 34310config_files="$ac_config_files" 34311config_headers="$ac_config_headers" 34312config_commands="$ac_config_commands" 34313 34314_ACEOF 34315 34316cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34317ac_cs_usage="\ 34318\`$as_me' instantiates files and other configuration actions 34319from templates according to the current configuration. Unless the files 34320and actions are specified as TAGs, all are instantiated by default. 34321 34322Usage: $0 [OPTION]... [TAG]... 34323 34324 -h, --help print this help, then exit 34325 -V, --version print version number and configuration settings, then exit 34326 --config print configuration, then exit 34327 -q, --quiet, --silent 34328 do not print progress messages 34329 -d, --debug don't remove temporary files 34330 --recheck update $as_me by reconfiguring in the same conditions 34331 --file=FILE[:TEMPLATE] 34332 instantiate the configuration file FILE 34333 --header=FILE[:TEMPLATE] 34334 instantiate the configuration header FILE 34335 34336Configuration files: 34337$config_files 34338 34339Configuration headers: 34340$config_headers 34341 34342Configuration commands: 34343$config_commands 34344 34345Report bugs to <https://mpimet.mpg.de/cdi>." 34346 34347_ACEOF 34348ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 34349ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 34350cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 34351ac_cs_config='$ac_cs_config_escaped' 34352ac_cs_version="\\ 34353cdi config.status 2.0.1 34354configured by $0, generated by GNU Autoconf 2.71, 34355 with options \\"\$ac_cs_config\\" 34356 34357Copyright (C) 2021 Free Software Foundation, Inc. 34358This config.status script is free software; the Free Software Foundation 34359gives unlimited permission to copy, distribute and modify it." 34360 34361ac_pwd='$ac_pwd' 34362srcdir='$srcdir' 34363INSTALL='$INSTALL' 34364MKDIR_P='$MKDIR_P' 34365AWK='$AWK' 34366test -n "\$AWK" || AWK=awk 34367_ACEOF 34368 34369cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34370# The default lists apply if the user does not specify any file. 34371ac_need_defaults=: 34372while test $# != 0 34373do 34374 case $1 in 34375 --*=?*) 34376 ac_option=`expr "X$1" : 'X\([^=]*\)='` 34377 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 34378 ac_shift=: 34379 ;; 34380 --*=) 34381 ac_option=`expr "X$1" : 'X\([^=]*\)='` 34382 ac_optarg= 34383 ac_shift=: 34384 ;; 34385 *) 34386 ac_option=$1 34387 ac_optarg=$2 34388 ac_shift=shift 34389 ;; 34390 esac 34391 34392 case $ac_option in 34393 # Handling of the options. 34394 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 34395 ac_cs_recheck=: ;; 34396 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 34397 printf "%s\n" "$ac_cs_version"; exit ;; 34398 --config | --confi | --conf | --con | --co | --c ) 34399 printf "%s\n" "$ac_cs_config"; exit ;; 34400 --debug | --debu | --deb | --de | --d | -d ) 34401 debug=: ;; 34402 --file | --fil | --fi | --f ) 34403 $ac_shift 34404 case $ac_optarg in 34405 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 34406 '') as_fn_error $? "missing file argument" ;; 34407 esac 34408 as_fn_append CONFIG_FILES " '$ac_optarg'" 34409 ac_need_defaults=false;; 34410 --header | --heade | --head | --hea ) 34411 $ac_shift 34412 case $ac_optarg in 34413 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 34414 esac 34415 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 34416 ac_need_defaults=false;; 34417 --he | --h) 34418 # Conflict between --help and --header 34419 as_fn_error $? "ambiguous option: \`$1' 34420Try \`$0 --help' for more information.";; 34421 --help | --hel | -h ) 34422 printf "%s\n" "$ac_cs_usage"; exit ;; 34423 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 34424 | -silent | --silent | --silen | --sile | --sil | --si | --s) 34425 ac_cs_silent=: ;; 34426 34427 # This is an error. 34428 -*) as_fn_error $? "unrecognized option: \`$1' 34429Try \`$0 --help' for more information." ;; 34430 34431 *) as_fn_append ac_config_targets " $1" 34432 ac_need_defaults=false ;; 34433 34434 esac 34435 shift 34436done 34437 34438ac_configure_extra_args= 34439 34440if $ac_cs_silent; then 34441 exec 6>/dev/null 34442 ac_configure_extra_args="$ac_configure_extra_args --silent" 34443fi 34444 34445_ACEOF 34446cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 34447if \$ac_cs_recheck; then 34448 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 34449 shift 34450 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 34451 CONFIG_SHELL='$SHELL' 34452 export CONFIG_SHELL 34453 exec "\$@" 34454fi 34455 34456_ACEOF 34457cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34458exec 5>>config.log 34459{ 34460 echo 34461 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 34462## Running $as_me. ## 34463_ASBOX 34464 printf "%s\n" "$ac_log" 34465} >&5 34466 34467_ACEOF 34468cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 34469# 34470# INIT-COMMANDS 34471# 34472AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 34473 34474 34475# The HP-UX ksh and POSIX shell print the target directory to stdout 34476# if CDPATH is set. 34477(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 34478 34479sed_quote_subst='$sed_quote_subst' 34480double_quote_subst='$double_quote_subst' 34481delay_variable_subst='$delay_variable_subst' 34482macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 34483macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 34484pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 34485enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 34486enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 34487enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 34488shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 34489SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 34490ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 34491PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 34492host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 34493host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 34494host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 34495build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 34496build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 34497build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 34498SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 34499Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 34500GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 34501EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 34502FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 34503LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 34504NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 34505LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 34506max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 34507ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 34508exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 34509lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 34510lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 34511lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 34512lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 34513lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 34514reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 34515reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 34516OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 34517deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 34518file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 34519file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 34520want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 34521DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 34522sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 34523AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 34524AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 34525archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 34526STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 34527RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 34528old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 34529old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 34530old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 34531lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 34532CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 34533CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 34534compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 34535GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 34536lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 34537lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 34538lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 34539lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 34540lt_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"`' 34541lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 34542nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 34543lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 34544lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 34545objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 34546MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 34547lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 34548lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 34549lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 34550lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 34551lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 34552need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 34553MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 34554DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 34555NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 34556LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 34557OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 34558OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 34559libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 34560shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 34561extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 34562archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 34563enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 34564export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 34565whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 34566compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 34567old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 34568old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 34569archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 34570archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 34571module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 34572module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 34573with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 34574allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 34575no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 34576hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 34577hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 34578hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 34579hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 34580hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 34581hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 34582hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 34583inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 34584link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 34585always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 34586export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 34587exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 34588include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 34589prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 34590postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 34591file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 34592variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 34593need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 34594need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 34595version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 34596runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 34597shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 34598shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 34599libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 34600library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 34601soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 34602install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 34603postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 34604postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 34605finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 34606finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 34607hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 34608sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 34609configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 34610configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 34611hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 34612enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 34613enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 34614enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 34615old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 34616striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 34617compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 34618predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 34619postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 34620predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 34621postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 34622compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 34623LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 34624LD_F77='`$ECHO "$LD_F77" | $SED "$delay_single_quote_subst"`' 34625LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`' 34626reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 34627reload_flag_F77='`$ECHO "$reload_flag_F77" | $SED "$delay_single_quote_subst"`' 34628reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`' 34629reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 34630reload_cmds_F77='`$ECHO "$reload_cmds_F77" | $SED "$delay_single_quote_subst"`' 34631reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`' 34632old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 34633old_archive_cmds_F77='`$ECHO "$old_archive_cmds_F77" | $SED "$delay_single_quote_subst"`' 34634old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`' 34635compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 34636compiler_F77='`$ECHO "$compiler_F77" | $SED "$delay_single_quote_subst"`' 34637compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`' 34638GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 34639GCC_F77='`$ECHO "$GCC_F77" | $SED "$delay_single_quote_subst"`' 34640GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`' 34641lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 34642lt_prog_compiler_no_builtin_flag_F77='`$ECHO "$lt_prog_compiler_no_builtin_flag_F77" | $SED "$delay_single_quote_subst"`' 34643lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`' 34644lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 34645lt_prog_compiler_pic_F77='`$ECHO "$lt_prog_compiler_pic_F77" | $SED "$delay_single_quote_subst"`' 34646lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`' 34647lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 34648lt_prog_compiler_wl_F77='`$ECHO "$lt_prog_compiler_wl_F77" | $SED "$delay_single_quote_subst"`' 34649lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`' 34650lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 34651lt_prog_compiler_static_F77='`$ECHO "$lt_prog_compiler_static_F77" | $SED "$delay_single_quote_subst"`' 34652lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`' 34653lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 34654lt_cv_prog_compiler_c_o_F77='`$ECHO "$lt_cv_prog_compiler_c_o_F77" | $SED "$delay_single_quote_subst"`' 34655lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`' 34656archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 34657archive_cmds_need_lc_F77='`$ECHO "$archive_cmds_need_lc_F77" | $SED "$delay_single_quote_subst"`' 34658archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`' 34659enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 34660enable_shared_with_static_runtimes_F77='`$ECHO "$enable_shared_with_static_runtimes_F77" | $SED "$delay_single_quote_subst"`' 34661enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`' 34662export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 34663export_dynamic_flag_spec_F77='`$ECHO "$export_dynamic_flag_spec_F77" | $SED "$delay_single_quote_subst"`' 34664export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`' 34665whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 34666whole_archive_flag_spec_F77='`$ECHO "$whole_archive_flag_spec_F77" | $SED "$delay_single_quote_subst"`' 34667whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`' 34668compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 34669compiler_needs_object_F77='`$ECHO "$compiler_needs_object_F77" | $SED "$delay_single_quote_subst"`' 34670compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`' 34671old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 34672old_archive_from_new_cmds_F77='`$ECHO "$old_archive_from_new_cmds_F77" | $SED "$delay_single_quote_subst"`' 34673old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`' 34674old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 34675old_archive_from_expsyms_cmds_F77='`$ECHO "$old_archive_from_expsyms_cmds_F77" | $SED "$delay_single_quote_subst"`' 34676old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`' 34677archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 34678archive_cmds_F77='`$ECHO "$archive_cmds_F77" | $SED "$delay_single_quote_subst"`' 34679archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`' 34680archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 34681archive_expsym_cmds_F77='`$ECHO "$archive_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`' 34682archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`' 34683module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 34684module_cmds_F77='`$ECHO "$module_cmds_F77" | $SED "$delay_single_quote_subst"`' 34685module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`' 34686module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 34687module_expsym_cmds_F77='`$ECHO "$module_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`' 34688module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`' 34689with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 34690with_gnu_ld_F77='`$ECHO "$with_gnu_ld_F77" | $SED "$delay_single_quote_subst"`' 34691with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`' 34692allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 34693allow_undefined_flag_F77='`$ECHO "$allow_undefined_flag_F77" | $SED "$delay_single_quote_subst"`' 34694allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`' 34695no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 34696no_undefined_flag_F77='`$ECHO "$no_undefined_flag_F77" | $SED "$delay_single_quote_subst"`' 34697no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`' 34698hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 34699hardcode_libdir_flag_spec_F77='`$ECHO "$hardcode_libdir_flag_spec_F77" | $SED "$delay_single_quote_subst"`' 34700hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`' 34701hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 34702hardcode_libdir_separator_F77='`$ECHO "$hardcode_libdir_separator_F77" | $SED "$delay_single_quote_subst"`' 34703hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`' 34704hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 34705hardcode_direct_F77='`$ECHO "$hardcode_direct_F77" | $SED "$delay_single_quote_subst"`' 34706hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`' 34707hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 34708hardcode_direct_absolute_F77='`$ECHO "$hardcode_direct_absolute_F77" | $SED "$delay_single_quote_subst"`' 34709hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`' 34710hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 34711hardcode_minus_L_F77='`$ECHO "$hardcode_minus_L_F77" | $SED "$delay_single_quote_subst"`' 34712hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`' 34713hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 34714hardcode_shlibpath_var_F77='`$ECHO "$hardcode_shlibpath_var_F77" | $SED "$delay_single_quote_subst"`' 34715hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`' 34716hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 34717hardcode_automatic_F77='`$ECHO "$hardcode_automatic_F77" | $SED "$delay_single_quote_subst"`' 34718hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`' 34719inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 34720inherit_rpath_F77='`$ECHO "$inherit_rpath_F77" | $SED "$delay_single_quote_subst"`' 34721inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`' 34722link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 34723link_all_deplibs_F77='`$ECHO "$link_all_deplibs_F77" | $SED "$delay_single_quote_subst"`' 34724link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`' 34725always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 34726always_export_symbols_F77='`$ECHO "$always_export_symbols_F77" | $SED "$delay_single_quote_subst"`' 34727always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`' 34728export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 34729export_symbols_cmds_F77='`$ECHO "$export_symbols_cmds_F77" | $SED "$delay_single_quote_subst"`' 34730export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`' 34731exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 34732exclude_expsyms_F77='`$ECHO "$exclude_expsyms_F77" | $SED "$delay_single_quote_subst"`' 34733exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`' 34734include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 34735include_expsyms_F77='`$ECHO "$include_expsyms_F77" | $SED "$delay_single_quote_subst"`' 34736include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`' 34737prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 34738prelink_cmds_F77='`$ECHO "$prelink_cmds_F77" | $SED "$delay_single_quote_subst"`' 34739prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`' 34740postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 34741postlink_cmds_F77='`$ECHO "$postlink_cmds_F77" | $SED "$delay_single_quote_subst"`' 34742postlink_cmds_FC='`$ECHO "$postlink_cmds_FC" | $SED "$delay_single_quote_subst"`' 34743file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 34744file_list_spec_F77='`$ECHO "$file_list_spec_F77" | $SED "$delay_single_quote_subst"`' 34745file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`' 34746hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 34747hardcode_action_F77='`$ECHO "$hardcode_action_F77" | $SED "$delay_single_quote_subst"`' 34748hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`' 34749compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 34750compiler_lib_search_dirs_F77='`$ECHO "$compiler_lib_search_dirs_F77" | $SED "$delay_single_quote_subst"`' 34751compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`' 34752predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 34753predep_objects_F77='`$ECHO "$predep_objects_F77" | $SED "$delay_single_quote_subst"`' 34754predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`' 34755postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 34756postdep_objects_F77='`$ECHO "$postdep_objects_F77" | $SED "$delay_single_quote_subst"`' 34757postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`' 34758predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 34759predeps_F77='`$ECHO "$predeps_F77" | $SED "$delay_single_quote_subst"`' 34760predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`' 34761postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 34762postdeps_F77='`$ECHO "$postdeps_F77" | $SED "$delay_single_quote_subst"`' 34763postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`' 34764compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 34765compiler_lib_search_path_F77='`$ECHO "$compiler_lib_search_path_F77" | $SED "$delay_single_quote_subst"`' 34766compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`' 34767 34768LTCC='$LTCC' 34769LTCFLAGS='$LTCFLAGS' 34770compiler='$compiler_DEFAULT' 34771 34772# A function that is used when there is no print builtin or printf. 34773func_fallback_echo () 34774{ 34775 eval 'cat <<_LTECHO_EOF 34776\$1 34777_LTECHO_EOF' 34778} 34779 34780# Quote evaled strings. 34781for var in SHELL \ 34782ECHO \ 34783PATH_SEPARATOR \ 34784SED \ 34785GREP \ 34786EGREP \ 34787FGREP \ 34788LD \ 34789NM \ 34790LN_S \ 34791lt_SP2NL \ 34792lt_NL2SP \ 34793reload_flag \ 34794OBJDUMP \ 34795deplibs_check_method \ 34796file_magic_cmd \ 34797file_magic_glob \ 34798want_nocaseglob \ 34799DLLTOOL \ 34800sharedlib_from_linklib_cmd \ 34801AR \ 34802AR_FLAGS \ 34803archiver_list_spec \ 34804STRIP \ 34805RANLIB \ 34806CC \ 34807CFLAGS \ 34808compiler \ 34809lt_cv_sys_global_symbol_pipe \ 34810lt_cv_sys_global_symbol_to_cdecl \ 34811lt_cv_sys_global_symbol_to_import \ 34812lt_cv_sys_global_symbol_to_c_name_address \ 34813lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 34814lt_cv_nm_interface \ 34815nm_file_list_spec \ 34816lt_cv_truncate_bin \ 34817lt_prog_compiler_no_builtin_flag \ 34818lt_prog_compiler_pic \ 34819lt_prog_compiler_wl \ 34820lt_prog_compiler_static \ 34821lt_cv_prog_compiler_c_o \ 34822need_locks \ 34823MANIFEST_TOOL \ 34824DSYMUTIL \ 34825NMEDIT \ 34826LIPO \ 34827OTOOL \ 34828OTOOL64 \ 34829shrext_cmds \ 34830export_dynamic_flag_spec \ 34831whole_archive_flag_spec \ 34832compiler_needs_object \ 34833with_gnu_ld \ 34834allow_undefined_flag \ 34835no_undefined_flag \ 34836hardcode_libdir_flag_spec \ 34837hardcode_libdir_separator \ 34838exclude_expsyms \ 34839include_expsyms \ 34840file_list_spec \ 34841variables_saved_for_relink \ 34842libname_spec \ 34843library_names_spec \ 34844soname_spec \ 34845install_override_mode \ 34846finish_eval \ 34847old_striplib \ 34848striplib \ 34849compiler_lib_search_dirs \ 34850predep_objects \ 34851postdep_objects \ 34852predeps \ 34853postdeps \ 34854compiler_lib_search_path \ 34855LD_CXX \ 34856LD_F77 \ 34857LD_FC \ 34858reload_flag_CXX \ 34859reload_flag_F77 \ 34860reload_flag_FC \ 34861compiler_CXX \ 34862compiler_F77 \ 34863compiler_FC \ 34864lt_prog_compiler_no_builtin_flag_CXX \ 34865lt_prog_compiler_no_builtin_flag_F77 \ 34866lt_prog_compiler_no_builtin_flag_FC \ 34867lt_prog_compiler_pic_CXX \ 34868lt_prog_compiler_pic_F77 \ 34869lt_prog_compiler_pic_FC \ 34870lt_prog_compiler_wl_CXX \ 34871lt_prog_compiler_wl_F77 \ 34872lt_prog_compiler_wl_FC \ 34873lt_prog_compiler_static_CXX \ 34874lt_prog_compiler_static_F77 \ 34875lt_prog_compiler_static_FC \ 34876lt_cv_prog_compiler_c_o_CXX \ 34877lt_cv_prog_compiler_c_o_F77 \ 34878lt_cv_prog_compiler_c_o_FC \ 34879export_dynamic_flag_spec_CXX \ 34880export_dynamic_flag_spec_F77 \ 34881export_dynamic_flag_spec_FC \ 34882whole_archive_flag_spec_CXX \ 34883whole_archive_flag_spec_F77 \ 34884whole_archive_flag_spec_FC \ 34885compiler_needs_object_CXX \ 34886compiler_needs_object_F77 \ 34887compiler_needs_object_FC \ 34888with_gnu_ld_CXX \ 34889with_gnu_ld_F77 \ 34890with_gnu_ld_FC \ 34891allow_undefined_flag_CXX \ 34892allow_undefined_flag_F77 \ 34893allow_undefined_flag_FC \ 34894no_undefined_flag_CXX \ 34895no_undefined_flag_F77 \ 34896no_undefined_flag_FC \ 34897hardcode_libdir_flag_spec_CXX \ 34898hardcode_libdir_flag_spec_F77 \ 34899hardcode_libdir_flag_spec_FC \ 34900hardcode_libdir_separator_CXX \ 34901hardcode_libdir_separator_F77 \ 34902hardcode_libdir_separator_FC \ 34903exclude_expsyms_CXX \ 34904exclude_expsyms_F77 \ 34905exclude_expsyms_FC \ 34906include_expsyms_CXX \ 34907include_expsyms_F77 \ 34908include_expsyms_FC \ 34909file_list_spec_CXX \ 34910file_list_spec_F77 \ 34911file_list_spec_FC \ 34912compiler_lib_search_dirs_CXX \ 34913compiler_lib_search_dirs_F77 \ 34914compiler_lib_search_dirs_FC \ 34915predep_objects_CXX \ 34916predep_objects_F77 \ 34917predep_objects_FC \ 34918postdep_objects_CXX \ 34919postdep_objects_F77 \ 34920postdep_objects_FC \ 34921predeps_CXX \ 34922predeps_F77 \ 34923predeps_FC \ 34924postdeps_CXX \ 34925postdeps_F77 \ 34926postdeps_FC \ 34927compiler_lib_search_path_CXX \ 34928compiler_lib_search_path_F77 \ 34929compiler_lib_search_path_FC; do 34930 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 34931 *[\\\\\\\`\\"\\\$]*) 34932 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 34933 ;; 34934 *) 34935 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 34936 ;; 34937 esac 34938done 34939 34940# Double-quote double-evaled strings. 34941for var in reload_cmds \ 34942old_postinstall_cmds \ 34943old_postuninstall_cmds \ 34944old_archive_cmds \ 34945extract_expsyms_cmds \ 34946old_archive_from_new_cmds \ 34947old_archive_from_expsyms_cmds \ 34948archive_cmds \ 34949archive_expsym_cmds \ 34950module_cmds \ 34951module_expsym_cmds \ 34952export_symbols_cmds \ 34953prelink_cmds \ 34954postlink_cmds \ 34955postinstall_cmds \ 34956postuninstall_cmds \ 34957finish_cmds \ 34958sys_lib_search_path_spec \ 34959configure_time_dlsearch_path \ 34960configure_time_lt_sys_library_path \ 34961reload_cmds_CXX \ 34962reload_cmds_F77 \ 34963reload_cmds_FC \ 34964old_archive_cmds_CXX \ 34965old_archive_cmds_F77 \ 34966old_archive_cmds_FC \ 34967old_archive_from_new_cmds_CXX \ 34968old_archive_from_new_cmds_F77 \ 34969old_archive_from_new_cmds_FC \ 34970old_archive_from_expsyms_cmds_CXX \ 34971old_archive_from_expsyms_cmds_F77 \ 34972old_archive_from_expsyms_cmds_FC \ 34973archive_cmds_CXX \ 34974archive_cmds_F77 \ 34975archive_cmds_FC \ 34976archive_expsym_cmds_CXX \ 34977archive_expsym_cmds_F77 \ 34978archive_expsym_cmds_FC \ 34979module_cmds_CXX \ 34980module_cmds_F77 \ 34981module_cmds_FC \ 34982module_expsym_cmds_CXX \ 34983module_expsym_cmds_F77 \ 34984module_expsym_cmds_FC \ 34985export_symbols_cmds_CXX \ 34986export_symbols_cmds_F77 \ 34987export_symbols_cmds_FC \ 34988prelink_cmds_CXX \ 34989prelink_cmds_F77 \ 34990prelink_cmds_FC \ 34991postlink_cmds_CXX \ 34992postlink_cmds_F77 \ 34993postlink_cmds_FC; do 34994 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 34995 *[\\\\\\\`\\"\\\$]*) 34996 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 34997 ;; 34998 *) 34999 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 35000 ;; 35001 esac 35002done 35003 35004ac_aux_dir='$ac_aux_dir' 35005 35006# See if we are running on zsh, and set the options that allow our 35007# commands through without removal of \ escapes INIT. 35008if test -n "\${ZSH_VERSION+set}"; then 35009 setopt NO_GLOB_SUBST 35010fi 35011 35012 35013 PACKAGE='$PACKAGE' 35014 VERSION='$VERSION' 35015 RM='$RM' 35016 ofile='$ofile' 35017 35018 35019 35020 35021 35022 35023 35024ac_aux_dir='$ac_aux_dir' 35025 35026 35027 35028_ACEOF 35029 35030cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 35031 35032# Handling of arguments. 35033for ac_config_target in $ac_config_targets 35034do 35035 case $ac_config_target in 35036 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; 35037 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 35038 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 35039 "tests/test_cksum_grib") CONFIG_FILES="$CONFIG_FILES tests/test_cksum_grib" ;; 35040 "tests/test_cksum_nc") CONFIG_FILES="$CONFIG_FILES tests/test_cksum_nc" ;; 35041 "tests/test_cksum_nc2") CONFIG_FILES="$CONFIG_FILES tests/test_cksum_nc2" ;; 35042 "tests/test_cksum_nc4") CONFIG_FILES="$CONFIG_FILES tests/test_cksum_nc4" ;; 35043 "tests/test_cksum_extra") CONFIG_FILES="$CONFIG_FILES tests/test_cksum_extra" ;; 35044 "tests/test_cksum_service") CONFIG_FILES="$CONFIG_FILES tests/test_cksum_service" ;; 35045 "tests/test_cksum_ieg") CONFIG_FILES="$CONFIG_FILES tests/test_cksum_ieg" ;; 35046 "tests/test_chunk_cksum") CONFIG_FILES="$CONFIG_FILES tests/test_chunk_cksum" ;; 35047 "tests/test_f2003") CONFIG_FILES="$CONFIG_FILES tests/test_f2003" ;; 35048 "tests/pio_write_run") CONFIG_FILES="$CONFIG_FILES tests/pio_write_run" ;; 35049 "tests/pio_write_deco2d_run") CONFIG_FILES="$CONFIG_FILES tests/pio_write_deco2d_run" ;; 35050 "tests/pio_cksum_mpinonb") CONFIG_FILES="$CONFIG_FILES tests/pio_cksum_mpinonb" ;; 35051 "tests/pio_cksum_mpi_fw_ordered") CONFIG_FILES="$CONFIG_FILES tests/pio_cksum_mpi_fw_ordered" ;; 35052 "tests/pio_cksum_mpi_fw_at_all") CONFIG_FILES="$CONFIG_FILES tests/pio_cksum_mpi_fw_at_all" ;; 35053 "tests/pio_cksum_mpi_fw_at_reblock") CONFIG_FILES="$CONFIG_FILES tests/pio_cksum_mpi_fw_at_reblock" ;; 35054 "tests/pio_cksum_fpguard") CONFIG_FILES="$CONFIG_FILES tests/pio_cksum_fpguard" ;; 35055 "tests/pio_cksum_asynch") CONFIG_FILES="$CONFIG_FILES tests/pio_cksum_asynch" ;; 35056 "tests/pio_cksum_writer") CONFIG_FILES="$CONFIG_FILES tests/pio_cksum_writer" ;; 35057 "tests/pio_cksum_cdf") CONFIG_FILES="$CONFIG_FILES tests/pio_cksum_cdf" ;; 35058 "tests/test_byteswap_run") CONFIG_FILES="$CONFIG_FILES tests/test_byteswap_run" ;; 35059 "tests/test_resource_copy_run") CONFIG_FILES="$CONFIG_FILES tests/test_resource_copy_run" ;; 35060 "tests/test_resource_copy_mpi_run") CONFIG_FILES="$CONFIG_FILES tests/test_resource_copy_mpi_run" ;; 35061 "tests/test_cdf_transformation") CONFIG_FILES="$CONFIG_FILES tests/test_cdf_transformation" ;; 35062 "tests/test_cdf_const") CONFIG_FILES="$CONFIG_FILES tests/test_cdf_const" ;; 35063 "tests/test_table_run") CONFIG_FILES="$CONFIG_FILES tests/test_table_run" ;; 35064 "tables/gen_tableheaderfile") CONFIG_FILES="$CONFIG_FILES tables/gen_tableheaderfile" ;; 35065 "util/serialrun") CONFIG_FILES="$CONFIG_FILES util/serialrun" ;; 35066 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 35067 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 35068 "interfaces/Makefile") CONFIG_FILES="$CONFIG_FILES interfaces/Makefile" ;; 35069 "app/Makefile") CONFIG_FILES="$CONFIG_FILES app/Makefile" ;; 35070 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 35071 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; 35072 "cdi.settings") CONFIG_FILES="$CONFIG_FILES cdi.settings" ;; 35073 "examples/pio/Makefile") CONFIG_FILES="$CONFIG_FILES examples/pio/Makefile" ;; 35074 "src/pkgconfig/cdi.pc") CONFIG_FILES="$CONFIG_FILES src/pkgconfig/cdi.pc" ;; 35075 "src/pkgconfig/cdipio.pc") CONFIG_FILES="$CONFIG_FILES src/pkgconfig/cdipio.pc" ;; 35076 "src/pkgconfig/cdi_f2003.pc") CONFIG_FILES="$CONFIG_FILES src/pkgconfig/cdi_f2003.pc" ;; 35077 35078 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 35079 esac 35080done 35081 35082 35083# If the user did not use the arguments to specify the items to instantiate, 35084# then the envvar interface is used. Set only those that are not. 35085# We use the long form for the default assignment because of an extremely 35086# bizarre bug on SunOS 4.1.3. 35087if $ac_need_defaults; then 35088 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 35089 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 35090 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 35091fi 35092 35093# Have a temporary directory for convenience. Make it in the build tree 35094# simply because there is no reason against having it here, and in addition, 35095# creating and moving files from /tmp can sometimes cause problems. 35096# Hook for its removal unless debugging. 35097# Note that there is a small window in which the directory will not be cleaned: 35098# after its creation but before its name has been assigned to `$tmp'. 35099$debug || 35100{ 35101 tmp= ac_tmp= 35102 trap 'exit_status=$? 35103 : "${ac_tmp:=$tmp}" 35104 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 35105' 0 35106 trap 'as_fn_exit 1' 1 2 13 15 35107} 35108# Create a (secure) tmp directory for tmp files. 35109 35110{ 35111 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 35112 test -d "$tmp" 35113} || 35114{ 35115 tmp=./conf$$-$RANDOM 35116 (umask 077 && mkdir "$tmp") 35117} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 35118ac_tmp=$tmp 35119 35120# Set up the scripts for CONFIG_FILES section. 35121# No need to generate them if there are no CONFIG_FILES. 35122# This happens for instance with `./config.status config.h'. 35123if test -n "$CONFIG_FILES"; then 35124 35125 35126ac_cr=`echo X | tr X '\015'` 35127# On cygwin, bash can eat \r inside `` if the user requested igncr. 35128# But we know of no other shell where ac_cr would be empty at this 35129# point, so we can use a bashism as a fallback. 35130if test "x$ac_cr" = x; then 35131 eval ac_cr=\$\'\\r\' 35132fi 35133ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 35134if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 35135 ac_cs_awk_cr='\\r' 35136else 35137 ac_cs_awk_cr=$ac_cr 35138fi 35139 35140echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 35141_ACEOF 35142 35143 35144{ 35145 echo "cat >conf$$subs.awk <<_ACEOF" && 35146 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 35147 echo "_ACEOF" 35148} >conf$$subs.sh || 35149 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 35150ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 35151ac_delim='%!_!# ' 35152for ac_last_try in false false false false false :; do 35153 . ./conf$$subs.sh || 35154 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 35155 35156 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 35157 if test $ac_delim_n = $ac_delim_num; then 35158 break 35159 elif $ac_last_try; then 35160 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 35161 else 35162 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 35163 fi 35164done 35165rm -f conf$$subs.sh 35166 35167cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 35168cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 35169_ACEOF 35170sed -n ' 35171h 35172s/^/S["/; s/!.*/"]=/ 35173p 35174g 35175s/^[^!]*!// 35176:repl 35177t repl 35178s/'"$ac_delim"'$// 35179t delim 35180:nl 35181h 35182s/\(.\{148\}\)..*/\1/ 35183t more1 35184s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 35185p 35186n 35187b repl 35188:more1 35189s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 35190p 35191g 35192s/.\{148\}// 35193t nl 35194:delim 35195h 35196s/\(.\{148\}\)..*/\1/ 35197t more2 35198s/["\\]/\\&/g; s/^/"/; s/$/"/ 35199p 35200b 35201:more2 35202s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 35203p 35204g 35205s/.\{148\}// 35206t delim 35207' <conf$$subs.awk | sed ' 35208/^[^""]/{ 35209 N 35210 s/\n// 35211} 35212' >>$CONFIG_STATUS || ac_write_fail=1 35213rm -f conf$$subs.awk 35214cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 35215_ACAWK 35216cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 35217 for (key in S) S_is_set[key] = 1 35218 FS = "" 35219 35220} 35221{ 35222 line = $ 0 35223 nfields = split(line, field, "@") 35224 substed = 0 35225 len = length(field[1]) 35226 for (i = 2; i < nfields; i++) { 35227 key = field[i] 35228 keylen = length(key) 35229 if (S_is_set[key]) { 35230 value = S[key] 35231 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 35232 len += length(value) + length(field[++i]) 35233 substed = 1 35234 } else 35235 len += 1 + keylen 35236 } 35237 35238 print line 35239} 35240 35241_ACAWK 35242_ACEOF 35243cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 35244if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 35245 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 35246else 35247 cat 35248fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 35249 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 35250_ACEOF 35251 35252# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 35253# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 35254# trailing colons and then remove the whole line if VPATH becomes empty 35255# (actually we leave an empty line to preserve line numbers). 35256if test "x$srcdir" = x.; then 35257 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 35258h 35259s/// 35260s/^/:/ 35261s/[ ]*$/:/ 35262s/:\$(srcdir):/:/g 35263s/:\${srcdir}:/:/g 35264s/:@srcdir@:/:/g 35265s/^:*// 35266s/:*$// 35267x 35268s/\(=[ ]*\).*/\1/ 35269G 35270s/\n// 35271s/^[^=]*=[ ]*$// 35272}' 35273fi 35274 35275cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 35276fi # test -n "$CONFIG_FILES" 35277 35278# Set up the scripts for CONFIG_HEADERS section. 35279# No need to generate them if there are no CONFIG_HEADERS. 35280# This happens for instance with `./config.status Makefile'. 35281if test -n "$CONFIG_HEADERS"; then 35282cat >"$ac_tmp/defines.awk" <<\_ACAWK || 35283BEGIN { 35284_ACEOF 35285 35286# Transform confdefs.h into an awk script `defines.awk', embedded as 35287# here-document in config.status, that substitutes the proper values into 35288# config.h.in to produce config.h. 35289 35290# Create a delimiter string that does not exist in confdefs.h, to ease 35291# handling of long lines. 35292ac_delim='%!_!# ' 35293for ac_last_try in false false :; do 35294 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 35295 if test -z "$ac_tt"; then 35296 break 35297 elif $ac_last_try; then 35298 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 35299 else 35300 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 35301 fi 35302done 35303 35304# For the awk script, D is an array of macro values keyed by name, 35305# likewise P contains macro parameters if any. Preserve backslash 35306# newline sequences. 35307 35308ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 35309sed -n ' 35310s/.\{148\}/&'"$ac_delim"'/g 35311t rset 35312:rset 35313s/^[ ]*#[ ]*define[ ][ ]*/ / 35314t def 35315d 35316:def 35317s/\\$// 35318t bsnl 35319s/["\\]/\\&/g 35320s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 35321D["\1"]=" \3"/p 35322s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 35323d 35324:bsnl 35325s/["\\]/\\&/g 35326s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 35327D["\1"]=" \3\\\\\\n"\\/p 35328t cont 35329s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 35330t cont 35331d 35332:cont 35333n 35334s/.\{148\}/&'"$ac_delim"'/g 35335t clear 35336:clear 35337s/\\$// 35338t bsnlc 35339s/["\\]/\\&/g; s/^/"/; s/$/"/p 35340d 35341:bsnlc 35342s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 35343b cont 35344' <confdefs.h | sed ' 35345s/'"$ac_delim"'/"\\\ 35346"/g' >>$CONFIG_STATUS || ac_write_fail=1 35347 35348cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 35349 for (key in D) D_is_set[key] = 1 35350 FS = "" 35351} 35352/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 35353 line = \$ 0 35354 split(line, arg, " ") 35355 if (arg[1] == "#") { 35356 defundef = arg[2] 35357 mac1 = arg[3] 35358 } else { 35359 defundef = substr(arg[1], 2) 35360 mac1 = arg[2] 35361 } 35362 split(mac1, mac2, "(") #) 35363 macro = mac2[1] 35364 prefix = substr(line, 1, index(line, defundef) - 1) 35365 if (D_is_set[macro]) { 35366 # Preserve the white space surrounding the "#". 35367 print prefix "define", macro P[macro] D[macro] 35368 next 35369 } else { 35370 # Replace #undef with comments. This is necessary, for example, 35371 # in the case of _POSIX_SOURCE, which is predefined and required 35372 # on some systems where configure will not decide to define it. 35373 if (defundef == "undef") { 35374 print "/*", prefix defundef, macro, "*/" 35375 next 35376 } 35377 } 35378} 35379{ print } 35380_ACAWK 35381_ACEOF 35382cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 35383 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 35384fi # test -n "$CONFIG_HEADERS" 35385 35386 35387eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 35388shift 35389for ac_tag 35390do 35391 case $ac_tag in 35392 :[FHLC]) ac_mode=$ac_tag; continue;; 35393 esac 35394 case $ac_mode$ac_tag in 35395 :[FHL]*:*);; 35396 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 35397 :[FH]-) ac_tag=-:-;; 35398 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 35399 esac 35400 ac_save_IFS=$IFS 35401 IFS=: 35402 set x $ac_tag 35403 IFS=$ac_save_IFS 35404 shift 35405 ac_file=$1 35406 shift 35407 35408 case $ac_mode in 35409 :L) ac_source=$1;; 35410 :[FH]) 35411 ac_file_inputs= 35412 for ac_f 35413 do 35414 case $ac_f in 35415 -) ac_f="$ac_tmp/stdin";; 35416 *) # Look for the file first in the build tree, then in the source tree 35417 # (if the path is not absolute). The absolute path cannot be DOS-style, 35418 # because $ac_f cannot contain `:'. 35419 test -f "$ac_f" || 35420 case $ac_f in 35421 [\\/$]*) false;; 35422 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 35423 esac || 35424 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 35425 esac 35426 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 35427 as_fn_append ac_file_inputs " '$ac_f'" 35428 done 35429 35430 # Let's still pretend it is `configure' which instantiates (i.e., don't 35431 # use $as_me), people would be surprised to read: 35432 # /* config.h. Generated by config.status. */ 35433 configure_input='Generated from '` 35434 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 35435 `' by configure.' 35436 if test x"$ac_file" != x-; then 35437 configure_input="$ac_file. $configure_input" 35438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 35439printf "%s\n" "$as_me: creating $ac_file" >&6;} 35440 fi 35441 # Neutralize special characters interpreted by sed in replacement strings. 35442 case $configure_input in #( 35443 *\&* | *\|* | *\\* ) 35444 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 35445 sed 's/[\\\\&|]/\\\\&/g'`;; #( 35446 *) ac_sed_conf_input=$configure_input;; 35447 esac 35448 35449 case $ac_tag in 35450 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 35451 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 35452 esac 35453 ;; 35454 esac 35455 35456 ac_dir=`$as_dirname -- "$ac_file" || 35457$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 35458 X"$ac_file" : 'X\(//\)[^/]' \| \ 35459 X"$ac_file" : 'X\(//\)$' \| \ 35460 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 35461printf "%s\n" X"$ac_file" | 35462 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 35463 s//\1/ 35464 q 35465 } 35466 /^X\(\/\/\)[^/].*/{ 35467 s//\1/ 35468 q 35469 } 35470 /^X\(\/\/\)$/{ 35471 s//\1/ 35472 q 35473 } 35474 /^X\(\/\).*/{ 35475 s//\1/ 35476 q 35477 } 35478 s/.*/./; q'` 35479 as_dir="$ac_dir"; as_fn_mkdir_p 35480 ac_builddir=. 35481 35482case "$ac_dir" in 35483.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 35484*) 35485 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 35486 # A ".." for each directory in $ac_dir_suffix. 35487 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 35488 case $ac_top_builddir_sub in 35489 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 35490 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 35491 esac ;; 35492esac 35493ac_abs_top_builddir=$ac_pwd 35494ac_abs_builddir=$ac_pwd$ac_dir_suffix 35495# for backward compatibility: 35496ac_top_builddir=$ac_top_build_prefix 35497 35498case $srcdir in 35499 .) # We are building in place. 35500 ac_srcdir=. 35501 ac_top_srcdir=$ac_top_builddir_sub 35502 ac_abs_top_srcdir=$ac_pwd ;; 35503 [\\/]* | ?:[\\/]* ) # Absolute name. 35504 ac_srcdir=$srcdir$ac_dir_suffix; 35505 ac_top_srcdir=$srcdir 35506 ac_abs_top_srcdir=$srcdir ;; 35507 *) # Relative name. 35508 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 35509 ac_top_srcdir=$ac_top_build_prefix$srcdir 35510 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 35511esac 35512ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 35513 35514 35515 case $ac_mode in 35516 :F) 35517 # 35518 # CONFIG_FILE 35519 # 35520 35521 case $INSTALL in 35522 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 35523 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 35524 esac 35525 ac_MKDIR_P=$MKDIR_P 35526 case $MKDIR_P in 35527 [\\/$]* | ?:[\\/]* ) ;; 35528 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 35529 esac 35530_ACEOF 35531 35532cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 35533# If the template does not know about datarootdir, expand it. 35534# FIXME: This hack should be removed a few years after 2.60. 35535ac_datarootdir_hack=; ac_datarootdir_seen= 35536ac_sed_dataroot=' 35537/datarootdir/ { 35538 p 35539 q 35540} 35541/@datadir@/p 35542/@docdir@/p 35543/@infodir@/p 35544/@localedir@/p 35545/@mandir@/p' 35546case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 35547*datarootdir*) ac_datarootdir_seen=yes;; 35548*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 35549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 35550printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 35551_ACEOF 35552cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 35553 ac_datarootdir_hack=' 35554 s&@datadir@&$datadir&g 35555 s&@docdir@&$docdir&g 35556 s&@infodir@&$infodir&g 35557 s&@localedir@&$localedir&g 35558 s&@mandir@&$mandir&g 35559 s&\\\${datarootdir}&$datarootdir&g' ;; 35560esac 35561_ACEOF 35562 35563# Neutralize VPATH when `$srcdir' = `.'. 35564# Shell code in configure.ac might set extrasub. 35565# FIXME: do we really want to maintain this feature? 35566cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 35567ac_sed_extra="$ac_vpsub 35568$extrasub 35569_ACEOF 35570cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 35571:t 35572/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 35573s|@configure_input@|$ac_sed_conf_input|;t t 35574s&@top_builddir@&$ac_top_builddir_sub&;t t 35575s&@top_build_prefix@&$ac_top_build_prefix&;t t 35576s&@srcdir@&$ac_srcdir&;t t 35577s&@abs_srcdir@&$ac_abs_srcdir&;t t 35578s&@top_srcdir@&$ac_top_srcdir&;t t 35579s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 35580s&@builddir@&$ac_builddir&;t t 35581s&@abs_builddir@&$ac_abs_builddir&;t t 35582s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 35583s&@INSTALL@&$ac_INSTALL&;t t 35584s&@MKDIR_P@&$ac_MKDIR_P&;t t 35585$ac_datarootdir_hack 35586" 35587eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 35588 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 35589 35590test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 35591 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 35592 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 35593 "$ac_tmp/out"`; test -z "$ac_out"; } && 35594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 35595which seems to be undefined. Please make sure it is defined" >&5 35596printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 35597which seems to be undefined. Please make sure it is defined" >&2;} 35598 35599 rm -f "$ac_tmp/stdin" 35600 case $ac_file in 35601 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 35602 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 35603 esac \ 35604 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 35605 ;; 35606 :H) 35607 # 35608 # CONFIG_HEADER 35609 # 35610 if test x"$ac_file" != x-; then 35611 { 35612 printf "%s\n" "/* $configure_input */" >&1 \ 35613 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 35614 } >"$ac_tmp/config.h" \ 35615 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 35616 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 35617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 35618printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 35619 else 35620 rm -f "$ac_file" 35621 mv "$ac_tmp/config.h" "$ac_file" \ 35622 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 35623 fi 35624 else 35625 printf "%s\n" "/* $configure_input */" >&1 \ 35626 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 35627 || as_fn_error $? "could not create -" "$LINENO" 5 35628 fi 35629# Compute "$ac_file"'s index in $config_headers. 35630_am_arg="$ac_file" 35631_am_stamp_count=1 35632for _am_header in $config_headers :; do 35633 case $_am_header in 35634 $_am_arg | $_am_arg:* ) 35635 break ;; 35636 * ) 35637 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 35638 esac 35639done 35640echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 35641$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 35642 X"$_am_arg" : 'X\(//\)[^/]' \| \ 35643 X"$_am_arg" : 'X\(//\)$' \| \ 35644 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 35645printf "%s\n" X"$_am_arg" | 35646 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 35647 s//\1/ 35648 q 35649 } 35650 /^X\(\/\/\)[^/].*/{ 35651 s//\1/ 35652 q 35653 } 35654 /^X\(\/\/\)$/{ 35655 s//\1/ 35656 q 35657 } 35658 /^X\(\/\).*/{ 35659 s//\1/ 35660 q 35661 } 35662 s/.*/./; q'`/stamp-h$_am_stamp_count 35663 ;; 35664 35665 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 35666printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 35667 ;; 35668 esac 35669 35670 35671 case $ac_file$ac_mode in 35672 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 35673 # Older Autoconf quotes --file arguments for eval, but not when files 35674 # are listed without --file. Let's play safe and only enable the eval 35675 # if we detect the quoting. 35676 # TODO: see whether this extra hack can be removed once we start 35677 # requiring Autoconf 2.70 or later. 35678 case $CONFIG_FILES in #( 35679 *\'*) : 35680 eval set x "$CONFIG_FILES" ;; #( 35681 *) : 35682 set x $CONFIG_FILES ;; #( 35683 *) : 35684 ;; 35685esac 35686 shift 35687 # Used to flag and report bootstrapping failures. 35688 am_rc=0 35689 for am_mf 35690 do 35691 # Strip MF so we end up with the name of the file. 35692 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 35693 # Check whether this is an Automake generated Makefile which includes 35694 # dependency-tracking related rules and includes. 35695 # Grep'ing the whole file directly is not great: AIX grep has a line 35696 # limit of 2048, but all sed's we know have understand at least 4000. 35697 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 35698 || continue 35699 am_dirpart=`$as_dirname -- "$am_mf" || 35700$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 35701 X"$am_mf" : 'X\(//\)[^/]' \| \ 35702 X"$am_mf" : 'X\(//\)$' \| \ 35703 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 35704printf "%s\n" X"$am_mf" | 35705 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 35706 s//\1/ 35707 q 35708 } 35709 /^X\(\/\/\)[^/].*/{ 35710 s//\1/ 35711 q 35712 } 35713 /^X\(\/\/\)$/{ 35714 s//\1/ 35715 q 35716 } 35717 /^X\(\/\).*/{ 35718 s//\1/ 35719 q 35720 } 35721 s/.*/./; q'` 35722 am_filepart=`$as_basename -- "$am_mf" || 35723$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 35724 X"$am_mf" : 'X\(//\)$' \| \ 35725 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 35726printf "%s\n" X/"$am_mf" | 35727 sed '/^.*\/\([^/][^/]*\)\/*$/{ 35728 s//\1/ 35729 q 35730 } 35731 /^X\/\(\/\/\)$/{ 35732 s//\1/ 35733 q 35734 } 35735 /^X\/\(\/\).*/{ 35736 s//\1/ 35737 q 35738 } 35739 s/.*/./; q'` 35740 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 35741 && sed -e '/# am--include-marker/d' "$am_filepart" \ 35742 | $MAKE -f - am--depfiles" >&5 35743 (cd "$am_dirpart" \ 35744 && sed -e '/# am--include-marker/d' "$am_filepart" \ 35745 | $MAKE -f - am--depfiles) >&5 2>&5 35746 ac_status=$? 35747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35748 (exit $ac_status); } || am_rc=$? 35749 done 35750 if test $am_rc -ne 0; then 35751 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 35752printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 35753as_fn_error $? "Something went wrong bootstrapping makefile fragments 35754 for automatic dependency tracking. If GNU make was not used, consider 35755 re-running the configure script with MAKE=\"gmake\" (or whatever is 35756 necessary). You can also try re-running configure with the 35757 '--disable-dependency-tracking' option to at least be able to build 35758 the package (albeit without support for automatic dependency tracking). 35759See \`config.log' for more details" "$LINENO" 5; } 35760 fi 35761 { am_dirpart=; unset am_dirpart;} 35762 { am_filepart=; unset am_filepart;} 35763 { am_mf=; unset am_mf;} 35764 { am_rc=; unset am_rc;} 35765 rm -f conftest-deps.mk 35766} 35767 ;; 35768 "libtool":C) 35769 35770 # See if we are running on zsh, and set the options that allow our 35771 # commands through without removal of \ escapes. 35772 if test -n "${ZSH_VERSION+set}"; then 35773 setopt NO_GLOB_SUBST 35774 fi 35775 35776 cfgfile=${ofile}T 35777 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 35778 $RM "$cfgfile" 35779 35780 cat <<_LT_EOF >> "$cfgfile" 35781#! $SHELL 35782# Generated automatically by $as_me ($PACKAGE) $VERSION 35783# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 35784# NOTE: Changes made to this file will be lost: look at ltmain.sh. 35785 35786# Provide generalized library-building support services. 35787# Written by Gordon Matzigkeit, 1996 35788 35789# Copyright (C) 2014 Free Software Foundation, Inc. 35790# This is free software; see the source for copying conditions. There is NO 35791# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 35792 35793# GNU Libtool is free software; you can redistribute it and/or modify 35794# it under the terms of the GNU General Public License as published by 35795# the Free Software Foundation; either version 2 of of the License, or 35796# (at your option) any later version. 35797# 35798# As a special exception to the GNU General Public License, if you 35799# distribute this file as part of a program or library that is built 35800# using GNU Libtool, you may include this file under the same 35801# distribution terms that you use for the rest of that program. 35802# 35803# GNU Libtool is distributed in the hope that it will be useful, but 35804# WITHOUT ANY WARRANTY; without even the implied warranty of 35805# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 35806# GNU General Public License for more details. 35807# 35808# You should have received a copy of the GNU General Public License 35809# along with this program. If not, see <http://www.gnu.org/licenses/>. 35810 35811 35812# The names of the tagged configurations supported by this script. 35813available_tags='CXX F77 FC ' 35814 35815# Configured defaults for sys_lib_dlsearch_path munging. 35816: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 35817 35818# ### BEGIN LIBTOOL CONFIG 35819 35820# Which release of libtool.m4 was used? 35821macro_version=$macro_version 35822macro_revision=$macro_revision 35823 35824# What type of objects to build. 35825pic_mode=$pic_mode 35826 35827# Whether or not to build shared libraries. 35828build_libtool_libs=$enable_shared 35829 35830# Whether or not to build static libraries. 35831build_old_libs=$enable_static 35832 35833# Whether or not to optimize for fast installation. 35834fast_install=$enable_fast_install 35835 35836# Shared archive member basename,for filename based shared library versioning on AIX. 35837shared_archive_member_spec=$shared_archive_member_spec 35838 35839# Shell to use when invoking shell scripts. 35840SHELL=$lt_SHELL 35841 35842# An echo program that protects backslashes. 35843ECHO=$lt_ECHO 35844 35845# The PATH separator for the build system. 35846PATH_SEPARATOR=$lt_PATH_SEPARATOR 35847 35848# The host system. 35849host_alias=$host_alias 35850host=$host 35851host_os=$host_os 35852 35853# The build system. 35854build_alias=$build_alias 35855build=$build 35856build_os=$build_os 35857 35858# A sed program that does not truncate output. 35859SED=$lt_SED 35860 35861# Sed that helps us avoid accidentally triggering echo(1) options like -n. 35862Xsed="\$SED -e 1s/^X//" 35863 35864# A grep program that handles long lines. 35865GREP=$lt_GREP 35866 35867# An ERE matcher. 35868EGREP=$lt_EGREP 35869 35870# A literal string matcher. 35871FGREP=$lt_FGREP 35872 35873# A BSD- or MS-compatible name lister. 35874NM=$lt_NM 35875 35876# Whether we need soft or hard links. 35877LN_S=$lt_LN_S 35878 35879# What is the maximum length of a command? 35880max_cmd_len=$max_cmd_len 35881 35882# Object file suffix (normally "o"). 35883objext=$ac_objext 35884 35885# Executable file suffix (normally ""). 35886exeext=$exeext 35887 35888# whether the shell understands "unset". 35889lt_unset=$lt_unset 35890 35891# turn spaces into newlines. 35892SP2NL=$lt_lt_SP2NL 35893 35894# turn newlines into spaces. 35895NL2SP=$lt_lt_NL2SP 35896 35897# convert \$build file names to \$host format. 35898to_host_file_cmd=$lt_cv_to_host_file_cmd 35899 35900# convert \$build files to toolchain format. 35901to_tool_file_cmd=$lt_cv_to_tool_file_cmd 35902 35903# An object symbol dumper. 35904OBJDUMP=$lt_OBJDUMP 35905 35906# Method to check whether dependent libraries are shared objects. 35907deplibs_check_method=$lt_deplibs_check_method 35908 35909# Command to use when deplibs_check_method = "file_magic". 35910file_magic_cmd=$lt_file_magic_cmd 35911 35912# How to find potential files when deplibs_check_method = "file_magic". 35913file_magic_glob=$lt_file_magic_glob 35914 35915# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 35916want_nocaseglob=$lt_want_nocaseglob 35917 35918# DLL creation program. 35919DLLTOOL=$lt_DLLTOOL 35920 35921# Command to associate shared and link libraries. 35922sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 35923 35924# The archiver. 35925AR=$lt_AR 35926 35927# Flags to create an archive. 35928AR_FLAGS=$lt_AR_FLAGS 35929 35930# How to feed a file listing to the archiver. 35931archiver_list_spec=$lt_archiver_list_spec 35932 35933# A symbol stripping program. 35934STRIP=$lt_STRIP 35935 35936# Commands used to install an old-style archive. 35937RANLIB=$lt_RANLIB 35938old_postinstall_cmds=$lt_old_postinstall_cmds 35939old_postuninstall_cmds=$lt_old_postuninstall_cmds 35940 35941# Whether to use a lock for old archive extraction. 35942lock_old_archive_extraction=$lock_old_archive_extraction 35943 35944# A C compiler. 35945LTCC=$lt_CC 35946 35947# LTCC compiler flags. 35948LTCFLAGS=$lt_CFLAGS 35949 35950# Take the output of nm and produce a listing of raw symbols and C names. 35951global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 35952 35953# Transform the output of nm in a proper C declaration. 35954global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 35955 35956# Transform the output of nm into a list of symbols to manually relocate. 35957global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 35958 35959# Transform the output of nm in a C name address pair. 35960global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 35961 35962# Transform the output of nm in a C name address pair when lib prefix is needed. 35963global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 35964 35965# The name lister interface. 35966nm_interface=$lt_lt_cv_nm_interface 35967 35968# Specify filename containing input files for \$NM. 35969nm_file_list_spec=$lt_nm_file_list_spec 35970 35971# The root where to search for dependent libraries,and where our libraries should be installed. 35972lt_sysroot=$lt_sysroot 35973 35974# Command to truncate a binary pipe. 35975lt_truncate_bin=$lt_lt_cv_truncate_bin 35976 35977# The name of the directory that contains temporary libtool files. 35978objdir=$objdir 35979 35980# Used to examine libraries when file_magic_cmd begins with "file". 35981MAGIC_CMD=$MAGIC_CMD 35982 35983# Must we lock files when doing compilation? 35984need_locks=$lt_need_locks 35985 35986# Manifest tool. 35987MANIFEST_TOOL=$lt_MANIFEST_TOOL 35988 35989# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 35990DSYMUTIL=$lt_DSYMUTIL 35991 35992# Tool to change global to local symbols on Mac OS X. 35993NMEDIT=$lt_NMEDIT 35994 35995# Tool to manipulate fat objects and archives on Mac OS X. 35996LIPO=$lt_LIPO 35997 35998# ldd/readelf like tool for Mach-O binaries on Mac OS X. 35999OTOOL=$lt_OTOOL 36000 36001# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 36002OTOOL64=$lt_OTOOL64 36003 36004# Old archive suffix (normally "a"). 36005libext=$libext 36006 36007# Shared library suffix (normally ".so"). 36008shrext_cmds=$lt_shrext_cmds 36009 36010# The commands to extract the exported symbol list from a shared archive. 36011extract_expsyms_cmds=$lt_extract_expsyms_cmds 36012 36013# Variables whose values should be saved in libtool wrapper scripts and 36014# restored at link time. 36015variables_saved_for_relink=$lt_variables_saved_for_relink 36016 36017# Do we need the "lib" prefix for modules? 36018need_lib_prefix=$need_lib_prefix 36019 36020# Do we need a version for libraries? 36021need_version=$need_version 36022 36023# Library versioning type. 36024version_type=$version_type 36025 36026# Shared library runtime path variable. 36027runpath_var=$runpath_var 36028 36029# Shared library path variable. 36030shlibpath_var=$shlibpath_var 36031 36032# Is shlibpath searched before the hard-coded library search path? 36033shlibpath_overrides_runpath=$shlibpath_overrides_runpath 36034 36035# Format of library name prefix. 36036libname_spec=$lt_libname_spec 36037 36038# List of archive names. First name is the real one, the rest are links. 36039# The last name is the one that the linker finds with -lNAME 36040library_names_spec=$lt_library_names_spec 36041 36042# The coded name of the library, if different from the real name. 36043soname_spec=$lt_soname_spec 36044 36045# Permission mode override for installation of shared libraries. 36046install_override_mode=$lt_install_override_mode 36047 36048# Command to use after installation of a shared archive. 36049postinstall_cmds=$lt_postinstall_cmds 36050 36051# Command to use after uninstallation of a shared archive. 36052postuninstall_cmds=$lt_postuninstall_cmds 36053 36054# Commands used to finish a libtool library installation in a directory. 36055finish_cmds=$lt_finish_cmds 36056 36057# As "finish_cmds", except a single script fragment to be evaled but 36058# not shown. 36059finish_eval=$lt_finish_eval 36060 36061# Whether we should hardcode library paths into libraries. 36062hardcode_into_libs=$hardcode_into_libs 36063 36064# Compile-time system search path for libraries. 36065sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 36066 36067# Detected run-time system search path for libraries. 36068sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 36069 36070# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 36071configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 36072 36073# Whether dlopen is supported. 36074dlopen_support=$enable_dlopen 36075 36076# Whether dlopen of programs is supported. 36077dlopen_self=$enable_dlopen_self 36078 36079# Whether dlopen of statically linked programs is supported. 36080dlopen_self_static=$enable_dlopen_self_static 36081 36082# Commands to strip libraries. 36083old_striplib=$lt_old_striplib 36084striplib=$lt_striplib 36085 36086 36087# The linker used to build libraries. 36088LD=$lt_LD 36089 36090# How to create reloadable object files. 36091reload_flag=$lt_reload_flag 36092reload_cmds=$lt_reload_cmds 36093 36094# Commands used to build an old-style archive. 36095old_archive_cmds=$lt_old_archive_cmds 36096 36097# A language specific compiler. 36098CC=$lt_compiler 36099 36100# Is the compiler the GNU compiler? 36101with_gcc=$GCC 36102 36103# Compiler flag to turn off builtin functions. 36104no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 36105 36106# Additional compiler flags for building library objects. 36107pic_flag=$lt_lt_prog_compiler_pic 36108 36109# How to pass a linker flag through the compiler. 36110wl=$lt_lt_prog_compiler_wl 36111 36112# Compiler flag to prevent dynamic linking. 36113link_static_flag=$lt_lt_prog_compiler_static 36114 36115# Does compiler simultaneously support -c and -o options? 36116compiler_c_o=$lt_lt_cv_prog_compiler_c_o 36117 36118# Whether or not to add -lc for building shared libraries. 36119build_libtool_need_lc=$archive_cmds_need_lc 36120 36121# Whether or not to disallow shared libs when runtime libs are static. 36122allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 36123 36124# Compiler flag to allow reflexive dlopens. 36125export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 36126 36127# Compiler flag to generate shared objects directly from archives. 36128whole_archive_flag_spec=$lt_whole_archive_flag_spec 36129 36130# Whether the compiler copes with passing no objects directly. 36131compiler_needs_object=$lt_compiler_needs_object 36132 36133# Create an old-style archive from a shared archive. 36134old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 36135 36136# Create a temporary old-style archive to link instead of a shared archive. 36137old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 36138 36139# Commands used to build a shared archive. 36140archive_cmds=$lt_archive_cmds 36141archive_expsym_cmds=$lt_archive_expsym_cmds 36142 36143# Commands used to build a loadable module if different from building 36144# a shared archive. 36145module_cmds=$lt_module_cmds 36146module_expsym_cmds=$lt_module_expsym_cmds 36147 36148# Whether we are building with GNU ld or not. 36149with_gnu_ld=$lt_with_gnu_ld 36150 36151# Flag that allows shared libraries with undefined symbols to be built. 36152allow_undefined_flag=$lt_allow_undefined_flag 36153 36154# Flag that enforces no undefined symbols. 36155no_undefined_flag=$lt_no_undefined_flag 36156 36157# Flag to hardcode \$libdir into a binary during linking. 36158# This must work even if \$libdir does not exist 36159hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 36160 36161# Whether we need a single "-rpath" flag with a separated argument. 36162hardcode_libdir_separator=$lt_hardcode_libdir_separator 36163 36164# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 36165# DIR into the resulting binary. 36166hardcode_direct=$hardcode_direct 36167 36168# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 36169# DIR into the resulting binary and the resulting library dependency is 36170# "absolute",i.e impossible to change by setting \$shlibpath_var if the 36171# library is relocated. 36172hardcode_direct_absolute=$hardcode_direct_absolute 36173 36174# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 36175# into the resulting binary. 36176hardcode_minus_L=$hardcode_minus_L 36177 36178# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 36179# into the resulting binary. 36180hardcode_shlibpath_var=$hardcode_shlibpath_var 36181 36182# Set to "yes" if building a shared library automatically hardcodes DIR 36183# into the library and all subsequent libraries and executables linked 36184# against it. 36185hardcode_automatic=$hardcode_automatic 36186 36187# Set to yes if linker adds runtime paths of dependent libraries 36188# to runtime path list. 36189inherit_rpath=$inherit_rpath 36190 36191# Whether libtool must link a program against all its dependency libraries. 36192link_all_deplibs=$link_all_deplibs 36193 36194# Set to "yes" if exported symbols are required. 36195always_export_symbols=$always_export_symbols 36196 36197# The commands to list exported symbols. 36198export_symbols_cmds=$lt_export_symbols_cmds 36199 36200# Symbols that should not be listed in the preloaded symbols. 36201exclude_expsyms=$lt_exclude_expsyms 36202 36203# Symbols that must always be exported. 36204include_expsyms=$lt_include_expsyms 36205 36206# Commands necessary for linking programs (against libraries) with templates. 36207prelink_cmds=$lt_prelink_cmds 36208 36209# Commands necessary for finishing linking programs. 36210postlink_cmds=$lt_postlink_cmds 36211 36212# Specify filename containing input files. 36213file_list_spec=$lt_file_list_spec 36214 36215# How to hardcode a shared library path into an executable. 36216hardcode_action=$hardcode_action 36217 36218# The directories searched by this compiler when creating a shared library. 36219compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 36220 36221# Dependencies to place before and after the objects being linked to 36222# create a shared library. 36223predep_objects=$lt_predep_objects 36224postdep_objects=$lt_postdep_objects 36225predeps=$lt_predeps 36226postdeps=$lt_postdeps 36227 36228# The library search path used internally by the compiler when linking 36229# a shared library. 36230compiler_lib_search_path=$lt_compiler_lib_search_path 36231 36232# ### END LIBTOOL CONFIG 36233 36234_LT_EOF 36235 36236 cat <<'_LT_EOF' >> "$cfgfile" 36237 36238# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 36239 36240# func_munge_path_list VARIABLE PATH 36241# ----------------------------------- 36242# VARIABLE is name of variable containing _space_ separated list of 36243# directories to be munged by the contents of PATH, which is string 36244# having a format: 36245# "DIR[:DIR]:" 36246# string "DIR[ DIR]" will be prepended to VARIABLE 36247# ":DIR[:DIR]" 36248# string "DIR[ DIR]" will be appended to VARIABLE 36249# "DIRP[:DIRP]::[DIRA:]DIRA" 36250# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 36251# "DIRA[ DIRA]" will be appended to VARIABLE 36252# "DIR[:DIR]" 36253# VARIABLE will be replaced by "DIR[ DIR]" 36254func_munge_path_list () 36255{ 36256 case x$2 in 36257 x) 36258 ;; 36259 *:) 36260 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 36261 ;; 36262 x:*) 36263 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 36264 ;; 36265 *::*) 36266 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 36267 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 36268 ;; 36269 *) 36270 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 36271 ;; 36272 esac 36273} 36274 36275 36276# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 36277func_cc_basename () 36278{ 36279 for cc_temp in $*""; do 36280 case $cc_temp in 36281 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 36282 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 36283 \-*) ;; 36284 *) break;; 36285 esac 36286 done 36287 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 36288} 36289 36290 36291# ### END FUNCTIONS SHARED WITH CONFIGURE 36292 36293_LT_EOF 36294 36295 case $host_os in 36296 aix3*) 36297 cat <<\_LT_EOF >> "$cfgfile" 36298# AIX sometimes has problems with the GCC collect2 program. For some 36299# reason, if we set the COLLECT_NAMES environment variable, the problems 36300# vanish in a puff of smoke. 36301if test set != "${COLLECT_NAMES+set}"; then 36302 COLLECT_NAMES= 36303 export COLLECT_NAMES 36304fi 36305_LT_EOF 36306 ;; 36307 esac 36308 36309 36310 36311ltmain=$ac_aux_dir/ltmain.sh 36312 36313 36314 # We use sed instead of cat because bash on DJGPP gets confused if 36315 # if finds mixed CR/LF and LF-only lines. Since sed operates in 36316 # text mode, it properly converts lines to CR/LF. This bash problem 36317 # is reportedly fixed, but why not run on old versions too? 36318 sed '$q' "$ltmain" >> "$cfgfile" \ 36319 || (rm -f "$cfgfile"; exit 1) 36320 36321 mv -f "$cfgfile" "$ofile" || 36322 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 36323 chmod +x "$ofile" 36324 36325 36326 cat <<_LT_EOF >> "$ofile" 36327 36328# ### BEGIN LIBTOOL TAG CONFIG: CXX 36329 36330# The linker used to build libraries. 36331LD=$lt_LD_CXX 36332 36333# How to create reloadable object files. 36334reload_flag=$lt_reload_flag_CXX 36335reload_cmds=$lt_reload_cmds_CXX 36336 36337# Commands used to build an old-style archive. 36338old_archive_cmds=$lt_old_archive_cmds_CXX 36339 36340# A language specific compiler. 36341CC=$lt_compiler_CXX 36342 36343# Is the compiler the GNU compiler? 36344with_gcc=$GCC_CXX 36345 36346# Compiler flag to turn off builtin functions. 36347no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 36348 36349# Additional compiler flags for building library objects. 36350pic_flag=$lt_lt_prog_compiler_pic_CXX 36351 36352# How to pass a linker flag through the compiler. 36353wl=$lt_lt_prog_compiler_wl_CXX 36354 36355# Compiler flag to prevent dynamic linking. 36356link_static_flag=$lt_lt_prog_compiler_static_CXX 36357 36358# Does compiler simultaneously support -c and -o options? 36359compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 36360 36361# Whether or not to add -lc for building shared libraries. 36362build_libtool_need_lc=$archive_cmds_need_lc_CXX 36363 36364# Whether or not to disallow shared libs when runtime libs are static. 36365allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 36366 36367# Compiler flag to allow reflexive dlopens. 36368export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 36369 36370# Compiler flag to generate shared objects directly from archives. 36371whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 36372 36373# Whether the compiler copes with passing no objects directly. 36374compiler_needs_object=$lt_compiler_needs_object_CXX 36375 36376# Create an old-style archive from a shared archive. 36377old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 36378 36379# Create a temporary old-style archive to link instead of a shared archive. 36380old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 36381 36382# Commands used to build a shared archive. 36383archive_cmds=$lt_archive_cmds_CXX 36384archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 36385 36386# Commands used to build a loadable module if different from building 36387# a shared archive. 36388module_cmds=$lt_module_cmds_CXX 36389module_expsym_cmds=$lt_module_expsym_cmds_CXX 36390 36391# Whether we are building with GNU ld or not. 36392with_gnu_ld=$lt_with_gnu_ld_CXX 36393 36394# Flag that allows shared libraries with undefined symbols to be built. 36395allow_undefined_flag=$lt_allow_undefined_flag_CXX 36396 36397# Flag that enforces no undefined symbols. 36398no_undefined_flag=$lt_no_undefined_flag_CXX 36399 36400# Flag to hardcode \$libdir into a binary during linking. 36401# This must work even if \$libdir does not exist 36402hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 36403 36404# Whether we need a single "-rpath" flag with a separated argument. 36405hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 36406 36407# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 36408# DIR into the resulting binary. 36409hardcode_direct=$hardcode_direct_CXX 36410 36411# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 36412# DIR into the resulting binary and the resulting library dependency is 36413# "absolute",i.e impossible to change by setting \$shlibpath_var if the 36414# library is relocated. 36415hardcode_direct_absolute=$hardcode_direct_absolute_CXX 36416 36417# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 36418# into the resulting binary. 36419hardcode_minus_L=$hardcode_minus_L_CXX 36420 36421# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 36422# into the resulting binary. 36423hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 36424 36425# Set to "yes" if building a shared library automatically hardcodes DIR 36426# into the library and all subsequent libraries and executables linked 36427# against it. 36428hardcode_automatic=$hardcode_automatic_CXX 36429 36430# Set to yes if linker adds runtime paths of dependent libraries 36431# to runtime path list. 36432inherit_rpath=$inherit_rpath_CXX 36433 36434# Whether libtool must link a program against all its dependency libraries. 36435link_all_deplibs=$link_all_deplibs_CXX 36436 36437# Set to "yes" if exported symbols are required. 36438always_export_symbols=$always_export_symbols_CXX 36439 36440# The commands to list exported symbols. 36441export_symbols_cmds=$lt_export_symbols_cmds_CXX 36442 36443# Symbols that should not be listed in the preloaded symbols. 36444exclude_expsyms=$lt_exclude_expsyms_CXX 36445 36446# Symbols that must always be exported. 36447include_expsyms=$lt_include_expsyms_CXX 36448 36449# Commands necessary for linking programs (against libraries) with templates. 36450prelink_cmds=$lt_prelink_cmds_CXX 36451 36452# Commands necessary for finishing linking programs. 36453postlink_cmds=$lt_postlink_cmds_CXX 36454 36455# Specify filename containing input files. 36456file_list_spec=$lt_file_list_spec_CXX 36457 36458# How to hardcode a shared library path into an executable. 36459hardcode_action=$hardcode_action_CXX 36460 36461# The directories searched by this compiler when creating a shared library. 36462compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 36463 36464# Dependencies to place before and after the objects being linked to 36465# create a shared library. 36466predep_objects=$lt_predep_objects_CXX 36467postdep_objects=$lt_postdep_objects_CXX 36468predeps=$lt_predeps_CXX 36469postdeps=$lt_postdeps_CXX 36470 36471# The library search path used internally by the compiler when linking 36472# a shared library. 36473compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 36474 36475# ### END LIBTOOL TAG CONFIG: CXX 36476_LT_EOF 36477 36478 36479 cat <<_LT_EOF >> "$ofile" 36480 36481# ### BEGIN LIBTOOL TAG CONFIG: F77 36482 36483# The linker used to build libraries. 36484LD=$lt_LD_F77 36485 36486# How to create reloadable object files. 36487reload_flag=$lt_reload_flag_F77 36488reload_cmds=$lt_reload_cmds_F77 36489 36490# Commands used to build an old-style archive. 36491old_archive_cmds=$lt_old_archive_cmds_F77 36492 36493# A language specific compiler. 36494CC=$lt_compiler_F77 36495 36496# Is the compiler the GNU compiler? 36497with_gcc=$GCC_F77 36498 36499# Compiler flag to turn off builtin functions. 36500no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 36501 36502# Additional compiler flags for building library objects. 36503pic_flag=$lt_lt_prog_compiler_pic_F77 36504 36505# How to pass a linker flag through the compiler. 36506wl=$lt_lt_prog_compiler_wl_F77 36507 36508# Compiler flag to prevent dynamic linking. 36509link_static_flag=$lt_lt_prog_compiler_static_F77 36510 36511# Does compiler simultaneously support -c and -o options? 36512compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 36513 36514# Whether or not to add -lc for building shared libraries. 36515build_libtool_need_lc=$archive_cmds_need_lc_F77 36516 36517# Whether or not to disallow shared libs when runtime libs are static. 36518allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 36519 36520# Compiler flag to allow reflexive dlopens. 36521export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 36522 36523# Compiler flag to generate shared objects directly from archives. 36524whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 36525 36526# Whether the compiler copes with passing no objects directly. 36527compiler_needs_object=$lt_compiler_needs_object_F77 36528 36529# Create an old-style archive from a shared archive. 36530old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 36531 36532# Create a temporary old-style archive to link instead of a shared archive. 36533old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 36534 36535# Commands used to build a shared archive. 36536archive_cmds=$lt_archive_cmds_F77 36537archive_expsym_cmds=$lt_archive_expsym_cmds_F77 36538 36539# Commands used to build a loadable module if different from building 36540# a shared archive. 36541module_cmds=$lt_module_cmds_F77 36542module_expsym_cmds=$lt_module_expsym_cmds_F77 36543 36544# Whether we are building with GNU ld or not. 36545with_gnu_ld=$lt_with_gnu_ld_F77 36546 36547# Flag that allows shared libraries with undefined symbols to be built. 36548allow_undefined_flag=$lt_allow_undefined_flag_F77 36549 36550# Flag that enforces no undefined symbols. 36551no_undefined_flag=$lt_no_undefined_flag_F77 36552 36553# Flag to hardcode \$libdir into a binary during linking. 36554# This must work even if \$libdir does not exist 36555hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 36556 36557# Whether we need a single "-rpath" flag with a separated argument. 36558hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 36559 36560# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 36561# DIR into the resulting binary. 36562hardcode_direct=$hardcode_direct_F77 36563 36564# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 36565# DIR into the resulting binary and the resulting library dependency is 36566# "absolute",i.e impossible to change by setting \$shlibpath_var if the 36567# library is relocated. 36568hardcode_direct_absolute=$hardcode_direct_absolute_F77 36569 36570# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 36571# into the resulting binary. 36572hardcode_minus_L=$hardcode_minus_L_F77 36573 36574# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 36575# into the resulting binary. 36576hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 36577 36578# Set to "yes" if building a shared library automatically hardcodes DIR 36579# into the library and all subsequent libraries and executables linked 36580# against it. 36581hardcode_automatic=$hardcode_automatic_F77 36582 36583# Set to yes if linker adds runtime paths of dependent libraries 36584# to runtime path list. 36585inherit_rpath=$inherit_rpath_F77 36586 36587# Whether libtool must link a program against all its dependency libraries. 36588link_all_deplibs=$link_all_deplibs_F77 36589 36590# Set to "yes" if exported symbols are required. 36591always_export_symbols=$always_export_symbols_F77 36592 36593# The commands to list exported symbols. 36594export_symbols_cmds=$lt_export_symbols_cmds_F77 36595 36596# Symbols that should not be listed in the preloaded symbols. 36597exclude_expsyms=$lt_exclude_expsyms_F77 36598 36599# Symbols that must always be exported. 36600include_expsyms=$lt_include_expsyms_F77 36601 36602# Commands necessary for linking programs (against libraries) with templates. 36603prelink_cmds=$lt_prelink_cmds_F77 36604 36605# Commands necessary for finishing linking programs. 36606postlink_cmds=$lt_postlink_cmds_F77 36607 36608# Specify filename containing input files. 36609file_list_spec=$lt_file_list_spec_F77 36610 36611# How to hardcode a shared library path into an executable. 36612hardcode_action=$hardcode_action_F77 36613 36614# The directories searched by this compiler when creating a shared library. 36615compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77 36616 36617# Dependencies to place before and after the objects being linked to 36618# create a shared library. 36619predep_objects=$lt_predep_objects_F77 36620postdep_objects=$lt_postdep_objects_F77 36621predeps=$lt_predeps_F77 36622postdeps=$lt_postdeps_F77 36623 36624# The library search path used internally by the compiler when linking 36625# a shared library. 36626compiler_lib_search_path=$lt_compiler_lib_search_path_F77 36627 36628# ### END LIBTOOL TAG CONFIG: F77 36629_LT_EOF 36630 36631 36632 cat <<_LT_EOF >> "$ofile" 36633 36634# ### BEGIN LIBTOOL TAG CONFIG: FC 36635 36636# The linker used to build libraries. 36637LD=$lt_LD_FC 36638 36639# How to create reloadable object files. 36640reload_flag=$lt_reload_flag_FC 36641reload_cmds=$lt_reload_cmds_FC 36642 36643# Commands used to build an old-style archive. 36644old_archive_cmds=$lt_old_archive_cmds_FC 36645 36646# A language specific compiler. 36647CC=$lt_compiler_FC 36648 36649# Is the compiler the GNU compiler? 36650with_gcc=$GCC_FC 36651 36652# Compiler flag to turn off builtin functions. 36653no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC 36654 36655# Additional compiler flags for building library objects. 36656pic_flag=$lt_lt_prog_compiler_pic_FC 36657 36658# How to pass a linker flag through the compiler. 36659wl=$lt_lt_prog_compiler_wl_FC 36660 36661# Compiler flag to prevent dynamic linking. 36662link_static_flag=$lt_lt_prog_compiler_static_FC 36663 36664# Does compiler simultaneously support -c and -o options? 36665compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC 36666 36667# Whether or not to add -lc for building shared libraries. 36668build_libtool_need_lc=$archive_cmds_need_lc_FC 36669 36670# Whether or not to disallow shared libs when runtime libs are static. 36671allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC 36672 36673# Compiler flag to allow reflexive dlopens. 36674export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC 36675 36676# Compiler flag to generate shared objects directly from archives. 36677whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC 36678 36679# Whether the compiler copes with passing no objects directly. 36680compiler_needs_object=$lt_compiler_needs_object_FC 36681 36682# Create an old-style archive from a shared archive. 36683old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC 36684 36685# Create a temporary old-style archive to link instead of a shared archive. 36686old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC 36687 36688# Commands used to build a shared archive. 36689archive_cmds=$lt_archive_cmds_FC 36690archive_expsym_cmds=$lt_archive_expsym_cmds_FC 36691 36692# Commands used to build a loadable module if different from building 36693# a shared archive. 36694module_cmds=$lt_module_cmds_FC 36695module_expsym_cmds=$lt_module_expsym_cmds_FC 36696 36697# Whether we are building with GNU ld or not. 36698with_gnu_ld=$lt_with_gnu_ld_FC 36699 36700# Flag that allows shared libraries with undefined symbols to be built. 36701allow_undefined_flag=$lt_allow_undefined_flag_FC 36702 36703# Flag that enforces no undefined symbols. 36704no_undefined_flag=$lt_no_undefined_flag_FC 36705 36706# Flag to hardcode \$libdir into a binary during linking. 36707# This must work even if \$libdir does not exist 36708hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC 36709 36710# Whether we need a single "-rpath" flag with a separated argument. 36711hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC 36712 36713# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 36714# DIR into the resulting binary. 36715hardcode_direct=$hardcode_direct_FC 36716 36717# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 36718# DIR into the resulting binary and the resulting library dependency is 36719# "absolute",i.e impossible to change by setting \$shlibpath_var if the 36720# library is relocated. 36721hardcode_direct_absolute=$hardcode_direct_absolute_FC 36722 36723# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 36724# into the resulting binary. 36725hardcode_minus_L=$hardcode_minus_L_FC 36726 36727# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 36728# into the resulting binary. 36729hardcode_shlibpath_var=$hardcode_shlibpath_var_FC 36730 36731# Set to "yes" if building a shared library automatically hardcodes DIR 36732# into the library and all subsequent libraries and executables linked 36733# against it. 36734hardcode_automatic=$hardcode_automatic_FC 36735 36736# Set to yes if linker adds runtime paths of dependent libraries 36737# to runtime path list. 36738inherit_rpath=$inherit_rpath_FC 36739 36740# Whether libtool must link a program against all its dependency libraries. 36741link_all_deplibs=$link_all_deplibs_FC 36742 36743# Set to "yes" if exported symbols are required. 36744always_export_symbols=$always_export_symbols_FC 36745 36746# The commands to list exported symbols. 36747export_symbols_cmds=$lt_export_symbols_cmds_FC 36748 36749# Symbols that should not be listed in the preloaded symbols. 36750exclude_expsyms=$lt_exclude_expsyms_FC 36751 36752# Symbols that must always be exported. 36753include_expsyms=$lt_include_expsyms_FC 36754 36755# Commands necessary for linking programs (against libraries) with templates. 36756prelink_cmds=$lt_prelink_cmds_FC 36757 36758# Commands necessary for finishing linking programs. 36759postlink_cmds=$lt_postlink_cmds_FC 36760 36761# Specify filename containing input files. 36762file_list_spec=$lt_file_list_spec_FC 36763 36764# How to hardcode a shared library path into an executable. 36765hardcode_action=$hardcode_action_FC 36766 36767# The directories searched by this compiler when creating a shared library. 36768compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC 36769 36770# Dependencies to place before and after the objects being linked to 36771# create a shared library. 36772predep_objects=$lt_predep_objects_FC 36773postdep_objects=$lt_postdep_objects_FC 36774predeps=$lt_predeps_FC 36775postdeps=$lt_postdeps_FC 36776 36777# The library search path used internally by the compiler when linking 36778# a shared library. 36779compiler_lib_search_path=$lt_compiler_lib_search_path_FC 36780 36781# ### END LIBTOOL TAG CONFIG: FC 36782_LT_EOF 36783 36784 ;; 36785 "tests/test_cksum_grib":F) chmod a+x "$ac_file" ;; 36786 "tests/test_cksum_nc":F) chmod a+x "$ac_file" ;; 36787 "tests/test_cksum_nc2":F) chmod a+x "$ac_file" ;; 36788 "tests/test_cksum_nc4":F) chmod a+x "$ac_file" ;; 36789 "tests/test_cksum_extra":F) chmod a+x "$ac_file" ;; 36790 "tests/test_cksum_service":F) chmod a+x "$ac_file" ;; 36791 "tests/test_cksum_ieg":F) chmod a+x "$ac_file" ;; 36792 "tests/test_chunk_cksum":F) chmod a+x "$ac_file" ;; 36793 "tests/test_f2003":F) chmod a+x "$ac_file" ;; 36794 "tests/pio_write_run":F) chmod a+x "$ac_file" ;; 36795 "tests/pio_write_deco2d_run":F) chmod a+x "$ac_file" ;; 36796 "tests/pio_cksum_mpinonb":F) chmod a+x "$ac_file" ;; 36797 "tests/pio_cksum_mpi_fw_ordered":F) chmod a+x "$ac_file" ;; 36798 "tests/pio_cksum_mpi_fw_at_all":F) chmod a+x "$ac_file" ;; 36799 "tests/pio_cksum_mpi_fw_at_reblock":F) chmod a+x "$ac_file" ;; 36800 "tests/pio_cksum_fpguard":F) chmod a+x "$ac_file" ;; 36801 "tests/pio_cksum_asynch":F) chmod a+x "$ac_file" ;; 36802 "tests/pio_cksum_writer":F) chmod a+x "$ac_file" ;; 36803 "tests/pio_cksum_cdf":F) chmod a+x "$ac_file" ;; 36804 "tests/test_byteswap_run":F) chmod a+x "$ac_file" ;; 36805 "tests/test_resource_copy_run":F) chmod a+x "$ac_file" ;; 36806 "tests/test_resource_copy_mpi_run":F) chmod a+x "$ac_file" ;; 36807 "tests/test_cdf_transformation":F) chmod a+x "$ac_file" ;; 36808 "tests/test_cdf_const":F) chmod a+x "$ac_file" ;; 36809 "tests/test_table_run":F) chmod a+x "$ac_file" ;; 36810 "tables/gen_tableheaderfile":F) chmod a+x "$ac_file" ;; 36811 "util/serialrun":F) chmod a+x "$ac_file" ;; 36812 36813 esac 36814done # for ac_tag 36815 36816 36817as_fn_exit 0 36818_ACEOF 36819ac_clean_files=$ac_clean_files_save 36820 36821test $ac_write_fail = 0 || 36822 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 36823 36824 36825# configure is writing to config.log, and then calls config.status. 36826# config.status does its own redirection, appending to config.log. 36827# Unfortunately, on DOS this fails, as config.log is still kept open 36828# by configure, so config.status won't be able to write to it; its 36829# output is simply discarded. So we exec the FD to /dev/null, 36830# effectively closing config.log, so it can be properly (re)opened and 36831# appended to by config.status. When coming back to configure, we 36832# need to make the FD available again. 36833if test "$no_create" != yes; then 36834 ac_cs_success=: 36835 ac_config_status_args= 36836 test "$silent" = yes && 36837 ac_config_status_args="$ac_config_status_args --quiet" 36838 exec 5>/dev/null 36839 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 36840 exec 5>>config.log 36841 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 36842 # would make configure fail if this is the last instruction. 36843 $ac_cs_success || as_fn_exit 1 36844fi 36845if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 36846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 36847printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 36848fi 36849 36850 36851# ---------------------------------------------------------------------- 36852# Show configuration 36853{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: CDI is configured with the following options:" >&5 36854printf "%s\n" "$as_me: CDI is configured with the following options:" >&6;} 36855./config.status cdi.settings 36856cat cdi.settings 36857 36858if test "$ac_cv_prog_cc_c99" = "no" 36859then : 36860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: 36861 36862 Warning: The C compiler does not accept ANSI C99 source code! 36863" >&5 36864printf "%s\n" "$as_me: 36865 36866 Warning: The C compiler does not accept ANSI C99 source code! 36867" >&6;} 36868fi 36869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: 36870 36871 Configuration completed. 36872 36873 You can now say 'make' to compile the CDI package and 'make install' to install it afterwards. 36874" >&5 36875printf "%s\n" "$as_me: 36876 36877 Configuration completed. 36878 36879 You can now say 'make' to compile the CDI package and 'make install' to install it afterwards. 36880" >&6;} 36881 36882