1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.59 for ThirdPartyBlas 1.4.8. 4# 5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>. 6# 7# Copyright (C) 2003 Free Software Foundation, Inc. 8# This configure script is free software; the Free Software Foundation 9# gives unlimited permission to copy, distribute and modify it. 10# 11# 12# Copyright 2006 International Business Machines and others. 13# All Rights Reserved. 14# This file is part of the open source package Coin which is distributed 15# under the Eclipse Public License. 16## --------------------- ## 17## M4sh Initialization. ## 18## --------------------- ## 19 20# Be Bourne compatible 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 22 emulate sh 23 NULLCMD=: 24 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 28 set -o posix 29fi 30DUALCASE=1; export DUALCASE # for MKS sh 31 32# Support unset when possible. 33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 34 as_unset=unset 35else 36 as_unset=false 37fi 38 39 40# Work around bugs in pre-3.0 UWIN ksh. 41$as_unset ENV MAIL MAILPATH 42PS1='$ ' 43PS2='> ' 44PS4='+ ' 45 46# NLS nuisances. 47for as_var in \ 48 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 49 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 50 LC_TELEPHONE LC_TIME 51do 52 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 53 eval $as_var=C; export $as_var 54 else 55 $as_unset $as_var 56 fi 57done 58 59# Required to use basename. 60if expr a : '\(a\)' >/dev/null 2>&1; then 61 as_expr=expr 62else 63 as_expr=false 64fi 65 66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 67 as_basename=basename 68else 69 as_basename=false 70fi 71 72 73# Name of the executable. 74as_me=`$as_basename "$0" || 75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 76 X"$0" : 'X\(//\)$' \| \ 77 X"$0" : 'X\(/\)$' \| \ 78 . : '\(.\)' 2>/dev/null || 79echo X/"$0" | 80 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 81 /^X\/\(\/\/\)$/{ s//\1/; q; } 82 /^X\/\(\/\).*/{ s//\1/; q; } 83 s/.*/./; q'` 84 85 86# PATH needs CR, and LINENO needs CR and PATH. 87# Avoid depending upon Character Ranges. 88as_cr_letters='abcdefghijklmnopqrstuvwxyz' 89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 90as_cr_Letters=$as_cr_letters$as_cr_LETTERS 91as_cr_digits='0123456789' 92as_cr_alnum=$as_cr_Letters$as_cr_digits 93 94# The user is always right. 95if test "${PATH_SEPARATOR+set}" != set; then 96 echo "#! /bin/sh" >conf$$.sh 97 echo "exit 0" >>conf$$.sh 98 chmod +x conf$$.sh 99 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 100 PATH_SEPARATOR=';' 101 else 102 PATH_SEPARATOR=: 103 fi 104 rm -f conf$$.sh 105fi 106 107 108 as_lineno_1=$LINENO 109 as_lineno_2=$LINENO 110 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 111 test "x$as_lineno_1" != "x$as_lineno_2" && 112 test "x$as_lineno_3" = "x$as_lineno_2" || { 113 # Find who we are. Look in the path if we contain no path at all 114 # relative or not. 115 case $0 in 116 *[\\/]* ) as_myself=$0 ;; 117 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 118for as_dir in $PATH 119do 120 IFS=$as_save_IFS 121 test -z "$as_dir" && as_dir=. 122 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 123done 124 125 ;; 126 esac 127 # We did not find ourselves, most probably we were run as `sh COMMAND' 128 # in which case we are not to be found in the path. 129 if test "x$as_myself" = x; then 130 as_myself=$0 131 fi 132 if test ! -f "$as_myself"; then 133 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 134 { (exit 1); exit 1; }; } 135 fi 136 case $CONFIG_SHELL in 137 '') 138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 140do 141 IFS=$as_save_IFS 142 test -z "$as_dir" && as_dir=. 143 for as_base in sh bash ksh sh5; do 144 case $as_dir in 145 /*) 146 if ("$as_dir/$as_base" -c ' 147 as_lineno_1=$LINENO 148 as_lineno_2=$LINENO 149 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 150 test "x$as_lineno_1" != "x$as_lineno_2" && 151 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 152 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 153 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 154 CONFIG_SHELL=$as_dir/$as_base 155 export CONFIG_SHELL 156 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 157 fi;; 158 esac 159 done 160done 161;; 162 esac 163 164 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 165 # uniformly replaced by the line number. The first 'sed' inserts a 166 # line-number line before each line; the second 'sed' does the real 167 # work. The second script uses 'N' to pair each line-number line 168 # with the numbered line, and appends trailing '-' during 169 # substitution so that $LINENO is not a special case at line end. 170 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 171 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 172 sed '=' <$as_myself | 173 sed ' 174 N 175 s,$,-, 176 : loop 177 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 178 t loop 179 s,-$,, 180 s,^['$as_cr_digits']*\n,, 181 ' >$as_me.lineno && 182 chmod +x $as_me.lineno || 183 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 184 { (exit 1); exit 1; }; } 185 186 # Don't try to exec as it changes $[0], causing all sort of problems 187 # (the dirname of $[0] is not the place where we might find the 188 # original and so on. Autoconf is especially sensible to this). 189 . ./$as_me.lineno 190 # Exit status is that of the last command. 191 exit 192} 193 194 195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 196 *c*,-n*) ECHO_N= ECHO_C=' 197' ECHO_T=' ' ;; 198 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 199 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 200esac 201 202if expr a : '\(a\)' >/dev/null 2>&1; then 203 as_expr=expr 204else 205 as_expr=false 206fi 207 208rm -f conf$$ conf$$.exe conf$$.file 209echo >conf$$.file 210if ln -s conf$$.file conf$$ 2>/dev/null; then 211 # We could just check for DJGPP; but this test a) works b) is more generic 212 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 213 if test -f conf$$.exe; then 214 # Don't use ln at all; we don't have any links 215 as_ln_s='cp -p' 216 else 217 as_ln_s='ln -s' 218 fi 219elif ln conf$$.file conf$$ 2>/dev/null; then 220 as_ln_s=ln 221else 222 as_ln_s='cp -p' 223fi 224rm -f conf$$ conf$$.exe conf$$.file 225 226if mkdir -p . 2>/dev/null; then 227 as_mkdir_p=: 228else 229 test -d ./-p && rmdir ./-p 230 as_mkdir_p=false 231fi 232 233as_executable_p="test -f" 234 235# Sed expression to map a string onto a valid CPP name. 236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 237 238# Sed expression to map a string onto a valid variable name. 239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 240 241 242# IFS 243# We need space, tab and new line, in precisely that order. 244as_nl=' 245' 246IFS=" $as_nl" 247 248# CDPATH. 249$as_unset CDPATH 250 251 252 253# Check that we are running under the correct shell. 254SHELL=${CONFIG_SHELL-/bin/sh} 255 256case X$ECHO in 257X*--fallback-echo) 258 # Remove one level of quotation (which was required for Make). 259 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 260 ;; 261esac 262 263echo=${ECHO-echo} 264if test "X$1" = X--no-reexec; then 265 # Discard the --no-reexec flag, and continue. 266 shift 267elif test "X$1" = X--fallback-echo; then 268 # Avoid inline document here, it may be left over 269 : 270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 271 # Yippee, $echo works! 272 : 273else 274 # Restart under the correct shell. 275 exec $SHELL "$0" --no-reexec ${1+"$@"} 276fi 277 278if test "X$1" = X--fallback-echo; then 279 # used as fallback echo 280 shift 281 cat <<EOF 282$* 283EOF 284 exit 0 285fi 286 287# The HP-UX ksh and POSIX shell print the target directory to stdout 288# if CDPATH is set. 289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 290 291if test -z "$ECHO"; then 292if test "X${echo_test_string+set}" != Xset; then 293# find a string as large as possible, as long as the shell can cope with it 294 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 295 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 296 if (echo_test_string=`eval $cmd`) 2>/dev/null && 297 echo_test_string=`eval $cmd` && 298 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 299 then 300 break 301 fi 302 done 303fi 304 305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 306 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 307 test "X$echo_testing_string" = "X$echo_test_string"; then 308 : 309else 310 # The Solaris, AIX, and Digital Unix default echo programs unquote 311 # backslashes. This makes it impossible to quote backslashes using 312 # echo "$something" | sed 's/\\/\\\\/g' 313 # 314 # So, first we look for a working echo in the user's PATH. 315 316 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 317 for dir in $PATH /usr/ucb; do 318 IFS="$lt_save_ifs" 319 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 320 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 321 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 322 test "X$echo_testing_string" = "X$echo_test_string"; then 323 echo="$dir/echo" 324 break 325 fi 326 done 327 IFS="$lt_save_ifs" 328 329 if test "X$echo" = Xecho; then 330 # We didn't find a better echo, so look for alternatives. 331 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 332 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 333 test "X$echo_testing_string" = "X$echo_test_string"; then 334 # This shell has a builtin print -r that does the trick. 335 echo='print -r' 336 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 337 test "X$CONFIG_SHELL" != X/bin/ksh; then 338 # If we have ksh, try running configure again with it. 339 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 340 export ORIGINAL_CONFIG_SHELL 341 CONFIG_SHELL=/bin/ksh 342 export CONFIG_SHELL 343 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 344 else 345 # Try using printf. 346 echo='printf %s\n' 347 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 348 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 349 test "X$echo_testing_string" = "X$echo_test_string"; then 350 # Cool, printf works 351 : 352 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 353 test "X$echo_testing_string" = 'X\t' && 354 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 355 test "X$echo_testing_string" = "X$echo_test_string"; then 356 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 357 export CONFIG_SHELL 358 SHELL="$CONFIG_SHELL" 359 export SHELL 360 echo="$CONFIG_SHELL $0 --fallback-echo" 361 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 362 test "X$echo_testing_string" = 'X\t' && 363 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 364 test "X$echo_testing_string" = "X$echo_test_string"; then 365 echo="$CONFIG_SHELL $0 --fallback-echo" 366 else 367 # maybe with a smaller string... 368 prev=: 369 370 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 371 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 372 then 373 break 374 fi 375 prev="$cmd" 376 done 377 378 if test "$prev" != 'sed 50q "$0"'; then 379 echo_test_string=`eval $prev` 380 export echo_test_string 381 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 382 else 383 # Oops. We lost completely, so just stick with echo. 384 echo=echo 385 fi 386 fi 387 fi 388 fi 389fi 390fi 391 392# Copy echo and quote the copy suitably for passing to libtool from 393# the Makefile, instead of quoting the original, which is used later. 394ECHO=$echo 395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 396 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 397fi 398 399 400 401 402tagnames=${tagnames+${tagnames},}CXX 403 404tagnames=${tagnames+${tagnames},}F77 405 406# Name of the host. 407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 408# so uname gets run too. 409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 410 411exec 6>&1 412 413# 414# Initializations. 415# 416ac_default_prefix=/usr/local 417ac_config_libobj_dir=. 418cross_compiling=no 419subdirs= 420MFLAGS= 421MAKEFLAGS= 422SHELL=${CONFIG_SHELL-/bin/sh} 423 424# Maximum number of lines to put in a shell here document. 425# This variable seems obsolete. It should probably be removed, and 426# only ac_max_sed_lines should be used. 427: ${ac_max_here_lines=38} 428 429# Identity of this package. 430PACKAGE_NAME='ThirdPartyBlas' 431PACKAGE_TARNAME='thirdpartyblas' 432PACKAGE_VERSION='1.4.8' 433PACKAGE_STRING='ThirdPartyBlas 1.4.8' 434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket' 435 436ac_unique_file="dgemm.f" 437ac_default_prefix=`pwd` 438# Factoring default headers for most tests. 439ac_includes_default="\ 440#include <stdio.h> 441#if HAVE_SYS_TYPES_H 442# include <sys/types.h> 443#endif 444#if HAVE_SYS_STAT_H 445# include <sys/stat.h> 446#endif 447#if STDC_HEADERS 448# include <stdlib.h> 449# include <stddef.h> 450#else 451# if HAVE_STDLIB_H 452# include <stdlib.h> 453# endif 454#endif 455#if HAVE_STRING_H 456# if !STDC_HEADERS && HAVE_MEMORY_H 457# include <memory.h> 458# endif 459# include <string.h> 460#endif 461#if HAVE_STRINGS_H 462# include <strings.h> 463#endif 464#if HAVE_INTTYPES_H 465# include <inttypes.h> 466#else 467# if HAVE_STDINT_H 468# include <stdint.h> 469# endif 470#endif 471#if HAVE_UNISTD_H 472# include <unistd.h> 473#endif" 474 475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion BLAS_SVN_REV build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 ac_ct_F77 FFLAGS MPIF77 FLIBS BLAS_PCLIBS PKG_CONFIG ac_ct_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag dos2unix RPATH_FLAGS DEPENDENCY_LINKING_TRUE DEPENDENCY_LINKING_FALSE LT_LDFLAGS LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS' 476ac_subst_files='' 477 478# Initialize some variables set by options. 479ac_init_help= 480ac_init_version=false 481# The variables have the same names as the options, with 482# dashes changed to underlines. 483cache_file=/dev/null 484exec_prefix=NONE 485no_create= 486no_recursion= 487prefix=NONE 488program_prefix=NONE 489program_suffix=NONE 490program_transform_name=s,x,x, 491silent= 492site= 493srcdir= 494verbose= 495x_includes=NONE 496x_libraries=NONE 497 498# Installation directory options. 499# These are left unexpanded so users can "make install exec_prefix=/foo" 500# and all the variables that are supposed to be based on exec_prefix 501# by default will actually change. 502# Use braces instead of parens because sh, perl, etc. also accept them. 503bindir='${exec_prefix}/bin' 504sbindir='${exec_prefix}/sbin' 505libexecdir='${exec_prefix}/libexec' 506datadir='${prefix}/share' 507sysconfdir='${prefix}/etc' 508sharedstatedir='${prefix}/com' 509localstatedir='${prefix}/var' 510libdir='${exec_prefix}/lib' 511includedir='${prefix}/include' 512oldincludedir='/usr/include' 513infodir='${prefix}/info' 514mandir='${prefix}/man' 515 516ac_prev= 517for ac_option 518do 519 # If the previous option needs an argument, assign it. 520 if test -n "$ac_prev"; then 521 eval "$ac_prev=\$ac_option" 522 ac_prev= 523 continue 524 fi 525 526 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 527 528 # Accept the important Cygnus configure options, so we can diagnose typos. 529 530 case $ac_option in 531 532 -bindir | --bindir | --bindi | --bind | --bin | --bi) 533 ac_prev=bindir ;; 534 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 535 bindir=$ac_optarg ;; 536 537 -build | --build | --buil | --bui | --bu) 538 ac_prev=build_alias ;; 539 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 540 build_alias=$ac_optarg ;; 541 542 -cache-file | --cache-file | --cache-fil | --cache-fi \ 543 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 544 ac_prev=cache_file ;; 545 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 546 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 547 cache_file=$ac_optarg ;; 548 549 --config-cache | -C) 550 cache_file=config.cache ;; 551 552 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 553 ac_prev=datadir ;; 554 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 555 | --da=*) 556 datadir=$ac_optarg ;; 557 558 -disable-* | --disable-*) 559 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 560 # Reject names that are not valid shell variable names. 561 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 562 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 563 { (exit 1); exit 1; }; } 564 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 565 eval "enable_$ac_feature=no" ;; 566 567 -enable-* | --enable-*) 568 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 569 # Reject names that are not valid shell variable names. 570 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 571 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 572 { (exit 1); exit 1; }; } 573 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 574 case $ac_option in 575 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 576 *) ac_optarg=yes ;; 577 esac 578 eval "enable_$ac_feature='$ac_optarg'" ;; 579 580 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 581 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 582 | --exec | --exe | --ex) 583 ac_prev=exec_prefix ;; 584 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 585 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 586 | --exec=* | --exe=* | --ex=*) 587 exec_prefix=$ac_optarg ;; 588 589 -gas | --gas | --ga | --g) 590 # Obsolete; use --with-gas. 591 with_gas=yes ;; 592 593 -help | --help | --hel | --he | -h) 594 ac_init_help=long ;; 595 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 596 ac_init_help=recursive ;; 597 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 598 ac_init_help=short ;; 599 600 -host | --host | --hos | --ho) 601 ac_prev=host_alias ;; 602 -host=* | --host=* | --hos=* | --ho=*) 603 host_alias=$ac_optarg ;; 604 605 -includedir | --includedir | --includedi | --included | --include \ 606 | --includ | --inclu | --incl | --inc) 607 ac_prev=includedir ;; 608 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 609 | --includ=* | --inclu=* | --incl=* | --inc=*) 610 includedir=$ac_optarg ;; 611 612 -infodir | --infodir | --infodi | --infod | --info | --inf) 613 ac_prev=infodir ;; 614 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 615 infodir=$ac_optarg ;; 616 617 -libdir | --libdir | --libdi | --libd) 618 ac_prev=libdir ;; 619 -libdir=* | --libdir=* | --libdi=* | --libd=*) 620 libdir=$ac_optarg ;; 621 622 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 623 | --libexe | --libex | --libe) 624 ac_prev=libexecdir ;; 625 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 626 | --libexe=* | --libex=* | --libe=*) 627 libexecdir=$ac_optarg ;; 628 629 -localstatedir | --localstatedir | --localstatedi | --localstated \ 630 | --localstate | --localstat | --localsta | --localst \ 631 | --locals | --local | --loca | --loc | --lo) 632 ac_prev=localstatedir ;; 633 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 634 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 635 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 636 localstatedir=$ac_optarg ;; 637 638 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 639 ac_prev=mandir ;; 640 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 641 mandir=$ac_optarg ;; 642 643 -nfp | --nfp | --nf) 644 # Obsolete; use --without-fp. 645 with_fp=no ;; 646 647 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 648 | --no-cr | --no-c | -n) 649 no_create=yes ;; 650 651 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 652 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 653 no_recursion=yes ;; 654 655 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 656 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 657 | --oldin | --oldi | --old | --ol | --o) 658 ac_prev=oldincludedir ;; 659 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 660 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 661 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 662 oldincludedir=$ac_optarg ;; 663 664 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 665 ac_prev=prefix ;; 666 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 667 prefix=$ac_optarg ;; 668 669 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 670 | --program-pre | --program-pr | --program-p) 671 ac_prev=program_prefix ;; 672 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 673 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 674 program_prefix=$ac_optarg ;; 675 676 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 677 | --program-suf | --program-su | --program-s) 678 ac_prev=program_suffix ;; 679 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 680 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 681 program_suffix=$ac_optarg ;; 682 683 -program-transform-name | --program-transform-name \ 684 | --program-transform-nam | --program-transform-na \ 685 | --program-transform-n | --program-transform- \ 686 | --program-transform | --program-transfor \ 687 | --program-transfo | --program-transf \ 688 | --program-trans | --program-tran \ 689 | --progr-tra | --program-tr | --program-t) 690 ac_prev=program_transform_name ;; 691 -program-transform-name=* | --program-transform-name=* \ 692 | --program-transform-nam=* | --program-transform-na=* \ 693 | --program-transform-n=* | --program-transform-=* \ 694 | --program-transform=* | --program-transfor=* \ 695 | --program-transfo=* | --program-transf=* \ 696 | --program-trans=* | --program-tran=* \ 697 | --progr-tra=* | --program-tr=* | --program-t=*) 698 program_transform_name=$ac_optarg ;; 699 700 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 701 | -silent | --silent | --silen | --sile | --sil) 702 silent=yes ;; 703 704 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 705 ac_prev=sbindir ;; 706 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 707 | --sbi=* | --sb=*) 708 sbindir=$ac_optarg ;; 709 710 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 711 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 712 | --sharedst | --shareds | --shared | --share | --shar \ 713 | --sha | --sh) 714 ac_prev=sharedstatedir ;; 715 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 716 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 717 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 718 | --sha=* | --sh=*) 719 sharedstatedir=$ac_optarg ;; 720 721 -site | --site | --sit) 722 ac_prev=site ;; 723 -site=* | --site=* | --sit=*) 724 site=$ac_optarg ;; 725 726 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 727 ac_prev=srcdir ;; 728 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 729 srcdir=$ac_optarg ;; 730 731 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 732 | --syscon | --sysco | --sysc | --sys | --sy) 733 ac_prev=sysconfdir ;; 734 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 735 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 736 sysconfdir=$ac_optarg ;; 737 738 -target | --target | --targe | --targ | --tar | --ta | --t) 739 ac_prev=target_alias ;; 740 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 741 target_alias=$ac_optarg ;; 742 743 -v | -verbose | --verbose | --verbos | --verbo | --verb) 744 verbose=yes ;; 745 746 -version | --version | --versio | --versi | --vers | -V) 747 ac_init_version=: ;; 748 749 -with-* | --with-*) 750 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 751 # Reject names that are not valid shell variable names. 752 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 753 { echo "$as_me: error: invalid package name: $ac_package" >&2 754 { (exit 1); exit 1; }; } 755 ac_package=`echo $ac_package| sed 's/-/_/g'` 756 case $ac_option in 757 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 758 *) ac_optarg=yes ;; 759 esac 760 eval "with_$ac_package='$ac_optarg'" ;; 761 762 -without-* | --without-*) 763 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 764 # Reject names that are not valid shell variable names. 765 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 766 { echo "$as_me: error: invalid package name: $ac_package" >&2 767 { (exit 1); exit 1; }; } 768 ac_package=`echo $ac_package | sed 's/-/_/g'` 769 eval "with_$ac_package=no" ;; 770 771 --x) 772 # Obsolete; use --with-x. 773 with_x=yes ;; 774 775 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 776 | --x-incl | --x-inc | --x-in | --x-i) 777 ac_prev=x_includes ;; 778 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 779 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 780 x_includes=$ac_optarg ;; 781 782 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 783 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 784 ac_prev=x_libraries ;; 785 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 786 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 787 x_libraries=$ac_optarg ;; 788 789 -*) { echo "$as_me: error: unrecognized option: $ac_option 790Try \`$0 --help' for more information." >&2 791 { (exit 1); exit 1; }; } 792 ;; 793 794 *=*) 795 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 796 # Reject names that are not valid shell variable names. 797 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 798 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 799 { (exit 1); exit 1; }; } 800 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 801 eval "$ac_envvar='$ac_optarg'" 802 export $ac_envvar ;; 803 804 *) 805 # FIXME: should be removed in autoconf 3.0. 806 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 807 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 808 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 809 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 810 ;; 811 812 esac 813done 814 815if test -n "$ac_prev"; then 816 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 817 { echo "$as_me: error: missing argument to $ac_option" >&2 818 { (exit 1); exit 1; }; } 819fi 820 821# Be sure to have absolute paths. 822for ac_var in exec_prefix prefix 823do 824 eval ac_val=$`echo $ac_var` 825 case $ac_val in 826 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 827 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 828 { (exit 1); exit 1; }; };; 829 esac 830done 831 832# Be sure to have absolute paths. 833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 834 localstatedir libdir includedir oldincludedir infodir mandir 835do 836 eval ac_val=$`echo $ac_var` 837 case $ac_val in 838 [\\/$]* | ?:[\\/]* ) ;; 839 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 840 { (exit 1); exit 1; }; };; 841 esac 842done 843 844# There might be people who depend on the old broken behavior: `$host' 845# used to hold the argument of --host etc. 846# FIXME: To remove some day. 847build=$build_alias 848host=$host_alias 849target=$target_alias 850 851# FIXME: To remove some day. 852if test "x$host_alias" != x; then 853 if test "x$build_alias" = x; then 854 cross_compiling=maybe 855 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 856 If a cross compiler is detected then cross compile mode will be used." >&2 857 elif test "x$build_alias" != "x$host_alias"; then 858 cross_compiling=yes 859 fi 860fi 861 862ac_tool_prefix= 863test -n "$host_alias" && ac_tool_prefix=$host_alias- 864 865test "$silent" = yes && exec 6>/dev/null 866 867 868# Find the source files, if location was not specified. 869if test -z "$srcdir"; then 870 ac_srcdir_defaulted=yes 871 # Try the directory containing this script, then its parent. 872 ac_confdir=`(dirname "$0") 2>/dev/null || 873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 874 X"$0" : 'X\(//\)[^/]' \| \ 875 X"$0" : 'X\(//\)$' \| \ 876 X"$0" : 'X\(/\)' \| \ 877 . : '\(.\)' 2>/dev/null || 878echo X"$0" | 879 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 880 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 881 /^X\(\/\/\)$/{ s//\1/; q; } 882 /^X\(\/\).*/{ s//\1/; q; } 883 s/.*/./; q'` 884 srcdir=$ac_confdir 885 if test ! -r $srcdir/$ac_unique_file; then 886 srcdir=.. 887 fi 888else 889 ac_srcdir_defaulted=no 890fi 891if test ! -r $srcdir/$ac_unique_file; then 892 if test "$ac_srcdir_defaulted" = yes; then 893 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 894 { (exit 1); exit 1; }; } 895 else 896 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 897 { (exit 1); exit 1; }; } 898 fi 899fi 900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 901 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 902 { (exit 1); exit 1; }; } 903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 904ac_env_build_alias_set=${build_alias+set} 905ac_env_build_alias_value=$build_alias 906ac_cv_env_build_alias_set=${build_alias+set} 907ac_cv_env_build_alias_value=$build_alias 908ac_env_host_alias_set=${host_alias+set} 909ac_env_host_alias_value=$host_alias 910ac_cv_env_host_alias_set=${host_alias+set} 911ac_cv_env_host_alias_value=$host_alias 912ac_env_target_alias_set=${target_alias+set} 913ac_env_target_alias_value=$target_alias 914ac_cv_env_target_alias_set=${target_alias+set} 915ac_cv_env_target_alias_value=$target_alias 916ac_env_CDEFS_set=${CDEFS+set} 917ac_env_CDEFS_value=$CDEFS 918ac_cv_env_CDEFS_set=${CDEFS+set} 919ac_cv_env_CDEFS_value=$CDEFS 920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set} 921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS 922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set} 923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS 924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set} 925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS 926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set} 927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS 928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set} 929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS 930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set} 931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS 932ac_env_CC_set=${CC+set} 933ac_env_CC_value=$CC 934ac_cv_env_CC_set=${CC+set} 935ac_cv_env_CC_value=$CC 936ac_env_CFLAGS_set=${CFLAGS+set} 937ac_env_CFLAGS_value=$CFLAGS 938ac_cv_env_CFLAGS_set=${CFLAGS+set} 939ac_cv_env_CFLAGS_value=$CFLAGS 940ac_env_LDFLAGS_set=${LDFLAGS+set} 941ac_env_LDFLAGS_value=$LDFLAGS 942ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 943ac_cv_env_LDFLAGS_value=$LDFLAGS 944ac_env_CPPFLAGS_set=${CPPFLAGS+set} 945ac_env_CPPFLAGS_value=$CPPFLAGS 946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 947ac_cv_env_CPPFLAGS_value=$CPPFLAGS 948ac_env_MPICC_set=${MPICC+set} 949ac_env_MPICC_value=$MPICC 950ac_cv_env_MPICC_set=${MPICC+set} 951ac_cv_env_MPICC_value=$MPICC 952ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set} 953ac_env_ADD_FFLAGS_value=$ADD_FFLAGS 954ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set} 955ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS 956ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set} 957ac_env_DBG_FFLAGS_value=$DBG_FFLAGS 958ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set} 959ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS 960ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set} 961ac_env_OPT_FFLAGS_value=$OPT_FFLAGS 962ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set} 963ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS 964ac_env_F77_set=${F77+set} 965ac_env_F77_value=$F77 966ac_cv_env_F77_set=${F77+set} 967ac_cv_env_F77_value=$F77 968ac_env_FFLAGS_set=${FFLAGS+set} 969ac_env_FFLAGS_value=$FFLAGS 970ac_cv_env_FFLAGS_set=${FFLAGS+set} 971ac_cv_env_FFLAGS_value=$FFLAGS 972ac_env_MPIF77_set=${MPIF77+set} 973ac_env_MPIF77_value=$MPIF77 974ac_cv_env_MPIF77_set=${MPIF77+set} 975ac_cv_env_MPIF77_value=$MPIF77 976ac_env_PKG_CONFIG_set=${PKG_CONFIG+set} 977ac_env_PKG_CONFIG_value=$PKG_CONFIG 978ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set} 979ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG 980ac_env_CPP_set=${CPP+set} 981ac_env_CPP_value=$CPP 982ac_cv_env_CPP_set=${CPP+set} 983ac_cv_env_CPP_value=$CPP 984ac_env_CXX_set=${CXX+set} 985ac_env_CXX_value=$CXX 986ac_cv_env_CXX_set=${CXX+set} 987ac_cv_env_CXX_value=$CXX 988ac_env_CXXFLAGS_set=${CXXFLAGS+set} 989ac_env_CXXFLAGS_value=$CXXFLAGS 990ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 991ac_cv_env_CXXFLAGS_value=$CXXFLAGS 992ac_env_CXXCPP_set=${CXXCPP+set} 993ac_env_CXXCPP_value=$CXXCPP 994ac_cv_env_CXXCPP_set=${CXXCPP+set} 995ac_cv_env_CXXCPP_value=$CXXCPP 996 997# 998# Report the --help message. 999# 1000if test "$ac_init_help" = "long"; then 1001 # Omit some internal or obsolete options to make the list less imposing. 1002 # This message is too long to be a string in the A/UX 3.1 sh. 1003 cat <<_ACEOF 1004\`configure' configures ThirdPartyBlas 1.4.8 to adapt to many kinds of systems. 1005 1006Usage: $0 [OPTION]... [VAR=VALUE]... 1007 1008To assign environment variables (e.g., CC, CFLAGS...), specify them as 1009VAR=VALUE. See below for descriptions of some of the useful variables. 1010 1011Defaults for the options are specified in brackets. 1012 1013Configuration: 1014 -h, --help display this help and exit 1015 --help=short display options specific to this package 1016 --help=recursive display the short help of all the included packages 1017 -V, --version display version information and exit 1018 -q, --quiet, --silent do not print \`checking...' messages 1019 --cache-file=FILE cache test results in FILE [disabled] 1020 -C, --config-cache alias for \`--cache-file=config.cache' 1021 -n, --no-create do not create output files 1022 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1023 1024_ACEOF 1025 1026 cat <<_ACEOF 1027Installation directories: 1028 --prefix=PREFIX install architecture-independent files in PREFIX 1029 [$ac_default_prefix] 1030 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1031 [PREFIX] 1032 1033By default, \`make install' will install all the files in 1034\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1035an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1036for instance \`--prefix=\$HOME'. 1037 1038For better control, use the options below. 1039 1040Fine tuning of the installation directories: 1041 --bindir=DIR user executables [EPREFIX/bin] 1042 --sbindir=DIR system admin executables [EPREFIX/sbin] 1043 --libexecdir=DIR program executables [EPREFIX/libexec] 1044 --datadir=DIR read-only architecture-independent data [PREFIX/share] 1045 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1046 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1047 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1048 --libdir=DIR object code libraries [EPREFIX/lib] 1049 --includedir=DIR C header files [PREFIX/include] 1050 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1051 --infodir=DIR info documentation [PREFIX/info] 1052 --mandir=DIR man documentation [PREFIX/man] 1053_ACEOF 1054 1055 cat <<\_ACEOF 1056 1057Program names: 1058 --program-prefix=PREFIX prepend PREFIX to installed program names 1059 --program-suffix=SUFFIX append SUFFIX to installed program names 1060 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1061 1062System types: 1063 --build=BUILD configure for building on BUILD [guessed] 1064 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1065_ACEOF 1066fi 1067 1068if test -n "$ac_init_help"; then 1069 case $ac_init_help in 1070 short | recursive ) echo "Configuration of ThirdPartyBlas 1.4.8:";; 1071 esac 1072 cat <<\_ACEOF 1073 1074Optional Features: 1075 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1076 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1077 --enable-debug compile all projects with debug options tests 1078 (implies --disable-shared) 1079 --enable-debug-blas compile project Blas with debug compiler flags 1080 1081 --enable-msvc Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin. 1082 --disable-pkg-config disable use of pkg-config (if available) 1083 --enable-static[=PKGS] 1084 build static libraries [default=no] 1085 --disable-dependency-tracking speeds up one-time build 1086 --enable-dependency-tracking do not reject slow dependency extractors 1087 --enable-maintainer-mode enable make rules and dependencies not useful 1088 (and sometimes confusing) to the casual installer 1089 --enable-shared[=PKGS] 1090 build shared libraries [default=yes] 1091 --enable-fast-install[=PKGS] 1092 optimize for fast installation [default=yes] 1093 --disable-libtool-lock avoid locking (might break parallel builds) 1094 --disable-dependency-linking 1095 disable linking library dependencies into shared 1096 libraries 1097 1098Optional Packages: 1099 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1100 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1101 --with-blas-verbosity specify the debug verbosity level for project Blas 1102 --with-blas-checklevel specify the sanity check level for project Blas 1103 --with-coin-instdir prefix of installation directory for precompiled 1104 COIN packages 1105 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1106 --with-pic try to use only PIC/non-PIC objects [default=use 1107 both] 1108 --with-tags[=TAGS] 1109 include additional configurations [automatic] 1110 1111Some influential environment variables: 1112 CDEFS Additional -D flags to be used when compiling C code. 1113 ADD_CFLAGS Additional C compiler options 1114 DBG_CFLAGS Debug C compiler options 1115 OPT_CFLAGS Optimize C compiler options 1116 CC C compiler command 1117 CFLAGS C compiler flags 1118 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1119 nonstandard directory <lib dir> 1120 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1121 headers in a nonstandard directory <include dir> 1122 MPICC C MPI Compiler 1123 ADD_FFLAGS Additional Fortran compiler options 1124 DBG_FFLAGS Debug Fortran compiler options 1125 OPT_FFLAGS Optimize Fortran compiler options 1126 F77 Fortran 77 compiler command 1127 FFLAGS Fortran 77 compiler flags 1128 MPIF77 Fortran MPI Compiler 1129 PKG_CONFIG path to pkg-config utility 1130 CPP C preprocessor 1131 CXX C++ compiler command 1132 CXXFLAGS C++ compiler flags 1133 CXXCPP C++ preprocessor 1134 1135Use these variables to override the choices made by `configure' or to help 1136it to find libraries and programs with nonstandard names/locations. 1137 1138Report bugs to <http://projects.coin-or.org/BuildTools/newticket>. 1139_ACEOF 1140fi 1141 1142if test "$ac_init_help" = "recursive"; then 1143 # If there are subdirs, report their specific --help. 1144 ac_popdir=`pwd` 1145 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1146 test -d $ac_dir || continue 1147 ac_builddir=. 1148 1149if test "$ac_dir" != .; then 1150 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1151 # A "../" for each directory in $ac_dir_suffix. 1152 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 1153else 1154 ac_dir_suffix= ac_top_builddir= 1155fi 1156 1157case $srcdir in 1158 .) # No --srcdir option. We are building in place. 1159 ac_srcdir=. 1160 if test -z "$ac_top_builddir"; then 1161 ac_top_srcdir=. 1162 else 1163 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 1164 fi ;; 1165 [\\/]* | ?:[\\/]* ) # Absolute path. 1166 ac_srcdir=$srcdir$ac_dir_suffix; 1167 ac_top_srcdir=$srcdir ;; 1168 *) # Relative path. 1169 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 1170 ac_top_srcdir=$ac_top_builddir$srcdir ;; 1171esac 1172 1173# Do not use `cd foo && pwd` to compute absolute paths, because 1174# the directories may not exist. 1175case `pwd` in 1176.) ac_abs_builddir="$ac_dir";; 1177*) 1178 case "$ac_dir" in 1179 .) ac_abs_builddir=`pwd`;; 1180 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 1181 *) ac_abs_builddir=`pwd`/"$ac_dir";; 1182 esac;; 1183esac 1184case $ac_abs_builddir in 1185.) ac_abs_top_builddir=${ac_top_builddir}.;; 1186*) 1187 case ${ac_top_builddir}. in 1188 .) ac_abs_top_builddir=$ac_abs_builddir;; 1189 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 1190 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 1191 esac;; 1192esac 1193case $ac_abs_builddir in 1194.) ac_abs_srcdir=$ac_srcdir;; 1195*) 1196 case $ac_srcdir in 1197 .) ac_abs_srcdir=$ac_abs_builddir;; 1198 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 1199 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 1200 esac;; 1201esac 1202case $ac_abs_builddir in 1203.) ac_abs_top_srcdir=$ac_top_srcdir;; 1204*) 1205 case $ac_top_srcdir in 1206 .) ac_abs_top_srcdir=$ac_abs_builddir;; 1207 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 1208 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 1209 esac;; 1210esac 1211 1212 cd $ac_dir 1213 # Check for guested configure; otherwise get Cygnus style configure. 1214 if test -f $ac_srcdir/configure.gnu; then 1215 echo 1216 $SHELL $ac_srcdir/configure.gnu --help=recursive 1217 elif test -f $ac_srcdir/configure; then 1218 echo 1219 $SHELL $ac_srcdir/configure --help=recursive 1220 elif test -f $ac_srcdir/configure.ac || 1221 test -f $ac_srcdir/configure.in; then 1222 echo 1223 $ac_configure --help 1224 else 1225 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1226 fi 1227 cd $ac_popdir 1228 done 1229fi 1230 1231test -n "$ac_init_help" && exit 0 1232if $ac_init_version; then 1233 cat <<\_ACEOF 1234ThirdPartyBlas configure 1.4.8 1235generated by GNU Autoconf 2.59 1236 1237Copyright (C) 2003 Free Software Foundation, Inc. 1238This configure script is free software; the Free Software Foundation 1239gives unlimited permission to copy, distribute and modify it. 1240 1241 1242Copyright 2006 International Business Machines and others. 1243All Rights Reserved. 1244This file is part of the open source package Coin which is distributed 1245under the Eclipse Public License. 1246_ACEOF 1247 exit 0 1248fi 1249exec 5>config.log 1250cat >&5 <<_ACEOF 1251This file contains any messages produced by compilers while 1252running configure, to aid debugging if configure makes a mistake. 1253 1254It was created by ThirdPartyBlas $as_me 1.4.8, which was 1255generated by GNU Autoconf 2.59. Invocation command line was 1256 1257 $ $0 $@ 1258 1259_ACEOF 1260{ 1261cat <<_ASUNAME 1262## --------- ## 1263## Platform. ## 1264## --------- ## 1265 1266hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1267uname -m = `(uname -m) 2>/dev/null || echo unknown` 1268uname -r = `(uname -r) 2>/dev/null || echo unknown` 1269uname -s = `(uname -s) 2>/dev/null || echo unknown` 1270uname -v = `(uname -v) 2>/dev/null || echo unknown` 1271 1272/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1273/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1274 1275/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1276/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1277/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1278hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1279/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1280/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1281/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1282 1283_ASUNAME 1284 1285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1286for as_dir in $PATH 1287do 1288 IFS=$as_save_IFS 1289 test -z "$as_dir" && as_dir=. 1290 echo "PATH: $as_dir" 1291done 1292 1293} >&5 1294 1295cat >&5 <<_ACEOF 1296 1297 1298## ----------- ## 1299## Core tests. ## 1300## ----------- ## 1301 1302_ACEOF 1303 1304 1305# Keep a trace of the command line. 1306# Strip out --no-create and --no-recursion so they do not pile up. 1307# Strip out --silent because we don't want to record it for future runs. 1308# Also quote any args containing shell meta-characters. 1309# Make two passes to allow for proper duplicate-argument suppression. 1310ac_configure_args= 1311ac_configure_args0= 1312ac_configure_args1= 1313ac_sep= 1314ac_must_keep_next=false 1315for ac_pass in 1 2 1316do 1317 for ac_arg 1318 do 1319 case $ac_arg in 1320 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1321 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1322 | -silent | --silent | --silen | --sile | --sil) 1323 continue ;; 1324 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1325 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1326 esac 1327 case $ac_pass in 1328 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1329 2) 1330 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1331 if test $ac_must_keep_next = true; then 1332 ac_must_keep_next=false # Got value, back to normal. 1333 else 1334 case $ac_arg in 1335 *=* | --config-cache | -C | -disable-* | --disable-* \ 1336 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1337 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1338 | -with-* | --with-* | -without-* | --without-* | --x) 1339 case "$ac_configure_args0 " in 1340 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1341 esac 1342 ;; 1343 -* ) ac_must_keep_next=true ;; 1344 esac 1345 fi 1346 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1347 # Get rid of the leading space. 1348 ac_sep=" " 1349 ;; 1350 esac 1351 done 1352done 1353$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1354$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1355 1356# When interrupted or exit'd, cleanup temporary files, and complete 1357# config.log. We remove comments because anyway the quotes in there 1358# would cause problems or look ugly. 1359# WARNING: Be sure not to use single quotes in there, as some shells, 1360# such as our DU 5.0 friend, will then `close' the trap. 1361trap 'exit_status=$? 1362 # Save into config.log some information that might help in debugging. 1363 { 1364 echo 1365 1366 cat <<\_ASBOX 1367## ---------------- ## 1368## Cache variables. ## 1369## ---------------- ## 1370_ASBOX 1371 echo 1372 # The following way of writing the cache mishandles newlines in values, 1373{ 1374 (set) 2>&1 | 1375 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1376 *ac_space=\ *) 1377 sed -n \ 1378 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1379 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1380 ;; 1381 *) 1382 sed -n \ 1383 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1384 ;; 1385 esac; 1386} 1387 echo 1388 1389 cat <<\_ASBOX 1390## ----------------- ## 1391## Output variables. ## 1392## ----------------- ## 1393_ASBOX 1394 echo 1395 for ac_var in $ac_subst_vars 1396 do 1397 eval ac_val=$`echo $ac_var` 1398 echo "$ac_var='"'"'$ac_val'"'"'" 1399 done | sort 1400 echo 1401 1402 if test -n "$ac_subst_files"; then 1403 cat <<\_ASBOX 1404## ------------- ## 1405## Output files. ## 1406## ------------- ## 1407_ASBOX 1408 echo 1409 for ac_var in $ac_subst_files 1410 do 1411 eval ac_val=$`echo $ac_var` 1412 echo "$ac_var='"'"'$ac_val'"'"'" 1413 done | sort 1414 echo 1415 fi 1416 1417 if test -s confdefs.h; then 1418 cat <<\_ASBOX 1419## ----------- ## 1420## confdefs.h. ## 1421## ----------- ## 1422_ASBOX 1423 echo 1424 sed "/^$/d" confdefs.h | sort 1425 echo 1426 fi 1427 test "$ac_signal" != 0 && 1428 echo "$as_me: caught signal $ac_signal" 1429 echo "$as_me: exit $exit_status" 1430 } >&5 1431 rm -f core *.core && 1432 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1433 exit $exit_status 1434 ' 0 1435for ac_signal in 1 2 13 15; do 1436 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1437done 1438ac_signal=0 1439 1440# confdefs.h avoids OS command line length limits that DEFS can exceed. 1441rm -rf conftest* confdefs.h 1442# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1443echo >confdefs.h 1444 1445# Predefined preprocessor variables. 1446 1447cat >>confdefs.h <<_ACEOF 1448#define PACKAGE_NAME "$PACKAGE_NAME" 1449_ACEOF 1450 1451 1452cat >>confdefs.h <<_ACEOF 1453#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1454_ACEOF 1455 1456 1457cat >>confdefs.h <<_ACEOF 1458#define PACKAGE_VERSION "$PACKAGE_VERSION" 1459_ACEOF 1460 1461 1462cat >>confdefs.h <<_ACEOF 1463#define PACKAGE_STRING "$PACKAGE_STRING" 1464_ACEOF 1465 1466 1467cat >>confdefs.h <<_ACEOF 1468#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1469_ACEOF 1470 1471 1472# Let the site file select an alternate cache file if it wants to. 1473# Prefer explicitly selected file to automatically selected ones. 1474if test -z "$CONFIG_SITE"; then 1475 if test "x$prefix" != xNONE; then 1476 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1477 else 1478 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1479 fi 1480fi 1481for ac_site_file in $CONFIG_SITE; do 1482 if test -r "$ac_site_file"; then 1483 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1484echo "$as_me: loading site script $ac_site_file" >&6;} 1485 sed 's/^/| /' "$ac_site_file" >&5 1486 . "$ac_site_file" 1487 fi 1488done 1489 1490if test -r "$cache_file"; then 1491 # Some versions of bash will fail to source /dev/null (special 1492 # files actually), so we avoid doing that. 1493 if test -f "$cache_file"; then 1494 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1495echo "$as_me: loading cache $cache_file" >&6;} 1496 case $cache_file in 1497 [\\/]* | ?:[\\/]* ) . $cache_file;; 1498 *) . ./$cache_file;; 1499 esac 1500 fi 1501else 1502 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1503echo "$as_me: creating cache $cache_file" >&6;} 1504 >$cache_file 1505fi 1506 1507# Check that the precious variables saved in the cache have kept the same 1508# value. 1509ac_cache_corrupted=false 1510for ac_var in `(set) 2>&1 | 1511 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1512 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1513 eval ac_new_set=\$ac_env_${ac_var}_set 1514 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1515 eval ac_new_val="\$ac_env_${ac_var}_value" 1516 case $ac_old_set,$ac_new_set in 1517 set,) 1518 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1519echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1520 ac_cache_corrupted=: ;; 1521 ,set) 1522 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1523echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1524 ac_cache_corrupted=: ;; 1525 ,);; 1526 *) 1527 if test "x$ac_old_val" != "x$ac_new_val"; then 1528 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1529echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1530 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1531echo "$as_me: former value: $ac_old_val" >&2;} 1532 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1533echo "$as_me: current value: $ac_new_val" >&2;} 1534 ac_cache_corrupted=: 1535 fi;; 1536 esac 1537 # Pass precious variables to config.status. 1538 if test "$ac_new_set" = set; then 1539 case $ac_new_val in 1540 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1541 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1542 *) ac_arg=$ac_var=$ac_new_val ;; 1543 esac 1544 case " $ac_configure_args " in 1545 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1546 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1547 esac 1548 fi 1549done 1550if $ac_cache_corrupted; then 1551 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1552echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1553 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1554echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1555 { (exit 1); exit 1; }; } 1556fi 1557 1558ac_ext=c 1559ac_cpp='$CPP $CPPFLAGS' 1560ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1561ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1562ac_compiler_gnu=$ac_cv_c_compiler_gnu 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593# List one file in the package so that the configure script can test 1594# whether the package is actually there 1595 1596 1597# Where should everything be installed by default? Here, we want it 1598# to be installed directly in 'bin', 'lib', 'include' subdirectories 1599# of the directory where configure is run. The default would be 1600# /usr/local. 1601 1602 1603 1604# As backup, we make sure we don't loose an FLIBS if it has been set 1605# by the user 1606save_FLIBS="$FLIBS" 1607 1608# A useful makefile conditional that is always false 1609 1610 1611if false; then 1612 ALWAYS_FALSE_TRUE= 1613 ALWAYS_FALSE_FALSE='#' 1614else 1615 ALWAYS_FALSE_TRUE='#' 1616 ALWAYS_FALSE_FALSE= 1617fi 1618 1619 1620# We set the following variable so that we know later in AC_COIN_FINALIZE 1621# that we are in a project main directory 1622coin_projectdir=yes 1623 1624# Set the project's version numbers 1625 1626 1627cat >>confdefs.h <<_ACEOF 1628#define BLAS_VERSION "$PACKAGE_VERSION" 1629_ACEOF 1630 1631 1632 coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'` 1633 coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'` 1634 coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'` 1635 if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi 1636 if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi 1637 if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi 1638 1639cat >>confdefs.h <<_ACEOF 1640#define BLAS_VERSION_MAJOR $coin_majorver 1641_ACEOF 1642 1643 1644cat >>confdefs.h <<_ACEOF 1645#define BLAS_VERSION_MINOR $coin_minorver 1646_ACEOF 1647 1648 1649cat >>confdefs.h <<_ACEOF 1650#define BLAS_VERSION_RELEASE $coin_releasever 1651_ACEOF 1652 1653 1654 # We use the following variable to have a string with the upper case 1655 # version of the project name 1656 COIN_PRJCT=BLAS 1657 1658 # Set the project's SVN revision number. The complicated sed expression 1659 # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up 1660 # as a single number. 1661 # Extract the first word of "svnversion", so it can be a program name with args. 1662set dummy svnversion; ac_word=$2 1663echo "$as_me:$LINENO: checking for $ac_word" >&5 1664echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1665if test "${ac_cv_prog_have_svnversion+set}" = set; then 1666 echo $ECHO_N "(cached) $ECHO_C" >&6 1667else 1668 if test -n "$have_svnversion"; then 1669 ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test. 1670else 1671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1672for as_dir in $PATH 1673do 1674 IFS=$as_save_IFS 1675 test -z "$as_dir" && as_dir=. 1676 for ac_exec_ext in '' $ac_executable_extensions; do 1677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1678 ac_cv_prog_have_svnversion="yes" 1679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1680 break 2 1681 fi 1682done 1683done 1684 1685 test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no" 1686fi 1687fi 1688have_svnversion=$ac_cv_prog_have_svnversion 1689if test -n "$have_svnversion"; then 1690 echo "$as_me:$LINENO: result: $have_svnversion" >&5 1691echo "${ECHO_T}$have_svnversion" >&6 1692else 1693 echo "$as_me:$LINENO: result: no" >&5 1694echo "${ECHO_T}no" >&6 1695fi 1696 1697 if test "x$have_svnversion" = xyes; then 1698 1699 svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null` 1700 if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then 1701 BLAS_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'` 1702 1703cat >>confdefs.h <<_ACEOF 1704#define BLAS_SVN_REV $BLAS_SVN_REV 1705_ACEOF 1706 1707 fi 1708 fi 1709 1710 1711 1712# Capture libtool library version, if given. 1713 coin_libversion=5:8:4 1714 1715 1716 1717############################################################################# 1718# Standard build tool stuff # 1719############################################################################# 1720 1721# Get the system type 1722ac_aux_dir= 1723for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1724 if test -f $ac_dir/install-sh; then 1725 ac_aux_dir=$ac_dir 1726 ac_install_sh="$ac_aux_dir/install-sh -c" 1727 break 1728 elif test -f $ac_dir/install.sh; then 1729 ac_aux_dir=$ac_dir 1730 ac_install_sh="$ac_aux_dir/install.sh -c" 1731 break 1732 elif test -f $ac_dir/shtool; then 1733 ac_aux_dir=$ac_dir 1734 ac_install_sh="$ac_aux_dir/shtool install -c" 1735 break 1736 fi 1737done 1738if test -z "$ac_aux_dir"; then 1739 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1740echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1741 { (exit 1); exit 1; }; } 1742fi 1743ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1744ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1745ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1746 1747# Make sure we can run config.sub. 1748$ac_config_sub sun4 >/dev/null 2>&1 || 1749 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 1750echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1751 { (exit 1); exit 1; }; } 1752 1753echo "$as_me:$LINENO: checking build system type" >&5 1754echo $ECHO_N "checking build system type... $ECHO_C" >&6 1755if test "${ac_cv_build+set}" = set; then 1756 echo $ECHO_N "(cached) $ECHO_C" >&6 1757else 1758 ac_cv_build_alias=$build_alias 1759test -z "$ac_cv_build_alias" && 1760 ac_cv_build_alias=`$ac_config_guess` 1761test -z "$ac_cv_build_alias" && 1762 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1763echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1764 { (exit 1); exit 1; }; } 1765ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 1766 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 1767echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 1768 { (exit 1); exit 1; }; } 1769 1770fi 1771echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1772echo "${ECHO_T}$ac_cv_build" >&6 1773build=$ac_cv_build 1774build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1775build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1776build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1777 1778 1779 1780#turn off warnings and pedantic mode since they could make trouble on some platforms, 1781#and we couldn't fix them anyway 1782coin_skip_warn_fflags=yes 1783 1784# Check if user wants to produce debugging code 1785 1786echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5 1787echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6 1788 1789# Check whether --enable-debug or --disable-debug was given. 1790if test "${enable_debug+set}" = set; then 1791 enableval="$enable_debug" 1792 case "${enableval}" in 1793 yes) coin_debug_compile=true 1794 if test "${enable_shared+set}" = set; then :; else 1795 enable_shared=no 1796 fi 1797 ;; 1798 no) coin_debug_compile=false 1799 ;; 1800 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5 1801echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;} 1802 { (exit 1); exit 1; }; } 1803 ;; 1804esac 1805else 1806 coin_debug_compile=false 1807fi; 1808 1809# Check whether --enable-debug-blas or --disable-debug-blas was given. 1810if test "${enable_debug_blas+set}" = set; then 1811 enableval="$enable_debug_blas" 1812 case "${enableval}" in 1813 yes) coin_debug_compile=true 1814 ;; 1815 no) coin_debug_compile=false 1816 ;; 1817 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-blas" >&5 1818echo "$as_me: error: bad value ${enableval} for --enable-debug-blas" >&2;} 1819 { (exit 1); exit 1; }; } 1820 ;; 1821 esac 1822else 1823 : 1824fi; 1825 1826 # m4_ifvaln([Blas], 1827 1828if test $coin_debug_compile = true; then 1829 echo "$as_me:$LINENO: result: yes" >&5 1830echo "${ECHO_T}yes" >&6 1831else 1832 echo "$as_me:$LINENO: result: no" >&5 1833echo "${ECHO_T}no" >&6 1834fi 1835 1836 1837# Check whether --with-blas-verbosity or --without-blas-verbosity was given. 1838if test "${with_blas_verbosity+set}" = set; then 1839 withval="$with_blas_verbosity" 1840 if test "$withval" = yes; then 1841 withval=1 1842 fi 1843 coin_blas_verbosity=$withval 1844else 1845 coin_blas_verbosity=0 1846fi; 1847 1848cat >>confdefs.h <<_ACEOF 1849#define COIN_BLAS_VERBOSITY $coin_blas_verbosity 1850_ACEOF 1851 1852 1853 1854# Check whether --with-blas-checklevel or --without-blas-checklevel was given. 1855if test "${with_blas_checklevel+set}" = set; then 1856 withval="$with_blas_checklevel" 1857 if test "$withval" = yes; then 1858 withval=1 1859 fi 1860 coin_blas_checklevel=$withval 1861else 1862 coin_blas_checklevel=0 1863fi; 1864 1865cat >>confdefs.h <<_ACEOF 1866#define COIN_BLAS_CHECKLEVEL $coin_blas_checklevel 1867_ACEOF 1868 1869 1870 # m4_ifvaln([Blas], 1871 1872 1873 1874# Get the name of the Fortran compiler and appropriate compiler options 1875 1876 1877 # for backward compatibility 1878 # Check whether --enable-doscompile or --disable-doscompile was given. 1879if test "${enable_doscompile+set}" = set; then 1880 enableval="$enable_doscompile" 1881 enable_doscompile=$enableval 1882else 1883 enable_doscompile=no 1884fi; 1885 1886 # Check whether --enable-msvc or --disable-msvc was given. 1887if test "${enable_msvc+set}" = set; then 1888 enableval="$enable_msvc" 1889 enable_msvc=$enableval 1890else 1891 enable_msvc=no 1892 if test "$enable_doscompile" = msvc ; then 1893 enable_msvc=yes 1894 elif test "$enable_doscompile" != no ; then 1895 { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5 1896echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;} 1897 { (exit 1); exit 1; }; } 1898 fi 1899 1900fi; 1901 1902 if test "$enable_msvc" = MD; then 1903 enable_shared=yes 1904 enable_msvc=yes 1905 fi 1906 1907 if test "$enable_msvc" = yes; then 1908 case $build in 1909 *-cygwin* | *-mingw*) ;; 1910 *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5 1911echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;} 1912 { (exit 1); exit 1; }; } ;; 1913 esac 1914 fi 1915 1916 1917 1918ac_ext=c 1919ac_cpp='$CPP $CPPFLAGS' 1920ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1921ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1922ac_compiler_gnu=$ac_cv_c_compiler_gnu 1923 1924 1925# For consistency, we set the C compiler to the same value of the C++ 1926# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl) 1927if test x"$CXX" != x; then 1928 case "$CXX" in 1929 clang* ) ;; 1930 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 1931 if test x"$CC" = x; then 1932 CC="$CXX" 1933 { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5 1934echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;} 1935 fi 1936 ;; 1937 esac 1938fi 1939 1940 1941 1942 1943 1944 1945coin_has_cc=yes 1946 1947save_cflags="$CFLAGS" 1948 1949# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list. 1950# Depending on the user's PATH, when Studio/Workshop cc is not present we may 1951# find /usr/ucb/cc, which is almost certainly not a good choice for the C 1952# compiler. In this case, put cc after gcc. 1953 1954case $build in 1955 *-cygwin* | *-mingw*) 1956 if test "$enable_msvc" = yes ; then 1957 comps="icl cl gcc" 1958 else 1959 comps="gcc icl cl" 1960 fi ;; 1961 *-*-solaris*) 1962 # Extract the first word of "cc", so it can be a program name with args. 1963set dummy cc; ac_word=$2 1964echo "$as_me:$LINENO: checking for $ac_word" >&5 1965echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1966if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then 1967 echo $ECHO_N "(cached) $ECHO_C" >&6 1968else 1969 if test -n "$sol_cc_compiler"; then 1970 ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test. 1971else 1972 ac_prog_rejected=no 1973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1974for as_dir in $PATH 1975do 1976 IFS=$as_save_IFS 1977 test -z "$as_dir" && as_dir=. 1978 for ac_exec_ext in '' $ac_executable_extensions; do 1979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1980 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1981 ac_prog_rejected=yes 1982 continue 1983 fi 1984 ac_cv_prog_sol_cc_compiler="cc" 1985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1986 break 2 1987 fi 1988done 1989done 1990 1991if test $ac_prog_rejected = yes; then 1992 # We found a bogon in the path, so make sure we never use it. 1993 set dummy $ac_cv_prog_sol_cc_compiler 1994 shift 1995 if test $# != 0; then 1996 # We chose a different compiler from the bogus one. 1997 # However, it has the same basename, so the bogon will be chosen 1998 # first if we set sol_cc_compiler to just the basename; use the full file name. 1999 shift 2000 ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@" 2001 fi 2002fi 2003fi 2004fi 2005sol_cc_compiler=$ac_cv_prog_sol_cc_compiler 2006if test -n "$sol_cc_compiler"; then 2007 echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5 2008echo "${ECHO_T}$sol_cc_compiler" >&6 2009else 2010 echo "$as_me:$LINENO: result: no" >&5 2011echo "${ECHO_T}no" >&6 2012fi 2013 2014 if test "$sol_cc_compiler" = "cc" ; then 2015 comps="cc xlc gcc pgcc icc" 2016 else 2017 comps="xlc gcc pgcc icc cc" 2018 fi 2019 ;; 2020 *-*-darwin*) comps="clang gcc cc" ;; 2021 *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;; 2022 *-linux-*) comps="xlc gcc cc pgcc icc" ;; 2023 *) comps="xlc_r xlc cc gcc pgcc icc" ;; 2024esac 2025 2026# We delete the cached value, since the test might not have been 2027# performed with our choice of compilers earlier 2028$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; } 2029# AC_MSG_NOTICE([C compiler candidates: $comps]) 2030ac_ext=c 2031ac_cpp='$CPP $CPPFLAGS' 2032ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2033ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2034ac_compiler_gnu=$ac_cv_c_compiler_gnu 2035if test -n "$ac_tool_prefix"; then 2036 for ac_prog in $comps 2037 do 2038 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2039set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2040echo "$as_me:$LINENO: checking for $ac_word" >&5 2041echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2042if test "${ac_cv_prog_CC+set}" = set; then 2043 echo $ECHO_N "(cached) $ECHO_C" >&6 2044else 2045 if test -n "$CC"; then 2046 ac_cv_prog_CC="$CC" # Let the user override the test. 2047else 2048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2049for as_dir in $PATH 2050do 2051 IFS=$as_save_IFS 2052 test -z "$as_dir" && as_dir=. 2053 for ac_exec_ext in '' $ac_executable_extensions; do 2054 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2055 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2057 break 2 2058 fi 2059done 2060done 2061 2062fi 2063fi 2064CC=$ac_cv_prog_CC 2065if test -n "$CC"; then 2066 echo "$as_me:$LINENO: result: $CC" >&5 2067echo "${ECHO_T}$CC" >&6 2068else 2069 echo "$as_me:$LINENO: result: no" >&5 2070echo "${ECHO_T}no" >&6 2071fi 2072 2073 test -n "$CC" && break 2074 done 2075fi 2076if test -z "$CC"; then 2077 ac_ct_CC=$CC 2078 for ac_prog in $comps 2079do 2080 # Extract the first word of "$ac_prog", so it can be a program name with args. 2081set dummy $ac_prog; ac_word=$2 2082echo "$as_me:$LINENO: checking for $ac_word" >&5 2083echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2084if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2085 echo $ECHO_N "(cached) $ECHO_C" >&6 2086else 2087 if test -n "$ac_ct_CC"; then 2088 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2089else 2090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2091for as_dir in $PATH 2092do 2093 IFS=$as_save_IFS 2094 test -z "$as_dir" && as_dir=. 2095 for ac_exec_ext in '' $ac_executable_extensions; do 2096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2097 ac_cv_prog_ac_ct_CC="$ac_prog" 2098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2099 break 2 2100 fi 2101done 2102done 2103 2104fi 2105fi 2106ac_ct_CC=$ac_cv_prog_ac_ct_CC 2107if test -n "$ac_ct_CC"; then 2108 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2109echo "${ECHO_T}$ac_ct_CC" >&6 2110else 2111 echo "$as_me:$LINENO: result: no" >&5 2112echo "${ECHO_T}no" >&6 2113fi 2114 2115 test -n "$ac_ct_CC" && break 2116done 2117 2118 CC=$ac_ct_CC 2119fi 2120 2121 2122test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2123See \`config.log' for more details." >&5 2124echo "$as_me: error: no acceptable C compiler found in \$PATH 2125See \`config.log' for more details." >&2;} 2126 { (exit 1); exit 1; }; } 2127 2128# Provide some information about the compiler. 2129echo "$as_me:$LINENO:" \ 2130 "checking for C compiler version" >&5 2131ac_compiler=`set X $ac_compile; echo $2` 2132{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2133 (eval $ac_compiler --version </dev/null >&5) 2>&5 2134 ac_status=$? 2135 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2136 (exit $ac_status); } 2137{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2138 (eval $ac_compiler -v </dev/null >&5) 2>&5 2139 ac_status=$? 2140 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2141 (exit $ac_status); } 2142{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2143 (eval $ac_compiler -V </dev/null >&5) 2>&5 2144 ac_status=$? 2145 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2146 (exit $ac_status); } 2147 2148cat >conftest.$ac_ext <<_ACEOF 2149/* confdefs.h. */ 2150_ACEOF 2151cat confdefs.h >>conftest.$ac_ext 2152cat >>conftest.$ac_ext <<_ACEOF 2153/* end confdefs.h. */ 2154 2155int 2156main () 2157{ 2158 2159 ; 2160 return 0; 2161} 2162_ACEOF 2163ac_clean_files_save=$ac_clean_files 2164ac_clean_files="$ac_clean_files a.out a.exe b.out" 2165# Try to create an executable without -o first, disregard a.out. 2166# It will help us diagnose broken compilers, and finding out an intuition 2167# of exeext. 2168echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2169echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2170ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2171if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2172 (eval $ac_link_default) 2>&5 2173 ac_status=$? 2174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2175 (exit $ac_status); }; then 2176 # Find the output, starting from the most likely. This scheme is 2177# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2178# resort. 2179 2180# Be careful to initialize this variable, since it used to be cached. 2181# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2182ac_cv_exeext= 2183# b.out is created by i960 compilers. 2184for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2185do 2186 test -f "$ac_file" || continue 2187 case $ac_file in 2188 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2189 ;; 2190 conftest.$ac_ext ) 2191 # This is the source file. 2192 ;; 2193 [ab].out ) 2194 # We found the default executable, but exeext='' is most 2195 # certainly right. 2196 break;; 2197 *.* ) 2198 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2199 # FIXME: I believe we export ac_cv_exeext for Libtool, 2200 # but it would be cool to find out if it's true. Does anybody 2201 # maintain Libtool? --akim. 2202 export ac_cv_exeext 2203 break;; 2204 * ) 2205 break;; 2206 esac 2207done 2208else 2209 echo "$as_me: failed program was:" >&5 2210sed 's/^/| /' conftest.$ac_ext >&5 2211 2212{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2213See \`config.log' for more details." >&5 2214echo "$as_me: error: C compiler cannot create executables 2215See \`config.log' for more details." >&2;} 2216 { (exit 77); exit 77; }; } 2217fi 2218 2219ac_exeext=$ac_cv_exeext 2220echo "$as_me:$LINENO: result: $ac_file" >&5 2221echo "${ECHO_T}$ac_file" >&6 2222 2223# Check the compiler produces executables we can run. If not, either 2224# the compiler is broken, or we cross compile. 2225echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2226echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2227# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2228# If not cross compiling, check that we can run a simple program. 2229if test "$cross_compiling" != yes; then 2230 if { ac_try='./$ac_file' 2231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2232 (eval $ac_try) 2>&5 2233 ac_status=$? 2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2235 (exit $ac_status); }; }; then 2236 cross_compiling=no 2237 else 2238 if test "$cross_compiling" = maybe; then 2239 cross_compiling=yes 2240 else 2241 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2242If you meant to cross compile, use \`--host'. 2243See \`config.log' for more details." >&5 2244echo "$as_me: error: cannot run C compiled programs. 2245If you meant to cross compile, use \`--host'. 2246See \`config.log' for more details." >&2;} 2247 { (exit 1); exit 1; }; } 2248 fi 2249 fi 2250fi 2251echo "$as_me:$LINENO: result: yes" >&5 2252echo "${ECHO_T}yes" >&6 2253 2254rm -f a.out a.exe conftest$ac_cv_exeext b.out 2255ac_clean_files=$ac_clean_files_save 2256# Check the compiler produces executables we can run. If not, either 2257# the compiler is broken, or we cross compile. 2258echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2259echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2260echo "$as_me:$LINENO: result: $cross_compiling" >&5 2261echo "${ECHO_T}$cross_compiling" >&6 2262 2263echo "$as_me:$LINENO: checking for suffix of executables" >&5 2264echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2265if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2266 (eval $ac_link) 2>&5 2267 ac_status=$? 2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2269 (exit $ac_status); }; then 2270 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2271# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2272# work properly (i.e., refer to `conftest.exe'), while it won't with 2273# `rm'. 2274for ac_file in conftest.exe conftest conftest.*; do 2275 test -f "$ac_file" || continue 2276 case $ac_file in 2277 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2278 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2279 export ac_cv_exeext 2280 break;; 2281 * ) break;; 2282 esac 2283done 2284else 2285 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2286See \`config.log' for more details." >&5 2287echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2288See \`config.log' for more details." >&2;} 2289 { (exit 1); exit 1; }; } 2290fi 2291 2292rm -f conftest$ac_cv_exeext 2293echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2294echo "${ECHO_T}$ac_cv_exeext" >&6 2295 2296rm -f conftest.$ac_ext 2297EXEEXT=$ac_cv_exeext 2298ac_exeext=$EXEEXT 2299echo "$as_me:$LINENO: checking for suffix of object files" >&5 2300echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2301if test "${ac_cv_objext+set}" = set; then 2302 echo $ECHO_N "(cached) $ECHO_C" >&6 2303else 2304 cat >conftest.$ac_ext <<_ACEOF 2305/* confdefs.h. */ 2306_ACEOF 2307cat confdefs.h >>conftest.$ac_ext 2308cat >>conftest.$ac_ext <<_ACEOF 2309/* end confdefs.h. */ 2310 2311int 2312main () 2313{ 2314 2315 ; 2316 return 0; 2317} 2318_ACEOF 2319rm -f conftest.o conftest.obj 2320if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2321 (eval $ac_compile) 2>&5 2322 ac_status=$? 2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2324 (exit $ac_status); }; then 2325 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2326 case $ac_file in 2327 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2328 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2329 break;; 2330 esac 2331done 2332else 2333 echo "$as_me: failed program was:" >&5 2334sed 's/^/| /' conftest.$ac_ext >&5 2335 2336{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2337See \`config.log' for more details." >&5 2338echo "$as_me: error: cannot compute suffix of object files: cannot compile 2339See \`config.log' for more details." >&2;} 2340 { (exit 1); exit 1; }; } 2341fi 2342 2343rm -f conftest.$ac_cv_objext conftest.$ac_ext 2344fi 2345echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2346echo "${ECHO_T}$ac_cv_objext" >&6 2347OBJEXT=$ac_cv_objext 2348ac_objext=$OBJEXT 2349echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2350echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2351if test "${ac_cv_c_compiler_gnu+set}" = set; then 2352 echo $ECHO_N "(cached) $ECHO_C" >&6 2353else 2354 cat >conftest.$ac_ext <<_ACEOF 2355/* confdefs.h. */ 2356_ACEOF 2357cat confdefs.h >>conftest.$ac_ext 2358cat >>conftest.$ac_ext <<_ACEOF 2359/* end confdefs.h. */ 2360 2361int 2362main () 2363{ 2364#ifndef __GNUC__ 2365 choke me 2366#endif 2367 2368 ; 2369 return 0; 2370} 2371_ACEOF 2372rm -f conftest.$ac_objext 2373if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2374 (eval $ac_compile) 2>conftest.er1 2375 ac_status=$? 2376 grep -v '^ *+' conftest.er1 >conftest.err 2377 rm -f conftest.er1 2378 cat conftest.err >&5 2379 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2380 (exit $ac_status); } && 2381 { ac_try='test -z "$ac_c_werror_flag" 2382 || test ! -s conftest.err' 2383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2384 (eval $ac_try) 2>&5 2385 ac_status=$? 2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2387 (exit $ac_status); }; } && 2388 { ac_try='test -s conftest.$ac_objext' 2389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2390 (eval $ac_try) 2>&5 2391 ac_status=$? 2392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2393 (exit $ac_status); }; }; then 2394 ac_compiler_gnu=yes 2395else 2396 echo "$as_me: failed program was:" >&5 2397sed 's/^/| /' conftest.$ac_ext >&5 2398 2399ac_compiler_gnu=no 2400fi 2401rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2402ac_cv_c_compiler_gnu=$ac_compiler_gnu 2403 2404fi 2405echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2406echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2407GCC=`test $ac_compiler_gnu = yes && echo yes` 2408ac_test_CFLAGS=${CFLAGS+set} 2409ac_save_CFLAGS=$CFLAGS 2410CFLAGS="-g" 2411echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2412echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2413if test "${ac_cv_prog_cc_g+set}" = set; then 2414 echo $ECHO_N "(cached) $ECHO_C" >&6 2415else 2416 cat >conftest.$ac_ext <<_ACEOF 2417/* confdefs.h. */ 2418_ACEOF 2419cat confdefs.h >>conftest.$ac_ext 2420cat >>conftest.$ac_ext <<_ACEOF 2421/* end confdefs.h. */ 2422 2423int 2424main () 2425{ 2426 2427 ; 2428 return 0; 2429} 2430_ACEOF 2431rm -f conftest.$ac_objext 2432if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2433 (eval $ac_compile) 2>conftest.er1 2434 ac_status=$? 2435 grep -v '^ *+' conftest.er1 >conftest.err 2436 rm -f conftest.er1 2437 cat conftest.err >&5 2438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2439 (exit $ac_status); } && 2440 { ac_try='test -z "$ac_c_werror_flag" 2441 || test ! -s conftest.err' 2442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2443 (eval $ac_try) 2>&5 2444 ac_status=$? 2445 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2446 (exit $ac_status); }; } && 2447 { ac_try='test -s conftest.$ac_objext' 2448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2449 (eval $ac_try) 2>&5 2450 ac_status=$? 2451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2452 (exit $ac_status); }; }; then 2453 ac_cv_prog_cc_g=yes 2454else 2455 echo "$as_me: failed program was:" >&5 2456sed 's/^/| /' conftest.$ac_ext >&5 2457 2458ac_cv_prog_cc_g=no 2459fi 2460rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2461fi 2462echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2463echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2464if test "$ac_test_CFLAGS" = set; then 2465 CFLAGS=$ac_save_CFLAGS 2466elif test $ac_cv_prog_cc_g = yes; then 2467 if test "$GCC" = yes; then 2468 CFLAGS="-g -O2" 2469 else 2470 CFLAGS="-g" 2471 fi 2472else 2473 if test "$GCC" = yes; then 2474 CFLAGS="-O2" 2475 else 2476 CFLAGS= 2477 fi 2478fi 2479echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2480echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2481if test "${ac_cv_prog_cc_stdc+set}" = set; then 2482 echo $ECHO_N "(cached) $ECHO_C" >&6 2483else 2484 ac_cv_prog_cc_stdc=no 2485ac_save_CC=$CC 2486cat >conftest.$ac_ext <<_ACEOF 2487/* confdefs.h. */ 2488_ACEOF 2489cat confdefs.h >>conftest.$ac_ext 2490cat >>conftest.$ac_ext <<_ACEOF 2491/* end confdefs.h. */ 2492#include <stdarg.h> 2493#include <stdio.h> 2494#include <sys/types.h> 2495#include <sys/stat.h> 2496/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2497struct buf { int x; }; 2498FILE * (*rcsopen) (struct buf *, struct stat *, int); 2499static char *e (p, i) 2500 char **p; 2501 int i; 2502{ 2503 return p[i]; 2504} 2505static char *f (char * (*g) (char **, int), char **p, ...) 2506{ 2507 char *s; 2508 va_list v; 2509 va_start (v,p); 2510 s = g (p, va_arg (v,int)); 2511 va_end (v); 2512 return s; 2513} 2514 2515/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2516 function prototypes and stuff, but not '\xHH' hex character constants. 2517 These don't provoke an error unfortunately, instead are silently treated 2518 as 'x'. The following induces an error, until -std1 is added to get 2519 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2520 array size at least. It's necessary to write '\x00'==0 to get something 2521 that's true only with -std1. */ 2522int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2523 2524int test (int i, double x); 2525struct s1 {int (*f) (int a);}; 2526struct s2 {int (*f) (double a);}; 2527int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2528int argc; 2529char **argv; 2530int 2531main () 2532{ 2533return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2534 ; 2535 return 0; 2536} 2537_ACEOF 2538# Don't try gcc -ansi; that turns off useful extensions and 2539# breaks some systems' header files. 2540# AIX -qlanglvl=ansi 2541# Ultrix and OSF/1 -std1 2542# HP-UX 10.20 and later -Ae 2543# HP-UX older versions -Aa -D_HPUX_SOURCE 2544# SVR4 -Xc -D__EXTENSIONS__ 2545for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2546do 2547 CC="$ac_save_CC $ac_arg" 2548 rm -f conftest.$ac_objext 2549if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2550 (eval $ac_compile) 2>conftest.er1 2551 ac_status=$? 2552 grep -v '^ *+' conftest.er1 >conftest.err 2553 rm -f conftest.er1 2554 cat conftest.err >&5 2555 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2556 (exit $ac_status); } && 2557 { ac_try='test -z "$ac_c_werror_flag" 2558 || test ! -s conftest.err' 2559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2560 (eval $ac_try) 2>&5 2561 ac_status=$? 2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2563 (exit $ac_status); }; } && 2564 { ac_try='test -s conftest.$ac_objext' 2565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2566 (eval $ac_try) 2>&5 2567 ac_status=$? 2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2569 (exit $ac_status); }; }; then 2570 ac_cv_prog_cc_stdc=$ac_arg 2571break 2572else 2573 echo "$as_me: failed program was:" >&5 2574sed 's/^/| /' conftest.$ac_ext >&5 2575 2576fi 2577rm -f conftest.err conftest.$ac_objext 2578done 2579rm -f conftest.$ac_ext conftest.$ac_objext 2580CC=$ac_save_CC 2581 2582fi 2583 2584case "x$ac_cv_prog_cc_stdc" in 2585 x|xno) 2586 echo "$as_me:$LINENO: result: none needed" >&5 2587echo "${ECHO_T}none needed" >&6 ;; 2588 *) 2589 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2590echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2591 CC="$CC $ac_cv_prog_cc_stdc" ;; 2592esac 2593 2594# Some people use a C++ compiler to compile C. Since we use `exit', 2595# in C++ we need to declare it. In case someone uses the same compiler 2596# for both compiling C and C++ we need to have the C++ compiler decide 2597# the declaration of exit, since it's the most demanding environment. 2598cat >conftest.$ac_ext <<_ACEOF 2599#ifndef __cplusplus 2600 choke me 2601#endif 2602_ACEOF 2603rm -f conftest.$ac_objext 2604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2605 (eval $ac_compile) 2>conftest.er1 2606 ac_status=$? 2607 grep -v '^ *+' conftest.er1 >conftest.err 2608 rm -f conftest.er1 2609 cat conftest.err >&5 2610 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2611 (exit $ac_status); } && 2612 { ac_try='test -z "$ac_c_werror_flag" 2613 || test ! -s conftest.err' 2614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2615 (eval $ac_try) 2>&5 2616 ac_status=$? 2617 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2618 (exit $ac_status); }; } && 2619 { ac_try='test -s conftest.$ac_objext' 2620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2621 (eval $ac_try) 2>&5 2622 ac_status=$? 2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2624 (exit $ac_status); }; }; then 2625 for ac_declaration in \ 2626 '' \ 2627 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2628 'extern "C" void std::exit (int); using std::exit;' \ 2629 'extern "C" void exit (int) throw ();' \ 2630 'extern "C" void exit (int);' \ 2631 'void exit (int);' 2632do 2633 cat >conftest.$ac_ext <<_ACEOF 2634/* confdefs.h. */ 2635_ACEOF 2636cat confdefs.h >>conftest.$ac_ext 2637cat >>conftest.$ac_ext <<_ACEOF 2638/* end confdefs.h. */ 2639$ac_declaration 2640#include <stdlib.h> 2641int 2642main () 2643{ 2644exit (42); 2645 ; 2646 return 0; 2647} 2648_ACEOF 2649rm -f conftest.$ac_objext 2650if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2651 (eval $ac_compile) 2>conftest.er1 2652 ac_status=$? 2653 grep -v '^ *+' conftest.er1 >conftest.err 2654 rm -f conftest.er1 2655 cat conftest.err >&5 2656 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2657 (exit $ac_status); } && 2658 { ac_try='test -z "$ac_c_werror_flag" 2659 || test ! -s conftest.err' 2660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2661 (eval $ac_try) 2>&5 2662 ac_status=$? 2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2664 (exit $ac_status); }; } && 2665 { ac_try='test -s conftest.$ac_objext' 2666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2667 (eval $ac_try) 2>&5 2668 ac_status=$? 2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2670 (exit $ac_status); }; }; then 2671 : 2672else 2673 echo "$as_me: failed program was:" >&5 2674sed 's/^/| /' conftest.$ac_ext >&5 2675 2676continue 2677fi 2678rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2679 cat >conftest.$ac_ext <<_ACEOF 2680/* confdefs.h. */ 2681_ACEOF 2682cat confdefs.h >>conftest.$ac_ext 2683cat >>conftest.$ac_ext <<_ACEOF 2684/* end confdefs.h. */ 2685$ac_declaration 2686int 2687main () 2688{ 2689exit (42); 2690 ; 2691 return 0; 2692} 2693_ACEOF 2694rm -f conftest.$ac_objext 2695if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2696 (eval $ac_compile) 2>conftest.er1 2697 ac_status=$? 2698 grep -v '^ *+' conftest.er1 >conftest.err 2699 rm -f conftest.er1 2700 cat conftest.err >&5 2701 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2702 (exit $ac_status); } && 2703 { ac_try='test -z "$ac_c_werror_flag" 2704 || test ! -s conftest.err' 2705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2706 (eval $ac_try) 2>&5 2707 ac_status=$? 2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2709 (exit $ac_status); }; } && 2710 { ac_try='test -s conftest.$ac_objext' 2711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2712 (eval $ac_try) 2>&5 2713 ac_status=$? 2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2715 (exit $ac_status); }; }; then 2716 break 2717else 2718 echo "$as_me: failed program was:" >&5 2719sed 's/^/| /' conftest.$ac_ext >&5 2720 2721fi 2722rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2723done 2724rm -f conftest* 2725if test -n "$ac_declaration"; then 2726 echo '#ifdef __cplusplus' >>confdefs.h 2727 echo $ac_declaration >>confdefs.h 2728 echo '#endif' >>confdefs.h 2729fi 2730 2731else 2732 echo "$as_me: failed program was:" >&5 2733sed 's/^/| /' conftest.$ac_ext >&5 2734 2735fi 2736rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2737ac_ext=c 2738ac_cpp='$CPP $CPPFLAGS' 2739ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2740ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2741ac_compiler_gnu=$ac_cv_c_compiler_gnu 2742 2743if test -z "$CC" ; then 2744 { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5 2745echo "$as_me: error: Failed to find a C compiler!" >&2;} 2746 { (exit 1); exit 1; }; } 2747fi 2748# Autoconf incorrectly concludes that cl recognises -g. It doesn't. 2749case "$CC" in 2750 clang* ) ;; 2751 cl* | */cl* | CL* | */CL* ) 2752 if test "$ac_cv_prog_cc_g" = yes ; then 2753 ac_cv_prog_cc_g=no 2754 { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5 2755echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;} 2756 fi ;; 2757 * ) 2758 if test x"$CYGPATH_W" = x ; then 2759 CYGPATH_W=echo 2760 fi 2761 ;; 2762esac 2763CFLAGS="$save_cflags" 2764 2765# add automake conditional so we can recognize cl compiler in makefile 2766coin_cc_is_cl=false 2767case "$CC" in 2768 clang* ) ;; 2769 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 2770 coin_cc_is_cl=true 2771 ;; 2772esac 2773 2774 2775if test $coin_cc_is_cl = true; then 2776 COIN_CC_IS_CL_TRUE= 2777 COIN_CC_IS_CL_FALSE='#' 2778else 2779 COIN_CC_IS_CL_TRUE='#' 2780 COIN_CC_IS_CL_FALSE= 2781fi 2782 2783 2784# Check if a project specific CFLAGS variable has been set 2785if test x$COIN_PRJCT != x; then 2786 eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set} 2787 if test x$coin_tmp = xset; then 2788 eval CFLAGS=\${${COIN_PRJCT}_CFLAGS} 2789 fi 2790fi 2791 2792if test x"$CFLAGS" = x; then 2793 2794 coin_add_cflags= 2795 coin_opt_cflags= 2796 coin_dbg_cflags= 2797 coin_warn_cflags= 2798 2799 if test "$GCC" = "yes"; then 2800 case "$CC" in 2801 icc* | */icc*) 2802 ;; 2803 *) 2804 coin_opt_cflags="-O3" 2805 coin_add_cflags="-pipe" 2806 coin_dbg_cflags="-g -O0" 2807 coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long" 2808 esac 2809 fi 2810 if test -z "$coin_opt_cflags"; then 2811 case $build in 2812 *-cygwin* | *-mingw*) 2813 case "$CC" in 2814 clang* ) ;; 2815 cl* | */cl* | CL* | */CL*) 2816 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then 2817 coin_opt_cflags='-MD -O2' 2818 coin_dbg_cflags='-MDd' 2819 else 2820 coin_opt_cflags='-MT -O2' 2821 coin_dbg_cflags='-MTd' 2822 fi 2823 coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE' 2824 ;; 2825 icl* | */icl* | ICL* | */ICL*) 2826 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then 2827 coin_opt_cflags='-MD -Ox' 2828 coin_dbg_cflags='-MDd -debug' 2829 else 2830 coin_opt_cflags='-MT -Ox' 2831 coin_dbg_cflags='-MTd -debug' 2832 fi 2833 coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE' 2834 ;; 2835 esac 2836 ;; 2837 *-linux-*) 2838 case "$CC" in 2839 icc* | */icc*) 2840 coin_opt_cflags="-O3 -ip -mp1" 2841 coin_add_cflags="" 2842 coin_dbg_cflags="-g" 2843 # Check if -i_dynamic is necessary (for new glibc library) 2844 CFLAGS= 2845 cat >conftest.$ac_ext <<_ACEOF 2846/* confdefs.h. */ 2847_ACEOF 2848cat confdefs.h >>conftest.$ac_ext 2849cat >>conftest.$ac_ext <<_ACEOF 2850/* end confdefs.h. */ 2851 2852int 2853main () 2854{ 2855int i=0; i++; 2856 ; 2857 return 0; 2858} 2859_ACEOF 2860rm -f conftest.$ac_objext conftest$ac_exeext 2861if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2862 (eval $ac_link) 2>conftest.er1 2863 ac_status=$? 2864 grep -v '^ *+' conftest.er1 >conftest.err 2865 rm -f conftest.er1 2866 cat conftest.err >&5 2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2868 (exit $ac_status); } && 2869 { ac_try='test -z "$ac_c_werror_flag" 2870 || test ! -s conftest.err' 2871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2872 (eval $ac_try) 2>&5 2873 ac_status=$? 2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2875 (exit $ac_status); }; } && 2876 { ac_try='test -s conftest$ac_exeext' 2877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2878 (eval $ac_try) 2>&5 2879 ac_status=$? 2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2881 (exit $ac_status); }; }; then 2882 : 2883else 2884 echo "$as_me: failed program was:" >&5 2885sed 's/^/| /' conftest.$ac_ext >&5 2886 2887coin_add_cflags="-i_dynamic $coin_add_cflags" 2888fi 2889rm -f conftest.err conftest.$ac_objext \ 2890 conftest$ac_exeext conftest.$ac_ext 2891 ;; 2892 pgcc* | */pgcc*) 2893 coin_opt_cflags="-fast" 2894 coin_add_cflags="-Kieee -pc 64" 2895 coin_dbg_cflags="-g" 2896 ;; 2897 esac 2898 ;; 2899 *-ibm-*) 2900 case "$CC" in 2901 xlc* | */xlc* | mpxlc* | */mpxlc*) 2902 coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1" 2903 coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029" 2904 coin_dbg_cflags="-g" 2905 ;; 2906 esac 2907 ;; 2908 *-hp-*) 2909 coin_opt_cflags="-O" 2910 coin_add_cflags="-Ae" 2911 coin_dbg_cflags="-g" 2912 ;; 2913 *-*-solaris*) 2914 coin_opt_cflags="-xO4" 2915 coin_dbg_cflags="-g" 2916 ;; 2917 *-sgi-*) 2918 coin_opt_cflags="-O -OPT:Olimit=0" 2919 coin_dbg_cflags="-g" 2920 ;; 2921 esac 2922 fi 2923 2924 if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then 2925 coin_dbg_cflags="-g" 2926 fi 2927 2928 if test -z "$coin_opt_cflags"; then 2929 # Try if -O option works if nothing else is set 2930 CFLAGS="-O" 2931 cat >conftest.$ac_ext <<_ACEOF 2932/* confdefs.h. */ 2933_ACEOF 2934cat confdefs.h >>conftest.$ac_ext 2935cat >>conftest.$ac_ext <<_ACEOF 2936/* end confdefs.h. */ 2937 2938int 2939main () 2940{ 2941int i=0; i++; 2942 ; 2943 return 0; 2944} 2945_ACEOF 2946rm -f conftest.$ac_objext conftest$ac_exeext 2947if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2948 (eval $ac_link) 2>conftest.er1 2949 ac_status=$? 2950 grep -v '^ *+' conftest.er1 >conftest.err 2951 rm -f conftest.er1 2952 cat conftest.err >&5 2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2954 (exit $ac_status); } && 2955 { ac_try='test -z "$ac_c_werror_flag" 2956 || test ! -s conftest.err' 2957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2958 (eval $ac_try) 2>&5 2959 ac_status=$? 2960 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2961 (exit $ac_status); }; } && 2962 { ac_try='test -s conftest$ac_exeext' 2963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2964 (eval $ac_try) 2>&5 2965 ac_status=$? 2966 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2967 (exit $ac_status); }; }; then 2968 coin_opt_cflags="-O" 2969else 2970 echo "$as_me: failed program was:" >&5 2971sed 's/^/| /' conftest.$ac_ext >&5 2972 2973fi 2974rm -f conftest.err conftest.$ac_objext \ 2975 conftest$ac_exeext conftest.$ac_ext 2976 fi 2977 2978 # if PM doesn't want the warning messages, take them out 2979 if test x"$coin_skip_warn_cflags" = xyes; then 2980 coin_warn_cflags= 2981 fi 2982 2983 if test x${DBG_CFLAGS+set} != xset; then 2984 DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags" 2985 fi 2986 if test x${OPT_CFLAGS+set} != xset; then 2987 OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags" 2988 fi 2989 2990 DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS" 2991 OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS" 2992 2993 if test "$coin_debug_compile" = "true"; then 2994 CFLAGS="$DBG_CFLAGS" 2995 else 2996 CFLAGS="$OPT_CFLAGS" 2997 fi 2998else 2999 CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS" 3000 if test x${DBG_CFLAGS+set} != xset; then 3001 DBG_CFLAGS="$CFLAGS" 3002 fi 3003 if test x${OPT_CFLAGS+set} != xset; then 3004 OPT_CFLAGS="$CFLAGS" 3005 fi 3006fi 3007 3008# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include 3009if test x$COIN_PRJCT != x; then 3010 CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD" 3011fi 3012 3013# Try if CFLAGS works 3014save_CFLAGS="$CFLAGS" 3015cat >conftest.$ac_ext <<_ACEOF 3016/* confdefs.h. */ 3017_ACEOF 3018cat confdefs.h >>conftest.$ac_ext 3019cat >>conftest.$ac_ext <<_ACEOF 3020/* end confdefs.h. */ 3021 3022int 3023main () 3024{ 3025int i=0; i++; 3026 ; 3027 return 0; 3028} 3029_ACEOF 3030rm -f conftest.$ac_objext conftest$ac_exeext 3031if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3032 (eval $ac_link) 2>conftest.er1 3033 ac_status=$? 3034 grep -v '^ *+' conftest.er1 >conftest.err 3035 rm -f conftest.er1 3036 cat conftest.err >&5 3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3038 (exit $ac_status); } && 3039 { ac_try='test -z "$ac_c_werror_flag" 3040 || test ! -s conftest.err' 3041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3042 (eval $ac_try) 2>&5 3043 ac_status=$? 3044 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3045 (exit $ac_status); }; } && 3046 { ac_try='test -s conftest$ac_exeext' 3047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3048 (eval $ac_try) 2>&5 3049 ac_status=$? 3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3051 (exit $ac_status); }; }; then 3052 : 3053else 3054 echo "$as_me: failed program was:" >&5 3055sed 's/^/| /' conftest.$ac_ext >&5 3056 3057CFLAGS= 3058fi 3059rm -f conftest.err conftest.$ac_objext \ 3060 conftest$ac_exeext conftest.$ac_ext 3061if test -z "$CFLAGS"; then 3062 { echo "$as_me:$LINENO: WARNING: The value CFLAGS=\"$save_CFLAGS\" do not work. I will now just try '-O', but you might want to set CFLAGS manually." >&5 3063echo "$as_me: WARNING: The value CFLAGS=\"$save_CFLAGS\" do not work. I will now just try '-O', but you might want to set CFLAGS manually." >&2;} 3064 CFLAGS='-O' 3065 cat >conftest.$ac_ext <<_ACEOF 3066/* confdefs.h. */ 3067_ACEOF 3068cat confdefs.h >>conftest.$ac_ext 3069cat >>conftest.$ac_ext <<_ACEOF 3070/* end confdefs.h. */ 3071 3072int 3073main () 3074{ 3075int i=0; i++; 3076 ; 3077 return 0; 3078} 3079_ACEOF 3080rm -f conftest.$ac_objext conftest$ac_exeext 3081if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3082 (eval $ac_link) 2>conftest.er1 3083 ac_status=$? 3084 grep -v '^ *+' conftest.er1 >conftest.err 3085 rm -f conftest.er1 3086 cat conftest.err >&5 3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3088 (exit $ac_status); } && 3089 { ac_try='test -z "$ac_c_werror_flag" 3090 || test ! -s conftest.err' 3091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3092 (eval $ac_try) 2>&5 3093 ac_status=$? 3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3095 (exit $ac_status); }; } && 3096 { ac_try='test -s conftest$ac_exeext' 3097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3098 (eval $ac_try) 2>&5 3099 ac_status=$? 3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3101 (exit $ac_status); }; }; then 3102 : 3103else 3104 echo "$as_me: failed program was:" >&5 3105sed 's/^/| /' conftest.$ac_ext >&5 3106 3107CFLAGS= 3108fi 3109rm -f conftest.err conftest.$ac_objext \ 3110 conftest$ac_exeext conftest.$ac_ext 3111 if test -z "$CFLAGS"; then 3112 { echo "$as_me:$LINENO: WARNING: This value for CFLAGS does not work. I will continue with empty CFLAGS, but you might want to set CFLAGS manually." >&5 3113echo "$as_me: WARNING: This value for CFLAGS does not work. I will continue with empty CFLAGS, but you might want to set CFLAGS manually." >&2;} 3114 fi 3115fi 3116 3117{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5 3118echo "$as_me: C compiler options are: $CFLAGS" >&6;} 3119 3120 3121if test x"$MPICC" = x; then :; else 3122 { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5 3123echo "$as_me: Will use MPI C compiler $MPICC" >&6;} 3124 CC="$MPICC" 3125fi 3126 3127# Correct the LD variable if we are using the MS or Intel-windows compiler 3128case "$CC" in 3129 clang* ) ;; 3130 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 3131 LD=link 3132 ;; 3133esac 3134 3135ac_ext=c 3136ac_cpp='$CPP $CPPFLAGS' 3137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3139ac_compiler_gnu=$ac_cv_c_compiler_gnu 3140 3141 3142case $build in 3143 *-cygwin* | *-mingw*) 3144 if test "$enable_msvc" = yes ; then 3145 coin_f77_comps="ifort fl32 compile_f2c" 3146 else 3147 coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c" 3148 fi ;; 3149 *-*-solaris*) 3150 coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;; 3151 *-linux-gnu*) 3152 coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;; 3153 *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;; 3154 esac 3155 3156 3157 3158 3159 3160ac_ext=f 3161ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 3162ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3163ac_compiler_gnu=$ac_cv_f77_compiler_gnu 3164 3165 3166 3167 3168 3169 3170coin_has_f77=yes 3171 3172save_fflags="$FFLAGS" 3173 3174# We delete the cached value, since the test might not have been 3175# performed with our choice of compilers earlier 3176$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; } 3177 3178# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use 3179# coin_f77_comps to see if there's a program that matches one of the names. 3180# If there's no such program, F77 = unavailable. If we match the name, 3181# feed AC_PROG_F77 the same search list, just to be sure it's a functioning 3182# compiler. 3183# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps]) 3184 3185 3186{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5 3187echo "$as_me: Trying to determine Fortran compiler name" >&6;} 3188if test -n "$ac_tool_prefix"; then 3189 for ac_prog in $coin_f77_comps 3190 do 3191 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3192set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3193echo "$as_me:$LINENO: checking for $ac_word" >&5 3194echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3195if test "${ac_cv_prog_F77+set}" = set; then 3196 echo $ECHO_N "(cached) $ECHO_C" >&6 3197else 3198 if test -n "$F77"; then 3199 ac_cv_prog_F77="$F77" # Let the user override the test. 3200else 3201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3202for as_dir in $PATH 3203do 3204 IFS=$as_save_IFS 3205 test -z "$as_dir" && as_dir=. 3206 for ac_exec_ext in '' $ac_executable_extensions; do 3207 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3208 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 3209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3210 break 2 3211 fi 3212done 3213done 3214 3215fi 3216fi 3217F77=$ac_cv_prog_F77 3218if test -n "$F77"; then 3219 echo "$as_me:$LINENO: result: $F77" >&5 3220echo "${ECHO_T}$F77" >&6 3221else 3222 echo "$as_me:$LINENO: result: no" >&5 3223echo "${ECHO_T}no" >&6 3224fi 3225 3226 test -n "$F77" && break 3227 done 3228fi 3229if test -z "$F77"; then 3230 ac_ct_F77=$F77 3231 for ac_prog in $coin_f77_comps 3232do 3233 # Extract the first word of "$ac_prog", so it can be a program name with args. 3234set dummy $ac_prog; ac_word=$2 3235echo "$as_me:$LINENO: checking for $ac_word" >&5 3236echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3237if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 3238 echo $ECHO_N "(cached) $ECHO_C" >&6 3239else 3240 if test -n "$ac_ct_F77"; then 3241 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 3242else 3243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3244for as_dir in $PATH 3245do 3246 IFS=$as_save_IFS 3247 test -z "$as_dir" && as_dir=. 3248 for ac_exec_ext in '' $ac_executable_extensions; do 3249 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3250 ac_cv_prog_ac_ct_F77="$ac_prog" 3251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3252 break 2 3253 fi 3254done 3255done 3256 3257fi 3258fi 3259ac_ct_F77=$ac_cv_prog_ac_ct_F77 3260if test -n "$ac_ct_F77"; then 3261 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 3262echo "${ECHO_T}$ac_ct_F77" >&6 3263else 3264 echo "$as_me:$LINENO: result: no" >&5 3265echo "${ECHO_T}no" >&6 3266fi 3267 3268 test -n "$ac_ct_F77" && break 3269done 3270test -n "$ac_ct_F77" || ac_ct_F77="unavailable" 3271 3272 F77=$ac_ct_F77 3273fi 3274 3275 3276if test "$F77" != "unavailable" ; then 3277 ac_ext=f 3278ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 3279ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3280ac_compiler_gnu=$ac_cv_f77_compiler_gnu 3281if test -n "$ac_tool_prefix"; then 3282 for ac_prog in $coin_f77_comps 3283 do 3284 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3285set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3286echo "$as_me:$LINENO: checking for $ac_word" >&5 3287echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3288if test "${ac_cv_prog_F77+set}" = set; then 3289 echo $ECHO_N "(cached) $ECHO_C" >&6 3290else 3291 if test -n "$F77"; then 3292 ac_cv_prog_F77="$F77" # Let the user override the test. 3293else 3294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3295for as_dir in $PATH 3296do 3297 IFS=$as_save_IFS 3298 test -z "$as_dir" && as_dir=. 3299 for ac_exec_ext in '' $ac_executable_extensions; do 3300 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3301 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 3302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3303 break 2 3304 fi 3305done 3306done 3307 3308fi 3309fi 3310F77=$ac_cv_prog_F77 3311if test -n "$F77"; then 3312 echo "$as_me:$LINENO: result: $F77" >&5 3313echo "${ECHO_T}$F77" >&6 3314else 3315 echo "$as_me:$LINENO: result: no" >&5 3316echo "${ECHO_T}no" >&6 3317fi 3318 3319 test -n "$F77" && break 3320 done 3321fi 3322if test -z "$F77"; then 3323 ac_ct_F77=$F77 3324 for ac_prog in $coin_f77_comps 3325do 3326 # Extract the first word of "$ac_prog", so it can be a program name with args. 3327set dummy $ac_prog; ac_word=$2 3328echo "$as_me:$LINENO: checking for $ac_word" >&5 3329echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3330if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 3331 echo $ECHO_N "(cached) $ECHO_C" >&6 3332else 3333 if test -n "$ac_ct_F77"; then 3334 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 3335else 3336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3337for as_dir in $PATH 3338do 3339 IFS=$as_save_IFS 3340 test -z "$as_dir" && as_dir=. 3341 for ac_exec_ext in '' $ac_executable_extensions; do 3342 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3343 ac_cv_prog_ac_ct_F77="$ac_prog" 3344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3345 break 2 3346 fi 3347done 3348done 3349 3350fi 3351fi 3352ac_ct_F77=$ac_cv_prog_ac_ct_F77 3353if test -n "$ac_ct_F77"; then 3354 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 3355echo "${ECHO_T}$ac_ct_F77" >&6 3356else 3357 echo "$as_me:$LINENO: result: no" >&5 3358echo "${ECHO_T}no" >&6 3359fi 3360 3361 test -n "$ac_ct_F77" && break 3362done 3363 3364 F77=$ac_ct_F77 3365fi 3366 3367 3368# Provide some information about the compiler. 3369echo "$as_me:3369:" \ 3370 "checking for Fortran 77 compiler version" >&5 3371ac_compiler=`set X $ac_compile; echo $2` 3372{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 3373 (eval $ac_compiler --version </dev/null >&5) 2>&5 3374 ac_status=$? 3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3376 (exit $ac_status); } 3377{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 3378 (eval $ac_compiler -v </dev/null >&5) 2>&5 3379 ac_status=$? 3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3381 (exit $ac_status); } 3382{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 3383 (eval $ac_compiler -V </dev/null >&5) 2>&5 3384 ac_status=$? 3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3386 (exit $ac_status); } 3387rm -f a.out 3388 3389# If we don't use `.F' as extension, the preprocessor is not run on the 3390# input file. (Note that this only needs to work for GNU compilers.) 3391ac_save_ext=$ac_ext 3392ac_ext=F 3393echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 3394echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 3395if test "${ac_cv_f77_compiler_gnu+set}" = set; then 3396 echo $ECHO_N "(cached) $ECHO_C" >&6 3397else 3398 cat >conftest.$ac_ext <<_ACEOF 3399 program main 3400#ifndef __GNUC__ 3401 choke me 3402#endif 3403 3404 end 3405_ACEOF 3406rm -f conftest.$ac_objext 3407if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3408 (eval $ac_compile) 2>conftest.er1 3409 ac_status=$? 3410 grep -v '^ *+' conftest.er1 >conftest.err 3411 rm -f conftest.er1 3412 cat conftest.err >&5 3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3414 (exit $ac_status); } && 3415 { ac_try='test -z "$ac_f77_werror_flag" 3416 || test ! -s conftest.err' 3417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3418 (eval $ac_try) 2>&5 3419 ac_status=$? 3420 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3421 (exit $ac_status); }; } && 3422 { ac_try='test -s conftest.$ac_objext' 3423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3424 (eval $ac_try) 2>&5 3425 ac_status=$? 3426 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3427 (exit $ac_status); }; }; then 3428 ac_compiler_gnu=yes 3429else 3430 echo "$as_me: failed program was:" >&5 3431sed 's/^/| /' conftest.$ac_ext >&5 3432 3433ac_compiler_gnu=no 3434fi 3435rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3436ac_cv_f77_compiler_gnu=$ac_compiler_gnu 3437 3438fi 3439echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 3440echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 3441ac_ext=$ac_save_ext 3442ac_test_FFLAGS=${FFLAGS+set} 3443ac_save_FFLAGS=$FFLAGS 3444FFLAGS= 3445echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 3446echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 3447if test "${ac_cv_prog_f77_g+set}" = set; then 3448 echo $ECHO_N "(cached) $ECHO_C" >&6 3449else 3450 FFLAGS=-g 3451cat >conftest.$ac_ext <<_ACEOF 3452 program main 3453 3454 end 3455_ACEOF 3456rm -f conftest.$ac_objext 3457if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3458 (eval $ac_compile) 2>conftest.er1 3459 ac_status=$? 3460 grep -v '^ *+' conftest.er1 >conftest.err 3461 rm -f conftest.er1 3462 cat conftest.err >&5 3463 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3464 (exit $ac_status); } && 3465 { ac_try='test -z "$ac_f77_werror_flag" 3466 || test ! -s conftest.err' 3467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3468 (eval $ac_try) 2>&5 3469 ac_status=$? 3470 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3471 (exit $ac_status); }; } && 3472 { ac_try='test -s conftest.$ac_objext' 3473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3474 (eval $ac_try) 2>&5 3475 ac_status=$? 3476 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3477 (exit $ac_status); }; }; then 3478 ac_cv_prog_f77_g=yes 3479else 3480 echo "$as_me: failed program was:" >&5 3481sed 's/^/| /' conftest.$ac_ext >&5 3482 3483ac_cv_prog_f77_g=no 3484fi 3485rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3486 3487fi 3488echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 3489echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 3490if test "$ac_test_FFLAGS" = set; then 3491 FFLAGS=$ac_save_FFLAGS 3492elif test $ac_cv_prog_f77_g = yes; then 3493 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 3494 FFLAGS="-g -O2" 3495 else 3496 FFLAGS="-g" 3497 fi 3498else 3499 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 3500 FFLAGS="-O2" 3501 else 3502 FFLAGS= 3503 fi 3504fi 3505 3506G77=`test $ac_compiler_gnu = yes && echo yes` 3507ac_ext=f 3508ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 3509ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3510ac_compiler_gnu=$ac_cv_f77_compiler_gnu 3511 3512else 3513 { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5 3514echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;} 3515fi 3516 3517FFLAGS="$save_fflags" 3518 3519# Check if a project specific FFLAGS variable has been set 3520if test x$COIN_PRJCT != x; then 3521 eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set} 3522 if test x$coin_tmp = xset; then 3523 eval FFLAGS=\${${COIN_PRJCT}_FFLAGS} 3524 fi 3525fi 3526 3527if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then 3528 3529 coin_add_fflags= 3530 coin_opt_fflags= 3531 coin_dbg_fflags= 3532 coin_warn_fflags= 3533 3534 if test "$G77" = "yes"; then 3535 coin_opt_fflags="-O3" 3536 coin_add_fflags="-pipe" 3537 coin_dbg_fflags="-g -O0" 3538 else 3539 case $build in 3540 *-cygwin* | *-mingw*) 3541 case $F77 in 3542 ifort* | */ifort* | IFORT* | */IFORT* ) 3543 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then 3544 coin_opt_fflags='-MD -O3' 3545 coin_dbg_fflags='-MDd -debug' 3546 else 3547 coin_opt_fflags='-MT -O3' 3548 coin_dbg_fflags='-MTd -debug' 3549 fi 3550 coin_add_fflags='-fpp -nologo' 3551 ;; 3552 compile_f2c*) 3553 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then 3554 coin_opt_fflags='-MD -O2' 3555 coin_dbg_fflags='-MDd' 3556 else 3557 coin_opt_fflags='-MT -O2' 3558 coin_dbg_fflags='-MTd' 3559 fi 3560 coin_add_fflags='-nologo -wd4996' 3561 ;; 3562 esac 3563 ;; 3564 *-linux-*) 3565 case $F77 in 3566 ifc* | */ifc* | ifort* | */ifort*) 3567 coin_opt_fflags="-O3 -ip" 3568 coin_add_fflags="-cm -w90 -w95" 3569 coin_dbg_fflags="-g -CA -CB -CS" 3570 # Check if -i_dynamic is necessary (for new glibc library) 3571 FFLAGS= 3572 cat >conftest.$ac_ext <<_ACEOF 3573 program main 3574 write(*,*) 'Hello world' 3575 end 3576_ACEOF 3577rm -f conftest.$ac_objext conftest$ac_exeext 3578if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3579 (eval $ac_link) 2>conftest.er1 3580 ac_status=$? 3581 grep -v '^ *+' conftest.er1 >conftest.err 3582 rm -f conftest.er1 3583 cat conftest.err >&5 3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3585 (exit $ac_status); } && 3586 { ac_try='test -z "$ac_f77_werror_flag" 3587 || test ! -s conftest.err' 3588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3589 (eval $ac_try) 2>&5 3590 ac_status=$? 3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3592 (exit $ac_status); }; } && 3593 { ac_try='test -s conftest$ac_exeext' 3594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3595 (eval $ac_try) 2>&5 3596 ac_status=$? 3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3598 (exit $ac_status); }; }; then 3599 : 3600else 3601 echo "$as_me: failed program was:" >&5 3602sed 's/^/| /' conftest.$ac_ext >&5 3603 3604coin_add_fflags="-i_dynamic $coin_add_fflags" 3605fi 3606rm -f conftest.err conftest.$ac_objext \ 3607 conftest$ac_exeext conftest.$ac_ext 3608 ;; 3609 pgf77* | */pgf77* | pgf90* | */pgf90*) 3610 coin_opt_fflags="-fast" 3611 coin_add_fflags="-Kieee -pc 64" 3612 coin_dbg_fflags="-g" 3613 ;; 3614 esac 3615 ;; 3616 *-ibm-*) 3617 case "$F77" in 3618 xlf* | */xlf* | mpxlf* | */mpxlf* ) 3619 coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1" 3620 coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029" 3621 coin_dbg_fflags="-g -C" 3622 ;; 3623 esac 3624 ;; 3625 *-hp-*) 3626 coin_opt_fflags="+O3" 3627 coin_add_fflags="+U77" 3628 coin_dbg_fflags="-C -g" 3629 ;; 3630 *-*-solaris*) 3631 coin_opt_fflags="-O4" 3632 coin_dbg_fflags="-g" 3633 ;; 3634 *-sgi-*) 3635 coin_opt_fflags="-O5 -OPT:Olimit=0" 3636 coin_dbg_fflags="-g" 3637 ;; 3638 esac 3639 fi 3640 3641 if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then 3642 coin_dbg_fflags="-g" 3643 fi 3644 3645 if test -z "$coin_opt_fflags"; then 3646 # Try if -O option works if nothing else is set 3647 FFLAGS=-O 3648 cat >conftest.$ac_ext <<_ACEOF 3649 program main 3650 integer i 3651 end 3652_ACEOF 3653rm -f conftest.$ac_objext conftest$ac_exeext 3654if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3655 (eval $ac_link) 2>conftest.er1 3656 ac_status=$? 3657 grep -v '^ *+' conftest.er1 >conftest.err 3658 rm -f conftest.er1 3659 cat conftest.err >&5 3660 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3661 (exit $ac_status); } && 3662 { ac_try='test -z "$ac_f77_werror_flag" 3663 || test ! -s conftest.err' 3664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3665 (eval $ac_try) 2>&5 3666 ac_status=$? 3667 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3668 (exit $ac_status); }; } && 3669 { ac_try='test -s conftest$ac_exeext' 3670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3671 (eval $ac_try) 2>&5 3672 ac_status=$? 3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3674 (exit $ac_status); }; }; then 3675 coin_opt_fflags="-O" 3676else 3677 echo "$as_me: failed program was:" >&5 3678sed 's/^/| /' conftest.$ac_ext >&5 3679 3680fi 3681rm -f conftest.err conftest.$ac_objext \ 3682 conftest$ac_exeext conftest.$ac_ext 3683 fi 3684 3685 # if PM doesn't want the warning messages, take them out 3686 if test x"$coin_skip_warn_fflags" = xyes; then 3687 coin_warn_fflags= 3688 fi 3689 3690 if test x${DBG_FFLAGS+set} != xset; then 3691 DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags" 3692 fi 3693 if test x${OPT_FFLAGS+set} != xset; then 3694 OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags" 3695 fi 3696 3697 DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS" 3698 OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS" 3699 3700 if test "$coin_debug_compile" = "true"; then 3701 FFLAGS="$DBG_FFLAGS" 3702 else 3703 FFLAGS="$OPT_FFLAGS" 3704 fi 3705else 3706 FFLAGS="$FFLAGS $ADD_FFLAGS" 3707 if test x${DBG_FFLAGS+set} != xset; then 3708 DBG_FFLAGS="$FFLAGS" 3709 fi 3710 if test x${OPT_FFLAGS+set} != xset; then 3711 OPT_FFLAGS="$FFLAGS" 3712 fi 3713fi 3714 3715# Try if FFLAGS works 3716if test "$F77" != "unavailable" ; then 3717 orig_FFLAGS="FFLAGS" 3718 cat >conftest.$ac_ext <<_ACEOF 3719 program main 3720 integer i 3721 end 3722_ACEOF 3723rm -f conftest.$ac_objext conftest$ac_exeext 3724if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3725 (eval $ac_link) 2>conftest.er1 3726 ac_status=$? 3727 grep -v '^ *+' conftest.er1 >conftest.err 3728 rm -f conftest.er1 3729 cat conftest.err >&5 3730 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3731 (exit $ac_status); } && 3732 { ac_try='test -z "$ac_f77_werror_flag" 3733 || test ! -s conftest.err' 3734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3735 (eval $ac_try) 2>&5 3736 ac_status=$? 3737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3738 (exit $ac_status); }; } && 3739 { ac_try='test -s conftest$ac_exeext' 3740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3741 (eval $ac_try) 2>&5 3742 ac_status=$? 3743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3744 (exit $ac_status); }; }; then 3745 : 3746else 3747 echo "$as_me: failed program was:" >&5 3748sed 's/^/| /' conftest.$ac_ext >&5 3749 3750FFLAGS= 3751fi 3752rm -f conftest.err conftest.$ac_objext \ 3753 conftest$ac_exeext conftest.$ac_ext 3754 if test -z "$FFLAGS"; then 3755 { echo "$as_me:$LINENO: WARNING: The flags FFLAGS=\"$orig_FFLAGS\" do not work. I will now just try '-O', but you might want to set FFLAGS manually." >&5 3756echo "$as_me: WARNING: The flags FFLAGS=\"$orig_FFLAGS\" do not work. I will now just try '-O', but you might want to set FFLAGS manually." >&2;} 3757 FFLAGS='-O' 3758 cat >conftest.$ac_ext <<_ACEOF 3759 program main 3760 integer i 3761 end 3762_ACEOF 3763rm -f conftest.$ac_objext conftest$ac_exeext 3764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3765 (eval $ac_link) 2>conftest.er1 3766 ac_status=$? 3767 grep -v '^ *+' conftest.er1 >conftest.err 3768 rm -f conftest.er1 3769 cat conftest.err >&5 3770 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3771 (exit $ac_status); } && 3772 { ac_try='test -z "$ac_f77_werror_flag" 3773 || test ! -s conftest.err' 3774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3775 (eval $ac_try) 2>&5 3776 ac_status=$? 3777 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3778 (exit $ac_status); }; } && 3779 { ac_try='test -s conftest$ac_exeext' 3780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3781 (eval $ac_try) 2>&5 3782 ac_status=$? 3783 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3784 (exit $ac_status); }; }; then 3785 : 3786else 3787 echo "$as_me: failed program was:" >&5 3788sed 's/^/| /' conftest.$ac_ext >&5 3789 3790FFLAGS= 3791fi 3792rm -f conftest.err conftest.$ac_objext \ 3793 conftest$ac_exeext conftest.$ac_ext 3794 if test -z "$FFLAGS"; then 3795 { echo "$as_me:$LINENO: WARNING: The flags FFLAGS=-O do not work. I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&5 3796echo "$as_me: WARNING: The flags FFLAGS=-O do not work. I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&2;} 3797 fi 3798 fi 3799fi 3800 3801{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5 3802echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;} 3803 3804 3805if test x"$MPIF77" = x; then :; else 3806 { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5 3807echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;} 3808 F77="$MPIF77" 3809fi 3810 3811# correct the LD variable if we use the intel fortran compiler in windows 3812case $build in 3813 *-cygwin* | *-mingw*) 3814 case "$F77" in 3815 ifort* | */ifort* | IFORT* | */IFORT*) 3816 LD=link 3817 ;; 3818 esac 3819 ;; 3820esac 3821 3822ac_ext=c 3823ac_cpp='$CPP $CPPFLAGS' 3824ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3825ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3826ac_compiler_gnu=$ac_cv_c_compiler_gnu 3827 3828 3829 3830# Get the linker flags (FLIBS) that are required for linking against this blas library 3831 3832# get FLIBS 3833ac_ext=f 3834ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 3835ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3836ac_compiler_gnu=$ac_cv_f77_compiler_gnu 3837echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5 3838echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6 3839if test "${ac_cv_prog_f77_v+set}" = set; then 3840 echo $ECHO_N "(cached) $ECHO_C" >&6 3841else 3842 cat >conftest.$ac_ext <<_ACEOF 3843 program main 3844 3845 end 3846_ACEOF 3847rm -f conftest.$ac_objext 3848if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3849 (eval $ac_compile) 2>conftest.er1 3850 ac_status=$? 3851 grep -v '^ *+' conftest.er1 >conftest.err 3852 rm -f conftest.er1 3853 cat conftest.err >&5 3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3855 (exit $ac_status); } && 3856 { ac_try='test -z "$ac_f77_werror_flag" 3857 || test ! -s conftest.err' 3858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3859 (eval $ac_try) 2>&5 3860 ac_status=$? 3861 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3862 (exit $ac_status); }; } && 3863 { ac_try='test -s conftest.$ac_objext' 3864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3865 (eval $ac_try) 2>&5 3866 ac_status=$? 3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3868 (exit $ac_status); }; }; then 3869 ac_cv_prog_f77_v= 3870# Try some options frequently used verbose output 3871for ac_verb in -v -verbose --verbose -V -\#\#\#; do 3872 cat >conftest.$ac_ext <<_ACEOF 3873 program main 3874 3875 end 3876_ACEOF 3877 3878# Compile and link our simple test program by passing a flag (argument 3879# 1 to this macro) to the Fortran compiler in order to get 3880# "verbose" output that we can then parse for the Fortran linker 3881# flags. 3882ac_save_FFLAGS=$FFLAGS 3883FFLAGS="$FFLAGS $ac_verb" 3884(eval echo $as_me:3884: \"$ac_link\") >&5 3885ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` 3886echo "$ac_f77_v_output" >&5 3887FFLAGS=$ac_save_FFLAGS 3888 3889rm -f conftest* 3890 3891# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where 3892# /foo, /bar, and /baz are search directories for the Fortran linker. 3893# Here, we change these into -L/foo -L/bar -L/baz (and put it first): 3894ac_f77_v_output="`echo $ac_f77_v_output | 3895 grep 'LPATH is:' | 3896 sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output" 3897 3898case $ac_f77_v_output in 3899 # If we are using xlf then replace all the commas with spaces. 3900 *xlfentry*) 3901 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;; 3902 3903 # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted 3904 # $LIBS confuse us, and the libraries appear later in the output anyway). 3905 *mGLOB_options_string*) 3906 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;; 3907 3908 # If we are using Cray Fortran then delete quotes. 3909 # Use "\"" instead of '"' for font-lock-mode. 3910 # FIXME: a more general fix for quoted arguments with spaces? 3911 *cft90*) 3912 ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;; 3913esac 3914 3915 3916 # look for -l* and *.a constructs in the output 3917 for ac_arg in $ac_f77_v_output; do 3918 case $ac_arg in 3919 [\\/]*.a | ?:[\\/]*.a | -[lLRu]*) 3920 ac_cv_prog_f77_v=$ac_verb 3921 break 2 ;; 3922 esac 3923 done 3924done 3925if test -z "$ac_cv_prog_f77_v"; then 3926 { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5 3927echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;} 3928fi 3929else 3930 echo "$as_me: failed program was:" >&5 3931sed 's/^/| /' conftest.$ac_ext >&5 3932 3933{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5 3934echo "$as_me: WARNING: compilation failed" >&2;} 3935fi 3936rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3937 3938fi 3939echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5 3940echo "${ECHO_T}$ac_cv_prog_f77_v" >&6 3941echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5 3942echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6 3943if test "${ac_cv_f77_libs+set}" = set; then 3944 echo $ECHO_N "(cached) $ECHO_C" >&6 3945else 3946 if test "x$FLIBS" != "x"; then 3947 ac_cv_f77_libs="$FLIBS" # Let the user override the test. 3948else 3949 3950cat >conftest.$ac_ext <<_ACEOF 3951 program main 3952 3953 end 3954_ACEOF 3955 3956# Compile and link our simple test program by passing a flag (argument 3957# 1 to this macro) to the Fortran compiler in order to get 3958# "verbose" output that we can then parse for the Fortran linker 3959# flags. 3960ac_save_FFLAGS=$FFLAGS 3961FFLAGS="$FFLAGS $ac_cv_prog_f77_v" 3962(eval echo $as_me:3962: \"$ac_link\") >&5 3963ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` 3964echo "$ac_f77_v_output" >&5 3965FFLAGS=$ac_save_FFLAGS 3966 3967rm -f conftest* 3968 3969# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where 3970# /foo, /bar, and /baz are search directories for the Fortran linker. 3971# Here, we change these into -L/foo -L/bar -L/baz (and put it first): 3972ac_f77_v_output="`echo $ac_f77_v_output | 3973 grep 'LPATH is:' | 3974 sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output" 3975 3976case $ac_f77_v_output in 3977 # If we are using xlf then replace all the commas with spaces. 3978 *xlfentry*) 3979 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;; 3980 3981 # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted 3982 # $LIBS confuse us, and the libraries appear later in the output anyway). 3983 *mGLOB_options_string*) 3984 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;; 3985 3986 # If we are using Cray Fortran then delete quotes. 3987 # Use "\"" instead of '"' for font-lock-mode. 3988 # FIXME: a more general fix for quoted arguments with spaces? 3989 *cft90*) 3990 ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;; 3991esac 3992 3993 3994 3995ac_cv_f77_libs= 3996 3997# Save positional arguments (if any) 3998ac_save_positional="$@" 3999 4000set X $ac_f77_v_output 4001while test $# != 1; do 4002 shift 4003 ac_arg=$1 4004 case $ac_arg in 4005 [\\/]*.a | ?:[\\/]*.a) 4006 ac_exists=false 4007 for ac_i in $ac_cv_f77_libs; do 4008 if test x"$ac_arg" = x"$ac_i"; then 4009 ac_exists=true 4010 break 4011 fi 4012 done 4013 4014 if test x"$ac_exists" = xtrue; then 4015 : 4016else 4017 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" 4018fi 4019 4020 ;; 4021 -bI:*) 4022 ac_exists=false 4023 for ac_i in $ac_cv_f77_libs; do 4024 if test x"$ac_arg" = x"$ac_i"; then 4025 ac_exists=true 4026 break 4027 fi 4028 done 4029 4030 if test x"$ac_exists" = xtrue; then 4031 : 4032else 4033 if test "$ac_compiler_gnu" = yes; then 4034 for ac_link_opt in $ac_arg; do 4035 ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt" 4036 done 4037else 4038 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" 4039fi 4040fi 4041 4042 ;; 4043 # Ignore these flags. 4044 -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*) 4045 ;; 4046 -lkernel32) 4047 test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" 4048 ;; 4049 -[LRuY]) 4050 # These flags, when seen by themselves, take an argument. 4051 # We remove the space between option and argument and re-iterate 4052 # unless we find an empty arg or a new option (starting with -) 4053 case $2 in 4054 "" | -*);; 4055 *) 4056 ac_arg="$ac_arg$2" 4057 shift; shift 4058 set X $ac_arg "$@" 4059 ;; 4060 esac 4061 ;; 4062 -YP,*) 4063 for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do 4064 ac_exists=false 4065 for ac_i in $ac_cv_f77_libs; do 4066 if test x"$ac_j" = x"$ac_i"; then 4067 ac_exists=true 4068 break 4069 fi 4070 done 4071 4072 if test x"$ac_exists" = xtrue; then 4073 : 4074else 4075 ac_arg="$ac_arg $ac_j" 4076 ac_cv_f77_libs="$ac_cv_f77_libs $ac_j" 4077fi 4078 4079 done 4080 ;; 4081 -[lLR]*) 4082 ac_exists=false 4083 for ac_i in $ac_cv_f77_libs; do 4084 if test x"$ac_arg" = x"$ac_i"; then 4085 ac_exists=true 4086 break 4087 fi 4088 done 4089 4090 if test x"$ac_exists" = xtrue; then 4091 : 4092else 4093 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" 4094fi 4095 4096 ;; 4097 # Ignore everything else. 4098 esac 4099done 4100# restore positional arguments 4101set X $ac_save_positional; shift 4102 4103# We only consider "LD_RUN_PATH" on Solaris systems. If this is seen, 4104# then we insist that the "run path" must be an absolute path (i.e. it 4105# must begin with a "/"). 4106case `(uname -sr) 2>/dev/null` in 4107 "SunOS 5"*) 4108 ac_ld_run_path=`echo $ac_f77_v_output | 4109 sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'` 4110 test "x$ac_ld_run_path" != x && 4111 if test "$ac_compiler_gnu" = yes; then 4112 for ac_link_opt in $ac_ld_run_path; do 4113 ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt" 4114 done 4115else 4116 ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path" 4117fi 4118 ;; 4119esac 4120fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x" 4121 4122fi 4123echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5 4124echo "${ECHO_T}$ac_cv_f77_libs" >&6 4125FLIBS="$ac_cv_f77_libs" 4126 4127 4128ac_ext=c 4129ac_cpp='$CPP $CPPFLAGS' 4130ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4131ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4132ac_compiler_gnu=$ac_cv_c_compiler_gnu 4133 4134orig_FLIBS="$FLIBS" 4135 4136# If FLIBS has been set by the user, we just restore its value here 4137if test x"$save_FLIBS" != x; then 4138 FLIBS="$save_FLIBS" 4139else 4140 # This is to correct a missing exclusion in autoconf 2.59 4141 if test x"$FLIBS" != x; then 4142 my_flibs= 4143 for flag in $FLIBS; do 4144 case $flag in 4145 -lcrt*.o) ;; 4146 -lcygwin) ;; 4147 -lgcc*) ;; 4148 *) my_flibs="$my_flibs $flag" ;; 4149 esac 4150 done 4151 FLIBS="$my_flibs" 4152 fi 4153 4154 case $build in 4155 # The following is a fix to define FLIBS for ifort on Windows 4156 # In its original version, it linked in libifcorert.lib or libifcorertd.lib on Windows/ifort explicitly. 4157 # However, this seem to create a dependency on libifcorert.dll (or libifcorertd.dll) in the executables. 4158 # This is seem to be unnecessary, libifcorert(d).lib has been removed from the link line. 4159 # Further, excluding libc.lib from the default libs seemed to be necessary only for VS < 8. 4160 # Since the corresponding flag seems to make more trouble than it avoids, it has been removed now. 4161 *-cygwin* | *-mingw*) 4162 case "$F77" in 4163# ifort* | */ifort* | IFORT* | */IFORT*) 4164# FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib" 4165# if "$coin_debug_compile" = true ; then 4166# FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmt.lib" 4167# else 4168# FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmtd.lib" 4169# fi 4170# ;; 4171 compile_f2c*) 4172 FLIBS=`$F77 -FLIBS` ;; 4173 esac;; 4174 *-hp-*) 4175 FLIBS="$FLIBS -lm";; 4176 *-ibm-*) 4177 FLIBS=`echo $FLIBS | sed 's/-lc)/-lc/g'` ;; 4178 *-linux-*) 4179 case "$F77" in 4180 pgf77* | */pgf77* | pgf90* | */pgf90*) 4181# ask linker to go through the archives multiple times 4182# (the Fortran compiler seems to do that automatically...) 4183 FLIBS="-Wl,--start-group $FLIBS -Wl,--end-group" ;; 4184 esac 4185 esac 4186 ac_cv_f77_libs="$FLIBS" 4187fi 4188 4189if test "x$orig_FLIBS" != "x$FLIBS" ; then 4190 { echo "$as_me:$LINENO: Corrected Fortran libraries: $FLIBS" >&5 4191echo "$as_me: Corrected Fortran libraries: $FLIBS" >&6;} 4192fi 4193 4194ac_ext=f 4195ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 4196ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4197ac_compiler_gnu=$ac_cv_f77_compiler_gnu 4198 4199echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5 4200echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6 4201if test "${ac_cv_f77_dummy_main+set}" = set; then 4202 echo $ECHO_N "(cached) $ECHO_C" >&6 4203else 4204 ac_f77_dm_save_LIBS=$LIBS 4205 LIBS="$LIBS $FLIBS" 4206 ac_fortran_dm_var=F77_DUMMY_MAIN 4207 ac_ext=c 4208ac_cpp='$CPP $CPPFLAGS' 4209ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4210ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4211ac_compiler_gnu=$ac_cv_c_compiler_gnu 4212 4213 # First, try linking without a dummy main: 4214 cat >conftest.$ac_ext <<_ACEOF 4215/* confdefs.h. */ 4216_ACEOF 4217cat confdefs.h >>conftest.$ac_ext 4218cat >>conftest.$ac_ext <<_ACEOF 4219/* end confdefs.h. */ 4220 4221#ifdef F77_DUMMY_MAIN 4222 4223# ifdef __cplusplus 4224 extern "C" 4225# endif 4226 int F77_DUMMY_MAIN() { return 1; } 4227 4228#endif 4229int 4230main () 4231{ 4232 4233 ; 4234 return 0; 4235} 4236_ACEOF 4237rm -f conftest.$ac_objext conftest$ac_exeext 4238if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4239 (eval $ac_link) 2>conftest.er1 4240 ac_status=$? 4241 grep -v '^ *+' conftest.er1 >conftest.err 4242 rm -f conftest.er1 4243 cat conftest.err >&5 4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4245 (exit $ac_status); } && 4246 { ac_try='test -z "$ac_c_werror_flag" 4247 || test ! -s conftest.err' 4248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4249 (eval $ac_try) 2>&5 4250 ac_status=$? 4251 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4252 (exit $ac_status); }; } && 4253 { ac_try='test -s conftest$ac_exeext' 4254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4255 (eval $ac_try) 2>&5 4256 ac_status=$? 4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4258 (exit $ac_status); }; }; then 4259 ac_cv_fortran_dummy_main=none 4260else 4261 echo "$as_me: failed program was:" >&5 4262sed 's/^/| /' conftest.$ac_ext >&5 4263 4264ac_cv_fortran_dummy_main=unknown 4265fi 4266rm -f conftest.err conftest.$ac_objext \ 4267 conftest$ac_exeext conftest.$ac_ext 4268 4269 if test $ac_cv_fortran_dummy_main = unknown; then 4270 for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do 4271 cat >conftest.$ac_ext <<_ACEOF 4272/* confdefs.h. */ 4273_ACEOF 4274cat confdefs.h >>conftest.$ac_ext 4275cat >>conftest.$ac_ext <<_ACEOF 4276/* end confdefs.h. */ 4277#define $ac_fortran_dm_var $ac_func 4278#ifdef F77_DUMMY_MAIN 4279 4280# ifdef __cplusplus 4281 extern "C" 4282# endif 4283 int F77_DUMMY_MAIN() { return 1; } 4284 4285#endif 4286int 4287main () 4288{ 4289 4290 ; 4291 return 0; 4292} 4293_ACEOF 4294rm -f conftest.$ac_objext conftest$ac_exeext 4295if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4296 (eval $ac_link) 2>conftest.er1 4297 ac_status=$? 4298 grep -v '^ *+' conftest.er1 >conftest.err 4299 rm -f conftest.er1 4300 cat conftest.err >&5 4301 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4302 (exit $ac_status); } && 4303 { ac_try='test -z "$ac_c_werror_flag" 4304 || test ! -s conftest.err' 4305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4306 (eval $ac_try) 2>&5 4307 ac_status=$? 4308 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4309 (exit $ac_status); }; } && 4310 { ac_try='test -s conftest$ac_exeext' 4311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4312 (eval $ac_try) 2>&5 4313 ac_status=$? 4314 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4315 (exit $ac_status); }; }; then 4316 ac_cv_fortran_dummy_main=$ac_func; break 4317else 4318 echo "$as_me: failed program was:" >&5 4319sed 's/^/| /' conftest.$ac_ext >&5 4320 4321fi 4322rm -f conftest.err conftest.$ac_objext \ 4323 conftest$ac_exeext conftest.$ac_ext 4324 done 4325 fi 4326 ac_ext=f 4327ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 4328ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4329ac_compiler_gnu=$ac_cv_f77_compiler_gnu 4330 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main 4331 rm -f conftest* 4332 LIBS=$ac_f77_dm_save_LIBS 4333 4334fi 4335echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5 4336echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6 4337F77_DUMMY_MAIN=$ac_cv_f77_dummy_main 4338if test "$F77_DUMMY_MAIN" != unknown; then 4339 if test $F77_DUMMY_MAIN != none; then 4340 4341cat >>confdefs.h <<_ACEOF 4342#define F77_DUMMY_MAIN $F77_DUMMY_MAIN 4343_ACEOF 4344 4345 if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then 4346 4347cat >>confdefs.h <<\_ACEOF 4348#define FC_DUMMY_MAIN_EQ_F77 1 4349_ACEOF 4350 4351 fi 4352fi 4353else 4354 { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails 4355See \`config.log' for more details." >&5 4356echo "$as_me: error: linking to Fortran libraries from C fails 4357See \`config.log' for more details." >&2;} 4358 { (exit 1); exit 1; }; } 4359fi 4360 4361 4362ac_ext=f 4363ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 4364ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4365ac_compiler_gnu=$ac_cv_f77_compiler_gnu 4366 4367ac_ext=f 4368ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 4369ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4370ac_compiler_gnu=$ac_cv_f77_compiler_gnu 4371echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5 4372echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6 4373if test "${ac_cv_f77_mangling+set}" = set; then 4374 echo $ECHO_N "(cached) $ECHO_C" >&6 4375else 4376 cat >conftest.$ac_ext <<_ACEOF 4377 subroutine foobar() 4378 return 4379 end 4380 subroutine foo_bar() 4381 return 4382 end 4383_ACEOF 4384rm -f conftest.$ac_objext 4385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4386 (eval $ac_compile) 2>conftest.er1 4387 ac_status=$? 4388 grep -v '^ *+' conftest.er1 >conftest.err 4389 rm -f conftest.er1 4390 cat conftest.err >&5 4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4392 (exit $ac_status); } && 4393 { ac_try='test -z "$ac_f77_werror_flag" 4394 || test ! -s conftest.err' 4395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4396 (eval $ac_try) 2>&5 4397 ac_status=$? 4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4399 (exit $ac_status); }; } && 4400 { ac_try='test -s conftest.$ac_objext' 4401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4402 (eval $ac_try) 2>&5 4403 ac_status=$? 4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4405 (exit $ac_status); }; }; then 4406 mv conftest.$ac_objext cfortran_test.$ac_objext 4407 4408 ac_save_LIBS=$LIBS 4409 LIBS="cfortran_test.$ac_objext $LIBS $FLIBS" 4410 4411 ac_ext=c 4412ac_cpp='$CPP $CPPFLAGS' 4413ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4414ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4415ac_compiler_gnu=$ac_cv_c_compiler_gnu 4416 ac_success=no 4417 for ac_foobar in foobar FOOBAR; do 4418 for ac_underscore in "" "_"; do 4419 ac_func="$ac_foobar$ac_underscore" 4420 cat >conftest.$ac_ext <<_ACEOF 4421/* confdefs.h. */ 4422_ACEOF 4423cat confdefs.h >>conftest.$ac_ext 4424cat >>conftest.$ac_ext <<_ACEOF 4425/* end confdefs.h. */ 4426 4427/* Override any gcc2 internal prototype to avoid an error. */ 4428#ifdef __cplusplus 4429extern "C" 4430#endif 4431/* We use char because int might match the return type of a gcc2 4432 builtin and then its argument prototype would still apply. */ 4433char $ac_func (); 4434#ifdef F77_DUMMY_MAIN 4435 4436# ifdef __cplusplus 4437 extern "C" 4438# endif 4439 int F77_DUMMY_MAIN() { return 1; } 4440 4441#endif 4442int 4443main () 4444{ 4445$ac_func (); 4446 ; 4447 return 0; 4448} 4449_ACEOF 4450rm -f conftest.$ac_objext conftest$ac_exeext 4451if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4452 (eval $ac_link) 2>conftest.er1 4453 ac_status=$? 4454 grep -v '^ *+' conftest.er1 >conftest.err 4455 rm -f conftest.er1 4456 cat conftest.err >&5 4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4458 (exit $ac_status); } && 4459 { ac_try='test -z "$ac_c_werror_flag" 4460 || test ! -s conftest.err' 4461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4462 (eval $ac_try) 2>&5 4463 ac_status=$? 4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4465 (exit $ac_status); }; } && 4466 { ac_try='test -s conftest$ac_exeext' 4467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4468 (eval $ac_try) 2>&5 4469 ac_status=$? 4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4471 (exit $ac_status); }; }; then 4472 ac_success=yes; break 2 4473else 4474 echo "$as_me: failed program was:" >&5 4475sed 's/^/| /' conftest.$ac_ext >&5 4476 4477fi 4478rm -f conftest.err conftest.$ac_objext \ 4479 conftest$ac_exeext conftest.$ac_ext 4480 done 4481 done 4482 ac_ext=f 4483ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 4484ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4485ac_compiler_gnu=$ac_cv_f77_compiler_gnu 4486 4487 if test "$ac_success" = "yes"; then 4488 case $ac_foobar in 4489 foobar) 4490 ac_case=lower 4491 ac_foo_bar=foo_bar 4492 ;; 4493 FOOBAR) 4494 ac_case=upper 4495 ac_foo_bar=FOO_BAR 4496 ;; 4497 esac 4498 4499 ac_ext=c 4500ac_cpp='$CPP $CPPFLAGS' 4501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4503ac_compiler_gnu=$ac_cv_c_compiler_gnu 4504 ac_success_extra=no 4505 for ac_extra in "" "_"; do 4506 ac_func="$ac_foo_bar$ac_underscore$ac_extra" 4507 cat >conftest.$ac_ext <<_ACEOF 4508/* confdefs.h. */ 4509_ACEOF 4510cat confdefs.h >>conftest.$ac_ext 4511cat >>conftest.$ac_ext <<_ACEOF 4512/* end confdefs.h. */ 4513 4514/* Override any gcc2 internal prototype to avoid an error. */ 4515#ifdef __cplusplus 4516extern "C" 4517#endif 4518/* We use char because int might match the return type of a gcc2 4519 builtin and then its argument prototype would still apply. */ 4520char $ac_func (); 4521#ifdef F77_DUMMY_MAIN 4522 4523# ifdef __cplusplus 4524 extern "C" 4525# endif 4526 int F77_DUMMY_MAIN() { return 1; } 4527 4528#endif 4529int 4530main () 4531{ 4532$ac_func (); 4533 ; 4534 return 0; 4535} 4536_ACEOF 4537rm -f conftest.$ac_objext conftest$ac_exeext 4538if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4539 (eval $ac_link) 2>conftest.er1 4540 ac_status=$? 4541 grep -v '^ *+' conftest.er1 >conftest.err 4542 rm -f conftest.er1 4543 cat conftest.err >&5 4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4545 (exit $ac_status); } && 4546 { ac_try='test -z "$ac_c_werror_flag" 4547 || test ! -s conftest.err' 4548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4549 (eval $ac_try) 2>&5 4550 ac_status=$? 4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4552 (exit $ac_status); }; } && 4553 { ac_try='test -s conftest$ac_exeext' 4554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4555 (eval $ac_try) 2>&5 4556 ac_status=$? 4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4558 (exit $ac_status); }; }; then 4559 ac_success_extra=yes; break 4560else 4561 echo "$as_me: failed program was:" >&5 4562sed 's/^/| /' conftest.$ac_ext >&5 4563 4564fi 4565rm -f conftest.err conftest.$ac_objext \ 4566 conftest$ac_exeext conftest.$ac_ext 4567 done 4568 ac_ext=f 4569ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 4570ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4571ac_compiler_gnu=$ac_cv_f77_compiler_gnu 4572 4573 if test "$ac_success_extra" = "yes"; then 4574 ac_cv_f77_mangling="$ac_case case" 4575 if test -z "$ac_underscore"; then 4576 ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore" 4577 else 4578 ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore" 4579 fi 4580 if test -z "$ac_extra"; then 4581 ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore" 4582 else 4583 ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore" 4584 fi 4585 else 4586 ac_cv_f77_mangling="unknown" 4587 fi 4588 else 4589 ac_cv_f77_mangling="unknown" 4590 fi 4591 4592 LIBS=$ac_save_LIBS 4593 rm -f cfortran_test* conftest* 4594else 4595 echo "$as_me: failed program was:" >&5 4596sed 's/^/| /' conftest.$ac_ext >&5 4597 4598{ { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program 4599See \`config.log' for more details." >&5 4600echo "$as_me: error: cannot compile a simple Fortran program 4601See \`config.log' for more details." >&2;} 4602 { (exit 1); exit 1; }; } 4603fi 4604rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4605 4606fi 4607echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5 4608echo "${ECHO_T}$ac_cv_f77_mangling" >&6 4609 4610ac_ext=f 4611ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 4612ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4613ac_compiler_gnu=$ac_cv_f77_compiler_gnu 4614 4615 4616ac_ext=f 4617ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 4618ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4619ac_compiler_gnu=$ac_cv_f77_compiler_gnu 4620 4621ac_ext=f 4622ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 4623ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4624ac_compiler_gnu=$ac_cv_f77_compiler_gnu 4625 4626 4627case $ac_cv_f77_mangling in 4628 "lower case, no underscore, no extra underscore") 4629 cat >>confdefs.h <<\_ACEOF 4630#define F77_FUNC(name,NAME) name 4631_ACEOF 4632 4633 cat >>confdefs.h <<\_ACEOF 4634#define F77_FUNC_(name,NAME) name 4635_ACEOF 4636 ;; 4637 "lower case, no underscore, extra underscore") 4638 cat >>confdefs.h <<\_ACEOF 4639#define F77_FUNC(name,NAME) name 4640_ACEOF 4641 4642 cat >>confdefs.h <<\_ACEOF 4643#define F77_FUNC_(name,NAME) name ## _ 4644_ACEOF 4645 ;; 4646 "lower case, underscore, no extra underscore") 4647 cat >>confdefs.h <<\_ACEOF 4648#define F77_FUNC(name,NAME) name ## _ 4649_ACEOF 4650 4651 cat >>confdefs.h <<\_ACEOF 4652#define F77_FUNC_(name,NAME) name ## _ 4653_ACEOF 4654 ;; 4655 "lower case, underscore, extra underscore") 4656 cat >>confdefs.h <<\_ACEOF 4657#define F77_FUNC(name,NAME) name ## _ 4658_ACEOF 4659 4660 cat >>confdefs.h <<\_ACEOF 4661#define F77_FUNC_(name,NAME) name ## __ 4662_ACEOF 4663 ;; 4664 "upper case, no underscore, no extra underscore") 4665 cat >>confdefs.h <<\_ACEOF 4666#define F77_FUNC(name,NAME) NAME 4667_ACEOF 4668 4669 cat >>confdefs.h <<\_ACEOF 4670#define F77_FUNC_(name,NAME) NAME 4671_ACEOF 4672 ;; 4673 "upper case, no underscore, extra underscore") 4674 cat >>confdefs.h <<\_ACEOF 4675#define F77_FUNC(name,NAME) NAME 4676_ACEOF 4677 4678 cat >>confdefs.h <<\_ACEOF 4679#define F77_FUNC_(name,NAME) NAME ## _ 4680_ACEOF 4681 ;; 4682 "upper case, underscore, no extra underscore") 4683 cat >>confdefs.h <<\_ACEOF 4684#define F77_FUNC(name,NAME) NAME ## _ 4685_ACEOF 4686 4687 cat >>confdefs.h <<\_ACEOF 4688#define F77_FUNC_(name,NAME) NAME ## _ 4689_ACEOF 4690 ;; 4691 "upper case, underscore, extra underscore") 4692 cat >>confdefs.h <<\_ACEOF 4693#define F77_FUNC(name,NAME) NAME ## _ 4694_ACEOF 4695 4696 cat >>confdefs.h <<\_ACEOF 4697#define F77_FUNC_(name,NAME) NAME ## __ 4698_ACEOF 4699 ;; 4700 *) 4701 { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5 4702echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;} 4703 ;; 4704esac 4705 4706ac_ext=f 4707ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 4708ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4709ac_compiler_gnu=$ac_cv_f77_compiler_gnu 4710 4711ac_ext=c 4712ac_cpp='$CPP $CPPFLAGS' 4713ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4714ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4715ac_compiler_gnu=$ac_cv_c_compiler_gnu 4716 4717 4718 4719 4720# Add FLIBS to BLAS_PCLIBS, so that they get into the .pc files 4721BLAS_PCLIBS="$FLIBS" 4722 4723 4724# Check if pkg-config is available (to setup addlibs file) 4725 4726 4727# Check whether --enable-pkg-config or --disable-pkg-config was given. 4728if test "${enable_pkg_config+set}" = set; then 4729 enableval="$enable_pkg_config" 4730 use_pkgconfig="$enableval" 4731else 4732 if test x$coin_cc_is_cl = xtrue; then 4733 use_pkgconfig=no 4734 else 4735 use_pkgconfig=yes 4736 fi 4737fi; 4738 4739if test $use_pkgconfig = yes ; then 4740 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4741 if test -n "$ac_tool_prefix"; then 4742 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4743set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4744echo "$as_me:$LINENO: checking for $ac_word" >&5 4745echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4746if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then 4747 echo $ECHO_N "(cached) $ECHO_C" >&6 4748else 4749 if test -n "$PKG_CONFIG"; then 4750 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test. 4751else 4752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4753for as_dir in $PATH 4754do 4755 IFS=$as_save_IFS 4756 test -z "$as_dir" && as_dir=. 4757 for ac_exec_ext in '' $ac_executable_extensions; do 4758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4759 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config" 4760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4761 break 2 4762 fi 4763done 4764done 4765 4766fi 4767fi 4768PKG_CONFIG=$ac_cv_prog_PKG_CONFIG 4769if test -n "$PKG_CONFIG"; then 4770 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 4771echo "${ECHO_T}$PKG_CONFIG" >&6 4772else 4773 echo "$as_me:$LINENO: result: no" >&5 4774echo "${ECHO_T}no" >&6 4775fi 4776 4777fi 4778if test -z "$ac_cv_prog_PKG_CONFIG"; then 4779 ac_ct_PKG_CONFIG=$PKG_CONFIG 4780 # Extract the first word of "pkg-config", so it can be a program name with args. 4781set dummy pkg-config; ac_word=$2 4782echo "$as_me:$LINENO: checking for $ac_word" >&5 4783echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4784if test "${ac_cv_prog_ac_ct_PKG_CONFIG+set}" = set; then 4785 echo $ECHO_N "(cached) $ECHO_C" >&6 4786else 4787 if test -n "$ac_ct_PKG_CONFIG"; then 4788 ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test. 4789else 4790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4791for as_dir in $PATH 4792do 4793 IFS=$as_save_IFS 4794 test -z "$as_dir" && as_dir=. 4795 for ac_exec_ext in '' $ac_executable_extensions; do 4796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4797 ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config" 4798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4799 break 2 4800 fi 4801done 4802done 4803 4804fi 4805fi 4806ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG 4807if test -n "$ac_ct_PKG_CONFIG"; then 4808 echo "$as_me:$LINENO: result: $ac_ct_PKG_CONFIG" >&5 4809echo "${ECHO_T}$ac_ct_PKG_CONFIG" >&6 4810else 4811 echo "$as_me:$LINENO: result: no" >&5 4812echo "${ECHO_T}no" >&6 4813fi 4814 4815 PKG_CONFIG=$ac_ct_PKG_CONFIG 4816else 4817 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG" 4818fi 4819 4820 fi 4821 if test -n "$PKG_CONFIG"; then 4822 _pkg_min_version=0.16.0 4823 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 4824echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6 4825 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4826 echo "$as_me:$LINENO: result: yes" >&5 4827echo "${ECHO_T}yes" >&6 4828 else 4829 echo "$as_me:$LINENO: result: no" >&5 4830echo "${ECHO_T}no" >&6 4831 PKG_CONFIG="" 4832 fi 4833 fi 4834 4835 # check if pkg-config supports the short-errors flag 4836 if test -n "$PKG_CONFIG" && \ 4837 $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 4838 pkg_short_errors=" --short-errors " 4839 else 4840 pkg_short_errors="" 4841 fi 4842fi 4843 4844 4845 4846if test -n "$PKG_CONFIG"; then 4847 COIN_HAS_PKGCONFIG_TRUE= 4848 COIN_HAS_PKGCONFIG_FALSE='#' 4849else 4850 COIN_HAS_PKGCONFIG_TRUE='#' 4851 COIN_HAS_PKGCONFIG_FALSE= 4852fi 4853 4854 4855 4856# assemble pkg-config search path for installed projects 4857COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH" 4858 4859# let's assume that when installing into $prefix, then the user may have installed some other coin projects there before, so it's worth to have a look into there 4860# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig, 4861# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}... 4862if test "x${prefix}" = xNONE ; then 4863 COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib64/pkgconfig:${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}" 4864else 4865 COIN_PKG_CONFIG_PATH="${prefix}/lib64/pkgconfig:${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}" 4866fi 4867 4868 4869# Check whether --with-coin-instdir or --without-coin-instdir was given. 4870if test "${with_coin_instdir+set}" = set; then 4871 withval="$with_coin_instdir" 4872 if test -d "$withval"; then : ; else 4873 { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5 4874echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;} 4875 { (exit 1); exit 1; }; } 4876 fi 4877 COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}" 4878 4879fi; 4880 4881 4882 4883# assemble additional pkg-config search paths for uninstalled projects 4884if test x$coin_projectdir = xyes ; then 4885 # if we are in a project setup, then in a classic setup, we want to find uninstalled projects 4886 # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory 4887 # unfortunately, if the user set prefix, then we do not know where the project base directory is located 4888 # but it is likely to be either .. (if we are a usual coin project) or ../.. (if we are a unusual coin project like ThirdParty or Data) 4889 COIN_PKG_CONFIG_PATH_UNINSTALLED= 4890 if test -f ../coin_subdirs.txt ; then 4891 for i in `cat ../coin_subdirs.txt` ; do 4892 if test -d ../$i ; then 4893 COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}" 4894 fi 4895 if test -d ../$i/pkgconfig ; then 4896 COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}" 4897 fi 4898 done 4899 fi 4900 4901 if test -f ../../coin_subdirs.txt ; then 4902 for i in `cat ../../coin_subdirs.txt` ; do 4903 if test -d ../../$i ; then 4904 COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}" 4905 fi 4906 if test -d ../../$i/pkgconfig ; then 4907 COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}" 4908 fi 4909 done 4910 fi 4911 4912 if test -f ../../../coin_subdirs.txt ; then 4913 for i in `cat ../../../coin_subdirs.txt` ; do 4914 if test -d ../../../$i ; then 4915 COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}" 4916 fi 4917 if test -d ../../../$i/pkgconfig ; then 4918 COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}" 4919 fi 4920 done 4921 fi 4922 4923 4924fi 4925 4926if test -n "$PKG_CONFIG" && test x$coin_cc_is_cl = xtrue; then 4927 { echo "$as_me:$LINENO: WARNING: Using pkg-config together with MS or Intel Compiler on Windows is not support by example Makefiles. Consider using --disable-pkg-config." >&5 4928echo "$as_me: WARNING: Using pkg-config together with MS or Intel Compiler on Windows is not support by example Makefiles. Consider using --disable-pkg-config." >&2;} 4929fi 4930 4931 4932 4933# Initialize automake 4934{ 4935 4936 4937 4938# START 4939 4940coin_disable_shared=no 4941# Test if force_shared has been set 4942if test "x" = xforce_shared; then 4943 if test x$enable_shared = xno; then 4944 { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5 4945echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;} 4946 { (exit 1); exit 1; }; } 4947 fi 4948 enable_shared=yes; 4949else 4950 case $build in 4951 *-cygwin* | *-mingw*) 4952 coin_disable_shared=yes 4953 if test x"$enable_shared" = xyes; then 4954 case "$CC" in 4955 clang* ) 4956 { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5 4957echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;} 4958 ;; 4959 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 4960 { echo "$as_me:$LINENO: Building of DLLs not supported in this configuration." >&5 4961echo "$as_me: Building of DLLs not supported in this configuration." >&6;} 4962 ;; 4963 *gcc*) 4964 if test x"$enable_dependency_linking" = xyes; then 4965 coin_disable_shared=no 4966 else 4967 { echo "$as_me:$LINENO: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&5 4968echo "$as_me: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&2;} 4969 fi 4970 ;; 4971 *) 4972 { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5 4973echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;} 4974 ;; 4975 esac 4976 fi 4977 ;; 4978 *-aix*) 4979 coin_disable_shared=yes 4980 platform=AIX 4981 if test x"$enable_shared" = xyes; then 4982 { echo "$as_me:$LINENO: WARNING: Shared objects are not supported." >&5 4983echo "$as_me: WARNING: Shared objects are not supported." >&2;} 4984 fi 4985 ;; 4986 esac 4987fi 4988if test x"$coin_disable_shared" = xyes; then 4989 if test x"$enable_shared" = xyes; then 4990 : 4991 else 4992 # we don't disable shared, because it was not selected anyway 4993 coin_disable_shared=no 4994 fi 4995 enable_shared=no 4996fi 4997# By default, we only want the shared objects to be compiled 4998# Check whether --enable-static or --disable-static was given. 4999if test "${enable_static+set}" = set; then 5000 enableval="$enable_static" 5001 p=${PACKAGE-default} 5002 case $enableval in 5003 yes) enable_static=yes ;; 5004 no) enable_static=no ;; 5005 *) 5006 enable_static=no 5007 # Look at the argument we got. We use all the common list separators. 5008 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 5009 for pkg in $enableval; do 5010 IFS="$lt_save_ifs" 5011 if test "X$pkg" = "X$p"; then 5012 enable_static=yes 5013 fi 5014 done 5015 IFS="$lt_save_ifs" 5016 ;; 5017 esac 5018else 5019 enable_static=no 5020fi; 5021 5022 5023 5024 5025# Initialize automake 5026echo "$as_me:$LINENO: checking for egrep" >&5 5027echo $ECHO_N "checking for egrep... $ECHO_C" >&6 5028if test "${ac_cv_prog_egrep+set}" = set; then 5029 echo $ECHO_N "(cached) $ECHO_C" >&6 5030else 5031 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 5032 then ac_cv_prog_egrep='grep -E' 5033 else ac_cv_prog_egrep='egrep' 5034 fi 5035fi 5036echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 5037echo "${ECHO_T}$ac_cv_prog_egrep" >&6 5038 EGREP=$ac_cv_prog_egrep 5039 5040 5041echo "$as_me:$LINENO: checking whether ln -s works" >&5 5042echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 5043LN_S=$as_ln_s 5044if test "$LN_S" = "ln -s"; then 5045 echo "$as_me:$LINENO: result: yes" >&5 5046echo "${ECHO_T}yes" >&6 5047else 5048 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 5049echo "${ECHO_T}no, using $LN_S" >&6 5050fi 5051 5052am__api_version="1.9" 5053# Find a good install program. We prefer a C program (faster), 5054# so one script is as good as another. But avoid the broken or 5055# incompatible versions: 5056# SysV /etc/install, /usr/sbin/install 5057# SunOS /usr/etc/install 5058# IRIX /sbin/install 5059# AIX /bin/install 5060# AmigaOS /C/install, which installs bootblocks on floppy discs 5061# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 5062# AFS /usr/afsws/bin/install, which mishandles nonexistent args 5063# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 5064# OS/2's system install, which has a completely different semantic 5065# ./install, which can be erroneously created by make from ./install.sh. 5066echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 5067echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 5068if test -z "$INSTALL"; then 5069if test "${ac_cv_path_install+set}" = set; then 5070 echo $ECHO_N "(cached) $ECHO_C" >&6 5071else 5072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5073for as_dir in $PATH 5074do 5075 IFS=$as_save_IFS 5076 test -z "$as_dir" && as_dir=. 5077 # Account for people who put trailing slashes in PATH elements. 5078case $as_dir/ in 5079 ./ | .// | /cC/* | \ 5080 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 5081 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 5082 /usr/ucb/* ) ;; 5083 *) 5084 # OSF1 and SCO ODT 3.0 have their own names for install. 5085 # Don't use installbsd from OSF since it installs stuff as root 5086 # by default. 5087 for ac_prog in ginstall scoinst install; do 5088 for ac_exec_ext in '' $ac_executable_extensions; do 5089 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 5090 if test $ac_prog = install && 5091 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 5092 # AIX install. It has an incompatible calling convention. 5093 : 5094 elif test $ac_prog = install && 5095 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 5096 # program-specific install script used by HP pwplus--don't use. 5097 : 5098 else 5099 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 5100 break 3 5101 fi 5102 fi 5103 done 5104 done 5105 ;; 5106esac 5107done 5108 5109 5110fi 5111 if test "${ac_cv_path_install+set}" = set; then 5112 INSTALL=$ac_cv_path_install 5113 else 5114 # As a last resort, use the slow shell script. We don't cache a 5115 # path for INSTALL within a source directory, because that will 5116 # break other packages using the cache if that directory is 5117 # removed, or if the path is relative. 5118 INSTALL=$ac_install_sh 5119 fi 5120fi 5121echo "$as_me:$LINENO: result: $INSTALL" >&5 5122echo "${ECHO_T}$INSTALL" >&6 5123 5124# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 5125# It thinks the first close brace ends the variable substitution. 5126test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 5127 5128test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 5129 5130test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 5131 5132echo "$as_me:$LINENO: checking whether build environment is sane" >&5 5133echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 5134# Just in case 5135sleep 1 5136echo timestamp > conftest.file 5137# Do `set' in a subshell so we don't clobber the current shell's 5138# arguments. Must try -L first in case configure is actually a 5139# symlink; some systems play weird games with the mod time of symlinks 5140# (eg FreeBSD returns the mod time of the symlink's containing 5141# directory). 5142if ( 5143 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 5144 if test "$*" = "X"; then 5145 # -L didn't work. 5146 set X `ls -t $srcdir/configure conftest.file` 5147 fi 5148 rm -f conftest.file 5149 if test "$*" != "X $srcdir/configure conftest.file" \ 5150 && test "$*" != "X conftest.file $srcdir/configure"; then 5151 5152 # If neither matched, then we have a broken ls. This can happen 5153 # if, for instance, CONFIG_SHELL is bash and it inherits a 5154 # broken ls alias from the environment. This has actually 5155 # happened. Such a system could not be considered "sane". 5156 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 5157alias in your environment" >&5 5158echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 5159alias in your environment" >&2;} 5160 { (exit 1); exit 1; }; } 5161 fi 5162 5163 test "$2" = conftest.file 5164 ) 5165then 5166 # Ok. 5167 : 5168else 5169 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 5170Check your system clock" >&5 5171echo "$as_me: error: newly created file is older than distributed files! 5172Check your system clock" >&2;} 5173 { (exit 1); exit 1; }; } 5174fi 5175echo "$as_me:$LINENO: result: yes" >&5 5176echo "${ECHO_T}yes" >&6 5177test "$program_prefix" != NONE && 5178 program_transform_name="s,^,$program_prefix,;$program_transform_name" 5179# Use a double $ so make ignores it. 5180test "$program_suffix" != NONE && 5181 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 5182# Double any \ or $. echo might interpret backslashes. 5183# By default was `s,x,x', remove it if useless. 5184cat <<\_ACEOF >conftest.sed 5185s/[\\$]/&&/g;s/;s,x,x,$// 5186_ACEOF 5187program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 5188rm conftest.sed 5189 5190# expand $ac_aux_dir to an absolute path 5191am_aux_dir=`cd $ac_aux_dir && pwd` 5192 5193test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 5194# Use eval to expand $SHELL 5195if eval "$MISSING --run true"; then 5196 am_missing_run="$MISSING --run " 5197else 5198 am_missing_run= 5199 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 5200echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 5201fi 5202 5203if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 5204 # We used to keeping the `.' as first argument, in order to 5205 # allow $(mkdir_p) to be used without argument. As in 5206 # $(mkdir_p) $(somedir) 5207 # where $(somedir) is conditionally defined. However this is wrong 5208 # for two reasons: 5209 # 1. if the package is installed by a user who cannot write `.' 5210 # make install will fail, 5211 # 2. the above comment should most certainly read 5212 # $(mkdir_p) $(DESTDIR)$(somedir) 5213 # so it does not work when $(somedir) is undefined and 5214 # $(DESTDIR) is not. 5215 # To support the latter case, we have to write 5216 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 5217 # so the `.' trick is pointless. 5218 mkdir_p='mkdir -p --' 5219else 5220 # On NextStep and OpenStep, the `mkdir' command does not 5221 # recognize any option. It will interpret all options as 5222 # directories to create, and then abort because `.' already 5223 # exists. 5224 for d in ./-p ./--version; 5225 do 5226 test -d $d && rmdir $d 5227 done 5228 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 5229 if test -f "$ac_aux_dir/mkinstalldirs"; then 5230 mkdir_p='$(mkinstalldirs)' 5231 else 5232 mkdir_p='$(install_sh) -d' 5233 fi 5234fi 5235 5236for ac_prog in gawk mawk nawk awk 5237do 5238 # Extract the first word of "$ac_prog", so it can be a program name with args. 5239set dummy $ac_prog; ac_word=$2 5240echo "$as_me:$LINENO: checking for $ac_word" >&5 5241echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5242if test "${ac_cv_prog_AWK+set}" = set; then 5243 echo $ECHO_N "(cached) $ECHO_C" >&6 5244else 5245 if test -n "$AWK"; then 5246 ac_cv_prog_AWK="$AWK" # Let the user override the test. 5247else 5248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5249for as_dir in $PATH 5250do 5251 IFS=$as_save_IFS 5252 test -z "$as_dir" && as_dir=. 5253 for ac_exec_ext in '' $ac_executable_extensions; do 5254 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5255 ac_cv_prog_AWK="$ac_prog" 5256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5257 break 2 5258 fi 5259done 5260done 5261 5262fi 5263fi 5264AWK=$ac_cv_prog_AWK 5265if test -n "$AWK"; then 5266 echo "$as_me:$LINENO: result: $AWK" >&5 5267echo "${ECHO_T}$AWK" >&6 5268else 5269 echo "$as_me:$LINENO: result: no" >&5 5270echo "${ECHO_T}no" >&6 5271fi 5272 5273 test -n "$AWK" && break 5274done 5275 5276echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 5277echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 5278set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 5279if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 5280 echo $ECHO_N "(cached) $ECHO_C" >&6 5281else 5282 cat >conftest.make <<\_ACEOF 5283all: 5284 @echo 'ac_maketemp="$(MAKE)"' 5285_ACEOF 5286# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 5287eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 5288if test -n "$ac_maketemp"; then 5289 eval ac_cv_prog_make_${ac_make}_set=yes 5290else 5291 eval ac_cv_prog_make_${ac_make}_set=no 5292fi 5293rm -f conftest.make 5294fi 5295if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 5296 echo "$as_me:$LINENO: result: yes" >&5 5297echo "${ECHO_T}yes" >&6 5298 SET_MAKE= 5299else 5300 echo "$as_me:$LINENO: result: no" >&5 5301echo "${ECHO_T}no" >&6 5302 SET_MAKE="MAKE=${MAKE-make}" 5303fi 5304 5305rm -rf .tst 2>/dev/null 5306mkdir .tst 2>/dev/null 5307if test -d .tst; then 5308 am__leading_dot=. 5309else 5310 am__leading_dot=_ 5311fi 5312rmdir .tst 2>/dev/null 5313 5314DEPDIR="${am__leading_dot}deps" 5315 5316 ac_config_commands="$ac_config_commands depfiles" 5317 5318 5319am_make=${MAKE-make} 5320cat > confinc << 'END' 5321am__doit: 5322 @echo done 5323.PHONY: am__doit 5324END 5325# If we don't find an include directive, just comment out the code. 5326echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 5327echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 5328am__include="#" 5329am__quote= 5330_am_result=none 5331# First try GNU make style include. 5332echo "include confinc" > confmf 5333# We grep out `Entering directory' and `Leaving directory' 5334# messages which can occur if `w' ends up in MAKEFLAGS. 5335# In particular we don't look at `^make:' because GNU make might 5336# be invoked under some other name (usually "gmake"), in which 5337# case it prints its new name instead of `make'. 5338if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 5339 am__include=include 5340 am__quote= 5341 _am_result=GNU 5342fi 5343# Now try BSD make style include. 5344if test "$am__include" = "#"; then 5345 echo '.include "confinc"' > confmf 5346 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 5347 am__include=.include 5348 am__quote="\"" 5349 _am_result=BSD 5350 fi 5351fi 5352 5353 5354echo "$as_me:$LINENO: result: $_am_result" >&5 5355echo "${ECHO_T}$_am_result" >&6 5356rm -f confinc confmf 5357 5358# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 5359if test "${enable_dependency_tracking+set}" = set; then 5360 enableval="$enable_dependency_tracking" 5361 5362fi; 5363if test "x$enable_dependency_tracking" != xno; then 5364 am_depcomp="$ac_aux_dir/depcomp" 5365 AMDEPBACKSLASH='\' 5366fi 5367 5368 5369if test "x$enable_dependency_tracking" != xno; then 5370 AMDEP_TRUE= 5371 AMDEP_FALSE='#' 5372else 5373 AMDEP_TRUE='#' 5374 AMDEP_FALSE= 5375fi 5376 5377 5378 5379 5380 5381 5382# AC_MSG_NOTICE([Beginning automake initialisation.]) 5383# Stuff for automake 5384# test to see if srcdir already configured 5385if test "`cd $srcdir && pwd`" != "`pwd`" && 5386 test -f $srcdir/config.status; then 5387 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 5388echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 5389 { (exit 1); exit 1; }; } 5390fi 5391 5392# test whether we have cygpath 5393if test -z "$CYGPATH_W"; then 5394 if (cygpath --version) >/dev/null 2>/dev/null; then 5395 CYGPATH_W='cygpath -w' 5396 else 5397 CYGPATH_W=echo 5398 fi 5399fi 5400 5401 5402# Define the identity of the package. 5403 PACKAGE='thirdpartyblas' 5404 VERSION='1.4.8' 5405 5406 5407cat >>confdefs.h <<_ACEOF 5408#define PACKAGE "$PACKAGE" 5409_ACEOF 5410 5411 5412cat >>confdefs.h <<_ACEOF 5413#define VERSION "$VERSION" 5414_ACEOF 5415 5416# Some tools Automake needs. 5417 5418ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 5419 5420 5421AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 5422 5423 5424AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 5425 5426 5427AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 5428 5429 5430MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 5431 5432install_sh=${install_sh-"$am_aux_dir/install-sh"} 5433 5434# Installed binaries are usually stripped using `strip' when the user 5435# run `make install-strip'. However `strip' might not be the right 5436# tool to use in cross-compilation environments, therefore Automake 5437# will honor the `STRIP' environment variable to overrule this program. 5438if test "$cross_compiling" != no; then 5439 if test -n "$ac_tool_prefix"; then 5440 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5441set dummy ${ac_tool_prefix}strip; ac_word=$2 5442echo "$as_me:$LINENO: checking for $ac_word" >&5 5443echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5444if test "${ac_cv_prog_STRIP+set}" = set; then 5445 echo $ECHO_N "(cached) $ECHO_C" >&6 5446else 5447 if test -n "$STRIP"; then 5448 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5449else 5450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5451for as_dir in $PATH 5452do 5453 IFS=$as_save_IFS 5454 test -z "$as_dir" && as_dir=. 5455 for ac_exec_ext in '' $ac_executable_extensions; do 5456 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5457 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5459 break 2 5460 fi 5461done 5462done 5463 5464fi 5465fi 5466STRIP=$ac_cv_prog_STRIP 5467if test -n "$STRIP"; then 5468 echo "$as_me:$LINENO: result: $STRIP" >&5 5469echo "${ECHO_T}$STRIP" >&6 5470else 5471 echo "$as_me:$LINENO: result: no" >&5 5472echo "${ECHO_T}no" >&6 5473fi 5474 5475fi 5476if test -z "$ac_cv_prog_STRIP"; then 5477 ac_ct_STRIP=$STRIP 5478 # Extract the first word of "strip", so it can be a program name with args. 5479set dummy strip; ac_word=$2 5480echo "$as_me:$LINENO: checking for $ac_word" >&5 5481echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5482if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 5483 echo $ECHO_N "(cached) $ECHO_C" >&6 5484else 5485 if test -n "$ac_ct_STRIP"; then 5486 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5487else 5488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5489for as_dir in $PATH 5490do 5491 IFS=$as_save_IFS 5492 test -z "$as_dir" && as_dir=. 5493 for ac_exec_ext in '' $ac_executable_extensions; do 5494 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5495 ac_cv_prog_ac_ct_STRIP="strip" 5496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5497 break 2 5498 fi 5499done 5500done 5501 5502 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 5503fi 5504fi 5505ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5506if test -n "$ac_ct_STRIP"; then 5507 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 5508echo "${ECHO_T}$ac_ct_STRIP" >&6 5509else 5510 echo "$as_me:$LINENO: result: no" >&5 5511echo "${ECHO_T}no" >&6 5512fi 5513 5514 STRIP=$ac_ct_STRIP 5515else 5516 STRIP="$ac_cv_prog_STRIP" 5517fi 5518 5519fi 5520INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 5521 5522# We need awk for the "check" target. The system "awk" is bad on 5523# some platforms. 5524# Always define AMTAR for backward compatibility. 5525 5526AMTAR=${AMTAR-"${am_missing_run}tar"} 5527 5528am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 5529 5530 5531 5532 5533depcc="$CC" am_compiler_list= 5534 5535echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5536echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 5537if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 5538 echo $ECHO_N "(cached) $ECHO_C" >&6 5539else 5540 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5541 # We make a subdir and do the tests there. Otherwise we can end up 5542 # making bogus files that we don't know about and never remove. For 5543 # instance it was reported that on HP-UX the gcc test will end up 5544 # making a dummy file named `D' -- because `-MD' means `put the output 5545 # in D'. 5546 mkdir conftest.dir 5547 # Copy depcomp to subdir because otherwise we won't find it if we're 5548 # using a relative directory. 5549 cp "$am_depcomp" conftest.dir 5550 cd conftest.dir 5551 # We will build objects and dependencies in a subdirectory because 5552 # it helps to detect inapplicable dependency modes. For instance 5553 # both Tru64's cc and ICC support -MD to output dependencies as a 5554 # side effect of compilation, but ICC will put the dependencies in 5555 # the current directory while Tru64 will put them in the object 5556 # directory. 5557 mkdir sub 5558 5559 am_cv_CC_dependencies_compiler_type=none 5560 if test "$am_compiler_list" = ""; then 5561 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5562 fi 5563 for depmode in $am_compiler_list; do 5564 # Setup a source with many dependencies, because some compilers 5565 # like to wrap large dependency lists on column 80 (with \), and 5566 # we should not choose a depcomp mode which is confused by this. 5567 # 5568 # We need to recreate these files for each test, as the compiler may 5569 # overwrite some of them when testing with obscure command lines. 5570 # This happens at least with the AIX C compiler. 5571 : > sub/conftest.c 5572 for i in 1 2 3 4 5 6; do 5573 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5574 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5575 # Solaris 8's {/usr,}/bin/sh. 5576 touch sub/conftst$i.h 5577 done 5578 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5579 5580 case $depmode in 5581 nosideeffect) 5582 # after this tag, mechanisms are not by side-effect, so they'll 5583 # only be used when explicitly requested 5584 if test "x$enable_dependency_tracking" = xyes; then 5585 continue 5586 else 5587 break 5588 fi 5589 ;; 5590 none) break ;; 5591 esac 5592 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5593 # mode. It turns out that the SunPro C++ compiler does not properly 5594 # handle `-M -o', and we need to detect this. 5595 if depmode=$depmode \ 5596 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 5597 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5598 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 5599 >/dev/null 2>conftest.err && 5600 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5601 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 5602 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5603 # icc doesn't choke on unknown options, it will just issue warnings 5604 # or remarks (even with -Werror). So we grep stderr for any message 5605 # that says an option was ignored or not supported. 5606 # When given -MP, icc 7.0 and 7.1 complain thusly: 5607 # icc: Command line warning: ignoring option '-M'; no argument required 5608 # The diagnosis changed in icc 8.0: 5609 # icc: Command line remark: option '-MP' not supported 5610 if (grep 'ignoring option' conftest.err || 5611 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5612 am_cv_CC_dependencies_compiler_type=$depmode 5613 break 5614 fi 5615 fi 5616 done 5617 5618 cd .. 5619 rm -rf conftest.dir 5620else 5621 am_cv_CC_dependencies_compiler_type=none 5622fi 5623 5624fi 5625echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 5626echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 5627CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5628 5629 5630 5631if 5632 test "x$enable_dependency_tracking" != xno \ 5633 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5634 am__fastdepCC_TRUE= 5635 am__fastdepCC_FALSE='#' 5636else 5637 am__fastdepCC_TRUE='#' 5638 am__fastdepCC_FALSE= 5639fi 5640 5641 5642 5643echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 5644echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 5645 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 5646if test "${enable_maintainer_mode+set}" = set; then 5647 enableval="$enable_maintainer_mode" 5648 USE_MAINTAINER_MODE=$enableval 5649else 5650 USE_MAINTAINER_MODE=no 5651fi; 5652 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 5653echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 5654 5655 5656if test $USE_MAINTAINER_MODE = yes; then 5657 MAINTAINER_MODE_TRUE= 5658 MAINTAINER_MODE_FALSE='#' 5659else 5660 MAINTAINER_MODE_TRUE='#' 5661 MAINTAINER_MODE_FALSE= 5662fi 5663 5664 MAINT=$MAINTAINER_MODE_TRUE 5665 5666 5667 5668coin_have_externals=no 5669if test "$enable_maintainer_mode" = yes; then 5670 5671 # If maintainer mode is chosen, we make sure that the correct versions 5672 # of the tools are used, and that we know where libtool.m4 is (to 5673 # recreate acinclude.m4) 5674 5675 5676 LIBTOOLM4= 5677 # Normally, $HOME 5678 AUTOTOOLS_DFLT=$HOME 5679 5680 echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5 5681echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6 5682if test "${ac_cv_use_correct_autotools+set}" = set; then 5683 echo $ECHO_N "(cached) $ECHO_C" >&6 5684else 5685 ac_cv_use_correct_autotools=check 5686fi 5687echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5 5688echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6 5689 5690 if test $ac_cv_use_correct_autotools = check; then 5691 ac_cv_use_correct_autotools=yes 5692 # Check if we have autoconf 5693 # Extract the first word of "autoconf", so it can be a program name with args. 5694set dummy autoconf; ac_word=$2 5695echo "$as_me:$LINENO: checking for $ac_word" >&5 5696echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5697if test "${ac_cv_prog_have_autoconf+set}" = set; then 5698 echo $ECHO_N "(cached) $ECHO_C" >&6 5699else 5700 if test -n "$have_autoconf"; then 5701 ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test. 5702else 5703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5704for as_dir in $PATH 5705do 5706 IFS=$as_save_IFS 5707 test -z "$as_dir" && as_dir=. 5708 for ac_exec_ext in '' $ac_executable_extensions; do 5709 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5710 ac_cv_prog_have_autoconf="yes" 5711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5712 break 2 5713 fi 5714done 5715done 5716 5717 test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no" 5718fi 5719fi 5720have_autoconf=$ac_cv_prog_have_autoconf 5721if test -n "$have_autoconf"; then 5722 echo "$as_me:$LINENO: result: $have_autoconf" >&5 5723echo "${ECHO_T}$have_autoconf" >&6 5724else 5725 echo "$as_me:$LINENO: result: no" >&5 5726echo "${ECHO_T}no" >&6 5727fi 5728 5729 if test $have_autoconf = no; then 5730 { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5 5731echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;} 5732 { (exit 1); exit 1; }; } 5733 fi 5734 5735 # Check whether autoconf is the correct version 5736 correct_version='2.59' 5737 grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'` 5738 echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5 5739echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6 5740 autoconf --version > confauto.out 2>&1 5741 if $EGREP $grep_version confauto.out >/dev/null 2>&1; then 5742 echo "$as_me:$LINENO: result: yes" >&5 5743echo "${ECHO_T}yes" >&6 5744 else 5745 rm -f confauto.out 5746 echo "$as_me:$LINENO: result: no" >&5 5747echo "${ECHO_T}no" >&6 5748 { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5 5749echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;} 5750 { (exit 1); exit 1; }; } 5751 fi 5752 rm -f confauto.out 5753 5754 # Check if the executable autoconf is picked up from the correct location 5755 echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5 5756echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6 5757 autoconf_dir=`which autoconf | sed -e 's=/autoconf=='` 5758 autoconf_dir=`cd $autoconf_dir; pwd` 5759 if test x$AUTOTOOLS_DIR = x; then 5760 want_dir=$AUTOTOOLS_DFLT/bin 5761 else 5762 want_dir=$AUTOTOOLS_DIR/bin 5763 fi 5764 if test $autoconf_dir = `cd $want_dir; pwd`; then 5765 echo "$as_me:$LINENO: result: yes" >&5 5766echo "${ECHO_T}yes" >&6 5767 else 5768 rm -f confauto.out 5769 echo "$as_me:$LINENO: result: no" >&5 5770echo "${ECHO_T}no" >&6 5771 { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5 5772echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;} 5773 { (exit 1); exit 1; }; } 5774 fi 5775 5776 # Check if we have automake 5777 # Extract the first word of "automake", so it can be a program name with args. 5778set dummy automake; ac_word=$2 5779echo "$as_me:$LINENO: checking for $ac_word" >&5 5780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5781if test "${ac_cv_prog_have_automake+set}" = set; then 5782 echo $ECHO_N "(cached) $ECHO_C" >&6 5783else 5784 if test -n "$have_automake"; then 5785 ac_cv_prog_have_automake="$have_automake" # Let the user override the test. 5786else 5787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5788for as_dir in $PATH 5789do 5790 IFS=$as_save_IFS 5791 test -z "$as_dir" && as_dir=. 5792 for ac_exec_ext in '' $ac_executable_extensions; do 5793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5794 ac_cv_prog_have_automake="yes" 5795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5796 break 2 5797 fi 5798done 5799done 5800 5801 test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no" 5802fi 5803fi 5804have_automake=$ac_cv_prog_have_automake 5805if test -n "$have_automake"; then 5806 echo "$as_me:$LINENO: result: $have_automake" >&5 5807echo "${ECHO_T}$have_automake" >&6 5808else 5809 echo "$as_me:$LINENO: result: no" >&5 5810echo "${ECHO_T}no" >&6 5811fi 5812 5813 if test $have_automake = no; then 5814 { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5 5815echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;} 5816 { (exit 1); exit 1; }; } 5817 fi 5818 5819 # Check whether automake is the correct version 5820 correct_version='1.9.6' 5821 grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'` 5822 echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5 5823echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6 5824 automake --version > confauto.out 2>&1 5825 if $EGREP $grep_version confauto.out >/dev/null 2>&1; then 5826 echo "$as_me:$LINENO: result: yes" >&5 5827echo "${ECHO_T}yes" >&6 5828 else 5829 rm -f confauto.out 5830 echo "$as_me:$LINENO: result: no" >&5 5831echo "${ECHO_T}no" >&6 5832 { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5 5833echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;} 5834 { (exit 1); exit 1; }; } 5835 fi 5836 rm -f confauto.out 5837 5838 # Check if the executable automake is picked up from the correct location 5839 echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5 5840echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6 5841 automake_dir=`which automake | sed -e 's=/automake=='` 5842 automake_dir=`cd $automake_dir; pwd` 5843 if test x$AUTOTOOLS_DIR = x; then 5844 want_dir=$AUTOTOOLS_DFLT/bin 5845 else 5846 want_dir=$AUTOTOOLS_DIR/bin 5847 fi 5848 if test $automake_dir = `cd $want_dir; pwd`; then 5849 echo "$as_me:$LINENO: result: yes" >&5 5850echo "${ECHO_T}yes" >&6 5851 else 5852 rm -f confauto.out 5853 echo "$as_me:$LINENO: result: no" >&5 5854echo "${ECHO_T}no" >&6 5855 { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5 5856echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;} 5857 { (exit 1); exit 1; }; } 5858 fi 5859 5860 # Check if this is the correct version of libtool (with escaped dots) 5861 if test x$AUTOTOOLS_DIR = x; then 5862 want_dir=$AUTOTOOLS_DFLT/share 5863 else 5864 want_dir=$AUTOTOOLS_DIR/share 5865 fi 5866 correct_version='1.5.22' 5867 grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'` 5868 if test -r $want_dir/libtool/ltmain.sh; then 5869 have_ltmain=yes 5870 : 5871else 5872 have_ltmain=no 5873 : 5874fi 5875 5876 echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5 5877echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6 5878 if test $have_ltmain = yes; then 5879 if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then 5880 echo "$as_me:$LINENO: result: yes" >&5 5881echo "${ECHO_T}yes" >&6 5882 else 5883 echo "$as_me:$LINENO: result: no" >&5 5884echo "${ECHO_T}no" >&6 5885 { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5 5886echo "$as_me: error: You don't have the correct version of libtool." >&2;} 5887 { (exit 1); exit 1; }; } 5888 fi 5889 else 5890 echo "$as_me:$LINENO: result: no" >&5 5891echo "${ECHO_T}no" >&6 5892 { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5 5893echo "$as_me: error: I cannot find the ltmain.sh file." >&2;} 5894 { (exit 1); exit 1; }; } 5895 fi 5896 fi 5897 5898 # Check if we can find the libtool file 5899 if test x$AUTOTOOLS_DIR = x; then 5900 want_dir=$AUTOTOOLS_DFLT/share 5901 else 5902 want_dir=$AUTOTOOLS_DIR/share 5903 fi 5904 if test -r $want_dir/aclocal/libtool.m4; then 5905 LIBTOOLM4="$want_dir/aclocal/libtool.m4" 5906 : 5907else 5908 { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5 5909echo "$as_me: error: I cannot find the libtool.m4 file." >&2;} 5910 { (exit 1); exit 1; }; } 5911 : 5912fi 5913 5914 5915 # Check if we have an Dependencies file 5916 if test -r $srcdir/Dependencies; then 5917 coin_have_externals=yes 5918 fi 5919 # Check if subversion is installed and understands https 5920 # Extract the first word of "svn", so it can be a program name with args. 5921set dummy svn; ac_word=$2 5922echo "$as_me:$LINENO: checking for $ac_word" >&5 5923echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5924if test "${ac_cv_prog_have_svn+set}" = set; then 5925 echo $ECHO_N "(cached) $ECHO_C" >&6 5926else 5927 if test -n "$have_svn"; then 5928 ac_cv_prog_have_svn="$have_svn" # Let the user override the test. 5929else 5930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5931for as_dir in $PATH 5932do 5933 IFS=$as_save_IFS 5934 test -z "$as_dir" && as_dir=. 5935 for ac_exec_ext in '' $ac_executable_extensions; do 5936 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5937 ac_cv_prog_have_svn="yes" 5938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5939 break 2 5940 fi 5941done 5942done 5943 5944 test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no" 5945fi 5946fi 5947have_svn=$ac_cv_prog_have_svn 5948if test -n "$have_svn"; then 5949 echo "$as_me:$LINENO: result: $have_svn" >&5 5950echo "${ECHO_T}$have_svn" >&6 5951else 5952 echo "$as_me:$LINENO: result: no" >&5 5953echo "${ECHO_T}no" >&6 5954fi 5955 5956 if test x$have_svn = xyes; then 5957 echo "$as_me:$LINENO: checking whether svn understands https" >&5 5958echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6 5959if test "${ac_cv_svn_understands_https+set}" = set; then 5960 echo $ECHO_N "(cached) $ECHO_C" >&6 5961else 5962 svn --version > confauto.out 2>&1 5963 if $EGREP https confauto.out >/dev/null 2>&1; then 5964 ac_cv_svn_understands_https=yes 5965 else 5966 ac_cv_svn_understands_https=no 5967 have_svn=no 5968 ac_cv_prog_have_svn=no 5969 fi 5970 rm -f confauto.out 5971fi 5972echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5 5973echo "${ECHO_T}$ac_cv_svn_understands_https" >&6 5974 fi 5975 5976 # Find the location of the BuildTools directory 5977 BUILDTOOLSDIR= 5978 if test -r $srcdir/BuildTools/coin.m4; then 5979 BUILDTOOLSDIR=$srcdir/BuildTools 5980 elif test -r $srcdir/../BuildTools/coin.m4; then 5981 BUILDTOOLSDIR=$srcdir/../BuildTools 5982 elif test -r $srcdir/../../BuildTools/coin.m4; then 5983 BUILDTOOLSDIR=$srcdir/../../BuildTools 5984 elif test -r $srcdir/../../../BuildTools/coin.m4; then 5985 BUILDTOOLSDIR=$srcdir/../../../BuildTools 5986 else 5987 { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5 5988echo "$as_me: error: Cannot find the BuildTools directory" >&2;} 5989 { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; } 5990 fi 5991 5992 5993 # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools 5994 if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then 5995 $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools" 5996 fi 5997 5998 # The following variable is set to the name of the directory where 5999 # the autotool scripts are located 6000 6001 AUX_DIR=$ac_aux_dir 6002fi 6003 6004# helpful variable for the base directory of this package 6005abs_source_dir=`cd $srcdir; pwd` 6006 6007 6008# Stuff for example Makefiles 6009if test x$prefix = xNONE; then 6010 full_prefix=$ac_default_prefix 6011else 6012 full_prefix=$prefix 6013fi 6014 6015 6016abs_lib_dir=$full_prefix/lib 6017 6018abs_include_dir=$full_prefix/include 6019 6020abs_bin_dir=$full_prefix/bin 6021 6022 6023 6024if test $coin_have_externals = yes && test x$have_svn = xyes; then 6025 HAVE_EXTERNALS_TRUE= 6026 HAVE_EXTERNALS_FALSE='#' 6027else 6028 HAVE_EXTERNALS_TRUE='#' 6029 HAVE_EXTERNALS_FALSE= 6030fi 6031 6032 6033# AC_MSG_NOTICE([End automake initialisation.]) 6034 6035 6036 6037LIBTOOL= 6038if test -f ../libtool; then 6039 coin_config_dir=.. 6040 LIBTOOL='$(SHELL) $(top_builddir)/../libtool' 6041fi 6042if test "x$LIBTOOL" = x; then 6043 if test -f ../../libtool; then 6044 coin_config_dir=../.. 6045 LIBTOOL='$(SHELL) $(top_builddir)/../../libtool' 6046 fi 6047fi 6048 6049if test "x$LIBTOOL" = x; then 6050# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).]) 6051 # Stuff for libtool 6052 # Check whether --enable-shared or --disable-shared was given. 6053if test "${enable_shared+set}" = set; then 6054 enableval="$enable_shared" 6055 p=${PACKAGE-default} 6056 case $enableval in 6057 yes) enable_shared=yes ;; 6058 no) enable_shared=no ;; 6059 *) 6060 enable_shared=no 6061 # Look at the argument we got. We use all the common list separators. 6062 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6063 for pkg in $enableval; do 6064 IFS="$lt_save_ifs" 6065 if test "X$pkg" = "X$p"; then 6066 enable_shared=yes 6067 fi 6068 done 6069 IFS="$lt_save_ifs" 6070 ;; 6071 esac 6072else 6073 enable_shared=yes 6074fi; 6075 6076# Check whether --enable-fast-install or --disable-fast-install was given. 6077if test "${enable_fast_install+set}" = set; then 6078 enableval="$enable_fast_install" 6079 p=${PACKAGE-default} 6080 case $enableval in 6081 yes) enable_fast_install=yes ;; 6082 no) enable_fast_install=no ;; 6083 *) 6084 enable_fast_install=no 6085 # Look at the argument we got. We use all the common list separators. 6086 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6087 for pkg in $enableval; do 6088 IFS="$lt_save_ifs" 6089 if test "X$pkg" = "X$p"; then 6090 enable_fast_install=yes 6091 fi 6092 done 6093 IFS="$lt_save_ifs" 6094 ;; 6095 esac 6096else 6097 enable_fast_install=yes 6098fi; 6099 6100echo "$as_me:$LINENO: checking host system type" >&5 6101echo $ECHO_N "checking host system type... $ECHO_C" >&6 6102if test "${ac_cv_host+set}" = set; then 6103 echo $ECHO_N "(cached) $ECHO_C" >&6 6104else 6105 ac_cv_host_alias=$host_alias 6106test -z "$ac_cv_host_alias" && 6107 ac_cv_host_alias=$ac_cv_build_alias 6108ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 6109 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 6110echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 6111 { (exit 1); exit 1; }; } 6112 6113fi 6114echo "$as_me:$LINENO: result: $ac_cv_host" >&5 6115echo "${ECHO_T}$ac_cv_host" >&6 6116host=$ac_cv_host 6117host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 6118host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 6119host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 6120 6121 6122echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 6123echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 6124if test "${lt_cv_path_SED+set}" = set; then 6125 echo $ECHO_N "(cached) $ECHO_C" >&6 6126else 6127 # Loop through the user's path and test for sed and gsed. 6128# Then use that list of sed's as ones to test for truncation. 6129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6130for as_dir in $PATH 6131do 6132 IFS=$as_save_IFS 6133 test -z "$as_dir" && as_dir=. 6134 for lt_ac_prog in sed gsed; do 6135 for ac_exec_ext in '' $ac_executable_extensions; do 6136 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 6137 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 6138 fi 6139 done 6140 done 6141done 6142lt_ac_max=0 6143lt_ac_count=0 6144# Add /usr/xpg4/bin/sed as it is typically found on Solaris 6145# along with /bin/sed that truncates output. 6146for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 6147 test ! -f $lt_ac_sed && continue 6148 cat /dev/null > conftest.in 6149 lt_ac_count=0 6150 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 6151 # Check for GNU sed and select it if it is found. 6152 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 6153 lt_cv_path_SED=$lt_ac_sed 6154 break 6155 fi 6156 while true; do 6157 cat conftest.in conftest.in >conftest.tmp 6158 mv conftest.tmp conftest.in 6159 cp conftest.in conftest.nl 6160 echo >>conftest.nl 6161 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 6162 cmp -s conftest.out conftest.nl || break 6163 # 10000 chars as input seems more than enough 6164 test $lt_ac_count -gt 10 && break 6165 lt_ac_count=`expr $lt_ac_count + 1` 6166 if test $lt_ac_count -gt $lt_ac_max; then 6167 lt_ac_max=$lt_ac_count 6168 lt_cv_path_SED=$lt_ac_sed 6169 fi 6170 done 6171done 6172 6173fi 6174 6175SED=$lt_cv_path_SED 6176echo "$as_me:$LINENO: result: $SED" >&5 6177echo "${ECHO_T}$SED" >&6 6178 6179 6180# Check whether --with-gnu-ld or --without-gnu-ld was given. 6181if test "${with_gnu_ld+set}" = set; then 6182 withval="$with_gnu_ld" 6183 test "$withval" = no || with_gnu_ld=yes 6184else 6185 with_gnu_ld=no 6186fi; 6187ac_prog=ld 6188if test "$GCC" = yes; then 6189 # Check if gcc -print-prog-name=ld gives a path. 6190 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 6191echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 6192 case $host in 6193 *-*-mingw*) 6194 # gcc leaves a trailing carriage return which upsets mingw 6195 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 6196 *) 6197 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 6198 esac 6199 case $ac_prog in 6200 # Accept absolute paths. 6201 [\\/]* | ?:[\\/]*) 6202 re_direlt='/[^/][^/]*/\.\./' 6203 # Canonicalize the pathname of ld 6204 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 6205 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 6206 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 6207 done 6208 test -z "$LD" && LD="$ac_prog" 6209 ;; 6210 "") 6211 # If it fails, then pretend we aren't using GCC. 6212 ac_prog=ld 6213 ;; 6214 *) 6215 # If it is relative, then search for the first ld in PATH. 6216 with_gnu_ld=unknown 6217 ;; 6218 esac 6219elif test "$with_gnu_ld" = yes; then 6220 echo "$as_me:$LINENO: checking for GNU ld" >&5 6221echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 6222else 6223 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 6224echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 6225fi 6226if test "${lt_cv_path_LD+set}" = set; then 6227 echo $ECHO_N "(cached) $ECHO_C" >&6 6228else 6229 if test -z "$LD"; then 6230 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6231 for ac_dir in $PATH; do 6232 IFS="$lt_save_ifs" 6233 test -z "$ac_dir" && ac_dir=. 6234 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 6235 lt_cv_path_LD="$ac_dir/$ac_prog" 6236 # Check to see if the program is GNU ld. I'd rather use --version, 6237 # but apparently some variants of GNU ld only accept -v. 6238 # Break only if it was the GNU/non-GNU ld that we prefer. 6239 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 6240 *GNU* | *'with BFD'*) 6241 test "$with_gnu_ld" != no && break 6242 ;; 6243 *) 6244 test "$with_gnu_ld" != yes && break 6245 ;; 6246 esac 6247 fi 6248 done 6249 IFS="$lt_save_ifs" 6250else 6251 lt_cv_path_LD="$LD" # Let the user override the test with a path. 6252fi 6253fi 6254 6255LD="$lt_cv_path_LD" 6256if test -n "$LD"; then 6257 echo "$as_me:$LINENO: result: $LD" >&5 6258echo "${ECHO_T}$LD" >&6 6259else 6260 echo "$as_me:$LINENO: result: no" >&5 6261echo "${ECHO_T}no" >&6 6262fi 6263test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 6264echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 6265 { (exit 1); exit 1; }; } 6266echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 6267echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 6268if test "${lt_cv_prog_gnu_ld+set}" = set; then 6269 echo $ECHO_N "(cached) $ECHO_C" >&6 6270else 6271 # I'd rather use --version here, but apparently some GNU lds only accept -v. 6272case `$LD -v 2>&1 </dev/null` in 6273*GNU* | *'with BFD'*) 6274 lt_cv_prog_gnu_ld=yes 6275 ;; 6276*) 6277 lt_cv_prog_gnu_ld=no 6278 ;; 6279esac 6280fi 6281echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 6282echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 6283with_gnu_ld=$lt_cv_prog_gnu_ld 6284 6285 6286echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 6287echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 6288if test "${lt_cv_ld_reload_flag+set}" = set; then 6289 echo $ECHO_N "(cached) $ECHO_C" >&6 6290else 6291 lt_cv_ld_reload_flag='-r' 6292fi 6293echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 6294echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 6295reload_flag=$lt_cv_ld_reload_flag 6296case $reload_flag in 6297"" | " "*) ;; 6298*) reload_flag=" $reload_flag" ;; 6299esac 6300reload_cmds='$LD$reload_flag -o $output$reload_objs' 6301case $host_os in 6302 darwin*) 6303 if test "$GCC" = yes; then 6304 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 6305 else 6306 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6307 fi 6308 ;; 6309esac 6310 6311echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 6312echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 6313if test "${lt_cv_path_NM+set}" = set; then 6314 echo $ECHO_N "(cached) $ECHO_C" >&6 6315else 6316 if test -n "$NM"; then 6317 # Let the user override the test. 6318 lt_cv_path_NM="$NM" 6319else 6320 lt_nm_to_check="${ac_tool_prefix}nm" 6321 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6322 lt_nm_to_check="$lt_nm_to_check nm" 6323 fi 6324 for lt_tmp_nm in $lt_nm_to_check; do 6325 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6326 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6327 IFS="$lt_save_ifs" 6328 test -z "$ac_dir" && ac_dir=. 6329 tmp_nm="$ac_dir/$lt_tmp_nm" 6330 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 6331 # Check to see if the nm accepts a BSD-compat flag. 6332 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 6333 # nm: unknown option "B" ignored 6334 # Tru64's nm complains that /dev/null is an invalid object file 6335 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 6336 */dev/null* | *'Invalid file or object type'*) 6337 lt_cv_path_NM="$tmp_nm -B" 6338 break 6339 ;; 6340 *) 6341 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 6342 */dev/null*) 6343 lt_cv_path_NM="$tmp_nm -p" 6344 break 6345 ;; 6346 *) 6347 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6348 continue # so that we can try to find one that supports BSD flags 6349 ;; 6350 esac 6351 ;; 6352 esac 6353 fi 6354 done 6355 IFS="$lt_save_ifs" 6356 done 6357 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 6358fi 6359fi 6360echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 6361echo "${ECHO_T}$lt_cv_path_NM" >&6 6362NM="$lt_cv_path_NM" 6363 6364echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 6365echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 6366if test "${lt_cv_deplibs_check_method+set}" = set; then 6367 echo $ECHO_N "(cached) $ECHO_C" >&6 6368else 6369 lt_cv_file_magic_cmd='$MAGIC_CMD' 6370lt_cv_file_magic_test_file= 6371lt_cv_deplibs_check_method='unknown' 6372# Need to set the preceding variable on all platforms that support 6373# interlibrary dependencies. 6374# 'none' -- dependencies not supported. 6375# `unknown' -- same as none, but documents that we really don't know. 6376# 'pass_all' -- all dependencies passed with no checks. 6377# 'test_compile' -- check by making test program. 6378# 'file_magic [[regex]]' -- check by looking for files in library path 6379# which responds to the $file_magic_cmd with a given extended regex. 6380# If you have `file' or equivalent on your system and you're not sure 6381# whether `pass_all' will *always* work, you probably want this one. 6382 6383case $host_os in 6384aix4* | aix5*) 6385 lt_cv_deplibs_check_method=pass_all 6386 ;; 6387 6388beos*) 6389 lt_cv_deplibs_check_method=pass_all 6390 ;; 6391 6392bsdi[45]*) 6393 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6394 lt_cv_file_magic_cmd='/usr/bin/file -L' 6395 lt_cv_file_magic_test_file=/shlib/libc.so 6396 ;; 6397 6398cygwin*) 6399 # func_win32_libid is a shell function defined in ltmain.sh 6400 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6401 lt_cv_file_magic_cmd='func_win32_libid' 6402 ;; 6403 6404mingw* | pw32*) 6405 # Base MSYS/MinGW do not provide the 'file' command needed by 6406 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 6407 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 6408 lt_cv_file_magic_cmd='$OBJDUMP -f' 6409 ;; 6410 6411darwin* | rhapsody*) 6412 lt_cv_deplibs_check_method=pass_all 6413 ;; 6414 6415freebsd* | kfreebsd*-gnu | dragonfly*) 6416 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 6417 case $host_cpu in 6418 i*86 ) 6419 # Not sure whether the presence of OpenBSD here was a mistake. 6420 # Let's accept both of them until this is cleared up. 6421 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6422 lt_cv_file_magic_cmd=/usr/bin/file 6423 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6424 ;; 6425 esac 6426 else 6427 lt_cv_deplibs_check_method=pass_all 6428 fi 6429 ;; 6430 6431gnu*) 6432 lt_cv_deplibs_check_method=pass_all 6433 ;; 6434 6435hpux10.20* | hpux11*) 6436 lt_cv_file_magic_cmd=/usr/bin/file 6437 case $host_cpu in 6438 ia64*) 6439 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6440 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6441 ;; 6442 hppa*64*) 6443 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' 6444 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6445 ;; 6446 *) 6447 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 6448 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6449 ;; 6450 esac 6451 ;; 6452 6453interix3*) 6454 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6455 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6456 ;; 6457 6458irix5* | irix6* | nonstopux*) 6459 case $LD in 6460 *-32|*"-32 ") libmagic=32-bit;; 6461 *-n32|*"-n32 ") libmagic=N32;; 6462 *-64|*"-64 ") libmagic=64-bit;; 6463 *) libmagic=never-match;; 6464 esac 6465 lt_cv_deplibs_check_method=pass_all 6466 ;; 6467 6468# This must be Linux ELF. 6469linux*) 6470 lt_cv_deplibs_check_method=pass_all 6471 ;; 6472 6473netbsd*) 6474 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 6475 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6476 else 6477 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6478 fi 6479 ;; 6480 6481newos6*) 6482 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6483 lt_cv_file_magic_cmd=/usr/bin/file 6484 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6485 ;; 6486 6487nto-qnx*) 6488 lt_cv_deplibs_check_method=unknown 6489 ;; 6490 6491openbsd*) 6492 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6493 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6494 else 6495 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6496 fi 6497 ;; 6498 6499osf3* | osf4* | osf5*) 6500 lt_cv_deplibs_check_method=pass_all 6501 ;; 6502 6503solaris*) 6504 lt_cv_deplibs_check_method=pass_all 6505 ;; 6506 6507sysv4 | sysv4.3*) 6508 case $host_vendor in 6509 motorola) 6510 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]' 6511 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6512 ;; 6513 ncr) 6514 lt_cv_deplibs_check_method=pass_all 6515 ;; 6516 sequent) 6517 lt_cv_file_magic_cmd='/bin/file' 6518 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6519 ;; 6520 sni) 6521 lt_cv_file_magic_cmd='/bin/file' 6522 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6523 lt_cv_file_magic_test_file=/lib/libc.so 6524 ;; 6525 siemens) 6526 lt_cv_deplibs_check_method=pass_all 6527 ;; 6528 pc) 6529 lt_cv_deplibs_check_method=pass_all 6530 ;; 6531 esac 6532 ;; 6533 6534sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6535 lt_cv_deplibs_check_method=pass_all 6536 ;; 6537esac 6538 6539fi 6540echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 6541echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 6542file_magic_cmd=$lt_cv_file_magic_cmd 6543deplibs_check_method=$lt_cv_deplibs_check_method 6544test -z "$deplibs_check_method" && deplibs_check_method=unknown 6545 6546 6547 6548 6549# If no C compiler was specified, use CC. 6550LTCC=${LTCC-"$CC"} 6551 6552# If no C compiler flags were specified, use CFLAGS. 6553LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6554 6555# Allow CC to be a program name with arguments. 6556compiler=$CC 6557 6558# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 6559if test "${enable_libtool_lock+set}" = set; then 6560 enableval="$enable_libtool_lock" 6561 6562fi; 6563test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6564 6565# Some flags need to be propagated to the compiler or linker for good 6566# libtool support. 6567case $host in 6568ia64-*-hpux*) 6569 # Find out which ABI we are using. 6570 echo 'int i;' > conftest.$ac_ext 6571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6572 (eval $ac_compile) 2>&5 6573 ac_status=$? 6574 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6575 (exit $ac_status); }; then 6576 case `/usr/bin/file conftest.$ac_objext` in 6577 *ELF-32*) 6578 HPUX_IA64_MODE="32" 6579 ;; 6580 *ELF-64*) 6581 HPUX_IA64_MODE="64" 6582 ;; 6583 esac 6584 fi 6585 rm -rf conftest* 6586 ;; 6587*-*-irix6*) 6588 # Find out which ABI we are using. 6589 echo '#line 6589 "configure"' > conftest.$ac_ext 6590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6591 (eval $ac_compile) 2>&5 6592 ac_status=$? 6593 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6594 (exit $ac_status); }; then 6595 if test "$lt_cv_prog_gnu_ld" = yes; then 6596 case `/usr/bin/file conftest.$ac_objext` in 6597 *32-bit*) 6598 LD="${LD-ld} -melf32bsmip" 6599 ;; 6600 *N32*) 6601 LD="${LD-ld} -melf32bmipn32" 6602 ;; 6603 *64-bit*) 6604 LD="${LD-ld} -melf64bmip" 6605 ;; 6606 esac 6607 else 6608 case `/usr/bin/file conftest.$ac_objext` in 6609 *32-bit*) 6610 LD="${LD-ld} -32" 6611 ;; 6612 *N32*) 6613 LD="${LD-ld} -n32" 6614 ;; 6615 *64-bit*) 6616 LD="${LD-ld} -64" 6617 ;; 6618 esac 6619 fi 6620 fi 6621 rm -rf conftest* 6622 ;; 6623 6624x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 6625 # Find out which ABI we are using. 6626 echo 'int i;' > conftest.$ac_ext 6627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6628 (eval $ac_compile) 2>&5 6629 ac_status=$? 6630 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6631 (exit $ac_status); }; then 6632 case `/usr/bin/file conftest.o` in 6633 *32-bit*) 6634 case $host in 6635 x86_64-*linux*) 6636 LD="${LD-ld} -m elf_i386" 6637 ;; 6638 ppc64-*linux*|powerpc64-*linux*) 6639 LD="${LD-ld} -m elf32ppclinux" 6640 ;; 6641 s390x-*linux*) 6642 LD="${LD-ld} -m elf_s390" 6643 ;; 6644 sparc64-*linux*) 6645 LD="${LD-ld} -m elf32_sparc" 6646 ;; 6647 esac 6648 ;; 6649 *64-bit*) 6650 case $host in 6651 x86_64-*linux*) 6652 LD="${LD-ld} -m elf_x86_64" 6653 ;; 6654 ppc*-*linux*|powerpc*-*linux*) 6655 LD="${LD-ld} -m elf64ppc" 6656 ;; 6657 s390*-*linux*) 6658 LD="${LD-ld} -m elf64_s390" 6659 ;; 6660 sparc*-*linux*) 6661 LD="${LD-ld} -m elf64_sparc" 6662 ;; 6663 esac 6664 ;; 6665 esac 6666 fi 6667 rm -rf conftest* 6668 ;; 6669 6670*-*-sco3.2v5*) 6671 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6672 SAVE_CFLAGS="$CFLAGS" 6673 CFLAGS="$CFLAGS -belf" 6674 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 6675echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 6676if test "${lt_cv_cc_needs_belf+set}" = set; then 6677 echo $ECHO_N "(cached) $ECHO_C" >&6 6678else 6679 ac_ext=c 6680ac_cpp='$CPP $CPPFLAGS' 6681ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6682ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6683ac_compiler_gnu=$ac_cv_c_compiler_gnu 6684 6685 cat >conftest.$ac_ext <<_ACEOF 6686/* confdefs.h. */ 6687_ACEOF 6688cat confdefs.h >>conftest.$ac_ext 6689cat >>conftest.$ac_ext <<_ACEOF 6690/* end confdefs.h. */ 6691 6692#ifdef F77_DUMMY_MAIN 6693 6694# ifdef __cplusplus 6695 extern "C" 6696# endif 6697 int F77_DUMMY_MAIN() { return 1; } 6698 6699#endif 6700int 6701main () 6702{ 6703 6704 ; 6705 return 0; 6706} 6707_ACEOF 6708rm -f conftest.$ac_objext conftest$ac_exeext 6709if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6710 (eval $ac_link) 2>conftest.er1 6711 ac_status=$? 6712 grep -v '^ *+' conftest.er1 >conftest.err 6713 rm -f conftest.er1 6714 cat conftest.err >&5 6715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6716 (exit $ac_status); } && 6717 { ac_try='test -z "$ac_c_werror_flag" 6718 || test ! -s conftest.err' 6719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6720 (eval $ac_try) 2>&5 6721 ac_status=$? 6722 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6723 (exit $ac_status); }; } && 6724 { ac_try='test -s conftest$ac_exeext' 6725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6726 (eval $ac_try) 2>&5 6727 ac_status=$? 6728 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6729 (exit $ac_status); }; }; then 6730 lt_cv_cc_needs_belf=yes 6731else 6732 echo "$as_me: failed program was:" >&5 6733sed 's/^/| /' conftest.$ac_ext >&5 6734 6735lt_cv_cc_needs_belf=no 6736fi 6737rm -f conftest.err conftest.$ac_objext \ 6738 conftest$ac_exeext conftest.$ac_ext 6739 ac_ext=c 6740ac_cpp='$CPP $CPPFLAGS' 6741ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6742ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6743ac_compiler_gnu=$ac_cv_c_compiler_gnu 6744 6745fi 6746echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 6747echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 6748 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6749 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6750 CFLAGS="$SAVE_CFLAGS" 6751 fi 6752 ;; 6753sparc*-*solaris*) 6754 # Find out which ABI we are using. 6755 echo 'int i;' > conftest.$ac_ext 6756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6757 (eval $ac_compile) 2>&5 6758 ac_status=$? 6759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6760 (exit $ac_status); }; then 6761 case `/usr/bin/file conftest.o` in 6762 *64-bit*) 6763 case $lt_cv_prog_gnu_ld in 6764 yes*) LD="${LD-ld} -m elf64_sparc" ;; 6765 *) LD="${LD-ld} -64" ;; 6766 esac 6767 ;; 6768 esac 6769 fi 6770 rm -rf conftest* 6771 ;; 6772 6773 6774esac 6775 6776need_locks="$enable_libtool_lock" 6777 6778 6779ac_ext=c 6780ac_cpp='$CPP $CPPFLAGS' 6781ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6782ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6783ac_compiler_gnu=$ac_cv_c_compiler_gnu 6784echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 6785echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 6786# On Suns, sometimes $CPP names a directory. 6787if test -n "$CPP" && test -d "$CPP"; then 6788 CPP= 6789fi 6790if test -z "$CPP"; then 6791 if test "${ac_cv_prog_CPP+set}" = set; then 6792 echo $ECHO_N "(cached) $ECHO_C" >&6 6793else 6794 # Double quotes because CPP needs to be expanded 6795 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 6796 do 6797 ac_preproc_ok=false 6798for ac_c_preproc_warn_flag in '' yes 6799do 6800 # Use a header file that comes with gcc, so configuring glibc 6801 # with a fresh cross-compiler works. 6802 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6803 # <limits.h> exists even on freestanding compilers. 6804 # On the NeXT, cc -E runs the code through the compiler's parser, 6805 # not just through cpp. "Syntax error" is here to catch this case. 6806 cat >conftest.$ac_ext <<_ACEOF 6807/* confdefs.h. */ 6808_ACEOF 6809cat confdefs.h >>conftest.$ac_ext 6810cat >>conftest.$ac_ext <<_ACEOF 6811/* end confdefs.h. */ 6812#ifdef __STDC__ 6813# include <limits.h> 6814#else 6815# include <assert.h> 6816#endif 6817 Syntax error 6818_ACEOF 6819if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6820 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6821 ac_status=$? 6822 grep -v '^ *+' conftest.er1 >conftest.err 6823 rm -f conftest.er1 6824 cat conftest.err >&5 6825 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6826 (exit $ac_status); } >/dev/null; then 6827 if test -s conftest.err; then 6828 ac_cpp_err=$ac_c_preproc_warn_flag 6829 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6830 else 6831 ac_cpp_err= 6832 fi 6833else 6834 ac_cpp_err=yes 6835fi 6836if test -z "$ac_cpp_err"; then 6837 : 6838else 6839 echo "$as_me: failed program was:" >&5 6840sed 's/^/| /' conftest.$ac_ext >&5 6841 6842 # Broken: fails on valid input. 6843continue 6844fi 6845rm -f conftest.err conftest.$ac_ext 6846 6847 # OK, works on sane cases. Now check whether non-existent headers 6848 # can be detected and how. 6849 cat >conftest.$ac_ext <<_ACEOF 6850/* confdefs.h. */ 6851_ACEOF 6852cat confdefs.h >>conftest.$ac_ext 6853cat >>conftest.$ac_ext <<_ACEOF 6854/* end confdefs.h. */ 6855#include <ac_nonexistent.h> 6856_ACEOF 6857if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6858 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6859 ac_status=$? 6860 grep -v '^ *+' conftest.er1 >conftest.err 6861 rm -f conftest.er1 6862 cat conftest.err >&5 6863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6864 (exit $ac_status); } >/dev/null; then 6865 if test -s conftest.err; then 6866 ac_cpp_err=$ac_c_preproc_warn_flag 6867 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6868 else 6869 ac_cpp_err= 6870 fi 6871else 6872 ac_cpp_err=yes 6873fi 6874if test -z "$ac_cpp_err"; then 6875 # Broken: success on invalid input. 6876continue 6877else 6878 echo "$as_me: failed program was:" >&5 6879sed 's/^/| /' conftest.$ac_ext >&5 6880 6881 # Passes both tests. 6882ac_preproc_ok=: 6883break 6884fi 6885rm -f conftest.err conftest.$ac_ext 6886 6887done 6888# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6889rm -f conftest.err conftest.$ac_ext 6890if $ac_preproc_ok; then 6891 break 6892fi 6893 6894 done 6895 ac_cv_prog_CPP=$CPP 6896 6897fi 6898 CPP=$ac_cv_prog_CPP 6899else 6900 ac_cv_prog_CPP=$CPP 6901fi 6902echo "$as_me:$LINENO: result: $CPP" >&5 6903echo "${ECHO_T}$CPP" >&6 6904ac_preproc_ok=false 6905for ac_c_preproc_warn_flag in '' yes 6906do 6907 # Use a header file that comes with gcc, so configuring glibc 6908 # with a fresh cross-compiler works. 6909 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6910 # <limits.h> exists even on freestanding compilers. 6911 # On the NeXT, cc -E runs the code through the compiler's parser, 6912 # not just through cpp. "Syntax error" is here to catch this case. 6913 cat >conftest.$ac_ext <<_ACEOF 6914/* confdefs.h. */ 6915_ACEOF 6916cat confdefs.h >>conftest.$ac_ext 6917cat >>conftest.$ac_ext <<_ACEOF 6918/* end confdefs.h. */ 6919#ifdef __STDC__ 6920# include <limits.h> 6921#else 6922# include <assert.h> 6923#endif 6924 Syntax error 6925_ACEOF 6926if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6927 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6928 ac_status=$? 6929 grep -v '^ *+' conftest.er1 >conftest.err 6930 rm -f conftest.er1 6931 cat conftest.err >&5 6932 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6933 (exit $ac_status); } >/dev/null; then 6934 if test -s conftest.err; then 6935 ac_cpp_err=$ac_c_preproc_warn_flag 6936 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6937 else 6938 ac_cpp_err= 6939 fi 6940else 6941 ac_cpp_err=yes 6942fi 6943if test -z "$ac_cpp_err"; then 6944 : 6945else 6946 echo "$as_me: failed program was:" >&5 6947sed 's/^/| /' conftest.$ac_ext >&5 6948 6949 # Broken: fails on valid input. 6950continue 6951fi 6952rm -f conftest.err conftest.$ac_ext 6953 6954 # OK, works on sane cases. Now check whether non-existent headers 6955 # can be detected and how. 6956 cat >conftest.$ac_ext <<_ACEOF 6957/* confdefs.h. */ 6958_ACEOF 6959cat confdefs.h >>conftest.$ac_ext 6960cat >>conftest.$ac_ext <<_ACEOF 6961/* end confdefs.h. */ 6962#include <ac_nonexistent.h> 6963_ACEOF 6964if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6965 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6966 ac_status=$? 6967 grep -v '^ *+' conftest.er1 >conftest.err 6968 rm -f conftest.er1 6969 cat conftest.err >&5 6970 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6971 (exit $ac_status); } >/dev/null; then 6972 if test -s conftest.err; then 6973 ac_cpp_err=$ac_c_preproc_warn_flag 6974 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6975 else 6976 ac_cpp_err= 6977 fi 6978else 6979 ac_cpp_err=yes 6980fi 6981if test -z "$ac_cpp_err"; then 6982 # Broken: success on invalid input. 6983continue 6984else 6985 echo "$as_me: failed program was:" >&5 6986sed 's/^/| /' conftest.$ac_ext >&5 6987 6988 # Passes both tests. 6989ac_preproc_ok=: 6990break 6991fi 6992rm -f conftest.err conftest.$ac_ext 6993 6994done 6995# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6996rm -f conftest.err conftest.$ac_ext 6997if $ac_preproc_ok; then 6998 : 6999else 7000 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 7001See \`config.log' for more details." >&5 7002echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 7003See \`config.log' for more details." >&2;} 7004 { (exit 1); exit 1; }; } 7005fi 7006 7007ac_ext=c 7008ac_cpp='$CPP $CPPFLAGS' 7009ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7010ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7011ac_compiler_gnu=$ac_cv_c_compiler_gnu 7012 7013 7014echo "$as_me:$LINENO: checking for ANSI C header files" >&5 7015echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 7016if test "${ac_cv_header_stdc+set}" = set; then 7017 echo $ECHO_N "(cached) $ECHO_C" >&6 7018else 7019 cat >conftest.$ac_ext <<_ACEOF 7020/* confdefs.h. */ 7021_ACEOF 7022cat confdefs.h >>conftest.$ac_ext 7023cat >>conftest.$ac_ext <<_ACEOF 7024/* end confdefs.h. */ 7025#include <stdlib.h> 7026#include <stdarg.h> 7027#include <string.h> 7028#include <float.h> 7029 7030#ifdef F77_DUMMY_MAIN 7031 7032# ifdef __cplusplus 7033 extern "C" 7034# endif 7035 int F77_DUMMY_MAIN() { return 1; } 7036 7037#endif 7038int 7039main () 7040{ 7041 7042 ; 7043 return 0; 7044} 7045_ACEOF 7046rm -f conftest.$ac_objext 7047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7048 (eval $ac_compile) 2>conftest.er1 7049 ac_status=$? 7050 grep -v '^ *+' conftest.er1 >conftest.err 7051 rm -f conftest.er1 7052 cat conftest.err >&5 7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7054 (exit $ac_status); } && 7055 { ac_try='test -z "$ac_c_werror_flag" 7056 || test ! -s conftest.err' 7057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7058 (eval $ac_try) 2>&5 7059 ac_status=$? 7060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7061 (exit $ac_status); }; } && 7062 { ac_try='test -s conftest.$ac_objext' 7063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7064 (eval $ac_try) 2>&5 7065 ac_status=$? 7066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7067 (exit $ac_status); }; }; then 7068 ac_cv_header_stdc=yes 7069else 7070 echo "$as_me: failed program was:" >&5 7071sed 's/^/| /' conftest.$ac_ext >&5 7072 7073ac_cv_header_stdc=no 7074fi 7075rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7076 7077if test $ac_cv_header_stdc = yes; then 7078 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7079 cat >conftest.$ac_ext <<_ACEOF 7080/* confdefs.h. */ 7081_ACEOF 7082cat confdefs.h >>conftest.$ac_ext 7083cat >>conftest.$ac_ext <<_ACEOF 7084/* end confdefs.h. */ 7085#include <string.h> 7086 7087_ACEOF 7088if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7089 $EGREP "memchr" >/dev/null 2>&1; then 7090 : 7091else 7092 ac_cv_header_stdc=no 7093fi 7094rm -f conftest* 7095 7096fi 7097 7098if test $ac_cv_header_stdc = yes; then 7099 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7100 cat >conftest.$ac_ext <<_ACEOF 7101/* confdefs.h. */ 7102_ACEOF 7103cat confdefs.h >>conftest.$ac_ext 7104cat >>conftest.$ac_ext <<_ACEOF 7105/* end confdefs.h. */ 7106#include <stdlib.h> 7107 7108_ACEOF 7109if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7110 $EGREP "free" >/dev/null 2>&1; then 7111 : 7112else 7113 ac_cv_header_stdc=no 7114fi 7115rm -f conftest* 7116 7117fi 7118 7119if test $ac_cv_header_stdc = yes; then 7120 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7121 if test "$cross_compiling" = yes; then 7122 : 7123else 7124 cat >conftest.$ac_ext <<_ACEOF 7125/* confdefs.h. */ 7126_ACEOF 7127cat confdefs.h >>conftest.$ac_ext 7128cat >>conftest.$ac_ext <<_ACEOF 7129/* end confdefs.h. */ 7130#include <ctype.h> 7131#if ((' ' & 0x0FF) == 0x020) 7132# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7133# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7134#else 7135# define ISLOWER(c) \ 7136 (('a' <= (c) && (c) <= 'i') \ 7137 || ('j' <= (c) && (c) <= 'r') \ 7138 || ('s' <= (c) && (c) <= 'z')) 7139# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7140#endif 7141 7142#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7143int 7144main () 7145{ 7146 int i; 7147 for (i = 0; i < 256; i++) 7148 if (XOR (islower (i), ISLOWER (i)) 7149 || toupper (i) != TOUPPER (i)) 7150 exit(2); 7151 exit (0); 7152} 7153_ACEOF 7154rm -f conftest$ac_exeext 7155if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7156 (eval $ac_link) 2>&5 7157 ac_status=$? 7158 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7159 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7161 (eval $ac_try) 2>&5 7162 ac_status=$? 7163 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7164 (exit $ac_status); }; }; then 7165 : 7166else 7167 echo "$as_me: program exited with status $ac_status" >&5 7168echo "$as_me: failed program was:" >&5 7169sed 's/^/| /' conftest.$ac_ext >&5 7170 7171( exit $ac_status ) 7172ac_cv_header_stdc=no 7173fi 7174rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7175fi 7176fi 7177fi 7178echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 7179echo "${ECHO_T}$ac_cv_header_stdc" >&6 7180if test $ac_cv_header_stdc = yes; then 7181 7182cat >>confdefs.h <<\_ACEOF 7183#define STDC_HEADERS 1 7184_ACEOF 7185 7186fi 7187 7188# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7199 inttypes.h stdint.h unistd.h 7200do 7201as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7202echo "$as_me:$LINENO: checking for $ac_header" >&5 7203echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7204if eval "test \"\${$as_ac_Header+set}\" = set"; then 7205 echo $ECHO_N "(cached) $ECHO_C" >&6 7206else 7207 cat >conftest.$ac_ext <<_ACEOF 7208/* confdefs.h. */ 7209_ACEOF 7210cat confdefs.h >>conftest.$ac_ext 7211cat >>conftest.$ac_ext <<_ACEOF 7212/* end confdefs.h. */ 7213$ac_includes_default 7214 7215#include <$ac_header> 7216_ACEOF 7217rm -f conftest.$ac_objext 7218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7219 (eval $ac_compile) 2>conftest.er1 7220 ac_status=$? 7221 grep -v '^ *+' conftest.er1 >conftest.err 7222 rm -f conftest.er1 7223 cat conftest.err >&5 7224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7225 (exit $ac_status); } && 7226 { ac_try='test -z "$ac_c_werror_flag" 7227 || test ! -s conftest.err' 7228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7229 (eval $ac_try) 2>&5 7230 ac_status=$? 7231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7232 (exit $ac_status); }; } && 7233 { ac_try='test -s conftest.$ac_objext' 7234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7235 (eval $ac_try) 2>&5 7236 ac_status=$? 7237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7238 (exit $ac_status); }; }; then 7239 eval "$as_ac_Header=yes" 7240else 7241 echo "$as_me: failed program was:" >&5 7242sed 's/^/| /' conftest.$ac_ext >&5 7243 7244eval "$as_ac_Header=no" 7245fi 7246rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7247fi 7248echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 7249echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7250if test `eval echo '${'$as_ac_Header'}'` = yes; then 7251 cat >>confdefs.h <<_ACEOF 7252#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7253_ACEOF 7254 7255fi 7256 7257done 7258 7259 7260 7261for ac_header in dlfcn.h 7262do 7263as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7264if eval "test \"\${$as_ac_Header+set}\" = set"; then 7265 echo "$as_me:$LINENO: checking for $ac_header" >&5 7266echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7267if eval "test \"\${$as_ac_Header+set}\" = set"; then 7268 echo $ECHO_N "(cached) $ECHO_C" >&6 7269fi 7270echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 7271echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7272else 7273 # Is the header compilable? 7274echo "$as_me:$LINENO: checking $ac_header usability" >&5 7275echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 7276cat >conftest.$ac_ext <<_ACEOF 7277/* confdefs.h. */ 7278_ACEOF 7279cat confdefs.h >>conftest.$ac_ext 7280cat >>conftest.$ac_ext <<_ACEOF 7281/* end confdefs.h. */ 7282$ac_includes_default 7283#include <$ac_header> 7284_ACEOF 7285rm -f conftest.$ac_objext 7286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7287 (eval $ac_compile) 2>conftest.er1 7288 ac_status=$? 7289 grep -v '^ *+' conftest.er1 >conftest.err 7290 rm -f conftest.er1 7291 cat conftest.err >&5 7292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7293 (exit $ac_status); } && 7294 { ac_try='test -z "$ac_c_werror_flag" 7295 || test ! -s conftest.err' 7296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7297 (eval $ac_try) 2>&5 7298 ac_status=$? 7299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7300 (exit $ac_status); }; } && 7301 { ac_try='test -s conftest.$ac_objext' 7302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7303 (eval $ac_try) 2>&5 7304 ac_status=$? 7305 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7306 (exit $ac_status); }; }; then 7307 ac_header_compiler=yes 7308else 7309 echo "$as_me: failed program was:" >&5 7310sed 's/^/| /' conftest.$ac_ext >&5 7311 7312ac_header_compiler=no 7313fi 7314rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7315echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7316echo "${ECHO_T}$ac_header_compiler" >&6 7317 7318# Is the header present? 7319echo "$as_me:$LINENO: checking $ac_header presence" >&5 7320echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 7321cat >conftest.$ac_ext <<_ACEOF 7322/* confdefs.h. */ 7323_ACEOF 7324cat confdefs.h >>conftest.$ac_ext 7325cat >>conftest.$ac_ext <<_ACEOF 7326/* end confdefs.h. */ 7327#include <$ac_header> 7328_ACEOF 7329if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 7330 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7331 ac_status=$? 7332 grep -v '^ *+' conftest.er1 >conftest.err 7333 rm -f conftest.er1 7334 cat conftest.err >&5 7335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7336 (exit $ac_status); } >/dev/null; then 7337 if test -s conftest.err; then 7338 ac_cpp_err=$ac_c_preproc_warn_flag 7339 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 7340 else 7341 ac_cpp_err= 7342 fi 7343else 7344 ac_cpp_err=yes 7345fi 7346if test -z "$ac_cpp_err"; then 7347 ac_header_preproc=yes 7348else 7349 echo "$as_me: failed program was:" >&5 7350sed 's/^/| /' conftest.$ac_ext >&5 7351 7352 ac_header_preproc=no 7353fi 7354rm -f conftest.err conftest.$ac_ext 7355echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7356echo "${ECHO_T}$ac_header_preproc" >&6 7357 7358# So? What about this header? 7359case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 7360 yes:no: ) 7361 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 7362echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 7363 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 7364echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 7365 ac_header_preproc=yes 7366 ;; 7367 no:yes:* ) 7368 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 7369echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 7370 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 7371echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 7372 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 7373echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 7374 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 7375echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 7376 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 7377echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 7378 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 7379echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 7380 ( 7381 cat <<\_ASBOX 7382## --------------------------------------------------------------- ## 7383## Report this to http://projects.coin-or.org/BuildTools/newticket ## 7384## --------------------------------------------------------------- ## 7385_ASBOX 7386 ) | 7387 sed "s/^/$as_me: WARNING: /" >&2 7388 ;; 7389esac 7390echo "$as_me:$LINENO: checking for $ac_header" >&5 7391echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7392if eval "test \"\${$as_ac_Header+set}\" = set"; then 7393 echo $ECHO_N "(cached) $ECHO_C" >&6 7394else 7395 eval "$as_ac_Header=\$ac_header_preproc" 7396fi 7397echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 7398echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7399 7400fi 7401if test `eval echo '${'$as_ac_Header'}'` = yes; then 7402 cat >>confdefs.h <<_ACEOF 7403#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7404_ACEOF 7405 7406fi 7407 7408done 7409 7410ac_ext=cc 7411ac_cpp='$CXXCPP $CPPFLAGS' 7412ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7413ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7414ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7415if test -n "$ac_tool_prefix"; then 7416 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 7417 do 7418 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7419set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7420echo "$as_me:$LINENO: checking for $ac_word" >&5 7421echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7422if test "${ac_cv_prog_CXX+set}" = set; then 7423 echo $ECHO_N "(cached) $ECHO_C" >&6 7424else 7425 if test -n "$CXX"; then 7426 ac_cv_prog_CXX="$CXX" # Let the user override the test. 7427else 7428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7429for as_dir in $PATH 7430do 7431 IFS=$as_save_IFS 7432 test -z "$as_dir" && as_dir=. 7433 for ac_exec_ext in '' $ac_executable_extensions; do 7434 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7435 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 7436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7437 break 2 7438 fi 7439done 7440done 7441 7442fi 7443fi 7444CXX=$ac_cv_prog_CXX 7445if test -n "$CXX"; then 7446 echo "$as_me:$LINENO: result: $CXX" >&5 7447echo "${ECHO_T}$CXX" >&6 7448else 7449 echo "$as_me:$LINENO: result: no" >&5 7450echo "${ECHO_T}no" >&6 7451fi 7452 7453 test -n "$CXX" && break 7454 done 7455fi 7456if test -z "$CXX"; then 7457 ac_ct_CXX=$CXX 7458 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 7459do 7460 # Extract the first word of "$ac_prog", so it can be a program name with args. 7461set dummy $ac_prog; ac_word=$2 7462echo "$as_me:$LINENO: checking for $ac_word" >&5 7463echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7464if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 7465 echo $ECHO_N "(cached) $ECHO_C" >&6 7466else 7467 if test -n "$ac_ct_CXX"; then 7468 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 7469else 7470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7471for as_dir in $PATH 7472do 7473 IFS=$as_save_IFS 7474 test -z "$as_dir" && as_dir=. 7475 for ac_exec_ext in '' $ac_executable_extensions; do 7476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7477 ac_cv_prog_ac_ct_CXX="$ac_prog" 7478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7479 break 2 7480 fi 7481done 7482done 7483 7484fi 7485fi 7486ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 7487if test -n "$ac_ct_CXX"; then 7488 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 7489echo "${ECHO_T}$ac_ct_CXX" >&6 7490else 7491 echo "$as_me:$LINENO: result: no" >&5 7492echo "${ECHO_T}no" >&6 7493fi 7494 7495 test -n "$ac_ct_CXX" && break 7496done 7497test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 7498 7499 CXX=$ac_ct_CXX 7500fi 7501 7502 7503# Provide some information about the compiler. 7504echo "$as_me:$LINENO:" \ 7505 "checking for C++ compiler version" >&5 7506ac_compiler=`set X $ac_compile; echo $2` 7507{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 7508 (eval $ac_compiler --version </dev/null >&5) 2>&5 7509 ac_status=$? 7510 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7511 (exit $ac_status); } 7512{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 7513 (eval $ac_compiler -v </dev/null >&5) 2>&5 7514 ac_status=$? 7515 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7516 (exit $ac_status); } 7517{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 7518 (eval $ac_compiler -V </dev/null >&5) 2>&5 7519 ac_status=$? 7520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7521 (exit $ac_status); } 7522 7523echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 7524echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 7525if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 7526 echo $ECHO_N "(cached) $ECHO_C" >&6 7527else 7528 cat >conftest.$ac_ext <<_ACEOF 7529/* confdefs.h. */ 7530_ACEOF 7531cat confdefs.h >>conftest.$ac_ext 7532cat >>conftest.$ac_ext <<_ACEOF 7533/* end confdefs.h. */ 7534 7535#ifdef F77_DUMMY_MAIN 7536 7537# ifdef __cplusplus 7538 extern "C" 7539# endif 7540 int F77_DUMMY_MAIN() { return 1; } 7541 7542#endif 7543int 7544main () 7545{ 7546#ifndef __GNUC__ 7547 choke me 7548#endif 7549 7550 ; 7551 return 0; 7552} 7553_ACEOF 7554rm -f conftest.$ac_objext 7555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7556 (eval $ac_compile) 2>conftest.er1 7557 ac_status=$? 7558 grep -v '^ *+' conftest.er1 >conftest.err 7559 rm -f conftest.er1 7560 cat conftest.err >&5 7561 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7562 (exit $ac_status); } && 7563 { ac_try='test -z "$ac_cxx_werror_flag" 7564 || test ! -s conftest.err' 7565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7566 (eval $ac_try) 2>&5 7567 ac_status=$? 7568 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7569 (exit $ac_status); }; } && 7570 { ac_try='test -s conftest.$ac_objext' 7571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7572 (eval $ac_try) 2>&5 7573 ac_status=$? 7574 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7575 (exit $ac_status); }; }; then 7576 ac_compiler_gnu=yes 7577else 7578 echo "$as_me: failed program was:" >&5 7579sed 's/^/| /' conftest.$ac_ext >&5 7580 7581ac_compiler_gnu=no 7582fi 7583rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7584ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 7585 7586fi 7587echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 7588echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 7589GXX=`test $ac_compiler_gnu = yes && echo yes` 7590ac_test_CXXFLAGS=${CXXFLAGS+set} 7591ac_save_CXXFLAGS=$CXXFLAGS 7592CXXFLAGS="-g" 7593echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 7594echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 7595if test "${ac_cv_prog_cxx_g+set}" = set; then 7596 echo $ECHO_N "(cached) $ECHO_C" >&6 7597else 7598 cat >conftest.$ac_ext <<_ACEOF 7599/* confdefs.h. */ 7600_ACEOF 7601cat confdefs.h >>conftest.$ac_ext 7602cat >>conftest.$ac_ext <<_ACEOF 7603/* end confdefs.h. */ 7604 7605#ifdef F77_DUMMY_MAIN 7606 7607# ifdef __cplusplus 7608 extern "C" 7609# endif 7610 int F77_DUMMY_MAIN() { return 1; } 7611 7612#endif 7613int 7614main () 7615{ 7616 7617 ; 7618 return 0; 7619} 7620_ACEOF 7621rm -f conftest.$ac_objext 7622if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7623 (eval $ac_compile) 2>conftest.er1 7624 ac_status=$? 7625 grep -v '^ *+' conftest.er1 >conftest.err 7626 rm -f conftest.er1 7627 cat conftest.err >&5 7628 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7629 (exit $ac_status); } && 7630 { ac_try='test -z "$ac_cxx_werror_flag" 7631 || test ! -s conftest.err' 7632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7633 (eval $ac_try) 2>&5 7634 ac_status=$? 7635 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7636 (exit $ac_status); }; } && 7637 { ac_try='test -s conftest.$ac_objext' 7638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7639 (eval $ac_try) 2>&5 7640 ac_status=$? 7641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7642 (exit $ac_status); }; }; then 7643 ac_cv_prog_cxx_g=yes 7644else 7645 echo "$as_me: failed program was:" >&5 7646sed 's/^/| /' conftest.$ac_ext >&5 7647 7648ac_cv_prog_cxx_g=no 7649fi 7650rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7651fi 7652echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 7653echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 7654if test "$ac_test_CXXFLAGS" = set; then 7655 CXXFLAGS=$ac_save_CXXFLAGS 7656elif test $ac_cv_prog_cxx_g = yes; then 7657 if test "$GXX" = yes; then 7658 CXXFLAGS="-g -O2" 7659 else 7660 CXXFLAGS="-g" 7661 fi 7662else 7663 if test "$GXX" = yes; then 7664 CXXFLAGS="-O2" 7665 else 7666 CXXFLAGS= 7667 fi 7668fi 7669for ac_declaration in \ 7670 '' \ 7671 'extern "C" void std::exit (int) throw (); using std::exit;' \ 7672 'extern "C" void std::exit (int); using std::exit;' \ 7673 'extern "C" void exit (int) throw ();' \ 7674 'extern "C" void exit (int);' \ 7675 'void exit (int);' 7676do 7677 cat >conftest.$ac_ext <<_ACEOF 7678/* confdefs.h. */ 7679_ACEOF 7680cat confdefs.h >>conftest.$ac_ext 7681cat >>conftest.$ac_ext <<_ACEOF 7682/* end confdefs.h. */ 7683$ac_declaration 7684#include <stdlib.h> 7685#ifdef F77_DUMMY_MAIN 7686 7687# ifdef __cplusplus 7688 extern "C" 7689# endif 7690 int F77_DUMMY_MAIN() { return 1; } 7691 7692#endif 7693int 7694main () 7695{ 7696exit (42); 7697 ; 7698 return 0; 7699} 7700_ACEOF 7701rm -f conftest.$ac_objext 7702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7703 (eval $ac_compile) 2>conftest.er1 7704 ac_status=$? 7705 grep -v '^ *+' conftest.er1 >conftest.err 7706 rm -f conftest.er1 7707 cat conftest.err >&5 7708 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7709 (exit $ac_status); } && 7710 { ac_try='test -z "$ac_cxx_werror_flag" 7711 || test ! -s conftest.err' 7712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7713 (eval $ac_try) 2>&5 7714 ac_status=$? 7715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7716 (exit $ac_status); }; } && 7717 { ac_try='test -s conftest.$ac_objext' 7718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7719 (eval $ac_try) 2>&5 7720 ac_status=$? 7721 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7722 (exit $ac_status); }; }; then 7723 : 7724else 7725 echo "$as_me: failed program was:" >&5 7726sed 's/^/| /' conftest.$ac_ext >&5 7727 7728continue 7729fi 7730rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7731 cat >conftest.$ac_ext <<_ACEOF 7732/* confdefs.h. */ 7733_ACEOF 7734cat confdefs.h >>conftest.$ac_ext 7735cat >>conftest.$ac_ext <<_ACEOF 7736/* end confdefs.h. */ 7737$ac_declaration 7738#ifdef F77_DUMMY_MAIN 7739 7740# ifdef __cplusplus 7741 extern "C" 7742# endif 7743 int F77_DUMMY_MAIN() { return 1; } 7744 7745#endif 7746int 7747main () 7748{ 7749exit (42); 7750 ; 7751 return 0; 7752} 7753_ACEOF 7754rm -f conftest.$ac_objext 7755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7756 (eval $ac_compile) 2>conftest.er1 7757 ac_status=$? 7758 grep -v '^ *+' conftest.er1 >conftest.err 7759 rm -f conftest.er1 7760 cat conftest.err >&5 7761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7762 (exit $ac_status); } && 7763 { ac_try='test -z "$ac_cxx_werror_flag" 7764 || test ! -s conftest.err' 7765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7766 (eval $ac_try) 2>&5 7767 ac_status=$? 7768 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7769 (exit $ac_status); }; } && 7770 { ac_try='test -s conftest.$ac_objext' 7771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7772 (eval $ac_try) 2>&5 7773 ac_status=$? 7774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7775 (exit $ac_status); }; }; then 7776 break 7777else 7778 echo "$as_me: failed program was:" >&5 7779sed 's/^/| /' conftest.$ac_ext >&5 7780 7781fi 7782rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7783done 7784rm -f conftest* 7785if test -n "$ac_declaration"; then 7786 echo '#ifdef __cplusplus' >>confdefs.h 7787 echo $ac_declaration >>confdefs.h 7788 echo '#endif' >>confdefs.h 7789fi 7790 7791ac_ext=cc 7792ac_cpp='$CXXCPP $CPPFLAGS' 7793ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7794ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7795ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7796 7797depcc="$CXX" am_compiler_list= 7798 7799echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 7800echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 7801if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 7802 echo $ECHO_N "(cached) $ECHO_C" >&6 7803else 7804 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 7805 # We make a subdir and do the tests there. Otherwise we can end up 7806 # making bogus files that we don't know about and never remove. For 7807 # instance it was reported that on HP-UX the gcc test will end up 7808 # making a dummy file named `D' -- because `-MD' means `put the output 7809 # in D'. 7810 mkdir conftest.dir 7811 # Copy depcomp to subdir because otherwise we won't find it if we're 7812 # using a relative directory. 7813 cp "$am_depcomp" conftest.dir 7814 cd conftest.dir 7815 # We will build objects and dependencies in a subdirectory because 7816 # it helps to detect inapplicable dependency modes. For instance 7817 # both Tru64's cc and ICC support -MD to output dependencies as a 7818 # side effect of compilation, but ICC will put the dependencies in 7819 # the current directory while Tru64 will put them in the object 7820 # directory. 7821 mkdir sub 7822 7823 am_cv_CXX_dependencies_compiler_type=none 7824 if test "$am_compiler_list" = ""; then 7825 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 7826 fi 7827 for depmode in $am_compiler_list; do 7828 # Setup a source with many dependencies, because some compilers 7829 # like to wrap large dependency lists on column 80 (with \), and 7830 # we should not choose a depcomp mode which is confused by this. 7831 # 7832 # We need to recreate these files for each test, as the compiler may 7833 # overwrite some of them when testing with obscure command lines. 7834 # This happens at least with the AIX C compiler. 7835 : > sub/conftest.c 7836 for i in 1 2 3 4 5 6; do 7837 echo '#include "conftst'$i'.h"' >> sub/conftest.c 7838 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 7839 # Solaris 8's {/usr,}/bin/sh. 7840 touch sub/conftst$i.h 7841 done 7842 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 7843 7844 case $depmode in 7845 nosideeffect) 7846 # after this tag, mechanisms are not by side-effect, so they'll 7847 # only be used when explicitly requested 7848 if test "x$enable_dependency_tracking" = xyes; then 7849 continue 7850 else 7851 break 7852 fi 7853 ;; 7854 none) break ;; 7855 esac 7856 # We check with `-c' and `-o' for the sake of the "dashmstdout" 7857 # mode. It turns out that the SunPro C++ compiler does not properly 7858 # handle `-M -o', and we need to detect this. 7859 if depmode=$depmode \ 7860 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 7861 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 7862 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 7863 >/dev/null 2>conftest.err && 7864 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 7865 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 7866 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 7867 # icc doesn't choke on unknown options, it will just issue warnings 7868 # or remarks (even with -Werror). So we grep stderr for any message 7869 # that says an option was ignored or not supported. 7870 # When given -MP, icc 7.0 and 7.1 complain thusly: 7871 # icc: Command line warning: ignoring option '-M'; no argument required 7872 # The diagnosis changed in icc 8.0: 7873 # icc: Command line remark: option '-MP' not supported 7874 if (grep 'ignoring option' conftest.err || 7875 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 7876 am_cv_CXX_dependencies_compiler_type=$depmode 7877 break 7878 fi 7879 fi 7880 done 7881 7882 cd .. 7883 rm -rf conftest.dir 7884else 7885 am_cv_CXX_dependencies_compiler_type=none 7886fi 7887 7888fi 7889echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 7890echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 7891CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 7892 7893 7894 7895if 7896 test "x$enable_dependency_tracking" != xno \ 7897 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 7898 am__fastdepCXX_TRUE= 7899 am__fastdepCXX_FALSE='#' 7900else 7901 am__fastdepCXX_TRUE='#' 7902 am__fastdepCXX_FALSE= 7903fi 7904 7905 7906 7907 7908if test -n "$CXX" && ( test "X$CXX" != "Xno" && 7909 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 7910 (test "X$CXX" != "Xg++"))) ; then 7911 ac_ext=cc 7912ac_cpp='$CXXCPP $CPPFLAGS' 7913ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7914ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7915ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7916echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 7917echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 7918if test -z "$CXXCPP"; then 7919 if test "${ac_cv_prog_CXXCPP+set}" = set; then 7920 echo $ECHO_N "(cached) $ECHO_C" >&6 7921else 7922 # Double quotes because CXXCPP needs to be expanded 7923 for CXXCPP in "$CXX -E" "/lib/cpp" 7924 do 7925 ac_preproc_ok=false 7926for ac_cxx_preproc_warn_flag in '' yes 7927do 7928 # Use a header file that comes with gcc, so configuring glibc 7929 # with a fresh cross-compiler works. 7930 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7931 # <limits.h> exists even on freestanding compilers. 7932 # On the NeXT, cc -E runs the code through the compiler's parser, 7933 # not just through cpp. "Syntax error" is here to catch this case. 7934 cat >conftest.$ac_ext <<_ACEOF 7935/* confdefs.h. */ 7936_ACEOF 7937cat confdefs.h >>conftest.$ac_ext 7938cat >>conftest.$ac_ext <<_ACEOF 7939/* end confdefs.h. */ 7940#ifdef __STDC__ 7941# include <limits.h> 7942#else 7943# include <assert.h> 7944#endif 7945 Syntax error 7946_ACEOF 7947if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 7948 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7949 ac_status=$? 7950 grep -v '^ *+' conftest.er1 >conftest.err 7951 rm -f conftest.er1 7952 cat conftest.err >&5 7953 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7954 (exit $ac_status); } >/dev/null; then 7955 if test -s conftest.err; then 7956 ac_cpp_err=$ac_cxx_preproc_warn_flag 7957 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 7958 else 7959 ac_cpp_err= 7960 fi 7961else 7962 ac_cpp_err=yes 7963fi 7964if test -z "$ac_cpp_err"; then 7965 : 7966else 7967 echo "$as_me: failed program was:" >&5 7968sed 's/^/| /' conftest.$ac_ext >&5 7969 7970 # Broken: fails on valid input. 7971continue 7972fi 7973rm -f conftest.err conftest.$ac_ext 7974 7975 # OK, works on sane cases. Now check whether non-existent headers 7976 # can be detected and how. 7977 cat >conftest.$ac_ext <<_ACEOF 7978/* confdefs.h. */ 7979_ACEOF 7980cat confdefs.h >>conftest.$ac_ext 7981cat >>conftest.$ac_ext <<_ACEOF 7982/* end confdefs.h. */ 7983#include <ac_nonexistent.h> 7984_ACEOF 7985if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 7986 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7987 ac_status=$? 7988 grep -v '^ *+' conftest.er1 >conftest.err 7989 rm -f conftest.er1 7990 cat conftest.err >&5 7991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7992 (exit $ac_status); } >/dev/null; then 7993 if test -s conftest.err; then 7994 ac_cpp_err=$ac_cxx_preproc_warn_flag 7995 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 7996 else 7997 ac_cpp_err= 7998 fi 7999else 8000 ac_cpp_err=yes 8001fi 8002if test -z "$ac_cpp_err"; then 8003 # Broken: success on invalid input. 8004continue 8005else 8006 echo "$as_me: failed program was:" >&5 8007sed 's/^/| /' conftest.$ac_ext >&5 8008 8009 # Passes both tests. 8010ac_preproc_ok=: 8011break 8012fi 8013rm -f conftest.err conftest.$ac_ext 8014 8015done 8016# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8017rm -f conftest.err conftest.$ac_ext 8018if $ac_preproc_ok; then 8019 break 8020fi 8021 8022 done 8023 ac_cv_prog_CXXCPP=$CXXCPP 8024 8025fi 8026 CXXCPP=$ac_cv_prog_CXXCPP 8027else 8028 ac_cv_prog_CXXCPP=$CXXCPP 8029fi 8030echo "$as_me:$LINENO: result: $CXXCPP" >&5 8031echo "${ECHO_T}$CXXCPP" >&6 8032ac_preproc_ok=false 8033for ac_cxx_preproc_warn_flag in '' yes 8034do 8035 # Use a header file that comes with gcc, so configuring glibc 8036 # with a fresh cross-compiler works. 8037 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8038 # <limits.h> exists even on freestanding compilers. 8039 # On the NeXT, cc -E runs the code through the compiler's parser, 8040 # not just through cpp. "Syntax error" is here to catch this case. 8041 cat >conftest.$ac_ext <<_ACEOF 8042/* confdefs.h. */ 8043_ACEOF 8044cat confdefs.h >>conftest.$ac_ext 8045cat >>conftest.$ac_ext <<_ACEOF 8046/* end confdefs.h. */ 8047#ifdef __STDC__ 8048# include <limits.h> 8049#else 8050# include <assert.h> 8051#endif 8052 Syntax error 8053_ACEOF 8054if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 8055 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 8056 ac_status=$? 8057 grep -v '^ *+' conftest.er1 >conftest.err 8058 rm -f conftest.er1 8059 cat conftest.err >&5 8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8061 (exit $ac_status); } >/dev/null; then 8062 if test -s conftest.err; then 8063 ac_cpp_err=$ac_cxx_preproc_warn_flag 8064 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 8065 else 8066 ac_cpp_err= 8067 fi 8068else 8069 ac_cpp_err=yes 8070fi 8071if test -z "$ac_cpp_err"; then 8072 : 8073else 8074 echo "$as_me: failed program was:" >&5 8075sed 's/^/| /' conftest.$ac_ext >&5 8076 8077 # Broken: fails on valid input. 8078continue 8079fi 8080rm -f conftest.err conftest.$ac_ext 8081 8082 # OK, works on sane cases. Now check whether non-existent headers 8083 # can be detected and how. 8084 cat >conftest.$ac_ext <<_ACEOF 8085/* confdefs.h. */ 8086_ACEOF 8087cat confdefs.h >>conftest.$ac_ext 8088cat >>conftest.$ac_ext <<_ACEOF 8089/* end confdefs.h. */ 8090#include <ac_nonexistent.h> 8091_ACEOF 8092if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 8093 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 8094 ac_status=$? 8095 grep -v '^ *+' conftest.er1 >conftest.err 8096 rm -f conftest.er1 8097 cat conftest.err >&5 8098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8099 (exit $ac_status); } >/dev/null; then 8100 if test -s conftest.err; then 8101 ac_cpp_err=$ac_cxx_preproc_warn_flag 8102 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 8103 else 8104 ac_cpp_err= 8105 fi 8106else 8107 ac_cpp_err=yes 8108fi 8109if test -z "$ac_cpp_err"; then 8110 # Broken: success on invalid input. 8111continue 8112else 8113 echo "$as_me: failed program was:" >&5 8114sed 's/^/| /' conftest.$ac_ext >&5 8115 8116 # Passes both tests. 8117ac_preproc_ok=: 8118break 8119fi 8120rm -f conftest.err conftest.$ac_ext 8121 8122done 8123# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8124rm -f conftest.err conftest.$ac_ext 8125if $ac_preproc_ok; then 8126 : 8127else 8128 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 8129See \`config.log' for more details." >&5 8130echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 8131See \`config.log' for more details." >&2;} 8132 { (exit 1); exit 1; }; } 8133fi 8134 8135ac_ext=cc 8136ac_cpp='$CXXCPP $CPPFLAGS' 8137ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8138ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8139ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 8140 8141fi 8142 8143 8144 8145# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 8146 8147# find the maximum length of command line arguments 8148echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 8149echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 8150if test "${lt_cv_sys_max_cmd_len+set}" = set; then 8151 echo $ECHO_N "(cached) $ECHO_C" >&6 8152else 8153 i=0 8154 teststring="ABCD" 8155 8156 case $build_os in 8157 msdosdjgpp*) 8158 # On DJGPP, this test can blow up pretty badly due to problems in libc 8159 # (any single argument exceeding 2000 bytes causes a buffer overrun 8160 # during glob expansion). Even if it were fixed, the result of this 8161 # check would be larger than it should be. 8162 lt_cv_sys_max_cmd_len=12288; # 12K is about right 8163 ;; 8164 8165 gnu*) 8166 # Under GNU Hurd, this test is not required because there is 8167 # no limit to the length of command line arguments. 8168 # Libtool will interpret -1 as no limit whatsoever 8169 lt_cv_sys_max_cmd_len=-1; 8170 ;; 8171 8172 cygwin* | mingw*) 8173 # On Win9x/ME, this test blows up -- it succeeds, but takes 8174 # about 5 minutes as the teststring grows exponentially. 8175 # Worse, since 9x/ME are not pre-emptively multitasking, 8176 # you end up with a "frozen" computer, even though with patience 8177 # the test eventually succeeds (with a max line length of 256k). 8178 # Instead, let's just punt: use the minimum linelength reported by 8179 # all of the supported platforms: 8192 (on NT/2K/XP). 8180 lt_cv_sys_max_cmd_len=8192; 8181 ;; 8182 8183 amigaos*) 8184 # On AmigaOS with pdksh, this test takes hours, literally. 8185 # So we just punt and use a minimum line length of 8192. 8186 lt_cv_sys_max_cmd_len=8192; 8187 ;; 8188 8189 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 8190 # This has been around since 386BSD, at least. Likely further. 8191 if test -x /sbin/sysctl; then 8192 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 8193 elif test -x /usr/sbin/sysctl; then 8194 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 8195 else 8196 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 8197 fi 8198 # And add a safety zone 8199 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 8200 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 8201 ;; 8202 8203 interix*) 8204 # We know the value 262144 and hardcode it with a safety zone (like BSD) 8205 lt_cv_sys_max_cmd_len=196608 8206 ;; 8207 8208 osf*) 8209 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 8210 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 8211 # nice to cause kernel panics so lets avoid the loop below. 8212 # First set a reasonable default. 8213 lt_cv_sys_max_cmd_len=16384 8214 # 8215 if test -x /sbin/sysconfig; then 8216 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 8217 *1*) lt_cv_sys_max_cmd_len=-1 ;; 8218 esac 8219 fi 8220 ;; 8221 sco3.2v5*) 8222 lt_cv_sys_max_cmd_len=102400 8223 ;; 8224 sysv5* | sco5v6* | sysv4.2uw2*) 8225 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 8226 if test -n "$kargmax"; then 8227 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 8228 else 8229 lt_cv_sys_max_cmd_len=32768 8230 fi 8231 ;; 8232 *) 8233 # If test is not a shell built-in, we'll probably end up computing a 8234 # maximum length that is only half of the actual maximum length, but 8235 # we can't tell. 8236 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 8237 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 8238 = "XX$teststring") >/dev/null 2>&1 && 8239 new_result=`expr "X$teststring" : ".*" 2>&1` && 8240 lt_cv_sys_max_cmd_len=$new_result && 8241 test $i != 17 # 1/2 MB should be enough 8242 do 8243 i=`expr $i + 1` 8244 teststring=$teststring$teststring 8245 done 8246 teststring= 8247 # Add a significant safety factor because C++ compilers can tack on massive 8248 # amounts of additional arguments before passing them to the linker. 8249 # It appears as though 1/2 is a usable value. 8250 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 8251 ;; 8252 esac 8253 8254fi 8255 8256if test -n $lt_cv_sys_max_cmd_len ; then 8257 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 8258echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 8259else 8260 echo "$as_me:$LINENO: result: none" >&5 8261echo "${ECHO_T}none" >&6 8262fi 8263 8264 8265 8266 8267# Check for command to grab the raw symbol name followed by C symbol from nm. 8268echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 8269echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 8270if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 8271 echo $ECHO_N "(cached) $ECHO_C" >&6 8272else 8273 8274# These are sane defaults that work on at least a few old systems. 8275# [They come from Ultrix. What could be older than Ultrix?!! ;)] 8276 8277# Character class describing NM global symbol codes. 8278symcode='[BCDEGRST]' 8279 8280# Regexp to match symbols that can be accessed directly from C. 8281sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 8282 8283# Transform an extracted symbol line into a proper C declaration 8284lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 8285 8286# Transform an extracted symbol line into symbol name and symbol address 8287lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 8288 8289# Define system-specific variables. 8290case $host_os in 8291aix*) 8292 symcode='[BCDT]' 8293 ;; 8294cygwin* | mingw* | pw32*) 8295 symcode='[ABCDGISTW]' 8296 ;; 8297hpux*) # Its linker distinguishes data from code symbols 8298 if test "$host_cpu" = ia64; then 8299 symcode='[ABCDEGRST]' 8300 fi 8301 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 8302 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 8303 ;; 8304linux*) 8305 if test "$host_cpu" = ia64; then 8306 symcode='[ABCDGIRSTW]' 8307 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 8308 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 8309 fi 8310 ;; 8311irix* | nonstopux*) 8312 symcode='[BCDEGRST]' 8313 ;; 8314osf*) 8315 symcode='[BCDEGQRST]' 8316 ;; 8317solaris*) 8318 symcode='[BDRT]' 8319 ;; 8320sco3.2v5*) 8321 symcode='[DT]' 8322 ;; 8323sysv4.2uw2*) 8324 symcode='[DT]' 8325 ;; 8326sysv5* | sco5v6* | unixware* | OpenUNIX*) 8327 symcode='[ABDT]' 8328 ;; 8329sysv4) 8330 symcode='[DFNSTU]' 8331 ;; 8332esac 8333 8334# Handle CRLF in mingw tool chain 8335opt_cr= 8336case $build_os in 8337mingw*) 8338 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 8339 ;; 8340esac 8341 8342# If we're using GNU nm, then use its standard symbol codes. 8343case `$NM -V 2>&1` in 8344*GNU* | *'with BFD'*) 8345 symcode='[ABCDGIRSTW]' ;; 8346esac 8347 8348# Try without a prefix undercore, then with it. 8349for ac_symprfx in "" "_"; do 8350 8351 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 8352 symxfrm="\\1 $ac_symprfx\\2 \\2" 8353 8354 # Write the raw and C identifiers. 8355 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 8356 8357 # Check to see that the pipe works correctly. 8358 pipe_works=no 8359 8360 rm -f conftest* 8361 cat > conftest.$ac_ext <<EOF 8362#ifdef __cplusplus 8363extern "C" { 8364#endif 8365char nm_test_var; 8366void nm_test_func(){} 8367#ifdef __cplusplus 8368} 8369#endif 8370int main(){nm_test_var='a';nm_test_func();return(0);} 8371EOF 8372 8373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8374 (eval $ac_compile) 2>&5 8375 ac_status=$? 8376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8377 (exit $ac_status); }; then 8378 # Now try to grab the symbols. 8379 nlist=conftest.nm 8380 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 8381 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 8382 ac_status=$? 8383 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8384 (exit $ac_status); } && test -s "$nlist"; then 8385 # Try sorting and uniquifying the output. 8386 if sort "$nlist" | uniq > "$nlist"T; then 8387 mv -f "$nlist"T "$nlist" 8388 else 8389 rm -f "$nlist"T 8390 fi 8391 8392 # Make sure that we snagged all the symbols we need. 8393 if grep ' nm_test_var$' "$nlist" >/dev/null; then 8394 if grep ' nm_test_func$' "$nlist" >/dev/null; then 8395 cat <<EOF > conftest.$ac_ext 8396#ifdef __cplusplus 8397extern "C" { 8398#endif 8399 8400EOF 8401 # Now generate the symbol file. 8402 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 8403 8404 cat <<EOF >> conftest.$ac_ext 8405#if defined (__STDC__) && __STDC__ 8406# define lt_ptr_t void * 8407#else 8408# define lt_ptr_t char * 8409# define const 8410#endif 8411 8412/* The mapping between symbol names and symbols. */ 8413const struct { 8414 const char *name; 8415 lt_ptr_t address; 8416} 8417lt_preloaded_symbols[] = 8418{ 8419EOF 8420 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 8421 cat <<\EOF >> conftest.$ac_ext 8422 {0, (lt_ptr_t) 0} 8423}; 8424 8425#ifdef __cplusplus 8426} 8427#endif 8428EOF 8429 # Now try linking the two files. 8430 mv conftest.$ac_objext conftstm.$ac_objext 8431 lt_save_LIBS="$LIBS" 8432 lt_save_CFLAGS="$CFLAGS" 8433 LIBS="conftstm.$ac_objext" 8434 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 8435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8436 (eval $ac_link) 2>&5 8437 ac_status=$? 8438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8439 (exit $ac_status); } && test -s conftest${ac_exeext}; then 8440 pipe_works=yes 8441 fi 8442 LIBS="$lt_save_LIBS" 8443 CFLAGS="$lt_save_CFLAGS" 8444 else 8445 echo "cannot find nm_test_func in $nlist" >&5 8446 fi 8447 else 8448 echo "cannot find nm_test_var in $nlist" >&5 8449 fi 8450 else 8451 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 8452 fi 8453 else 8454 echo "$progname: failed program was:" >&5 8455 cat conftest.$ac_ext >&5 8456 fi 8457 rm -f conftest* conftst* 8458 8459 # Do not use the global_symbol_pipe unless it works. 8460 if test "$pipe_works" = yes; then 8461 break 8462 else 8463 lt_cv_sys_global_symbol_pipe= 8464 fi 8465done 8466 8467fi 8468 8469if test -z "$lt_cv_sys_global_symbol_pipe"; then 8470 lt_cv_sys_global_symbol_to_cdecl= 8471fi 8472if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 8473 echo "$as_me:$LINENO: result: failed" >&5 8474echo "${ECHO_T}failed" >&6 8475else 8476 echo "$as_me:$LINENO: result: ok" >&5 8477echo "${ECHO_T}ok" >&6 8478fi 8479 8480echo "$as_me:$LINENO: checking for objdir" >&5 8481echo $ECHO_N "checking for objdir... $ECHO_C" >&6 8482if test "${lt_cv_objdir+set}" = set; then 8483 echo $ECHO_N "(cached) $ECHO_C" >&6 8484else 8485 rm -f .libs 2>/dev/null 8486mkdir .libs 2>/dev/null 8487if test -d .libs; then 8488 lt_cv_objdir=.libs 8489else 8490 # MS-DOS does not allow filenames that begin with a dot. 8491 lt_cv_objdir=_libs 8492fi 8493rmdir .libs 2>/dev/null 8494fi 8495echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 8496echo "${ECHO_T}$lt_cv_objdir" >&6 8497objdir=$lt_cv_objdir 8498 8499 8500 8501 8502 8503case $host_os in 8504aix3*) 8505 # AIX sometimes has problems with the GCC collect2 program. For some 8506 # reason, if we set the COLLECT_NAMES environment variable, the problems 8507 # vanish in a puff of smoke. 8508 if test "X${COLLECT_NAMES+set}" != Xset; then 8509 COLLECT_NAMES= 8510 export COLLECT_NAMES 8511 fi 8512 ;; 8513esac 8514 8515# Sed substitution that helps us do robust quoting. It backslashifies 8516# metacharacters that are still active within double-quoted strings. 8517Xsed='sed -e 1s/^X//' 8518sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 8519 8520# Same as above, but do not quote variable references. 8521double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 8522 8523# Sed substitution to delay expansion of an escaped shell variable in a 8524# double_quote_subst'ed string. 8525delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 8526 8527# Sed substitution to avoid accidental globbing in evaled expressions 8528no_glob_subst='s/\*/\\\*/g' 8529 8530# Constants: 8531rm="rm -f" 8532 8533# Global variables: 8534default_ofile=libtool 8535can_build_shared=yes 8536 8537# All known linkers require a `.a' archive for static linking (except MSVC, 8538# which needs '.lib'). 8539libext=a 8540ltmain="$ac_aux_dir/ltmain.sh" 8541ofile="$default_ofile" 8542with_gnu_ld="$lt_cv_prog_gnu_ld" 8543 8544if test -n "$ac_tool_prefix"; then 8545 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 8546set dummy ${ac_tool_prefix}ar; ac_word=$2 8547echo "$as_me:$LINENO: checking for $ac_word" >&5 8548echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8549if test "${ac_cv_prog_AR+set}" = set; then 8550 echo $ECHO_N "(cached) $ECHO_C" >&6 8551else 8552 if test -n "$AR"; then 8553 ac_cv_prog_AR="$AR" # Let the user override the test. 8554else 8555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8556for as_dir in $PATH 8557do 8558 IFS=$as_save_IFS 8559 test -z "$as_dir" && as_dir=. 8560 for ac_exec_ext in '' $ac_executable_extensions; do 8561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8562 ac_cv_prog_AR="${ac_tool_prefix}ar" 8563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8564 break 2 8565 fi 8566done 8567done 8568 8569fi 8570fi 8571AR=$ac_cv_prog_AR 8572if test -n "$AR"; then 8573 echo "$as_me:$LINENO: result: $AR" >&5 8574echo "${ECHO_T}$AR" >&6 8575else 8576 echo "$as_me:$LINENO: result: no" >&5 8577echo "${ECHO_T}no" >&6 8578fi 8579 8580fi 8581if test -z "$ac_cv_prog_AR"; then 8582 ac_ct_AR=$AR 8583 # Extract the first word of "ar", so it can be a program name with args. 8584set dummy ar; ac_word=$2 8585echo "$as_me:$LINENO: checking for $ac_word" >&5 8586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8587if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 8588 echo $ECHO_N "(cached) $ECHO_C" >&6 8589else 8590 if test -n "$ac_ct_AR"; then 8591 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 8592else 8593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8594for as_dir in $PATH 8595do 8596 IFS=$as_save_IFS 8597 test -z "$as_dir" && as_dir=. 8598 for ac_exec_ext in '' $ac_executable_extensions; do 8599 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8600 ac_cv_prog_ac_ct_AR="ar" 8601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8602 break 2 8603 fi 8604done 8605done 8606 8607 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" 8608fi 8609fi 8610ac_ct_AR=$ac_cv_prog_ac_ct_AR 8611if test -n "$ac_ct_AR"; then 8612 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 8613echo "${ECHO_T}$ac_ct_AR" >&6 8614else 8615 echo "$as_me:$LINENO: result: no" >&5 8616echo "${ECHO_T}no" >&6 8617fi 8618 8619 AR=$ac_ct_AR 8620else 8621 AR="$ac_cv_prog_AR" 8622fi 8623 8624if test -n "$ac_tool_prefix"; then 8625 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 8626set dummy ${ac_tool_prefix}ranlib; ac_word=$2 8627echo "$as_me:$LINENO: checking for $ac_word" >&5 8628echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8629if test "${ac_cv_prog_RANLIB+set}" = set; then 8630 echo $ECHO_N "(cached) $ECHO_C" >&6 8631else 8632 if test -n "$RANLIB"; then 8633 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 8634else 8635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8636for as_dir in $PATH 8637do 8638 IFS=$as_save_IFS 8639 test -z "$as_dir" && as_dir=. 8640 for ac_exec_ext in '' $ac_executable_extensions; do 8641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8642 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 8643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8644 break 2 8645 fi 8646done 8647done 8648 8649fi 8650fi 8651RANLIB=$ac_cv_prog_RANLIB 8652if test -n "$RANLIB"; then 8653 echo "$as_me:$LINENO: result: $RANLIB" >&5 8654echo "${ECHO_T}$RANLIB" >&6 8655else 8656 echo "$as_me:$LINENO: result: no" >&5 8657echo "${ECHO_T}no" >&6 8658fi 8659 8660fi 8661if test -z "$ac_cv_prog_RANLIB"; then 8662 ac_ct_RANLIB=$RANLIB 8663 # Extract the first word of "ranlib", so it can be a program name with args. 8664set dummy ranlib; ac_word=$2 8665echo "$as_me:$LINENO: checking for $ac_word" >&5 8666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8667if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 8668 echo $ECHO_N "(cached) $ECHO_C" >&6 8669else 8670 if test -n "$ac_ct_RANLIB"; then 8671 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 8672else 8673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8674for as_dir in $PATH 8675do 8676 IFS=$as_save_IFS 8677 test -z "$as_dir" && as_dir=. 8678 for ac_exec_ext in '' $ac_executable_extensions; do 8679 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8680 ac_cv_prog_ac_ct_RANLIB="ranlib" 8681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8682 break 2 8683 fi 8684done 8685done 8686 8687 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 8688fi 8689fi 8690ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 8691if test -n "$ac_ct_RANLIB"; then 8692 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 8693echo "${ECHO_T}$ac_ct_RANLIB" >&6 8694else 8695 echo "$as_me:$LINENO: result: no" >&5 8696echo "${ECHO_T}no" >&6 8697fi 8698 8699 RANLIB=$ac_ct_RANLIB 8700else 8701 RANLIB="$ac_cv_prog_RANLIB" 8702fi 8703 8704if test -n "$ac_tool_prefix"; then 8705 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 8706set dummy ${ac_tool_prefix}strip; ac_word=$2 8707echo "$as_me:$LINENO: checking for $ac_word" >&5 8708echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8709if test "${ac_cv_prog_STRIP+set}" = set; then 8710 echo $ECHO_N "(cached) $ECHO_C" >&6 8711else 8712 if test -n "$STRIP"; then 8713 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 8714else 8715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8716for as_dir in $PATH 8717do 8718 IFS=$as_save_IFS 8719 test -z "$as_dir" && as_dir=. 8720 for ac_exec_ext in '' $ac_executable_extensions; do 8721 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8722 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 8723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8724 break 2 8725 fi 8726done 8727done 8728 8729fi 8730fi 8731STRIP=$ac_cv_prog_STRIP 8732if test -n "$STRIP"; then 8733 echo "$as_me:$LINENO: result: $STRIP" >&5 8734echo "${ECHO_T}$STRIP" >&6 8735else 8736 echo "$as_me:$LINENO: result: no" >&5 8737echo "${ECHO_T}no" >&6 8738fi 8739 8740fi 8741if test -z "$ac_cv_prog_STRIP"; then 8742 ac_ct_STRIP=$STRIP 8743 # Extract the first word of "strip", so it can be a program name with args. 8744set dummy strip; ac_word=$2 8745echo "$as_me:$LINENO: checking for $ac_word" >&5 8746echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8747if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 8748 echo $ECHO_N "(cached) $ECHO_C" >&6 8749else 8750 if test -n "$ac_ct_STRIP"; then 8751 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 8752else 8753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8754for as_dir in $PATH 8755do 8756 IFS=$as_save_IFS 8757 test -z "$as_dir" && as_dir=. 8758 for ac_exec_ext in '' $ac_executable_extensions; do 8759 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8760 ac_cv_prog_ac_ct_STRIP="strip" 8761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8762 break 2 8763 fi 8764done 8765done 8766 8767 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 8768fi 8769fi 8770ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 8771if test -n "$ac_ct_STRIP"; then 8772 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 8773echo "${ECHO_T}$ac_ct_STRIP" >&6 8774else 8775 echo "$as_me:$LINENO: result: no" >&5 8776echo "${ECHO_T}no" >&6 8777fi 8778 8779 STRIP=$ac_ct_STRIP 8780else 8781 STRIP="$ac_cv_prog_STRIP" 8782fi 8783 8784 8785old_CC="$CC" 8786old_CFLAGS="$CFLAGS" 8787 8788# Set sane defaults for various variables 8789test -z "$AR" && AR=ar 8790test -z "$AR_FLAGS" && AR_FLAGS=cru 8791test -z "$AS" && AS=as 8792test -z "$CC" && CC=cc 8793test -z "$LTCC" && LTCC=$CC 8794test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8795test -z "$DLLTOOL" && DLLTOOL=dlltool 8796test -z "$LD" && LD=ld 8797test -z "$LN_S" && LN_S="ln -s" 8798test -z "$MAGIC_CMD" && MAGIC_CMD=file 8799test -z "$NM" && NM=nm 8800test -z "$SED" && SED=sed 8801test -z "$OBJDUMP" && OBJDUMP=objdump 8802test -z "$RANLIB" && RANLIB=: 8803test -z "$STRIP" && STRIP=: 8804test -z "$ac_objext" && ac_objext=o 8805 8806# Determine commands to create old-style static archives. 8807old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 8808old_postinstall_cmds='chmod 644 $oldlib' 8809old_postuninstall_cmds= 8810 8811if test -n "$RANLIB"; then 8812 case $host_os in 8813 openbsd*) 8814 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 8815 ;; 8816 *) 8817 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 8818 ;; 8819 esac 8820 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 8821fi 8822 8823for cc_temp in $compiler""; do 8824 case $cc_temp in 8825 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8826 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8827 \-*) ;; 8828 *) break;; 8829 esac 8830done 8831cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8832 8833 8834# Only perform the check for file, if the check method requires it 8835case $deplibs_check_method in 8836file_magic*) 8837 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8838 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 8839echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 8840if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 8841 echo $ECHO_N "(cached) $ECHO_C" >&6 8842else 8843 case $MAGIC_CMD in 8844[\\/*] | ?:[\\/]*) 8845 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8846 ;; 8847*) 8848 lt_save_MAGIC_CMD="$MAGIC_CMD" 8849 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8850 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8851 for ac_dir in $ac_dummy; do 8852 IFS="$lt_save_ifs" 8853 test -z "$ac_dir" && ac_dir=. 8854 if test -f $ac_dir/${ac_tool_prefix}file; then 8855 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8856 if test -n "$file_magic_test_file"; then 8857 case $deplibs_check_method in 8858 "file_magic "*) 8859 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8860 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8861 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8862 $EGREP "$file_magic_regex" > /dev/null; then 8863 : 8864 else 8865 cat <<EOF 1>&2 8866 8867*** Warning: the command libtool uses to detect shared libraries, 8868*** $file_magic_cmd, produces output that libtool cannot recognize. 8869*** The result is that libtool may fail to recognize shared libraries 8870*** as such. This will affect the creation of libtool libraries that 8871*** depend on shared libraries, but programs linked with such libtool 8872*** libraries will work regardless of this problem. Nevertheless, you 8873*** may want to report the problem to your system manager and/or to 8874*** bug-libtool@gnu.org 8875 8876EOF 8877 fi ;; 8878 esac 8879 fi 8880 break 8881 fi 8882 done 8883 IFS="$lt_save_ifs" 8884 MAGIC_CMD="$lt_save_MAGIC_CMD" 8885 ;; 8886esac 8887fi 8888 8889MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8890if test -n "$MAGIC_CMD"; then 8891 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 8892echo "${ECHO_T}$MAGIC_CMD" >&6 8893else 8894 echo "$as_me:$LINENO: result: no" >&5 8895echo "${ECHO_T}no" >&6 8896fi 8897 8898if test -z "$lt_cv_path_MAGIC_CMD"; then 8899 if test -n "$ac_tool_prefix"; then 8900 echo "$as_me:$LINENO: checking for file" >&5 8901echo $ECHO_N "checking for file... $ECHO_C" >&6 8902if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 8903 echo $ECHO_N "(cached) $ECHO_C" >&6 8904else 8905 case $MAGIC_CMD in 8906[\\/*] | ?:[\\/]*) 8907 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8908 ;; 8909*) 8910 lt_save_MAGIC_CMD="$MAGIC_CMD" 8911 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8912 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8913 for ac_dir in $ac_dummy; do 8914 IFS="$lt_save_ifs" 8915 test -z "$ac_dir" && ac_dir=. 8916 if test -f $ac_dir/file; then 8917 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8918 if test -n "$file_magic_test_file"; then 8919 case $deplibs_check_method in 8920 "file_magic "*) 8921 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8922 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8923 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8924 $EGREP "$file_magic_regex" > /dev/null; then 8925 : 8926 else 8927 cat <<EOF 1>&2 8928 8929*** Warning: the command libtool uses to detect shared libraries, 8930*** $file_magic_cmd, produces output that libtool cannot recognize. 8931*** The result is that libtool may fail to recognize shared libraries 8932*** as such. This will affect the creation of libtool libraries that 8933*** depend on shared libraries, but programs linked with such libtool 8934*** libraries will work regardless of this problem. Nevertheless, you 8935*** may want to report the problem to your system manager and/or to 8936*** bug-libtool@gnu.org 8937 8938EOF 8939 fi ;; 8940 esac 8941 fi 8942 break 8943 fi 8944 done 8945 IFS="$lt_save_ifs" 8946 MAGIC_CMD="$lt_save_MAGIC_CMD" 8947 ;; 8948esac 8949fi 8950 8951MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8952if test -n "$MAGIC_CMD"; then 8953 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 8954echo "${ECHO_T}$MAGIC_CMD" >&6 8955else 8956 echo "$as_me:$LINENO: result: no" >&5 8957echo "${ECHO_T}no" >&6 8958fi 8959 8960 else 8961 MAGIC_CMD=: 8962 fi 8963fi 8964 8965 fi 8966 ;; 8967esac 8968 8969enable_dlopen=no 8970enable_win32_dll=no 8971 8972# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 8973if test "${enable_libtool_lock+set}" = set; then 8974 enableval="$enable_libtool_lock" 8975 8976fi; 8977test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 8978 8979 8980# Check whether --with-pic or --without-pic was given. 8981if test "${with_pic+set}" = set; then 8982 withval="$with_pic" 8983 pic_mode="$withval" 8984else 8985 pic_mode=default 8986fi; 8987test -z "$pic_mode" && pic_mode=default 8988 8989# Use C for the default configuration in the libtool script 8990tagname= 8991lt_save_CC="$CC" 8992ac_ext=c 8993ac_cpp='$CPP $CPPFLAGS' 8994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8996ac_compiler_gnu=$ac_cv_c_compiler_gnu 8997 8998 8999# Source file extension for C test sources. 9000ac_ext=c 9001 9002# Object file extension for compiled C test sources. 9003objext=o 9004objext=$objext 9005 9006# Code to be used in simple compile tests 9007lt_simple_compile_test_code="int some_variable = 0;\n" 9008 9009# Code to be used in simple link tests 9010lt_simple_link_test_code='int main(){return(0);}\n' 9011 9012 9013# If no C compiler was specified, use CC. 9014LTCC=${LTCC-"$CC"} 9015 9016# If no C compiler flags were specified, use CFLAGS. 9017LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9018 9019# Allow CC to be a program name with arguments. 9020compiler=$CC 9021 9022 9023# save warnings/boilerplate of simple test code 9024ac_outfile=conftest.$ac_objext 9025printf "$lt_simple_compile_test_code" >conftest.$ac_ext 9026eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9027_lt_compiler_boilerplate=`cat conftest.err` 9028$rm conftest* 9029 9030ac_outfile=conftest.$ac_objext 9031printf "$lt_simple_link_test_code" >conftest.$ac_ext 9032eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9033_lt_linker_boilerplate=`cat conftest.err` 9034$rm conftest* 9035 9036 9037## CAVEAT EMPTOR: 9038## There is no encapsulation within the following macros, do not change 9039## the running order or otherwise move them around unless you know exactly 9040## what you are doing... 9041 9042lt_prog_compiler_no_builtin_flag= 9043 9044if test "$GCC" = yes; then 9045 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 9046 9047 9048echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9049echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 9050if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 9051 echo $ECHO_N "(cached) $ECHO_C" >&6 9052else 9053 lt_cv_prog_compiler_rtti_exceptions=no 9054 ac_outfile=conftest.$ac_objext 9055 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 9056 lt_compiler_flag="-fno-rtti -fno-exceptions" 9057 # Insert the option either (1) after the last *FLAGS variable, or 9058 # (2) before a word containing "conftest.", or (3) at the end. 9059 # Note that $ac_compile itself does not contain backslashes and begins 9060 # with a dollar sign (not a hyphen), so the echo should work correctly. 9061 # The option is referenced via a variable to avoid confusing sed. 9062 lt_compile=`echo "$ac_compile" | $SED \ 9063 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9064 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9065 -e 's:$: $lt_compiler_flag:'` 9066 (eval echo "\"\$as_me:9066: $lt_compile\"" >&5) 9067 (eval "$lt_compile" 2>conftest.err) 9068 ac_status=$? 9069 cat conftest.err >&5 9070 echo "$as_me:9070: \$? = $ac_status" >&5 9071 if (exit $ac_status) && test -s "$ac_outfile"; then 9072 # The compiler can only warn and ignore the option if not recognized 9073 # So say no if there are warnings other than the usual output. 9074 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 9075 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9076 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9077 lt_cv_prog_compiler_rtti_exceptions=yes 9078 fi 9079 fi 9080 $rm conftest* 9081 9082fi 9083echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9084echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 9085 9086if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 9087 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9088else 9089 : 9090fi 9091 9092fi 9093 9094lt_prog_compiler_wl= 9095lt_prog_compiler_pic= 9096lt_prog_compiler_static= 9097 9098echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 9099echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 9100 9101 if test "$GCC" = yes; then 9102 lt_prog_compiler_wl='-Wl,' 9103 lt_prog_compiler_static='-static' 9104 9105 case $host_os in 9106 aix*) 9107 # All AIX code is PIC. 9108 if test "$host_cpu" = ia64; then 9109 # AIX 5 now supports IA64 processor 9110 lt_prog_compiler_static='-Bstatic' 9111 fi 9112 ;; 9113 9114 amigaos*) 9115 # FIXME: we need at least 68020 code to build shared libraries, but 9116 # adding the `-m68020' flag to GCC prevents building anything better, 9117 # like `-m68040'. 9118 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9119 ;; 9120 9121 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9122 # PIC is the default for these OSes. 9123 ;; 9124 9125 mingw* | pw32* | os2*) 9126 # This hack is so that the source file can tell whether it is being 9127 # built for inclusion in a dll (and should export symbols for example). 9128 lt_prog_compiler_pic='-DDLL_EXPORT' 9129 ;; 9130 9131 darwin* | rhapsody*) 9132 # PIC is the default on this platform 9133 # Common symbols not allowed in MH_DYLIB files 9134 lt_prog_compiler_pic='-fno-common' 9135 ;; 9136 9137 interix3*) 9138 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9139 # Instead, we relocate shared libraries at runtime. 9140 ;; 9141 9142 msdosdjgpp*) 9143 # Just because we use GCC doesn't mean we suddenly get shared libraries 9144 # on systems that don't support them. 9145 lt_prog_compiler_can_build_shared=no 9146 enable_shared=no 9147 ;; 9148 9149 sysv4*MP*) 9150 if test -d /usr/nec; then 9151 lt_prog_compiler_pic=-Kconform_pic 9152 fi 9153 ;; 9154 9155 hpux*) 9156 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9157 # not for PA HP-UX. 9158 case $host_cpu in 9159 hppa*64*|ia64*) 9160 # +Z the default 9161 ;; 9162 *) 9163 lt_prog_compiler_pic='-fPIC' 9164 ;; 9165 esac 9166 ;; 9167 9168 *) 9169 lt_prog_compiler_pic='-fPIC' 9170 ;; 9171 esac 9172 else 9173 # PORTME Check for flag to pass linker flags through the system compiler. 9174 case $host_os in 9175 aix*) 9176 lt_prog_compiler_wl='-Wl,' 9177 if test "$host_cpu" = ia64; then 9178 # AIX 5 now supports IA64 processor 9179 lt_prog_compiler_static='-Bstatic' 9180 else 9181 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9182 fi 9183 ;; 9184 darwin*) 9185 # PIC is the default on this platform 9186 # Common symbols not allowed in MH_DYLIB files 9187 case $cc_basename in 9188 xlc*) 9189 lt_prog_compiler_pic='-qnocommon' 9190 lt_prog_compiler_wl='-Wl,' 9191 ;; 9192 esac 9193 ;; 9194 9195 mingw* | pw32* | os2*) 9196 # This hack is so that the source file can tell whether it is being 9197 # built for inclusion in a dll (and should export symbols for example). 9198 lt_prog_compiler_pic='-DDLL_EXPORT' 9199 ;; 9200 9201 hpux9* | hpux10* | hpux11*) 9202 lt_prog_compiler_wl='-Wl,' 9203 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9204 # not for PA HP-UX. 9205 case $host_cpu in 9206 hppa*64*|ia64*) 9207 # +Z the default 9208 ;; 9209 *) 9210 lt_prog_compiler_pic='+Z' 9211 ;; 9212 esac 9213 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9214 lt_prog_compiler_static='${wl}-a ${wl}archive' 9215 ;; 9216 9217 irix5* | irix6* | nonstopux*) 9218 lt_prog_compiler_wl='-Wl,' 9219 # PIC (with -KPIC) is the default. 9220 lt_prog_compiler_static='-non_shared' 9221 ;; 9222 9223 newsos6) 9224 lt_prog_compiler_pic='-KPIC' 9225 lt_prog_compiler_static='-Bstatic' 9226 ;; 9227 9228 linux*) 9229 case $cc_basename in 9230 icc* | ecc*) 9231 lt_prog_compiler_wl='-Wl,' 9232 lt_prog_compiler_pic='-KPIC' 9233 lt_prog_compiler_static='-static' 9234 ;; 9235 pgcc* | pgf77* | pgf90* | pgf95*) 9236 # Portland Group compilers (*not* the Pentium gcc compiler, 9237 # which looks to be a dead project) 9238 lt_prog_compiler_wl='-Wl,' 9239 lt_prog_compiler_pic='-fpic' 9240 lt_prog_compiler_static='-Bstatic' 9241 ;; 9242 ccc*) 9243 lt_prog_compiler_wl='-Wl,' 9244 # All Alpha code is PIC. 9245 lt_prog_compiler_static='-non_shared' 9246 ;; 9247 esac 9248 ;; 9249 9250 osf3* | osf4* | osf5*) 9251 lt_prog_compiler_wl='-Wl,' 9252 # All OSF/1 code is PIC. 9253 lt_prog_compiler_static='-non_shared' 9254 ;; 9255 9256 solaris*) 9257 lt_prog_compiler_pic='-KPIC' 9258 lt_prog_compiler_static='-Bstatic' 9259 case $cc_basename in 9260 f77* | f90* | f95*) 9261 lt_prog_compiler_wl='-Qoption ld ';; 9262 *) 9263 lt_prog_compiler_wl='-Wl,';; 9264 esac 9265 ;; 9266 9267 sunos4*) 9268 lt_prog_compiler_wl='-Qoption ld ' 9269 lt_prog_compiler_pic='-PIC' 9270 lt_prog_compiler_static='-Bstatic' 9271 ;; 9272 9273 sysv4 | sysv4.2uw2* | sysv4.3*) 9274 lt_prog_compiler_wl='-Wl,' 9275 lt_prog_compiler_pic='-KPIC' 9276 lt_prog_compiler_static='-Bstatic' 9277 ;; 9278 9279 sysv4*MP*) 9280 if test -d /usr/nec ;then 9281 lt_prog_compiler_pic='-Kconform_pic' 9282 lt_prog_compiler_static='-Bstatic' 9283 fi 9284 ;; 9285 9286 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9287 lt_prog_compiler_wl='-Wl,' 9288 lt_prog_compiler_pic='-KPIC' 9289 lt_prog_compiler_static='-Bstatic' 9290 ;; 9291 9292 unicos*) 9293 lt_prog_compiler_wl='-Wl,' 9294 lt_prog_compiler_can_build_shared=no 9295 ;; 9296 9297 uts4*) 9298 lt_prog_compiler_pic='-pic' 9299 lt_prog_compiler_static='-Bstatic' 9300 ;; 9301 9302 *) 9303 lt_prog_compiler_can_build_shared=no 9304 ;; 9305 esac 9306 fi 9307 9308echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 9309echo "${ECHO_T}$lt_prog_compiler_pic" >&6 9310 9311# 9312# Check to make sure the PIC flag actually works. 9313# 9314if test -n "$lt_prog_compiler_pic"; then 9315 9316echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9317echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 9318if test "${lt_prog_compiler_pic_works+set}" = set; then 9319 echo $ECHO_N "(cached) $ECHO_C" >&6 9320else 9321 lt_prog_compiler_pic_works=no 9322 ac_outfile=conftest.$ac_objext 9323 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 9324 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 9325 # Insert the option either (1) after the last *FLAGS variable, or 9326 # (2) before a word containing "conftest.", or (3) at the end. 9327 # Note that $ac_compile itself does not contain backslashes and begins 9328 # with a dollar sign (not a hyphen), so the echo should work correctly. 9329 # The option is referenced via a variable to avoid confusing sed. 9330 lt_compile=`echo "$ac_compile" | $SED \ 9331 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9332 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9333 -e 's:$: $lt_compiler_flag:'` 9334 (eval echo "\"\$as_me:9334: $lt_compile\"" >&5) 9335 (eval "$lt_compile" 2>conftest.err) 9336 ac_status=$? 9337 cat conftest.err >&5 9338 echo "$as_me:9338: \$? = $ac_status" >&5 9339 if (exit $ac_status) && test -s "$ac_outfile"; then 9340 # The compiler can only warn and ignore the option if not recognized 9341 # So say no if there are warnings other than the usual output. 9342 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 9343 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9344 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9345 lt_prog_compiler_pic_works=yes 9346 fi 9347 fi 9348 $rm conftest* 9349 9350fi 9351echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 9352echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 9353 9354if test x"$lt_prog_compiler_pic_works" = xyes; then 9355 case $lt_prog_compiler_pic in 9356 "" | " "*) ;; 9357 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9358 esac 9359else 9360 lt_prog_compiler_pic= 9361 lt_prog_compiler_can_build_shared=no 9362fi 9363 9364fi 9365case $host_os in 9366 # For platforms which do not support PIC, -DPIC is meaningless: 9367 *djgpp*) 9368 lt_prog_compiler_pic= 9369 ;; 9370 *) 9371 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9372 ;; 9373esac 9374 9375# 9376# Check to make sure the static flag actually works. 9377# 9378wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9379echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9380echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 9381if test "${lt_prog_compiler_static_works+set}" = set; then 9382 echo $ECHO_N "(cached) $ECHO_C" >&6 9383else 9384 lt_prog_compiler_static_works=no 9385 save_LDFLAGS="$LDFLAGS" 9386 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9387 printf "$lt_simple_link_test_code" > conftest.$ac_ext 9388 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9389 # The linker can only warn and ignore the option if not recognized 9390 # So say no if there are warnings 9391 if test -s conftest.err; then 9392 # Append any errors to the config.log. 9393 cat conftest.err 1>&5 9394 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 9395 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9396 if diff conftest.exp conftest.er2 >/dev/null; then 9397 lt_prog_compiler_static_works=yes 9398 fi 9399 else 9400 lt_prog_compiler_static_works=yes 9401 fi 9402 fi 9403 $rm conftest* 9404 LDFLAGS="$save_LDFLAGS" 9405 9406fi 9407echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 9408echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 9409 9410if test x"$lt_prog_compiler_static_works" = xyes; then 9411 : 9412else 9413 lt_prog_compiler_static= 9414fi 9415 9416 9417echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 9418echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 9419if test "${lt_cv_prog_compiler_c_o+set}" = set; then 9420 echo $ECHO_N "(cached) $ECHO_C" >&6 9421else 9422 lt_cv_prog_compiler_c_o=no 9423 $rm -r conftest 2>/dev/null 9424 mkdir conftest 9425 cd conftest 9426 mkdir out 9427 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 9428 9429 lt_compiler_flag="-o out/conftest2.$ac_objext" 9430 # Insert the option either (1) after the last *FLAGS variable, or 9431 # (2) before a word containing "conftest.", or (3) at the end. 9432 # Note that $ac_compile itself does not contain backslashes and begins 9433 # with a dollar sign (not a hyphen), so the echo should work correctly. 9434 lt_compile=`echo "$ac_compile" | $SED \ 9435 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9436 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9437 -e 's:$: $lt_compiler_flag:'` 9438 (eval echo "\"\$as_me:9438: $lt_compile\"" >&5) 9439 (eval "$lt_compile" 2>out/conftest.err) 9440 ac_status=$? 9441 cat out/conftest.err >&5 9442 echo "$as_me:9442: \$? = $ac_status" >&5 9443 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9444 then 9445 # The compiler can only warn and ignore the option if not recognized 9446 # So say no if there are warnings 9447 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 9448 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9449 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9450 lt_cv_prog_compiler_c_o=yes 9451 fi 9452 fi 9453 chmod u+w . 2>&5 9454 $rm conftest* 9455 # SGI C++ compiler will create directory out/ii_files/ for 9456 # template instantiation 9457 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 9458 $rm out/* && rmdir out 9459 cd .. 9460 rmdir conftest 9461 $rm conftest* 9462 9463fi 9464echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 9465echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 9466 9467 9468hard_links="nottested" 9469if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9470 # do not overwrite the value of need_locks provided by the user 9471 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 9472echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 9473 hard_links=yes 9474 $rm conftest* 9475 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9476 touch conftest.a 9477 ln conftest.a conftest.b 2>&5 || hard_links=no 9478 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9479 echo "$as_me:$LINENO: result: $hard_links" >&5 9480echo "${ECHO_T}$hard_links" >&6 9481 if test "$hard_links" = no; then 9482 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9483echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9484 need_locks=warn 9485 fi 9486else 9487 need_locks=no 9488fi 9489 9490echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9491echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 9492 9493 runpath_var= 9494 allow_undefined_flag= 9495 enable_shared_with_static_runtimes=no 9496 archive_cmds= 9497 archive_expsym_cmds= 9498 old_archive_From_new_cmds= 9499 old_archive_from_expsyms_cmds= 9500 export_dynamic_flag_spec= 9501 whole_archive_flag_spec= 9502 thread_safe_flag_spec= 9503 hardcode_libdir_flag_spec= 9504 hardcode_libdir_flag_spec_ld= 9505 hardcode_libdir_separator= 9506 hardcode_direct=no 9507 hardcode_minus_L=no 9508 hardcode_shlibpath_var=unsupported 9509 link_all_deplibs=unknown 9510 hardcode_automatic=no 9511 module_cmds= 9512 module_expsym_cmds= 9513 always_export_symbols=no 9514 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9515 # include_expsyms should be a list of space-separated symbols to be *always* 9516 # included in the symbol list 9517 include_expsyms= 9518 # exclude_expsyms can be an extended regexp of symbols to exclude 9519 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9520 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9521 # as well as any symbol that contains `d'. 9522 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 9523 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9524 # platforms (ab)use it in PIC code, but their linkers get confused if 9525 # the symbol is explicitly referenced. Since portable code cannot 9526 # rely on this symbol name, it's probably fine to never include it in 9527 # preloaded symbol tables. 9528 extract_expsyms_cmds= 9529 # Just being paranoid about ensuring that cc_basename is set. 9530 for cc_temp in $compiler""; do 9531 case $cc_temp in 9532 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 9533 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 9534 \-*) ;; 9535 *) break;; 9536 esac 9537done 9538cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 9539 9540 case $host_os in 9541 cygwin* | mingw* | pw32*) 9542 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9543 # When not using gcc, we currently assume that we are using 9544 # Microsoft Visual C++. 9545 if test "$GCC" != yes; then 9546 with_gnu_ld=no 9547 fi 9548 ;; 9549 interix*) 9550 # we just hope/assume this is gcc and not c89 (= MSVC++) 9551 with_gnu_ld=yes 9552 ;; 9553 openbsd*) 9554 with_gnu_ld=no 9555 ;; 9556 esac 9557 9558 ld_shlibs=yes 9559 if test "$with_gnu_ld" = yes; then 9560 # If archive_cmds runs LD, not CC, wlarc should be empty 9561 wlarc='${wl}' 9562 9563 # Set some defaults for GNU ld with shared library support. These 9564 # are reset later if shared libraries are not supported. Putting them 9565 # here allows them to be overridden if necessary. 9566 runpath_var=LD_RUN_PATH 9567 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 9568 export_dynamic_flag_spec='${wl}--export-dynamic' 9569 # ancient GNU ld didn't support --whole-archive et. al. 9570 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 9571 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9572 else 9573 whole_archive_flag_spec= 9574 fi 9575 supports_anon_versioning=no 9576 case `$LD -v 2>/dev/null` in 9577 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9578 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9579 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9580 *\ 2.11.*) ;; # other 2.11 versions 9581 *) supports_anon_versioning=yes ;; 9582 esac 9583 9584 # See if GNU ld supports shared libraries. 9585 case $host_os in 9586 aix3* | aix4* | aix5*) 9587 # On AIX/PPC, the GNU linker is very broken 9588 if test "$host_cpu" != ia64; then 9589 ld_shlibs=no 9590 cat <<EOF 1>&2 9591 9592*** Warning: the GNU linker, at least up to release 2.9.1, is reported 9593*** to be unable to reliably create shared libraries on AIX. 9594*** Therefore, libtool is disabling shared libraries support. If you 9595*** really care for shared libraries, you may want to modify your PATH 9596*** so that a non-GNU linker is found, and then restart. 9597 9598EOF 9599 fi 9600 ;; 9601 9602 amigaos*) 9603 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)' 9604 hardcode_libdir_flag_spec='-L$libdir' 9605 hardcode_minus_L=yes 9606 9607 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 9608 # that the semantics of dynamic libraries on AmigaOS, at least up 9609 # to version 4, is to share data among multiple programs linked 9610 # with the same dynamic library. Since this doesn't match the 9611 # behavior of shared libraries on other platforms, we can't use 9612 # them. 9613 ld_shlibs=no 9614 ;; 9615 9616 beos*) 9617 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 9618 allow_undefined_flag=unsupported 9619 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9620 # support --undefined. This deserves some investigation. FIXME 9621 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9622 else 9623 ld_shlibs=no 9624 fi 9625 ;; 9626 9627 cygwin* | mingw* | pw32*) 9628 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9629 # as there is no search path for DLLs. 9630 hardcode_libdir_flag_spec='-L$libdir' 9631 allow_undefined_flag=unsupported 9632 always_export_symbols=no 9633 enable_shared_with_static_runtimes=yes 9634 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 9635 9636 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 9637 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9638 # If the export-symbols file already is a .def file (1st line 9639 # is EXPORTS), use it as is; otherwise, prepend... 9640 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9641 cp $export_symbols $output_objdir/$soname.def; 9642 else 9643 echo EXPORTS > $output_objdir/$soname.def; 9644 cat $export_symbols >> $output_objdir/$soname.def; 9645 fi~ 9646 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9647 else 9648 ld_shlibs=no 9649 fi 9650 ;; 9651 9652 interix3*) 9653 hardcode_direct=no 9654 hardcode_shlibpath_var=no 9655 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9656 export_dynamic_flag_spec='${wl}-E' 9657 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9658 # Instead, shared libraries are loaded at an image base (0x10000000 by 9659 # default) and relocated if they conflict, which is a slow very memory 9660 # consuming and fragmenting process. To avoid this, we pick a random, 9661 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9662 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9663 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9664 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' 9665 ;; 9666 9667 linux*) 9668 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 9669 tmp_addflag= 9670 case $cc_basename,$host_cpu in 9671 pgcc*) # Portland Group C compiler 9672 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 9673 tmp_addflag=' $pic_flag' 9674 ;; 9675 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 9676 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 9677 tmp_addflag=' $pic_flag -Mnomain' ;; 9678 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9679 tmp_addflag=' -i_dynamic' ;; 9680 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9681 tmp_addflag=' -i_dynamic -nofor_main' ;; 9682 ifc* | ifort*) # Intel Fortran compiler 9683 tmp_addflag=' -nofor_main' ;; 9684 esac 9685 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9686 9687 if test $supports_anon_versioning = yes; then 9688 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 9689 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9690 $echo "local: *; };" >> $output_objdir/$libname.ver~ 9691 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9692 fi 9693 else 9694 ld_shlibs=no 9695 fi 9696 ;; 9697 9698 netbsd*) 9699 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9700 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9701 wlarc= 9702 else 9703 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9704 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9705 fi 9706 ;; 9707 9708 solaris*) 9709 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 9710 ld_shlibs=no 9711 cat <<EOF 1>&2 9712 9713*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9714*** create shared libraries on Solaris systems. Therefore, libtool 9715*** is disabling shared libraries support. We urge you to upgrade GNU 9716*** binutils to release 2.9.1 or newer. Another option is to modify 9717*** your PATH or compiler configuration so that the native linker is 9718*** used, and then restart. 9719 9720EOF 9721 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 9722 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9723 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9724 else 9725 ld_shlibs=no 9726 fi 9727 ;; 9728 9729 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9730 case `$LD -v 2>&1` in 9731 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9732 ld_shlibs=no 9733 cat <<_LT_EOF 1>&2 9734 9735*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9736*** reliably create shared libraries on SCO systems. Therefore, libtool 9737*** is disabling shared libraries support. We urge you to upgrade GNU 9738*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9739*** your PATH or compiler configuration so that the native linker is 9740*** used, and then restart. 9741 9742_LT_EOF 9743 ;; 9744 *) 9745 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 9746 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 9747 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 9748 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 9749 else 9750 ld_shlibs=no 9751 fi 9752 ;; 9753 esac 9754 ;; 9755 9756 sunos4*) 9757 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9758 wlarc= 9759 hardcode_direct=yes 9760 hardcode_shlibpath_var=no 9761 ;; 9762 9763 *) 9764 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 9765 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9766 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9767 else 9768 ld_shlibs=no 9769 fi 9770 ;; 9771 esac 9772 9773 if test "$ld_shlibs" = no; then 9774 runpath_var= 9775 hardcode_libdir_flag_spec= 9776 export_dynamic_flag_spec= 9777 whole_archive_flag_spec= 9778 fi 9779 else 9780 # PORTME fill in a description of your system's linker (not GNU ld) 9781 case $host_os in 9782 aix3*) 9783 allow_undefined_flag=unsupported 9784 always_export_symbols=yes 9785 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' 9786 # Note: this linker hardcodes the directories in LIBPATH if there 9787 # are no directories specified by -L. 9788 hardcode_minus_L=yes 9789 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9790 # Neither direct hardcoding nor static linking is supported with a 9791 # broken collect2. 9792 hardcode_direct=unsupported 9793 fi 9794 ;; 9795 9796 aix4* | aix5*) 9797 if test "$host_cpu" = ia64; then 9798 # On IA64, the linker does run time linking by default, so we don't 9799 # have to do anything special. 9800 aix_use_runtimelinking=no 9801 exp_sym_flag='-Bexport' 9802 no_entry_flag="" 9803 else 9804 # If we're using GNU nm, then we don't want the "-C" option. 9805 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9806 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 9807 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 9808 else 9809 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 9810 fi 9811 aix_use_runtimelinking=no 9812 9813 # Test if we are trying to use run time linking or normal 9814 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9815 # need to do runtime linking. 9816 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 9817 for ld_flag in $LDFLAGS; do 9818 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9819 aix_use_runtimelinking=yes 9820 break 9821 fi 9822 done 9823 ;; 9824 esac 9825 9826 exp_sym_flag='-bexport' 9827 no_entry_flag='-bnoentry' 9828 fi 9829 9830 # When large executables or shared objects are built, AIX ld can 9831 # have problems creating the table of contents. If linking a library 9832 # or program results in "error TOC overflow" add -mminimal-toc to 9833 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9834 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9835 9836 archive_cmds='' 9837 hardcode_direct=yes 9838 hardcode_libdir_separator=':' 9839 link_all_deplibs=yes 9840 9841 if test "$GCC" = yes; then 9842 case $host_os in aix4.[012]|aix4.[012].*) 9843 # We only want to do this on AIX 4.2 and lower, the check 9844 # below for broken collect2 doesn't work under 4.3+ 9845 collect2name=`${CC} -print-prog-name=collect2` 9846 if test -f "$collect2name" && \ 9847 strings "$collect2name" | grep resolve_lib_name >/dev/null 9848 then 9849 # We have reworked collect2 9850 hardcode_direct=yes 9851 else 9852 # We have old collect2 9853 hardcode_direct=unsupported 9854 # It fails to find uninstalled libraries when the uninstalled 9855 # path is not listed in the libpath. Setting hardcode_minus_L 9856 # to unsupported forces relinking 9857 hardcode_minus_L=yes 9858 hardcode_libdir_flag_spec='-L$libdir' 9859 hardcode_libdir_separator= 9860 fi 9861 ;; 9862 esac 9863 shared_flag='-shared' 9864 if test "$aix_use_runtimelinking" = yes; then 9865 shared_flag="$shared_flag "'${wl}-G' 9866 fi 9867 else 9868 # not using gcc 9869 if test "$host_cpu" = ia64; then 9870 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9871 # chokes on -Wl,-G. The following line is correct: 9872 shared_flag='-G' 9873 else 9874 if test "$aix_use_runtimelinking" = yes; then 9875 shared_flag='${wl}-G' 9876 else 9877 shared_flag='${wl}-bM:SRE' 9878 fi 9879 fi 9880 fi 9881 9882 # It seems that -bexpall does not export symbols beginning with 9883 # underscore (_), so it is better to generate a list of symbols to export. 9884 always_export_symbols=yes 9885 if test "$aix_use_runtimelinking" = yes; then 9886 # Warning - without using the other runtime loading flags (-brtl), 9887 # -berok will link without error, but may produce a broken library. 9888 allow_undefined_flag='-berok' 9889 # Determine the default libpath from the value encoded in an empty executable. 9890 cat >conftest.$ac_ext <<_ACEOF 9891/* confdefs.h. */ 9892_ACEOF 9893cat confdefs.h >>conftest.$ac_ext 9894cat >>conftest.$ac_ext <<_ACEOF 9895/* end confdefs.h. */ 9896 9897#ifdef F77_DUMMY_MAIN 9898 9899# ifdef __cplusplus 9900 extern "C" 9901# endif 9902 int F77_DUMMY_MAIN() { return 1; } 9903 9904#endif 9905int 9906main () 9907{ 9908 9909 ; 9910 return 0; 9911} 9912_ACEOF 9913rm -f conftest.$ac_objext conftest$ac_exeext 9914if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9915 (eval $ac_link) 2>conftest.er1 9916 ac_status=$? 9917 grep -v '^ *+' conftest.er1 >conftest.err 9918 rm -f conftest.er1 9919 cat conftest.err >&5 9920 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9921 (exit $ac_status); } && 9922 { ac_try='test -z "$ac_c_werror_flag" 9923 || test ! -s conftest.err' 9924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9925 (eval $ac_try) 2>&5 9926 ac_status=$? 9927 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9928 (exit $ac_status); }; } && 9929 { ac_try='test -s conftest$ac_exeext' 9930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9931 (eval $ac_try) 2>&5 9932 ac_status=$? 9933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9934 (exit $ac_status); }; }; then 9935 9936aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 9937}'` 9938# Check for a 64-bit object if we didn't find anything. 9939if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 9940}'`; fi 9941else 9942 echo "$as_me: failed program was:" >&5 9943sed 's/^/| /' conftest.$ac_ext >&5 9944 9945fi 9946rm -f conftest.err conftest.$ac_objext \ 9947 conftest$ac_exeext conftest.$ac_ext 9948if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9949 9950 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9951 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 9952 else 9953 if test "$host_cpu" = ia64; then 9954 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9955 allow_undefined_flag="-z nodefs" 9956 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" 9957 else 9958 # Determine the default libpath from the value encoded in an empty executable. 9959 cat >conftest.$ac_ext <<_ACEOF 9960/* confdefs.h. */ 9961_ACEOF 9962cat confdefs.h >>conftest.$ac_ext 9963cat >>conftest.$ac_ext <<_ACEOF 9964/* end confdefs.h. */ 9965 9966#ifdef F77_DUMMY_MAIN 9967 9968# ifdef __cplusplus 9969 extern "C" 9970# endif 9971 int F77_DUMMY_MAIN() { return 1; } 9972 9973#endif 9974int 9975main () 9976{ 9977 9978 ; 9979 return 0; 9980} 9981_ACEOF 9982rm -f conftest.$ac_objext conftest$ac_exeext 9983if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9984 (eval $ac_link) 2>conftest.er1 9985 ac_status=$? 9986 grep -v '^ *+' conftest.er1 >conftest.err 9987 rm -f conftest.er1 9988 cat conftest.err >&5 9989 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9990 (exit $ac_status); } && 9991 { ac_try='test -z "$ac_c_werror_flag" 9992 || test ! -s conftest.err' 9993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9994 (eval $ac_try) 2>&5 9995 ac_status=$? 9996 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9997 (exit $ac_status); }; } && 9998 { ac_try='test -s conftest$ac_exeext' 9999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10000 (eval $ac_try) 2>&5 10001 ac_status=$? 10002 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10003 (exit $ac_status); }; }; then 10004 10005aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10006}'` 10007# Check for a 64-bit object if we didn't find anything. 10008if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10009}'`; fi 10010else 10011 echo "$as_me: failed program was:" >&5 10012sed 's/^/| /' conftest.$ac_ext >&5 10013 10014fi 10015rm -f conftest.err conftest.$ac_objext \ 10016 conftest$ac_exeext conftest.$ac_ext 10017if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10018 10019 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 10020 # Warning - without using the other run time loading flags, 10021 # -berok will link without error, but may produce a broken library. 10022 no_undefined_flag=' ${wl}-bernotok' 10023 allow_undefined_flag=' ${wl}-berok' 10024 # Exported symbols can be pulled into shared objects from archives 10025 whole_archive_flag_spec='$convenience' 10026 archive_cmds_need_lc=yes 10027 # This is similar to how AIX traditionally builds its shared libraries. 10028 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' 10029 fi 10030 fi 10031 ;; 10032 10033 amigaos*) 10034 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)' 10035 hardcode_libdir_flag_spec='-L$libdir' 10036 hardcode_minus_L=yes 10037 # see comment about different semantics on the GNU ld section 10038 ld_shlibs=no 10039 ;; 10040 10041 bsdi[45]*) 10042 export_dynamic_flag_spec=-rdynamic 10043 ;; 10044 10045 cygwin* | mingw* | pw32*) 10046 # When not using gcc, we currently assume that we are using 10047 # Microsoft Visual C++. 10048 # hardcode_libdir_flag_spec is actually meaningless, as there is 10049 # no search path for DLLs. 10050 hardcode_libdir_flag_spec=' ' 10051 allow_undefined_flag=unsupported 10052 # Tell ltmain to make .lib files, not .a files. 10053 libext=lib 10054 # Tell ltmain to make .dll files, not .so files. 10055 shrext_cmds=".dll" 10056 # FIXME: Setting linknames here is a bad hack. 10057 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 10058 # The linker will automatically build a .lib file if we build a DLL. 10059 old_archive_From_new_cmds='true' 10060 # FIXME: Should let the user specify the lib program. 10061 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 10062 fix_srcfile_path='`cygpath -w "$srcfile"`' 10063 enable_shared_with_static_runtimes=yes 10064 ;; 10065 10066 darwin* | rhapsody*) 10067 case $host_os in 10068 rhapsody* | darwin1.[012]) 10069 allow_undefined_flag='${wl}-undefined ${wl}suppress' 10070 ;; 10071 *) # Darwin 1.3 on 10072 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 10073 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 10074 else 10075 case ${MACOSX_DEPLOYMENT_TARGET} in 10076 10.[012]) 10077 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 10078 ;; 10079 10.*) 10080 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 10081 ;; 10082 esac 10083 fi 10084 ;; 10085 esac 10086 archive_cmds_need_lc=no 10087 hardcode_direct=no 10088 hardcode_automatic=yes 10089 hardcode_shlibpath_var=unsupported 10090 whole_archive_flag_spec='' 10091 link_all_deplibs=yes 10092 if test "$GCC" = yes ; then 10093 output_verbose_link_cmd='echo' 10094 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 10095 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 10096 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 10097 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 10098 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 10099 else 10100 case $cc_basename in 10101 xlc*) 10102 output_verbose_link_cmd='echo' 10103 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 10104 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 10105 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 10106 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 10107 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 10108 ;; 10109 *) 10110 ld_shlibs=no 10111 ;; 10112 esac 10113 fi 10114 ;; 10115 10116 dgux*) 10117 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10118 hardcode_libdir_flag_spec='-L$libdir' 10119 hardcode_shlibpath_var=no 10120 ;; 10121 10122 freebsd1*) 10123 ld_shlibs=no 10124 ;; 10125 10126 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10127 # support. Future versions do this automatically, but an explicit c++rt0.o 10128 # does not break anything, and helps significantly (at the cost of a little 10129 # extra space). 10130 freebsd2.2*) 10131 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10132 hardcode_libdir_flag_spec='-R$libdir' 10133 hardcode_direct=yes 10134 hardcode_shlibpath_var=no 10135 ;; 10136 10137 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10138 freebsd2*) 10139 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10140 hardcode_direct=yes 10141 hardcode_minus_L=yes 10142 hardcode_shlibpath_var=no 10143 ;; 10144 10145 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10146 freebsd* | kfreebsd*-gnu | dragonfly*) 10147 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 10148 hardcode_libdir_flag_spec='-R$libdir' 10149 hardcode_direct=yes 10150 hardcode_shlibpath_var=no 10151 ;; 10152 10153 hpux9*) 10154 if test "$GCC" = yes; then 10155 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' 10156 else 10157 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' 10158 fi 10159 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10160 hardcode_libdir_separator=: 10161 hardcode_direct=yes 10162 10163 # hardcode_minus_L: Not really in the search PATH, 10164 # but as the default location of the library. 10165 hardcode_minus_L=yes 10166 export_dynamic_flag_spec='${wl}-E' 10167 ;; 10168 10169 hpux10*) 10170 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 10171 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10172 else 10173 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10174 fi 10175 if test "$with_gnu_ld" = no; then 10176 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10177 hardcode_libdir_separator=: 10178 10179 hardcode_direct=yes 10180 export_dynamic_flag_spec='${wl}-E' 10181 10182 # hardcode_minus_L: Not really in the search PATH, 10183 # but as the default location of the library. 10184 hardcode_minus_L=yes 10185 fi 10186 ;; 10187 10188 hpux11*) 10189 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 10190 case $host_cpu in 10191 hppa*64*) 10192 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10193 ;; 10194 ia64*) 10195 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10196 ;; 10197 *) 10198 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10199 ;; 10200 esac 10201 else 10202 case $host_cpu in 10203 hppa*64*) 10204 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10205 ;; 10206 ia64*) 10207 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10208 ;; 10209 *) 10210 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10211 ;; 10212 esac 10213 fi 10214 if test "$with_gnu_ld" = no; then 10215 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10216 hardcode_libdir_separator=: 10217 10218 case $host_cpu in 10219 hppa*64*|ia64*) 10220 hardcode_libdir_flag_spec_ld='+b $libdir' 10221 hardcode_direct=no 10222 hardcode_shlibpath_var=no 10223 ;; 10224 *) 10225 hardcode_direct=yes 10226 export_dynamic_flag_spec='${wl}-E' 10227 10228 # hardcode_minus_L: Not really in the search PATH, 10229 # but as the default location of the library. 10230 hardcode_minus_L=yes 10231 ;; 10232 esac 10233 fi 10234 ;; 10235 10236 irix5* | irix6* | nonstopux*) 10237 if test "$GCC" = yes; then 10238 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 10239 else 10240 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 10241 hardcode_libdir_flag_spec_ld='-rpath $libdir' 10242 fi 10243 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10244 hardcode_libdir_separator=: 10245 link_all_deplibs=yes 10246 ;; 10247 10248 netbsd*) 10249 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 10250 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10251 else 10252 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10253 fi 10254 hardcode_libdir_flag_spec='-R$libdir' 10255 hardcode_direct=yes 10256 hardcode_shlibpath_var=no 10257 ;; 10258 10259 newsos6) 10260 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10261 hardcode_direct=yes 10262 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10263 hardcode_libdir_separator=: 10264 hardcode_shlibpath_var=no 10265 ;; 10266 10267 openbsd*) 10268 hardcode_direct=yes 10269 hardcode_shlibpath_var=no 10270 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10271 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10272 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 10273 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10274 export_dynamic_flag_spec='${wl}-E' 10275 else 10276 case $host_os in 10277 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 10278 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10279 hardcode_libdir_flag_spec='-R$libdir' 10280 ;; 10281 *) 10282 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10283 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10284 ;; 10285 esac 10286 fi 10287 ;; 10288 10289 os2*) 10290 hardcode_libdir_flag_spec='-L$libdir' 10291 hardcode_minus_L=yes 10292 allow_undefined_flag=unsupported 10293 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' 10294 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 10295 ;; 10296 10297 osf3*) 10298 if test "$GCC" = yes; then 10299 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10300 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 10301 else 10302 allow_undefined_flag=' -expect_unresolved \*' 10303 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 10304 fi 10305 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10306 hardcode_libdir_separator=: 10307 ;; 10308 10309 osf4* | osf5*) # as osf3* with the addition of -msym flag 10310 if test "$GCC" = yes; then 10311 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10312 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 10313 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10314 else 10315 allow_undefined_flag=' -expect_unresolved \*' 10316 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 10317 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 10318 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 10319 10320 # Both c and cxx compiler support -rpath directly 10321 hardcode_libdir_flag_spec='-rpath $libdir' 10322 fi 10323 hardcode_libdir_separator=: 10324 ;; 10325 10326 solaris*) 10327 no_undefined_flag=' -z text' 10328 if test "$GCC" = yes; then 10329 wlarc='${wl}' 10330 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10331 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10332 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 10333 else 10334 wlarc='' 10335 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10336 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10337 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 10338 fi 10339 hardcode_libdir_flag_spec='-R$libdir' 10340 hardcode_shlibpath_var=no 10341 case $host_os in 10342 solaris2.[0-5] | solaris2.[0-5].*) ;; 10343 *) 10344 # The compiler driver will combine linker options so we 10345 # cannot just pass the convience library names through 10346 # without $wl, iff we do not link with $LD. 10347 # Luckily, gcc supports the same syntax we need for Sun Studio. 10348 # Supported since Solaris 2.6 (maybe 2.5.1?) 10349 case $wlarc in 10350 '') 10351 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 10352 *) 10353 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 10354 esac ;; 10355 esac 10356 link_all_deplibs=yes 10357 ;; 10358 10359 sunos4*) 10360 if test "x$host_vendor" = xsequent; then 10361 # Use $CC to link under sequent, because it throws in some extra .o 10362 # files that make .init and .fini sections work. 10363 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10364 else 10365 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10366 fi 10367 hardcode_libdir_flag_spec='-L$libdir' 10368 hardcode_direct=yes 10369 hardcode_minus_L=yes 10370 hardcode_shlibpath_var=no 10371 ;; 10372 10373 sysv4) 10374 case $host_vendor in 10375 sni) 10376 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10377 hardcode_direct=yes # is this really true??? 10378 ;; 10379 siemens) 10380 ## LD is ld it makes a PLAMLIB 10381 ## CC just makes a GrossModule. 10382 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10383 reload_cmds='$CC -r -o $output$reload_objs' 10384 hardcode_direct=no 10385 ;; 10386 motorola) 10387 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10388 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10389 ;; 10390 esac 10391 runpath_var='LD_RUN_PATH' 10392 hardcode_shlibpath_var=no 10393 ;; 10394 10395 sysv4.3*) 10396 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10397 hardcode_shlibpath_var=no 10398 export_dynamic_flag_spec='-Bexport' 10399 ;; 10400 10401 sysv4*MP*) 10402 if test -d /usr/nec; then 10403 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10404 hardcode_shlibpath_var=no 10405 runpath_var=LD_RUN_PATH 10406 hardcode_runpath_var=yes 10407 ld_shlibs=yes 10408 fi 10409 ;; 10410 10411 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 10412 no_undefined_flag='${wl}-z,text' 10413 archive_cmds_need_lc=no 10414 hardcode_shlibpath_var=no 10415 runpath_var='LD_RUN_PATH' 10416 10417 if test "$GCC" = yes; then 10418 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10419 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10420 else 10421 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10422 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10423 fi 10424 ;; 10425 10426 sysv5* | sco3.2v5* | sco5v6*) 10427 # Note: We can NOT use -z defs as we might desire, because we do not 10428 # link with -lc, and that would cause any symbols used from libc to 10429 # always be unresolved, which means just about no library would 10430 # ever link correctly. If we're not using GNU ld we use -z text 10431 # though, which does catch some bad symbols but isn't as heavy-handed 10432 # as -z defs. 10433 no_undefined_flag='${wl}-z,text' 10434 allow_undefined_flag='${wl}-z,nodefs' 10435 archive_cmds_need_lc=no 10436 hardcode_shlibpath_var=no 10437 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 10438 hardcode_libdir_separator=':' 10439 link_all_deplibs=yes 10440 export_dynamic_flag_spec='${wl}-Bexport' 10441 runpath_var='LD_RUN_PATH' 10442 10443 if test "$GCC" = yes; then 10444 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 10445 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 10446 else 10447 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 10448 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 10449 fi 10450 ;; 10451 10452 uts4*) 10453 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10454 hardcode_libdir_flag_spec='-L$libdir' 10455 hardcode_shlibpath_var=no 10456 ;; 10457 10458 *) 10459 ld_shlibs=no 10460 ;; 10461 esac 10462 fi 10463 10464echo "$as_me:$LINENO: result: $ld_shlibs" >&5 10465echo "${ECHO_T}$ld_shlibs" >&6 10466test "$ld_shlibs" = no && can_build_shared=no 10467 10468# 10469# Do we need to explicitly link libc? 10470# 10471case "x$archive_cmds_need_lc" in 10472x|xyes) 10473 # Assume -lc should be added 10474 archive_cmds_need_lc=yes 10475 10476 if test "$enable_shared" = yes && test "$GCC" = yes; then 10477 case $archive_cmds in 10478 *'~'*) 10479 # FIXME: we may have to deal with multi-command sequences. 10480 ;; 10481 '$CC '*) 10482 # Test whether the compiler implicitly links with -lc since on some 10483 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10484 # to ld, don't add -lc before -lgcc. 10485 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 10486echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 10487 $rm conftest* 10488 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 10489 10490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10491 (eval $ac_compile) 2>&5 10492 ac_status=$? 10493 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10494 (exit $ac_status); } 2>conftest.err; then 10495 soname=conftest 10496 lib=conftest 10497 libobjs=conftest.$ac_objext 10498 deplibs= 10499 wl=$lt_prog_compiler_wl 10500 pic_flag=$lt_prog_compiler_pic 10501 compiler_flags=-v 10502 linker_flags=-v 10503 verstring= 10504 output_objdir=. 10505 libname=conftest 10506 lt_save_allow_undefined_flag=$allow_undefined_flag 10507 allow_undefined_flag= 10508 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 10509 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 10510 ac_status=$? 10511 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10512 (exit $ac_status); } 10513 then 10514 archive_cmds_need_lc=no 10515 else 10516 archive_cmds_need_lc=yes 10517 fi 10518 allow_undefined_flag=$lt_save_allow_undefined_flag 10519 else 10520 cat conftest.err 1>&5 10521 fi 10522 $rm conftest* 10523 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 10524echo "${ECHO_T}$archive_cmds_need_lc" >&6 10525 ;; 10526 esac 10527 fi 10528 ;; 10529esac 10530 10531echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 10532echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 10533library_names_spec= 10534libname_spec='lib$name' 10535soname_spec= 10536shrext_cmds=".so" 10537postinstall_cmds= 10538postuninstall_cmds= 10539finish_cmds= 10540finish_eval= 10541shlibpath_var= 10542shlibpath_overrides_runpath=unknown 10543version_type=none 10544dynamic_linker="$host_os ld.so" 10545sys_lib_dlsearch_path_spec="/lib /usr/lib" 10546if test "$GCC" = yes; then 10547 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10548 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 10549 # if the path contains ";" then we assume it to be the separator 10550 # otherwise default to the standard path separator (i.e. ":") - it is 10551 # assumed that no part of a normal pathname contains ";" but that should 10552 # okay in the real world where ";" in dirpaths is itself problematic. 10553 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10554 else 10555 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10556 fi 10557else 10558 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10559fi 10560need_lib_prefix=unknown 10561hardcode_into_libs=no 10562 10563# when you set need_version to no, make sure it does not cause -set_version 10564# flags to be left without arguments 10565need_version=unknown 10566 10567case $host_os in 10568aix3*) 10569 version_type=linux 10570 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10571 shlibpath_var=LIBPATH 10572 10573 # AIX 3 has no versioning support, so we append a major version to the name. 10574 soname_spec='${libname}${release}${shared_ext}$major' 10575 ;; 10576 10577aix4* | aix5*) 10578 version_type=linux 10579 need_lib_prefix=no 10580 need_version=no 10581 hardcode_into_libs=yes 10582 if test "$host_cpu" = ia64; then 10583 # AIX 5 supports IA64 10584 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10585 shlibpath_var=LD_LIBRARY_PATH 10586 else 10587 # With GCC up to 2.95.x, collect2 would create an import file 10588 # for dependence libraries. The import file would start with 10589 # the line `#! .'. This would cause the generated library to 10590 # depend on `.', always an invalid library. This was fixed in 10591 # development snapshots of GCC prior to 3.0. 10592 case $host_os in 10593 aix4 | aix4.[01] | aix4.[01].*) 10594 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10595 echo ' yes ' 10596 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 10597 : 10598 else 10599 can_build_shared=no 10600 fi 10601 ;; 10602 esac 10603 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10604 # soname into executable. Probably we can add versioning support to 10605 # collect2, so additional links can be useful in future. 10606 if test "$aix_use_runtimelinking" = yes; then 10607 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10608 # instead of lib<name>.a to let people know that these are not 10609 # typical AIX shared libraries. 10610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10611 else 10612 # We preserve .a as extension for shared libraries through AIX4.2 10613 # and later when we are not doing run time linking. 10614 library_names_spec='${libname}${release}.a $libname.a' 10615 soname_spec='${libname}${release}${shared_ext}$major' 10616 fi 10617 shlibpath_var=LIBPATH 10618 fi 10619 ;; 10620 10621amigaos*) 10622 library_names_spec='$libname.ixlibrary $libname.a' 10623 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10624 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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' 10625 ;; 10626 10627beos*) 10628 library_names_spec='${libname}${shared_ext}' 10629 dynamic_linker="$host_os ld.so" 10630 shlibpath_var=LIBRARY_PATH 10631 ;; 10632 10633bsdi[45]*) 10634 version_type=linux 10635 need_version=no 10636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10637 soname_spec='${libname}${release}${shared_ext}$major' 10638 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10639 shlibpath_var=LD_LIBRARY_PATH 10640 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10641 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10642 # the default ld.so.conf also contains /usr/contrib/lib and 10643 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10644 # libtool to hard-code these into programs 10645 ;; 10646 10647cygwin* | mingw* | pw32*) 10648 version_type=windows 10649 shrext_cmds=".dll" 10650 need_version=no 10651 need_lib_prefix=no 10652 10653 case $GCC,$host_os in 10654 yes,cygwin* | yes,mingw* | yes,pw32*) 10655 library_names_spec='$libname.dll.a' 10656 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10657 postinstall_cmds='base_file=`basename \${file}`~ 10658 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 10659 dldir=$destdir/`dirname \$dlpath`~ 10660 test -d \$dldir || mkdir -p \$dldir~ 10661 $install_prog $dir/$dlname \$dldir/$dlname~ 10662 chmod a+x \$dldir/$dlname' 10663 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10664 dlpath=$dir/\$dldll~ 10665 $rm \$dlpath' 10666 shlibpath_overrides_runpath=yes 10667 10668 case $host_os in 10669 cygwin*) 10670 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10671 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10672 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 10673 ;; 10674 mingw*) 10675 # MinGW DLLs use traditional 'lib' prefix 10676 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10677 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10678 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 10679 # It is most probably a Windows format PATH printed by 10680 # mingw gcc, but we are running on Cygwin. Gcc prints its search 10681 # path with ; separators, and with drive letters. We can handle the 10682 # drive letters (cygwin fileutils understands them), so leave them, 10683 # especially as we might pass files found there to a mingw objdump, 10684 # which wouldn't understand a cygwinified path. Ahh. 10685 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10686 else 10687 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10688 fi 10689 ;; 10690 pw32*) 10691 # pw32 DLLs use 'pw' prefix rather than 'lib' 10692 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10693 ;; 10694 esac 10695 ;; 10696 10697 *) 10698 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10699 ;; 10700 esac 10701 dynamic_linker='Win32 ld.exe' 10702 # FIXME: first we should search . and the directory the executable is in 10703 shlibpath_var=PATH 10704 ;; 10705 10706darwin* | rhapsody*) 10707 dynamic_linker="$host_os dyld" 10708 version_type=darwin 10709 need_lib_prefix=no 10710 need_version=no 10711 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10712 soname_spec='${libname}${release}${major}$shared_ext' 10713 shlibpath_overrides_runpath=yes 10714 shlibpath_var=DYLD_LIBRARY_PATH 10715 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10716 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 10717 if test "$GCC" = yes; then 10718 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 10719 else 10720 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 10721 fi 10722 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10723 ;; 10724 10725dgux*) 10726 version_type=linux 10727 need_lib_prefix=no 10728 need_version=no 10729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10730 soname_spec='${libname}${release}${shared_ext}$major' 10731 shlibpath_var=LD_LIBRARY_PATH 10732 ;; 10733 10734freebsd1*) 10735 dynamic_linker=no 10736 ;; 10737 10738kfreebsd*-gnu) 10739 version_type=linux 10740 need_lib_prefix=no 10741 need_version=no 10742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10743 soname_spec='${libname}${release}${shared_ext}$major' 10744 shlibpath_var=LD_LIBRARY_PATH 10745 shlibpath_overrides_runpath=no 10746 hardcode_into_libs=yes 10747 dynamic_linker='GNU ld.so' 10748 ;; 10749 10750freebsd* | dragonfly*) 10751 # DragonFly does not have aout. When/if they implement a new 10752 # versioning mechanism, adjust this. 10753 if test -x /usr/bin/objformat; then 10754 objformat=`/usr/bin/objformat` 10755 else 10756 case $host_os in 10757 freebsd[123]*) objformat=aout ;; 10758 *) objformat=elf ;; 10759 esac 10760 fi 10761 version_type=freebsd-$objformat 10762 case $version_type in 10763 freebsd-elf*) 10764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10765 need_version=no 10766 need_lib_prefix=no 10767 ;; 10768 freebsd-*) 10769 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10770 need_version=yes 10771 ;; 10772 esac 10773 shlibpath_var=LD_LIBRARY_PATH 10774 case $host_os in 10775 freebsd2*) 10776 shlibpath_overrides_runpath=yes 10777 ;; 10778 freebsd3.[01]* | freebsdelf3.[01]*) 10779 shlibpath_overrides_runpath=yes 10780 hardcode_into_libs=yes 10781 ;; 10782 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10783 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10784 shlibpath_overrides_runpath=no 10785 hardcode_into_libs=yes 10786 ;; 10787 freebsd*) # from 4.6 on 10788 shlibpath_overrides_runpath=yes 10789 hardcode_into_libs=yes 10790 ;; 10791 esac 10792 ;; 10793 10794gnu*) 10795 version_type=linux 10796 need_lib_prefix=no 10797 need_version=no 10798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10799 soname_spec='${libname}${release}${shared_ext}$major' 10800 shlibpath_var=LD_LIBRARY_PATH 10801 hardcode_into_libs=yes 10802 ;; 10803 10804hpux9* | hpux10* | hpux11*) 10805 # Give a soname corresponding to the major version so that dld.sl refuses to 10806 # link against other versions. 10807 version_type=sunos 10808 need_lib_prefix=no 10809 need_version=no 10810 case $host_cpu in 10811 ia64*) 10812 shrext_cmds='.so' 10813 hardcode_into_libs=yes 10814 dynamic_linker="$host_os dld.so" 10815 shlibpath_var=LD_LIBRARY_PATH 10816 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10818 soname_spec='${libname}${release}${shared_ext}$major' 10819 if test "X$HPUX_IA64_MODE" = X32; then 10820 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10821 else 10822 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10823 fi 10824 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10825 ;; 10826 hppa*64*) 10827 shrext_cmds='.sl' 10828 hardcode_into_libs=yes 10829 dynamic_linker="$host_os dld.sl" 10830 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10831 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10833 soname_spec='${libname}${release}${shared_ext}$major' 10834 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10835 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10836 ;; 10837 *) 10838 shrext_cmds='.sl' 10839 dynamic_linker="$host_os dld.sl" 10840 shlibpath_var=SHLIB_PATH 10841 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10843 soname_spec='${libname}${release}${shared_ext}$major' 10844 ;; 10845 esac 10846 # HP-UX runs *really* slowly unless shared libraries are mode 555. 10847 postinstall_cmds='chmod 555 $lib' 10848 ;; 10849 10850interix3*) 10851 version_type=linux 10852 need_lib_prefix=no 10853 need_version=no 10854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10855 soname_spec='${libname}${release}${shared_ext}$major' 10856 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10857 shlibpath_var=LD_LIBRARY_PATH 10858 shlibpath_overrides_runpath=no 10859 hardcode_into_libs=yes 10860 ;; 10861 10862irix5* | irix6* | nonstopux*) 10863 case $host_os in 10864 nonstopux*) version_type=nonstopux ;; 10865 *) 10866 if test "$lt_cv_prog_gnu_ld" = yes; then 10867 version_type=linux 10868 else 10869 version_type=irix 10870 fi ;; 10871 esac 10872 need_lib_prefix=no 10873 need_version=no 10874 soname_spec='${libname}${release}${shared_ext}$major' 10875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10876 case $host_os in 10877 irix5* | nonstopux*) 10878 libsuff= shlibsuff= 10879 ;; 10880 *) 10881 case $LD in # libtool.m4 will add one of these switches to LD 10882 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10883 libsuff= shlibsuff= libmagic=32-bit;; 10884 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10885 libsuff=32 shlibsuff=N32 libmagic=N32;; 10886 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10887 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10888 *) libsuff= shlibsuff= libmagic=never-match;; 10889 esac 10890 ;; 10891 esac 10892 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10893 shlibpath_overrides_runpath=no 10894 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10895 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10896 hardcode_into_libs=yes 10897 ;; 10898 10899# No shared lib support for Linux oldld, aout, or coff. 10900linux*oldld* | linux*aout* | linux*coff*) 10901 dynamic_linker=no 10902 ;; 10903 10904# This must be Linux ELF. 10905linux*) 10906 version_type=linux 10907 need_lib_prefix=no 10908 need_version=no 10909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10910 soname_spec='${libname}${release}${shared_ext}$major' 10911 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10912 shlibpath_var=LD_LIBRARY_PATH 10913 shlibpath_overrides_runpath=no 10914 # This implies no fast_install, which is unacceptable. 10915 # Some rework will be needed to allow for fast_install 10916 # before this can be enabled. 10917 hardcode_into_libs=yes 10918 10919 # Append ld.so.conf contents to the search path 10920 if test -f /etc/ld.so.conf; then 10921 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 10922 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10923 fi 10924 10925 # We used to test for /lib/ld.so.1 and disable shared libraries on 10926 # powerpc, because MkLinux only supported shared libraries with the 10927 # GNU dynamic linker. Since this was broken with cross compilers, 10928 # most powerpc-linux boxes support dynamic linking these days and 10929 # people can always --disable-shared, the test was removed, and we 10930 # assume the GNU/Linux dynamic linker is in use. 10931 dynamic_linker='GNU/Linux ld.so' 10932 ;; 10933 10934knetbsd*-gnu) 10935 version_type=linux 10936 need_lib_prefix=no 10937 need_version=no 10938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10939 soname_spec='${libname}${release}${shared_ext}$major' 10940 shlibpath_var=LD_LIBRARY_PATH 10941 shlibpath_overrides_runpath=no 10942 hardcode_into_libs=yes 10943 dynamic_linker='GNU ld.so' 10944 ;; 10945 10946netbsd*) 10947 version_type=sunos 10948 need_lib_prefix=no 10949 need_version=no 10950 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 10951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10952 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10953 dynamic_linker='NetBSD (a.out) ld.so' 10954 else 10955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10956 soname_spec='${libname}${release}${shared_ext}$major' 10957 dynamic_linker='NetBSD ld.elf_so' 10958 fi 10959 shlibpath_var=LD_LIBRARY_PATH 10960 shlibpath_overrides_runpath=yes 10961 hardcode_into_libs=yes 10962 ;; 10963 10964newsos6) 10965 version_type=linux 10966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10967 shlibpath_var=LD_LIBRARY_PATH 10968 shlibpath_overrides_runpath=yes 10969 ;; 10970 10971nto-qnx*) 10972 version_type=linux 10973 need_lib_prefix=no 10974 need_version=no 10975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10976 soname_spec='${libname}${release}${shared_ext}$major' 10977 shlibpath_var=LD_LIBRARY_PATH 10978 shlibpath_overrides_runpath=yes 10979 ;; 10980 10981openbsd*) 10982 version_type=sunos 10983 sys_lib_dlsearch_path_spec="/usr/lib" 10984 need_lib_prefix=no 10985 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10986 case $host_os in 10987 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10988 *) need_version=no ;; 10989 esac 10990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10991 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10992 shlibpath_var=LD_LIBRARY_PATH 10993 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10994 case $host_os in 10995 openbsd2.[89] | openbsd2.[89].*) 10996 shlibpath_overrides_runpath=no 10997 ;; 10998 *) 10999 shlibpath_overrides_runpath=yes 11000 ;; 11001 esac 11002 else 11003 shlibpath_overrides_runpath=yes 11004 fi 11005 ;; 11006 11007os2*) 11008 libname_spec='$name' 11009 shrext_cmds=".dll" 11010 need_lib_prefix=no 11011 library_names_spec='$libname${shared_ext} $libname.a' 11012 dynamic_linker='OS/2 ld.exe' 11013 shlibpath_var=LIBPATH 11014 ;; 11015 11016osf3* | osf4* | osf5*) 11017 version_type=osf 11018 need_lib_prefix=no 11019 need_version=no 11020 soname_spec='${libname}${release}${shared_ext}$major' 11021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11022 shlibpath_var=LD_LIBRARY_PATH 11023 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11024 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11025 ;; 11026 11027solaris*) 11028 version_type=linux 11029 need_lib_prefix=no 11030 need_version=no 11031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11032 soname_spec='${libname}${release}${shared_ext}$major' 11033 shlibpath_var=LD_LIBRARY_PATH 11034 shlibpath_overrides_runpath=yes 11035 hardcode_into_libs=yes 11036 # ldd complains unless libraries are executable 11037 postinstall_cmds='chmod +x $lib' 11038 ;; 11039 11040sunos4*) 11041 version_type=sunos 11042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11043 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11044 shlibpath_var=LD_LIBRARY_PATH 11045 shlibpath_overrides_runpath=yes 11046 if test "$with_gnu_ld" = yes; then 11047 need_lib_prefix=no 11048 fi 11049 need_version=yes 11050 ;; 11051 11052sysv4 | sysv4.3*) 11053 version_type=linux 11054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11055 soname_spec='${libname}${release}${shared_ext}$major' 11056 shlibpath_var=LD_LIBRARY_PATH 11057 case $host_vendor in 11058 sni) 11059 shlibpath_overrides_runpath=no 11060 need_lib_prefix=no 11061 export_dynamic_flag_spec='${wl}-Blargedynsym' 11062 runpath_var=LD_RUN_PATH 11063 ;; 11064 siemens) 11065 need_lib_prefix=no 11066 ;; 11067 motorola) 11068 need_lib_prefix=no 11069 need_version=no 11070 shlibpath_overrides_runpath=no 11071 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11072 ;; 11073 esac 11074 ;; 11075 11076sysv4*MP*) 11077 if test -d /usr/nec ;then 11078 version_type=linux 11079 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11080 soname_spec='$libname${shared_ext}.$major' 11081 shlibpath_var=LD_LIBRARY_PATH 11082 fi 11083 ;; 11084 11085sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11086 version_type=freebsd-elf 11087 need_lib_prefix=no 11088 need_version=no 11089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11090 soname_spec='${libname}${release}${shared_ext}$major' 11091 shlibpath_var=LD_LIBRARY_PATH 11092 hardcode_into_libs=yes 11093 if test "$with_gnu_ld" = yes; then 11094 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11095 shlibpath_overrides_runpath=no 11096 else 11097 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11098 shlibpath_overrides_runpath=yes 11099 case $host_os in 11100 sco3.2v5*) 11101 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11102 ;; 11103 esac 11104 fi 11105 sys_lib_dlsearch_path_spec='/usr/lib' 11106 ;; 11107 11108uts4*) 11109 version_type=linux 11110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11111 soname_spec='${libname}${release}${shared_ext}$major' 11112 shlibpath_var=LD_LIBRARY_PATH 11113 ;; 11114 11115*) 11116 dynamic_linker=no 11117 ;; 11118esac 11119echo "$as_me:$LINENO: result: $dynamic_linker" >&5 11120echo "${ECHO_T}$dynamic_linker" >&6 11121test "$dynamic_linker" = no && can_build_shared=no 11122 11123variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11124if test "$GCC" = yes; then 11125 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11126fi 11127 11128echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 11129echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 11130hardcode_action= 11131if test -n "$hardcode_libdir_flag_spec" || \ 11132 test -n "$runpath_var" || \ 11133 test "X$hardcode_automatic" = "Xyes" ; then 11134 11135 # We can hardcode non-existant directories. 11136 if test "$hardcode_direct" != no && 11137 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11138 # have to relink, otherwise we might link with an installed library 11139 # when we should be linking with a yet-to-be-installed one 11140 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 11141 test "$hardcode_minus_L" != no; then 11142 # Linking always hardcodes the temporary library directory. 11143 hardcode_action=relink 11144 else 11145 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11146 hardcode_action=immediate 11147 fi 11148else 11149 # We cannot hardcode anything, or else we can only hardcode existing 11150 # directories. 11151 hardcode_action=unsupported 11152fi 11153echo "$as_me:$LINENO: result: $hardcode_action" >&5 11154echo "${ECHO_T}$hardcode_action" >&6 11155 11156if test "$hardcode_action" = relink; then 11157 # Fast installation is not supported 11158 enable_fast_install=no 11159elif test "$shlibpath_overrides_runpath" = yes || 11160 test "$enable_shared" = no; then 11161 # Fast installation is not necessary 11162 enable_fast_install=needless 11163fi 11164 11165striplib= 11166old_striplib= 11167echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 11168echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 11169if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 11170 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11171 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11172 echo "$as_me:$LINENO: result: yes" >&5 11173echo "${ECHO_T}yes" >&6 11174else 11175# FIXME - insert some real tests, host_os isn't really good enough 11176 case $host_os in 11177 darwin*) 11178 if test -n "$STRIP" ; then 11179 striplib="$STRIP -x" 11180 echo "$as_me:$LINENO: result: yes" >&5 11181echo "${ECHO_T}yes" >&6 11182 else 11183 echo "$as_me:$LINENO: result: no" >&5 11184echo "${ECHO_T}no" >&6 11185fi 11186 ;; 11187 *) 11188 echo "$as_me:$LINENO: result: no" >&5 11189echo "${ECHO_T}no" >&6 11190 ;; 11191 esac 11192fi 11193 11194if test "x$enable_dlopen" != xyes; then 11195 enable_dlopen=unknown 11196 enable_dlopen_self=unknown 11197 enable_dlopen_self_static=unknown 11198else 11199 lt_cv_dlopen=no 11200 lt_cv_dlopen_libs= 11201 11202 case $host_os in 11203 beos*) 11204 lt_cv_dlopen="load_add_on" 11205 lt_cv_dlopen_libs= 11206 lt_cv_dlopen_self=yes 11207 ;; 11208 11209 mingw* | pw32*) 11210 lt_cv_dlopen="LoadLibrary" 11211 lt_cv_dlopen_libs= 11212 ;; 11213 11214 cygwin*) 11215 lt_cv_dlopen="dlopen" 11216 lt_cv_dlopen_libs= 11217 ;; 11218 11219 darwin*) 11220 # if libdl is installed we need to link against it 11221 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 11222echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 11223if test "${ac_cv_lib_dl_dlopen+set}" = set; then 11224 echo $ECHO_N "(cached) $ECHO_C" >&6 11225else 11226 ac_check_lib_save_LIBS=$LIBS 11227LIBS="-ldl $LIBS" 11228cat >conftest.$ac_ext <<_ACEOF 11229/* confdefs.h. */ 11230_ACEOF 11231cat confdefs.h >>conftest.$ac_ext 11232cat >>conftest.$ac_ext <<_ACEOF 11233/* end confdefs.h. */ 11234 11235/* Override any gcc2 internal prototype to avoid an error. */ 11236#ifdef __cplusplus 11237extern "C" 11238#endif 11239/* We use char because int might match the return type of a gcc2 11240 builtin and then its argument prototype would still apply. */ 11241char dlopen (); 11242#ifdef F77_DUMMY_MAIN 11243 11244# ifdef __cplusplus 11245 extern "C" 11246# endif 11247 int F77_DUMMY_MAIN() { return 1; } 11248 11249#endif 11250int 11251main () 11252{ 11253dlopen (); 11254 ; 11255 return 0; 11256} 11257_ACEOF 11258rm -f conftest.$ac_objext conftest$ac_exeext 11259if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11260 (eval $ac_link) 2>conftest.er1 11261 ac_status=$? 11262 grep -v '^ *+' conftest.er1 >conftest.err 11263 rm -f conftest.er1 11264 cat conftest.err >&5 11265 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11266 (exit $ac_status); } && 11267 { ac_try='test -z "$ac_c_werror_flag" 11268 || test ! -s conftest.err' 11269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11270 (eval $ac_try) 2>&5 11271 ac_status=$? 11272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11273 (exit $ac_status); }; } && 11274 { ac_try='test -s conftest$ac_exeext' 11275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11276 (eval $ac_try) 2>&5 11277 ac_status=$? 11278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11279 (exit $ac_status); }; }; then 11280 ac_cv_lib_dl_dlopen=yes 11281else 11282 echo "$as_me: failed program was:" >&5 11283sed 's/^/| /' conftest.$ac_ext >&5 11284 11285ac_cv_lib_dl_dlopen=no 11286fi 11287rm -f conftest.err conftest.$ac_objext \ 11288 conftest$ac_exeext conftest.$ac_ext 11289LIBS=$ac_check_lib_save_LIBS 11290fi 11291echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 11292echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 11293if test $ac_cv_lib_dl_dlopen = yes; then 11294 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11295else 11296 11297 lt_cv_dlopen="dyld" 11298 lt_cv_dlopen_libs= 11299 lt_cv_dlopen_self=yes 11300 11301fi 11302 11303 ;; 11304 11305 *) 11306 echo "$as_me:$LINENO: checking for shl_load" >&5 11307echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 11308if test "${ac_cv_func_shl_load+set}" = set; then 11309 echo $ECHO_N "(cached) $ECHO_C" >&6 11310else 11311 cat >conftest.$ac_ext <<_ACEOF 11312/* confdefs.h. */ 11313_ACEOF 11314cat confdefs.h >>conftest.$ac_ext 11315cat >>conftest.$ac_ext <<_ACEOF 11316/* end confdefs.h. */ 11317/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 11318 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11319#define shl_load innocuous_shl_load 11320 11321/* System header to define __stub macros and hopefully few prototypes, 11322 which can conflict with char shl_load (); below. 11323 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11324 <limits.h> exists even on freestanding compilers. */ 11325 11326#ifdef __STDC__ 11327# include <limits.h> 11328#else 11329# include <assert.h> 11330#endif 11331 11332#undef shl_load 11333 11334/* Override any gcc2 internal prototype to avoid an error. */ 11335#ifdef __cplusplus 11336extern "C" 11337{ 11338#endif 11339/* We use char because int might match the return type of a gcc2 11340 builtin and then its argument prototype would still apply. */ 11341char shl_load (); 11342/* The GNU C library defines this for functions which it implements 11343 to always fail with ENOSYS. Some functions are actually named 11344 something starting with __ and the normal name is an alias. */ 11345#if defined (__stub_shl_load) || defined (__stub___shl_load) 11346choke me 11347#else 11348char (*f) () = shl_load; 11349#endif 11350#ifdef __cplusplus 11351} 11352#endif 11353 11354#ifdef F77_DUMMY_MAIN 11355 11356# ifdef __cplusplus 11357 extern "C" 11358# endif 11359 int F77_DUMMY_MAIN() { return 1; } 11360 11361#endif 11362int 11363main () 11364{ 11365return f != shl_load; 11366 ; 11367 return 0; 11368} 11369_ACEOF 11370rm -f conftest.$ac_objext conftest$ac_exeext 11371if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11372 (eval $ac_link) 2>conftest.er1 11373 ac_status=$? 11374 grep -v '^ *+' conftest.er1 >conftest.err 11375 rm -f conftest.er1 11376 cat conftest.err >&5 11377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11378 (exit $ac_status); } && 11379 { ac_try='test -z "$ac_c_werror_flag" 11380 || test ! -s conftest.err' 11381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11382 (eval $ac_try) 2>&5 11383 ac_status=$? 11384 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11385 (exit $ac_status); }; } && 11386 { ac_try='test -s conftest$ac_exeext' 11387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11388 (eval $ac_try) 2>&5 11389 ac_status=$? 11390 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11391 (exit $ac_status); }; }; then 11392 ac_cv_func_shl_load=yes 11393else 11394 echo "$as_me: failed program was:" >&5 11395sed 's/^/| /' conftest.$ac_ext >&5 11396 11397ac_cv_func_shl_load=no 11398fi 11399rm -f conftest.err conftest.$ac_objext \ 11400 conftest$ac_exeext conftest.$ac_ext 11401fi 11402echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 11403echo "${ECHO_T}$ac_cv_func_shl_load" >&6 11404if test $ac_cv_func_shl_load = yes; then 11405 lt_cv_dlopen="shl_load" 11406else 11407 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 11408echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 11409if test "${ac_cv_lib_dld_shl_load+set}" = set; then 11410 echo $ECHO_N "(cached) $ECHO_C" >&6 11411else 11412 ac_check_lib_save_LIBS=$LIBS 11413LIBS="-ldld $LIBS" 11414cat >conftest.$ac_ext <<_ACEOF 11415/* confdefs.h. */ 11416_ACEOF 11417cat confdefs.h >>conftest.$ac_ext 11418cat >>conftest.$ac_ext <<_ACEOF 11419/* end confdefs.h. */ 11420 11421/* Override any gcc2 internal prototype to avoid an error. */ 11422#ifdef __cplusplus 11423extern "C" 11424#endif 11425/* We use char because int might match the return type of a gcc2 11426 builtin and then its argument prototype would still apply. */ 11427char shl_load (); 11428#ifdef F77_DUMMY_MAIN 11429 11430# ifdef __cplusplus 11431 extern "C" 11432# endif 11433 int F77_DUMMY_MAIN() { return 1; } 11434 11435#endif 11436int 11437main () 11438{ 11439shl_load (); 11440 ; 11441 return 0; 11442} 11443_ACEOF 11444rm -f conftest.$ac_objext conftest$ac_exeext 11445if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11446 (eval $ac_link) 2>conftest.er1 11447 ac_status=$? 11448 grep -v '^ *+' conftest.er1 >conftest.err 11449 rm -f conftest.er1 11450 cat conftest.err >&5 11451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11452 (exit $ac_status); } && 11453 { ac_try='test -z "$ac_c_werror_flag" 11454 || test ! -s conftest.err' 11455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11456 (eval $ac_try) 2>&5 11457 ac_status=$? 11458 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11459 (exit $ac_status); }; } && 11460 { ac_try='test -s conftest$ac_exeext' 11461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11462 (eval $ac_try) 2>&5 11463 ac_status=$? 11464 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11465 (exit $ac_status); }; }; then 11466 ac_cv_lib_dld_shl_load=yes 11467else 11468 echo "$as_me: failed program was:" >&5 11469sed 's/^/| /' conftest.$ac_ext >&5 11470 11471ac_cv_lib_dld_shl_load=no 11472fi 11473rm -f conftest.err conftest.$ac_objext \ 11474 conftest$ac_exeext conftest.$ac_ext 11475LIBS=$ac_check_lib_save_LIBS 11476fi 11477echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 11478echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 11479if test $ac_cv_lib_dld_shl_load = yes; then 11480 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 11481else 11482 echo "$as_me:$LINENO: checking for dlopen" >&5 11483echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 11484if test "${ac_cv_func_dlopen+set}" = set; then 11485 echo $ECHO_N "(cached) $ECHO_C" >&6 11486else 11487 cat >conftest.$ac_ext <<_ACEOF 11488/* confdefs.h. */ 11489_ACEOF 11490cat confdefs.h >>conftest.$ac_ext 11491cat >>conftest.$ac_ext <<_ACEOF 11492/* end confdefs.h. */ 11493/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 11494 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11495#define dlopen innocuous_dlopen 11496 11497/* System header to define __stub macros and hopefully few prototypes, 11498 which can conflict with char dlopen (); below. 11499 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11500 <limits.h> exists even on freestanding compilers. */ 11501 11502#ifdef __STDC__ 11503# include <limits.h> 11504#else 11505# include <assert.h> 11506#endif 11507 11508#undef dlopen 11509 11510/* Override any gcc2 internal prototype to avoid an error. */ 11511#ifdef __cplusplus 11512extern "C" 11513{ 11514#endif 11515/* We use char because int might match the return type of a gcc2 11516 builtin and then its argument prototype would still apply. */ 11517char dlopen (); 11518/* The GNU C library defines this for functions which it implements 11519 to always fail with ENOSYS. Some functions are actually named 11520 something starting with __ and the normal name is an alias. */ 11521#if defined (__stub_dlopen) || defined (__stub___dlopen) 11522choke me 11523#else 11524char (*f) () = dlopen; 11525#endif 11526#ifdef __cplusplus 11527} 11528#endif 11529 11530#ifdef F77_DUMMY_MAIN 11531 11532# ifdef __cplusplus 11533 extern "C" 11534# endif 11535 int F77_DUMMY_MAIN() { return 1; } 11536 11537#endif 11538int 11539main () 11540{ 11541return f != dlopen; 11542 ; 11543 return 0; 11544} 11545_ACEOF 11546rm -f conftest.$ac_objext conftest$ac_exeext 11547if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11548 (eval $ac_link) 2>conftest.er1 11549 ac_status=$? 11550 grep -v '^ *+' conftest.er1 >conftest.err 11551 rm -f conftest.er1 11552 cat conftest.err >&5 11553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11554 (exit $ac_status); } && 11555 { ac_try='test -z "$ac_c_werror_flag" 11556 || test ! -s conftest.err' 11557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11558 (eval $ac_try) 2>&5 11559 ac_status=$? 11560 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11561 (exit $ac_status); }; } && 11562 { ac_try='test -s conftest$ac_exeext' 11563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11564 (eval $ac_try) 2>&5 11565 ac_status=$? 11566 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11567 (exit $ac_status); }; }; then 11568 ac_cv_func_dlopen=yes 11569else 11570 echo "$as_me: failed program was:" >&5 11571sed 's/^/| /' conftest.$ac_ext >&5 11572 11573ac_cv_func_dlopen=no 11574fi 11575rm -f conftest.err conftest.$ac_objext \ 11576 conftest$ac_exeext conftest.$ac_ext 11577fi 11578echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 11579echo "${ECHO_T}$ac_cv_func_dlopen" >&6 11580if test $ac_cv_func_dlopen = yes; then 11581 lt_cv_dlopen="dlopen" 11582else 11583 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 11584echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 11585if test "${ac_cv_lib_dl_dlopen+set}" = set; then 11586 echo $ECHO_N "(cached) $ECHO_C" >&6 11587else 11588 ac_check_lib_save_LIBS=$LIBS 11589LIBS="-ldl $LIBS" 11590cat >conftest.$ac_ext <<_ACEOF 11591/* confdefs.h. */ 11592_ACEOF 11593cat confdefs.h >>conftest.$ac_ext 11594cat >>conftest.$ac_ext <<_ACEOF 11595/* end confdefs.h. */ 11596 11597/* Override any gcc2 internal prototype to avoid an error. */ 11598#ifdef __cplusplus 11599extern "C" 11600#endif 11601/* We use char because int might match the return type of a gcc2 11602 builtin and then its argument prototype would still apply. */ 11603char dlopen (); 11604#ifdef F77_DUMMY_MAIN 11605 11606# ifdef __cplusplus 11607 extern "C" 11608# endif 11609 int F77_DUMMY_MAIN() { return 1; } 11610 11611#endif 11612int 11613main () 11614{ 11615dlopen (); 11616 ; 11617 return 0; 11618} 11619_ACEOF 11620rm -f conftest.$ac_objext conftest$ac_exeext 11621if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11622 (eval $ac_link) 2>conftest.er1 11623 ac_status=$? 11624 grep -v '^ *+' conftest.er1 >conftest.err 11625 rm -f conftest.er1 11626 cat conftest.err >&5 11627 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11628 (exit $ac_status); } && 11629 { ac_try='test -z "$ac_c_werror_flag" 11630 || test ! -s conftest.err' 11631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11632 (eval $ac_try) 2>&5 11633 ac_status=$? 11634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11635 (exit $ac_status); }; } && 11636 { ac_try='test -s conftest$ac_exeext' 11637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11638 (eval $ac_try) 2>&5 11639 ac_status=$? 11640 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11641 (exit $ac_status); }; }; then 11642 ac_cv_lib_dl_dlopen=yes 11643else 11644 echo "$as_me: failed program was:" >&5 11645sed 's/^/| /' conftest.$ac_ext >&5 11646 11647ac_cv_lib_dl_dlopen=no 11648fi 11649rm -f conftest.err conftest.$ac_objext \ 11650 conftest$ac_exeext conftest.$ac_ext 11651LIBS=$ac_check_lib_save_LIBS 11652fi 11653echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 11654echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 11655if test $ac_cv_lib_dl_dlopen = yes; then 11656 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11657else 11658 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 11659echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 11660if test "${ac_cv_lib_svld_dlopen+set}" = set; then 11661 echo $ECHO_N "(cached) $ECHO_C" >&6 11662else 11663 ac_check_lib_save_LIBS=$LIBS 11664LIBS="-lsvld $LIBS" 11665cat >conftest.$ac_ext <<_ACEOF 11666/* confdefs.h. */ 11667_ACEOF 11668cat confdefs.h >>conftest.$ac_ext 11669cat >>conftest.$ac_ext <<_ACEOF 11670/* end confdefs.h. */ 11671 11672/* Override any gcc2 internal prototype to avoid an error. */ 11673#ifdef __cplusplus 11674extern "C" 11675#endif 11676/* We use char because int might match the return type of a gcc2 11677 builtin and then its argument prototype would still apply. */ 11678char dlopen (); 11679#ifdef F77_DUMMY_MAIN 11680 11681# ifdef __cplusplus 11682 extern "C" 11683# endif 11684 int F77_DUMMY_MAIN() { return 1; } 11685 11686#endif 11687int 11688main () 11689{ 11690dlopen (); 11691 ; 11692 return 0; 11693} 11694_ACEOF 11695rm -f conftest.$ac_objext conftest$ac_exeext 11696if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11697 (eval $ac_link) 2>conftest.er1 11698 ac_status=$? 11699 grep -v '^ *+' conftest.er1 >conftest.err 11700 rm -f conftest.er1 11701 cat conftest.err >&5 11702 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11703 (exit $ac_status); } && 11704 { ac_try='test -z "$ac_c_werror_flag" 11705 || test ! -s conftest.err' 11706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11707 (eval $ac_try) 2>&5 11708 ac_status=$? 11709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11710 (exit $ac_status); }; } && 11711 { ac_try='test -s conftest$ac_exeext' 11712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11713 (eval $ac_try) 2>&5 11714 ac_status=$? 11715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11716 (exit $ac_status); }; }; then 11717 ac_cv_lib_svld_dlopen=yes 11718else 11719 echo "$as_me: failed program was:" >&5 11720sed 's/^/| /' conftest.$ac_ext >&5 11721 11722ac_cv_lib_svld_dlopen=no 11723fi 11724rm -f conftest.err conftest.$ac_objext \ 11725 conftest$ac_exeext conftest.$ac_ext 11726LIBS=$ac_check_lib_save_LIBS 11727fi 11728echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 11729echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 11730if test $ac_cv_lib_svld_dlopen = yes; then 11731 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11732else 11733 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 11734echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 11735if test "${ac_cv_lib_dld_dld_link+set}" = set; then 11736 echo $ECHO_N "(cached) $ECHO_C" >&6 11737else 11738 ac_check_lib_save_LIBS=$LIBS 11739LIBS="-ldld $LIBS" 11740cat >conftest.$ac_ext <<_ACEOF 11741/* confdefs.h. */ 11742_ACEOF 11743cat confdefs.h >>conftest.$ac_ext 11744cat >>conftest.$ac_ext <<_ACEOF 11745/* end confdefs.h. */ 11746 11747/* Override any gcc2 internal prototype to avoid an error. */ 11748#ifdef __cplusplus 11749extern "C" 11750#endif 11751/* We use char because int might match the return type of a gcc2 11752 builtin and then its argument prototype would still apply. */ 11753char dld_link (); 11754#ifdef F77_DUMMY_MAIN 11755 11756# ifdef __cplusplus 11757 extern "C" 11758# endif 11759 int F77_DUMMY_MAIN() { return 1; } 11760 11761#endif 11762int 11763main () 11764{ 11765dld_link (); 11766 ; 11767 return 0; 11768} 11769_ACEOF 11770rm -f conftest.$ac_objext conftest$ac_exeext 11771if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11772 (eval $ac_link) 2>conftest.er1 11773 ac_status=$? 11774 grep -v '^ *+' conftest.er1 >conftest.err 11775 rm -f conftest.er1 11776 cat conftest.err >&5 11777 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11778 (exit $ac_status); } && 11779 { ac_try='test -z "$ac_c_werror_flag" 11780 || test ! -s conftest.err' 11781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11782 (eval $ac_try) 2>&5 11783 ac_status=$? 11784 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11785 (exit $ac_status); }; } && 11786 { ac_try='test -s conftest$ac_exeext' 11787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11788 (eval $ac_try) 2>&5 11789 ac_status=$? 11790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11791 (exit $ac_status); }; }; then 11792 ac_cv_lib_dld_dld_link=yes 11793else 11794 echo "$as_me: failed program was:" >&5 11795sed 's/^/| /' conftest.$ac_ext >&5 11796 11797ac_cv_lib_dld_dld_link=no 11798fi 11799rm -f conftest.err conftest.$ac_objext \ 11800 conftest$ac_exeext conftest.$ac_ext 11801LIBS=$ac_check_lib_save_LIBS 11802fi 11803echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 11804echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 11805if test $ac_cv_lib_dld_dld_link = yes; then 11806 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 11807fi 11808 11809 11810fi 11811 11812 11813fi 11814 11815 11816fi 11817 11818 11819fi 11820 11821 11822fi 11823 11824 ;; 11825 esac 11826 11827 if test "x$lt_cv_dlopen" != xno; then 11828 enable_dlopen=yes 11829 else 11830 enable_dlopen=no 11831 fi 11832 11833 case $lt_cv_dlopen in 11834 dlopen) 11835 save_CPPFLAGS="$CPPFLAGS" 11836 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11837 11838 save_LDFLAGS="$LDFLAGS" 11839 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11840 11841 save_LIBS="$LIBS" 11842 LIBS="$lt_cv_dlopen_libs $LIBS" 11843 11844 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 11845echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 11846if test "${lt_cv_dlopen_self+set}" = set; then 11847 echo $ECHO_N "(cached) $ECHO_C" >&6 11848else 11849 if test "$cross_compiling" = yes; then : 11850 lt_cv_dlopen_self=cross 11851else 11852 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11853 lt_status=$lt_dlunknown 11854 cat > conftest.$ac_ext <<EOF 11855#line 11855 "configure" 11856#include "confdefs.h" 11857 11858#if HAVE_DLFCN_H 11859#include <dlfcn.h> 11860#endif 11861 11862#include <stdio.h> 11863 11864#ifdef RTLD_GLOBAL 11865# define LT_DLGLOBAL RTLD_GLOBAL 11866#else 11867# ifdef DL_GLOBAL 11868# define LT_DLGLOBAL DL_GLOBAL 11869# else 11870# define LT_DLGLOBAL 0 11871# endif 11872#endif 11873 11874/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11875 find out it does not work in some platform. */ 11876#ifndef LT_DLLAZY_OR_NOW 11877# ifdef RTLD_LAZY 11878# define LT_DLLAZY_OR_NOW RTLD_LAZY 11879# else 11880# ifdef DL_LAZY 11881# define LT_DLLAZY_OR_NOW DL_LAZY 11882# else 11883# ifdef RTLD_NOW 11884# define LT_DLLAZY_OR_NOW RTLD_NOW 11885# else 11886# ifdef DL_NOW 11887# define LT_DLLAZY_OR_NOW DL_NOW 11888# else 11889# define LT_DLLAZY_OR_NOW 0 11890# endif 11891# endif 11892# endif 11893# endif 11894#endif 11895 11896#ifdef __cplusplus 11897extern "C" void exit (int); 11898#endif 11899 11900void fnord() { int i=42;} 11901int main () 11902{ 11903 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11904 int status = $lt_dlunknown; 11905 11906 if (self) 11907 { 11908 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11909 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11910 /* dlclose (self); */ 11911 } 11912 else 11913 puts (dlerror ()); 11914 11915 exit (status); 11916} 11917EOF 11918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11919 (eval $ac_link) 2>&5 11920 ac_status=$? 11921 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11922 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 11923 (./conftest; exit; ) >&5 2>/dev/null 11924 lt_status=$? 11925 case x$lt_status in 11926 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11927 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11928 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11929 esac 11930 else : 11931 # compilation failed 11932 lt_cv_dlopen_self=no 11933 fi 11934fi 11935rm -fr conftest* 11936 11937 11938fi 11939echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 11940echo "${ECHO_T}$lt_cv_dlopen_self" >&6 11941 11942 if test "x$lt_cv_dlopen_self" = xyes; then 11943 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11944 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 11945echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 11946if test "${lt_cv_dlopen_self_static+set}" = set; then 11947 echo $ECHO_N "(cached) $ECHO_C" >&6 11948else 11949 if test "$cross_compiling" = yes; then : 11950 lt_cv_dlopen_self_static=cross 11951else 11952 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11953 lt_status=$lt_dlunknown 11954 cat > conftest.$ac_ext <<EOF 11955#line 11955 "configure" 11956#include "confdefs.h" 11957 11958#if HAVE_DLFCN_H 11959#include <dlfcn.h> 11960#endif 11961 11962#include <stdio.h> 11963 11964#ifdef RTLD_GLOBAL 11965# define LT_DLGLOBAL RTLD_GLOBAL 11966#else 11967# ifdef DL_GLOBAL 11968# define LT_DLGLOBAL DL_GLOBAL 11969# else 11970# define LT_DLGLOBAL 0 11971# endif 11972#endif 11973 11974/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11975 find out it does not work in some platform. */ 11976#ifndef LT_DLLAZY_OR_NOW 11977# ifdef RTLD_LAZY 11978# define LT_DLLAZY_OR_NOW RTLD_LAZY 11979# else 11980# ifdef DL_LAZY 11981# define LT_DLLAZY_OR_NOW DL_LAZY 11982# else 11983# ifdef RTLD_NOW 11984# define LT_DLLAZY_OR_NOW RTLD_NOW 11985# else 11986# ifdef DL_NOW 11987# define LT_DLLAZY_OR_NOW DL_NOW 11988# else 11989# define LT_DLLAZY_OR_NOW 0 11990# endif 11991# endif 11992# endif 11993# endif 11994#endif 11995 11996#ifdef __cplusplus 11997extern "C" void exit (int); 11998#endif 11999 12000void fnord() { int i=42;} 12001int main () 12002{ 12003 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12004 int status = $lt_dlunknown; 12005 12006 if (self) 12007 { 12008 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12009 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12010 /* dlclose (self); */ 12011 } 12012 else 12013 puts (dlerror ()); 12014 12015 exit (status); 12016} 12017EOF 12018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12019 (eval $ac_link) 2>&5 12020 ac_status=$? 12021 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12022 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 12023 (./conftest; exit; ) >&5 2>/dev/null 12024 lt_status=$? 12025 case x$lt_status in 12026 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12027 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12028 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12029 esac 12030 else : 12031 # compilation failed 12032 lt_cv_dlopen_self_static=no 12033 fi 12034fi 12035rm -fr conftest* 12036 12037 12038fi 12039echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 12040echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 12041 fi 12042 12043 CPPFLAGS="$save_CPPFLAGS" 12044 LDFLAGS="$save_LDFLAGS" 12045 LIBS="$save_LIBS" 12046 ;; 12047 esac 12048 12049 case $lt_cv_dlopen_self in 12050 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12051 *) enable_dlopen_self=unknown ;; 12052 esac 12053 12054 case $lt_cv_dlopen_self_static in 12055 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12056 *) enable_dlopen_self_static=unknown ;; 12057 esac 12058fi 12059 12060 12061# Report which library types will actually be built 12062echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 12063echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 12064echo "$as_me:$LINENO: result: $can_build_shared" >&5 12065echo "${ECHO_T}$can_build_shared" >&6 12066 12067echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 12068echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 12069test "$can_build_shared" = "no" && enable_shared=no 12070 12071# On AIX, shared libraries and static libraries use the same namespace, and 12072# are all built from PIC. 12073case $host_os in 12074aix3*) 12075 test "$enable_shared" = yes && enable_static=no 12076 if test -n "$RANLIB"; then 12077 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12078 postinstall_cmds='$RANLIB $lib' 12079 fi 12080 ;; 12081 12082aix4* | aix5*) 12083 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 12084 test "$enable_shared" = yes && enable_static=no 12085 fi 12086 ;; 12087esac 12088echo "$as_me:$LINENO: result: $enable_shared" >&5 12089echo "${ECHO_T}$enable_shared" >&6 12090 12091echo "$as_me:$LINENO: checking whether to build static libraries" >&5 12092echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 12093# Make sure either enable_shared or enable_static is yes. 12094test "$enable_shared" = yes || enable_static=yes 12095echo "$as_me:$LINENO: result: $enable_static" >&5 12096echo "${ECHO_T}$enable_static" >&6 12097 12098# The else clause should only fire when bootstrapping the 12099# libtool distribution, otherwise you forgot to ship ltmain.sh 12100# with your package, and you will get complaints that there are 12101# no rules to generate ltmain.sh. 12102if test -f "$ltmain"; then 12103 # See if we are running on zsh, and set the options which allow our commands through 12104 # without removal of \ escapes. 12105 if test -n "${ZSH_VERSION+set}" ; then 12106 setopt NO_GLOB_SUBST 12107 fi 12108 # Now quote all the things that may contain metacharacters while being 12109 # careful not to overquote the AC_SUBSTed values. We take copies of the 12110 # variables and quote the copies for generation of the libtool script. 12111 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 12112 SED SHELL STRIP \ 12113 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 12114 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 12115 deplibs_check_method reload_flag reload_cmds need_locks \ 12116 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 12117 lt_cv_sys_global_symbol_to_c_name_address \ 12118 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 12119 old_postinstall_cmds old_postuninstall_cmds \ 12120 compiler \ 12121 CC \ 12122 LD \ 12123 lt_prog_compiler_wl \ 12124 lt_prog_compiler_pic \ 12125 lt_prog_compiler_static \ 12126 lt_prog_compiler_no_builtin_flag \ 12127 export_dynamic_flag_spec \ 12128 thread_safe_flag_spec \ 12129 whole_archive_flag_spec \ 12130 enable_shared_with_static_runtimes \ 12131 old_archive_cmds \ 12132 old_archive_from_new_cmds \ 12133 predep_objects \ 12134 postdep_objects \ 12135 predeps \ 12136 postdeps \ 12137 compiler_lib_search_path \ 12138 archive_cmds \ 12139 archive_expsym_cmds \ 12140 postinstall_cmds \ 12141 postuninstall_cmds \ 12142 old_archive_from_expsyms_cmds \ 12143 allow_undefined_flag \ 12144 no_undefined_flag \ 12145 export_symbols_cmds \ 12146 hardcode_libdir_flag_spec \ 12147 hardcode_libdir_flag_spec_ld \ 12148 hardcode_libdir_separator \ 12149 hardcode_automatic \ 12150 module_cmds \ 12151 module_expsym_cmds \ 12152 lt_cv_prog_compiler_c_o \ 12153 exclude_expsyms \ 12154 include_expsyms; do 12155 12156 case $var in 12157 old_archive_cmds | \ 12158 old_archive_from_new_cmds | \ 12159 archive_cmds | \ 12160 archive_expsym_cmds | \ 12161 module_cmds | \ 12162 module_expsym_cmds | \ 12163 old_archive_from_expsyms_cmds | \ 12164 export_symbols_cmds | \ 12165 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 12166 postinstall_cmds | postuninstall_cmds | \ 12167 old_postinstall_cmds | old_postuninstall_cmds | \ 12168 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 12169 # Double-quote double-evaled strings. 12170 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 12171 ;; 12172 *) 12173 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 12174 ;; 12175 esac 12176 done 12177 12178 case $lt_echo in 12179 *'\$0 --fallback-echo"') 12180 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 12181 ;; 12182 esac 12183 12184cfgfile="${ofile}T" 12185 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 12186 $rm -f "$cfgfile" 12187 { echo "$as_me:$LINENO: creating $ofile" >&5 12188echo "$as_me: creating $ofile" >&6;} 12189 12190 cat <<__EOF__ >> "$cfgfile" 12191#! $SHELL 12192 12193# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 12194# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 12195# NOTE: Changes made to this file will be lost: look at ltmain.sh. 12196# 12197# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 12198# Free Software Foundation, Inc. 12199# 12200# This file is part of GNU Libtool: 12201# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 12202# 12203# This program is free software; you can redistribute it and/or modify 12204# it under the terms of the GNU General Public License as published by 12205# the Free Software Foundation; either version 2 of the License, or 12206# (at your option) any later version. 12207# 12208# This program is distributed in the hope that it will be useful, but 12209# WITHOUT ANY WARRANTY; without even the implied warranty of 12210# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12211# General Public License for more details. 12212# 12213# You should have received a copy of the GNU General Public License 12214# along with this program; if not, write to the Free Software 12215# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 12216# 12217# As a special exception to the GNU General Public License, if you 12218# distribute this file as part of a program that contains a 12219# configuration script generated by Autoconf, you may include it under 12220# the same distribution terms that you use for the rest of that program. 12221 12222# A sed program that does not truncate output. 12223SED=$lt_SED 12224 12225# Sed that helps us avoid accidentally triggering echo(1) options like -n. 12226Xsed="$SED -e 1s/^X//" 12227 12228# The HP-UX ksh and POSIX shell print the target directory to stdout 12229# if CDPATH is set. 12230(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12231 12232# The names of the tagged configurations supported by this script. 12233available_tags= 12234 12235# ### BEGIN LIBTOOL CONFIG 12236 12237# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 12238 12239# Shell to use when invoking shell scripts. 12240SHELL=$lt_SHELL 12241 12242# Whether or not to build shared libraries. 12243build_libtool_libs=$enable_shared 12244 12245# Whether or not to build static libraries. 12246build_old_libs=$enable_static 12247 12248# Whether or not to add -lc for building shared libraries. 12249build_libtool_need_lc=$archive_cmds_need_lc 12250 12251# Whether or not to disallow shared libs when runtime libs are static 12252allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 12253 12254# Whether or not to optimize for fast installation. 12255fast_install=$enable_fast_install 12256 12257# The host system. 12258host_alias=$host_alias 12259host=$host 12260host_os=$host_os 12261 12262# The build system. 12263build_alias=$build_alias 12264build=$build 12265build_os=$build_os 12266 12267# An echo program that does not interpret backslashes. 12268echo=$lt_echo 12269 12270# The archiver. 12271AR=$lt_AR 12272AR_FLAGS=$lt_AR_FLAGS 12273 12274# A C compiler. 12275LTCC=$lt_LTCC 12276 12277# LTCC compiler flags. 12278LTCFLAGS=$lt_LTCFLAGS 12279 12280# A language-specific compiler. 12281CC=$lt_compiler 12282 12283# Is the compiler the GNU C compiler? 12284with_gcc=$GCC 12285 12286# An ERE matcher. 12287EGREP=$lt_EGREP 12288 12289# The linker used to build libraries. 12290LD=$lt_LD 12291 12292# Whether we need hard or soft links. 12293LN_S=$lt_LN_S 12294 12295# A BSD-compatible nm program. 12296NM=$lt_NM 12297 12298# A symbol stripping program 12299STRIP=$lt_STRIP 12300 12301# Used to examine libraries when file_magic_cmd begins "file" 12302MAGIC_CMD=$MAGIC_CMD 12303 12304# Used on cygwin: DLL creation program. 12305DLLTOOL="$DLLTOOL" 12306 12307# Used on cygwin: object dumper. 12308OBJDUMP="$OBJDUMP" 12309 12310# Used on cygwin: assembler. 12311AS="$AS" 12312 12313# The name of the directory that contains temporary libtool files. 12314objdir=$objdir 12315 12316# How to create reloadable object files. 12317reload_flag=$lt_reload_flag 12318reload_cmds=$lt_reload_cmds 12319 12320# How to pass a linker flag through the compiler. 12321wl=$lt_lt_prog_compiler_wl 12322 12323# Object file suffix (normally "o"). 12324objext="$ac_objext" 12325 12326# Old archive suffix (normally "a"). 12327libext="$libext" 12328 12329# Shared library suffix (normally ".so"). 12330shrext_cmds='$shrext_cmds' 12331 12332# Executable file suffix (normally ""). 12333exeext="$exeext" 12334 12335# Additional compiler flags for building library objects. 12336pic_flag=$lt_lt_prog_compiler_pic 12337pic_mode=$pic_mode 12338 12339# What is the maximum length of a command? 12340max_cmd_len=$lt_cv_sys_max_cmd_len 12341 12342# Does compiler simultaneously support -c and -o options? 12343compiler_c_o=$lt_lt_cv_prog_compiler_c_o 12344 12345# Must we lock files when doing compilation? 12346need_locks=$lt_need_locks 12347 12348# Do we need the lib prefix for modules? 12349need_lib_prefix=$need_lib_prefix 12350 12351# Do we need a version for libraries? 12352need_version=$need_version 12353 12354# Whether dlopen is supported. 12355dlopen_support=$enable_dlopen 12356 12357# Whether dlopen of programs is supported. 12358dlopen_self=$enable_dlopen_self 12359 12360# Whether dlopen of statically linked programs is supported. 12361dlopen_self_static=$enable_dlopen_self_static 12362 12363# Compiler flag to prevent dynamic linking. 12364link_static_flag=$lt_lt_prog_compiler_static 12365 12366# Compiler flag to turn off builtin functions. 12367no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 12368 12369# Compiler flag to allow reflexive dlopens. 12370export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 12371 12372# Compiler flag to generate shared objects directly from archives. 12373whole_archive_flag_spec=$lt_whole_archive_flag_spec 12374 12375# Compiler flag to generate thread-safe objects. 12376thread_safe_flag_spec=$lt_thread_safe_flag_spec 12377 12378# Library versioning type. 12379version_type=$version_type 12380 12381# Format of library name prefix. 12382libname_spec=$lt_libname_spec 12383 12384# List of archive names. First name is the real one, the rest are links. 12385# The last name is the one that the linker finds with -lNAME. 12386library_names_spec=$lt_library_names_spec 12387 12388# The coded name of the library, if different from the real name. 12389soname_spec=$lt_soname_spec 12390 12391# Commands used to build and install an old-style archive. 12392RANLIB=$lt_RANLIB 12393old_archive_cmds=$lt_old_archive_cmds 12394old_postinstall_cmds=$lt_old_postinstall_cmds 12395old_postuninstall_cmds=$lt_old_postuninstall_cmds 12396 12397# Create an old-style archive from a shared archive. 12398old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 12399 12400# Create a temporary old-style archive to link instead of a shared archive. 12401old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 12402 12403# Commands used to build and install a shared archive. 12404archive_cmds=$lt_archive_cmds 12405archive_expsym_cmds=$lt_archive_expsym_cmds 12406postinstall_cmds=$lt_postinstall_cmds 12407postuninstall_cmds=$lt_postuninstall_cmds 12408 12409# Commands used to build a loadable module (assumed same as above if empty) 12410module_cmds=$lt_module_cmds 12411module_expsym_cmds=$lt_module_expsym_cmds 12412 12413# Commands to strip libraries. 12414old_striplib=$lt_old_striplib 12415striplib=$lt_striplib 12416 12417# Dependencies to place before the objects being linked to create a 12418# shared library. 12419predep_objects=$lt_predep_objects 12420 12421# Dependencies to place after the objects being linked to create a 12422# shared library. 12423postdep_objects=$lt_postdep_objects 12424 12425# Dependencies to place before the objects being linked to create a 12426# shared library. 12427predeps=$lt_predeps 12428 12429# Dependencies to place after the objects being linked to create a 12430# shared library. 12431postdeps=$lt_postdeps 12432 12433# The library search path used internally by the compiler when linking 12434# a shared library. 12435compiler_lib_search_path=$lt_compiler_lib_search_path 12436 12437# Method to check whether dependent libraries are shared objects. 12438deplibs_check_method=$lt_deplibs_check_method 12439 12440# Command to use when deplibs_check_method == file_magic. 12441file_magic_cmd=$lt_file_magic_cmd 12442 12443# Flag that allows shared libraries with undefined symbols to be built. 12444allow_undefined_flag=$lt_allow_undefined_flag 12445 12446# Flag that forces no undefined symbols. 12447no_undefined_flag=$lt_no_undefined_flag 12448 12449# Commands used to finish a libtool library installation in a directory. 12450finish_cmds=$lt_finish_cmds 12451 12452# Same as above, but a single script fragment to be evaled but not shown. 12453finish_eval=$lt_finish_eval 12454 12455# Take the output of nm and produce a listing of raw symbols and C names. 12456global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 12457 12458# Transform the output of nm in a proper C declaration 12459global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 12460 12461# Transform the output of nm in a C name address pair 12462global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 12463 12464# This is the shared library runtime path variable. 12465runpath_var=$runpath_var 12466 12467# This is the shared library path variable. 12468shlibpath_var=$shlibpath_var 12469 12470# Is shlibpath searched before the hard-coded library search path? 12471shlibpath_overrides_runpath=$shlibpath_overrides_runpath 12472 12473# How to hardcode a shared library path into an executable. 12474hardcode_action=$hardcode_action 12475 12476# Whether we should hardcode library paths into libraries. 12477hardcode_into_libs=$hardcode_into_libs 12478 12479# Flag to hardcode \$libdir into a binary during linking. 12480# This must work even if \$libdir does not exist. 12481hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 12482 12483# If ld is used when linking, flag to hardcode \$libdir into 12484# a binary during linking. This must work even if \$libdir does 12485# not exist. 12486hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 12487 12488# Whether we need a single -rpath flag with a separated argument. 12489hardcode_libdir_separator=$lt_hardcode_libdir_separator 12490 12491# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 12492# resulting binary. 12493hardcode_direct=$hardcode_direct 12494 12495# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 12496# resulting binary. 12497hardcode_minus_L=$hardcode_minus_L 12498 12499# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 12500# the resulting binary. 12501hardcode_shlibpath_var=$hardcode_shlibpath_var 12502 12503# Set to yes if building a shared library automatically hardcodes DIR into the library 12504# and all subsequent libraries and executables linked against it. 12505hardcode_automatic=$hardcode_automatic 12506 12507# Variables whose values should be saved in libtool wrapper scripts and 12508# restored at relink time. 12509variables_saved_for_relink="$variables_saved_for_relink" 12510 12511# Whether libtool must link a program against all its dependency libraries. 12512link_all_deplibs=$link_all_deplibs 12513 12514# Compile-time system search path for libraries 12515sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 12516 12517# Run-time system search path for libraries 12518sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 12519 12520# Fix the shell variable \$srcfile for the compiler. 12521fix_srcfile_path="$fix_srcfile_path" 12522 12523# Set to yes if exported symbols are required. 12524always_export_symbols=$always_export_symbols 12525 12526# The commands to list exported symbols. 12527export_symbols_cmds=$lt_export_symbols_cmds 12528 12529# The commands to extract the exported symbol list from a shared archive. 12530extract_expsyms_cmds=$lt_extract_expsyms_cmds 12531 12532# Symbols that should not be listed in the preloaded symbols. 12533exclude_expsyms=$lt_exclude_expsyms 12534 12535# Symbols that must always be exported. 12536include_expsyms=$lt_include_expsyms 12537 12538# ### END LIBTOOL CONFIG 12539 12540__EOF__ 12541 12542 12543 case $host_os in 12544 aix3*) 12545 cat <<\EOF >> "$cfgfile" 12546 12547# AIX sometimes has problems with the GCC collect2 program. For some 12548# reason, if we set the COLLECT_NAMES environment variable, the problems 12549# vanish in a puff of smoke. 12550if test "X${COLLECT_NAMES+set}" != Xset; then 12551 COLLECT_NAMES= 12552 export COLLECT_NAMES 12553fi 12554EOF 12555 ;; 12556 esac 12557 12558 # We use sed instead of cat because bash on DJGPP gets confused if 12559 # if finds mixed CR/LF and LF-only lines. Since sed operates in 12560 # text mode, it properly converts lines to CR/LF. This bash problem 12561 # is reportedly fixed, but why not run on old versions too? 12562 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 12563 12564 mv -f "$cfgfile" "$ofile" || \ 12565 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 12566 chmod +x "$ofile" 12567 12568else 12569 # If there is no Makefile yet, we rely on a make rule to execute 12570 # `config.status --recheck' to rerun these tests and create the 12571 # libtool script then. 12572 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 12573 if test -f "$ltmain_in"; then 12574 test -f Makefile && make "$ltmain" 12575 fi 12576fi 12577 12578 12579ac_ext=c 12580ac_cpp='$CPP $CPPFLAGS' 12581ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12582ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12583ac_compiler_gnu=$ac_cv_c_compiler_gnu 12584 12585CC="$lt_save_CC" 12586 12587 12588# Check whether --with-tags or --without-tags was given. 12589if test "${with_tags+set}" = set; then 12590 withval="$with_tags" 12591 tagnames="$withval" 12592fi; 12593 12594if test -f "$ltmain" && test -n "$tagnames"; then 12595 if test ! -f "${ofile}"; then 12596 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 12597echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 12598 fi 12599 12600 if test -z "$LTCC"; then 12601 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 12602 if test -z "$LTCC"; then 12603 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 12604echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 12605 else 12606 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 12607echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 12608 fi 12609 fi 12610 if test -z "$LTCFLAGS"; then 12611 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 12612 fi 12613 12614 # Extract list of available tagged configurations in $ofile. 12615 # Note that this assumes the entire list is on one line. 12616 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 12617 12618 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 12619 for tagname in $tagnames; do 12620 IFS="$lt_save_ifs" 12621 # Check whether tagname contains only valid characters 12622 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 12623 "") ;; 12624 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 12625echo "$as_me: error: invalid tag name: $tagname" >&2;} 12626 { (exit 1); exit 1; }; } 12627 ;; 12628 esac 12629 12630 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 12631 then 12632 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 12633echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 12634 { (exit 1); exit 1; }; } 12635 fi 12636 12637 # Update the list of available tags. 12638 if test -n "$tagname"; then 12639 echo appending configuration tag \"$tagname\" to $ofile 12640 12641 case $tagname in 12642 CXX) 12643 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 12644 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 12645 (test "X$CXX" != "Xg++"))) ; then 12646 ac_ext=cc 12647ac_cpp='$CXXCPP $CPPFLAGS' 12648ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12649ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12650ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12651 12652 12653 12654 12655archive_cmds_need_lc_CXX=no 12656allow_undefined_flag_CXX= 12657always_export_symbols_CXX=no 12658archive_expsym_cmds_CXX= 12659export_dynamic_flag_spec_CXX= 12660hardcode_direct_CXX=no 12661hardcode_libdir_flag_spec_CXX= 12662hardcode_libdir_flag_spec_ld_CXX= 12663hardcode_libdir_separator_CXX= 12664hardcode_minus_L_CXX=no 12665hardcode_shlibpath_var_CXX=unsupported 12666hardcode_automatic_CXX=no 12667module_cmds_CXX= 12668module_expsym_cmds_CXX= 12669link_all_deplibs_CXX=unknown 12670old_archive_cmds_CXX=$old_archive_cmds 12671no_undefined_flag_CXX= 12672whole_archive_flag_spec_CXX= 12673enable_shared_with_static_runtimes_CXX=no 12674 12675# Dependencies to place before and after the object being linked: 12676predep_objects_CXX= 12677postdep_objects_CXX= 12678predeps_CXX= 12679postdeps_CXX= 12680compiler_lib_search_path_CXX= 12681 12682# Source file extension for C++ test sources. 12683ac_ext=cpp 12684 12685# Object file extension for compiled C++ test sources. 12686objext=o 12687objext_CXX=$objext 12688 12689# Code to be used in simple compile tests 12690lt_simple_compile_test_code="int some_variable = 0;\n" 12691 12692# Code to be used in simple link tests 12693lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' 12694 12695# ltmain only uses $CC for tagged configurations so make sure $CC is set. 12696 12697# If no C compiler was specified, use CC. 12698LTCC=${LTCC-"$CC"} 12699 12700# If no C compiler flags were specified, use CFLAGS. 12701LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12702 12703# Allow CC to be a program name with arguments. 12704compiler=$CC 12705 12706 12707# save warnings/boilerplate of simple test code 12708ac_outfile=conftest.$ac_objext 12709printf "$lt_simple_compile_test_code" >conftest.$ac_ext 12710eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12711_lt_compiler_boilerplate=`cat conftest.err` 12712$rm conftest* 12713 12714ac_outfile=conftest.$ac_objext 12715printf "$lt_simple_link_test_code" >conftest.$ac_ext 12716eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12717_lt_linker_boilerplate=`cat conftest.err` 12718$rm conftest* 12719 12720 12721# Allow CC to be a program name with arguments. 12722lt_save_CC=$CC 12723lt_save_LD=$LD 12724lt_save_GCC=$GCC 12725GCC=$GXX 12726lt_save_with_gnu_ld=$with_gnu_ld 12727lt_save_path_LD=$lt_cv_path_LD 12728if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 12729 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 12730else 12731 $as_unset lt_cv_prog_gnu_ld 12732fi 12733if test -n "${lt_cv_path_LDCXX+set}"; then 12734 lt_cv_path_LD=$lt_cv_path_LDCXX 12735else 12736 $as_unset lt_cv_path_LD 12737fi 12738test -z "${LDCXX+set}" || LD=$LDCXX 12739CC=${CXX-"c++"} 12740compiler=$CC 12741compiler_CXX=$CC 12742for cc_temp in $compiler""; do 12743 case $cc_temp in 12744 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 12745 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 12746 \-*) ;; 12747 *) break;; 12748 esac 12749done 12750cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 12751 12752 12753# We don't want -fno-exception wen compiling C++ code, so set the 12754# no_builtin_flag separately 12755if test "$GXX" = yes; then 12756 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 12757else 12758 lt_prog_compiler_no_builtin_flag_CXX= 12759fi 12760 12761if test "$GXX" = yes; then 12762 # Set up default GNU C++ configuration 12763 12764 12765# Check whether --with-gnu-ld or --without-gnu-ld was given. 12766if test "${with_gnu_ld+set}" = set; then 12767 withval="$with_gnu_ld" 12768 test "$withval" = no || with_gnu_ld=yes 12769else 12770 with_gnu_ld=no 12771fi; 12772ac_prog=ld 12773if test "$GCC" = yes; then 12774 # Check if gcc -print-prog-name=ld gives a path. 12775 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 12776echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 12777 case $host in 12778 *-*-mingw*) 12779 # gcc leaves a trailing carriage return which upsets mingw 12780 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 12781 *) 12782 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 12783 esac 12784 case $ac_prog in 12785 # Accept absolute paths. 12786 [\\/]* | ?:[\\/]*) 12787 re_direlt='/[^/][^/]*/\.\./' 12788 # Canonicalize the pathname of ld 12789 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 12790 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 12791 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 12792 done 12793 test -z "$LD" && LD="$ac_prog" 12794 ;; 12795 "") 12796 # If it fails, then pretend we aren't using GCC. 12797 ac_prog=ld 12798 ;; 12799 *) 12800 # If it is relative, then search for the first ld in PATH. 12801 with_gnu_ld=unknown 12802 ;; 12803 esac 12804elif test "$with_gnu_ld" = yes; then 12805 echo "$as_me:$LINENO: checking for GNU ld" >&5 12806echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 12807else 12808 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 12809echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 12810fi 12811if test "${lt_cv_path_LD+set}" = set; then 12812 echo $ECHO_N "(cached) $ECHO_C" >&6 12813else 12814 if test -z "$LD"; then 12815 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 12816 for ac_dir in $PATH; do 12817 IFS="$lt_save_ifs" 12818 test -z "$ac_dir" && ac_dir=. 12819 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12820 lt_cv_path_LD="$ac_dir/$ac_prog" 12821 # Check to see if the program is GNU ld. I'd rather use --version, 12822 # but apparently some variants of GNU ld only accept -v. 12823 # Break only if it was the GNU/non-GNU ld that we prefer. 12824 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 12825 *GNU* | *'with BFD'*) 12826 test "$with_gnu_ld" != no && break 12827 ;; 12828 *) 12829 test "$with_gnu_ld" != yes && break 12830 ;; 12831 esac 12832 fi 12833 done 12834 IFS="$lt_save_ifs" 12835else 12836 lt_cv_path_LD="$LD" # Let the user override the test with a path. 12837fi 12838fi 12839 12840LD="$lt_cv_path_LD" 12841if test -n "$LD"; then 12842 echo "$as_me:$LINENO: result: $LD" >&5 12843echo "${ECHO_T}$LD" >&6 12844else 12845 echo "$as_me:$LINENO: result: no" >&5 12846echo "${ECHO_T}no" >&6 12847fi 12848test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 12849echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 12850 { (exit 1); exit 1; }; } 12851echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 12852echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 12853if test "${lt_cv_prog_gnu_ld+set}" = set; then 12854 echo $ECHO_N "(cached) $ECHO_C" >&6 12855else 12856 # I'd rather use --version here, but apparently some GNU lds only accept -v. 12857case `$LD -v 2>&1 </dev/null` in 12858*GNU* | *'with BFD'*) 12859 lt_cv_prog_gnu_ld=yes 12860 ;; 12861*) 12862 lt_cv_prog_gnu_ld=no 12863 ;; 12864esac 12865fi 12866echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 12867echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 12868with_gnu_ld=$lt_cv_prog_gnu_ld 12869 12870 12871 12872 # Check if GNU C++ uses GNU ld as the underlying linker, since the 12873 # archiving commands below assume that GNU ld is being used. 12874 if test "$with_gnu_ld" = yes; then 12875 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12876 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12877 12878 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 12879 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12880 12881 # If archive_cmds runs LD, not CC, wlarc should be empty 12882 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 12883 # investigate it a little bit more. (MM) 12884 wlarc='${wl}' 12885 12886 # ancient GNU ld didn't support --whole-archive et. al. 12887 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 12888 grep 'no-whole-archive' > /dev/null; then 12889 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12890 else 12891 whole_archive_flag_spec_CXX= 12892 fi 12893 else 12894 with_gnu_ld=no 12895 wlarc= 12896 12897 # A generic and very simple default shared library creation 12898 # command for GNU C++ for the case where it uses the native 12899 # linker, instead of GNU ld. If possible, this setting should 12900 # overridden to take advantage of the native linker features on 12901 # the platform it is being used on. 12902 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12903 fi 12904 12905 # Commands to make compiler produce verbose output that lists 12906 # what "hidden" libraries, object files and flags are used when 12907 # linking a shared library. 12908 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12909 12910else 12911 GXX=no 12912 with_gnu_ld=no 12913 wlarc= 12914fi 12915 12916# PORTME: fill in a description of your system's C++ link characteristics 12917echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12918echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 12919ld_shlibs_CXX=yes 12920case $host_os in 12921 aix3*) 12922 # FIXME: insert proper C++ library support 12923 ld_shlibs_CXX=no 12924 ;; 12925 aix4* | aix5*) 12926 if test "$host_cpu" = ia64; then 12927 # On IA64, the linker does run time linking by default, so we don't 12928 # have to do anything special. 12929 aix_use_runtimelinking=no 12930 exp_sym_flag='-Bexport' 12931 no_entry_flag="" 12932 else 12933 aix_use_runtimelinking=no 12934 12935 # Test if we are trying to use run time linking or normal 12936 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 12937 # need to do runtime linking. 12938 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 12939 for ld_flag in $LDFLAGS; do 12940 case $ld_flag in 12941 *-brtl*) 12942 aix_use_runtimelinking=yes 12943 break 12944 ;; 12945 esac 12946 done 12947 ;; 12948 esac 12949 12950 exp_sym_flag='-bexport' 12951 no_entry_flag='-bnoentry' 12952 fi 12953 12954 # When large executables or shared objects are built, AIX ld can 12955 # have problems creating the table of contents. If linking a library 12956 # or program results in "error TOC overflow" add -mminimal-toc to 12957 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 12958 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 12959 12960 archive_cmds_CXX='' 12961 hardcode_direct_CXX=yes 12962 hardcode_libdir_separator_CXX=':' 12963 link_all_deplibs_CXX=yes 12964 12965 if test "$GXX" = yes; then 12966 case $host_os in aix4.[012]|aix4.[012].*) 12967 # We only want to do this on AIX 4.2 and lower, the check 12968 # below for broken collect2 doesn't work under 4.3+ 12969 collect2name=`${CC} -print-prog-name=collect2` 12970 if test -f "$collect2name" && \ 12971 strings "$collect2name" | grep resolve_lib_name >/dev/null 12972 then 12973 # We have reworked collect2 12974 hardcode_direct_CXX=yes 12975 else 12976 # We have old collect2 12977 hardcode_direct_CXX=unsupported 12978 # It fails to find uninstalled libraries when the uninstalled 12979 # path is not listed in the libpath. Setting hardcode_minus_L 12980 # to unsupported forces relinking 12981 hardcode_minus_L_CXX=yes 12982 hardcode_libdir_flag_spec_CXX='-L$libdir' 12983 hardcode_libdir_separator_CXX= 12984 fi 12985 ;; 12986 esac 12987 shared_flag='-shared' 12988 if test "$aix_use_runtimelinking" = yes; then 12989 shared_flag="$shared_flag "'${wl}-G' 12990 fi 12991 else 12992 # not using gcc 12993 if test "$host_cpu" = ia64; then 12994 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12995 # chokes on -Wl,-G. The following line is correct: 12996 shared_flag='-G' 12997 else 12998 if test "$aix_use_runtimelinking" = yes; then 12999 shared_flag='${wl}-G' 13000 else 13001 shared_flag='${wl}-bM:SRE' 13002 fi 13003 fi 13004 fi 13005 13006 # It seems that -bexpall does not export symbols beginning with 13007 # underscore (_), so it is better to generate a list of symbols to export. 13008 always_export_symbols_CXX=yes 13009 if test "$aix_use_runtimelinking" = yes; then 13010 # Warning - without using the other runtime loading flags (-brtl), 13011 # -berok will link without error, but may produce a broken library. 13012 allow_undefined_flag_CXX='-berok' 13013 # Determine the default libpath from the value encoded in an empty executable. 13014 cat >conftest.$ac_ext <<_ACEOF 13015/* confdefs.h. */ 13016_ACEOF 13017cat confdefs.h >>conftest.$ac_ext 13018cat >>conftest.$ac_ext <<_ACEOF 13019/* end confdefs.h. */ 13020 13021#ifdef F77_DUMMY_MAIN 13022 13023# ifdef __cplusplus 13024 extern "C" 13025# endif 13026 int F77_DUMMY_MAIN() { return 1; } 13027 13028#endif 13029int 13030main () 13031{ 13032 13033 ; 13034 return 0; 13035} 13036_ACEOF 13037rm -f conftest.$ac_objext conftest$ac_exeext 13038if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13039 (eval $ac_link) 2>conftest.er1 13040 ac_status=$? 13041 grep -v '^ *+' conftest.er1 >conftest.err 13042 rm -f conftest.er1 13043 cat conftest.err >&5 13044 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13045 (exit $ac_status); } && 13046 { ac_try='test -z "$ac_cxx_werror_flag" 13047 || test ! -s conftest.err' 13048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13049 (eval $ac_try) 2>&5 13050 ac_status=$? 13051 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13052 (exit $ac_status); }; } && 13053 { ac_try='test -s conftest$ac_exeext' 13054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13055 (eval $ac_try) 2>&5 13056 ac_status=$? 13057 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13058 (exit $ac_status); }; }; then 13059 13060aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 13061}'` 13062# Check for a 64-bit object if we didn't find anything. 13063if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 13064}'`; fi 13065else 13066 echo "$as_me: failed program was:" >&5 13067sed 's/^/| /' conftest.$ac_ext >&5 13068 13069fi 13070rm -f conftest.err conftest.$ac_objext \ 13071 conftest$ac_exeext conftest.$ac_ext 13072if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 13073 13074 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 13075 13076 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 13077 else 13078 if test "$host_cpu" = ia64; then 13079 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 13080 allow_undefined_flag_CXX="-z nodefs" 13081 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 13082 else 13083 # Determine the default libpath from the value encoded in an empty executable. 13084 cat >conftest.$ac_ext <<_ACEOF 13085/* confdefs.h. */ 13086_ACEOF 13087cat confdefs.h >>conftest.$ac_ext 13088cat >>conftest.$ac_ext <<_ACEOF 13089/* end confdefs.h. */ 13090 13091#ifdef F77_DUMMY_MAIN 13092 13093# ifdef __cplusplus 13094 extern "C" 13095# endif 13096 int F77_DUMMY_MAIN() { return 1; } 13097 13098#endif 13099int 13100main () 13101{ 13102 13103 ; 13104 return 0; 13105} 13106_ACEOF 13107rm -f conftest.$ac_objext conftest$ac_exeext 13108if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13109 (eval $ac_link) 2>conftest.er1 13110 ac_status=$? 13111 grep -v '^ *+' conftest.er1 >conftest.err 13112 rm -f conftest.er1 13113 cat conftest.err >&5 13114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13115 (exit $ac_status); } && 13116 { ac_try='test -z "$ac_cxx_werror_flag" 13117 || test ! -s conftest.err' 13118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13119 (eval $ac_try) 2>&5 13120 ac_status=$? 13121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13122 (exit $ac_status); }; } && 13123 { ac_try='test -s conftest$ac_exeext' 13124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13125 (eval $ac_try) 2>&5 13126 ac_status=$? 13127 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13128 (exit $ac_status); }; }; then 13129 13130aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 13131}'` 13132# Check for a 64-bit object if we didn't find anything. 13133if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 13134}'`; fi 13135else 13136 echo "$as_me: failed program was:" >&5 13137sed 's/^/| /' conftest.$ac_ext >&5 13138 13139fi 13140rm -f conftest.err conftest.$ac_objext \ 13141 conftest$ac_exeext conftest.$ac_ext 13142if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 13143 13144 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 13145 # Warning - without using the other run time loading flags, 13146 # -berok will link without error, but may produce a broken library. 13147 no_undefined_flag_CXX=' ${wl}-bernotok' 13148 allow_undefined_flag_CXX=' ${wl}-berok' 13149 # Exported symbols can be pulled into shared objects from archives 13150 whole_archive_flag_spec_CXX='$convenience' 13151 archive_cmds_need_lc_CXX=yes 13152 # This is similar to how AIX traditionally builds its shared libraries. 13153 archive_expsym_cmds_CXX="\$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' 13154 fi 13155 fi 13156 ;; 13157 13158 beos*) 13159 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13160 allow_undefined_flag_CXX=unsupported 13161 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13162 # support --undefined. This deserves some investigation. FIXME 13163 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13164 else 13165 ld_shlibs_CXX=no 13166 fi 13167 ;; 13168 13169 chorus*) 13170 case $cc_basename in 13171 *) 13172 # FIXME: insert proper C++ library support 13173 ld_shlibs_CXX=no 13174 ;; 13175 esac 13176 ;; 13177 13178 cygwin* | mingw* | pw32*) 13179 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 13180 # as there is no search path for DLLs. 13181 hardcode_libdir_flag_spec_CXX='-L$libdir' 13182 allow_undefined_flag_CXX=unsupported 13183 always_export_symbols_CXX=no 13184 enable_shared_with_static_runtimes_CXX=yes 13185 13186 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 13187 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13188 # If the export-symbols file already is a .def file (1st line 13189 # is EXPORTS), use it as is; otherwise, prepend... 13190 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 13191 cp $export_symbols $output_objdir/$soname.def; 13192 else 13193 echo EXPORTS > $output_objdir/$soname.def; 13194 cat $export_symbols >> $output_objdir/$soname.def; 13195 fi~ 13196 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13197 else 13198 ld_shlibs_CXX=no 13199 fi 13200 ;; 13201 darwin* | rhapsody*) 13202 case $host_os in 13203 rhapsody* | darwin1.[012]) 13204 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 13205 ;; 13206 *) # Darwin 1.3 on 13207 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 13208 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 13209 else 13210 case ${MACOSX_DEPLOYMENT_TARGET} in 13211 10.[012]) 13212 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 13213 ;; 13214 10.*) 13215 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 13216 ;; 13217 esac 13218 fi 13219 ;; 13220 esac 13221 archive_cmds_need_lc_CXX=no 13222 hardcode_direct_CXX=no 13223 hardcode_automatic_CXX=yes 13224 hardcode_shlibpath_var_CXX=unsupported 13225 whole_archive_flag_spec_CXX='' 13226 link_all_deplibs_CXX=yes 13227 13228 if test "$GXX" = yes ; then 13229 lt_int_apple_cc_single_mod=no 13230 output_verbose_link_cmd='echo' 13231 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 13232 lt_int_apple_cc_single_mod=yes 13233 fi 13234 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 13235 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 13236 else 13237 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 13238 fi 13239 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 13240 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 13241 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 13242 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 13243 else 13244 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 13245 fi 13246 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 13247 else 13248 case $cc_basename in 13249 xlc*) 13250 output_verbose_link_cmd='echo' 13251 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 13252 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 13253 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 13254 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 13255 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 13256 ;; 13257 *) 13258 ld_shlibs_CXX=no 13259 ;; 13260 esac 13261 fi 13262 ;; 13263 13264 dgux*) 13265 case $cc_basename in 13266 ec++*) 13267 # FIXME: insert proper C++ library support 13268 ld_shlibs_CXX=no 13269 ;; 13270 ghcx*) 13271 # Green Hills C++ Compiler 13272 # FIXME: insert proper C++ library support 13273 ld_shlibs_CXX=no 13274 ;; 13275 *) 13276 # FIXME: insert proper C++ library support 13277 ld_shlibs_CXX=no 13278 ;; 13279 esac 13280 ;; 13281 freebsd[12]*) 13282 # C++ shared libraries reported to be fairly broken before switch to ELF 13283 ld_shlibs_CXX=no 13284 ;; 13285 freebsd-elf*) 13286 archive_cmds_need_lc_CXX=no 13287 ;; 13288 freebsd* | kfreebsd*-gnu | dragonfly*) 13289 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 13290 # conventions 13291 ld_shlibs_CXX=yes 13292 ;; 13293 gnu*) 13294 ;; 13295 hpux9*) 13296 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 13297 hardcode_libdir_separator_CXX=: 13298 export_dynamic_flag_spec_CXX='${wl}-E' 13299 hardcode_direct_CXX=yes 13300 hardcode_minus_L_CXX=yes # Not in the search PATH, 13301 # but as the default 13302 # location of the library. 13303 13304 case $cc_basename in 13305 CC*) 13306 # FIXME: insert proper C++ library support 13307 ld_shlibs_CXX=no 13308 ;; 13309 aCC*) 13310 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 13311 # Commands to make compiler produce verbose output that lists 13312 # what "hidden" libraries, object files and flags are used when 13313 # linking a shared library. 13314 # 13315 # There doesn't appear to be a way to prevent this compiler from 13316 # explicitly linking system object files so we need to strip them 13317 # from the output so that they don't get included in the library 13318 # dependencies. 13319 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 13320 ;; 13321 *) 13322 if test "$GXX" = yes; then 13323 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 13324 else 13325 # FIXME: insert proper C++ library support 13326 ld_shlibs_CXX=no 13327 fi 13328 ;; 13329 esac 13330 ;; 13331 hpux10*|hpux11*) 13332 if test $with_gnu_ld = no; then 13333 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 13334 hardcode_libdir_separator_CXX=: 13335 13336 case $host_cpu in 13337 hppa*64*|ia64*) 13338 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 13339 ;; 13340 *) 13341 export_dynamic_flag_spec_CXX='${wl}-E' 13342 ;; 13343 esac 13344 fi 13345 case $host_cpu in 13346 hppa*64*|ia64*) 13347 hardcode_direct_CXX=no 13348 hardcode_shlibpath_var_CXX=no 13349 ;; 13350 *) 13351 hardcode_direct_CXX=yes 13352 hardcode_minus_L_CXX=yes # Not in the search PATH, 13353 # but as the default 13354 # location of the library. 13355 ;; 13356 esac 13357 13358 case $cc_basename in 13359 CC*) 13360 # FIXME: insert proper C++ library support 13361 ld_shlibs_CXX=no 13362 ;; 13363 aCC*) 13364 case $host_cpu in 13365 hppa*64*) 13366 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13367 ;; 13368 ia64*) 13369 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13370 ;; 13371 *) 13372 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13373 ;; 13374 esac 13375 # Commands to make compiler produce verbose output that lists 13376 # what "hidden" libraries, object files and flags are used when 13377 # linking a shared library. 13378 # 13379 # There doesn't appear to be a way to prevent this compiler from 13380 # explicitly linking system object files so we need to strip them 13381 # from the output so that they don't get included in the library 13382 # dependencies. 13383 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 13384 ;; 13385 *) 13386 if test "$GXX" = yes; then 13387 if test $with_gnu_ld = no; then 13388 case $host_cpu in 13389 hppa*64*) 13390 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13391 ;; 13392 ia64*) 13393 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13394 ;; 13395 *) 13396 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13397 ;; 13398 esac 13399 fi 13400 else 13401 # FIXME: insert proper C++ library support 13402 ld_shlibs_CXX=no 13403 fi 13404 ;; 13405 esac 13406 ;; 13407 interix3*) 13408 hardcode_direct_CXX=no 13409 hardcode_shlibpath_var_CXX=no 13410 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13411 export_dynamic_flag_spec_CXX='${wl}-E' 13412 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13413 # Instead, shared libraries are loaded at an image base (0x10000000 by 13414 # default) and relocated if they conflict, which is a slow very memory 13415 # consuming and fragmenting process. To avoid this, we pick a random, 13416 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13417 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13418 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 13419 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 13420 ;; 13421 irix5* | irix6*) 13422 case $cc_basename in 13423 CC*) 13424 # SGI C++ 13425 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 13426 13427 # Archives containing C++ object files must be created using 13428 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 13429 # necessary to make sure instantiated templates are included 13430 # in the archive. 13431 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 13432 ;; 13433 *) 13434 if test "$GXX" = yes; then 13435 if test "$with_gnu_ld" = no; then 13436 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 13437 else 13438 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' 13439 fi 13440 fi 13441 link_all_deplibs_CXX=yes 13442 ;; 13443 esac 13444 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13445 hardcode_libdir_separator_CXX=: 13446 ;; 13447 linux*) 13448 case $cc_basename in 13449 KCC*) 13450 # Kuck and Associates, Inc. (KAI) C++ Compiler 13451 13452 # KCC will only create a shared library if the output file 13453 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13454 # to its proper name (with version) after linking. 13455 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 13456 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' 13457 # Commands to make compiler produce verbose output that lists 13458 # what "hidden" libraries, object files and flags are used when 13459 # linking a shared library. 13460 # 13461 # There doesn't appear to be a way to prevent this compiler from 13462 # explicitly linking system object files so we need to strip them 13463 # from the output so that they don't get included in the library 13464 # dependencies. 13465 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 13466 13467 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 13468 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13469 13470 # Archives containing C++ object files must be created using 13471 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 13472 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 13473 ;; 13474 icpc*) 13475 # Intel C++ 13476 with_gnu_ld=yes 13477 # version 8.0 and above of icpc choke on multiply defined symbols 13478 # if we add $predep_objects and $postdep_objects, however 7.1 and 13479 # earlier do not add the objects themselves. 13480 case `$CC -V 2>&1` in 13481 *"Version 7."*) 13482 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13483 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13484 ;; 13485 *) # Version 8.0 or newer 13486 tmp_idyn= 13487 case $host_cpu in 13488 ia64*) tmp_idyn=' -i_dynamic';; 13489 esac 13490 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13491 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13492 ;; 13493 esac 13494 archive_cmds_need_lc_CXX=no 13495 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13496 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13497 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 13498 ;; 13499 pgCC*) 13500 # Portland Group C++ compiler 13501 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 13502 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 13503 13504 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 13505 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13506 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 13507 ;; 13508 cxx*) 13509 # Compaq C++ 13510 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13511 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' 13512 13513 runpath_var=LD_RUN_PATH 13514 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13515 hardcode_libdir_separator_CXX=: 13516 13517 # Commands to make compiler produce verbose output that lists 13518 # what "hidden" libraries, object files and flags are used when 13519 # linking a shared library. 13520 # 13521 # There doesn't appear to be a way to prevent this compiler from 13522 # explicitly linking system object files so we need to strip them 13523 # from the output so that they don't get included in the library 13524 # dependencies. 13525 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 13526 ;; 13527 esac 13528 ;; 13529 lynxos*) 13530 # FIXME: insert proper C++ library support 13531 ld_shlibs_CXX=no 13532 ;; 13533 m88k*) 13534 # FIXME: insert proper C++ library support 13535 ld_shlibs_CXX=no 13536 ;; 13537 mvs*) 13538 case $cc_basename in 13539 cxx*) 13540 # FIXME: insert proper C++ library support 13541 ld_shlibs_CXX=no 13542 ;; 13543 *) 13544 # FIXME: insert proper C++ library support 13545 ld_shlibs_CXX=no 13546 ;; 13547 esac 13548 ;; 13549 netbsd*) 13550 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13551 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 13552 wlarc= 13553 hardcode_libdir_flag_spec_CXX='-R$libdir' 13554 hardcode_direct_CXX=yes 13555 hardcode_shlibpath_var_CXX=no 13556 fi 13557 # Workaround some broken pre-1.5 toolchains 13558 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 13559 ;; 13560 openbsd2*) 13561 # C++ shared libraries are fairly broken 13562 ld_shlibs_CXX=no 13563 ;; 13564 openbsd*) 13565 hardcode_direct_CXX=yes 13566 hardcode_shlibpath_var_CXX=no 13567 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13568 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13569 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13570 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 13571 export_dynamic_flag_spec_CXX='${wl}-E' 13572 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13573 fi 13574 output_verbose_link_cmd='echo' 13575 ;; 13576 osf3*) 13577 case $cc_basename in 13578 KCC*) 13579 # Kuck and Associates, Inc. (KAI) C++ Compiler 13580 13581 # KCC will only create a shared library if the output file 13582 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13583 # to its proper name (with version) after linking. 13584 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 13585 13586 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13587 hardcode_libdir_separator_CXX=: 13588 13589 # Archives containing C++ object files must be created using 13590 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 13591 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 13592 13593 ;; 13594 RCC*) 13595 # Rational C++ 2.4.1 13596 # FIXME: insert proper C++ library support 13597 ld_shlibs_CXX=no 13598 ;; 13599 cxx*) 13600 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13601 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 13602 13603 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13604 hardcode_libdir_separator_CXX=: 13605 13606 # Commands to make compiler produce verbose output that lists 13607 # what "hidden" libraries, object files and flags are used when 13608 # linking a shared library. 13609 # 13610 # There doesn't appear to be a way to prevent this compiler from 13611 # explicitly linking system object files so we need to strip them 13612 # from the output so that they don't get included in the library 13613 # dependencies. 13614 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 13615 ;; 13616 *) 13617 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13618 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13619 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 13620 13621 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13622 hardcode_libdir_separator_CXX=: 13623 13624 # Commands to make compiler produce verbose output that lists 13625 # what "hidden" libraries, object files and flags are used when 13626 # linking a shared library. 13627 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 13628 13629 else 13630 # FIXME: insert proper C++ library support 13631 ld_shlibs_CXX=no 13632 fi 13633 ;; 13634 esac 13635 ;; 13636 osf4* | osf5*) 13637 case $cc_basename in 13638 KCC*) 13639 # Kuck and Associates, Inc. (KAI) C++ Compiler 13640 13641 # KCC will only create a shared library if the output file 13642 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13643 # to its proper name (with version) after linking. 13644 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 13645 13646 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13647 hardcode_libdir_separator_CXX=: 13648 13649 # Archives containing C++ object files must be created using 13650 # the KAI C++ compiler. 13651 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 13652 ;; 13653 RCC*) 13654 # Rational C++ 2.4.1 13655 # FIXME: insert proper C++ library support 13656 ld_shlibs_CXX=no 13657 ;; 13658 cxx*) 13659 allow_undefined_flag_CXX=' -expect_unresolved \*' 13660 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 13661 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 13662 echo "-hidden">> $lib.exp~ 13663 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ 13664 $rm $lib.exp' 13665 13666 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13667 hardcode_libdir_separator_CXX=: 13668 13669 # Commands to make compiler produce verbose output that lists 13670 # what "hidden" libraries, object files and flags are used when 13671 # linking a shared library. 13672 # 13673 # There doesn't appear to be a way to prevent this compiler from 13674 # explicitly linking system object files so we need to strip them 13675 # from the output so that they don't get included in the library 13676 # dependencies. 13677 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 13678 ;; 13679 *) 13680 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13681 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13682 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 13683 13684 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13685 hardcode_libdir_separator_CXX=: 13686 13687 # Commands to make compiler produce verbose output that lists 13688 # what "hidden" libraries, object files and flags are used when 13689 # linking a shared library. 13690 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 13691 13692 else 13693 # FIXME: insert proper C++ library support 13694 ld_shlibs_CXX=no 13695 fi 13696 ;; 13697 esac 13698 ;; 13699 psos*) 13700 # FIXME: insert proper C++ library support 13701 ld_shlibs_CXX=no 13702 ;; 13703 sunos4*) 13704 case $cc_basename in 13705 CC*) 13706 # Sun C++ 4.x 13707 # FIXME: insert proper C++ library support 13708 ld_shlibs_CXX=no 13709 ;; 13710 lcc*) 13711 # Lucid 13712 # FIXME: insert proper C++ library support 13713 ld_shlibs_CXX=no 13714 ;; 13715 *) 13716 # FIXME: insert proper C++ library support 13717 ld_shlibs_CXX=no 13718 ;; 13719 esac 13720 ;; 13721 solaris*) 13722 case $cc_basename in 13723 CC*) 13724 # Sun C++ 4.2, 5.x and Centerline C++ 13725 archive_cmds_need_lc_CXX=yes 13726 no_undefined_flag_CXX=' -zdefs' 13727 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13728 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 13729 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 13730 13731 hardcode_libdir_flag_spec_CXX='-R$libdir' 13732 hardcode_shlibpath_var_CXX=no 13733 case $host_os in 13734 solaris2.[0-5] | solaris2.[0-5].*) ;; 13735 *) 13736 # The C++ compiler is used as linker so we must use $wl 13737 # flag to pass the commands to the underlying system 13738 # linker. We must also pass each convience library through 13739 # to the system linker between allextract/defaultextract. 13740 # The C++ compiler will combine linker options so we 13741 # cannot just pass the convience library names through 13742 # without $wl. 13743 # Supported since Solaris 2.6 (maybe 2.5.1?) 13744 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' 13745 ;; 13746 esac 13747 link_all_deplibs_CXX=yes 13748 13749 output_verbose_link_cmd='echo' 13750 13751 # Archives containing C++ object files must be created using 13752 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13753 # necessary to make sure instantiated templates are included 13754 # in the archive. 13755 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13756 ;; 13757 gcx*) 13758 # Green Hills C++ Compiler 13759 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13760 13761 # The C++ compiler must be used to create the archive. 13762 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 13763 ;; 13764 *) 13765 # GNU C++ compiler with Solaris linker 13766 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13767 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 13768 if $CC --version | grep -v '^2\.7' > /dev/null; then 13769 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13770 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 13771 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 13772 13773 # Commands to make compiler produce verbose output that lists 13774 # what "hidden" libraries, object files and flags are used when 13775 # linking a shared library. 13776 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 13777 else 13778 # g++ 2.7 appears to require `-G' NOT `-shared' on this 13779 # platform. 13780 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13781 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 13782 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 13783 13784 # Commands to make compiler produce verbose output that lists 13785 # what "hidden" libraries, object files and flags are used when 13786 # linking a shared library. 13787 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 13788 fi 13789 13790 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 13791 fi 13792 ;; 13793 esac 13794 ;; 13795 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 13796 no_undefined_flag_CXX='${wl}-z,text' 13797 archive_cmds_need_lc_CXX=no 13798 hardcode_shlibpath_var_CXX=no 13799 runpath_var='LD_RUN_PATH' 13800 13801 case $cc_basename in 13802 CC*) 13803 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13804 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13805 ;; 13806 *) 13807 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13808 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13809 ;; 13810 esac 13811 ;; 13812 sysv5* | sco3.2v5* | sco5v6*) 13813 # Note: We can NOT use -z defs as we might desire, because we do not 13814 # link with -lc, and that would cause any symbols used from libc to 13815 # always be unresolved, which means just about no library would 13816 # ever link correctly. If we're not using GNU ld we use -z text 13817 # though, which does catch some bad symbols but isn't as heavy-handed 13818 # as -z defs. 13819 # For security reasons, it is highly recommended that you always 13820 # use absolute paths for naming shared libraries, and exclude the 13821 # DT_RUNPATH tag from executables and libraries. But doing so 13822 # requires that you compile everything twice, which is a pain. 13823 # So that behaviour is only enabled if SCOABSPATH is set to a 13824 # non-empty value in the environment. Most likely only useful for 13825 # creating official distributions of packages. 13826 # This is a hack until libtool officially supports absolute path 13827 # names for shared libraries. 13828 no_undefined_flag_CXX='${wl}-z,text' 13829 allow_undefined_flag_CXX='${wl}-z,nodefs' 13830 archive_cmds_need_lc_CXX=no 13831 hardcode_shlibpath_var_CXX=no 13832 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 13833 hardcode_libdir_separator_CXX=':' 13834 link_all_deplibs_CXX=yes 13835 export_dynamic_flag_spec_CXX='${wl}-Bexport' 13836 runpath_var='LD_RUN_PATH' 13837 13838 case $cc_basename in 13839 CC*) 13840 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 13841 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 13842 ;; 13843 *) 13844 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 13845 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 13846 ;; 13847 esac 13848 ;; 13849 tandem*) 13850 case $cc_basename in 13851 NCC*) 13852 # NonStop-UX NCC 3.20 13853 # FIXME: insert proper C++ library support 13854 ld_shlibs_CXX=no 13855 ;; 13856 *) 13857 # FIXME: insert proper C++ library support 13858 ld_shlibs_CXX=no 13859 ;; 13860 esac 13861 ;; 13862 vxworks*) 13863 # FIXME: insert proper C++ library support 13864 ld_shlibs_CXX=no 13865 ;; 13866 *) 13867 # FIXME: insert proper C++ library support 13868 ld_shlibs_CXX=no 13869 ;; 13870esac 13871echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 13872echo "${ECHO_T}$ld_shlibs_CXX" >&6 13873test "$ld_shlibs_CXX" = no && can_build_shared=no 13874 13875GCC_CXX="$GXX" 13876LD_CXX="$LD" 13877 13878## CAVEAT EMPTOR: 13879## There is no encapsulation within the following macros, do not change 13880## the running order or otherwise move them around unless you know exactly 13881## what you are doing... 13882 13883cat > conftest.$ac_ext <<EOF 13884class Foo 13885{ 13886public: 13887 Foo (void) { a = 0; } 13888private: 13889 int a; 13890}; 13891EOF 13892 13893if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13894 (eval $ac_compile) 2>&5 13895 ac_status=$? 13896 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13897 (exit $ac_status); }; then 13898 # Parse the compiler output and extract the necessary 13899 # objects, libraries and library flags. 13900 13901 # Sentinel used to keep track of whether or not we are before 13902 # the conftest object file. 13903 pre_test_object_deps_done=no 13904 13905 # The `*' in the case matches for architectures that use `case' in 13906 # $output_verbose_cmd can trigger glob expansion during the loop 13907 # eval without this substitution. 13908 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 13909 13910 for p in `eval $output_verbose_link_cmd`; do 13911 case $p in 13912 13913 -L* | -R* | -l*) 13914 # Some compilers place space between "-{L,R}" and the path. 13915 # Remove the space. 13916 if test $p = "-L" \ 13917 || test $p = "-R"; then 13918 prev=$p 13919 continue 13920 else 13921 prev= 13922 fi 13923 13924 if test "$pre_test_object_deps_done" = no; then 13925 case $p in 13926 -L* | -R*) 13927 # Internal compiler library paths should come after those 13928 # provided the user. The postdeps already come after the 13929 # user supplied libs so there is no need to process them. 13930 if test -z "$compiler_lib_search_path_CXX"; then 13931 compiler_lib_search_path_CXX="${prev}${p}" 13932 else 13933 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 13934 fi 13935 ;; 13936 # The "-l" case would never come before the object being 13937 # linked, so don't bother handling this case. 13938 esac 13939 else 13940 if test -z "$postdeps_CXX"; then 13941 postdeps_CXX="${prev}${p}" 13942 else 13943 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 13944 fi 13945 fi 13946 ;; 13947 13948 *.$objext) 13949 # This assumes that the test object file only shows up 13950 # once in the compiler output. 13951 if test "$p" = "conftest.$objext"; then 13952 pre_test_object_deps_done=yes 13953 continue 13954 fi 13955 13956 if test "$pre_test_object_deps_done" = no; then 13957 if test -z "$predep_objects_CXX"; then 13958 predep_objects_CXX="$p" 13959 else 13960 predep_objects_CXX="$predep_objects_CXX $p" 13961 fi 13962 else 13963 if test -z "$postdep_objects_CXX"; then 13964 postdep_objects_CXX="$p" 13965 else 13966 postdep_objects_CXX="$postdep_objects_CXX $p" 13967 fi 13968 fi 13969 ;; 13970 13971 *) ;; # Ignore the rest. 13972 13973 esac 13974 done 13975 13976 # Clean up. 13977 rm -f a.out a.exe 13978else 13979 echo "libtool.m4: error: problem compiling CXX test program" 13980fi 13981 13982$rm -f confest.$objext 13983 13984# PORTME: override above test on systems where it is broken 13985case $host_os in 13986interix3*) 13987 # Interix 3.5 installs completely hosed .la files for C++, so rather than 13988 # hack all around it, let's just trust "g++" to DTRT. 13989 predep_objects_CXX= 13990 postdep_objects_CXX= 13991 postdeps_CXX= 13992 ;; 13993 13994solaris*) 13995 case $cc_basename in 13996 CC*) 13997 # Adding this requires a known-good setup of shared libraries for 13998 # Sun compiler versions before 5.6, else PIC objects from an old 13999 # archive will be linked into the output, leading to subtle bugs. 14000 postdeps_CXX='-lCstd -lCrun' 14001 ;; 14002 esac 14003 ;; 14004esac 14005 14006 14007case " $postdeps_CXX " in 14008*" -lc "*) archive_cmds_need_lc_CXX=no ;; 14009esac 14010 14011lt_prog_compiler_wl_CXX= 14012lt_prog_compiler_pic_CXX= 14013lt_prog_compiler_static_CXX= 14014 14015echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 14016echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 14017 14018 # C++ specific cases for pic, static, wl, etc. 14019 if test "$GXX" = yes; then 14020 lt_prog_compiler_wl_CXX='-Wl,' 14021 lt_prog_compiler_static_CXX='-static' 14022 14023 case $host_os in 14024 aix*) 14025 # All AIX code is PIC. 14026 if test "$host_cpu" = ia64; then 14027 # AIX 5 now supports IA64 processor 14028 lt_prog_compiler_static_CXX='-Bstatic' 14029 fi 14030 ;; 14031 amigaos*) 14032 # FIXME: we need at least 68020 code to build shared libraries, but 14033 # adding the `-m68020' flag to GCC prevents building anything better, 14034 # like `-m68040'. 14035 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 14036 ;; 14037 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14038 # PIC is the default for these OSes. 14039 ;; 14040 mingw* | os2* | pw32*) 14041 # This hack is so that the source file can tell whether it is being 14042 # built for inclusion in a dll (and should export symbols for example). 14043 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14044 ;; 14045 darwin* | rhapsody*) 14046 # PIC is the default on this platform 14047 # Common symbols not allowed in MH_DYLIB files 14048 lt_prog_compiler_pic_CXX='-fno-common' 14049 ;; 14050 *djgpp*) 14051 # DJGPP does not support shared libraries at all 14052 lt_prog_compiler_pic_CXX= 14053 ;; 14054 interix3*) 14055 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14056 # Instead, we relocate shared libraries at runtime. 14057 ;; 14058 sysv4*MP*) 14059 if test -d /usr/nec; then 14060 lt_prog_compiler_pic_CXX=-Kconform_pic 14061 fi 14062 ;; 14063 hpux*) 14064 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14065 # not for PA HP-UX. 14066 case $host_cpu in 14067 hppa*64*|ia64*) 14068 ;; 14069 *) 14070 lt_prog_compiler_pic_CXX='-fPIC' 14071 ;; 14072 esac 14073 ;; 14074 *) 14075 lt_prog_compiler_pic_CXX='-fPIC' 14076 ;; 14077 esac 14078 else 14079 case $host_os in 14080 aix4* | aix5*) 14081 # All AIX code is PIC. 14082 if test "$host_cpu" = ia64; then 14083 # AIX 5 now supports IA64 processor 14084 lt_prog_compiler_static_CXX='-Bstatic' 14085 else 14086 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 14087 fi 14088 ;; 14089 chorus*) 14090 case $cc_basename in 14091 cxch68*) 14092 # Green Hills C++ Compiler 14093 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" 14094 ;; 14095 esac 14096 ;; 14097 darwin*) 14098 # PIC is the default on this platform 14099 # Common symbols not allowed in MH_DYLIB files 14100 case $cc_basename in 14101 xlc*) 14102 lt_prog_compiler_pic_CXX='-qnocommon' 14103 lt_prog_compiler_wl_CXX='-Wl,' 14104 ;; 14105 esac 14106 ;; 14107 dgux*) 14108 case $cc_basename in 14109 ec++*) 14110 lt_prog_compiler_pic_CXX='-KPIC' 14111 ;; 14112 ghcx*) 14113 # Green Hills C++ Compiler 14114 lt_prog_compiler_pic_CXX='-pic' 14115 ;; 14116 *) 14117 ;; 14118 esac 14119 ;; 14120 freebsd* | kfreebsd*-gnu | dragonfly*) 14121 # FreeBSD uses GNU C++ 14122 ;; 14123 hpux9* | hpux10* | hpux11*) 14124 case $cc_basename in 14125 CC*) 14126 lt_prog_compiler_wl_CXX='-Wl,' 14127 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 14128 if test "$host_cpu" != ia64; then 14129 lt_prog_compiler_pic_CXX='+Z' 14130 fi 14131 ;; 14132 aCC*) 14133 lt_prog_compiler_wl_CXX='-Wl,' 14134 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 14135 case $host_cpu in 14136 hppa*64*|ia64*) 14137 # +Z the default 14138 ;; 14139 *) 14140 lt_prog_compiler_pic_CXX='+Z' 14141 ;; 14142 esac 14143 ;; 14144 *) 14145 ;; 14146 esac 14147 ;; 14148 interix*) 14149 # This is c89, which is MS Visual C++ (no shared libs) 14150 # Anyone wants to do a port? 14151 ;; 14152 irix5* | irix6* | nonstopux*) 14153 case $cc_basename in 14154 CC*) 14155 lt_prog_compiler_wl_CXX='-Wl,' 14156 lt_prog_compiler_static_CXX='-non_shared' 14157 # CC pic flag -KPIC is the default. 14158 ;; 14159 *) 14160 ;; 14161 esac 14162 ;; 14163 linux*) 14164 case $cc_basename in 14165 KCC*) 14166 # KAI C++ Compiler 14167 lt_prog_compiler_wl_CXX='--backend -Wl,' 14168 lt_prog_compiler_pic_CXX='-fPIC' 14169 ;; 14170 icpc* | ecpc*) 14171 # Intel C++ 14172 lt_prog_compiler_wl_CXX='-Wl,' 14173 lt_prog_compiler_pic_CXX='-KPIC' 14174 lt_prog_compiler_static_CXX='-static' 14175 ;; 14176 pgCC*) 14177 # Portland Group C++ compiler. 14178 lt_prog_compiler_wl_CXX='-Wl,' 14179 lt_prog_compiler_pic_CXX='-fpic' 14180 lt_prog_compiler_static_CXX='-Bstatic' 14181 ;; 14182 cxx*) 14183 # Compaq C++ 14184 # Make sure the PIC flag is empty. It appears that all Alpha 14185 # Linux and Compaq Tru64 Unix objects are PIC. 14186 lt_prog_compiler_pic_CXX= 14187 lt_prog_compiler_static_CXX='-non_shared' 14188 ;; 14189 *) 14190 ;; 14191 esac 14192 ;; 14193 lynxos*) 14194 ;; 14195 m88k*) 14196 ;; 14197 mvs*) 14198 case $cc_basename in 14199 cxx*) 14200 lt_prog_compiler_pic_CXX='-W c,exportall' 14201 ;; 14202 *) 14203 ;; 14204 esac 14205 ;; 14206 netbsd*) 14207 ;; 14208 osf3* | osf4* | osf5*) 14209 case $cc_basename in 14210 KCC*) 14211 lt_prog_compiler_wl_CXX='--backend -Wl,' 14212 ;; 14213 RCC*) 14214 # Rational C++ 2.4.1 14215 lt_prog_compiler_pic_CXX='-pic' 14216 ;; 14217 cxx*) 14218 # Digital/Compaq C++ 14219 lt_prog_compiler_wl_CXX='-Wl,' 14220 # Make sure the PIC flag is empty. It appears that all Alpha 14221 # Linux and Compaq Tru64 Unix objects are PIC. 14222 lt_prog_compiler_pic_CXX= 14223 lt_prog_compiler_static_CXX='-non_shared' 14224 ;; 14225 *) 14226 ;; 14227 esac 14228 ;; 14229 psos*) 14230 ;; 14231 solaris*) 14232 case $cc_basename in 14233 CC*) 14234 # Sun C++ 4.2, 5.x and Centerline C++ 14235 lt_prog_compiler_pic_CXX='-KPIC' 14236 lt_prog_compiler_static_CXX='-Bstatic' 14237 lt_prog_compiler_wl_CXX='-Qoption ld ' 14238 ;; 14239 gcx*) 14240 # Green Hills C++ Compiler 14241 lt_prog_compiler_pic_CXX='-PIC' 14242 ;; 14243 *) 14244 ;; 14245 esac 14246 ;; 14247 sunos4*) 14248 case $cc_basename in 14249 CC*) 14250 # Sun C++ 4.x 14251 lt_prog_compiler_pic_CXX='-pic' 14252 lt_prog_compiler_static_CXX='-Bstatic' 14253 ;; 14254 lcc*) 14255 # Lucid 14256 lt_prog_compiler_pic_CXX='-pic' 14257 ;; 14258 *) 14259 ;; 14260 esac 14261 ;; 14262 tandem*) 14263 case $cc_basename in 14264 NCC*) 14265 # NonStop-UX NCC 3.20 14266 lt_prog_compiler_pic_CXX='-KPIC' 14267 ;; 14268 *) 14269 ;; 14270 esac 14271 ;; 14272 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14273 case $cc_basename in 14274 CC*) 14275 lt_prog_compiler_wl_CXX='-Wl,' 14276 lt_prog_compiler_pic_CXX='-KPIC' 14277 lt_prog_compiler_static_CXX='-Bstatic' 14278 ;; 14279 esac 14280 ;; 14281 vxworks*) 14282 ;; 14283 *) 14284 lt_prog_compiler_can_build_shared_CXX=no 14285 ;; 14286 esac 14287 fi 14288 14289echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 14290echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 14291 14292# 14293# Check to make sure the PIC flag actually works. 14294# 14295if test -n "$lt_prog_compiler_pic_CXX"; then 14296 14297echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 14298echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 14299if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 14300 echo $ECHO_N "(cached) $ECHO_C" >&6 14301else 14302 lt_prog_compiler_pic_works_CXX=no 14303 ac_outfile=conftest.$ac_objext 14304 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14305 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 14306 # Insert the option either (1) after the last *FLAGS variable, or 14307 # (2) before a word containing "conftest.", or (3) at the end. 14308 # Note that $ac_compile itself does not contain backslashes and begins 14309 # with a dollar sign (not a hyphen), so the echo should work correctly. 14310 # The option is referenced via a variable to avoid confusing sed. 14311 lt_compile=`echo "$ac_compile" | $SED \ 14312 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14313 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14314 -e 's:$: $lt_compiler_flag:'` 14315 (eval echo "\"\$as_me:14315: $lt_compile\"" >&5) 14316 (eval "$lt_compile" 2>conftest.err) 14317 ac_status=$? 14318 cat conftest.err >&5 14319 echo "$as_me:14319: \$? = $ac_status" >&5 14320 if (exit $ac_status) && test -s "$ac_outfile"; then 14321 # The compiler can only warn and ignore the option if not recognized 14322 # So say no if there are warnings other than the usual output. 14323 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14324 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14325 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14326 lt_prog_compiler_pic_works_CXX=yes 14327 fi 14328 fi 14329 $rm conftest* 14330 14331fi 14332echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 14333echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 14334 14335if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 14336 case $lt_prog_compiler_pic_CXX in 14337 "" | " "*) ;; 14338 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 14339 esac 14340else 14341 lt_prog_compiler_pic_CXX= 14342 lt_prog_compiler_can_build_shared_CXX=no 14343fi 14344 14345fi 14346case $host_os in 14347 # For platforms which do not support PIC, -DPIC is meaningless: 14348 *djgpp*) 14349 lt_prog_compiler_pic_CXX= 14350 ;; 14351 *) 14352 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 14353 ;; 14354esac 14355 14356# 14357# Check to make sure the static flag actually works. 14358# 14359wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 14360echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14361echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 14362if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 14363 echo $ECHO_N "(cached) $ECHO_C" >&6 14364else 14365 lt_prog_compiler_static_works_CXX=no 14366 save_LDFLAGS="$LDFLAGS" 14367 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14368 printf "$lt_simple_link_test_code" > conftest.$ac_ext 14369 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14370 # The linker can only warn and ignore the option if not recognized 14371 # So say no if there are warnings 14372 if test -s conftest.err; then 14373 # Append any errors to the config.log. 14374 cat conftest.err 1>&5 14375 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 14376 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14377 if diff conftest.exp conftest.er2 >/dev/null; then 14378 lt_prog_compiler_static_works_CXX=yes 14379 fi 14380 else 14381 lt_prog_compiler_static_works_CXX=yes 14382 fi 14383 fi 14384 $rm conftest* 14385 LDFLAGS="$save_LDFLAGS" 14386 14387fi 14388echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 14389echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6 14390 14391if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 14392 : 14393else 14394 lt_prog_compiler_static_CXX= 14395fi 14396 14397 14398echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14399echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 14400if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 14401 echo $ECHO_N "(cached) $ECHO_C" >&6 14402else 14403 lt_cv_prog_compiler_c_o_CXX=no 14404 $rm -r conftest 2>/dev/null 14405 mkdir conftest 14406 cd conftest 14407 mkdir out 14408 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14409 14410 lt_compiler_flag="-o out/conftest2.$ac_objext" 14411 # Insert the option either (1) after the last *FLAGS variable, or 14412 # (2) before a word containing "conftest.", or (3) at the end. 14413 # Note that $ac_compile itself does not contain backslashes and begins 14414 # with a dollar sign (not a hyphen), so the echo should work correctly. 14415 lt_compile=`echo "$ac_compile" | $SED \ 14416 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14417 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14418 -e 's:$: $lt_compiler_flag:'` 14419 (eval echo "\"\$as_me:14419: $lt_compile\"" >&5) 14420 (eval "$lt_compile" 2>out/conftest.err) 14421 ac_status=$? 14422 cat out/conftest.err >&5 14423 echo "$as_me:14423: \$? = $ac_status" >&5 14424 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14425 then 14426 # The compiler can only warn and ignore the option if not recognized 14427 # So say no if there are warnings 14428 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14429 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14430 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14431 lt_cv_prog_compiler_c_o_CXX=yes 14432 fi 14433 fi 14434 chmod u+w . 2>&5 14435 $rm conftest* 14436 # SGI C++ compiler will create directory out/ii_files/ for 14437 # template instantiation 14438 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14439 $rm out/* && rmdir out 14440 cd .. 14441 rmdir conftest 14442 $rm conftest* 14443 14444fi 14445echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14446echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 14447 14448 14449hard_links="nottested" 14450if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 14451 # do not overwrite the value of need_locks provided by the user 14452 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14453echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 14454 hard_links=yes 14455 $rm conftest* 14456 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14457 touch conftest.a 14458 ln conftest.a conftest.b 2>&5 || hard_links=no 14459 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14460 echo "$as_me:$LINENO: result: $hard_links" >&5 14461echo "${ECHO_T}$hard_links" >&6 14462 if test "$hard_links" = no; then 14463 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14464echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14465 need_locks=warn 14466 fi 14467else 14468 need_locks=no 14469fi 14470 14471echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14472echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 14473 14474 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14475 case $host_os in 14476 aix4* | aix5*) 14477 # If we're using GNU nm, then we don't want the "-C" option. 14478 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14479 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 14480 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 14481 else 14482 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 14483 fi 14484 ;; 14485 pw32*) 14486 export_symbols_cmds_CXX="$ltdll_cmds" 14487 ;; 14488 cygwin* | mingw*) 14489 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 14490 ;; 14491 *) 14492 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14493 ;; 14494 esac 14495 14496echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 14497echo "${ECHO_T}$ld_shlibs_CXX" >&6 14498test "$ld_shlibs_CXX" = no && can_build_shared=no 14499 14500# 14501# Do we need to explicitly link libc? 14502# 14503case "x$archive_cmds_need_lc_CXX" in 14504x|xyes) 14505 # Assume -lc should be added 14506 archive_cmds_need_lc_CXX=yes 14507 14508 if test "$enable_shared" = yes && test "$GCC" = yes; then 14509 case $archive_cmds_CXX in 14510 *'~'*) 14511 # FIXME: we may have to deal with multi-command sequences. 14512 ;; 14513 '$CC '*) 14514 # Test whether the compiler implicitly links with -lc since on some 14515 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14516 # to ld, don't add -lc before -lgcc. 14517 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 14518echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 14519 $rm conftest* 14520 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14521 14522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14523 (eval $ac_compile) 2>&5 14524 ac_status=$? 14525 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14526 (exit $ac_status); } 2>conftest.err; then 14527 soname=conftest 14528 lib=conftest 14529 libobjs=conftest.$ac_objext 14530 deplibs= 14531 wl=$lt_prog_compiler_wl_CXX 14532 pic_flag=$lt_prog_compiler_pic_CXX 14533 compiler_flags=-v 14534 linker_flags=-v 14535 verstring= 14536 output_objdir=. 14537 libname=conftest 14538 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 14539 allow_undefined_flag_CXX= 14540 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 14541 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 14542 ac_status=$? 14543 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14544 (exit $ac_status); } 14545 then 14546 archive_cmds_need_lc_CXX=no 14547 else 14548 archive_cmds_need_lc_CXX=yes 14549 fi 14550 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 14551 else 14552 cat conftest.err 1>&5 14553 fi 14554 $rm conftest* 14555 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 14556echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 14557 ;; 14558 esac 14559 fi 14560 ;; 14561esac 14562 14563echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 14564echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 14565library_names_spec= 14566libname_spec='lib$name' 14567soname_spec= 14568shrext_cmds=".so" 14569postinstall_cmds= 14570postuninstall_cmds= 14571finish_cmds= 14572finish_eval= 14573shlibpath_var= 14574shlibpath_overrides_runpath=unknown 14575version_type=none 14576dynamic_linker="$host_os ld.so" 14577sys_lib_dlsearch_path_spec="/lib /usr/lib" 14578if test "$GCC" = yes; then 14579 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14580 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 14581 # if the path contains ";" then we assume it to be the separator 14582 # otherwise default to the standard path separator (i.e. ":") - it is 14583 # assumed that no part of a normal pathname contains ";" but that should 14584 # okay in the real world where ";" in dirpaths is itself problematic. 14585 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14586 else 14587 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14588 fi 14589else 14590 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 14591fi 14592need_lib_prefix=unknown 14593hardcode_into_libs=no 14594 14595# when you set need_version to no, make sure it does not cause -set_version 14596# flags to be left without arguments 14597need_version=unknown 14598 14599case $host_os in 14600aix3*) 14601 version_type=linux 14602 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 14603 shlibpath_var=LIBPATH 14604 14605 # AIX 3 has no versioning support, so we append a major version to the name. 14606 soname_spec='${libname}${release}${shared_ext}$major' 14607 ;; 14608 14609aix4* | aix5*) 14610 version_type=linux 14611 need_lib_prefix=no 14612 need_version=no 14613 hardcode_into_libs=yes 14614 if test "$host_cpu" = ia64; then 14615 # AIX 5 supports IA64 14616 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 14617 shlibpath_var=LD_LIBRARY_PATH 14618 else 14619 # With GCC up to 2.95.x, collect2 would create an import file 14620 # for dependence libraries. The import file would start with 14621 # the line `#! .'. This would cause the generated library to 14622 # depend on `.', always an invalid library. This was fixed in 14623 # development snapshots of GCC prior to 3.0. 14624 case $host_os in 14625 aix4 | aix4.[01] | aix4.[01].*) 14626 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14627 echo ' yes ' 14628 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 14629 : 14630 else 14631 can_build_shared=no 14632 fi 14633 ;; 14634 esac 14635 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 14636 # soname into executable. Probably we can add versioning support to 14637 # collect2, so additional links can be useful in future. 14638 if test "$aix_use_runtimelinking" = yes; then 14639 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14640 # instead of lib<name>.a to let people know that these are not 14641 # typical AIX shared libraries. 14642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14643 else 14644 # We preserve .a as extension for shared libraries through AIX4.2 14645 # and later when we are not doing run time linking. 14646 library_names_spec='${libname}${release}.a $libname.a' 14647 soname_spec='${libname}${release}${shared_ext}$major' 14648 fi 14649 shlibpath_var=LIBPATH 14650 fi 14651 ;; 14652 14653amigaos*) 14654 library_names_spec='$libname.ixlibrary $libname.a' 14655 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14656 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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' 14657 ;; 14658 14659beos*) 14660 library_names_spec='${libname}${shared_ext}' 14661 dynamic_linker="$host_os ld.so" 14662 shlibpath_var=LIBRARY_PATH 14663 ;; 14664 14665bsdi[45]*) 14666 version_type=linux 14667 need_version=no 14668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14669 soname_spec='${libname}${release}${shared_ext}$major' 14670 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14671 shlibpath_var=LD_LIBRARY_PATH 14672 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14673 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14674 # the default ld.so.conf also contains /usr/contrib/lib and 14675 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14676 # libtool to hard-code these into programs 14677 ;; 14678 14679cygwin* | mingw* | pw32*) 14680 version_type=windows 14681 shrext_cmds=".dll" 14682 need_version=no 14683 need_lib_prefix=no 14684 14685 case $GCC,$host_os in 14686 yes,cygwin* | yes,mingw* | yes,pw32*) 14687 library_names_spec='$libname.dll.a' 14688 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14689 postinstall_cmds='base_file=`basename \${file}`~ 14690 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 14691 dldir=$destdir/`dirname \$dlpath`~ 14692 test -d \$dldir || mkdir -p \$dldir~ 14693 $install_prog $dir/$dlname \$dldir/$dlname~ 14694 chmod a+x \$dldir/$dlname' 14695 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14696 dlpath=$dir/\$dldll~ 14697 $rm \$dlpath' 14698 shlibpath_overrides_runpath=yes 14699 14700 case $host_os in 14701 cygwin*) 14702 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14703 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14704 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 14705 ;; 14706 mingw*) 14707 # MinGW DLLs use traditional 'lib' prefix 14708 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14709 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14710 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 14711 # It is most probably a Windows format PATH printed by 14712 # mingw gcc, but we are running on Cygwin. Gcc prints its search 14713 # path with ; separators, and with drive letters. We can handle the 14714 # drive letters (cygwin fileutils understands them), so leave them, 14715 # especially as we might pass files found there to a mingw objdump, 14716 # which wouldn't understand a cygwinified path. Ahh. 14717 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14718 else 14719 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14720 fi 14721 ;; 14722 pw32*) 14723 # pw32 DLLs use 'pw' prefix rather than 'lib' 14724 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14725 ;; 14726 esac 14727 ;; 14728 14729 *) 14730 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 14731 ;; 14732 esac 14733 dynamic_linker='Win32 ld.exe' 14734 # FIXME: first we should search . and the directory the executable is in 14735 shlibpath_var=PATH 14736 ;; 14737 14738darwin* | rhapsody*) 14739 dynamic_linker="$host_os dyld" 14740 version_type=darwin 14741 need_lib_prefix=no 14742 need_version=no 14743 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 14744 soname_spec='${libname}${release}${major}$shared_ext' 14745 shlibpath_overrides_runpath=yes 14746 shlibpath_var=DYLD_LIBRARY_PATH 14747 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 14748 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 14749 if test "$GCC" = yes; then 14750 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 14751 else 14752 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 14753 fi 14754 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14755 ;; 14756 14757dgux*) 14758 version_type=linux 14759 need_lib_prefix=no 14760 need_version=no 14761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 14762 soname_spec='${libname}${release}${shared_ext}$major' 14763 shlibpath_var=LD_LIBRARY_PATH 14764 ;; 14765 14766freebsd1*) 14767 dynamic_linker=no 14768 ;; 14769 14770kfreebsd*-gnu) 14771 version_type=linux 14772 need_lib_prefix=no 14773 need_version=no 14774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14775 soname_spec='${libname}${release}${shared_ext}$major' 14776 shlibpath_var=LD_LIBRARY_PATH 14777 shlibpath_overrides_runpath=no 14778 hardcode_into_libs=yes 14779 dynamic_linker='GNU ld.so' 14780 ;; 14781 14782freebsd* | dragonfly*) 14783 # DragonFly does not have aout. When/if they implement a new 14784 # versioning mechanism, adjust this. 14785 if test -x /usr/bin/objformat; then 14786 objformat=`/usr/bin/objformat` 14787 else 14788 case $host_os in 14789 freebsd[123]*) objformat=aout ;; 14790 *) objformat=elf ;; 14791 esac 14792 fi 14793 version_type=freebsd-$objformat 14794 case $version_type in 14795 freebsd-elf*) 14796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14797 need_version=no 14798 need_lib_prefix=no 14799 ;; 14800 freebsd-*) 14801 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 14802 need_version=yes 14803 ;; 14804 esac 14805 shlibpath_var=LD_LIBRARY_PATH 14806 case $host_os in 14807 freebsd2*) 14808 shlibpath_overrides_runpath=yes 14809 ;; 14810 freebsd3.[01]* | freebsdelf3.[01]*) 14811 shlibpath_overrides_runpath=yes 14812 hardcode_into_libs=yes 14813 ;; 14814 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 14815 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 14816 shlibpath_overrides_runpath=no 14817 hardcode_into_libs=yes 14818 ;; 14819 freebsd*) # from 4.6 on 14820 shlibpath_overrides_runpath=yes 14821 hardcode_into_libs=yes 14822 ;; 14823 esac 14824 ;; 14825 14826gnu*) 14827 version_type=linux 14828 need_lib_prefix=no 14829 need_version=no 14830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14831 soname_spec='${libname}${release}${shared_ext}$major' 14832 shlibpath_var=LD_LIBRARY_PATH 14833 hardcode_into_libs=yes 14834 ;; 14835 14836hpux9* | hpux10* | hpux11*) 14837 # Give a soname corresponding to the major version so that dld.sl refuses to 14838 # link against other versions. 14839 version_type=sunos 14840 need_lib_prefix=no 14841 need_version=no 14842 case $host_cpu in 14843 ia64*) 14844 shrext_cmds='.so' 14845 hardcode_into_libs=yes 14846 dynamic_linker="$host_os dld.so" 14847 shlibpath_var=LD_LIBRARY_PATH 14848 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14850 soname_spec='${libname}${release}${shared_ext}$major' 14851 if test "X$HPUX_IA64_MODE" = X32; then 14852 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14853 else 14854 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14855 fi 14856 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14857 ;; 14858 hppa*64*) 14859 shrext_cmds='.sl' 14860 hardcode_into_libs=yes 14861 dynamic_linker="$host_os dld.sl" 14862 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14863 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14865 soname_spec='${libname}${release}${shared_ext}$major' 14866 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14867 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14868 ;; 14869 *) 14870 shrext_cmds='.sl' 14871 dynamic_linker="$host_os dld.sl" 14872 shlibpath_var=SHLIB_PATH 14873 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14875 soname_spec='${libname}${release}${shared_ext}$major' 14876 ;; 14877 esac 14878 # HP-UX runs *really* slowly unless shared libraries are mode 555. 14879 postinstall_cmds='chmod 555 $lib' 14880 ;; 14881 14882interix3*) 14883 version_type=linux 14884 need_lib_prefix=no 14885 need_version=no 14886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14887 soname_spec='${libname}${release}${shared_ext}$major' 14888 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 14889 shlibpath_var=LD_LIBRARY_PATH 14890 shlibpath_overrides_runpath=no 14891 hardcode_into_libs=yes 14892 ;; 14893 14894irix5* | irix6* | nonstopux*) 14895 case $host_os in 14896 nonstopux*) version_type=nonstopux ;; 14897 *) 14898 if test "$lt_cv_prog_gnu_ld" = yes; then 14899 version_type=linux 14900 else 14901 version_type=irix 14902 fi ;; 14903 esac 14904 need_lib_prefix=no 14905 need_version=no 14906 soname_spec='${libname}${release}${shared_ext}$major' 14907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 14908 case $host_os in 14909 irix5* | nonstopux*) 14910 libsuff= shlibsuff= 14911 ;; 14912 *) 14913 case $LD in # libtool.m4 will add one of these switches to LD 14914 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14915 libsuff= shlibsuff= libmagic=32-bit;; 14916 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14917 libsuff=32 shlibsuff=N32 libmagic=N32;; 14918 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14919 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14920 *) libsuff= shlibsuff= libmagic=never-match;; 14921 esac 14922 ;; 14923 esac 14924 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14925 shlibpath_overrides_runpath=no 14926 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 14927 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 14928 hardcode_into_libs=yes 14929 ;; 14930 14931# No shared lib support for Linux oldld, aout, or coff. 14932linux*oldld* | linux*aout* | linux*coff*) 14933 dynamic_linker=no 14934 ;; 14935 14936# This must be Linux ELF. 14937linux*) 14938 version_type=linux 14939 need_lib_prefix=no 14940 need_version=no 14941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14942 soname_spec='${libname}${release}${shared_ext}$major' 14943 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14944 shlibpath_var=LD_LIBRARY_PATH 14945 shlibpath_overrides_runpath=no 14946 # This implies no fast_install, which is unacceptable. 14947 # Some rework will be needed to allow for fast_install 14948 # before this can be enabled. 14949 hardcode_into_libs=yes 14950 14951 # Append ld.so.conf contents to the search path 14952 if test -f /etc/ld.so.conf; then 14953 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 14954 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 14955 fi 14956 14957 # We used to test for /lib/ld.so.1 and disable shared libraries on 14958 # powerpc, because MkLinux only supported shared libraries with the 14959 # GNU dynamic linker. Since this was broken with cross compilers, 14960 # most powerpc-linux boxes support dynamic linking these days and 14961 # people can always --disable-shared, the test was removed, and we 14962 # assume the GNU/Linux dynamic linker is in use. 14963 dynamic_linker='GNU/Linux ld.so' 14964 ;; 14965 14966knetbsd*-gnu) 14967 version_type=linux 14968 need_lib_prefix=no 14969 need_version=no 14970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14971 soname_spec='${libname}${release}${shared_ext}$major' 14972 shlibpath_var=LD_LIBRARY_PATH 14973 shlibpath_overrides_runpath=no 14974 hardcode_into_libs=yes 14975 dynamic_linker='GNU ld.so' 14976 ;; 14977 14978netbsd*) 14979 version_type=sunos 14980 need_lib_prefix=no 14981 need_version=no 14982 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14984 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14985 dynamic_linker='NetBSD (a.out) ld.so' 14986 else 14987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14988 soname_spec='${libname}${release}${shared_ext}$major' 14989 dynamic_linker='NetBSD ld.elf_so' 14990 fi 14991 shlibpath_var=LD_LIBRARY_PATH 14992 shlibpath_overrides_runpath=yes 14993 hardcode_into_libs=yes 14994 ;; 14995 14996newsos6) 14997 version_type=linux 14998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14999 shlibpath_var=LD_LIBRARY_PATH 15000 shlibpath_overrides_runpath=yes 15001 ;; 15002 15003nto-qnx*) 15004 version_type=linux 15005 need_lib_prefix=no 15006 need_version=no 15007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15008 soname_spec='${libname}${release}${shared_ext}$major' 15009 shlibpath_var=LD_LIBRARY_PATH 15010 shlibpath_overrides_runpath=yes 15011 ;; 15012 15013openbsd*) 15014 version_type=sunos 15015 sys_lib_dlsearch_path_spec="/usr/lib" 15016 need_lib_prefix=no 15017 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15018 case $host_os in 15019 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15020 *) need_version=no ;; 15021 esac 15022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15023 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15024 shlibpath_var=LD_LIBRARY_PATH 15025 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15026 case $host_os in 15027 openbsd2.[89] | openbsd2.[89].*) 15028 shlibpath_overrides_runpath=no 15029 ;; 15030 *) 15031 shlibpath_overrides_runpath=yes 15032 ;; 15033 esac 15034 else 15035 shlibpath_overrides_runpath=yes 15036 fi 15037 ;; 15038 15039os2*) 15040 libname_spec='$name' 15041 shrext_cmds=".dll" 15042 need_lib_prefix=no 15043 library_names_spec='$libname${shared_ext} $libname.a' 15044 dynamic_linker='OS/2 ld.exe' 15045 shlibpath_var=LIBPATH 15046 ;; 15047 15048osf3* | osf4* | osf5*) 15049 version_type=osf 15050 need_lib_prefix=no 15051 need_version=no 15052 soname_spec='${libname}${release}${shared_ext}$major' 15053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15054 shlibpath_var=LD_LIBRARY_PATH 15055 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15056 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15057 ;; 15058 15059solaris*) 15060 version_type=linux 15061 need_lib_prefix=no 15062 need_version=no 15063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15064 soname_spec='${libname}${release}${shared_ext}$major' 15065 shlibpath_var=LD_LIBRARY_PATH 15066 shlibpath_overrides_runpath=yes 15067 hardcode_into_libs=yes 15068 # ldd complains unless libraries are executable 15069 postinstall_cmds='chmod +x $lib' 15070 ;; 15071 15072sunos4*) 15073 version_type=sunos 15074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15075 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15076 shlibpath_var=LD_LIBRARY_PATH 15077 shlibpath_overrides_runpath=yes 15078 if test "$with_gnu_ld" = yes; then 15079 need_lib_prefix=no 15080 fi 15081 need_version=yes 15082 ;; 15083 15084sysv4 | sysv4.3*) 15085 version_type=linux 15086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15087 soname_spec='${libname}${release}${shared_ext}$major' 15088 shlibpath_var=LD_LIBRARY_PATH 15089 case $host_vendor in 15090 sni) 15091 shlibpath_overrides_runpath=no 15092 need_lib_prefix=no 15093 export_dynamic_flag_spec='${wl}-Blargedynsym' 15094 runpath_var=LD_RUN_PATH 15095 ;; 15096 siemens) 15097 need_lib_prefix=no 15098 ;; 15099 motorola) 15100 need_lib_prefix=no 15101 need_version=no 15102 shlibpath_overrides_runpath=no 15103 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15104 ;; 15105 esac 15106 ;; 15107 15108sysv4*MP*) 15109 if test -d /usr/nec ;then 15110 version_type=linux 15111 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15112 soname_spec='$libname${shared_ext}.$major' 15113 shlibpath_var=LD_LIBRARY_PATH 15114 fi 15115 ;; 15116 15117sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15118 version_type=freebsd-elf 15119 need_lib_prefix=no 15120 need_version=no 15121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15122 soname_spec='${libname}${release}${shared_ext}$major' 15123 shlibpath_var=LD_LIBRARY_PATH 15124 hardcode_into_libs=yes 15125 if test "$with_gnu_ld" = yes; then 15126 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15127 shlibpath_overrides_runpath=no 15128 else 15129 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15130 shlibpath_overrides_runpath=yes 15131 case $host_os in 15132 sco3.2v5*) 15133 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15134 ;; 15135 esac 15136 fi 15137 sys_lib_dlsearch_path_spec='/usr/lib' 15138 ;; 15139 15140uts4*) 15141 version_type=linux 15142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15143 soname_spec='${libname}${release}${shared_ext}$major' 15144 shlibpath_var=LD_LIBRARY_PATH 15145 ;; 15146 15147*) 15148 dynamic_linker=no 15149 ;; 15150esac 15151echo "$as_me:$LINENO: result: $dynamic_linker" >&5 15152echo "${ECHO_T}$dynamic_linker" >&6 15153test "$dynamic_linker" = no && can_build_shared=no 15154 15155variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15156if test "$GCC" = yes; then 15157 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15158fi 15159 15160echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 15161echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 15162hardcode_action_CXX= 15163if test -n "$hardcode_libdir_flag_spec_CXX" || \ 15164 test -n "$runpath_var_CXX" || \ 15165 test "X$hardcode_automatic_CXX" = "Xyes" ; then 15166 15167 # We can hardcode non-existant directories. 15168 if test "$hardcode_direct_CXX" != no && 15169 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15170 # have to relink, otherwise we might link with an installed library 15171 # when we should be linking with a yet-to-be-installed one 15172 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 15173 test "$hardcode_minus_L_CXX" != no; then 15174 # Linking always hardcodes the temporary library directory. 15175 hardcode_action_CXX=relink 15176 else 15177 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15178 hardcode_action_CXX=immediate 15179 fi 15180else 15181 # We cannot hardcode anything, or else we can only hardcode existing 15182 # directories. 15183 hardcode_action_CXX=unsupported 15184fi 15185echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 15186echo "${ECHO_T}$hardcode_action_CXX" >&6 15187 15188if test "$hardcode_action_CXX" = relink; then 15189 # Fast installation is not supported 15190 enable_fast_install=no 15191elif test "$shlibpath_overrides_runpath" = yes || 15192 test "$enable_shared" = no; then 15193 # Fast installation is not necessary 15194 enable_fast_install=needless 15195fi 15196 15197 15198# The else clause should only fire when bootstrapping the 15199# libtool distribution, otherwise you forgot to ship ltmain.sh 15200# with your package, and you will get complaints that there are 15201# no rules to generate ltmain.sh. 15202if test -f "$ltmain"; then 15203 # See if we are running on zsh, and set the options which allow our commands through 15204 # without removal of \ escapes. 15205 if test -n "${ZSH_VERSION+set}" ; then 15206 setopt NO_GLOB_SUBST 15207 fi 15208 # Now quote all the things that may contain metacharacters while being 15209 # careful not to overquote the AC_SUBSTed values. We take copies of the 15210 # variables and quote the copies for generation of the libtool script. 15211 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 15212 SED SHELL STRIP \ 15213 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 15214 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 15215 deplibs_check_method reload_flag reload_cmds need_locks \ 15216 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 15217 lt_cv_sys_global_symbol_to_c_name_address \ 15218 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 15219 old_postinstall_cmds old_postuninstall_cmds \ 15220 compiler_CXX \ 15221 CC_CXX \ 15222 LD_CXX \ 15223 lt_prog_compiler_wl_CXX \ 15224 lt_prog_compiler_pic_CXX \ 15225 lt_prog_compiler_static_CXX \ 15226 lt_prog_compiler_no_builtin_flag_CXX \ 15227 export_dynamic_flag_spec_CXX \ 15228 thread_safe_flag_spec_CXX \ 15229 whole_archive_flag_spec_CXX \ 15230 enable_shared_with_static_runtimes_CXX \ 15231 old_archive_cmds_CXX \ 15232 old_archive_from_new_cmds_CXX \ 15233 predep_objects_CXX \ 15234 postdep_objects_CXX \ 15235 predeps_CXX \ 15236 postdeps_CXX \ 15237 compiler_lib_search_path_CXX \ 15238 archive_cmds_CXX \ 15239 archive_expsym_cmds_CXX \ 15240 postinstall_cmds_CXX \ 15241 postuninstall_cmds_CXX \ 15242 old_archive_from_expsyms_cmds_CXX \ 15243 allow_undefined_flag_CXX \ 15244 no_undefined_flag_CXX \ 15245 export_symbols_cmds_CXX \ 15246 hardcode_libdir_flag_spec_CXX \ 15247 hardcode_libdir_flag_spec_ld_CXX \ 15248 hardcode_libdir_separator_CXX \ 15249 hardcode_automatic_CXX \ 15250 module_cmds_CXX \ 15251 module_expsym_cmds_CXX \ 15252 lt_cv_prog_compiler_c_o_CXX \ 15253 exclude_expsyms_CXX \ 15254 include_expsyms_CXX; do 15255 15256 case $var in 15257 old_archive_cmds_CXX | \ 15258 old_archive_from_new_cmds_CXX | \ 15259 archive_cmds_CXX | \ 15260 archive_expsym_cmds_CXX | \ 15261 module_cmds_CXX | \ 15262 module_expsym_cmds_CXX | \ 15263 old_archive_from_expsyms_cmds_CXX | \ 15264 export_symbols_cmds_CXX | \ 15265 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 15266 postinstall_cmds | postuninstall_cmds | \ 15267 old_postinstall_cmds | old_postuninstall_cmds | \ 15268 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 15269 # Double-quote double-evaled strings. 15270 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 15271 ;; 15272 *) 15273 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 15274 ;; 15275 esac 15276 done 15277 15278 case $lt_echo in 15279 *'\$0 --fallback-echo"') 15280 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 15281 ;; 15282 esac 15283 15284cfgfile="$ofile" 15285 15286 cat <<__EOF__ >> "$cfgfile" 15287# ### BEGIN LIBTOOL TAG CONFIG: $tagname 15288 15289# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15290 15291# Shell to use when invoking shell scripts. 15292SHELL=$lt_SHELL 15293 15294# Whether or not to build shared libraries. 15295build_libtool_libs=$enable_shared 15296 15297# Whether or not to build static libraries. 15298build_old_libs=$enable_static 15299 15300# Whether or not to add -lc for building shared libraries. 15301build_libtool_need_lc=$archive_cmds_need_lc_CXX 15302 15303# Whether or not to disallow shared libs when runtime libs are static 15304allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 15305 15306# Whether or not to optimize for fast installation. 15307fast_install=$enable_fast_install 15308 15309# The host system. 15310host_alias=$host_alias 15311host=$host 15312host_os=$host_os 15313 15314# The build system. 15315build_alias=$build_alias 15316build=$build 15317build_os=$build_os 15318 15319# An echo program that does not interpret backslashes. 15320echo=$lt_echo 15321 15322# The archiver. 15323AR=$lt_AR 15324AR_FLAGS=$lt_AR_FLAGS 15325 15326# A C compiler. 15327LTCC=$lt_LTCC 15328 15329# LTCC compiler flags. 15330LTCFLAGS=$lt_LTCFLAGS 15331 15332# A language-specific compiler. 15333CC=$lt_compiler_CXX 15334 15335# Is the compiler the GNU C compiler? 15336with_gcc=$GCC_CXX 15337 15338# An ERE matcher. 15339EGREP=$lt_EGREP 15340 15341# The linker used to build libraries. 15342LD=$lt_LD_CXX 15343 15344# Whether we need hard or soft links. 15345LN_S=$lt_LN_S 15346 15347# A BSD-compatible nm program. 15348NM=$lt_NM 15349 15350# A symbol stripping program 15351STRIP=$lt_STRIP 15352 15353# Used to examine libraries when file_magic_cmd begins "file" 15354MAGIC_CMD=$MAGIC_CMD 15355 15356# Used on cygwin: DLL creation program. 15357DLLTOOL="$DLLTOOL" 15358 15359# Used on cygwin: object dumper. 15360OBJDUMP="$OBJDUMP" 15361 15362# Used on cygwin: assembler. 15363AS="$AS" 15364 15365# The name of the directory that contains temporary libtool files. 15366objdir=$objdir 15367 15368# How to create reloadable object files. 15369reload_flag=$lt_reload_flag 15370reload_cmds=$lt_reload_cmds 15371 15372# How to pass a linker flag through the compiler. 15373wl=$lt_lt_prog_compiler_wl_CXX 15374 15375# Object file suffix (normally "o"). 15376objext="$ac_objext" 15377 15378# Old archive suffix (normally "a"). 15379libext="$libext" 15380 15381# Shared library suffix (normally ".so"). 15382shrext_cmds='$shrext_cmds' 15383 15384# Executable file suffix (normally ""). 15385exeext="$exeext" 15386 15387# Additional compiler flags for building library objects. 15388pic_flag=$lt_lt_prog_compiler_pic_CXX 15389pic_mode=$pic_mode 15390 15391# What is the maximum length of a command? 15392max_cmd_len=$lt_cv_sys_max_cmd_len 15393 15394# Does compiler simultaneously support -c and -o options? 15395compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 15396 15397# Must we lock files when doing compilation? 15398need_locks=$lt_need_locks 15399 15400# Do we need the lib prefix for modules? 15401need_lib_prefix=$need_lib_prefix 15402 15403# Do we need a version for libraries? 15404need_version=$need_version 15405 15406# Whether dlopen is supported. 15407dlopen_support=$enable_dlopen 15408 15409# Whether dlopen of programs is supported. 15410dlopen_self=$enable_dlopen_self 15411 15412# Whether dlopen of statically linked programs is supported. 15413dlopen_self_static=$enable_dlopen_self_static 15414 15415# Compiler flag to prevent dynamic linking. 15416link_static_flag=$lt_lt_prog_compiler_static_CXX 15417 15418# Compiler flag to turn off builtin functions. 15419no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 15420 15421# Compiler flag to allow reflexive dlopens. 15422export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 15423 15424# Compiler flag to generate shared objects directly from archives. 15425whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 15426 15427# Compiler flag to generate thread-safe objects. 15428thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 15429 15430# Library versioning type. 15431version_type=$version_type 15432 15433# Format of library name prefix. 15434libname_spec=$lt_libname_spec 15435 15436# List of archive names. First name is the real one, the rest are links. 15437# The last name is the one that the linker finds with -lNAME. 15438library_names_spec=$lt_library_names_spec 15439 15440# The coded name of the library, if different from the real name. 15441soname_spec=$lt_soname_spec 15442 15443# Commands used to build and install an old-style archive. 15444RANLIB=$lt_RANLIB 15445old_archive_cmds=$lt_old_archive_cmds_CXX 15446old_postinstall_cmds=$lt_old_postinstall_cmds 15447old_postuninstall_cmds=$lt_old_postuninstall_cmds 15448 15449# Create an old-style archive from a shared archive. 15450old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 15451 15452# Create a temporary old-style archive to link instead of a shared archive. 15453old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 15454 15455# Commands used to build and install a shared archive. 15456archive_cmds=$lt_archive_cmds_CXX 15457archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 15458postinstall_cmds=$lt_postinstall_cmds 15459postuninstall_cmds=$lt_postuninstall_cmds 15460 15461# Commands used to build a loadable module (assumed same as above if empty) 15462module_cmds=$lt_module_cmds_CXX 15463module_expsym_cmds=$lt_module_expsym_cmds_CXX 15464 15465# Commands to strip libraries. 15466old_striplib=$lt_old_striplib 15467striplib=$lt_striplib 15468 15469# Dependencies to place before the objects being linked to create a 15470# shared library. 15471predep_objects=$lt_predep_objects_CXX 15472 15473# Dependencies to place after the objects being linked to create a 15474# shared library. 15475postdep_objects=$lt_postdep_objects_CXX 15476 15477# Dependencies to place before the objects being linked to create a 15478# shared library. 15479predeps=$lt_predeps_CXX 15480 15481# Dependencies to place after the objects being linked to create a 15482# shared library. 15483postdeps=$lt_postdeps_CXX 15484 15485# The library search path used internally by the compiler when linking 15486# a shared library. 15487compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 15488 15489# Method to check whether dependent libraries are shared objects. 15490deplibs_check_method=$lt_deplibs_check_method 15491 15492# Command to use when deplibs_check_method == file_magic. 15493file_magic_cmd=$lt_file_magic_cmd 15494 15495# Flag that allows shared libraries with undefined symbols to be built. 15496allow_undefined_flag=$lt_allow_undefined_flag_CXX 15497 15498# Flag that forces no undefined symbols. 15499no_undefined_flag=$lt_no_undefined_flag_CXX 15500 15501# Commands used to finish a libtool library installation in a directory. 15502finish_cmds=$lt_finish_cmds 15503 15504# Same as above, but a single script fragment to be evaled but not shown. 15505finish_eval=$lt_finish_eval 15506 15507# Take the output of nm and produce a listing of raw symbols and C names. 15508global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15509 15510# Transform the output of nm in a proper C declaration 15511global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15512 15513# Transform the output of nm in a C name address pair 15514global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15515 15516# This is the shared library runtime path variable. 15517runpath_var=$runpath_var 15518 15519# This is the shared library path variable. 15520shlibpath_var=$shlibpath_var 15521 15522# Is shlibpath searched before the hard-coded library search path? 15523shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15524 15525# How to hardcode a shared library path into an executable. 15526hardcode_action=$hardcode_action_CXX 15527 15528# Whether we should hardcode library paths into libraries. 15529hardcode_into_libs=$hardcode_into_libs 15530 15531# Flag to hardcode \$libdir into a binary during linking. 15532# This must work even if \$libdir does not exist. 15533hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 15534 15535# If ld is used when linking, flag to hardcode \$libdir into 15536# a binary during linking. This must work even if \$libdir does 15537# not exist. 15538hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 15539 15540# Whether we need a single -rpath flag with a separated argument. 15541hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 15542 15543# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 15544# resulting binary. 15545hardcode_direct=$hardcode_direct_CXX 15546 15547# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 15548# resulting binary. 15549hardcode_minus_L=$hardcode_minus_L_CXX 15550 15551# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 15552# the resulting binary. 15553hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 15554 15555# Set to yes if building a shared library automatically hardcodes DIR into the library 15556# and all subsequent libraries and executables linked against it. 15557hardcode_automatic=$hardcode_automatic_CXX 15558 15559# Variables whose values should be saved in libtool wrapper scripts and 15560# restored at relink time. 15561variables_saved_for_relink="$variables_saved_for_relink" 15562 15563# Whether libtool must link a program against all its dependency libraries. 15564link_all_deplibs=$link_all_deplibs_CXX 15565 15566# Compile-time system search path for libraries 15567sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15568 15569# Run-time system search path for libraries 15570sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15571 15572# Fix the shell variable \$srcfile for the compiler. 15573fix_srcfile_path="$fix_srcfile_path_CXX" 15574 15575# Set to yes if exported symbols are required. 15576always_export_symbols=$always_export_symbols_CXX 15577 15578# The commands to list exported symbols. 15579export_symbols_cmds=$lt_export_symbols_cmds_CXX 15580 15581# The commands to extract the exported symbol list from a shared archive. 15582extract_expsyms_cmds=$lt_extract_expsyms_cmds 15583 15584# Symbols that should not be listed in the preloaded symbols. 15585exclude_expsyms=$lt_exclude_expsyms_CXX 15586 15587# Symbols that must always be exported. 15588include_expsyms=$lt_include_expsyms_CXX 15589 15590# ### END LIBTOOL TAG CONFIG: $tagname 15591 15592__EOF__ 15593 15594 15595else 15596 # If there is no Makefile yet, we rely on a make rule to execute 15597 # `config.status --recheck' to rerun these tests and create the 15598 # libtool script then. 15599 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 15600 if test -f "$ltmain_in"; then 15601 test -f Makefile && make "$ltmain" 15602 fi 15603fi 15604 15605 15606ac_ext=c 15607ac_cpp='$CPP $CPPFLAGS' 15608ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15609ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15610ac_compiler_gnu=$ac_cv_c_compiler_gnu 15611 15612CC=$lt_save_CC 15613LDCXX=$LD 15614LD=$lt_save_LD 15615GCC=$lt_save_GCC 15616with_gnu_ldcxx=$with_gnu_ld 15617with_gnu_ld=$lt_save_with_gnu_ld 15618lt_cv_path_LDCXX=$lt_cv_path_LD 15619lt_cv_path_LD=$lt_save_path_LD 15620lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 15621lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 15622 15623 else 15624 tagname="" 15625 fi 15626 ;; 15627 15628 F77) 15629 if test -n "$F77" && test "X$F77" != "Xno"; then 15630 15631ac_ext=f 15632ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 15633ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15634ac_compiler_gnu=$ac_cv_f77_compiler_gnu 15635 15636 15637archive_cmds_need_lc_F77=no 15638allow_undefined_flag_F77= 15639always_export_symbols_F77=no 15640archive_expsym_cmds_F77= 15641export_dynamic_flag_spec_F77= 15642hardcode_direct_F77=no 15643hardcode_libdir_flag_spec_F77= 15644hardcode_libdir_flag_spec_ld_F77= 15645hardcode_libdir_separator_F77= 15646hardcode_minus_L_F77=no 15647hardcode_automatic_F77=no 15648module_cmds_F77= 15649module_expsym_cmds_F77= 15650link_all_deplibs_F77=unknown 15651old_archive_cmds_F77=$old_archive_cmds 15652no_undefined_flag_F77= 15653whole_archive_flag_spec_F77= 15654enable_shared_with_static_runtimes_F77=no 15655 15656# Source file extension for f77 test sources. 15657ac_ext=f 15658 15659# Object file extension for compiled f77 test sources. 15660objext=o 15661objext_F77=$objext 15662 15663# Code to be used in simple compile tests 15664lt_simple_compile_test_code=" subroutine t\n return\n end\n" 15665 15666# Code to be used in simple link tests 15667lt_simple_link_test_code=" program t\n end\n" 15668 15669# ltmain only uses $CC for tagged configurations so make sure $CC is set. 15670 15671# If no C compiler was specified, use CC. 15672LTCC=${LTCC-"$CC"} 15673 15674# If no C compiler flags were specified, use CFLAGS. 15675LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 15676 15677# Allow CC to be a program name with arguments. 15678compiler=$CC 15679 15680 15681# save warnings/boilerplate of simple test code 15682ac_outfile=conftest.$ac_objext 15683printf "$lt_simple_compile_test_code" >conftest.$ac_ext 15684eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15685_lt_compiler_boilerplate=`cat conftest.err` 15686$rm conftest* 15687 15688ac_outfile=conftest.$ac_objext 15689printf "$lt_simple_link_test_code" >conftest.$ac_ext 15690eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15691_lt_linker_boilerplate=`cat conftest.err` 15692$rm conftest* 15693 15694 15695# Allow CC to be a program name with arguments. 15696lt_save_CC="$CC" 15697CC=${F77-"f77"} 15698compiler=$CC 15699compiler_F77=$CC 15700for cc_temp in $compiler""; do 15701 case $cc_temp in 15702 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15703 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15704 \-*) ;; 15705 *) break;; 15706 esac 15707done 15708cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 15709 15710 15711echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 15712echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 15713echo "$as_me:$LINENO: result: $can_build_shared" >&5 15714echo "${ECHO_T}$can_build_shared" >&6 15715 15716echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 15717echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 15718test "$can_build_shared" = "no" && enable_shared=no 15719 15720# On AIX, shared libraries and static libraries use the same namespace, and 15721# are all built from PIC. 15722case $host_os in 15723aix3*) 15724 test "$enable_shared" = yes && enable_static=no 15725 if test -n "$RANLIB"; then 15726 archive_cmds="$archive_cmds~\$RANLIB \$lib" 15727 postinstall_cmds='$RANLIB $lib' 15728 fi 15729 ;; 15730aix4* | aix5*) 15731 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 15732 test "$enable_shared" = yes && enable_static=no 15733 fi 15734 ;; 15735esac 15736echo "$as_me:$LINENO: result: $enable_shared" >&5 15737echo "${ECHO_T}$enable_shared" >&6 15738 15739echo "$as_me:$LINENO: checking whether to build static libraries" >&5 15740echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 15741# Make sure either enable_shared or enable_static is yes. 15742test "$enable_shared" = yes || enable_static=yes 15743echo "$as_me:$LINENO: result: $enable_static" >&5 15744echo "${ECHO_T}$enable_static" >&6 15745 15746GCC_F77="$G77" 15747LD_F77="$LD" 15748 15749lt_prog_compiler_wl_F77= 15750lt_prog_compiler_pic_F77= 15751lt_prog_compiler_static_F77= 15752 15753echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 15754echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 15755 15756 if test "$GCC" = yes; then 15757 lt_prog_compiler_wl_F77='-Wl,' 15758 lt_prog_compiler_static_F77='-static' 15759 15760 case $host_os in 15761 aix*) 15762 # All AIX code is PIC. 15763 if test "$host_cpu" = ia64; then 15764 # AIX 5 now supports IA64 processor 15765 lt_prog_compiler_static_F77='-Bstatic' 15766 fi 15767 ;; 15768 15769 amigaos*) 15770 # FIXME: we need at least 68020 code to build shared libraries, but 15771 # adding the `-m68020' flag to GCC prevents building anything better, 15772 # like `-m68040'. 15773 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 15774 ;; 15775 15776 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15777 # PIC is the default for these OSes. 15778 ;; 15779 15780 mingw* | pw32* | os2*) 15781 # This hack is so that the source file can tell whether it is being 15782 # built for inclusion in a dll (and should export symbols for example). 15783 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 15784 ;; 15785 15786 darwin* | rhapsody*) 15787 # PIC is the default on this platform 15788 # Common symbols not allowed in MH_DYLIB files 15789 lt_prog_compiler_pic_F77='-fno-common' 15790 ;; 15791 15792 interix3*) 15793 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15794 # Instead, we relocate shared libraries at runtime. 15795 ;; 15796 15797 msdosdjgpp*) 15798 # Just because we use GCC doesn't mean we suddenly get shared libraries 15799 # on systems that don't support them. 15800 lt_prog_compiler_can_build_shared_F77=no 15801 enable_shared=no 15802 ;; 15803 15804 sysv4*MP*) 15805 if test -d /usr/nec; then 15806 lt_prog_compiler_pic_F77=-Kconform_pic 15807 fi 15808 ;; 15809 15810 hpux*) 15811 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15812 # not for PA HP-UX. 15813 case $host_cpu in 15814 hppa*64*|ia64*) 15815 # +Z the default 15816 ;; 15817 *) 15818 lt_prog_compiler_pic_F77='-fPIC' 15819 ;; 15820 esac 15821 ;; 15822 15823 *) 15824 lt_prog_compiler_pic_F77='-fPIC' 15825 ;; 15826 esac 15827 else 15828 # PORTME Check for flag to pass linker flags through the system compiler. 15829 case $host_os in 15830 aix*) 15831 lt_prog_compiler_wl_F77='-Wl,' 15832 if test "$host_cpu" = ia64; then 15833 # AIX 5 now supports IA64 processor 15834 lt_prog_compiler_static_F77='-Bstatic' 15835 else 15836 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 15837 fi 15838 ;; 15839 darwin*) 15840 # PIC is the default on this platform 15841 # Common symbols not allowed in MH_DYLIB files 15842 case $cc_basename in 15843 xlc*) 15844 lt_prog_compiler_pic_F77='-qnocommon' 15845 lt_prog_compiler_wl_F77='-Wl,' 15846 ;; 15847 esac 15848 ;; 15849 15850 mingw* | pw32* | os2*) 15851 # This hack is so that the source file can tell whether it is being 15852 # built for inclusion in a dll (and should export symbols for example). 15853 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 15854 ;; 15855 15856 hpux9* | hpux10* | hpux11*) 15857 lt_prog_compiler_wl_F77='-Wl,' 15858 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15859 # not for PA HP-UX. 15860 case $host_cpu in 15861 hppa*64*|ia64*) 15862 # +Z the default 15863 ;; 15864 *) 15865 lt_prog_compiler_pic_F77='+Z' 15866 ;; 15867 esac 15868 # Is there a better lt_prog_compiler_static that works with the bundled CC? 15869 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 15870 ;; 15871 15872 irix5* | irix6* | nonstopux*) 15873 lt_prog_compiler_wl_F77='-Wl,' 15874 # PIC (with -KPIC) is the default. 15875 lt_prog_compiler_static_F77='-non_shared' 15876 ;; 15877 15878 newsos6) 15879 lt_prog_compiler_pic_F77='-KPIC' 15880 lt_prog_compiler_static_F77='-Bstatic' 15881 ;; 15882 15883 linux*) 15884 case $cc_basename in 15885 icc* | ecc*) 15886 lt_prog_compiler_wl_F77='-Wl,' 15887 lt_prog_compiler_pic_F77='-KPIC' 15888 lt_prog_compiler_static_F77='-static' 15889 ;; 15890 pgcc* | pgf77* | pgf90* | pgf95*) 15891 # Portland Group compilers (*not* the Pentium gcc compiler, 15892 # which looks to be a dead project) 15893 lt_prog_compiler_wl_F77='-Wl,' 15894 lt_prog_compiler_pic_F77='-fpic' 15895 lt_prog_compiler_static_F77='-Bstatic' 15896 ;; 15897 ccc*) 15898 lt_prog_compiler_wl_F77='-Wl,' 15899 # All Alpha code is PIC. 15900 lt_prog_compiler_static_F77='-non_shared' 15901 ;; 15902 esac 15903 ;; 15904 15905 osf3* | osf4* | osf5*) 15906 lt_prog_compiler_wl_F77='-Wl,' 15907 # All OSF/1 code is PIC. 15908 lt_prog_compiler_static_F77='-non_shared' 15909 ;; 15910 15911 solaris*) 15912 lt_prog_compiler_pic_F77='-KPIC' 15913 lt_prog_compiler_static_F77='-Bstatic' 15914 case $cc_basename in 15915 f77* | f90* | f95*) 15916 lt_prog_compiler_wl_F77='-Qoption ld ';; 15917 *) 15918 lt_prog_compiler_wl_F77='-Wl,';; 15919 esac 15920 ;; 15921 15922 sunos4*) 15923 lt_prog_compiler_wl_F77='-Qoption ld ' 15924 lt_prog_compiler_pic_F77='-PIC' 15925 lt_prog_compiler_static_F77='-Bstatic' 15926 ;; 15927 15928 sysv4 | sysv4.2uw2* | sysv4.3*) 15929 lt_prog_compiler_wl_F77='-Wl,' 15930 lt_prog_compiler_pic_F77='-KPIC' 15931 lt_prog_compiler_static_F77='-Bstatic' 15932 ;; 15933 15934 sysv4*MP*) 15935 if test -d /usr/nec ;then 15936 lt_prog_compiler_pic_F77='-Kconform_pic' 15937 lt_prog_compiler_static_F77='-Bstatic' 15938 fi 15939 ;; 15940 15941 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15942 lt_prog_compiler_wl_F77='-Wl,' 15943 lt_prog_compiler_pic_F77='-KPIC' 15944 lt_prog_compiler_static_F77='-Bstatic' 15945 ;; 15946 15947 unicos*) 15948 lt_prog_compiler_wl_F77='-Wl,' 15949 lt_prog_compiler_can_build_shared_F77=no 15950 ;; 15951 15952 uts4*) 15953 lt_prog_compiler_pic_F77='-pic' 15954 lt_prog_compiler_static_F77='-Bstatic' 15955 ;; 15956 15957 *) 15958 lt_prog_compiler_can_build_shared_F77=no 15959 ;; 15960 esac 15961 fi 15962 15963echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 15964echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 15965 15966# 15967# Check to make sure the PIC flag actually works. 15968# 15969if test -n "$lt_prog_compiler_pic_F77"; then 15970 15971echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 15972echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 15973if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 15974 echo $ECHO_N "(cached) $ECHO_C" >&6 15975else 15976 lt_prog_compiler_pic_works_F77=no 15977 ac_outfile=conftest.$ac_objext 15978 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15979 lt_compiler_flag="$lt_prog_compiler_pic_F77" 15980 # Insert the option either (1) after the last *FLAGS variable, or 15981 # (2) before a word containing "conftest.", or (3) at the end. 15982 # Note that $ac_compile itself does not contain backslashes and begins 15983 # with a dollar sign (not a hyphen), so the echo should work correctly. 15984 # The option is referenced via a variable to avoid confusing sed. 15985 lt_compile=`echo "$ac_compile" | $SED \ 15986 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15987 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15988 -e 's:$: $lt_compiler_flag:'` 15989 (eval echo "\"\$as_me:15989: $lt_compile\"" >&5) 15990 (eval "$lt_compile" 2>conftest.err) 15991 ac_status=$? 15992 cat conftest.err >&5 15993 echo "$as_me:15993: \$? = $ac_status" >&5 15994 if (exit $ac_status) && test -s "$ac_outfile"; then 15995 # The compiler can only warn and ignore the option if not recognized 15996 # So say no if there are warnings other than the usual output. 15997 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 15998 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15999 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16000 lt_prog_compiler_pic_works_F77=yes 16001 fi 16002 fi 16003 $rm conftest* 16004 16005fi 16006echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 16007echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 16008 16009if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 16010 case $lt_prog_compiler_pic_F77 in 16011 "" | " "*) ;; 16012 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 16013 esac 16014else 16015 lt_prog_compiler_pic_F77= 16016 lt_prog_compiler_can_build_shared_F77=no 16017fi 16018 16019fi 16020case $host_os in 16021 # For platforms which do not support PIC, -DPIC is meaningless: 16022 *djgpp*) 16023 lt_prog_compiler_pic_F77= 16024 ;; 16025 *) 16026 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 16027 ;; 16028esac 16029 16030# 16031# Check to make sure the static flag actually works. 16032# 16033wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 16034echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 16035echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 16036if test "${lt_prog_compiler_static_works_F77+set}" = set; then 16037 echo $ECHO_N "(cached) $ECHO_C" >&6 16038else 16039 lt_prog_compiler_static_works_F77=no 16040 save_LDFLAGS="$LDFLAGS" 16041 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 16042 printf "$lt_simple_link_test_code" > conftest.$ac_ext 16043 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16044 # The linker can only warn and ignore the option if not recognized 16045 # So say no if there are warnings 16046 if test -s conftest.err; then 16047 # Append any errors to the config.log. 16048 cat conftest.err 1>&5 16049 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 16050 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16051 if diff conftest.exp conftest.er2 >/dev/null; then 16052 lt_prog_compiler_static_works_F77=yes 16053 fi 16054 else 16055 lt_prog_compiler_static_works_F77=yes 16056 fi 16057 fi 16058 $rm conftest* 16059 LDFLAGS="$save_LDFLAGS" 16060 16061fi 16062echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 16063echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6 16064 16065if test x"$lt_prog_compiler_static_works_F77" = xyes; then 16066 : 16067else 16068 lt_prog_compiler_static_F77= 16069fi 16070 16071 16072echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 16073echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 16074if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 16075 echo $ECHO_N "(cached) $ECHO_C" >&6 16076else 16077 lt_cv_prog_compiler_c_o_F77=no 16078 $rm -r conftest 2>/dev/null 16079 mkdir conftest 16080 cd conftest 16081 mkdir out 16082 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16083 16084 lt_compiler_flag="-o out/conftest2.$ac_objext" 16085 # Insert the option either (1) after the last *FLAGS variable, or 16086 # (2) before a word containing "conftest.", or (3) at the end. 16087 # Note that $ac_compile itself does not contain backslashes and begins 16088 # with a dollar sign (not a hyphen), so the echo should work correctly. 16089 lt_compile=`echo "$ac_compile" | $SED \ 16090 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16091 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16092 -e 's:$: $lt_compiler_flag:'` 16093 (eval echo "\"\$as_me:16093: $lt_compile\"" >&5) 16094 (eval "$lt_compile" 2>out/conftest.err) 16095 ac_status=$? 16096 cat out/conftest.err >&5 16097 echo "$as_me:16097: \$? = $ac_status" >&5 16098 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16099 then 16100 # The compiler can only warn and ignore the option if not recognized 16101 # So say no if there are warnings 16102 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 16103 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16104 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16105 lt_cv_prog_compiler_c_o_F77=yes 16106 fi 16107 fi 16108 chmod u+w . 2>&5 16109 $rm conftest* 16110 # SGI C++ compiler will create directory out/ii_files/ for 16111 # template instantiation 16112 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 16113 $rm out/* && rmdir out 16114 cd .. 16115 rmdir conftest 16116 $rm conftest* 16117 16118fi 16119echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 16120echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 16121 16122 16123hard_links="nottested" 16124if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 16125 # do not overwrite the value of need_locks provided by the user 16126 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 16127echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 16128 hard_links=yes 16129 $rm conftest* 16130 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16131 touch conftest.a 16132 ln conftest.a conftest.b 2>&5 || hard_links=no 16133 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16134 echo "$as_me:$LINENO: result: $hard_links" >&5 16135echo "${ECHO_T}$hard_links" >&6 16136 if test "$hard_links" = no; then 16137 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 16138echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 16139 need_locks=warn 16140 fi 16141else 16142 need_locks=no 16143fi 16144 16145echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16146echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 16147 16148 runpath_var= 16149 allow_undefined_flag_F77= 16150 enable_shared_with_static_runtimes_F77=no 16151 archive_cmds_F77= 16152 archive_expsym_cmds_F77= 16153 old_archive_From_new_cmds_F77= 16154 old_archive_from_expsyms_cmds_F77= 16155 export_dynamic_flag_spec_F77= 16156 whole_archive_flag_spec_F77= 16157 thread_safe_flag_spec_F77= 16158 hardcode_libdir_flag_spec_F77= 16159 hardcode_libdir_flag_spec_ld_F77= 16160 hardcode_libdir_separator_F77= 16161 hardcode_direct_F77=no 16162 hardcode_minus_L_F77=no 16163 hardcode_shlibpath_var_F77=unsupported 16164 link_all_deplibs_F77=unknown 16165 hardcode_automatic_F77=no 16166 module_cmds_F77= 16167 module_expsym_cmds_F77= 16168 always_export_symbols_F77=no 16169 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16170 # include_expsyms should be a list of space-separated symbols to be *always* 16171 # included in the symbol list 16172 include_expsyms_F77= 16173 # exclude_expsyms can be an extended regexp of symbols to exclude 16174 # it will be wrapped by ` (' and `)$', so one must not match beginning or 16175 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 16176 # as well as any symbol that contains `d'. 16177 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 16178 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16179 # platforms (ab)use it in PIC code, but their linkers get confused if 16180 # the symbol is explicitly referenced. Since portable code cannot 16181 # rely on this symbol name, it's probably fine to never include it in 16182 # preloaded symbol tables. 16183 extract_expsyms_cmds= 16184 # Just being paranoid about ensuring that cc_basename is set. 16185 for cc_temp in $compiler""; do 16186 case $cc_temp in 16187 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16188 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16189 \-*) ;; 16190 *) break;; 16191 esac 16192done 16193cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16194 16195 case $host_os in 16196 cygwin* | mingw* | pw32*) 16197 # FIXME: the MSVC++ port hasn't been tested in a loooong time 16198 # When not using gcc, we currently assume that we are using 16199 # Microsoft Visual C++. 16200 if test "$GCC" != yes; then 16201 with_gnu_ld=no 16202 fi 16203 ;; 16204 interix*) 16205 # we just hope/assume this is gcc and not c89 (= MSVC++) 16206 with_gnu_ld=yes 16207 ;; 16208 openbsd*) 16209 with_gnu_ld=no 16210 ;; 16211 esac 16212 16213 ld_shlibs_F77=yes 16214 if test "$with_gnu_ld" = yes; then 16215 # If archive_cmds runs LD, not CC, wlarc should be empty 16216 wlarc='${wl}' 16217 16218 # Set some defaults for GNU ld with shared library support. These 16219 # are reset later if shared libraries are not supported. Putting them 16220 # here allows them to be overridden if necessary. 16221 runpath_var=LD_RUN_PATH 16222 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 16223 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 16224 # ancient GNU ld didn't support --whole-archive et. al. 16225 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 16226 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 16227 else 16228 whole_archive_flag_spec_F77= 16229 fi 16230 supports_anon_versioning=no 16231 case `$LD -v 2>/dev/null` in 16232 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16233 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16234 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16235 *\ 2.11.*) ;; # other 2.11 versions 16236 *) supports_anon_versioning=yes ;; 16237 esac 16238 16239 # See if GNU ld supports shared libraries. 16240 case $host_os in 16241 aix3* | aix4* | aix5*) 16242 # On AIX/PPC, the GNU linker is very broken 16243 if test "$host_cpu" != ia64; then 16244 ld_shlibs_F77=no 16245 cat <<EOF 1>&2 16246 16247*** Warning: the GNU linker, at least up to release 2.9.1, is reported 16248*** to be unable to reliably create shared libraries on AIX. 16249*** Therefore, libtool is disabling shared libraries support. If you 16250*** really care for shared libraries, you may want to modify your PATH 16251*** so that a non-GNU linker is found, and then restart. 16252 16253EOF 16254 fi 16255 ;; 16256 16257 amigaos*) 16258 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 16259 hardcode_libdir_flag_spec_F77='-L$libdir' 16260 hardcode_minus_L_F77=yes 16261 16262 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 16263 # that the semantics of dynamic libraries on AmigaOS, at least up 16264 # to version 4, is to share data among multiple programs linked 16265 # with the same dynamic library. Since this doesn't match the 16266 # behavior of shared libraries on other platforms, we can't use 16267 # them. 16268 ld_shlibs_F77=no 16269 ;; 16270 16271 beos*) 16272 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16273 allow_undefined_flag_F77=unsupported 16274 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16275 # support --undefined. This deserves some investigation. FIXME 16276 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16277 else 16278 ld_shlibs_F77=no 16279 fi 16280 ;; 16281 16282 cygwin* | mingw* | pw32*) 16283 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 16284 # as there is no search path for DLLs. 16285 hardcode_libdir_flag_spec_F77='-L$libdir' 16286 allow_undefined_flag_F77=unsupported 16287 always_export_symbols_F77=no 16288 enable_shared_with_static_runtimes_F77=yes 16289 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 16290 16291 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 16292 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16293 # If the export-symbols file already is a .def file (1st line 16294 # is EXPORTS), use it as is; otherwise, prepend... 16295 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 16296 cp $export_symbols $output_objdir/$soname.def; 16297 else 16298 echo EXPORTS > $output_objdir/$soname.def; 16299 cat $export_symbols >> $output_objdir/$soname.def; 16300 fi~ 16301 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16302 else 16303 ld_shlibs_F77=no 16304 fi 16305 ;; 16306 16307 interix3*) 16308 hardcode_direct_F77=no 16309 hardcode_shlibpath_var_F77=no 16310 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 16311 export_dynamic_flag_spec_F77='${wl}-E' 16312 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16313 # Instead, shared libraries are loaded at an image base (0x10000000 by 16314 # default) and relocated if they conflict, which is a slow very memory 16315 # consuming and fragmenting process. To avoid this, we pick a random, 16316 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16317 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16318 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 16319 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 16320 ;; 16321 16322 linux*) 16323 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16324 tmp_addflag= 16325 case $cc_basename,$host_cpu in 16326 pgcc*) # Portland Group C compiler 16327 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 16328 tmp_addflag=' $pic_flag' 16329 ;; 16330 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 16331 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 16332 tmp_addflag=' $pic_flag -Mnomain' ;; 16333 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16334 tmp_addflag=' -i_dynamic' ;; 16335 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16336 tmp_addflag=' -i_dynamic -nofor_main' ;; 16337 ifc* | ifort*) # Intel Fortran compiler 16338 tmp_addflag=' -nofor_main' ;; 16339 esac 16340 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16341 16342 if test $supports_anon_versioning = yes; then 16343 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 16344 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16345 $echo "local: *; };" >> $output_objdir/$libname.ver~ 16346 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 16347 fi 16348 else 16349 ld_shlibs_F77=no 16350 fi 16351 ;; 16352 16353 netbsd*) 16354 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16355 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16356 wlarc= 16357 else 16358 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16359 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16360 fi 16361 ;; 16362 16363 solaris*) 16364 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 16365 ld_shlibs_F77=no 16366 cat <<EOF 1>&2 16367 16368*** Warning: The releases 2.8.* of the GNU linker cannot reliably 16369*** create shared libraries on Solaris systems. Therefore, libtool 16370*** is disabling shared libraries support. We urge you to upgrade GNU 16371*** binutils to release 2.9.1 or newer. Another option is to modify 16372*** your PATH or compiler configuration so that the native linker is 16373*** used, and then restart. 16374 16375EOF 16376 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16377 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16378 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16379 else 16380 ld_shlibs_F77=no 16381 fi 16382 ;; 16383 16384 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 16385 case `$LD -v 2>&1` in 16386 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 16387 ld_shlibs_F77=no 16388 cat <<_LT_EOF 1>&2 16389 16390*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 16391*** reliably create shared libraries on SCO systems. Therefore, libtool 16392*** is disabling shared libraries support. We urge you to upgrade GNU 16393*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 16394*** your PATH or compiler configuration so that the native linker is 16395*** used, and then restart. 16396 16397_LT_EOF 16398 ;; 16399 *) 16400 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16401 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 16402 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 16403 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 16404 else 16405 ld_shlibs_F77=no 16406 fi 16407 ;; 16408 esac 16409 ;; 16410 16411 sunos4*) 16412 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16413 wlarc= 16414 hardcode_direct_F77=yes 16415 hardcode_shlibpath_var_F77=no 16416 ;; 16417 16418 *) 16419 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16420 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16421 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16422 else 16423 ld_shlibs_F77=no 16424 fi 16425 ;; 16426 esac 16427 16428 if test "$ld_shlibs_F77" = no; then 16429 runpath_var= 16430 hardcode_libdir_flag_spec_F77= 16431 export_dynamic_flag_spec_F77= 16432 whole_archive_flag_spec_F77= 16433 fi 16434 else 16435 # PORTME fill in a description of your system's linker (not GNU ld) 16436 case $host_os in 16437 aix3*) 16438 allow_undefined_flag_F77=unsupported 16439 always_export_symbols_F77=yes 16440 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 16441 # Note: this linker hardcodes the directories in LIBPATH if there 16442 # are no directories specified by -L. 16443 hardcode_minus_L_F77=yes 16444 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 16445 # Neither direct hardcoding nor static linking is supported with a 16446 # broken collect2. 16447 hardcode_direct_F77=unsupported 16448 fi 16449 ;; 16450 16451 aix4* | aix5*) 16452 if test "$host_cpu" = ia64; then 16453 # On IA64, the linker does run time linking by default, so we don't 16454 # have to do anything special. 16455 aix_use_runtimelinking=no 16456 exp_sym_flag='-Bexport' 16457 no_entry_flag="" 16458 else 16459 # If we're using GNU nm, then we don't want the "-C" option. 16460 # -C means demangle to AIX nm, but means don't demangle with GNU nm 16461 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 16462 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 16463 else 16464 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 16465 fi 16466 aix_use_runtimelinking=no 16467 16468 # Test if we are trying to use run time linking or normal 16469 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16470 # need to do runtime linking. 16471 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 16472 for ld_flag in $LDFLAGS; do 16473 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 16474 aix_use_runtimelinking=yes 16475 break 16476 fi 16477 done 16478 ;; 16479 esac 16480 16481 exp_sym_flag='-bexport' 16482 no_entry_flag='-bnoentry' 16483 fi 16484 16485 # When large executables or shared objects are built, AIX ld can 16486 # have problems creating the table of contents. If linking a library 16487 # or program results in "error TOC overflow" add -mminimal-toc to 16488 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16489 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16490 16491 archive_cmds_F77='' 16492 hardcode_direct_F77=yes 16493 hardcode_libdir_separator_F77=':' 16494 link_all_deplibs_F77=yes 16495 16496 if test "$GCC" = yes; then 16497 case $host_os in aix4.[012]|aix4.[012].*) 16498 # We only want to do this on AIX 4.2 and lower, the check 16499 # below for broken collect2 doesn't work under 4.3+ 16500 collect2name=`${CC} -print-prog-name=collect2` 16501 if test -f "$collect2name" && \ 16502 strings "$collect2name" | grep resolve_lib_name >/dev/null 16503 then 16504 # We have reworked collect2 16505 hardcode_direct_F77=yes 16506 else 16507 # We have old collect2 16508 hardcode_direct_F77=unsupported 16509 # It fails to find uninstalled libraries when the uninstalled 16510 # path is not listed in the libpath. Setting hardcode_minus_L 16511 # to unsupported forces relinking 16512 hardcode_minus_L_F77=yes 16513 hardcode_libdir_flag_spec_F77='-L$libdir' 16514 hardcode_libdir_separator_F77= 16515 fi 16516 ;; 16517 esac 16518 shared_flag='-shared' 16519 if test "$aix_use_runtimelinking" = yes; then 16520 shared_flag="$shared_flag "'${wl}-G' 16521 fi 16522 else 16523 # not using gcc 16524 if test "$host_cpu" = ia64; then 16525 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16526 # chokes on -Wl,-G. The following line is correct: 16527 shared_flag='-G' 16528 else 16529 if test "$aix_use_runtimelinking" = yes; then 16530 shared_flag='${wl}-G' 16531 else 16532 shared_flag='${wl}-bM:SRE' 16533 fi 16534 fi 16535 fi 16536 16537 # It seems that -bexpall does not export symbols beginning with 16538 # underscore (_), so it is better to generate a list of symbols to export. 16539 always_export_symbols_F77=yes 16540 if test "$aix_use_runtimelinking" = yes; then 16541 # Warning - without using the other runtime loading flags (-brtl), 16542 # -berok will link without error, but may produce a broken library. 16543 allow_undefined_flag_F77='-berok' 16544 # Determine the default libpath from the value encoded in an empty executable. 16545 cat >conftest.$ac_ext <<_ACEOF 16546 program main 16547 16548 end 16549_ACEOF 16550rm -f conftest.$ac_objext conftest$ac_exeext 16551if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16552 (eval $ac_link) 2>conftest.er1 16553 ac_status=$? 16554 grep -v '^ *+' conftest.er1 >conftest.err 16555 rm -f conftest.er1 16556 cat conftest.err >&5 16557 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16558 (exit $ac_status); } && 16559 { ac_try='test -z "$ac_f77_werror_flag" 16560 || test ! -s conftest.err' 16561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16562 (eval $ac_try) 2>&5 16563 ac_status=$? 16564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16565 (exit $ac_status); }; } && 16566 { ac_try='test -s conftest$ac_exeext' 16567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16568 (eval $ac_try) 2>&5 16569 ac_status=$? 16570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16571 (exit $ac_status); }; }; then 16572 16573aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16574}'` 16575# Check for a 64-bit object if we didn't find anything. 16576if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16577}'`; fi 16578else 16579 echo "$as_me: failed program was:" >&5 16580sed 's/^/| /' conftest.$ac_ext >&5 16581 16582fi 16583rm -f conftest.err conftest.$ac_objext \ 16584 conftest$ac_exeext conftest.$ac_ext 16585if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16586 16587 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 16588 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 16589 else 16590 if test "$host_cpu" = ia64; then 16591 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 16592 allow_undefined_flag_F77="-z nodefs" 16593 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 16594 else 16595 # Determine the default libpath from the value encoded in an empty executable. 16596 cat >conftest.$ac_ext <<_ACEOF 16597 program main 16598 16599 end 16600_ACEOF 16601rm -f conftest.$ac_objext conftest$ac_exeext 16602if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16603 (eval $ac_link) 2>conftest.er1 16604 ac_status=$? 16605 grep -v '^ *+' conftest.er1 >conftest.err 16606 rm -f conftest.er1 16607 cat conftest.err >&5 16608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16609 (exit $ac_status); } && 16610 { ac_try='test -z "$ac_f77_werror_flag" 16611 || test ! -s conftest.err' 16612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16613 (eval $ac_try) 2>&5 16614 ac_status=$? 16615 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16616 (exit $ac_status); }; } && 16617 { ac_try='test -s conftest$ac_exeext' 16618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16619 (eval $ac_try) 2>&5 16620 ac_status=$? 16621 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16622 (exit $ac_status); }; }; then 16623 16624aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16625}'` 16626# Check for a 64-bit object if we didn't find anything. 16627if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16628}'`; fi 16629else 16630 echo "$as_me: failed program was:" >&5 16631sed 's/^/| /' conftest.$ac_ext >&5 16632 16633fi 16634rm -f conftest.err conftest.$ac_objext \ 16635 conftest$ac_exeext conftest.$ac_ext 16636if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16637 16638 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 16639 # Warning - without using the other run time loading flags, 16640 # -berok will link without error, but may produce a broken library. 16641 no_undefined_flag_F77=' ${wl}-bernotok' 16642 allow_undefined_flag_F77=' ${wl}-berok' 16643 # Exported symbols can be pulled into shared objects from archives 16644 whole_archive_flag_spec_F77='$convenience' 16645 archive_cmds_need_lc_F77=yes 16646 # This is similar to how AIX traditionally builds its shared libraries. 16647 archive_expsym_cmds_F77="\$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' 16648 fi 16649 fi 16650 ;; 16651 16652 amigaos*) 16653 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 16654 hardcode_libdir_flag_spec_F77='-L$libdir' 16655 hardcode_minus_L_F77=yes 16656 # see comment about different semantics on the GNU ld section 16657 ld_shlibs_F77=no 16658 ;; 16659 16660 bsdi[45]*) 16661 export_dynamic_flag_spec_F77=-rdynamic 16662 ;; 16663 16664 cygwin* | mingw* | pw32*) 16665 # When not using gcc, we currently assume that we are using 16666 # Microsoft Visual C++. 16667 # hardcode_libdir_flag_spec is actually meaningless, as there is 16668 # no search path for DLLs. 16669 hardcode_libdir_flag_spec_F77=' ' 16670 allow_undefined_flag_F77=unsupported 16671 # Tell ltmain to make .lib files, not .a files. 16672 libext=lib 16673 # Tell ltmain to make .dll files, not .so files. 16674 shrext_cmds=".dll" 16675 # FIXME: Setting linknames here is a bad hack. 16676 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 16677 # The linker will automatically build a .lib file if we build a DLL. 16678 old_archive_From_new_cmds_F77='true' 16679 # FIXME: Should let the user specify the lib program. 16680 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 16681 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 16682 enable_shared_with_static_runtimes_F77=yes 16683 ;; 16684 16685 darwin* | rhapsody*) 16686 case $host_os in 16687 rhapsody* | darwin1.[012]) 16688 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 16689 ;; 16690 *) # Darwin 1.3 on 16691 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 16692 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 16693 else 16694 case ${MACOSX_DEPLOYMENT_TARGET} in 16695 10.[012]) 16696 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 16697 ;; 16698 10.*) 16699 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 16700 ;; 16701 esac 16702 fi 16703 ;; 16704 esac 16705 archive_cmds_need_lc_F77=no 16706 hardcode_direct_F77=no 16707 hardcode_automatic_F77=yes 16708 hardcode_shlibpath_var_F77=unsupported 16709 whole_archive_flag_spec_F77='' 16710 link_all_deplibs_F77=yes 16711 if test "$GCC" = yes ; then 16712 output_verbose_link_cmd='echo' 16713 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 16714 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 16715 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 16716 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 16717 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 16718 else 16719 case $cc_basename in 16720 xlc*) 16721 output_verbose_link_cmd='echo' 16722 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 16723 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 16724 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 16725 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 16726 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 16727 ;; 16728 *) 16729 ld_shlibs_F77=no 16730 ;; 16731 esac 16732 fi 16733 ;; 16734 16735 dgux*) 16736 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16737 hardcode_libdir_flag_spec_F77='-L$libdir' 16738 hardcode_shlibpath_var_F77=no 16739 ;; 16740 16741 freebsd1*) 16742 ld_shlibs_F77=no 16743 ;; 16744 16745 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 16746 # support. Future versions do this automatically, but an explicit c++rt0.o 16747 # does not break anything, and helps significantly (at the cost of a little 16748 # extra space). 16749 freebsd2.2*) 16750 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 16751 hardcode_libdir_flag_spec_F77='-R$libdir' 16752 hardcode_direct_F77=yes 16753 hardcode_shlibpath_var_F77=no 16754 ;; 16755 16756 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 16757 freebsd2*) 16758 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16759 hardcode_direct_F77=yes 16760 hardcode_minus_L_F77=yes 16761 hardcode_shlibpath_var_F77=no 16762 ;; 16763 16764 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 16765 freebsd* | kfreebsd*-gnu | dragonfly*) 16766 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 16767 hardcode_libdir_flag_spec_F77='-R$libdir' 16768 hardcode_direct_F77=yes 16769 hardcode_shlibpath_var_F77=no 16770 ;; 16771 16772 hpux9*) 16773 if test "$GCC" = yes; then 16774 archive_cmds_F77='$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' 16775 else 16776 archive_cmds_F77='$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' 16777 fi 16778 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 16779 hardcode_libdir_separator_F77=: 16780 hardcode_direct_F77=yes 16781 16782 # hardcode_minus_L: Not really in the search PATH, 16783 # but as the default location of the library. 16784 hardcode_minus_L_F77=yes 16785 export_dynamic_flag_spec_F77='${wl}-E' 16786 ;; 16787 16788 hpux10*) 16789 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 16790 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16791 else 16792 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16793 fi 16794 if test "$with_gnu_ld" = no; then 16795 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 16796 hardcode_libdir_separator_F77=: 16797 16798 hardcode_direct_F77=yes 16799 export_dynamic_flag_spec_F77='${wl}-E' 16800 16801 # hardcode_minus_L: Not really in the search PATH, 16802 # but as the default location of the library. 16803 hardcode_minus_L_F77=yes 16804 fi 16805 ;; 16806 16807 hpux11*) 16808 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 16809 case $host_cpu in 16810 hppa*64*) 16811 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16812 ;; 16813 ia64*) 16814 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16815 ;; 16816 *) 16817 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16818 ;; 16819 esac 16820 else 16821 case $host_cpu in 16822 hppa*64*) 16823 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16824 ;; 16825 ia64*) 16826 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16827 ;; 16828 *) 16829 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16830 ;; 16831 esac 16832 fi 16833 if test "$with_gnu_ld" = no; then 16834 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 16835 hardcode_libdir_separator_F77=: 16836 16837 case $host_cpu in 16838 hppa*64*|ia64*) 16839 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 16840 hardcode_direct_F77=no 16841 hardcode_shlibpath_var_F77=no 16842 ;; 16843 *) 16844 hardcode_direct_F77=yes 16845 export_dynamic_flag_spec_F77='${wl}-E' 16846 16847 # hardcode_minus_L: Not really in the search PATH, 16848 # but as the default location of the library. 16849 hardcode_minus_L_F77=yes 16850 ;; 16851 esac 16852 fi 16853 ;; 16854 16855 irix5* | irix6* | nonstopux*) 16856 if test "$GCC" = yes; then 16857 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 16858 else 16859 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 16860 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 16861 fi 16862 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 16863 hardcode_libdir_separator_F77=: 16864 link_all_deplibs_F77=yes 16865 ;; 16866 16867 netbsd*) 16868 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16869 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 16870 else 16871 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 16872 fi 16873 hardcode_libdir_flag_spec_F77='-R$libdir' 16874 hardcode_direct_F77=yes 16875 hardcode_shlibpath_var_F77=no 16876 ;; 16877 16878 newsos6) 16879 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16880 hardcode_direct_F77=yes 16881 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 16882 hardcode_libdir_separator_F77=: 16883 hardcode_shlibpath_var_F77=no 16884 ;; 16885 16886 openbsd*) 16887 hardcode_direct_F77=yes 16888 hardcode_shlibpath_var_F77=no 16889 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16890 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16891 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 16892 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 16893 export_dynamic_flag_spec_F77='${wl}-E' 16894 else 16895 case $host_os in 16896 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 16897 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16898 hardcode_libdir_flag_spec_F77='-R$libdir' 16899 ;; 16900 *) 16901 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16902 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 16903 ;; 16904 esac 16905 fi 16906 ;; 16907 16908 os2*) 16909 hardcode_libdir_flag_spec_F77='-L$libdir' 16910 hardcode_minus_L_F77=yes 16911 allow_undefined_flag_F77=unsupported 16912 archive_cmds_F77='$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' 16913 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 16914 ;; 16915 16916 osf3*) 16917 if test "$GCC" = yes; then 16918 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 16919 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 16920 else 16921 allow_undefined_flag_F77=' -expect_unresolved \*' 16922 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 16923 fi 16924 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 16925 hardcode_libdir_separator_F77=: 16926 ;; 16927 16928 osf4* | osf5*) # as osf3* with the addition of -msym flag 16929 if test "$GCC" = yes; then 16930 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 16931 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 16932 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 16933 else 16934 allow_undefined_flag_F77=' -expect_unresolved \*' 16935 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 16936 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 16937 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 16938 16939 # Both c and cxx compiler support -rpath directly 16940 hardcode_libdir_flag_spec_F77='-rpath $libdir' 16941 fi 16942 hardcode_libdir_separator_F77=: 16943 ;; 16944 16945 solaris*) 16946 no_undefined_flag_F77=' -z text' 16947 if test "$GCC" = yes; then 16948 wlarc='${wl}' 16949 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16950 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16951 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 16952 else 16953 wlarc='' 16954 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 16955 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16956 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 16957 fi 16958 hardcode_libdir_flag_spec_F77='-R$libdir' 16959 hardcode_shlibpath_var_F77=no 16960 case $host_os in 16961 solaris2.[0-5] | solaris2.[0-5].*) ;; 16962 *) 16963 # The compiler driver will combine linker options so we 16964 # cannot just pass the convience library names through 16965 # without $wl, iff we do not link with $LD. 16966 # Luckily, gcc supports the same syntax we need for Sun Studio. 16967 # Supported since Solaris 2.6 (maybe 2.5.1?) 16968 case $wlarc in 16969 '') 16970 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 16971 *) 16972 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 16973 esac ;; 16974 esac 16975 link_all_deplibs_F77=yes 16976 ;; 16977 16978 sunos4*) 16979 if test "x$host_vendor" = xsequent; then 16980 # Use $CC to link under sequent, because it throws in some extra .o 16981 # files that make .init and .fini sections work. 16982 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 16983 else 16984 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 16985 fi 16986 hardcode_libdir_flag_spec_F77='-L$libdir' 16987 hardcode_direct_F77=yes 16988 hardcode_minus_L_F77=yes 16989 hardcode_shlibpath_var_F77=no 16990 ;; 16991 16992 sysv4) 16993 case $host_vendor in 16994 sni) 16995 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16996 hardcode_direct_F77=yes # is this really true??? 16997 ;; 16998 siemens) 16999 ## LD is ld it makes a PLAMLIB 17000 ## CC just makes a GrossModule. 17001 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17002 reload_cmds_F77='$CC -r -o $output$reload_objs' 17003 hardcode_direct_F77=no 17004 ;; 17005 motorola) 17006 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17007 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 17008 ;; 17009 esac 17010 runpath_var='LD_RUN_PATH' 17011 hardcode_shlibpath_var_F77=no 17012 ;; 17013 17014 sysv4.3*) 17015 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17016 hardcode_shlibpath_var_F77=no 17017 export_dynamic_flag_spec_F77='-Bexport' 17018 ;; 17019 17020 sysv4*MP*) 17021 if test -d /usr/nec; then 17022 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17023 hardcode_shlibpath_var_F77=no 17024 runpath_var=LD_RUN_PATH 17025 hardcode_runpath_var=yes 17026 ld_shlibs_F77=yes 17027 fi 17028 ;; 17029 17030 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 17031 no_undefined_flag_F77='${wl}-z,text' 17032 archive_cmds_need_lc_F77=no 17033 hardcode_shlibpath_var_F77=no 17034 runpath_var='LD_RUN_PATH' 17035 17036 if test "$GCC" = yes; then 17037 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17038 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17039 else 17040 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17041 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17042 fi 17043 ;; 17044 17045 sysv5* | sco3.2v5* | sco5v6*) 17046 # Note: We can NOT use -z defs as we might desire, because we do not 17047 # link with -lc, and that would cause any symbols used from libc to 17048 # always be unresolved, which means just about no library would 17049 # ever link correctly. If we're not using GNU ld we use -z text 17050 # though, which does catch some bad symbols but isn't as heavy-handed 17051 # as -z defs. 17052 no_undefined_flag_F77='${wl}-z,text' 17053 allow_undefined_flag_F77='${wl}-z,nodefs' 17054 archive_cmds_need_lc_F77=no 17055 hardcode_shlibpath_var_F77=no 17056 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 17057 hardcode_libdir_separator_F77=':' 17058 link_all_deplibs_F77=yes 17059 export_dynamic_flag_spec_F77='${wl}-Bexport' 17060 runpath_var='LD_RUN_PATH' 17061 17062 if test "$GCC" = yes; then 17063 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17064 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17065 else 17066 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17067 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17068 fi 17069 ;; 17070 17071 uts4*) 17072 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17073 hardcode_libdir_flag_spec_F77='-L$libdir' 17074 hardcode_shlibpath_var_F77=no 17075 ;; 17076 17077 *) 17078 ld_shlibs_F77=no 17079 ;; 17080 esac 17081 fi 17082 17083echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 17084echo "${ECHO_T}$ld_shlibs_F77" >&6 17085test "$ld_shlibs_F77" = no && can_build_shared=no 17086 17087# 17088# Do we need to explicitly link libc? 17089# 17090case "x$archive_cmds_need_lc_F77" in 17091x|xyes) 17092 # Assume -lc should be added 17093 archive_cmds_need_lc_F77=yes 17094 17095 if test "$enable_shared" = yes && test "$GCC" = yes; then 17096 case $archive_cmds_F77 in 17097 *'~'*) 17098 # FIXME: we may have to deal with multi-command sequences. 17099 ;; 17100 '$CC '*) 17101 # Test whether the compiler implicitly links with -lc since on some 17102 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17103 # to ld, don't add -lc before -lgcc. 17104 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 17105echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 17106 $rm conftest* 17107 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17108 17109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17110 (eval $ac_compile) 2>&5 17111 ac_status=$? 17112 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17113 (exit $ac_status); } 2>conftest.err; then 17114 soname=conftest 17115 lib=conftest 17116 libobjs=conftest.$ac_objext 17117 deplibs= 17118 wl=$lt_prog_compiler_wl_F77 17119 pic_flag=$lt_prog_compiler_pic_F77 17120 compiler_flags=-v 17121 linker_flags=-v 17122 verstring= 17123 output_objdir=. 17124 libname=conftest 17125 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 17126 allow_undefined_flag_F77= 17127 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 17128 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 17129 ac_status=$? 17130 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17131 (exit $ac_status); } 17132 then 17133 archive_cmds_need_lc_F77=no 17134 else 17135 archive_cmds_need_lc_F77=yes 17136 fi 17137 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 17138 else 17139 cat conftest.err 1>&5 17140 fi 17141 $rm conftest* 17142 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 17143echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 17144 ;; 17145 esac 17146 fi 17147 ;; 17148esac 17149 17150echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 17151echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 17152library_names_spec= 17153libname_spec='lib$name' 17154soname_spec= 17155shrext_cmds=".so" 17156postinstall_cmds= 17157postuninstall_cmds= 17158finish_cmds= 17159finish_eval= 17160shlibpath_var= 17161shlibpath_overrides_runpath=unknown 17162version_type=none 17163dynamic_linker="$host_os ld.so" 17164sys_lib_dlsearch_path_spec="/lib /usr/lib" 17165if test "$GCC" = yes; then 17166 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17167 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 17168 # if the path contains ";" then we assume it to be the separator 17169 # otherwise default to the standard path separator (i.e. ":") - it is 17170 # assumed that no part of a normal pathname contains ";" but that should 17171 # okay in the real world where ";" in dirpaths is itself problematic. 17172 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17173 else 17174 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17175 fi 17176else 17177 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17178fi 17179need_lib_prefix=unknown 17180hardcode_into_libs=no 17181 17182# when you set need_version to no, make sure it does not cause -set_version 17183# flags to be left without arguments 17184need_version=unknown 17185 17186case $host_os in 17187aix3*) 17188 version_type=linux 17189 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 17190 shlibpath_var=LIBPATH 17191 17192 # AIX 3 has no versioning support, so we append a major version to the name. 17193 soname_spec='${libname}${release}${shared_ext}$major' 17194 ;; 17195 17196aix4* | aix5*) 17197 version_type=linux 17198 need_lib_prefix=no 17199 need_version=no 17200 hardcode_into_libs=yes 17201 if test "$host_cpu" = ia64; then 17202 # AIX 5 supports IA64 17203 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 17204 shlibpath_var=LD_LIBRARY_PATH 17205 else 17206 # With GCC up to 2.95.x, collect2 would create an import file 17207 # for dependence libraries. The import file would start with 17208 # the line `#! .'. This would cause the generated library to 17209 # depend on `.', always an invalid library. This was fixed in 17210 # development snapshots of GCC prior to 3.0. 17211 case $host_os in 17212 aix4 | aix4.[01] | aix4.[01].*) 17213 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17214 echo ' yes ' 17215 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 17216 : 17217 else 17218 can_build_shared=no 17219 fi 17220 ;; 17221 esac 17222 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 17223 # soname into executable. Probably we can add versioning support to 17224 # collect2, so additional links can be useful in future. 17225 if test "$aix_use_runtimelinking" = yes; then 17226 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17227 # instead of lib<name>.a to let people know that these are not 17228 # typical AIX shared libraries. 17229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17230 else 17231 # We preserve .a as extension for shared libraries through AIX4.2 17232 # and later when we are not doing run time linking. 17233 library_names_spec='${libname}${release}.a $libname.a' 17234 soname_spec='${libname}${release}${shared_ext}$major' 17235 fi 17236 shlibpath_var=LIBPATH 17237 fi 17238 ;; 17239 17240amigaos*) 17241 library_names_spec='$libname.ixlibrary $libname.a' 17242 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17243 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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' 17244 ;; 17245 17246beos*) 17247 library_names_spec='${libname}${shared_ext}' 17248 dynamic_linker="$host_os ld.so" 17249 shlibpath_var=LIBRARY_PATH 17250 ;; 17251 17252bsdi[45]*) 17253 version_type=linux 17254 need_version=no 17255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17256 soname_spec='${libname}${release}${shared_ext}$major' 17257 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17258 shlibpath_var=LD_LIBRARY_PATH 17259 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17260 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17261 # the default ld.so.conf also contains /usr/contrib/lib and 17262 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17263 # libtool to hard-code these into programs 17264 ;; 17265 17266cygwin* | mingw* | pw32*) 17267 version_type=windows 17268 shrext_cmds=".dll" 17269 need_version=no 17270 need_lib_prefix=no 17271 17272 case $GCC,$host_os in 17273 yes,cygwin* | yes,mingw* | yes,pw32*) 17274 library_names_spec='$libname.dll.a' 17275 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17276 postinstall_cmds='base_file=`basename \${file}`~ 17277 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 17278 dldir=$destdir/`dirname \$dlpath`~ 17279 test -d \$dldir || mkdir -p \$dldir~ 17280 $install_prog $dir/$dlname \$dldir/$dlname~ 17281 chmod a+x \$dldir/$dlname' 17282 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17283 dlpath=$dir/\$dldll~ 17284 $rm \$dlpath' 17285 shlibpath_overrides_runpath=yes 17286 17287 case $host_os in 17288 cygwin*) 17289 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17290 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17291 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 17292 ;; 17293 mingw*) 17294 # MinGW DLLs use traditional 'lib' prefix 17295 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17296 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17297 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 17298 # It is most probably a Windows format PATH printed by 17299 # mingw gcc, but we are running on Cygwin. Gcc prints its search 17300 # path with ; separators, and with drive letters. We can handle the 17301 # drive letters (cygwin fileutils understands them), so leave them, 17302 # especially as we might pass files found there to a mingw objdump, 17303 # which wouldn't understand a cygwinified path. Ahh. 17304 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17305 else 17306 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17307 fi 17308 ;; 17309 pw32*) 17310 # pw32 DLLs use 'pw' prefix rather than 'lib' 17311 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17312 ;; 17313 esac 17314 ;; 17315 17316 *) 17317 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 17318 ;; 17319 esac 17320 dynamic_linker='Win32 ld.exe' 17321 # FIXME: first we should search . and the directory the executable is in 17322 shlibpath_var=PATH 17323 ;; 17324 17325darwin* | rhapsody*) 17326 dynamic_linker="$host_os dyld" 17327 version_type=darwin 17328 need_lib_prefix=no 17329 need_version=no 17330 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 17331 soname_spec='${libname}${release}${major}$shared_ext' 17332 shlibpath_overrides_runpath=yes 17333 shlibpath_var=DYLD_LIBRARY_PATH 17334 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17335 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 17336 if test "$GCC" = yes; then 17337 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 17338 else 17339 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 17340 fi 17341 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17342 ;; 17343 17344dgux*) 17345 version_type=linux 17346 need_lib_prefix=no 17347 need_version=no 17348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 17349 soname_spec='${libname}${release}${shared_ext}$major' 17350 shlibpath_var=LD_LIBRARY_PATH 17351 ;; 17352 17353freebsd1*) 17354 dynamic_linker=no 17355 ;; 17356 17357kfreebsd*-gnu) 17358 version_type=linux 17359 need_lib_prefix=no 17360 need_version=no 17361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17362 soname_spec='${libname}${release}${shared_ext}$major' 17363 shlibpath_var=LD_LIBRARY_PATH 17364 shlibpath_overrides_runpath=no 17365 hardcode_into_libs=yes 17366 dynamic_linker='GNU ld.so' 17367 ;; 17368 17369freebsd* | dragonfly*) 17370 # DragonFly does not have aout. When/if they implement a new 17371 # versioning mechanism, adjust this. 17372 if test -x /usr/bin/objformat; then 17373 objformat=`/usr/bin/objformat` 17374 else 17375 case $host_os in 17376 freebsd[123]*) objformat=aout ;; 17377 *) objformat=elf ;; 17378 esac 17379 fi 17380 version_type=freebsd-$objformat 17381 case $version_type in 17382 freebsd-elf*) 17383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17384 need_version=no 17385 need_lib_prefix=no 17386 ;; 17387 freebsd-*) 17388 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 17389 need_version=yes 17390 ;; 17391 esac 17392 shlibpath_var=LD_LIBRARY_PATH 17393 case $host_os in 17394 freebsd2*) 17395 shlibpath_overrides_runpath=yes 17396 ;; 17397 freebsd3.[01]* | freebsdelf3.[01]*) 17398 shlibpath_overrides_runpath=yes 17399 hardcode_into_libs=yes 17400 ;; 17401 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17402 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17403 shlibpath_overrides_runpath=no 17404 hardcode_into_libs=yes 17405 ;; 17406 freebsd*) # from 4.6 on 17407 shlibpath_overrides_runpath=yes 17408 hardcode_into_libs=yes 17409 ;; 17410 esac 17411 ;; 17412 17413gnu*) 17414 version_type=linux 17415 need_lib_prefix=no 17416 need_version=no 17417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 17418 soname_spec='${libname}${release}${shared_ext}$major' 17419 shlibpath_var=LD_LIBRARY_PATH 17420 hardcode_into_libs=yes 17421 ;; 17422 17423hpux9* | hpux10* | hpux11*) 17424 # Give a soname corresponding to the major version so that dld.sl refuses to 17425 # link against other versions. 17426 version_type=sunos 17427 need_lib_prefix=no 17428 need_version=no 17429 case $host_cpu in 17430 ia64*) 17431 shrext_cmds='.so' 17432 hardcode_into_libs=yes 17433 dynamic_linker="$host_os dld.so" 17434 shlibpath_var=LD_LIBRARY_PATH 17435 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17437 soname_spec='${libname}${release}${shared_ext}$major' 17438 if test "X$HPUX_IA64_MODE" = X32; then 17439 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17440 else 17441 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17442 fi 17443 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17444 ;; 17445 hppa*64*) 17446 shrext_cmds='.sl' 17447 hardcode_into_libs=yes 17448 dynamic_linker="$host_os dld.sl" 17449 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17450 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17452 soname_spec='${libname}${release}${shared_ext}$major' 17453 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17454 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17455 ;; 17456 *) 17457 shrext_cmds='.sl' 17458 dynamic_linker="$host_os dld.sl" 17459 shlibpath_var=SHLIB_PATH 17460 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17462 soname_spec='${libname}${release}${shared_ext}$major' 17463 ;; 17464 esac 17465 # HP-UX runs *really* slowly unless shared libraries are mode 555. 17466 postinstall_cmds='chmod 555 $lib' 17467 ;; 17468 17469interix3*) 17470 version_type=linux 17471 need_lib_prefix=no 17472 need_version=no 17473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17474 soname_spec='${libname}${release}${shared_ext}$major' 17475 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 17476 shlibpath_var=LD_LIBRARY_PATH 17477 shlibpath_overrides_runpath=no 17478 hardcode_into_libs=yes 17479 ;; 17480 17481irix5* | irix6* | nonstopux*) 17482 case $host_os in 17483 nonstopux*) version_type=nonstopux ;; 17484 *) 17485 if test "$lt_cv_prog_gnu_ld" = yes; then 17486 version_type=linux 17487 else 17488 version_type=irix 17489 fi ;; 17490 esac 17491 need_lib_prefix=no 17492 need_version=no 17493 soname_spec='${libname}${release}${shared_ext}$major' 17494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 17495 case $host_os in 17496 irix5* | nonstopux*) 17497 libsuff= shlibsuff= 17498 ;; 17499 *) 17500 case $LD in # libtool.m4 will add one of these switches to LD 17501 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17502 libsuff= shlibsuff= libmagic=32-bit;; 17503 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17504 libsuff=32 shlibsuff=N32 libmagic=N32;; 17505 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17506 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17507 *) libsuff= shlibsuff= libmagic=never-match;; 17508 esac 17509 ;; 17510 esac 17511 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17512 shlibpath_overrides_runpath=no 17513 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 17514 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 17515 hardcode_into_libs=yes 17516 ;; 17517 17518# No shared lib support for Linux oldld, aout, or coff. 17519linux*oldld* | linux*aout* | linux*coff*) 17520 dynamic_linker=no 17521 ;; 17522 17523# This must be Linux ELF. 17524linux*) 17525 version_type=linux 17526 need_lib_prefix=no 17527 need_version=no 17528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17529 soname_spec='${libname}${release}${shared_ext}$major' 17530 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17531 shlibpath_var=LD_LIBRARY_PATH 17532 shlibpath_overrides_runpath=no 17533 # This implies no fast_install, which is unacceptable. 17534 # Some rework will be needed to allow for fast_install 17535 # before this can be enabled. 17536 hardcode_into_libs=yes 17537 17538 # Append ld.so.conf contents to the search path 17539 if test -f /etc/ld.so.conf; then 17540 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 17541 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 17542 fi 17543 17544 # We used to test for /lib/ld.so.1 and disable shared libraries on 17545 # powerpc, because MkLinux only supported shared libraries with the 17546 # GNU dynamic linker. Since this was broken with cross compilers, 17547 # most powerpc-linux boxes support dynamic linking these days and 17548 # people can always --disable-shared, the test was removed, and we 17549 # assume the GNU/Linux dynamic linker is in use. 17550 dynamic_linker='GNU/Linux ld.so' 17551 ;; 17552 17553knetbsd*-gnu) 17554 version_type=linux 17555 need_lib_prefix=no 17556 need_version=no 17557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17558 soname_spec='${libname}${release}${shared_ext}$major' 17559 shlibpath_var=LD_LIBRARY_PATH 17560 shlibpath_overrides_runpath=no 17561 hardcode_into_libs=yes 17562 dynamic_linker='GNU ld.so' 17563 ;; 17564 17565netbsd*) 17566 version_type=sunos 17567 need_lib_prefix=no 17568 need_version=no 17569 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17571 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17572 dynamic_linker='NetBSD (a.out) ld.so' 17573 else 17574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17575 soname_spec='${libname}${release}${shared_ext}$major' 17576 dynamic_linker='NetBSD ld.elf_so' 17577 fi 17578 shlibpath_var=LD_LIBRARY_PATH 17579 shlibpath_overrides_runpath=yes 17580 hardcode_into_libs=yes 17581 ;; 17582 17583newsos6) 17584 version_type=linux 17585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17586 shlibpath_var=LD_LIBRARY_PATH 17587 shlibpath_overrides_runpath=yes 17588 ;; 17589 17590nto-qnx*) 17591 version_type=linux 17592 need_lib_prefix=no 17593 need_version=no 17594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17595 soname_spec='${libname}${release}${shared_ext}$major' 17596 shlibpath_var=LD_LIBRARY_PATH 17597 shlibpath_overrides_runpath=yes 17598 ;; 17599 17600openbsd*) 17601 version_type=sunos 17602 sys_lib_dlsearch_path_spec="/usr/lib" 17603 need_lib_prefix=no 17604 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 17605 case $host_os in 17606 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 17607 *) need_version=no ;; 17608 esac 17609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17610 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17611 shlibpath_var=LD_LIBRARY_PATH 17612 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17613 case $host_os in 17614 openbsd2.[89] | openbsd2.[89].*) 17615 shlibpath_overrides_runpath=no 17616 ;; 17617 *) 17618 shlibpath_overrides_runpath=yes 17619 ;; 17620 esac 17621 else 17622 shlibpath_overrides_runpath=yes 17623 fi 17624 ;; 17625 17626os2*) 17627 libname_spec='$name' 17628 shrext_cmds=".dll" 17629 need_lib_prefix=no 17630 library_names_spec='$libname${shared_ext} $libname.a' 17631 dynamic_linker='OS/2 ld.exe' 17632 shlibpath_var=LIBPATH 17633 ;; 17634 17635osf3* | osf4* | osf5*) 17636 version_type=osf 17637 need_lib_prefix=no 17638 need_version=no 17639 soname_spec='${libname}${release}${shared_ext}$major' 17640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17641 shlibpath_var=LD_LIBRARY_PATH 17642 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17643 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 17644 ;; 17645 17646solaris*) 17647 version_type=linux 17648 need_lib_prefix=no 17649 need_version=no 17650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17651 soname_spec='${libname}${release}${shared_ext}$major' 17652 shlibpath_var=LD_LIBRARY_PATH 17653 shlibpath_overrides_runpath=yes 17654 hardcode_into_libs=yes 17655 # ldd complains unless libraries are executable 17656 postinstall_cmds='chmod +x $lib' 17657 ;; 17658 17659sunos4*) 17660 version_type=sunos 17661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17662 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17663 shlibpath_var=LD_LIBRARY_PATH 17664 shlibpath_overrides_runpath=yes 17665 if test "$with_gnu_ld" = yes; then 17666 need_lib_prefix=no 17667 fi 17668 need_version=yes 17669 ;; 17670 17671sysv4 | sysv4.3*) 17672 version_type=linux 17673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17674 soname_spec='${libname}${release}${shared_ext}$major' 17675 shlibpath_var=LD_LIBRARY_PATH 17676 case $host_vendor in 17677 sni) 17678 shlibpath_overrides_runpath=no 17679 need_lib_prefix=no 17680 export_dynamic_flag_spec='${wl}-Blargedynsym' 17681 runpath_var=LD_RUN_PATH 17682 ;; 17683 siemens) 17684 need_lib_prefix=no 17685 ;; 17686 motorola) 17687 need_lib_prefix=no 17688 need_version=no 17689 shlibpath_overrides_runpath=no 17690 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17691 ;; 17692 esac 17693 ;; 17694 17695sysv4*MP*) 17696 if test -d /usr/nec ;then 17697 version_type=linux 17698 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 17699 soname_spec='$libname${shared_ext}.$major' 17700 shlibpath_var=LD_LIBRARY_PATH 17701 fi 17702 ;; 17703 17704sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 17705 version_type=freebsd-elf 17706 need_lib_prefix=no 17707 need_version=no 17708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17709 soname_spec='${libname}${release}${shared_ext}$major' 17710 shlibpath_var=LD_LIBRARY_PATH 17711 hardcode_into_libs=yes 17712 if test "$with_gnu_ld" = yes; then 17713 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 17714 shlibpath_overrides_runpath=no 17715 else 17716 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 17717 shlibpath_overrides_runpath=yes 17718 case $host_os in 17719 sco3.2v5*) 17720 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 17721 ;; 17722 esac 17723 fi 17724 sys_lib_dlsearch_path_spec='/usr/lib' 17725 ;; 17726 17727uts4*) 17728 version_type=linux 17729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17730 soname_spec='${libname}${release}${shared_ext}$major' 17731 shlibpath_var=LD_LIBRARY_PATH 17732 ;; 17733 17734*) 17735 dynamic_linker=no 17736 ;; 17737esac 17738echo "$as_me:$LINENO: result: $dynamic_linker" >&5 17739echo "${ECHO_T}$dynamic_linker" >&6 17740test "$dynamic_linker" = no && can_build_shared=no 17741 17742variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17743if test "$GCC" = yes; then 17744 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17745fi 17746 17747echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 17748echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 17749hardcode_action_F77= 17750if test -n "$hardcode_libdir_flag_spec_F77" || \ 17751 test -n "$runpath_var_F77" || \ 17752 test "X$hardcode_automatic_F77" = "Xyes" ; then 17753 17754 # We can hardcode non-existant directories. 17755 if test "$hardcode_direct_F77" != no && 17756 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17757 # have to relink, otherwise we might link with an installed library 17758 # when we should be linking with a yet-to-be-installed one 17759 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 17760 test "$hardcode_minus_L_F77" != no; then 17761 # Linking always hardcodes the temporary library directory. 17762 hardcode_action_F77=relink 17763 else 17764 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17765 hardcode_action_F77=immediate 17766 fi 17767else 17768 # We cannot hardcode anything, or else we can only hardcode existing 17769 # directories. 17770 hardcode_action_F77=unsupported 17771fi 17772echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 17773echo "${ECHO_T}$hardcode_action_F77" >&6 17774 17775if test "$hardcode_action_F77" = relink; then 17776 # Fast installation is not supported 17777 enable_fast_install=no 17778elif test "$shlibpath_overrides_runpath" = yes || 17779 test "$enable_shared" = no; then 17780 # Fast installation is not necessary 17781 enable_fast_install=needless 17782fi 17783 17784 17785# The else clause should only fire when bootstrapping the 17786# libtool distribution, otherwise you forgot to ship ltmain.sh 17787# with your package, and you will get complaints that there are 17788# no rules to generate ltmain.sh. 17789if test -f "$ltmain"; then 17790 # See if we are running on zsh, and set the options which allow our commands through 17791 # without removal of \ escapes. 17792 if test -n "${ZSH_VERSION+set}" ; then 17793 setopt NO_GLOB_SUBST 17794 fi 17795 # Now quote all the things that may contain metacharacters while being 17796 # careful not to overquote the AC_SUBSTed values. We take copies of the 17797 # variables and quote the copies for generation of the libtool script. 17798 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 17799 SED SHELL STRIP \ 17800 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 17801 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 17802 deplibs_check_method reload_flag reload_cmds need_locks \ 17803 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 17804 lt_cv_sys_global_symbol_to_c_name_address \ 17805 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 17806 old_postinstall_cmds old_postuninstall_cmds \ 17807 compiler_F77 \ 17808 CC_F77 \ 17809 LD_F77 \ 17810 lt_prog_compiler_wl_F77 \ 17811 lt_prog_compiler_pic_F77 \ 17812 lt_prog_compiler_static_F77 \ 17813 lt_prog_compiler_no_builtin_flag_F77 \ 17814 export_dynamic_flag_spec_F77 \ 17815 thread_safe_flag_spec_F77 \ 17816 whole_archive_flag_spec_F77 \ 17817 enable_shared_with_static_runtimes_F77 \ 17818 old_archive_cmds_F77 \ 17819 old_archive_from_new_cmds_F77 \ 17820 predep_objects_F77 \ 17821 postdep_objects_F77 \ 17822 predeps_F77 \ 17823 postdeps_F77 \ 17824 compiler_lib_search_path_F77 \ 17825 archive_cmds_F77 \ 17826 archive_expsym_cmds_F77 \ 17827 postinstall_cmds_F77 \ 17828 postuninstall_cmds_F77 \ 17829 old_archive_from_expsyms_cmds_F77 \ 17830 allow_undefined_flag_F77 \ 17831 no_undefined_flag_F77 \ 17832 export_symbols_cmds_F77 \ 17833 hardcode_libdir_flag_spec_F77 \ 17834 hardcode_libdir_flag_spec_ld_F77 \ 17835 hardcode_libdir_separator_F77 \ 17836 hardcode_automatic_F77 \ 17837 module_cmds_F77 \ 17838 module_expsym_cmds_F77 \ 17839 lt_cv_prog_compiler_c_o_F77 \ 17840 exclude_expsyms_F77 \ 17841 include_expsyms_F77; do 17842 17843 case $var in 17844 old_archive_cmds_F77 | \ 17845 old_archive_from_new_cmds_F77 | \ 17846 archive_cmds_F77 | \ 17847 archive_expsym_cmds_F77 | \ 17848 module_cmds_F77 | \ 17849 module_expsym_cmds_F77 | \ 17850 old_archive_from_expsyms_cmds_F77 | \ 17851 export_symbols_cmds_F77 | \ 17852 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 17853 postinstall_cmds | postuninstall_cmds | \ 17854 old_postinstall_cmds | old_postuninstall_cmds | \ 17855 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 17856 # Double-quote double-evaled strings. 17857 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 17858 ;; 17859 *) 17860 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 17861 ;; 17862 esac 17863 done 17864 17865 case $lt_echo in 17866 *'\$0 --fallback-echo"') 17867 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 17868 ;; 17869 esac 17870 17871cfgfile="$ofile" 17872 17873 cat <<__EOF__ >> "$cfgfile" 17874# ### BEGIN LIBTOOL TAG CONFIG: $tagname 17875 17876# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17877 17878# Shell to use when invoking shell scripts. 17879SHELL=$lt_SHELL 17880 17881# Whether or not to build shared libraries. 17882build_libtool_libs=$enable_shared 17883 17884# Whether or not to build static libraries. 17885build_old_libs=$enable_static 17886 17887# Whether or not to add -lc for building shared libraries. 17888build_libtool_need_lc=$archive_cmds_need_lc_F77 17889 17890# Whether or not to disallow shared libs when runtime libs are static 17891allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 17892 17893# Whether or not to optimize for fast installation. 17894fast_install=$enable_fast_install 17895 17896# The host system. 17897host_alias=$host_alias 17898host=$host 17899host_os=$host_os 17900 17901# The build system. 17902build_alias=$build_alias 17903build=$build 17904build_os=$build_os 17905 17906# An echo program that does not interpret backslashes. 17907echo=$lt_echo 17908 17909# The archiver. 17910AR=$lt_AR 17911AR_FLAGS=$lt_AR_FLAGS 17912 17913# A C compiler. 17914LTCC=$lt_LTCC 17915 17916# LTCC compiler flags. 17917LTCFLAGS=$lt_LTCFLAGS 17918 17919# A language-specific compiler. 17920CC=$lt_compiler_F77 17921 17922# Is the compiler the GNU C compiler? 17923with_gcc=$GCC_F77 17924 17925# An ERE matcher. 17926EGREP=$lt_EGREP 17927 17928# The linker used to build libraries. 17929LD=$lt_LD_F77 17930 17931# Whether we need hard or soft links. 17932LN_S=$lt_LN_S 17933 17934# A BSD-compatible nm program. 17935NM=$lt_NM 17936 17937# A symbol stripping program 17938STRIP=$lt_STRIP 17939 17940# Used to examine libraries when file_magic_cmd begins "file" 17941MAGIC_CMD=$MAGIC_CMD 17942 17943# Used on cygwin: DLL creation program. 17944DLLTOOL="$DLLTOOL" 17945 17946# Used on cygwin: object dumper. 17947OBJDUMP="$OBJDUMP" 17948 17949# Used on cygwin: assembler. 17950AS="$AS" 17951 17952# The name of the directory that contains temporary libtool files. 17953objdir=$objdir 17954 17955# How to create reloadable object files. 17956reload_flag=$lt_reload_flag 17957reload_cmds=$lt_reload_cmds 17958 17959# How to pass a linker flag through the compiler. 17960wl=$lt_lt_prog_compiler_wl_F77 17961 17962# Object file suffix (normally "o"). 17963objext="$ac_objext" 17964 17965# Old archive suffix (normally "a"). 17966libext="$libext" 17967 17968# Shared library suffix (normally ".so"). 17969shrext_cmds='$shrext_cmds' 17970 17971# Executable file suffix (normally ""). 17972exeext="$exeext" 17973 17974# Additional compiler flags for building library objects. 17975pic_flag=$lt_lt_prog_compiler_pic_F77 17976pic_mode=$pic_mode 17977 17978# What is the maximum length of a command? 17979max_cmd_len=$lt_cv_sys_max_cmd_len 17980 17981# Does compiler simultaneously support -c and -o options? 17982compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 17983 17984# Must we lock files when doing compilation? 17985need_locks=$lt_need_locks 17986 17987# Do we need the lib prefix for modules? 17988need_lib_prefix=$need_lib_prefix 17989 17990# Do we need a version for libraries? 17991need_version=$need_version 17992 17993# Whether dlopen is supported. 17994dlopen_support=$enable_dlopen 17995 17996# Whether dlopen of programs is supported. 17997dlopen_self=$enable_dlopen_self 17998 17999# Whether dlopen of statically linked programs is supported. 18000dlopen_self_static=$enable_dlopen_self_static 18001 18002# Compiler flag to prevent dynamic linking. 18003link_static_flag=$lt_lt_prog_compiler_static_F77 18004 18005# Compiler flag to turn off builtin functions. 18006no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 18007 18008# Compiler flag to allow reflexive dlopens. 18009export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 18010 18011# Compiler flag to generate shared objects directly from archives. 18012whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 18013 18014# Compiler flag to generate thread-safe objects. 18015thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 18016 18017# Library versioning type. 18018version_type=$version_type 18019 18020# Format of library name prefix. 18021libname_spec=$lt_libname_spec 18022 18023# List of archive names. First name is the real one, the rest are links. 18024# The last name is the one that the linker finds with -lNAME. 18025library_names_spec=$lt_library_names_spec 18026 18027# The coded name of the library, if different from the real name. 18028soname_spec=$lt_soname_spec 18029 18030# Commands used to build and install an old-style archive. 18031RANLIB=$lt_RANLIB 18032old_archive_cmds=$lt_old_archive_cmds_F77 18033old_postinstall_cmds=$lt_old_postinstall_cmds 18034old_postuninstall_cmds=$lt_old_postuninstall_cmds 18035 18036# Create an old-style archive from a shared archive. 18037old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 18038 18039# Create a temporary old-style archive to link instead of a shared archive. 18040old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 18041 18042# Commands used to build and install a shared archive. 18043archive_cmds=$lt_archive_cmds_F77 18044archive_expsym_cmds=$lt_archive_expsym_cmds_F77 18045postinstall_cmds=$lt_postinstall_cmds 18046postuninstall_cmds=$lt_postuninstall_cmds 18047 18048# Commands used to build a loadable module (assumed same as above if empty) 18049module_cmds=$lt_module_cmds_F77 18050module_expsym_cmds=$lt_module_expsym_cmds_F77 18051 18052# Commands to strip libraries. 18053old_striplib=$lt_old_striplib 18054striplib=$lt_striplib 18055 18056# Dependencies to place before the objects being linked to create a 18057# shared library. 18058predep_objects=$lt_predep_objects_F77 18059 18060# Dependencies to place after the objects being linked to create a 18061# shared library. 18062postdep_objects=$lt_postdep_objects_F77 18063 18064# Dependencies to place before the objects being linked to create a 18065# shared library. 18066predeps=$lt_predeps_F77 18067 18068# Dependencies to place after the objects being linked to create a 18069# shared library. 18070postdeps=$lt_postdeps_F77 18071 18072# The library search path used internally by the compiler when linking 18073# a shared library. 18074compiler_lib_search_path=$lt_compiler_lib_search_path_F77 18075 18076# Method to check whether dependent libraries are shared objects. 18077deplibs_check_method=$lt_deplibs_check_method 18078 18079# Command to use when deplibs_check_method == file_magic. 18080file_magic_cmd=$lt_file_magic_cmd 18081 18082# Flag that allows shared libraries with undefined symbols to be built. 18083allow_undefined_flag=$lt_allow_undefined_flag_F77 18084 18085# Flag that forces no undefined symbols. 18086no_undefined_flag=$lt_no_undefined_flag_F77 18087 18088# Commands used to finish a libtool library installation in a directory. 18089finish_cmds=$lt_finish_cmds 18090 18091# Same as above, but a single script fragment to be evaled but not shown. 18092finish_eval=$lt_finish_eval 18093 18094# Take the output of nm and produce a listing of raw symbols and C names. 18095global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18096 18097# Transform the output of nm in a proper C declaration 18098global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18099 18100# Transform the output of nm in a C name address pair 18101global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18102 18103# This is the shared library runtime path variable. 18104runpath_var=$runpath_var 18105 18106# This is the shared library path variable. 18107shlibpath_var=$shlibpath_var 18108 18109# Is shlibpath searched before the hard-coded library search path? 18110shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18111 18112# How to hardcode a shared library path into an executable. 18113hardcode_action=$hardcode_action_F77 18114 18115# Whether we should hardcode library paths into libraries. 18116hardcode_into_libs=$hardcode_into_libs 18117 18118# Flag to hardcode \$libdir into a binary during linking. 18119# This must work even if \$libdir does not exist. 18120hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 18121 18122# If ld is used when linking, flag to hardcode \$libdir into 18123# a binary during linking. This must work even if \$libdir does 18124# not exist. 18125hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 18126 18127# Whether we need a single -rpath flag with a separated argument. 18128hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 18129 18130# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 18131# resulting binary. 18132hardcode_direct=$hardcode_direct_F77 18133 18134# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 18135# resulting binary. 18136hardcode_minus_L=$hardcode_minus_L_F77 18137 18138# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 18139# the resulting binary. 18140hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 18141 18142# Set to yes if building a shared library automatically hardcodes DIR into the library 18143# and all subsequent libraries and executables linked against it. 18144hardcode_automatic=$hardcode_automatic_F77 18145 18146# Variables whose values should be saved in libtool wrapper scripts and 18147# restored at relink time. 18148variables_saved_for_relink="$variables_saved_for_relink" 18149 18150# Whether libtool must link a program against all its dependency libraries. 18151link_all_deplibs=$link_all_deplibs_F77 18152 18153# Compile-time system search path for libraries 18154sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18155 18156# Run-time system search path for libraries 18157sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18158 18159# Fix the shell variable \$srcfile for the compiler. 18160fix_srcfile_path="$fix_srcfile_path_F77" 18161 18162# Set to yes if exported symbols are required. 18163always_export_symbols=$always_export_symbols_F77 18164 18165# The commands to list exported symbols. 18166export_symbols_cmds=$lt_export_symbols_cmds_F77 18167 18168# The commands to extract the exported symbol list from a shared archive. 18169extract_expsyms_cmds=$lt_extract_expsyms_cmds 18170 18171# Symbols that should not be listed in the preloaded symbols. 18172exclude_expsyms=$lt_exclude_expsyms_F77 18173 18174# Symbols that must always be exported. 18175include_expsyms=$lt_include_expsyms_F77 18176 18177# ### END LIBTOOL TAG CONFIG: $tagname 18178 18179__EOF__ 18180 18181 18182else 18183 # If there is no Makefile yet, we rely on a make rule to execute 18184 # `config.status --recheck' to rerun these tests and create the 18185 # libtool script then. 18186 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 18187 if test -f "$ltmain_in"; then 18188 test -f Makefile && make "$ltmain" 18189 fi 18190fi 18191 18192 18193ac_ext=c 18194ac_cpp='$CPP $CPPFLAGS' 18195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18197ac_compiler_gnu=$ac_cv_c_compiler_gnu 18198 18199CC="$lt_save_CC" 18200 18201 else 18202 tagname="" 18203 fi 18204 ;; 18205 18206 GCJ) 18207 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 18208 18209 18210 18211# Source file extension for Java test sources. 18212ac_ext=java 18213 18214# Object file extension for compiled Java test sources. 18215objext=o 18216objext_GCJ=$objext 18217 18218# Code to be used in simple compile tests 18219lt_simple_compile_test_code="class foo {}\n" 18220 18221# Code to be used in simple link tests 18222lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 18223 18224# ltmain only uses $CC for tagged configurations so make sure $CC is set. 18225 18226# If no C compiler was specified, use CC. 18227LTCC=${LTCC-"$CC"} 18228 18229# If no C compiler flags were specified, use CFLAGS. 18230LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 18231 18232# Allow CC to be a program name with arguments. 18233compiler=$CC 18234 18235 18236# save warnings/boilerplate of simple test code 18237ac_outfile=conftest.$ac_objext 18238printf "$lt_simple_compile_test_code" >conftest.$ac_ext 18239eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18240_lt_compiler_boilerplate=`cat conftest.err` 18241$rm conftest* 18242 18243ac_outfile=conftest.$ac_objext 18244printf "$lt_simple_link_test_code" >conftest.$ac_ext 18245eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18246_lt_linker_boilerplate=`cat conftest.err` 18247$rm conftest* 18248 18249 18250# Allow CC to be a program name with arguments. 18251lt_save_CC="$CC" 18252CC=${GCJ-"gcj"} 18253compiler=$CC 18254compiler_GCJ=$CC 18255for cc_temp in $compiler""; do 18256 case $cc_temp in 18257 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18258 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18259 \-*) ;; 18260 *) break;; 18261 esac 18262done 18263cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 18264 18265 18266# GCJ did not exist at the time GCC didn't implicitly link libc in. 18267archive_cmds_need_lc_GCJ=no 18268 18269old_archive_cmds_GCJ=$old_archive_cmds 18270 18271## CAVEAT EMPTOR: 18272## There is no encapsulation within the following macros, do not change 18273## the running order or otherwise move them around unless you know exactly 18274## what you are doing... 18275 18276lt_prog_compiler_no_builtin_flag_GCJ= 18277 18278if test "$GCC" = yes; then 18279 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 18280 18281 18282echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 18283echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 18284if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 18285 echo $ECHO_N "(cached) $ECHO_C" >&6 18286else 18287 lt_cv_prog_compiler_rtti_exceptions=no 18288 ac_outfile=conftest.$ac_objext 18289 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 18290 lt_compiler_flag="-fno-rtti -fno-exceptions" 18291 # Insert the option either (1) after the last *FLAGS variable, or 18292 # (2) before a word containing "conftest.", or (3) at the end. 18293 # Note that $ac_compile itself does not contain backslashes and begins 18294 # with a dollar sign (not a hyphen), so the echo should work correctly. 18295 # The option is referenced via a variable to avoid confusing sed. 18296 lt_compile=`echo "$ac_compile" | $SED \ 18297 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 18298 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 18299 -e 's:$: $lt_compiler_flag:'` 18300 (eval echo "\"\$as_me:18300: $lt_compile\"" >&5) 18301 (eval "$lt_compile" 2>conftest.err) 18302 ac_status=$? 18303 cat conftest.err >&5 18304 echo "$as_me:18304: \$? = $ac_status" >&5 18305 if (exit $ac_status) && test -s "$ac_outfile"; then 18306 # The compiler can only warn and ignore the option if not recognized 18307 # So say no if there are warnings other than the usual output. 18308 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 18309 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 18310 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 18311 lt_cv_prog_compiler_rtti_exceptions=yes 18312 fi 18313 fi 18314 $rm conftest* 18315 18316fi 18317echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 18318echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 18319 18320if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 18321 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 18322else 18323 : 18324fi 18325 18326fi 18327 18328lt_prog_compiler_wl_GCJ= 18329lt_prog_compiler_pic_GCJ= 18330lt_prog_compiler_static_GCJ= 18331 18332echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 18333echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 18334 18335 if test "$GCC" = yes; then 18336 lt_prog_compiler_wl_GCJ='-Wl,' 18337 lt_prog_compiler_static_GCJ='-static' 18338 18339 case $host_os in 18340 aix*) 18341 # All AIX code is PIC. 18342 if test "$host_cpu" = ia64; then 18343 # AIX 5 now supports IA64 processor 18344 lt_prog_compiler_static_GCJ='-Bstatic' 18345 fi 18346 ;; 18347 18348 amigaos*) 18349 # FIXME: we need at least 68020 code to build shared libraries, but 18350 # adding the `-m68020' flag to GCC prevents building anything better, 18351 # like `-m68040'. 18352 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 18353 ;; 18354 18355 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 18356 # PIC is the default for these OSes. 18357 ;; 18358 18359 mingw* | pw32* | os2*) 18360 # This hack is so that the source file can tell whether it is being 18361 # built for inclusion in a dll (and should export symbols for example). 18362 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 18363 ;; 18364 18365 darwin* | rhapsody*) 18366 # PIC is the default on this platform 18367 # Common symbols not allowed in MH_DYLIB files 18368 lt_prog_compiler_pic_GCJ='-fno-common' 18369 ;; 18370 18371 interix3*) 18372 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 18373 # Instead, we relocate shared libraries at runtime. 18374 ;; 18375 18376 msdosdjgpp*) 18377 # Just because we use GCC doesn't mean we suddenly get shared libraries 18378 # on systems that don't support them. 18379 lt_prog_compiler_can_build_shared_GCJ=no 18380 enable_shared=no 18381 ;; 18382 18383 sysv4*MP*) 18384 if test -d /usr/nec; then 18385 lt_prog_compiler_pic_GCJ=-Kconform_pic 18386 fi 18387 ;; 18388 18389 hpux*) 18390 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 18391 # not for PA HP-UX. 18392 case $host_cpu in 18393 hppa*64*|ia64*) 18394 # +Z the default 18395 ;; 18396 *) 18397 lt_prog_compiler_pic_GCJ='-fPIC' 18398 ;; 18399 esac 18400 ;; 18401 18402 *) 18403 lt_prog_compiler_pic_GCJ='-fPIC' 18404 ;; 18405 esac 18406 else 18407 # PORTME Check for flag to pass linker flags through the system compiler. 18408 case $host_os in 18409 aix*) 18410 lt_prog_compiler_wl_GCJ='-Wl,' 18411 if test "$host_cpu" = ia64; then 18412 # AIX 5 now supports IA64 processor 18413 lt_prog_compiler_static_GCJ='-Bstatic' 18414 else 18415 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 18416 fi 18417 ;; 18418 darwin*) 18419 # PIC is the default on this platform 18420 # Common symbols not allowed in MH_DYLIB files 18421 case $cc_basename in 18422 xlc*) 18423 lt_prog_compiler_pic_GCJ='-qnocommon' 18424 lt_prog_compiler_wl_GCJ='-Wl,' 18425 ;; 18426 esac 18427 ;; 18428 18429 mingw* | pw32* | os2*) 18430 # This hack is so that the source file can tell whether it is being 18431 # built for inclusion in a dll (and should export symbols for example). 18432 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 18433 ;; 18434 18435 hpux9* | hpux10* | hpux11*) 18436 lt_prog_compiler_wl_GCJ='-Wl,' 18437 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 18438 # not for PA HP-UX. 18439 case $host_cpu in 18440 hppa*64*|ia64*) 18441 # +Z the default 18442 ;; 18443 *) 18444 lt_prog_compiler_pic_GCJ='+Z' 18445 ;; 18446 esac 18447 # Is there a better lt_prog_compiler_static that works with the bundled CC? 18448 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 18449 ;; 18450 18451 irix5* | irix6* | nonstopux*) 18452 lt_prog_compiler_wl_GCJ='-Wl,' 18453 # PIC (with -KPIC) is the default. 18454 lt_prog_compiler_static_GCJ='-non_shared' 18455 ;; 18456 18457 newsos6) 18458 lt_prog_compiler_pic_GCJ='-KPIC' 18459 lt_prog_compiler_static_GCJ='-Bstatic' 18460 ;; 18461 18462 linux*) 18463 case $cc_basename in 18464 icc* | ecc*) 18465 lt_prog_compiler_wl_GCJ='-Wl,' 18466 lt_prog_compiler_pic_GCJ='-KPIC' 18467 lt_prog_compiler_static_GCJ='-static' 18468 ;; 18469 pgcc* | pgf77* | pgf90* | pgf95*) 18470 # Portland Group compilers (*not* the Pentium gcc compiler, 18471 # which looks to be a dead project) 18472 lt_prog_compiler_wl_GCJ='-Wl,' 18473 lt_prog_compiler_pic_GCJ='-fpic' 18474 lt_prog_compiler_static_GCJ='-Bstatic' 18475 ;; 18476 ccc*) 18477 lt_prog_compiler_wl_GCJ='-Wl,' 18478 # All Alpha code is PIC. 18479 lt_prog_compiler_static_GCJ='-non_shared' 18480 ;; 18481 esac 18482 ;; 18483 18484 osf3* | osf4* | osf5*) 18485 lt_prog_compiler_wl_GCJ='-Wl,' 18486 # All OSF/1 code is PIC. 18487 lt_prog_compiler_static_GCJ='-non_shared' 18488 ;; 18489 18490 solaris*) 18491 lt_prog_compiler_pic_GCJ='-KPIC' 18492 lt_prog_compiler_static_GCJ='-Bstatic' 18493 case $cc_basename in 18494 f77* | f90* | f95*) 18495 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 18496 *) 18497 lt_prog_compiler_wl_GCJ='-Wl,';; 18498 esac 18499 ;; 18500 18501 sunos4*) 18502 lt_prog_compiler_wl_GCJ='-Qoption ld ' 18503 lt_prog_compiler_pic_GCJ='-PIC' 18504 lt_prog_compiler_static_GCJ='-Bstatic' 18505 ;; 18506 18507 sysv4 | sysv4.2uw2* | sysv4.3*) 18508 lt_prog_compiler_wl_GCJ='-Wl,' 18509 lt_prog_compiler_pic_GCJ='-KPIC' 18510 lt_prog_compiler_static_GCJ='-Bstatic' 18511 ;; 18512 18513 sysv4*MP*) 18514 if test -d /usr/nec ;then 18515 lt_prog_compiler_pic_GCJ='-Kconform_pic' 18516 lt_prog_compiler_static_GCJ='-Bstatic' 18517 fi 18518 ;; 18519 18520 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 18521 lt_prog_compiler_wl_GCJ='-Wl,' 18522 lt_prog_compiler_pic_GCJ='-KPIC' 18523 lt_prog_compiler_static_GCJ='-Bstatic' 18524 ;; 18525 18526 unicos*) 18527 lt_prog_compiler_wl_GCJ='-Wl,' 18528 lt_prog_compiler_can_build_shared_GCJ=no 18529 ;; 18530 18531 uts4*) 18532 lt_prog_compiler_pic_GCJ='-pic' 18533 lt_prog_compiler_static_GCJ='-Bstatic' 18534 ;; 18535 18536 *) 18537 lt_prog_compiler_can_build_shared_GCJ=no 18538 ;; 18539 esac 18540 fi 18541 18542echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 18543echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 18544 18545# 18546# Check to make sure the PIC flag actually works. 18547# 18548if test -n "$lt_prog_compiler_pic_GCJ"; then 18549 18550echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 18551echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 18552if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 18553 echo $ECHO_N "(cached) $ECHO_C" >&6 18554else 18555 lt_prog_compiler_pic_works_GCJ=no 18556 ac_outfile=conftest.$ac_objext 18557 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 18558 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 18559 # Insert the option either (1) after the last *FLAGS variable, or 18560 # (2) before a word containing "conftest.", or (3) at the end. 18561 # Note that $ac_compile itself does not contain backslashes and begins 18562 # with a dollar sign (not a hyphen), so the echo should work correctly. 18563 # The option is referenced via a variable to avoid confusing sed. 18564 lt_compile=`echo "$ac_compile" | $SED \ 18565 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 18566 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 18567 -e 's:$: $lt_compiler_flag:'` 18568 (eval echo "\"\$as_me:18568: $lt_compile\"" >&5) 18569 (eval "$lt_compile" 2>conftest.err) 18570 ac_status=$? 18571 cat conftest.err >&5 18572 echo "$as_me:18572: \$? = $ac_status" >&5 18573 if (exit $ac_status) && test -s "$ac_outfile"; then 18574 # The compiler can only warn and ignore the option if not recognized 18575 # So say no if there are warnings other than the usual output. 18576 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 18577 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 18578 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 18579 lt_prog_compiler_pic_works_GCJ=yes 18580 fi 18581 fi 18582 $rm conftest* 18583 18584fi 18585echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 18586echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 18587 18588if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 18589 case $lt_prog_compiler_pic_GCJ in 18590 "" | " "*) ;; 18591 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 18592 esac 18593else 18594 lt_prog_compiler_pic_GCJ= 18595 lt_prog_compiler_can_build_shared_GCJ=no 18596fi 18597 18598fi 18599case $host_os in 18600 # For platforms which do not support PIC, -DPIC is meaningless: 18601 *djgpp*) 18602 lt_prog_compiler_pic_GCJ= 18603 ;; 18604 *) 18605 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 18606 ;; 18607esac 18608 18609# 18610# Check to make sure the static flag actually works. 18611# 18612wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 18613echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 18614echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 18615if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 18616 echo $ECHO_N "(cached) $ECHO_C" >&6 18617else 18618 lt_prog_compiler_static_works_GCJ=no 18619 save_LDFLAGS="$LDFLAGS" 18620 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 18621 printf "$lt_simple_link_test_code" > conftest.$ac_ext 18622 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 18623 # The linker can only warn and ignore the option if not recognized 18624 # So say no if there are warnings 18625 if test -s conftest.err; then 18626 # Append any errors to the config.log. 18627 cat conftest.err 1>&5 18628 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 18629 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 18630 if diff conftest.exp conftest.er2 >/dev/null; then 18631 lt_prog_compiler_static_works_GCJ=yes 18632 fi 18633 else 18634 lt_prog_compiler_static_works_GCJ=yes 18635 fi 18636 fi 18637 $rm conftest* 18638 LDFLAGS="$save_LDFLAGS" 18639 18640fi 18641echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 18642echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6 18643 18644if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 18645 : 18646else 18647 lt_prog_compiler_static_GCJ= 18648fi 18649 18650 18651echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 18652echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 18653if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 18654 echo $ECHO_N "(cached) $ECHO_C" >&6 18655else 18656 lt_cv_prog_compiler_c_o_GCJ=no 18657 $rm -r conftest 2>/dev/null 18658 mkdir conftest 18659 cd conftest 18660 mkdir out 18661 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 18662 18663 lt_compiler_flag="-o out/conftest2.$ac_objext" 18664 # Insert the option either (1) after the last *FLAGS variable, or 18665 # (2) before a word containing "conftest.", or (3) at the end. 18666 # Note that $ac_compile itself does not contain backslashes and begins 18667 # with a dollar sign (not a hyphen), so the echo should work correctly. 18668 lt_compile=`echo "$ac_compile" | $SED \ 18669 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 18670 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 18671 -e 's:$: $lt_compiler_flag:'` 18672 (eval echo "\"\$as_me:18672: $lt_compile\"" >&5) 18673 (eval "$lt_compile" 2>out/conftest.err) 18674 ac_status=$? 18675 cat out/conftest.err >&5 18676 echo "$as_me:18676: \$? = $ac_status" >&5 18677 if (exit $ac_status) && test -s out/conftest2.$ac_objext 18678 then 18679 # The compiler can only warn and ignore the option if not recognized 18680 # So say no if there are warnings 18681 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 18682 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 18683 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 18684 lt_cv_prog_compiler_c_o_GCJ=yes 18685 fi 18686 fi 18687 chmod u+w . 2>&5 18688 $rm conftest* 18689 # SGI C++ compiler will create directory out/ii_files/ for 18690 # template instantiation 18691 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 18692 $rm out/* && rmdir out 18693 cd .. 18694 rmdir conftest 18695 $rm conftest* 18696 18697fi 18698echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 18699echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 18700 18701 18702hard_links="nottested" 18703if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 18704 # do not overwrite the value of need_locks provided by the user 18705 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 18706echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 18707 hard_links=yes 18708 $rm conftest* 18709 ln conftest.a conftest.b 2>/dev/null && hard_links=no 18710 touch conftest.a 18711 ln conftest.a conftest.b 2>&5 || hard_links=no 18712 ln conftest.a conftest.b 2>/dev/null && hard_links=no 18713 echo "$as_me:$LINENO: result: $hard_links" >&5 18714echo "${ECHO_T}$hard_links" >&6 18715 if test "$hard_links" = no; then 18716 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 18717echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 18718 need_locks=warn 18719 fi 18720else 18721 need_locks=no 18722fi 18723 18724echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 18725echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 18726 18727 runpath_var= 18728 allow_undefined_flag_GCJ= 18729 enable_shared_with_static_runtimes_GCJ=no 18730 archive_cmds_GCJ= 18731 archive_expsym_cmds_GCJ= 18732 old_archive_From_new_cmds_GCJ= 18733 old_archive_from_expsyms_cmds_GCJ= 18734 export_dynamic_flag_spec_GCJ= 18735 whole_archive_flag_spec_GCJ= 18736 thread_safe_flag_spec_GCJ= 18737 hardcode_libdir_flag_spec_GCJ= 18738 hardcode_libdir_flag_spec_ld_GCJ= 18739 hardcode_libdir_separator_GCJ= 18740 hardcode_direct_GCJ=no 18741 hardcode_minus_L_GCJ=no 18742 hardcode_shlibpath_var_GCJ=unsupported 18743 link_all_deplibs_GCJ=unknown 18744 hardcode_automatic_GCJ=no 18745 module_cmds_GCJ= 18746 module_expsym_cmds_GCJ= 18747 always_export_symbols_GCJ=no 18748 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 18749 # include_expsyms should be a list of space-separated symbols to be *always* 18750 # included in the symbol list 18751 include_expsyms_GCJ= 18752 # exclude_expsyms can be an extended regexp of symbols to exclude 18753 # it will be wrapped by ` (' and `)$', so one must not match beginning or 18754 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 18755 # as well as any symbol that contains `d'. 18756 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 18757 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 18758 # platforms (ab)use it in PIC code, but their linkers get confused if 18759 # the symbol is explicitly referenced. Since portable code cannot 18760 # rely on this symbol name, it's probably fine to never include it in 18761 # preloaded symbol tables. 18762 extract_expsyms_cmds= 18763 # Just being paranoid about ensuring that cc_basename is set. 18764 for cc_temp in $compiler""; do 18765 case $cc_temp in 18766 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18767 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18768 \-*) ;; 18769 *) break;; 18770 esac 18771done 18772cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 18773 18774 case $host_os in 18775 cygwin* | mingw* | pw32*) 18776 # FIXME: the MSVC++ port hasn't been tested in a loooong time 18777 # When not using gcc, we currently assume that we are using 18778 # Microsoft Visual C++. 18779 if test "$GCC" != yes; then 18780 with_gnu_ld=no 18781 fi 18782 ;; 18783 interix*) 18784 # we just hope/assume this is gcc and not c89 (= MSVC++) 18785 with_gnu_ld=yes 18786 ;; 18787 openbsd*) 18788 with_gnu_ld=no 18789 ;; 18790 esac 18791 18792 ld_shlibs_GCJ=yes 18793 if test "$with_gnu_ld" = yes; then 18794 # If archive_cmds runs LD, not CC, wlarc should be empty 18795 wlarc='${wl}' 18796 18797 # Set some defaults for GNU ld with shared library support. These 18798 # are reset later if shared libraries are not supported. Putting them 18799 # here allows them to be overridden if necessary. 18800 runpath_var=LD_RUN_PATH 18801 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 18802 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 18803 # ancient GNU ld didn't support --whole-archive et. al. 18804 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 18805 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 18806 else 18807 whole_archive_flag_spec_GCJ= 18808 fi 18809 supports_anon_versioning=no 18810 case `$LD -v 2>/dev/null` in 18811 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 18812 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 18813 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 18814 *\ 2.11.*) ;; # other 2.11 versions 18815 *) supports_anon_versioning=yes ;; 18816 esac 18817 18818 # See if GNU ld supports shared libraries. 18819 case $host_os in 18820 aix3* | aix4* | aix5*) 18821 # On AIX/PPC, the GNU linker is very broken 18822 if test "$host_cpu" != ia64; then 18823 ld_shlibs_GCJ=no 18824 cat <<EOF 1>&2 18825 18826*** Warning: the GNU linker, at least up to release 2.9.1, is reported 18827*** to be unable to reliably create shared libraries on AIX. 18828*** Therefore, libtool is disabling shared libraries support. If you 18829*** really care for shared libraries, you may want to modify your PATH 18830*** so that a non-GNU linker is found, and then restart. 18831 18832EOF 18833 fi 18834 ;; 18835 18836 amigaos*) 18837 archive_cmds_GCJ='$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)' 18838 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18839 hardcode_minus_L_GCJ=yes 18840 18841 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 18842 # that the semantics of dynamic libraries on AmigaOS, at least up 18843 # to version 4, is to share data among multiple programs linked 18844 # with the same dynamic library. Since this doesn't match the 18845 # behavior of shared libraries on other platforms, we can't use 18846 # them. 18847 ld_shlibs_GCJ=no 18848 ;; 18849 18850 beos*) 18851 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18852 allow_undefined_flag_GCJ=unsupported 18853 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 18854 # support --undefined. This deserves some investigation. FIXME 18855 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18856 else 18857 ld_shlibs_GCJ=no 18858 fi 18859 ;; 18860 18861 cygwin* | mingw* | pw32*) 18862 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 18863 # as there is no search path for DLLs. 18864 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18865 allow_undefined_flag_GCJ=unsupported 18866 always_export_symbols_GCJ=no 18867 enable_shared_with_static_runtimes_GCJ=yes 18868 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 18869 18870 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 18871 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 18872 # If the export-symbols file already is a .def file (1st line 18873 # is EXPORTS), use it as is; otherwise, prepend... 18874 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 18875 cp $export_symbols $output_objdir/$soname.def; 18876 else 18877 echo EXPORTS > $output_objdir/$soname.def; 18878 cat $export_symbols >> $output_objdir/$soname.def; 18879 fi~ 18880 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 18881 else 18882 ld_shlibs_GCJ=no 18883 fi 18884 ;; 18885 18886 interix3*) 18887 hardcode_direct_GCJ=no 18888 hardcode_shlibpath_var_GCJ=no 18889 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18890 export_dynamic_flag_spec_GCJ='${wl}-E' 18891 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 18892 # Instead, shared libraries are loaded at an image base (0x10000000 by 18893 # default) and relocated if they conflict, which is a slow very memory 18894 # consuming and fragmenting process. To avoid this, we pick a random, 18895 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 18896 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 18897 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 18898 archive_expsym_cmds_GCJ='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' 18899 ;; 18900 18901 linux*) 18902 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18903 tmp_addflag= 18904 case $cc_basename,$host_cpu in 18905 pgcc*) # Portland Group C compiler 18906 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 18907 tmp_addflag=' $pic_flag' 18908 ;; 18909 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 18910 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 18911 tmp_addflag=' $pic_flag -Mnomain' ;; 18912 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 18913 tmp_addflag=' -i_dynamic' ;; 18914 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 18915 tmp_addflag=' -i_dynamic -nofor_main' ;; 18916 ifc* | ifort*) # Intel Fortran compiler 18917 tmp_addflag=' -nofor_main' ;; 18918 esac 18919 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18920 18921 if test $supports_anon_versioning = yes; then 18922 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 18923 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 18924 $echo "local: *; };" >> $output_objdir/$libname.ver~ 18925 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 18926 fi 18927 else 18928 ld_shlibs_GCJ=no 18929 fi 18930 ;; 18931 18932 netbsd*) 18933 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18934 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 18935 wlarc= 18936 else 18937 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18938 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 18939 fi 18940 ;; 18941 18942 solaris*) 18943 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 18944 ld_shlibs_GCJ=no 18945 cat <<EOF 1>&2 18946 18947*** Warning: The releases 2.8.* of the GNU linker cannot reliably 18948*** create shared libraries on Solaris systems. Therefore, libtool 18949*** is disabling shared libraries support. We urge you to upgrade GNU 18950*** binutils to release 2.9.1 or newer. Another option is to modify 18951*** your PATH or compiler configuration so that the native linker is 18952*** used, and then restart. 18953 18954EOF 18955 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18956 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18957 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 18958 else 18959 ld_shlibs_GCJ=no 18960 fi 18961 ;; 18962 18963 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 18964 case `$LD -v 2>&1` in 18965 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 18966 ld_shlibs_GCJ=no 18967 cat <<_LT_EOF 1>&2 18968 18969*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 18970*** reliably create shared libraries on SCO systems. Therefore, libtool 18971*** is disabling shared libraries support. We urge you to upgrade GNU 18972*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 18973*** your PATH or compiler configuration so that the native linker is 18974*** used, and then restart. 18975 18976_LT_EOF 18977 ;; 18978 *) 18979 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18980 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 18981 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 18982 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 18983 else 18984 ld_shlibs_GCJ=no 18985 fi 18986 ;; 18987 esac 18988 ;; 18989 18990 sunos4*) 18991 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18992 wlarc= 18993 hardcode_direct_GCJ=yes 18994 hardcode_shlibpath_var_GCJ=no 18995 ;; 18996 18997 *) 18998 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18999 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 19000 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 19001 else 19002 ld_shlibs_GCJ=no 19003 fi 19004 ;; 19005 esac 19006 19007 if test "$ld_shlibs_GCJ" = no; then 19008 runpath_var= 19009 hardcode_libdir_flag_spec_GCJ= 19010 export_dynamic_flag_spec_GCJ= 19011 whole_archive_flag_spec_GCJ= 19012 fi 19013 else 19014 # PORTME fill in a description of your system's linker (not GNU ld) 19015 case $host_os in 19016 aix3*) 19017 allow_undefined_flag_GCJ=unsupported 19018 always_export_symbols_GCJ=yes 19019 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 19020 # Note: this linker hardcodes the directories in LIBPATH if there 19021 # are no directories specified by -L. 19022 hardcode_minus_L_GCJ=yes 19023 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 19024 # Neither direct hardcoding nor static linking is supported with a 19025 # broken collect2. 19026 hardcode_direct_GCJ=unsupported 19027 fi 19028 ;; 19029 19030 aix4* | aix5*) 19031 if test "$host_cpu" = ia64; then 19032 # On IA64, the linker does run time linking by default, so we don't 19033 # have to do anything special. 19034 aix_use_runtimelinking=no 19035 exp_sym_flag='-Bexport' 19036 no_entry_flag="" 19037 else 19038 # If we're using GNU nm, then we don't want the "-C" option. 19039 # -C means demangle to AIX nm, but means don't demangle with GNU nm 19040 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 19041 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 19042 else 19043 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 19044 fi 19045 aix_use_runtimelinking=no 19046 19047 # Test if we are trying to use run time linking or normal 19048 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 19049 # need to do runtime linking. 19050 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 19051 for ld_flag in $LDFLAGS; do 19052 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 19053 aix_use_runtimelinking=yes 19054 break 19055 fi 19056 done 19057 ;; 19058 esac 19059 19060 exp_sym_flag='-bexport' 19061 no_entry_flag='-bnoentry' 19062 fi 19063 19064 # When large executables or shared objects are built, AIX ld can 19065 # have problems creating the table of contents. If linking a library 19066 # or program results in "error TOC overflow" add -mminimal-toc to 19067 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 19068 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 19069 19070 archive_cmds_GCJ='' 19071 hardcode_direct_GCJ=yes 19072 hardcode_libdir_separator_GCJ=':' 19073 link_all_deplibs_GCJ=yes 19074 19075 if test "$GCC" = yes; then 19076 case $host_os in aix4.[012]|aix4.[012].*) 19077 # We only want to do this on AIX 4.2 and lower, the check 19078 # below for broken collect2 doesn't work under 4.3+ 19079 collect2name=`${CC} -print-prog-name=collect2` 19080 if test -f "$collect2name" && \ 19081 strings "$collect2name" | grep resolve_lib_name >/dev/null 19082 then 19083 # We have reworked collect2 19084 hardcode_direct_GCJ=yes 19085 else 19086 # We have old collect2 19087 hardcode_direct_GCJ=unsupported 19088 # It fails to find uninstalled libraries when the uninstalled 19089 # path is not listed in the libpath. Setting hardcode_minus_L 19090 # to unsupported forces relinking 19091 hardcode_minus_L_GCJ=yes 19092 hardcode_libdir_flag_spec_GCJ='-L$libdir' 19093 hardcode_libdir_separator_GCJ= 19094 fi 19095 ;; 19096 esac 19097 shared_flag='-shared' 19098 if test "$aix_use_runtimelinking" = yes; then 19099 shared_flag="$shared_flag "'${wl}-G' 19100 fi 19101 else 19102 # not using gcc 19103 if test "$host_cpu" = ia64; then 19104 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 19105 # chokes on -Wl,-G. The following line is correct: 19106 shared_flag='-G' 19107 else 19108 if test "$aix_use_runtimelinking" = yes; then 19109 shared_flag='${wl}-G' 19110 else 19111 shared_flag='${wl}-bM:SRE' 19112 fi 19113 fi 19114 fi 19115 19116 # It seems that -bexpall does not export symbols beginning with 19117 # underscore (_), so it is better to generate a list of symbols to export. 19118 always_export_symbols_GCJ=yes 19119 if test "$aix_use_runtimelinking" = yes; then 19120 # Warning - without using the other runtime loading flags (-brtl), 19121 # -berok will link without error, but may produce a broken library. 19122 allow_undefined_flag_GCJ='-berok' 19123 # Determine the default libpath from the value encoded in an empty executable. 19124 cat >conftest.$ac_ext <<_ACEOF 19125/* confdefs.h. */ 19126_ACEOF 19127cat confdefs.h >>conftest.$ac_ext 19128cat >>conftest.$ac_ext <<_ACEOF 19129/* end confdefs.h. */ 19130 19131#ifdef F77_DUMMY_MAIN 19132 19133# ifdef __cplusplus 19134 extern "C" 19135# endif 19136 int F77_DUMMY_MAIN() { return 1; } 19137 19138#endif 19139int 19140main () 19141{ 19142 19143 ; 19144 return 0; 19145} 19146_ACEOF 19147rm -f conftest.$ac_objext conftest$ac_exeext 19148if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19149 (eval $ac_link) 2>conftest.er1 19150 ac_status=$? 19151 grep -v '^ *+' conftest.er1 >conftest.err 19152 rm -f conftest.er1 19153 cat conftest.err >&5 19154 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19155 (exit $ac_status); } && 19156 { ac_try='test -z "$ac_c_werror_flag" 19157 || test ! -s conftest.err' 19158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19159 (eval $ac_try) 2>&5 19160 ac_status=$? 19161 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19162 (exit $ac_status); }; } && 19163 { ac_try='test -s conftest$ac_exeext' 19164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19165 (eval $ac_try) 2>&5 19166 ac_status=$? 19167 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19168 (exit $ac_status); }; }; then 19169 19170aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 19171}'` 19172# Check for a 64-bit object if we didn't find anything. 19173if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 19174}'`; fi 19175else 19176 echo "$as_me: failed program was:" >&5 19177sed 's/^/| /' conftest.$ac_ext >&5 19178 19179fi 19180rm -f conftest.err conftest.$ac_objext \ 19181 conftest$ac_exeext conftest.$ac_ext 19182if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 19183 19184 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 19185 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 19186 else 19187 if test "$host_cpu" = ia64; then 19188 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 19189 allow_undefined_flag_GCJ="-z nodefs" 19190 archive_expsym_cmds_GCJ="\$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" 19191 else 19192 # Determine the default libpath from the value encoded in an empty executable. 19193 cat >conftest.$ac_ext <<_ACEOF 19194/* confdefs.h. */ 19195_ACEOF 19196cat confdefs.h >>conftest.$ac_ext 19197cat >>conftest.$ac_ext <<_ACEOF 19198/* end confdefs.h. */ 19199 19200#ifdef F77_DUMMY_MAIN 19201 19202# ifdef __cplusplus 19203 extern "C" 19204# endif 19205 int F77_DUMMY_MAIN() { return 1; } 19206 19207#endif 19208int 19209main () 19210{ 19211 19212 ; 19213 return 0; 19214} 19215_ACEOF 19216rm -f conftest.$ac_objext conftest$ac_exeext 19217if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19218 (eval $ac_link) 2>conftest.er1 19219 ac_status=$? 19220 grep -v '^ *+' conftest.er1 >conftest.err 19221 rm -f conftest.er1 19222 cat conftest.err >&5 19223 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19224 (exit $ac_status); } && 19225 { ac_try='test -z "$ac_c_werror_flag" 19226 || test ! -s conftest.err' 19227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19228 (eval $ac_try) 2>&5 19229 ac_status=$? 19230 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19231 (exit $ac_status); }; } && 19232 { ac_try='test -s conftest$ac_exeext' 19233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19234 (eval $ac_try) 2>&5 19235 ac_status=$? 19236 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19237 (exit $ac_status); }; }; then 19238 19239aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 19240}'` 19241# Check for a 64-bit object if we didn't find anything. 19242if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 19243}'`; fi 19244else 19245 echo "$as_me: failed program was:" >&5 19246sed 's/^/| /' conftest.$ac_ext >&5 19247 19248fi 19249rm -f conftest.err conftest.$ac_objext \ 19250 conftest$ac_exeext conftest.$ac_ext 19251if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 19252 19253 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 19254 # Warning - without using the other run time loading flags, 19255 # -berok will link without error, but may produce a broken library. 19256 no_undefined_flag_GCJ=' ${wl}-bernotok' 19257 allow_undefined_flag_GCJ=' ${wl}-berok' 19258 # Exported symbols can be pulled into shared objects from archives 19259 whole_archive_flag_spec_GCJ='$convenience' 19260 archive_cmds_need_lc_GCJ=yes 19261 # This is similar to how AIX traditionally builds its shared libraries. 19262 archive_expsym_cmds_GCJ="\$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' 19263 fi 19264 fi 19265 ;; 19266 19267 amigaos*) 19268 archive_cmds_GCJ='$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)' 19269 hardcode_libdir_flag_spec_GCJ='-L$libdir' 19270 hardcode_minus_L_GCJ=yes 19271 # see comment about different semantics on the GNU ld section 19272 ld_shlibs_GCJ=no 19273 ;; 19274 19275 bsdi[45]*) 19276 export_dynamic_flag_spec_GCJ=-rdynamic 19277 ;; 19278 19279 cygwin* | mingw* | pw32*) 19280 # When not using gcc, we currently assume that we are using 19281 # Microsoft Visual C++. 19282 # hardcode_libdir_flag_spec is actually meaningless, as there is 19283 # no search path for DLLs. 19284 hardcode_libdir_flag_spec_GCJ=' ' 19285 allow_undefined_flag_GCJ=unsupported 19286 # Tell ltmain to make .lib files, not .a files. 19287 libext=lib 19288 # Tell ltmain to make .dll files, not .so files. 19289 shrext_cmds=".dll" 19290 # FIXME: Setting linknames here is a bad hack. 19291 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 19292 # The linker will automatically build a .lib file if we build a DLL. 19293 old_archive_From_new_cmds_GCJ='true' 19294 # FIXME: Should let the user specify the lib program. 19295 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 19296 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 19297 enable_shared_with_static_runtimes_GCJ=yes 19298 ;; 19299 19300 darwin* | rhapsody*) 19301 case $host_os in 19302 rhapsody* | darwin1.[012]) 19303 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 19304 ;; 19305 *) # Darwin 1.3 on 19306 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 19307 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 19308 else 19309 case ${MACOSX_DEPLOYMENT_TARGET} in 19310 10.[012]) 19311 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 19312 ;; 19313 10.*) 19314 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 19315 ;; 19316 esac 19317 fi 19318 ;; 19319 esac 19320 archive_cmds_need_lc_GCJ=no 19321 hardcode_direct_GCJ=no 19322 hardcode_automatic_GCJ=yes 19323 hardcode_shlibpath_var_GCJ=unsupported 19324 whole_archive_flag_spec_GCJ='' 19325 link_all_deplibs_GCJ=yes 19326 if test "$GCC" = yes ; then 19327 output_verbose_link_cmd='echo' 19328 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 19329 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 19330 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 19331 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 19332 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 19333 else 19334 case $cc_basename in 19335 xlc*) 19336 output_verbose_link_cmd='echo' 19337 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 19338 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 19339 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 19340 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 19341 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 19342 ;; 19343 *) 19344 ld_shlibs_GCJ=no 19345 ;; 19346 esac 19347 fi 19348 ;; 19349 19350 dgux*) 19351 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19352 hardcode_libdir_flag_spec_GCJ='-L$libdir' 19353 hardcode_shlibpath_var_GCJ=no 19354 ;; 19355 19356 freebsd1*) 19357 ld_shlibs_GCJ=no 19358 ;; 19359 19360 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 19361 # support. Future versions do this automatically, but an explicit c++rt0.o 19362 # does not break anything, and helps significantly (at the cost of a little 19363 # extra space). 19364 freebsd2.2*) 19365 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 19366 hardcode_libdir_flag_spec_GCJ='-R$libdir' 19367 hardcode_direct_GCJ=yes 19368 hardcode_shlibpath_var_GCJ=no 19369 ;; 19370 19371 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 19372 freebsd2*) 19373 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 19374 hardcode_direct_GCJ=yes 19375 hardcode_minus_L_GCJ=yes 19376 hardcode_shlibpath_var_GCJ=no 19377 ;; 19378 19379 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 19380 freebsd* | kfreebsd*-gnu | dragonfly*) 19381 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 19382 hardcode_libdir_flag_spec_GCJ='-R$libdir' 19383 hardcode_direct_GCJ=yes 19384 hardcode_shlibpath_var_GCJ=no 19385 ;; 19386 19387 hpux9*) 19388 if test "$GCC" = yes; then 19389 archive_cmds_GCJ='$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' 19390 else 19391 archive_cmds_GCJ='$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' 19392 fi 19393 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 19394 hardcode_libdir_separator_GCJ=: 19395 hardcode_direct_GCJ=yes 19396 19397 # hardcode_minus_L: Not really in the search PATH, 19398 # but as the default location of the library. 19399 hardcode_minus_L_GCJ=yes 19400 export_dynamic_flag_spec_GCJ='${wl}-E' 19401 ;; 19402 19403 hpux10*) 19404 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 19405 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 19406 else 19407 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 19408 fi 19409 if test "$with_gnu_ld" = no; then 19410 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 19411 hardcode_libdir_separator_GCJ=: 19412 19413 hardcode_direct_GCJ=yes 19414 export_dynamic_flag_spec_GCJ='${wl}-E' 19415 19416 # hardcode_minus_L: Not really in the search PATH, 19417 # but as the default location of the library. 19418 hardcode_minus_L_GCJ=yes 19419 fi 19420 ;; 19421 19422 hpux11*) 19423 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 19424 case $host_cpu in 19425 hppa*64*) 19426 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 19427 ;; 19428 ia64*) 19429 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 19430 ;; 19431 *) 19432 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 19433 ;; 19434 esac 19435 else 19436 case $host_cpu in 19437 hppa*64*) 19438 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 19439 ;; 19440 ia64*) 19441 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 19442 ;; 19443 *) 19444 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 19445 ;; 19446 esac 19447 fi 19448 if test "$with_gnu_ld" = no; then 19449 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 19450 hardcode_libdir_separator_GCJ=: 19451 19452 case $host_cpu in 19453 hppa*64*|ia64*) 19454 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 19455 hardcode_direct_GCJ=no 19456 hardcode_shlibpath_var_GCJ=no 19457 ;; 19458 *) 19459 hardcode_direct_GCJ=yes 19460 export_dynamic_flag_spec_GCJ='${wl}-E' 19461 19462 # hardcode_minus_L: Not really in the search PATH, 19463 # but as the default location of the library. 19464 hardcode_minus_L_GCJ=yes 19465 ;; 19466 esac 19467 fi 19468 ;; 19469 19470 irix5* | irix6* | nonstopux*) 19471 if test "$GCC" = yes; then 19472 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 19473 else 19474 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 19475 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 19476 fi 19477 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 19478 hardcode_libdir_separator_GCJ=: 19479 link_all_deplibs_GCJ=yes 19480 ;; 19481 19482 netbsd*) 19483 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 19484 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 19485 else 19486 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 19487 fi 19488 hardcode_libdir_flag_spec_GCJ='-R$libdir' 19489 hardcode_direct_GCJ=yes 19490 hardcode_shlibpath_var_GCJ=no 19491 ;; 19492 19493 newsos6) 19494 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19495 hardcode_direct_GCJ=yes 19496 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 19497 hardcode_libdir_separator_GCJ=: 19498 hardcode_shlibpath_var_GCJ=no 19499 ;; 19500 19501 openbsd*) 19502 hardcode_direct_GCJ=yes 19503 hardcode_shlibpath_var_GCJ=no 19504 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 19505 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 19506 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 19507 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 19508 export_dynamic_flag_spec_GCJ='${wl}-E' 19509 else 19510 case $host_os in 19511 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 19512 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 19513 hardcode_libdir_flag_spec_GCJ='-R$libdir' 19514 ;; 19515 *) 19516 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 19517 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 19518 ;; 19519 esac 19520 fi 19521 ;; 19522 19523 os2*) 19524 hardcode_libdir_flag_spec_GCJ='-L$libdir' 19525 hardcode_minus_L_GCJ=yes 19526 allow_undefined_flag_GCJ=unsupported 19527 archive_cmds_GCJ='$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' 19528 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 19529 ;; 19530 19531 osf3*) 19532 if test "$GCC" = yes; then 19533 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 19534 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 19535 else 19536 allow_undefined_flag_GCJ=' -expect_unresolved \*' 19537 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 19538 fi 19539 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 19540 hardcode_libdir_separator_GCJ=: 19541 ;; 19542 19543 osf4* | osf5*) # as osf3* with the addition of -msym flag 19544 if test "$GCC" = yes; then 19545 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 19546 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 19547 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 19548 else 19549 allow_undefined_flag_GCJ=' -expect_unresolved \*' 19550 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 19551 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 19552 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 19553 19554 # Both c and cxx compiler support -rpath directly 19555 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 19556 fi 19557 hardcode_libdir_separator_GCJ=: 19558 ;; 19559 19560 solaris*) 19561 no_undefined_flag_GCJ=' -z text' 19562 if test "$GCC" = yes; then 19563 wlarc='${wl}' 19564 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 19565 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 19566 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 19567 else 19568 wlarc='' 19569 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 19570 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 19571 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 19572 fi 19573 hardcode_libdir_flag_spec_GCJ='-R$libdir' 19574 hardcode_shlibpath_var_GCJ=no 19575 case $host_os in 19576 solaris2.[0-5] | solaris2.[0-5].*) ;; 19577 *) 19578 # The compiler driver will combine linker options so we 19579 # cannot just pass the convience library names through 19580 # without $wl, iff we do not link with $LD. 19581 # Luckily, gcc supports the same syntax we need for Sun Studio. 19582 # Supported since Solaris 2.6 (maybe 2.5.1?) 19583 case $wlarc in 19584 '') 19585 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 19586 *) 19587 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 19588 esac ;; 19589 esac 19590 link_all_deplibs_GCJ=yes 19591 ;; 19592 19593 sunos4*) 19594 if test "x$host_vendor" = xsequent; then 19595 # Use $CC to link under sequent, because it throws in some extra .o 19596 # files that make .init and .fini sections work. 19597 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 19598 else 19599 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 19600 fi 19601 hardcode_libdir_flag_spec_GCJ='-L$libdir' 19602 hardcode_direct_GCJ=yes 19603 hardcode_minus_L_GCJ=yes 19604 hardcode_shlibpath_var_GCJ=no 19605 ;; 19606 19607 sysv4) 19608 case $host_vendor in 19609 sni) 19610 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19611 hardcode_direct_GCJ=yes # is this really true??? 19612 ;; 19613 siemens) 19614 ## LD is ld it makes a PLAMLIB 19615 ## CC just makes a GrossModule. 19616 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 19617 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 19618 hardcode_direct_GCJ=no 19619 ;; 19620 motorola) 19621 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19622 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 19623 ;; 19624 esac 19625 runpath_var='LD_RUN_PATH' 19626 hardcode_shlibpath_var_GCJ=no 19627 ;; 19628 19629 sysv4.3*) 19630 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19631 hardcode_shlibpath_var_GCJ=no 19632 export_dynamic_flag_spec_GCJ='-Bexport' 19633 ;; 19634 19635 sysv4*MP*) 19636 if test -d /usr/nec; then 19637 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19638 hardcode_shlibpath_var_GCJ=no 19639 runpath_var=LD_RUN_PATH 19640 hardcode_runpath_var=yes 19641 ld_shlibs_GCJ=yes 19642 fi 19643 ;; 19644 19645 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 19646 no_undefined_flag_GCJ='${wl}-z,text' 19647 archive_cmds_need_lc_GCJ=no 19648 hardcode_shlibpath_var_GCJ=no 19649 runpath_var='LD_RUN_PATH' 19650 19651 if test "$GCC" = yes; then 19652 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19653 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19654 else 19655 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19656 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19657 fi 19658 ;; 19659 19660 sysv5* | sco3.2v5* | sco5v6*) 19661 # Note: We can NOT use -z defs as we might desire, because we do not 19662 # link with -lc, and that would cause any symbols used from libc to 19663 # always be unresolved, which means just about no library would 19664 # ever link correctly. If we're not using GNU ld we use -z text 19665 # though, which does catch some bad symbols but isn't as heavy-handed 19666 # as -z defs. 19667 no_undefined_flag_GCJ='${wl}-z,text' 19668 allow_undefined_flag_GCJ='${wl}-z,nodefs' 19669 archive_cmds_need_lc_GCJ=no 19670 hardcode_shlibpath_var_GCJ=no 19671 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 19672 hardcode_libdir_separator_GCJ=':' 19673 link_all_deplibs_GCJ=yes 19674 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 19675 runpath_var='LD_RUN_PATH' 19676 19677 if test "$GCC" = yes; then 19678 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 19679 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 19680 else 19681 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 19682 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 19683 fi 19684 ;; 19685 19686 uts4*) 19687 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19688 hardcode_libdir_flag_spec_GCJ='-L$libdir' 19689 hardcode_shlibpath_var_GCJ=no 19690 ;; 19691 19692 *) 19693 ld_shlibs_GCJ=no 19694 ;; 19695 esac 19696 fi 19697 19698echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 19699echo "${ECHO_T}$ld_shlibs_GCJ" >&6 19700test "$ld_shlibs_GCJ" = no && can_build_shared=no 19701 19702# 19703# Do we need to explicitly link libc? 19704# 19705case "x$archive_cmds_need_lc_GCJ" in 19706x|xyes) 19707 # Assume -lc should be added 19708 archive_cmds_need_lc_GCJ=yes 19709 19710 if test "$enable_shared" = yes && test "$GCC" = yes; then 19711 case $archive_cmds_GCJ in 19712 *'~'*) 19713 # FIXME: we may have to deal with multi-command sequences. 19714 ;; 19715 '$CC '*) 19716 # Test whether the compiler implicitly links with -lc since on some 19717 # systems, -lgcc has to come before -lc. If gcc already passes -lc 19718 # to ld, don't add -lc before -lgcc. 19719 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 19720echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 19721 $rm conftest* 19722 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 19723 19724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19725 (eval $ac_compile) 2>&5 19726 ac_status=$? 19727 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19728 (exit $ac_status); } 2>conftest.err; then 19729 soname=conftest 19730 lib=conftest 19731 libobjs=conftest.$ac_objext 19732 deplibs= 19733 wl=$lt_prog_compiler_wl_GCJ 19734 pic_flag=$lt_prog_compiler_pic_GCJ 19735 compiler_flags=-v 19736 linker_flags=-v 19737 verstring= 19738 output_objdir=. 19739 libname=conftest 19740 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 19741 allow_undefined_flag_GCJ= 19742 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 19743 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 19744 ac_status=$? 19745 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19746 (exit $ac_status); } 19747 then 19748 archive_cmds_need_lc_GCJ=no 19749 else 19750 archive_cmds_need_lc_GCJ=yes 19751 fi 19752 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 19753 else 19754 cat conftest.err 1>&5 19755 fi 19756 $rm conftest* 19757 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 19758echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 19759 ;; 19760 esac 19761 fi 19762 ;; 19763esac 19764 19765echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 19766echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 19767library_names_spec= 19768libname_spec='lib$name' 19769soname_spec= 19770shrext_cmds=".so" 19771postinstall_cmds= 19772postuninstall_cmds= 19773finish_cmds= 19774finish_eval= 19775shlibpath_var= 19776shlibpath_overrides_runpath=unknown 19777version_type=none 19778dynamic_linker="$host_os ld.so" 19779sys_lib_dlsearch_path_spec="/lib /usr/lib" 19780if test "$GCC" = yes; then 19781 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 19782 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 19783 # if the path contains ";" then we assume it to be the separator 19784 # otherwise default to the standard path separator (i.e. ":") - it is 19785 # assumed that no part of a normal pathname contains ";" but that should 19786 # okay in the real world where ";" in dirpaths is itself problematic. 19787 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 19788 else 19789 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 19790 fi 19791else 19792 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 19793fi 19794need_lib_prefix=unknown 19795hardcode_into_libs=no 19796 19797# when you set need_version to no, make sure it does not cause -set_version 19798# flags to be left without arguments 19799need_version=unknown 19800 19801case $host_os in 19802aix3*) 19803 version_type=linux 19804 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 19805 shlibpath_var=LIBPATH 19806 19807 # AIX 3 has no versioning support, so we append a major version to the name. 19808 soname_spec='${libname}${release}${shared_ext}$major' 19809 ;; 19810 19811aix4* | aix5*) 19812 version_type=linux 19813 need_lib_prefix=no 19814 need_version=no 19815 hardcode_into_libs=yes 19816 if test "$host_cpu" = ia64; then 19817 # AIX 5 supports IA64 19818 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 19819 shlibpath_var=LD_LIBRARY_PATH 19820 else 19821 # With GCC up to 2.95.x, collect2 would create an import file 19822 # for dependence libraries. The import file would start with 19823 # the line `#! .'. This would cause the generated library to 19824 # depend on `.', always an invalid library. This was fixed in 19825 # development snapshots of GCC prior to 3.0. 19826 case $host_os in 19827 aix4 | aix4.[01] | aix4.[01].*) 19828 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 19829 echo ' yes ' 19830 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 19831 : 19832 else 19833 can_build_shared=no 19834 fi 19835 ;; 19836 esac 19837 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 19838 # soname into executable. Probably we can add versioning support to 19839 # collect2, so additional links can be useful in future. 19840 if test "$aix_use_runtimelinking" = yes; then 19841 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 19842 # instead of lib<name>.a to let people know that these are not 19843 # typical AIX shared libraries. 19844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19845 else 19846 # We preserve .a as extension for shared libraries through AIX4.2 19847 # and later when we are not doing run time linking. 19848 library_names_spec='${libname}${release}.a $libname.a' 19849 soname_spec='${libname}${release}${shared_ext}$major' 19850 fi 19851 shlibpath_var=LIBPATH 19852 fi 19853 ;; 19854 19855amigaos*) 19856 library_names_spec='$libname.ixlibrary $libname.a' 19857 # Create ${libname}_ixlibrary.a entries in /sys/libs. 19858 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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' 19859 ;; 19860 19861beos*) 19862 library_names_spec='${libname}${shared_ext}' 19863 dynamic_linker="$host_os ld.so" 19864 shlibpath_var=LIBRARY_PATH 19865 ;; 19866 19867bsdi[45]*) 19868 version_type=linux 19869 need_version=no 19870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19871 soname_spec='${libname}${release}${shared_ext}$major' 19872 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 19873 shlibpath_var=LD_LIBRARY_PATH 19874 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 19875 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 19876 # the default ld.so.conf also contains /usr/contrib/lib and 19877 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 19878 # libtool to hard-code these into programs 19879 ;; 19880 19881cygwin* | mingw* | pw32*) 19882 version_type=windows 19883 shrext_cmds=".dll" 19884 need_version=no 19885 need_lib_prefix=no 19886 19887 case $GCC,$host_os in 19888 yes,cygwin* | yes,mingw* | yes,pw32*) 19889 library_names_spec='$libname.dll.a' 19890 # DLL is installed to $(libdir)/../bin by postinstall_cmds 19891 postinstall_cmds='base_file=`basename \${file}`~ 19892 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 19893 dldir=$destdir/`dirname \$dlpath`~ 19894 test -d \$dldir || mkdir -p \$dldir~ 19895 $install_prog $dir/$dlname \$dldir/$dlname~ 19896 chmod a+x \$dldir/$dlname' 19897 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 19898 dlpath=$dir/\$dldll~ 19899 $rm \$dlpath' 19900 shlibpath_overrides_runpath=yes 19901 19902 case $host_os in 19903 cygwin*) 19904 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 19905 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 19906 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 19907 ;; 19908 mingw*) 19909 # MinGW DLLs use traditional 'lib' prefix 19910 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 19911 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 19912 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 19913 # It is most probably a Windows format PATH printed by 19914 # mingw gcc, but we are running on Cygwin. Gcc prints its search 19915 # path with ; separators, and with drive letters. We can handle the 19916 # drive letters (cygwin fileutils understands them), so leave them, 19917 # especially as we might pass files found there to a mingw objdump, 19918 # which wouldn't understand a cygwinified path. Ahh. 19919 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 19920 else 19921 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 19922 fi 19923 ;; 19924 pw32*) 19925 # pw32 DLLs use 'pw' prefix rather than 'lib' 19926 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 19927 ;; 19928 esac 19929 ;; 19930 19931 *) 19932 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 19933 ;; 19934 esac 19935 dynamic_linker='Win32 ld.exe' 19936 # FIXME: first we should search . and the directory the executable is in 19937 shlibpath_var=PATH 19938 ;; 19939 19940darwin* | rhapsody*) 19941 dynamic_linker="$host_os dyld" 19942 version_type=darwin 19943 need_lib_prefix=no 19944 need_version=no 19945 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 19946 soname_spec='${libname}${release}${major}$shared_ext' 19947 shlibpath_overrides_runpath=yes 19948 shlibpath_var=DYLD_LIBRARY_PATH 19949 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 19950 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 19951 if test "$GCC" = yes; then 19952 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 19953 else 19954 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 19955 fi 19956 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 19957 ;; 19958 19959dgux*) 19960 version_type=linux 19961 need_lib_prefix=no 19962 need_version=no 19963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 19964 soname_spec='${libname}${release}${shared_ext}$major' 19965 shlibpath_var=LD_LIBRARY_PATH 19966 ;; 19967 19968freebsd1*) 19969 dynamic_linker=no 19970 ;; 19971 19972kfreebsd*-gnu) 19973 version_type=linux 19974 need_lib_prefix=no 19975 need_version=no 19976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 19977 soname_spec='${libname}${release}${shared_ext}$major' 19978 shlibpath_var=LD_LIBRARY_PATH 19979 shlibpath_overrides_runpath=no 19980 hardcode_into_libs=yes 19981 dynamic_linker='GNU ld.so' 19982 ;; 19983 19984freebsd* | dragonfly*) 19985 # DragonFly does not have aout. When/if they implement a new 19986 # versioning mechanism, adjust this. 19987 if test -x /usr/bin/objformat; then 19988 objformat=`/usr/bin/objformat` 19989 else 19990 case $host_os in 19991 freebsd[123]*) objformat=aout ;; 19992 *) objformat=elf ;; 19993 esac 19994 fi 19995 version_type=freebsd-$objformat 19996 case $version_type in 19997 freebsd-elf*) 19998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 19999 need_version=no 20000 need_lib_prefix=no 20001 ;; 20002 freebsd-*) 20003 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 20004 need_version=yes 20005 ;; 20006 esac 20007 shlibpath_var=LD_LIBRARY_PATH 20008 case $host_os in 20009 freebsd2*) 20010 shlibpath_overrides_runpath=yes 20011 ;; 20012 freebsd3.[01]* | freebsdelf3.[01]*) 20013 shlibpath_overrides_runpath=yes 20014 hardcode_into_libs=yes 20015 ;; 20016 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 20017 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 20018 shlibpath_overrides_runpath=no 20019 hardcode_into_libs=yes 20020 ;; 20021 freebsd*) # from 4.6 on 20022 shlibpath_overrides_runpath=yes 20023 hardcode_into_libs=yes 20024 ;; 20025 esac 20026 ;; 20027 20028gnu*) 20029 version_type=linux 20030 need_lib_prefix=no 20031 need_version=no 20032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 20033 soname_spec='${libname}${release}${shared_ext}$major' 20034 shlibpath_var=LD_LIBRARY_PATH 20035 hardcode_into_libs=yes 20036 ;; 20037 20038hpux9* | hpux10* | hpux11*) 20039 # Give a soname corresponding to the major version so that dld.sl refuses to 20040 # link against other versions. 20041 version_type=sunos 20042 need_lib_prefix=no 20043 need_version=no 20044 case $host_cpu in 20045 ia64*) 20046 shrext_cmds='.so' 20047 hardcode_into_libs=yes 20048 dynamic_linker="$host_os dld.so" 20049 shlibpath_var=LD_LIBRARY_PATH 20050 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 20051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20052 soname_spec='${libname}${release}${shared_ext}$major' 20053 if test "X$HPUX_IA64_MODE" = X32; then 20054 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 20055 else 20056 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 20057 fi 20058 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 20059 ;; 20060 hppa*64*) 20061 shrext_cmds='.sl' 20062 hardcode_into_libs=yes 20063 dynamic_linker="$host_os dld.sl" 20064 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 20065 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 20066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20067 soname_spec='${libname}${release}${shared_ext}$major' 20068 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 20069 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 20070 ;; 20071 *) 20072 shrext_cmds='.sl' 20073 dynamic_linker="$host_os dld.sl" 20074 shlibpath_var=SHLIB_PATH 20075 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 20076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20077 soname_spec='${libname}${release}${shared_ext}$major' 20078 ;; 20079 esac 20080 # HP-UX runs *really* slowly unless shared libraries are mode 555. 20081 postinstall_cmds='chmod 555 $lib' 20082 ;; 20083 20084interix3*) 20085 version_type=linux 20086 need_lib_prefix=no 20087 need_version=no 20088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 20089 soname_spec='${libname}${release}${shared_ext}$major' 20090 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 20091 shlibpath_var=LD_LIBRARY_PATH 20092 shlibpath_overrides_runpath=no 20093 hardcode_into_libs=yes 20094 ;; 20095 20096irix5* | irix6* | nonstopux*) 20097 case $host_os in 20098 nonstopux*) version_type=nonstopux ;; 20099 *) 20100 if test "$lt_cv_prog_gnu_ld" = yes; then 20101 version_type=linux 20102 else 20103 version_type=irix 20104 fi ;; 20105 esac 20106 need_lib_prefix=no 20107 need_version=no 20108 soname_spec='${libname}${release}${shared_ext}$major' 20109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 20110 case $host_os in 20111 irix5* | nonstopux*) 20112 libsuff= shlibsuff= 20113 ;; 20114 *) 20115 case $LD in # libtool.m4 will add one of these switches to LD 20116 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 20117 libsuff= shlibsuff= libmagic=32-bit;; 20118 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 20119 libsuff=32 shlibsuff=N32 libmagic=N32;; 20120 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 20121 libsuff=64 shlibsuff=64 libmagic=64-bit;; 20122 *) libsuff= shlibsuff= libmagic=never-match;; 20123 esac 20124 ;; 20125 esac 20126 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 20127 shlibpath_overrides_runpath=no 20128 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 20129 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 20130 hardcode_into_libs=yes 20131 ;; 20132 20133# No shared lib support for Linux oldld, aout, or coff. 20134linux*oldld* | linux*aout* | linux*coff*) 20135 dynamic_linker=no 20136 ;; 20137 20138# This must be Linux ELF. 20139linux*) 20140 version_type=linux 20141 need_lib_prefix=no 20142 need_version=no 20143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20144 soname_spec='${libname}${release}${shared_ext}$major' 20145 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 20146 shlibpath_var=LD_LIBRARY_PATH 20147 shlibpath_overrides_runpath=no 20148 # This implies no fast_install, which is unacceptable. 20149 # Some rework will be needed to allow for fast_install 20150 # before this can be enabled. 20151 hardcode_into_libs=yes 20152 20153 # Append ld.so.conf contents to the search path 20154 if test -f /etc/ld.so.conf; then 20155 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 20156 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 20157 fi 20158 20159 # We used to test for /lib/ld.so.1 and disable shared libraries on 20160 # powerpc, because MkLinux only supported shared libraries with the 20161 # GNU dynamic linker. Since this was broken with cross compilers, 20162 # most powerpc-linux boxes support dynamic linking these days and 20163 # people can always --disable-shared, the test was removed, and we 20164 # assume the GNU/Linux dynamic linker is in use. 20165 dynamic_linker='GNU/Linux ld.so' 20166 ;; 20167 20168knetbsd*-gnu) 20169 version_type=linux 20170 need_lib_prefix=no 20171 need_version=no 20172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 20173 soname_spec='${libname}${release}${shared_ext}$major' 20174 shlibpath_var=LD_LIBRARY_PATH 20175 shlibpath_overrides_runpath=no 20176 hardcode_into_libs=yes 20177 dynamic_linker='GNU ld.so' 20178 ;; 20179 20180netbsd*) 20181 version_type=sunos 20182 need_lib_prefix=no 20183 need_version=no 20184 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 20185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 20186 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 20187 dynamic_linker='NetBSD (a.out) ld.so' 20188 else 20189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 20190 soname_spec='${libname}${release}${shared_ext}$major' 20191 dynamic_linker='NetBSD ld.elf_so' 20192 fi 20193 shlibpath_var=LD_LIBRARY_PATH 20194 shlibpath_overrides_runpath=yes 20195 hardcode_into_libs=yes 20196 ;; 20197 20198newsos6) 20199 version_type=linux 20200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20201 shlibpath_var=LD_LIBRARY_PATH 20202 shlibpath_overrides_runpath=yes 20203 ;; 20204 20205nto-qnx*) 20206 version_type=linux 20207 need_lib_prefix=no 20208 need_version=no 20209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20210 soname_spec='${libname}${release}${shared_ext}$major' 20211 shlibpath_var=LD_LIBRARY_PATH 20212 shlibpath_overrides_runpath=yes 20213 ;; 20214 20215openbsd*) 20216 version_type=sunos 20217 sys_lib_dlsearch_path_spec="/usr/lib" 20218 need_lib_prefix=no 20219 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 20220 case $host_os in 20221 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 20222 *) need_version=no ;; 20223 esac 20224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 20225 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 20226 shlibpath_var=LD_LIBRARY_PATH 20227 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 20228 case $host_os in 20229 openbsd2.[89] | openbsd2.[89].*) 20230 shlibpath_overrides_runpath=no 20231 ;; 20232 *) 20233 shlibpath_overrides_runpath=yes 20234 ;; 20235 esac 20236 else 20237 shlibpath_overrides_runpath=yes 20238 fi 20239 ;; 20240 20241os2*) 20242 libname_spec='$name' 20243 shrext_cmds=".dll" 20244 need_lib_prefix=no 20245 library_names_spec='$libname${shared_ext} $libname.a' 20246 dynamic_linker='OS/2 ld.exe' 20247 shlibpath_var=LIBPATH 20248 ;; 20249 20250osf3* | osf4* | osf5*) 20251 version_type=osf 20252 need_lib_prefix=no 20253 need_version=no 20254 soname_spec='${libname}${release}${shared_ext}$major' 20255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20256 shlibpath_var=LD_LIBRARY_PATH 20257 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 20258 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 20259 ;; 20260 20261solaris*) 20262 version_type=linux 20263 need_lib_prefix=no 20264 need_version=no 20265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20266 soname_spec='${libname}${release}${shared_ext}$major' 20267 shlibpath_var=LD_LIBRARY_PATH 20268 shlibpath_overrides_runpath=yes 20269 hardcode_into_libs=yes 20270 # ldd complains unless libraries are executable 20271 postinstall_cmds='chmod +x $lib' 20272 ;; 20273 20274sunos4*) 20275 version_type=sunos 20276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 20277 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 20278 shlibpath_var=LD_LIBRARY_PATH 20279 shlibpath_overrides_runpath=yes 20280 if test "$with_gnu_ld" = yes; then 20281 need_lib_prefix=no 20282 fi 20283 need_version=yes 20284 ;; 20285 20286sysv4 | sysv4.3*) 20287 version_type=linux 20288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20289 soname_spec='${libname}${release}${shared_ext}$major' 20290 shlibpath_var=LD_LIBRARY_PATH 20291 case $host_vendor in 20292 sni) 20293 shlibpath_overrides_runpath=no 20294 need_lib_prefix=no 20295 export_dynamic_flag_spec='${wl}-Blargedynsym' 20296 runpath_var=LD_RUN_PATH 20297 ;; 20298 siemens) 20299 need_lib_prefix=no 20300 ;; 20301 motorola) 20302 need_lib_prefix=no 20303 need_version=no 20304 shlibpath_overrides_runpath=no 20305 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 20306 ;; 20307 esac 20308 ;; 20309 20310sysv4*MP*) 20311 if test -d /usr/nec ;then 20312 version_type=linux 20313 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 20314 soname_spec='$libname${shared_ext}.$major' 20315 shlibpath_var=LD_LIBRARY_PATH 20316 fi 20317 ;; 20318 20319sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 20320 version_type=freebsd-elf 20321 need_lib_prefix=no 20322 need_version=no 20323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 20324 soname_spec='${libname}${release}${shared_ext}$major' 20325 shlibpath_var=LD_LIBRARY_PATH 20326 hardcode_into_libs=yes 20327 if test "$with_gnu_ld" = yes; then 20328 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 20329 shlibpath_overrides_runpath=no 20330 else 20331 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 20332 shlibpath_overrides_runpath=yes 20333 case $host_os in 20334 sco3.2v5*) 20335 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 20336 ;; 20337 esac 20338 fi 20339 sys_lib_dlsearch_path_spec='/usr/lib' 20340 ;; 20341 20342uts4*) 20343 version_type=linux 20344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20345 soname_spec='${libname}${release}${shared_ext}$major' 20346 shlibpath_var=LD_LIBRARY_PATH 20347 ;; 20348 20349*) 20350 dynamic_linker=no 20351 ;; 20352esac 20353echo "$as_me:$LINENO: result: $dynamic_linker" >&5 20354echo "${ECHO_T}$dynamic_linker" >&6 20355test "$dynamic_linker" = no && can_build_shared=no 20356 20357variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 20358if test "$GCC" = yes; then 20359 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 20360fi 20361 20362echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 20363echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 20364hardcode_action_GCJ= 20365if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 20366 test -n "$runpath_var_GCJ" || \ 20367 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 20368 20369 # We can hardcode non-existant directories. 20370 if test "$hardcode_direct_GCJ" != no && 20371 # If the only mechanism to avoid hardcoding is shlibpath_var, we 20372 # have to relink, otherwise we might link with an installed library 20373 # when we should be linking with a yet-to-be-installed one 20374 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 20375 test "$hardcode_minus_L_GCJ" != no; then 20376 # Linking always hardcodes the temporary library directory. 20377 hardcode_action_GCJ=relink 20378 else 20379 # We can link without hardcoding, and we can hardcode nonexisting dirs. 20380 hardcode_action_GCJ=immediate 20381 fi 20382else 20383 # We cannot hardcode anything, or else we can only hardcode existing 20384 # directories. 20385 hardcode_action_GCJ=unsupported 20386fi 20387echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 20388echo "${ECHO_T}$hardcode_action_GCJ" >&6 20389 20390if test "$hardcode_action_GCJ" = relink; then 20391 # Fast installation is not supported 20392 enable_fast_install=no 20393elif test "$shlibpath_overrides_runpath" = yes || 20394 test "$enable_shared" = no; then 20395 # Fast installation is not necessary 20396 enable_fast_install=needless 20397fi 20398 20399 20400# The else clause should only fire when bootstrapping the 20401# libtool distribution, otherwise you forgot to ship ltmain.sh 20402# with your package, and you will get complaints that there are 20403# no rules to generate ltmain.sh. 20404if test -f "$ltmain"; then 20405 # See if we are running on zsh, and set the options which allow our commands through 20406 # without removal of \ escapes. 20407 if test -n "${ZSH_VERSION+set}" ; then 20408 setopt NO_GLOB_SUBST 20409 fi 20410 # Now quote all the things that may contain metacharacters while being 20411 # careful not to overquote the AC_SUBSTed values. We take copies of the 20412 # variables and quote the copies for generation of the libtool script. 20413 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 20414 SED SHELL STRIP \ 20415 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 20416 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 20417 deplibs_check_method reload_flag reload_cmds need_locks \ 20418 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 20419 lt_cv_sys_global_symbol_to_c_name_address \ 20420 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 20421 old_postinstall_cmds old_postuninstall_cmds \ 20422 compiler_GCJ \ 20423 CC_GCJ \ 20424 LD_GCJ \ 20425 lt_prog_compiler_wl_GCJ \ 20426 lt_prog_compiler_pic_GCJ \ 20427 lt_prog_compiler_static_GCJ \ 20428 lt_prog_compiler_no_builtin_flag_GCJ \ 20429 export_dynamic_flag_spec_GCJ \ 20430 thread_safe_flag_spec_GCJ \ 20431 whole_archive_flag_spec_GCJ \ 20432 enable_shared_with_static_runtimes_GCJ \ 20433 old_archive_cmds_GCJ \ 20434 old_archive_from_new_cmds_GCJ \ 20435 predep_objects_GCJ \ 20436 postdep_objects_GCJ \ 20437 predeps_GCJ \ 20438 postdeps_GCJ \ 20439 compiler_lib_search_path_GCJ \ 20440 archive_cmds_GCJ \ 20441 archive_expsym_cmds_GCJ \ 20442 postinstall_cmds_GCJ \ 20443 postuninstall_cmds_GCJ \ 20444 old_archive_from_expsyms_cmds_GCJ \ 20445 allow_undefined_flag_GCJ \ 20446 no_undefined_flag_GCJ \ 20447 export_symbols_cmds_GCJ \ 20448 hardcode_libdir_flag_spec_GCJ \ 20449 hardcode_libdir_flag_spec_ld_GCJ \ 20450 hardcode_libdir_separator_GCJ \ 20451 hardcode_automatic_GCJ \ 20452 module_cmds_GCJ \ 20453 module_expsym_cmds_GCJ \ 20454 lt_cv_prog_compiler_c_o_GCJ \ 20455 exclude_expsyms_GCJ \ 20456 include_expsyms_GCJ; do 20457 20458 case $var in 20459 old_archive_cmds_GCJ | \ 20460 old_archive_from_new_cmds_GCJ | \ 20461 archive_cmds_GCJ | \ 20462 archive_expsym_cmds_GCJ | \ 20463 module_cmds_GCJ | \ 20464 module_expsym_cmds_GCJ | \ 20465 old_archive_from_expsyms_cmds_GCJ | \ 20466 export_symbols_cmds_GCJ | \ 20467 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 20468 postinstall_cmds | postuninstall_cmds | \ 20469 old_postinstall_cmds | old_postuninstall_cmds | \ 20470 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 20471 # Double-quote double-evaled strings. 20472 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 20473 ;; 20474 *) 20475 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 20476 ;; 20477 esac 20478 done 20479 20480 case $lt_echo in 20481 *'\$0 --fallback-echo"') 20482 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 20483 ;; 20484 esac 20485 20486cfgfile="$ofile" 20487 20488 cat <<__EOF__ >> "$cfgfile" 20489# ### BEGIN LIBTOOL TAG CONFIG: $tagname 20490 20491# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20492 20493# Shell to use when invoking shell scripts. 20494SHELL=$lt_SHELL 20495 20496# Whether or not to build shared libraries. 20497build_libtool_libs=$enable_shared 20498 20499# Whether or not to build static libraries. 20500build_old_libs=$enable_static 20501 20502# Whether or not to add -lc for building shared libraries. 20503build_libtool_need_lc=$archive_cmds_need_lc_GCJ 20504 20505# Whether or not to disallow shared libs when runtime libs are static 20506allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 20507 20508# Whether or not to optimize for fast installation. 20509fast_install=$enable_fast_install 20510 20511# The host system. 20512host_alias=$host_alias 20513host=$host 20514host_os=$host_os 20515 20516# The build system. 20517build_alias=$build_alias 20518build=$build 20519build_os=$build_os 20520 20521# An echo program that does not interpret backslashes. 20522echo=$lt_echo 20523 20524# The archiver. 20525AR=$lt_AR 20526AR_FLAGS=$lt_AR_FLAGS 20527 20528# A C compiler. 20529LTCC=$lt_LTCC 20530 20531# LTCC compiler flags. 20532LTCFLAGS=$lt_LTCFLAGS 20533 20534# A language-specific compiler. 20535CC=$lt_compiler_GCJ 20536 20537# Is the compiler the GNU C compiler? 20538with_gcc=$GCC_GCJ 20539 20540# An ERE matcher. 20541EGREP=$lt_EGREP 20542 20543# The linker used to build libraries. 20544LD=$lt_LD_GCJ 20545 20546# Whether we need hard or soft links. 20547LN_S=$lt_LN_S 20548 20549# A BSD-compatible nm program. 20550NM=$lt_NM 20551 20552# A symbol stripping program 20553STRIP=$lt_STRIP 20554 20555# Used to examine libraries when file_magic_cmd begins "file" 20556MAGIC_CMD=$MAGIC_CMD 20557 20558# Used on cygwin: DLL creation program. 20559DLLTOOL="$DLLTOOL" 20560 20561# Used on cygwin: object dumper. 20562OBJDUMP="$OBJDUMP" 20563 20564# Used on cygwin: assembler. 20565AS="$AS" 20566 20567# The name of the directory that contains temporary libtool files. 20568objdir=$objdir 20569 20570# How to create reloadable object files. 20571reload_flag=$lt_reload_flag 20572reload_cmds=$lt_reload_cmds 20573 20574# How to pass a linker flag through the compiler. 20575wl=$lt_lt_prog_compiler_wl_GCJ 20576 20577# Object file suffix (normally "o"). 20578objext="$ac_objext" 20579 20580# Old archive suffix (normally "a"). 20581libext="$libext" 20582 20583# Shared library suffix (normally ".so"). 20584shrext_cmds='$shrext_cmds' 20585 20586# Executable file suffix (normally ""). 20587exeext="$exeext" 20588 20589# Additional compiler flags for building library objects. 20590pic_flag=$lt_lt_prog_compiler_pic_GCJ 20591pic_mode=$pic_mode 20592 20593# What is the maximum length of a command? 20594max_cmd_len=$lt_cv_sys_max_cmd_len 20595 20596# Does compiler simultaneously support -c and -o options? 20597compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 20598 20599# Must we lock files when doing compilation? 20600need_locks=$lt_need_locks 20601 20602# Do we need the lib prefix for modules? 20603need_lib_prefix=$need_lib_prefix 20604 20605# Do we need a version for libraries? 20606need_version=$need_version 20607 20608# Whether dlopen is supported. 20609dlopen_support=$enable_dlopen 20610 20611# Whether dlopen of programs is supported. 20612dlopen_self=$enable_dlopen_self 20613 20614# Whether dlopen of statically linked programs is supported. 20615dlopen_self_static=$enable_dlopen_self_static 20616 20617# Compiler flag to prevent dynamic linking. 20618link_static_flag=$lt_lt_prog_compiler_static_GCJ 20619 20620# Compiler flag to turn off builtin functions. 20621no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 20622 20623# Compiler flag to allow reflexive dlopens. 20624export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 20625 20626# Compiler flag to generate shared objects directly from archives. 20627whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 20628 20629# Compiler flag to generate thread-safe objects. 20630thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 20631 20632# Library versioning type. 20633version_type=$version_type 20634 20635# Format of library name prefix. 20636libname_spec=$lt_libname_spec 20637 20638# List of archive names. First name is the real one, the rest are links. 20639# The last name is the one that the linker finds with -lNAME. 20640library_names_spec=$lt_library_names_spec 20641 20642# The coded name of the library, if different from the real name. 20643soname_spec=$lt_soname_spec 20644 20645# Commands used to build and install an old-style archive. 20646RANLIB=$lt_RANLIB 20647old_archive_cmds=$lt_old_archive_cmds_GCJ 20648old_postinstall_cmds=$lt_old_postinstall_cmds 20649old_postuninstall_cmds=$lt_old_postuninstall_cmds 20650 20651# Create an old-style archive from a shared archive. 20652old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 20653 20654# Create a temporary old-style archive to link instead of a shared archive. 20655old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 20656 20657# Commands used to build and install a shared archive. 20658archive_cmds=$lt_archive_cmds_GCJ 20659archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 20660postinstall_cmds=$lt_postinstall_cmds 20661postuninstall_cmds=$lt_postuninstall_cmds 20662 20663# Commands used to build a loadable module (assumed same as above if empty) 20664module_cmds=$lt_module_cmds_GCJ 20665module_expsym_cmds=$lt_module_expsym_cmds_GCJ 20666 20667# Commands to strip libraries. 20668old_striplib=$lt_old_striplib 20669striplib=$lt_striplib 20670 20671# Dependencies to place before the objects being linked to create a 20672# shared library. 20673predep_objects=$lt_predep_objects_GCJ 20674 20675# Dependencies to place after the objects being linked to create a 20676# shared library. 20677postdep_objects=$lt_postdep_objects_GCJ 20678 20679# Dependencies to place before the objects being linked to create a 20680# shared library. 20681predeps=$lt_predeps_GCJ 20682 20683# Dependencies to place after the objects being linked to create a 20684# shared library. 20685postdeps=$lt_postdeps_GCJ 20686 20687# The library search path used internally by the compiler when linking 20688# a shared library. 20689compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 20690 20691# Method to check whether dependent libraries are shared objects. 20692deplibs_check_method=$lt_deplibs_check_method 20693 20694# Command to use when deplibs_check_method == file_magic. 20695file_magic_cmd=$lt_file_magic_cmd 20696 20697# Flag that allows shared libraries with undefined symbols to be built. 20698allow_undefined_flag=$lt_allow_undefined_flag_GCJ 20699 20700# Flag that forces no undefined symbols. 20701no_undefined_flag=$lt_no_undefined_flag_GCJ 20702 20703# Commands used to finish a libtool library installation in a directory. 20704finish_cmds=$lt_finish_cmds 20705 20706# Same as above, but a single script fragment to be evaled but not shown. 20707finish_eval=$lt_finish_eval 20708 20709# Take the output of nm and produce a listing of raw symbols and C names. 20710global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20711 20712# Transform the output of nm in a proper C declaration 20713global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20714 20715# Transform the output of nm in a C name address pair 20716global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20717 20718# This is the shared library runtime path variable. 20719runpath_var=$runpath_var 20720 20721# This is the shared library path variable. 20722shlibpath_var=$shlibpath_var 20723 20724# Is shlibpath searched before the hard-coded library search path? 20725shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20726 20727# How to hardcode a shared library path into an executable. 20728hardcode_action=$hardcode_action_GCJ 20729 20730# Whether we should hardcode library paths into libraries. 20731hardcode_into_libs=$hardcode_into_libs 20732 20733# Flag to hardcode \$libdir into a binary during linking. 20734# This must work even if \$libdir does not exist. 20735hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 20736 20737# If ld is used when linking, flag to hardcode \$libdir into 20738# a binary during linking. This must work even if \$libdir does 20739# not exist. 20740hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 20741 20742# Whether we need a single -rpath flag with a separated argument. 20743hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 20744 20745# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 20746# resulting binary. 20747hardcode_direct=$hardcode_direct_GCJ 20748 20749# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 20750# resulting binary. 20751hardcode_minus_L=$hardcode_minus_L_GCJ 20752 20753# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 20754# the resulting binary. 20755hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 20756 20757# Set to yes if building a shared library automatically hardcodes DIR into the library 20758# and all subsequent libraries and executables linked against it. 20759hardcode_automatic=$hardcode_automatic_GCJ 20760 20761# Variables whose values should be saved in libtool wrapper scripts and 20762# restored at relink time. 20763variables_saved_for_relink="$variables_saved_for_relink" 20764 20765# Whether libtool must link a program against all its dependency libraries. 20766link_all_deplibs=$link_all_deplibs_GCJ 20767 20768# Compile-time system search path for libraries 20769sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20770 20771# Run-time system search path for libraries 20772sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 20773 20774# Fix the shell variable \$srcfile for the compiler. 20775fix_srcfile_path="$fix_srcfile_path_GCJ" 20776 20777# Set to yes if exported symbols are required. 20778always_export_symbols=$always_export_symbols_GCJ 20779 20780# The commands to list exported symbols. 20781export_symbols_cmds=$lt_export_symbols_cmds_GCJ 20782 20783# The commands to extract the exported symbol list from a shared archive. 20784extract_expsyms_cmds=$lt_extract_expsyms_cmds 20785 20786# Symbols that should not be listed in the preloaded symbols. 20787exclude_expsyms=$lt_exclude_expsyms_GCJ 20788 20789# Symbols that must always be exported. 20790include_expsyms=$lt_include_expsyms_GCJ 20791 20792# ### END LIBTOOL TAG CONFIG: $tagname 20793 20794__EOF__ 20795 20796 20797else 20798 # If there is no Makefile yet, we rely on a make rule to execute 20799 # `config.status --recheck' to rerun these tests and create the 20800 # libtool script then. 20801 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 20802 if test -f "$ltmain_in"; then 20803 test -f Makefile && make "$ltmain" 20804 fi 20805fi 20806 20807 20808ac_ext=c 20809ac_cpp='$CPP $CPPFLAGS' 20810ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20811ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20812ac_compiler_gnu=$ac_cv_c_compiler_gnu 20813 20814CC="$lt_save_CC" 20815 20816 else 20817 tagname="" 20818 fi 20819 ;; 20820 20821 RC) 20822 20823 20824 20825# Source file extension for RC test sources. 20826ac_ext=rc 20827 20828# Object file extension for compiled RC test sources. 20829objext=o 20830objext_RC=$objext 20831 20832# Code to be used in simple compile tests 20833lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 20834 20835# Code to be used in simple link tests 20836lt_simple_link_test_code="$lt_simple_compile_test_code" 20837 20838# ltmain only uses $CC for tagged configurations so make sure $CC is set. 20839 20840# If no C compiler was specified, use CC. 20841LTCC=${LTCC-"$CC"} 20842 20843# If no C compiler flags were specified, use CFLAGS. 20844LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 20845 20846# Allow CC to be a program name with arguments. 20847compiler=$CC 20848 20849 20850# save warnings/boilerplate of simple test code 20851ac_outfile=conftest.$ac_objext 20852printf "$lt_simple_compile_test_code" >conftest.$ac_ext 20853eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 20854_lt_compiler_boilerplate=`cat conftest.err` 20855$rm conftest* 20856 20857ac_outfile=conftest.$ac_objext 20858printf "$lt_simple_link_test_code" >conftest.$ac_ext 20859eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 20860_lt_linker_boilerplate=`cat conftest.err` 20861$rm conftest* 20862 20863 20864# Allow CC to be a program name with arguments. 20865lt_save_CC="$CC" 20866CC=${RC-"windres"} 20867compiler=$CC 20868compiler_RC=$CC 20869for cc_temp in $compiler""; do 20870 case $cc_temp in 20871 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 20872 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 20873 \-*) ;; 20874 *) break;; 20875 esac 20876done 20877cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 20878 20879lt_cv_prog_compiler_c_o_RC=yes 20880 20881# The else clause should only fire when bootstrapping the 20882# libtool distribution, otherwise you forgot to ship ltmain.sh 20883# with your package, and you will get complaints that there are 20884# no rules to generate ltmain.sh. 20885if test -f "$ltmain"; then 20886 # See if we are running on zsh, and set the options which allow our commands through 20887 # without removal of \ escapes. 20888 if test -n "${ZSH_VERSION+set}" ; then 20889 setopt NO_GLOB_SUBST 20890 fi 20891 # Now quote all the things that may contain metacharacters while being 20892 # careful not to overquote the AC_SUBSTed values. We take copies of the 20893 # variables and quote the copies for generation of the libtool script. 20894 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 20895 SED SHELL STRIP \ 20896 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 20897 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 20898 deplibs_check_method reload_flag reload_cmds need_locks \ 20899 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 20900 lt_cv_sys_global_symbol_to_c_name_address \ 20901 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 20902 old_postinstall_cmds old_postuninstall_cmds \ 20903 compiler_RC \ 20904 CC_RC \ 20905 LD_RC \ 20906 lt_prog_compiler_wl_RC \ 20907 lt_prog_compiler_pic_RC \ 20908 lt_prog_compiler_static_RC \ 20909 lt_prog_compiler_no_builtin_flag_RC \ 20910 export_dynamic_flag_spec_RC \ 20911 thread_safe_flag_spec_RC \ 20912 whole_archive_flag_spec_RC \ 20913 enable_shared_with_static_runtimes_RC \ 20914 old_archive_cmds_RC \ 20915 old_archive_from_new_cmds_RC \ 20916 predep_objects_RC \ 20917 postdep_objects_RC \ 20918 predeps_RC \ 20919 postdeps_RC \ 20920 compiler_lib_search_path_RC \ 20921 archive_cmds_RC \ 20922 archive_expsym_cmds_RC \ 20923 postinstall_cmds_RC \ 20924 postuninstall_cmds_RC \ 20925 old_archive_from_expsyms_cmds_RC \ 20926 allow_undefined_flag_RC \ 20927 no_undefined_flag_RC \ 20928 export_symbols_cmds_RC \ 20929 hardcode_libdir_flag_spec_RC \ 20930 hardcode_libdir_flag_spec_ld_RC \ 20931 hardcode_libdir_separator_RC \ 20932 hardcode_automatic_RC \ 20933 module_cmds_RC \ 20934 module_expsym_cmds_RC \ 20935 lt_cv_prog_compiler_c_o_RC \ 20936 exclude_expsyms_RC \ 20937 include_expsyms_RC; do 20938 20939 case $var in 20940 old_archive_cmds_RC | \ 20941 old_archive_from_new_cmds_RC | \ 20942 archive_cmds_RC | \ 20943 archive_expsym_cmds_RC | \ 20944 module_cmds_RC | \ 20945 module_expsym_cmds_RC | \ 20946 old_archive_from_expsyms_cmds_RC | \ 20947 export_symbols_cmds_RC | \ 20948 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 20949 postinstall_cmds | postuninstall_cmds | \ 20950 old_postinstall_cmds | old_postuninstall_cmds | \ 20951 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 20952 # Double-quote double-evaled strings. 20953 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 20954 ;; 20955 *) 20956 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 20957 ;; 20958 esac 20959 done 20960 20961 case $lt_echo in 20962 *'\$0 --fallback-echo"') 20963 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 20964 ;; 20965 esac 20966 20967cfgfile="$ofile" 20968 20969 cat <<__EOF__ >> "$cfgfile" 20970# ### BEGIN LIBTOOL TAG CONFIG: $tagname 20971 20972# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20973 20974# Shell to use when invoking shell scripts. 20975SHELL=$lt_SHELL 20976 20977# Whether or not to build shared libraries. 20978build_libtool_libs=$enable_shared 20979 20980# Whether or not to build static libraries. 20981build_old_libs=$enable_static 20982 20983# Whether or not to add -lc for building shared libraries. 20984build_libtool_need_lc=$archive_cmds_need_lc_RC 20985 20986# Whether or not to disallow shared libs when runtime libs are static 20987allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 20988 20989# Whether or not to optimize for fast installation. 20990fast_install=$enable_fast_install 20991 20992# The host system. 20993host_alias=$host_alias 20994host=$host 20995host_os=$host_os 20996 20997# The build system. 20998build_alias=$build_alias 20999build=$build 21000build_os=$build_os 21001 21002# An echo program that does not interpret backslashes. 21003echo=$lt_echo 21004 21005# The archiver. 21006AR=$lt_AR 21007AR_FLAGS=$lt_AR_FLAGS 21008 21009# A C compiler. 21010LTCC=$lt_LTCC 21011 21012# LTCC compiler flags. 21013LTCFLAGS=$lt_LTCFLAGS 21014 21015# A language-specific compiler. 21016CC=$lt_compiler_RC 21017 21018# Is the compiler the GNU C compiler? 21019with_gcc=$GCC_RC 21020 21021# An ERE matcher. 21022EGREP=$lt_EGREP 21023 21024# The linker used to build libraries. 21025LD=$lt_LD_RC 21026 21027# Whether we need hard or soft links. 21028LN_S=$lt_LN_S 21029 21030# A BSD-compatible nm program. 21031NM=$lt_NM 21032 21033# A symbol stripping program 21034STRIP=$lt_STRIP 21035 21036# Used to examine libraries when file_magic_cmd begins "file" 21037MAGIC_CMD=$MAGIC_CMD 21038 21039# Used on cygwin: DLL creation program. 21040DLLTOOL="$DLLTOOL" 21041 21042# Used on cygwin: object dumper. 21043OBJDUMP="$OBJDUMP" 21044 21045# Used on cygwin: assembler. 21046AS="$AS" 21047 21048# The name of the directory that contains temporary libtool files. 21049objdir=$objdir 21050 21051# How to create reloadable object files. 21052reload_flag=$lt_reload_flag 21053reload_cmds=$lt_reload_cmds 21054 21055# How to pass a linker flag through the compiler. 21056wl=$lt_lt_prog_compiler_wl_RC 21057 21058# Object file suffix (normally "o"). 21059objext="$ac_objext" 21060 21061# Old archive suffix (normally "a"). 21062libext="$libext" 21063 21064# Shared library suffix (normally ".so"). 21065shrext_cmds='$shrext_cmds' 21066 21067# Executable file suffix (normally ""). 21068exeext="$exeext" 21069 21070# Additional compiler flags for building library objects. 21071pic_flag=$lt_lt_prog_compiler_pic_RC 21072pic_mode=$pic_mode 21073 21074# What is the maximum length of a command? 21075max_cmd_len=$lt_cv_sys_max_cmd_len 21076 21077# Does compiler simultaneously support -c and -o options? 21078compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 21079 21080# Must we lock files when doing compilation? 21081need_locks=$lt_need_locks 21082 21083# Do we need the lib prefix for modules? 21084need_lib_prefix=$need_lib_prefix 21085 21086# Do we need a version for libraries? 21087need_version=$need_version 21088 21089# Whether dlopen is supported. 21090dlopen_support=$enable_dlopen 21091 21092# Whether dlopen of programs is supported. 21093dlopen_self=$enable_dlopen_self 21094 21095# Whether dlopen of statically linked programs is supported. 21096dlopen_self_static=$enable_dlopen_self_static 21097 21098# Compiler flag to prevent dynamic linking. 21099link_static_flag=$lt_lt_prog_compiler_static_RC 21100 21101# Compiler flag to turn off builtin functions. 21102no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 21103 21104# Compiler flag to allow reflexive dlopens. 21105export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 21106 21107# Compiler flag to generate shared objects directly from archives. 21108whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 21109 21110# Compiler flag to generate thread-safe objects. 21111thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 21112 21113# Library versioning type. 21114version_type=$version_type 21115 21116# Format of library name prefix. 21117libname_spec=$lt_libname_spec 21118 21119# List of archive names. First name is the real one, the rest are links. 21120# The last name is the one that the linker finds with -lNAME. 21121library_names_spec=$lt_library_names_spec 21122 21123# The coded name of the library, if different from the real name. 21124soname_spec=$lt_soname_spec 21125 21126# Commands used to build and install an old-style archive. 21127RANLIB=$lt_RANLIB 21128old_archive_cmds=$lt_old_archive_cmds_RC 21129old_postinstall_cmds=$lt_old_postinstall_cmds 21130old_postuninstall_cmds=$lt_old_postuninstall_cmds 21131 21132# Create an old-style archive from a shared archive. 21133old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 21134 21135# Create a temporary old-style archive to link instead of a shared archive. 21136old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 21137 21138# Commands used to build and install a shared archive. 21139archive_cmds=$lt_archive_cmds_RC 21140archive_expsym_cmds=$lt_archive_expsym_cmds_RC 21141postinstall_cmds=$lt_postinstall_cmds 21142postuninstall_cmds=$lt_postuninstall_cmds 21143 21144# Commands used to build a loadable module (assumed same as above if empty) 21145module_cmds=$lt_module_cmds_RC 21146module_expsym_cmds=$lt_module_expsym_cmds_RC 21147 21148# Commands to strip libraries. 21149old_striplib=$lt_old_striplib 21150striplib=$lt_striplib 21151 21152# Dependencies to place before the objects being linked to create a 21153# shared library. 21154predep_objects=$lt_predep_objects_RC 21155 21156# Dependencies to place after the objects being linked to create a 21157# shared library. 21158postdep_objects=$lt_postdep_objects_RC 21159 21160# Dependencies to place before the objects being linked to create a 21161# shared library. 21162predeps=$lt_predeps_RC 21163 21164# Dependencies to place after the objects being linked to create a 21165# shared library. 21166postdeps=$lt_postdeps_RC 21167 21168# The library search path used internally by the compiler when linking 21169# a shared library. 21170compiler_lib_search_path=$lt_compiler_lib_search_path_RC 21171 21172# Method to check whether dependent libraries are shared objects. 21173deplibs_check_method=$lt_deplibs_check_method 21174 21175# Command to use when deplibs_check_method == file_magic. 21176file_magic_cmd=$lt_file_magic_cmd 21177 21178# Flag that allows shared libraries with undefined symbols to be built. 21179allow_undefined_flag=$lt_allow_undefined_flag_RC 21180 21181# Flag that forces no undefined symbols. 21182no_undefined_flag=$lt_no_undefined_flag_RC 21183 21184# Commands used to finish a libtool library installation in a directory. 21185finish_cmds=$lt_finish_cmds 21186 21187# Same as above, but a single script fragment to be evaled but not shown. 21188finish_eval=$lt_finish_eval 21189 21190# Take the output of nm and produce a listing of raw symbols and C names. 21191global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21192 21193# Transform the output of nm in a proper C declaration 21194global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21195 21196# Transform the output of nm in a C name address pair 21197global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 21198 21199# This is the shared library runtime path variable. 21200runpath_var=$runpath_var 21201 21202# This is the shared library path variable. 21203shlibpath_var=$shlibpath_var 21204 21205# Is shlibpath searched before the hard-coded library search path? 21206shlibpath_overrides_runpath=$shlibpath_overrides_runpath 21207 21208# How to hardcode a shared library path into an executable. 21209hardcode_action=$hardcode_action_RC 21210 21211# Whether we should hardcode library paths into libraries. 21212hardcode_into_libs=$hardcode_into_libs 21213 21214# Flag to hardcode \$libdir into a binary during linking. 21215# This must work even if \$libdir does not exist. 21216hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 21217 21218# If ld is used when linking, flag to hardcode \$libdir into 21219# a binary during linking. This must work even if \$libdir does 21220# not exist. 21221hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 21222 21223# Whether we need a single -rpath flag with a separated argument. 21224hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 21225 21226# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 21227# resulting binary. 21228hardcode_direct=$hardcode_direct_RC 21229 21230# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 21231# resulting binary. 21232hardcode_minus_L=$hardcode_minus_L_RC 21233 21234# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 21235# the resulting binary. 21236hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 21237 21238# Set to yes if building a shared library automatically hardcodes DIR into the library 21239# and all subsequent libraries and executables linked against it. 21240hardcode_automatic=$hardcode_automatic_RC 21241 21242# Variables whose values should be saved in libtool wrapper scripts and 21243# restored at relink time. 21244variables_saved_for_relink="$variables_saved_for_relink" 21245 21246# Whether libtool must link a program against all its dependency libraries. 21247link_all_deplibs=$link_all_deplibs_RC 21248 21249# Compile-time system search path for libraries 21250sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 21251 21252# Run-time system search path for libraries 21253sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 21254 21255# Fix the shell variable \$srcfile for the compiler. 21256fix_srcfile_path="$fix_srcfile_path_RC" 21257 21258# Set to yes if exported symbols are required. 21259always_export_symbols=$always_export_symbols_RC 21260 21261# The commands to list exported symbols. 21262export_symbols_cmds=$lt_export_symbols_cmds_RC 21263 21264# The commands to extract the exported symbol list from a shared archive. 21265extract_expsyms_cmds=$lt_extract_expsyms_cmds 21266 21267# Symbols that should not be listed in the preloaded symbols. 21268exclude_expsyms=$lt_exclude_expsyms_RC 21269 21270# Symbols that must always be exported. 21271include_expsyms=$lt_include_expsyms_RC 21272 21273# ### END LIBTOOL TAG CONFIG: $tagname 21274 21275__EOF__ 21276 21277 21278else 21279 # If there is no Makefile yet, we rely on a make rule to execute 21280 # `config.status --recheck' to rerun these tests and create the 21281 # libtool script then. 21282 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 21283 if test -f "$ltmain_in"; then 21284 test -f Makefile && make "$ltmain" 21285 fi 21286fi 21287 21288 21289ac_ext=c 21290ac_cpp='$CPP $CPPFLAGS' 21291ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21292ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21293ac_compiler_gnu=$ac_cv_c_compiler_gnu 21294 21295CC="$lt_save_CC" 21296 21297 ;; 21298 21299 *) 21300 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 21301echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 21302 { (exit 1); exit 1; }; } 21303 ;; 21304 esac 21305 21306 # Append the new tag name to the list of available tags. 21307 if test -n "$tagname" ; then 21308 available_tags="$available_tags $tagname" 21309 fi 21310 fi 21311 done 21312 IFS="$lt_save_ifs" 21313 21314 # Now substitute the updated list of available tags. 21315 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 21316 mv "${ofile}T" "$ofile" 21317 chmod +x "$ofile" 21318 else 21319 rm -f "${ofile}T" 21320 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 21321echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 21322 { (exit 1); exit 1; }; } 21323 fi 21324fi 21325 21326 21327 21328# This can be used to rebuild libtool when needed 21329LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 21330 21331# Always use our own libtool. 21332LIBTOOL='$(SHELL) $(top_builddir)/libtool' 21333 21334# Prevent multiple expansion 21335 21336 21337 21338 21339 21340 21341 21342 21343 21344 21345 21346# No longer needed now that CPPFLAGS is correctly set -- lh, 061214 -- 21347 # AC_REQUIRE([AC_COIN_DLFCN_H]) 21348 21349# NEW: If libtool exists in the directory higher up, we use that one 21350# instead of creating a new one 21351 21352# It turns out that the code for AC_PROG_LIBTOOL is somehow AC_REQUIRED 21353# out in front of this macro body. You'll notice that LIBTOOL is already 21354# defined here. We'll have to count on this macro not being called if libtool 21355# already exists, or at least move the libtool fixes outside the conditional. 21356# AC_MSG_NOTICE([Entering coin_prog_libtool, LIBTOOL = "$LIBTOOL".]) 21357# This test is therefore removed. -- lh, 061214 -- 21358# if test "x$LIBTOOL" = x; then 21359 21360# AC_MSG_NOTICE([Calling PROG_LIBTOOL.]) 21361 21362 21363 21364 21365 21366 21367 21368 21369 21370# AC_MSG_NOTICE([Finished PROG_LIBTOOL.]) 21371 21372 21373 21374 { echo "$as_me:$LINENO: Build is \"$build\"." >&5 21375echo "$as_me: Build is \"$build\"." >&6;} 21376 # Extract the first word of "dos2unix", so it can be a program name with args. 21377set dummy dos2unix; ac_word=$2 21378echo "$as_me:$LINENO: checking for $ac_word" >&5 21379echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 21380if test "${ac_cv_prog_dos2unix+set}" = set; then 21381 echo $ECHO_N "(cached) $ECHO_C" >&6 21382else 21383 if test -n "$dos2unix"; then 21384 ac_cv_prog_dos2unix="$dos2unix" # Let the user override the test. 21385else 21386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21387for as_dir in $PATH 21388do 21389 IFS=$as_save_IFS 21390 test -z "$as_dir" && as_dir=. 21391 for ac_exec_ext in '' $ac_executable_extensions; do 21392 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21393 ac_cv_prog_dos2unix="dos2unix" 21394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 21395 break 2 21396 fi 21397done 21398done 21399 21400fi 21401fi 21402dos2unix=$ac_cv_prog_dos2unix 21403if test -n "$dos2unix"; then 21404 echo "$as_me:$LINENO: result: $dos2unix" >&5 21405echo "${ECHO_T}$dos2unix" >&6 21406else 21407 echo "$as_me:$LINENO: result: no" >&5 21408echo "${ECHO_T}no" >&6 21409fi 21410 21411 if test "$dos2unix" = dos2unix ; then 21412 mydos2unix="| dos2unix" 21413 fi 21414 case $build in 21415 *-mingw*) 21416 CYGPATH_W=echo 21417 ;; 21418 esac 21419 21420 case $build in 21421 # Here we need to check if -m32 is specified. If so, we need to correct 21422 # sys_lib_search_path_spec 21423 *-cygwin* | *-mingw*) 21424 case "$CXX" in 21425 clang* ) 21426 # we assume that libtool patches for CLANG are the same as for GNU compiler - correct??? 21427 { echo "$as_me:$LINENO: Applying patches to libtool for CLANG compiler" >&5 21428echo "$as_me: Applying patches to libtool for CLANG compiler" >&6;} 21429 sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \ 21430 -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \ 21431 -e 's|libext="lib"|libext="a"|' \ 21432 libtool > conftest.bla 21433 ;; 21434 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 21435 { echo "$as_me:$LINENO: Applying patches to libtool for cl compiler" >&5 21436echo "$as_me: Applying patches to libtool for cl compiler" >&6;} 21437 sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \ 21438 -e 's|fix_srcfile_path=\"\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \ 21439 -e 's%compile_deplibs=\"\$dir/\$old_library \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$old_library | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \ 21440 -e 's%compile_deplibs=\"\$dir/\$linklib \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$linklib | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \ 21441 -e 's%lib /OUT:%lib -OUT:%' \ 21442 -e "s%cygpath -w%$CYGPATH_W%" \ 21443 -e 's%$AR x \\$f_ex_an_ar_oldlib%bla=\\$(lib -nologo -list \\$('"$CYGPATH_W \$1"') '"$mydos2unix"' | xargs echo); echo \\$bla; for i in \\$bla; do lib -nologo -extract:\\$i \\$('"$CYGPATH_W \$1"'); done%' \ 21444 -e 's%$AR t "$f_ex_an_ar_oldlib"%lib -nologo -list \$('"$CYGPATH_W \$1"') '"$mydos2unix"'%' \ 21445 -e 's%f_ex_an_ar_oldlib="\($?*1*\)"%f_ex_an_ar_oldlib='\`"$CYGPATH_W"' \1`%' \ 21446 -e 's%^archive_cmds=.*%archive_cmds="\\$CC -o \\$lib \\$libobjs \\$compiler_flags \\\\\\`echo \\\\\\"\\$deplibs\\\\\\" | \\$SED -e '"\'"'s/ -lc\\$//'"\'"'\\\\\\` -link -dll~linknames="%' \ 21447 -e 's%old_archive_cmds="lib -OUT:\\$oldlib\\$oldobjs\\$old_deplibs"%old_archive_cmds="if test -r \\$oldlib; then bla=\\"\\$oldlib\\"; else bla=; fi; lib -OUT:\\$oldlib \\\\\\$bla\\$oldobjs\\$old_deplibs"%' \ 21448 libtool > conftest.bla 21449 ;; 21450 *) 21451 { echo "$as_me:$LINENO: Applying patches to libtool for GNU compiler" >&5 21452echo "$as_me: Applying patches to libtool for GNU compiler" >&6;} 21453 sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \ 21454 -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \ 21455 -e 's|libext="lib"|libext="a"|' \ 21456 libtool > conftest.bla 21457 ;; 21458 esac 21459 mv conftest.bla libtool 21460 chmod 755 libtool 21461 21462 ;; 21463 *x86_64-*) 21464 if test "$GCC" = yes && (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm32' >& /dev/null); then 21465 { echo "$as_me:$LINENO: Applying patches to libtool for 32bit compilation" >&5 21466echo "$as_me: Applying patches to libtool for 32bit compilation" >&6;} 21467 sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="/lib /usr/lib"|' libtool > conftest.bla 21468 mv conftest.bla libtool 21469 chmod 755 libtool 21470 fi 21471 ;; 21472 21473 *-solaris*) 21474 if test "$GCC" = yes && \ 21475 (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm64' >/dev/null 2>&1) ; then 21476 hdwisa=`isainfo | sed -e 's/\([^ ]*\) .*$/\1/'` 21477 if `$EGREP 'sys_lib_search_path_spec=' libtool | $EGREP -v $hdwisa >/dev/null 2>&1` ; then 21478 { echo "$as_me:$LINENO: Applying patches to libtool for 64-bit GCC compilation" >&5 21479echo "$as_me: Applying patches to libtool for 64-bit GCC compilation" >&6;} 21480 fixlibtmp=`$CC -m64 -print-search-dirs | $EGREP '^libraries:'` 21481 fixlibtmp=`echo $fixlibtmp | sed -e 's/libraries: =//' -e 's/:/ /g'` 21482 if `echo "$fixlibtmp" | $EGREP -v $hdwisa >/dev/null 2>&1` ; then 21483 # AC_MSG_NOTICE(Compensating for broken gcc) 21484 for lib in $fixlibtmp ; do 21485 if test -d "${lib}${hdwisa}" ; then 21486 syslibpath64="$syslibpath64 ${lib}${hdwisa}/" 21487 fi 21488 done 21489 syslibpath64="${syslibpath64} ${fixlibtmp}" 21490 else 21491 syslibpath64="$fixlibtmp" 21492 fi 21493 sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="'"$syslibpath64"'"|' libtool > conftest.bla 21494 mv conftest.bla libtool 21495 chmod 755 libtool 21496 fi 21497 # AC_MSG_NOTICE(Result is ) 21498 # $EGREP 'sys_lib_search_path_spec=' libtool 21499 fi 21500 ;; 21501 # Cygwin. Ah, cygwin. Too big and ugly to inline; see the macro. 21502 *-darwin*) 21503 { echo "$as_me:$LINENO: Applying patches to libtool for Darwin" >&5 21504echo "$as_me: Applying patches to libtool for Darwin" >&6;} 21505 sed -e 's/verstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"/verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"/' \ 21506 -e 's/ -dynamiclib / -dynamiclib -single_module /g' \ 21507 libtool > conftest.bla 21508 21509 mv conftest.bla libtool 21510 chmod 755 libtool 21511 ;; 21512 esac 21513# This fi matches the commented `if test "x$LIBTOOL" = x;' up at the head of 21514# the macro. -- lh, 061214 -- 21515# fi 21516 21517# AC_MSG_NOTICE([End libtool initialisation.]) 21518 21519# AC_MSG_NOTICE([Finished COIN_PROG_LIBTOOL.]) 21520 # set RPATH_FLAGS to the compiler link flags required to hardcode location 21521 # of the shared objects 21522 RPATH_FLAGS= 21523 21524if test $enable_shared = yes; then 21525 case $build in 21526 *-linux-*) 21527 if test "$GXX" = "yes"; then 21528 RPATH_FLAGS= 21529 for dir in $abs_lib_dir; do 21530 RPATH_FLAGS="$RPATH_FLAGS -Wl,--rpath -Wl,$dir" 21531 done 21532 fi ;; 21533 *-darwin*) 21534 RPATH_FLAGS=nothing ;; 21535 *-ibm-*) 21536 case "$CXX" in 21537 xlC* | */xlC* | mpxlC* | */mpxlC*) 21538 RPATH_FLAGS=nothing ;; 21539 esac ;; 21540 *-hp-*) 21541 RPATH_FLAGS=nothing ;; 21542 *-mingw32) 21543 RPATH_FLAGS=nothing ;; 21544 *-*-solaris*) 21545 RPATH_FLAGS= 21546 for dir in $abs_lib_dir; do 21547 RPATH_FLAGS="$RPATH_FLAGS -R$dir" 21548 done 21549 esac 21550 21551 if test "$RPATH_FLAGS" = ""; then 21552 { echo "$as_me:$LINENO: WARNING: Could not automatically determine how to tell the linker about automatic inclusion of the path for shared libraries. The test examples might not work if you link against shared objects. You will need to set the LD_LIBRARY_PATH, DYLP_LIBRARY_PATH, or LIBDIR variable manually." >&5 21553echo "$as_me: WARNING: Could not automatically determine how to tell the linker about automatic inclusion of the path for shared libraries. The test examples might not work if you link against shared objects. You will need to set the LD_LIBRARY_PATH, DYLP_LIBRARY_PATH, or LIBDIR variable manually." >&2;} 21554 fi 21555 if test "$RPATH_FLAGS" = "nothing"; then 21556 RPATH_FLAGS= 21557 fi 21558fi 21559 21560 21561 21562 21563else 21564 21565 { echo "$as_me:$LINENO: Using libtool script in directory $coin_config_dir" >&5 21566echo "$as_me: Using libtool script in directory $coin_config_dir" >&6;} 21567 # get all missing information from the config.log file 21568 21569 # output variables and defines 21570 as_save_IFS=$IFS 21571 IFS=' 21572' 21573 for oneline in `cat $coin_config_dir/config.status`; do 21574 case "$oneline" in 21575 # First some automake conditionals 21576 s,@am__fastdep* | s,@AR@* | s,@CPP@* | s,@CPPFLAGS@* | s,@CXXCPP@* | \ 21577 s,@RANLIB@* | s,@STRIP@* | s,@ac_ct_AR@* | s,@ac_ct_RANLIB@* | \ 21578 s,@ac_ct_STRIP@* | s,@host* | s,@LN_S@* | s,@RPATH_FLAGS@* | \ 21579 s,@ac_c_preproc_warn_flag@* | s,@ac_cxx_preproc_warn_flag@* ) 21580 command=`echo $oneline | sed -e 's/^s,@//' -e 's/@,/="/' -e 's/,;t t/"/'` 21581# echo "$command" 21582 eval "$command" 21583 ;; 21584 s,@DEFS@* ) 21585 command=`echo $oneline | sed -e 's/^s,@DEFS@,/defsline="/' -e 's/,;t t/"/'` 21586# echo "$command" 21587 eval "$command" 21588 ;; 21589 esac 21590 done 21591 IFS=$as_save_IFS 21592 21593 # And some defines (assuming here that the packages base dir 21594 # doesn't have a config.h file 21595 for word in $defsline; do 21596# echo word $word 21597 case $word in 21598 -DHAVE_[A-Z_]*_H=1 | -DSTDC_HEADERS=1 ) 21599 i=`echo $word | sed -e 's/-D/#define /' -e 's/=/ /'` 21600# echo dd $i 21601 echo $i >>confdefs.h 21602 ;; 21603 esac 21604 done 21605fi 21606 21607# AC_MSG_NOTICE([End of INIT_AUTO_TOOLS.]) 21608 21609# Check whether --enable-dependency-linking or --disable-dependency-linking was given. 21610if test "${enable_dependency_linking+set}" = set; then 21611 enableval="$enable_dependency_linking" 21612 dependency_linking="$enableval" 21613else 21614 dependency_linking=auto 21615fi; 21616 21617if test "$dependency_linking" = auto; then 21618 # On Cygwin and AIX, building DLLs doesn't work 21619 dependency_linking=no 21620 if test x"$coin_disable_shared" = xno; then 21621 case $build in 21622 *-cygwin* | *-mingw*) 21623 case "$CC" in 21624 clang* ) 21625 dependency_linking=yes 21626 ;; 21627 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 21628 dependency_linking=no 21629 ;; 21630 *gcc*) 21631 dependency_linking=yes 21632 ;; 21633 *) 21634 dependency_linking=yes 21635 ;; 21636 esac 21637 ;; 21638 *) 21639 dependency_linking=yes 21640 ;; 21641 esac 21642 fi 21643fi 21644 21645if test "$dependency_linking" = yes ; 21646then 21647 LT_LDFLAGS="-no-undefined" 21648else 21649 LT_LDFLAGS= 21650fi 21651 21652 21653 21654if test "$dependency_linking" = yes; then 21655 DEPENDENCY_LINKING_TRUE= 21656 DEPENDENCY_LINKING_FALSE='#' 21657else 21658 DEPENDENCY_LINKING_TRUE='#' 21659 DEPENDENCY_LINKING_FALSE= 21660fi 21661 21662 21663# Check if we want to set the library version 21664echo "$as_me:$LINENO: checking if library version is set" >&5 21665echo $ECHO_N "checking if library version is set... $ECHO_C" >&6 21666if test x"$coin_libversion" != x; then 21667 LT_LDFLAGS="$LT_LDFLAGS -version-info $coin_libversion" 21668 echo "$as_me:$LINENO: result: $coin_libversion" >&5 21669echo "${ECHO_T}$coin_libversion" >&6 21670else 21671 echo "$as_me:$LINENO: result: no" >&5 21672echo "${ECHO_T}no" >&6 21673fi 21674 21675 21676 21677#END 21678} 21679 21680 ac_config_files="$ac_config_files Makefile coinblas.pc coinblas-uninstalled.pc" 21681 21682 21683 21684 21685 21686 21687echo "$as_me:$LINENO: checking which command should be used to link input files" >&5 21688echo $ECHO_N "checking which command should be used to link input files... $ECHO_C" >&6 21689coin_link_input_cmd="$LN_S" 21690case "$CC" in 21691 clang* ) ;; 21692 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 21693 coin_link_input_cmd=cp ;; 21694esac 21695echo "$as_me:$LINENO: result: $coin_link_input_cmd" >&5 21696echo "${ECHO_T}$coin_link_input_cmd" >&6 21697 21698 21699 21700if test x$coin_skip_ac_output != xyes; then 21701 21702 # library extension 21703 21704 case "$CC" in 21705 clang* ) 21706 LIBEXT=a ;; 21707 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 21708 LIBEXT=lib ;; 21709 *) LIBEXT=a ;; 21710 esac 21711 21712 # Define VPATH_DISTCLEANFILES to be everything that needs to be 21713 # cleaned for distclean in a vpath configuration 21714 21715 VPATH_DISTCLEANFILES="$coin_vpath_link_files" 21716 21717 # Take out subdirectories if their configuration concluded that they 21718 # don't need to be compiled 21719 if test x"$coin_ac_skip_subdirs" != x; then 21720 new_subdirs= 21721 for i in $subdirs; do 21722 skipme=no 21723 for j in $coin_ac_skip_subdirs; do 21724 if test $i = $j; then 21725 skipme=yes; 21726 fi 21727 done 21728 if test $skipme = no; then 21729 new_subdirs="$new_subdirs $i" 21730 fi 21731 done 21732 subdirs="$new_subdirs" 21733 fi 21734 21735 # need to come before AC_OUTPUT 21736 if test x$coin_projectdir != xyes; then 21737 # write coin_subdirs to a file so that project configuration knows where to find uninstalled projects 21738 echo $coin_subdirs > coin_subdirs.txt 21739 else 21740 # substitute for OBJDIR, needed to setup .pc file for uninstalled project 21741 ABSBUILDDIR="`pwd`" 21742 21743 fi 21744 21745 cat >confcache <<\_ACEOF 21746# This file is a shell script that caches the results of configure 21747# tests run on this system so they can be shared between configure 21748# scripts and configure runs, see configure's option --config-cache. 21749# It is not useful on other systems. If it contains results you don't 21750# want to keep, you may remove or edit it. 21751# 21752# config.status only pays attention to the cache file if you give it 21753# the --recheck option to rerun configure. 21754# 21755# `ac_cv_env_foo' variables (set or unset) will be overridden when 21756# loading this file, other *unset* `ac_cv_foo' will be assigned the 21757# following values. 21758 21759_ACEOF 21760 21761# The following way of writing the cache mishandles newlines in values, 21762# but we know of no workaround that is simple, portable, and efficient. 21763# So, don't put newlines in cache variables' values. 21764# Ultrix sh set writes to stderr and can't be redirected directly, 21765# and sets the high bit in the cache file unless we assign to the vars. 21766{ 21767 (set) 2>&1 | 21768 case `(ac_space=' '; set | grep ac_space) 2>&1` in 21769 *ac_space=\ *) 21770 # `set' does not quote correctly, so add quotes (double-quote 21771 # substitution turns \\\\ into \\, and sed turns \\ into \). 21772 sed -n \ 21773 "s/'/'\\\\''/g; 21774 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21775 ;; 21776 *) 21777 # `set' quotes correctly as required by POSIX, so do not add quotes. 21778 sed -n \ 21779 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 21780 ;; 21781 esac; 21782} | 21783 sed ' 21784 t clear 21785 : clear 21786 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 21787 t end 21788 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 21789 : end' >>confcache 21790if diff $cache_file confcache >/dev/null 2>&1; then :; else 21791 if test -w $cache_file; then 21792 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 21793 cat confcache >$cache_file 21794 else 21795 echo "not updating unwritable cache $cache_file" 21796 fi 21797fi 21798rm -f confcache 21799 21800test "x$prefix" = xNONE && prefix=$ac_default_prefix 21801# Let make expand exec_prefix. 21802test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21803 21804# VPATH may cause trouble with some makes, so we remove $(srcdir), 21805# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 21806# trailing colons and then remove the whole line if VPATH becomes empty 21807# (actually we leave an empty line to preserve line numbers). 21808if test "x$srcdir" = x.; then 21809 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 21810s/:*\$(srcdir):*/:/; 21811s/:*\${srcdir}:*/:/; 21812s/:*@srcdir@:*/:/; 21813s/^\([^=]*=[ ]*\):*/\1/; 21814s/:*$//; 21815s/^[^=]*=[ ]*$//; 21816}' 21817fi 21818 21819# Transform confdefs.h into DEFS. 21820# Protect against shell expansion while executing Makefile rules. 21821# Protect against Makefile macro expansion. 21822# 21823# If the first sed substitution is executed (which looks for macros that 21824# take arguments), then we branch to the quote section. Otherwise, 21825# look for a macro that doesn't take arguments. 21826cat >confdef2opt.sed <<\_ACEOF 21827t clear 21828: clear 21829s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g 21830t quote 21831s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g 21832t quote 21833d 21834: quote 21835s,[ `~#$^&*(){}\\|;'"<>?],\\&,g 21836s,\[,\\&,g 21837s,\],\\&,g 21838s,\$,$$,g 21839p 21840_ACEOF 21841# We use echo to avoid assuming a particular line-breaking character. 21842# The extra dot is to prevent the shell from consuming trailing 21843# line-breaks from the sub-command output. A line-break within 21844# single-quotes doesn't work because, if this script is created in a 21845# platform that uses two characters for line-breaks (e.g., DOS), tr 21846# would break. 21847ac_LF_and_DOT=`echo; echo .` 21848DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` 21849rm -f confdef2opt.sed 21850 21851 21852ac_libobjs= 21853ac_ltlibobjs= 21854for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21855 # 1. Remove the extension, and $U if already installed. 21856 ac_i=`echo "$ac_i" | 21857 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 21858 # 2. Add them. 21859 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 21860 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 21861done 21862LIBOBJS=$ac_libobjs 21863 21864LTLIBOBJS=$ac_ltlibobjs 21865 21866 21867if test -z "${ALWAYS_FALSE_TRUE}" && test -z "${ALWAYS_FALSE_FALSE}"; then 21868 { { echo "$as_me:$LINENO: error: conditional \"ALWAYS_FALSE\" was never defined. 21869Usually this means the macro was only invoked conditionally." >&5 21870echo "$as_me: error: conditional \"ALWAYS_FALSE\" was never defined. 21871Usually this means the macro was only invoked conditionally." >&2;} 21872 { (exit 1); exit 1; }; } 21873fi 21874if test -z "${COIN_CC_IS_CL_TRUE}" && test -z "${COIN_CC_IS_CL_FALSE}"; then 21875 { { echo "$as_me:$LINENO: error: conditional \"COIN_CC_IS_CL\" was never defined. 21876Usually this means the macro was only invoked conditionally." >&5 21877echo "$as_me: error: conditional \"COIN_CC_IS_CL\" was never defined. 21878Usually this means the macro was only invoked conditionally." >&2;} 21879 { (exit 1); exit 1; }; } 21880fi 21881if test -z "${COIN_HAS_PKGCONFIG_TRUE}" && test -z "${COIN_HAS_PKGCONFIG_FALSE}"; then 21882 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_PKGCONFIG\" was never defined. 21883Usually this means the macro was only invoked conditionally." >&5 21884echo "$as_me: error: conditional \"COIN_HAS_PKGCONFIG\" was never defined. 21885Usually this means the macro was only invoked conditionally." >&2;} 21886 { (exit 1); exit 1; }; } 21887fi 21888if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 21889 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 21890Usually this means the macro was only invoked conditionally." >&5 21891echo "$as_me: error: conditional \"AMDEP\" was never defined. 21892Usually this means the macro was only invoked conditionally." >&2;} 21893 { (exit 1); exit 1; }; } 21894fi 21895if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21896 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 21897Usually this means the macro was only invoked conditionally." >&5 21898echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 21899Usually this means the macro was only invoked conditionally." >&2;} 21900 { (exit 1); exit 1; }; } 21901fi 21902if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 21903 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 21904Usually this means the macro was only invoked conditionally." >&5 21905echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 21906Usually this means the macro was only invoked conditionally." >&2;} 21907 { (exit 1); exit 1; }; } 21908fi 21909if test -z "${HAVE_EXTERNALS_TRUE}" && test -z "${HAVE_EXTERNALS_FALSE}"; then 21910 { { echo "$as_me:$LINENO: error: conditional \"HAVE_EXTERNALS\" was never defined. 21911Usually this means the macro was only invoked conditionally." >&5 21912echo "$as_me: error: conditional \"HAVE_EXTERNALS\" was never defined. 21913Usually this means the macro was only invoked conditionally." >&2;} 21914 { (exit 1); exit 1; }; } 21915fi 21916if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 21917 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 21918Usually this means the macro was only invoked conditionally." >&5 21919echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 21920Usually this means the macro was only invoked conditionally." >&2;} 21921 { (exit 1); exit 1; }; } 21922fi 21923if test -z "${DEPENDENCY_LINKING_TRUE}" && test -z "${DEPENDENCY_LINKING_FALSE}"; then 21924 { { echo "$as_me:$LINENO: error: conditional \"DEPENDENCY_LINKING\" was never defined. 21925Usually this means the macro was only invoked conditionally." >&5 21926echo "$as_me: error: conditional \"DEPENDENCY_LINKING\" was never defined. 21927Usually this means the macro was only invoked conditionally." >&2;} 21928 { (exit 1); exit 1; }; } 21929fi 21930 21931: ${CONFIG_STATUS=./config.status} 21932ac_clean_files_save=$ac_clean_files 21933ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21934{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 21935echo "$as_me: creating $CONFIG_STATUS" >&6;} 21936cat >$CONFIG_STATUS <<_ACEOF 21937#! $SHELL 21938# Generated by $as_me. 21939# Run this file to recreate the current configuration. 21940# Compiler output produced by configure, useful for debugging 21941# configure, is in config.log if it exists. 21942 21943debug=false 21944ac_cs_recheck=false 21945ac_cs_silent=false 21946SHELL=\${CONFIG_SHELL-$SHELL} 21947_ACEOF 21948 21949cat >>$CONFIG_STATUS <<\_ACEOF 21950## --------------------- ## 21951## M4sh Initialization. ## 21952## --------------------- ## 21953 21954# Be Bourne compatible 21955if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 21956 emulate sh 21957 NULLCMD=: 21958 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 21959 # is contrary to our usage. Disable this feature. 21960 alias -g '${1+"$@"}'='"$@"' 21961elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 21962 set -o posix 21963fi 21964DUALCASE=1; export DUALCASE # for MKS sh 21965 21966# Support unset when possible. 21967if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 21968 as_unset=unset 21969else 21970 as_unset=false 21971fi 21972 21973 21974# Work around bugs in pre-3.0 UWIN ksh. 21975$as_unset ENV MAIL MAILPATH 21976PS1='$ ' 21977PS2='> ' 21978PS4='+ ' 21979 21980# NLS nuisances. 21981for as_var in \ 21982 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 21983 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 21984 LC_TELEPHONE LC_TIME 21985do 21986 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 21987 eval $as_var=C; export $as_var 21988 else 21989 $as_unset $as_var 21990 fi 21991done 21992 21993# Required to use basename. 21994if expr a : '\(a\)' >/dev/null 2>&1; then 21995 as_expr=expr 21996else 21997 as_expr=false 21998fi 21999 22000if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 22001 as_basename=basename 22002else 22003 as_basename=false 22004fi 22005 22006 22007# Name of the executable. 22008as_me=`$as_basename "$0" || 22009$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 22010 X"$0" : 'X\(//\)$' \| \ 22011 X"$0" : 'X\(/\)$' \| \ 22012 . : '\(.\)' 2>/dev/null || 22013echo X/"$0" | 22014 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 22015 /^X\/\(\/\/\)$/{ s//\1/; q; } 22016 /^X\/\(\/\).*/{ s//\1/; q; } 22017 s/.*/./; q'` 22018 22019 22020# PATH needs CR, and LINENO needs CR and PATH. 22021# Avoid depending upon Character Ranges. 22022as_cr_letters='abcdefghijklmnopqrstuvwxyz' 22023as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 22024as_cr_Letters=$as_cr_letters$as_cr_LETTERS 22025as_cr_digits='0123456789' 22026as_cr_alnum=$as_cr_Letters$as_cr_digits 22027 22028# The user is always right. 22029if test "${PATH_SEPARATOR+set}" != set; then 22030 echo "#! /bin/sh" >conf$$.sh 22031 echo "exit 0" >>conf$$.sh 22032 chmod +x conf$$.sh 22033 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 22034 PATH_SEPARATOR=';' 22035 else 22036 PATH_SEPARATOR=: 22037 fi 22038 rm -f conf$$.sh 22039fi 22040 22041 22042 as_lineno_1=$LINENO 22043 as_lineno_2=$LINENO 22044 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 22045 test "x$as_lineno_1" != "x$as_lineno_2" && 22046 test "x$as_lineno_3" = "x$as_lineno_2" || { 22047 # Find who we are. Look in the path if we contain no path at all 22048 # relative or not. 22049 case $0 in 22050 *[\\/]* ) as_myself=$0 ;; 22051 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22052for as_dir in $PATH 22053do 22054 IFS=$as_save_IFS 22055 test -z "$as_dir" && as_dir=. 22056 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 22057done 22058 22059 ;; 22060 esac 22061 # We did not find ourselves, most probably we were run as `sh COMMAND' 22062 # in which case we are not to be found in the path. 22063 if test "x$as_myself" = x; then 22064 as_myself=$0 22065 fi 22066 if test ! -f "$as_myself"; then 22067 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 22068echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 22069 { (exit 1); exit 1; }; } 22070 fi 22071 case $CONFIG_SHELL in 22072 '') 22073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22074for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 22075do 22076 IFS=$as_save_IFS 22077 test -z "$as_dir" && as_dir=. 22078 for as_base in sh bash ksh sh5; do 22079 case $as_dir in 22080 /*) 22081 if ("$as_dir/$as_base" -c ' 22082 as_lineno_1=$LINENO 22083 as_lineno_2=$LINENO 22084 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 22085 test "x$as_lineno_1" != "x$as_lineno_2" && 22086 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 22087 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 22088 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 22089 CONFIG_SHELL=$as_dir/$as_base 22090 export CONFIG_SHELL 22091 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 22092 fi;; 22093 esac 22094 done 22095done 22096;; 22097 esac 22098 22099 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 22100 # uniformly replaced by the line number. The first 'sed' inserts a 22101 # line-number line before each line; the second 'sed' does the real 22102 # work. The second script uses 'N' to pair each line-number line 22103 # with the numbered line, and appends trailing '-' during 22104 # substitution so that $LINENO is not a special case at line end. 22105 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 22106 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 22107 sed '=' <$as_myself | 22108 sed ' 22109 N 22110 s,$,-, 22111 : loop 22112 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 22113 t loop 22114 s,-$,, 22115 s,^['$as_cr_digits']*\n,, 22116 ' >$as_me.lineno && 22117 chmod +x $as_me.lineno || 22118 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 22119echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 22120 { (exit 1); exit 1; }; } 22121 22122 # Don't try to exec as it changes $[0], causing all sort of problems 22123 # (the dirname of $[0] is not the place where we might find the 22124 # original and so on. Autoconf is especially sensible to this). 22125 . ./$as_me.lineno 22126 # Exit status is that of the last command. 22127 exit 22128} 22129 22130 22131case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 22132 *c*,-n*) ECHO_N= ECHO_C=' 22133' ECHO_T=' ' ;; 22134 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 22135 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 22136esac 22137 22138if expr a : '\(a\)' >/dev/null 2>&1; then 22139 as_expr=expr 22140else 22141 as_expr=false 22142fi 22143 22144rm -f conf$$ conf$$.exe conf$$.file 22145echo >conf$$.file 22146if ln -s conf$$.file conf$$ 2>/dev/null; then 22147 # We could just check for DJGPP; but this test a) works b) is more generic 22148 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 22149 if test -f conf$$.exe; then 22150 # Don't use ln at all; we don't have any links 22151 as_ln_s='cp -p' 22152 else 22153 as_ln_s='ln -s' 22154 fi 22155elif ln conf$$.file conf$$ 2>/dev/null; then 22156 as_ln_s=ln 22157else 22158 as_ln_s='cp -p' 22159fi 22160rm -f conf$$ conf$$.exe conf$$.file 22161 22162if mkdir -p . 2>/dev/null; then 22163 as_mkdir_p=: 22164else 22165 test -d ./-p && rmdir ./-p 22166 as_mkdir_p=false 22167fi 22168 22169as_executable_p="test -f" 22170 22171# Sed expression to map a string onto a valid CPP name. 22172as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 22173 22174# Sed expression to map a string onto a valid variable name. 22175as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 22176 22177 22178# IFS 22179# We need space, tab and new line, in precisely that order. 22180as_nl=' 22181' 22182IFS=" $as_nl" 22183 22184# CDPATH. 22185$as_unset CDPATH 22186 22187exec 6>&1 22188 22189# Open the log real soon, to keep \$[0] and so on meaningful, and to 22190# report actual input values of CONFIG_FILES etc. instead of their 22191# values after options handling. Logging --version etc. is OK. 22192exec 5>>config.log 22193{ 22194 echo 22195 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 22196## Running $as_me. ## 22197_ASBOX 22198} >&5 22199cat >&5 <<_CSEOF 22200 22201This file was extended by ThirdPartyBlas $as_me 1.4.8, which was 22202generated by GNU Autoconf 2.59. Invocation command line was 22203 22204 CONFIG_FILES = $CONFIG_FILES 22205 CONFIG_HEADERS = $CONFIG_HEADERS 22206 CONFIG_LINKS = $CONFIG_LINKS 22207 CONFIG_COMMANDS = $CONFIG_COMMANDS 22208 $ $0 $@ 22209 22210_CSEOF 22211echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 22212echo >&5 22213_ACEOF 22214 22215# Files that config.status was made for. 22216if test -n "$ac_config_files"; then 22217 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 22218fi 22219 22220if test -n "$ac_config_headers"; then 22221 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 22222fi 22223 22224if test -n "$ac_config_links"; then 22225 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 22226fi 22227 22228if test -n "$ac_config_commands"; then 22229 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 22230fi 22231 22232cat >>$CONFIG_STATUS <<\_ACEOF 22233 22234ac_cs_usage="\ 22235\`$as_me' instantiates files from templates according to the 22236current configuration. 22237 22238Usage: $0 [OPTIONS] [FILE]... 22239 22240 -h, --help print this help, then exit 22241 -V, --version print version number, then exit 22242 -q, --quiet do not print progress messages 22243 -d, --debug don't remove temporary files 22244 --recheck update $as_me by reconfiguring in the same conditions 22245 --file=FILE[:TEMPLATE] 22246 instantiate the configuration file FILE 22247 22248Configuration files: 22249$config_files 22250 22251Configuration commands: 22252$config_commands 22253 22254Report bugs to <bug-autoconf@gnu.org>." 22255_ACEOF 22256 22257cat >>$CONFIG_STATUS <<_ACEOF 22258ac_cs_version="\\ 22259ThirdPartyBlas config.status 1.4.8 22260configured by $0, generated by GNU Autoconf 2.59, 22261 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 22262 22263Copyright (C) 2003 Free Software Foundation, Inc. 22264This config.status script is free software; the Free Software Foundation 22265gives unlimited permission to copy, distribute and modify it." 22266srcdir=$srcdir 22267INSTALL="$INSTALL" 22268_ACEOF 22269 22270cat >>$CONFIG_STATUS <<\_ACEOF 22271# If no file are specified by the user, then we need to provide default 22272# value. By we need to know if files were specified by the user. 22273ac_need_defaults=: 22274while test $# != 0 22275do 22276 case $1 in 22277 --*=*) 22278 ac_option=`expr "x$1" : 'x\([^=]*\)='` 22279 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 22280 ac_shift=: 22281 ;; 22282 -*) 22283 ac_option=$1 22284 ac_optarg=$2 22285 ac_shift=shift 22286 ;; 22287 *) # This is not an option, so the user has probably given explicit 22288 # arguments. 22289 ac_option=$1 22290 ac_need_defaults=false;; 22291 esac 22292 22293 case $ac_option in 22294 # Handling of the options. 22295_ACEOF 22296cat >>$CONFIG_STATUS <<\_ACEOF 22297 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 22298 ac_cs_recheck=: ;; 22299 --version | --vers* | -V ) 22300 echo "$ac_cs_version"; exit 0 ;; 22301 --he | --h) 22302 # Conflict between --help and --header 22303 { { echo "$as_me:$LINENO: error: ambiguous option: $1 22304Try \`$0 --help' for more information." >&5 22305echo "$as_me: error: ambiguous option: $1 22306Try \`$0 --help' for more information." >&2;} 22307 { (exit 1); exit 1; }; };; 22308 --help | --hel | -h ) 22309 echo "$ac_cs_usage"; exit 0 ;; 22310 --debug | --d* | -d ) 22311 debug=: ;; 22312 --file | --fil | --fi | --f ) 22313 $ac_shift 22314 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 22315 ac_need_defaults=false;; 22316 --header | --heade | --head | --hea ) 22317 $ac_shift 22318 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 22319 ac_need_defaults=false;; 22320 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 22321 | -silent | --silent | --silen | --sile | --sil | --si | --s) 22322 ac_cs_silent=: ;; 22323 22324 # This is an error. 22325 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 22326Try \`$0 --help' for more information." >&5 22327echo "$as_me: error: unrecognized option: $1 22328Try \`$0 --help' for more information." >&2;} 22329 { (exit 1); exit 1; }; } ;; 22330 22331 *) ac_config_targets="$ac_config_targets $1" ;; 22332 22333 esac 22334 shift 22335done 22336 22337ac_configure_extra_args= 22338 22339if $ac_cs_silent; then 22340 exec 6>/dev/null 22341 ac_configure_extra_args="$ac_configure_extra_args --silent" 22342fi 22343 22344_ACEOF 22345cat >>$CONFIG_STATUS <<_ACEOF 22346if \$ac_cs_recheck; then 22347 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 22348 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 22349fi 22350 22351_ACEOF 22352 22353cat >>$CONFIG_STATUS <<_ACEOF 22354# 22355# INIT-COMMANDS section. 22356# 22357 22358AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 22359 22360_ACEOF 22361 22362 22363 22364cat >>$CONFIG_STATUS <<\_ACEOF 22365for ac_config_target in $ac_config_targets 22366do 22367 case "$ac_config_target" in 22368 # Handling of arguments. 22369 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 22370 "coinblas.pc" ) CONFIG_FILES="$CONFIG_FILES coinblas.pc" ;; 22371 "coinblas-uninstalled.pc" ) CONFIG_FILES="$CONFIG_FILES coinblas-uninstalled.pc" ;; 22372 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 22373 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 22374echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 22375 { (exit 1); exit 1; }; };; 22376 esac 22377done 22378 22379# If the user did not use the arguments to specify the items to instantiate, 22380# then the envvar interface is used. Set only those that are not. 22381# We use the long form for the default assignment because of an extremely 22382# bizarre bug on SunOS 4.1.3. 22383if $ac_need_defaults; then 22384 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 22385 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 22386fi 22387 22388# Have a temporary directory for convenience. Make it in the build tree 22389# simply because there is no reason to put it here, and in addition, 22390# creating and moving files from /tmp can sometimes cause problems. 22391# Create a temporary directory, and hook for its removal unless debugging. 22392$debug || 22393{ 22394 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 22395 trap '{ (exit 1); exit 1; }' 1 2 13 15 22396} 22397 22398# Create a (secure) tmp directory for tmp files. 22399 22400{ 22401 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 22402 test -n "$tmp" && test -d "$tmp" 22403} || 22404{ 22405 tmp=./confstat$$-$RANDOM 22406 (umask 077 && mkdir $tmp) 22407} || 22408{ 22409 echo "$me: cannot create a temporary directory in ." >&2 22410 { (exit 1); exit 1; } 22411} 22412 22413_ACEOF 22414 22415cat >>$CONFIG_STATUS <<_ACEOF 22416 22417# 22418# CONFIG_FILES section. 22419# 22420 22421# No need to generate the scripts if there are no CONFIG_FILES. 22422# This happens for instance when ./config.status config.h 22423if test -n "\$CONFIG_FILES"; then 22424 # Protect against being on the right side of a sed subst in config.status. 22425 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 22426 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 22427s,@SHELL@,$SHELL,;t t 22428s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 22429s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 22430s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 22431s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 22432s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 22433s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 22434s,@exec_prefix@,$exec_prefix,;t t 22435s,@prefix@,$prefix,;t t 22436s,@program_transform_name@,$program_transform_name,;t t 22437s,@bindir@,$bindir,;t t 22438s,@sbindir@,$sbindir,;t t 22439s,@libexecdir@,$libexecdir,;t t 22440s,@datadir@,$datadir,;t t 22441s,@sysconfdir@,$sysconfdir,;t t 22442s,@sharedstatedir@,$sharedstatedir,;t t 22443s,@localstatedir@,$localstatedir,;t t 22444s,@libdir@,$libdir,;t t 22445s,@includedir@,$includedir,;t t 22446s,@oldincludedir@,$oldincludedir,;t t 22447s,@infodir@,$infodir,;t t 22448s,@mandir@,$mandir,;t t 22449s,@build_alias@,$build_alias,;t t 22450s,@host_alias@,$host_alias,;t t 22451s,@target_alias@,$target_alias,;t t 22452s,@DEFS@,$DEFS,;t t 22453s,@ECHO_C@,$ECHO_C,;t t 22454s,@ECHO_N@,$ECHO_N,;t t 22455s,@ECHO_T@,$ECHO_T,;t t 22456s,@LIBS@,$LIBS,;t t 22457s,@ALWAYS_FALSE_TRUE@,$ALWAYS_FALSE_TRUE,;t t 22458s,@ALWAYS_FALSE_FALSE@,$ALWAYS_FALSE_FALSE,;t t 22459s,@have_svnversion@,$have_svnversion,;t t 22460s,@BLAS_SVN_REV@,$BLAS_SVN_REV,;t t 22461s,@build@,$build,;t t 22462s,@build_cpu@,$build_cpu,;t t 22463s,@build_vendor@,$build_vendor,;t t 22464s,@build_os@,$build_os,;t t 22465s,@CDEFS@,$CDEFS,;t t 22466s,@ADD_CFLAGS@,$ADD_CFLAGS,;t t 22467s,@DBG_CFLAGS@,$DBG_CFLAGS,;t t 22468s,@OPT_CFLAGS@,$OPT_CFLAGS,;t t 22469s,@sol_cc_compiler@,$sol_cc_compiler,;t t 22470s,@CC@,$CC,;t t 22471s,@CFLAGS@,$CFLAGS,;t t 22472s,@LDFLAGS@,$LDFLAGS,;t t 22473s,@CPPFLAGS@,$CPPFLAGS,;t t 22474s,@ac_ct_CC@,$ac_ct_CC,;t t 22475s,@EXEEXT@,$EXEEXT,;t t 22476s,@OBJEXT@,$OBJEXT,;t t 22477s,@COIN_CC_IS_CL_TRUE@,$COIN_CC_IS_CL_TRUE,;t t 22478s,@COIN_CC_IS_CL_FALSE@,$COIN_CC_IS_CL_FALSE,;t t 22479s,@MPICC@,$MPICC,;t t 22480s,@ADD_FFLAGS@,$ADD_FFLAGS,;t t 22481s,@DBG_FFLAGS@,$DBG_FFLAGS,;t t 22482s,@OPT_FFLAGS@,$OPT_FFLAGS,;t t 22483s,@F77@,$F77,;t t 22484s,@ac_ct_F77@,$ac_ct_F77,;t t 22485s,@FFLAGS@,$FFLAGS,;t t 22486s,@MPIF77@,$MPIF77,;t t 22487s,@FLIBS@,$FLIBS,;t t 22488s,@BLAS_PCLIBS@,$BLAS_PCLIBS,;t t 22489s,@PKG_CONFIG@,$PKG_CONFIG,;t t 22490s,@ac_ct_PKG_CONFIG@,$ac_ct_PKG_CONFIG,;t t 22491s,@COIN_HAS_PKGCONFIG_TRUE@,$COIN_HAS_PKGCONFIG_TRUE,;t t 22492s,@COIN_HAS_PKGCONFIG_FALSE@,$COIN_HAS_PKGCONFIG_FALSE,;t t 22493s,@COIN_PKG_CONFIG_PATH@,$COIN_PKG_CONFIG_PATH,;t t 22494s,@COIN_PKG_CONFIG_PATH_UNINSTALLED@,$COIN_PKG_CONFIG_PATH_UNINSTALLED,;t t 22495s,@EGREP@,$EGREP,;t t 22496s,@LN_S@,$LN_S,;t t 22497s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 22498s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 22499s,@INSTALL_DATA@,$INSTALL_DATA,;t t 22500s,@CYGPATH_W@,$CYGPATH_W,;t t 22501s,@PACKAGE@,$PACKAGE,;t t 22502s,@VERSION@,$VERSION,;t t 22503s,@ACLOCAL@,$ACLOCAL,;t t 22504s,@AUTOCONF@,$AUTOCONF,;t t 22505s,@AUTOMAKE@,$AUTOMAKE,;t t 22506s,@AUTOHEADER@,$AUTOHEADER,;t t 22507s,@MAKEINFO@,$MAKEINFO,;t t 22508s,@install_sh@,$install_sh,;t t 22509s,@STRIP@,$STRIP,;t t 22510s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 22511s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 22512s,@mkdir_p@,$mkdir_p,;t t 22513s,@AWK@,$AWK,;t t 22514s,@SET_MAKE@,$SET_MAKE,;t t 22515s,@am__leading_dot@,$am__leading_dot,;t t 22516s,@AMTAR@,$AMTAR,;t t 22517s,@am__tar@,$am__tar,;t t 22518s,@am__untar@,$am__untar,;t t 22519s,@DEPDIR@,$DEPDIR,;t t 22520s,@am__include@,$am__include,;t t 22521s,@am__quote@,$am__quote,;t t 22522s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 22523s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 22524s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 22525s,@CCDEPMODE@,$CCDEPMODE,;t t 22526s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t 22527s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t 22528s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t 22529s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t 22530s,@MAINT@,$MAINT,;t t 22531s,@LIBTOOLM4@,$LIBTOOLM4,;t t 22532s,@have_autoconf@,$have_autoconf,;t t 22533s,@have_automake@,$have_automake,;t t 22534s,@have_svn@,$have_svn,;t t 22535s,@BUILDTOOLSDIR@,$BUILDTOOLSDIR,;t t 22536s,@AUX_DIR@,$AUX_DIR,;t t 22537s,@abs_source_dir@,$abs_source_dir,;t t 22538s,@abs_lib_dir@,$abs_lib_dir,;t t 22539s,@abs_include_dir@,$abs_include_dir,;t t 22540s,@abs_bin_dir@,$abs_bin_dir,;t t 22541s,@HAVE_EXTERNALS_TRUE@,$HAVE_EXTERNALS_TRUE,;t t 22542s,@HAVE_EXTERNALS_FALSE@,$HAVE_EXTERNALS_FALSE,;t t 22543s,@host@,$host,;t t 22544s,@host_cpu@,$host_cpu,;t t 22545s,@host_vendor@,$host_vendor,;t t 22546s,@host_os@,$host_os,;t t 22547s,@ECHO@,$ECHO,;t t 22548s,@AR@,$AR,;t t 22549s,@ac_ct_AR@,$ac_ct_AR,;t t 22550s,@RANLIB@,$RANLIB,;t t 22551s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 22552s,@CPP@,$CPP,;t t 22553s,@CXX@,$CXX,;t t 22554s,@CXXFLAGS@,$CXXFLAGS,;t t 22555s,@ac_ct_CXX@,$ac_ct_CXX,;t t 22556s,@CXXDEPMODE@,$CXXDEPMODE,;t t 22557s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t 22558s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t 22559s,@CXXCPP@,$CXXCPP,;t t 22560s,@LIBTOOL@,$LIBTOOL,;t t 22561s,@ac_c_preproc_warn_flag@,$ac_c_preproc_warn_flag,;t t 22562s,@ac_cxx_preproc_warn_flag@,$ac_cxx_preproc_warn_flag,;t t 22563s,@dos2unix@,$dos2unix,;t t 22564s,@RPATH_FLAGS@,$RPATH_FLAGS,;t t 22565s,@DEPENDENCY_LINKING_TRUE@,$DEPENDENCY_LINKING_TRUE,;t t 22566s,@DEPENDENCY_LINKING_FALSE@,$DEPENDENCY_LINKING_FALSE,;t t 22567s,@LT_LDFLAGS@,$LT_LDFLAGS,;t t 22568s,@LIBEXT@,$LIBEXT,;t t 22569s,@VPATH_DISTCLEANFILES@,$VPATH_DISTCLEANFILES,;t t 22570s,@ABSBUILDDIR@,$ABSBUILDDIR,;t t 22571s,@LIBOBJS@,$LIBOBJS,;t t 22572s,@LTLIBOBJS@,$LTLIBOBJS,;t t 22573CEOF 22574 22575_ACEOF 22576 22577 cat >>$CONFIG_STATUS <<\_ACEOF 22578 # Split the substitutions into bite-sized pieces for seds with 22579 # small command number limits, like on Digital OSF/1 and HP-UX. 22580 ac_max_sed_lines=48 22581 ac_sed_frag=1 # Number of current file. 22582 ac_beg=1 # First line for current file. 22583 ac_end=$ac_max_sed_lines # Line after last line for current file. 22584 ac_more_lines=: 22585 ac_sed_cmds= 22586 while $ac_more_lines; do 22587 if test $ac_beg -gt 1; then 22588 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 22589 else 22590 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 22591 fi 22592 if test ! -s $tmp/subs.frag; then 22593 ac_more_lines=false 22594 else 22595 # The purpose of the label and of the branching condition is to 22596 # speed up the sed processing (if there are no `@' at all, there 22597 # is no need to browse any of the substitutions). 22598 # These are the two extra sed commands mentioned above. 22599 (echo ':t 22600 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 22601 if test -z "$ac_sed_cmds"; then 22602 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 22603 else 22604 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 22605 fi 22606 ac_sed_frag=`expr $ac_sed_frag + 1` 22607 ac_beg=$ac_end 22608 ac_end=`expr $ac_end + $ac_max_sed_lines` 22609 fi 22610 done 22611 if test -z "$ac_sed_cmds"; then 22612 ac_sed_cmds=cat 22613 fi 22614fi # test -n "$CONFIG_FILES" 22615 22616_ACEOF 22617cat >>$CONFIG_STATUS <<\_ACEOF 22618for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 22619 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 22620 case $ac_file in 22621 - | *:- | *:-:* ) # input from stdin 22622 cat >$tmp/stdin 22623 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 22624 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 22625 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 22626 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 22627 * ) ac_file_in=$ac_file.in ;; 22628 esac 22629 22630 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 22631 ac_dir=`(dirname "$ac_file") 2>/dev/null || 22632$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22633 X"$ac_file" : 'X\(//\)[^/]' \| \ 22634 X"$ac_file" : 'X\(//\)$' \| \ 22635 X"$ac_file" : 'X\(/\)' \| \ 22636 . : '\(.\)' 2>/dev/null || 22637echo X"$ac_file" | 22638 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22639 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22640 /^X\(\/\/\)$/{ s//\1/; q; } 22641 /^X\(\/\).*/{ s//\1/; q; } 22642 s/.*/./; q'` 22643 { if $as_mkdir_p; then 22644 mkdir -p "$ac_dir" 22645 else 22646 as_dir="$ac_dir" 22647 as_dirs= 22648 while test ! -d "$as_dir"; do 22649 as_dirs="$as_dir $as_dirs" 22650 as_dir=`(dirname "$as_dir") 2>/dev/null || 22651$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22652 X"$as_dir" : 'X\(//\)[^/]' \| \ 22653 X"$as_dir" : 'X\(//\)$' \| \ 22654 X"$as_dir" : 'X\(/\)' \| \ 22655 . : '\(.\)' 2>/dev/null || 22656echo X"$as_dir" | 22657 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22658 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22659 /^X\(\/\/\)$/{ s//\1/; q; } 22660 /^X\(\/\).*/{ s//\1/; q; } 22661 s/.*/./; q'` 22662 done 22663 test ! -n "$as_dirs" || mkdir $as_dirs 22664 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 22665echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 22666 { (exit 1); exit 1; }; }; } 22667 22668 ac_builddir=. 22669 22670if test "$ac_dir" != .; then 22671 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 22672 # A "../" for each directory in $ac_dir_suffix. 22673 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 22674else 22675 ac_dir_suffix= ac_top_builddir= 22676fi 22677 22678case $srcdir in 22679 .) # No --srcdir option. We are building in place. 22680 ac_srcdir=. 22681 if test -z "$ac_top_builddir"; then 22682 ac_top_srcdir=. 22683 else 22684 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 22685 fi ;; 22686 [\\/]* | ?:[\\/]* ) # Absolute path. 22687 ac_srcdir=$srcdir$ac_dir_suffix; 22688 ac_top_srcdir=$srcdir ;; 22689 *) # Relative path. 22690 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 22691 ac_top_srcdir=$ac_top_builddir$srcdir ;; 22692esac 22693 22694# Do not use `cd foo && pwd` to compute absolute paths, because 22695# the directories may not exist. 22696case `pwd` in 22697.) ac_abs_builddir="$ac_dir";; 22698*) 22699 case "$ac_dir" in 22700 .) ac_abs_builddir=`pwd`;; 22701 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 22702 *) ac_abs_builddir=`pwd`/"$ac_dir";; 22703 esac;; 22704esac 22705case $ac_abs_builddir in 22706.) ac_abs_top_builddir=${ac_top_builddir}.;; 22707*) 22708 case ${ac_top_builddir}. in 22709 .) ac_abs_top_builddir=$ac_abs_builddir;; 22710 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 22711 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 22712 esac;; 22713esac 22714case $ac_abs_builddir in 22715.) ac_abs_srcdir=$ac_srcdir;; 22716*) 22717 case $ac_srcdir in 22718 .) ac_abs_srcdir=$ac_abs_builddir;; 22719 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 22720 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 22721 esac;; 22722esac 22723case $ac_abs_builddir in 22724.) ac_abs_top_srcdir=$ac_top_srcdir;; 22725*) 22726 case $ac_top_srcdir in 22727 .) ac_abs_top_srcdir=$ac_abs_builddir;; 22728 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 22729 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 22730 esac;; 22731esac 22732 22733 22734 case $INSTALL in 22735 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22736 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 22737 esac 22738 22739 if test x"$ac_file" != x-; then 22740 { echo "$as_me:$LINENO: creating $ac_file" >&5 22741echo "$as_me: creating $ac_file" >&6;} 22742 rm -f "$ac_file" 22743 fi 22744 # Let's still pretend it is `configure' which instantiates (i.e., don't 22745 # use $as_me), people would be surprised to read: 22746 # /* config.h. Generated by config.status. */ 22747 if test x"$ac_file" = x-; then 22748 configure_input= 22749 else 22750 configure_input="$ac_file. " 22751 fi 22752 configure_input=$configure_input"Generated from `echo $ac_file_in | 22753 sed 's,.*/,,'` by configure." 22754 22755 # First look for the input files in the build tree, otherwise in the 22756 # src tree. 22757 ac_file_inputs=`IFS=: 22758 for f in $ac_file_in; do 22759 case $f in 22760 -) echo $tmp/stdin ;; 22761 [\\/$]*) 22762 # Absolute (can't be DOS-style, as IFS=:) 22763 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 22764echo "$as_me: error: cannot find input file: $f" >&2;} 22765 { (exit 1); exit 1; }; } 22766 echo "$f";; 22767 *) # Relative 22768 if test -f "$f"; then 22769 # Build tree 22770 echo "$f" 22771 elif test -f "$srcdir/$f"; then 22772 # Source tree 22773 echo "$srcdir/$f" 22774 else 22775 # /dev/null tree 22776 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 22777echo "$as_me: error: cannot find input file: $f" >&2;} 22778 { (exit 1); exit 1; }; } 22779 fi;; 22780 esac 22781 done` || { (exit 1); exit 1; } 22782_ACEOF 22783cat >>$CONFIG_STATUS <<_ACEOF 22784 sed "$ac_vpsub 22785$extrasub 22786_ACEOF 22787cat >>$CONFIG_STATUS <<\_ACEOF 22788:t 22789/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22790s,@configure_input@,$configure_input,;t t 22791s,@srcdir@,$ac_srcdir,;t t 22792s,@abs_srcdir@,$ac_abs_srcdir,;t t 22793s,@top_srcdir@,$ac_top_srcdir,;t t 22794s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 22795s,@builddir@,$ac_builddir,;t t 22796s,@abs_builddir@,$ac_abs_builddir,;t t 22797s,@top_builddir@,$ac_top_builddir,;t t 22798s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 22799s,@INSTALL@,$ac_INSTALL,;t t 22800" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 22801 rm -f $tmp/stdin 22802 if test x"$ac_file" != x-; then 22803 mv $tmp/out $ac_file 22804 else 22805 cat $tmp/out 22806 rm -f $tmp/out 22807 fi 22808 22809done 22810_ACEOF 22811cat >>$CONFIG_STATUS <<\_ACEOF 22812 22813# 22814# CONFIG_COMMANDS section. 22815# 22816for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 22817 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 22818 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 22819 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 22820$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22821 X"$ac_dest" : 'X\(//\)[^/]' \| \ 22822 X"$ac_dest" : 'X\(//\)$' \| \ 22823 X"$ac_dest" : 'X\(/\)' \| \ 22824 . : '\(.\)' 2>/dev/null || 22825echo X"$ac_dest" | 22826 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22827 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22828 /^X\(\/\/\)$/{ s//\1/; q; } 22829 /^X\(\/\).*/{ s//\1/; q; } 22830 s/.*/./; q'` 22831 { if $as_mkdir_p; then 22832 mkdir -p "$ac_dir" 22833 else 22834 as_dir="$ac_dir" 22835 as_dirs= 22836 while test ! -d "$as_dir"; do 22837 as_dirs="$as_dir $as_dirs" 22838 as_dir=`(dirname "$as_dir") 2>/dev/null || 22839$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22840 X"$as_dir" : 'X\(//\)[^/]' \| \ 22841 X"$as_dir" : 'X\(//\)$' \| \ 22842 X"$as_dir" : 'X\(/\)' \| \ 22843 . : '\(.\)' 2>/dev/null || 22844echo X"$as_dir" | 22845 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22846 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22847 /^X\(\/\/\)$/{ s//\1/; q; } 22848 /^X\(\/\).*/{ s//\1/; q; } 22849 s/.*/./; q'` 22850 done 22851 test ! -n "$as_dirs" || mkdir $as_dirs 22852 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 22853echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 22854 { (exit 1); exit 1; }; }; } 22855 22856 ac_builddir=. 22857 22858if test "$ac_dir" != .; then 22859 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 22860 # A "../" for each directory in $ac_dir_suffix. 22861 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 22862else 22863 ac_dir_suffix= ac_top_builddir= 22864fi 22865 22866case $srcdir in 22867 .) # No --srcdir option. We are building in place. 22868 ac_srcdir=. 22869 if test -z "$ac_top_builddir"; then 22870 ac_top_srcdir=. 22871 else 22872 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 22873 fi ;; 22874 [\\/]* | ?:[\\/]* ) # Absolute path. 22875 ac_srcdir=$srcdir$ac_dir_suffix; 22876 ac_top_srcdir=$srcdir ;; 22877 *) # Relative path. 22878 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 22879 ac_top_srcdir=$ac_top_builddir$srcdir ;; 22880esac 22881 22882# Do not use `cd foo && pwd` to compute absolute paths, because 22883# the directories may not exist. 22884case `pwd` in 22885.) ac_abs_builddir="$ac_dir";; 22886*) 22887 case "$ac_dir" in 22888 .) ac_abs_builddir=`pwd`;; 22889 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 22890 *) ac_abs_builddir=`pwd`/"$ac_dir";; 22891 esac;; 22892esac 22893case $ac_abs_builddir in 22894.) ac_abs_top_builddir=${ac_top_builddir}.;; 22895*) 22896 case ${ac_top_builddir}. in 22897 .) ac_abs_top_builddir=$ac_abs_builddir;; 22898 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 22899 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 22900 esac;; 22901esac 22902case $ac_abs_builddir in 22903.) ac_abs_srcdir=$ac_srcdir;; 22904*) 22905 case $ac_srcdir in 22906 .) ac_abs_srcdir=$ac_abs_builddir;; 22907 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 22908 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 22909 esac;; 22910esac 22911case $ac_abs_builddir in 22912.) ac_abs_top_srcdir=$ac_top_srcdir;; 22913*) 22914 case $ac_top_srcdir in 22915 .) ac_abs_top_srcdir=$ac_abs_builddir;; 22916 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 22917 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 22918 esac;; 22919esac 22920 22921 22922 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 22923echo "$as_me: executing $ac_dest commands" >&6;} 22924 case $ac_dest in 22925 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 22926 # Strip MF so we end up with the name of the file. 22927 mf=`echo "$mf" | sed -e 's/:.*$//'` 22928 # Check whether this is an Automake generated Makefile or not. 22929 # We used to match only the files named `Makefile.in', but 22930 # some people rename them; so instead we look at the file content. 22931 # Grep'ing the first line is not enough: some people post-process 22932 # each Makefile.in and add a new line on top of each file to say so. 22933 # So let's grep whole file. 22934 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 22935 dirpart=`(dirname "$mf") 2>/dev/null || 22936$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22937 X"$mf" : 'X\(//\)[^/]' \| \ 22938 X"$mf" : 'X\(//\)$' \| \ 22939 X"$mf" : 'X\(/\)' \| \ 22940 . : '\(.\)' 2>/dev/null || 22941echo X"$mf" | 22942 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22943 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22944 /^X\(\/\/\)$/{ s//\1/; q; } 22945 /^X\(\/\).*/{ s//\1/; q; } 22946 s/.*/./; q'` 22947 else 22948 continue 22949 fi 22950 # Extract the definition of DEPDIR, am__include, and am__quote 22951 # from the Makefile without running `make'. 22952 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 22953 test -z "$DEPDIR" && continue 22954 am__include=`sed -n 's/^am__include = //p' < "$mf"` 22955 test -z "am__include" && continue 22956 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 22957 # When using ansi2knr, U may be empty or an underscore; expand it 22958 U=`sed -n 's/^U = //p' < "$mf"` 22959 # Find all dependency output files, they are included files with 22960 # $(DEPDIR) in their names. We invoke sed twice because it is the 22961 # simplest approach to changing $(DEPDIR) to its actual value in the 22962 # expansion. 22963 for file in `sed -n " 22964 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 22965 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 22966 # Make sure the directory exists. 22967 test -f "$dirpart/$file" && continue 22968 fdir=`(dirname "$file") 2>/dev/null || 22969$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22970 X"$file" : 'X\(//\)[^/]' \| \ 22971 X"$file" : 'X\(//\)$' \| \ 22972 X"$file" : 'X\(/\)' \| \ 22973 . : '\(.\)' 2>/dev/null || 22974echo X"$file" | 22975 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22976 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22977 /^X\(\/\/\)$/{ s//\1/; q; } 22978 /^X\(\/\).*/{ s//\1/; q; } 22979 s/.*/./; q'` 22980 { if $as_mkdir_p; then 22981 mkdir -p $dirpart/$fdir 22982 else 22983 as_dir=$dirpart/$fdir 22984 as_dirs= 22985 while test ! -d "$as_dir"; do 22986 as_dirs="$as_dir $as_dirs" 22987 as_dir=`(dirname "$as_dir") 2>/dev/null || 22988$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22989 X"$as_dir" : 'X\(//\)[^/]' \| \ 22990 X"$as_dir" : 'X\(//\)$' \| \ 22991 X"$as_dir" : 'X\(/\)' \| \ 22992 . : '\(.\)' 2>/dev/null || 22993echo X"$as_dir" | 22994 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22995 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22996 /^X\(\/\/\)$/{ s//\1/; q; } 22997 /^X\(\/\).*/{ s//\1/; q; } 22998 s/.*/./; q'` 22999 done 23000 test ! -n "$as_dirs" || mkdir $as_dirs 23001 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 23002echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} 23003 { (exit 1); exit 1; }; }; } 23004 23005 # echo "creating $dirpart/$file" 23006 echo '# dummy' > "$dirpart/$file" 23007 done 23008done 23009 ;; 23010 esac 23011done 23012_ACEOF 23013 23014cat >>$CONFIG_STATUS <<\_ACEOF 23015 23016{ (exit 0); exit 0; } 23017_ACEOF 23018chmod +x $CONFIG_STATUS 23019ac_clean_files=$ac_clean_files_save 23020 23021 23022# configure is writing to config.log, and then calls config.status. 23023# config.status does its own redirection, appending to config.log. 23024# Unfortunately, on DOS this fails, as config.log is still kept open 23025# by configure, so config.status won't be able to write to it; its 23026# output is simply discarded. So we exec the FD to /dev/null, 23027# effectively closing config.log, so it can be properly (re)opened and 23028# appended to by config.status. When coming back to configure, we 23029# need to make the FD available again. 23030if test "$no_create" != yes; then 23031 ac_cs_success=: 23032 ac_config_status_args= 23033 test "$silent" = yes && 23034 ac_config_status_args="$ac_config_status_args --quiet" 23035 exec 5>/dev/null 23036 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23037 exec 5>>config.log 23038 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23039 # would make configure fail if this is the last instruction. 23040 $ac_cs_success || { (exit 1); exit 1; } 23041fi 23042 23043 23044 if test x"$coin_vpath_link_files" = x; then : ; else 23045 lnkcmd="$coin_link_input_cmd" 23046 if test "$lnkcmd" = cp; then 23047 { echo "$as_me:$LINENO: Copying data files for VPATH configuration" >&5 23048echo "$as_me: Copying data files for VPATH configuration" >&6;} 23049 else 23050 { echo "$as_me:$LINENO: Creating VPATH links for data files" >&5 23051echo "$as_me: Creating VPATH links for data files" >&6;} 23052 fi 23053 for file in $coin_vpath_link_files; do 23054 dir=`(dirname "./$file") 2>/dev/null || 23055$as_expr X"./$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23056 X"./$file" : 'X\(//\)[^/]' \| \ 23057 X"./$file" : 'X\(//\)$' \| \ 23058 X"./$file" : 'X\(/\)' \| \ 23059 . : '\(.\)' 2>/dev/null || 23060echo X"./$file" | 23061 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23062 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23063 /^X\(\/\/\)$/{ s//\1/; q; } 23064 /^X\(\/\).*/{ s//\1/; q; } 23065 s/.*/./; q'` 23066 if test -d $dir; then : ; else 23067 { if $as_mkdir_p; then 23068 mkdir -p $dir 23069 else 23070 as_dir=$dir 23071 as_dirs= 23072 while test ! -d "$as_dir"; do 23073 as_dirs="$as_dir $as_dirs" 23074 as_dir=`(dirname "$as_dir") 2>/dev/null || 23075$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23076 X"$as_dir" : 'X\(//\)[^/]' \| \ 23077 X"$as_dir" : 'X\(//\)$' \| \ 23078 X"$as_dir" : 'X\(/\)' \| \ 23079 . : '\(.\)' 2>/dev/null || 23080echo X"$as_dir" | 23081 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23082 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23083 /^X\(\/\/\)$/{ s//\1/; q; } 23084 /^X\(\/\).*/{ s//\1/; q; } 23085 s/.*/./; q'` 23086 done 23087 test ! -n "$as_dirs" || mkdir $as_dirs 23088 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dir" >&5 23089echo "$as_me: error: cannot create directory $dir" >&2;} 23090 { (exit 1); exit 1; }; }; } 23091 23092 fi 23093 rm -f $file 23094 $lnkcmd $abs_source_dir/$file $file 23095 done 23096 fi 23097 23098 { echo "$as_me:$LINENO: In case of trouble, first consult the troubleshooting page at https://projects.coin-or.org/BuildTools/wiki/user-troubleshooting" >&5 23099echo "$as_me: In case of trouble, first consult the troubleshooting page at https://projects.coin-or.org/BuildTools/wiki/user-troubleshooting" >&6;} 23100 if test x$coin_projectdir = xyes; then 23101 { echo "$as_me:$LINENO: Configuration of $PACKAGE_NAME successful" >&5 23102echo "$as_me: Configuration of $PACKAGE_NAME successful" >&6;} 23103 else 23104 { echo "$as_me:$LINENO: Main configuration of $PACKAGE_NAME successful" >&5 23105echo "$as_me: Main configuration of $PACKAGE_NAME successful" >&6;} 23106 fi 23107else 23108 { echo "$as_me:$LINENO: No configuration of $PACKAGE_NAME necessary" >&5 23109echo "$as_me: No configuration of $PACKAGE_NAME necessary" >&6;} 23110fi 23111 23112 23113