1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for GNU Offloading and Multi Processing Runtime Library 1.0. 4# 5# 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7# 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199 200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 204 PATH=/empty FPATH=/empty; export PATH FPATH 205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 207test \$(( 1 + 1 )) = 2 || exit 1" 208 if (eval "$as_required") 2>/dev/null; then : 209 as_have_required=yes 210else 211 as_have_required=no 212fi 213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 214 215else 216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 217as_found=false 218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 219do 220 IFS=$as_save_IFS 221 test -z "$as_dir" && as_dir=. 222 as_found=: 223 case $as_dir in #( 224 /*) 225 for as_base in sh bash ksh sh5; do 226 # Try only shells that exist, to save several forks. 227 as_shell=$as_dir/$as_base 228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 230 CONFIG_SHELL=$as_shell as_have_required=yes 231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 break 2 233fi 234fi 235 done;; 236 esac 237 as_found=false 238done 239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 241 CONFIG_SHELL=$SHELL as_have_required=yes 242fi; } 243IFS=$as_save_IFS 244 245 246 if test "x$CONFIG_SHELL" != x; then : 247 export CONFIG_SHELL 248 # We cannot yet assume a decent shell, so we have to provide a 249# neutralization value for shells without unset; and this also 250# works around shells that cannot unset nonexistent variables. 251# Preserve -v and -x to the replacement shell. 252BASH_ENV=/dev/null 253ENV=/dev/null 254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 255case $- in # (((( 256 *v*x* | *x*v* ) as_opts=-vx ;; 257 *v* ) as_opts=-v ;; 258 *x* ) as_opts=-x ;; 259 * ) as_opts= ;; 260esac 261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 262# Admittedly, this is quite paranoid, since all the known shells bail 263# out after a failed `exec'. 264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 265exit 255 266fi 267 268 if test x$as_have_required = xno; then : 269 $as_echo "$0: This script requires a shell more modern than all" 270 $as_echo "$0: the shells that I found on your system." 271 if test x${ZSH_VERSION+set} = xset ; then 272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 273 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 274 else 275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 276$0: including any error possibly output before this 277$0: message. Then install a modern shell, or manually run 278$0: the script under such a shell if you do have one." 279 fi 280 exit 1 281fi 282fi 283fi 284SHELL=${CONFIG_SHELL-/bin/sh} 285export SHELL 286# Unset more variables known to interfere with behavior of common tools. 287CLICOLOR_FORCE= GREP_OPTIONS= 288unset CLICOLOR_FORCE GREP_OPTIONS 289 290## --------------------- ## 291## M4sh Shell Functions. ## 292## --------------------- ## 293# as_fn_unset VAR 294# --------------- 295# Portably unset VAR. 296as_fn_unset () 297{ 298 { eval $1=; unset $1;} 299} 300as_unset=as_fn_unset 301 302# as_fn_set_status STATUS 303# ----------------------- 304# Set $? to STATUS, without forking. 305as_fn_set_status () 306{ 307 return $1 308} # as_fn_set_status 309 310# as_fn_exit STATUS 311# ----------------- 312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 313as_fn_exit () 314{ 315 set +e 316 as_fn_set_status $1 317 exit $1 318} # as_fn_exit 319 320# as_fn_mkdir_p 321# ------------- 322# Create "$as_dir" as a directory, including parents if necessary. 323as_fn_mkdir_p () 324{ 325 326 case $as_dir in #( 327 -*) as_dir=./$as_dir;; 328 esac 329 test -d "$as_dir" || eval $as_mkdir_p || { 330 as_dirs= 331 while :; do 332 case $as_dir in #( 333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 334 *) as_qdir=$as_dir;; 335 esac 336 as_dirs="'$as_qdir' $as_dirs" 337 as_dir=`$as_dirname -- "$as_dir" || 338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 339 X"$as_dir" : 'X\(//\)[^/]' \| \ 340 X"$as_dir" : 'X\(//\)$' \| \ 341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 342$as_echo X"$as_dir" | 343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)[^/].*/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)$/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\).*/{ 356 s//\1/ 357 q 358 } 359 s/.*/./; q'` 360 test -d "$as_dir" && break 361 done 362 test -z "$as_dirs" || eval "mkdir $as_dirs" 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 364 365 366} # as_fn_mkdir_p 367 368# as_fn_executable_p FILE 369# ----------------------- 370# Test if FILE is an executable regular file. 371as_fn_executable_p () 372{ 373 test -f "$1" && test -x "$1" 374} # as_fn_executable_p 375# as_fn_append VAR VALUE 376# ---------------------- 377# Append the text in VALUE to the end of the definition contained in VAR. Take 378# advantage of any shell optimizations that allow amortized linear growth over 379# repeated appends, instead of the typical quadratic growth present in naive 380# implementations. 381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 382 eval 'as_fn_append () 383 { 384 eval $1+=\$2 385 }' 386else 387 as_fn_append () 388 { 389 eval $1=\$$1\$2 390 } 391fi # as_fn_append 392 393# as_fn_arith ARG... 394# ------------------ 395# Perform arithmetic evaluation on the ARGs, and store the result in the 396# global $as_val. Take advantage of shells that can avoid forks. The arguments 397# must be portable across $(()) and expr. 398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 399 eval 'as_fn_arith () 400 { 401 as_val=$(( $* )) 402 }' 403else 404 as_fn_arith () 405 { 406 as_val=`expr "$@" || test $? -eq 1` 407 } 408fi # as_fn_arith 409 410 411# as_fn_error STATUS ERROR [LINENO LOG_FD] 412# ---------------------------------------- 413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 415# script with STATUS, using 1 if that was 0. 416as_fn_error () 417{ 418 as_status=$1; test $as_status -eq 0 && as_status=1 419 if test "$4"; then 420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 422 fi 423 $as_echo "$as_me: error: $2" >&2 424 as_fn_exit $as_status 425} # as_fn_error 426 427if expr a : '\(a\)' >/dev/null 2>&1 && 428 test "X`expr 00001 : '.*\(...\)'`" = X001; then 429 as_expr=expr 430else 431 as_expr=false 432fi 433 434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 435 as_basename=basename 436else 437 as_basename=false 438fi 439 440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 441 as_dirname=dirname 442else 443 as_dirname=false 444fi 445 446as_me=`$as_basename -- "$0" || 447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 448 X"$0" : 'X\(//\)$' \| \ 449 X"$0" : 'X\(/\)' \| . 2>/dev/null || 450$as_echo X/"$0" | 451 sed '/^.*\/\([^/][^/]*\)\/*$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\/\)$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\).*/{ 460 s//\1/ 461 q 462 } 463 s/.*/./; q'` 464 465# Avoid depending upon Character Ranges. 466as_cr_letters='abcdefghijklmnopqrstuvwxyz' 467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 468as_cr_Letters=$as_cr_letters$as_cr_LETTERS 469as_cr_digits='0123456789' 470as_cr_alnum=$as_cr_Letters$as_cr_digits 471 472 473 as_lineno_1=$LINENO as_lineno_1a=$LINENO 474 as_lineno_2=$LINENO as_lineno_2a=$LINENO 475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 478 sed -n ' 479 p 480 /[$]LINENO/= 481 ' <$as_myself | 482 sed ' 483 s/[$]LINENO.*/&-/ 484 t lineno 485 b 486 :lineno 487 N 488 :loop 489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 490 t loop 491 s/-\n.*// 492 ' >$as_me.lineno && 493 chmod +x "$as_me.lineno" || 494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 495 496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 497 # already done that, so ensure we don't try to do so again and fall 498 # in an infinite loop. This has already happened in practice. 499 _as_can_reexec=no; export _as_can_reexec 500 # Don't try to exec as it changes $[0], causing all sort of problems 501 # (the dirname of $[0] is not the place where we might find the 502 # original and so on. Autoconf is especially sensitive to this). 503 . "./$as_me.lineno" 504 # Exit status is that of the last command. 505 exit 506} 507 508ECHO_C= ECHO_N= ECHO_T= 509case `echo -n x` in #((((( 510-n*) 511 case `echo 'xy\c'` in 512 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 513 xy) ECHO_C='\c';; 514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 515 ECHO_T=' ';; 516 esac;; 517*) 518 ECHO_N='-n';; 519esac 520 521rm -f conf$$ conf$$.exe conf$$.file 522if test -d conf$$.dir; then 523 rm -f conf$$.dir/conf$$.file 524else 525 rm -f conf$$.dir 526 mkdir conf$$.dir 2>/dev/null 527fi 528if (echo >conf$$.file) 2>/dev/null; then 529 if ln -s conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s='ln -s' 531 # ... but there are two gotchas: 532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 534 # In both cases, we have to default to `cp -pR'. 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 536 as_ln_s='cp -pR' 537 elif ln conf$$.file conf$$ 2>/dev/null; then 538 as_ln_s=ln 539 else 540 as_ln_s='cp -pR' 541 fi 542else 543 as_ln_s='cp -pR' 544fi 545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 546rmdir conf$$.dir 2>/dev/null 547 548if mkdir -p . 2>/dev/null; then 549 as_mkdir_p='mkdir -p "$as_dir"' 550else 551 test -d ./-p && rmdir ./-p 552 as_mkdir_p=false 553fi 554 555as_test_x='test -x' 556as_executable_p=as_fn_executable_p 557 558# Sed expression to map a string onto a valid CPP name. 559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 560 561# Sed expression to map a string onto a valid variable name. 562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 563 564SHELL=${CONFIG_SHELL-/bin/sh} 565 566 567test -n "$DJDIR" || exec 7<&0 </dev/null 568exec 6>&1 569 570# Name of the host. 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 572# so uname gets run too. 573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 574 575# 576# Initializations. 577# 578ac_default_prefix=/usr/local 579ac_clean_files= 580ac_config_libobj_dir=. 581LIBOBJS= 582cross_compiling=no 583subdirs= 584MFLAGS= 585MAKEFLAGS= 586 587# Identity of this package. 588PACKAGE_NAME='GNU Offloading and Multi Processing Runtime Library' 589PACKAGE_TARNAME='libgomp' 590PACKAGE_VERSION='1.0' 591PACKAGE_STRING='GNU Offloading and Multi Processing Runtime Library 1.0' 592PACKAGE_BUGREPORT='' 593PACKAGE_URL='http://www.gnu.org/software/libgomp/' 594 595# Factoring default headers for most tests. 596ac_includes_default="\ 597#include <stdio.h> 598#ifdef HAVE_SYS_TYPES_H 599# include <sys/types.h> 600#endif 601#ifdef HAVE_SYS_STAT_H 602# include <sys/stat.h> 603#endif 604#ifdef STDC_HEADERS 605# include <stdlib.h> 606# include <stddef.h> 607#else 608# ifdef HAVE_STDLIB_H 609# include <stdlib.h> 610# endif 611#endif 612#ifdef HAVE_STRING_H 613# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 614# include <memory.h> 615# endif 616# include <string.h> 617#endif 618#ifdef HAVE_STRINGS_H 619# include <strings.h> 620#endif 621#ifdef HAVE_INTTYPES_H 622# include <inttypes.h> 623#endif 624#ifdef HAVE_STDINT_H 625# include <stdint.h> 626#endif 627#ifdef HAVE_UNISTD_H 628# include <unistd.h> 629#endif" 630 631ac_header_list= 632ac_func_list= 633ac_subst_vars='am__EXEEXT_FALSE 634am__EXEEXT_TRUE 635LTLIBOBJS 636LIBOBJS 637get_gcc_base_ver 638OMP_NEST_LOCK_25_KIND 639OMP_LOCK_25_KIND 640OMP_NEST_LOCK_25_ALIGN 641OMP_NEST_LOCK_25_SIZE 642OMP_LOCK_25_ALIGN 643OMP_LOCK_25_SIZE 644OMP_NEST_LOCK_KIND 645OMP_LOCK_KIND 646OMP_NEST_LOCK_ALIGN 647OMP_NEST_LOCK_SIZE 648OMP_LOCK_ALIGN 649OMP_LOCK_SIZE 650USE_FORTRAN_FALSE 651USE_FORTRAN_TRUE 652link_gomp 653XLDFLAGS 654XCFLAGS 655config_path 656LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE 657LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE 658LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE 659LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE 660LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE 661LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE 662OPT_LDFLAGS 663SECTION_LDFLAGS 664PLUGIN_HSA_FALSE 665PLUGIN_HSA_TRUE 666PLUGIN_NVPTX_FALSE 667PLUGIN_NVPTX_TRUE 668offload_additional_lib_paths 669offload_additional_options 670offload_targets 671offload_plugins 672PLUGIN_HSA_LIBS 673PLUGIN_HSA_LDFLAGS 674PLUGIN_HSA_CPPFLAGS 675PLUGIN_HSA 676HSA_RUNTIME_LIB 677HSA_RUNTIME_INCLUDE 678PLUGIN_NVPTX_LIBS 679PLUGIN_NVPTX_LDFLAGS 680PLUGIN_NVPTX_CPPFLAGS 681PLUGIN_NVPTX 682CUDA_DRIVER_LIB 683CUDA_DRIVER_INCLUDE 684libtool_VERSION 685ac_ct_FC 686FCFLAGS 687FC 688MAINT 689MAINTAINER_MODE_FALSE 690MAINTAINER_MODE_TRUE 691enable_static 692enable_shared 693lt_host_flags 694CPP 695OTOOL64 696OTOOL 697LIPO 698NMEDIT 699DSYMUTIL 700OBJDUMP 701LN_S 702NM 703ac_ct_DUMPBIN 704DUMPBIN 705LD 706FGREP 707EGREP 708GREP 709SED 710LIBTOOL 711BUILD_INFO_FALSE 712BUILD_INFO_TRUE 713PERL 714RANLIB 715AR 716am__fastdepCC_FALSE 717am__fastdepCC_TRUE 718CCDEPMODE 719am__nodep 720AMDEPBACKSLASH 721AMDEP_FALSE 722AMDEP_TRUE 723am__quote 724am__include 725DEPDIR 726OBJEXT 727EXEEXT 728ac_ct_CC 729CPPFLAGS 730LDFLAGS 731CFLAGS 732CC 733toolexeclibdir 734toolexecdir 735multi_basedir 736AM_BACKSLASH 737AM_DEFAULT_VERBOSITY 738AM_DEFAULT_V 739AM_V 740am__untar 741am__tar 742AMTAR 743am__leading_dot 744SET_MAKE 745AWK 746mkdir_p 747MKDIR_P 748INSTALL_STRIP_PROGRAM 749STRIP 750install_sh 751MAKEINFO 752AUTOHEADER 753AUTOMAKE 754AUTOCONF 755ACLOCAL 756VERSION 757PACKAGE 758CYGPATH_W 759am__isrc 760INSTALL_DATA 761INSTALL_SCRIPT 762INSTALL_PROGRAM 763target_os 764target_vendor 765target_cpu 766target 767host_os 768host_vendor 769host_cpu 770host 771build_os 772build_vendor 773build_cpu 774build 775GENINSRC_FALSE 776GENINSRC_TRUE 777target_alias 778host_alias 779build_alias 780LIBS 781ECHO_T 782ECHO_N 783ECHO_C 784DEFS 785mandir 786localedir 787libdir 788psdir 789pdfdir 790dvidir 791htmldir 792infodir 793docdir 794oldincludedir 795includedir 796localstatedir 797sharedstatedir 798sysconfdir 799datadir 800datarootdir 801libexecdir 802sbindir 803bindir 804program_transform_name 805prefix 806exec_prefix 807PACKAGE_URL 808PACKAGE_BUGREPORT 809PACKAGE_STRING 810PACKAGE_VERSION 811PACKAGE_TARNAME 812PACKAGE_NAME 813PATH_SEPARATOR 814SHELL' 815ac_subst_files='' 816ac_user_opts=' 817enable_option_checking 818enable_version_specific_runtime_libs 819enable_generated_files_in_srcdir 820enable_silent_rules 821enable_multilib 822enable_dependency_tracking 823enable_shared 824enable_static 825with_pic 826enable_fast_install 827with_gnu_ld 828enable_libtool_lock 829enable_maintainer_mode 830with_cuda_driver 831with_cuda_driver_include 832with_cuda_driver_lib 833with_hsa_runtime 834with_hsa_runtime_include 835with_hsa_runtime_lib 836enable_linux_futex 837enable_tls 838enable_symvers 839enable_cet 840with_gcc_major_version_only 841' 842 ac_precious_vars='build_alias 843host_alias 844target_alias 845CPP 846CPPFLAGS 847FC 848FCFLAGS 849LDFLAGS 850LIBS' 851 852 853# Initialize some variables set by options. 854ac_init_help= 855ac_init_version=false 856ac_unrecognized_opts= 857ac_unrecognized_sep= 858# The variables have the same names as the options, with 859# dashes changed to underlines. 860cache_file=/dev/null 861exec_prefix=NONE 862no_create= 863no_recursion= 864prefix=NONE 865program_prefix=NONE 866program_suffix=NONE 867program_transform_name=s,x,x, 868silent= 869site= 870srcdir= 871verbose= 872x_includes=NONE 873x_libraries=NONE 874 875# Installation directory options. 876# These are left unexpanded so users can "make install exec_prefix=/foo" 877# and all the variables that are supposed to be based on exec_prefix 878# by default will actually change. 879# Use braces instead of parens because sh, perl, etc. also accept them. 880# (The list follows the same order as the GNU Coding Standards.) 881bindir='${exec_prefix}/bin' 882sbindir='${exec_prefix}/sbin' 883libexecdir='${exec_prefix}/libexec' 884datarootdir='${prefix}/share' 885datadir='${datarootdir}' 886sysconfdir='${prefix}/etc' 887sharedstatedir='${prefix}/com' 888localstatedir='${prefix}/var' 889includedir='${prefix}/include' 890oldincludedir='/usr/include' 891docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 892infodir='${datarootdir}/info' 893htmldir='${docdir}' 894dvidir='${docdir}' 895pdfdir='${docdir}' 896psdir='${docdir}' 897libdir='${exec_prefix}/lib' 898localedir='${datarootdir}/locale' 899mandir='${datarootdir}/man' 900 901ac_prev= 902ac_dashdash= 903for ac_option 904do 905 # If the previous option needs an argument, assign it. 906 if test -n "$ac_prev"; then 907 eval $ac_prev=\$ac_option 908 ac_prev= 909 continue 910 fi 911 912 case $ac_option in 913 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 914 *=) ac_optarg= ;; 915 *) ac_optarg=yes ;; 916 esac 917 918 # Accept the important Cygnus configure options, so we can diagnose typos. 919 920 case $ac_dashdash$ac_option in 921 --) 922 ac_dashdash=yes ;; 923 924 -bindir | --bindir | --bindi | --bind | --bin | --bi) 925 ac_prev=bindir ;; 926 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 927 bindir=$ac_optarg ;; 928 929 -build | --build | --buil | --bui | --bu) 930 ac_prev=build_alias ;; 931 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 932 build_alias=$ac_optarg ;; 933 934 -cache-file | --cache-file | --cache-fil | --cache-fi \ 935 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 936 ac_prev=cache_file ;; 937 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 938 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 939 cache_file=$ac_optarg ;; 940 941 --config-cache | -C) 942 cache_file=config.cache ;; 943 944 -datadir | --datadir | --datadi | --datad) 945 ac_prev=datadir ;; 946 -datadir=* | --datadir=* | --datadi=* | --datad=*) 947 datadir=$ac_optarg ;; 948 949 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 950 | --dataroo | --dataro | --datar) 951 ac_prev=datarootdir ;; 952 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 953 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 954 datarootdir=$ac_optarg ;; 955 956 -disable-* | --disable-*) 957 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 958 # Reject names that are not valid shell variable names. 959 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 960 as_fn_error $? "invalid feature name: $ac_useropt" 961 ac_useropt_orig=$ac_useropt 962 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 963 case $ac_user_opts in 964 *" 965"enable_$ac_useropt" 966"*) ;; 967 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 968 ac_unrecognized_sep=', ';; 969 esac 970 eval enable_$ac_useropt=no ;; 971 972 -docdir | --docdir | --docdi | --doc | --do) 973 ac_prev=docdir ;; 974 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 975 docdir=$ac_optarg ;; 976 977 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 978 ac_prev=dvidir ;; 979 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 980 dvidir=$ac_optarg ;; 981 982 -enable-* | --enable-*) 983 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 984 # Reject names that are not valid shell variable names. 985 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 986 as_fn_error $? "invalid feature name: $ac_useropt" 987 ac_useropt_orig=$ac_useropt 988 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 989 case $ac_user_opts in 990 *" 991"enable_$ac_useropt" 992"*) ;; 993 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 994 ac_unrecognized_sep=', ';; 995 esac 996 eval enable_$ac_useropt=\$ac_optarg ;; 997 998 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 999 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1000 | --exec | --exe | --ex) 1001 ac_prev=exec_prefix ;; 1002 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1003 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1004 | --exec=* | --exe=* | --ex=*) 1005 exec_prefix=$ac_optarg ;; 1006 1007 -gas | --gas | --ga | --g) 1008 # Obsolete; use --with-gas. 1009 with_gas=yes ;; 1010 1011 -help | --help | --hel | --he | -h) 1012 ac_init_help=long ;; 1013 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1014 ac_init_help=recursive ;; 1015 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1016 ac_init_help=short ;; 1017 1018 -host | --host | --hos | --ho) 1019 ac_prev=host_alias ;; 1020 -host=* | --host=* | --hos=* | --ho=*) 1021 host_alias=$ac_optarg ;; 1022 1023 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1024 ac_prev=htmldir ;; 1025 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1026 | --ht=*) 1027 htmldir=$ac_optarg ;; 1028 1029 -includedir | --includedir | --includedi | --included | --include \ 1030 | --includ | --inclu | --incl | --inc) 1031 ac_prev=includedir ;; 1032 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1033 | --includ=* | --inclu=* | --incl=* | --inc=*) 1034 includedir=$ac_optarg ;; 1035 1036 -infodir | --infodir | --infodi | --infod | --info | --inf) 1037 ac_prev=infodir ;; 1038 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1039 infodir=$ac_optarg ;; 1040 1041 -libdir | --libdir | --libdi | --libd) 1042 ac_prev=libdir ;; 1043 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1044 libdir=$ac_optarg ;; 1045 1046 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1047 | --libexe | --libex | --libe) 1048 ac_prev=libexecdir ;; 1049 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1050 | --libexe=* | --libex=* | --libe=*) 1051 libexecdir=$ac_optarg ;; 1052 1053 -localedir | --localedir | --localedi | --localed | --locale) 1054 ac_prev=localedir ;; 1055 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1056 localedir=$ac_optarg ;; 1057 1058 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1059 | --localstate | --localstat | --localsta | --localst | --locals) 1060 ac_prev=localstatedir ;; 1061 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1062 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1063 localstatedir=$ac_optarg ;; 1064 1065 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1066 ac_prev=mandir ;; 1067 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1068 mandir=$ac_optarg ;; 1069 1070 -nfp | --nfp | --nf) 1071 # Obsolete; use --without-fp. 1072 with_fp=no ;; 1073 1074 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1075 | --no-cr | --no-c | -n) 1076 no_create=yes ;; 1077 1078 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1079 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1080 no_recursion=yes ;; 1081 1082 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1083 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1084 | --oldin | --oldi | --old | --ol | --o) 1085 ac_prev=oldincludedir ;; 1086 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1087 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1088 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1089 oldincludedir=$ac_optarg ;; 1090 1091 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1092 ac_prev=prefix ;; 1093 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1094 prefix=$ac_optarg ;; 1095 1096 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1097 | --program-pre | --program-pr | --program-p) 1098 ac_prev=program_prefix ;; 1099 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1100 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1101 program_prefix=$ac_optarg ;; 1102 1103 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1104 | --program-suf | --program-su | --program-s) 1105 ac_prev=program_suffix ;; 1106 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1107 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1108 program_suffix=$ac_optarg ;; 1109 1110 -program-transform-name | --program-transform-name \ 1111 | --program-transform-nam | --program-transform-na \ 1112 | --program-transform-n | --program-transform- \ 1113 | --program-transform | --program-transfor \ 1114 | --program-transfo | --program-transf \ 1115 | --program-trans | --program-tran \ 1116 | --progr-tra | --program-tr | --program-t) 1117 ac_prev=program_transform_name ;; 1118 -program-transform-name=* | --program-transform-name=* \ 1119 | --program-transform-nam=* | --program-transform-na=* \ 1120 | --program-transform-n=* | --program-transform-=* \ 1121 | --program-transform=* | --program-transfor=* \ 1122 | --program-transfo=* | --program-transf=* \ 1123 | --program-trans=* | --program-tran=* \ 1124 | --progr-tra=* | --program-tr=* | --program-t=*) 1125 program_transform_name=$ac_optarg ;; 1126 1127 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1128 ac_prev=pdfdir ;; 1129 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1130 pdfdir=$ac_optarg ;; 1131 1132 -psdir | --psdir | --psdi | --psd | --ps) 1133 ac_prev=psdir ;; 1134 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1135 psdir=$ac_optarg ;; 1136 1137 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1138 | -silent | --silent | --silen | --sile | --sil) 1139 silent=yes ;; 1140 1141 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1142 ac_prev=sbindir ;; 1143 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1144 | --sbi=* | --sb=*) 1145 sbindir=$ac_optarg ;; 1146 1147 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1148 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1149 | --sharedst | --shareds | --shared | --share | --shar \ 1150 | --sha | --sh) 1151 ac_prev=sharedstatedir ;; 1152 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1153 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1154 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1155 | --sha=* | --sh=*) 1156 sharedstatedir=$ac_optarg ;; 1157 1158 -site | --site | --sit) 1159 ac_prev=site ;; 1160 -site=* | --site=* | --sit=*) 1161 site=$ac_optarg ;; 1162 1163 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1164 ac_prev=srcdir ;; 1165 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1166 srcdir=$ac_optarg ;; 1167 1168 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1169 | --syscon | --sysco | --sysc | --sys | --sy) 1170 ac_prev=sysconfdir ;; 1171 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1172 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1173 sysconfdir=$ac_optarg ;; 1174 1175 -target | --target | --targe | --targ | --tar | --ta | --t) 1176 ac_prev=target_alias ;; 1177 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1178 target_alias=$ac_optarg ;; 1179 1180 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1181 verbose=yes ;; 1182 1183 -version | --version | --versio | --versi | --vers | -V) 1184 ac_init_version=: ;; 1185 1186 -with-* | --with-*) 1187 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1188 # Reject names that are not valid shell variable names. 1189 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1190 as_fn_error $? "invalid package name: $ac_useropt" 1191 ac_useropt_orig=$ac_useropt 1192 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1193 case $ac_user_opts in 1194 *" 1195"with_$ac_useropt" 1196"*) ;; 1197 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1198 ac_unrecognized_sep=', ';; 1199 esac 1200 eval with_$ac_useropt=\$ac_optarg ;; 1201 1202 -without-* | --without-*) 1203 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1204 # Reject names that are not valid shell variable names. 1205 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1206 as_fn_error $? "invalid package name: $ac_useropt" 1207 ac_useropt_orig=$ac_useropt 1208 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1209 case $ac_user_opts in 1210 *" 1211"with_$ac_useropt" 1212"*) ;; 1213 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1214 ac_unrecognized_sep=', ';; 1215 esac 1216 eval with_$ac_useropt=no ;; 1217 1218 --x) 1219 # Obsolete; use --with-x. 1220 with_x=yes ;; 1221 1222 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1223 | --x-incl | --x-inc | --x-in | --x-i) 1224 ac_prev=x_includes ;; 1225 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1226 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1227 x_includes=$ac_optarg ;; 1228 1229 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1230 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1231 ac_prev=x_libraries ;; 1232 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1233 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1234 x_libraries=$ac_optarg ;; 1235 1236 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1237Try \`$0 --help' for more information" 1238 ;; 1239 1240 *=*) 1241 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1242 # Reject names that are not valid shell variable names. 1243 case $ac_envvar in #( 1244 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1245 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1246 esac 1247 eval $ac_envvar=\$ac_optarg 1248 export $ac_envvar ;; 1249 1250 *) 1251 # FIXME: should be removed in autoconf 3.0. 1252 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1253 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1254 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1255 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1256 ;; 1257 1258 esac 1259done 1260 1261if test -n "$ac_prev"; then 1262 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1263 as_fn_error $? "missing argument to $ac_option" 1264fi 1265 1266if test -n "$ac_unrecognized_opts"; then 1267 case $enable_option_checking in 1268 no) ;; 1269 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1270 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1271 esac 1272fi 1273 1274# Check all directory arguments for consistency. 1275for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1276 datadir sysconfdir sharedstatedir localstatedir includedir \ 1277 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1278 libdir localedir mandir 1279do 1280 eval ac_val=\$$ac_var 1281 # Remove trailing slashes. 1282 case $ac_val in 1283 */ ) 1284 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1285 eval $ac_var=\$ac_val;; 1286 esac 1287 # Be sure to have absolute directory names. 1288 case $ac_val in 1289 [\\/$]* | ?:[\\/]* ) continue;; 1290 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1291 esac 1292 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1293done 1294 1295# There might be people who depend on the old broken behavior: `$host' 1296# used to hold the argument of --host etc. 1297# FIXME: To remove some day. 1298build=$build_alias 1299host=$host_alias 1300target=$target_alias 1301 1302# FIXME: To remove some day. 1303if test "x$host_alias" != x; then 1304 if test "x$build_alias" = x; then 1305 cross_compiling=maybe 1306 elif test "x$build_alias" != "x$host_alias"; then 1307 cross_compiling=yes 1308 fi 1309fi 1310 1311ac_tool_prefix= 1312test -n "$host_alias" && ac_tool_prefix=$host_alias- 1313 1314test "$silent" = yes && exec 6>/dev/null 1315 1316 1317ac_pwd=`pwd` && test -n "$ac_pwd" && 1318ac_ls_di=`ls -di .` && 1319ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1320 as_fn_error $? "working directory cannot be determined" 1321test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1322 as_fn_error $? "pwd does not report name of working directory" 1323 1324 1325# Find the source files, if location was not specified. 1326if test -z "$srcdir"; then 1327 ac_srcdir_defaulted=yes 1328 # Try the directory containing this script, then the parent directory. 1329 ac_confdir=`$as_dirname -- "$as_myself" || 1330$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1331 X"$as_myself" : 'X\(//\)[^/]' \| \ 1332 X"$as_myself" : 'X\(//\)$' \| \ 1333 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1334$as_echo X"$as_myself" | 1335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1336 s//\1/ 1337 q 1338 } 1339 /^X\(\/\/\)[^/].*/{ 1340 s//\1/ 1341 q 1342 } 1343 /^X\(\/\/\)$/{ 1344 s//\1/ 1345 q 1346 } 1347 /^X\(\/\).*/{ 1348 s//\1/ 1349 q 1350 } 1351 s/.*/./; q'` 1352 srcdir=$ac_confdir 1353 if test ! -r "$srcdir/$ac_unique_file"; then 1354 srcdir=.. 1355 fi 1356else 1357 ac_srcdir_defaulted=no 1358fi 1359if test ! -r "$srcdir/$ac_unique_file"; then 1360 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1361 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1362fi 1363ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1364ac_abs_confdir=`( 1365 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1366 pwd)` 1367# When building in place, set srcdir=. 1368if test "$ac_abs_confdir" = "$ac_pwd"; then 1369 srcdir=. 1370fi 1371# Remove unnecessary trailing slashes from srcdir. 1372# Double slashes in file names in object file debugging info 1373# mess up M-x gdb in Emacs. 1374case $srcdir in 1375*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1376esac 1377for ac_var in $ac_precious_vars; do 1378 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1379 eval ac_env_${ac_var}_value=\$${ac_var} 1380 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1381 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1382done 1383 1384# 1385# Report the --help message. 1386# 1387if test "$ac_init_help" = "long"; then 1388 # Omit some internal or obsolete options to make the list less imposing. 1389 # This message is too long to be a string in the A/UX 3.1 sh. 1390 cat <<_ACEOF 1391\`configure' configures GNU Offloading and Multi Processing Runtime Library 1.0 to adapt to many kinds of systems. 1392 1393Usage: $0 [OPTION]... [VAR=VALUE]... 1394 1395To assign environment variables (e.g., CC, CFLAGS...), specify them as 1396VAR=VALUE. See below for descriptions of some of the useful variables. 1397 1398Defaults for the options are specified in brackets. 1399 1400Configuration: 1401 -h, --help display this help and exit 1402 --help=short display options specific to this package 1403 --help=recursive display the short help of all the included packages 1404 -V, --version display version information and exit 1405 -q, --quiet, --silent do not print \`checking ...' messages 1406 --cache-file=FILE cache test results in FILE [disabled] 1407 -C, --config-cache alias for \`--cache-file=config.cache' 1408 -n, --no-create do not create output files 1409 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1410 1411Installation directories: 1412 --prefix=PREFIX install architecture-independent files in PREFIX 1413 [$ac_default_prefix] 1414 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1415 [PREFIX] 1416 1417By default, \`make install' will install all the files in 1418\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1419an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1420for instance \`--prefix=\$HOME'. 1421 1422For better control, use the options below. 1423 1424Fine tuning of the installation directories: 1425 --bindir=DIR user executables [EPREFIX/bin] 1426 --sbindir=DIR system admin executables [EPREFIX/sbin] 1427 --libexecdir=DIR program executables [EPREFIX/libexec] 1428 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1429 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1430 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1431 --libdir=DIR object code libraries [EPREFIX/lib] 1432 --includedir=DIR C header files [PREFIX/include] 1433 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1434 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1435 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1436 --infodir=DIR info documentation [DATAROOTDIR/info] 1437 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1438 --mandir=DIR man documentation [DATAROOTDIR/man] 1439 --docdir=DIR documentation root [DATAROOTDIR/doc/libgomp] 1440 --htmldir=DIR html documentation [DOCDIR] 1441 --dvidir=DIR dvi documentation [DOCDIR] 1442 --pdfdir=DIR pdf documentation [DOCDIR] 1443 --psdir=DIR ps documentation [DOCDIR] 1444_ACEOF 1445 1446 cat <<\_ACEOF 1447 1448Program names: 1449 --program-prefix=PREFIX prepend PREFIX to installed program names 1450 --program-suffix=SUFFIX append SUFFIX to installed program names 1451 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1452 1453System types: 1454 --build=BUILD configure for building on BUILD [guessed] 1455 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1456 --target=TARGET configure for building compilers for TARGET [HOST] 1457_ACEOF 1458fi 1459 1460if test -n "$ac_init_help"; then 1461 case $ac_init_help in 1462 short | recursive ) echo "Configuration of GNU Offloading and Multi Processing Runtime Library 1.0:";; 1463 esac 1464 cat <<\_ACEOF 1465 1466Optional Features: 1467 --disable-option-checking ignore unrecognized --enable/--with options 1468 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1469 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1470 --enable-version-specific-runtime-libs 1471 Specify that runtime libraries should be installed 1472 in a compiler-specific directory [default=no] 1473 --enable-generated-files-in-srcdir 1474 put copies of generated files in source dir intended 1475 for creating source tarballs for users without 1476 texinfo bison or flex. [default=no] 1477 --enable-silent-rules less verbose build output (undo: "make V=1") 1478 --disable-silent-rules verbose build output (undo: "make V=0") 1479 --enable-multilib build many library versions (default) 1480 --enable-dependency-tracking 1481 do not reject slow dependency extractors 1482 --disable-dependency-tracking 1483 speeds up one-time build 1484 --enable-shared[=PKGS] build shared libraries [default=yes] 1485 --enable-static[=PKGS] build static libraries [default=yes] 1486 --enable-fast-install[=PKGS] 1487 optimize for fast installation [default=yes] 1488 --disable-libtool-lock avoid locking (might break parallel builds) 1489 --enable-maintainer-mode 1490 enable make rules and dependencies not useful (and 1491 sometimes confusing) to the casual installer 1492 --enable-linux-futex use the Linux futex system call [default=default] 1493 --enable-tls Use thread-local storage [default=yes] 1494 --enable-symvers=STYLE enables symbol versioning of the shared library 1495 [default=yes] 1496 --enable-cet enable Intel CET in target libraries [default=no] 1497 1498Optional Packages: 1499 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1500 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1501 --with-pic try to use only PIC/non-PIC objects [default=use 1502 both] 1503 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1504 --with-cuda-driver=PATH specify prefix directory for installed CUDA driver 1505 package. Equivalent to 1506 --with-cuda-driver-include=PATH/include plus 1507 --with-cuda-driver-lib=PATH/lib 1508 --with-cuda-driver-include=PATH 1509 specify directory for installed CUDA driver include 1510 files 1511 --with-cuda-driver-lib=PATH 1512 specify directory for the installed CUDA driver 1513 library 1514 --with-hsa-runtime=PATH specify prefix directory for installed HSA run-time 1515 package. Equivalent to 1516 --with-hsa-runtime-include=PATH/include plus 1517 --with-hsa-runtime-lib=PATH/lib 1518 --with-hsa-runtime-include=PATH 1519 specify directory for installed HSA run-time include 1520 files 1521 --with-hsa-runtime-lib=PATH 1522 specify directory for the installed HSA run-time 1523 library 1524 --with-gcc-major-version-only 1525 use only GCC major number in filesystem paths 1526 1527Some influential environment variables: 1528 CC C compiler command 1529 CFLAGS C compiler flags 1530 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1531 nonstandard directory <lib dir> 1532 LIBS libraries to pass to the linker, e.g. -l<library> 1533 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1534 you have headers in a nonstandard directory <include dir> 1535 CPP C preprocessor 1536 FC Fortran compiler command 1537 FCFLAGS Fortran compiler flags 1538 1539Use these variables to override the choices made by `configure' or to help 1540it to find libraries and programs with nonstandard names/locations. 1541 1542Report bugs to the package provider. 1543GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>. 1544General help using GNU software: <http://www.gnu.org/gethelp/>. 1545_ACEOF 1546ac_status=$? 1547fi 1548 1549if test "$ac_init_help" = "recursive"; then 1550 # If there are subdirs, report their specific --help. 1551 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1552 test -d "$ac_dir" || 1553 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1554 continue 1555 ac_builddir=. 1556 1557case "$ac_dir" in 1558.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1559*) 1560 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1561 # A ".." for each directory in $ac_dir_suffix. 1562 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1563 case $ac_top_builddir_sub in 1564 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1565 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1566 esac ;; 1567esac 1568ac_abs_top_builddir=$ac_pwd 1569ac_abs_builddir=$ac_pwd$ac_dir_suffix 1570# for backward compatibility: 1571ac_top_builddir=$ac_top_build_prefix 1572 1573case $srcdir in 1574 .) # We are building in place. 1575 ac_srcdir=. 1576 ac_top_srcdir=$ac_top_builddir_sub 1577 ac_abs_top_srcdir=$ac_pwd ;; 1578 [\\/]* | ?:[\\/]* ) # Absolute name. 1579 ac_srcdir=$srcdir$ac_dir_suffix; 1580 ac_top_srcdir=$srcdir 1581 ac_abs_top_srcdir=$srcdir ;; 1582 *) # Relative name. 1583 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1584 ac_top_srcdir=$ac_top_build_prefix$srcdir 1585 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1586esac 1587ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1588 1589 cd "$ac_dir" || { ac_status=$?; continue; } 1590 # Check for guested configure. 1591 if test -f "$ac_srcdir/configure.gnu"; then 1592 echo && 1593 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1594 elif test -f "$ac_srcdir/configure"; then 1595 echo && 1596 $SHELL "$ac_srcdir/configure" --help=recursive 1597 else 1598 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1599 fi || ac_status=$? 1600 cd "$ac_pwd" || { ac_status=$?; break; } 1601 done 1602fi 1603 1604test -n "$ac_init_help" && exit $ac_status 1605if $ac_init_version; then 1606 cat <<\_ACEOF 1607GNU Offloading and Multi Processing Runtime Library configure 1.0 1608generated by GNU Autoconf 2.69 1609 1610Copyright (C) 2012 Free Software Foundation, Inc. 1611This configure script is free software; the Free Software Foundation 1612gives unlimited permission to copy, distribute and modify it. 1613_ACEOF 1614 exit 1615fi 1616 1617## ------------------------ ## 1618## Autoconf initialization. ## 1619## ------------------------ ## 1620 1621# ac_fn_c_try_compile LINENO 1622# -------------------------- 1623# Try to compile conftest.$ac_ext, and return whether this succeeded. 1624ac_fn_c_try_compile () 1625{ 1626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1627 rm -f conftest.$ac_objext 1628 if { { ac_try="$ac_compile" 1629case "(($ac_try" in 1630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1631 *) ac_try_echo=$ac_try;; 1632esac 1633eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1634$as_echo "$ac_try_echo"; } >&5 1635 (eval "$ac_compile") 2>conftest.err 1636 ac_status=$? 1637 if test -s conftest.err; then 1638 grep -v '^ *+' conftest.err >conftest.er1 1639 cat conftest.er1 >&5 1640 mv -f conftest.er1 conftest.err 1641 fi 1642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1643 test $ac_status = 0; } && { 1644 test -z "$ac_c_werror_flag" || 1645 test ! -s conftest.err 1646 } && test -s conftest.$ac_objext; then : 1647 ac_retval=0 1648else 1649 $as_echo "$as_me: failed program was:" >&5 1650sed 's/^/| /' conftest.$ac_ext >&5 1651 1652 ac_retval=1 1653fi 1654 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1655 as_fn_set_status $ac_retval 1656 1657} # ac_fn_c_try_compile 1658 1659# ac_fn_c_try_link LINENO 1660# ----------------------- 1661# Try to link conftest.$ac_ext, and return whether this succeeded. 1662ac_fn_c_try_link () 1663{ 1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1665 rm -f conftest.$ac_objext conftest$ac_exeext 1666 if { { ac_try="$ac_link" 1667case "(($ac_try" in 1668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1669 *) ac_try_echo=$ac_try;; 1670esac 1671eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1672$as_echo "$ac_try_echo"; } >&5 1673 (eval "$ac_link") 2>conftest.err 1674 ac_status=$? 1675 if test -s conftest.err; then 1676 grep -v '^ *+' conftest.err >conftest.er1 1677 cat conftest.er1 >&5 1678 mv -f conftest.er1 conftest.err 1679 fi 1680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1681 test $ac_status = 0; } && { 1682 test -z "$ac_c_werror_flag" || 1683 test ! -s conftest.err 1684 } && test -s conftest$ac_exeext && { 1685 test "$cross_compiling" = yes || 1686 test -x conftest$ac_exeext 1687 }; then : 1688 ac_retval=0 1689else 1690 $as_echo "$as_me: failed program was:" >&5 1691sed 's/^/| /' conftest.$ac_ext >&5 1692 1693 ac_retval=1 1694fi 1695 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1696 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1697 # interfere with the next link command; also delete a directory that is 1698 # left behind by Apple's compiler. We do this before executing the actions. 1699 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1700 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1701 as_fn_set_status $ac_retval 1702 1703} # ac_fn_c_try_link 1704 1705# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1706# ------------------------------------------------------- 1707# Tests whether HEADER exists and can be compiled using the include files in 1708# INCLUDES, setting the cache variable VAR accordingly. 1709ac_fn_c_check_header_compile () 1710{ 1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1713$as_echo_n "checking for $2... " >&6; } 1714if eval \${$3+:} false; then : 1715 $as_echo_n "(cached) " >&6 1716else 1717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1718/* end confdefs.h. */ 1719$4 1720#include <$2> 1721_ACEOF 1722if ac_fn_c_try_compile "$LINENO"; then : 1723 eval "$3=yes" 1724else 1725 eval "$3=no" 1726fi 1727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1728fi 1729eval ac_res=\$$3 1730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1731$as_echo "$ac_res" >&6; } 1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1733 1734} # ac_fn_c_check_header_compile 1735 1736# ac_fn_c_try_cpp LINENO 1737# ---------------------- 1738# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1739ac_fn_c_try_cpp () 1740{ 1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1742 if { { ac_try="$ac_cpp conftest.$ac_ext" 1743case "(($ac_try" in 1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1745 *) ac_try_echo=$ac_try;; 1746esac 1747eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1748$as_echo "$ac_try_echo"; } >&5 1749 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1750 ac_status=$? 1751 if test -s conftest.err; then 1752 grep -v '^ *+' conftest.err >conftest.er1 1753 cat conftest.er1 >&5 1754 mv -f conftest.er1 conftest.err 1755 fi 1756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1757 test $ac_status = 0; } > conftest.i && { 1758 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1759 test ! -s conftest.err 1760 }; then : 1761 ac_retval=0 1762else 1763 $as_echo "$as_me: failed program was:" >&5 1764sed 's/^/| /' conftest.$ac_ext >&5 1765 1766 ac_retval=1 1767fi 1768 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1769 as_fn_set_status $ac_retval 1770 1771} # ac_fn_c_try_cpp 1772 1773# ac_fn_c_try_run LINENO 1774# ---------------------- 1775# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1776# that executables *can* be run. 1777ac_fn_c_try_run () 1778{ 1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1780 if { { ac_try="$ac_link" 1781case "(($ac_try" in 1782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1783 *) ac_try_echo=$ac_try;; 1784esac 1785eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1786$as_echo "$ac_try_echo"; } >&5 1787 (eval "$ac_link") 2>&5 1788 ac_status=$? 1789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1790 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1791 { { case "(($ac_try" in 1792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1793 *) ac_try_echo=$ac_try;; 1794esac 1795eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1796$as_echo "$ac_try_echo"; } >&5 1797 (eval "$ac_try") 2>&5 1798 ac_status=$? 1799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1800 test $ac_status = 0; }; }; then : 1801 ac_retval=0 1802else 1803 $as_echo "$as_me: program exited with status $ac_status" >&5 1804 $as_echo "$as_me: failed program was:" >&5 1805sed 's/^/| /' conftest.$ac_ext >&5 1806 1807 ac_retval=$ac_status 1808fi 1809 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1810 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1811 as_fn_set_status $ac_retval 1812 1813} # ac_fn_c_try_run 1814 1815# ac_fn_c_check_func LINENO FUNC VAR 1816# ---------------------------------- 1817# Tests whether FUNC exists, setting the cache variable VAR accordingly 1818ac_fn_c_check_func () 1819{ 1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1822$as_echo_n "checking for $2... " >&6; } 1823if eval \${$3+:} false; then : 1824 $as_echo_n "(cached) " >&6 1825else 1826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1827/* end confdefs.h. */ 1828/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1829 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1830#define $2 innocuous_$2 1831 1832/* System header to define __stub macros and hopefully few prototypes, 1833 which can conflict with char $2 (); below. 1834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1835 <limits.h> exists even on freestanding compilers. */ 1836 1837#ifdef __STDC__ 1838# include <limits.h> 1839#else 1840# include <assert.h> 1841#endif 1842 1843#undef $2 1844 1845/* Override any GCC internal prototype to avoid an error. 1846 Use char because int might match the return type of a GCC 1847 builtin and then its argument prototype would still apply. */ 1848#ifdef __cplusplus 1849extern "C" 1850#endif 1851char $2 (); 1852/* The GNU C library defines this for functions which it implements 1853 to always fail with ENOSYS. Some functions are actually named 1854 something starting with __ and the normal name is an alias. */ 1855#if defined __stub_$2 || defined __stub___$2 1856choke me 1857#endif 1858 1859int 1860main () 1861{ 1862return $2 (); 1863 ; 1864 return 0; 1865} 1866_ACEOF 1867if ac_fn_c_try_link "$LINENO"; then : 1868 eval "$3=yes" 1869else 1870 eval "$3=no" 1871fi 1872rm -f core conftest.err conftest.$ac_objext \ 1873 conftest$ac_exeext conftest.$ac_ext 1874fi 1875eval ac_res=\$$3 1876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1877$as_echo "$ac_res" >&6; } 1878 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1879 1880} # ac_fn_c_check_func 1881 1882# ac_fn_fc_try_compile LINENO 1883# --------------------------- 1884# Try to compile conftest.$ac_ext, and return whether this succeeded. 1885ac_fn_fc_try_compile () 1886{ 1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1888 rm -f conftest.$ac_objext 1889 if { { ac_try="$ac_compile" 1890case "(($ac_try" in 1891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1892 *) ac_try_echo=$ac_try;; 1893esac 1894eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1895$as_echo "$ac_try_echo"; } >&5 1896 (eval "$ac_compile") 2>conftest.err 1897 ac_status=$? 1898 if test -s conftest.err; then 1899 grep -v '^ *+' conftest.err >conftest.er1 1900 cat conftest.er1 >&5 1901 mv -f conftest.er1 conftest.err 1902 fi 1903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1904 test $ac_status = 0; } && { 1905 test -z "$ac_fc_werror_flag" || 1906 test ! -s conftest.err 1907 } && test -s conftest.$ac_objext; then : 1908 ac_retval=0 1909else 1910 $as_echo "$as_me: failed program was:" >&5 1911sed 's/^/| /' conftest.$ac_ext >&5 1912 1913 ac_retval=1 1914fi 1915 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1916 as_fn_set_status $ac_retval 1917 1918} # ac_fn_fc_try_compile 1919 1920# ac_fn_fc_try_link LINENO 1921# ------------------------ 1922# Try to link conftest.$ac_ext, and return whether this succeeded. 1923ac_fn_fc_try_link () 1924{ 1925 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1926 rm -f conftest.$ac_objext conftest$ac_exeext 1927 if { { ac_try="$ac_link" 1928case "(($ac_try" in 1929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1930 *) ac_try_echo=$ac_try;; 1931esac 1932eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1933$as_echo "$ac_try_echo"; } >&5 1934 (eval "$ac_link") 2>conftest.err 1935 ac_status=$? 1936 if test -s conftest.err; then 1937 grep -v '^ *+' conftest.err >conftest.er1 1938 cat conftest.er1 >&5 1939 mv -f conftest.er1 conftest.err 1940 fi 1941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1942 test $ac_status = 0; } && { 1943 test -z "$ac_fc_werror_flag" || 1944 test ! -s conftest.err 1945 } && test -s conftest$ac_exeext && { 1946 test "$cross_compiling" = yes || 1947 test -x conftest$ac_exeext 1948 }; then : 1949 ac_retval=0 1950else 1951 $as_echo "$as_me: failed program was:" >&5 1952sed 's/^/| /' conftest.$ac_ext >&5 1953 1954 ac_retval=1 1955fi 1956 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1957 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1958 # interfere with the next link command; also delete a directory that is 1959 # left behind by Apple's compiler. We do this before executing the actions. 1960 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1961 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1962 as_fn_set_status $ac_retval 1963 1964} # ac_fn_fc_try_link 1965 1966# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1967# ------------------------------------------------------- 1968# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1969# the include files in INCLUDES and setting the cache variable VAR 1970# accordingly. 1971ac_fn_c_check_header_mongrel () 1972{ 1973 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1974 if eval \${$3+:} false; then : 1975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1976$as_echo_n "checking for $2... " >&6; } 1977if eval \${$3+:} false; then : 1978 $as_echo_n "(cached) " >&6 1979fi 1980eval ac_res=\$$3 1981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1982$as_echo "$ac_res" >&6; } 1983else 1984 # Is the header compilable? 1985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1986$as_echo_n "checking $2 usability... " >&6; } 1987cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1988/* end confdefs.h. */ 1989$4 1990#include <$2> 1991_ACEOF 1992if ac_fn_c_try_compile "$LINENO"; then : 1993 ac_header_compiler=yes 1994else 1995 ac_header_compiler=no 1996fi 1997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1999$as_echo "$ac_header_compiler" >&6; } 2000 2001# Is the header present? 2002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2003$as_echo_n "checking $2 presence... " >&6; } 2004cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2005/* end confdefs.h. */ 2006#include <$2> 2007_ACEOF 2008if ac_fn_c_try_cpp "$LINENO"; then : 2009 ac_header_preproc=yes 2010else 2011 ac_header_preproc=no 2012fi 2013rm -f conftest.err conftest.i conftest.$ac_ext 2014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2015$as_echo "$ac_header_preproc" >&6; } 2016 2017# So? What about this header? 2018case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2019 yes:no: ) 2020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2021$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2023$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2024 ;; 2025 no:yes:* ) 2026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2027$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2029$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2031$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2033$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2035$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2036 ;; 2037esac 2038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2039$as_echo_n "checking for $2... " >&6; } 2040if eval \${$3+:} false; then : 2041 $as_echo_n "(cached) " >&6 2042else 2043 eval "$3=\$ac_header_compiler" 2044fi 2045eval ac_res=\$$3 2046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2047$as_echo "$ac_res" >&6; } 2048fi 2049 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2050 2051} # ac_fn_c_check_header_mongrel 2052 2053# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2054# ------------------------------------------- 2055# Tests whether TYPE exists after having included INCLUDES, setting cache 2056# variable VAR accordingly. 2057ac_fn_c_check_type () 2058{ 2059 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2061$as_echo_n "checking for $2... " >&6; } 2062if eval \${$3+:} false; then : 2063 $as_echo_n "(cached) " >&6 2064else 2065 eval "$3=no" 2066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2067/* end confdefs.h. */ 2068$4 2069int 2070main () 2071{ 2072if (sizeof ($2)) 2073 return 0; 2074 ; 2075 return 0; 2076} 2077_ACEOF 2078if ac_fn_c_try_compile "$LINENO"; then : 2079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2080/* end confdefs.h. */ 2081$4 2082int 2083main () 2084{ 2085if (sizeof (($2))) 2086 return 0; 2087 ; 2088 return 0; 2089} 2090_ACEOF 2091if ac_fn_c_try_compile "$LINENO"; then : 2092 2093else 2094 eval "$3=yes" 2095fi 2096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2097fi 2098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2099fi 2100eval ac_res=\$$3 2101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2102$as_echo "$ac_res" >&6; } 2103 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2104 2105} # ac_fn_c_check_type 2106 2107# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2108# -------------------------------------------- 2109# Tries to find the compile-time value of EXPR in a program that includes 2110# INCLUDES, setting VAR accordingly. Returns whether the value could be 2111# computed 2112ac_fn_c_compute_int () 2113{ 2114 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2115 if test "$cross_compiling" = yes; then 2116 # Depending upon the size, compute the lo and hi bounds. 2117cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2118/* end confdefs.h. */ 2119$4 2120int 2121main () 2122{ 2123static int test_array [1 - 2 * !(($2) >= 0)]; 2124test_array [0] = 0; 2125return test_array [0]; 2126 2127 ; 2128 return 0; 2129} 2130_ACEOF 2131if ac_fn_c_try_compile "$LINENO"; then : 2132 ac_lo=0 ac_mid=0 2133 while :; do 2134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2135/* end confdefs.h. */ 2136$4 2137int 2138main () 2139{ 2140static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2141test_array [0] = 0; 2142return test_array [0]; 2143 2144 ; 2145 return 0; 2146} 2147_ACEOF 2148if ac_fn_c_try_compile "$LINENO"; then : 2149 ac_hi=$ac_mid; break 2150else 2151 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2152 if test $ac_lo -le $ac_mid; then 2153 ac_lo= ac_hi= 2154 break 2155 fi 2156 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2157fi 2158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2159 done 2160else 2161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2162/* end confdefs.h. */ 2163$4 2164int 2165main () 2166{ 2167static int test_array [1 - 2 * !(($2) < 0)]; 2168test_array [0] = 0; 2169return test_array [0]; 2170 2171 ; 2172 return 0; 2173} 2174_ACEOF 2175if ac_fn_c_try_compile "$LINENO"; then : 2176 ac_hi=-1 ac_mid=-1 2177 while :; do 2178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2179/* end confdefs.h. */ 2180$4 2181int 2182main () 2183{ 2184static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2185test_array [0] = 0; 2186return test_array [0]; 2187 2188 ; 2189 return 0; 2190} 2191_ACEOF 2192if ac_fn_c_try_compile "$LINENO"; then : 2193 ac_lo=$ac_mid; break 2194else 2195 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2196 if test $ac_mid -le $ac_hi; then 2197 ac_lo= ac_hi= 2198 break 2199 fi 2200 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2201fi 2202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2203 done 2204else 2205 ac_lo= ac_hi= 2206fi 2207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2208fi 2209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2210# Binary search between lo and hi bounds. 2211while test "x$ac_lo" != "x$ac_hi"; do 2212 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2214/* end confdefs.h. */ 2215$4 2216int 2217main () 2218{ 2219static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2220test_array [0] = 0; 2221return test_array [0]; 2222 2223 ; 2224 return 0; 2225} 2226_ACEOF 2227if ac_fn_c_try_compile "$LINENO"; then : 2228 ac_hi=$ac_mid 2229else 2230 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2231fi 2232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2233done 2234case $ac_lo in #(( 2235?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2236'') ac_retval=1 ;; 2237esac 2238 else 2239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2240/* end confdefs.h. */ 2241$4 2242static long int longval () { return $2; } 2243static unsigned long int ulongval () { return $2; } 2244#include <stdio.h> 2245#include <stdlib.h> 2246int 2247main () 2248{ 2249 2250 FILE *f = fopen ("conftest.val", "w"); 2251 if (! f) 2252 return 1; 2253 if (($2) < 0) 2254 { 2255 long int i = longval (); 2256 if (i != ($2)) 2257 return 1; 2258 fprintf (f, "%ld", i); 2259 } 2260 else 2261 { 2262 unsigned long int i = ulongval (); 2263 if (i != ($2)) 2264 return 1; 2265 fprintf (f, "%lu", i); 2266 } 2267 /* Do not output a trailing newline, as this causes \r\n confusion 2268 on some platforms. */ 2269 return ferror (f) || fclose (f) != 0; 2270 2271 ; 2272 return 0; 2273} 2274_ACEOF 2275if ac_fn_c_try_run "$LINENO"; then : 2276 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2277else 2278 ac_retval=1 2279fi 2280rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2281 conftest.$ac_objext conftest.beam conftest.$ac_ext 2282rm -f conftest.val 2283 2284 fi 2285 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2286 as_fn_set_status $ac_retval 2287 2288} # ac_fn_c_compute_int 2289cat >config.log <<_ACEOF 2290This file contains any messages produced by compilers while 2291running configure, to aid debugging if configure makes a mistake. 2292 2293It was created by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was 2294generated by GNU Autoconf 2.69. Invocation command line was 2295 2296 $ $0 $@ 2297 2298_ACEOF 2299exec 5>>config.log 2300{ 2301cat <<_ASUNAME 2302## --------- ## 2303## Platform. ## 2304## --------- ## 2305 2306hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2307uname -m = `(uname -m) 2>/dev/null || echo unknown` 2308uname -r = `(uname -r) 2>/dev/null || echo unknown` 2309uname -s = `(uname -s) 2>/dev/null || echo unknown` 2310uname -v = `(uname -v) 2>/dev/null || echo unknown` 2311 2312/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2313/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2314 2315/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2316/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2317/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2318/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2319/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2320/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2321/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2322 2323_ASUNAME 2324 2325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2326for as_dir in $PATH 2327do 2328 IFS=$as_save_IFS 2329 test -z "$as_dir" && as_dir=. 2330 $as_echo "PATH: $as_dir" 2331 done 2332IFS=$as_save_IFS 2333 2334} >&5 2335 2336cat >&5 <<_ACEOF 2337 2338 2339## ----------- ## 2340## Core tests. ## 2341## ----------- ## 2342 2343_ACEOF 2344 2345 2346# Keep a trace of the command line. 2347# Strip out --no-create and --no-recursion so they do not pile up. 2348# Strip out --silent because we don't want to record it for future runs. 2349# Also quote any args containing shell meta-characters. 2350# Make two passes to allow for proper duplicate-argument suppression. 2351ac_configure_args= 2352ac_configure_args0= 2353ac_configure_args1= 2354ac_must_keep_next=false 2355for ac_pass in 1 2 2356do 2357 for ac_arg 2358 do 2359 case $ac_arg in 2360 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2361 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2362 | -silent | --silent | --silen | --sile | --sil) 2363 continue ;; 2364 *\'*) 2365 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2366 esac 2367 case $ac_pass in 2368 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2369 2) 2370 as_fn_append ac_configure_args1 " '$ac_arg'" 2371 if test $ac_must_keep_next = true; then 2372 ac_must_keep_next=false # Got value, back to normal. 2373 else 2374 case $ac_arg in 2375 *=* | --config-cache | -C | -disable-* | --disable-* \ 2376 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2377 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2378 | -with-* | --with-* | -without-* | --without-* | --x) 2379 case "$ac_configure_args0 " in 2380 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2381 esac 2382 ;; 2383 -* ) ac_must_keep_next=true ;; 2384 esac 2385 fi 2386 as_fn_append ac_configure_args " '$ac_arg'" 2387 ;; 2388 esac 2389 done 2390done 2391{ ac_configure_args0=; unset ac_configure_args0;} 2392{ ac_configure_args1=; unset ac_configure_args1;} 2393 2394# When interrupted or exit'd, cleanup temporary files, and complete 2395# config.log. We remove comments because anyway the quotes in there 2396# would cause problems or look ugly. 2397# WARNING: Use '\'' to represent an apostrophe within the trap. 2398# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2399trap 'exit_status=$? 2400 # Save into config.log some information that might help in debugging. 2401 { 2402 echo 2403 2404 $as_echo "## ---------------- ## 2405## Cache variables. ## 2406## ---------------- ##" 2407 echo 2408 # The following way of writing the cache mishandles newlines in values, 2409( 2410 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2411 eval ac_val=\$$ac_var 2412 case $ac_val in #( 2413 *${as_nl}*) 2414 case $ac_var in #( 2415 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2416$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2417 esac 2418 case $ac_var in #( 2419 _ | IFS | as_nl) ;; #( 2420 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2421 *) { eval $ac_var=; unset $ac_var;} ;; 2422 esac ;; 2423 esac 2424 done 2425 (set) 2>&1 | 2426 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2427 *${as_nl}ac_space=\ *) 2428 sed -n \ 2429 "s/'\''/'\''\\\\'\'''\''/g; 2430 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2431 ;; #( 2432 *) 2433 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2434 ;; 2435 esac | 2436 sort 2437) 2438 echo 2439 2440 $as_echo "## ----------------- ## 2441## Output variables. ## 2442## ----------------- ##" 2443 echo 2444 for ac_var in $ac_subst_vars 2445 do 2446 eval ac_val=\$$ac_var 2447 case $ac_val in 2448 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2449 esac 2450 $as_echo "$ac_var='\''$ac_val'\''" 2451 done | sort 2452 echo 2453 2454 if test -n "$ac_subst_files"; then 2455 $as_echo "## ------------------- ## 2456## File substitutions. ## 2457## ------------------- ##" 2458 echo 2459 for ac_var in $ac_subst_files 2460 do 2461 eval ac_val=\$$ac_var 2462 case $ac_val in 2463 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2464 esac 2465 $as_echo "$ac_var='\''$ac_val'\''" 2466 done | sort 2467 echo 2468 fi 2469 2470 if test -s confdefs.h; then 2471 $as_echo "## ----------- ## 2472## confdefs.h. ## 2473## ----------- ##" 2474 echo 2475 cat confdefs.h 2476 echo 2477 fi 2478 test "$ac_signal" != 0 && 2479 $as_echo "$as_me: caught signal $ac_signal" 2480 $as_echo "$as_me: exit $exit_status" 2481 } >&5 2482 rm -f core *.core core.conftest.* && 2483 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2484 exit $exit_status 2485' 0 2486for ac_signal in 1 2 13 15; do 2487 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2488done 2489ac_signal=0 2490 2491# confdefs.h avoids OS command line length limits that DEFS can exceed. 2492rm -f -r conftest* confdefs.h 2493 2494$as_echo "/* confdefs.h */" > confdefs.h 2495 2496# Predefined preprocessor variables. 2497 2498cat >>confdefs.h <<_ACEOF 2499#define PACKAGE_NAME "$PACKAGE_NAME" 2500_ACEOF 2501 2502cat >>confdefs.h <<_ACEOF 2503#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2504_ACEOF 2505 2506cat >>confdefs.h <<_ACEOF 2507#define PACKAGE_VERSION "$PACKAGE_VERSION" 2508_ACEOF 2509 2510cat >>confdefs.h <<_ACEOF 2511#define PACKAGE_STRING "$PACKAGE_STRING" 2512_ACEOF 2513 2514cat >>confdefs.h <<_ACEOF 2515#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2516_ACEOF 2517 2518cat >>confdefs.h <<_ACEOF 2519#define PACKAGE_URL "$PACKAGE_URL" 2520_ACEOF 2521 2522 2523# Let the site file select an alternate cache file if it wants to. 2524# Prefer an explicitly selected file to automatically selected ones. 2525ac_site_file1=NONE 2526ac_site_file2=NONE 2527if test -n "$CONFIG_SITE"; then 2528 # We do not want a PATH search for config.site. 2529 case $CONFIG_SITE in #(( 2530 -*) ac_site_file1=./$CONFIG_SITE;; 2531 */*) ac_site_file1=$CONFIG_SITE;; 2532 *) ac_site_file1=./$CONFIG_SITE;; 2533 esac 2534elif test "x$prefix" != xNONE; then 2535 ac_site_file1=$prefix/share/config.site 2536 ac_site_file2=$prefix/etc/config.site 2537else 2538 ac_site_file1=$ac_default_prefix/share/config.site 2539 ac_site_file2=$ac_default_prefix/etc/config.site 2540fi 2541for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2542do 2543 test "x$ac_site_file" = xNONE && continue 2544 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2545 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2546$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2547 sed 's/^/| /' "$ac_site_file" >&5 2548 . "$ac_site_file" \ 2549 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2550$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2551as_fn_error $? "failed to load site script $ac_site_file 2552See \`config.log' for more details" "$LINENO" 5; } 2553 fi 2554done 2555 2556if test -r "$cache_file"; then 2557 # Some versions of bash will fail to source /dev/null (special files 2558 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2559 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2560 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2561$as_echo "$as_me: loading cache $cache_file" >&6;} 2562 case $cache_file in 2563 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2564 *) . "./$cache_file";; 2565 esac 2566 fi 2567else 2568 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2569$as_echo "$as_me: creating cache $cache_file" >&6;} 2570 >$cache_file 2571fi 2572 2573as_fn_append ac_header_list " unistd.h" 2574as_fn_append ac_func_list " secure_getenv" 2575as_fn_append ac_func_list " __secure_getenv" 2576as_fn_append ac_func_list " getuid" 2577as_fn_append ac_func_list " geteuid" 2578as_fn_append ac_func_list " getgid" 2579as_fn_append ac_func_list " getegid" 2580# Check that the precious variables saved in the cache have kept the same 2581# value. 2582ac_cache_corrupted=false 2583for ac_var in $ac_precious_vars; do 2584 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2585 eval ac_new_set=\$ac_env_${ac_var}_set 2586 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2587 eval ac_new_val=\$ac_env_${ac_var}_value 2588 case $ac_old_set,$ac_new_set in 2589 set,) 2590 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2591$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2592 ac_cache_corrupted=: ;; 2593 ,set) 2594 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2595$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2596 ac_cache_corrupted=: ;; 2597 ,);; 2598 *) 2599 if test "x$ac_old_val" != "x$ac_new_val"; then 2600 # differences in whitespace do not lead to failure. 2601 ac_old_val_w=`echo x $ac_old_val` 2602 ac_new_val_w=`echo x $ac_new_val` 2603 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2604 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2605$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2606 ac_cache_corrupted=: 2607 else 2608 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2609$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2610 eval $ac_var=\$ac_old_val 2611 fi 2612 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2613$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2614 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2615$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2616 fi;; 2617 esac 2618 # Pass precious variables to config.status. 2619 if test "$ac_new_set" = set; then 2620 case $ac_new_val in 2621 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2622 *) ac_arg=$ac_var=$ac_new_val ;; 2623 esac 2624 case " $ac_configure_args " in 2625 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2626 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2627 esac 2628 fi 2629done 2630if $ac_cache_corrupted; then 2631 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2632$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2633 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2634$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2635 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2636fi 2637## -------------------- ## 2638## Main body of script. ## 2639## -------------------- ## 2640 2641ac_ext=c 2642ac_cpp='$CPP $CPPFLAGS' 2643ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2644ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2645ac_compiler_gnu=$ac_cv_c_compiler_gnu 2646 2647 2648 2649 2650 2651ac_config_headers="$ac_config_headers config.h" 2652 2653 2654# ------- 2655# Options 2656# ------- 2657 2658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5 2659$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; } 2660 # Check whether --enable-version-specific-runtime-libs was given. 2661if test "${enable_version_specific_runtime_libs+set}" = set; then : 2662 enableval=$enable_version_specific_runtime_libs; 2663 case "$enableval" in 2664 yes|no) ;; 2665 *) as_fn_error $? "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;; 2666 esac 2667 2668else 2669 enable_version_specific_runtime_libs=no 2670fi 2671 2672 2673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5 2674$as_echo "$enable_version_specific_runtime_libs" >&6; } 2675 2676# We would like our source tree to be readonly. However when releases or 2677# pre-releases are generated, the flex/bison generated files as well as the 2678# various formats of manuals need to be included along with the rest of the 2679# sources. Therefore we have --enable-generated-files-in-srcdir to do 2680# just that. 2681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5 2682$as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; } 2683 # Check whether --enable-generated-files-in-srcdir was given. 2684if test "${enable_generated_files_in_srcdir+set}" = set; then : 2685 enableval=$enable_generated_files_in_srcdir; 2686 case "$enableval" in 2687 yes|no) ;; 2688 *) as_fn_error $? "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;; 2689 esac 2690 2691else 2692 enable_generated_files_in_srcdir=no 2693fi 2694 2695 2696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5 2697$as_echo "$enable_generated_files_in_srcdir" >&6; } 2698 if test "$enable_generated_files_in_srcdir" = yes; then 2699 GENINSRC_TRUE= 2700 GENINSRC_FALSE='#' 2701else 2702 GENINSRC_TRUE='#' 2703 GENINSRC_FALSE= 2704fi 2705 2706 2707 2708# ------- 2709# ------- 2710 2711# Gets build, host, target, *_vendor, *_cpu, *_os, etc. 2712# 2713# You will slowly go insane if you do not grok the following fact: when 2714# building this library, the top-level /target/ becomes the library's /host/. 2715# 2716# configure then causes --target to default to --host, exactly like any 2717# other package using autoconf. Therefore, 'target' and 'host' will 2718# always be the same. This makes sense both for native and cross compilers 2719# just think about it for a little while. :-) 2720# 2721# Also, if this library is being configured as part of a cross compiler, the 2722# top-level configure script will pass the "real" host as $with_cross_host. 2723# 2724# Do not delete or change the following two lines. For why, see 2725# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html 2726ac_aux_dir= 2727for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2728 if test -f "$ac_dir/install-sh"; then 2729 ac_aux_dir=$ac_dir 2730 ac_install_sh="$ac_aux_dir/install-sh -c" 2731 break 2732 elif test -f "$ac_dir/install.sh"; then 2733 ac_aux_dir=$ac_dir 2734 ac_install_sh="$ac_aux_dir/install.sh -c" 2735 break 2736 elif test -f "$ac_dir/shtool"; then 2737 ac_aux_dir=$ac_dir 2738 ac_install_sh="$ac_aux_dir/shtool install -c" 2739 break 2740 fi 2741done 2742if test -z "$ac_aux_dir"; then 2743 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2744fi 2745 2746# These three variables are undocumented and unsupported, 2747# and are intended to be withdrawn in a future Autoconf release. 2748# They can cause serious problems if a builder's source tree is in a directory 2749# whose full name contains unusual characters. 2750ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2751ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2752ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2753 2754 2755# Make sure we can run config.sub. 2756$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2757 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2758 2759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2760$as_echo_n "checking build system type... " >&6; } 2761if ${ac_cv_build+:} false; then : 2762 $as_echo_n "(cached) " >&6 2763else 2764 ac_build_alias=$build_alias 2765test "x$ac_build_alias" = x && 2766 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2767test "x$ac_build_alias" = x && 2768 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2769ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2770 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2771 2772fi 2773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2774$as_echo "$ac_cv_build" >&6; } 2775case $ac_cv_build in 2776*-*-*) ;; 2777*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2778esac 2779build=$ac_cv_build 2780ac_save_IFS=$IFS; IFS='-' 2781set x $ac_cv_build 2782shift 2783build_cpu=$1 2784build_vendor=$2 2785shift; shift 2786# Remember, the first character of IFS is used to create $*, 2787# except with old shells: 2788build_os=$* 2789IFS=$ac_save_IFS 2790case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2791 2792 2793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2794$as_echo_n "checking host system type... " >&6; } 2795if ${ac_cv_host+:} false; then : 2796 $as_echo_n "(cached) " >&6 2797else 2798 if test "x$host_alias" = x; then 2799 ac_cv_host=$ac_cv_build 2800else 2801 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2802 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2803fi 2804 2805fi 2806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2807$as_echo "$ac_cv_host" >&6; } 2808case $ac_cv_host in 2809*-*-*) ;; 2810*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2811esac 2812host=$ac_cv_host 2813ac_save_IFS=$IFS; IFS='-' 2814set x $ac_cv_host 2815shift 2816host_cpu=$1 2817host_vendor=$2 2818shift; shift 2819# Remember, the first character of IFS is used to create $*, 2820# except with old shells: 2821host_os=$* 2822IFS=$ac_save_IFS 2823case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2824 2825 2826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2827$as_echo_n "checking target system type... " >&6; } 2828if ${ac_cv_target+:} false; then : 2829 $as_echo_n "(cached) " >&6 2830else 2831 if test "x$target_alias" = x; then 2832 ac_cv_target=$ac_cv_host 2833else 2834 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2835 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2836fi 2837 2838fi 2839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2840$as_echo "$ac_cv_target" >&6; } 2841case $ac_cv_target in 2842*-*-*) ;; 2843*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 2844esac 2845target=$ac_cv_target 2846ac_save_IFS=$IFS; IFS='-' 2847set x $ac_cv_target 2848shift 2849target_cpu=$1 2850target_vendor=$2 2851shift; shift 2852# Remember, the first character of IFS is used to create $*, 2853# except with old shells: 2854target_os=$* 2855IFS=$ac_save_IFS 2856case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2857 2858 2859# The aliases save the names the user supplied, while $host etc. 2860# will get canonicalized. 2861test -n "$target_alias" && 2862 test "$program_prefix$program_suffix$program_transform_name" = \ 2863 NONENONEs,x,x, && 2864 program_prefix=${target_alias}- 2865 2866target_alias=${target_alias-$host_alias} 2867 2868# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the 2869# following is magically included in AUTOMAKE_OPTIONS in each Makefile.am. 2870# 1.9.0: minimum required version 2871# no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch 2872# of other PACKAGE_* variables will, however, and there's nothing 2873# we can do about that; they come from AC_INIT). 2874# foreign: we don't follow the normal rules for GNU packages (no COPYING 2875# file in the top srcdir, etc, etc), so stop complaining. 2876# no-dist: we don't want 'dist' and related rules. 2877# -Wall: turns on all automake warnings... 2878# -Wno-portability: ...except this one, since GNU make is required. 2879# -Wno-override: ... and this one, since we do want this in testsuite. 2880am__api_version='1.15' 2881 2882# Find a good install program. We prefer a C program (faster), 2883# so one script is as good as another. But avoid the broken or 2884# incompatible versions: 2885# SysV /etc/install, /usr/sbin/install 2886# SunOS /usr/etc/install 2887# IRIX /sbin/install 2888# AIX /bin/install 2889# AmigaOS /C/install, which installs bootblocks on floppy discs 2890# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2891# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2892# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2893# OS/2's system install, which has a completely different semantic 2894# ./install, which can be erroneously created by make from ./install.sh. 2895# Reject install programs that cannot install multiple files. 2896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2897$as_echo_n "checking for a BSD-compatible install... " >&6; } 2898if test -z "$INSTALL"; then 2899if ${ac_cv_path_install+:} false; then : 2900 $as_echo_n "(cached) " >&6 2901else 2902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2903for as_dir in $PATH 2904do 2905 IFS=$as_save_IFS 2906 test -z "$as_dir" && as_dir=. 2907 # Account for people who put trailing slashes in PATH elements. 2908case $as_dir/ in #(( 2909 ./ | .// | /[cC]/* | \ 2910 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2911 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2912 /usr/ucb/* ) ;; 2913 *) 2914 # OSF1 and SCO ODT 3.0 have their own names for install. 2915 # Don't use installbsd from OSF since it installs stuff as root 2916 # by default. 2917 for ac_prog in ginstall scoinst install; do 2918 for ac_exec_ext in '' $ac_executable_extensions; do 2919 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2920 if test $ac_prog = install && 2921 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2922 # AIX install. It has an incompatible calling convention. 2923 : 2924 elif test $ac_prog = install && 2925 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2926 # program-specific install script used by HP pwplus--don't use. 2927 : 2928 else 2929 rm -rf conftest.one conftest.two conftest.dir 2930 echo one > conftest.one 2931 echo two > conftest.two 2932 mkdir conftest.dir 2933 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2934 test -s conftest.one && test -s conftest.two && 2935 test -s conftest.dir/conftest.one && 2936 test -s conftest.dir/conftest.two 2937 then 2938 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2939 break 3 2940 fi 2941 fi 2942 fi 2943 done 2944 done 2945 ;; 2946esac 2947 2948 done 2949IFS=$as_save_IFS 2950 2951rm -rf conftest.one conftest.two conftest.dir 2952 2953fi 2954 if test "${ac_cv_path_install+set}" = set; then 2955 INSTALL=$ac_cv_path_install 2956 else 2957 # As a last resort, use the slow shell script. Don't cache a 2958 # value for INSTALL within a source directory, because that will 2959 # break other packages using the cache if that directory is 2960 # removed, or if the value is a relative name. 2961 INSTALL=$ac_install_sh 2962 fi 2963fi 2964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2965$as_echo "$INSTALL" >&6; } 2966 2967# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2968# It thinks the first close brace ends the variable substitution. 2969test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2970 2971test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2972 2973test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2974 2975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2976$as_echo_n "checking whether build environment is sane... " >&6; } 2977# Reject unsafe characters in $srcdir or the absolute working directory 2978# name. Accept space and tab only in the latter. 2979am_lf=' 2980' 2981case `pwd` in 2982 *[\\\"\#\$\&\'\`$am_lf]*) 2983 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2984esac 2985case $srcdir in 2986 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2987 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2988esac 2989 2990# Do 'set' in a subshell so we don't clobber the current shell's 2991# arguments. Must try -L first in case configure is actually a 2992# symlink; some systems play weird games with the mod time of symlinks 2993# (eg FreeBSD returns the mod time of the symlink's containing 2994# directory). 2995if ( 2996 am_has_slept=no 2997 for am_try in 1 2; do 2998 echo "timestamp, slept: $am_has_slept" > conftest.file 2999 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3000 if test "$*" = "X"; then 3001 # -L didn't work. 3002 set X `ls -t "$srcdir/configure" conftest.file` 3003 fi 3004 if test "$*" != "X $srcdir/configure conftest.file" \ 3005 && test "$*" != "X conftest.file $srcdir/configure"; then 3006 3007 # If neither matched, then we have a broken ls. This can happen 3008 # if, for instance, CONFIG_SHELL is bash and it inherits a 3009 # broken ls alias from the environment. This has actually 3010 # happened. Such a system could not be considered "sane". 3011 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3012 alias in your environment" "$LINENO" 5 3013 fi 3014 if test "$2" = conftest.file || test $am_try -eq 2; then 3015 break 3016 fi 3017 # Just in case. 3018 sleep 1 3019 am_has_slept=yes 3020 done 3021 test "$2" = conftest.file 3022 ) 3023then 3024 # Ok. 3025 : 3026else 3027 as_fn_error $? "newly created file is older than distributed files! 3028Check your system clock" "$LINENO" 5 3029fi 3030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3031$as_echo "yes" >&6; } 3032# If we didn't sleep, we still need to ensure time stamps of config.status and 3033# generated files are strictly newer. 3034am_sleep_pid= 3035if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3036 ( sleep 1 ) & 3037 am_sleep_pid=$! 3038fi 3039 3040rm -f conftest.file 3041 3042test "$program_prefix" != NONE && 3043 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3044# Use a double $ so make ignores it. 3045test "$program_suffix" != NONE && 3046 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3047# Double any \ or $. 3048# By default was `s,x,x', remove it if useless. 3049ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3050program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3051 3052# Expand $ac_aux_dir to an absolute path. 3053am_aux_dir=`cd "$ac_aux_dir" && pwd` 3054 3055if test x"${MISSING+set}" != xset; then 3056 case $am_aux_dir in 3057 *\ * | *\ *) 3058 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3059 *) 3060 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3061 esac 3062fi 3063# Use eval to expand $SHELL 3064if eval "$MISSING --is-lightweight"; then 3065 am_missing_run="$MISSING " 3066else 3067 am_missing_run= 3068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3069$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3070fi 3071 3072if test x"${install_sh+set}" != xset; then 3073 case $am_aux_dir in 3074 *\ * | *\ *) 3075 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3076 *) 3077 install_sh="\${SHELL} $am_aux_dir/install-sh" 3078 esac 3079fi 3080 3081# Installed binaries are usually stripped using 'strip' when the user 3082# run "make install-strip". However 'strip' might not be the right 3083# tool to use in cross-compilation environments, therefore Automake 3084# will honor the 'STRIP' environment variable to overrule this program. 3085if test "$cross_compiling" != no; then 3086 if test -n "$ac_tool_prefix"; then 3087 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3088set dummy ${ac_tool_prefix}strip; ac_word=$2 3089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3090$as_echo_n "checking for $ac_word... " >&6; } 3091if ${ac_cv_prog_STRIP+:} false; then : 3092 $as_echo_n "(cached) " >&6 3093else 3094 if test -n "$STRIP"; then 3095 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3096else 3097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3098for as_dir in $PATH 3099do 3100 IFS=$as_save_IFS 3101 test -z "$as_dir" && as_dir=. 3102 for ac_exec_ext in '' $ac_executable_extensions; do 3103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3104 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3106 break 2 3107 fi 3108done 3109 done 3110IFS=$as_save_IFS 3111 3112fi 3113fi 3114STRIP=$ac_cv_prog_STRIP 3115if test -n "$STRIP"; then 3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3117$as_echo "$STRIP" >&6; } 3118else 3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3120$as_echo "no" >&6; } 3121fi 3122 3123 3124fi 3125if test -z "$ac_cv_prog_STRIP"; then 3126 ac_ct_STRIP=$STRIP 3127 # Extract the first word of "strip", so it can be a program name with args. 3128set dummy strip; ac_word=$2 3129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3130$as_echo_n "checking for $ac_word... " >&6; } 3131if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3132 $as_echo_n "(cached) " >&6 3133else 3134 if test -n "$ac_ct_STRIP"; then 3135 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3136else 3137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3138for as_dir in $PATH 3139do 3140 IFS=$as_save_IFS 3141 test -z "$as_dir" && as_dir=. 3142 for ac_exec_ext in '' $ac_executable_extensions; do 3143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3144 ac_cv_prog_ac_ct_STRIP="strip" 3145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3146 break 2 3147 fi 3148done 3149 done 3150IFS=$as_save_IFS 3151 3152fi 3153fi 3154ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3155if test -n "$ac_ct_STRIP"; then 3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3157$as_echo "$ac_ct_STRIP" >&6; } 3158else 3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3160$as_echo "no" >&6; } 3161fi 3162 3163 if test "x$ac_ct_STRIP" = x; then 3164 STRIP=":" 3165 else 3166 case $cross_compiling:$ac_tool_warned in 3167yes:) 3168{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3169$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3170ac_tool_warned=yes ;; 3171esac 3172 STRIP=$ac_ct_STRIP 3173 fi 3174else 3175 STRIP="$ac_cv_prog_STRIP" 3176fi 3177 3178fi 3179INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3180 3181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3182$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3183if test -z "$MKDIR_P"; then 3184 if ${ac_cv_path_mkdir+:} false; then : 3185 $as_echo_n "(cached) " >&6 3186else 3187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3188for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3189do 3190 IFS=$as_save_IFS 3191 test -z "$as_dir" && as_dir=. 3192 for ac_prog in mkdir gmkdir; do 3193 for ac_exec_ext in '' $ac_executable_extensions; do 3194 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3195 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3196 'mkdir (GNU coreutils) '* | \ 3197 'mkdir (coreutils) '* | \ 3198 'mkdir (fileutils) '4.1*) 3199 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3200 break 3;; 3201 esac 3202 done 3203 done 3204 done 3205IFS=$as_save_IFS 3206 3207fi 3208 3209 test -d ./--version && rmdir ./--version 3210 if test "${ac_cv_path_mkdir+set}" = set; then 3211 MKDIR_P="$ac_cv_path_mkdir -p" 3212 else 3213 # As a last resort, use the slow shell script. Don't cache a 3214 # value for MKDIR_P within a source directory, because that will 3215 # break other packages using the cache if that directory is 3216 # removed, or if the value is a relative name. 3217 MKDIR_P="$ac_install_sh -d" 3218 fi 3219fi 3220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3221$as_echo "$MKDIR_P" >&6; } 3222 3223for ac_prog in gawk mawk nawk awk 3224do 3225 # Extract the first word of "$ac_prog", so it can be a program name with args. 3226set dummy $ac_prog; ac_word=$2 3227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3228$as_echo_n "checking for $ac_word... " >&6; } 3229if ${ac_cv_prog_AWK+:} false; then : 3230 $as_echo_n "(cached) " >&6 3231else 3232 if test -n "$AWK"; then 3233 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3234else 3235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3236for as_dir in $PATH 3237do 3238 IFS=$as_save_IFS 3239 test -z "$as_dir" && as_dir=. 3240 for ac_exec_ext in '' $ac_executable_extensions; do 3241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3242 ac_cv_prog_AWK="$ac_prog" 3243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3244 break 2 3245 fi 3246done 3247 done 3248IFS=$as_save_IFS 3249 3250fi 3251fi 3252AWK=$ac_cv_prog_AWK 3253if test -n "$AWK"; then 3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3255$as_echo "$AWK" >&6; } 3256else 3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3258$as_echo "no" >&6; } 3259fi 3260 3261 3262 test -n "$AWK" && break 3263done 3264 3265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3266$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3267set x ${MAKE-make} 3268ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3269if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3270 $as_echo_n "(cached) " >&6 3271else 3272 cat >conftest.make <<\_ACEOF 3273SHELL = /bin/sh 3274all: 3275 @echo '@@@%%%=$(MAKE)=@@@%%%' 3276_ACEOF 3277# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3278case `${MAKE-make} -f conftest.make 2>/dev/null` in 3279 *@@@%%%=?*=@@@%%%*) 3280 eval ac_cv_prog_make_${ac_make}_set=yes;; 3281 *) 3282 eval ac_cv_prog_make_${ac_make}_set=no;; 3283esac 3284rm -f conftest.make 3285fi 3286if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3288$as_echo "yes" >&6; } 3289 SET_MAKE= 3290else 3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3292$as_echo "no" >&6; } 3293 SET_MAKE="MAKE=${MAKE-make}" 3294fi 3295 3296rm -rf .tst 2>/dev/null 3297mkdir .tst 2>/dev/null 3298if test -d .tst; then 3299 am__leading_dot=. 3300else 3301 am__leading_dot=_ 3302fi 3303rmdir .tst 2>/dev/null 3304 3305# Check whether --enable-silent-rules was given. 3306if test "${enable_silent_rules+set}" = set; then : 3307 enableval=$enable_silent_rules; 3308fi 3309 3310case $enable_silent_rules in # ((( 3311 yes) AM_DEFAULT_VERBOSITY=0;; 3312 no) AM_DEFAULT_VERBOSITY=1;; 3313 *) AM_DEFAULT_VERBOSITY=1;; 3314esac 3315am_make=${MAKE-make} 3316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3317$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3318if ${am_cv_make_support_nested_variables+:} false; then : 3319 $as_echo_n "(cached) " >&6 3320else 3321 if $as_echo 'TRUE=$(BAR$(V)) 3322BAR0=false 3323BAR1=true 3324V=1 3325am__doit: 3326 @$(TRUE) 3327.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3328 am_cv_make_support_nested_variables=yes 3329else 3330 am_cv_make_support_nested_variables=no 3331fi 3332fi 3333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3334$as_echo "$am_cv_make_support_nested_variables" >&6; } 3335if test $am_cv_make_support_nested_variables = yes; then 3336 AM_V='$(V)' 3337 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3338else 3339 AM_V=$AM_DEFAULT_VERBOSITY 3340 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3341fi 3342AM_BACKSLASH='\' 3343 3344if test "`cd $srcdir && pwd`" != "`pwd`"; then 3345 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3346 # is not polluted with repeated "-I." 3347 am__isrc=' -I$(srcdir)' 3348 # test to see if srcdir already configured 3349 if test -f $srcdir/config.status; then 3350 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3351 fi 3352fi 3353 3354# test whether we have cygpath 3355if test -z "$CYGPATH_W"; then 3356 if (cygpath --version) >/dev/null 2>/dev/null; then 3357 CYGPATH_W='cygpath -w' 3358 else 3359 CYGPATH_W=echo 3360 fi 3361fi 3362 3363 3364# Define the identity of the package. 3365 PACKAGE='libgomp' 3366 VERSION='1.0' 3367 3368 3369cat >>confdefs.h <<_ACEOF 3370#define PACKAGE "$PACKAGE" 3371_ACEOF 3372 3373 3374cat >>confdefs.h <<_ACEOF 3375#define VERSION "$VERSION" 3376_ACEOF 3377 3378# Some tools Automake needs. 3379 3380ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3381 3382 3383AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3384 3385 3386AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3387 3388 3389AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3390 3391 3392MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3393 3394# For better backward compatibility. To be removed once Automake 1.9.x 3395# dies out for good. For more background, see: 3396# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3397# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3398mkdir_p='$(MKDIR_P)' 3399 3400# We need awk for the "check" target (and possibly the TAP driver). The 3401# system "awk" is bad on some platforms. 3402# Always define AMTAR for backward compatibility. Yes, it's still used 3403# in the wild :-( We should find a proper way to deprecate it ... 3404AMTAR='$${TAR-tar}' 3405 3406 3407# We'll loop over all known methods to create a tar archive until one works. 3408_am_tools='gnutar pax cpio none' 3409 3410am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3411 3412 3413 3414 3415 3416 3417# POSIX will say in a future version that running "rm -f" with no argument 3418# is OK; and we want to be able to make that assumption in our Makefile 3419# recipes. So use an aggressive probe to check that the usage we want is 3420# actually supported "in the wild" to an acceptable degree. 3421# See automake bug#10828. 3422# To make any issue more visible, cause the running configure to be aborted 3423# by default if the 'rm' program in use doesn't match our expectations; the 3424# user can still override this though. 3425if rm -f && rm -fr && rm -rf; then : OK; else 3426 cat >&2 <<'END' 3427Oops! 3428 3429Your 'rm' program seems unable to run without file operands specified 3430on the command line, even when the '-f' option is present. This is contrary 3431to the behaviour of most rm programs out there, and not conforming with 3432the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3433 3434Please tell bug-automake@gnu.org about your system, including the value 3435of your $PATH and any error possibly output before this message. This 3436can help us improve future automake versions. 3437 3438END 3439 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3440 echo 'Configuration will proceed anyway, since you have set the' >&2 3441 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3442 echo >&2 3443 else 3444 cat >&2 <<'END' 3445Aborting the configuration process, to ensure you take notice of the issue. 3446 3447You can download and install GNU coreutils to get an 'rm' implementation 3448that behaves properly: <http://www.gnu.org/software/coreutils/>. 3449 3450If you want to complete the configuration process using your problematic 3451'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3452to "yes", and re-run configure. 3453 3454END 3455 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3456 fi 3457fi 3458 3459# Default to --enable-multilib 3460# Check whether --enable-multilib was given. 3461if test "${enable_multilib+set}" = set; then : 3462 enableval=$enable_multilib; case "$enableval" in 3463 yes) multilib=yes ;; 3464 no) multilib=no ;; 3465 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;; 3466 esac 3467else 3468 multilib=yes 3469fi 3470 3471 3472# We may get other options which we leave undocumented: 3473# --with-target-subdir, --with-multisrctop, --with-multisubdir 3474# See config-ml.in if you want the gory details. 3475 3476if test "$srcdir" = "."; then 3477 if test "$with_target_subdir" != "."; then 3478 multi_basedir="$srcdir/$with_multisrctop../.." 3479 else 3480 multi_basedir="$srcdir/$with_multisrctop.." 3481 fi 3482else 3483 multi_basedir="$srcdir/.." 3484fi 3485 3486 3487# Even if the default multilib is not a cross compilation, 3488# it may be that some of the other multilibs are. 3489if test $cross_compiling = no && test $multilib = yes \ 3490 && test "x${with_multisubdir}" != x ; then 3491 cross_compiling=maybe 3492fi 3493 3494ac_config_commands="$ac_config_commands default-1" 3495 3496 3497# Calculate toolexeclibdir 3498# Also toolexecdir, though it's only used in toolexeclibdir 3499case ${enable_version_specific_runtime_libs} in 3500 yes) 3501 # Need the gcc compiler version to know where to install libraries 3502 # and header files if --enable-version-specific-runtime-libs option 3503 # is selected. 3504 toolexecdir='$(libdir)/gcc/$(target_alias)' 3505 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)' 3506 ;; 3507 no) 3508 if test -n "$with_cross_host" && 3509 test x"$with_cross_host" != x"no"; then 3510 # Install a library built with a cross compiler in tooldir, not libdir. 3511 toolexecdir='$(exec_prefix)/$(target_alias)' 3512 toolexeclibdir='$(toolexecdir)/lib' 3513 else 3514 toolexecdir='$(libdir)/gcc-lib/$(target_alias)' 3515 toolexeclibdir='$(libdir)' 3516 fi 3517 multi_os_directory=`$CC -print-multi-os-directory` 3518 case $multi_os_directory in 3519 .) ;; # Avoid trailing /. 3520 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;; 3521 esac 3522 ;; 3523esac 3524 3525 3526 3527# Check the compiler. 3528# The same as in boehm-gc and libstdc++. Have to borrow it from there. 3529# We must force CC to /not/ be precious variables; otherwise 3530# the wrong, non-multilib-adjusted value will be used in multilibs. 3531# As a side effect, we have to subst CFLAGS ourselves. 3532 3533 3534 3535ac_ext=c 3536ac_cpp='$CPP $CPPFLAGS' 3537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3539ac_compiler_gnu=$ac_cv_c_compiler_gnu 3540if test -n "$ac_tool_prefix"; then 3541 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3542set dummy ${ac_tool_prefix}gcc; ac_word=$2 3543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3544$as_echo_n "checking for $ac_word... " >&6; } 3545if ${ac_cv_prog_CC+:} false; then : 3546 $as_echo_n "(cached) " >&6 3547else 3548 if test -n "$CC"; then 3549 ac_cv_prog_CC="$CC" # Let the user override the test. 3550else 3551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3552for as_dir in $PATH 3553do 3554 IFS=$as_save_IFS 3555 test -z "$as_dir" && as_dir=. 3556 for ac_exec_ext in '' $ac_executable_extensions; do 3557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3558 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3560 break 2 3561 fi 3562done 3563 done 3564IFS=$as_save_IFS 3565 3566fi 3567fi 3568CC=$ac_cv_prog_CC 3569if test -n "$CC"; then 3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3571$as_echo "$CC" >&6; } 3572else 3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3574$as_echo "no" >&6; } 3575fi 3576 3577 3578fi 3579if test -z "$ac_cv_prog_CC"; then 3580 ac_ct_CC=$CC 3581 # Extract the first word of "gcc", so it can be a program name with args. 3582set dummy gcc; ac_word=$2 3583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3584$as_echo_n "checking for $ac_word... " >&6; } 3585if ${ac_cv_prog_ac_ct_CC+:} false; then : 3586 $as_echo_n "(cached) " >&6 3587else 3588 if test -n "$ac_ct_CC"; then 3589 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3590else 3591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3592for as_dir in $PATH 3593do 3594 IFS=$as_save_IFS 3595 test -z "$as_dir" && as_dir=. 3596 for ac_exec_ext in '' $ac_executable_extensions; do 3597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3598 ac_cv_prog_ac_ct_CC="gcc" 3599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3600 break 2 3601 fi 3602done 3603 done 3604IFS=$as_save_IFS 3605 3606fi 3607fi 3608ac_ct_CC=$ac_cv_prog_ac_ct_CC 3609if test -n "$ac_ct_CC"; then 3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3611$as_echo "$ac_ct_CC" >&6; } 3612else 3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3614$as_echo "no" >&6; } 3615fi 3616 3617 if test "x$ac_ct_CC" = x; then 3618 CC="" 3619 else 3620 case $cross_compiling:$ac_tool_warned in 3621yes:) 3622{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3623$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3624ac_tool_warned=yes ;; 3625esac 3626 CC=$ac_ct_CC 3627 fi 3628else 3629 CC="$ac_cv_prog_CC" 3630fi 3631 3632if test -z "$CC"; then 3633 if test -n "$ac_tool_prefix"; then 3634 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3635set dummy ${ac_tool_prefix}cc; ac_word=$2 3636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3637$as_echo_n "checking for $ac_word... " >&6; } 3638if ${ac_cv_prog_CC+:} false; then : 3639 $as_echo_n "(cached) " >&6 3640else 3641 if test -n "$CC"; then 3642 ac_cv_prog_CC="$CC" # Let the user override the test. 3643else 3644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3645for as_dir in $PATH 3646do 3647 IFS=$as_save_IFS 3648 test -z "$as_dir" && as_dir=. 3649 for ac_exec_ext in '' $ac_executable_extensions; do 3650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3651 ac_cv_prog_CC="${ac_tool_prefix}cc" 3652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3653 break 2 3654 fi 3655done 3656 done 3657IFS=$as_save_IFS 3658 3659fi 3660fi 3661CC=$ac_cv_prog_CC 3662if test -n "$CC"; then 3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3664$as_echo "$CC" >&6; } 3665else 3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3667$as_echo "no" >&6; } 3668fi 3669 3670 3671 fi 3672fi 3673if test -z "$CC"; then 3674 # Extract the first word of "cc", so it can be a program name with args. 3675set dummy cc; ac_word=$2 3676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3677$as_echo_n "checking for $ac_word... " >&6; } 3678if ${ac_cv_prog_CC+:} false; then : 3679 $as_echo_n "(cached) " >&6 3680else 3681 if test -n "$CC"; then 3682 ac_cv_prog_CC="$CC" # Let the user override the test. 3683else 3684 ac_prog_rejected=no 3685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3686for as_dir in $PATH 3687do 3688 IFS=$as_save_IFS 3689 test -z "$as_dir" && as_dir=. 3690 for ac_exec_ext in '' $ac_executable_extensions; do 3691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3692 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3693 ac_prog_rejected=yes 3694 continue 3695 fi 3696 ac_cv_prog_CC="cc" 3697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3698 break 2 3699 fi 3700done 3701 done 3702IFS=$as_save_IFS 3703 3704if test $ac_prog_rejected = yes; then 3705 # We found a bogon in the path, so make sure we never use it. 3706 set dummy $ac_cv_prog_CC 3707 shift 3708 if test $# != 0; then 3709 # We chose a different compiler from the bogus one. 3710 # However, it has the same basename, so the bogon will be chosen 3711 # first if we set CC to just the basename; use the full file name. 3712 shift 3713 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3714 fi 3715fi 3716fi 3717fi 3718CC=$ac_cv_prog_CC 3719if test -n "$CC"; then 3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3721$as_echo "$CC" >&6; } 3722else 3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3724$as_echo "no" >&6; } 3725fi 3726 3727 3728fi 3729if test -z "$CC"; then 3730 if test -n "$ac_tool_prefix"; then 3731 for ac_prog in cl.exe 3732 do 3733 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3734set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3736$as_echo_n "checking for $ac_word... " >&6; } 3737if ${ac_cv_prog_CC+:} false; then : 3738 $as_echo_n "(cached) " >&6 3739else 3740 if test -n "$CC"; then 3741 ac_cv_prog_CC="$CC" # Let the user override the test. 3742else 3743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3744for as_dir in $PATH 3745do 3746 IFS=$as_save_IFS 3747 test -z "$as_dir" && as_dir=. 3748 for ac_exec_ext in '' $ac_executable_extensions; do 3749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3750 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3752 break 2 3753 fi 3754done 3755 done 3756IFS=$as_save_IFS 3757 3758fi 3759fi 3760CC=$ac_cv_prog_CC 3761if test -n "$CC"; then 3762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3763$as_echo "$CC" >&6; } 3764else 3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3766$as_echo "no" >&6; } 3767fi 3768 3769 3770 test -n "$CC" && break 3771 done 3772fi 3773if test -z "$CC"; then 3774 ac_ct_CC=$CC 3775 for ac_prog in cl.exe 3776do 3777 # Extract the first word of "$ac_prog", so it can be a program name with args. 3778set dummy $ac_prog; ac_word=$2 3779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3780$as_echo_n "checking for $ac_word... " >&6; } 3781if ${ac_cv_prog_ac_ct_CC+:} false; then : 3782 $as_echo_n "(cached) " >&6 3783else 3784 if test -n "$ac_ct_CC"; then 3785 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3786else 3787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3788for as_dir in $PATH 3789do 3790 IFS=$as_save_IFS 3791 test -z "$as_dir" && as_dir=. 3792 for ac_exec_ext in '' $ac_executable_extensions; do 3793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3794 ac_cv_prog_ac_ct_CC="$ac_prog" 3795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3796 break 2 3797 fi 3798done 3799 done 3800IFS=$as_save_IFS 3801 3802fi 3803fi 3804ac_ct_CC=$ac_cv_prog_ac_ct_CC 3805if test -n "$ac_ct_CC"; then 3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3807$as_echo "$ac_ct_CC" >&6; } 3808else 3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3810$as_echo "no" >&6; } 3811fi 3812 3813 3814 test -n "$ac_ct_CC" && break 3815done 3816 3817 if test "x$ac_ct_CC" = x; then 3818 CC="" 3819 else 3820 case $cross_compiling:$ac_tool_warned in 3821yes:) 3822{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3823$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3824ac_tool_warned=yes ;; 3825esac 3826 CC=$ac_ct_CC 3827 fi 3828fi 3829 3830fi 3831 3832 3833test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3834$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3835as_fn_error $? "no acceptable C compiler found in \$PATH 3836See \`config.log' for more details" "$LINENO" 5; } 3837 3838# Provide some information about the compiler. 3839$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3840set X $ac_compile 3841ac_compiler=$2 3842for ac_option in --version -v -V -qversion; do 3843 { { ac_try="$ac_compiler $ac_option >&5" 3844case "(($ac_try" in 3845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3846 *) ac_try_echo=$ac_try;; 3847esac 3848eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3849$as_echo "$ac_try_echo"; } >&5 3850 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3851 ac_status=$? 3852 if test -s conftest.err; then 3853 sed '10a\ 3854... rest of stderr output deleted ... 3855 10q' conftest.err >conftest.er1 3856 cat conftest.er1 >&5 3857 fi 3858 rm -f conftest.er1 conftest.err 3859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3860 test $ac_status = 0; } 3861done 3862 3863cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3864/* end confdefs.h. */ 3865 3866int 3867main () 3868{ 3869 3870 ; 3871 return 0; 3872} 3873_ACEOF 3874ac_clean_files_save=$ac_clean_files 3875ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3876# Try to create an executable without -o first, disregard a.out. 3877# It will help us diagnose broken compilers, and finding out an intuition 3878# of exeext. 3879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3880$as_echo_n "checking whether the C compiler works... " >&6; } 3881ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3882 3883# The possible output files: 3884ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3885 3886ac_rmfiles= 3887for ac_file in $ac_files 3888do 3889 case $ac_file in 3890 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3891 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3892 esac 3893done 3894rm -f $ac_rmfiles 3895 3896if { { ac_try="$ac_link_default" 3897case "(($ac_try" in 3898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3899 *) ac_try_echo=$ac_try;; 3900esac 3901eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3902$as_echo "$ac_try_echo"; } >&5 3903 (eval "$ac_link_default") 2>&5 3904 ac_status=$? 3905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3906 test $ac_status = 0; }; then : 3907 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3908# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3909# in a Makefile. We should not override ac_cv_exeext if it was cached, 3910# so that the user can short-circuit this test for compilers unknown to 3911# Autoconf. 3912for ac_file in $ac_files '' 3913do 3914 test -f "$ac_file" || continue 3915 case $ac_file in 3916 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3917 ;; 3918 [ab].out ) 3919 # We found the default executable, but exeext='' is most 3920 # certainly right. 3921 break;; 3922 *.* ) 3923 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3924 then :; else 3925 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3926 fi 3927 # We set ac_cv_exeext here because the later test for it is not 3928 # safe: cross compilers may not add the suffix if given an `-o' 3929 # argument, so we may need to know it at that point already. 3930 # Even if this section looks crufty: it has the advantage of 3931 # actually working. 3932 break;; 3933 * ) 3934 break;; 3935 esac 3936done 3937test "$ac_cv_exeext" = no && ac_cv_exeext= 3938 3939else 3940 ac_file='' 3941fi 3942if test -z "$ac_file"; then : 3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3944$as_echo "no" >&6; } 3945$as_echo "$as_me: failed program was:" >&5 3946sed 's/^/| /' conftest.$ac_ext >&5 3947 3948{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3949$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3950as_fn_error 77 "C compiler cannot create executables 3951See \`config.log' for more details" "$LINENO" 5; } 3952else 3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3954$as_echo "yes" >&6; } 3955fi 3956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3957$as_echo_n "checking for C compiler default output file name... " >&6; } 3958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3959$as_echo "$ac_file" >&6; } 3960ac_exeext=$ac_cv_exeext 3961 3962rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3963ac_clean_files=$ac_clean_files_save 3964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3965$as_echo_n "checking for suffix of executables... " >&6; } 3966if { { ac_try="$ac_link" 3967case "(($ac_try" in 3968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3969 *) ac_try_echo=$ac_try;; 3970esac 3971eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3972$as_echo "$ac_try_echo"; } >&5 3973 (eval "$ac_link") 2>&5 3974 ac_status=$? 3975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3976 test $ac_status = 0; }; then : 3977 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3978# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3979# work properly (i.e., refer to `conftest.exe'), while it won't with 3980# `rm'. 3981for ac_file in conftest.exe conftest conftest.*; do 3982 test -f "$ac_file" || continue 3983 case $ac_file in 3984 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3985 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3986 break;; 3987 * ) break;; 3988 esac 3989done 3990else 3991 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3992$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3993as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3994See \`config.log' for more details" "$LINENO" 5; } 3995fi 3996rm -f conftest conftest$ac_cv_exeext 3997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3998$as_echo "$ac_cv_exeext" >&6; } 3999 4000rm -f conftest.$ac_ext 4001EXEEXT=$ac_cv_exeext 4002ac_exeext=$EXEEXT 4003cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4004/* end confdefs.h. */ 4005#include <stdio.h> 4006int 4007main () 4008{ 4009FILE *f = fopen ("conftest.out", "w"); 4010 return ferror (f) || fclose (f) != 0; 4011 4012 ; 4013 return 0; 4014} 4015_ACEOF 4016ac_clean_files="$ac_clean_files conftest.out" 4017# Check that the compiler produces executables we can run. If not, either 4018# the compiler is broken, or we cross compile. 4019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4020$as_echo_n "checking whether we are cross compiling... " >&6; } 4021if test "$cross_compiling" != yes; then 4022 { { ac_try="$ac_link" 4023case "(($ac_try" in 4024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4025 *) ac_try_echo=$ac_try;; 4026esac 4027eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4028$as_echo "$ac_try_echo"; } >&5 4029 (eval "$ac_link") 2>&5 4030 ac_status=$? 4031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4032 test $ac_status = 0; } 4033 if { ac_try='./conftest$ac_cv_exeext' 4034 { { case "(($ac_try" in 4035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4036 *) ac_try_echo=$ac_try;; 4037esac 4038eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4039$as_echo "$ac_try_echo"; } >&5 4040 (eval "$ac_try") 2>&5 4041 ac_status=$? 4042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4043 test $ac_status = 0; }; }; then 4044 cross_compiling=no 4045 else 4046 if test "$cross_compiling" = maybe; then 4047 cross_compiling=yes 4048 else 4049 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4050$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4051as_fn_error $? "cannot run C compiled programs. 4052If you meant to cross compile, use \`--host'. 4053See \`config.log' for more details" "$LINENO" 5; } 4054 fi 4055 fi 4056fi 4057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4058$as_echo "$cross_compiling" >&6; } 4059 4060rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4061ac_clean_files=$ac_clean_files_save 4062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4063$as_echo_n "checking for suffix of object files... " >&6; } 4064if ${ac_cv_objext+:} false; then : 4065 $as_echo_n "(cached) " >&6 4066else 4067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4068/* end confdefs.h. */ 4069 4070int 4071main () 4072{ 4073 4074 ; 4075 return 0; 4076} 4077_ACEOF 4078rm -f conftest.o conftest.obj 4079if { { ac_try="$ac_compile" 4080case "(($ac_try" in 4081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4082 *) ac_try_echo=$ac_try;; 4083esac 4084eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4085$as_echo "$ac_try_echo"; } >&5 4086 (eval "$ac_compile") 2>&5 4087 ac_status=$? 4088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4089 test $ac_status = 0; }; then : 4090 for ac_file in conftest.o conftest.obj conftest.*; do 4091 test -f "$ac_file" || continue; 4092 case $ac_file in 4093 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4094 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4095 break;; 4096 esac 4097done 4098else 4099 $as_echo "$as_me: failed program was:" >&5 4100sed 's/^/| /' conftest.$ac_ext >&5 4101 4102{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4103$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4104as_fn_error $? "cannot compute suffix of object files: cannot compile 4105See \`config.log' for more details" "$LINENO" 5; } 4106fi 4107rm -f conftest.$ac_cv_objext conftest.$ac_ext 4108fi 4109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4110$as_echo "$ac_cv_objext" >&6; } 4111OBJEXT=$ac_cv_objext 4112ac_objext=$OBJEXT 4113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4114$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4115if ${ac_cv_c_compiler_gnu+:} false; then : 4116 $as_echo_n "(cached) " >&6 4117else 4118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4119/* end confdefs.h. */ 4120 4121int 4122main () 4123{ 4124#ifndef __GNUC__ 4125 choke me 4126#endif 4127 4128 ; 4129 return 0; 4130} 4131_ACEOF 4132if ac_fn_c_try_compile "$LINENO"; then : 4133 ac_compiler_gnu=yes 4134else 4135 ac_compiler_gnu=no 4136fi 4137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4138ac_cv_c_compiler_gnu=$ac_compiler_gnu 4139 4140fi 4141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4142$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4143if test $ac_compiler_gnu = yes; then 4144 GCC=yes 4145else 4146 GCC= 4147fi 4148ac_test_CFLAGS=${CFLAGS+set} 4149ac_save_CFLAGS=$CFLAGS 4150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4151$as_echo_n "checking whether $CC accepts -g... " >&6; } 4152if ${ac_cv_prog_cc_g+:} false; then : 4153 $as_echo_n "(cached) " >&6 4154else 4155 ac_save_c_werror_flag=$ac_c_werror_flag 4156 ac_c_werror_flag=yes 4157 ac_cv_prog_cc_g=no 4158 CFLAGS="-g" 4159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4160/* end confdefs.h. */ 4161 4162int 4163main () 4164{ 4165 4166 ; 4167 return 0; 4168} 4169_ACEOF 4170if ac_fn_c_try_compile "$LINENO"; then : 4171 ac_cv_prog_cc_g=yes 4172else 4173 CFLAGS="" 4174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4175/* end confdefs.h. */ 4176 4177int 4178main () 4179{ 4180 4181 ; 4182 return 0; 4183} 4184_ACEOF 4185if ac_fn_c_try_compile "$LINENO"; then : 4186 4187else 4188 ac_c_werror_flag=$ac_save_c_werror_flag 4189 CFLAGS="-g" 4190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4191/* end confdefs.h. */ 4192 4193int 4194main () 4195{ 4196 4197 ; 4198 return 0; 4199} 4200_ACEOF 4201if ac_fn_c_try_compile "$LINENO"; then : 4202 ac_cv_prog_cc_g=yes 4203fi 4204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4205fi 4206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4207fi 4208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4209 ac_c_werror_flag=$ac_save_c_werror_flag 4210fi 4211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4212$as_echo "$ac_cv_prog_cc_g" >&6; } 4213if test "$ac_test_CFLAGS" = set; then 4214 CFLAGS=$ac_save_CFLAGS 4215elif test $ac_cv_prog_cc_g = yes; then 4216 if test "$GCC" = yes; then 4217 CFLAGS="-g -O2" 4218 else 4219 CFLAGS="-g" 4220 fi 4221else 4222 if test "$GCC" = yes; then 4223 CFLAGS="-O2" 4224 else 4225 CFLAGS= 4226 fi 4227fi 4228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4229$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4230if ${ac_cv_prog_cc_c89+:} false; then : 4231 $as_echo_n "(cached) " >&6 4232else 4233 ac_cv_prog_cc_c89=no 4234ac_save_CC=$CC 4235cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4236/* end confdefs.h. */ 4237#include <stdarg.h> 4238#include <stdio.h> 4239struct stat; 4240/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4241struct buf { int x; }; 4242FILE * (*rcsopen) (struct buf *, struct stat *, int); 4243static char *e (p, i) 4244 char **p; 4245 int i; 4246{ 4247 return p[i]; 4248} 4249static char *f (char * (*g) (char **, int), char **p, ...) 4250{ 4251 char *s; 4252 va_list v; 4253 va_start (v,p); 4254 s = g (p, va_arg (v,int)); 4255 va_end (v); 4256 return s; 4257} 4258 4259/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4260 function prototypes and stuff, but not '\xHH' hex character constants. 4261 These don't provoke an error unfortunately, instead are silently treated 4262 as 'x'. The following induces an error, until -std is added to get 4263 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4264 array size at least. It's necessary to write '\x00'==0 to get something 4265 that's true only with -std. */ 4266int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4267 4268/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4269 inside strings and character constants. */ 4270#define FOO(x) 'x' 4271int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4272 4273int test (int i, double x); 4274struct s1 {int (*f) (int a);}; 4275struct s2 {int (*f) (double a);}; 4276int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4277int argc; 4278char **argv; 4279int 4280main () 4281{ 4282return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4283 ; 4284 return 0; 4285} 4286_ACEOF 4287for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4288 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4289do 4290 CC="$ac_save_CC $ac_arg" 4291 if ac_fn_c_try_compile "$LINENO"; then : 4292 ac_cv_prog_cc_c89=$ac_arg 4293fi 4294rm -f core conftest.err conftest.$ac_objext 4295 test "x$ac_cv_prog_cc_c89" != "xno" && break 4296done 4297rm -f conftest.$ac_ext 4298CC=$ac_save_CC 4299 4300fi 4301# AC_CACHE_VAL 4302case "x$ac_cv_prog_cc_c89" in 4303 x) 4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4305$as_echo "none needed" >&6; } ;; 4306 xno) 4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4308$as_echo "unsupported" >&6; } ;; 4309 *) 4310 CC="$CC $ac_cv_prog_cc_c89" 4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4312$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4313esac 4314if test "x$ac_cv_prog_cc_c89" != xno; then : 4315 4316fi 4317 4318ac_ext=c 4319ac_cpp='$CPP $CPPFLAGS' 4320ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4321ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4322ac_compiler_gnu=$ac_cv_c_compiler_gnu 4323 4324ac_ext=c 4325ac_cpp='$CPP $CPPFLAGS' 4326ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4327ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4328ac_compiler_gnu=$ac_cv_c_compiler_gnu 4329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4330$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4331if ${am_cv_prog_cc_c_o+:} false; then : 4332 $as_echo_n "(cached) " >&6 4333else 4334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4335/* end confdefs.h. */ 4336 4337int 4338main () 4339{ 4340 4341 ; 4342 return 0; 4343} 4344_ACEOF 4345 # Make sure it works both with $CC and with simple cc. 4346 # Following AC_PROG_CC_C_O, we do the test twice because some 4347 # compilers refuse to overwrite an existing .o file with -o, 4348 # though they will create one. 4349 am_cv_prog_cc_c_o=yes 4350 for am_i in 1 2; do 4351 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4352 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4353 ac_status=$? 4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4355 (exit $ac_status); } \ 4356 && test -f conftest2.$ac_objext; then 4357 : OK 4358 else 4359 am_cv_prog_cc_c_o=no 4360 break 4361 fi 4362 done 4363 rm -f core conftest* 4364 unset am_i 4365fi 4366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4367$as_echo "$am_cv_prog_cc_c_o" >&6; } 4368if test "$am_cv_prog_cc_c_o" != yes; then 4369 # Losing compiler, so override with the script. 4370 # FIXME: It is wrong to rewrite CC. 4371 # But if we don't then we get into trouble of one sort or another. 4372 # A longer-term fix would be to have automake use am__CC in this case, 4373 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4374 CC="$am_aux_dir/compile $CC" 4375fi 4376ac_ext=c 4377ac_cpp='$CPP $CPPFLAGS' 4378ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4379ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4380ac_compiler_gnu=$ac_cv_c_compiler_gnu 4381 4382DEPDIR="${am__leading_dot}deps" 4383 4384ac_config_commands="$ac_config_commands depfiles" 4385 4386 4387am_make=${MAKE-make} 4388cat > confinc << 'END' 4389am__doit: 4390 @echo this is the am__doit target 4391.PHONY: am__doit 4392END 4393# If we don't find an include directive, just comment out the code. 4394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4395$as_echo_n "checking for style of include used by $am_make... " >&6; } 4396am__include="#" 4397am__quote= 4398_am_result=none 4399# First try GNU make style include. 4400echo "include confinc" > confmf 4401# Ignore all kinds of additional output from 'make'. 4402case `$am_make -s -f confmf 2> /dev/null` in #( 4403*the\ am__doit\ target*) 4404 am__include=include 4405 am__quote= 4406 _am_result=GNU 4407 ;; 4408esac 4409# Now try BSD make style include. 4410if test "$am__include" = "#"; then 4411 echo '.include "confinc"' > confmf 4412 case `$am_make -s -f confmf 2> /dev/null` in #( 4413 *the\ am__doit\ target*) 4414 am__include=.include 4415 am__quote="\"" 4416 _am_result=BSD 4417 ;; 4418 esac 4419fi 4420 4421 4422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4423$as_echo "$_am_result" >&6; } 4424rm -f confinc confmf 4425 4426# Check whether --enable-dependency-tracking was given. 4427if test "${enable_dependency_tracking+set}" = set; then : 4428 enableval=$enable_dependency_tracking; 4429fi 4430 4431if test "x$enable_dependency_tracking" != xno; then 4432 am_depcomp="$ac_aux_dir/depcomp" 4433 AMDEPBACKSLASH='\' 4434 am__nodep='_no' 4435fi 4436 if test "x$enable_dependency_tracking" != xno; then 4437 AMDEP_TRUE= 4438 AMDEP_FALSE='#' 4439else 4440 AMDEP_TRUE='#' 4441 AMDEP_FALSE= 4442fi 4443 4444 4445 4446depcc="$CC" am_compiler_list= 4447 4448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4449$as_echo_n "checking dependency style of $depcc... " >&6; } 4450if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4451 $as_echo_n "(cached) " >&6 4452else 4453 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4454 # We make a subdir and do the tests there. Otherwise we can end up 4455 # making bogus files that we don't know about and never remove. For 4456 # instance it was reported that on HP-UX the gcc test will end up 4457 # making a dummy file named 'D' -- because '-MD' means "put the output 4458 # in D". 4459 rm -rf conftest.dir 4460 mkdir conftest.dir 4461 # Copy depcomp to subdir because otherwise we won't find it if we're 4462 # using a relative directory. 4463 cp "$am_depcomp" conftest.dir 4464 cd conftest.dir 4465 # We will build objects and dependencies in a subdirectory because 4466 # it helps to detect inapplicable dependency modes. For instance 4467 # both Tru64's cc and ICC support -MD to output dependencies as a 4468 # side effect of compilation, but ICC will put the dependencies in 4469 # the current directory while Tru64 will put them in the object 4470 # directory. 4471 mkdir sub 4472 4473 am_cv_CC_dependencies_compiler_type=none 4474 if test "$am_compiler_list" = ""; then 4475 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4476 fi 4477 am__universal=false 4478 case " $depcc " in #( 4479 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4480 esac 4481 4482 for depmode in $am_compiler_list; do 4483 # Setup a source with many dependencies, because some compilers 4484 # like to wrap large dependency lists on column 80 (with \), and 4485 # we should not choose a depcomp mode which is confused by this. 4486 # 4487 # We need to recreate these files for each test, as the compiler may 4488 # overwrite some of them when testing with obscure command lines. 4489 # This happens at least with the AIX C compiler. 4490 : > sub/conftest.c 4491 for i in 1 2 3 4 5 6; do 4492 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4493 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4494 # Solaris 10 /bin/sh. 4495 echo '/* dummy */' > sub/conftst$i.h 4496 done 4497 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4498 4499 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4500 # mode. It turns out that the SunPro C++ compiler does not properly 4501 # handle '-M -o', and we need to detect this. Also, some Intel 4502 # versions had trouble with output in subdirs. 4503 am__obj=sub/conftest.${OBJEXT-o} 4504 am__minus_obj="-o $am__obj" 4505 case $depmode in 4506 gcc) 4507 # This depmode causes a compiler race in universal mode. 4508 test "$am__universal" = false || continue 4509 ;; 4510 nosideeffect) 4511 # After this tag, mechanisms are not by side-effect, so they'll 4512 # only be used when explicitly requested. 4513 if test "x$enable_dependency_tracking" = xyes; then 4514 continue 4515 else 4516 break 4517 fi 4518 ;; 4519 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4520 # This compiler won't grok '-c -o', but also, the minuso test has 4521 # not run yet. These depmodes are late enough in the game, and 4522 # so weak that their functioning should not be impacted. 4523 am__obj=conftest.${OBJEXT-o} 4524 am__minus_obj= 4525 ;; 4526 none) break ;; 4527 esac 4528 if depmode=$depmode \ 4529 source=sub/conftest.c object=$am__obj \ 4530 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4531 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4532 >/dev/null 2>conftest.err && 4533 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4534 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4535 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4536 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4537 # icc doesn't choke on unknown options, it will just issue warnings 4538 # or remarks (even with -Werror). So we grep stderr for any message 4539 # that says an option was ignored or not supported. 4540 # When given -MP, icc 7.0 and 7.1 complain thusly: 4541 # icc: Command line warning: ignoring option '-M'; no argument required 4542 # The diagnosis changed in icc 8.0: 4543 # icc: Command line remark: option '-MP' not supported 4544 if (grep 'ignoring option' conftest.err || 4545 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4546 am_cv_CC_dependencies_compiler_type=$depmode 4547 break 4548 fi 4549 fi 4550 done 4551 4552 cd .. 4553 rm -rf conftest.dir 4554else 4555 am_cv_CC_dependencies_compiler_type=none 4556fi 4557 4558fi 4559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4560$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4561CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4562 4563 if 4564 test "x$enable_dependency_tracking" != xno \ 4565 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4566 am__fastdepCC_TRUE= 4567 am__fastdepCC_FALSE='#' 4568else 4569 am__fastdepCC_TRUE='#' 4570 am__fastdepCC_FALSE= 4571fi 4572 4573 4574 4575 4576 4577 4578# In order to override CFLAGS_FOR_TARGET, all of our special flags go 4579# in XCFLAGS. But we need them in CFLAGS during configury. So put them 4580# in both places for now and restore CFLAGS at the end of config. 4581save_CFLAGS="$CFLAGS" 4582 4583# Add -Wall -Werror if we are using GCC. 4584if test "x$GCC" = "xyes"; then 4585 XCFLAGS="$XCFLAGS -Wall -Werror" 4586fi 4587 4588# Find other programs we need. 4589if test -n "$ac_tool_prefix"; then 4590 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 4591set dummy ${ac_tool_prefix}ar; ac_word=$2 4592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4593$as_echo_n "checking for $ac_word... " >&6; } 4594if ${ac_cv_prog_AR+:} false; then : 4595 $as_echo_n "(cached) " >&6 4596else 4597 if test -n "$AR"; then 4598 ac_cv_prog_AR="$AR" # Let the user override the test. 4599else 4600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4601for as_dir in $PATH 4602do 4603 IFS=$as_save_IFS 4604 test -z "$as_dir" && as_dir=. 4605 for ac_exec_ext in '' $ac_executable_extensions; do 4606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4607 ac_cv_prog_AR="${ac_tool_prefix}ar" 4608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4609 break 2 4610 fi 4611done 4612 done 4613IFS=$as_save_IFS 4614 4615fi 4616fi 4617AR=$ac_cv_prog_AR 4618if test -n "$AR"; then 4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 4620$as_echo "$AR" >&6; } 4621else 4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4623$as_echo "no" >&6; } 4624fi 4625 4626 4627fi 4628if test -z "$ac_cv_prog_AR"; then 4629 ac_ct_AR=$AR 4630 # Extract the first word of "ar", so it can be a program name with args. 4631set dummy ar; ac_word=$2 4632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4633$as_echo_n "checking for $ac_word... " >&6; } 4634if ${ac_cv_prog_ac_ct_AR+:} false; then : 4635 $as_echo_n "(cached) " >&6 4636else 4637 if test -n "$ac_ct_AR"; then 4638 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 4639else 4640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4641for as_dir in $PATH 4642do 4643 IFS=$as_save_IFS 4644 test -z "$as_dir" && as_dir=. 4645 for ac_exec_ext in '' $ac_executable_extensions; do 4646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4647 ac_cv_prog_ac_ct_AR="ar" 4648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4649 break 2 4650 fi 4651done 4652 done 4653IFS=$as_save_IFS 4654 4655fi 4656fi 4657ac_ct_AR=$ac_cv_prog_ac_ct_AR 4658if test -n "$ac_ct_AR"; then 4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 4660$as_echo "$ac_ct_AR" >&6; } 4661else 4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4663$as_echo "no" >&6; } 4664fi 4665 4666 if test "x$ac_ct_AR" = x; then 4667 AR="" 4668 else 4669 case $cross_compiling:$ac_tool_warned in 4670yes:) 4671{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4672$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4673ac_tool_warned=yes ;; 4674esac 4675 AR=$ac_ct_AR 4676 fi 4677else 4678 AR="$ac_cv_prog_AR" 4679fi 4680 4681if test -n "$ac_tool_prefix"; then 4682 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 4683set dummy ${ac_tool_prefix}ranlib; ac_word=$2 4684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4685$as_echo_n "checking for $ac_word... " >&6; } 4686if ${ac_cv_prog_RANLIB+:} false; then : 4687 $as_echo_n "(cached) " >&6 4688else 4689 if test -n "$RANLIB"; then 4690 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4691else 4692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4693for as_dir in $PATH 4694do 4695 IFS=$as_save_IFS 4696 test -z "$as_dir" && as_dir=. 4697 for ac_exec_ext in '' $ac_executable_extensions; do 4698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4699 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4701 break 2 4702 fi 4703done 4704 done 4705IFS=$as_save_IFS 4706 4707fi 4708fi 4709RANLIB=$ac_cv_prog_RANLIB 4710if test -n "$RANLIB"; then 4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 4712$as_echo "$RANLIB" >&6; } 4713else 4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4715$as_echo "no" >&6; } 4716fi 4717 4718 4719fi 4720if test -z "$ac_cv_prog_RANLIB"; then 4721 ac_ct_RANLIB=$RANLIB 4722 # Extract the first word of "ranlib", so it can be a program name with args. 4723set dummy ranlib; ac_word=$2 4724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4725$as_echo_n "checking for $ac_word... " >&6; } 4726if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 4727 $as_echo_n "(cached) " >&6 4728else 4729 if test -n "$ac_ct_RANLIB"; then 4730 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 4731else 4732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4733for as_dir in $PATH 4734do 4735 IFS=$as_save_IFS 4736 test -z "$as_dir" && as_dir=. 4737 for ac_exec_ext in '' $ac_executable_extensions; do 4738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4739 ac_cv_prog_ac_ct_RANLIB="ranlib" 4740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4741 break 2 4742 fi 4743done 4744 done 4745IFS=$as_save_IFS 4746 4747fi 4748fi 4749ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 4750if test -n "$ac_ct_RANLIB"; then 4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 4752$as_echo "$ac_ct_RANLIB" >&6; } 4753else 4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4755$as_echo "no" >&6; } 4756fi 4757 4758 if test "x$ac_ct_RANLIB" = x; then 4759 RANLIB="ranlib-not-found-in-path-error" 4760 else 4761 case $cross_compiling:$ac_tool_warned in 4762yes:) 4763{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4764$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4765ac_tool_warned=yes ;; 4766esac 4767 RANLIB=$ac_ct_RANLIB 4768 fi 4769else 4770 RANLIB="$ac_cv_prog_RANLIB" 4771fi 4772 4773# Extract the first word of "perl", so it can be a program name with args. 4774set dummy perl; ac_word=$2 4775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4776$as_echo_n "checking for $ac_word... " >&6; } 4777if ${ac_cv_path_PERL+:} false; then : 4778 $as_echo_n "(cached) " >&6 4779else 4780 case $PERL in 4781 [\\/]* | ?:[\\/]*) 4782 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 4783 ;; 4784 *) 4785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4786for as_dir in $PATH 4787do 4788 IFS=$as_save_IFS 4789 test -z "$as_dir" && as_dir=. 4790 for ac_exec_ext in '' $ac_executable_extensions; do 4791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4792 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 4793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4794 break 2 4795 fi 4796done 4797 done 4798IFS=$as_save_IFS 4799 4800 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error" 4801 ;; 4802esac 4803fi 4804PERL=$ac_cv_path_PERL 4805if test -n "$PERL"; then 4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 4807$as_echo "$PERL" >&6; } 4808else 4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4810$as_echo "no" >&6; } 4811fi 4812 4813 4814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4815$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4816set x ${MAKE-make} 4817ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4818if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 4819 $as_echo_n "(cached) " >&6 4820else 4821 cat >conftest.make <<\_ACEOF 4822SHELL = /bin/sh 4823all: 4824 @echo '@@@%%%=$(MAKE)=@@@%%%' 4825_ACEOF 4826# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4827case `${MAKE-make} -f conftest.make 2>/dev/null` in 4828 *@@@%%%=?*=@@@%%%*) 4829 eval ac_cv_prog_make_${ac_make}_set=yes;; 4830 *) 4831 eval ac_cv_prog_make_${ac_make}_set=no;; 4832esac 4833rm -f conftest.make 4834fi 4835if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4837$as_echo "yes" >&6; } 4838 SET_MAKE= 4839else 4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4841$as_echo "no" >&6; } 4842 SET_MAKE="MAKE=${MAKE-make}" 4843fi 4844 4845 4846 4847# See if makeinfo has been installed and is modern enough 4848# that we can use it. 4849 4850 # Extract the first word of "makeinfo", so it can be a program name with args. 4851set dummy makeinfo; ac_word=$2 4852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4853$as_echo_n "checking for $ac_word... " >&6; } 4854if ${ac_cv_prog_MAKEINFO+:} false; then : 4855 $as_echo_n "(cached) " >&6 4856else 4857 if test -n "$MAKEINFO"; then 4858 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. 4859else 4860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4861for as_dir in $PATH 4862do 4863 IFS=$as_save_IFS 4864 test -z "$as_dir" && as_dir=. 4865 for ac_exec_ext in '' $ac_executable_extensions; do 4866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4867 ac_cv_prog_MAKEINFO="makeinfo" 4868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4869 break 2 4870 fi 4871done 4872 done 4873IFS=$as_save_IFS 4874 4875fi 4876fi 4877MAKEINFO=$ac_cv_prog_MAKEINFO 4878if test -n "$MAKEINFO"; then 4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 4880$as_echo "$MAKEINFO" >&6; } 4881else 4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4883$as_echo "no" >&6; } 4884fi 4885 4886 4887 if test -n "$MAKEINFO"; then 4888 # Found it, now check the version. 4889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5 4890$as_echo_n "checking for modern makeinfo... " >&6; } 4891if ${gcc_cv_prog_makeinfo_modern+:} false; then : 4892 $as_echo_n "(cached) " >&6 4893else 4894 ac_prog_version=`eval $MAKEINFO --version 2>&1 | 4895 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'` 4896 4897 case $ac_prog_version in 4898 '') gcc_cv_prog_makeinfo_modern=no;; 4899 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;; 4900 *) gcc_cv_prog_makeinfo_modern=no;; 4901 esac 4902 4903fi 4904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5 4905$as_echo "$gcc_cv_prog_makeinfo_modern" >&6; } 4906 else 4907 gcc_cv_prog_makeinfo_modern=no 4908 fi 4909 if test $gcc_cv_prog_makeinfo_modern = no; then 4910 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo" 4911 fi 4912 4913 if test $gcc_cv_prog_makeinfo_modern = "yes"; then 4914 BUILD_INFO_TRUE= 4915 BUILD_INFO_FALSE='#' 4916else 4917 BUILD_INFO_TRUE='#' 4918 BUILD_INFO_FALSE= 4919fi 4920 4921 4922 4923# Configure libtool 4924case `pwd` in 4925 *\ * | *\ *) 4926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4927$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4928esac 4929 4930 4931 4932macro_version='2.2.7a' 4933macro_revision='1.3134' 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947ltmain="$ac_aux_dir/ltmain.sh" 4948 4949# Backslashify metacharacters that are still active within 4950# double-quoted strings. 4951sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4952 4953# Same as above, but do not quote variable references. 4954double_quote_subst='s/\(["`\\]\)/\\\1/g' 4955 4956# Sed substitution to delay expansion of an escaped shell variable in a 4957# double_quote_subst'ed string. 4958delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4959 4960# Sed substitution to delay expansion of an escaped single quote. 4961delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4962 4963# Sed substitution to avoid accidental globbing in evaled expressions 4964no_glob_subst='s/\*/\\\*/g' 4965 4966ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4967ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4968ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4969 4970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4971$as_echo_n "checking how to print strings... " >&6; } 4972# Test print first, because it will be a builtin if present. 4973if test "X`print -r -- -n 2>/dev/null`" = X-n && \ 4974 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4975 ECHO='print -r --' 4976elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4977 ECHO='printf %s\n' 4978else 4979 # Use this function as a fallback that always works. 4980 func_fallback_echo () 4981 { 4982 eval 'cat <<_LTECHO_EOF 4983$1 4984_LTECHO_EOF' 4985 } 4986 ECHO='func_fallback_echo' 4987fi 4988 4989# func_echo_all arg... 4990# Invoke $ECHO with all args, space-separated. 4991func_echo_all () 4992{ 4993 $ECHO "" 4994} 4995 4996case "$ECHO" in 4997 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4998$as_echo "printf" >&6; } ;; 4999 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5000$as_echo "print -r" >&6; } ;; 5001 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5002$as_echo "cat" >&6; } ;; 5003esac 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5019$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5020if ${ac_cv_path_SED+:} false; then : 5021 $as_echo_n "(cached) " >&6 5022else 5023 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5024 for ac_i in 1 2 3 4 5 6 7; do 5025 ac_script="$ac_script$as_nl$ac_script" 5026 done 5027 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5028 { ac_script=; unset ac_script;} 5029 if test -z "$SED"; then 5030 ac_path_SED_found=false 5031 # Loop through the user's path and test for each of PROGNAME-LIST 5032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5033for as_dir in $PATH 5034do 5035 IFS=$as_save_IFS 5036 test -z "$as_dir" && as_dir=. 5037 for ac_prog in sed gsed; do 5038 for ac_exec_ext in '' $ac_executable_extensions; do 5039 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5040 as_fn_executable_p "$ac_path_SED" || continue 5041# Check for GNU ac_path_SED and select it if it is found. 5042 # Check for GNU $ac_path_SED 5043case `"$ac_path_SED" --version 2>&1` in 5044*GNU*) 5045 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5046*) 5047 ac_count=0 5048 $as_echo_n 0123456789 >"conftest.in" 5049 while : 5050 do 5051 cat "conftest.in" "conftest.in" >"conftest.tmp" 5052 mv "conftest.tmp" "conftest.in" 5053 cp "conftest.in" "conftest.nl" 5054 $as_echo '' >> "conftest.nl" 5055 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5056 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5057 as_fn_arith $ac_count + 1 && ac_count=$as_val 5058 if test $ac_count -gt ${ac_path_SED_max-0}; then 5059 # Best one so far, save it but keep looking for a better one 5060 ac_cv_path_SED="$ac_path_SED" 5061 ac_path_SED_max=$ac_count 5062 fi 5063 # 10*(2^10) chars as input seems more than enough 5064 test $ac_count -gt 10 && break 5065 done 5066 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5067esac 5068 5069 $ac_path_SED_found && break 3 5070 done 5071 done 5072 done 5073IFS=$as_save_IFS 5074 if test -z "$ac_cv_path_SED"; then 5075 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5076 fi 5077else 5078 ac_cv_path_SED=$SED 5079fi 5080 5081fi 5082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5083$as_echo "$ac_cv_path_SED" >&6; } 5084 SED="$ac_cv_path_SED" 5085 rm -f conftest.sed 5086 5087test -z "$SED" && SED=sed 5088Xsed="$SED -e 1s/^X//" 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5101$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 5102if ${ac_cv_path_GREP+:} false; then : 5103 $as_echo_n "(cached) " >&6 5104else 5105 if test -z "$GREP"; then 5106 ac_path_GREP_found=false 5107 # Loop through the user's path and test for each of PROGNAME-LIST 5108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5109for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5110do 5111 IFS=$as_save_IFS 5112 test -z "$as_dir" && as_dir=. 5113 for ac_prog in grep ggrep; do 5114 for ac_exec_ext in '' $ac_executable_extensions; do 5115 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5116 as_fn_executable_p "$ac_path_GREP" || continue 5117# Check for GNU ac_path_GREP and select it if it is found. 5118 # Check for GNU $ac_path_GREP 5119case `"$ac_path_GREP" --version 2>&1` in 5120*GNU*) 5121 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5122*) 5123 ac_count=0 5124 $as_echo_n 0123456789 >"conftest.in" 5125 while : 5126 do 5127 cat "conftest.in" "conftest.in" >"conftest.tmp" 5128 mv "conftest.tmp" "conftest.in" 5129 cp "conftest.in" "conftest.nl" 5130 $as_echo 'GREP' >> "conftest.nl" 5131 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5132 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5133 as_fn_arith $ac_count + 1 && ac_count=$as_val 5134 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5135 # Best one so far, save it but keep looking for a better one 5136 ac_cv_path_GREP="$ac_path_GREP" 5137 ac_path_GREP_max=$ac_count 5138 fi 5139 # 10*(2^10) chars as input seems more than enough 5140 test $ac_count -gt 10 && break 5141 done 5142 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5143esac 5144 5145 $ac_path_GREP_found && break 3 5146 done 5147 done 5148 done 5149IFS=$as_save_IFS 5150 if test -z "$ac_cv_path_GREP"; then 5151 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5152 fi 5153else 5154 ac_cv_path_GREP=$GREP 5155fi 5156 5157fi 5158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5159$as_echo "$ac_cv_path_GREP" >&6; } 5160 GREP="$ac_cv_path_GREP" 5161 5162 5163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5164$as_echo_n "checking for egrep... " >&6; } 5165if ${ac_cv_path_EGREP+:} false; then : 5166 $as_echo_n "(cached) " >&6 5167else 5168 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5169 then ac_cv_path_EGREP="$GREP -E" 5170 else 5171 if test -z "$EGREP"; then 5172 ac_path_EGREP_found=false 5173 # Loop through the user's path and test for each of PROGNAME-LIST 5174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5175for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5176do 5177 IFS=$as_save_IFS 5178 test -z "$as_dir" && as_dir=. 5179 for ac_prog in egrep; do 5180 for ac_exec_ext in '' $ac_executable_extensions; do 5181 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5182 as_fn_executable_p "$ac_path_EGREP" || continue 5183# Check for GNU ac_path_EGREP and select it if it is found. 5184 # Check for GNU $ac_path_EGREP 5185case `"$ac_path_EGREP" --version 2>&1` in 5186*GNU*) 5187 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5188*) 5189 ac_count=0 5190 $as_echo_n 0123456789 >"conftest.in" 5191 while : 5192 do 5193 cat "conftest.in" "conftest.in" >"conftest.tmp" 5194 mv "conftest.tmp" "conftest.in" 5195 cp "conftest.in" "conftest.nl" 5196 $as_echo 'EGREP' >> "conftest.nl" 5197 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5198 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5199 as_fn_arith $ac_count + 1 && ac_count=$as_val 5200 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5201 # Best one so far, save it but keep looking for a better one 5202 ac_cv_path_EGREP="$ac_path_EGREP" 5203 ac_path_EGREP_max=$ac_count 5204 fi 5205 # 10*(2^10) chars as input seems more than enough 5206 test $ac_count -gt 10 && break 5207 done 5208 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5209esac 5210 5211 $ac_path_EGREP_found && break 3 5212 done 5213 done 5214 done 5215IFS=$as_save_IFS 5216 if test -z "$ac_cv_path_EGREP"; then 5217 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5218 fi 5219else 5220 ac_cv_path_EGREP=$EGREP 5221fi 5222 5223 fi 5224fi 5225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5226$as_echo "$ac_cv_path_EGREP" >&6; } 5227 EGREP="$ac_cv_path_EGREP" 5228 5229 5230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5231$as_echo_n "checking for fgrep... " >&6; } 5232if ${ac_cv_path_FGREP+:} false; then : 5233 $as_echo_n "(cached) " >&6 5234else 5235 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5236 then ac_cv_path_FGREP="$GREP -F" 5237 else 5238 if test -z "$FGREP"; then 5239 ac_path_FGREP_found=false 5240 # Loop through the user's path and test for each of PROGNAME-LIST 5241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5242for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5243do 5244 IFS=$as_save_IFS 5245 test -z "$as_dir" && as_dir=. 5246 for ac_prog in fgrep; do 5247 for ac_exec_ext in '' $ac_executable_extensions; do 5248 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5249 as_fn_executable_p "$ac_path_FGREP" || continue 5250# Check for GNU ac_path_FGREP and select it if it is found. 5251 # Check for GNU $ac_path_FGREP 5252case `"$ac_path_FGREP" --version 2>&1` in 5253*GNU*) 5254 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5255*) 5256 ac_count=0 5257 $as_echo_n 0123456789 >"conftest.in" 5258 while : 5259 do 5260 cat "conftest.in" "conftest.in" >"conftest.tmp" 5261 mv "conftest.tmp" "conftest.in" 5262 cp "conftest.in" "conftest.nl" 5263 $as_echo 'FGREP' >> "conftest.nl" 5264 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5265 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5266 as_fn_arith $ac_count + 1 && ac_count=$as_val 5267 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5268 # Best one so far, save it but keep looking for a better one 5269 ac_cv_path_FGREP="$ac_path_FGREP" 5270 ac_path_FGREP_max=$ac_count 5271 fi 5272 # 10*(2^10) chars as input seems more than enough 5273 test $ac_count -gt 10 && break 5274 done 5275 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5276esac 5277 5278 $ac_path_FGREP_found && break 3 5279 done 5280 done 5281 done 5282IFS=$as_save_IFS 5283 if test -z "$ac_cv_path_FGREP"; then 5284 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5285 fi 5286else 5287 ac_cv_path_FGREP=$FGREP 5288fi 5289 5290 fi 5291fi 5292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5293$as_echo "$ac_cv_path_FGREP" >&6; } 5294 FGREP="$ac_cv_path_FGREP" 5295 5296 5297test -z "$GREP" && GREP=grep 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317# Check whether --with-gnu-ld was given. 5318if test "${with_gnu_ld+set}" = set; then : 5319 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5320else 5321 with_gnu_ld=no 5322fi 5323 5324ac_prog=ld 5325if test "$GCC" = yes; then 5326 # Check if gcc -print-prog-name=ld gives a path. 5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5328$as_echo_n "checking for ld used by $CC... " >&6; } 5329 case $host in 5330 *-*-mingw*) 5331 # gcc leaves a trailing carriage return which upsets mingw 5332 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5333 *) 5334 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5335 esac 5336 case $ac_prog in 5337 # Accept absolute paths. 5338 [\\/]* | ?:[\\/]*) 5339 re_direlt='/[^/][^/]*/\.\./' 5340 # Canonicalize the pathname of ld 5341 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5342 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5343 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5344 done 5345 test -z "$LD" && LD="$ac_prog" 5346 ;; 5347 "") 5348 # If it fails, then pretend we aren't using GCC. 5349 ac_prog=ld 5350 ;; 5351 *) 5352 # If it is relative, then search for the first ld in PATH. 5353 with_gnu_ld=unknown 5354 ;; 5355 esac 5356elif test "$with_gnu_ld" = yes; then 5357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5358$as_echo_n "checking for GNU ld... " >&6; } 5359else 5360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5361$as_echo_n "checking for non-GNU ld... " >&6; } 5362fi 5363if ${lt_cv_path_LD+:} false; then : 5364 $as_echo_n "(cached) " >&6 5365else 5366 if test -z "$LD"; then 5367 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5368 for ac_dir in $PATH; do 5369 IFS="$lt_save_ifs" 5370 test -z "$ac_dir" && ac_dir=. 5371 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5372 lt_cv_path_LD="$ac_dir/$ac_prog" 5373 # Check to see if the program is GNU ld. I'd rather use --version, 5374 # but apparently some variants of GNU ld only accept -v. 5375 # Break only if it was the GNU/non-GNU ld that we prefer. 5376 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5377 *GNU* | *'with BFD'*) 5378 test "$with_gnu_ld" != no && break 5379 ;; 5380 *) 5381 test "$with_gnu_ld" != yes && break 5382 ;; 5383 esac 5384 fi 5385 done 5386 IFS="$lt_save_ifs" 5387else 5388 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5389fi 5390fi 5391 5392LD="$lt_cv_path_LD" 5393if test -n "$LD"; then 5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5395$as_echo "$LD" >&6; } 5396else 5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5398$as_echo "no" >&6; } 5399fi 5400test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5402$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5403if ${lt_cv_prog_gnu_ld+:} false; then : 5404 $as_echo_n "(cached) " >&6 5405else 5406 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5407case `$LD -v 2>&1 </dev/null` in 5408*GNU* | *'with BFD'*) 5409 lt_cv_prog_gnu_ld=yes 5410 ;; 5411*) 5412 lt_cv_prog_gnu_ld=no 5413 ;; 5414esac 5415fi 5416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5417$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5418with_gnu_ld=$lt_cv_prog_gnu_ld 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5429$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5430if ${lt_cv_path_NM+:} false; then : 5431 $as_echo_n "(cached) " >&6 5432else 5433 if test -n "$NM"; then 5434 # Let the user override the test. 5435 lt_cv_path_NM="$NM" 5436else 5437 lt_nm_to_check="${ac_tool_prefix}nm" 5438 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5439 lt_nm_to_check="$lt_nm_to_check nm" 5440 fi 5441 for lt_tmp_nm in $lt_nm_to_check; do 5442 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5443 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5444 IFS="$lt_save_ifs" 5445 test -z "$ac_dir" && ac_dir=. 5446 tmp_nm="$ac_dir/$lt_tmp_nm" 5447 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5448 # Check to see if the nm accepts a BSD-compat flag. 5449 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5450 # nm: unknown option "B" ignored 5451 # Tru64's nm complains that /dev/null is an invalid object file 5452 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5453 */dev/null* | *'Invalid file or object type'*) 5454 lt_cv_path_NM="$tmp_nm -B" 5455 break 5456 ;; 5457 *) 5458 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5459 */dev/null*) 5460 lt_cv_path_NM="$tmp_nm -p" 5461 break 5462 ;; 5463 *) 5464 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5465 continue # so that we can try to find one that supports BSD flags 5466 ;; 5467 esac 5468 ;; 5469 esac 5470 fi 5471 done 5472 IFS="$lt_save_ifs" 5473 done 5474 : ${lt_cv_path_NM=no} 5475fi 5476fi 5477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5478$as_echo "$lt_cv_path_NM" >&6; } 5479if test "$lt_cv_path_NM" != "no"; then 5480 NM="$lt_cv_path_NM" 5481else 5482 # Didn't find any BSD compatible name lister, look for dumpbin. 5483 if test -n "$DUMPBIN"; then : 5484 # Let the user override the test. 5485 else 5486 if test -n "$ac_tool_prefix"; then 5487 for ac_prog in dumpbin "link -dump" 5488 do 5489 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5490set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5492$as_echo_n "checking for $ac_word... " >&6; } 5493if ${ac_cv_prog_DUMPBIN+:} false; then : 5494 $as_echo_n "(cached) " >&6 5495else 5496 if test -n "$DUMPBIN"; then 5497 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5498else 5499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5500for as_dir in $PATH 5501do 5502 IFS=$as_save_IFS 5503 test -z "$as_dir" && as_dir=. 5504 for ac_exec_ext in '' $ac_executable_extensions; do 5505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5506 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5508 break 2 5509 fi 5510done 5511 done 5512IFS=$as_save_IFS 5513 5514fi 5515fi 5516DUMPBIN=$ac_cv_prog_DUMPBIN 5517if test -n "$DUMPBIN"; then 5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5519$as_echo "$DUMPBIN" >&6; } 5520else 5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5522$as_echo "no" >&6; } 5523fi 5524 5525 5526 test -n "$DUMPBIN" && break 5527 done 5528fi 5529if test -z "$DUMPBIN"; then 5530 ac_ct_DUMPBIN=$DUMPBIN 5531 for ac_prog in dumpbin "link -dump" 5532do 5533 # Extract the first word of "$ac_prog", so it can be a program name with args. 5534set dummy $ac_prog; ac_word=$2 5535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5536$as_echo_n "checking for $ac_word... " >&6; } 5537if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5538 $as_echo_n "(cached) " >&6 5539else 5540 if test -n "$ac_ct_DUMPBIN"; then 5541 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5542else 5543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5544for as_dir in $PATH 5545do 5546 IFS=$as_save_IFS 5547 test -z "$as_dir" && as_dir=. 5548 for ac_exec_ext in '' $ac_executable_extensions; do 5549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5550 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5552 break 2 5553 fi 5554done 5555 done 5556IFS=$as_save_IFS 5557 5558fi 5559fi 5560ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5561if test -n "$ac_ct_DUMPBIN"; then 5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5563$as_echo "$ac_ct_DUMPBIN" >&6; } 5564else 5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5566$as_echo "no" >&6; } 5567fi 5568 5569 5570 test -n "$ac_ct_DUMPBIN" && break 5571done 5572 5573 if test "x$ac_ct_DUMPBIN" = x; then 5574 DUMPBIN=":" 5575 else 5576 case $cross_compiling:$ac_tool_warned in 5577yes:) 5578{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5579$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5580ac_tool_warned=yes ;; 5581esac 5582 DUMPBIN=$ac_ct_DUMPBIN 5583 fi 5584fi 5585 5586 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5587 *COFF*) 5588 DUMPBIN="$DUMPBIN -symbols" 5589 ;; 5590 *) 5591 DUMPBIN=: 5592 ;; 5593 esac 5594 fi 5595 5596 if test "$DUMPBIN" != ":"; then 5597 NM="$DUMPBIN" 5598 fi 5599fi 5600test -z "$NM" && NM=nm 5601 5602 5603 5604 5605 5606 5607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5608$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5609if ${lt_cv_nm_interface+:} false; then : 5610 $as_echo_n "(cached) " >&6 5611else 5612 lt_cv_nm_interface="BSD nm" 5613 echo "int some_variable = 0;" > conftest.$ac_ext 5614 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5615 (eval "$ac_compile" 2>conftest.err) 5616 cat conftest.err >&5 5617 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5618 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5619 cat conftest.err >&5 5620 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5621 cat conftest.out >&5 5622 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5623 lt_cv_nm_interface="MS dumpbin" 5624 fi 5625 rm -f conftest* 5626fi 5627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5628$as_echo "$lt_cv_nm_interface" >&6; } 5629 5630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5631$as_echo_n "checking whether ln -s works... " >&6; } 5632LN_S=$as_ln_s 5633if test "$LN_S" = "ln -s"; then 5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5635$as_echo "yes" >&6; } 5636else 5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5638$as_echo "no, using $LN_S" >&6; } 5639fi 5640 5641# find the maximum length of command line arguments 5642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5643$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5644if ${lt_cv_sys_max_cmd_len+:} false; then : 5645 $as_echo_n "(cached) " >&6 5646else 5647 i=0 5648 teststring="ABCD" 5649 5650 case $build_os in 5651 msdosdjgpp*) 5652 # On DJGPP, this test can blow up pretty badly due to problems in libc 5653 # (any single argument exceeding 2000 bytes causes a buffer overrun 5654 # during glob expansion). Even if it were fixed, the result of this 5655 # check would be larger than it should be. 5656 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5657 ;; 5658 5659 gnu*) 5660 # Under GNU Hurd, this test is not required because there is 5661 # no limit to the length of command line arguments. 5662 # Libtool will interpret -1 as no limit whatsoever 5663 lt_cv_sys_max_cmd_len=-1; 5664 ;; 5665 5666 cygwin* | mingw* | cegcc*) 5667 # On Win9x/ME, this test blows up -- it succeeds, but takes 5668 # about 5 minutes as the teststring grows exponentially. 5669 # Worse, since 9x/ME are not pre-emptively multitasking, 5670 # you end up with a "frozen" computer, even though with patience 5671 # the test eventually succeeds (with a max line length of 256k). 5672 # Instead, let's just punt: use the minimum linelength reported by 5673 # all of the supported platforms: 8192 (on NT/2K/XP). 5674 lt_cv_sys_max_cmd_len=8192; 5675 ;; 5676 5677 mint*) 5678 # On MiNT this can take a long time and run out of memory. 5679 lt_cv_sys_max_cmd_len=8192; 5680 ;; 5681 5682 amigaos*) 5683 # On AmigaOS with pdksh, this test takes hours, literally. 5684 # So we just punt and use a minimum line length of 8192. 5685 lt_cv_sys_max_cmd_len=8192; 5686 ;; 5687 5688 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5689 # This has been around since 386BSD, at least. Likely further. 5690 if test -x /sbin/sysctl; then 5691 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5692 elif test -x /usr/sbin/sysctl; then 5693 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5694 else 5695 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5696 fi 5697 # And add a safety zone 5698 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5699 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5700 ;; 5701 5702 interix*) 5703 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5704 lt_cv_sys_max_cmd_len=196608 5705 ;; 5706 5707 osf*) 5708 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5709 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5710 # nice to cause kernel panics so lets avoid the loop below. 5711 # First set a reasonable default. 5712 lt_cv_sys_max_cmd_len=16384 5713 # 5714 if test -x /sbin/sysconfig; then 5715 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5716 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5717 esac 5718 fi 5719 ;; 5720 sco3.2v5*) 5721 lt_cv_sys_max_cmd_len=102400 5722 ;; 5723 sysv5* | sco5v6* | sysv4.2uw2*) 5724 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5725 if test -n "$kargmax"; then 5726 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5727 else 5728 lt_cv_sys_max_cmd_len=32768 5729 fi 5730 ;; 5731 *) 5732 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5733 if test -n "$lt_cv_sys_max_cmd_len"; then 5734 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5735 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5736 else 5737 # Make teststring a little bigger before we do anything with it. 5738 # a 1K string should be a reasonable start. 5739 for i in 1 2 3 4 5 6 7 8 ; do 5740 teststring=$teststring$teststring 5741 done 5742 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5743 # If test is not a shell built-in, we'll probably end up computing a 5744 # maximum length that is only half of the actual maximum length, but 5745 # we can't tell. 5746 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 5747 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5748 test $i != 17 # 1/2 MB should be enough 5749 do 5750 i=`expr $i + 1` 5751 teststring=$teststring$teststring 5752 done 5753 # Only check the string length outside the loop. 5754 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5755 teststring= 5756 # Add a significant safety factor because C++ compilers can tack on 5757 # massive amounts of additional arguments before passing them to the 5758 # linker. It appears as though 1/2 is a usable value. 5759 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5760 fi 5761 ;; 5762 esac 5763 5764fi 5765 5766if test -n $lt_cv_sys_max_cmd_len ; then 5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5768$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5769else 5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5771$as_echo "none" >&6; } 5772fi 5773max_cmd_len=$lt_cv_sys_max_cmd_len 5774 5775 5776 5777 5778 5779 5780: ${CP="cp -f"} 5781: ${MV="mv -f"} 5782: ${RM="rm -f"} 5783 5784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5785$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5786# Try some XSI features 5787xsi_shell=no 5788( _lt_dummy="a/b/c" 5789 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 5790 = c,a/b,, \ 5791 && eval 'test $(( 1 + 1 )) -eq 2 \ 5792 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5793 && xsi_shell=yes 5794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5795$as_echo "$xsi_shell" >&6; } 5796 5797 5798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5799$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5800lt_shell_append=no 5801( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5802 >/dev/null 2>&1 \ 5803 && lt_shell_append=yes 5804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5805$as_echo "$lt_shell_append" >&6; } 5806 5807 5808if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5809 lt_unset=unset 5810else 5811 lt_unset=false 5812fi 5813 5814 5815 5816 5817 5818# test EBCDIC or ASCII 5819case `echo X|tr X '\101'` in 5820 A) # ASCII based system 5821 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5822 lt_SP2NL='tr \040 \012' 5823 lt_NL2SP='tr \015\012 \040\040' 5824 ;; 5825 *) # EBCDIC based system 5826 lt_SP2NL='tr \100 \n' 5827 lt_NL2SP='tr \r\n \100\100' 5828 ;; 5829esac 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5840$as_echo_n "checking for $LD option to reload object files... " >&6; } 5841if ${lt_cv_ld_reload_flag+:} false; then : 5842 $as_echo_n "(cached) " >&6 5843else 5844 lt_cv_ld_reload_flag='-r' 5845fi 5846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5847$as_echo "$lt_cv_ld_reload_flag" >&6; } 5848reload_flag=$lt_cv_ld_reload_flag 5849case $reload_flag in 5850"" | " "*) ;; 5851*) reload_flag=" $reload_flag" ;; 5852esac 5853reload_cmds='$LD$reload_flag -o $output$reload_objs' 5854case $host_os in 5855 darwin*) 5856 if test "$GCC" = yes; then 5857 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5858 else 5859 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5860 fi 5861 ;; 5862esac 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872if test -n "$ac_tool_prefix"; then 5873 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5874set dummy ${ac_tool_prefix}objdump; ac_word=$2 5875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5876$as_echo_n "checking for $ac_word... " >&6; } 5877if ${ac_cv_prog_OBJDUMP+:} false; then : 5878 $as_echo_n "(cached) " >&6 5879else 5880 if test -n "$OBJDUMP"; then 5881 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5882else 5883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5884for as_dir in $PATH 5885do 5886 IFS=$as_save_IFS 5887 test -z "$as_dir" && as_dir=. 5888 for ac_exec_ext in '' $ac_executable_extensions; do 5889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5890 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5892 break 2 5893 fi 5894done 5895 done 5896IFS=$as_save_IFS 5897 5898fi 5899fi 5900OBJDUMP=$ac_cv_prog_OBJDUMP 5901if test -n "$OBJDUMP"; then 5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5903$as_echo "$OBJDUMP" >&6; } 5904else 5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5906$as_echo "no" >&6; } 5907fi 5908 5909 5910fi 5911if test -z "$ac_cv_prog_OBJDUMP"; then 5912 ac_ct_OBJDUMP=$OBJDUMP 5913 # Extract the first word of "objdump", so it can be a program name with args. 5914set dummy objdump; ac_word=$2 5915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5916$as_echo_n "checking for $ac_word... " >&6; } 5917if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5918 $as_echo_n "(cached) " >&6 5919else 5920 if test -n "$ac_ct_OBJDUMP"; then 5921 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5922else 5923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5924for as_dir in $PATH 5925do 5926 IFS=$as_save_IFS 5927 test -z "$as_dir" && as_dir=. 5928 for ac_exec_ext in '' $ac_executable_extensions; do 5929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5930 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5932 break 2 5933 fi 5934done 5935 done 5936IFS=$as_save_IFS 5937 5938fi 5939fi 5940ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5941if test -n "$ac_ct_OBJDUMP"; then 5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5943$as_echo "$ac_ct_OBJDUMP" >&6; } 5944else 5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5946$as_echo "no" >&6; } 5947fi 5948 5949 if test "x$ac_ct_OBJDUMP" = x; then 5950 OBJDUMP="false" 5951 else 5952 case $cross_compiling:$ac_tool_warned in 5953yes:) 5954{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5955$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5956ac_tool_warned=yes ;; 5957esac 5958 OBJDUMP=$ac_ct_OBJDUMP 5959 fi 5960else 5961 OBJDUMP="$ac_cv_prog_OBJDUMP" 5962fi 5963 5964test -z "$OBJDUMP" && OBJDUMP=objdump 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5975$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5976if ${lt_cv_deplibs_check_method+:} false; then : 5977 $as_echo_n "(cached) " >&6 5978else 5979 lt_cv_file_magic_cmd='$MAGIC_CMD' 5980lt_cv_file_magic_test_file= 5981lt_cv_deplibs_check_method='unknown' 5982# Need to set the preceding variable on all platforms that support 5983# interlibrary dependencies. 5984# 'none' -- dependencies not supported. 5985# `unknown' -- same as none, but documents that we really don't know. 5986# 'pass_all' -- all dependencies passed with no checks. 5987# 'test_compile' -- check by making test program. 5988# 'file_magic [[regex]]' -- check by looking for files in library path 5989# which responds to the $file_magic_cmd with a given extended regex. 5990# If you have `file' or equivalent on your system and you're not sure 5991# whether `pass_all' will *always* work, you probably want this one. 5992 5993case $host_os in 5994aix[4-9]*) 5995 lt_cv_deplibs_check_method=pass_all 5996 ;; 5997 5998beos*) 5999 lt_cv_deplibs_check_method=pass_all 6000 ;; 6001 6002bsdi[45]*) 6003 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6004 lt_cv_file_magic_cmd='/usr/bin/file -L' 6005 lt_cv_file_magic_test_file=/shlib/libc.so 6006 ;; 6007 6008cygwin*) 6009 # func_win32_libid is a shell function defined in ltmain.sh 6010 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6011 lt_cv_file_magic_cmd='func_win32_libid' 6012 ;; 6013 6014mingw* | pw32*) 6015 # Base MSYS/MinGW do not provide the 'file' command needed by 6016 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6017 # unless we find 'file', for example because we are cross-compiling. 6018 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 6019 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 6020 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6021 lt_cv_file_magic_cmd='func_win32_libid' 6022 else 6023 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 6024 lt_cv_file_magic_cmd='$OBJDUMP -f' 6025 fi 6026 ;; 6027 6028cegcc*) 6029 # use the weaker test based on 'objdump'. See mingw*. 6030 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6031 lt_cv_file_magic_cmd='$OBJDUMP -f' 6032 ;; 6033 6034darwin* | rhapsody*) 6035 lt_cv_deplibs_check_method=pass_all 6036 ;; 6037 6038freebsd* | dragonfly*) 6039 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6040 case $host_cpu in 6041 i*86 ) 6042 # Not sure whether the presence of OpenBSD here was a mistake. 6043 # Let's accept both of them until this is cleared up. 6044 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6045 lt_cv_file_magic_cmd=/usr/bin/file 6046 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6047 ;; 6048 esac 6049 else 6050 lt_cv_deplibs_check_method=pass_all 6051 fi 6052 ;; 6053 6054gnu*) 6055 lt_cv_deplibs_check_method=pass_all 6056 ;; 6057 6058haiku*) 6059 lt_cv_deplibs_check_method=pass_all 6060 ;; 6061 6062hpux10.20* | hpux11*) 6063 lt_cv_file_magic_cmd=/usr/bin/file 6064 case $host_cpu in 6065 ia64*) 6066 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6067 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6068 ;; 6069 hppa*64*) 6070 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]' 6071 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6072 ;; 6073 *) 6074 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6075 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6076 ;; 6077 esac 6078 ;; 6079 6080interix[3-9]*) 6081 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6082 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6083 ;; 6084 6085irix5* | irix6* | nonstopux*) 6086 case $LD in 6087 *-32|*"-32 ") libmagic=32-bit;; 6088 *-n32|*"-n32 ") libmagic=N32;; 6089 *-64|*"-64 ") libmagic=64-bit;; 6090 *) libmagic=never-match;; 6091 esac 6092 lt_cv_deplibs_check_method=pass_all 6093 ;; 6094 6095# This must be Linux ELF. 6096linux* | k*bsd*-gnu | kopensolaris*-gnu) 6097 lt_cv_deplibs_check_method=pass_all 6098 ;; 6099 6100netbsd*) 6101 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6102 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6103 else 6104 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6105 fi 6106 ;; 6107 6108newos6*) 6109 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6110 lt_cv_file_magic_cmd=/usr/bin/file 6111 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6112 ;; 6113 6114*nto* | *qnx*) 6115 lt_cv_deplibs_check_method=pass_all 6116 ;; 6117 6118openbsd*) 6119 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6120 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6121 else 6122 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6123 fi 6124 ;; 6125 6126osf3* | osf4* | osf5*) 6127 lt_cv_deplibs_check_method=pass_all 6128 ;; 6129 6130rdos*) 6131 lt_cv_deplibs_check_method=pass_all 6132 ;; 6133 6134solaris*) 6135 lt_cv_deplibs_check_method=pass_all 6136 ;; 6137 6138sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6139 lt_cv_deplibs_check_method=pass_all 6140 ;; 6141 6142sysv4 | sysv4.3*) 6143 case $host_vendor in 6144 motorola) 6145 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]' 6146 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6147 ;; 6148 ncr) 6149 lt_cv_deplibs_check_method=pass_all 6150 ;; 6151 sequent) 6152 lt_cv_file_magic_cmd='/bin/file' 6153 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6154 ;; 6155 sni) 6156 lt_cv_file_magic_cmd='/bin/file' 6157 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6158 lt_cv_file_magic_test_file=/lib/libc.so 6159 ;; 6160 siemens) 6161 lt_cv_deplibs_check_method=pass_all 6162 ;; 6163 pc) 6164 lt_cv_deplibs_check_method=pass_all 6165 ;; 6166 esac 6167 ;; 6168 6169tpf*) 6170 lt_cv_deplibs_check_method=pass_all 6171 ;; 6172esac 6173 6174fi 6175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6176$as_echo "$lt_cv_deplibs_check_method" >&6; } 6177file_magic_cmd=$lt_cv_file_magic_cmd 6178deplibs_check_method=$lt_cv_deplibs_check_method 6179test -z "$deplibs_check_method" && deplibs_check_method=unknown 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192if test -n "$ac_tool_prefix"; then 6193 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6194set dummy ${ac_tool_prefix}ar; ac_word=$2 6195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6196$as_echo_n "checking for $ac_word... " >&6; } 6197if ${ac_cv_prog_AR+:} false; then : 6198 $as_echo_n "(cached) " >&6 6199else 6200 if test -n "$AR"; then 6201 ac_cv_prog_AR="$AR" # Let the user override the test. 6202else 6203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6204for as_dir in $PATH 6205do 6206 IFS=$as_save_IFS 6207 test -z "$as_dir" && as_dir=. 6208 for ac_exec_ext in '' $ac_executable_extensions; do 6209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6210 ac_cv_prog_AR="${ac_tool_prefix}ar" 6211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6212 break 2 6213 fi 6214done 6215 done 6216IFS=$as_save_IFS 6217 6218fi 6219fi 6220AR=$ac_cv_prog_AR 6221if test -n "$AR"; then 6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6223$as_echo "$AR" >&6; } 6224else 6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6226$as_echo "no" >&6; } 6227fi 6228 6229 6230fi 6231if test -z "$ac_cv_prog_AR"; then 6232 ac_ct_AR=$AR 6233 # Extract the first word of "ar", so it can be a program name with args. 6234set dummy ar; ac_word=$2 6235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6236$as_echo_n "checking for $ac_word... " >&6; } 6237if ${ac_cv_prog_ac_ct_AR+:} false; then : 6238 $as_echo_n "(cached) " >&6 6239else 6240 if test -n "$ac_ct_AR"; then 6241 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6242else 6243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6244for as_dir in $PATH 6245do 6246 IFS=$as_save_IFS 6247 test -z "$as_dir" && as_dir=. 6248 for ac_exec_ext in '' $ac_executable_extensions; do 6249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6250 ac_cv_prog_ac_ct_AR="ar" 6251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6252 break 2 6253 fi 6254done 6255 done 6256IFS=$as_save_IFS 6257 6258fi 6259fi 6260ac_ct_AR=$ac_cv_prog_ac_ct_AR 6261if test -n "$ac_ct_AR"; then 6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6263$as_echo "$ac_ct_AR" >&6; } 6264else 6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6266$as_echo "no" >&6; } 6267fi 6268 6269 if test "x$ac_ct_AR" = x; then 6270 AR="false" 6271 else 6272 case $cross_compiling:$ac_tool_warned in 6273yes:) 6274{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6275$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6276ac_tool_warned=yes ;; 6277esac 6278 AR=$ac_ct_AR 6279 fi 6280else 6281 AR="$ac_cv_prog_AR" 6282fi 6283 6284test -z "$AR" && AR=ar 6285test -z "$AR_FLAGS" && AR_FLAGS=cru 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297if test -n "$ac_tool_prefix"; then 6298 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6299set dummy ${ac_tool_prefix}strip; ac_word=$2 6300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6301$as_echo_n "checking for $ac_word... " >&6; } 6302if ${ac_cv_prog_STRIP+:} false; then : 6303 $as_echo_n "(cached) " >&6 6304else 6305 if test -n "$STRIP"; then 6306 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6307else 6308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6309for as_dir in $PATH 6310do 6311 IFS=$as_save_IFS 6312 test -z "$as_dir" && as_dir=. 6313 for ac_exec_ext in '' $ac_executable_extensions; do 6314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6315 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6317 break 2 6318 fi 6319done 6320 done 6321IFS=$as_save_IFS 6322 6323fi 6324fi 6325STRIP=$ac_cv_prog_STRIP 6326if test -n "$STRIP"; then 6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6328$as_echo "$STRIP" >&6; } 6329else 6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6331$as_echo "no" >&6; } 6332fi 6333 6334 6335fi 6336if test -z "$ac_cv_prog_STRIP"; then 6337 ac_ct_STRIP=$STRIP 6338 # Extract the first word of "strip", so it can be a program name with args. 6339set dummy strip; ac_word=$2 6340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6341$as_echo_n "checking for $ac_word... " >&6; } 6342if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6343 $as_echo_n "(cached) " >&6 6344else 6345 if test -n "$ac_ct_STRIP"; then 6346 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6347else 6348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6349for as_dir in $PATH 6350do 6351 IFS=$as_save_IFS 6352 test -z "$as_dir" && as_dir=. 6353 for ac_exec_ext in '' $ac_executable_extensions; do 6354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6355 ac_cv_prog_ac_ct_STRIP="strip" 6356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6357 break 2 6358 fi 6359done 6360 done 6361IFS=$as_save_IFS 6362 6363fi 6364fi 6365ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6366if test -n "$ac_ct_STRIP"; then 6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6368$as_echo "$ac_ct_STRIP" >&6; } 6369else 6370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6371$as_echo "no" >&6; } 6372fi 6373 6374 if test "x$ac_ct_STRIP" = x; then 6375 STRIP=":" 6376 else 6377 case $cross_compiling:$ac_tool_warned in 6378yes:) 6379{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6380$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6381ac_tool_warned=yes ;; 6382esac 6383 STRIP=$ac_ct_STRIP 6384 fi 6385else 6386 STRIP="$ac_cv_prog_STRIP" 6387fi 6388 6389test -z "$STRIP" && STRIP=: 6390 6391 6392 6393 6394 6395 6396if test -n "$ac_tool_prefix"; then 6397 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6398set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6400$as_echo_n "checking for $ac_word... " >&6; } 6401if ${ac_cv_prog_RANLIB+:} false; then : 6402 $as_echo_n "(cached) " >&6 6403else 6404 if test -n "$RANLIB"; then 6405 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6406else 6407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6408for as_dir in $PATH 6409do 6410 IFS=$as_save_IFS 6411 test -z "$as_dir" && as_dir=. 6412 for ac_exec_ext in '' $ac_executable_extensions; do 6413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6414 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6416 break 2 6417 fi 6418done 6419 done 6420IFS=$as_save_IFS 6421 6422fi 6423fi 6424RANLIB=$ac_cv_prog_RANLIB 6425if test -n "$RANLIB"; then 6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6427$as_echo "$RANLIB" >&6; } 6428else 6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6430$as_echo "no" >&6; } 6431fi 6432 6433 6434fi 6435if test -z "$ac_cv_prog_RANLIB"; then 6436 ac_ct_RANLIB=$RANLIB 6437 # Extract the first word of "ranlib", so it can be a program name with args. 6438set dummy ranlib; ac_word=$2 6439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6440$as_echo_n "checking for $ac_word... " >&6; } 6441if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6442 $as_echo_n "(cached) " >&6 6443else 6444 if test -n "$ac_ct_RANLIB"; then 6445 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6446else 6447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6448for as_dir in $PATH 6449do 6450 IFS=$as_save_IFS 6451 test -z "$as_dir" && as_dir=. 6452 for ac_exec_ext in '' $ac_executable_extensions; do 6453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6454 ac_cv_prog_ac_ct_RANLIB="ranlib" 6455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6456 break 2 6457 fi 6458done 6459 done 6460IFS=$as_save_IFS 6461 6462fi 6463fi 6464ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6465if test -n "$ac_ct_RANLIB"; then 6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6467$as_echo "$ac_ct_RANLIB" >&6; } 6468else 6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6470$as_echo "no" >&6; } 6471fi 6472 6473 if test "x$ac_ct_RANLIB" = x; then 6474 RANLIB=":" 6475 else 6476 case $cross_compiling:$ac_tool_warned in 6477yes:) 6478{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6479$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6480ac_tool_warned=yes ;; 6481esac 6482 RANLIB=$ac_ct_RANLIB 6483 fi 6484else 6485 RANLIB="$ac_cv_prog_RANLIB" 6486fi 6487 6488test -z "$RANLIB" && RANLIB=: 6489 6490 6491 6492 6493 6494 6495# Determine commands to create old-style static archives. 6496old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6497old_postinstall_cmds='chmod 644 $oldlib' 6498old_postuninstall_cmds= 6499 6500if test -n "$RANLIB"; then 6501 case $host_os in 6502 openbsd*) 6503 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6504 ;; 6505 *) 6506 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6507 ;; 6508 esac 6509 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6510fi 6511 6512case $host_os in 6513 darwin*) 6514 lock_old_archive_extraction=yes ;; 6515 *) 6516 lock_old_archive_extraction=no ;; 6517esac 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557# If no C compiler was specified, use CC. 6558LTCC=${LTCC-"$CC"} 6559 6560# If no C compiler flags were specified, use CFLAGS. 6561LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6562 6563# Allow CC to be a program name with arguments. 6564compiler=$CC 6565 6566 6567# Check for command to grab the raw symbol name followed by C symbol from nm. 6568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6569$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6570if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6571 $as_echo_n "(cached) " >&6 6572else 6573 6574# These are sane defaults that work on at least a few old systems. 6575# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6576 6577# Character class describing NM global symbol codes. 6578symcode='[BCDEGRST]' 6579 6580# Regexp to match symbols that can be accessed directly from C. 6581sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6582 6583# Define system-specific variables. 6584case $host_os in 6585aix*) 6586 symcode='[BCDT]' 6587 ;; 6588cygwin* | mingw* | pw32* | cegcc*) 6589 symcode='[ABCDGISTW]' 6590 ;; 6591hpux*) 6592 if test "$host_cpu" = ia64; then 6593 symcode='[ABCDEGRST]' 6594 fi 6595 ;; 6596irix* | nonstopux*) 6597 symcode='[BCDEGRST]' 6598 ;; 6599osf*) 6600 symcode='[BCDEGQRST]' 6601 ;; 6602solaris*) 6603 symcode='[BDRT]' 6604 ;; 6605sco3.2v5*) 6606 symcode='[DT]' 6607 ;; 6608sysv4.2uw2*) 6609 symcode='[DT]' 6610 ;; 6611sysv5* | sco5v6* | unixware* | OpenUNIX*) 6612 symcode='[ABDT]' 6613 ;; 6614sysv4) 6615 symcode='[DFNSTU]' 6616 ;; 6617esac 6618 6619# If we're using GNU nm, then use its standard symbol codes. 6620case `$NM -V 2>&1` in 6621*GNU* | *'with BFD'*) 6622 symcode='[ABCDGIRSTW]' ;; 6623esac 6624 6625# Transform an extracted symbol line into a proper C declaration. 6626# Some systems (esp. on ia64) link data and code symbols differently, 6627# so use this general approach. 6628lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6629 6630# Transform an extracted symbol line into symbol name and symbol address 6631lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6632lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 6633 6634# Handle CRLF in mingw tool chain 6635opt_cr= 6636case $build_os in 6637mingw*) 6638 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6639 ;; 6640esac 6641 6642# Try without a prefix underscore, then with it. 6643for ac_symprfx in "" "_"; do 6644 6645 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6646 symxfrm="\\1 $ac_symprfx\\2 \\2" 6647 6648 # Write the raw and C identifiers. 6649 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6650 # Fake it for dumpbin and say T for any non-static function 6651 # and D for any global variable. 6652 # Also find C++ and __fastcall symbols from MSVC++, 6653 # which start with @ or ?. 6654 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6655" {last_section=section; section=\$ 3};"\ 6656" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6657" \$ 0!~/External *\|/{next};"\ 6658" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6659" {if(hide[section]) next};"\ 6660" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6661" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6662" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6663" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6664" ' prfx=^$ac_symprfx" 6665 else 6666 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6667 fi 6668 6669 # Check to see that the pipe works correctly. 6670 pipe_works=no 6671 6672 rm -f conftest* 6673 cat > conftest.$ac_ext <<_LT_EOF 6674#ifdef __cplusplus 6675extern "C" { 6676#endif 6677char nm_test_var; 6678void nm_test_func(void); 6679void nm_test_func(void){} 6680#ifdef __cplusplus 6681} 6682#endif 6683int main(){nm_test_var='a';nm_test_func();return(0);} 6684_LT_EOF 6685 6686 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6687 (eval $ac_compile) 2>&5 6688 ac_status=$? 6689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6690 test $ac_status = 0; }; then 6691 # Now try to grab the symbols. 6692 nlist=conftest.nm 6693 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6694 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6695 ac_status=$? 6696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6697 test $ac_status = 0; } && test -s "$nlist"; then 6698 # Try sorting and uniquifying the output. 6699 if sort "$nlist" | uniq > "$nlist"T; then 6700 mv -f "$nlist"T "$nlist" 6701 else 6702 rm -f "$nlist"T 6703 fi 6704 6705 # Make sure that we snagged all the symbols we need. 6706 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6707 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6708 cat <<_LT_EOF > conftest.$ac_ext 6709#ifdef __cplusplus 6710extern "C" { 6711#endif 6712 6713_LT_EOF 6714 # Now generate the symbol file. 6715 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6716 6717 cat <<_LT_EOF >> conftest.$ac_ext 6718 6719/* The mapping between symbol names and symbols. */ 6720const struct { 6721 const char *name; 6722 void *address; 6723} 6724lt__PROGRAM__LTX_preloaded_symbols[] = 6725{ 6726 { "@PROGRAM@", (void *) 0 }, 6727_LT_EOF 6728 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6729 cat <<\_LT_EOF >> conftest.$ac_ext 6730 {0, (void *) 0} 6731}; 6732 6733/* This works around a problem in FreeBSD linker */ 6734#ifdef FREEBSD_WORKAROUND 6735static const void *lt_preloaded_setup() { 6736 return lt__PROGRAM__LTX_preloaded_symbols; 6737} 6738#endif 6739 6740#ifdef __cplusplus 6741} 6742#endif 6743_LT_EOF 6744 # Now try linking the two files. 6745 mv conftest.$ac_objext conftstm.$ac_objext 6746 lt_save_LIBS="$LIBS" 6747 lt_save_CFLAGS="$CFLAGS" 6748 LIBS="conftstm.$ac_objext" 6749 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6750 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6751 (eval $ac_link) 2>&5 6752 ac_status=$? 6753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6754 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6755 pipe_works=yes 6756 fi 6757 LIBS="$lt_save_LIBS" 6758 CFLAGS="$lt_save_CFLAGS" 6759 else 6760 echo "cannot find nm_test_func in $nlist" >&5 6761 fi 6762 else 6763 echo "cannot find nm_test_var in $nlist" >&5 6764 fi 6765 else 6766 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6767 fi 6768 else 6769 echo "$progname: failed program was:" >&5 6770 cat conftest.$ac_ext >&5 6771 fi 6772 rm -rf conftest* conftst* 6773 6774 # Do not use the global_symbol_pipe unless it works. 6775 if test "$pipe_works" = yes; then 6776 break 6777 else 6778 lt_cv_sys_global_symbol_pipe= 6779 fi 6780done 6781 6782fi 6783 6784if test -z "$lt_cv_sys_global_symbol_pipe"; then 6785 lt_cv_sys_global_symbol_to_cdecl= 6786fi 6787if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6789$as_echo "failed" >&6; } 6790else 6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6792$as_echo "ok" >&6; } 6793fi 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817# Check whether --enable-libtool-lock was given. 6818if test "${enable_libtool_lock+set}" = set; then : 6819 enableval=$enable_libtool_lock; 6820fi 6821 6822test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6823 6824# Some flags need to be propagated to the compiler or linker for good 6825# libtool support. 6826case $host in 6827ia64-*-hpux*) 6828 # Find out which ABI we are using. 6829 echo 'int i;' > conftest.$ac_ext 6830 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6831 (eval $ac_compile) 2>&5 6832 ac_status=$? 6833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6834 test $ac_status = 0; }; then 6835 case `/usr/bin/file conftest.$ac_objext` in 6836 *ELF-32*) 6837 HPUX_IA64_MODE="32" 6838 ;; 6839 *ELF-64*) 6840 HPUX_IA64_MODE="64" 6841 ;; 6842 esac 6843 fi 6844 rm -rf conftest* 6845 ;; 6846*-*-irix6*) 6847 # Find out which ABI we are using. 6848 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6849 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6850 (eval $ac_compile) 2>&5 6851 ac_status=$? 6852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6853 test $ac_status = 0; }; then 6854 if test "$lt_cv_prog_gnu_ld" = yes; then 6855 case `/usr/bin/file conftest.$ac_objext` in 6856 *32-bit*) 6857 LD="${LD-ld} -melf32bsmip" 6858 ;; 6859 *N32*) 6860 LD="${LD-ld} -melf32bmipn32" 6861 ;; 6862 *64-bit*) 6863 LD="${LD-ld} -melf64bmip" 6864 ;; 6865 esac 6866 else 6867 case `/usr/bin/file conftest.$ac_objext` in 6868 *32-bit*) 6869 LD="${LD-ld} -32" 6870 ;; 6871 *N32*) 6872 LD="${LD-ld} -n32" 6873 ;; 6874 *64-bit*) 6875 LD="${LD-ld} -64" 6876 ;; 6877 esac 6878 fi 6879 fi 6880 rm -rf conftest* 6881 ;; 6882 6883x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6884s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6885 # Find out which ABI we are using. 6886 echo 'int i;' > conftest.$ac_ext 6887 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6888 (eval $ac_compile) 2>&5 6889 ac_status=$? 6890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6891 test $ac_status = 0; }; then 6892 case `/usr/bin/file conftest.o` in 6893 *32-bit*) 6894 case $host in 6895 x86_64-*kfreebsd*-gnu) 6896 LD="${LD-ld} -m elf_i386_fbsd" 6897 ;; 6898 x86_64-*linux*) 6899 case `/usr/bin/file conftest.o` in 6900 *x86-64*) 6901 LD="${LD-ld} -m elf32_x86_64" 6902 ;; 6903 *) 6904 LD="${LD-ld} -m elf_i386" 6905 ;; 6906 esac 6907 ;; 6908 powerpc64le-*linux*) 6909 LD="${LD-ld} -m elf32lppclinux" 6910 ;; 6911 powerpc64-*linux*) 6912 LD="${LD-ld} -m elf32ppclinux" 6913 ;; 6914 s390x-*linux*) 6915 LD="${LD-ld} -m elf_s390" 6916 ;; 6917 sparc64-*linux*) 6918 LD="${LD-ld} -m elf32_sparc" 6919 ;; 6920 esac 6921 ;; 6922 *64-bit*) 6923 case $host in 6924 x86_64-*kfreebsd*-gnu) 6925 LD="${LD-ld} -m elf_x86_64_fbsd" 6926 ;; 6927 x86_64-*linux*) 6928 LD="${LD-ld} -m elf_x86_64" 6929 ;; 6930 powerpcle-*linux*) 6931 LD="${LD-ld} -m elf64lppc" 6932 ;; 6933 powerpc-*linux*) 6934 LD="${LD-ld} -m elf64ppc" 6935 ;; 6936 s390*-*linux*|s390*-*tpf*) 6937 LD="${LD-ld} -m elf64_s390" 6938 ;; 6939 sparc*-*linux*) 6940 LD="${LD-ld} -m elf64_sparc" 6941 ;; 6942 esac 6943 ;; 6944 esac 6945 fi 6946 rm -rf conftest* 6947 ;; 6948 6949*-*-sco3.2v5*) 6950 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6951 SAVE_CFLAGS="$CFLAGS" 6952 CFLAGS="$CFLAGS -belf" 6953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6954$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6955if ${lt_cv_cc_needs_belf+:} false; then : 6956 $as_echo_n "(cached) " >&6 6957else 6958 ac_ext=c 6959ac_cpp='$CPP $CPPFLAGS' 6960ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6961ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6962ac_compiler_gnu=$ac_cv_c_compiler_gnu 6963 6964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6965/* end confdefs.h. */ 6966 6967int 6968main () 6969{ 6970 6971 ; 6972 return 0; 6973} 6974_ACEOF 6975if ac_fn_c_try_link "$LINENO"; then : 6976 lt_cv_cc_needs_belf=yes 6977else 6978 lt_cv_cc_needs_belf=no 6979fi 6980rm -f core conftest.err conftest.$ac_objext \ 6981 conftest$ac_exeext conftest.$ac_ext 6982 ac_ext=c 6983ac_cpp='$CPP $CPPFLAGS' 6984ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6985ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6986ac_compiler_gnu=$ac_cv_c_compiler_gnu 6987 6988fi 6989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6990$as_echo "$lt_cv_cc_needs_belf" >&6; } 6991 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6992 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6993 CFLAGS="$SAVE_CFLAGS" 6994 fi 6995 ;; 6996sparc*-*solaris*) 6997 # Find out which ABI we are using. 6998 echo 'int i;' > conftest.$ac_ext 6999 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7000 (eval $ac_compile) 2>&5 7001 ac_status=$? 7002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7003 test $ac_status = 0; }; then 7004 case `/usr/bin/file conftest.o` in 7005 *64-bit*) 7006 case $lt_cv_prog_gnu_ld in 7007 yes*) LD="${LD-ld} -m elf64_sparc" ;; 7008 *) 7009 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7010 LD="${LD-ld} -64" 7011 fi 7012 ;; 7013 esac 7014 ;; 7015 esac 7016 fi 7017 rm -rf conftest* 7018 ;; 7019esac 7020 7021need_locks="$enable_libtool_lock" 7022 7023 7024 case $host_os in 7025 rhapsody* | darwin*) 7026 if test -n "$ac_tool_prefix"; then 7027 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7028set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7030$as_echo_n "checking for $ac_word... " >&6; } 7031if ${ac_cv_prog_DSYMUTIL+:} false; then : 7032 $as_echo_n "(cached) " >&6 7033else 7034 if test -n "$DSYMUTIL"; then 7035 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7036else 7037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7038for as_dir in $PATH 7039do 7040 IFS=$as_save_IFS 7041 test -z "$as_dir" && as_dir=. 7042 for ac_exec_ext in '' $ac_executable_extensions; do 7043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7044 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7046 break 2 7047 fi 7048done 7049 done 7050IFS=$as_save_IFS 7051 7052fi 7053fi 7054DSYMUTIL=$ac_cv_prog_DSYMUTIL 7055if test -n "$DSYMUTIL"; then 7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7057$as_echo "$DSYMUTIL" >&6; } 7058else 7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7060$as_echo "no" >&6; } 7061fi 7062 7063 7064fi 7065if test -z "$ac_cv_prog_DSYMUTIL"; then 7066 ac_ct_DSYMUTIL=$DSYMUTIL 7067 # Extract the first word of "dsymutil", so it can be a program name with args. 7068set dummy dsymutil; ac_word=$2 7069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7070$as_echo_n "checking for $ac_word... " >&6; } 7071if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7072 $as_echo_n "(cached) " >&6 7073else 7074 if test -n "$ac_ct_DSYMUTIL"; then 7075 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7076else 7077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7078for as_dir in $PATH 7079do 7080 IFS=$as_save_IFS 7081 test -z "$as_dir" && as_dir=. 7082 for ac_exec_ext in '' $ac_executable_extensions; do 7083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7084 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7086 break 2 7087 fi 7088done 7089 done 7090IFS=$as_save_IFS 7091 7092fi 7093fi 7094ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7095if test -n "$ac_ct_DSYMUTIL"; then 7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7097$as_echo "$ac_ct_DSYMUTIL" >&6; } 7098else 7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7100$as_echo "no" >&6; } 7101fi 7102 7103 if test "x$ac_ct_DSYMUTIL" = x; then 7104 DSYMUTIL=":" 7105 else 7106 case $cross_compiling:$ac_tool_warned in 7107yes:) 7108{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7109$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7110ac_tool_warned=yes ;; 7111esac 7112 DSYMUTIL=$ac_ct_DSYMUTIL 7113 fi 7114else 7115 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7116fi 7117 7118 if test -n "$ac_tool_prefix"; then 7119 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7120set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7122$as_echo_n "checking for $ac_word... " >&6; } 7123if ${ac_cv_prog_NMEDIT+:} false; then : 7124 $as_echo_n "(cached) " >&6 7125else 7126 if test -n "$NMEDIT"; then 7127 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7128else 7129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7130for as_dir in $PATH 7131do 7132 IFS=$as_save_IFS 7133 test -z "$as_dir" && as_dir=. 7134 for ac_exec_ext in '' $ac_executable_extensions; do 7135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7136 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7138 break 2 7139 fi 7140done 7141 done 7142IFS=$as_save_IFS 7143 7144fi 7145fi 7146NMEDIT=$ac_cv_prog_NMEDIT 7147if test -n "$NMEDIT"; then 7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7149$as_echo "$NMEDIT" >&6; } 7150else 7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7152$as_echo "no" >&6; } 7153fi 7154 7155 7156fi 7157if test -z "$ac_cv_prog_NMEDIT"; then 7158 ac_ct_NMEDIT=$NMEDIT 7159 # Extract the first word of "nmedit", so it can be a program name with args. 7160set dummy nmedit; ac_word=$2 7161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7162$as_echo_n "checking for $ac_word... " >&6; } 7163if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7164 $as_echo_n "(cached) " >&6 7165else 7166 if test -n "$ac_ct_NMEDIT"; then 7167 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7168else 7169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7170for as_dir in $PATH 7171do 7172 IFS=$as_save_IFS 7173 test -z "$as_dir" && as_dir=. 7174 for ac_exec_ext in '' $ac_executable_extensions; do 7175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7176 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7178 break 2 7179 fi 7180done 7181 done 7182IFS=$as_save_IFS 7183 7184fi 7185fi 7186ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7187if test -n "$ac_ct_NMEDIT"; then 7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7189$as_echo "$ac_ct_NMEDIT" >&6; } 7190else 7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7192$as_echo "no" >&6; } 7193fi 7194 7195 if test "x$ac_ct_NMEDIT" = x; then 7196 NMEDIT=":" 7197 else 7198 case $cross_compiling:$ac_tool_warned in 7199yes:) 7200{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7201$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7202ac_tool_warned=yes ;; 7203esac 7204 NMEDIT=$ac_ct_NMEDIT 7205 fi 7206else 7207 NMEDIT="$ac_cv_prog_NMEDIT" 7208fi 7209 7210 if test -n "$ac_tool_prefix"; then 7211 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7212set dummy ${ac_tool_prefix}lipo; ac_word=$2 7213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7214$as_echo_n "checking for $ac_word... " >&6; } 7215if ${ac_cv_prog_LIPO+:} false; then : 7216 $as_echo_n "(cached) " >&6 7217else 7218 if test -n "$LIPO"; then 7219 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7220else 7221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7222for as_dir in $PATH 7223do 7224 IFS=$as_save_IFS 7225 test -z "$as_dir" && as_dir=. 7226 for ac_exec_ext in '' $ac_executable_extensions; do 7227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7228 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7230 break 2 7231 fi 7232done 7233 done 7234IFS=$as_save_IFS 7235 7236fi 7237fi 7238LIPO=$ac_cv_prog_LIPO 7239if test -n "$LIPO"; then 7240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7241$as_echo "$LIPO" >&6; } 7242else 7243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7244$as_echo "no" >&6; } 7245fi 7246 7247 7248fi 7249if test -z "$ac_cv_prog_LIPO"; then 7250 ac_ct_LIPO=$LIPO 7251 # Extract the first word of "lipo", so it can be a program name with args. 7252set dummy lipo; ac_word=$2 7253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7254$as_echo_n "checking for $ac_word... " >&6; } 7255if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7256 $as_echo_n "(cached) " >&6 7257else 7258 if test -n "$ac_ct_LIPO"; then 7259 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7260else 7261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7262for as_dir in $PATH 7263do 7264 IFS=$as_save_IFS 7265 test -z "$as_dir" && as_dir=. 7266 for ac_exec_ext in '' $ac_executable_extensions; do 7267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7268 ac_cv_prog_ac_ct_LIPO="lipo" 7269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7270 break 2 7271 fi 7272done 7273 done 7274IFS=$as_save_IFS 7275 7276fi 7277fi 7278ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7279if test -n "$ac_ct_LIPO"; then 7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7281$as_echo "$ac_ct_LIPO" >&6; } 7282else 7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7284$as_echo "no" >&6; } 7285fi 7286 7287 if test "x$ac_ct_LIPO" = x; then 7288 LIPO=":" 7289 else 7290 case $cross_compiling:$ac_tool_warned in 7291yes:) 7292{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7293$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7294ac_tool_warned=yes ;; 7295esac 7296 LIPO=$ac_ct_LIPO 7297 fi 7298else 7299 LIPO="$ac_cv_prog_LIPO" 7300fi 7301 7302 if test -n "$ac_tool_prefix"; then 7303 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7304set dummy ${ac_tool_prefix}otool; ac_word=$2 7305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7306$as_echo_n "checking for $ac_word... " >&6; } 7307if ${ac_cv_prog_OTOOL+:} false; then : 7308 $as_echo_n "(cached) " >&6 7309else 7310 if test -n "$OTOOL"; then 7311 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7312else 7313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7314for as_dir in $PATH 7315do 7316 IFS=$as_save_IFS 7317 test -z "$as_dir" && as_dir=. 7318 for ac_exec_ext in '' $ac_executable_extensions; do 7319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7320 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7322 break 2 7323 fi 7324done 7325 done 7326IFS=$as_save_IFS 7327 7328fi 7329fi 7330OTOOL=$ac_cv_prog_OTOOL 7331if test -n "$OTOOL"; then 7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7333$as_echo "$OTOOL" >&6; } 7334else 7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7336$as_echo "no" >&6; } 7337fi 7338 7339 7340fi 7341if test -z "$ac_cv_prog_OTOOL"; then 7342 ac_ct_OTOOL=$OTOOL 7343 # Extract the first word of "otool", so it can be a program name with args. 7344set dummy otool; ac_word=$2 7345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7346$as_echo_n "checking for $ac_word... " >&6; } 7347if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7348 $as_echo_n "(cached) " >&6 7349else 7350 if test -n "$ac_ct_OTOOL"; then 7351 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7352else 7353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7354for as_dir in $PATH 7355do 7356 IFS=$as_save_IFS 7357 test -z "$as_dir" && as_dir=. 7358 for ac_exec_ext in '' $ac_executable_extensions; do 7359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7360 ac_cv_prog_ac_ct_OTOOL="otool" 7361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7362 break 2 7363 fi 7364done 7365 done 7366IFS=$as_save_IFS 7367 7368fi 7369fi 7370ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7371if test -n "$ac_ct_OTOOL"; then 7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7373$as_echo "$ac_ct_OTOOL" >&6; } 7374else 7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7376$as_echo "no" >&6; } 7377fi 7378 7379 if test "x$ac_ct_OTOOL" = x; then 7380 OTOOL=":" 7381 else 7382 case $cross_compiling:$ac_tool_warned in 7383yes:) 7384{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7385$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7386ac_tool_warned=yes ;; 7387esac 7388 OTOOL=$ac_ct_OTOOL 7389 fi 7390else 7391 OTOOL="$ac_cv_prog_OTOOL" 7392fi 7393 7394 if test -n "$ac_tool_prefix"; then 7395 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7396set dummy ${ac_tool_prefix}otool64; ac_word=$2 7397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7398$as_echo_n "checking for $ac_word... " >&6; } 7399if ${ac_cv_prog_OTOOL64+:} false; then : 7400 $as_echo_n "(cached) " >&6 7401else 7402 if test -n "$OTOOL64"; then 7403 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7404else 7405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7406for as_dir in $PATH 7407do 7408 IFS=$as_save_IFS 7409 test -z "$as_dir" && as_dir=. 7410 for ac_exec_ext in '' $ac_executable_extensions; do 7411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7412 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7414 break 2 7415 fi 7416done 7417 done 7418IFS=$as_save_IFS 7419 7420fi 7421fi 7422OTOOL64=$ac_cv_prog_OTOOL64 7423if test -n "$OTOOL64"; then 7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7425$as_echo "$OTOOL64" >&6; } 7426else 7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7428$as_echo "no" >&6; } 7429fi 7430 7431 7432fi 7433if test -z "$ac_cv_prog_OTOOL64"; then 7434 ac_ct_OTOOL64=$OTOOL64 7435 # Extract the first word of "otool64", so it can be a program name with args. 7436set dummy otool64; ac_word=$2 7437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7438$as_echo_n "checking for $ac_word... " >&6; } 7439if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7440 $as_echo_n "(cached) " >&6 7441else 7442 if test -n "$ac_ct_OTOOL64"; then 7443 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7444else 7445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7446for as_dir in $PATH 7447do 7448 IFS=$as_save_IFS 7449 test -z "$as_dir" && as_dir=. 7450 for ac_exec_ext in '' $ac_executable_extensions; do 7451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7452 ac_cv_prog_ac_ct_OTOOL64="otool64" 7453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7454 break 2 7455 fi 7456done 7457 done 7458IFS=$as_save_IFS 7459 7460fi 7461fi 7462ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7463if test -n "$ac_ct_OTOOL64"; then 7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7465$as_echo "$ac_ct_OTOOL64" >&6; } 7466else 7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7468$as_echo "no" >&6; } 7469fi 7470 7471 if test "x$ac_ct_OTOOL64" = x; then 7472 OTOOL64=":" 7473 else 7474 case $cross_compiling:$ac_tool_warned in 7475yes:) 7476{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7477$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7478ac_tool_warned=yes ;; 7479esac 7480 OTOOL64=$ac_ct_OTOOL64 7481 fi 7482else 7483 OTOOL64="$ac_cv_prog_OTOOL64" 7484fi 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7513$as_echo_n "checking for -single_module linker flag... " >&6; } 7514if ${lt_cv_apple_cc_single_mod+:} false; then : 7515 $as_echo_n "(cached) " >&6 7516else 7517 lt_cv_apple_cc_single_mod=no 7518 if test -z "${LT_MULTI_MODULE}"; then 7519 # By default we will add the -single_module flag. You can override 7520 # by either setting the environment variable LT_MULTI_MODULE 7521 # non-empty at configure time, or by adding -multi_module to the 7522 # link flags. 7523 rm -rf libconftest.dylib* 7524 echo "int foo(void){return 1;}" > conftest.c 7525 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7526-dynamiclib -Wl,-single_module conftest.c" >&5 7527 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7528 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7529 _lt_result=$? 7530 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 7531 lt_cv_apple_cc_single_mod=yes 7532 else 7533 cat conftest.err >&5 7534 fi 7535 rm -rf libconftest.dylib* 7536 rm -f conftest.* 7537 fi 7538fi 7539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7540$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7542$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7543if ${lt_cv_ld_exported_symbols_list+:} false; then : 7544 $as_echo_n "(cached) " >&6 7545else 7546 lt_cv_ld_exported_symbols_list=no 7547 save_LDFLAGS=$LDFLAGS 7548 echo "_main" > conftest.sym 7549 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7551/* end confdefs.h. */ 7552 7553int 7554main () 7555{ 7556 7557 ; 7558 return 0; 7559} 7560_ACEOF 7561if ac_fn_c_try_link "$LINENO"; then : 7562 lt_cv_ld_exported_symbols_list=yes 7563else 7564 lt_cv_ld_exported_symbols_list=no 7565fi 7566rm -f core conftest.err conftest.$ac_objext \ 7567 conftest$ac_exeext conftest.$ac_ext 7568 LDFLAGS="$save_LDFLAGS" 7569 7570fi 7571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7572$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7574$as_echo_n "checking for -force_load linker flag... " >&6; } 7575if ${lt_cv_ld_force_load+:} false; then : 7576 $as_echo_n "(cached) " >&6 7577else 7578 lt_cv_ld_force_load=no 7579 cat > conftest.c << _LT_EOF 7580int forced_loaded() { return 2;} 7581_LT_EOF 7582 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7583 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7584 echo "$AR cru libconftest.a conftest.o" >&5 7585 $AR cru libconftest.a conftest.o 2>&5 7586 cat > conftest.c << _LT_EOF 7587int main() { return 0;} 7588_LT_EOF 7589 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7590 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7591 _lt_result=$? 7592 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 7593 lt_cv_ld_force_load=yes 7594 else 7595 cat conftest.err >&5 7596 fi 7597 rm -f conftest.err libconftest.a conftest conftest.c 7598 rm -rf conftest.dSYM 7599 7600fi 7601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7602$as_echo "$lt_cv_ld_force_load" >&6; } 7603 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to 7604 # build without first building modern cctools / linker. 7605 case $host_cpu-$host_os in 7606 *-rhapsody* | *-darwin1.[012]) 7607 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7608 *-darwin1.*) 7609 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7610 *-darwin*) 7611 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the 7612 # deployment target is forced to an earlier version. 7613 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in 7614 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*) 7615 ;; 7616 10.[012][,.]*) 7617 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 7618 ;; 7619 *) 7620 ;; 7621 esac 7622 ;; 7623 esac 7624 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7625 _lt_dar_single_mod='$single_module' 7626 fi 7627 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7628 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7629 else 7630 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7631 fi 7632 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7633 _lt_dsymutil='~$DSYMUTIL $lib || :' 7634 else 7635 _lt_dsymutil= 7636 fi 7637 ;; 7638 esac 7639 7640ac_ext=c 7641ac_cpp='$CPP $CPPFLAGS' 7642ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7643ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7644ac_compiler_gnu=$ac_cv_c_compiler_gnu 7645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7646$as_echo_n "checking how to run the C preprocessor... " >&6; } 7647# On Suns, sometimes $CPP names a directory. 7648if test -n "$CPP" && test -d "$CPP"; then 7649 CPP= 7650fi 7651if test -z "$CPP"; then 7652 if ${ac_cv_prog_CPP+:} false; then : 7653 $as_echo_n "(cached) " >&6 7654else 7655 # Double quotes because CPP needs to be expanded 7656 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7657 do 7658 ac_preproc_ok=false 7659for ac_c_preproc_warn_flag in '' yes 7660do 7661 # Use a header file that comes with gcc, so configuring glibc 7662 # with a fresh cross-compiler works. 7663 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7664 # <limits.h> exists even on freestanding compilers. 7665 # On the NeXT, cc -E runs the code through the compiler's parser, 7666 # not just through cpp. "Syntax error" is here to catch this case. 7667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7668/* end confdefs.h. */ 7669#ifdef __STDC__ 7670# include <limits.h> 7671#else 7672# include <assert.h> 7673#endif 7674 Syntax error 7675_ACEOF 7676if ac_fn_c_try_cpp "$LINENO"; then : 7677 7678else 7679 # Broken: fails on valid input. 7680continue 7681fi 7682rm -f conftest.err conftest.i conftest.$ac_ext 7683 7684 # OK, works on sane cases. Now check whether nonexistent headers 7685 # can be detected and how. 7686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7687/* end confdefs.h. */ 7688#include <ac_nonexistent.h> 7689_ACEOF 7690if ac_fn_c_try_cpp "$LINENO"; then : 7691 # Broken: success on invalid input. 7692continue 7693else 7694 # Passes both tests. 7695ac_preproc_ok=: 7696break 7697fi 7698rm -f conftest.err conftest.i conftest.$ac_ext 7699 7700done 7701# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7702rm -f conftest.i conftest.err conftest.$ac_ext 7703if $ac_preproc_ok; then : 7704 break 7705fi 7706 7707 done 7708 ac_cv_prog_CPP=$CPP 7709 7710fi 7711 CPP=$ac_cv_prog_CPP 7712else 7713 ac_cv_prog_CPP=$CPP 7714fi 7715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7716$as_echo "$CPP" >&6; } 7717ac_preproc_ok=false 7718for ac_c_preproc_warn_flag in '' yes 7719do 7720 # Use a header file that comes with gcc, so configuring glibc 7721 # with a fresh cross-compiler works. 7722 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7723 # <limits.h> exists even on freestanding compilers. 7724 # On the NeXT, cc -E runs the code through the compiler's parser, 7725 # not just through cpp. "Syntax error" is here to catch this case. 7726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7727/* end confdefs.h. */ 7728#ifdef __STDC__ 7729# include <limits.h> 7730#else 7731# include <assert.h> 7732#endif 7733 Syntax error 7734_ACEOF 7735if ac_fn_c_try_cpp "$LINENO"; then : 7736 7737else 7738 # Broken: fails on valid input. 7739continue 7740fi 7741rm -f conftest.err conftest.i conftest.$ac_ext 7742 7743 # OK, works on sane cases. Now check whether nonexistent headers 7744 # can be detected and how. 7745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7746/* end confdefs.h. */ 7747#include <ac_nonexistent.h> 7748_ACEOF 7749if ac_fn_c_try_cpp "$LINENO"; then : 7750 # Broken: success on invalid input. 7751continue 7752else 7753 # Passes both tests. 7754ac_preproc_ok=: 7755break 7756fi 7757rm -f conftest.err conftest.i conftest.$ac_ext 7758 7759done 7760# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7761rm -f conftest.i conftest.err conftest.$ac_ext 7762if $ac_preproc_ok; then : 7763 7764else 7765 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7766$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7767as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7768See \`config.log' for more details" "$LINENO" 5; } 7769fi 7770 7771ac_ext=c 7772ac_cpp='$CPP $CPPFLAGS' 7773ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7774ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7775ac_compiler_gnu=$ac_cv_c_compiler_gnu 7776 7777 7778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7779$as_echo_n "checking for ANSI C header files... " >&6; } 7780if ${ac_cv_header_stdc+:} false; then : 7781 $as_echo_n "(cached) " >&6 7782else 7783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7784/* end confdefs.h. */ 7785#include <stdlib.h> 7786#include <stdarg.h> 7787#include <string.h> 7788#include <float.h> 7789 7790int 7791main () 7792{ 7793 7794 ; 7795 return 0; 7796} 7797_ACEOF 7798if ac_fn_c_try_compile "$LINENO"; then : 7799 ac_cv_header_stdc=yes 7800else 7801 ac_cv_header_stdc=no 7802fi 7803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7804 7805if test $ac_cv_header_stdc = yes; then 7806 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7808/* end confdefs.h. */ 7809#include <string.h> 7810 7811_ACEOF 7812if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7813 $EGREP "memchr" >/dev/null 2>&1; then : 7814 7815else 7816 ac_cv_header_stdc=no 7817fi 7818rm -f conftest* 7819 7820fi 7821 7822if test $ac_cv_header_stdc = yes; then 7823 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7825/* end confdefs.h. */ 7826#include <stdlib.h> 7827 7828_ACEOF 7829if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7830 $EGREP "free" >/dev/null 2>&1; then : 7831 7832else 7833 ac_cv_header_stdc=no 7834fi 7835rm -f conftest* 7836 7837fi 7838 7839if test $ac_cv_header_stdc = yes; then 7840 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7841 if test "$cross_compiling" = yes; then : 7842 : 7843else 7844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7845/* end confdefs.h. */ 7846#include <ctype.h> 7847#include <stdlib.h> 7848#if ((' ' & 0x0FF) == 0x020) 7849# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7850# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7851#else 7852# define ISLOWER(c) \ 7853 (('a' <= (c) && (c) <= 'i') \ 7854 || ('j' <= (c) && (c) <= 'r') \ 7855 || ('s' <= (c) && (c) <= 'z')) 7856# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7857#endif 7858 7859#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7860int 7861main () 7862{ 7863 int i; 7864 for (i = 0; i < 256; i++) 7865 if (XOR (islower (i), ISLOWER (i)) 7866 || toupper (i) != TOUPPER (i)) 7867 return 2; 7868 return 0; 7869} 7870_ACEOF 7871if ac_fn_c_try_run "$LINENO"; then : 7872 7873else 7874 ac_cv_header_stdc=no 7875fi 7876rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7877 conftest.$ac_objext conftest.beam conftest.$ac_ext 7878fi 7879 7880fi 7881fi 7882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7883$as_echo "$ac_cv_header_stdc" >&6; } 7884if test $ac_cv_header_stdc = yes; then 7885 7886$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7887 7888fi 7889 7890# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7891for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7892 inttypes.h stdint.h unistd.h 7893do : 7894 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7895ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7896" 7897if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7898 cat >>confdefs.h <<_ACEOF 7899#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7900_ACEOF 7901 7902fi 7903 7904done 7905 7906 7907for ac_header in dlfcn.h 7908do : 7909 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7910" 7911if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7912 cat >>confdefs.h <<_ACEOF 7913#define HAVE_DLFCN_H 1 7914_ACEOF 7915 7916fi 7917 7918done 7919 7920 7921 7922 7923 7924# Set options 7925 7926 7927 7928 enable_dlopen=no 7929 7930 7931 enable_win32_dll=no 7932 7933 7934 # Check whether --enable-shared was given. 7935if test "${enable_shared+set}" = set; then : 7936 enableval=$enable_shared; p=${PACKAGE-default} 7937 case $enableval in 7938 yes) enable_shared=yes ;; 7939 no) enable_shared=no ;; 7940 *) 7941 enable_shared=no 7942 # Look at the argument we got. We use all the common list separators. 7943 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7944 for pkg in $enableval; do 7945 IFS="$lt_save_ifs" 7946 if test "X$pkg" = "X$p"; then 7947 enable_shared=yes 7948 fi 7949 done 7950 IFS="$lt_save_ifs" 7951 ;; 7952 esac 7953else 7954 enable_shared=yes 7955fi 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 # Check whether --enable-static was given. 7966if test "${enable_static+set}" = set; then : 7967 enableval=$enable_static; p=${PACKAGE-default} 7968 case $enableval in 7969 yes) enable_static=yes ;; 7970 no) enable_static=no ;; 7971 *) 7972 enable_static=no 7973 # Look at the argument we got. We use all the common list separators. 7974 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7975 for pkg in $enableval; do 7976 IFS="$lt_save_ifs" 7977 if test "X$pkg" = "X$p"; then 7978 enable_static=yes 7979 fi 7980 done 7981 IFS="$lt_save_ifs" 7982 ;; 7983 esac 7984else 7985 enable_static=yes 7986fi 7987 7988 7989 7990 7991 7992 7993 7994 7995 7996 7997# Check whether --with-pic was given. 7998if test "${with_pic+set}" = set; then : 7999 withval=$with_pic; pic_mode="$withval" 8000else 8001 pic_mode=default 8002fi 8003 8004 8005test -z "$pic_mode" && pic_mode=default 8006 8007 8008 8009 8010 8011 8012 8013 # Check whether --enable-fast-install was given. 8014if test "${enable_fast_install+set}" = set; then : 8015 enableval=$enable_fast_install; p=${PACKAGE-default} 8016 case $enableval in 8017 yes) enable_fast_install=yes ;; 8018 no) enable_fast_install=no ;; 8019 *) 8020 enable_fast_install=no 8021 # Look at the argument we got. We use all the common list separators. 8022 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8023 for pkg in $enableval; do 8024 IFS="$lt_save_ifs" 8025 if test "X$pkg" = "X$p"; then 8026 enable_fast_install=yes 8027 fi 8028 done 8029 IFS="$lt_save_ifs" 8030 ;; 8031 esac 8032else 8033 enable_fast_install=yes 8034fi 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046# This can be used to rebuild libtool when needed 8047LIBTOOL_DEPS="$ltmain" 8048 8049# Always use our own libtool. 8050LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077test -z "$LN_S" && LN_S="ln -s" 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092if test -n "${ZSH_VERSION+set}" ; then 8093 setopt NO_GLOB_SUBST 8094fi 8095 8096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8097$as_echo_n "checking for objdir... " >&6; } 8098if ${lt_cv_objdir+:} false; then : 8099 $as_echo_n "(cached) " >&6 8100else 8101 rm -f .libs 2>/dev/null 8102mkdir .libs 2>/dev/null 8103if test -d .libs; then 8104 lt_cv_objdir=.libs 8105else 8106 # MS-DOS does not allow filenames that begin with a dot. 8107 lt_cv_objdir=_libs 8108fi 8109rmdir .libs 2>/dev/null 8110fi 8111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8112$as_echo "$lt_cv_objdir" >&6; } 8113objdir=$lt_cv_objdir 8114 8115 8116 8117 8118 8119cat >>confdefs.h <<_ACEOF 8120#define LT_OBJDIR "$lt_cv_objdir/" 8121_ACEOF 8122 8123 8124 8125 8126case $host_os in 8127aix3*) 8128 # AIX sometimes has problems with the GCC collect2 program. For some 8129 # reason, if we set the COLLECT_NAMES environment variable, the problems 8130 # vanish in a puff of smoke. 8131 if test "X${COLLECT_NAMES+set}" != Xset; then 8132 COLLECT_NAMES= 8133 export COLLECT_NAMES 8134 fi 8135 ;; 8136esac 8137 8138# Global variables: 8139ofile=libtool 8140can_build_shared=yes 8141 8142# All known linkers require a `.a' archive for static linking (except MSVC, 8143# which needs '.lib'). 8144libext=a 8145 8146with_gnu_ld="$lt_cv_prog_gnu_ld" 8147 8148old_CC="$CC" 8149old_CFLAGS="$CFLAGS" 8150 8151# Set sane defaults for various variables 8152test -z "$CC" && CC=cc 8153test -z "$LTCC" && LTCC=$CC 8154test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8155test -z "$LD" && LD=ld 8156test -z "$ac_objext" && ac_objext=o 8157 8158for cc_temp in $compiler""; do 8159 case $cc_temp in 8160 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8161 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8162 \-*) ;; 8163 *) break;; 8164 esac 8165done 8166cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8167 8168 8169# Only perform the check for file, if the check method requires it 8170test -z "$MAGIC_CMD" && MAGIC_CMD=file 8171case $deplibs_check_method in 8172file_magic*) 8173 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8175$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8176if ${lt_cv_path_MAGIC_CMD+:} false; then : 8177 $as_echo_n "(cached) " >&6 8178else 8179 case $MAGIC_CMD in 8180[\\/*] | ?:[\\/]*) 8181 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8182 ;; 8183*) 8184 lt_save_MAGIC_CMD="$MAGIC_CMD" 8185 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8186 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8187 for ac_dir in $ac_dummy; do 8188 IFS="$lt_save_ifs" 8189 test -z "$ac_dir" && ac_dir=. 8190 if test -f $ac_dir/${ac_tool_prefix}file; then 8191 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8192 if test -n "$file_magic_test_file"; then 8193 case $deplibs_check_method in 8194 "file_magic "*) 8195 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8196 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8197 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8198 $EGREP "$file_magic_regex" > /dev/null; then 8199 : 8200 else 8201 cat <<_LT_EOF 1>&2 8202 8203*** Warning: the command libtool uses to detect shared libraries, 8204*** $file_magic_cmd, produces output that libtool cannot recognize. 8205*** The result is that libtool may fail to recognize shared libraries 8206*** as such. This will affect the creation of libtool libraries that 8207*** depend on shared libraries, but programs linked with such libtool 8208*** libraries will work regardless of this problem. Nevertheless, you 8209*** may want to report the problem to your system manager and/or to 8210*** bug-libtool@gnu.org 8211 8212_LT_EOF 8213 fi ;; 8214 esac 8215 fi 8216 break 8217 fi 8218 done 8219 IFS="$lt_save_ifs" 8220 MAGIC_CMD="$lt_save_MAGIC_CMD" 8221 ;; 8222esac 8223fi 8224 8225MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8226if test -n "$MAGIC_CMD"; then 8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8228$as_echo "$MAGIC_CMD" >&6; } 8229else 8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8231$as_echo "no" >&6; } 8232fi 8233 8234 8235 8236 8237 8238if test -z "$lt_cv_path_MAGIC_CMD"; then 8239 if test -n "$ac_tool_prefix"; then 8240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8241$as_echo_n "checking for file... " >&6; } 8242if ${lt_cv_path_MAGIC_CMD+:} false; then : 8243 $as_echo_n "(cached) " >&6 8244else 8245 case $MAGIC_CMD in 8246[\\/*] | ?:[\\/]*) 8247 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8248 ;; 8249*) 8250 lt_save_MAGIC_CMD="$MAGIC_CMD" 8251 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8252 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8253 for ac_dir in $ac_dummy; do 8254 IFS="$lt_save_ifs" 8255 test -z "$ac_dir" && ac_dir=. 8256 if test -f $ac_dir/file; then 8257 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8258 if test -n "$file_magic_test_file"; then 8259 case $deplibs_check_method in 8260 "file_magic "*) 8261 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8262 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8263 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8264 $EGREP "$file_magic_regex" > /dev/null; then 8265 : 8266 else 8267 cat <<_LT_EOF 1>&2 8268 8269*** Warning: the command libtool uses to detect shared libraries, 8270*** $file_magic_cmd, produces output that libtool cannot recognize. 8271*** The result is that libtool may fail to recognize shared libraries 8272*** as such. This will affect the creation of libtool libraries that 8273*** depend on shared libraries, but programs linked with such libtool 8274*** libraries will work regardless of this problem. Nevertheless, you 8275*** may want to report the problem to your system manager and/or to 8276*** bug-libtool@gnu.org 8277 8278_LT_EOF 8279 fi ;; 8280 esac 8281 fi 8282 break 8283 fi 8284 done 8285 IFS="$lt_save_ifs" 8286 MAGIC_CMD="$lt_save_MAGIC_CMD" 8287 ;; 8288esac 8289fi 8290 8291MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8292if test -n "$MAGIC_CMD"; then 8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8294$as_echo "$MAGIC_CMD" >&6; } 8295else 8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8297$as_echo "no" >&6; } 8298fi 8299 8300 8301 else 8302 MAGIC_CMD=: 8303 fi 8304fi 8305 8306 fi 8307 ;; 8308esac 8309 8310# Use C for the default configuration in the libtool script 8311 8312lt_save_CC="$CC" 8313ac_ext=c 8314ac_cpp='$CPP $CPPFLAGS' 8315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8317ac_compiler_gnu=$ac_cv_c_compiler_gnu 8318 8319 8320# Source file extension for C test sources. 8321ac_ext=c 8322 8323# Object file extension for compiled C test sources. 8324objext=o 8325objext=$objext 8326 8327# Code to be used in simple compile tests 8328lt_simple_compile_test_code="int some_variable = 0;" 8329 8330# Code to be used in simple link tests 8331lt_simple_link_test_code='int main(){return(0);}' 8332 8333 8334 8335 8336 8337 8338 8339# If no C compiler was specified, use CC. 8340LTCC=${LTCC-"$CC"} 8341 8342# If no C compiler flags were specified, use CFLAGS. 8343LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8344 8345# Allow CC to be a program name with arguments. 8346compiler=$CC 8347 8348# Save the default compiler, since it gets overwritten when the other 8349# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8350compiler_DEFAULT=$CC 8351 8352# save warnings/boilerplate of simple test code 8353ac_outfile=conftest.$ac_objext 8354echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8355eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8356_lt_compiler_boilerplate=`cat conftest.err` 8357$RM conftest* 8358 8359ac_outfile=conftest.$ac_objext 8360echo "$lt_simple_link_test_code" >conftest.$ac_ext 8361eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8362_lt_linker_boilerplate=`cat conftest.err` 8363$RM -r conftest* 8364 8365 8366## CAVEAT EMPTOR: 8367## There is no encapsulation within the following macros, do not change 8368## the running order or otherwise move them around unless you know exactly 8369## what you are doing... 8370if test -n "$compiler"; then 8371 8372lt_prog_compiler_no_builtin_flag= 8373 8374if test "$GCC" = yes; then 8375 case $cc_basename in 8376 nvcc*) 8377 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8378 *) 8379 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8380 esac 8381 8382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8383$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8384if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8385 $as_echo_n "(cached) " >&6 8386else 8387 lt_cv_prog_compiler_rtti_exceptions=no 8388 ac_outfile=conftest.$ac_objext 8389 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8390 lt_compiler_flag="-fno-rtti -fno-exceptions" 8391 # Insert the option either (1) after the last *FLAGS variable, or 8392 # (2) before a word containing "conftest.", or (3) at the end. 8393 # Note that $ac_compile itself does not contain backslashes and begins 8394 # with a dollar sign (not a hyphen), so the echo should work correctly. 8395 # The option is referenced via a variable to avoid confusing sed. 8396 lt_compile=`echo "$ac_compile" | $SED \ 8397 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8398 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8399 -e 's:$: $lt_compiler_flag:'` 8400 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8401 (eval "$lt_compile" 2>conftest.err) 8402 ac_status=$? 8403 cat conftest.err >&5 8404 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8405 if (exit $ac_status) && test -s "$ac_outfile"; then 8406 # The compiler can only warn and ignore the option if not recognized 8407 # So say no if there are warnings other than the usual output. 8408 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8409 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8410 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8411 lt_cv_prog_compiler_rtti_exceptions=yes 8412 fi 8413 fi 8414 $RM conftest* 8415 8416fi 8417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8418$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8419 8420if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8421 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8422else 8423 : 8424fi 8425 8426fi 8427 8428 8429 8430 8431 8432 8433 lt_prog_compiler_wl= 8434lt_prog_compiler_pic= 8435lt_prog_compiler_static= 8436 8437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8438$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8439 8440 if test "$GCC" = yes; then 8441 lt_prog_compiler_wl='-Wl,' 8442 lt_prog_compiler_static='-static' 8443 8444 case $host_os in 8445 aix*) 8446 # All AIX code is PIC. 8447 if test "$host_cpu" = ia64; then 8448 # AIX 5 now supports IA64 processor 8449 lt_prog_compiler_static='-Bstatic' 8450 fi 8451 lt_prog_compiler_pic='-fPIC' 8452 ;; 8453 8454 amigaos*) 8455 case $host_cpu in 8456 powerpc) 8457 # see comment about AmigaOS4 .so support 8458 lt_prog_compiler_pic='-fPIC' 8459 ;; 8460 m68k) 8461 # FIXME: we need at least 68020 code to build shared libraries, but 8462 # adding the `-m68020' flag to GCC prevents building anything better, 8463 # like `-m68040'. 8464 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8465 ;; 8466 esac 8467 ;; 8468 8469 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8470 # PIC is the default for these OSes. 8471 ;; 8472 8473 mingw* | cygwin* | pw32* | os2* | cegcc*) 8474 # This hack is so that the source file can tell whether it is being 8475 # built for inclusion in a dll (and should export symbols for example). 8476 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8477 # (--disable-auto-import) libraries 8478 lt_prog_compiler_pic='-DDLL_EXPORT' 8479 ;; 8480 8481 darwin* | rhapsody*) 8482 # PIC is the default on this platform 8483 # Common symbols not allowed in MH_DYLIB files 8484 lt_prog_compiler_pic='-fno-common' 8485 ;; 8486 8487 haiku*) 8488 # PIC is the default for Haiku. 8489 # The "-static" flag exists, but is broken. 8490 lt_prog_compiler_static= 8491 ;; 8492 8493 hpux*) 8494 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8495 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8496 # sets the default TLS model and affects inlining. 8497 case $host_cpu in 8498 hppa*64*) 8499 # +Z the default 8500 ;; 8501 *) 8502 lt_prog_compiler_pic='-fPIC' 8503 ;; 8504 esac 8505 ;; 8506 8507 interix[3-9]*) 8508 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8509 # Instead, we relocate shared libraries at runtime. 8510 ;; 8511 8512 msdosdjgpp*) 8513 # Just because we use GCC doesn't mean we suddenly get shared libraries 8514 # on systems that don't support them. 8515 lt_prog_compiler_can_build_shared=no 8516 enable_shared=no 8517 ;; 8518 8519 *nto* | *qnx*) 8520 # QNX uses GNU C++, but need to define -shared option too, otherwise 8521 # it will coredump. 8522 lt_prog_compiler_pic='-fPIC -shared' 8523 ;; 8524 8525 sysv4*MP*) 8526 if test -d /usr/nec; then 8527 lt_prog_compiler_pic=-Kconform_pic 8528 fi 8529 ;; 8530 8531 *) 8532 lt_prog_compiler_pic='-fPIC' 8533 ;; 8534 esac 8535 8536 case $cc_basename in 8537 nvcc*) # Cuda Compiler Driver 2.2 8538 lt_prog_compiler_wl='-Xlinker ' 8539 lt_prog_compiler_pic='-Xcompiler -fPIC' 8540 ;; 8541 esac 8542 else 8543 # PORTME Check for flag to pass linker flags through the system compiler. 8544 case $host_os in 8545 aix*) 8546 lt_prog_compiler_wl='-Wl,' 8547 if test "$host_cpu" = ia64; then 8548 # AIX 5 now supports IA64 processor 8549 lt_prog_compiler_static='-Bstatic' 8550 else 8551 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8552 fi 8553 ;; 8554 8555 mingw* | cygwin* | pw32* | os2* | cegcc*) 8556 # This hack is so that the source file can tell whether it is being 8557 # built for inclusion in a dll (and should export symbols for example). 8558 lt_prog_compiler_pic='-DDLL_EXPORT' 8559 ;; 8560 8561 hpux9* | hpux10* | hpux11*) 8562 lt_prog_compiler_wl='-Wl,' 8563 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8564 # not for PA HP-UX. 8565 case $host_cpu in 8566 hppa*64*|ia64*) 8567 # +Z the default 8568 ;; 8569 *) 8570 lt_prog_compiler_pic='+Z' 8571 ;; 8572 esac 8573 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8574 lt_prog_compiler_static='${wl}-a ${wl}archive' 8575 ;; 8576 8577 irix5* | irix6* | nonstopux*) 8578 lt_prog_compiler_wl='-Wl,' 8579 # PIC (with -KPIC) is the default. 8580 lt_prog_compiler_static='-non_shared' 8581 ;; 8582 8583 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8584 case $cc_basename in 8585 # old Intel for x86_64 which still supported -KPIC. 8586 ecc*) 8587 lt_prog_compiler_wl='-Wl,' 8588 lt_prog_compiler_pic='-KPIC' 8589 lt_prog_compiler_static='-static' 8590 ;; 8591 # icc used to be incompatible with GCC. 8592 # ICC 10 doesn't accept -KPIC any more. 8593 icc* | ifort*) 8594 lt_prog_compiler_wl='-Wl,' 8595 lt_prog_compiler_pic='-fPIC' 8596 lt_prog_compiler_static='-static' 8597 ;; 8598 # Lahey Fortran 8.1. 8599 lf95*) 8600 lt_prog_compiler_wl='-Wl,' 8601 lt_prog_compiler_pic='--shared' 8602 lt_prog_compiler_static='--static' 8603 ;; 8604 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8605 # Portland Group compilers (*not* the Pentium gcc compiler, 8606 # which looks to be a dead project) 8607 lt_prog_compiler_wl='-Wl,' 8608 lt_prog_compiler_pic='-fpic' 8609 lt_prog_compiler_static='-Bstatic' 8610 ;; 8611 ccc*) 8612 lt_prog_compiler_wl='-Wl,' 8613 # All Alpha code is PIC. 8614 lt_prog_compiler_static='-non_shared' 8615 ;; 8616 xl* | bgxl* | bgf* | mpixl*) 8617 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8618 lt_prog_compiler_wl='-Wl,' 8619 lt_prog_compiler_pic='-qpic' 8620 lt_prog_compiler_static='-qstaticlink' 8621 ;; 8622 *) 8623 case `$CC -V 2>&1 | sed 5q` in 8624 *Sun\ F* | *Sun*Fortran*) 8625 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8626 lt_prog_compiler_pic='-KPIC' 8627 lt_prog_compiler_static='-Bstatic' 8628 lt_prog_compiler_wl='' 8629 ;; 8630 *Sun\ C*) 8631 # Sun C 5.9 8632 lt_prog_compiler_pic='-KPIC' 8633 lt_prog_compiler_static='-Bstatic' 8634 lt_prog_compiler_wl='-Wl,' 8635 ;; 8636 esac 8637 ;; 8638 esac 8639 ;; 8640 8641 newsos6) 8642 lt_prog_compiler_pic='-KPIC' 8643 lt_prog_compiler_static='-Bstatic' 8644 ;; 8645 8646 *nto* | *qnx*) 8647 # QNX uses GNU C++, but need to define -shared option too, otherwise 8648 # it will coredump. 8649 lt_prog_compiler_pic='-fPIC -shared' 8650 ;; 8651 8652 osf3* | osf4* | osf5*) 8653 lt_prog_compiler_wl='-Wl,' 8654 # All OSF/1 code is PIC. 8655 lt_prog_compiler_static='-non_shared' 8656 ;; 8657 8658 rdos*) 8659 lt_prog_compiler_static='-non_shared' 8660 ;; 8661 8662 solaris*) 8663 lt_prog_compiler_pic='-KPIC' 8664 lt_prog_compiler_static='-Bstatic' 8665 case $cc_basename in 8666 f77* | f90* | f95*) 8667 lt_prog_compiler_wl='-Qoption ld ';; 8668 *) 8669 lt_prog_compiler_wl='-Wl,';; 8670 esac 8671 ;; 8672 8673 sunos4*) 8674 lt_prog_compiler_wl='-Qoption ld ' 8675 lt_prog_compiler_pic='-PIC' 8676 lt_prog_compiler_static='-Bstatic' 8677 ;; 8678 8679 sysv4 | sysv4.2uw2* | sysv4.3*) 8680 lt_prog_compiler_wl='-Wl,' 8681 lt_prog_compiler_pic='-KPIC' 8682 lt_prog_compiler_static='-Bstatic' 8683 ;; 8684 8685 sysv4*MP*) 8686 if test -d /usr/nec ;then 8687 lt_prog_compiler_pic='-Kconform_pic' 8688 lt_prog_compiler_static='-Bstatic' 8689 fi 8690 ;; 8691 8692 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8693 lt_prog_compiler_wl='-Wl,' 8694 lt_prog_compiler_pic='-KPIC' 8695 lt_prog_compiler_static='-Bstatic' 8696 ;; 8697 8698 unicos*) 8699 lt_prog_compiler_wl='-Wl,' 8700 lt_prog_compiler_can_build_shared=no 8701 ;; 8702 8703 uts4*) 8704 lt_prog_compiler_pic='-pic' 8705 lt_prog_compiler_static='-Bstatic' 8706 ;; 8707 8708 *) 8709 lt_prog_compiler_can_build_shared=no 8710 ;; 8711 esac 8712 fi 8713 8714case $host_os in 8715 # For platforms which do not support PIC, -DPIC is meaningless: 8716 *djgpp*) 8717 lt_prog_compiler_pic= 8718 ;; 8719 *) 8720 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8721 ;; 8722esac 8723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 8724$as_echo "$lt_prog_compiler_pic" >&6; } 8725 8726 8727 8728 8729 8730 8731# 8732# Check to make sure the PIC flag actually works. 8733# 8734if test -n "$lt_prog_compiler_pic"; then 8735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8736$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8737if ${lt_cv_prog_compiler_pic_works+:} false; then : 8738 $as_echo_n "(cached) " >&6 8739else 8740 lt_cv_prog_compiler_pic_works=no 8741 ac_outfile=conftest.$ac_objext 8742 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8743 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8744 # Insert the option either (1) after the last *FLAGS variable, or 8745 # (2) before a word containing "conftest.", or (3) at the end. 8746 # Note that $ac_compile itself does not contain backslashes and begins 8747 # with a dollar sign (not a hyphen), so the echo should work correctly. 8748 # The option is referenced via a variable to avoid confusing sed. 8749 lt_compile=`echo "$ac_compile" | $SED \ 8750 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8751 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8752 -e 's:$: $lt_compiler_flag:'` 8753 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8754 (eval "$lt_compile" 2>conftest.err) 8755 ac_status=$? 8756 cat conftest.err >&5 8757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8758 if (exit $ac_status) && test -s "$ac_outfile"; then 8759 # The compiler can only warn and ignore the option if not recognized 8760 # So say no if there are warnings other than the usual output. 8761 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8762 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8763 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8764 lt_cv_prog_compiler_pic_works=yes 8765 fi 8766 fi 8767 $RM conftest* 8768 8769fi 8770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8771$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8772 8773if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8774 case $lt_prog_compiler_pic in 8775 "" | " "*) ;; 8776 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8777 esac 8778else 8779 lt_prog_compiler_pic= 8780 lt_prog_compiler_can_build_shared=no 8781fi 8782 8783fi 8784 8785 8786 8787 8788 8789 8790# 8791# Check to make sure the static flag actually works. 8792# 8793wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8795$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8796if ${lt_cv_prog_compiler_static_works+:} false; then : 8797 $as_echo_n "(cached) " >&6 8798else 8799 lt_cv_prog_compiler_static_works=no 8800 save_LDFLAGS="$LDFLAGS" 8801 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8802 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8803 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8804 # The linker can only warn and ignore the option if not recognized 8805 # So say no if there are warnings 8806 if test -s conftest.err; then 8807 # Append any errors to the config.log. 8808 cat conftest.err 1>&5 8809 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8810 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8811 if diff conftest.exp conftest.er2 >/dev/null; then 8812 lt_cv_prog_compiler_static_works=yes 8813 fi 8814 else 8815 lt_cv_prog_compiler_static_works=yes 8816 fi 8817 fi 8818 $RM -r conftest* 8819 LDFLAGS="$save_LDFLAGS" 8820 8821fi 8822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8823$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8824 8825if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8826 : 8827else 8828 lt_prog_compiler_static= 8829fi 8830 8831 8832 8833 8834 8835 8836 8837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8838$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8839if ${lt_cv_prog_compiler_c_o+:} false; then : 8840 $as_echo_n "(cached) " >&6 8841else 8842 lt_cv_prog_compiler_c_o=no 8843 $RM -r conftest 2>/dev/null 8844 mkdir conftest 8845 cd conftest 8846 mkdir out 8847 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8848 8849 lt_compiler_flag="-o out/conftest2.$ac_objext" 8850 # Insert the option either (1) after the last *FLAGS variable, or 8851 # (2) before a word containing "conftest.", or (3) at the end. 8852 # Note that $ac_compile itself does not contain backslashes and begins 8853 # with a dollar sign (not a hyphen), so the echo should work correctly. 8854 lt_compile=`echo "$ac_compile" | $SED \ 8855 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8856 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8857 -e 's:$: $lt_compiler_flag:'` 8858 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8859 (eval "$lt_compile" 2>out/conftest.err) 8860 ac_status=$? 8861 cat out/conftest.err >&5 8862 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8863 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8864 then 8865 # The compiler can only warn and ignore the option if not recognized 8866 # So say no if there are warnings 8867 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8868 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8869 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8870 lt_cv_prog_compiler_c_o=yes 8871 fi 8872 fi 8873 chmod u+w . 2>&5 8874 $RM conftest* 8875 # SGI C++ compiler will create directory out/ii_files/ for 8876 # template instantiation 8877 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8878 $RM out/* && rmdir out 8879 cd .. 8880 $RM -r conftest 8881 $RM conftest* 8882 8883fi 8884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8885$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8886 8887 8888 8889 8890 8891 8892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8893$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8894if ${lt_cv_prog_compiler_c_o+:} false; then : 8895 $as_echo_n "(cached) " >&6 8896else 8897 lt_cv_prog_compiler_c_o=no 8898 $RM -r conftest 2>/dev/null 8899 mkdir conftest 8900 cd conftest 8901 mkdir out 8902 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8903 8904 lt_compiler_flag="-o out/conftest2.$ac_objext" 8905 # Insert the option either (1) after the last *FLAGS variable, or 8906 # (2) before a word containing "conftest.", or (3) at the end. 8907 # Note that $ac_compile itself does not contain backslashes and begins 8908 # with a dollar sign (not a hyphen), so the echo should work correctly. 8909 lt_compile=`echo "$ac_compile" | $SED \ 8910 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8911 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8912 -e 's:$: $lt_compiler_flag:'` 8913 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8914 (eval "$lt_compile" 2>out/conftest.err) 8915 ac_status=$? 8916 cat out/conftest.err >&5 8917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8918 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8919 then 8920 # The compiler can only warn and ignore the option if not recognized 8921 # So say no if there are warnings 8922 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8923 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8924 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8925 lt_cv_prog_compiler_c_o=yes 8926 fi 8927 fi 8928 chmod u+w . 2>&5 8929 $RM conftest* 8930 # SGI C++ compiler will create directory out/ii_files/ for 8931 # template instantiation 8932 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8933 $RM out/* && rmdir out 8934 cd .. 8935 $RM -r conftest 8936 $RM conftest* 8937 8938fi 8939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8940$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8941 8942 8943 8944 8945hard_links="nottested" 8946if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8947 # do not overwrite the value of need_locks provided by the user 8948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8949$as_echo_n "checking if we can lock with hard links... " >&6; } 8950 hard_links=yes 8951 $RM conftest* 8952 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8953 touch conftest.a 8954 ln conftest.a conftest.b 2>&5 || hard_links=no 8955 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8957$as_echo "$hard_links" >&6; } 8958 if test "$hard_links" = no; then 8959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8960$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8961 need_locks=warn 8962 fi 8963else 8964 need_locks=no 8965fi 8966 8967 8968 8969 8970 8971 8972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8973$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8974 8975 runpath_var= 8976 allow_undefined_flag= 8977 always_export_symbols=no 8978 archive_cmds= 8979 archive_expsym_cmds= 8980 compiler_needs_object=no 8981 enable_shared_with_static_runtimes=no 8982 export_dynamic_flag_spec= 8983 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8984 hardcode_automatic=no 8985 hardcode_direct=no 8986 hardcode_direct_absolute=no 8987 hardcode_libdir_flag_spec= 8988 hardcode_libdir_flag_spec_ld= 8989 hardcode_libdir_separator= 8990 hardcode_minus_L=no 8991 hardcode_shlibpath_var=unsupported 8992 inherit_rpath=no 8993 link_all_deplibs=unknown 8994 module_cmds= 8995 module_expsym_cmds= 8996 old_archive_from_new_cmds= 8997 old_archive_from_expsyms_cmds= 8998 thread_safe_flag_spec= 8999 whole_archive_flag_spec= 9000 # include_expsyms should be a list of space-separated symbols to be *always* 9001 # included in the symbol list 9002 include_expsyms= 9003 # exclude_expsyms can be an extended regexp of symbols to exclude 9004 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9005 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9006 # as well as any symbol that contains `d'. 9007 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9008 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9009 # platforms (ab)use it in PIC code, but their linkers get confused if 9010 # the symbol is explicitly referenced. Since portable code cannot 9011 # rely on this symbol name, it's probably fine to never include it in 9012 # preloaded symbol tables. 9013 # Exclude shared library initialization/finalization symbols. 9014 extract_expsyms_cmds= 9015 9016 case $host_os in 9017 cygwin* | mingw* | pw32* | cegcc*) 9018 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9019 # When not using gcc, we currently assume that we are using 9020 # Microsoft Visual C++. 9021 if test "$GCC" != yes; then 9022 with_gnu_ld=no 9023 fi 9024 ;; 9025 interix*) 9026 # we just hope/assume this is gcc and not c89 (= MSVC++) 9027 with_gnu_ld=yes 9028 ;; 9029 openbsd*) 9030 with_gnu_ld=no 9031 ;; 9032 esac 9033 9034 ld_shlibs=yes 9035 9036 # On some targets, GNU ld is compatible enough with the native linker 9037 # that we're better off using the native interface for both. 9038 lt_use_gnu_ld_interface=no 9039 if test "$with_gnu_ld" = yes; then 9040 case $host_os in 9041 aix*) 9042 # The AIX port of GNU ld has always aspired to compatibility 9043 # with the native linker. However, as the warning in the GNU ld 9044 # block says, versions before 2.19.5* couldn't really create working 9045 # shared libraries, regardless of the interface used. 9046 case `$LD -v 2>&1` in 9047 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9048 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9049 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9050 *) 9051 lt_use_gnu_ld_interface=yes 9052 ;; 9053 esac 9054 ;; 9055 *) 9056 lt_use_gnu_ld_interface=yes 9057 ;; 9058 esac 9059 fi 9060 9061 if test "$lt_use_gnu_ld_interface" = yes; then 9062 # If archive_cmds runs LD, not CC, wlarc should be empty 9063 wlarc='${wl}' 9064 9065 # Set some defaults for GNU ld with shared library support. These 9066 # are reset later if shared libraries are not supported. Putting them 9067 # here allows them to be overridden if necessary. 9068 runpath_var=LD_RUN_PATH 9069 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9070 export_dynamic_flag_spec='${wl}--export-dynamic' 9071 # ancient GNU ld didn't support --whole-archive et. al. 9072 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9073 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9074 else 9075 whole_archive_flag_spec= 9076 fi 9077 supports_anon_versioning=no 9078 case `$LD -v 2>&1` in 9079 *GNU\ gold*) supports_anon_versioning=yes ;; 9080 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9081 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9082 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9083 *\ 2.11.*) ;; # other 2.11 versions 9084 *) supports_anon_versioning=yes ;; 9085 esac 9086 9087 # See if GNU ld supports shared libraries. 9088 case $host_os in 9089 aix[3-9]*) 9090 # On AIX/PPC, the GNU linker is very broken 9091 if test "$host_cpu" != ia64; then 9092 ld_shlibs=no 9093 cat <<_LT_EOF 1>&2 9094 9095*** Warning: the GNU linker, at least up to release 2.19, is reported 9096*** to be unable to reliably create shared libraries on AIX. 9097*** Therefore, libtool is disabling shared libraries support. If you 9098*** really care for shared libraries, you may want to install binutils 9099*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9100*** You will then need to restart the configuration process. 9101 9102_LT_EOF 9103 fi 9104 ;; 9105 9106 amigaos*) 9107 case $host_cpu in 9108 powerpc) 9109 # see comment about AmigaOS4 .so support 9110 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9111 archive_expsym_cmds='' 9112 ;; 9113 m68k) 9114 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)' 9115 hardcode_libdir_flag_spec='-L$libdir' 9116 hardcode_minus_L=yes 9117 ;; 9118 esac 9119 ;; 9120 9121 beos*) 9122 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9123 allow_undefined_flag=unsupported 9124 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9125 # support --undefined. This deserves some investigation. FIXME 9126 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9127 else 9128 ld_shlibs=no 9129 fi 9130 ;; 9131 9132 cygwin* | mingw* | pw32* | cegcc*) 9133 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9134 # as there is no search path for DLLs. 9135 hardcode_libdir_flag_spec='-L$libdir' 9136 export_dynamic_flag_spec='${wl}--export-all-symbols' 9137 allow_undefined_flag=unsupported 9138 always_export_symbols=no 9139 enable_shared_with_static_runtimes=yes 9140 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9141 9142 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9143 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9144 # If the export-symbols file already is a .def file (1st line 9145 # is EXPORTS), use it as is; otherwise, prepend... 9146 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9147 cp $export_symbols $output_objdir/$soname.def; 9148 else 9149 echo EXPORTS > $output_objdir/$soname.def; 9150 cat $export_symbols >> $output_objdir/$soname.def; 9151 fi~ 9152 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9153 else 9154 ld_shlibs=no 9155 fi 9156 ;; 9157 9158 haiku*) 9159 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9160 link_all_deplibs=yes 9161 ;; 9162 9163 interix[3-9]*) 9164 hardcode_direct=no 9165 hardcode_shlibpath_var=no 9166 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9167 export_dynamic_flag_spec='${wl}-E' 9168 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9169 # Instead, shared libraries are loaded at an image base (0x10000000 by 9170 # default) and relocated if they conflict, which is a slow very memory 9171 # consuming and fragmenting process. To avoid this, we pick a random, 9172 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9173 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9174 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9175 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' 9176 ;; 9177 9178 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9179 tmp_diet=no 9180 if test "$host_os" = linux-dietlibc; then 9181 case $cc_basename in 9182 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9183 esac 9184 fi 9185 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9186 && test "$tmp_diet" = no 9187 then 9188 tmp_addflag=' $pic_flag' 9189 tmp_sharedflag='-shared' 9190 case $cc_basename,$host_cpu in 9191 pgcc*) # Portland Group C compiler 9192 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' 9193 tmp_addflag=' $pic_flag' 9194 ;; 9195 pgf77* | pgf90* | pgf95* | pgfortran*) 9196 # Portland Group f77 and f90 compilers 9197 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' 9198 tmp_addflag=' $pic_flag -Mnomain' ;; 9199 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9200 tmp_addflag=' -i_dynamic' ;; 9201 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9202 tmp_addflag=' -i_dynamic -nofor_main' ;; 9203 ifc* | ifort*) # Intel Fortran compiler 9204 tmp_addflag=' -nofor_main' ;; 9205 lf95*) # Lahey Fortran 8.1 9206 whole_archive_flag_spec= 9207 tmp_sharedflag='--shared' ;; 9208 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9209 tmp_sharedflag='-qmkshrobj' 9210 tmp_addflag= ;; 9211 nvcc*) # Cuda Compiler Driver 2.2 9212 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' 9213 compiler_needs_object=yes 9214 ;; 9215 esac 9216 case `$CC -V 2>&1 | sed 5q` in 9217 *Sun\ C*) # Sun C 5.9 9218 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' 9219 compiler_needs_object=yes 9220 tmp_sharedflag='-G' ;; 9221 *Sun\ F*) # Sun Fortran 8.3 9222 tmp_sharedflag='-G' ;; 9223 esac 9224 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9225 9226 if test "x$supports_anon_versioning" = xyes; then 9227 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9228 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9229 echo "local: *; };" >> $output_objdir/$libname.ver~ 9230 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9231 fi 9232 9233 case $cc_basename in 9234 xlf* | bgf* | bgxlf* | mpixlf*) 9235 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9236 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9237 hardcode_libdir_flag_spec= 9238 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9239 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 9240 if test "x$supports_anon_versioning" = xyes; then 9241 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9242 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9243 echo "local: *; };" >> $output_objdir/$libname.ver~ 9244 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9245 fi 9246 ;; 9247 esac 9248 else 9249 ld_shlibs=no 9250 fi 9251 ;; 9252 9253 netbsd*) 9254 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9255 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9256 wlarc= 9257 else 9258 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9259 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9260 fi 9261 ;; 9262 9263 solaris*) 9264 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9265 ld_shlibs=no 9266 cat <<_LT_EOF 1>&2 9267 9268*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9269*** create shared libraries on Solaris systems. Therefore, libtool 9270*** is disabling shared libraries support. We urge you to upgrade GNU 9271*** binutils to release 2.9.1 or newer. Another option is to modify 9272*** your PATH or compiler configuration so that the native linker is 9273*** used, and then restart. 9274 9275_LT_EOF 9276 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9277 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9278 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9279 else 9280 ld_shlibs=no 9281 fi 9282 ;; 9283 9284 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9285 case `$LD -v 2>&1` in 9286 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9287 ld_shlibs=no 9288 cat <<_LT_EOF 1>&2 9289 9290*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9291*** reliably create shared libraries on SCO systems. Therefore, libtool 9292*** is disabling shared libraries support. We urge you to upgrade GNU 9293*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9294*** your PATH or compiler configuration so that the native linker is 9295*** used, and then restart. 9296 9297_LT_EOF 9298 ;; 9299 *) 9300 # For security reasons, it is highly recommended that you always 9301 # use absolute paths for naming shared libraries, and exclude the 9302 # DT_RUNPATH tag from executables and libraries. But doing so 9303 # requires that you compile everything twice, which is a pain. 9304 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9305 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9306 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9307 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9308 else 9309 ld_shlibs=no 9310 fi 9311 ;; 9312 esac 9313 ;; 9314 9315 sunos4*) 9316 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9317 wlarc= 9318 hardcode_direct=yes 9319 hardcode_shlibpath_var=no 9320 ;; 9321 9322 *) 9323 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9324 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9325 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9326 else 9327 ld_shlibs=no 9328 fi 9329 ;; 9330 esac 9331 9332 if test "$ld_shlibs" = no; then 9333 runpath_var= 9334 hardcode_libdir_flag_spec= 9335 export_dynamic_flag_spec= 9336 whole_archive_flag_spec= 9337 fi 9338 else 9339 # PORTME fill in a description of your system's linker (not GNU ld) 9340 case $host_os in 9341 aix3*) 9342 allow_undefined_flag=unsupported 9343 always_export_symbols=yes 9344 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' 9345 # Note: this linker hardcodes the directories in LIBPATH if there 9346 # are no directories specified by -L. 9347 hardcode_minus_L=yes 9348 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9349 # Neither direct hardcoding nor static linking is supported with a 9350 # broken collect2. 9351 hardcode_direct=unsupported 9352 fi 9353 ;; 9354 9355 aix[4-9]*) 9356 if test "$host_cpu" = ia64; then 9357 # On IA64, the linker does run time linking by default, so we don't 9358 # have to do anything special. 9359 aix_use_runtimelinking=no 9360 exp_sym_flag='-Bexport' 9361 no_entry_flag="" 9362 else 9363 # If we're using GNU nm, then we don't want the "-C" option. 9364 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9365 # Also, AIX nm treats weak defined symbols like other global 9366 # defined symbols, whereas GNU nm marks them as "W". 9367 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9368 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9369 else 9370 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9371 fi 9372 aix_use_runtimelinking=no 9373 9374 # Test if we are trying to use run time linking or normal 9375 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9376 # need to do runtime linking. 9377 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9378 for ld_flag in $LDFLAGS; do 9379 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9380 aix_use_runtimelinking=yes 9381 break 9382 fi 9383 done 9384 ;; 9385 esac 9386 9387 exp_sym_flag='-bexport' 9388 no_entry_flag='-bnoentry' 9389 fi 9390 9391 # When large executables or shared objects are built, AIX ld can 9392 # have problems creating the table of contents. If linking a library 9393 # or program results in "error TOC overflow" add -mminimal-toc to 9394 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9395 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9396 9397 archive_cmds='' 9398 hardcode_direct=yes 9399 hardcode_direct_absolute=yes 9400 hardcode_libdir_separator=':' 9401 link_all_deplibs=yes 9402 file_list_spec='${wl}-f,' 9403 9404 if test "$GCC" = yes; then 9405 case $host_os in aix4.[012]|aix4.[012].*) 9406 # We only want to do this on AIX 4.2 and lower, the check 9407 # below for broken collect2 doesn't work under 4.3+ 9408 collect2name=`${CC} -print-prog-name=collect2` 9409 if test -f "$collect2name" && 9410 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9411 then 9412 # We have reworked collect2 9413 : 9414 else 9415 # We have old collect2 9416 hardcode_direct=unsupported 9417 # It fails to find uninstalled libraries when the uninstalled 9418 # path is not listed in the libpath. Setting hardcode_minus_L 9419 # to unsupported forces relinking 9420 hardcode_minus_L=yes 9421 hardcode_libdir_flag_spec='-L$libdir' 9422 hardcode_libdir_separator= 9423 fi 9424 ;; 9425 esac 9426 shared_flag='-shared' 9427 if test "$aix_use_runtimelinking" = yes; then 9428 shared_flag="$shared_flag "'${wl}-G' 9429 fi 9430 else 9431 # not using gcc 9432 if test "$host_cpu" = ia64; then 9433 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9434 # chokes on -Wl,-G. The following line is correct: 9435 shared_flag='-G' 9436 else 9437 if test "$aix_use_runtimelinking" = yes; then 9438 shared_flag='${wl}-G' 9439 else 9440 shared_flag='${wl}-bM:SRE' 9441 fi 9442 fi 9443 fi 9444 9445 export_dynamic_flag_spec='${wl}-bexpall' 9446 # It seems that -bexpall does not export symbols beginning with 9447 # underscore (_), so it is better to generate a list of symbols to export. 9448 always_export_symbols=yes 9449 if test "$aix_use_runtimelinking" = yes; then 9450 # Warning - without using the other runtime loading flags (-brtl), 9451 # -berok will link without error, but may produce a broken library. 9452 allow_undefined_flag='-berok' 9453 # Determine the default libpath from the value encoded in an 9454 # empty executable. 9455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9456/* end confdefs.h. */ 9457 9458int 9459main () 9460{ 9461 9462 ; 9463 return 0; 9464} 9465_ACEOF 9466if ac_fn_c_try_link "$LINENO"; then : 9467 9468lt_aix_libpath_sed=' 9469 /Import File Strings/,/^$/ { 9470 /^0/ { 9471 s/^0 *\(.*\)$/\1/ 9472 p 9473 } 9474 }' 9475aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9476# Check for a 64-bit object if we didn't find anything. 9477if test -z "$aix_libpath"; then 9478 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9479fi 9480fi 9481rm -f core conftest.err conftest.$ac_objext \ 9482 conftest$ac_exeext conftest.$ac_ext 9483if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9484 9485 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9486 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 9487 else 9488 if test "$host_cpu" = ia64; then 9489 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9490 allow_undefined_flag="-z nodefs" 9491 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" 9492 else 9493 # Determine the default libpath from the value encoded in an 9494 # empty executable. 9495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9496/* end confdefs.h. */ 9497 9498int 9499main () 9500{ 9501 9502 ; 9503 return 0; 9504} 9505_ACEOF 9506if ac_fn_c_try_link "$LINENO"; then : 9507 9508lt_aix_libpath_sed=' 9509 /Import File Strings/,/^$/ { 9510 /^0/ { 9511 s/^0 *\(.*\)$/\1/ 9512 p 9513 } 9514 }' 9515aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9516# Check for a 64-bit object if we didn't find anything. 9517if test -z "$aix_libpath"; then 9518 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9519fi 9520fi 9521rm -f core conftest.err conftest.$ac_objext \ 9522 conftest$ac_exeext conftest.$ac_ext 9523if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9524 9525 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9526 # Warning - without using the other run time loading flags, 9527 # -berok will link without error, but may produce a broken library. 9528 no_undefined_flag=' ${wl}-bernotok' 9529 allow_undefined_flag=' ${wl}-berok' 9530 if test "$with_gnu_ld" = yes; then 9531 # We only use this code for GNU lds that support --whole-archive. 9532 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9533 else 9534 # Exported symbols can be pulled into shared objects from archives 9535 whole_archive_flag_spec='$convenience' 9536 fi 9537 archive_cmds_need_lc=yes 9538 # This is similar to how AIX traditionally builds its shared libraries. 9539 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 9540 fi 9541 fi 9542 ;; 9543 9544 amigaos*) 9545 case $host_cpu in 9546 powerpc) 9547 # see comment about AmigaOS4 .so support 9548 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9549 archive_expsym_cmds='' 9550 ;; 9551 m68k) 9552 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)' 9553 hardcode_libdir_flag_spec='-L$libdir' 9554 hardcode_minus_L=yes 9555 ;; 9556 esac 9557 ;; 9558 9559 bsdi[45]*) 9560 export_dynamic_flag_spec=-rdynamic 9561 ;; 9562 9563 cygwin* | mingw* | pw32* | cegcc*) 9564 # When not using gcc, we currently assume that we are using 9565 # Microsoft Visual C++. 9566 # hardcode_libdir_flag_spec is actually meaningless, as there is 9567 # no search path for DLLs. 9568 hardcode_libdir_flag_spec=' ' 9569 allow_undefined_flag=unsupported 9570 # Tell ltmain to make .lib files, not .a files. 9571 libext=lib 9572 # Tell ltmain to make .dll files, not .so files. 9573 shrext_cmds=".dll" 9574 # FIXME: Setting linknames here is a bad hack. 9575 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9576 # The linker will automatically build a .lib file if we build a DLL. 9577 old_archive_from_new_cmds='true' 9578 # FIXME: Should let the user specify the lib program. 9579 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9580 fix_srcfile_path='`cygpath -w "$srcfile"`' 9581 enable_shared_with_static_runtimes=yes 9582 ;; 9583 9584 darwin* | rhapsody*) 9585 9586 9587 archive_cmds_need_lc=no 9588 hardcode_direct=no 9589 hardcode_automatic=yes 9590 hardcode_shlibpath_var=unsupported 9591 if test "$lt_cv_ld_force_load" = "yes"; then 9592 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\"`' 9593 else 9594 whole_archive_flag_spec='' 9595 fi 9596 link_all_deplibs=yes 9597 allow_undefined_flag="$_lt_dar_allow_undefined" 9598 case $cc_basename in 9599 ifort*) _lt_dar_can_shared=yes ;; 9600 *) _lt_dar_can_shared=$GCC ;; 9601 esac 9602 if test "$_lt_dar_can_shared" = "yes"; then 9603 output_verbose_link_cmd=func_echo_all 9604 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9605 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9606 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}" 9607 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}" 9608 9609 else 9610 ld_shlibs=no 9611 fi 9612 9613 ;; 9614 9615 dgux*) 9616 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9617 hardcode_libdir_flag_spec='-L$libdir' 9618 hardcode_shlibpath_var=no 9619 ;; 9620 9621 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9622 # support. Future versions do this automatically, but an explicit c++rt0.o 9623 # does not break anything, and helps significantly (at the cost of a little 9624 # extra space). 9625 freebsd2.2*) 9626 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9627 hardcode_libdir_flag_spec='-R$libdir' 9628 hardcode_direct=yes 9629 hardcode_shlibpath_var=no 9630 ;; 9631 9632 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9633 freebsd2.*) 9634 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9635 hardcode_direct=yes 9636 hardcode_minus_L=yes 9637 hardcode_shlibpath_var=no 9638 ;; 9639 9640 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9641 freebsd* | dragonfly*) 9642 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9643 hardcode_libdir_flag_spec='-R$libdir' 9644 hardcode_direct=yes 9645 hardcode_shlibpath_var=no 9646 ;; 9647 9648 hpux9*) 9649 if test "$GCC" = yes; then 9650 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9651 else 9652 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9653 fi 9654 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9655 hardcode_libdir_separator=: 9656 hardcode_direct=yes 9657 9658 # hardcode_minus_L: Not really in the search PATH, 9659 # but as the default location of the library. 9660 hardcode_minus_L=yes 9661 export_dynamic_flag_spec='${wl}-E' 9662 ;; 9663 9664 hpux10*) 9665 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9666 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9667 else 9668 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9669 fi 9670 if test "$with_gnu_ld" = no; then 9671 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9672 hardcode_libdir_flag_spec_ld='+b $libdir' 9673 hardcode_libdir_separator=: 9674 hardcode_direct=yes 9675 hardcode_direct_absolute=yes 9676 export_dynamic_flag_spec='${wl}-E' 9677 # hardcode_minus_L: Not really in the search PATH, 9678 # but as the default location of the library. 9679 hardcode_minus_L=yes 9680 fi 9681 ;; 9682 9683 hpux11*) 9684 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9685 case $host_cpu in 9686 hppa*64*) 9687 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9688 ;; 9689 ia64*) 9690 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9691 ;; 9692 *) 9693 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9694 ;; 9695 esac 9696 else 9697 case $host_cpu in 9698 hppa*64*) 9699 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9700 ;; 9701 ia64*) 9702 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9703 ;; 9704 *) 9705 9706 # Older versions of the 11.00 compiler do not understand -b yet 9707 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9709$as_echo_n "checking if $CC understands -b... " >&6; } 9710if ${lt_cv_prog_compiler__b+:} false; then : 9711 $as_echo_n "(cached) " >&6 9712else 9713 lt_cv_prog_compiler__b=no 9714 save_LDFLAGS="$LDFLAGS" 9715 LDFLAGS="$LDFLAGS -b" 9716 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9717 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9718 # The linker can only warn and ignore the option if not recognized 9719 # So say no if there are warnings 9720 if test -s conftest.err; then 9721 # Append any errors to the config.log. 9722 cat conftest.err 1>&5 9723 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9724 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9725 if diff conftest.exp conftest.er2 >/dev/null; then 9726 lt_cv_prog_compiler__b=yes 9727 fi 9728 else 9729 lt_cv_prog_compiler__b=yes 9730 fi 9731 fi 9732 $RM -r conftest* 9733 LDFLAGS="$save_LDFLAGS" 9734 9735fi 9736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9737$as_echo "$lt_cv_prog_compiler__b" >&6; } 9738 9739if test x"$lt_cv_prog_compiler__b" = xyes; then 9740 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9741else 9742 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9743fi 9744 9745 ;; 9746 esac 9747 fi 9748 if test "$with_gnu_ld" = no; then 9749 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9750 hardcode_libdir_separator=: 9751 9752 case $host_cpu in 9753 hppa*64*|ia64*) 9754 hardcode_direct=no 9755 hardcode_shlibpath_var=no 9756 ;; 9757 *) 9758 hardcode_direct=yes 9759 hardcode_direct_absolute=yes 9760 export_dynamic_flag_spec='${wl}-E' 9761 9762 # hardcode_minus_L: Not really in the search PATH, 9763 # but as the default location of the library. 9764 hardcode_minus_L=yes 9765 ;; 9766 esac 9767 fi 9768 ;; 9769 9770 irix5* | irix6* | nonstopux*) 9771 if test "$GCC" = yes; then 9772 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9773 # Try to use the -exported_symbol ld option, if it does not 9774 # work, assume that -exports_file does not work either and 9775 # implicitly export all symbols. 9776 save_LDFLAGS="$LDFLAGS" 9777 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9779/* end confdefs.h. */ 9780int foo(void) {} 9781_ACEOF 9782if ac_fn_c_try_link "$LINENO"; then : 9783 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 9784 9785fi 9786rm -f core conftest.err conftest.$ac_objext \ 9787 conftest$ac_exeext conftest.$ac_ext 9788 LDFLAGS="$save_LDFLAGS" 9789 else 9790 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' 9791 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' 9792 fi 9793 archive_cmds_need_lc='no' 9794 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9795 hardcode_libdir_separator=: 9796 inherit_rpath=yes 9797 link_all_deplibs=yes 9798 ;; 9799 9800 netbsd*) 9801 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9802 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9803 else 9804 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9805 fi 9806 hardcode_libdir_flag_spec='-R$libdir' 9807 hardcode_direct=yes 9808 hardcode_shlibpath_var=no 9809 ;; 9810 9811 newsos6) 9812 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9813 hardcode_direct=yes 9814 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9815 hardcode_libdir_separator=: 9816 hardcode_shlibpath_var=no 9817 ;; 9818 9819 *nto* | *qnx*) 9820 ;; 9821 9822 openbsd*) 9823 if test -f /usr/libexec/ld.so; then 9824 hardcode_direct=yes 9825 hardcode_shlibpath_var=no 9826 hardcode_direct_absolute=yes 9827 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9828 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9829 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9830 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9831 export_dynamic_flag_spec='${wl}-E' 9832 else 9833 case $host_os in 9834 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9835 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9836 hardcode_libdir_flag_spec='-R$libdir' 9837 ;; 9838 *) 9839 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9840 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9841 ;; 9842 esac 9843 fi 9844 else 9845 ld_shlibs=no 9846 fi 9847 ;; 9848 9849 os2*) 9850 hardcode_libdir_flag_spec='-L$libdir' 9851 hardcode_minus_L=yes 9852 allow_undefined_flag=unsupported 9853 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 9854 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9855 ;; 9856 9857 osf3*) 9858 if test "$GCC" = yes; then 9859 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9860 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' 9861 else 9862 allow_undefined_flag=' -expect_unresolved \*' 9863 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' 9864 fi 9865 archive_cmds_need_lc='no' 9866 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9867 hardcode_libdir_separator=: 9868 ;; 9869 9870 osf4* | osf5*) # as osf3* with the addition of -msym flag 9871 if test "$GCC" = yes; then 9872 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9873 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9874 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9875 else 9876 allow_undefined_flag=' -expect_unresolved \*' 9877 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' 9878 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~ 9879 $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' 9880 9881 # Both c and cxx compiler support -rpath directly 9882 hardcode_libdir_flag_spec='-rpath $libdir' 9883 fi 9884 archive_cmds_need_lc='no' 9885 hardcode_libdir_separator=: 9886 ;; 9887 9888 solaris*) 9889 no_undefined_flag=' -z defs' 9890 if test "$GCC" = yes; then 9891 wlarc='${wl}' 9892 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9893 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9894 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9895 else 9896 case `$CC -V 2>&1` in 9897 *"Compilers 5.0"*) 9898 wlarc='' 9899 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9900 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9901 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9902 ;; 9903 *) 9904 wlarc='${wl}' 9905 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9906 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9907 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9908 ;; 9909 esac 9910 fi 9911 hardcode_libdir_flag_spec='-R$libdir' 9912 hardcode_shlibpath_var=no 9913 case $host_os in 9914 solaris2.[0-5] | solaris2.[0-5].*) ;; 9915 *) 9916 # The compiler driver will combine and reorder linker options, 9917 # but understands `-z linker_flag'. GCC discards it without `$wl', 9918 # but is careful enough not to reorder. 9919 # Supported since Solaris 2.6 (maybe 2.5.1?) 9920 if test "$GCC" = yes; then 9921 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9922 else 9923 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9924 fi 9925 ;; 9926 esac 9927 link_all_deplibs=yes 9928 ;; 9929 9930 sunos4*) 9931 if test "x$host_vendor" = xsequent; then 9932 # Use $CC to link under sequent, because it throws in some extra .o 9933 # files that make .init and .fini sections work. 9934 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9935 else 9936 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9937 fi 9938 hardcode_libdir_flag_spec='-L$libdir' 9939 hardcode_direct=yes 9940 hardcode_minus_L=yes 9941 hardcode_shlibpath_var=no 9942 ;; 9943 9944 sysv4) 9945 case $host_vendor in 9946 sni) 9947 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9948 hardcode_direct=yes # is this really true??? 9949 ;; 9950 siemens) 9951 ## LD is ld it makes a PLAMLIB 9952 ## CC just makes a GrossModule. 9953 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9954 reload_cmds='$CC -r -o $output$reload_objs' 9955 hardcode_direct=no 9956 ;; 9957 motorola) 9958 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9959 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9960 ;; 9961 esac 9962 runpath_var='LD_RUN_PATH' 9963 hardcode_shlibpath_var=no 9964 ;; 9965 9966 sysv4.3*) 9967 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9968 hardcode_shlibpath_var=no 9969 export_dynamic_flag_spec='-Bexport' 9970 ;; 9971 9972 sysv4*MP*) 9973 if test -d /usr/nec; then 9974 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9975 hardcode_shlibpath_var=no 9976 runpath_var=LD_RUN_PATH 9977 hardcode_runpath_var=yes 9978 ld_shlibs=yes 9979 fi 9980 ;; 9981 9982 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9983 no_undefined_flag='${wl}-z,text' 9984 archive_cmds_need_lc=no 9985 hardcode_shlibpath_var=no 9986 runpath_var='LD_RUN_PATH' 9987 9988 if test "$GCC" = yes; then 9989 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9990 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9991 else 9992 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9993 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9994 fi 9995 ;; 9996 9997 sysv5* | sco3.2v5* | sco5v6*) 9998 # Note: We can NOT use -z defs as we might desire, because we do not 9999 # link with -lc, and that would cause any symbols used from libc to 10000 # always be unresolved, which means just about no library would 10001 # ever link correctly. If we're not using GNU ld we use -z text 10002 # though, which does catch some bad symbols but isn't as heavy-handed 10003 # as -z defs. 10004 no_undefined_flag='${wl}-z,text' 10005 allow_undefined_flag='${wl}-z,nodefs' 10006 archive_cmds_need_lc=no 10007 hardcode_shlibpath_var=no 10008 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10009 hardcode_libdir_separator=':' 10010 link_all_deplibs=yes 10011 export_dynamic_flag_spec='${wl}-Bexport' 10012 runpath_var='LD_RUN_PATH' 10013 10014 if test "$GCC" = yes; then 10015 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10016 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10017 else 10018 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10019 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10020 fi 10021 ;; 10022 10023 uts4*) 10024 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10025 hardcode_libdir_flag_spec='-L$libdir' 10026 hardcode_shlibpath_var=no 10027 ;; 10028 10029 *) 10030 ld_shlibs=no 10031 ;; 10032 esac 10033 10034 if test x$host_vendor = xsni; then 10035 case $host in 10036 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10037 export_dynamic_flag_spec='${wl}-Blargedynsym' 10038 ;; 10039 esac 10040 fi 10041 fi 10042 10043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10044$as_echo "$ld_shlibs" >&6; } 10045test "$ld_shlibs" = no && can_build_shared=no 10046 10047with_gnu_ld=$with_gnu_ld 10048 10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063# 10064# Do we need to explicitly link libc? 10065# 10066case "x$archive_cmds_need_lc" in 10067x|xyes) 10068 # Assume -lc should be added 10069 archive_cmds_need_lc=yes 10070 10071 if test "$enable_shared" = yes && test "$GCC" = yes; then 10072 case $archive_cmds in 10073 *'~'*) 10074 # FIXME: we may have to deal with multi-command sequences. 10075 ;; 10076 '$CC '*) 10077 # Test whether the compiler implicitly links with -lc since on some 10078 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10079 # to ld, don't add -lc before -lgcc. 10080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10081$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10082if ${lt_cv_archive_cmds_need_lc+:} false; then : 10083 $as_echo_n "(cached) " >&6 10084else 10085 $RM conftest* 10086 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10087 10088 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10089 (eval $ac_compile) 2>&5 10090 ac_status=$? 10091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10092 test $ac_status = 0; } 2>conftest.err; then 10093 soname=conftest 10094 lib=conftest 10095 libobjs=conftest.$ac_objext 10096 deplibs= 10097 wl=$lt_prog_compiler_wl 10098 pic_flag=$lt_prog_compiler_pic 10099 compiler_flags=-v 10100 linker_flags=-v 10101 verstring= 10102 output_objdir=. 10103 libname=conftest 10104 lt_save_allow_undefined_flag=$allow_undefined_flag 10105 allow_undefined_flag= 10106 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10107 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10108 ac_status=$? 10109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10110 test $ac_status = 0; } 10111 then 10112 lt_cv_archive_cmds_need_lc=no 10113 else 10114 lt_cv_archive_cmds_need_lc=yes 10115 fi 10116 allow_undefined_flag=$lt_save_allow_undefined_flag 10117 else 10118 cat conftest.err 1>&5 10119 fi 10120 $RM conftest* 10121 10122fi 10123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10124$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10125 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10126 ;; 10127 esac 10128 fi 10129 ;; 10130esac 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10289$as_echo_n "checking dynamic linker characteristics... " >&6; } 10290 10291if test "$GCC" = yes; then 10292 case $host_os in 10293 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10294 *) lt_awk_arg="/^libraries:/" ;; 10295 esac 10296 case $host_os in 10297 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10298 *) lt_sed_strip_eq="s,=/,/,g" ;; 10299 esac 10300 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10301 case $lt_search_path_spec in 10302 *\;*) 10303 # if the path contains ";" then we assume it to be the separator 10304 # otherwise default to the standard path separator (i.e. ":") - it is 10305 # assumed that no part of a normal pathname contains ";" but that should 10306 # okay in the real world where ";" in dirpaths is itself problematic. 10307 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10308 ;; 10309 *) 10310 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10311 ;; 10312 esac 10313 # Ok, now we have the path, separated by spaces, we can step through it 10314 # and add multilib dir if necessary. 10315 lt_tmp_lt_search_path_spec= 10316 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10317 for lt_sys_path in $lt_search_path_spec; do 10318 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10319 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10320 else 10321 test -d "$lt_sys_path" && \ 10322 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10323 fi 10324 done 10325 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10326BEGIN {RS=" "; FS="/|\n";} { 10327 lt_foo=""; 10328 lt_count=0; 10329 for (lt_i = NF; lt_i > 0; lt_i--) { 10330 if ($lt_i != "" && $lt_i != ".") { 10331 if ($lt_i == "..") { 10332 lt_count++; 10333 } else { 10334 if (lt_count == 0) { 10335 lt_foo="/" $lt_i lt_foo; 10336 } else { 10337 lt_count--; 10338 } 10339 } 10340 } 10341 } 10342 if (lt_foo != "") { lt_freq[lt_foo]++; } 10343 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10344}'` 10345 # AWK program above erroneously prepends '/' to C:/dos/paths 10346 # for these hosts. 10347 case $host_os in 10348 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10349 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10350 esac 10351 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10352else 10353 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10354fi 10355library_names_spec= 10356libname_spec='lib$name' 10357soname_spec= 10358shrext_cmds=".so" 10359postinstall_cmds= 10360postuninstall_cmds= 10361finish_cmds= 10362finish_eval= 10363shlibpath_var= 10364shlibpath_overrides_runpath=unknown 10365version_type=none 10366dynamic_linker="$host_os ld.so" 10367sys_lib_dlsearch_path_spec="/lib /usr/lib" 10368need_lib_prefix=unknown 10369hardcode_into_libs=no 10370 10371# when you set need_version to no, make sure it does not cause -set_version 10372# flags to be left without arguments 10373need_version=unknown 10374 10375case $host_os in 10376aix3*) 10377 version_type=linux 10378 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10379 shlibpath_var=LIBPATH 10380 10381 # AIX 3 has no versioning support, so we append a major version to the name. 10382 soname_spec='${libname}${release}${shared_ext}$major' 10383 ;; 10384 10385aix[4-9]*) 10386 version_type=linux 10387 need_lib_prefix=no 10388 need_version=no 10389 hardcode_into_libs=yes 10390 if test "$host_cpu" = ia64; then 10391 # AIX 5 supports IA64 10392 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10393 shlibpath_var=LD_LIBRARY_PATH 10394 else 10395 # With GCC up to 2.95.x, collect2 would create an import file 10396 # for dependence libraries. The import file would start with 10397 # the line `#! .'. This would cause the generated library to 10398 # depend on `.', always an invalid library. This was fixed in 10399 # development snapshots of GCC prior to 3.0. 10400 case $host_os in 10401 aix4 | aix4.[01] | aix4.[01].*) 10402 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10403 echo ' yes ' 10404 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10405 : 10406 else 10407 can_build_shared=no 10408 fi 10409 ;; 10410 esac 10411 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10412 # soname into executable. Probably we can add versioning support to 10413 # collect2, so additional links can be useful in future. 10414 if test "$aix_use_runtimelinking" = yes; then 10415 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10416 # instead of lib<name>.a to let people know that these are not 10417 # typical AIX shared libraries. 10418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10419 else 10420 # We preserve .a as extension for shared libraries through AIX4.2 10421 # and later when we are not doing run time linking. 10422 library_names_spec='${libname}${release}.a $libname.a' 10423 soname_spec='${libname}${release}${shared_ext}$major' 10424 fi 10425 shlibpath_var=LIBPATH 10426 fi 10427 ;; 10428 10429amigaos*) 10430 case $host_cpu in 10431 powerpc) 10432 # Since July 2007 AmigaOS4 officially supports .so libraries. 10433 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10435 ;; 10436 m68k) 10437 library_names_spec='$libname.ixlibrary $libname.a' 10438 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10439 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 10440 ;; 10441 esac 10442 ;; 10443 10444beos*) 10445 library_names_spec='${libname}${shared_ext}' 10446 dynamic_linker="$host_os ld.so" 10447 shlibpath_var=LIBRARY_PATH 10448 ;; 10449 10450bsdi[45]*) 10451 version_type=linux 10452 need_version=no 10453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10454 soname_spec='${libname}${release}${shared_ext}$major' 10455 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10456 shlibpath_var=LD_LIBRARY_PATH 10457 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10458 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10459 # the default ld.so.conf also contains /usr/contrib/lib and 10460 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10461 # libtool to hard-code these into programs 10462 ;; 10463 10464cygwin* | mingw* | pw32* | cegcc*) 10465 version_type=windows 10466 shrext_cmds=".dll" 10467 need_version=no 10468 need_lib_prefix=no 10469 10470 case $GCC,$host_os in 10471 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 10472 library_names_spec='$libname.dll.a' 10473 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10474 postinstall_cmds='base_file=`basename \${file}`~ 10475 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10476 dldir=$destdir/`dirname \$dlpath`~ 10477 test -d \$dldir || mkdir -p \$dldir~ 10478 $install_prog $dir/$dlname \$dldir/$dlname~ 10479 chmod a+x \$dldir/$dlname~ 10480 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10481 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10482 fi' 10483 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10484 dlpath=$dir/\$dldll~ 10485 $RM \$dlpath' 10486 shlibpath_overrides_runpath=yes 10487 10488 case $host_os in 10489 cygwin*) 10490 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10491 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10492 10493 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10494 ;; 10495 mingw* | cegcc*) 10496 # MinGW DLLs use traditional 'lib' prefix 10497 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10498 ;; 10499 pw32*) 10500 # pw32 DLLs use 'pw' prefix rather than 'lib' 10501 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10502 ;; 10503 esac 10504 ;; 10505 10506 *) 10507 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10508 ;; 10509 esac 10510 dynamic_linker='Win32 ld.exe' 10511 # FIXME: first we should search . and the directory the executable is in 10512 shlibpath_var=PATH 10513 ;; 10514 10515darwin* | rhapsody*) 10516 dynamic_linker="$host_os dyld" 10517 version_type=darwin 10518 need_lib_prefix=no 10519 need_version=no 10520 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10521 soname_spec='${libname}${release}${major}$shared_ext' 10522 shlibpath_overrides_runpath=yes 10523 shlibpath_var=DYLD_LIBRARY_PATH 10524 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10525 10526 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10527 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10528 ;; 10529 10530dgux*) 10531 version_type=linux 10532 need_lib_prefix=no 10533 need_version=no 10534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10535 soname_spec='${libname}${release}${shared_ext}$major' 10536 shlibpath_var=LD_LIBRARY_PATH 10537 ;; 10538 10539freebsd* | dragonfly*) 10540 # DragonFly does not have aout. When/if they implement a new 10541 # versioning mechanism, adjust this. 10542 if test -x /usr/bin/objformat; then 10543 objformat=`/usr/bin/objformat` 10544 else 10545 case $host_os in 10546 freebsd[23].*) objformat=aout ;; 10547 *) objformat=elf ;; 10548 esac 10549 fi 10550 version_type=freebsd-$objformat 10551 case $version_type in 10552 freebsd-elf*) 10553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10554 need_version=no 10555 need_lib_prefix=no 10556 ;; 10557 freebsd-*) 10558 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10559 need_version=yes 10560 ;; 10561 esac 10562 shlibpath_var=LD_LIBRARY_PATH 10563 case $host_os in 10564 freebsd2.*) 10565 shlibpath_overrides_runpath=yes 10566 ;; 10567 freebsd3.[01]* | freebsdelf3.[01]*) 10568 shlibpath_overrides_runpath=yes 10569 hardcode_into_libs=yes 10570 ;; 10571 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10572 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10573 shlibpath_overrides_runpath=no 10574 hardcode_into_libs=yes 10575 ;; 10576 *) # from 4.6 on, and DragonFly 10577 shlibpath_overrides_runpath=yes 10578 hardcode_into_libs=yes 10579 ;; 10580 esac 10581 ;; 10582 10583gnu*) 10584 version_type=linux 10585 need_lib_prefix=no 10586 need_version=no 10587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10588 soname_spec='${libname}${release}${shared_ext}$major' 10589 shlibpath_var=LD_LIBRARY_PATH 10590 hardcode_into_libs=yes 10591 ;; 10592 10593haiku*) 10594 version_type=linux 10595 need_lib_prefix=no 10596 need_version=no 10597 dynamic_linker="$host_os runtime_loader" 10598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10599 soname_spec='${libname}${release}${shared_ext}$major' 10600 shlibpath_var=LIBRARY_PATH 10601 shlibpath_overrides_runpath=yes 10602 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' 10603 hardcode_into_libs=yes 10604 ;; 10605 10606hpux9* | hpux10* | hpux11*) 10607 # Give a soname corresponding to the major version so that dld.sl refuses to 10608 # link against other versions. 10609 version_type=sunos 10610 need_lib_prefix=no 10611 need_version=no 10612 case $host_cpu in 10613 ia64*) 10614 shrext_cmds='.so' 10615 hardcode_into_libs=yes 10616 dynamic_linker="$host_os dld.so" 10617 shlibpath_var=LD_LIBRARY_PATH 10618 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10620 soname_spec='${libname}${release}${shared_ext}$major' 10621 if test "X$HPUX_IA64_MODE" = X32; then 10622 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10623 else 10624 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10625 fi 10626 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10627 ;; 10628 hppa*64*) 10629 shrext_cmds='.sl' 10630 hardcode_into_libs=yes 10631 dynamic_linker="$host_os dld.sl" 10632 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10633 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10635 soname_spec='${libname}${release}${shared_ext}$major' 10636 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10637 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10638 ;; 10639 *) 10640 shrext_cmds='.sl' 10641 dynamic_linker="$host_os dld.sl" 10642 shlibpath_var=SHLIB_PATH 10643 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10645 soname_spec='${libname}${release}${shared_ext}$major' 10646 ;; 10647 esac 10648 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10649 postinstall_cmds='chmod 555 $lib' 10650 # or fails outright, so override atomically: 10651 install_override_mode=555 10652 ;; 10653 10654interix[3-9]*) 10655 version_type=linux 10656 need_lib_prefix=no 10657 need_version=no 10658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10659 soname_spec='${libname}${release}${shared_ext}$major' 10660 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10661 shlibpath_var=LD_LIBRARY_PATH 10662 shlibpath_overrides_runpath=no 10663 hardcode_into_libs=yes 10664 ;; 10665 10666irix5* | irix6* | nonstopux*) 10667 case $host_os in 10668 nonstopux*) version_type=nonstopux ;; 10669 *) 10670 if test "$lt_cv_prog_gnu_ld" = yes; then 10671 version_type=linux 10672 else 10673 version_type=irix 10674 fi ;; 10675 esac 10676 need_lib_prefix=no 10677 need_version=no 10678 soname_spec='${libname}${release}${shared_ext}$major' 10679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10680 case $host_os in 10681 irix5* | nonstopux*) 10682 libsuff= shlibsuff= 10683 ;; 10684 *) 10685 case $LD in # libtool.m4 will add one of these switches to LD 10686 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10687 libsuff= shlibsuff= libmagic=32-bit;; 10688 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10689 libsuff=32 shlibsuff=N32 libmagic=N32;; 10690 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10691 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10692 *) libsuff= shlibsuff= libmagic=never-match;; 10693 esac 10694 ;; 10695 esac 10696 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10697 shlibpath_overrides_runpath=no 10698 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10699 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10700 hardcode_into_libs=yes 10701 ;; 10702 10703# No shared lib support for Linux oldld, aout, or coff. 10704linux*oldld* | linux*aout* | linux*coff*) 10705 dynamic_linker=no 10706 ;; 10707 10708# This must be Linux ELF. 10709linux* | k*bsd*-gnu | kopensolaris*-gnu) 10710 version_type=linux 10711 need_lib_prefix=no 10712 need_version=no 10713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10714 soname_spec='${libname}${release}${shared_ext}$major' 10715 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10716 shlibpath_var=LD_LIBRARY_PATH 10717 shlibpath_overrides_runpath=no 10718 10719 # Some binutils ld are patched to set DT_RUNPATH 10720 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10721 $as_echo_n "(cached) " >&6 10722else 10723 lt_cv_shlibpath_overrides_runpath=no 10724 save_LDFLAGS=$LDFLAGS 10725 save_libdir=$libdir 10726 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10727 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10729/* end confdefs.h. */ 10730 10731int 10732main () 10733{ 10734 10735 ; 10736 return 0; 10737} 10738_ACEOF 10739if ac_fn_c_try_link "$LINENO"; then : 10740 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10741 lt_cv_shlibpath_overrides_runpath=yes 10742fi 10743fi 10744rm -f core conftest.err conftest.$ac_objext \ 10745 conftest$ac_exeext conftest.$ac_ext 10746 LDFLAGS=$save_LDFLAGS 10747 libdir=$save_libdir 10748 10749fi 10750 10751 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10752 10753 # This implies no fast_install, which is unacceptable. 10754 # Some rework will be needed to allow for fast_install 10755 # before this can be enabled. 10756 hardcode_into_libs=yes 10757 10758 # Append ld.so.conf contents to the search path 10759 if test -f /etc/ld.so.conf; then 10760 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' ' '` 10761 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10762 fi 10763 10764 # We used to test for /lib/ld.so.1 and disable shared libraries on 10765 # powerpc, because MkLinux only supported shared libraries with the 10766 # GNU dynamic linker. Since this was broken with cross compilers, 10767 # most powerpc-linux boxes support dynamic linking these days and 10768 # people can always --disable-shared, the test was removed, and we 10769 # assume the GNU/Linux dynamic linker is in use. 10770 dynamic_linker='GNU/Linux ld.so' 10771 ;; 10772 10773netbsd*) 10774 version_type=sunos 10775 need_lib_prefix=no 10776 need_version=no 10777 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10779 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10780 dynamic_linker='NetBSD (a.out) ld.so' 10781 else 10782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10783 soname_spec='${libname}${release}${shared_ext}$major' 10784 dynamic_linker='NetBSD ld.elf_so' 10785 fi 10786 shlibpath_var=LD_LIBRARY_PATH 10787 shlibpath_overrides_runpath=yes 10788 hardcode_into_libs=yes 10789 ;; 10790 10791newsos6) 10792 version_type=linux 10793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10794 shlibpath_var=LD_LIBRARY_PATH 10795 shlibpath_overrides_runpath=yes 10796 ;; 10797 10798*nto* | *qnx*) 10799 version_type=qnx 10800 need_lib_prefix=no 10801 need_version=no 10802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10803 soname_spec='${libname}${release}${shared_ext}$major' 10804 shlibpath_var=LD_LIBRARY_PATH 10805 shlibpath_overrides_runpath=no 10806 hardcode_into_libs=yes 10807 dynamic_linker='ldqnx.so' 10808 ;; 10809 10810openbsd*) 10811 version_type=sunos 10812 sys_lib_dlsearch_path_spec="/usr/lib" 10813 need_lib_prefix=no 10814 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10815 case $host_os in 10816 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10817 *) need_version=no ;; 10818 esac 10819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10820 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10821 shlibpath_var=LD_LIBRARY_PATH 10822 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10823 case $host_os in 10824 openbsd2.[89] | openbsd2.[89].*) 10825 shlibpath_overrides_runpath=no 10826 ;; 10827 *) 10828 shlibpath_overrides_runpath=yes 10829 ;; 10830 esac 10831 else 10832 shlibpath_overrides_runpath=yes 10833 fi 10834 ;; 10835 10836os2*) 10837 libname_spec='$name' 10838 shrext_cmds=".dll" 10839 need_lib_prefix=no 10840 library_names_spec='$libname${shared_ext} $libname.a' 10841 dynamic_linker='OS/2 ld.exe' 10842 shlibpath_var=LIBPATH 10843 ;; 10844 10845osf3* | osf4* | osf5*) 10846 version_type=osf 10847 need_lib_prefix=no 10848 need_version=no 10849 soname_spec='${libname}${release}${shared_ext}$major' 10850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10851 shlibpath_var=LD_LIBRARY_PATH 10852 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10853 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10854 ;; 10855 10856rdos*) 10857 dynamic_linker=no 10858 ;; 10859 10860solaris*) 10861 version_type=linux 10862 need_lib_prefix=no 10863 need_version=no 10864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10865 soname_spec='${libname}${release}${shared_ext}$major' 10866 shlibpath_var=LD_LIBRARY_PATH 10867 shlibpath_overrides_runpath=yes 10868 hardcode_into_libs=yes 10869 # ldd complains unless libraries are executable 10870 postinstall_cmds='chmod +x $lib' 10871 ;; 10872 10873sunos4*) 10874 version_type=sunos 10875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10876 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10877 shlibpath_var=LD_LIBRARY_PATH 10878 shlibpath_overrides_runpath=yes 10879 if test "$with_gnu_ld" = yes; then 10880 need_lib_prefix=no 10881 fi 10882 need_version=yes 10883 ;; 10884 10885sysv4 | sysv4.3*) 10886 version_type=linux 10887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10888 soname_spec='${libname}${release}${shared_ext}$major' 10889 shlibpath_var=LD_LIBRARY_PATH 10890 case $host_vendor in 10891 sni) 10892 shlibpath_overrides_runpath=no 10893 need_lib_prefix=no 10894 runpath_var=LD_RUN_PATH 10895 ;; 10896 siemens) 10897 need_lib_prefix=no 10898 ;; 10899 motorola) 10900 need_lib_prefix=no 10901 need_version=no 10902 shlibpath_overrides_runpath=no 10903 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10904 ;; 10905 esac 10906 ;; 10907 10908sysv4*MP*) 10909 if test -d /usr/nec ;then 10910 version_type=linux 10911 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10912 soname_spec='$libname${shared_ext}.$major' 10913 shlibpath_var=LD_LIBRARY_PATH 10914 fi 10915 ;; 10916 10917sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10918 version_type=freebsd-elf 10919 need_lib_prefix=no 10920 need_version=no 10921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10922 soname_spec='${libname}${release}${shared_ext}$major' 10923 shlibpath_var=LD_LIBRARY_PATH 10924 shlibpath_overrides_runpath=yes 10925 hardcode_into_libs=yes 10926 if test "$with_gnu_ld" = yes; then 10927 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10928 else 10929 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10930 case $host_os in 10931 sco3.2v5*) 10932 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10933 ;; 10934 esac 10935 fi 10936 sys_lib_dlsearch_path_spec='/usr/lib' 10937 ;; 10938 10939tpf*) 10940 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10941 version_type=linux 10942 need_lib_prefix=no 10943 need_version=no 10944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10945 shlibpath_var=LD_LIBRARY_PATH 10946 shlibpath_overrides_runpath=no 10947 hardcode_into_libs=yes 10948 ;; 10949 10950uts4*) 10951 version_type=linux 10952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10953 soname_spec='${libname}${release}${shared_ext}$major' 10954 shlibpath_var=LD_LIBRARY_PATH 10955 ;; 10956 10957*) 10958 dynamic_linker=no 10959 ;; 10960esac 10961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10962$as_echo "$dynamic_linker" >&6; } 10963test "$dynamic_linker" = no && can_build_shared=no 10964 10965variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10966if test "$GCC" = yes; then 10967 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10968fi 10969 10970if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10971 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10972fi 10973if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10974 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10975fi 10976 10977 10978 10979 10980 10981 10982 10983 10984 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 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066 11067 11068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11069$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11070hardcode_action= 11071if test -n "$hardcode_libdir_flag_spec" || 11072 test -n "$runpath_var" || 11073 test "X$hardcode_automatic" = "Xyes" ; then 11074 11075 # We can hardcode non-existent directories. 11076 if test "$hardcode_direct" != no && 11077 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11078 # have to relink, otherwise we might link with an installed library 11079 # when we should be linking with a yet-to-be-installed one 11080 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11081 test "$hardcode_minus_L" != no; then 11082 # Linking always hardcodes the temporary library directory. 11083 hardcode_action=relink 11084 else 11085 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11086 hardcode_action=immediate 11087 fi 11088else 11089 # We cannot hardcode anything, or else we can only hardcode existing 11090 # directories. 11091 hardcode_action=unsupported 11092fi 11093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11094$as_echo "$hardcode_action" >&6; } 11095 11096if test "$hardcode_action" = relink || 11097 test "$inherit_rpath" = yes; then 11098 # Fast installation is not supported 11099 enable_fast_install=no 11100elif test "$shlibpath_overrides_runpath" = yes || 11101 test "$enable_shared" = no; then 11102 # Fast installation is not necessary 11103 enable_fast_install=needless 11104fi 11105 11106 11107 11108 11109 11110 11111 if test "x$enable_dlopen" != xyes; then 11112 enable_dlopen=unknown 11113 enable_dlopen_self=unknown 11114 enable_dlopen_self_static=unknown 11115else 11116 lt_cv_dlopen=no 11117 lt_cv_dlopen_libs= 11118 11119 case $host_os in 11120 beos*) 11121 lt_cv_dlopen="load_add_on" 11122 lt_cv_dlopen_libs= 11123 lt_cv_dlopen_self=yes 11124 ;; 11125 11126 mingw* | pw32* | cegcc*) 11127 lt_cv_dlopen="LoadLibrary" 11128 lt_cv_dlopen_libs= 11129 ;; 11130 11131 cygwin*) 11132 lt_cv_dlopen="dlopen" 11133 lt_cv_dlopen_libs= 11134 ;; 11135 11136 darwin*) 11137 # if libdl is installed we need to link against it 11138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11139$as_echo_n "checking for dlopen in -ldl... " >&6; } 11140if ${ac_cv_lib_dl_dlopen+:} false; then : 11141 $as_echo_n "(cached) " >&6 11142else 11143 ac_check_lib_save_LIBS=$LIBS 11144LIBS="-ldl $LIBS" 11145cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11146/* end confdefs.h. */ 11147 11148/* Override any GCC internal prototype to avoid an error. 11149 Use char because int might match the return type of a GCC 11150 builtin and then its argument prototype would still apply. */ 11151#ifdef __cplusplus 11152extern "C" 11153#endif 11154char dlopen (); 11155int 11156main () 11157{ 11158return dlopen (); 11159 ; 11160 return 0; 11161} 11162_ACEOF 11163if ac_fn_c_try_link "$LINENO"; then : 11164 ac_cv_lib_dl_dlopen=yes 11165else 11166 ac_cv_lib_dl_dlopen=no 11167fi 11168rm -f core conftest.err conftest.$ac_objext \ 11169 conftest$ac_exeext conftest.$ac_ext 11170LIBS=$ac_check_lib_save_LIBS 11171fi 11172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11173$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11174if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11175 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11176else 11177 11178 lt_cv_dlopen="dyld" 11179 lt_cv_dlopen_libs= 11180 lt_cv_dlopen_self=yes 11181 11182fi 11183 11184 ;; 11185 11186 *) 11187 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11188if test "x$ac_cv_func_shl_load" = xyes; then : 11189 lt_cv_dlopen="shl_load" 11190else 11191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11192$as_echo_n "checking for shl_load in -ldld... " >&6; } 11193if ${ac_cv_lib_dld_shl_load+:} false; then : 11194 $as_echo_n "(cached) " >&6 11195else 11196 ac_check_lib_save_LIBS=$LIBS 11197LIBS="-ldld $LIBS" 11198cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11199/* end confdefs.h. */ 11200 11201/* Override any GCC internal prototype to avoid an error. 11202 Use char because int might match the return type of a GCC 11203 builtin and then its argument prototype would still apply. */ 11204#ifdef __cplusplus 11205extern "C" 11206#endif 11207char shl_load (); 11208int 11209main () 11210{ 11211return shl_load (); 11212 ; 11213 return 0; 11214} 11215_ACEOF 11216if ac_fn_c_try_link "$LINENO"; then : 11217 ac_cv_lib_dld_shl_load=yes 11218else 11219 ac_cv_lib_dld_shl_load=no 11220fi 11221rm -f core conftest.err conftest.$ac_objext \ 11222 conftest$ac_exeext conftest.$ac_ext 11223LIBS=$ac_check_lib_save_LIBS 11224fi 11225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11226$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11227if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11228 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11229else 11230 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11231if test "x$ac_cv_func_dlopen" = xyes; then : 11232 lt_cv_dlopen="dlopen" 11233else 11234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11235$as_echo_n "checking for dlopen in -ldl... " >&6; } 11236if ${ac_cv_lib_dl_dlopen+:} false; then : 11237 $as_echo_n "(cached) " >&6 11238else 11239 ac_check_lib_save_LIBS=$LIBS 11240LIBS="-ldl $LIBS" 11241cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11242/* end confdefs.h. */ 11243 11244/* Override any GCC internal prototype to avoid an error. 11245 Use char because int might match the return type of a GCC 11246 builtin and then its argument prototype would still apply. */ 11247#ifdef __cplusplus 11248extern "C" 11249#endif 11250char dlopen (); 11251int 11252main () 11253{ 11254return dlopen (); 11255 ; 11256 return 0; 11257} 11258_ACEOF 11259if ac_fn_c_try_link "$LINENO"; then : 11260 ac_cv_lib_dl_dlopen=yes 11261else 11262 ac_cv_lib_dl_dlopen=no 11263fi 11264rm -f core conftest.err conftest.$ac_objext \ 11265 conftest$ac_exeext conftest.$ac_ext 11266LIBS=$ac_check_lib_save_LIBS 11267fi 11268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11269$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11270if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11271 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11272else 11273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11274$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11275if ${ac_cv_lib_svld_dlopen+:} false; then : 11276 $as_echo_n "(cached) " >&6 11277else 11278 ac_check_lib_save_LIBS=$LIBS 11279LIBS="-lsvld $LIBS" 11280cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11281/* end confdefs.h. */ 11282 11283/* Override any GCC internal prototype to avoid an error. 11284 Use char because int might match the return type of a GCC 11285 builtin and then its argument prototype would still apply. */ 11286#ifdef __cplusplus 11287extern "C" 11288#endif 11289char dlopen (); 11290int 11291main () 11292{ 11293return dlopen (); 11294 ; 11295 return 0; 11296} 11297_ACEOF 11298if ac_fn_c_try_link "$LINENO"; then : 11299 ac_cv_lib_svld_dlopen=yes 11300else 11301 ac_cv_lib_svld_dlopen=no 11302fi 11303rm -f core conftest.err conftest.$ac_objext \ 11304 conftest$ac_exeext conftest.$ac_ext 11305LIBS=$ac_check_lib_save_LIBS 11306fi 11307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11308$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11309if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11310 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11311else 11312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11313$as_echo_n "checking for dld_link in -ldld... " >&6; } 11314if ${ac_cv_lib_dld_dld_link+:} false; then : 11315 $as_echo_n "(cached) " >&6 11316else 11317 ac_check_lib_save_LIBS=$LIBS 11318LIBS="-ldld $LIBS" 11319cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11320/* end confdefs.h. */ 11321 11322/* Override any GCC internal prototype to avoid an error. 11323 Use char because int might match the return type of a GCC 11324 builtin and then its argument prototype would still apply. */ 11325#ifdef __cplusplus 11326extern "C" 11327#endif 11328char dld_link (); 11329int 11330main () 11331{ 11332return dld_link (); 11333 ; 11334 return 0; 11335} 11336_ACEOF 11337if ac_fn_c_try_link "$LINENO"; then : 11338 ac_cv_lib_dld_dld_link=yes 11339else 11340 ac_cv_lib_dld_dld_link=no 11341fi 11342rm -f core conftest.err conftest.$ac_objext \ 11343 conftest$ac_exeext conftest.$ac_ext 11344LIBS=$ac_check_lib_save_LIBS 11345fi 11346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11347$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11348if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11349 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11350fi 11351 11352 11353fi 11354 11355 11356fi 11357 11358 11359fi 11360 11361 11362fi 11363 11364 11365fi 11366 11367 ;; 11368 esac 11369 11370 if test "x$lt_cv_dlopen" != xno; then 11371 enable_dlopen=yes 11372 else 11373 enable_dlopen=no 11374 fi 11375 11376 case $lt_cv_dlopen in 11377 dlopen) 11378 save_CPPFLAGS="$CPPFLAGS" 11379 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11380 11381 save_LDFLAGS="$LDFLAGS" 11382 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11383 11384 save_LIBS="$LIBS" 11385 LIBS="$lt_cv_dlopen_libs $LIBS" 11386 11387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11388$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11389if ${lt_cv_dlopen_self+:} false; then : 11390 $as_echo_n "(cached) " >&6 11391else 11392 if test "$cross_compiling" = yes; then : 11393 lt_cv_dlopen_self=cross 11394else 11395 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11396 lt_status=$lt_dlunknown 11397 cat > conftest.$ac_ext <<_LT_EOF 11398#line 11398 "configure" 11399#include "confdefs.h" 11400 11401#if HAVE_DLFCN_H 11402#include <dlfcn.h> 11403#endif 11404 11405#include <stdio.h> 11406 11407#ifdef RTLD_GLOBAL 11408# define LT_DLGLOBAL RTLD_GLOBAL 11409#else 11410# ifdef DL_GLOBAL 11411# define LT_DLGLOBAL DL_GLOBAL 11412# else 11413# define LT_DLGLOBAL 0 11414# endif 11415#endif 11416 11417/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11418 find out it does not work in some platform. */ 11419#ifndef LT_DLLAZY_OR_NOW 11420# ifdef RTLD_LAZY 11421# define LT_DLLAZY_OR_NOW RTLD_LAZY 11422# else 11423# ifdef DL_LAZY 11424# define LT_DLLAZY_OR_NOW DL_LAZY 11425# else 11426# ifdef RTLD_NOW 11427# define LT_DLLAZY_OR_NOW RTLD_NOW 11428# else 11429# ifdef DL_NOW 11430# define LT_DLLAZY_OR_NOW DL_NOW 11431# else 11432# define LT_DLLAZY_OR_NOW 0 11433# endif 11434# endif 11435# endif 11436# endif 11437#endif 11438 11439/* When -fvisbility=hidden is used, assume the code has been annotated 11440 correspondingly for the symbols needed. */ 11441#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11442void fnord () __attribute__((visibility("default"))); 11443#endif 11444 11445void fnord () { int i=42; } 11446int main () 11447{ 11448 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11449 int status = $lt_dlunknown; 11450 11451 if (self) 11452 { 11453 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11454 else 11455 { 11456 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11457 else puts (dlerror ()); 11458 } 11459 /* dlclose (self); */ 11460 } 11461 else 11462 puts (dlerror ()); 11463 11464 return status; 11465} 11466_LT_EOF 11467 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11468 (eval $ac_link) 2>&5 11469 ac_status=$? 11470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11471 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11472 (./conftest; exit; ) >&5 2>/dev/null 11473 lt_status=$? 11474 case x$lt_status in 11475 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11476 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11477 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11478 esac 11479 else : 11480 # compilation failed 11481 lt_cv_dlopen_self=no 11482 fi 11483fi 11484rm -fr conftest* 11485 11486 11487fi 11488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11489$as_echo "$lt_cv_dlopen_self" >&6; } 11490 11491 if test "x$lt_cv_dlopen_self" = xyes; then 11492 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11494$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11495if ${lt_cv_dlopen_self_static+:} false; then : 11496 $as_echo_n "(cached) " >&6 11497else 11498 if test "$cross_compiling" = yes; then : 11499 lt_cv_dlopen_self_static=cross 11500else 11501 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11502 lt_status=$lt_dlunknown 11503 cat > conftest.$ac_ext <<_LT_EOF 11504#line 11504 "configure" 11505#include "confdefs.h" 11506 11507#if HAVE_DLFCN_H 11508#include <dlfcn.h> 11509#endif 11510 11511#include <stdio.h> 11512 11513#ifdef RTLD_GLOBAL 11514# define LT_DLGLOBAL RTLD_GLOBAL 11515#else 11516# ifdef DL_GLOBAL 11517# define LT_DLGLOBAL DL_GLOBAL 11518# else 11519# define LT_DLGLOBAL 0 11520# endif 11521#endif 11522 11523/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11524 find out it does not work in some platform. */ 11525#ifndef LT_DLLAZY_OR_NOW 11526# ifdef RTLD_LAZY 11527# define LT_DLLAZY_OR_NOW RTLD_LAZY 11528# else 11529# ifdef DL_LAZY 11530# define LT_DLLAZY_OR_NOW DL_LAZY 11531# else 11532# ifdef RTLD_NOW 11533# define LT_DLLAZY_OR_NOW RTLD_NOW 11534# else 11535# ifdef DL_NOW 11536# define LT_DLLAZY_OR_NOW DL_NOW 11537# else 11538# define LT_DLLAZY_OR_NOW 0 11539# endif 11540# endif 11541# endif 11542# endif 11543#endif 11544 11545/* When -fvisbility=hidden is used, assume the code has been annotated 11546 correspondingly for the symbols needed. */ 11547#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11548void fnord () __attribute__((visibility("default"))); 11549#endif 11550 11551void fnord () { int i=42; } 11552int main () 11553{ 11554 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11555 int status = $lt_dlunknown; 11556 11557 if (self) 11558 { 11559 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11560 else 11561 { 11562 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11563 else puts (dlerror ()); 11564 } 11565 /* dlclose (self); */ 11566 } 11567 else 11568 puts (dlerror ()); 11569 11570 return status; 11571} 11572_LT_EOF 11573 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11574 (eval $ac_link) 2>&5 11575 ac_status=$? 11576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11577 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11578 (./conftest; exit; ) >&5 2>/dev/null 11579 lt_status=$? 11580 case x$lt_status in 11581 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11582 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11583 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11584 esac 11585 else : 11586 # compilation failed 11587 lt_cv_dlopen_self_static=no 11588 fi 11589fi 11590rm -fr conftest* 11591 11592 11593fi 11594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11595$as_echo "$lt_cv_dlopen_self_static" >&6; } 11596 fi 11597 11598 CPPFLAGS="$save_CPPFLAGS" 11599 LDFLAGS="$save_LDFLAGS" 11600 LIBS="$save_LIBS" 11601 ;; 11602 esac 11603 11604 case $lt_cv_dlopen_self in 11605 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11606 *) enable_dlopen_self=unknown ;; 11607 esac 11608 11609 case $lt_cv_dlopen_self_static in 11610 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11611 *) enable_dlopen_self_static=unknown ;; 11612 esac 11613fi 11614 11615 11616 11617 11618 11619 11620 11621 11622 11623 11624 11625 11626 11627 11628 11629 11630 11631striplib= 11632old_striplib= 11633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11634$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11635if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11636 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11637 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11639$as_echo "yes" >&6; } 11640else 11641# FIXME - insert some real tests, host_os isn't really good enough 11642 case $host_os in 11643 darwin*) 11644 if test -n "$STRIP" ; then 11645 striplib="$STRIP -x" 11646 old_striplib="$STRIP -S" 11647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11648$as_echo "yes" >&6; } 11649 else 11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11651$as_echo "no" >&6; } 11652 fi 11653 ;; 11654 *) 11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11656$as_echo "no" >&6; } 11657 ;; 11658 esac 11659fi 11660 11661 11662 11663 11664 11665 11666 11667 11668 11669 11670 11671 11672 # Report which library types will actually be built 11673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11674$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11676$as_echo "$can_build_shared" >&6; } 11677 11678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11679$as_echo_n "checking whether to build shared libraries... " >&6; } 11680 test "$can_build_shared" = "no" && enable_shared=no 11681 11682 # On AIX, shared libraries and static libraries use the same namespace, and 11683 # are all built from PIC. 11684 case $host_os in 11685 aix3*) 11686 test "$enable_shared" = yes && enable_static=no 11687 if test -n "$RANLIB"; then 11688 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11689 postinstall_cmds='$RANLIB $lib' 11690 fi 11691 ;; 11692 11693 aix[4-9]*) 11694 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11695 test "$enable_shared" = yes && enable_static=no 11696 fi 11697 ;; 11698 esac 11699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11700$as_echo "$enable_shared" >&6; } 11701 11702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11703$as_echo_n "checking whether to build static libraries... " >&6; } 11704 # Make sure either enable_shared or enable_static is yes. 11705 test "$enable_shared" = yes || enable_static=yes 11706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11707$as_echo "$enable_static" >&6; } 11708 11709 11710 11711 11712fi 11713ac_ext=c 11714ac_cpp='$CPP $CPPFLAGS' 11715ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11716ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11717ac_compiler_gnu=$ac_cv_c_compiler_gnu 11718 11719CC="$lt_save_CC" 11720 11721 11722 11723 11724 11725 11726 11727 11728 11729 11730 11731 11732 11733 ac_config_commands="$ac_config_commands libtool" 11734 11735 11736 11737 11738# Only expand once: 11739 11740 11741 11742 11743 11744case $host in 11745 *-cygwin* | *-mingw*) 11746 # 'host' will be top-level target in the case of a target lib, 11747 # we must compare to with_cross_host to decide if this is a native 11748 # or cross-compiler and select where to install dlls appropriately. 11749 if test -n "$with_cross_host" && 11750 test x"$with_cross_host" != x"no"; then 11751 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"'; 11752 else 11753 lt_host_flags='-no-undefined -bindir "$(bindir)"'; 11754 fi 11755 ;; 11756 *) 11757 lt_host_flags= 11758 ;; 11759esac 11760 11761 11762 11763 11764 11765 11766 11767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 11768$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 11769 # Check whether --enable-maintainer-mode was given. 11770if test "${enable_maintainer_mode+set}" = set; then : 11771 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 11772else 11773 USE_MAINTAINER_MODE=no 11774fi 11775 11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 11777$as_echo "$USE_MAINTAINER_MODE" >&6; } 11778 if test $USE_MAINTAINER_MODE = yes; then 11779 MAINTAINER_MODE_TRUE= 11780 MAINTAINER_MODE_FALSE='#' 11781else 11782 MAINTAINER_MODE_TRUE='#' 11783 MAINTAINER_MODE_FALSE= 11784fi 11785 11786 MAINT=$MAINTAINER_MODE_TRUE 11787 11788 11789 11790# Create a spec file, so that compile/link tests don't fail 11791test -f libgfortran.spec || touch libgfortran.spec 11792FCFLAGS="$FCFLAGS -L." 11793 11794# We need gfortran to compile parts of the library 11795# We can't use AC_PROG_FC because it expects a fully working gfortran. 11796#AC_PROG_FC(gfortran) 11797case `echo $GFORTRAN` in 11798 -* | no* ) 11799 FC=no ;; 11800 *) 11801 set dummy $GFORTRAN; ac_word=$2 11802 if test -x "$ac_word"; then 11803 FC="$GFORTRAN" 11804 else 11805 FC=no 11806 fi ;; 11807esac 11808ac_ext=${ac_fc_srcext-f} 11809ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 11810ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 11811ac_compiler_gnu=$ac_cv_fc_compiler_gnu 11812if test -n "$ac_tool_prefix"; then 11813 for ac_prog in gfortran 11814 do 11815 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11816set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11818$as_echo_n "checking for $ac_word... " >&6; } 11819if ${ac_cv_prog_FC+:} false; then : 11820 $as_echo_n "(cached) " >&6 11821else 11822 if test -n "$FC"; then 11823 ac_cv_prog_FC="$FC" # Let the user override the test. 11824else 11825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11826for as_dir in $PATH 11827do 11828 IFS=$as_save_IFS 11829 test -z "$as_dir" && as_dir=. 11830 for ac_exec_ext in '' $ac_executable_extensions; do 11831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11832 ac_cv_prog_FC="$ac_tool_prefix$ac_prog" 11833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11834 break 2 11835 fi 11836done 11837 done 11838IFS=$as_save_IFS 11839 11840fi 11841fi 11842FC=$ac_cv_prog_FC 11843if test -n "$FC"; then 11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5 11845$as_echo "$FC" >&6; } 11846else 11847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11848$as_echo "no" >&6; } 11849fi 11850 11851 11852 test -n "$FC" && break 11853 done 11854fi 11855if test -z "$FC"; then 11856 ac_ct_FC=$FC 11857 for ac_prog in gfortran 11858do 11859 # Extract the first word of "$ac_prog", so it can be a program name with args. 11860set dummy $ac_prog; ac_word=$2 11861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11862$as_echo_n "checking for $ac_word... " >&6; } 11863if ${ac_cv_prog_ac_ct_FC+:} false; then : 11864 $as_echo_n "(cached) " >&6 11865else 11866 if test -n "$ac_ct_FC"; then 11867 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test. 11868else 11869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11870for as_dir in $PATH 11871do 11872 IFS=$as_save_IFS 11873 test -z "$as_dir" && as_dir=. 11874 for ac_exec_ext in '' $ac_executable_extensions; do 11875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11876 ac_cv_prog_ac_ct_FC="$ac_prog" 11877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11878 break 2 11879 fi 11880done 11881 done 11882IFS=$as_save_IFS 11883 11884fi 11885fi 11886ac_ct_FC=$ac_cv_prog_ac_ct_FC 11887if test -n "$ac_ct_FC"; then 11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5 11889$as_echo "$ac_ct_FC" >&6; } 11890else 11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11892$as_echo "no" >&6; } 11893fi 11894 11895 11896 test -n "$ac_ct_FC" && break 11897done 11898 11899 if test "x$ac_ct_FC" = x; then 11900 FC="" 11901 else 11902 case $cross_compiling:$ac_tool_warned in 11903yes:) 11904{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11905$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11906ac_tool_warned=yes ;; 11907esac 11908 FC=$ac_ct_FC 11909 fi 11910fi 11911 11912 11913# Provide some information about the compiler. 11914$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5 11915set X $ac_compile 11916ac_compiler=$2 11917for ac_option in --version -v -V -qversion; do 11918 { { ac_try="$ac_compiler $ac_option >&5" 11919case "(($ac_try" in 11920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11921 *) ac_try_echo=$ac_try;; 11922esac 11923eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 11924$as_echo "$ac_try_echo"; } >&5 11925 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 11926 ac_status=$? 11927 if test -s conftest.err; then 11928 sed '10a\ 11929... rest of stderr output deleted ... 11930 10q' conftest.err >conftest.er1 11931 cat conftest.er1 >&5 11932 fi 11933 rm -f conftest.er1 conftest.err 11934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11935 test $ac_status = 0; } 11936done 11937rm -f a.out 11938 11939# If we don't use `.F' as extension, the preprocessor is not run on the 11940# input file. (Note that this only needs to work for GNU compilers.) 11941ac_save_ext=$ac_ext 11942ac_ext=F 11943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5 11944$as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; } 11945if ${ac_cv_fc_compiler_gnu+:} false; then : 11946 $as_echo_n "(cached) " >&6 11947else 11948 cat > conftest.$ac_ext <<_ACEOF 11949 program main 11950#ifndef __GNUC__ 11951 choke me 11952#endif 11953 11954 end 11955_ACEOF 11956if ac_fn_fc_try_compile "$LINENO"; then : 11957 ac_compiler_gnu=yes 11958else 11959 ac_compiler_gnu=no 11960fi 11961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11962ac_cv_fc_compiler_gnu=$ac_compiler_gnu 11963 11964fi 11965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5 11966$as_echo "$ac_cv_fc_compiler_gnu" >&6; } 11967ac_ext=$ac_save_ext 11968ac_test_FCFLAGS=${FCFLAGS+set} 11969ac_save_FCFLAGS=$FCFLAGS 11970FCFLAGS= 11971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5 11972$as_echo_n "checking whether $FC accepts -g... " >&6; } 11973if ${ac_cv_prog_fc_g+:} false; then : 11974 $as_echo_n "(cached) " >&6 11975else 11976 FCFLAGS=-g 11977cat > conftest.$ac_ext <<_ACEOF 11978 program main 11979 11980 end 11981_ACEOF 11982if ac_fn_fc_try_compile "$LINENO"; then : 11983 ac_cv_prog_fc_g=yes 11984else 11985 ac_cv_prog_fc_g=no 11986fi 11987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11988 11989fi 11990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5 11991$as_echo "$ac_cv_prog_fc_g" >&6; } 11992if test "$ac_test_FCFLAGS" = set; then 11993 FCFLAGS=$ac_save_FCFLAGS 11994elif test $ac_cv_prog_fc_g = yes; then 11995 if test "x$ac_cv_fc_compiler_gnu" = xyes; then 11996 FCFLAGS="-g -O2" 11997 else 11998 FCFLAGS="-g" 11999 fi 12000else 12001 if test "x$ac_cv_fc_compiler_gnu" = xyes; then 12002 FCFLAGS="-O2" 12003 else 12004 FCFLAGS= 12005 fi 12006fi 12007 12008if test $ac_compiler_gnu = yes; then 12009 GFC=yes 12010else 12011 GFC= 12012fi 12013ac_ext=c 12014ac_cpp='$CPP $CPPFLAGS' 12015ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12016ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12017ac_compiler_gnu=$ac_cv_c_compiler_gnu 12018 12019 ac_ext=${ac_fc_srcext-f} 12020ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 12021ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 12022ac_compiler_gnu=$ac_cv_fc_compiler_gnu 12023 12024 12025if test -z "$FC" || test "X$FC" = "Xno"; then 12026 _lt_disable_FC=yes 12027fi 12028 12029archive_cmds_need_lc_FC=no 12030allow_undefined_flag_FC= 12031always_export_symbols_FC=no 12032archive_expsym_cmds_FC= 12033export_dynamic_flag_spec_FC= 12034hardcode_direct_FC=no 12035hardcode_direct_absolute_FC=no 12036hardcode_libdir_flag_spec_FC= 12037hardcode_libdir_flag_spec_ld_FC= 12038hardcode_libdir_separator_FC= 12039hardcode_minus_L_FC=no 12040hardcode_automatic_FC=no 12041inherit_rpath_FC=no 12042module_cmds_FC= 12043module_expsym_cmds_FC= 12044link_all_deplibs_FC=unknown 12045old_archive_cmds_FC=$old_archive_cmds 12046reload_flag_FC=$reload_flag 12047reload_cmds_FC=$reload_cmds 12048no_undefined_flag_FC= 12049whole_archive_flag_spec_FC= 12050enable_shared_with_static_runtimes_FC=no 12051 12052# Source file extension for fc test sources. 12053ac_ext=${ac_fc_srcext-f} 12054 12055# Object file extension for compiled fc test sources. 12056objext=o 12057objext_FC=$objext 12058 12059# No sense in running all these tests if we already determined that 12060# the FC compiler isn't working. Some variables (like enable_shared) 12061# are currently assumed to apply to all compilers on this platform, 12062# and will be corrupted by setting them based on a non-working compiler. 12063if test "$_lt_disable_FC" != yes; then 12064 # Code to be used in simple compile tests 12065 lt_simple_compile_test_code="\ 12066 subroutine t 12067 return 12068 end 12069" 12070 12071 # Code to be used in simple link tests 12072 lt_simple_link_test_code="\ 12073 program t 12074 end 12075" 12076 12077 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 12078 12079 12080 12081 12082 12083 12084# If no C compiler was specified, use CC. 12085LTCC=${LTCC-"$CC"} 12086 12087# If no C compiler flags were specified, use CFLAGS. 12088LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12089 12090# Allow CC to be a program name with arguments. 12091compiler=$CC 12092 12093 12094 # save warnings/boilerplate of simple test code 12095 ac_outfile=conftest.$ac_objext 12096echo "$lt_simple_compile_test_code" >conftest.$ac_ext 12097eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12098_lt_compiler_boilerplate=`cat conftest.err` 12099$RM conftest* 12100 12101 ac_outfile=conftest.$ac_objext 12102echo "$lt_simple_link_test_code" >conftest.$ac_ext 12103eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12104_lt_linker_boilerplate=`cat conftest.err` 12105$RM -r conftest* 12106 12107 12108 # Allow CC to be a program name with arguments. 12109 lt_save_CC="$CC" 12110 lt_save_GCC=$GCC 12111 CC=${FC-"f95"} 12112 compiler=$CC 12113 GCC=$ac_cv_fc_compiler_gnu 12114 12115 compiler_FC=$CC 12116 for cc_temp in $compiler""; do 12117 case $cc_temp in 12118 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 12119 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 12120 \-*) ;; 12121 *) break;; 12122 esac 12123done 12124cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 12125 12126 12127 if test -n "$compiler"; then 12128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12129$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12131$as_echo "$can_build_shared" >&6; } 12132 12133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12134$as_echo_n "checking whether to build shared libraries... " >&6; } 12135 test "$can_build_shared" = "no" && enable_shared=no 12136 12137 # On AIX, shared libraries and static libraries use the same namespace, and 12138 # are all built from PIC. 12139 case $host_os in 12140 aix3*) 12141 test "$enable_shared" = yes && enable_static=no 12142 if test -n "$RANLIB"; then 12143 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12144 postinstall_cmds='$RANLIB $lib' 12145 fi 12146 ;; 12147 aix[4-9]*) 12148 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 12149 test "$enable_shared" = yes && enable_static=no 12150 fi 12151 ;; 12152 esac 12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12154$as_echo "$enable_shared" >&6; } 12155 12156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12157$as_echo_n "checking whether to build static libraries... " >&6; } 12158 # Make sure either enable_shared or enable_static is yes. 12159 test "$enable_shared" = yes || enable_static=yes 12160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12161$as_echo "$enable_static" >&6; } 12162 12163 GCC_FC="$ac_cv_fc_compiler_gnu" 12164 LD_FC="$LD" 12165 12166 ## CAVEAT EMPTOR: 12167 ## There is no encapsulation within the following macros, do not change 12168 ## the running order or otherwise move them around unless you know exactly 12169 ## what you are doing... 12170 # Dependencies to place before and after the object being linked: 12171predep_objects_FC= 12172postdep_objects_FC= 12173predeps_FC= 12174postdeps_FC= 12175compiler_lib_search_path_FC= 12176 12177cat > conftest.$ac_ext <<_LT_EOF 12178 subroutine foo 12179 implicit none 12180 integer a 12181 a=0 12182 return 12183 end 12184_LT_EOF 12185 12186if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12187 (eval $ac_compile) 2>&5 12188 ac_status=$? 12189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12190 test $ac_status = 0; }; then 12191 # Parse the compiler output and extract the necessary 12192 # objects, libraries and library flags. 12193 12194 # Sentinel used to keep track of whether or not we are before 12195 # the conftest object file. 12196 pre_test_object_deps_done=no 12197 12198 for p in `eval "$output_verbose_link_cmd"`; do 12199 case $p in 12200 12201 -L* | -R* | -l*) 12202 # Some compilers place space between "-{L,R}" and the path. 12203 # Remove the space. 12204 if test $p = "-L" || 12205 test $p = "-R"; then 12206 prev=$p 12207 continue 12208 else 12209 prev= 12210 fi 12211 12212 if test "$pre_test_object_deps_done" = no; then 12213 case $p in 12214 -L* | -R*) 12215 # Internal compiler library paths should come after those 12216 # provided the user. The postdeps already come after the 12217 # user supplied libs so there is no need to process them. 12218 if test -z "$compiler_lib_search_path_FC"; then 12219 compiler_lib_search_path_FC="${prev}${p}" 12220 else 12221 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}" 12222 fi 12223 ;; 12224 # The "-l" case would never come before the object being 12225 # linked, so don't bother handling this case. 12226 esac 12227 else 12228 if test -z "$postdeps_FC"; then 12229 postdeps_FC="${prev}${p}" 12230 else 12231 postdeps_FC="${postdeps_FC} ${prev}${p}" 12232 fi 12233 fi 12234 ;; 12235 12236 *.$objext) 12237 # This assumes that the test object file only shows up 12238 # once in the compiler output. 12239 if test "$p" = "conftest.$objext"; then 12240 pre_test_object_deps_done=yes 12241 continue 12242 fi 12243 12244 if test "$pre_test_object_deps_done" = no; then 12245 if test -z "$predep_objects_FC"; then 12246 predep_objects_FC="$p" 12247 else 12248 predep_objects_FC="$predep_objects_FC $p" 12249 fi 12250 else 12251 if test -z "$postdep_objects_FC"; then 12252 postdep_objects_FC="$p" 12253 else 12254 postdep_objects_FC="$postdep_objects_FC $p" 12255 fi 12256 fi 12257 ;; 12258 12259 *) ;; # Ignore the rest. 12260 12261 esac 12262 done 12263 12264 # Clean up. 12265 rm -f a.out a.exe 12266else 12267 echo "libtool.m4: error: problem compiling FC test program" 12268fi 12269 12270$RM -f confest.$objext 12271 12272# PORTME: override above test on systems where it is broken 12273 12274 12275case " $postdeps_FC " in 12276*" -lc "*) archive_cmds_need_lc_FC=no ;; 12277esac 12278 compiler_lib_search_dirs_FC= 12279if test -n "${compiler_lib_search_path_FC}"; then 12280 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 12281fi 12282 12283 12284 12285 12286 12287 12288 12289 12290 12291 12292 12293 12294 12295 12296 12297 12298 12299 12300 12301 12302 12303 12304 12305 12306 12307 12308 12309 12310 12311 12312 12313 lt_prog_compiler_wl_FC= 12314lt_prog_compiler_pic_FC= 12315lt_prog_compiler_static_FC= 12316 12317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 12318$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 12319 12320 if test "$GCC" = yes; then 12321 lt_prog_compiler_wl_FC='-Wl,' 12322 lt_prog_compiler_static_FC='-static' 12323 12324 case $host_os in 12325 aix*) 12326 # All AIX code is PIC. 12327 if test "$host_cpu" = ia64; then 12328 # AIX 5 now supports IA64 processor 12329 lt_prog_compiler_static_FC='-Bstatic' 12330 fi 12331 lt_prog_compiler_pic_FC='-fPIC' 12332 ;; 12333 12334 amigaos*) 12335 case $host_cpu in 12336 powerpc) 12337 # see comment about AmigaOS4 .so support 12338 lt_prog_compiler_pic_FC='-fPIC' 12339 ;; 12340 m68k) 12341 # FIXME: we need at least 68020 code to build shared libraries, but 12342 # adding the `-m68020' flag to GCC prevents building anything better, 12343 # like `-m68040'. 12344 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4' 12345 ;; 12346 esac 12347 ;; 12348 12349 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12350 # PIC is the default for these OSes. 12351 ;; 12352 12353 mingw* | cygwin* | pw32* | os2* | cegcc*) 12354 # This hack is so that the source file can tell whether it is being 12355 # built for inclusion in a dll (and should export symbols for example). 12356 # Although the cygwin gcc ignores -fPIC, still need this for old-style 12357 # (--disable-auto-import) libraries 12358 lt_prog_compiler_pic_FC='-DDLL_EXPORT' 12359 ;; 12360 12361 darwin* | rhapsody*) 12362 # PIC is the default on this platform 12363 # Common symbols not allowed in MH_DYLIB files 12364 lt_prog_compiler_pic_FC='-fno-common' 12365 ;; 12366 12367 haiku*) 12368 # PIC is the default for Haiku. 12369 # The "-static" flag exists, but is broken. 12370 lt_prog_compiler_static_FC= 12371 ;; 12372 12373 hpux*) 12374 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 12375 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 12376 # sets the default TLS model and affects inlining. 12377 case $host_cpu in 12378 hppa*64*) 12379 # +Z the default 12380 ;; 12381 *) 12382 lt_prog_compiler_pic_FC='-fPIC' 12383 ;; 12384 esac 12385 ;; 12386 12387 interix[3-9]*) 12388 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12389 # Instead, we relocate shared libraries at runtime. 12390 ;; 12391 12392 msdosdjgpp*) 12393 # Just because we use GCC doesn't mean we suddenly get shared libraries 12394 # on systems that don't support them. 12395 lt_prog_compiler_can_build_shared_FC=no 12396 enable_shared=no 12397 ;; 12398 12399 *nto* | *qnx*) 12400 # QNX uses GNU C++, but need to define -shared option too, otherwise 12401 # it will coredump. 12402 lt_prog_compiler_pic_FC='-fPIC -shared' 12403 ;; 12404 12405 sysv4*MP*) 12406 if test -d /usr/nec; then 12407 lt_prog_compiler_pic_FC=-Kconform_pic 12408 fi 12409 ;; 12410 12411 *) 12412 lt_prog_compiler_pic_FC='-fPIC' 12413 ;; 12414 esac 12415 12416 case $cc_basename in 12417 nvcc*) # Cuda Compiler Driver 2.2 12418 lt_prog_compiler_wl_FC='-Xlinker ' 12419 lt_prog_compiler_pic_FC='-Xcompiler -fPIC' 12420 ;; 12421 esac 12422 else 12423 # PORTME Check for flag to pass linker flags through the system compiler. 12424 case $host_os in 12425 aix*) 12426 lt_prog_compiler_wl_FC='-Wl,' 12427 if test "$host_cpu" = ia64; then 12428 # AIX 5 now supports IA64 processor 12429 lt_prog_compiler_static_FC='-Bstatic' 12430 else 12431 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp' 12432 fi 12433 ;; 12434 12435 mingw* | cygwin* | pw32* | os2* | cegcc*) 12436 # This hack is so that the source file can tell whether it is being 12437 # built for inclusion in a dll (and should export symbols for example). 12438 lt_prog_compiler_pic_FC='-DDLL_EXPORT' 12439 ;; 12440 12441 hpux9* | hpux10* | hpux11*) 12442 lt_prog_compiler_wl_FC='-Wl,' 12443 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12444 # not for PA HP-UX. 12445 case $host_cpu in 12446 hppa*64*|ia64*) 12447 # +Z the default 12448 ;; 12449 *) 12450 lt_prog_compiler_pic_FC='+Z' 12451 ;; 12452 esac 12453 # Is there a better lt_prog_compiler_static that works with the bundled CC? 12454 lt_prog_compiler_static_FC='${wl}-a ${wl}archive' 12455 ;; 12456 12457 irix5* | irix6* | nonstopux*) 12458 lt_prog_compiler_wl_FC='-Wl,' 12459 # PIC (with -KPIC) is the default. 12460 lt_prog_compiler_static_FC='-non_shared' 12461 ;; 12462 12463 linux* | k*bsd*-gnu | kopensolaris*-gnu) 12464 case $cc_basename in 12465 # old Intel for x86_64 which still supported -KPIC. 12466 ecc*) 12467 lt_prog_compiler_wl_FC='-Wl,' 12468 lt_prog_compiler_pic_FC='-KPIC' 12469 lt_prog_compiler_static_FC='-static' 12470 ;; 12471 # icc used to be incompatible with GCC. 12472 # ICC 10 doesn't accept -KPIC any more. 12473 icc* | ifort*) 12474 lt_prog_compiler_wl_FC='-Wl,' 12475 lt_prog_compiler_pic_FC='-fPIC' 12476 lt_prog_compiler_static_FC='-static' 12477 ;; 12478 # Lahey Fortran 8.1. 12479 lf95*) 12480 lt_prog_compiler_wl_FC='-Wl,' 12481 lt_prog_compiler_pic_FC='--shared' 12482 lt_prog_compiler_static_FC='--static' 12483 ;; 12484 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 12485 # Portland Group compilers (*not* the Pentium gcc compiler, 12486 # which looks to be a dead project) 12487 lt_prog_compiler_wl_FC='-Wl,' 12488 lt_prog_compiler_pic_FC='-fpic' 12489 lt_prog_compiler_static_FC='-Bstatic' 12490 ;; 12491 ccc*) 12492 lt_prog_compiler_wl_FC='-Wl,' 12493 # All Alpha code is PIC. 12494 lt_prog_compiler_static_FC='-non_shared' 12495 ;; 12496 xl* | bgxl* | bgf* | mpixl*) 12497 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 12498 lt_prog_compiler_wl_FC='-Wl,' 12499 lt_prog_compiler_pic_FC='-qpic' 12500 lt_prog_compiler_static_FC='-qstaticlink' 12501 ;; 12502 *) 12503 case `$CC -V 2>&1 | sed 5q` in 12504 *Sun\ F* | *Sun*Fortran*) 12505 # Sun Fortran 8.3 passes all unrecognized flags to the linker 12506 lt_prog_compiler_pic_FC='-KPIC' 12507 lt_prog_compiler_static_FC='-Bstatic' 12508 lt_prog_compiler_wl_FC='' 12509 ;; 12510 *Sun\ C*) 12511 # Sun C 5.9 12512 lt_prog_compiler_pic_FC='-KPIC' 12513 lt_prog_compiler_static_FC='-Bstatic' 12514 lt_prog_compiler_wl_FC='-Wl,' 12515 ;; 12516 esac 12517 ;; 12518 esac 12519 ;; 12520 12521 newsos6) 12522 lt_prog_compiler_pic_FC='-KPIC' 12523 lt_prog_compiler_static_FC='-Bstatic' 12524 ;; 12525 12526 *nto* | *qnx*) 12527 # QNX uses GNU C++, but need to define -shared option too, otherwise 12528 # it will coredump. 12529 lt_prog_compiler_pic_FC='-fPIC -shared' 12530 ;; 12531 12532 osf3* | osf4* | osf5*) 12533 lt_prog_compiler_wl_FC='-Wl,' 12534 # All OSF/1 code is PIC. 12535 lt_prog_compiler_static_FC='-non_shared' 12536 ;; 12537 12538 rdos*) 12539 lt_prog_compiler_static_FC='-non_shared' 12540 ;; 12541 12542 solaris*) 12543 lt_prog_compiler_pic_FC='-KPIC' 12544 lt_prog_compiler_static_FC='-Bstatic' 12545 case $cc_basename in 12546 f77* | f90* | f95*) 12547 lt_prog_compiler_wl_FC='-Qoption ld ';; 12548 *) 12549 lt_prog_compiler_wl_FC='-Wl,';; 12550 esac 12551 ;; 12552 12553 sunos4*) 12554 lt_prog_compiler_wl_FC='-Qoption ld ' 12555 lt_prog_compiler_pic_FC='-PIC' 12556 lt_prog_compiler_static_FC='-Bstatic' 12557 ;; 12558 12559 sysv4 | sysv4.2uw2* | sysv4.3*) 12560 lt_prog_compiler_wl_FC='-Wl,' 12561 lt_prog_compiler_pic_FC='-KPIC' 12562 lt_prog_compiler_static_FC='-Bstatic' 12563 ;; 12564 12565 sysv4*MP*) 12566 if test -d /usr/nec ;then 12567 lt_prog_compiler_pic_FC='-Kconform_pic' 12568 lt_prog_compiler_static_FC='-Bstatic' 12569 fi 12570 ;; 12571 12572 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12573 lt_prog_compiler_wl_FC='-Wl,' 12574 lt_prog_compiler_pic_FC='-KPIC' 12575 lt_prog_compiler_static_FC='-Bstatic' 12576 ;; 12577 12578 unicos*) 12579 lt_prog_compiler_wl_FC='-Wl,' 12580 lt_prog_compiler_can_build_shared_FC=no 12581 ;; 12582 12583 uts4*) 12584 lt_prog_compiler_pic_FC='-pic' 12585 lt_prog_compiler_static_FC='-Bstatic' 12586 ;; 12587 12588 *) 12589 lt_prog_compiler_can_build_shared_FC=no 12590 ;; 12591 esac 12592 fi 12593 12594case $host_os in 12595 # For platforms which do not support PIC, -DPIC is meaningless: 12596 *djgpp*) 12597 lt_prog_compiler_pic_FC= 12598 ;; 12599 *) 12600 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC" 12601 ;; 12602esac 12603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5 12604$as_echo "$lt_prog_compiler_pic_FC" >&6; } 12605 12606 12607 12608# 12609# Check to make sure the PIC flag actually works. 12610# 12611if test -n "$lt_prog_compiler_pic_FC"; then 12612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5 12613$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; } 12614if ${lt_cv_prog_compiler_pic_works_FC+:} false; then : 12615 $as_echo_n "(cached) " >&6 12616else 12617 lt_cv_prog_compiler_pic_works_FC=no 12618 ac_outfile=conftest.$ac_objext 12619 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12620 lt_compiler_flag="$lt_prog_compiler_pic_FC" 12621 # Insert the option either (1) after the last *FLAGS variable, or 12622 # (2) before a word containing "conftest.", or (3) at the end. 12623 # Note that $ac_compile itself does not contain backslashes and begins 12624 # with a dollar sign (not a hyphen), so the echo should work correctly. 12625 # The option is referenced via a variable to avoid confusing sed. 12626 lt_compile=`echo "$ac_compile" | $SED \ 12627 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12628 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12629 -e 's:$: $lt_compiler_flag:'` 12630 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12631 (eval "$lt_compile" 2>conftest.err) 12632 ac_status=$? 12633 cat conftest.err >&5 12634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12635 if (exit $ac_status) && test -s "$ac_outfile"; then 12636 # The compiler can only warn and ignore the option if not recognized 12637 # So say no if there are warnings other than the usual output. 12638 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 12639 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12640 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12641 lt_cv_prog_compiler_pic_works_FC=yes 12642 fi 12643 fi 12644 $RM conftest* 12645 12646fi 12647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5 12648$as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; } 12649 12650if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then 12651 case $lt_prog_compiler_pic_FC in 12652 "" | " "*) ;; 12653 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;; 12654 esac 12655else 12656 lt_prog_compiler_pic_FC= 12657 lt_prog_compiler_can_build_shared_FC=no 12658fi 12659 12660fi 12661 12662 12663 12664# 12665# Check to make sure the static flag actually works. 12666# 12667wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\" 12668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12669$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 12670if ${lt_cv_prog_compiler_static_works_FC+:} false; then : 12671 $as_echo_n "(cached) " >&6 12672else 12673 lt_cv_prog_compiler_static_works_FC=no 12674 save_LDFLAGS="$LDFLAGS" 12675 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12676 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12677 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12678 # The linker can only warn and ignore the option if not recognized 12679 # So say no if there are warnings 12680 if test -s conftest.err; then 12681 # Append any errors to the config.log. 12682 cat conftest.err 1>&5 12683 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 12684 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12685 if diff conftest.exp conftest.er2 >/dev/null; then 12686 lt_cv_prog_compiler_static_works_FC=yes 12687 fi 12688 else 12689 lt_cv_prog_compiler_static_works_FC=yes 12690 fi 12691 fi 12692 $RM -r conftest* 12693 LDFLAGS="$save_LDFLAGS" 12694 12695fi 12696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5 12697$as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; } 12698 12699if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then 12700 : 12701else 12702 lt_prog_compiler_static_FC= 12703fi 12704 12705 12706 12707 12708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 12709$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 12710if ${lt_cv_prog_compiler_c_o_FC+:} false; then : 12711 $as_echo_n "(cached) " >&6 12712else 12713 lt_cv_prog_compiler_c_o_FC=no 12714 $RM -r conftest 2>/dev/null 12715 mkdir conftest 12716 cd conftest 12717 mkdir out 12718 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12719 12720 lt_compiler_flag="-o out/conftest2.$ac_objext" 12721 # Insert the option either (1) after the last *FLAGS variable, or 12722 # (2) before a word containing "conftest.", or (3) at the end. 12723 # Note that $ac_compile itself does not contain backslashes and begins 12724 # with a dollar sign (not a hyphen), so the echo should work correctly. 12725 lt_compile=`echo "$ac_compile" | $SED \ 12726 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12727 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12728 -e 's:$: $lt_compiler_flag:'` 12729 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12730 (eval "$lt_compile" 2>out/conftest.err) 12731 ac_status=$? 12732 cat out/conftest.err >&5 12733 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12734 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12735 then 12736 # The compiler can only warn and ignore the option if not recognized 12737 # So say no if there are warnings 12738 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 12739 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12740 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12741 lt_cv_prog_compiler_c_o_FC=yes 12742 fi 12743 fi 12744 chmod u+w . 2>&5 12745 $RM conftest* 12746 # SGI C++ compiler will create directory out/ii_files/ for 12747 # template instantiation 12748 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 12749 $RM out/* && rmdir out 12750 cd .. 12751 $RM -r conftest 12752 $RM conftest* 12753 12754fi 12755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5 12756$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; } 12757 12758 12759 12760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 12761$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 12762if ${lt_cv_prog_compiler_c_o_FC+:} false; then : 12763 $as_echo_n "(cached) " >&6 12764else 12765 lt_cv_prog_compiler_c_o_FC=no 12766 $RM -r conftest 2>/dev/null 12767 mkdir conftest 12768 cd conftest 12769 mkdir out 12770 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12771 12772 lt_compiler_flag="-o out/conftest2.$ac_objext" 12773 # Insert the option either (1) after the last *FLAGS variable, or 12774 # (2) before a word containing "conftest.", or (3) at the end. 12775 # Note that $ac_compile itself does not contain backslashes and begins 12776 # with a dollar sign (not a hyphen), so the echo should work correctly. 12777 lt_compile=`echo "$ac_compile" | $SED \ 12778 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12779 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12780 -e 's:$: $lt_compiler_flag:'` 12781 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12782 (eval "$lt_compile" 2>out/conftest.err) 12783 ac_status=$? 12784 cat out/conftest.err >&5 12785 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12786 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12787 then 12788 # The compiler can only warn and ignore the option if not recognized 12789 # So say no if there are warnings 12790 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 12791 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12792 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12793 lt_cv_prog_compiler_c_o_FC=yes 12794 fi 12795 fi 12796 chmod u+w . 2>&5 12797 $RM conftest* 12798 # SGI C++ compiler will create directory out/ii_files/ for 12799 # template instantiation 12800 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 12801 $RM out/* && rmdir out 12802 cd .. 12803 $RM -r conftest 12804 $RM conftest* 12805 12806fi 12807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5 12808$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; } 12809 12810 12811 12812 12813hard_links="nottested" 12814if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then 12815 # do not overwrite the value of need_locks provided by the user 12816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 12817$as_echo_n "checking if we can lock with hard links... " >&6; } 12818 hard_links=yes 12819 $RM conftest* 12820 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12821 touch conftest.a 12822 ln conftest.a conftest.b 2>&5 || hard_links=no 12823 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 12825$as_echo "$hard_links" >&6; } 12826 if test "$hard_links" = no; then 12827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 12828$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 12829 need_locks=warn 12830 fi 12831else 12832 need_locks=no 12833fi 12834 12835 12836 12837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12838$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 12839 12840 runpath_var= 12841 allow_undefined_flag_FC= 12842 always_export_symbols_FC=no 12843 archive_cmds_FC= 12844 archive_expsym_cmds_FC= 12845 compiler_needs_object_FC=no 12846 enable_shared_with_static_runtimes_FC=no 12847 export_dynamic_flag_spec_FC= 12848 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12849 hardcode_automatic_FC=no 12850 hardcode_direct_FC=no 12851 hardcode_direct_absolute_FC=no 12852 hardcode_libdir_flag_spec_FC= 12853 hardcode_libdir_flag_spec_ld_FC= 12854 hardcode_libdir_separator_FC= 12855 hardcode_minus_L_FC=no 12856 hardcode_shlibpath_var_FC=unsupported 12857 inherit_rpath_FC=no 12858 link_all_deplibs_FC=unknown 12859 module_cmds_FC= 12860 module_expsym_cmds_FC= 12861 old_archive_from_new_cmds_FC= 12862 old_archive_from_expsyms_cmds_FC= 12863 thread_safe_flag_spec_FC= 12864 whole_archive_flag_spec_FC= 12865 # include_expsyms should be a list of space-separated symbols to be *always* 12866 # included in the symbol list 12867 include_expsyms_FC= 12868 # exclude_expsyms can be an extended regexp of symbols to exclude 12869 # it will be wrapped by ` (' and `)$', so one must not match beginning or 12870 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 12871 # as well as any symbol that contains `d'. 12872 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 12873 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 12874 # platforms (ab)use it in PIC code, but their linkers get confused if 12875 # the symbol is explicitly referenced. Since portable code cannot 12876 # rely on this symbol name, it's probably fine to never include it in 12877 # preloaded symbol tables. 12878 # Exclude shared library initialization/finalization symbols. 12879 extract_expsyms_cmds= 12880 12881 case $host_os in 12882 cygwin* | mingw* | pw32* | cegcc*) 12883 # FIXME: the MSVC++ port hasn't been tested in a loooong time 12884 # When not using gcc, we currently assume that we are using 12885 # Microsoft Visual C++. 12886 if test "$GCC" != yes; then 12887 with_gnu_ld=no 12888 fi 12889 ;; 12890 interix*) 12891 # we just hope/assume this is gcc and not c89 (= MSVC++) 12892 with_gnu_ld=yes 12893 ;; 12894 openbsd*) 12895 with_gnu_ld=no 12896 ;; 12897 esac 12898 12899 ld_shlibs_FC=yes 12900 12901 # On some targets, GNU ld is compatible enough with the native linker 12902 # that we're better off using the native interface for both. 12903 lt_use_gnu_ld_interface=no 12904 if test "$with_gnu_ld" = yes; then 12905 case $host_os in 12906 aix*) 12907 # The AIX port of GNU ld has always aspired to compatibility 12908 # with the native linker. However, as the warning in the GNU ld 12909 # block says, versions before 2.19.5* couldn't really create working 12910 # shared libraries, regardless of the interface used. 12911 case `$LD -v 2>&1` in 12912 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 12913 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 12914 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 12915 *) 12916 lt_use_gnu_ld_interface=yes 12917 ;; 12918 esac 12919 ;; 12920 *) 12921 lt_use_gnu_ld_interface=yes 12922 ;; 12923 esac 12924 fi 12925 12926 if test "$lt_use_gnu_ld_interface" = yes; then 12927 # If archive_cmds runs LD, not CC, wlarc should be empty 12928 wlarc='${wl}' 12929 12930 # Set some defaults for GNU ld with shared library support. These 12931 # are reset later if shared libraries are not supported. Putting them 12932 # here allows them to be overridden if necessary. 12933 runpath_var=LD_RUN_PATH 12934 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' 12935 export_dynamic_flag_spec_FC='${wl}--export-dynamic' 12936 # ancient GNU ld didn't support --whole-archive et. al. 12937 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 12938 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12939 else 12940 whole_archive_flag_spec_FC= 12941 fi 12942 supports_anon_versioning=no 12943 case `$LD -v 2>&1` in 12944 *GNU\ gold*) supports_anon_versioning=yes ;; 12945 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 12946 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 12947 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 12948 *\ 2.11.*) ;; # other 2.11 versions 12949 *) supports_anon_versioning=yes ;; 12950 esac 12951 12952 # See if GNU ld supports shared libraries. 12953 case $host_os in 12954 aix[3-9]*) 12955 # On AIX/PPC, the GNU linker is very broken 12956 if test "$host_cpu" != ia64; then 12957 ld_shlibs_FC=no 12958 cat <<_LT_EOF 1>&2 12959 12960*** Warning: the GNU linker, at least up to release 2.19, is reported 12961*** to be unable to reliably create shared libraries on AIX. 12962*** Therefore, libtool is disabling shared libraries support. If you 12963*** really care for shared libraries, you may want to install binutils 12964*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 12965*** You will then need to restart the configuration process. 12966 12967_LT_EOF 12968 fi 12969 ;; 12970 12971 amigaos*) 12972 case $host_cpu in 12973 powerpc) 12974 # see comment about AmigaOS4 .so support 12975 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12976 archive_expsym_cmds_FC='' 12977 ;; 12978 m68k) 12979 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)' 12980 hardcode_libdir_flag_spec_FC='-L$libdir' 12981 hardcode_minus_L_FC=yes 12982 ;; 12983 esac 12984 ;; 12985 12986 beos*) 12987 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12988 allow_undefined_flag_FC=unsupported 12989 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 12990 # support --undefined. This deserves some investigation. FIXME 12991 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12992 else 12993 ld_shlibs_FC=no 12994 fi 12995 ;; 12996 12997 cygwin* | mingw* | pw32* | cegcc*) 12998 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless, 12999 # as there is no search path for DLLs. 13000 hardcode_libdir_flag_spec_FC='-L$libdir' 13001 export_dynamic_flag_spec_FC='${wl}--export-all-symbols' 13002 allow_undefined_flag_FC=unsupported 13003 always_export_symbols_FC=no 13004 enable_shared_with_static_runtimes_FC=yes 13005 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 13006 13007 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 13008 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13009 # If the export-symbols file already is a .def file (1st line 13010 # is EXPORTS), use it as is; otherwise, prepend... 13011 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 13012 cp $export_symbols $output_objdir/$soname.def; 13013 else 13014 echo EXPORTS > $output_objdir/$soname.def; 13015 cat $export_symbols >> $output_objdir/$soname.def; 13016 fi~ 13017 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13018 else 13019 ld_shlibs_FC=no 13020 fi 13021 ;; 13022 13023 haiku*) 13024 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13025 link_all_deplibs_FC=yes 13026 ;; 13027 13028 interix[3-9]*) 13029 hardcode_direct_FC=no 13030 hardcode_shlibpath_var_FC=no 13031 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' 13032 export_dynamic_flag_spec_FC='${wl}-E' 13033 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13034 # Instead, shared libraries are loaded at an image base (0x10000000 by 13035 # default) and relocated if they conflict, which is a slow very memory 13036 # consuming and fragmenting process. To avoid this, we pick a random, 13037 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13038 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13039 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' 13040 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' 13041 ;; 13042 13043 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 13044 tmp_diet=no 13045 if test "$host_os" = linux-dietlibc; then 13046 case $cc_basename in 13047 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 13048 esac 13049 fi 13050 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 13051 && test "$tmp_diet" = no 13052 then 13053 tmp_addflag=' $pic_flag' 13054 tmp_sharedflag='-shared' 13055 case $cc_basename,$host_cpu in 13056 pgcc*) # Portland Group C compiler 13057 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' 13058 tmp_addflag=' $pic_flag' 13059 ;; 13060 pgf77* | pgf90* | pgf95* | pgfortran*) 13061 # Portland Group f77 and f90 compilers 13062 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' 13063 tmp_addflag=' $pic_flag -Mnomain' ;; 13064 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 13065 tmp_addflag=' -i_dynamic' ;; 13066 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 13067 tmp_addflag=' -i_dynamic -nofor_main' ;; 13068 ifc* | ifort*) # Intel Fortran compiler 13069 tmp_addflag=' -nofor_main' ;; 13070 lf95*) # Lahey Fortran 8.1 13071 whole_archive_flag_spec_FC= 13072 tmp_sharedflag='--shared' ;; 13073 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 13074 tmp_sharedflag='-qmkshrobj' 13075 tmp_addflag= ;; 13076 nvcc*) # Cuda Compiler Driver 2.2 13077 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' 13078 compiler_needs_object_FC=yes 13079 ;; 13080 esac 13081 case `$CC -V 2>&1 | sed 5q` in 13082 *Sun\ C*) # Sun C 5.9 13083 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' 13084 compiler_needs_object_FC=yes 13085 tmp_sharedflag='-G' ;; 13086 *Sun\ F*) # Sun Fortran 8.3 13087 tmp_sharedflag='-G' ;; 13088 esac 13089 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13090 13091 if test "x$supports_anon_versioning" = xyes; then 13092 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~ 13093 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13094 echo "local: *; };" >> $output_objdir/$libname.ver~ 13095 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 13096 fi 13097 13098 case $cc_basename in 13099 xlf* | bgf* | bgxlf* | mpixlf*) 13100 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 13101 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive' 13102 hardcode_libdir_flag_spec_FC= 13103 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir' 13104 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 13105 if test "x$supports_anon_versioning" = xyes; then 13106 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~ 13107 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13108 echo "local: *; };" >> $output_objdir/$libname.ver~ 13109 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 13110 fi 13111 ;; 13112 esac 13113 else 13114 ld_shlibs_FC=no 13115 fi 13116 ;; 13117 13118 netbsd*) 13119 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13120 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 13121 wlarc= 13122 else 13123 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13124 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13125 fi 13126 ;; 13127 13128 solaris*) 13129 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 13130 ld_shlibs_FC=no 13131 cat <<_LT_EOF 1>&2 13132 13133*** Warning: The releases 2.8.* of the GNU linker cannot reliably 13134*** create shared libraries on Solaris systems. Therefore, libtool 13135*** is disabling shared libraries support. We urge you to upgrade GNU 13136*** binutils to release 2.9.1 or newer. Another option is to modify 13137*** your PATH or compiler configuration so that the native linker is 13138*** used, and then restart. 13139 13140_LT_EOF 13141 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13142 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13143 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13144 else 13145 ld_shlibs_FC=no 13146 fi 13147 ;; 13148 13149 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 13150 case `$LD -v 2>&1` in 13151 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 13152 ld_shlibs_FC=no 13153 cat <<_LT_EOF 1>&2 13154 13155*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 13156*** reliably create shared libraries on SCO systems. Therefore, libtool 13157*** is disabling shared libraries support. We urge you to upgrade GNU 13158*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 13159*** your PATH or compiler configuration so that the native linker is 13160*** used, and then restart. 13161 13162_LT_EOF 13163 ;; 13164 *) 13165 # For security reasons, it is highly recommended that you always 13166 # use absolute paths for naming shared libraries, and exclude the 13167 # DT_RUNPATH tag from executables and libraries. But doing so 13168 # requires that you compile everything twice, which is a pain. 13169 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13170 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' 13171 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13172 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13173 else 13174 ld_shlibs_FC=no 13175 fi 13176 ;; 13177 esac 13178 ;; 13179 13180 sunos4*) 13181 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13182 wlarc= 13183 hardcode_direct_FC=yes 13184 hardcode_shlibpath_var_FC=no 13185 ;; 13186 13187 *) 13188 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13189 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13190 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13191 else 13192 ld_shlibs_FC=no 13193 fi 13194 ;; 13195 esac 13196 13197 if test "$ld_shlibs_FC" = no; then 13198 runpath_var= 13199 hardcode_libdir_flag_spec_FC= 13200 export_dynamic_flag_spec_FC= 13201 whole_archive_flag_spec_FC= 13202 fi 13203 else 13204 # PORTME fill in a description of your system's linker (not GNU ld) 13205 case $host_os in 13206 aix3*) 13207 allow_undefined_flag_FC=unsupported 13208 always_export_symbols_FC=yes 13209 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' 13210 # Note: this linker hardcodes the directories in LIBPATH if there 13211 # are no directories specified by -L. 13212 hardcode_minus_L_FC=yes 13213 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 13214 # Neither direct hardcoding nor static linking is supported with a 13215 # broken collect2. 13216 hardcode_direct_FC=unsupported 13217 fi 13218 ;; 13219 13220 aix[4-9]*) 13221 if test "$host_cpu" = ia64; then 13222 # On IA64, the linker does run time linking by default, so we don't 13223 # have to do anything special. 13224 aix_use_runtimelinking=no 13225 exp_sym_flag='-Bexport' 13226 no_entry_flag="" 13227 else 13228 # If we're using GNU nm, then we don't want the "-C" option. 13229 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13230 # Also, AIX nm treats weak defined symbols like other global 13231 # defined symbols, whereas GNU nm marks them as "W". 13232 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 13233 export_symbols_cmds_FC='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 13234 else 13235 export_symbols_cmds_FC='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 13236 fi 13237 aix_use_runtimelinking=no 13238 13239 # Test if we are trying to use run time linking or normal 13240 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13241 # need to do runtime linking. 13242 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 13243 for ld_flag in $LDFLAGS; do 13244 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 13245 aix_use_runtimelinking=yes 13246 break 13247 fi 13248 done 13249 ;; 13250 esac 13251 13252 exp_sym_flag='-bexport' 13253 no_entry_flag='-bnoentry' 13254 fi 13255 13256 # When large executables or shared objects are built, AIX ld can 13257 # have problems creating the table of contents. If linking a library 13258 # or program results in "error TOC overflow" add -mminimal-toc to 13259 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13260 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13261 13262 archive_cmds_FC='' 13263 hardcode_direct_FC=yes 13264 hardcode_direct_absolute_FC=yes 13265 hardcode_libdir_separator_FC=':' 13266 link_all_deplibs_FC=yes 13267 file_list_spec_FC='${wl}-f,' 13268 13269 if test "$GCC" = yes; then 13270 case $host_os in aix4.[012]|aix4.[012].*) 13271 # We only want to do this on AIX 4.2 and lower, the check 13272 # below for broken collect2 doesn't work under 4.3+ 13273 collect2name=`${CC} -print-prog-name=collect2` 13274 if test -f "$collect2name" && 13275 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 13276 then 13277 # We have reworked collect2 13278 : 13279 else 13280 # We have old collect2 13281 hardcode_direct_FC=unsupported 13282 # It fails to find uninstalled libraries when the uninstalled 13283 # path is not listed in the libpath. Setting hardcode_minus_L 13284 # to unsupported forces relinking 13285 hardcode_minus_L_FC=yes 13286 hardcode_libdir_flag_spec_FC='-L$libdir' 13287 hardcode_libdir_separator_FC= 13288 fi 13289 ;; 13290 esac 13291 shared_flag='-shared' 13292 if test "$aix_use_runtimelinking" = yes; then 13293 shared_flag="$shared_flag "'${wl}-G' 13294 fi 13295 else 13296 # not using gcc 13297 if test "$host_cpu" = ia64; then 13298 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13299 # chokes on -Wl,-G. The following line is correct: 13300 shared_flag='-G' 13301 else 13302 if test "$aix_use_runtimelinking" = yes; then 13303 shared_flag='${wl}-G' 13304 else 13305 shared_flag='${wl}-bM:SRE' 13306 fi 13307 fi 13308 fi 13309 13310 export_dynamic_flag_spec_FC='${wl}-bexpall' 13311 # It seems that -bexpall does not export symbols beginning with 13312 # underscore (_), so it is better to generate a list of symbols to export. 13313 always_export_symbols_FC=yes 13314 if test "$aix_use_runtimelinking" = yes; then 13315 # Warning - without using the other runtime loading flags (-brtl), 13316 # -berok will link without error, but may produce a broken library. 13317 allow_undefined_flag_FC='-berok' 13318 # Determine the default libpath from the value encoded in an 13319 # empty executable. 13320 cat > conftest.$ac_ext <<_ACEOF 13321 program main 13322 13323 end 13324_ACEOF 13325if ac_fn_fc_try_link "$LINENO"; then : 13326 13327lt_aix_libpath_sed=' 13328 /Import File Strings/,/^$/ { 13329 /^0/ { 13330 s/^0 *\(.*\)$/\1/ 13331 p 13332 } 13333 }' 13334aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13335# Check for a 64-bit object if we didn't find anything. 13336if test -z "$aix_libpath"; then 13337 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13338fi 13339fi 13340rm -f core conftest.err conftest.$ac_objext \ 13341 conftest$ac_exeext conftest.$ac_ext 13342if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 13343 13344 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath" 13345 archive_expsym_cmds_FC='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 13346 else 13347 if test "$host_cpu" = ia64; then 13348 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib' 13349 allow_undefined_flag_FC="-z nodefs" 13350 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" 13351 else 13352 # Determine the default libpath from the value encoded in an 13353 # empty executable. 13354 cat > conftest.$ac_ext <<_ACEOF 13355 program main 13356 13357 end 13358_ACEOF 13359if ac_fn_fc_try_link "$LINENO"; then : 13360 13361lt_aix_libpath_sed=' 13362 /Import File Strings/,/^$/ { 13363 /^0/ { 13364 s/^0 *\(.*\)$/\1/ 13365 p 13366 } 13367 }' 13368aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13369# Check for a 64-bit object if we didn't find anything. 13370if test -z "$aix_libpath"; then 13371 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13372fi 13373fi 13374rm -f core conftest.err conftest.$ac_objext \ 13375 conftest$ac_exeext conftest.$ac_ext 13376if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 13377 13378 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath" 13379 # Warning - without using the other run time loading flags, 13380 # -berok will link without error, but may produce a broken library. 13381 no_undefined_flag_FC=' ${wl}-bernotok' 13382 allow_undefined_flag_FC=' ${wl}-berok' 13383 if test "$with_gnu_ld" = yes; then 13384 # We only use this code for GNU lds that support --whole-archive. 13385 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 13386 else 13387 # Exported symbols can be pulled into shared objects from archives 13388 whole_archive_flag_spec_FC='$convenience' 13389 fi 13390 archive_cmds_need_lc_FC=yes 13391 # This is similar to how AIX traditionally builds its shared libraries. 13392 archive_expsym_cmds_FC="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 13393 fi 13394 fi 13395 ;; 13396 13397 amigaos*) 13398 case $host_cpu in 13399 powerpc) 13400 # see comment about AmigaOS4 .so support 13401 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13402 archive_expsym_cmds_FC='' 13403 ;; 13404 m68k) 13405 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)' 13406 hardcode_libdir_flag_spec_FC='-L$libdir' 13407 hardcode_minus_L_FC=yes 13408 ;; 13409 esac 13410 ;; 13411 13412 bsdi[45]*) 13413 export_dynamic_flag_spec_FC=-rdynamic 13414 ;; 13415 13416 cygwin* | mingw* | pw32* | cegcc*) 13417 # When not using gcc, we currently assume that we are using 13418 # Microsoft Visual C++. 13419 # hardcode_libdir_flag_spec is actually meaningless, as there is 13420 # no search path for DLLs. 13421 hardcode_libdir_flag_spec_FC=' ' 13422 allow_undefined_flag_FC=unsupported 13423 # Tell ltmain to make .lib files, not .a files. 13424 libext=lib 13425 # Tell ltmain to make .dll files, not .so files. 13426 shrext_cmds=".dll" 13427 # FIXME: Setting linknames here is a bad hack. 13428 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 13429 # The linker will automatically build a .lib file if we build a DLL. 13430 old_archive_from_new_cmds_FC='true' 13431 # FIXME: Should let the user specify the lib program. 13432 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs' 13433 fix_srcfile_path_FC='`cygpath -w "$srcfile"`' 13434 enable_shared_with_static_runtimes_FC=yes 13435 ;; 13436 13437 darwin* | rhapsody*) 13438 13439 13440 archive_cmds_need_lc_FC=no 13441 hardcode_direct_FC=no 13442 hardcode_automatic_FC=yes 13443 hardcode_shlibpath_var_FC=unsupported 13444 if test "$lt_cv_ld_force_load" = "yes"; then 13445 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\"`' 13446 else 13447 whole_archive_flag_spec_FC='' 13448 fi 13449 link_all_deplibs_FC=yes 13450 allow_undefined_flag_FC="$_lt_dar_allow_undefined" 13451 case $cc_basename in 13452 ifort*) _lt_dar_can_shared=yes ;; 13453 *) _lt_dar_can_shared=$GCC ;; 13454 esac 13455 if test "$_lt_dar_can_shared" = "yes"; then 13456 output_verbose_link_cmd=func_echo_all 13457 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}" 13458 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 13459 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}" 13460 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}" 13461 13462 else 13463 ld_shlibs_FC=no 13464 fi 13465 13466 ;; 13467 13468 dgux*) 13469 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13470 hardcode_libdir_flag_spec_FC='-L$libdir' 13471 hardcode_shlibpath_var_FC=no 13472 ;; 13473 13474 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 13475 # support. Future versions do this automatically, but an explicit c++rt0.o 13476 # does not break anything, and helps significantly (at the cost of a little 13477 # extra space). 13478 freebsd2.2*) 13479 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 13480 hardcode_libdir_flag_spec_FC='-R$libdir' 13481 hardcode_direct_FC=yes 13482 hardcode_shlibpath_var_FC=no 13483 ;; 13484 13485 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 13486 freebsd2.*) 13487 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13488 hardcode_direct_FC=yes 13489 hardcode_minus_L_FC=yes 13490 hardcode_shlibpath_var_FC=no 13491 ;; 13492 13493 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 13494 freebsd* | dragonfly*) 13495 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 13496 hardcode_libdir_flag_spec_FC='-R$libdir' 13497 hardcode_direct_FC=yes 13498 hardcode_shlibpath_var_FC=no 13499 ;; 13500 13501 hpux9*) 13502 if test "$GCC" = yes; then 13503 archive_cmds_FC='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 13504 else 13505 archive_cmds_FC='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 13506 fi 13507 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' 13508 hardcode_libdir_separator_FC=: 13509 hardcode_direct_FC=yes 13510 13511 # hardcode_minus_L: Not really in the search PATH, 13512 # but as the default location of the library. 13513 hardcode_minus_L_FC=yes 13514 export_dynamic_flag_spec_FC='${wl}-E' 13515 ;; 13516 13517 hpux10*) 13518 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 13519 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13520 else 13521 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 13522 fi 13523 if test "$with_gnu_ld" = no; then 13524 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' 13525 hardcode_libdir_flag_spec_ld_FC='+b $libdir' 13526 hardcode_libdir_separator_FC=: 13527 hardcode_direct_FC=yes 13528 hardcode_direct_absolute_FC=yes 13529 export_dynamic_flag_spec_FC='${wl}-E' 13530 # hardcode_minus_L: Not really in the search PATH, 13531 # but as the default location of the library. 13532 hardcode_minus_L_FC=yes 13533 fi 13534 ;; 13535 13536 hpux11*) 13537 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 13538 case $host_cpu in 13539 hppa*64*) 13540 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 13541 ;; 13542 ia64*) 13543 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 13544 ;; 13545 *) 13546 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13547 ;; 13548 esac 13549 else 13550 case $host_cpu in 13551 hppa*64*) 13552 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 13553 ;; 13554 ia64*) 13555 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 13556 ;; 13557 *) 13558 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13559 ;; 13560 esac 13561 fi 13562 if test "$with_gnu_ld" = no; then 13563 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' 13564 hardcode_libdir_separator_FC=: 13565 13566 case $host_cpu in 13567 hppa*64*|ia64*) 13568 hardcode_direct_FC=no 13569 hardcode_shlibpath_var_FC=no 13570 ;; 13571 *) 13572 hardcode_direct_FC=yes 13573 hardcode_direct_absolute_FC=yes 13574 export_dynamic_flag_spec_FC='${wl}-E' 13575 13576 # hardcode_minus_L: Not really in the search PATH, 13577 # but as the default location of the library. 13578 hardcode_minus_L_FC=yes 13579 ;; 13580 esac 13581 fi 13582 ;; 13583 13584 irix5* | irix6* | nonstopux*) 13585 if test "$GCC" = yes; then 13586 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 13587 # Try to use the -exported_symbol ld option, if it does not 13588 # work, assume that -exports_file does not work either and 13589 # implicitly export all symbols. 13590 save_LDFLAGS="$LDFLAGS" 13591 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 13592 cat > conftest.$ac_ext <<_ACEOF 13593int foo(void) {} 13594_ACEOF 13595if ac_fn_fc_try_link "$LINENO"; then : 13596 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 13597 13598fi 13599rm -f core conftest.err conftest.$ac_objext \ 13600 conftest$ac_exeext conftest.$ac_ext 13601 LDFLAGS="$save_LDFLAGS" 13602 else 13603 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' 13604 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' 13605 fi 13606 archive_cmds_need_lc_FC='no' 13607 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' 13608 hardcode_libdir_separator_FC=: 13609 inherit_rpath_FC=yes 13610 link_all_deplibs_FC=yes 13611 ;; 13612 13613 netbsd*) 13614 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13615 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 13616 else 13617 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 13618 fi 13619 hardcode_libdir_flag_spec_FC='-R$libdir' 13620 hardcode_direct_FC=yes 13621 hardcode_shlibpath_var_FC=no 13622 ;; 13623 13624 newsos6) 13625 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13626 hardcode_direct_FC=yes 13627 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' 13628 hardcode_libdir_separator_FC=: 13629 hardcode_shlibpath_var_FC=no 13630 ;; 13631 13632 *nto* | *qnx*) 13633 ;; 13634 13635 openbsd*) 13636 if test -f /usr/libexec/ld.so; then 13637 hardcode_direct_FC=yes 13638 hardcode_shlibpath_var_FC=no 13639 hardcode_direct_absolute_FC=yes 13640 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13641 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13642 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 13643 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' 13644 export_dynamic_flag_spec_FC='${wl}-E' 13645 else 13646 case $host_os in 13647 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 13648 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13649 hardcode_libdir_flag_spec_FC='-R$libdir' 13650 ;; 13651 *) 13652 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13653 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' 13654 ;; 13655 esac 13656 fi 13657 else 13658 ld_shlibs_FC=no 13659 fi 13660 ;; 13661 13662 os2*) 13663 hardcode_libdir_flag_spec_FC='-L$libdir' 13664 hardcode_minus_L_FC=yes 13665 allow_undefined_flag_FC=unsupported 13666 archive_cmds_FC='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 13667 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 13668 ;; 13669 13670 osf3*) 13671 if test "$GCC" = yes; then 13672 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*' 13673 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' 13674 else 13675 allow_undefined_flag_FC=' -expect_unresolved \*' 13676 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' 13677 fi 13678 archive_cmds_need_lc_FC='no' 13679 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' 13680 hardcode_libdir_separator_FC=: 13681 ;; 13682 13683 osf4* | osf5*) # as osf3* with the addition of -msym flag 13684 if test "$GCC" = yes; then 13685 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*' 13686 archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 13687 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' 13688 else 13689 allow_undefined_flag_FC=' -expect_unresolved \*' 13690 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' 13691 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~ 13692 $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' 13693 13694 # Both c and cxx compiler support -rpath directly 13695 hardcode_libdir_flag_spec_FC='-rpath $libdir' 13696 fi 13697 archive_cmds_need_lc_FC='no' 13698 hardcode_libdir_separator_FC=: 13699 ;; 13700 13701 solaris*) 13702 no_undefined_flag_FC=' -z defs' 13703 if test "$GCC" = yes; then 13704 wlarc='${wl}' 13705 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 13706 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13707 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 13708 else 13709 case `$CC -V 2>&1` in 13710 *"Compilers 5.0"*) 13711 wlarc='' 13712 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 13713 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13714 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 13715 ;; 13716 *) 13717 wlarc='${wl}' 13718 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 13719 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13720 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 13721 ;; 13722 esac 13723 fi 13724 hardcode_libdir_flag_spec_FC='-R$libdir' 13725 hardcode_shlibpath_var_FC=no 13726 case $host_os in 13727 solaris2.[0-5] | solaris2.[0-5].*) ;; 13728 *) 13729 # The compiler driver will combine and reorder linker options, 13730 # but understands `-z linker_flag'. GCC discards it without `$wl', 13731 # but is careful enough not to reorder. 13732 # Supported since Solaris 2.6 (maybe 2.5.1?) 13733 if test "$GCC" = yes; then 13734 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 13735 else 13736 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract' 13737 fi 13738 ;; 13739 esac 13740 link_all_deplibs_FC=yes 13741 ;; 13742 13743 sunos4*) 13744 if test "x$host_vendor" = xsequent; then 13745 # Use $CC to link under sequent, because it throws in some extra .o 13746 # files that make .init and .fini sections work. 13747 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 13748 else 13749 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 13750 fi 13751 hardcode_libdir_flag_spec_FC='-L$libdir' 13752 hardcode_direct_FC=yes 13753 hardcode_minus_L_FC=yes 13754 hardcode_shlibpath_var_FC=no 13755 ;; 13756 13757 sysv4) 13758 case $host_vendor in 13759 sni) 13760 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13761 hardcode_direct_FC=yes # is this really true??? 13762 ;; 13763 siemens) 13764 ## LD is ld it makes a PLAMLIB 13765 ## CC just makes a GrossModule. 13766 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags' 13767 reload_cmds_FC='$CC -r -o $output$reload_objs' 13768 hardcode_direct_FC=no 13769 ;; 13770 motorola) 13771 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13772 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie 13773 ;; 13774 esac 13775 runpath_var='LD_RUN_PATH' 13776 hardcode_shlibpath_var_FC=no 13777 ;; 13778 13779 sysv4.3*) 13780 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13781 hardcode_shlibpath_var_FC=no 13782 export_dynamic_flag_spec_FC='-Bexport' 13783 ;; 13784 13785 sysv4*MP*) 13786 if test -d /usr/nec; then 13787 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13788 hardcode_shlibpath_var_FC=no 13789 runpath_var=LD_RUN_PATH 13790 hardcode_runpath_var=yes 13791 ld_shlibs_FC=yes 13792 fi 13793 ;; 13794 13795 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 13796 no_undefined_flag_FC='${wl}-z,text' 13797 archive_cmds_need_lc_FC=no 13798 hardcode_shlibpath_var_FC=no 13799 runpath_var='LD_RUN_PATH' 13800 13801 if test "$GCC" = yes; then 13802 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13803 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13804 else 13805 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13806 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13807 fi 13808 ;; 13809 13810 sysv5* | sco3.2v5* | sco5v6*) 13811 # Note: We can NOT use -z defs as we might desire, because we do not 13812 # link with -lc, and that would cause any symbols used from libc to 13813 # always be unresolved, which means just about no library would 13814 # ever link correctly. If we're not using GNU ld we use -z text 13815 # though, which does catch some bad symbols but isn't as heavy-handed 13816 # as -z defs. 13817 no_undefined_flag_FC='${wl}-z,text' 13818 allow_undefined_flag_FC='${wl}-z,nodefs' 13819 archive_cmds_need_lc_FC=no 13820 hardcode_shlibpath_var_FC=no 13821 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir' 13822 hardcode_libdir_separator_FC=':' 13823 link_all_deplibs_FC=yes 13824 export_dynamic_flag_spec_FC='${wl}-Bexport' 13825 runpath_var='LD_RUN_PATH' 13826 13827 if test "$GCC" = yes; then 13828 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13829 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13830 else 13831 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13832 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13833 fi 13834 ;; 13835 13836 uts4*) 13837 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13838 hardcode_libdir_flag_spec_FC='-L$libdir' 13839 hardcode_shlibpath_var_FC=no 13840 ;; 13841 13842 *) 13843 ld_shlibs_FC=no 13844 ;; 13845 esac 13846 13847 if test x$host_vendor = xsni; then 13848 case $host in 13849 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 13850 export_dynamic_flag_spec_FC='${wl}-Blargedynsym' 13851 ;; 13852 esac 13853 fi 13854 fi 13855 13856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5 13857$as_echo "$ld_shlibs_FC" >&6; } 13858test "$ld_shlibs_FC" = no && can_build_shared=no 13859 13860with_gnu_ld_FC=$with_gnu_ld 13861 13862 13863 13864 13865 13866 13867# 13868# Do we need to explicitly link libc? 13869# 13870case "x$archive_cmds_need_lc_FC" in 13871x|xyes) 13872 # Assume -lc should be added 13873 archive_cmds_need_lc_FC=yes 13874 13875 if test "$enable_shared" = yes && test "$GCC" = yes; then 13876 case $archive_cmds_FC in 13877 *'~'*) 13878 # FIXME: we may have to deal with multi-command sequences. 13879 ;; 13880 '$CC '*) 13881 # Test whether the compiler implicitly links with -lc since on some 13882 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13883 # to ld, don't add -lc before -lgcc. 13884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 13885$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 13886if ${lt_cv_archive_cmds_need_lc_FC+:} false; then : 13887 $as_echo_n "(cached) " >&6 13888else 13889 $RM conftest* 13890 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13891 13892 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13893 (eval $ac_compile) 2>&5 13894 ac_status=$? 13895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13896 test $ac_status = 0; } 2>conftest.err; then 13897 soname=conftest 13898 lib=conftest 13899 libobjs=conftest.$ac_objext 13900 deplibs= 13901 wl=$lt_prog_compiler_wl_FC 13902 pic_flag=$lt_prog_compiler_pic_FC 13903 compiler_flags=-v 13904 linker_flags=-v 13905 verstring= 13906 output_objdir=. 13907 libname=conftest 13908 lt_save_allow_undefined_flag=$allow_undefined_flag_FC 13909 allow_undefined_flag_FC= 13910 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 13911 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 13912 ac_status=$? 13913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13914 test $ac_status = 0; } 13915 then 13916 lt_cv_archive_cmds_need_lc_FC=no 13917 else 13918 lt_cv_archive_cmds_need_lc_FC=yes 13919 fi 13920 allow_undefined_flag_FC=$lt_save_allow_undefined_flag 13921 else 13922 cat conftest.err 1>&5 13923 fi 13924 $RM conftest* 13925 13926fi 13927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5 13928$as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; } 13929 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC 13930 ;; 13931 esac 13932 fi 13933 ;; 13934esac 13935 13936 13937 13938 13939 13940 13941 13942 13943 13944 13945 13946 13947 13948 13949 13950 13951 13952 13953 13954 13955 13956 13957 13958 13959 13960 13961 13962 13963 13964 13965 13966 13967 13968 13969 13970 13971 13972 13973 13974 13975 13976 13977 13978 13979 13980 13981 13982 13983 13984 13985 13986 13987 13988 13989 13990 13991 13992 13993 13994 13995 13996 13997 13998 13999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 14000$as_echo_n "checking dynamic linker characteristics... " >&6; } 14001 14002library_names_spec= 14003libname_spec='lib$name' 14004soname_spec= 14005shrext_cmds=".so" 14006postinstall_cmds= 14007postuninstall_cmds= 14008finish_cmds= 14009finish_eval= 14010shlibpath_var= 14011shlibpath_overrides_runpath=unknown 14012version_type=none 14013dynamic_linker="$host_os ld.so" 14014sys_lib_dlsearch_path_spec="/lib /usr/lib" 14015need_lib_prefix=unknown 14016hardcode_into_libs=no 14017 14018# when you set need_version to no, make sure it does not cause -set_version 14019# flags to be left without arguments 14020need_version=unknown 14021 14022case $host_os in 14023aix3*) 14024 version_type=linux 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 14034 need_lib_prefix=no 14035 need_version=no 14036 hardcode_into_libs=yes 14037 if test "$host_cpu" = ia64; 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 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 14059 # soname into executable. Probably we can add versioning support to 14060 # collect2, so additional links can be useful in future. 14061 if test "$aix_use_runtimelinking" = yes; then 14062 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14063 # instead of lib<name>.a to let people know that these are not 14064 # typical AIX shared libraries. 14065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14066 else 14067 # We preserve .a as extension for shared libraries through AIX4.2 14068 # and later when we are not doing run time linking. 14069 library_names_spec='${libname}${release}.a $libname.a' 14070 soname_spec='${libname}${release}${shared_ext}$major' 14071 fi 14072 shlibpath_var=LIBPATH 14073 fi 14074 ;; 14075 14076amigaos*) 14077 case $host_cpu in 14078 powerpc) 14079 # Since July 2007 AmigaOS4 officially supports .so libraries. 14080 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 14081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14082 ;; 14083 m68k) 14084 library_names_spec='$libname.ixlibrary $libname.a' 14085 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14086 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 14087 ;; 14088 esac 14089 ;; 14090 14091beos*) 14092 library_names_spec='${libname}${shared_ext}' 14093 dynamic_linker="$host_os ld.so" 14094 shlibpath_var=LIBRARY_PATH 14095 ;; 14096 14097bsdi[45]*) 14098 version_type=linux 14099 need_version=no 14100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14101 soname_spec='${libname}${release}${shared_ext}$major' 14102 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14103 shlibpath_var=LD_LIBRARY_PATH 14104 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14105 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14106 # the default ld.so.conf also contains /usr/contrib/lib and 14107 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14108 # libtool to hard-code these into programs 14109 ;; 14110 14111cygwin* | mingw* | pw32* | cegcc*) 14112 version_type=windows 14113 shrext_cmds=".dll" 14114 need_version=no 14115 need_lib_prefix=no 14116 14117 case $GCC,$host_os in 14118 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 14119 library_names_spec='$libname.dll.a' 14120 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14121 postinstall_cmds='base_file=`basename \${file}`~ 14122 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 14123 dldir=$destdir/`dirname \$dlpath`~ 14124 test -d \$dldir || mkdir -p \$dldir~ 14125 $install_prog $dir/$dlname \$dldir/$dlname~ 14126 chmod a+x \$dldir/$dlname~ 14127 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 14128 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 14129 fi' 14130 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14131 dlpath=$dir/\$dldll~ 14132 $RM \$dlpath' 14133 shlibpath_overrides_runpath=yes 14134 14135 case $host_os in 14136 cygwin*) 14137 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14138 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14139 14140 ;; 14141 mingw* | cegcc*) 14142 # MinGW DLLs use traditional 'lib' prefix 14143 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14144 ;; 14145 pw32*) 14146 # pw32 DLLs use 'pw' prefix rather than 'lib' 14147 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14148 ;; 14149 esac 14150 ;; 14151 14152 *) 14153 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 14154 ;; 14155 esac 14156 dynamic_linker='Win32 ld.exe' 14157 # FIXME: first we should search . and the directory the executable is in 14158 shlibpath_var=PATH 14159 ;; 14160 14161darwin* | rhapsody*) 14162 dynamic_linker="$host_os dyld" 14163 version_type=darwin 14164 need_lib_prefix=no 14165 need_version=no 14166 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 14167 soname_spec='${libname}${release}${major}$shared_ext' 14168 shlibpath_overrides_runpath=yes 14169 shlibpath_var=DYLD_LIBRARY_PATH 14170 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 14171 14172 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14173 ;; 14174 14175dgux*) 14176 version_type=linux 14177 need_lib_prefix=no 14178 need_version=no 14179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 14180 soname_spec='${libname}${release}${shared_ext}$major' 14181 shlibpath_var=LD_LIBRARY_PATH 14182 ;; 14183 14184freebsd* | dragonfly*) 14185 # DragonFly does not have aout. When/if they implement a new 14186 # versioning mechanism, adjust this. 14187 if test -x /usr/bin/objformat; then 14188 objformat=`/usr/bin/objformat` 14189 else 14190 case $host_os in 14191 freebsd[23].*) objformat=aout ;; 14192 *) objformat=elf ;; 14193 esac 14194 fi 14195 version_type=freebsd-$objformat 14196 case $version_type in 14197 freebsd-elf*) 14198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14199 need_version=no 14200 need_lib_prefix=no 14201 ;; 14202 freebsd-*) 14203 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 14204 need_version=yes 14205 ;; 14206 esac 14207 shlibpath_var=LD_LIBRARY_PATH 14208 case $host_os in 14209 freebsd2.*) 14210 shlibpath_overrides_runpath=yes 14211 ;; 14212 freebsd3.[01]* | freebsdelf3.[01]*) 14213 shlibpath_overrides_runpath=yes 14214 hardcode_into_libs=yes 14215 ;; 14216 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 14217 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 14218 shlibpath_overrides_runpath=no 14219 hardcode_into_libs=yes 14220 ;; 14221 *) # from 4.6 on, and DragonFly 14222 shlibpath_overrides_runpath=yes 14223 hardcode_into_libs=yes 14224 ;; 14225 esac 14226 ;; 14227 14228gnu*) 14229 version_type=linux 14230 need_lib_prefix=no 14231 need_version=no 14232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14233 soname_spec='${libname}${release}${shared_ext}$major' 14234 shlibpath_var=LD_LIBRARY_PATH 14235 hardcode_into_libs=yes 14236 ;; 14237 14238haiku*) 14239 version_type=linux 14240 need_lib_prefix=no 14241 need_version=no 14242 dynamic_linker="$host_os runtime_loader" 14243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14244 soname_spec='${libname}${release}${shared_ext}$major' 14245 shlibpath_var=LIBRARY_PATH 14246 shlibpath_overrides_runpath=yes 14247 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' 14248 hardcode_into_libs=yes 14249 ;; 14250 14251hpux9* | hpux10* | hpux11*) 14252 # Give a soname corresponding to the major version so that dld.sl refuses to 14253 # link against other versions. 14254 version_type=sunos 14255 need_lib_prefix=no 14256 need_version=no 14257 case $host_cpu in 14258 ia64*) 14259 shrext_cmds='.so' 14260 hardcode_into_libs=yes 14261 dynamic_linker="$host_os dld.so" 14262 shlibpath_var=LD_LIBRARY_PATH 14263 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14265 soname_spec='${libname}${release}${shared_ext}$major' 14266 if test "X$HPUX_IA64_MODE" = X32; then 14267 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14268 else 14269 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14270 fi 14271 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14272 ;; 14273 hppa*64*) 14274 shrext_cmds='.sl' 14275 hardcode_into_libs=yes 14276 dynamic_linker="$host_os dld.sl" 14277 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14278 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14280 soname_spec='${libname}${release}${shared_ext}$major' 14281 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14282 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14283 ;; 14284 *) 14285 shrext_cmds='.sl' 14286 dynamic_linker="$host_os dld.sl" 14287 shlibpath_var=SHLIB_PATH 14288 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14290 soname_spec='${libname}${release}${shared_ext}$major' 14291 ;; 14292 esac 14293 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 14294 postinstall_cmds='chmod 555 $lib' 14295 # or fails outright, so override atomically: 14296 install_override_mode=555 14297 ;; 14298 14299interix[3-9]*) 14300 version_type=linux 14301 need_lib_prefix=no 14302 need_version=no 14303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14304 soname_spec='${libname}${release}${shared_ext}$major' 14305 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 14306 shlibpath_var=LD_LIBRARY_PATH 14307 shlibpath_overrides_runpath=no 14308 hardcode_into_libs=yes 14309 ;; 14310 14311irix5* | irix6* | nonstopux*) 14312 case $host_os in 14313 nonstopux*) version_type=nonstopux ;; 14314 *) 14315 if test "$lt_cv_prog_gnu_ld" = yes; then 14316 version_type=linux 14317 else 14318 version_type=irix 14319 fi ;; 14320 esac 14321 need_lib_prefix=no 14322 need_version=no 14323 soname_spec='${libname}${release}${shared_ext}$major' 14324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 14325 case $host_os in 14326 irix5* | nonstopux*) 14327 libsuff= shlibsuff= 14328 ;; 14329 *) 14330 case $LD in # libtool.m4 will add one of these switches to LD 14331 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14332 libsuff= shlibsuff= libmagic=32-bit;; 14333 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14334 libsuff=32 shlibsuff=N32 libmagic=N32;; 14335 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14336 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14337 *) libsuff= shlibsuff= libmagic=never-match;; 14338 esac 14339 ;; 14340 esac 14341 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14342 shlibpath_overrides_runpath=no 14343 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 14344 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 14345 hardcode_into_libs=yes 14346 ;; 14347 14348# No shared lib support for Linux oldld, aout, or coff. 14349linux*oldld* | linux*aout* | linux*coff*) 14350 dynamic_linker=no 14351 ;; 14352 14353# This must be Linux ELF. 14354linux* | k*bsd*-gnu | kopensolaris*-gnu) 14355 version_type=linux 14356 need_lib_prefix=no 14357 need_version=no 14358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14359 soname_spec='${libname}${release}${shared_ext}$major' 14360 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14361 shlibpath_var=LD_LIBRARY_PATH 14362 shlibpath_overrides_runpath=no 14363 14364 # Some binutils ld are patched to set DT_RUNPATH 14365 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 14366 $as_echo_n "(cached) " >&6 14367else 14368 lt_cv_shlibpath_overrides_runpath=no 14369 save_LDFLAGS=$LDFLAGS 14370 save_libdir=$libdir 14371 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \ 14372 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\"" 14373 cat > conftest.$ac_ext <<_ACEOF 14374 program main 14375 14376 end 14377_ACEOF 14378if ac_fn_fc_try_link "$LINENO"; then : 14379 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 14380 lt_cv_shlibpath_overrides_runpath=yes 14381fi 14382fi 14383rm -f core conftest.err conftest.$ac_objext \ 14384 conftest$ac_exeext conftest.$ac_ext 14385 LDFLAGS=$save_LDFLAGS 14386 libdir=$save_libdir 14387 14388fi 14389 14390 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 14391 14392 # This implies no fast_install, which is unacceptable. 14393 # Some rework will be needed to allow for fast_install 14394 # before this can be enabled. 14395 hardcode_into_libs=yes 14396 14397 # Append ld.so.conf contents to the search path 14398 if test -f /etc/ld.so.conf; then 14399 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' ' '` 14400 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 14401 fi 14402 14403 # We used to test for /lib/ld.so.1 and disable shared libraries on 14404 # powerpc, because MkLinux only supported shared libraries with the 14405 # GNU dynamic linker. Since this was broken with cross compilers, 14406 # most powerpc-linux boxes support dynamic linking these days and 14407 # people can always --disable-shared, the test was removed, and we 14408 # assume the GNU/Linux dynamic linker is in use. 14409 dynamic_linker='GNU/Linux ld.so' 14410 ;; 14411 14412netbsd*) 14413 version_type=sunos 14414 need_lib_prefix=no 14415 need_version=no 14416 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14418 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14419 dynamic_linker='NetBSD (a.out) ld.so' 14420 else 14421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14422 soname_spec='${libname}${release}${shared_ext}$major' 14423 dynamic_linker='NetBSD ld.elf_so' 14424 fi 14425 shlibpath_var=LD_LIBRARY_PATH 14426 shlibpath_overrides_runpath=yes 14427 hardcode_into_libs=yes 14428 ;; 14429 14430newsos6) 14431 version_type=linux 14432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14433 shlibpath_var=LD_LIBRARY_PATH 14434 shlibpath_overrides_runpath=yes 14435 ;; 14436 14437*nto* | *qnx*) 14438 version_type=qnx 14439 need_lib_prefix=no 14440 need_version=no 14441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14442 soname_spec='${libname}${release}${shared_ext}$major' 14443 shlibpath_var=LD_LIBRARY_PATH 14444 shlibpath_overrides_runpath=no 14445 hardcode_into_libs=yes 14446 dynamic_linker='ldqnx.so' 14447 ;; 14448 14449openbsd*) 14450 version_type=sunos 14451 sys_lib_dlsearch_path_spec="/usr/lib" 14452 need_lib_prefix=no 14453 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 14454 case $host_os in 14455 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 14456 *) need_version=no ;; 14457 esac 14458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14459 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14460 shlibpath_var=LD_LIBRARY_PATH 14461 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14462 case $host_os in 14463 openbsd2.[89] | openbsd2.[89].*) 14464 shlibpath_overrides_runpath=no 14465 ;; 14466 *) 14467 shlibpath_overrides_runpath=yes 14468 ;; 14469 esac 14470 else 14471 shlibpath_overrides_runpath=yes 14472 fi 14473 ;; 14474 14475os2*) 14476 libname_spec='$name' 14477 shrext_cmds=".dll" 14478 need_lib_prefix=no 14479 library_names_spec='$libname${shared_ext} $libname.a' 14480 dynamic_linker='OS/2 ld.exe' 14481 shlibpath_var=LIBPATH 14482 ;; 14483 14484osf3* | osf4* | osf5*) 14485 version_type=osf 14486 need_lib_prefix=no 14487 need_version=no 14488 soname_spec='${libname}${release}${shared_ext}$major' 14489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14490 shlibpath_var=LD_LIBRARY_PATH 14491 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14492 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 14493 ;; 14494 14495rdos*) 14496 dynamic_linker=no 14497 ;; 14498 14499solaris*) 14500 version_type=linux 14501 need_lib_prefix=no 14502 need_version=no 14503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14504 soname_spec='${libname}${release}${shared_ext}$major' 14505 shlibpath_var=LD_LIBRARY_PATH 14506 shlibpath_overrides_runpath=yes 14507 hardcode_into_libs=yes 14508 # ldd complains unless libraries are executable 14509 postinstall_cmds='chmod +x $lib' 14510 ;; 14511 14512sunos4*) 14513 version_type=sunos 14514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14515 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14516 shlibpath_var=LD_LIBRARY_PATH 14517 shlibpath_overrides_runpath=yes 14518 if test "$with_gnu_ld" = yes; then 14519 need_lib_prefix=no 14520 fi 14521 need_version=yes 14522 ;; 14523 14524sysv4 | sysv4.3*) 14525 version_type=linux 14526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14527 soname_spec='${libname}${release}${shared_ext}$major' 14528 shlibpath_var=LD_LIBRARY_PATH 14529 case $host_vendor in 14530 sni) 14531 shlibpath_overrides_runpath=no 14532 need_lib_prefix=no 14533 runpath_var=LD_RUN_PATH 14534 ;; 14535 siemens) 14536 need_lib_prefix=no 14537 ;; 14538 motorola) 14539 need_lib_prefix=no 14540 need_version=no 14541 shlibpath_overrides_runpath=no 14542 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14543 ;; 14544 esac 14545 ;; 14546 14547sysv4*MP*) 14548 if test -d /usr/nec ;then 14549 version_type=linux 14550 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 14551 soname_spec='$libname${shared_ext}.$major' 14552 shlibpath_var=LD_LIBRARY_PATH 14553 fi 14554 ;; 14555 14556sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 14557 version_type=freebsd-elf 14558 need_lib_prefix=no 14559 need_version=no 14560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14561 soname_spec='${libname}${release}${shared_ext}$major' 14562 shlibpath_var=LD_LIBRARY_PATH 14563 shlibpath_overrides_runpath=yes 14564 hardcode_into_libs=yes 14565 if test "$with_gnu_ld" = yes; then 14566 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 14567 else 14568 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 14569 case $host_os in 14570 sco3.2v5*) 14571 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 14572 ;; 14573 esac 14574 fi 14575 sys_lib_dlsearch_path_spec='/usr/lib' 14576 ;; 14577 14578tpf*) 14579 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 14580 version_type=linux 14581 need_lib_prefix=no 14582 need_version=no 14583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14584 shlibpath_var=LD_LIBRARY_PATH 14585 shlibpath_overrides_runpath=no 14586 hardcode_into_libs=yes 14587 ;; 14588 14589uts4*) 14590 version_type=linux 14591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14592 soname_spec='${libname}${release}${shared_ext}$major' 14593 shlibpath_var=LD_LIBRARY_PATH 14594 ;; 14595 14596*) 14597 dynamic_linker=no 14598 ;; 14599esac 14600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 14601$as_echo "$dynamic_linker" >&6; } 14602test "$dynamic_linker" = no && can_build_shared=no 14603 14604variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14605if test "$GCC" = yes; then 14606 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14607fi 14608 14609if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 14610 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 14611fi 14612if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 14613 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 14614fi 14615 14616 14617 14618 14619 14620 14621 14622 14623 14624 14625 14626 14627 14628 14629 14630 14631 14632 14633 14634 14635 14636 14637 14638 14639 14640 14641 14642 14643 14644 14645 14646 14647 14648 14649 14650 14651 14652 14653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 14654$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 14655hardcode_action_FC= 14656if test -n "$hardcode_libdir_flag_spec_FC" || 14657 test -n "$runpath_var_FC" || 14658 test "X$hardcode_automatic_FC" = "Xyes" ; then 14659 14660 # We can hardcode non-existent directories. 14661 if test "$hardcode_direct_FC" != no && 14662 # If the only mechanism to avoid hardcoding is shlibpath_var, we 14663 # have to relink, otherwise we might link with an installed library 14664 # when we should be linking with a yet-to-be-installed one 14665 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no && 14666 test "$hardcode_minus_L_FC" != no; then 14667 # Linking always hardcodes the temporary library directory. 14668 hardcode_action_FC=relink 14669 else 14670 # We can link without hardcoding, and we can hardcode nonexisting dirs. 14671 hardcode_action_FC=immediate 14672 fi 14673else 14674 # We cannot hardcode anything, or else we can only hardcode existing 14675 # directories. 14676 hardcode_action_FC=unsupported 14677fi 14678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5 14679$as_echo "$hardcode_action_FC" >&6; } 14680 14681if test "$hardcode_action_FC" = relink || 14682 test "$inherit_rpath_FC" = yes; then 14683 # Fast installation is not supported 14684 enable_fast_install=no 14685elif test "$shlibpath_overrides_runpath" = yes || 14686 test "$enable_shared" = no; then 14687 # Fast installation is not necessary 14688 enable_fast_install=needless 14689fi 14690 14691 14692 14693 14694 14695 14696 14697 fi # test -n "$compiler" 14698 14699 GCC=$lt_save_GCC 14700 CC="$lt_save_CC" 14701fi # test "$_lt_disable_FC" != yes 14702 14703ac_ext=c 14704ac_cpp='$CPP $CPPFLAGS' 14705ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14706ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14707ac_compiler_gnu=$ac_cv_c_compiler_gnu 14708 14709 14710FCFLAGS="$FCFLAGS -Wall -L../libgfortran" 14711 14712# For libtool versioning info, format is CURRENT:REVISION:AGE 14713libtool_VERSION=1:0:0 14714 14715 14716# Check header files. 14717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 14718$as_echo_n "checking for ANSI C header files... " >&6; } 14719if ${ac_cv_header_stdc+:} false; then : 14720 $as_echo_n "(cached) " >&6 14721else 14722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14723/* end confdefs.h. */ 14724#include <stdlib.h> 14725#include <stdarg.h> 14726#include <string.h> 14727#include <float.h> 14728 14729int 14730main () 14731{ 14732 14733 ; 14734 return 0; 14735} 14736_ACEOF 14737if ac_fn_c_try_compile "$LINENO"; then : 14738 ac_cv_header_stdc=yes 14739else 14740 ac_cv_header_stdc=no 14741fi 14742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14743 14744if test $ac_cv_header_stdc = yes; then 14745 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 14746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14747/* end confdefs.h. */ 14748#include <string.h> 14749 14750_ACEOF 14751if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14752 $EGREP "memchr" >/dev/null 2>&1; then : 14753 14754else 14755 ac_cv_header_stdc=no 14756fi 14757rm -f conftest* 14758 14759fi 14760 14761if test $ac_cv_header_stdc = yes; then 14762 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 14763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14764/* end confdefs.h. */ 14765#include <stdlib.h> 14766 14767_ACEOF 14768if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14769 $EGREP "free" >/dev/null 2>&1; then : 14770 14771else 14772 ac_cv_header_stdc=no 14773fi 14774rm -f conftest* 14775 14776fi 14777 14778if test $ac_cv_header_stdc = yes; then 14779 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 14780 if test "$cross_compiling" = yes; then : 14781 : 14782else 14783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14784/* end confdefs.h. */ 14785#include <ctype.h> 14786#include <stdlib.h> 14787#if ((' ' & 0x0FF) == 0x020) 14788# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 14789# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 14790#else 14791# define ISLOWER(c) \ 14792 (('a' <= (c) && (c) <= 'i') \ 14793 || ('j' <= (c) && (c) <= 'r') \ 14794 || ('s' <= (c) && (c) <= 'z')) 14795# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 14796#endif 14797 14798#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 14799int 14800main () 14801{ 14802 int i; 14803 for (i = 0; i < 256; i++) 14804 if (XOR (islower (i), ISLOWER (i)) 14805 || toupper (i) != TOUPPER (i)) 14806 return 2; 14807 return 0; 14808} 14809_ACEOF 14810if ac_fn_c_try_run "$LINENO"; then : 14811 14812else 14813 ac_cv_header_stdc=no 14814fi 14815rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14816 conftest.$ac_objext conftest.beam conftest.$ac_ext 14817fi 14818 14819fi 14820fi 14821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 14822$as_echo "$ac_cv_header_stdc" >&6; } 14823if test $ac_cv_header_stdc = yes; then 14824 14825$as_echo "#define STDC_HEADERS 1" >>confdefs.h 14826 14827fi 14828 14829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 14830$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 14831if ${ac_cv_header_time+:} false; then : 14832 $as_echo_n "(cached) " >&6 14833else 14834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14835/* end confdefs.h. */ 14836#include <sys/types.h> 14837#include <sys/time.h> 14838#include <time.h> 14839 14840int 14841main () 14842{ 14843if ((struct tm *) 0) 14844return 0; 14845 ; 14846 return 0; 14847} 14848_ACEOF 14849if ac_fn_c_try_compile "$LINENO"; then : 14850 ac_cv_header_time=yes 14851else 14852 ac_cv_header_time=no 14853fi 14854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14855fi 14856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 14857$as_echo "$ac_cv_header_time" >&6; } 14858if test $ac_cv_header_time = yes; then 14859 14860$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 14861 14862fi 14863 14864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5 14865$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; } 14866if ${gcc_cv_header_string+:} false; then : 14867 $as_echo_n "(cached) " >&6 14868else 14869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14870/* end confdefs.h. */ 14871#include <string.h> 14872#include <strings.h> 14873int 14874main () 14875{ 14876 14877 ; 14878 return 0; 14879} 14880_ACEOF 14881if ac_fn_c_try_compile "$LINENO"; then : 14882 gcc_cv_header_string=yes 14883else 14884 gcc_cv_header_string=no 14885fi 14886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14887fi 14888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5 14889$as_echo "$gcc_cv_header_string" >&6; } 14890if test $gcc_cv_header_string = yes; then 14891 14892$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h 14893 14894fi 14895 14896for ac_header in pthread.h unistd.h semaphore.h sys/loadavg.h sys/sysctl.h sys/time.h 14897do : 14898 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14899ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 14900if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14901 cat >>confdefs.h <<_ACEOF 14902#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14903_ACEOF 14904 14905fi 14906 14907done 14908 14909 14910 14911 14912inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'` 14913 14914acx_cv_header_stdint=stddef.h 14915acx_cv_header_stdint_kind="(already complete)" 14916for i in stdint.h $inttype_headers; do 14917 unset ac_cv_type_uintptr_t 14918 unset ac_cv_type_uintmax_t 14919 unset ac_cv_type_int_least32_t 14920 unset ac_cv_type_int_fast32_t 14921 unset ac_cv_type_uint64_t 14922 $as_echo_n "looking for a compliant stdint.h in $i, " >&6 14923 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h> 14924#include <$i> 14925" 14926if test "x$ac_cv_type_uintmax_t" = xyes; then : 14927 acx_cv_header_stdint=$i 14928else 14929 continue 14930fi 14931 14932 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h> 14933#include <$i> 14934" 14935if test "x$ac_cv_type_uintptr_t" = xyes; then : 14936 14937else 14938 acx_cv_header_stdint_kind="(mostly complete)" 14939fi 14940 14941 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h> 14942#include <$i> 14943" 14944if test "x$ac_cv_type_int_least32_t" = xyes; then : 14945 14946else 14947 acx_cv_header_stdint_kind="(mostly complete)" 14948fi 14949 14950 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h> 14951#include <$i> 14952" 14953if test "x$ac_cv_type_int_fast32_t" = xyes; then : 14954 14955else 14956 acx_cv_header_stdint_kind="(mostly complete)" 14957fi 14958 14959 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h> 14960#include <$i> 14961" 14962if test "x$ac_cv_type_uint64_t" = xyes; then : 14963 14964else 14965 acx_cv_header_stdint_kind="(lacks uint64_t)" 14966fi 14967 14968 break 14969done 14970if test "$acx_cv_header_stdint" = stddef.h; then 14971 acx_cv_header_stdint_kind="(lacks uintmax_t)" 14972 for i in stdint.h $inttype_headers; do 14973 unset ac_cv_type_uintptr_t 14974 unset ac_cv_type_uint32_t 14975 unset ac_cv_type_uint64_t 14976 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6 14977 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h> 14978#include <$i> 14979" 14980if test "x$ac_cv_type_uint32_t" = xyes; then : 14981 acx_cv_header_stdint=$i 14982else 14983 continue 14984fi 14985 14986 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h> 14987#include <$i> 14988" 14989if test "x$ac_cv_type_uint64_t" = xyes; then : 14990 14991fi 14992 14993 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h> 14994#include <$i> 14995" 14996if test "x$ac_cv_type_uintptr_t" = xyes; then : 14997 14998fi 14999 15000 break 15001 done 15002fi 15003if test "$acx_cv_header_stdint" = stddef.h; then 15004 acx_cv_header_stdint_kind="(u_intXX_t style)" 15005 for i in sys/types.h $inttype_headers; do 15006 unset ac_cv_type_u_int32_t 15007 unset ac_cv_type_u_int64_t 15008 $as_echo_n "looking for u_intXX_t types in $i, " >&6 15009 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h> 15010#include <$i> 15011" 15012if test "x$ac_cv_type_u_int32_t" = xyes; then : 15013 acx_cv_header_stdint=$i 15014else 15015 continue 15016fi 15017 15018 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h> 15019#include <$i> 15020" 15021if test "x$ac_cv_type_u_int64_t" = xyes; then : 15022 15023fi 15024 15025 break 15026 done 15027fi 15028if test "$acx_cv_header_stdint" = stddef.h; then 15029 acx_cv_header_stdint_kind="(using manual detection)" 15030fi 15031 15032test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no 15033test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no 15034test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no 15035test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no 15036test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no 15037 15038# ----------------- Summarize what we found so far 15039 15040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5 15041$as_echo_n "checking what to include in gstdint.h... " >&6; } 15042 15043case `$as_basename -- gstdint.h || 15044$as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \ 15045 Xgstdint.h : 'X\(//\)$' \| \ 15046 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null || 15047$as_echo X/gstdint.h | 15048 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15049 s//\1/ 15050 q 15051 } 15052 /^X\/\(\/\/\)$/{ 15053 s//\1/ 15054 q 15055 } 15056 /^X\/\(\/\).*/{ 15057 s//\1/ 15058 q 15059 } 15060 s/.*/./; q'` in 15061 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5 15062$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; 15063 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5 15064$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; 15065 *) ;; 15066esac 15067 15068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5 15069$as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; } 15070 15071# ----------------- done included file, check C basic types -------- 15072 15073# Lacking an uintptr_t? Test size of void * 15074case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in 15075 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler 15076# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 15077# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 15078# This bug is HP SR number 8606223364. 15079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 15080$as_echo_n "checking size of void *... " >&6; } 15081if ${ac_cv_sizeof_void_p+:} false; then : 15082 $as_echo_n "(cached) " >&6 15083else 15084 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 15085 15086else 15087 if test "$ac_cv_type_void_p" = yes; then 15088 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15089$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15090as_fn_error 77 "cannot compute sizeof (void *) 15091See \`config.log' for more details" "$LINENO" 5; } 15092 else 15093 ac_cv_sizeof_void_p=0 15094 fi 15095fi 15096 15097fi 15098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 15099$as_echo "$ac_cv_sizeof_void_p" >&6; } 15100 15101 15102 15103cat >>confdefs.h <<_ACEOF 15104#define SIZEOF_VOID_P $ac_cv_sizeof_void_p 15105_ACEOF 15106 15107 ;; 15108esac 15109 15110# Lacking an uint64_t? Test size of long 15111case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in 15112 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler 15113# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 15114# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 15115# This bug is HP SR number 8606223364. 15116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 15117$as_echo_n "checking size of long... " >&6; } 15118if ${ac_cv_sizeof_long+:} false; then : 15119 $as_echo_n "(cached) " >&6 15120else 15121 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 15122 15123else 15124 if test "$ac_cv_type_long" = yes; then 15125 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15126$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15127as_fn_error 77 "cannot compute sizeof (long) 15128See \`config.log' for more details" "$LINENO" 5; } 15129 else 15130 ac_cv_sizeof_long=0 15131 fi 15132fi 15133 15134fi 15135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 15136$as_echo "$ac_cv_sizeof_long" >&6; } 15137 15138 15139 15140cat >>confdefs.h <<_ACEOF 15141#define SIZEOF_LONG $ac_cv_sizeof_long 15142_ACEOF 15143 15144 ;; 15145esac 15146 15147if test $acx_cv_header_stdint = stddef.h; then 15148 # Lacking a good header? Test size of everything and deduce all types. 15149 # The cast to long int works around a bug in the HP C Compiler 15150# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 15151# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 15152# This bug is HP SR number 8606223364. 15153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 15154$as_echo_n "checking size of int... " >&6; } 15155if ${ac_cv_sizeof_int+:} false; then : 15156 $as_echo_n "(cached) " >&6 15157else 15158 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 15159 15160else 15161 if test "$ac_cv_type_int" = yes; then 15162 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15163$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15164as_fn_error 77 "cannot compute sizeof (int) 15165See \`config.log' for more details" "$LINENO" 5; } 15166 else 15167 ac_cv_sizeof_int=0 15168 fi 15169fi 15170 15171fi 15172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 15173$as_echo "$ac_cv_sizeof_int" >&6; } 15174 15175 15176 15177cat >>confdefs.h <<_ACEOF 15178#define SIZEOF_INT $ac_cv_sizeof_int 15179_ACEOF 15180 15181 15182 # The cast to long int works around a bug in the HP C Compiler 15183# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 15184# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 15185# This bug is HP SR number 8606223364. 15186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 15187$as_echo_n "checking size of short... " >&6; } 15188if ${ac_cv_sizeof_short+:} false; then : 15189 $as_echo_n "(cached) " >&6 15190else 15191 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : 15192 15193else 15194 if test "$ac_cv_type_short" = yes; then 15195 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15196$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15197as_fn_error 77 "cannot compute sizeof (short) 15198See \`config.log' for more details" "$LINENO" 5; } 15199 else 15200 ac_cv_sizeof_short=0 15201 fi 15202fi 15203 15204fi 15205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 15206$as_echo "$ac_cv_sizeof_short" >&6; } 15207 15208 15209 15210cat >>confdefs.h <<_ACEOF 15211#define SIZEOF_SHORT $ac_cv_sizeof_short 15212_ACEOF 15213 15214 15215 # The cast to long int works around a bug in the HP C Compiler 15216# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 15217# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 15218# This bug is HP SR number 8606223364. 15219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5 15220$as_echo_n "checking size of char... " >&6; } 15221if ${ac_cv_sizeof_char+:} false; then : 15222 $as_echo_n "(cached) " >&6 15223else 15224 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then : 15225 15226else 15227 if test "$ac_cv_type_char" = yes; then 15228 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15229$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15230as_fn_error 77 "cannot compute sizeof (char) 15231See \`config.log' for more details" "$LINENO" 5; } 15232 else 15233 ac_cv_sizeof_char=0 15234 fi 15235fi 15236 15237fi 15238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5 15239$as_echo "$ac_cv_sizeof_char" >&6; } 15240 15241 15242 15243cat >>confdefs.h <<_ACEOF 15244#define SIZEOF_CHAR $ac_cv_sizeof_char 15245_ACEOF 15246 15247 15248 15249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5 15250$as_echo_n "checking for type equivalent to int8_t... " >&6; } 15251 case "$ac_cv_sizeof_char" in 15252 1) acx_cv_type_int8_t=char ;; 15253 *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5 15254 esac 15255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5 15256$as_echo "$acx_cv_type_int8_t" >&6; } 15257 15258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5 15259$as_echo_n "checking for type equivalent to int16_t... " >&6; } 15260 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in 15261 2:*) acx_cv_type_int16_t=int ;; 15262 *:2) acx_cv_type_int16_t=short ;; 15263 *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5 15264 esac 15265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5 15266$as_echo "$acx_cv_type_int16_t" >&6; } 15267 15268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5 15269$as_echo_n "checking for type equivalent to int32_t... " >&6; } 15270 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in 15271 4:*) acx_cv_type_int32_t=int ;; 15272 *:4) acx_cv_type_int32_t=long ;; 15273 *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5 15274 esac 15275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5 15276$as_echo "$acx_cv_type_int32_t" >&6; } 15277fi 15278 15279# These tests are here to make the output prettier 15280 15281if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then 15282 case "$ac_cv_sizeof_long" in 15283 8) acx_cv_type_int64_t=long ;; 15284 esac 15285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5 15286$as_echo_n "checking for type equivalent to int64_t... " >&6; } 15287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5 15288$as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; } 15289fi 15290 15291# Now we can use the above types 15292 15293if test "$ac_cv_type_uintptr_t" != yes; then 15294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5 15295$as_echo_n "checking for type equivalent to intptr_t... " >&6; } 15296 case $ac_cv_sizeof_void_p in 15297 2) acx_cv_type_intptr_t=int16_t ;; 15298 4) acx_cv_type_intptr_t=int32_t ;; 15299 8) acx_cv_type_intptr_t=int64_t ;; 15300 *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5 15301 esac 15302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5 15303$as_echo "$acx_cv_type_intptr_t" >&6; } 15304fi 15305 15306# ----------------- done all checks, emit header ------------- 15307ac_config_commands="$ac_config_commands gstdint.h" 15308 15309 15310 15311 15312XPCFLAGS="" 15313case "$host" in 15314 *-*-rtems*) 15315 # RTEMS supports Pthreads, but the library is not available at GCC build time. 15316 ;; 15317 nvptx*-*-*) 15318 # NVPTX does not support Pthreads, has its own code replacement. 15319 libgomp_use_pthreads=no 15320 # NVPTX is an accelerator-only target 15321 libgomp_offloaded_only=yes 15322 ;; 15323 *) 15324 # Check to see if -pthread or -lpthread is needed. Prefer the former. 15325 # In case the pthread.h system header is not found, this test will fail. 15326 CFLAGS="$CFLAGS -pthread" 15327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15328/* end confdefs.h. */ 15329#include <pthread.h> 15330 void *g(void *d) { return NULL; } 15331int 15332main () 15333{ 15334pthread_t t; pthread_create(&t,NULL,g,NULL); 15335 ; 15336 return 0; 15337} 15338_ACEOF 15339if ac_fn_c_try_link "$LINENO"; then : 15340 XPCFLAGS=" -Wc,-pthread" 15341else 15342 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS" 15343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15344/* end confdefs.h. */ 15345#include <pthread.h> 15346 void *g(void *d) { return NULL; } 15347int 15348main () 15349{ 15350pthread_t t; pthread_create(&t,NULL,g,NULL); 15351 ; 15352 return 0; 15353} 15354_ACEOF 15355if ac_fn_c_try_link "$LINENO"; then : 15356 15357else 15358 as_fn_error $? "Pthreads are required to build libgomp" "$LINENO" 5 15359fi 15360rm -f core conftest.err conftest.$ac_objext \ 15361 conftest$ac_exeext conftest.$ac_ext 15362fi 15363rm -f core conftest.err conftest.$ac_objext \ 15364 conftest$ac_exeext conftest.$ac_ext 15365esac 15366 15367if test x$libgomp_use_pthreads != xno; then 15368 15369$as_echo "#define LIBGOMP_USE_PTHREADS 1" >>confdefs.h 15370 15371fi 15372 15373if test x$libgomp_offloaded_only = xyes; then 15374 15375$as_echo "#define LIBGOMP_OFFLOADED_ONLY 1" >>confdefs.h 15376 15377fi 15378 15379# Plugins for offload execution, configure.ac fragment. -*- mode: autoconf -*- 15380# 15381# Copyright (C) 2014-2018 Free Software Foundation, Inc. 15382# 15383# Contributed by Mentor Embedded. 15384# 15385# This file is part of the GNU Offloading and Multi Processing Library 15386# (libgomp). 15387# 15388# Libgomp is free software; you can redistribute it and/or modify it 15389# under the terms of the GNU General Public License as published by 15390# the Free Software Foundation; either version 3, or (at your option) 15391# any later version. 15392# 15393# Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY 15394# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 15395# FOR A PARTICULAR PURPOSE. See the GNU General Public License for 15396# more details. 15397# 15398# Under Section 7 of GPL version 3, you are granted additional 15399# permissions described in the GCC Runtime Library Exception, version 15400# 3.1, as published by the Free Software Foundation. 15401# 15402# You should have received a copy of the GNU General Public License and 15403# a copy of the GCC Runtime Library Exception along with this program; 15404# see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 15405# <http://www.gnu.org/licenses/>. 15406 15407plugin_support=yes 15408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5 15409$as_echo_n "checking for dlsym in -ldl... " >&6; } 15410if ${ac_cv_lib_dl_dlsym+:} false; then : 15411 $as_echo_n "(cached) " >&6 15412else 15413 ac_check_lib_save_LIBS=$LIBS 15414LIBS="-ldl $LIBS" 15415cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15416/* end confdefs.h. */ 15417 15418/* Override any GCC internal prototype to avoid an error. 15419 Use char because int might match the return type of a GCC 15420 builtin and then its argument prototype would still apply. */ 15421#ifdef __cplusplus 15422extern "C" 15423#endif 15424char dlsym (); 15425int 15426main () 15427{ 15428return dlsym (); 15429 ; 15430 return 0; 15431} 15432_ACEOF 15433if ac_fn_c_try_link "$LINENO"; then : 15434 ac_cv_lib_dl_dlsym=yes 15435else 15436 ac_cv_lib_dl_dlsym=no 15437fi 15438rm -f core conftest.err conftest.$ac_objext \ 15439 conftest$ac_exeext conftest.$ac_ext 15440LIBS=$ac_check_lib_save_LIBS 15441fi 15442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5 15443$as_echo "$ac_cv_lib_dl_dlsym" >&6; } 15444if test "x$ac_cv_lib_dl_dlsym" = xyes; then : 15445 cat >>confdefs.h <<_ACEOF 15446#define HAVE_LIBDL 1 15447_ACEOF 15448 15449 LIBS="-ldl $LIBS" 15450 15451else 15452 plugin_support=no 15453fi 15454 15455if test x"$plugin_support" = xyes; then 15456 15457$as_echo "#define PLUGIN_SUPPORT 1" >>confdefs.h 15458 15459elif test "x${enable_offload_targets-no}" != xno; then 15460 as_fn_error $? "Can't support offloading without support for plugins" "$LINENO" 5 15461fi 15462 15463 15464 15465 for ac_header in $ac_header_list 15466do : 15467 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15468ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 15469" 15470if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15471 cat >>confdefs.h <<_ACEOF 15472#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15473_ACEOF 15474 15475fi 15476 15477done 15478 15479 15480 15481 15482 15483 15484 15485 for ac_func in $ac_func_list 15486do : 15487 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15488ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 15489if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 15490 cat >>confdefs.h <<_ACEOF 15491#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 15492_ACEOF 15493 15494fi 15495done 15496 15497 15498 15499 15500 15501 15502 15503 15504 15505 15506 15507 15508 15509 15510 15511 15512# Look for the CUDA driver package. 15513CUDA_DRIVER_INCLUDE= 15514CUDA_DRIVER_LIB= 15515 15516 15517CUDA_DRIVER_CPPFLAGS= 15518CUDA_DRIVER_LDFLAGS= 15519 15520# Check whether --with-cuda-driver was given. 15521if test "${with_cuda_driver+set}" = set; then : 15522 withval=$with_cuda_driver; 15523fi 15524 15525 15526# Check whether --with-cuda-driver-include was given. 15527if test "${with_cuda_driver_include+set}" = set; then : 15528 withval=$with_cuda_driver_include; 15529fi 15530 15531 15532# Check whether --with-cuda-driver-lib was given. 15533if test "${with_cuda_driver_lib+set}" = set; then : 15534 withval=$with_cuda_driver_lib; 15535fi 15536 15537case "x$with_cuda_driver" in 15538 x) ;; 15539 xno) 15540 CUDA_DRIVER_INCLUDE=no 15541 CUDA_DRIVER_LIB=no 15542 ;; 15543 *) CUDA_DRIVER_INCLUDE=$with_cuda_driver/include 15544 CUDA_DRIVER_LIB=$with_cuda_driver/lib 15545 ;; 15546esac 15547if test "x$with_cuda_driver_include" != x; then 15548 CUDA_DRIVER_INCLUDE=$with_cuda_driver_include 15549fi 15550if test "x$with_cuda_driver_lib" != x; then 15551 CUDA_DRIVER_LIB=$with_cuda_driver_lib 15552fi 15553if test "x$CUDA_DRIVER_INCLUDE" != x \ 15554 && test "x$CUDA_DRIVER_INCLUDE" != xno; then 15555 CUDA_DRIVER_CPPFLAGS=-I$CUDA_DRIVER_INCLUDE 15556fi 15557if test "x$CUDA_DRIVER_LIB" != x \ 15558 && test "x$CUDA_DRIVER_LIB" != xno; then 15559 CUDA_DRIVER_LDFLAGS=-L$CUDA_DRIVER_LIB 15560fi 15561 15562PLUGIN_NVPTX=0 15563PLUGIN_NVPTX_CPPFLAGS= 15564PLUGIN_NVPTX_LDFLAGS= 15565PLUGIN_NVPTX_LIBS= 15566PLUGIN_NVPTX_DYNAMIC=0 15567 15568 15569 15570 15571 15572# Look for HSA run-time, its includes and libraries 15573 15574HSA_RUNTIME_INCLUDE= 15575HSA_RUNTIME_LIB= 15576 15577 15578HSA_RUNTIME_CPPFLAGS= 15579HSA_RUNTIME_LDFLAGS= 15580 15581 15582# Check whether --with-hsa-runtime was given. 15583if test "${with_hsa_runtime+set}" = set; then : 15584 withval=$with_hsa_runtime; 15585fi 15586 15587 15588# Check whether --with-hsa-runtime-include was given. 15589if test "${with_hsa_runtime_include+set}" = set; then : 15590 withval=$with_hsa_runtime_include; 15591fi 15592 15593 15594# Check whether --with-hsa-runtime-lib was given. 15595if test "${with_hsa_runtime_lib+set}" = set; then : 15596 withval=$with_hsa_runtime_lib; 15597fi 15598 15599if test "x$with_hsa_runtime" != x; then 15600 HSA_RUNTIME_INCLUDE=$with_hsa_runtime/include 15601 HSA_RUNTIME_LIB=$with_hsa_runtime/lib 15602fi 15603if test "x$with_hsa_runtime_include" != x; then 15604 HSA_RUNTIME_INCLUDE=$with_hsa_runtime_include 15605fi 15606if test "x$with_hsa_runtime_lib" != x; then 15607 HSA_RUNTIME_LIB=$with_hsa_runtime_lib 15608fi 15609if test "x$HSA_RUNTIME_INCLUDE" != x; then 15610 HSA_RUNTIME_CPPFLAGS=-I$HSA_RUNTIME_INCLUDE 15611fi 15612if test "x$HSA_RUNTIME_LIB" != x; then 15613 HSA_RUNTIME_LDFLAGS=-L$HSA_RUNTIME_LIB 15614fi 15615 15616PLUGIN_HSA=0 15617PLUGIN_HSA_CPPFLAGS= 15618PLUGIN_HSA_LDFLAGS= 15619PLUGIN_HSA_LIBS= 15620 15621 15622 15623 15624 15625# Parse '--enable-offload-targets', figure out the corresponding libgomp 15626# plugins, and configure to find the corresponding offload compilers. 15627# 'offload_plugins' and 'offload_targets' will be populated in the same order. 15628offload_plugins= 15629offload_targets= 15630 15631 15632offload_additional_options= 15633offload_additional_lib_paths= 15634 15635 15636if test x"$enable_offload_targets" != x; then 15637 for tgt in `echo $enable_offload_targets | sed -e 's#,# #g'`; do 15638 tgt_dir=`echo $tgt | grep '=' | sed 's/.*=//'` 15639 tgt=`echo $tgt | sed 's/=.*//'` 15640 tgt_plugin= 15641 case $tgt in 15642 *-intelmic-* | *-intelmicemul-*) 15643 tgt_plugin=intelmic 15644 ;; 15645 nvptx*) 15646 case "${target}" in 15647 aarch64*-*-* | powerpc64le-*-* | x86_64-*-*) 15648 case " ${CC} ${CFLAGS} " in 15649 *" -m32 "* | *" -mx32 "*) 15650 # PR libgomp/65099: Currently, we only support offloading in 15651 # 64-bit configurations. 15652 PLUGIN_NVPTX=0 15653 ;; 15654 *) 15655 tgt_plugin=nvptx 15656 PLUGIN_NVPTX=$tgt 15657 if test "x$CUDA_DRIVER_LIB" != xno \ 15658 && test "x$CUDA_DRIVER_LIB" != xno; then 15659 PLUGIN_NVPTX_CPPFLAGS=$CUDA_DRIVER_CPPFLAGS 15660 PLUGIN_NVPTX_LDFLAGS=$CUDA_DRIVER_LDFLAGS 15661 PLUGIN_NVPTX_LIBS='-lcuda' 15662 15663 PLUGIN_NVPTX_save_CPPFLAGS=$CPPFLAGS 15664 CPPFLAGS="$PLUGIN_NVPTX_CPPFLAGS $CPPFLAGS" 15665 PLUGIN_NVPTX_save_LDFLAGS=$LDFLAGS 15666 LDFLAGS="$PLUGIN_NVPTX_LDFLAGS $LDFLAGS" 15667 PLUGIN_NVPTX_save_LIBS=$LIBS 15668 LIBS="$PLUGIN_NVPTX_LIBS $LIBS" 15669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15670/* end confdefs.h. */ 15671#include "cuda.h" 15672int 15673main () 15674{ 15675CUresult r = cuCtxPushCurrent (NULL); 15676 ; 15677 return 0; 15678} 15679_ACEOF 15680if ac_fn_c_try_link "$LINENO"; then : 15681 PLUGIN_NVPTX=1 15682fi 15683rm -f core conftest.err conftest.$ac_objext \ 15684 conftest$ac_exeext conftest.$ac_ext 15685 CPPFLAGS=$PLUGIN_NVPTX_save_CPPFLAGS 15686 LDFLAGS=$PLUGIN_NVPTX_save_LDFLAGS 15687 LIBS=$PLUGIN_NVPTX_save_LIBS 15688 fi 15689 case $PLUGIN_NVPTX in 15690 nvptx*) 15691 if (test "x$CUDA_DRIVER_INCLUDE" = x \ 15692 || test "x$CUDA_DRIVER_INCLUDE" = xno) \ 15693 && (test "x$CUDA_DRIVER_LIB" = x \ 15694 || test "x$CUDA_DRIVER_LIB" = xno); then 15695 PLUGIN_NVPTX=1 15696 PLUGIN_NVPTX_CPPFLAGS='-I$(srcdir)/plugin/cuda' 15697 PLUGIN_NVPTX_LIBS='-ldl' 15698 PLUGIN_NVPTX_DYNAMIC=1 15699 else 15700 PLUGIN_NVPTX=0 15701 as_fn_error $? "CUDA driver package required for nvptx support" "$LINENO" 5 15702 fi 15703 ;; 15704 esac 15705 ;; 15706 esac 15707 ;; 15708 *-*-*) 15709 # Target architecture not supported. 15710 PLUGIN_NVPTX=0 15711 ;; 15712 esac 15713 ;; 15714 hsa*) 15715 case "${target}" in 15716 x86_64-*-*) 15717 case " ${CC} ${CFLAGS} " in 15718 *" -m32 "*) 15719 PLUGIN_HSA=0 15720 ;; 15721 *) 15722 tgt_plugin=hsa 15723 PLUGIN_HSA=$tgt 15724 PLUGIN_HSA_CPPFLAGS=$HSA_RUNTIME_CPPFLAGS 15725 PLUGIN_HSA_LDFLAGS="$HSA_RUNTIME_LDFLAGS" 15726 PLUGIN_HSA_LIBS="-ldl" 15727 15728 PLUGIN_HSA_save_CPPFLAGS=$CPPFLAGS 15729 CPPFLAGS="$PLUGIN_HSA_CPPFLAGS $CPPFLAGS" 15730 PLUGIN_HSA_save_LDFLAGS=$LDFLAGS 15731 LDFLAGS="$PLUGIN_HSA_LDFLAGS $LDFLAGS" 15732 PLUGIN_HSA_save_LIBS=$LIBS 15733 LIBS="$PLUGIN_HSA_LIBS $LIBS" 15734 15735 PLUGIN_HSA=1 15736 CPPFLAGS=$PLUGIN_HSA_save_CPPFLAGS 15737 LDFLAGS=$PLUGIN_HSA_save_LDFLAGS 15738 LIBS=$PLUGIN_HSA_save_LIBS 15739 case $PLUGIN_HSA in 15740 hsa*) 15741 HSA_PLUGIN=0 15742 as_fn_error $? "HSA run-time package required for HSA support" "$LINENO" 5 15743 ;; 15744 esac 15745 ;; 15746 esac 15747 ;; 15748 *-*-*) 15749 PLUGIN_HSA=0 15750 ;; 15751 esac 15752 ;; 15753 *) 15754 as_fn_error $? "unknown offload target specified" "$LINENO" 5 15755 ;; 15756 esac 15757 if test x"$tgt_plugin" = x; then 15758 # Not configuring libgomp for this offload target if we're not building 15759 # the corresponding offload plugin. 15760 continue 15761 elif test x"$offload_plugins" = x; then 15762 offload_plugins=$tgt_plugin 15763 offload_targets=$tgt 15764 else 15765 offload_plugins=$offload_plugins,$tgt_plugin 15766 offload_targets=$offload_targets,$tgt 15767 fi 15768 # Configure additional search paths. 15769 if test "$tgt_plugin" = hsa; then 15770 # Offloading compilation is all handled by the target compiler. 15771 : 15772 elif test x"$tgt_dir" != x; then 15773 offload_additional_options="$offload_additional_options -B$tgt_dir/libexec/gcc/\$(target_alias)/\$(gcc_version) -B$tgt_dir/bin" 15774 offload_additional_lib_paths="$offload_additional_lib_paths:$tgt_dir/lib64:$tgt_dir/lib:$tgt_dir/lib32" 15775 else 15776 offload_additional_options="$offload_additional_options -B\$(libexecdir)/gcc/\$(target_alias)/\$(gcc_version) -B\$(bindir)" 15777 offload_additional_lib_paths="$offload_additional_lib_paths:$toolexeclibdir" 15778 fi 15779 done 15780fi 15781 15782cat >>confdefs.h <<_ACEOF 15783#define OFFLOAD_PLUGINS "$offload_plugins" 15784_ACEOF 15785 15786 if test $PLUGIN_NVPTX = 1; then 15787 PLUGIN_NVPTX_TRUE= 15788 PLUGIN_NVPTX_FALSE='#' 15789else 15790 PLUGIN_NVPTX_TRUE='#' 15791 PLUGIN_NVPTX_FALSE= 15792fi 15793 15794 15795cat >>confdefs.h <<_ACEOF 15796#define PLUGIN_NVPTX $PLUGIN_NVPTX 15797_ACEOF 15798 15799 15800cat >>confdefs.h <<_ACEOF 15801#define PLUGIN_NVPTX_DYNAMIC $PLUGIN_NVPTX_DYNAMIC 15802_ACEOF 15803 15804 if test $PLUGIN_HSA = 1; then 15805 PLUGIN_HSA_TRUE= 15806 PLUGIN_HSA_FALSE='#' 15807else 15808 PLUGIN_HSA_TRUE='#' 15809 PLUGIN_HSA_FALSE= 15810fi 15811 15812 15813cat >>confdefs.h <<_ACEOF 15814#define PLUGIN_HSA $PLUGIN_HSA 15815_ACEOF 15816 15817 15818 15819# Check for functions needed. 15820for ac_func in getloadavg clock_gettime strtoull 15821do : 15822 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15823ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 15824if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 15825 cat >>confdefs.h <<_ACEOF 15826#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 15827_ACEOF 15828 15829fi 15830done 15831 15832for ac_func in aligned_alloc posix_memalign memalign _aligned_malloc 15833do : 15834 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15835ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 15836eval as_val=\$$as_ac_var 15837 if test "x$as_val" = x""yes; then : 15838 cat >>confdefs.h <<_ACEOF 15839#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 15840_ACEOF 15841 15842fi 15843done 15844 15845 15846# Check for broken semaphore implementation on darwin. 15847# sem_init returns: sem_init error: Function not implemented. 15848case "$host" in 15849 *-darwin*) 15850 15851$as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h 15852 15853 ;; 15854esac 15855 15856# RTEMS specific checks 15857case "$host" in 15858 *-*-rtems*) 15859 ac_fn_c_check_type "$LINENO" "struct _Mutex_Control" "ac_cv_type_struct__Mutex_Control" "#include <sys/lock.h> 15860" 15861if test "x$ac_cv_type_struct__Mutex_Control" = xyes; then : 15862 15863cat >>confdefs.h <<_ACEOF 15864#define HAVE_STRUCT__MUTEX_CONTROL 1 15865_ACEOF 15866 15867 15868fi 15869 15870 ;; 15871esac 15872 15873 # Check whether --enable-linux-futex was given. 15874if test "${enable_linux_futex+set}" = set; then : 15875 enableval=$enable_linux_futex; 15876 case "$enableval" in 15877 yes|no|default) ;; 15878 *) as_fn_error $? "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;; 15879 esac 15880 15881else 15882 enable_linux_futex=default 15883fi 15884 15885 15886case "$target" in 15887 *-linux*) 15888 case "$enable_linux_futex" in 15889 default) 15890 # If headers don't have gettid/futex syscalls definition, then 15891 # default to no, otherwise there will be compile time failures. 15892 # Otherwise, default to yes. If we don't detect we are 15893 # compiled/linked against NPTL and not cross-compiling, check 15894 # if programs are run by default against NPTL and if not, issue 15895 # a warning. 15896 enable_linux_futex=no 15897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15898/* end confdefs.h. */ 15899#include <sys/syscall.h> 15900 int lk; 15901int 15902main () 15903{ 15904syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0); 15905 ; 15906 return 0; 15907} 15908_ACEOF 15909if ac_fn_c_try_link "$LINENO"; then : 15910 save_LIBS="$LIBS" 15911 LIBS="-lpthread $LIBS" 15912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15913/* end confdefs.h. */ 15914#ifndef _GNU_SOURCE 15915 #define _GNU_SOURCE 1 15916 #endif 15917 #include <pthread.h> 15918 pthread_t th; void *status; 15919int 15920main () 15921{ 15922pthread_tryjoin_np (th, &status); 15923 ; 15924 return 0; 15925} 15926_ACEOF 15927if ac_fn_c_try_link "$LINENO"; then : 15928 enable_linux_futex=yes 15929else 15930 if test x$cross_compiling = xno; then 15931 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \ 15932 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else 15933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls. 15934If so, please configure with --disable-linux-futex" >&5 15935$as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls. 15936If so, please configure with --disable-linux-futex" >&2;} 15937 fi 15938 fi 15939 enable_linux_futex=yes 15940fi 15941rm -f core conftest.err conftest.$ac_objext \ 15942 conftest$ac_exeext conftest.$ac_ext 15943 LIBS="$save_LIBS" 15944fi 15945rm -f core conftest.err conftest.$ac_objext \ 15946 conftest$ac_exeext conftest.$ac_ext 15947 ;; 15948 yes) 15949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15950/* end confdefs.h. */ 15951#include <sys/syscall.h> 15952 int lk; 15953int 15954main () 15955{ 15956syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0); 15957 ; 15958 return 0; 15959} 15960_ACEOF 15961if ac_fn_c_try_link "$LINENO"; then : 15962 15963else 15964 as_fn_error $? "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5 15965fi 15966rm -f core conftest.err conftest.$ac_objext \ 15967 conftest$ac_exeext conftest.$ac_ext 15968 ;; 15969 esac 15970 ;; 15971 *) 15972 enable_linux_futex=no 15973 ;; 15974esac 15975if test x$enable_linux_futex = xyes; then 15976 : 15977fi 15978 15979 15980# Check for pthread_{,attr_}[sg]etaffinity_np. 15981cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15982/* end confdefs.h. */ 15983#define _GNU_SOURCE 15984 #include <pthread.h> 15985int 15986main () 15987{ 15988cpu_set_t cpuset; 15989 pthread_attr_t attr; 15990 pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset); 15991 if (CPU_ISSET (0, &cpuset)) 15992 CPU_SET (1, &cpuset); 15993 else 15994 CPU_ZERO (&cpuset); 15995 pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset); 15996 pthread_attr_init (&attr); 15997 pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset); 15998 pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset); 15999 ; 16000 return 0; 16001} 16002_ACEOF 16003if ac_fn_c_try_link "$LINENO"; then : 16004 16005$as_echo "#define HAVE_PTHREAD_AFFINITY_NP 1" >>confdefs.h 16006 16007fi 16008rm -f core conftest.err conftest.$ac_objext \ 16009 conftest$ac_exeext conftest.$ac_ext 16010 16011# At least for glibc, clock_gettime is in librt. But don't pull that 16012# in if it still doesn't give us the function we want. 16013if test $ac_cv_func_clock_gettime = no; then 16014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 16015$as_echo_n "checking for clock_gettime in -lrt... " >&6; } 16016if ${ac_cv_lib_rt_clock_gettime+:} false; then : 16017 $as_echo_n "(cached) " >&6 16018else 16019 ac_check_lib_save_LIBS=$LIBS 16020LIBS="-lrt $LIBS" 16021cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16022/* end confdefs.h. */ 16023 16024/* Override any GCC internal prototype to avoid an error. 16025 Use char because int might match the return type of a GCC 16026 builtin and then its argument prototype would still apply. */ 16027#ifdef __cplusplus 16028extern "C" 16029#endif 16030char clock_gettime (); 16031int 16032main () 16033{ 16034return clock_gettime (); 16035 ; 16036 return 0; 16037} 16038_ACEOF 16039if ac_fn_c_try_link "$LINENO"; then : 16040 ac_cv_lib_rt_clock_gettime=yes 16041else 16042 ac_cv_lib_rt_clock_gettime=no 16043fi 16044rm -f core conftest.err conftest.$ac_objext \ 16045 conftest$ac_exeext conftest.$ac_ext 16046LIBS=$ac_check_lib_save_LIBS 16047fi 16048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 16049$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } 16050if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : 16051 LIBS="-lrt $LIBS" 16052 16053$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h 16054 16055fi 16056 16057fi 16058 16059# Check for uname. 16060cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16061/* end confdefs.h. */ 16062#include <string.h> 16063 #include <stdlib.h> 16064 #include <sys/utsname.h> 16065int 16066main () 16067{ 16068struct utsname buf; 16069 volatile size_t len = 0; 16070 if (!uname (buf)) 16071 len = strlen (buf.nodename); 16072 ; 16073 return 0; 16074} 16075_ACEOF 16076if ac_fn_c_try_compile "$LINENO"; then : 16077 16078$as_echo "#define HAVE_UNAME 1" >>confdefs.h 16079 16080fi 16081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16082 16083# Check for gethostname. 16084cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16085/* end confdefs.h. */ 16086#include <unistd.h> 16087int 16088main () 16089{ 16090 16091 char buf[256]; 16092 if (gethostname (buf, sizeof (buf) - 1) == 0) 16093 buf[255] = '\0'; 16094 16095 ; 16096 return 0; 16097} 16098_ACEOF 16099if ac_fn_c_try_compile "$LINENO"; then : 16100 16101$as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h 16102 16103fi 16104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16105 16106# Check for getpid. 16107cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16108/* end confdefs.h. */ 16109#include <unistd.h> 16110int 16111main () 16112{ 16113int pid = getpid (); 16114 ; 16115 return 0; 16116} 16117_ACEOF 16118if ac_fn_c_try_compile "$LINENO"; then : 16119 16120$as_echo "#define HAVE_GETPID 1" >>confdefs.h 16121 16122fi 16123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16124 16125# See if we support thread-local storage. 16126 16127 16128 # Check whether --enable-tls was given. 16129if test "${enable_tls+set}" = set; then : 16130 enableval=$enable_tls; 16131 case "$enableval" in 16132 yes|no) ;; 16133 *) as_fn_error $? "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;; 16134 esac 16135 16136else 16137 enable_tls=yes 16138fi 16139 16140 16141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5 16142$as_echo_n "checking whether the target supports thread-local storage... " >&6; } 16143if ${gcc_cv_have_tls+:} false; then : 16144 $as_echo_n "(cached) " >&6 16145else 16146 16147 if test "$cross_compiling" = yes; then : 16148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16149/* end confdefs.h. */ 16150__thread int a; int b; int main() { return a = b; } 16151_ACEOF 16152if ac_fn_c_try_link "$LINENO"; then : 16153 chktls_save_LDFLAGS="$LDFLAGS" 16154 case $host in 16155 *-*-linux*) 16156 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS" 16157 ;; 16158 esac 16159 chktls_save_CFLAGS="$CFLAGS" 16160 CFLAGS="-fPIC $CFLAGS" 16161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16162/* end confdefs.h. */ 16163int f() { return 0; } 16164_ACEOF 16165if ac_fn_c_try_link "$LINENO"; then : 16166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16167/* end confdefs.h. */ 16168__thread int a; int b; int f() { return a = b; } 16169_ACEOF 16170if ac_fn_c_try_link "$LINENO"; then : 16171 gcc_cv_have_tls=yes 16172else 16173 gcc_cv_have_tls=no 16174fi 16175rm -f core conftest.err conftest.$ac_objext \ 16176 conftest$ac_exeext conftest.$ac_ext 16177else 16178 gcc_cv_have_tls=yes 16179fi 16180rm -f core conftest.err conftest.$ac_objext \ 16181 conftest$ac_exeext conftest.$ac_ext 16182 CFLAGS="$chktls_save_CFLAGS" 16183 LDFLAGS="$chktls_save_LDFLAGS" 16184else 16185 gcc_cv_have_tls=no 16186fi 16187rm -f core conftest.err conftest.$ac_objext \ 16188 conftest$ac_exeext conftest.$ac_ext 16189 16190 16191else 16192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16193/* end confdefs.h. */ 16194__thread int a; int b; int main() { return a = b; } 16195_ACEOF 16196if ac_fn_c_try_run "$LINENO"; then : 16197 chktls_save_LDFLAGS="$LDFLAGS" 16198 LDFLAGS="-static $LDFLAGS" 16199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16200/* end confdefs.h. */ 16201int main() { return 0; } 16202_ACEOF 16203if ac_fn_c_try_link "$LINENO"; then : 16204 if test "$cross_compiling" = yes; then : 16205 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16206$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16207as_fn_error $? "cannot run test program while cross compiling 16208See \`config.log' for more details" "$LINENO" 5; } 16209else 16210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16211/* end confdefs.h. */ 16212__thread int a; int b; int main() { return a = b; } 16213_ACEOF 16214if ac_fn_c_try_run "$LINENO"; then : 16215 gcc_cv_have_tls=yes 16216else 16217 gcc_cv_have_tls=no 16218fi 16219rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16220 conftest.$ac_objext conftest.beam conftest.$ac_ext 16221fi 16222 16223else 16224 gcc_cv_have_tls=yes 16225fi 16226rm -f core conftest.err conftest.$ac_objext \ 16227 conftest$ac_exeext conftest.$ac_ext 16228 LDFLAGS="$chktls_save_LDFLAGS" 16229 if test $gcc_cv_have_tls = yes; then 16230 chktls_save_CFLAGS="$CFLAGS" 16231 thread_CFLAGS=failed 16232 for flag in '' '-pthread' '-lpthread'; do 16233 CFLAGS="$flag $chktls_save_CFLAGS" 16234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16235/* end confdefs.h. */ 16236#include <pthread.h> 16237 void *g(void *d) { return NULL; } 16238int 16239main () 16240{ 16241pthread_t t; pthread_create(&t,NULL,g,NULL); 16242 ; 16243 return 0; 16244} 16245_ACEOF 16246if ac_fn_c_try_link "$LINENO"; then : 16247 thread_CFLAGS="$flag" 16248fi 16249rm -f core conftest.err conftest.$ac_objext \ 16250 conftest$ac_exeext conftest.$ac_ext 16251 if test "X$thread_CFLAGS" != Xfailed; then 16252 break 16253 fi 16254 done 16255 CFLAGS="$chktls_save_CFLAGS" 16256 if test "X$thread_CFLAGS" != Xfailed; then 16257 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS" 16258 if test "$cross_compiling" = yes; then : 16259 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16260$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16261as_fn_error $? "cannot run test program while cross compiling 16262See \`config.log' for more details" "$LINENO" 5; } 16263else 16264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16265/* end confdefs.h. */ 16266#include <pthread.h> 16267 __thread int a; 16268 static int *volatile a_in_other_thread; 16269 static void * 16270 thread_func (void *arg) 16271 { 16272 a_in_other_thread = &a; 16273 return (void *)0; 16274 } 16275int 16276main () 16277{ 16278pthread_t thread; 16279 void *thread_retval; 16280 int *volatile a_in_main_thread; 16281 a_in_main_thread = &a; 16282 if (pthread_create (&thread, (pthread_attr_t *)0, 16283 thread_func, (void *)0)) 16284 return 0; 16285 if (pthread_join (thread, &thread_retval)) 16286 return 0; 16287 return (a_in_other_thread == a_in_main_thread); 16288 ; 16289 return 0; 16290} 16291_ACEOF 16292if ac_fn_c_try_run "$LINENO"; then : 16293 gcc_cv_have_tls=yes 16294else 16295 gcc_cv_have_tls=no 16296fi 16297rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16298 conftest.$ac_objext conftest.beam conftest.$ac_ext 16299fi 16300 16301 CFLAGS="$chktls_save_CFLAGS" 16302 fi 16303 fi 16304else 16305 gcc_cv_have_tls=no 16306fi 16307rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16308 conftest.$ac_objext conftest.beam conftest.$ac_ext 16309fi 16310 16311fi 16312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5 16313$as_echo "$gcc_cv_have_tls" >&6; } 16314 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then 16315 16316$as_echo "#define HAVE_TLS 1" >>confdefs.h 16317 16318 fi 16319 16320# See if we have emulated thread-local storage. 16321 16322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the thread-local storage support is from emutls" >&5 16323$as_echo_n "checking whether the thread-local storage support is from emutls... " >&6; } 16324if ${gcc_cv_use_emutls+:} false; then : 16325 $as_echo_n "(cached) " >&6 16326else 16327 16328 gcc_cv_use_emutls=no 16329 echo '__thread int a; int b; int main() { return a = b; }' > conftest.c 16330 if { ac_try='${CC-cc} -Werror -S -o conftest.s conftest.c 1>&5' 16331 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 16332 (eval $ac_try) 2>&5 16333 ac_status=$? 16334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16335 test $ac_status = 0; }; }; then 16336 if grep __emutls_get_address conftest.s > /dev/null; then 16337 gcc_cv_use_emutls=yes 16338 fi 16339 fi 16340 rm -f conftest.* 16341 16342fi 16343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_use_emutls" >&5 16344$as_echo "$gcc_cv_use_emutls" >&6; } 16345 if test "$gcc_cv_use_emutls" = "yes" ; then 16346 16347$as_echo "#define USE_EMUTLS 1" >>confdefs.h 16348 16349 fi 16350 16351# See what sort of export controls are available. 16352 16353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5 16354$as_echo_n "checking whether the target supports hidden visibility... " >&6; } 16355if ${libgomp_cv_have_attribute_visibility+:} false; then : 16356 $as_echo_n "(cached) " >&6 16357else 16358 16359 save_CFLAGS="$CFLAGS" 16360 CFLAGS="$CFLAGS -Werror" 16361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16362/* end confdefs.h. */ 16363void __attribute__((visibility("hidden"))) foo(void) { } 16364int 16365main () 16366{ 16367 16368 ; 16369 return 0; 16370} 16371_ACEOF 16372if ac_fn_c_try_compile "$LINENO"; then : 16373 libgomp_cv_have_attribute_visibility=yes 16374else 16375 libgomp_cv_have_attribute_visibility=no 16376fi 16377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16378 CFLAGS="$save_CFLAGS" 16379fi 16380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_visibility" >&5 16381$as_echo "$libgomp_cv_have_attribute_visibility" >&6; } 16382 if test $libgomp_cv_have_attribute_visibility = yes; then 16383 16384$as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h 16385 16386 fi 16387 16388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5 16389$as_echo_n "checking whether the target supports dllexport... " >&6; } 16390if ${libgomp_cv_have_attribute_dllexport+:} false; then : 16391 $as_echo_n "(cached) " >&6 16392else 16393 16394 save_CFLAGS="$CFLAGS" 16395 CFLAGS="$CFLAGS -Werror" 16396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16397/* end confdefs.h. */ 16398void __attribute__((dllexport)) foo(void) { } 16399int 16400main () 16401{ 16402 16403 ; 16404 return 0; 16405} 16406_ACEOF 16407if ac_fn_c_try_compile "$LINENO"; then : 16408 libgomp_cv_have_attribute_dllexport=yes 16409else 16410 libgomp_cv_have_attribute_dllexport=no 16411fi 16412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16413 CFLAGS="$save_CFLAGS" 16414fi 16415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_dllexport" >&5 16416$as_echo "$libgomp_cv_have_attribute_dllexport" >&6; } 16417 if test $libgomp_cv_have_attribute_dllexport = yes; then 16418 16419$as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h 16420 16421 fi 16422 16423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5 16424$as_echo_n "checking whether the target supports symbol aliases... " >&6; } 16425if ${libgomp_cv_have_attribute_alias+:} false; then : 16426 $as_echo_n "(cached) " >&6 16427else 16428 16429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16430/* end confdefs.h. */ 16431 16432void foo(void) { } 16433extern void bar(void) __attribute__((alias("foo"))); 16434int 16435main () 16436{ 16437bar(); 16438 ; 16439 return 0; 16440} 16441_ACEOF 16442if ac_fn_c_try_link "$LINENO"; then : 16443 libgomp_cv_have_attribute_alias=yes 16444else 16445 libgomp_cv_have_attribute_alias=no 16446fi 16447rm -f core conftest.err conftest.$ac_objext \ 16448 conftest$ac_exeext conftest.$ac_ext 16449fi 16450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_alias" >&5 16451$as_echo "$libgomp_cv_have_attribute_alias" >&6; } 16452 if test $libgomp_cv_have_attribute_alias = yes; then 16453 16454$as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h 16455 16456 fi 16457 16458 16459# Check whether --with-gnu-ld was given. 16460if test "${with_gnu_ld+set}" = set; then : 16461 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 16462else 16463 with_gnu_ld=no 16464fi 16465 16466ac_prog=ld 16467if test "$GCC" = yes; then 16468 # Check if gcc -print-prog-name=ld gives a path. 16469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 16470$as_echo_n "checking for ld used by $CC... " >&6; } 16471 case $host in 16472 *-*-mingw*) 16473 # gcc leaves a trailing carriage return which upsets mingw 16474 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 16475 *) 16476 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 16477 esac 16478 case $ac_prog in 16479 # Accept absolute paths. 16480 [\\/]* | ?:[\\/]*) 16481 re_direlt='/[^/][^/]*/\.\./' 16482 # Canonicalize the pathname of ld 16483 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 16484 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 16485 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 16486 done 16487 test -z "$LD" && LD="$ac_prog" 16488 ;; 16489 "") 16490 # If it fails, then pretend we aren't using GCC. 16491 ac_prog=ld 16492 ;; 16493 *) 16494 # If it is relative, then search for the first ld in PATH. 16495 with_gnu_ld=unknown 16496 ;; 16497 esac 16498elif test "$with_gnu_ld" = yes; then 16499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 16500$as_echo_n "checking for GNU ld... " >&6; } 16501else 16502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 16503$as_echo_n "checking for non-GNU ld... " >&6; } 16504fi 16505if ${lt_cv_path_LD+:} false; then : 16506 $as_echo_n "(cached) " >&6 16507else 16508 if test -z "$LD"; then 16509 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 16510 for ac_dir in $PATH; do 16511 IFS="$lt_save_ifs" 16512 test -z "$ac_dir" && ac_dir=. 16513 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 16514 lt_cv_path_LD="$ac_dir/$ac_prog" 16515 # Check to see if the program is GNU ld. I'd rather use --version, 16516 # but apparently some variants of GNU ld only accept -v. 16517 # Break only if it was the GNU/non-GNU ld that we prefer. 16518 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 16519 *GNU* | *'with BFD'*) 16520 test "$with_gnu_ld" != no && break 16521 ;; 16522 *) 16523 test "$with_gnu_ld" != yes && break 16524 ;; 16525 esac 16526 fi 16527 done 16528 IFS="$lt_save_ifs" 16529else 16530 lt_cv_path_LD="$LD" # Let the user override the test with a path. 16531fi 16532fi 16533 16534LD="$lt_cv_path_LD" 16535if test -n "$LD"; then 16536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 16537$as_echo "$LD" >&6; } 16538else 16539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16540$as_echo "no" >&6; } 16541fi 16542test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 16543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 16544$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 16545if ${lt_cv_prog_gnu_ld+:} false; then : 16546 $as_echo_n "(cached) " >&6 16547else 16548 # I'd rather use --version here, but apparently some GNU lds only accept -v. 16549case `$LD -v 2>&1 </dev/null` in 16550*GNU* | *'with BFD'*) 16551 lt_cv_prog_gnu_ld=yes 16552 ;; 16553*) 16554 lt_cv_prog_gnu_ld=no 16555 ;; 16556esac 16557fi 16558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 16559$as_echo "$lt_cv_prog_gnu_ld" >&6; } 16560with_gnu_ld=$lt_cv_prog_gnu_ld 16561 16562 16563 16564 16565 16566 16567 16568 # If we're not using GNU ld, then there's no point in even trying these 16569 # tests. Check for that first. We should have already tested for gld 16570 # by now (in libtool), but require it now just to be safe... 16571 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS='' 16572 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS='' 16573 16574 16575 16576 # The name set by libtool depends on the version of libtool. Shame on us 16577 # for depending on an impl detail, but c'est la vie. Older versions used 16578 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on 16579 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually 16580 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't 16581 # set (hence we're using an older libtool), then set it. 16582 if test x${with_gnu_ld+set} != xset; then 16583 if test x${ac_cv_prog_gnu_ld+set} != xset; then 16584 # We got through "ac_require(ac_prog_ld)" and still not set? Huh? 16585 with_gnu_ld=no 16586 else 16587 with_gnu_ld=$ac_cv_prog_gnu_ld 16588 fi 16589 fi 16590 16591 # Start by getting the version number. I think the libtool test already 16592 # does some of this, but throws away the result. 16593 libgomp_ld_is_gold=no 16594 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then 16595 libgomp_ld_is_gold=yes 16596 fi 16597 16598 ldver=`$LD --version 2>/dev/null | 16599 sed -e 's/GNU gold /GNU ld /;s/GNU ld version /GNU ld /;s/GNU ld ([^)]*) /GNU ld /;s/GNU ld \([0-9.][0-9.]*\).*/\1/; q'` 16600 16601 libgomp_gnu_ld_version=`echo $ldver | \ 16602 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'` 16603 16604 # Set --gc-sections. 16605 if test "$with_gnu_ld" = "notbroken"; then 16606 # GNU ld it is! Joy and bunny rabbits! 16607 16608 # All these tests are for C++; save the language and the compiler flags. 16609 # Need to do this so that g++ won't try to link in libstdc++ 16610 ac_test_CFLAGS="${CFLAGS+set}" 16611 ac_save_CFLAGS="$CFLAGS" 16612 CFLAGS='-x c++ -Wl,--gc-sections' 16613 16614 # Check for -Wl,--gc-sections 16615 # XXX This test is broken at the moment, as symbols required for linking 16616 # are now in libsupc++ (not built yet). In addition, this test has 16617 # cored on solaris in the past. In addition, --gc-sections doesn't 16618 # really work at the moment (keeps on discarding used sections, first 16619 # .eh_frame and now some of the glibc sections for iconv). 16620 # Bzzzzt. Thanks for playing, maybe next time. 16621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5 16622$as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; } 16623 if test "$cross_compiling" = yes; then : 16624 ac_sectionLDflags=yes 16625else 16626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16627/* end confdefs.h. */ 16628 16629 int main(void) 16630 { 16631 try { throw 1; } 16632 catch (...) { }; 16633 return 0; 16634 } 16635 16636_ACEOF 16637if ac_fn_c_try_run "$LINENO"; then : 16638 ac_sectionLDflags=yes 16639else 16640 ac_sectionLDflags=no 16641fi 16642rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16643 conftest.$ac_objext conftest.beam conftest.$ac_ext 16644fi 16645 16646 if test "$ac_test_CFLAGS" = set; then 16647 CFLAGS="$ac_save_CFLAGS" 16648 else 16649 # this is the suspicious part 16650 CFLAGS='' 16651 fi 16652 if test "$ac_sectionLDflags" = "yes"; then 16653 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS" 16654 fi 16655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5 16656$as_echo "$ac_sectionLDflags" >&6; } 16657 fi 16658 16659 # Set linker optimization flags. 16660 if test x"$with_gnu_ld" = x"yes"; then 16661 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS" 16662 fi 16663 16664 16665 16666 16667 16668 16669 # Check whether --enable-symvers was given. 16670if test "${enable_symvers+set}" = set; then : 16671 enableval=$enable_symvers; 16672 case "$enableval" in 16673 yes|no|gnu*|sun) ;; 16674 *) as_fn_error $? "Unknown argument to enable/disable symvers" "$LINENO" 5 ;; 16675 esac 16676 16677else 16678 enable_symvers=yes 16679fi 16680 16681 16682 16683# If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we 16684# don't know enough about $LD to do tricks... 16685 16686 16687# Turn a 'yes' into a suitable default. 16688if test x$enable_symvers = xyes ; then 16689 # FIXME The following test is too strict, in theory. 16690 if test $enable_shared = no || test "x$LD" = x; then 16691 enable_symvers=no 16692 else 16693 if test $with_gnu_ld = yes ; then 16694 enable_symvers=gnu 16695 else 16696 case ${target_os} in 16697 # Sun symbol versioning exists since Solaris 2.5. 16698 solaris2.[5-9]* | solaris2.1[0-9]*) 16699 enable_symvers=sun ;; 16700 *) 16701 enable_symvers=no ;; 16702 esac 16703 fi 16704 fi 16705fi 16706 16707# Check if 'sun' was requested on non-Solaris 2 platforms. 16708if test x$enable_symvers = xsun ; then 16709 case ${target_os} in 16710 solaris2*) 16711 # All fine. 16712 ;; 16713 *) 16714 # Unlikely to work. 16715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5 16716$as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;} 16717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5 16718$as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;} 16719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5 16720$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;} 16721 enable_symvers=no 16722 ;; 16723 esac 16724fi 16725 16726# Check to see if libgcc_s exists, indicating that shared libgcc is possible. 16727if test $enable_symvers != no; then 16728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5 16729$as_echo_n "checking for shared libgcc... " >&6; } 16730 ac_save_CFLAGS="$CFLAGS" 16731 CFLAGS=' -lgcc_s' 16732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16733/* end confdefs.h. */ 16734 16735int 16736main () 16737{ 16738return 0; 16739 ; 16740 return 0; 16741} 16742_ACEOF 16743if ac_fn_c_try_link "$LINENO"; then : 16744 libgomp_shared_libgcc=yes 16745else 16746 libgomp_shared_libgcc=no 16747fi 16748rm -f core conftest.err conftest.$ac_objext \ 16749 conftest$ac_exeext conftest.$ac_ext 16750 CFLAGS="$ac_save_CFLAGS" 16751 if test $libgomp_shared_libgcc = no; then 16752 cat > conftest.c <<EOF 16753int main (void) { return 0; } 16754EOF 16755 libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \ 16756 -shared -shared-libgcc -o conftest.so \ 16757 conftest.c -v 2>&1 >/dev/null \ 16758 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'` 16759 rm -f conftest.c conftest.so 16760 if test x${libgomp_libgcc_s_suffix+set} = xset; then 16761 CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix" 16762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16763/* end confdefs.h. */ 16764 16765int 16766main () 16767{ 16768return 0; 16769 ; 16770 return 0; 16771} 16772_ACEOF 16773if ac_fn_c_try_link "$LINENO"; then : 16774 libgomp_shared_libgcc=yes 16775fi 16776rm -f core conftest.err conftest.$ac_objext \ 16777 conftest$ac_exeext conftest.$ac_ext 16778 CFLAGS="$ac_save_CFLAGS" 16779 fi 16780 fi 16781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_shared_libgcc" >&5 16782$as_echo "$libgomp_shared_libgcc" >&6; } 16783fi 16784 16785# For GNU ld, we need at least this version. The format is described in 16786# LIBGOMP_CHECK_LINKER_FEATURES above. 16787libgomp_min_gnu_ld_version=21400 16788# XXXXXXXXXXX libgomp_gnu_ld_version=21390 16789 16790# Check to see if unspecified "yes" value can win, given results above. 16791# Change "yes" into either "no" or a style name. 16792if test $enable_symvers != no && test $libgomp_shared_libgcc = yes; then 16793 if test $with_gnu_ld = yes; then 16794 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then 16795 enable_symvers=gnu 16796 elif test $libgomp_ld_is_gold = yes ; then 16797 enable_symvers=gnu 16798 else 16799 # The right tools, the right setup, but too old. Fallbacks? 16800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5 16801$as_echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;} 16802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5 16803$as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;} 16804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5 16805$as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;} 16806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5 16807$as_echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;} 16808 if test $libgomp_gnu_ld_version -ge 21200 ; then 16809 # Globbing fix is present, proper block support is not. 16810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5 16811$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;} 16812 enable_symvers=no 16813 else 16814 # 2.11 or older. 16815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5 16816$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;} 16817 enable_symvers=no 16818 fi 16819 fi 16820 elif test $enable_symvers = sun; then 16821 : All interesting versions of Sun ld support sun style symbol versioning. 16822 else 16823 # just fail for now 16824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5 16825$as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;} 16826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5 16827$as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;} 16828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5 16829$as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;} 16830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5 16831$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;} 16832 enable_symvers=no 16833 fi 16834fi 16835 16836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports .symver directive" >&5 16837$as_echo_n "checking whether the target supports .symver directive... " >&6; } 16838if ${libgomp_cv_have_as_symver_directive+:} false; then : 16839 $as_echo_n "(cached) " >&6 16840else 16841 16842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16843/* end confdefs.h. */ 16844void foo (void); __asm (".symver foo, bar@SYMVER"); 16845int 16846main () 16847{ 16848 16849 ; 16850 return 0; 16851} 16852_ACEOF 16853if ac_fn_c_try_compile "$LINENO"; then : 16854 libgomp_cv_have_as_symver_directive=yes 16855else 16856 libgomp_cv_have_as_symver_directive=no 16857fi 16858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16859fi 16860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_as_symver_directive" >&5 16861$as_echo "$libgomp_cv_have_as_symver_directive" >&6; } 16862if test $libgomp_cv_have_as_symver_directive = yes; then 16863 16864$as_echo "#define HAVE_AS_SYMVER_DIRECTIVE 1" >>confdefs.h 16865 16866fi 16867 16868 if test $enable_symvers != no; then 16869 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE= 16870 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#' 16871else 16872 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#' 16873 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE= 16874fi 16875 16876 if test $enable_symvers = gnu; then 16877 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE= 16878 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE='#' 16879else 16880 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE='#' 16881 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE= 16882fi 16883 16884 if test $enable_symvers = sun; then 16885 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE= 16886 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE='#' 16887else 16888 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE='#' 16889 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE= 16890fi 16891 16892{ $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5 16893$as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;} 16894 16895if test $enable_symvers != no ; then 16896 case ${target_os} in 16897 # The Solaris 2 runtime linker doesn't support the GNU extension of 16898 # binding the same symbol to different versions 16899 solaris2*) 16900 ;; 16901 # Other platforms with GNU symbol versioning (GNU/Linux, more?) do. 16902 *) 16903 16904$as_echo "#define HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT 1" >>confdefs.h 16905 16906 ;; 16907 esac 16908fi 16909 16910 16911if test $enable_symvers = gnu; then 16912 16913$as_echo "#define LIBGOMP_GNU_SYMBOL_VERSIONING 1" >>confdefs.h 16914 16915fi 16916 16917# Get target configury. 16918. ${srcdir}/configure.tgt 16919CFLAGS="$save_CFLAGS $XCFLAGS" 16920 16921# Check for __sync_val_compare_and_swap, but only after the target has 16922# had a chance to set XCFLAGS. 16923 16924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5 16925$as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; } 16926if ${libgomp_cv_have_sync_builtins+:} false; then : 16927 $as_echo_n "(cached) " >&6 16928else 16929 16930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16931/* end confdefs.h. */ 16932 16933int 16934main () 16935{ 16936int foo; __sync_val_compare_and_swap(&foo, 0, 1); 16937 ; 16938 return 0; 16939} 16940_ACEOF 16941if ac_fn_c_try_link "$LINENO"; then : 16942 libgomp_cv_have_sync_builtins=yes 16943else 16944 libgomp_cv_have_sync_builtins=no 16945fi 16946rm -f core conftest.err conftest.$ac_objext \ 16947 conftest$ac_exeext conftest.$ac_ext 16948fi 16949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_sync_builtins" >&5 16950$as_echo "$libgomp_cv_have_sync_builtins" >&6; } 16951 if test $libgomp_cv_have_sync_builtins = yes; then 16952 16953$as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h 16954 16955 fi 16956 16957XCFLAGS="$XCFLAGS$XPCFLAGS" 16958 16959# Add CET specific flags if CET is enabled 16960 # Check whether --enable-cet was given. 16961if test "${enable_cet+set}" = set; then : 16962 enableval=$enable_cet; 16963 case "$enableval" in 16964 yes|no|auto) ;; 16965 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;; 16966 esac 16967 16968else 16969 enable_cet=no 16970fi 16971 16972 16973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5 16974$as_echo_n "checking for CET support... " >&6; } 16975 16976case "$host" in 16977 i[34567]86-*-linux* | x86_64-*-linux*) 16978 case "$enable_cet" in 16979 auto) 16980 # Check if target supports multi-byte NOPs 16981 # and if assembler supports CET insn. 16982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16983/* end confdefs.h. */ 16984 16985int 16986main () 16987{ 16988 16989#if !defined(__SSE2__) 16990#error target does not support multi-byte NOPs 16991#else 16992asm ("setssbsy"); 16993#endif 16994 16995 ; 16996 return 0; 16997} 16998_ACEOF 16999if ac_fn_c_try_compile "$LINENO"; then : 17000 enable_cet=yes 17001else 17002 enable_cet=no 17003fi 17004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17005 ;; 17006 yes) 17007 # Check if assembler supports CET. 17008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17009/* end confdefs.h. */ 17010 17011int 17012main () 17013{ 17014asm ("setssbsy"); 17015 ; 17016 return 0; 17017} 17018_ACEOF 17019if ac_fn_c_try_compile "$LINENO"; then : 17020 17021else 17022 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5 17023fi 17024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17025 ;; 17026 esac 17027 ;; 17028 *) 17029 enable_cet=no 17030 ;; 17031esac 17032if test x$enable_cet = xyes; then 17033 CET_FLAGS="-fcf-protection -mshstk" 17034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17035$as_echo "yes" >&6; } 17036else 17037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17038$as_echo "no" >&6; } 17039fi 17040 17041XCFLAGS="$XCFLAGS $CET_FLAGS" 17042FCFLAGS="$FCFLAGS $CET_FLAGS" 17043 17044 17045 17046 17047 17048# Cleanup and exit. 17049CFLAGS="$save_CFLAGS" 17050cat >confcache <<\_ACEOF 17051# This file is a shell script that caches the results of configure 17052# tests run on this system so they can be shared between configure 17053# scripts and configure runs, see configure's option --config-cache. 17054# It is not useful on other systems. If it contains results you don't 17055# want to keep, you may remove or edit it. 17056# 17057# config.status only pays attention to the cache file if you give it 17058# the --recheck option to rerun configure. 17059# 17060# `ac_cv_env_foo' variables (set or unset) will be overridden when 17061# loading this file, other *unset* `ac_cv_foo' will be assigned the 17062# following values. 17063 17064_ACEOF 17065 17066# The following way of writing the cache mishandles newlines in values, 17067# but we know of no workaround that is simple, portable, and efficient. 17068# So, we kill variables containing newlines. 17069# Ultrix sh set writes to stderr and can't be redirected directly, 17070# and sets the high bit in the cache file unless we assign to the vars. 17071( 17072 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 17073 eval ac_val=\$$ac_var 17074 case $ac_val in #( 17075 *${as_nl}*) 17076 case $ac_var in #( 17077 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 17078$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 17079 esac 17080 case $ac_var in #( 17081 _ | IFS | as_nl) ;; #( 17082 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 17083 *) { eval $ac_var=; unset $ac_var;} ;; 17084 esac ;; 17085 esac 17086 done 17087 17088 (set) 2>&1 | 17089 case $as_nl`(ac_space=' '; set) 2>&1` in #( 17090 *${as_nl}ac_space=\ *) 17091 # `set' does not quote correctly, so add quotes: double-quote 17092 # substitution turns \\\\ into \\, and sed turns \\ into \. 17093 sed -n \ 17094 "s/'/'\\\\''/g; 17095 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 17096 ;; #( 17097 *) 17098 # `set' quotes correctly as required by POSIX, so do not add quotes. 17099 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 17100 ;; 17101 esac | 17102 sort 17103) | 17104 sed ' 17105 /^ac_cv_env_/b end 17106 t clear 17107 :clear 17108 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 17109 t end 17110 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 17111 :end' >>confcache 17112if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 17113 if test -w "$cache_file"; then 17114 if test "x$cache_file" != "x/dev/null"; then 17115 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 17116$as_echo "$as_me: updating cache $cache_file" >&6;} 17117 if test ! -f "$cache_file" || test -h "$cache_file"; then 17118 cat confcache >"$cache_file" 17119 else 17120 case $cache_file in #( 17121 */* | ?:*) 17122 mv -f confcache "$cache_file"$$ && 17123 mv -f "$cache_file"$$ "$cache_file" ;; #( 17124 *) 17125 mv -f confcache "$cache_file" ;; 17126 esac 17127 fi 17128 fi 17129 else 17130 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 17131$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 17132 fi 17133fi 17134rm -f confcache 17135 17136if test ${multilib} = yes; then 17137 multilib_arg="--enable-multilib" 17138else 17139 multilib_arg= 17140fi 17141 17142# Set up the set of libraries that we need to link against for libgomp. 17143# Note that the GOMP_SELF_SPEC in gcc.c may force -pthread, 17144# which will force linkage against -lpthread (or equivalent for the system). 17145# That's not 100% ideal, but about the best we can do easily. 17146if test $enable_shared = yes; then 17147 link_gomp="-lgomp %{static: $LIBS}" 17148else 17149 link_gomp="-lgomp $LIBS" 17150fi 17151 17152 17153 if test "$ac_cv_fc_compiler_gnu" = yes; then 17154 USE_FORTRAN_TRUE= 17155 USE_FORTRAN_FALSE='#' 17156else 17157 USE_FORTRAN_TRUE='#' 17158 USE_FORTRAN_FALSE= 17159fi 17160 17161 17162# ??? 2006-01-24: Paulo committed to asking autoconf folk to document 17163# and export AC_COMPUTE_INT. If that happens, then we'll need to remove 17164# the underscore here and update the PREREQ. If it doesn't, then we'll 17165# need to copy this macro to our acinclude.m4. 17166save_CFLAGS="$CFLAGS" 17167for i in $config_path; do 17168 if test -f $srcdir/config/$i/omp-lock.h; then 17169 CFLAGS="$CFLAGS -include confdefs.h -include $srcdir/config/$i/omp-lock.h" 17170 break 17171 fi 17172done 17173 17174if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_t)" "OMP_LOCK_SIZE" ""; then : 17175 17176else 17177 as_fn_error $? "unsupported system, cannot find sizeof (omp_lock_t)" "$LINENO" 5 17178fi 17179 17180 17181if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_t)" "OMP_LOCK_ALIGN" ""; then : 17182 17183fi 17184 17185 17186if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_t)" "OMP_NEST_LOCK_SIZE" ""; then : 17187 17188fi 17189 17190 17191if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_t)" "OMP_NEST_LOCK_ALIGN" ""; then : 17192 17193fi 17194 17195 17196if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_25_t)" "OMP_LOCK_25_SIZE" ""; then : 17197 17198else 17199 as_fn_error $? "unsupported system, cannot find sizeof (omp_lock_25_t)" "$LINENO" 5 17200fi 17201 17202 17203if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_25_t)" "OMP_LOCK_25_ALIGN" ""; then : 17204 17205fi 17206 17207 17208if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_SIZE" ""; then : 17209 17210fi 17211 17212 17213if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_ALIGN" ""; then : 17214 17215fi 17216 17217 17218 17219# If the lock fits in an integer, then arrange for Fortran to use that 17220# integer. If it doesn't, then arrange for Fortran to use a pointer. 17221# Except that we don't have a way at present to multi-lib the installed 17222# Fortran modules, so we assume 8 bytes for pointers, regardless of the 17223# actual target. 17224OMP_LOCK_KIND=$OMP_LOCK_SIZE 17225OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE 17226if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then 17227 OMP_LOCK_KIND=8 17228fi 17229if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then 17230 OMP_NEST_LOCK_KIND=8 17231fi 17232OMP_LOCK_25_KIND=$OMP_LOCK_25_SIZE 17233OMP_NEST_LOCK_25_KIND=$OMP_NEST_LOCK_25_SIZE 17234if test $OMP_LOCK_25_SIZE -gt 8 || test $OMP_LOCK_25_ALIGN -gt $OMP_LOCK_25_SIZE; then 17235 OMP_LOCK_25_KIND=8 17236fi 17237if test $OMP_NEST_LOCK_25_SIZE -gt 8 || test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NEST_LOCK_25_SIZE; then 17238 OMP_NEST_LOCK_25_KIND=8 17239fi 17240 17241 17242 17243 17244 17245 17246 17247 17248 17249 17250 17251 17252 17253CFLAGS="$save_CFLAGS" 17254 17255# Determine what GCC version number to use in filesystem paths. 17256 17257 get_gcc_base_ver="cat" 17258 17259# Check whether --with-gcc-major-version-only was given. 17260if test "${with_gcc_major_version_only+set}" = set; then : 17261 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then 17262 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'" 17263 fi 17264 17265fi 17266 17267 17268 17269 17270ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h" 17271 17272ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec" 17273 17274ac_config_files="$ac_config_files testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in" 17275 17276cat >confcache <<\_ACEOF 17277# This file is a shell script that caches the results of configure 17278# tests run on this system so they can be shared between configure 17279# scripts and configure runs, see configure's option --config-cache. 17280# It is not useful on other systems. If it contains results you don't 17281# want to keep, you may remove or edit it. 17282# 17283# config.status only pays attention to the cache file if you give it 17284# the --recheck option to rerun configure. 17285# 17286# `ac_cv_env_foo' variables (set or unset) will be overridden when 17287# loading this file, other *unset* `ac_cv_foo' will be assigned the 17288# following values. 17289 17290_ACEOF 17291 17292# The following way of writing the cache mishandles newlines in values, 17293# but we know of no workaround that is simple, portable, and efficient. 17294# So, we kill variables containing newlines. 17295# Ultrix sh set writes to stderr and can't be redirected directly, 17296# and sets the high bit in the cache file unless we assign to the vars. 17297( 17298 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 17299 eval ac_val=\$$ac_var 17300 case $ac_val in #( 17301 *${as_nl}*) 17302 case $ac_var in #( 17303 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 17304$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 17305 esac 17306 case $ac_var in #( 17307 _ | IFS | as_nl) ;; #( 17308 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 17309 *) { eval $ac_var=; unset $ac_var;} ;; 17310 esac ;; 17311 esac 17312 done 17313 17314 (set) 2>&1 | 17315 case $as_nl`(ac_space=' '; set) 2>&1` in #( 17316 *${as_nl}ac_space=\ *) 17317 # `set' does not quote correctly, so add quotes: double-quote 17318 # substitution turns \\\\ into \\, and sed turns \\ into \. 17319 sed -n \ 17320 "s/'/'\\\\''/g; 17321 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 17322 ;; #( 17323 *) 17324 # `set' quotes correctly as required by POSIX, so do not add quotes. 17325 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 17326 ;; 17327 esac | 17328 sort 17329) | 17330 sed ' 17331 /^ac_cv_env_/b end 17332 t clear 17333 :clear 17334 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 17335 t end 17336 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 17337 :end' >>confcache 17338if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 17339 if test -w "$cache_file"; then 17340 if test "x$cache_file" != "x/dev/null"; then 17341 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 17342$as_echo "$as_me: updating cache $cache_file" >&6;} 17343 if test ! -f "$cache_file" || test -h "$cache_file"; then 17344 cat confcache >"$cache_file" 17345 else 17346 case $cache_file in #( 17347 */* | ?:*) 17348 mv -f confcache "$cache_file"$$ && 17349 mv -f "$cache_file"$$ "$cache_file" ;; #( 17350 *) 17351 mv -f confcache "$cache_file" ;; 17352 esac 17353 fi 17354 fi 17355 else 17356 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 17357$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 17358 fi 17359fi 17360rm -f confcache 17361 17362test "x$prefix" = xNONE && prefix=$ac_default_prefix 17363# Let make expand exec_prefix. 17364test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 17365 17366DEFS=-DHAVE_CONFIG_H 17367 17368ac_libobjs= 17369ac_ltlibobjs= 17370U= 17371for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 17372 # 1. Remove the extension, and $U if already installed. 17373 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 17374 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 17375 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 17376 # will be set to the directory where LIBOBJS objects are built. 17377 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 17378 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 17379done 17380LIBOBJS=$ac_libobjs 17381 17382LTLIBOBJS=$ac_ltlibobjs 17383 17384 17385if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then 17386 as_fn_error $? "conditional \"GENINSRC\" was never defined. 17387Usually this means the macro was only invoked conditionally." "$LINENO" 5 17388fi 17389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 17390$as_echo_n "checking that generated files are newer than configure... " >&6; } 17391 if test -n "$am_sleep_pid"; then 17392 # Hide warnings about reused PIDs. 17393 wait $am_sleep_pid 2>/dev/null 17394 fi 17395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 17396$as_echo "done" >&6; } 17397 if test -n "$EXEEXT"; then 17398 am__EXEEXT_TRUE= 17399 am__EXEEXT_FALSE='#' 17400else 17401 am__EXEEXT_TRUE='#' 17402 am__EXEEXT_FALSE= 17403fi 17404 17405if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 17406 as_fn_error $? "conditional \"AMDEP\" was never defined. 17407Usually this means the macro was only invoked conditionally." "$LINENO" 5 17408fi 17409if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 17410 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 17411Usually this means the macro was only invoked conditionally." "$LINENO" 5 17412fi 17413if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then 17414 as_fn_error $? "conditional \"BUILD_INFO\" was never defined. 17415Usually this means the macro was only invoked conditionally." "$LINENO" 5 17416fi 17417if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 17418 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 17419Usually this means the macro was only invoked conditionally." "$LINENO" 5 17420fi 17421if test -z "${PLUGIN_NVPTX_TRUE}" && test -z "${PLUGIN_NVPTX_FALSE}"; then 17422 as_fn_error $? "conditional \"PLUGIN_NVPTX\" was never defined. 17423Usually this means the macro was only invoked conditionally." "$LINENO" 5 17424fi 17425if test -z "${PLUGIN_HSA_TRUE}" && test -z "${PLUGIN_HSA_FALSE}"; then 17426 as_fn_error $? "conditional \"PLUGIN_HSA\" was never defined. 17427Usually this means the macro was only invoked conditionally." "$LINENO" 5 17428fi 17429if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then 17430 as_fn_error $? "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined. 17431Usually this means the macro was only invoked conditionally." "$LINENO" 5 17432fi 17433if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then 17434 as_fn_error $? "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_GNU\" was never defined. 17435Usually this means the macro was only invoked conditionally." "$LINENO" 5 17436fi 17437if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then 17438 as_fn_error $? "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_SUN\" was never defined. 17439Usually this means the macro was only invoked conditionally." "$LINENO" 5 17440fi 17441if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then 17442 as_fn_error $? "conditional \"USE_FORTRAN\" was never defined. 17443Usually this means the macro was only invoked conditionally." "$LINENO" 5 17444fi 17445 17446: "${CONFIG_STATUS=./config.status}" 17447ac_write_fail=0 17448ac_clean_files_save=$ac_clean_files 17449ac_clean_files="$ac_clean_files $CONFIG_STATUS" 17450{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 17451$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 17452as_write_fail=0 17453cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 17454#! $SHELL 17455# Generated by $as_me. 17456# Run this file to recreate the current configuration. 17457# Compiler output produced by configure, useful for debugging 17458# configure, is in config.log if it exists. 17459 17460debug=false 17461ac_cs_recheck=false 17462ac_cs_silent=false 17463 17464SHELL=\${CONFIG_SHELL-$SHELL} 17465export SHELL 17466_ASEOF 17467cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 17468## -------------------- ## 17469## M4sh Initialization. ## 17470## -------------------- ## 17471 17472# Be more Bourne compatible 17473DUALCASE=1; export DUALCASE # for MKS sh 17474if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 17475 emulate sh 17476 NULLCMD=: 17477 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 17478 # is contrary to our usage. Disable this feature. 17479 alias -g '${1+"$@"}'='"$@"' 17480 setopt NO_GLOB_SUBST 17481else 17482 case `(set -o) 2>/dev/null` in #( 17483 *posix*) : 17484 set -o posix ;; #( 17485 *) : 17486 ;; 17487esac 17488fi 17489 17490 17491as_nl=' 17492' 17493export as_nl 17494# Printing a long string crashes Solaris 7 /usr/bin/printf. 17495as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 17496as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 17497as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 17498# Prefer a ksh shell builtin over an external printf program on Solaris, 17499# but without wasting forks for bash or zsh. 17500if test -z "$BASH_VERSION$ZSH_VERSION" \ 17501 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 17502 as_echo='print -r --' 17503 as_echo_n='print -rn --' 17504elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 17505 as_echo='printf %s\n' 17506 as_echo_n='printf %s' 17507else 17508 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 17509 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 17510 as_echo_n='/usr/ucb/echo -n' 17511 else 17512 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 17513 as_echo_n_body='eval 17514 arg=$1; 17515 case $arg in #( 17516 *"$as_nl"*) 17517 expr "X$arg" : "X\\(.*\\)$as_nl"; 17518 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 17519 esac; 17520 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 17521 ' 17522 export as_echo_n_body 17523 as_echo_n='sh -c $as_echo_n_body as_echo' 17524 fi 17525 export as_echo_body 17526 as_echo='sh -c $as_echo_body as_echo' 17527fi 17528 17529# The user is always right. 17530if test "${PATH_SEPARATOR+set}" != set; then 17531 PATH_SEPARATOR=: 17532 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 17533 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 17534 PATH_SEPARATOR=';' 17535 } 17536fi 17537 17538 17539# IFS 17540# We need space, tab and new line, in precisely that order. Quoting is 17541# there to prevent editors from complaining about space-tab. 17542# (If _AS_PATH_WALK were called with IFS unset, it would disable word 17543# splitting by setting IFS to empty value.) 17544IFS=" "" $as_nl" 17545 17546# Find who we are. Look in the path if we contain no directory separator. 17547as_myself= 17548case $0 in #(( 17549 *[\\/]* ) as_myself=$0 ;; 17550 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17551for as_dir in $PATH 17552do 17553 IFS=$as_save_IFS 17554 test -z "$as_dir" && as_dir=. 17555 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 17556 done 17557IFS=$as_save_IFS 17558 17559 ;; 17560esac 17561# We did not find ourselves, most probably we were run as `sh COMMAND' 17562# in which case we are not to be found in the path. 17563if test "x$as_myself" = x; then 17564 as_myself=$0 17565fi 17566if test ! -f "$as_myself"; then 17567 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 17568 exit 1 17569fi 17570 17571# Unset variables that we do not need and which cause bugs (e.g. in 17572# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 17573# suppresses any "Segmentation fault" message there. '((' could 17574# trigger a bug in pdksh 5.2.14. 17575for as_var in BASH_ENV ENV MAIL MAILPATH 17576do eval test x\${$as_var+set} = xset \ 17577 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 17578done 17579PS1='$ ' 17580PS2='> ' 17581PS4='+ ' 17582 17583# NLS nuisances. 17584LC_ALL=C 17585export LC_ALL 17586LANGUAGE=C 17587export LANGUAGE 17588 17589# CDPATH. 17590(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17591 17592 17593# as_fn_error STATUS ERROR [LINENO LOG_FD] 17594# ---------------------------------------- 17595# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 17596# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 17597# script with STATUS, using 1 if that was 0. 17598as_fn_error () 17599{ 17600 as_status=$1; test $as_status -eq 0 && as_status=1 17601 if test "$4"; then 17602 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 17603 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 17604 fi 17605 $as_echo "$as_me: error: $2" >&2 17606 as_fn_exit $as_status 17607} # as_fn_error 17608 17609 17610# as_fn_set_status STATUS 17611# ----------------------- 17612# Set $? to STATUS, without forking. 17613as_fn_set_status () 17614{ 17615 return $1 17616} # as_fn_set_status 17617 17618# as_fn_exit STATUS 17619# ----------------- 17620# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 17621as_fn_exit () 17622{ 17623 set +e 17624 as_fn_set_status $1 17625 exit $1 17626} # as_fn_exit 17627 17628# as_fn_unset VAR 17629# --------------- 17630# Portably unset VAR. 17631as_fn_unset () 17632{ 17633 { eval $1=; unset $1;} 17634} 17635as_unset=as_fn_unset 17636# as_fn_append VAR VALUE 17637# ---------------------- 17638# Append the text in VALUE to the end of the definition contained in VAR. Take 17639# advantage of any shell optimizations that allow amortized linear growth over 17640# repeated appends, instead of the typical quadratic growth present in naive 17641# implementations. 17642if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 17643 eval 'as_fn_append () 17644 { 17645 eval $1+=\$2 17646 }' 17647else 17648 as_fn_append () 17649 { 17650 eval $1=\$$1\$2 17651 } 17652fi # as_fn_append 17653 17654# as_fn_arith ARG... 17655# ------------------ 17656# Perform arithmetic evaluation on the ARGs, and store the result in the 17657# global $as_val. Take advantage of shells that can avoid forks. The arguments 17658# must be portable across $(()) and expr. 17659if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 17660 eval 'as_fn_arith () 17661 { 17662 as_val=$(( $* )) 17663 }' 17664else 17665 as_fn_arith () 17666 { 17667 as_val=`expr "$@" || test $? -eq 1` 17668 } 17669fi # as_fn_arith 17670 17671 17672if expr a : '\(a\)' >/dev/null 2>&1 && 17673 test "X`expr 00001 : '.*\(...\)'`" = X001; then 17674 as_expr=expr 17675else 17676 as_expr=false 17677fi 17678 17679if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 17680 as_basename=basename 17681else 17682 as_basename=false 17683fi 17684 17685if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 17686 as_dirname=dirname 17687else 17688 as_dirname=false 17689fi 17690 17691as_me=`$as_basename -- "$0" || 17692$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 17693 X"$0" : 'X\(//\)$' \| \ 17694 X"$0" : 'X\(/\)' \| . 2>/dev/null || 17695$as_echo X/"$0" | 17696 sed '/^.*\/\([^/][^/]*\)\/*$/{ 17697 s//\1/ 17698 q 17699 } 17700 /^X\/\(\/\/\)$/{ 17701 s//\1/ 17702 q 17703 } 17704 /^X\/\(\/\).*/{ 17705 s//\1/ 17706 q 17707 } 17708 s/.*/./; q'` 17709 17710# Avoid depending upon Character Ranges. 17711as_cr_letters='abcdefghijklmnopqrstuvwxyz' 17712as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 17713as_cr_Letters=$as_cr_letters$as_cr_LETTERS 17714as_cr_digits='0123456789' 17715as_cr_alnum=$as_cr_Letters$as_cr_digits 17716 17717ECHO_C= ECHO_N= ECHO_T= 17718case `echo -n x` in #((((( 17719-n*) 17720 case `echo 'xy\c'` in 17721 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 17722 xy) ECHO_C='\c';; 17723 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 17724 ECHO_T=' ';; 17725 esac;; 17726*) 17727 ECHO_N='-n';; 17728esac 17729 17730rm -f conf$$ conf$$.exe conf$$.file 17731if test -d conf$$.dir; then 17732 rm -f conf$$.dir/conf$$.file 17733else 17734 rm -f conf$$.dir 17735 mkdir conf$$.dir 2>/dev/null 17736fi 17737if (echo >conf$$.file) 2>/dev/null; then 17738 if ln -s conf$$.file conf$$ 2>/dev/null; then 17739 as_ln_s='ln -s' 17740 # ... but there are two gotchas: 17741 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 17742 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 17743 # In both cases, we have to default to `cp -pR'. 17744 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 17745 as_ln_s='cp -pR' 17746 elif ln conf$$.file conf$$ 2>/dev/null; then 17747 as_ln_s=ln 17748 else 17749 as_ln_s='cp -pR' 17750 fi 17751else 17752 as_ln_s='cp -pR' 17753fi 17754rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 17755rmdir conf$$.dir 2>/dev/null 17756 17757 17758# as_fn_mkdir_p 17759# ------------- 17760# Create "$as_dir" as a directory, including parents if necessary. 17761as_fn_mkdir_p () 17762{ 17763 17764 case $as_dir in #( 17765 -*) as_dir=./$as_dir;; 17766 esac 17767 test -d "$as_dir" || eval $as_mkdir_p || { 17768 as_dirs= 17769 while :; do 17770 case $as_dir in #( 17771 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 17772 *) as_qdir=$as_dir;; 17773 esac 17774 as_dirs="'$as_qdir' $as_dirs" 17775 as_dir=`$as_dirname -- "$as_dir" || 17776$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17777 X"$as_dir" : 'X\(//\)[^/]' \| \ 17778 X"$as_dir" : 'X\(//\)$' \| \ 17779 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 17780$as_echo X"$as_dir" | 17781 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17782 s//\1/ 17783 q 17784 } 17785 /^X\(\/\/\)[^/].*/{ 17786 s//\1/ 17787 q 17788 } 17789 /^X\(\/\/\)$/{ 17790 s//\1/ 17791 q 17792 } 17793 /^X\(\/\).*/{ 17794 s//\1/ 17795 q 17796 } 17797 s/.*/./; q'` 17798 test -d "$as_dir" && break 17799 done 17800 test -z "$as_dirs" || eval "mkdir $as_dirs" 17801 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 17802 17803 17804} # as_fn_mkdir_p 17805if mkdir -p . 2>/dev/null; then 17806 as_mkdir_p='mkdir -p "$as_dir"' 17807else 17808 test -d ./-p && rmdir ./-p 17809 as_mkdir_p=false 17810fi 17811 17812 17813# as_fn_executable_p FILE 17814# ----------------------- 17815# Test if FILE is an executable regular file. 17816as_fn_executable_p () 17817{ 17818 test -f "$1" && test -x "$1" 17819} # as_fn_executable_p 17820as_test_x='test -x' 17821as_executable_p=as_fn_executable_p 17822 17823# Sed expression to map a string onto a valid CPP name. 17824as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 17825 17826# Sed expression to map a string onto a valid variable name. 17827as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 17828 17829 17830exec 6>&1 17831## ----------------------------------- ## 17832## Main body of $CONFIG_STATUS script. ## 17833## ----------------------------------- ## 17834_ASEOF 17835test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 17836 17837cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17838# Save the log message, to keep $0 and so on meaningful, and to 17839# report actual input values of CONFIG_FILES etc. instead of their 17840# values after options handling. 17841ac_log=" 17842This file was extended by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was 17843generated by GNU Autoconf 2.69. Invocation command line was 17844 17845 CONFIG_FILES = $CONFIG_FILES 17846 CONFIG_HEADERS = $CONFIG_HEADERS 17847 CONFIG_LINKS = $CONFIG_LINKS 17848 CONFIG_COMMANDS = $CONFIG_COMMANDS 17849 $ $0 $@ 17850 17851on `(hostname || uname -n) 2>/dev/null | sed 1q` 17852" 17853 17854_ACEOF 17855 17856case $ac_config_files in *" 17857"*) set x $ac_config_files; shift; ac_config_files=$*;; 17858esac 17859 17860case $ac_config_headers in *" 17861"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 17862esac 17863 17864 17865cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17866# Files that config.status was made for. 17867config_files="$ac_config_files" 17868config_headers="$ac_config_headers" 17869config_commands="$ac_config_commands" 17870 17871_ACEOF 17872 17873cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17874ac_cs_usage="\ 17875\`$as_me' instantiates files and other configuration actions 17876from templates according to the current configuration. Unless the files 17877and actions are specified as TAGs, all are instantiated by default. 17878 17879Usage: $0 [OPTION]... [TAG]... 17880 17881 -h, --help print this help, then exit 17882 -V, --version print version number and configuration settings, then exit 17883 --config print configuration, then exit 17884 -q, --quiet, --silent 17885 do not print progress messages 17886 -d, --debug don't remove temporary files 17887 --recheck update $as_me by reconfiguring in the same conditions 17888 --file=FILE[:TEMPLATE] 17889 instantiate the configuration file FILE 17890 --header=FILE[:TEMPLATE] 17891 instantiate the configuration header FILE 17892 17893Configuration files: 17894$config_files 17895 17896Configuration headers: 17897$config_headers 17898 17899Configuration commands: 17900$config_commands 17901 17902Report bugs to the package provider. 17903GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>. 17904General help using GNU software: <http://www.gnu.org/gethelp/>." 17905 17906_ACEOF 17907cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17908ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 17909ac_cs_version="\\ 17910GNU Offloading and Multi Processing Runtime Library config.status 1.0 17911configured by $0, generated by GNU Autoconf 2.69, 17912 with options \\"\$ac_cs_config\\" 17913 17914Copyright (C) 2012 Free Software Foundation, Inc. 17915This config.status script is free software; the Free Software Foundation 17916gives unlimited permission to copy, distribute and modify it." 17917 17918ac_pwd='$ac_pwd' 17919srcdir='$srcdir' 17920INSTALL='$INSTALL' 17921MKDIR_P='$MKDIR_P' 17922AWK='$AWK' 17923test -n "\$AWK" || AWK=awk 17924_ACEOF 17925 17926cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17927# The default lists apply if the user does not specify any file. 17928ac_need_defaults=: 17929while test $# != 0 17930do 17931 case $1 in 17932 --*=?*) 17933 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17934 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 17935 ac_shift=: 17936 ;; 17937 --*=) 17938 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17939 ac_optarg= 17940 ac_shift=: 17941 ;; 17942 *) 17943 ac_option=$1 17944 ac_optarg=$2 17945 ac_shift=shift 17946 ;; 17947 esac 17948 17949 case $ac_option in 17950 # Handling of the options. 17951 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 17952 ac_cs_recheck=: ;; 17953 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 17954 $as_echo "$ac_cs_version"; exit ;; 17955 --config | --confi | --conf | --con | --co | --c ) 17956 $as_echo "$ac_cs_config"; exit ;; 17957 --debug | --debu | --deb | --de | --d | -d ) 17958 debug=: ;; 17959 --file | --fil | --fi | --f ) 17960 $ac_shift 17961 case $ac_optarg in 17962 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17963 '') as_fn_error $? "missing file argument" ;; 17964 esac 17965 as_fn_append CONFIG_FILES " '$ac_optarg'" 17966 ac_need_defaults=false;; 17967 --header | --heade | --head | --hea ) 17968 $ac_shift 17969 case $ac_optarg in 17970 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17971 esac 17972 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 17973 ac_need_defaults=false;; 17974 --he | --h) 17975 # Conflict between --help and --header 17976 as_fn_error $? "ambiguous option: \`$1' 17977Try \`$0 --help' for more information.";; 17978 --help | --hel | -h ) 17979 $as_echo "$ac_cs_usage"; exit ;; 17980 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 17981 | -silent | --silent | --silen | --sile | --sil | --si | --s) 17982 ac_cs_silent=: ;; 17983 17984 # This is an error. 17985 -*) as_fn_error $? "unrecognized option: \`$1' 17986Try \`$0 --help' for more information." ;; 17987 17988 *) as_fn_append ac_config_targets " $1" 17989 ac_need_defaults=false ;; 17990 17991 esac 17992 shift 17993done 17994 17995ac_configure_extra_args= 17996 17997if $ac_cs_silent; then 17998 exec 6>/dev/null 17999 ac_configure_extra_args="$ac_configure_extra_args --silent" 18000fi 18001 18002_ACEOF 18003cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18004if \$ac_cs_recheck; then 18005 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 18006 shift 18007 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 18008 CONFIG_SHELL='$SHELL' 18009 export CONFIG_SHELL 18010 exec "\$@" 18011fi 18012 18013_ACEOF 18014cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18015exec 5>>config.log 18016{ 18017 echo 18018 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 18019## Running $as_me. ## 18020_ASBOX 18021 $as_echo "$ac_log" 18022} >&5 18023 18024_ACEOF 18025cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18026# 18027# INIT-COMMANDS 18028# 18029 18030srcdir="$srcdir" 18031host="$host" 18032target="$target" 18033with_multisubdir="$with_multisubdir" 18034with_multisrctop="$with_multisrctop" 18035with_target_subdir="$with_target_subdir" 18036ac_configure_args="${multilib_arg} ${ac_configure_args}" 18037multi_basedir="$multi_basedir" 18038CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 18039CC="$CC" 18040CXX="$CXX" 18041GFORTRAN="$GFORTRAN" 18042GDC="$GDC" 18043AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 18044 18045 18046# The HP-UX ksh and POSIX shell print the target directory to stdout 18047# if CDPATH is set. 18048(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18049 18050sed_quote_subst='$sed_quote_subst' 18051double_quote_subst='$double_quote_subst' 18052delay_variable_subst='$delay_variable_subst' 18053macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 18054macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 18055enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 18056enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 18057pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 18058enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 18059SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 18060ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 18061host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 18062host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 18063host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 18064build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 18065build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 18066build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 18067SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 18068Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 18069GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 18070EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 18071FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 18072LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 18073NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 18074LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 18075max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 18076ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 18077exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 18078lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 18079lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 18080lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 18081reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 18082reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 18083OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 18084deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 18085file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 18086AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 18087AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 18088STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 18089RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 18090old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18091old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18092old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 18093lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 18094CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 18095CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 18096compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 18097GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 18098lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 18099lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 18100lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 18101lt_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"`' 18102objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 18103MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 18104lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 18105lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 18106lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 18107lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 18108lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 18109need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 18110DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 18111NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 18112LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 18113OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 18114OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 18115libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 18116shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 18117extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18118archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 18119enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 18120export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 18121whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 18122compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 18123old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 18124old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18125archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 18126archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18127module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 18128module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18129with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 18130allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 18131no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 18132hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 18133hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 18134hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 18135hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 18136hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 18137hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 18138hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 18139hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 18140inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 18141link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 18142fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' 18143always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 18144export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 18145exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 18146include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 18147prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 18148file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 18149variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 18150need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 18151need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 18152version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 18153runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 18154shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 18155shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 18156libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 18157library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 18158soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 18159install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 18160postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18161postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18162finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 18163finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 18164hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 18165sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 18166sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 18167hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 18168enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 18169enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 18170enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 18171old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 18172striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 18173compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 18174predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 18175postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 18176predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 18177postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 18178compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 18179LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`' 18180reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`' 18181reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`' 18182old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`' 18183compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`' 18184GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`' 18185lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`' 18186lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`' 18187lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`' 18188lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`' 18189lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`' 18190archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`' 18191enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`' 18192export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`' 18193whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`' 18194compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`' 18195old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`' 18196old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`' 18197archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`' 18198archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`' 18199module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`' 18200module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`' 18201with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`' 18202allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`' 18203no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`' 18204hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`' 18205hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`' 18206hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`' 18207hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`' 18208hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`' 18209hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`' 18210hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`' 18211hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`' 18212inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`' 18213link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`' 18214fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`' 18215always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`' 18216export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`' 18217exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`' 18218include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`' 18219prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`' 18220file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`' 18221hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`' 18222compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`' 18223predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`' 18224postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`' 18225predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`' 18226postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`' 18227compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`' 18228 18229LTCC='$LTCC' 18230LTCFLAGS='$LTCFLAGS' 18231compiler='$compiler_DEFAULT' 18232 18233# A function that is used when there is no print builtin or printf. 18234func_fallback_echo () 18235{ 18236 eval 'cat <<_LTECHO_EOF 18237\$1 18238_LTECHO_EOF' 18239} 18240 18241# Quote evaled strings. 18242for var in SHELL \ 18243ECHO \ 18244SED \ 18245GREP \ 18246EGREP \ 18247FGREP \ 18248LD \ 18249NM \ 18250LN_S \ 18251lt_SP2NL \ 18252lt_NL2SP \ 18253reload_flag \ 18254OBJDUMP \ 18255deplibs_check_method \ 18256file_magic_cmd \ 18257AR \ 18258AR_FLAGS \ 18259STRIP \ 18260RANLIB \ 18261CC \ 18262CFLAGS \ 18263compiler \ 18264lt_cv_sys_global_symbol_pipe \ 18265lt_cv_sys_global_symbol_to_cdecl \ 18266lt_cv_sys_global_symbol_to_c_name_address \ 18267lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 18268lt_prog_compiler_no_builtin_flag \ 18269lt_prog_compiler_wl \ 18270lt_prog_compiler_pic \ 18271lt_prog_compiler_static \ 18272lt_cv_prog_compiler_c_o \ 18273need_locks \ 18274DSYMUTIL \ 18275NMEDIT \ 18276LIPO \ 18277OTOOL \ 18278OTOOL64 \ 18279shrext_cmds \ 18280export_dynamic_flag_spec \ 18281whole_archive_flag_spec \ 18282compiler_needs_object \ 18283with_gnu_ld \ 18284allow_undefined_flag \ 18285no_undefined_flag \ 18286hardcode_libdir_flag_spec \ 18287hardcode_libdir_flag_spec_ld \ 18288hardcode_libdir_separator \ 18289fix_srcfile_path \ 18290exclude_expsyms \ 18291include_expsyms \ 18292file_list_spec \ 18293variables_saved_for_relink \ 18294libname_spec \ 18295library_names_spec \ 18296soname_spec \ 18297install_override_mode \ 18298finish_eval \ 18299old_striplib \ 18300striplib \ 18301compiler_lib_search_dirs \ 18302predep_objects \ 18303postdep_objects \ 18304predeps \ 18305postdeps \ 18306compiler_lib_search_path \ 18307LD_FC \ 18308reload_flag_FC \ 18309compiler_FC \ 18310lt_prog_compiler_no_builtin_flag_FC \ 18311lt_prog_compiler_wl_FC \ 18312lt_prog_compiler_pic_FC \ 18313lt_prog_compiler_static_FC \ 18314lt_cv_prog_compiler_c_o_FC \ 18315export_dynamic_flag_spec_FC \ 18316whole_archive_flag_spec_FC \ 18317compiler_needs_object_FC \ 18318with_gnu_ld_FC \ 18319allow_undefined_flag_FC \ 18320no_undefined_flag_FC \ 18321hardcode_libdir_flag_spec_FC \ 18322hardcode_libdir_flag_spec_ld_FC \ 18323hardcode_libdir_separator_FC \ 18324fix_srcfile_path_FC \ 18325exclude_expsyms_FC \ 18326include_expsyms_FC \ 18327file_list_spec_FC \ 18328compiler_lib_search_dirs_FC \ 18329predep_objects_FC \ 18330postdep_objects_FC \ 18331predeps_FC \ 18332postdeps_FC \ 18333compiler_lib_search_path_FC; do 18334 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18335 *[\\\\\\\`\\"\\\$]*) 18336 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 18337 ;; 18338 *) 18339 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18340 ;; 18341 esac 18342done 18343 18344# Double-quote double-evaled strings. 18345for var in reload_cmds \ 18346old_postinstall_cmds \ 18347old_postuninstall_cmds \ 18348old_archive_cmds \ 18349extract_expsyms_cmds \ 18350old_archive_from_new_cmds \ 18351old_archive_from_expsyms_cmds \ 18352archive_cmds \ 18353archive_expsym_cmds \ 18354module_cmds \ 18355module_expsym_cmds \ 18356export_symbols_cmds \ 18357prelink_cmds \ 18358postinstall_cmds \ 18359postuninstall_cmds \ 18360finish_cmds \ 18361sys_lib_search_path_spec \ 18362sys_lib_dlsearch_path_spec \ 18363reload_cmds_FC \ 18364old_archive_cmds_FC \ 18365old_archive_from_new_cmds_FC \ 18366old_archive_from_expsyms_cmds_FC \ 18367archive_cmds_FC \ 18368archive_expsym_cmds_FC \ 18369module_cmds_FC \ 18370module_expsym_cmds_FC \ 18371export_symbols_cmds_FC \ 18372prelink_cmds_FC; do 18373 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18374 *[\\\\\\\`\\"\\\$]*) 18375 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 18376 ;; 18377 *) 18378 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18379 ;; 18380 esac 18381done 18382 18383ac_aux_dir='$ac_aux_dir' 18384xsi_shell='$xsi_shell' 18385lt_shell_append='$lt_shell_append' 18386 18387# See if we are running on zsh, and set the options which allow our 18388# commands through without removal of \ escapes INIT. 18389if test -n "\${ZSH_VERSION+set}" ; then 18390 setopt NO_GLOB_SUBST 18391fi 18392 18393 18394 PACKAGE='$PACKAGE' 18395 VERSION='$VERSION' 18396 TIMESTAMP='$TIMESTAMP' 18397 RM='$RM' 18398 ofile='$ofile' 18399 18400 18401 18402 18403 18404 18405GCC="$GCC" 18406CC="$CC" 18407acx_cv_header_stdint="$acx_cv_header_stdint" 18408acx_cv_type_int8_t="$acx_cv_type_int8_t" 18409acx_cv_type_int16_t="$acx_cv_type_int16_t" 18410acx_cv_type_int32_t="$acx_cv_type_int32_t" 18411acx_cv_type_int64_t="$acx_cv_type_int64_t" 18412acx_cv_type_intptr_t="$acx_cv_type_intptr_t" 18413ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t" 18414ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t" 18415ac_cv_type_uint64_t="$ac_cv_type_uint64_t" 18416ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t" 18417ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t" 18418ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t" 18419ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t" 18420ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p" 18421 18422 18423_ACEOF 18424 18425cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18426 18427# Handling of arguments. 18428for ac_config_target in $ac_config_targets 18429do 18430 case $ac_config_target in 18431 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 18432 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 18433 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 18434 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 18435 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;; 18436 "omp.h") CONFIG_FILES="$CONFIG_FILES omp.h" ;; 18437 "omp_lib.h") CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;; 18438 "omp_lib.f90") CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;; 18439 "libgomp_f.h") CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;; 18440 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 18441 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;; 18442 "libgomp.spec") CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;; 18443 "testsuite/libgomp-test-support.pt.exp") CONFIG_FILES="$CONFIG_FILES testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in" ;; 18444 18445 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 18446 esac 18447done 18448 18449 18450# If the user did not use the arguments to specify the items to instantiate, 18451# then the envvar interface is used. Set only those that are not. 18452# We use the long form for the default assignment because of an extremely 18453# bizarre bug on SunOS 4.1.3. 18454if $ac_need_defaults; then 18455 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 18456 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 18457 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 18458fi 18459 18460# Have a temporary directory for convenience. Make it in the build tree 18461# simply because there is no reason against having it here, and in addition, 18462# creating and moving files from /tmp can sometimes cause problems. 18463# Hook for its removal unless debugging. 18464# Note that there is a small window in which the directory will not be cleaned: 18465# after its creation but before its name has been assigned to `$tmp'. 18466$debug || 18467{ 18468 tmp= ac_tmp= 18469 trap 'exit_status=$? 18470 : "${ac_tmp:=$tmp}" 18471 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 18472' 0 18473 trap 'as_fn_exit 1' 1 2 13 15 18474} 18475# Create a (secure) tmp directory for tmp files. 18476 18477{ 18478 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 18479 test -d "$tmp" 18480} || 18481{ 18482 tmp=./conf$$-$RANDOM 18483 (umask 077 && mkdir "$tmp") 18484} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 18485ac_tmp=$tmp 18486 18487# Set up the scripts for CONFIG_FILES section. 18488# No need to generate them if there are no CONFIG_FILES. 18489# This happens for instance with `./config.status config.h'. 18490if test -n "$CONFIG_FILES"; then 18491 18492 18493ac_cr=`echo X | tr X '\015'` 18494# On cygwin, bash can eat \r inside `` if the user requested igncr. 18495# But we know of no other shell where ac_cr would be empty at this 18496# point, so we can use a bashism as a fallback. 18497if test "x$ac_cr" = x; then 18498 eval ac_cr=\$\'\\r\' 18499fi 18500ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 18501if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 18502 ac_cs_awk_cr='\\r' 18503else 18504 ac_cs_awk_cr=$ac_cr 18505fi 18506 18507echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 18508_ACEOF 18509 18510 18511{ 18512 echo "cat >conf$$subs.awk <<_ACEOF" && 18513 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 18514 echo "_ACEOF" 18515} >conf$$subs.sh || 18516 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18517ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 18518ac_delim='%!_!# ' 18519for ac_last_try in false false false false false :; do 18520 . ./conf$$subs.sh || 18521 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18522 18523 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 18524 if test $ac_delim_n = $ac_delim_num; then 18525 break 18526 elif $ac_last_try; then 18527 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18528 else 18529 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18530 fi 18531done 18532rm -f conf$$subs.sh 18533 18534cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18535cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 18536_ACEOF 18537sed -n ' 18538h 18539s/^/S["/; s/!.*/"]=/ 18540p 18541g 18542s/^[^!]*!// 18543:repl 18544t repl 18545s/'"$ac_delim"'$// 18546t delim 18547:nl 18548h 18549s/\(.\{148\}\)..*/\1/ 18550t more1 18551s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 18552p 18553n 18554b repl 18555:more1 18556s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18557p 18558g 18559s/.\{148\}// 18560t nl 18561:delim 18562h 18563s/\(.\{148\}\)..*/\1/ 18564t more2 18565s/["\\]/\\&/g; s/^/"/; s/$/"/ 18566p 18567b 18568:more2 18569s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18570p 18571g 18572s/.\{148\}// 18573t delim 18574' <conf$$subs.awk | sed ' 18575/^[^""]/{ 18576 N 18577 s/\n// 18578} 18579' >>$CONFIG_STATUS || ac_write_fail=1 18580rm -f conf$$subs.awk 18581cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18582_ACAWK 18583cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 18584 for (key in S) S_is_set[key] = 1 18585 FS = "" 18586 18587} 18588{ 18589 line = $ 0 18590 nfields = split(line, field, "@") 18591 substed = 0 18592 len = length(field[1]) 18593 for (i = 2; i < nfields; i++) { 18594 key = field[i] 18595 keylen = length(key) 18596 if (S_is_set[key]) { 18597 value = S[key] 18598 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 18599 len += length(value) + length(field[++i]) 18600 substed = 1 18601 } else 18602 len += 1 + keylen 18603 } 18604 18605 print line 18606} 18607 18608_ACAWK 18609_ACEOF 18610cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18611if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 18612 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 18613else 18614 cat 18615fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 18616 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 18617_ACEOF 18618 18619# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 18620# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 18621# trailing colons and then remove the whole line if VPATH becomes empty 18622# (actually we leave an empty line to preserve line numbers). 18623if test "x$srcdir" = x.; then 18624 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 18625h 18626s/// 18627s/^/:/ 18628s/[ ]*$/:/ 18629s/:\$(srcdir):/:/g 18630s/:\${srcdir}:/:/g 18631s/:@srcdir@:/:/g 18632s/^:*// 18633s/:*$// 18634x 18635s/\(=[ ]*\).*/\1/ 18636G 18637s/\n// 18638s/^[^=]*=[ ]*$// 18639}' 18640fi 18641 18642cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18643fi # test -n "$CONFIG_FILES" 18644 18645# Set up the scripts for CONFIG_HEADERS section. 18646# No need to generate them if there are no CONFIG_HEADERS. 18647# This happens for instance with `./config.status Makefile'. 18648if test -n "$CONFIG_HEADERS"; then 18649cat >"$ac_tmp/defines.awk" <<\_ACAWK || 18650BEGIN { 18651_ACEOF 18652 18653# Transform confdefs.h into an awk script `defines.awk', embedded as 18654# here-document in config.status, that substitutes the proper values into 18655# config.h.in to produce config.h. 18656 18657# Create a delimiter string that does not exist in confdefs.h, to ease 18658# handling of long lines. 18659ac_delim='%!_!# ' 18660for ac_last_try in false false :; do 18661 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 18662 if test -z "$ac_tt"; then 18663 break 18664 elif $ac_last_try; then 18665 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 18666 else 18667 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18668 fi 18669done 18670 18671# For the awk script, D is an array of macro values keyed by name, 18672# likewise P contains macro parameters if any. Preserve backslash 18673# newline sequences. 18674 18675ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 18676sed -n ' 18677s/.\{148\}/&'"$ac_delim"'/g 18678t rset 18679:rset 18680s/^[ ]*#[ ]*define[ ][ ]*/ / 18681t def 18682d 18683:def 18684s/\\$// 18685t bsnl 18686s/["\\]/\\&/g 18687s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18688D["\1"]=" \3"/p 18689s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 18690d 18691:bsnl 18692s/["\\]/\\&/g 18693s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18694D["\1"]=" \3\\\\\\n"\\/p 18695t cont 18696s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 18697t cont 18698d 18699:cont 18700n 18701s/.\{148\}/&'"$ac_delim"'/g 18702t clear 18703:clear 18704s/\\$// 18705t bsnlc 18706s/["\\]/\\&/g; s/^/"/; s/$/"/p 18707d 18708:bsnlc 18709s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 18710b cont 18711' <confdefs.h | sed ' 18712s/'"$ac_delim"'/"\\\ 18713"/g' >>$CONFIG_STATUS || ac_write_fail=1 18714 18715cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18716 for (key in D) D_is_set[key] = 1 18717 FS = "" 18718} 18719/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 18720 line = \$ 0 18721 split(line, arg, " ") 18722 if (arg[1] == "#") { 18723 defundef = arg[2] 18724 mac1 = arg[3] 18725 } else { 18726 defundef = substr(arg[1], 2) 18727 mac1 = arg[2] 18728 } 18729 split(mac1, mac2, "(") #) 18730 macro = mac2[1] 18731 prefix = substr(line, 1, index(line, defundef) - 1) 18732 if (D_is_set[macro]) { 18733 # Preserve the white space surrounding the "#". 18734 print prefix "define", macro P[macro] D[macro] 18735 next 18736 } else { 18737 # Replace #undef with comments. This is necessary, for example, 18738 # in the case of _POSIX_SOURCE, which is predefined and required 18739 # on some systems where configure will not decide to define it. 18740 if (defundef == "undef") { 18741 print "/*", prefix defundef, macro, "*/" 18742 next 18743 } 18744 } 18745} 18746{ print } 18747_ACAWK 18748_ACEOF 18749cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18750 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 18751fi # test -n "$CONFIG_HEADERS" 18752 18753 18754eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 18755shift 18756for ac_tag 18757do 18758 case $ac_tag in 18759 :[FHLC]) ac_mode=$ac_tag; continue;; 18760 esac 18761 case $ac_mode$ac_tag in 18762 :[FHL]*:*);; 18763 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 18764 :[FH]-) ac_tag=-:-;; 18765 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 18766 esac 18767 ac_save_IFS=$IFS 18768 IFS=: 18769 set x $ac_tag 18770 IFS=$ac_save_IFS 18771 shift 18772 ac_file=$1 18773 shift 18774 18775 case $ac_mode in 18776 :L) ac_source=$1;; 18777 :[FH]) 18778 ac_file_inputs= 18779 for ac_f 18780 do 18781 case $ac_f in 18782 -) ac_f="$ac_tmp/stdin";; 18783 *) # Look for the file first in the build tree, then in the source tree 18784 # (if the path is not absolute). The absolute path cannot be DOS-style, 18785 # because $ac_f cannot contain `:'. 18786 test -f "$ac_f" || 18787 case $ac_f in 18788 [\\/$]*) false;; 18789 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 18790 esac || 18791 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 18792 esac 18793 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 18794 as_fn_append ac_file_inputs " '$ac_f'" 18795 done 18796 18797 # Let's still pretend it is `configure' which instantiates (i.e., don't 18798 # use $as_me), people would be surprised to read: 18799 # /* config.h. Generated by config.status. */ 18800 configure_input='Generated from '` 18801 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 18802 `' by configure.' 18803 if test x"$ac_file" != x-; then 18804 configure_input="$ac_file. $configure_input" 18805 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 18806$as_echo "$as_me: creating $ac_file" >&6;} 18807 fi 18808 # Neutralize special characters interpreted by sed in replacement strings. 18809 case $configure_input in #( 18810 *\&* | *\|* | *\\* ) 18811 ac_sed_conf_input=`$as_echo "$configure_input" | 18812 sed 's/[\\\\&|]/\\\\&/g'`;; #( 18813 *) ac_sed_conf_input=$configure_input;; 18814 esac 18815 18816 case $ac_tag in 18817 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 18818 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 18819 esac 18820 ;; 18821 esac 18822 18823 ac_dir=`$as_dirname -- "$ac_file" || 18824$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18825 X"$ac_file" : 'X\(//\)[^/]' \| \ 18826 X"$ac_file" : 'X\(//\)$' \| \ 18827 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 18828$as_echo X"$ac_file" | 18829 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18830 s//\1/ 18831 q 18832 } 18833 /^X\(\/\/\)[^/].*/{ 18834 s//\1/ 18835 q 18836 } 18837 /^X\(\/\/\)$/{ 18838 s//\1/ 18839 q 18840 } 18841 /^X\(\/\).*/{ 18842 s//\1/ 18843 q 18844 } 18845 s/.*/./; q'` 18846 as_dir="$ac_dir"; as_fn_mkdir_p 18847 ac_builddir=. 18848 18849case "$ac_dir" in 18850.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 18851*) 18852 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 18853 # A ".." for each directory in $ac_dir_suffix. 18854 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 18855 case $ac_top_builddir_sub in 18856 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 18857 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 18858 esac ;; 18859esac 18860ac_abs_top_builddir=$ac_pwd 18861ac_abs_builddir=$ac_pwd$ac_dir_suffix 18862# for backward compatibility: 18863ac_top_builddir=$ac_top_build_prefix 18864 18865case $srcdir in 18866 .) # We are building in place. 18867 ac_srcdir=. 18868 ac_top_srcdir=$ac_top_builddir_sub 18869 ac_abs_top_srcdir=$ac_pwd ;; 18870 [\\/]* | ?:[\\/]* ) # Absolute name. 18871 ac_srcdir=$srcdir$ac_dir_suffix; 18872 ac_top_srcdir=$srcdir 18873 ac_abs_top_srcdir=$srcdir ;; 18874 *) # Relative name. 18875 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 18876 ac_top_srcdir=$ac_top_build_prefix$srcdir 18877 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 18878esac 18879ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 18880 18881 18882 case $ac_mode in 18883 :F) 18884 # 18885 # CONFIG_FILE 18886 # 18887 18888 case $INSTALL in 18889 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 18890 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 18891 esac 18892 ac_MKDIR_P=$MKDIR_P 18893 case $MKDIR_P in 18894 [\\/$]* | ?:[\\/]* ) ;; 18895 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 18896 esac 18897_ACEOF 18898 18899cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18900# If the template does not know about datarootdir, expand it. 18901# FIXME: This hack should be removed a few years after 2.60. 18902ac_datarootdir_hack=; ac_datarootdir_seen= 18903ac_sed_dataroot=' 18904/datarootdir/ { 18905 p 18906 q 18907} 18908/@datadir@/p 18909/@docdir@/p 18910/@infodir@/p 18911/@localedir@/p 18912/@mandir@/p' 18913case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 18914*datarootdir*) ac_datarootdir_seen=yes;; 18915*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 18916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 18917$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 18918_ACEOF 18919cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18920 ac_datarootdir_hack=' 18921 s&@datadir@&$datadir&g 18922 s&@docdir@&$docdir&g 18923 s&@infodir@&$infodir&g 18924 s&@localedir@&$localedir&g 18925 s&@mandir@&$mandir&g 18926 s&\\\${datarootdir}&$datarootdir&g' ;; 18927esac 18928_ACEOF 18929 18930# Neutralize VPATH when `$srcdir' = `.'. 18931# Shell code in configure.ac might set extrasub. 18932# FIXME: do we really want to maintain this feature? 18933cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18934ac_sed_extra="$ac_vpsub 18935$extrasub 18936_ACEOF 18937cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18938:t 18939/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 18940s|@configure_input@|$ac_sed_conf_input|;t t 18941s&@top_builddir@&$ac_top_builddir_sub&;t t 18942s&@top_build_prefix@&$ac_top_build_prefix&;t t 18943s&@srcdir@&$ac_srcdir&;t t 18944s&@abs_srcdir@&$ac_abs_srcdir&;t t 18945s&@top_srcdir@&$ac_top_srcdir&;t t 18946s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 18947s&@builddir@&$ac_builddir&;t t 18948s&@abs_builddir@&$ac_abs_builddir&;t t 18949s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 18950s&@INSTALL@&$ac_INSTALL&;t t 18951s&@MKDIR_P@&$ac_MKDIR_P&;t t 18952$ac_datarootdir_hack 18953" 18954eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 18955 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18956 18957test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 18958 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 18959 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 18960 "$ac_tmp/out"`; test -z "$ac_out"; } && 18961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18962which seems to be undefined. Please make sure it is defined" >&5 18963$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18964which seems to be undefined. Please make sure it is defined" >&2;} 18965 18966 rm -f "$ac_tmp/stdin" 18967 case $ac_file in 18968 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 18969 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 18970 esac \ 18971 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18972 ;; 18973 :H) 18974 # 18975 # CONFIG_HEADER 18976 # 18977 if test x"$ac_file" != x-; then 18978 { 18979 $as_echo "/* $configure_input */" \ 18980 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 18981 } >"$ac_tmp/config.h" \ 18982 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18983 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 18984 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 18985$as_echo "$as_me: $ac_file is unchanged" >&6;} 18986 else 18987 rm -f "$ac_file" 18988 mv "$ac_tmp/config.h" "$ac_file" \ 18989 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18990 fi 18991 else 18992 $as_echo "/* $configure_input */" \ 18993 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 18994 || as_fn_error $? "could not create -" "$LINENO" 5 18995 fi 18996# Compute "$ac_file"'s index in $config_headers. 18997_am_arg="$ac_file" 18998_am_stamp_count=1 18999for _am_header in $config_headers :; do 19000 case $_am_header in 19001 $_am_arg | $_am_arg:* ) 19002 break ;; 19003 * ) 19004 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 19005 esac 19006done 19007echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 19008$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19009 X"$_am_arg" : 'X\(//\)[^/]' \| \ 19010 X"$_am_arg" : 'X\(//\)$' \| \ 19011 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 19012$as_echo X"$_am_arg" | 19013 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19014 s//\1/ 19015 q 19016 } 19017 /^X\(\/\/\)[^/].*/{ 19018 s//\1/ 19019 q 19020 } 19021 /^X\(\/\/\)$/{ 19022 s//\1/ 19023 q 19024 } 19025 /^X\(\/\).*/{ 19026 s//\1/ 19027 q 19028 } 19029 s/.*/./; q'`/stamp-h$_am_stamp_count 19030 ;; 19031 19032 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 19033$as_echo "$as_me: executing $ac_file commands" >&6;} 19034 ;; 19035 esac 19036 19037 19038 case $ac_file$ac_mode in 19039 "default-1":C) 19040# Only add multilib support code if we just rebuilt the top-level 19041# Makefile. 19042case " $CONFIG_FILES " in 19043 *" Makefile "*) 19044 ac_file=Makefile . ${multi_basedir}/config-ml.in 19045 ;; 19046esac ;; 19047 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 19048 # Older Autoconf quotes --file arguments for eval, but not when files 19049 # are listed without --file. Let's play safe and only enable the eval 19050 # if we detect the quoting. 19051 case $CONFIG_FILES in 19052 *\'*) eval set x "$CONFIG_FILES" ;; 19053 *) set x $CONFIG_FILES ;; 19054 esac 19055 shift 19056 for mf 19057 do 19058 # Strip MF so we end up with the name of the file. 19059 mf=`echo "$mf" | sed -e 's/:.*$//'` 19060 # Check whether this is an Automake generated Makefile or not. 19061 # We used to match only the files named 'Makefile.in', but 19062 # some people rename them; so instead we look at the file content. 19063 # Grep'ing the first line is not enough: some people post-process 19064 # each Makefile.in and add a new line on top of each file to say so. 19065 # Grep'ing the whole file is not good either: AIX grep has a line 19066 # limit of 2048, but all sed's we know have understand at least 4000. 19067 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 19068 dirpart=`$as_dirname -- "$mf" || 19069$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19070 X"$mf" : 'X\(//\)[^/]' \| \ 19071 X"$mf" : 'X\(//\)$' \| \ 19072 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 19073$as_echo X"$mf" | 19074 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19075 s//\1/ 19076 q 19077 } 19078 /^X\(\/\/\)[^/].*/{ 19079 s//\1/ 19080 q 19081 } 19082 /^X\(\/\/\)$/{ 19083 s//\1/ 19084 q 19085 } 19086 /^X\(\/\).*/{ 19087 s//\1/ 19088 q 19089 } 19090 s/.*/./; q'` 19091 else 19092 continue 19093 fi 19094 # Extract the definition of DEPDIR, am__include, and am__quote 19095 # from the Makefile without running 'make'. 19096 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 19097 test -z "$DEPDIR" && continue 19098 am__include=`sed -n 's/^am__include = //p' < "$mf"` 19099 test -z "$am__include" && continue 19100 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 19101 # Find all dependency output files, they are included files with 19102 # $(DEPDIR) in their names. We invoke sed twice because it is the 19103 # simplest approach to changing $(DEPDIR) to its actual value in the 19104 # expansion. 19105 for file in `sed -n " 19106 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 19107 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 19108 # Make sure the directory exists. 19109 test -f "$dirpart/$file" && continue 19110 fdir=`$as_dirname -- "$file" || 19111$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19112 X"$file" : 'X\(//\)[^/]' \| \ 19113 X"$file" : 'X\(//\)$' \| \ 19114 X"$file" : 'X\(/\)' \| . 2>/dev/null || 19115$as_echo X"$file" | 19116 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19117 s//\1/ 19118 q 19119 } 19120 /^X\(\/\/\)[^/].*/{ 19121 s//\1/ 19122 q 19123 } 19124 /^X\(\/\/\)$/{ 19125 s//\1/ 19126 q 19127 } 19128 /^X\(\/\).*/{ 19129 s//\1/ 19130 q 19131 } 19132 s/.*/./; q'` 19133 as_dir=$dirpart/$fdir; as_fn_mkdir_p 19134 # echo "creating $dirpart/$file" 19135 echo '# dummy' > "$dirpart/$file" 19136 done 19137 done 19138} 19139 ;; 19140 "libtool":C) 19141 19142 # See if we are running on zsh, and set the options which allow our 19143 # commands through without removal of \ escapes. 19144 if test -n "${ZSH_VERSION+set}" ; then 19145 setopt NO_GLOB_SUBST 19146 fi 19147 19148 cfgfile="${ofile}T" 19149 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 19150 $RM "$cfgfile" 19151 19152 cat <<_LT_EOF >> "$cfgfile" 19153#! $SHELL 19154 19155# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 19156# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 19157# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19158# NOTE: Changes made to this file will be lost: look at ltmain.sh. 19159# 19160# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 19161# 2006, 2007, 2008, 2009 Free Software Foundation, Inc. 19162# Written by Gordon Matzigkeit, 1996 19163# 19164# This file is part of GNU Libtool. 19165# 19166# GNU Libtool is free software; you can redistribute it and/or 19167# modify it under the terms of the GNU General Public License as 19168# published by the Free Software Foundation; either version 2 of 19169# the License, or (at your option) any later version. 19170# 19171# As a special exception to the GNU General Public License, 19172# if you distribute this file as part of a program or library that 19173# is built using GNU Libtool, you may include this file under the 19174# same distribution terms that you use for the rest of that program. 19175# 19176# GNU Libtool is distributed in the hope that it will be useful, 19177# but WITHOUT ANY WARRANTY; without even the implied warranty of 19178# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19179# GNU General Public License for more details. 19180# 19181# You should have received a copy of the GNU General Public License 19182# along with GNU Libtool; see the file COPYING. If not, a copy 19183# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 19184# obtained by writing to the Free Software Foundation, Inc., 19185# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 19186 19187 19188# The names of the tagged configurations supported by this script. 19189available_tags="FC " 19190 19191# ### BEGIN LIBTOOL CONFIG 19192 19193# Which release of libtool.m4 was used? 19194macro_version=$macro_version 19195macro_revision=$macro_revision 19196 19197# Whether or not to build shared libraries. 19198build_libtool_libs=$enable_shared 19199 19200# Whether or not to build static libraries. 19201build_old_libs=$enable_static 19202 19203# What type of objects to build. 19204pic_mode=$pic_mode 19205 19206# Whether or not to optimize for fast installation. 19207fast_install=$enable_fast_install 19208 19209# Shell to use when invoking shell scripts. 19210SHELL=$lt_SHELL 19211 19212# An echo program that protects backslashes. 19213ECHO=$lt_ECHO 19214 19215# The host system. 19216host_alias=$host_alias 19217host=$host 19218host_os=$host_os 19219 19220# The build system. 19221build_alias=$build_alias 19222build=$build 19223build_os=$build_os 19224 19225# A sed program that does not truncate output. 19226SED=$lt_SED 19227 19228# Sed that helps us avoid accidentally triggering echo(1) options like -n. 19229Xsed="\$SED -e 1s/^X//" 19230 19231# A grep program that handles long lines. 19232GREP=$lt_GREP 19233 19234# An ERE matcher. 19235EGREP=$lt_EGREP 19236 19237# A literal string matcher. 19238FGREP=$lt_FGREP 19239 19240# A BSD- or MS-compatible name lister. 19241NM=$lt_NM 19242 19243# Whether we need soft or hard links. 19244LN_S=$lt_LN_S 19245 19246# What is the maximum length of a command? 19247max_cmd_len=$max_cmd_len 19248 19249# Object file suffix (normally "o"). 19250objext=$ac_objext 19251 19252# Executable file suffix (normally ""). 19253exeext=$exeext 19254 19255# whether the shell understands "unset". 19256lt_unset=$lt_unset 19257 19258# turn spaces into newlines. 19259SP2NL=$lt_lt_SP2NL 19260 19261# turn newlines into spaces. 19262NL2SP=$lt_lt_NL2SP 19263 19264# An object symbol dumper. 19265OBJDUMP=$lt_OBJDUMP 19266 19267# Method to check whether dependent libraries are shared objects. 19268deplibs_check_method=$lt_deplibs_check_method 19269 19270# Command to use when deplibs_check_method == "file_magic". 19271file_magic_cmd=$lt_file_magic_cmd 19272 19273# The archiver. 19274AR=$lt_AR 19275AR_FLAGS=$lt_AR_FLAGS 19276 19277# A symbol stripping program. 19278STRIP=$lt_STRIP 19279 19280# Commands used to install an old-style archive. 19281RANLIB=$lt_RANLIB 19282old_postinstall_cmds=$lt_old_postinstall_cmds 19283old_postuninstall_cmds=$lt_old_postuninstall_cmds 19284 19285# Whether to use a lock for old archive extraction. 19286lock_old_archive_extraction=$lock_old_archive_extraction 19287 19288# A C compiler. 19289LTCC=$lt_CC 19290 19291# LTCC compiler flags. 19292LTCFLAGS=$lt_CFLAGS 19293 19294# Take the output of nm and produce a listing of raw symbols and C names. 19295global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19296 19297# Transform the output of nm in a proper C declaration. 19298global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19299 19300# Transform the output of nm in a C name address pair. 19301global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19302 19303# Transform the output of nm in a C name address pair when lib prefix is needed. 19304global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 19305 19306# The name of the directory that contains temporary libtool files. 19307objdir=$objdir 19308 19309# Used to examine libraries when file_magic_cmd begins with "file". 19310MAGIC_CMD=$MAGIC_CMD 19311 19312# Must we lock files when doing compilation? 19313need_locks=$lt_need_locks 19314 19315# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 19316DSYMUTIL=$lt_DSYMUTIL 19317 19318# Tool to change global to local symbols on Mac OS X. 19319NMEDIT=$lt_NMEDIT 19320 19321# Tool to manipulate fat objects and archives on Mac OS X. 19322LIPO=$lt_LIPO 19323 19324# ldd/readelf like tool for Mach-O binaries on Mac OS X. 19325OTOOL=$lt_OTOOL 19326 19327# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 19328OTOOL64=$lt_OTOOL64 19329 19330# Old archive suffix (normally "a"). 19331libext=$libext 19332 19333# Shared library suffix (normally ".so"). 19334shrext_cmds=$lt_shrext_cmds 19335 19336# The commands to extract the exported symbol list from a shared archive. 19337extract_expsyms_cmds=$lt_extract_expsyms_cmds 19338 19339# Variables whose values should be saved in libtool wrapper scripts and 19340# restored at link time. 19341variables_saved_for_relink=$lt_variables_saved_for_relink 19342 19343# Do we need the "lib" prefix for modules? 19344need_lib_prefix=$need_lib_prefix 19345 19346# Do we need a version for libraries? 19347need_version=$need_version 19348 19349# Library versioning type. 19350version_type=$version_type 19351 19352# Shared library runtime path variable. 19353runpath_var=$runpath_var 19354 19355# Shared library path variable. 19356shlibpath_var=$shlibpath_var 19357 19358# Is shlibpath searched before the hard-coded library search path? 19359shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19360 19361# Format of library name prefix. 19362libname_spec=$lt_libname_spec 19363 19364# List of archive names. First name is the real one, the rest are links. 19365# The last name is the one that the linker finds with -lNAME 19366library_names_spec=$lt_library_names_spec 19367 19368# The coded name of the library, if different from the real name. 19369soname_spec=$lt_soname_spec 19370 19371# Permission mode override for installation of shared libraries. 19372install_override_mode=$lt_install_override_mode 19373 19374# Command to use after installation of a shared archive. 19375postinstall_cmds=$lt_postinstall_cmds 19376 19377# Command to use after uninstallation of a shared archive. 19378postuninstall_cmds=$lt_postuninstall_cmds 19379 19380# Commands used to finish a libtool library installation in a directory. 19381finish_cmds=$lt_finish_cmds 19382 19383# As "finish_cmds", except a single script fragment to be evaled but 19384# not shown. 19385finish_eval=$lt_finish_eval 19386 19387# Whether we should hardcode library paths into libraries. 19388hardcode_into_libs=$hardcode_into_libs 19389 19390# Compile-time system search path for libraries. 19391sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19392 19393# Run-time system search path for libraries. 19394sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19395 19396# Whether dlopen is supported. 19397dlopen_support=$enable_dlopen 19398 19399# Whether dlopen of programs is supported. 19400dlopen_self=$enable_dlopen_self 19401 19402# Whether dlopen of statically linked programs is supported. 19403dlopen_self_static=$enable_dlopen_self_static 19404 19405# Commands to strip libraries. 19406old_striplib=$lt_old_striplib 19407striplib=$lt_striplib 19408 19409 19410# The linker used to build libraries. 19411LD=$lt_LD 19412 19413# How to create reloadable object files. 19414reload_flag=$lt_reload_flag 19415reload_cmds=$lt_reload_cmds 19416 19417# Commands used to build an old-style archive. 19418old_archive_cmds=$lt_old_archive_cmds 19419 19420# A language specific compiler. 19421CC=$lt_compiler 19422 19423# Is the compiler the GNU compiler? 19424with_gcc=$GCC 19425 19426# Compiler flag to turn off builtin functions. 19427no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 19428 19429# How to pass a linker flag through the compiler. 19430wl=$lt_lt_prog_compiler_wl 19431 19432# Additional compiler flags for building library objects. 19433pic_flag=$lt_lt_prog_compiler_pic 19434 19435# Compiler flag to prevent dynamic linking. 19436link_static_flag=$lt_lt_prog_compiler_static 19437 19438# Does compiler simultaneously support -c and -o options? 19439compiler_c_o=$lt_lt_cv_prog_compiler_c_o 19440 19441# Whether or not to add -lc for building shared libraries. 19442build_libtool_need_lc=$archive_cmds_need_lc 19443 19444# Whether or not to disallow shared libs when runtime libs are static. 19445allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 19446 19447# Compiler flag to allow reflexive dlopens. 19448export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 19449 19450# Compiler flag to generate shared objects directly from archives. 19451whole_archive_flag_spec=$lt_whole_archive_flag_spec 19452 19453# Whether the compiler copes with passing no objects directly. 19454compiler_needs_object=$lt_compiler_needs_object 19455 19456# Create an old-style archive from a shared archive. 19457old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 19458 19459# Create a temporary old-style archive to link instead of a shared archive. 19460old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 19461 19462# Commands used to build a shared archive. 19463archive_cmds=$lt_archive_cmds 19464archive_expsym_cmds=$lt_archive_expsym_cmds 19465 19466# Commands used to build a loadable module if different from building 19467# a shared archive. 19468module_cmds=$lt_module_cmds 19469module_expsym_cmds=$lt_module_expsym_cmds 19470 19471# Whether we are building with GNU ld or not. 19472with_gnu_ld=$lt_with_gnu_ld 19473 19474# Flag that allows shared libraries with undefined symbols to be built. 19475allow_undefined_flag=$lt_allow_undefined_flag 19476 19477# Flag that enforces no undefined symbols. 19478no_undefined_flag=$lt_no_undefined_flag 19479 19480# Flag to hardcode \$libdir into a binary during linking. 19481# This must work even if \$libdir does not exist 19482hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 19483 19484# If ld is used when linking, flag to hardcode \$libdir into a binary 19485# during linking. This must work even if \$libdir does not exist. 19486hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 19487 19488# Whether we need a single "-rpath" flag with a separated argument. 19489hardcode_libdir_separator=$lt_hardcode_libdir_separator 19490 19491# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19492# DIR into the resulting binary. 19493hardcode_direct=$hardcode_direct 19494 19495# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19496# DIR into the resulting binary and the resulting library dependency is 19497# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 19498# library is relocated. 19499hardcode_direct_absolute=$hardcode_direct_absolute 19500 19501# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 19502# into the resulting binary. 19503hardcode_minus_L=$hardcode_minus_L 19504 19505# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 19506# into the resulting binary. 19507hardcode_shlibpath_var=$hardcode_shlibpath_var 19508 19509# Set to "yes" if building a shared library automatically hardcodes DIR 19510# into the library and all subsequent libraries and executables linked 19511# against it. 19512hardcode_automatic=$hardcode_automatic 19513 19514# Set to yes if linker adds runtime paths of dependent libraries 19515# to runtime path list. 19516inherit_rpath=$inherit_rpath 19517 19518# Whether libtool must link a program against all its dependency libraries. 19519link_all_deplibs=$link_all_deplibs 19520 19521# Fix the shell variable \$srcfile for the compiler. 19522fix_srcfile_path=$lt_fix_srcfile_path 19523 19524# Set to "yes" if exported symbols are required. 19525always_export_symbols=$always_export_symbols 19526 19527# The commands to list exported symbols. 19528export_symbols_cmds=$lt_export_symbols_cmds 19529 19530# Symbols that should not be listed in the preloaded symbols. 19531exclude_expsyms=$lt_exclude_expsyms 19532 19533# Symbols that must always be exported. 19534include_expsyms=$lt_include_expsyms 19535 19536# Commands necessary for linking programs (against libraries) with templates. 19537prelink_cmds=$lt_prelink_cmds 19538 19539# Specify filename containing input files. 19540file_list_spec=$lt_file_list_spec 19541 19542# How to hardcode a shared library path into an executable. 19543hardcode_action=$hardcode_action 19544 19545# The directories searched by this compiler when creating a shared library. 19546compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 19547 19548# Dependencies to place before and after the objects being linked to 19549# create a shared library. 19550predep_objects=$lt_predep_objects 19551postdep_objects=$lt_postdep_objects 19552predeps=$lt_predeps 19553postdeps=$lt_postdeps 19554 19555# The library search path used internally by the compiler when linking 19556# a shared library. 19557compiler_lib_search_path=$lt_compiler_lib_search_path 19558 19559# ### END LIBTOOL CONFIG 19560 19561_LT_EOF 19562 19563 case $host_os in 19564 aix3*) 19565 cat <<\_LT_EOF >> "$cfgfile" 19566# AIX sometimes has problems with the GCC collect2 program. For some 19567# reason, if we set the COLLECT_NAMES environment variable, the problems 19568# vanish in a puff of smoke. 19569if test "X${COLLECT_NAMES+set}" != Xset; then 19570 COLLECT_NAMES= 19571 export COLLECT_NAMES 19572fi 19573_LT_EOF 19574 ;; 19575 esac 19576 19577 19578ltmain="$ac_aux_dir/ltmain.sh" 19579 19580 19581 # We use sed instead of cat because bash on DJGPP gets confused if 19582 # if finds mixed CR/LF and LF-only lines. Since sed operates in 19583 # text mode, it properly converts lines to CR/LF. This bash problem 19584 # is reportedly fixed, but why not run on old versions too? 19585 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 19586 || (rm -f "$cfgfile"; exit 1) 19587 19588 case $xsi_shell in 19589 yes) 19590 cat << \_LT_EOF >> "$cfgfile" 19591 19592# func_dirname file append nondir_replacement 19593# Compute the dirname of FILE. If nonempty, add APPEND to the result, 19594# otherwise set result to NONDIR_REPLACEMENT. 19595func_dirname () 19596{ 19597 case ${1} in 19598 */*) func_dirname_result="${1%/*}${2}" ;; 19599 * ) func_dirname_result="${3}" ;; 19600 esac 19601} 19602 19603# func_basename file 19604func_basename () 19605{ 19606 func_basename_result="${1##*/}" 19607} 19608 19609# func_dirname_and_basename file append nondir_replacement 19610# perform func_basename and func_dirname in a single function 19611# call: 19612# dirname: Compute the dirname of FILE. If nonempty, 19613# add APPEND to the result, otherwise set result 19614# to NONDIR_REPLACEMENT. 19615# value returned in "$func_dirname_result" 19616# basename: Compute filename of FILE. 19617# value retuned in "$func_basename_result" 19618# Implementation must be kept synchronized with func_dirname 19619# and func_basename. For efficiency, we do not delegate to 19620# those functions but instead duplicate the functionality here. 19621func_dirname_and_basename () 19622{ 19623 case ${1} in 19624 */*) func_dirname_result="${1%/*}${2}" ;; 19625 * ) func_dirname_result="${3}" ;; 19626 esac 19627 func_basename_result="${1##*/}" 19628} 19629 19630# func_stripname prefix suffix name 19631# strip PREFIX and SUFFIX off of NAME. 19632# PREFIX and SUFFIX must not contain globbing or regex special 19633# characters, hashes, percent signs, but SUFFIX may contain a leading 19634# dot (in which case that matches only a dot). 19635func_stripname () 19636{ 19637 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 19638 # positional parameters, so assign one to ordinary parameter first. 19639 func_stripname_result=${3} 19640 func_stripname_result=${func_stripname_result#"${1}"} 19641 func_stripname_result=${func_stripname_result%"${2}"} 19642} 19643 19644# func_opt_split 19645func_opt_split () 19646{ 19647 func_opt_split_opt=${1%%=*} 19648 func_opt_split_arg=${1#*=} 19649} 19650 19651# func_lo2o object 19652func_lo2o () 19653{ 19654 case ${1} in 19655 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 19656 *) func_lo2o_result=${1} ;; 19657 esac 19658} 19659 19660# func_xform libobj-or-source 19661func_xform () 19662{ 19663 func_xform_result=${1%.*}.lo 19664} 19665 19666# func_arith arithmetic-term... 19667func_arith () 19668{ 19669 func_arith_result=$(( $* )) 19670} 19671 19672# func_len string 19673# STRING may not start with a hyphen. 19674func_len () 19675{ 19676 func_len_result=${#1} 19677} 19678 19679_LT_EOF 19680 ;; 19681 *) # Bourne compatible functions. 19682 cat << \_LT_EOF >> "$cfgfile" 19683 19684# func_dirname file append nondir_replacement 19685# Compute the dirname of FILE. If nonempty, add APPEND to the result, 19686# otherwise set result to NONDIR_REPLACEMENT. 19687func_dirname () 19688{ 19689 # Extract subdirectory from the argument. 19690 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` 19691 if test "X$func_dirname_result" = "X${1}"; then 19692 func_dirname_result="${3}" 19693 else 19694 func_dirname_result="$func_dirname_result${2}" 19695 fi 19696} 19697 19698# func_basename file 19699func_basename () 19700{ 19701 func_basename_result=`$ECHO "${1}" | $SED "$basename"` 19702} 19703 19704 19705# func_stripname prefix suffix name 19706# strip PREFIX and SUFFIX off of NAME. 19707# PREFIX and SUFFIX must not contain globbing or regex special 19708# characters, hashes, percent signs, but SUFFIX may contain a leading 19709# dot (in which case that matches only a dot). 19710# func_strip_suffix prefix name 19711func_stripname () 19712{ 19713 case ${2} in 19714 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 19715 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 19716 esac 19717} 19718 19719# sed scripts: 19720my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 19721my_sed_long_arg='1s/^-[^=]*=//' 19722 19723# func_opt_split 19724func_opt_split () 19725{ 19726 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` 19727 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` 19728} 19729 19730# func_lo2o object 19731func_lo2o () 19732{ 19733 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` 19734} 19735 19736# func_xform libobj-or-source 19737func_xform () 19738{ 19739 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` 19740} 19741 19742# func_arith arithmetic-term... 19743func_arith () 19744{ 19745 func_arith_result=`expr "$@"` 19746} 19747 19748# func_len string 19749# STRING may not start with a hyphen. 19750func_len () 19751{ 19752 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 19753} 19754 19755_LT_EOF 19756esac 19757 19758case $lt_shell_append in 19759 yes) 19760 cat << \_LT_EOF >> "$cfgfile" 19761 19762# func_append var value 19763# Append VALUE to the end of shell variable VAR. 19764func_append () 19765{ 19766 eval "$1+=\$2" 19767} 19768_LT_EOF 19769 ;; 19770 *) 19771 cat << \_LT_EOF >> "$cfgfile" 19772 19773# func_append var value 19774# Append VALUE to the end of shell variable VAR. 19775func_append () 19776{ 19777 eval "$1=\$$1\$2" 19778} 19779 19780_LT_EOF 19781 ;; 19782 esac 19783 19784 19785 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 19786 || (rm -f "$cfgfile"; exit 1) 19787 19788 mv -f "$cfgfile" "$ofile" || 19789 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 19790 chmod +x "$ofile" 19791 19792 19793 cat <<_LT_EOF >> "$ofile" 19794 19795# ### BEGIN LIBTOOL TAG CONFIG: FC 19796 19797# The linker used to build libraries. 19798LD=$lt_LD_FC 19799 19800# How to create reloadable object files. 19801reload_flag=$lt_reload_flag_FC 19802reload_cmds=$lt_reload_cmds_FC 19803 19804# Commands used to build an old-style archive. 19805old_archive_cmds=$lt_old_archive_cmds_FC 19806 19807# A language specific compiler. 19808CC=$lt_compiler_FC 19809 19810# Is the compiler the GNU compiler? 19811with_gcc=$GCC_FC 19812 19813# Compiler flag to turn off builtin functions. 19814no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC 19815 19816# How to pass a linker flag through the compiler. 19817wl=$lt_lt_prog_compiler_wl_FC 19818 19819# Additional compiler flags for building library objects. 19820pic_flag=$lt_lt_prog_compiler_pic_FC 19821 19822# Compiler flag to prevent dynamic linking. 19823link_static_flag=$lt_lt_prog_compiler_static_FC 19824 19825# Does compiler simultaneously support -c and -o options? 19826compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC 19827 19828# Whether or not to add -lc for building shared libraries. 19829build_libtool_need_lc=$archive_cmds_need_lc_FC 19830 19831# Whether or not to disallow shared libs when runtime libs are static. 19832allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC 19833 19834# Compiler flag to allow reflexive dlopens. 19835export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC 19836 19837# Compiler flag to generate shared objects directly from archives. 19838whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC 19839 19840# Whether the compiler copes with passing no objects directly. 19841compiler_needs_object=$lt_compiler_needs_object_FC 19842 19843# Create an old-style archive from a shared archive. 19844old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC 19845 19846# Create a temporary old-style archive to link instead of a shared archive. 19847old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC 19848 19849# Commands used to build a shared archive. 19850archive_cmds=$lt_archive_cmds_FC 19851archive_expsym_cmds=$lt_archive_expsym_cmds_FC 19852 19853# Commands used to build a loadable module if different from building 19854# a shared archive. 19855module_cmds=$lt_module_cmds_FC 19856module_expsym_cmds=$lt_module_expsym_cmds_FC 19857 19858# Whether we are building with GNU ld or not. 19859with_gnu_ld=$lt_with_gnu_ld_FC 19860 19861# Flag that allows shared libraries with undefined symbols to be built. 19862allow_undefined_flag=$lt_allow_undefined_flag_FC 19863 19864# Flag that enforces no undefined symbols. 19865no_undefined_flag=$lt_no_undefined_flag_FC 19866 19867# Flag to hardcode \$libdir into a binary during linking. 19868# This must work even if \$libdir does not exist 19869hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC 19870 19871# If ld is used when linking, flag to hardcode \$libdir into a binary 19872# during linking. This must work even if \$libdir does not exist. 19873hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC 19874 19875# Whether we need a single "-rpath" flag with a separated argument. 19876hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC 19877 19878# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19879# DIR into the resulting binary. 19880hardcode_direct=$hardcode_direct_FC 19881 19882# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19883# DIR into the resulting binary and the resulting library dependency is 19884# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 19885# library is relocated. 19886hardcode_direct_absolute=$hardcode_direct_absolute_FC 19887 19888# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 19889# into the resulting binary. 19890hardcode_minus_L=$hardcode_minus_L_FC 19891 19892# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 19893# into the resulting binary. 19894hardcode_shlibpath_var=$hardcode_shlibpath_var_FC 19895 19896# Set to "yes" if building a shared library automatically hardcodes DIR 19897# into the library and all subsequent libraries and executables linked 19898# against it. 19899hardcode_automatic=$hardcode_automatic_FC 19900 19901# Set to yes if linker adds runtime paths of dependent libraries 19902# to runtime path list. 19903inherit_rpath=$inherit_rpath_FC 19904 19905# Whether libtool must link a program against all its dependency libraries. 19906link_all_deplibs=$link_all_deplibs_FC 19907 19908# Fix the shell variable \$srcfile for the compiler. 19909fix_srcfile_path=$lt_fix_srcfile_path_FC 19910 19911# Set to "yes" if exported symbols are required. 19912always_export_symbols=$always_export_symbols_FC 19913 19914# The commands to list exported symbols. 19915export_symbols_cmds=$lt_export_symbols_cmds_FC 19916 19917# Symbols that should not be listed in the preloaded symbols. 19918exclude_expsyms=$lt_exclude_expsyms_FC 19919 19920# Symbols that must always be exported. 19921include_expsyms=$lt_include_expsyms_FC 19922 19923# Commands necessary for linking programs (against libraries) with templates. 19924prelink_cmds=$lt_prelink_cmds_FC 19925 19926# Specify filename containing input files. 19927file_list_spec=$lt_file_list_spec_FC 19928 19929# How to hardcode a shared library path into an executable. 19930hardcode_action=$hardcode_action_FC 19931 19932# The directories searched by this compiler when creating a shared library. 19933compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC 19934 19935# Dependencies to place before and after the objects being linked to 19936# create a shared library. 19937predep_objects=$lt_predep_objects_FC 19938postdep_objects=$lt_postdep_objects_FC 19939predeps=$lt_predeps_FC 19940postdeps=$lt_postdeps_FC 19941 19942# The library search path used internally by the compiler when linking 19943# a shared library. 19944compiler_lib_search_path=$lt_compiler_lib_search_path_FC 19945 19946# ### END LIBTOOL TAG CONFIG: FC 19947_LT_EOF 19948 19949 ;; 19950 "gstdint.h":C) 19951if test "$GCC" = yes; then 19952 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h 19953else 19954 echo "/* generated for $CC */" > tmp-stdint.h 19955fi 19956 19957sed 's/^ *//' >> tmp-stdint.h <<EOF 19958 19959 #ifndef GCC_GENERATED_STDINT_H 19960 #define GCC_GENERATED_STDINT_H 1 19961 19962 #include <sys/types.h> 19963EOF 19964 19965if test "$acx_cv_header_stdint" != stdint.h; then 19966 echo "#include <stddef.h>" >> tmp-stdint.h 19967fi 19968if test "$acx_cv_header_stdint" != stddef.h; then 19969 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h 19970fi 19971 19972sed 's/^ *//' >> tmp-stdint.h <<EOF 19973 /* glibc uses these symbols as guards to prevent redefinitions. */ 19974 #ifdef __int8_t_defined 19975 #define _INT8_T 19976 #define _INT16_T 19977 #define _INT32_T 19978 #endif 19979 #ifdef __uint32_t_defined 19980 #define _UINT32_T 19981 #endif 19982 19983EOF 19984 19985# ----------------- done header, emit basic int types ------------- 19986if test "$acx_cv_header_stdint" = stddef.h; then 19987 sed 's/^ *//' >> tmp-stdint.h <<EOF 19988 19989 #ifndef _UINT8_T 19990 #define _UINT8_T 19991 #ifndef __uint8_t_defined 19992 #define __uint8_t_defined 19993 #ifndef uint8_t 19994 typedef unsigned $acx_cv_type_int8_t uint8_t; 19995 #endif 19996 #endif 19997 #endif 19998 19999 #ifndef _UINT16_T 20000 #define _UINT16_T 20001 #ifndef __uint16_t_defined 20002 #define __uint16_t_defined 20003 #ifndef uint16_t 20004 typedef unsigned $acx_cv_type_int16_t uint16_t; 20005 #endif 20006 #endif 20007 #endif 20008 20009 #ifndef _UINT32_T 20010 #define _UINT32_T 20011 #ifndef __uint32_t_defined 20012 #define __uint32_t_defined 20013 #ifndef uint32_t 20014 typedef unsigned $acx_cv_type_int32_t uint32_t; 20015 #endif 20016 #endif 20017 #endif 20018 20019 #ifndef _INT8_T 20020 #define _INT8_T 20021 #ifndef __int8_t_defined 20022 #define __int8_t_defined 20023 #ifndef int8_t 20024 typedef $acx_cv_type_int8_t int8_t; 20025 #endif 20026 #endif 20027 #endif 20028 20029 #ifndef _INT16_T 20030 #define _INT16_T 20031 #ifndef __int16_t_defined 20032 #define __int16_t_defined 20033 #ifndef int16_t 20034 typedef $acx_cv_type_int16_t int16_t; 20035 #endif 20036 #endif 20037 #endif 20038 20039 #ifndef _INT32_T 20040 #define _INT32_T 20041 #ifndef __int32_t_defined 20042 #define __int32_t_defined 20043 #ifndef int32_t 20044 typedef $acx_cv_type_int32_t int32_t; 20045 #endif 20046 #endif 20047 #endif 20048EOF 20049elif test "$ac_cv_type_u_int32_t" = yes; then 20050 sed 's/^ *//' >> tmp-stdint.h <<EOF 20051 20052 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */ 20053 #ifndef _INT8_T 20054 #define _INT8_T 20055 #endif 20056 #ifndef _INT16_T 20057 #define _INT16_T 20058 #endif 20059 #ifndef _INT32_T 20060 #define _INT32_T 20061 #endif 20062 20063 #ifndef _UINT8_T 20064 #define _UINT8_T 20065 #ifndef __uint8_t_defined 20066 #define __uint8_t_defined 20067 #ifndef uint8_t 20068 typedef u_int8_t uint8_t; 20069 #endif 20070 #endif 20071 #endif 20072 20073 #ifndef _UINT16_T 20074 #define _UINT16_T 20075 #ifndef __uint16_t_defined 20076 #define __uint16_t_defined 20077 #ifndef uint16_t 20078 typedef u_int16_t uint16_t; 20079 #endif 20080 #endif 20081 #endif 20082 20083 #ifndef _UINT32_T 20084 #define _UINT32_T 20085 #ifndef __uint32_t_defined 20086 #define __uint32_t_defined 20087 #ifndef uint32_t 20088 typedef u_int32_t uint32_t; 20089 #endif 20090 #endif 20091 #endif 20092EOF 20093else 20094 sed 's/^ *//' >> tmp-stdint.h <<EOF 20095 20096 /* Some systems have guard macros to prevent redefinitions, define them. */ 20097 #ifndef _INT8_T 20098 #define _INT8_T 20099 #endif 20100 #ifndef _INT16_T 20101 #define _INT16_T 20102 #endif 20103 #ifndef _INT32_T 20104 #define _INT32_T 20105 #endif 20106 #ifndef _UINT8_T 20107 #define _UINT8_T 20108 #endif 20109 #ifndef _UINT16_T 20110 #define _UINT16_T 20111 #endif 20112 #ifndef _UINT32_T 20113 #define _UINT32_T 20114 #endif 20115EOF 20116fi 20117 20118# ------------- done basic int types, emit int64_t types ------------ 20119if test "$ac_cv_type_uint64_t" = yes; then 20120 sed 's/^ *//' >> tmp-stdint.h <<EOF 20121 20122 /* system headers have good uint64_t and int64_t */ 20123 #ifndef _INT64_T 20124 #define _INT64_T 20125 #endif 20126 #ifndef _UINT64_T 20127 #define _UINT64_T 20128 #endif 20129EOF 20130elif test "$ac_cv_type_u_int64_t" = yes; then 20131 sed 's/^ *//' >> tmp-stdint.h <<EOF 20132 20133 /* system headers have an u_int64_t (and int64_t) */ 20134 #ifndef _INT64_T 20135 #define _INT64_T 20136 #endif 20137 #ifndef _UINT64_T 20138 #define _UINT64_T 20139 #ifndef __uint64_t_defined 20140 #define __uint64_t_defined 20141 #ifndef uint64_t 20142 typedef u_int64_t uint64_t; 20143 #endif 20144 #endif 20145 #endif 20146EOF 20147elif test -n "$acx_cv_type_int64_t"; then 20148 sed 's/^ *//' >> tmp-stdint.h <<EOF 20149 20150 /* architecture has a 64-bit type, $acx_cv_type_int64_t */ 20151 #ifndef _INT64_T 20152 #define _INT64_T 20153 #ifndef int64_t 20154 typedef $acx_cv_type_int64_t int64_t; 20155 #endif 20156 #endif 20157 #ifndef _UINT64_T 20158 #define _UINT64_T 20159 #ifndef __uint64_t_defined 20160 #define __uint64_t_defined 20161 #ifndef uint64_t 20162 typedef unsigned $acx_cv_type_int64_t uint64_t; 20163 #endif 20164 #endif 20165 #endif 20166EOF 20167else 20168 sed 's/^ *//' >> tmp-stdint.h <<EOF 20169 20170 /* some common heuristics for int64_t, using compiler-specific tests */ 20171 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L 20172 #ifndef _INT64_T 20173 #define _INT64_T 20174 #ifndef __int64_t_defined 20175 #ifndef int64_t 20176 typedef long long int64_t; 20177 #endif 20178 #endif 20179 #endif 20180 #ifndef _UINT64_T 20181 #define _UINT64_T 20182 #ifndef uint64_t 20183 typedef unsigned long long uint64_t; 20184 #endif 20185 #endif 20186 20187 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0 20188 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and 20189 does not implement __extension__. But that compiler doesn't define 20190 __GNUC_MINOR__. */ 20191 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__) 20192 # define __extension__ 20193 # endif 20194 20195 # ifndef _INT64_T 20196 # define _INT64_T 20197 # ifndef int64_t 20198 __extension__ typedef long long int64_t; 20199 # endif 20200 # endif 20201 # ifndef _UINT64_T 20202 # define _UINT64_T 20203 # ifndef uint64_t 20204 __extension__ typedef unsigned long long uint64_t; 20205 # endif 20206 # endif 20207 20208 #elif !defined __STRICT_ANSI__ 20209 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__ 20210 20211 # ifndef _INT64_T 20212 # define _INT64_T 20213 # ifndef int64_t 20214 typedef __int64 int64_t; 20215 # endif 20216 # endif 20217 # ifndef _UINT64_T 20218 # define _UINT64_T 20219 # ifndef uint64_t 20220 typedef unsigned __int64 uint64_t; 20221 # endif 20222 # endif 20223 # endif /* compiler */ 20224 20225 #endif /* ANSI version */ 20226EOF 20227fi 20228 20229# ------------- done int64_t types, emit intptr types ------------ 20230if test "$ac_cv_type_uintptr_t" != yes; then 20231 sed 's/^ *//' >> tmp-stdint.h <<EOF 20232 20233 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */ 20234 #ifndef __uintptr_t_defined 20235 #ifndef uintptr_t 20236 typedef u$acx_cv_type_intptr_t uintptr_t; 20237 #endif 20238 #endif 20239 #ifndef __intptr_t_defined 20240 #ifndef intptr_t 20241 typedef $acx_cv_type_intptr_t intptr_t; 20242 #endif 20243 #endif 20244EOF 20245fi 20246 20247# ------------- done intptr types, emit int_least types ------------ 20248if test "$ac_cv_type_int_least32_t" != yes; then 20249 sed 's/^ *//' >> tmp-stdint.h <<EOF 20250 20251 /* Define int_least types */ 20252 typedef int8_t int_least8_t; 20253 typedef int16_t int_least16_t; 20254 typedef int32_t int_least32_t; 20255 #ifdef _INT64_T 20256 typedef int64_t int_least64_t; 20257 #endif 20258 20259 typedef uint8_t uint_least8_t; 20260 typedef uint16_t uint_least16_t; 20261 typedef uint32_t uint_least32_t; 20262 #ifdef _UINT64_T 20263 typedef uint64_t uint_least64_t; 20264 #endif 20265EOF 20266fi 20267 20268# ------------- done intptr types, emit int_fast types ------------ 20269if test "$ac_cv_type_int_fast32_t" != yes; then 20270 sed 's/^ *//' >> tmp-stdint.h <<EOF 20271 20272 /* Define int_fast types. short is often slow */ 20273 typedef int8_t int_fast8_t; 20274 typedef int int_fast16_t; 20275 typedef int32_t int_fast32_t; 20276 #ifdef _INT64_T 20277 typedef int64_t int_fast64_t; 20278 #endif 20279 20280 typedef uint8_t uint_fast8_t; 20281 typedef unsigned int uint_fast16_t; 20282 typedef uint32_t uint_fast32_t; 20283 #ifdef _UINT64_T 20284 typedef uint64_t uint_fast64_t; 20285 #endif 20286EOF 20287fi 20288 20289if test "$ac_cv_type_uintmax_t" != yes; then 20290 sed 's/^ *//' >> tmp-stdint.h <<EOF 20291 20292 /* Define intmax based on what we found */ 20293 #ifndef intmax_t 20294 #ifdef _INT64_T 20295 typedef int64_t intmax_t; 20296 #else 20297 typedef long intmax_t; 20298 #endif 20299 #endif 20300 #ifndef uintmax_t 20301 #ifdef _UINT64_T 20302 typedef uint64_t uintmax_t; 20303 #else 20304 typedef unsigned long uintmax_t; 20305 #endif 20306 #endif 20307EOF 20308fi 20309 20310sed 's/^ *//' >> tmp-stdint.h <<EOF 20311 20312 #endif /* GCC_GENERATED_STDINT_H */ 20313EOF 20314 20315if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then 20316 rm -f tmp-stdint.h 20317else 20318 mv -f tmp-stdint.h gstdint.h 20319fi 20320 20321 ;; 20322 20323 esac 20324done # for ac_tag 20325 20326 20327as_fn_exit 0 20328_ACEOF 20329ac_clean_files=$ac_clean_files_save 20330 20331test $ac_write_fail = 0 || 20332 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 20333 20334 20335# configure is writing to config.log, and then calls config.status. 20336# config.status does its own redirection, appending to config.log. 20337# Unfortunately, on DOS this fails, as config.log is still kept open 20338# by configure, so config.status won't be able to write to it; its 20339# output is simply discarded. So we exec the FD to /dev/null, 20340# effectively closing config.log, so it can be properly (re)opened and 20341# appended to by config.status. When coming back to configure, we 20342# need to make the FD available again. 20343if test "$no_create" != yes; then 20344 ac_cs_success=: 20345 ac_config_status_args= 20346 test "$silent" = yes && 20347 ac_config_status_args="$ac_config_status_args --quiet" 20348 exec 5>/dev/null 20349 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20350 exec 5>>config.log 20351 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20352 # would make configure fail if this is the last instruction. 20353 $ac_cs_success || as_fn_exit 1 20354fi 20355if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 20356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 20357$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 20358fi 20359 20360