1#! /bin/sh 2# From configure.ac 0.9. 3# Guess values for system-dependent variables and create Makefiles. 4# Generated by GNU Autoconf 2.59 for Alps 2.0.1. 5# 6# Report bugs to <https://github.com/coin-or/CHiPPS-ALPS/issues/new>. 7# 8# Copyright (C) 2003 Free Software Foundation, Inc. 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11# 12# 13# /*===========================================================================* 14# * This file is part of the Abstract Library for Parallel Search (ALPS). * 15# * * 16# * ALPS is distributed under the Eclipse Public License as part of the * 17# * COIN-OR repository (http://www.coin-or.org). * 18# * * 19# * Authors: * 20# * * 21# * Yan Xu, Lehigh University * 22# * Aykut Bulut, Lehigh University * 23# * Ted Ralphs, Lehigh University * 24# * * 25# * Conceptual Design: * 26# * * 27# * Yan Xu, Lehigh University * 28# * Ted Ralphs, Lehigh University * 29# * Laszlo Ladanyi, IBM T.J. Watson Research Center * 30# * Matthew Saltzman, Clemson University * 31# * * 32# * * 33# * Copyright (C) 2001-2019, Lehigh University, Yan Xu, and Ted Ralphs. * 34# *===========================================================================*/ 35# 36## --------------------- ## 37## M4sh Initialization. ## 38## --------------------- ## 39 40# Be Bourne compatible 41if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 42 emulate sh 43 NULLCMD=: 44 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 45 # is contrary to our usage. Disable this feature. 46 alias -g '${1+"$@"}'='"$@"' 47elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 48 set -o posix 49fi 50DUALCASE=1; export DUALCASE # for MKS sh 51 52# Support unset when possible. 53if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 54 as_unset=unset 55else 56 as_unset=false 57fi 58 59 60# Work around bugs in pre-3.0 UWIN ksh. 61$as_unset ENV MAIL MAILPATH 62PS1='$ ' 63PS2='> ' 64PS4='+ ' 65 66# NLS nuisances. 67for as_var in \ 68 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 69 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 70 LC_TELEPHONE LC_TIME 71do 72 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 73 eval $as_var=C; export $as_var 74 else 75 $as_unset $as_var 76 fi 77done 78 79# Required to use basename. 80if expr a : '\(a\)' >/dev/null 2>&1; then 81 as_expr=expr 82else 83 as_expr=false 84fi 85 86if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 87 as_basename=basename 88else 89 as_basename=false 90fi 91 92 93# Name of the executable. 94as_me=`$as_basename "$0" || 95$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 96 X"$0" : 'X\(//\)$' \| \ 97 X"$0" : 'X\(/\)$' \| \ 98 . : '\(.\)' 2>/dev/null || 99echo X/"$0" | 100 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 101 /^X\/\(\/\/\)$/{ s//\1/; q; } 102 /^X\/\(\/\).*/{ s//\1/; q; } 103 s/.*/./; q'` 104 105 106# PATH needs CR, and LINENO needs CR and PATH. 107# Avoid depending upon Character Ranges. 108as_cr_letters='abcdefghijklmnopqrstuvwxyz' 109as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 110as_cr_Letters=$as_cr_letters$as_cr_LETTERS 111as_cr_digits='0123456789' 112as_cr_alnum=$as_cr_Letters$as_cr_digits 113 114# The user is always right. 115if test "${PATH_SEPARATOR+set}" != set; then 116 echo "#! /bin/sh" >conf$$.sh 117 echo "exit 0" >>conf$$.sh 118 chmod +x conf$$.sh 119 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 120 PATH_SEPARATOR=';' 121 else 122 PATH_SEPARATOR=: 123 fi 124 rm -f conf$$.sh 125fi 126 127 128 as_lineno_1=$LINENO 129 as_lineno_2=$LINENO 130 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 131 test "x$as_lineno_1" != "x$as_lineno_2" && 132 test "x$as_lineno_3" = "x$as_lineno_2" || { 133 # Find who we are. Look in the path if we contain no path at all 134 # relative or not. 135 case $0 in 136 *[\\/]* ) as_myself=$0 ;; 137 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 138for as_dir in $PATH 139do 140 IFS=$as_save_IFS 141 test -z "$as_dir" && as_dir=. 142 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 143done 144 145 ;; 146 esac 147 # We did not find ourselves, most probably we were run as `sh COMMAND' 148 # in which case we are not to be found in the path. 149 if test "x$as_myself" = x; then 150 as_myself=$0 151 fi 152 if test ! -f "$as_myself"; then 153 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 154 { (exit 1); exit 1; }; } 155 fi 156 case $CONFIG_SHELL in 157 '') 158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 159for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 160do 161 IFS=$as_save_IFS 162 test -z "$as_dir" && as_dir=. 163 for as_base in sh bash ksh sh5; do 164 case $as_dir in 165 /*) 166 if ("$as_dir/$as_base" -c ' 167 as_lineno_1=$LINENO 168 as_lineno_2=$LINENO 169 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 170 test "x$as_lineno_1" != "x$as_lineno_2" && 171 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 172 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 173 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 174 CONFIG_SHELL=$as_dir/$as_base 175 export CONFIG_SHELL 176 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 177 fi;; 178 esac 179 done 180done 181;; 182 esac 183 184 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 185 # uniformly replaced by the line number. The first 'sed' inserts a 186 # line-number line before each line; the second 'sed' does the real 187 # work. The second script uses 'N' to pair each line-number line 188 # with the numbered line, and appends trailing '-' during 189 # substitution so that $LINENO is not a special case at line end. 190 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 191 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 192 sed '=' <$as_myself | 193 sed ' 194 N 195 s,$,-, 196 : loop 197 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 198 t loop 199 s,-$,, 200 s,^['$as_cr_digits']*\n,, 201 ' >$as_me.lineno && 202 chmod +x $as_me.lineno || 203 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 204 { (exit 1); exit 1; }; } 205 206 # Don't try to exec as it changes $[0], causing all sort of problems 207 # (the dirname of $[0] is not the place where we might find the 208 # original and so on. Autoconf is especially sensible to this). 209 . ./$as_me.lineno 210 # Exit status is that of the last command. 211 exit 212} 213 214 215case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 216 *c*,-n*) ECHO_N= ECHO_C=' 217' ECHO_T=' ' ;; 218 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 219 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 220esac 221 222if expr a : '\(a\)' >/dev/null 2>&1; then 223 as_expr=expr 224else 225 as_expr=false 226fi 227 228rm -f conf$$ conf$$.exe conf$$.file 229echo >conf$$.file 230if ln -s conf$$.file conf$$ 2>/dev/null; then 231 # We could just check for DJGPP; but this test a) works b) is more generic 232 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 233 if test -f conf$$.exe; then 234 # Don't use ln at all; we don't have any links 235 as_ln_s='cp -p' 236 else 237 as_ln_s='ln -s' 238 fi 239elif ln conf$$.file conf$$ 2>/dev/null; then 240 as_ln_s=ln 241else 242 as_ln_s='cp -p' 243fi 244rm -f conf$$ conf$$.exe conf$$.file 245 246if mkdir -p . 2>/dev/null; then 247 as_mkdir_p=: 248else 249 test -d ./-p && rmdir ./-p 250 as_mkdir_p=false 251fi 252 253as_executable_p="test -f" 254 255# Sed expression to map a string onto a valid CPP name. 256as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 257 258# Sed expression to map a string onto a valid variable name. 259as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 260 261 262# IFS 263# We need space, tab and new line, in precisely that order. 264as_nl=' 265' 266IFS=" $as_nl" 267 268# CDPATH. 269$as_unset CDPATH 270 271 272 273# Check that we are running under the correct shell. 274SHELL=${CONFIG_SHELL-/bin/sh} 275 276case X$ECHO in 277X*--fallback-echo) 278 # Remove one level of quotation (which was required for Make). 279 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 280 ;; 281esac 282 283echo=${ECHO-echo} 284if test "X$1" = X--no-reexec; then 285 # Discard the --no-reexec flag, and continue. 286 shift 287elif test "X$1" = X--fallback-echo; then 288 # Avoid inline document here, it may be left over 289 : 290elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 291 # Yippee, $echo works! 292 : 293else 294 # Restart under the correct shell. 295 exec $SHELL "$0" --no-reexec ${1+"$@"} 296fi 297 298if test "X$1" = X--fallback-echo; then 299 # used as fallback echo 300 shift 301 cat <<EOF 302$* 303EOF 304 exit 0 305fi 306 307# The HP-UX ksh and POSIX shell print the target directory to stdout 308# if CDPATH is set. 309(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 310 311if test -z "$ECHO"; then 312if test "X${echo_test_string+set}" != Xset; then 313# find a string as large as possible, as long as the shell can cope with it 314 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 315 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 316 if (echo_test_string=`eval $cmd`) 2>/dev/null && 317 echo_test_string=`eval $cmd` && 318 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 319 then 320 break 321 fi 322 done 323fi 324 325if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 326 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 327 test "X$echo_testing_string" = "X$echo_test_string"; then 328 : 329else 330 # The Solaris, AIX, and Digital Unix default echo programs unquote 331 # backslashes. This makes it impossible to quote backslashes using 332 # echo "$something" | sed 's/\\/\\\\/g' 333 # 334 # So, first we look for a working echo in the user's PATH. 335 336 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 337 for dir in $PATH /usr/ucb; do 338 IFS="$lt_save_ifs" 339 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 340 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 341 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 342 test "X$echo_testing_string" = "X$echo_test_string"; then 343 echo="$dir/echo" 344 break 345 fi 346 done 347 IFS="$lt_save_ifs" 348 349 if test "X$echo" = Xecho; then 350 # We didn't find a better echo, so look for alternatives. 351 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 352 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 353 test "X$echo_testing_string" = "X$echo_test_string"; then 354 # This shell has a builtin print -r that does the trick. 355 echo='print -r' 356 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 357 test "X$CONFIG_SHELL" != X/bin/ksh; then 358 # If we have ksh, try running configure again with it. 359 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 360 export ORIGINAL_CONFIG_SHELL 361 CONFIG_SHELL=/bin/ksh 362 export CONFIG_SHELL 363 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 364 else 365 # Try using printf. 366 echo='printf %s\n' 367 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 368 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 369 test "X$echo_testing_string" = "X$echo_test_string"; then 370 # Cool, printf works 371 : 372 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 373 test "X$echo_testing_string" = 'X\t' && 374 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 375 test "X$echo_testing_string" = "X$echo_test_string"; then 376 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 377 export CONFIG_SHELL 378 SHELL="$CONFIG_SHELL" 379 export SHELL 380 echo="$CONFIG_SHELL $0 --fallback-echo" 381 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 382 test "X$echo_testing_string" = 'X\t' && 383 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 384 test "X$echo_testing_string" = "X$echo_test_string"; then 385 echo="$CONFIG_SHELL $0 --fallback-echo" 386 else 387 # maybe with a smaller string... 388 prev=: 389 390 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 391 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 392 then 393 break 394 fi 395 prev="$cmd" 396 done 397 398 if test "$prev" != 'sed 50q "$0"'; then 399 echo_test_string=`eval $prev` 400 export echo_test_string 401 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 402 else 403 # Oops. We lost completely, so just stick with echo. 404 echo=echo 405 fi 406 fi 407 fi 408 fi 409fi 410fi 411 412# Copy echo and quote the copy suitably for passing to libtool from 413# the Makefile, instead of quoting the original, which is used later. 414ECHO=$echo 415if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 416 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 417fi 418 419 420 421 422tagnames=${tagnames+${tagnames},}CXX 423 424tagnames=${tagnames+${tagnames},}F77 425 426# Name of the host. 427# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 428# so uname gets run too. 429ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 430 431exec 6>&1 432 433# 434# Initializations. 435# 436ac_default_prefix=/usr/local 437ac_config_libobj_dir=. 438cross_compiling=no 439subdirs= 440MFLAGS= 441MAKEFLAGS= 442SHELL=${CONFIG_SHELL-/bin/sh} 443 444# Maximum number of lines to put in a shell here document. 445# This variable seems obsolete. It should probably be removed, and 446# only ac_max_sed_lines should be used. 447: ${ac_max_here_lines=38} 448 449# Identity of this package. 450PACKAGE_NAME='Alps' 451PACKAGE_TARNAME='alps' 452PACKAGE_VERSION='2.0.1' 453PACKAGE_STRING='Alps 2.0.1' 454PACKAGE_BUGREPORT='https://github.com/coin-or/CHiPPS-ALPS/issues/new' 455 456ac_unique_file="configure.ac" 457ac_default_prefix=`pwd` 458# Factoring default headers for most tests. 459ac_includes_default="\ 460#include <stdio.h> 461#if HAVE_SYS_TYPES_H 462# include <sys/types.h> 463#endif 464#if HAVE_SYS_STAT_H 465# include <sys/stat.h> 466#endif 467#if STDC_HEADERS 468# include <stdlib.h> 469# include <stddef.h> 470#else 471# if HAVE_STDLIB_H 472# include <stdlib.h> 473# endif 474#endif 475#if HAVE_STRING_H 476# if !STDC_HEADERS && HAVE_MEMORY_H 477# include <memory.h> 478# endif 479# include <string.h> 480#endif 481#if HAVE_STRINGS_H 482# include <strings.h> 483#endif 484#if HAVE_INTTYPES_H 485# include <inttypes.h> 486#else 487# if HAVE_STDINT_H 488# include <stdint.h> 489# endif 490#endif 491#if HAVE_UNISTD_H 492# include <unistd.h> 493#endif" 494 495ac_subdirs_all="$ac_subdirs_all CoinUtils" 496ac_subdirs_all="$ac_subdirs_all ThirdParty/Blas" 497ac_subdirs_all="$ac_subdirs_all ThirdParty/Lapack" 498ac_subdirs_all="$ac_subdirs_all ThirdParty/Glpk" 499ac_subdirs_all="$ac_subdirs_all Data/Sample" 500ac_subdirs_all="$ac_subdirs_all Osi" 501ac_subdirs_all="$ac_subdirs_all Clp" 502ac_subdirs_all="$ac_subdirs_all Cgl" 503ac_subdirs_all="$ac_subdirs_all Alps" 504ac_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 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 CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 ac_ct_F77 FFLAGS MPIF77 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 CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_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 CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS DEPENDENCY_LINKING_TRUE DEPENDENCY_LINKING_FALSE LT_LDFLAGS COIN_SKIP_PROJECTS subdirs LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS' 505ac_subst_files='' 506 507# Initialize some variables set by options. 508ac_init_help= 509ac_init_version=false 510# The variables have the same names as the options, with 511# dashes changed to underlines. 512cache_file=/dev/null 513exec_prefix=NONE 514no_create= 515no_recursion= 516prefix=NONE 517program_prefix=NONE 518program_suffix=NONE 519program_transform_name=s,x,x, 520silent= 521site= 522srcdir= 523verbose= 524x_includes=NONE 525x_libraries=NONE 526 527# Installation directory options. 528# These are left unexpanded so users can "make install exec_prefix=/foo" 529# and all the variables that are supposed to be based on exec_prefix 530# by default will actually change. 531# Use braces instead of parens because sh, perl, etc. also accept them. 532bindir='${exec_prefix}/bin' 533sbindir='${exec_prefix}/sbin' 534libexecdir='${exec_prefix}/libexec' 535datadir='${prefix}/share' 536sysconfdir='${prefix}/etc' 537sharedstatedir='${prefix}/com' 538localstatedir='${prefix}/var' 539libdir='${exec_prefix}/lib' 540includedir='${prefix}/include' 541oldincludedir='/usr/include' 542infodir='${prefix}/info' 543mandir='${prefix}/man' 544 545ac_prev= 546for ac_option 547do 548 # If the previous option needs an argument, assign it. 549 if test -n "$ac_prev"; then 550 eval "$ac_prev=\$ac_option" 551 ac_prev= 552 continue 553 fi 554 555 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 556 557 # Accept the important Cygnus configure options, so we can diagnose typos. 558 559 case $ac_option in 560 561 -bindir | --bindir | --bindi | --bind | --bin | --bi) 562 ac_prev=bindir ;; 563 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 564 bindir=$ac_optarg ;; 565 566 -build | --build | --buil | --bui | --bu) 567 ac_prev=build_alias ;; 568 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 569 build_alias=$ac_optarg ;; 570 571 -cache-file | --cache-file | --cache-fil | --cache-fi \ 572 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 573 ac_prev=cache_file ;; 574 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 575 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 576 cache_file=$ac_optarg ;; 577 578 --config-cache | -C) 579 cache_file=config.cache ;; 580 581 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 582 ac_prev=datadir ;; 583 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 584 | --da=*) 585 datadir=$ac_optarg ;; 586 587 -disable-* | --disable-*) 588 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 589 # Reject names that are not valid shell variable names. 590 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 591 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 592 { (exit 1); exit 1; }; } 593 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 594 eval "enable_$ac_feature=no" ;; 595 596 -enable-* | --enable-*) 597 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 598 # Reject names that are not valid shell variable names. 599 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 600 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 601 { (exit 1); exit 1; }; } 602 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 603 case $ac_option in 604 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 605 *) ac_optarg=yes ;; 606 esac 607 eval "enable_$ac_feature='$ac_optarg'" ;; 608 609 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 610 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 611 | --exec | --exe | --ex) 612 ac_prev=exec_prefix ;; 613 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 614 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 615 | --exec=* | --exe=* | --ex=*) 616 exec_prefix=$ac_optarg ;; 617 618 -gas | --gas | --ga | --g) 619 # Obsolete; use --with-gas. 620 with_gas=yes ;; 621 622 -help | --help | --hel | --he | -h) 623 ac_init_help=long ;; 624 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 625 ac_init_help=recursive ;; 626 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 627 ac_init_help=short ;; 628 629 -host | --host | --hos | --ho) 630 ac_prev=host_alias ;; 631 -host=* | --host=* | --hos=* | --ho=*) 632 host_alias=$ac_optarg ;; 633 634 -includedir | --includedir | --includedi | --included | --include \ 635 | --includ | --inclu | --incl | --inc) 636 ac_prev=includedir ;; 637 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 638 | --includ=* | --inclu=* | --incl=* | --inc=*) 639 includedir=$ac_optarg ;; 640 641 -infodir | --infodir | --infodi | --infod | --info | --inf) 642 ac_prev=infodir ;; 643 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 644 infodir=$ac_optarg ;; 645 646 -libdir | --libdir | --libdi | --libd) 647 ac_prev=libdir ;; 648 -libdir=* | --libdir=* | --libdi=* | --libd=*) 649 libdir=$ac_optarg ;; 650 651 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 652 | --libexe | --libex | --libe) 653 ac_prev=libexecdir ;; 654 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 655 | --libexe=* | --libex=* | --libe=*) 656 libexecdir=$ac_optarg ;; 657 658 -localstatedir | --localstatedir | --localstatedi | --localstated \ 659 | --localstate | --localstat | --localsta | --localst \ 660 | --locals | --local | --loca | --loc | --lo) 661 ac_prev=localstatedir ;; 662 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 663 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 664 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 665 localstatedir=$ac_optarg ;; 666 667 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 668 ac_prev=mandir ;; 669 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 670 mandir=$ac_optarg ;; 671 672 -nfp | --nfp | --nf) 673 # Obsolete; use --without-fp. 674 with_fp=no ;; 675 676 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 677 | --no-cr | --no-c | -n) 678 no_create=yes ;; 679 680 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 681 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 682 no_recursion=yes ;; 683 684 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 685 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 686 | --oldin | --oldi | --old | --ol | --o) 687 ac_prev=oldincludedir ;; 688 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 689 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 690 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 691 oldincludedir=$ac_optarg ;; 692 693 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 694 ac_prev=prefix ;; 695 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 696 prefix=$ac_optarg ;; 697 698 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 699 | --program-pre | --program-pr | --program-p) 700 ac_prev=program_prefix ;; 701 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 702 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 703 program_prefix=$ac_optarg ;; 704 705 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 706 | --program-suf | --program-su | --program-s) 707 ac_prev=program_suffix ;; 708 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 709 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 710 program_suffix=$ac_optarg ;; 711 712 -program-transform-name | --program-transform-name \ 713 | --program-transform-nam | --program-transform-na \ 714 | --program-transform-n | --program-transform- \ 715 | --program-transform | --program-transfor \ 716 | --program-transfo | --program-transf \ 717 | --program-trans | --program-tran \ 718 | --progr-tra | --program-tr | --program-t) 719 ac_prev=program_transform_name ;; 720 -program-transform-name=* | --program-transform-name=* \ 721 | --program-transform-nam=* | --program-transform-na=* \ 722 | --program-transform-n=* | --program-transform-=* \ 723 | --program-transform=* | --program-transfor=* \ 724 | --program-transfo=* | --program-transf=* \ 725 | --program-trans=* | --program-tran=* \ 726 | --progr-tra=* | --program-tr=* | --program-t=*) 727 program_transform_name=$ac_optarg ;; 728 729 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 730 | -silent | --silent | --silen | --sile | --sil) 731 silent=yes ;; 732 733 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 734 ac_prev=sbindir ;; 735 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 736 | --sbi=* | --sb=*) 737 sbindir=$ac_optarg ;; 738 739 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 740 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 741 | --sharedst | --shareds | --shared | --share | --shar \ 742 | --sha | --sh) 743 ac_prev=sharedstatedir ;; 744 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 745 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 746 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 747 | --sha=* | --sh=*) 748 sharedstatedir=$ac_optarg ;; 749 750 -site | --site | --sit) 751 ac_prev=site ;; 752 -site=* | --site=* | --sit=*) 753 site=$ac_optarg ;; 754 755 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 756 ac_prev=srcdir ;; 757 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 758 srcdir=$ac_optarg ;; 759 760 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 761 | --syscon | --sysco | --sysc | --sys | --sy) 762 ac_prev=sysconfdir ;; 763 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 764 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 765 sysconfdir=$ac_optarg ;; 766 767 -target | --target | --targe | --targ | --tar | --ta | --t) 768 ac_prev=target_alias ;; 769 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 770 target_alias=$ac_optarg ;; 771 772 -v | -verbose | --verbose | --verbos | --verbo | --verb) 773 verbose=yes ;; 774 775 -version | --version | --versio | --versi | --vers | -V) 776 ac_init_version=: ;; 777 778 -with-* | --with-*) 779 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 780 # Reject names that are not valid shell variable names. 781 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 782 { echo "$as_me: error: invalid package name: $ac_package" >&2 783 { (exit 1); exit 1; }; } 784 ac_package=`echo $ac_package| sed 's/-/_/g'` 785 case $ac_option in 786 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 787 *) ac_optarg=yes ;; 788 esac 789 eval "with_$ac_package='$ac_optarg'" ;; 790 791 -without-* | --without-*) 792 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 793 # Reject names that are not valid shell variable names. 794 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 795 { echo "$as_me: error: invalid package name: $ac_package" >&2 796 { (exit 1); exit 1; }; } 797 ac_package=`echo $ac_package | sed 's/-/_/g'` 798 eval "with_$ac_package=no" ;; 799 800 --x) 801 # Obsolete; use --with-x. 802 with_x=yes ;; 803 804 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 805 | --x-incl | --x-inc | --x-in | --x-i) 806 ac_prev=x_includes ;; 807 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 808 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 809 x_includes=$ac_optarg ;; 810 811 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 812 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 813 ac_prev=x_libraries ;; 814 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 815 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 816 x_libraries=$ac_optarg ;; 817 818 -*) { echo "$as_me: error: unrecognized option: $ac_option 819Try \`$0 --help' for more information." >&2 820 { (exit 1); exit 1; }; } 821 ;; 822 823 *=*) 824 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 825 # Reject names that are not valid shell variable names. 826 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 827 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 828 { (exit 1); exit 1; }; } 829 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 830 eval "$ac_envvar='$ac_optarg'" 831 export $ac_envvar ;; 832 833 *) 834 # FIXME: should be removed in autoconf 3.0. 835 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 836 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 837 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 838 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 839 ;; 840 841 esac 842done 843 844if test -n "$ac_prev"; then 845 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 846 { echo "$as_me: error: missing argument to $ac_option" >&2 847 { (exit 1); exit 1; }; } 848fi 849 850# Be sure to have absolute paths. 851for ac_var in exec_prefix prefix 852do 853 eval ac_val=$`echo $ac_var` 854 case $ac_val in 855 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 856 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 857 { (exit 1); exit 1; }; };; 858 esac 859done 860 861# Be sure to have absolute paths. 862for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 863 localstatedir libdir includedir oldincludedir infodir mandir 864do 865 eval ac_val=$`echo $ac_var` 866 case $ac_val in 867 [\\/$]* | ?:[\\/]* ) ;; 868 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 869 { (exit 1); exit 1; }; };; 870 esac 871done 872 873# There might be people who depend on the old broken behavior: `$host' 874# used to hold the argument of --host etc. 875# FIXME: To remove some day. 876build=$build_alias 877host=$host_alias 878target=$target_alias 879 880# FIXME: To remove some day. 881if test "x$host_alias" != x; then 882 if test "x$build_alias" = x; then 883 cross_compiling=maybe 884 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 885 If a cross compiler is detected then cross compile mode will be used." >&2 886 elif test "x$build_alias" != "x$host_alias"; then 887 cross_compiling=yes 888 fi 889fi 890 891ac_tool_prefix= 892test -n "$host_alias" && ac_tool_prefix=$host_alias- 893 894test "$silent" = yes && exec 6>/dev/null 895 896 897# Find the source files, if location was not specified. 898if test -z "$srcdir"; then 899 ac_srcdir_defaulted=yes 900 # Try the directory containing this script, then its parent. 901 ac_confdir=`(dirname "$0") 2>/dev/null || 902$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 903 X"$0" : 'X\(//\)[^/]' \| \ 904 X"$0" : 'X\(//\)$' \| \ 905 X"$0" : 'X\(/\)' \| \ 906 . : '\(.\)' 2>/dev/null || 907echo X"$0" | 908 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 909 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 910 /^X\(\/\/\)$/{ s//\1/; q; } 911 /^X\(\/\).*/{ s//\1/; q; } 912 s/.*/./; q'` 913 srcdir=$ac_confdir 914 if test ! -r $srcdir/$ac_unique_file; then 915 srcdir=.. 916 fi 917else 918 ac_srcdir_defaulted=no 919fi 920if test ! -r $srcdir/$ac_unique_file; then 921 if test "$ac_srcdir_defaulted" = yes; then 922 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 923 { (exit 1); exit 1; }; } 924 else 925 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 926 { (exit 1); exit 1; }; } 927 fi 928fi 929(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 930 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 931 { (exit 1); exit 1; }; } 932srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 933ac_env_build_alias_set=${build_alias+set} 934ac_env_build_alias_value=$build_alias 935ac_cv_env_build_alias_set=${build_alias+set} 936ac_cv_env_build_alias_value=$build_alias 937ac_env_host_alias_set=${host_alias+set} 938ac_env_host_alias_value=$host_alias 939ac_cv_env_host_alias_set=${host_alias+set} 940ac_cv_env_host_alias_value=$host_alias 941ac_env_target_alias_set=${target_alias+set} 942ac_env_target_alias_value=$target_alias 943ac_cv_env_target_alias_set=${target_alias+set} 944ac_cv_env_target_alias_value=$target_alias 945ac_env_CDEFS_set=${CDEFS+set} 946ac_env_CDEFS_value=$CDEFS 947ac_cv_env_CDEFS_set=${CDEFS+set} 948ac_cv_env_CDEFS_value=$CDEFS 949ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set} 950ac_env_ADD_CFLAGS_value=$ADD_CFLAGS 951ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set} 952ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS 953ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set} 954ac_env_DBG_CFLAGS_value=$DBG_CFLAGS 955ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set} 956ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS 957ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set} 958ac_env_OPT_CFLAGS_value=$OPT_CFLAGS 959ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set} 960ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS 961ac_env_CC_set=${CC+set} 962ac_env_CC_value=$CC 963ac_cv_env_CC_set=${CC+set} 964ac_cv_env_CC_value=$CC 965ac_env_CFLAGS_set=${CFLAGS+set} 966ac_env_CFLAGS_value=$CFLAGS 967ac_cv_env_CFLAGS_set=${CFLAGS+set} 968ac_cv_env_CFLAGS_value=$CFLAGS 969ac_env_LDFLAGS_set=${LDFLAGS+set} 970ac_env_LDFLAGS_value=$LDFLAGS 971ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 972ac_cv_env_LDFLAGS_value=$LDFLAGS 973ac_env_CPPFLAGS_set=${CPPFLAGS+set} 974ac_env_CPPFLAGS_value=$CPPFLAGS 975ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 976ac_cv_env_CPPFLAGS_value=$CPPFLAGS 977ac_env_MPICC_set=${MPICC+set} 978ac_env_MPICC_value=$MPICC 979ac_cv_env_MPICC_set=${MPICC+set} 980ac_cv_env_MPICC_value=$MPICC 981ac_env_CXXDEFS_set=${CXXDEFS+set} 982ac_env_CXXDEFS_value=$CXXDEFS 983ac_cv_env_CXXDEFS_set=${CXXDEFS+set} 984ac_cv_env_CXXDEFS_value=$CXXDEFS 985ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set} 986ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS 987ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set} 988ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS 989ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set} 990ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS 991ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set} 992ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS 993ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set} 994ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS 995ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set} 996ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS 997ac_env_CXX_set=${CXX+set} 998ac_env_CXX_value=$CXX 999ac_cv_env_CXX_set=${CXX+set} 1000ac_cv_env_CXX_value=$CXX 1001ac_env_CXXFLAGS_set=${CXXFLAGS+set} 1002ac_env_CXXFLAGS_value=$CXXFLAGS 1003ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 1004ac_cv_env_CXXFLAGS_value=$CXXFLAGS 1005ac_env_MPICXX_set=${MPICXX+set} 1006ac_env_MPICXX_value=$MPICXX 1007ac_cv_env_MPICXX_set=${MPICXX+set} 1008ac_cv_env_MPICXX_value=$MPICXX 1009ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set} 1010ac_env_ADD_FFLAGS_value=$ADD_FFLAGS 1011ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set} 1012ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS 1013ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set} 1014ac_env_DBG_FFLAGS_value=$DBG_FFLAGS 1015ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set} 1016ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS 1017ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set} 1018ac_env_OPT_FFLAGS_value=$OPT_FFLAGS 1019ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set} 1020ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS 1021ac_env_F77_set=${F77+set} 1022ac_env_F77_value=$F77 1023ac_cv_env_F77_set=${F77+set} 1024ac_cv_env_F77_value=$F77 1025ac_env_FFLAGS_set=${FFLAGS+set} 1026ac_env_FFLAGS_value=$FFLAGS 1027ac_cv_env_FFLAGS_set=${FFLAGS+set} 1028ac_cv_env_FFLAGS_value=$FFLAGS 1029ac_env_MPIF77_set=${MPIF77+set} 1030ac_env_MPIF77_value=$MPIF77 1031ac_cv_env_MPIF77_set=${MPIF77+set} 1032ac_cv_env_MPIF77_value=$MPIF77 1033ac_env_CPP_set=${CPP+set} 1034ac_env_CPP_value=$CPP 1035ac_cv_env_CPP_set=${CPP+set} 1036ac_cv_env_CPP_value=$CPP 1037ac_env_CXXCPP_set=${CXXCPP+set} 1038ac_env_CXXCPP_value=$CXXCPP 1039ac_cv_env_CXXCPP_set=${CXXCPP+set} 1040ac_cv_env_CXXCPP_value=$CXXCPP 1041ac_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set} 1042ac_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS 1043ac_cv_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set} 1044ac_cv_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS 1045 1046# 1047# Report the --help message. 1048# 1049if test "$ac_init_help" = "long"; then 1050 # Omit some internal or obsolete options to make the list less imposing. 1051 # This message is too long to be a string in the A/UX 3.1 sh. 1052 cat <<_ACEOF 1053\`configure' configures Alps 2.0.1 to adapt to many kinds of systems. 1054 1055Usage: $0 [OPTION]... [VAR=VALUE]... 1056 1057To assign environment variables (e.g., CC, CFLAGS...), specify them as 1058VAR=VALUE. See below for descriptions of some of the useful variables. 1059 1060Defaults for the options are specified in brackets. 1061 1062Configuration: 1063 -h, --help display this help and exit 1064 --help=short display options specific to this package 1065 --help=recursive display the short help of all the included packages 1066 -V, --version display version information and exit 1067 -q, --quiet, --silent do not print \`checking...' messages 1068 --cache-file=FILE cache test results in FILE [disabled] 1069 -C, --config-cache alias for \`--cache-file=config.cache' 1070 -n, --no-create do not create output files 1071 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1072 1073_ACEOF 1074 1075 cat <<_ACEOF 1076Installation directories: 1077 --prefix=PREFIX install architecture-independent files in PREFIX 1078 [$ac_default_prefix] 1079 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1080 [PREFIX] 1081 1082By default, \`make install' will install all the files in 1083\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1084an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1085for instance \`--prefix=\$HOME'. 1086 1087For better control, use the options below. 1088 1089Fine tuning of the installation directories: 1090 --bindir=DIR user executables [EPREFIX/bin] 1091 --sbindir=DIR system admin executables [EPREFIX/sbin] 1092 --libexecdir=DIR program executables [EPREFIX/libexec] 1093 --datadir=DIR read-only architecture-independent data [PREFIX/share] 1094 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1095 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1096 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1097 --libdir=DIR object code libraries [EPREFIX/lib] 1098 --includedir=DIR C header files [PREFIX/include] 1099 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1100 --infodir=DIR info documentation [PREFIX/info] 1101 --mandir=DIR man documentation [PREFIX/man] 1102_ACEOF 1103 1104 cat <<\_ACEOF 1105 1106Program names: 1107 --program-prefix=PREFIX prepend PREFIX to installed program names 1108 --program-suffix=SUFFIX append SUFFIX to installed program names 1109 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1110 1111System types: 1112 --build=BUILD configure for building on BUILD [guessed] 1113 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1114_ACEOF 1115fi 1116 1117if test -n "$ac_init_help"; then 1118 case $ac_init_help in 1119 short | recursive ) echo "Configuration of Alps 2.0.1:";; 1120 esac 1121 cat <<\_ACEOF 1122 1123Optional Features: 1124 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1125 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1126 --enable-debug compile all projects with debug options tests 1127 (implies --disable-shared) 1128 1129 --enable-msvc Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin. 1130 --enable-static[=PKGS] 1131 build static libraries [default=no] 1132 --disable-dependency-tracking speeds up one-time build 1133 --enable-dependency-tracking do not reject slow dependency extractors 1134 --enable-maintainer-mode enable make rules and dependencies not useful 1135 (and sometimes confusing) to the casual installer 1136 --enable-shared[=PKGS] 1137 build shared libraries [default=yes] 1138 --enable-fast-install[=PKGS] 1139 optimize for fast installation [default=yes] 1140 --disable-libtool-lock avoid locking (might break parallel builds) 1141 --disable-dependency-linking 1142 disable linking library dependencies into shared 1143 libraries 1144 1145Optional Packages: 1146 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1147 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1148 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1149 --with-pic try to use only PIC/non-PIC objects [default=use 1150 both] 1151 --with-tags[=TAGS] 1152 include additional configurations [automatic] 1153 1154 --with-coinutils-lib linker flags for using project CoinUtils 1155 --with-coinutils-incdir directory with header files for using project 1156 CoinUtils 1157 --with-coinutils-datadir 1158 directory with data files for using project 1159 CoinUtils 1160 --with-blas-lib linker flags for using project Blas 1161 --with-blas-incdir directory with header files for using project Blas 1162 --with-blas-datadir directory with data files for using project Blas 1163 --with-blas specify BLAS library (or BUILD to enforce use of 1164 ThirdParty/Blas) 1165 --with-lapack-lib linker flags for using project Lapack 1166 --with-lapack-incdir directory with header files for using project Lapack 1167 --with-lapack-datadir directory with data files for using project Lapack 1168 --with-lapack specify LAPACK library (or BUILD to enforce use of 1169 ThirdParty/Lapack) 1170 --with-glpk-lib linker flags for using project Glpk 1171 --with-glpk-incdir directory with header files for using project Glpk 1172 --with-glpk-datadir directory with data files for using project Glpk 1173 --with-sample-lib linker flags for using project Sample 1174 --with-sample-incdir directory with header files for using project Sample 1175 --with-sample-datadir directory with data files for using project Sample 1176 --with-osi-lib linker flags for using project Osi 1177 --with-osi-incdir directory with header files for using project Osi 1178 --with-osi-datadir directory with data files for using project Osi 1179 --with-clp-lib linker flags for using project Clp 1180 --with-clp-incdir directory with header files for using project Clp 1181 --with-clp-datadir directory with data files for using project Clp 1182 --with-cgl-lib linker flags for using project Cgl 1183 --with-cgl-incdir directory with header files for using project Cgl 1184 --with-cgl-datadir directory with data files for using project Cgl 1185 --with-alps-lib linker flags for using project Alps 1186 --with-alps-incdir directory with header files for using project Alps 1187 --with-alps-datadir directory with data files for using project Alps 1188 1189Some influential environment variables: 1190 CDEFS Additional -D flags to be used when compiling C code. 1191 ADD_CFLAGS Additional C compiler options 1192 DBG_CFLAGS Debug C compiler options 1193 OPT_CFLAGS Optimize C compiler options 1194 CC C compiler command 1195 CFLAGS C compiler flags 1196 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1197 nonstandard directory <lib dir> 1198 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1199 headers in a nonstandard directory <include dir> 1200 MPICC C MPI Compiler 1201 CXXDEFS Additional -D flags to be used when compiling C++ code. 1202 ADD_CXXFLAGS 1203 Additional C++ compiler options 1204 DBG_CXXFLAGS 1205 Debug C++ compiler options 1206 OPT_CXXFLAGS 1207 Optimize C++ compiler options 1208 CXX C++ compiler command 1209 CXXFLAGS C++ compiler flags 1210 MPICXX C++ MPI Compiler 1211 ADD_FFLAGS Additional Fortran compiler options 1212 DBG_FFLAGS Debug Fortran compiler options 1213 OPT_FFLAGS Optimize Fortran compiler options 1214 F77 Fortran 77 compiler command 1215 FFLAGS Fortran 77 compiler flags 1216 MPIF77 Fortran MPI Compiler 1217 CPP C preprocessor 1218 CXXCPP C++ preprocessor 1219 COIN_SKIP_PROJECTS 1220 Set to the subdirectories of projects that should be skipped in 1221 the configuration 1222 1223Use these variables to override the choices made by `configure' or to help 1224it to find libraries and programs with nonstandard names/locations. 1225 1226Report bugs to <https://github.com/coin-or/CHiPPS-ALPS/issues/new>. 1227_ACEOF 1228fi 1229 1230if test "$ac_init_help" = "recursive"; then 1231 # If there are subdirs, report their specific --help. 1232 ac_popdir=`pwd` 1233 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1234 test -d $ac_dir || continue 1235 ac_builddir=. 1236 1237if test "$ac_dir" != .; then 1238 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1239 # A "../" for each directory in $ac_dir_suffix. 1240 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 1241else 1242 ac_dir_suffix= ac_top_builddir= 1243fi 1244 1245case $srcdir in 1246 .) # No --srcdir option. We are building in place. 1247 ac_srcdir=. 1248 if test -z "$ac_top_builddir"; then 1249 ac_top_srcdir=. 1250 else 1251 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 1252 fi ;; 1253 [\\/]* | ?:[\\/]* ) # Absolute path. 1254 ac_srcdir=$srcdir$ac_dir_suffix; 1255 ac_top_srcdir=$srcdir ;; 1256 *) # Relative path. 1257 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 1258 ac_top_srcdir=$ac_top_builddir$srcdir ;; 1259esac 1260 1261# Do not use `cd foo && pwd` to compute absolute paths, because 1262# the directories may not exist. 1263case `pwd` in 1264.) ac_abs_builddir="$ac_dir";; 1265*) 1266 case "$ac_dir" in 1267 .) ac_abs_builddir=`pwd`;; 1268 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 1269 *) ac_abs_builddir=`pwd`/"$ac_dir";; 1270 esac;; 1271esac 1272case $ac_abs_builddir in 1273.) ac_abs_top_builddir=${ac_top_builddir}.;; 1274*) 1275 case ${ac_top_builddir}. in 1276 .) ac_abs_top_builddir=$ac_abs_builddir;; 1277 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 1278 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 1279 esac;; 1280esac 1281case $ac_abs_builddir in 1282.) ac_abs_srcdir=$ac_srcdir;; 1283*) 1284 case $ac_srcdir in 1285 .) ac_abs_srcdir=$ac_abs_builddir;; 1286 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 1287 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 1288 esac;; 1289esac 1290case $ac_abs_builddir in 1291.) ac_abs_top_srcdir=$ac_top_srcdir;; 1292*) 1293 case $ac_top_srcdir in 1294 .) ac_abs_top_srcdir=$ac_abs_builddir;; 1295 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 1296 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 1297 esac;; 1298esac 1299 1300 cd $ac_dir 1301 # Check for guested configure; otherwise get Cygnus style configure. 1302 if test -f $ac_srcdir/configure.gnu; then 1303 echo 1304 $SHELL $ac_srcdir/configure.gnu --help=recursive 1305 elif test -f $ac_srcdir/configure; then 1306 echo 1307 $SHELL $ac_srcdir/configure --help=recursive 1308 elif test -f $ac_srcdir/configure.ac || 1309 test -f $ac_srcdir/configure.in; then 1310 echo 1311 $ac_configure --help 1312 else 1313 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1314 fi 1315 cd $ac_popdir 1316 done 1317fi 1318 1319test -n "$ac_init_help" && exit 0 1320if $ac_init_version; then 1321 cat <<\_ACEOF 1322Alps configure 2.0.1 1323generated by GNU Autoconf 2.59 1324 1325Copyright (C) 2003 Free Software Foundation, Inc. 1326This configure script is free software; the Free Software Foundation 1327gives unlimited permission to copy, distribute and modify it. 1328 1329 1330/*===========================================================================* 1331 * This file is part of the Abstract Library for Parallel Search (ALPS). * 1332 * * 1333 * ALPS is distributed under the Eclipse Public License as part of the * 1334 * COIN-OR repository (http://www.coin-or.org). * 1335 * * 1336 * Authors: * 1337 * * 1338 * Yan Xu, Lehigh University * 1339 * Aykut Bulut, Lehigh University * 1340 * Ted Ralphs, Lehigh University * 1341 * * 1342 * Conceptual Design: * 1343 * * 1344 * Yan Xu, Lehigh University * 1345 * Ted Ralphs, Lehigh University * 1346 * Laszlo Ladanyi, IBM T.J. Watson Research Center * 1347 * Matthew Saltzman, Clemson University * 1348 * * 1349 * * 1350 * Copyright (C) 2001-2019, Lehigh University, Yan Xu, and Ted Ralphs. * 1351 *===========================================================================*/ 1352 1353_ACEOF 1354 exit 0 1355fi 1356exec 5>config.log 1357cat >&5 <<_ACEOF 1358This file contains any messages produced by compilers while 1359running configure, to aid debugging if configure makes a mistake. 1360 1361It was created by Alps $as_me 2.0.1, which was 1362generated by GNU Autoconf 2.59. Invocation command line was 1363 1364 $ $0 $@ 1365 1366_ACEOF 1367{ 1368cat <<_ASUNAME 1369## --------- ## 1370## Platform. ## 1371## --------- ## 1372 1373hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1374uname -m = `(uname -m) 2>/dev/null || echo unknown` 1375uname -r = `(uname -r) 2>/dev/null || echo unknown` 1376uname -s = `(uname -s) 2>/dev/null || echo unknown` 1377uname -v = `(uname -v) 2>/dev/null || echo unknown` 1378 1379/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1380/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1381 1382/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1383/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1384/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1385hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1386/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1387/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1388/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1389 1390_ASUNAME 1391 1392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1393for as_dir in $PATH 1394do 1395 IFS=$as_save_IFS 1396 test -z "$as_dir" && as_dir=. 1397 echo "PATH: $as_dir" 1398done 1399 1400} >&5 1401 1402cat >&5 <<_ACEOF 1403 1404 1405## ----------- ## 1406## Core tests. ## 1407## ----------- ## 1408 1409_ACEOF 1410 1411 1412# Keep a trace of the command line. 1413# Strip out --no-create and --no-recursion so they do not pile up. 1414# Strip out --silent because we don't want to record it for future runs. 1415# Also quote any args containing shell meta-characters. 1416# Make two passes to allow for proper duplicate-argument suppression. 1417ac_configure_args= 1418ac_configure_args0= 1419ac_configure_args1= 1420ac_sep= 1421ac_must_keep_next=false 1422for ac_pass in 1 2 1423do 1424 for ac_arg 1425 do 1426 case $ac_arg in 1427 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1428 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1429 | -silent | --silent | --silen | --sile | --sil) 1430 continue ;; 1431 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1432 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1433 esac 1434 case $ac_pass in 1435 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1436 2) 1437 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1438 if test $ac_must_keep_next = true; then 1439 ac_must_keep_next=false # Got value, back to normal. 1440 else 1441 case $ac_arg in 1442 *=* | --config-cache | -C | -disable-* | --disable-* \ 1443 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1444 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1445 | -with-* | --with-* | -without-* | --without-* | --x) 1446 case "$ac_configure_args0 " in 1447 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1448 esac 1449 ;; 1450 -* ) ac_must_keep_next=true ;; 1451 esac 1452 fi 1453 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1454 # Get rid of the leading space. 1455 ac_sep=" " 1456 ;; 1457 esac 1458 done 1459done 1460$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1461$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1462 1463# When interrupted or exit'd, cleanup temporary files, and complete 1464# config.log. We remove comments because anyway the quotes in there 1465# would cause problems or look ugly. 1466# WARNING: Be sure not to use single quotes in there, as some shells, 1467# such as our DU 5.0 friend, will then `close' the trap. 1468trap 'exit_status=$? 1469 # Save into config.log some information that might help in debugging. 1470 { 1471 echo 1472 1473 cat <<\_ASBOX 1474## ---------------- ## 1475## Cache variables. ## 1476## ---------------- ## 1477_ASBOX 1478 echo 1479 # The following way of writing the cache mishandles newlines in values, 1480{ 1481 (set) 2>&1 | 1482 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1483 *ac_space=\ *) 1484 sed -n \ 1485 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1486 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1487 ;; 1488 *) 1489 sed -n \ 1490 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1491 ;; 1492 esac; 1493} 1494 echo 1495 1496 cat <<\_ASBOX 1497## ----------------- ## 1498## Output variables. ## 1499## ----------------- ## 1500_ASBOX 1501 echo 1502 for ac_var in $ac_subst_vars 1503 do 1504 eval ac_val=$`echo $ac_var` 1505 echo "$ac_var='"'"'$ac_val'"'"'" 1506 done | sort 1507 echo 1508 1509 if test -n "$ac_subst_files"; then 1510 cat <<\_ASBOX 1511## ------------- ## 1512## Output files. ## 1513## ------------- ## 1514_ASBOX 1515 echo 1516 for ac_var in $ac_subst_files 1517 do 1518 eval ac_val=$`echo $ac_var` 1519 echo "$ac_var='"'"'$ac_val'"'"'" 1520 done | sort 1521 echo 1522 fi 1523 1524 if test -s confdefs.h; then 1525 cat <<\_ASBOX 1526## ----------- ## 1527## confdefs.h. ## 1528## ----------- ## 1529_ASBOX 1530 echo 1531 sed "/^$/d" confdefs.h | sort 1532 echo 1533 fi 1534 test "$ac_signal" != 0 && 1535 echo "$as_me: caught signal $ac_signal" 1536 echo "$as_me: exit $exit_status" 1537 } >&5 1538 rm -f core *.core && 1539 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1540 exit $exit_status 1541 ' 0 1542for ac_signal in 1 2 13 15; do 1543 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1544done 1545ac_signal=0 1546 1547# confdefs.h avoids OS command line length limits that DEFS can exceed. 1548rm -rf conftest* confdefs.h 1549# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1550echo >confdefs.h 1551 1552# Predefined preprocessor variables. 1553 1554cat >>confdefs.h <<_ACEOF 1555#define PACKAGE_NAME "$PACKAGE_NAME" 1556_ACEOF 1557 1558 1559cat >>confdefs.h <<_ACEOF 1560#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1561_ACEOF 1562 1563 1564cat >>confdefs.h <<_ACEOF 1565#define PACKAGE_VERSION "$PACKAGE_VERSION" 1566_ACEOF 1567 1568 1569cat >>confdefs.h <<_ACEOF 1570#define PACKAGE_STRING "$PACKAGE_STRING" 1571_ACEOF 1572 1573 1574cat >>confdefs.h <<_ACEOF 1575#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1576_ACEOF 1577 1578 1579# Let the site file select an alternate cache file if it wants to. 1580# Prefer explicitly selected file to automatically selected ones. 1581if test -z "$CONFIG_SITE"; then 1582 if test "x$prefix" != xNONE; then 1583 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1584 else 1585 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1586 fi 1587fi 1588for ac_site_file in $CONFIG_SITE; do 1589 if test -r "$ac_site_file"; then 1590 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1591echo "$as_me: loading site script $ac_site_file" >&6;} 1592 sed 's/^/| /' "$ac_site_file" >&5 1593 . "$ac_site_file" 1594 fi 1595done 1596 1597if test -r "$cache_file"; then 1598 # Some versions of bash will fail to source /dev/null (special 1599 # files actually), so we avoid doing that. 1600 if test -f "$cache_file"; then 1601 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1602echo "$as_me: loading cache $cache_file" >&6;} 1603 case $cache_file in 1604 [\\/]* | ?:[\\/]* ) . $cache_file;; 1605 *) . ./$cache_file;; 1606 esac 1607 fi 1608else 1609 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1610echo "$as_me: creating cache $cache_file" >&6;} 1611 >$cache_file 1612fi 1613 1614# Check that the precious variables saved in the cache have kept the same 1615# value. 1616ac_cache_corrupted=false 1617for ac_var in `(set) 2>&1 | 1618 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1619 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1620 eval ac_new_set=\$ac_env_${ac_var}_set 1621 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1622 eval ac_new_val="\$ac_env_${ac_var}_value" 1623 case $ac_old_set,$ac_new_set in 1624 set,) 1625 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1626echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1627 ac_cache_corrupted=: ;; 1628 ,set) 1629 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1630echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1631 ac_cache_corrupted=: ;; 1632 ,);; 1633 *) 1634 if test "x$ac_old_val" != "x$ac_new_val"; then 1635 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1636echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1637 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1638echo "$as_me: former value: $ac_old_val" >&2;} 1639 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1640echo "$as_me: current value: $ac_new_val" >&2;} 1641 ac_cache_corrupted=: 1642 fi;; 1643 esac 1644 # Pass precious variables to config.status. 1645 if test "$ac_new_set" = set; then 1646 case $ac_new_val in 1647 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1648 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1649 *) ac_arg=$ac_var=$ac_new_val ;; 1650 esac 1651 case " $ac_configure_args " in 1652 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1653 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1654 esac 1655 fi 1656done 1657if $ac_cache_corrupted; then 1658 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1659echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1660 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1661echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1662 { (exit 1); exit 1; }; } 1663fi 1664 1665ac_ext=c 1666ac_cpp='$CPP $CPPFLAGS' 1667ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1668ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1669ac_compiler_gnu=$ac_cv_c_compiler_gnu 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702# List one file in the package so that the configure script can test 1703# whether the package is actually there 1704 1705 1706# Where should everything be installed by default? Here, we want it 1707# to be installed directly in 'bin', 'lib', 'include' subdirectories 1708# of the directory where configure is run. The default would be 1709# /usr/local. 1710 1711 1712############################################################################# 1713# We only need automake to generate Makefiles for the distribution # 1714############################################################################# 1715 1716# Initialize automake 1717ac_aux_dir= 1718for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1719 if test -f $ac_dir/install-sh; then 1720 ac_aux_dir=$ac_dir 1721 ac_install_sh="$ac_aux_dir/install-sh -c" 1722 break 1723 elif test -f $ac_dir/install.sh; then 1724 ac_aux_dir=$ac_dir 1725 ac_install_sh="$ac_aux_dir/install.sh -c" 1726 break 1727 elif test -f $ac_dir/shtool; then 1728 ac_aux_dir=$ac_dir 1729 ac_install_sh="$ac_aux_dir/shtool install -c" 1730 break 1731 fi 1732done 1733if test -z "$ac_aux_dir"; then 1734 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1735echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1736 { (exit 1); exit 1; }; } 1737fi 1738ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1739ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1740ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1741 1742# Make sure we can run config.sub. 1743$ac_config_sub sun4 >/dev/null 2>&1 || 1744 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 1745echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1746 { (exit 1); exit 1; }; } 1747 1748echo "$as_me:$LINENO: checking build system type" >&5 1749echo $ECHO_N "checking build system type... $ECHO_C" >&6 1750if test "${ac_cv_build+set}" = set; then 1751 echo $ECHO_N "(cached) $ECHO_C" >&6 1752else 1753 ac_cv_build_alias=$build_alias 1754test -z "$ac_cv_build_alias" && 1755 ac_cv_build_alias=`$ac_config_guess` 1756test -z "$ac_cv_build_alias" && 1757 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1758echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1759 { (exit 1); exit 1; }; } 1760ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 1761 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 1762echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 1763 { (exit 1); exit 1; }; } 1764 1765fi 1766echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1767echo "${ECHO_T}$ac_cv_build" >&6 1768build=$ac_cv_build 1769build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1770build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1771build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1772 1773 1774 1775# Check if user wants to produce debugging code 1776 1777echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5 1778echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6 1779 1780# Check whether --enable-debug or --disable-debug was given. 1781if test "${enable_debug+set}" = set; then 1782 enableval="$enable_debug" 1783 case "${enableval}" in 1784 yes) coin_debug_compile=true 1785 if test "${enable_shared+set}" = set; then :; else 1786 enable_shared=no 1787 fi 1788 ;; 1789 no) coin_debug_compile=false 1790 ;; 1791 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5 1792echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;} 1793 { (exit 1); exit 1; }; } 1794 ;; 1795esac 1796else 1797 coin_debug_compile=false 1798fi; 1799 1800 # m4_ifvaln([], 1801 1802if test $coin_debug_compile = true; then 1803 echo "$as_me:$LINENO: result: yes" >&5 1804echo "${ECHO_T}yes" >&6 1805else 1806 echo "$as_me:$LINENO: result: no" >&5 1807echo "${ECHO_T}no" >&6 1808fi 1809 1810 # m4_ifvaln([], 1811 1812 1813 1814# Get the name of the C compiler and appropriate compiler options 1815 1816 1817 # for backward compatibility 1818 # Check whether --enable-doscompile or --disable-doscompile was given. 1819if test "${enable_doscompile+set}" = set; then 1820 enableval="$enable_doscompile" 1821 enable_doscompile=$enableval 1822else 1823 enable_doscompile=no 1824fi; 1825 1826 # Check whether --enable-msvc or --disable-msvc was given. 1827if test "${enable_msvc+set}" = set; then 1828 enableval="$enable_msvc" 1829 enable_msvc=$enableval 1830else 1831 enable_msvc=no 1832 if test "$enable_doscompile" = msvc ; then 1833 enable_msvc=yes 1834 elif test "$enable_doscompile" != no ; then 1835 { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5 1836echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;} 1837 { (exit 1); exit 1; }; } 1838 fi 1839 1840fi; 1841 1842 if test "$enable_msvc" = MD; then 1843 enable_shared=yes 1844 enable_msvc=yes 1845 fi 1846 1847 if test "$enable_msvc" = yes; then 1848 case $build in 1849 *-cygwin* | *-mingw*) ;; 1850 *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5 1851echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;} 1852 { (exit 1); exit 1; }; } ;; 1853 esac 1854 fi 1855 1856 1857 1858ac_ext=c 1859ac_cpp='$CPP $CPPFLAGS' 1860ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1861ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1862ac_compiler_gnu=$ac_cv_c_compiler_gnu 1863 1864 1865# For consistency, we set the C compiler to the same value of the C++ 1866# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl) 1867if test x"$CXX" != x; then 1868 case "$CXX" in 1869 clang* ) ;; 1870 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 1871 if test x"$CC" = x; then 1872 CC="$CXX" 1873 { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5 1874echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;} 1875 fi 1876 ;; 1877 esac 1878fi 1879 1880 1881 1882 1883 1884 1885coin_has_cc=yes 1886 1887save_cflags="$CFLAGS" 1888 1889# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list. 1890# Depending on the user's PATH, when Studio/Workshop cc is not present we may 1891# find /usr/ucb/cc, which is almost certainly not a good choice for the C 1892# compiler. In this case, put cc after gcc. 1893 1894case $build in 1895 *-cygwin* | *-mingw*) 1896 if test "$enable_msvc" = yes ; then 1897 comps="icl cl gcc" 1898 else 1899 comps="gcc icl cl" 1900 fi ;; 1901 *-*-solaris*) 1902 # Extract the first word of "cc", so it can be a program name with args. 1903set dummy cc; ac_word=$2 1904echo "$as_me:$LINENO: checking for $ac_word" >&5 1905echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1906if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then 1907 echo $ECHO_N "(cached) $ECHO_C" >&6 1908else 1909 if test -n "$sol_cc_compiler"; then 1910 ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test. 1911else 1912 ac_prog_rejected=no 1913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1914for as_dir in $PATH 1915do 1916 IFS=$as_save_IFS 1917 test -z "$as_dir" && as_dir=. 1918 for ac_exec_ext in '' $ac_executable_extensions; do 1919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1920 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1921 ac_prog_rejected=yes 1922 continue 1923 fi 1924 ac_cv_prog_sol_cc_compiler="cc" 1925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1926 break 2 1927 fi 1928done 1929done 1930 1931if test $ac_prog_rejected = yes; then 1932 # We found a bogon in the path, so make sure we never use it. 1933 set dummy $ac_cv_prog_sol_cc_compiler 1934 shift 1935 if test $# != 0; then 1936 # We chose a different compiler from the bogus one. 1937 # However, it has the same basename, so the bogon will be chosen 1938 # first if we set sol_cc_compiler to just the basename; use the full file name. 1939 shift 1940 ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@" 1941 fi 1942fi 1943fi 1944fi 1945sol_cc_compiler=$ac_cv_prog_sol_cc_compiler 1946if test -n "$sol_cc_compiler"; then 1947 echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5 1948echo "${ECHO_T}$sol_cc_compiler" >&6 1949else 1950 echo "$as_me:$LINENO: result: no" >&5 1951echo "${ECHO_T}no" >&6 1952fi 1953 1954 if test "$sol_cc_compiler" = "cc" ; then 1955 comps="cc xlc gcc pgcc icc" 1956 else 1957 comps="xlc gcc pgcc icc cc" 1958 fi 1959 ;; 1960 *-*-darwin*) comps="clang gcc cc" ;; 1961 *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;; 1962 *-linux-*) comps="xlc gcc cc pgcc icc" ;; 1963 *) comps="xlc_r xlc cc gcc pgcc icc" ;; 1964esac 1965 1966# We delete the cached value, since the test might not have been 1967# performed with our choice of compilers earlier 1968$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; } 1969# AC_MSG_NOTICE([C compiler candidates: $comps]) 1970ac_ext=c 1971ac_cpp='$CPP $CPPFLAGS' 1972ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1973ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1974ac_compiler_gnu=$ac_cv_c_compiler_gnu 1975if test -n "$ac_tool_prefix"; then 1976 for ac_prog in $comps 1977 do 1978 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1979set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1980echo "$as_me:$LINENO: checking for $ac_word" >&5 1981echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1982if test "${ac_cv_prog_CC+set}" = set; then 1983 echo $ECHO_N "(cached) $ECHO_C" >&6 1984else 1985 if test -n "$CC"; then 1986 ac_cv_prog_CC="$CC" # Let the user override the test. 1987else 1988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1989for as_dir in $PATH 1990do 1991 IFS=$as_save_IFS 1992 test -z "$as_dir" && as_dir=. 1993 for ac_exec_ext in '' $ac_executable_extensions; do 1994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1995 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1997 break 2 1998 fi 1999done 2000done 2001 2002fi 2003fi 2004CC=$ac_cv_prog_CC 2005if test -n "$CC"; then 2006 echo "$as_me:$LINENO: result: $CC" >&5 2007echo "${ECHO_T}$CC" >&6 2008else 2009 echo "$as_me:$LINENO: result: no" >&5 2010echo "${ECHO_T}no" >&6 2011fi 2012 2013 test -n "$CC" && break 2014 done 2015fi 2016if test -z "$CC"; then 2017 ac_ct_CC=$CC 2018 for ac_prog in $comps 2019do 2020 # Extract the first word of "$ac_prog", so it can be a program name with args. 2021set dummy $ac_prog; ac_word=$2 2022echo "$as_me:$LINENO: checking for $ac_word" >&5 2023echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2024if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2025 echo $ECHO_N "(cached) $ECHO_C" >&6 2026else 2027 if test -n "$ac_ct_CC"; then 2028 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2029else 2030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2031for as_dir in $PATH 2032do 2033 IFS=$as_save_IFS 2034 test -z "$as_dir" && as_dir=. 2035 for ac_exec_ext in '' $ac_executable_extensions; do 2036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2037 ac_cv_prog_ac_ct_CC="$ac_prog" 2038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2039 break 2 2040 fi 2041done 2042done 2043 2044fi 2045fi 2046ac_ct_CC=$ac_cv_prog_ac_ct_CC 2047if test -n "$ac_ct_CC"; then 2048 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2049echo "${ECHO_T}$ac_ct_CC" >&6 2050else 2051 echo "$as_me:$LINENO: result: no" >&5 2052echo "${ECHO_T}no" >&6 2053fi 2054 2055 test -n "$ac_ct_CC" && break 2056done 2057 2058 CC=$ac_ct_CC 2059fi 2060 2061 2062test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2063See \`config.log' for more details." >&5 2064echo "$as_me: error: no acceptable C compiler found in \$PATH 2065See \`config.log' for more details." >&2;} 2066 { (exit 1); exit 1; }; } 2067 2068# Provide some information about the compiler. 2069echo "$as_me:$LINENO:" \ 2070 "checking for C compiler version" >&5 2071ac_compiler=`set X $ac_compile; echo $2` 2072{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2073 (eval $ac_compiler --version </dev/null >&5) 2>&5 2074 ac_status=$? 2075 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2076 (exit $ac_status); } 2077{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2078 (eval $ac_compiler -v </dev/null >&5) 2>&5 2079 ac_status=$? 2080 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2081 (exit $ac_status); } 2082{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2083 (eval $ac_compiler -V </dev/null >&5) 2>&5 2084 ac_status=$? 2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2086 (exit $ac_status); } 2087 2088cat >conftest.$ac_ext <<_ACEOF 2089/* confdefs.h. */ 2090_ACEOF 2091cat confdefs.h >>conftest.$ac_ext 2092cat >>conftest.$ac_ext <<_ACEOF 2093/* end confdefs.h. */ 2094 2095int 2096main () 2097{ 2098 2099 ; 2100 return 0; 2101} 2102_ACEOF 2103ac_clean_files_save=$ac_clean_files 2104ac_clean_files="$ac_clean_files a.out a.exe b.out" 2105# Try to create an executable without -o first, disregard a.out. 2106# It will help us diagnose broken compilers, and finding out an intuition 2107# of exeext. 2108echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2109echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2110ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2111if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2112 (eval $ac_link_default) 2>&5 2113 ac_status=$? 2114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2115 (exit $ac_status); }; then 2116 # Find the output, starting from the most likely. This scheme is 2117# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2118# resort. 2119 2120# Be careful to initialize this variable, since it used to be cached. 2121# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2122ac_cv_exeext= 2123# b.out is created by i960 compilers. 2124for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2125do 2126 test -f "$ac_file" || continue 2127 case $ac_file in 2128 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2129 ;; 2130 conftest.$ac_ext ) 2131 # This is the source file. 2132 ;; 2133 [ab].out ) 2134 # We found the default executable, but exeext='' is most 2135 # certainly right. 2136 break;; 2137 *.* ) 2138 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2139 # FIXME: I believe we export ac_cv_exeext for Libtool, 2140 # but it would be cool to find out if it's true. Does anybody 2141 # maintain Libtool? --akim. 2142 export ac_cv_exeext 2143 break;; 2144 * ) 2145 break;; 2146 esac 2147done 2148else 2149 echo "$as_me: failed program was:" >&5 2150sed 's/^/| /' conftest.$ac_ext >&5 2151 2152{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2153See \`config.log' for more details." >&5 2154echo "$as_me: error: C compiler cannot create executables 2155See \`config.log' for more details." >&2;} 2156 { (exit 77); exit 77; }; } 2157fi 2158 2159ac_exeext=$ac_cv_exeext 2160echo "$as_me:$LINENO: result: $ac_file" >&5 2161echo "${ECHO_T}$ac_file" >&6 2162 2163# Check the compiler produces executables we can run. If not, either 2164# the compiler is broken, or we cross compile. 2165echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2166echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2167# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2168# If not cross compiling, check that we can run a simple program. 2169if test "$cross_compiling" != yes; then 2170 if { ac_try='./$ac_file' 2171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2172 (eval $ac_try) 2>&5 2173 ac_status=$? 2174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2175 (exit $ac_status); }; }; then 2176 cross_compiling=no 2177 else 2178 if test "$cross_compiling" = maybe; then 2179 cross_compiling=yes 2180 else 2181 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2182If you meant to cross compile, use \`--host'. 2183See \`config.log' for more details." >&5 2184echo "$as_me: error: cannot run C compiled programs. 2185If you meant to cross compile, use \`--host'. 2186See \`config.log' for more details." >&2;} 2187 { (exit 1); exit 1; }; } 2188 fi 2189 fi 2190fi 2191echo "$as_me:$LINENO: result: yes" >&5 2192echo "${ECHO_T}yes" >&6 2193 2194rm -f a.out a.exe conftest$ac_cv_exeext b.out 2195ac_clean_files=$ac_clean_files_save 2196# Check the compiler produces executables we can run. If not, either 2197# the compiler is broken, or we cross compile. 2198echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2199echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2200echo "$as_me:$LINENO: result: $cross_compiling" >&5 2201echo "${ECHO_T}$cross_compiling" >&6 2202 2203echo "$as_me:$LINENO: checking for suffix of executables" >&5 2204echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2205if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2206 (eval $ac_link) 2>&5 2207 ac_status=$? 2208 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2209 (exit $ac_status); }; then 2210 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2211# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2212# work properly (i.e., refer to `conftest.exe'), while it won't with 2213# `rm'. 2214for ac_file in conftest.exe conftest conftest.*; do 2215 test -f "$ac_file" || continue 2216 case $ac_file in 2217 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2218 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2219 export ac_cv_exeext 2220 break;; 2221 * ) break;; 2222 esac 2223done 2224else 2225 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2226See \`config.log' for more details." >&5 2227echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2228See \`config.log' for more details." >&2;} 2229 { (exit 1); exit 1; }; } 2230fi 2231 2232rm -f conftest$ac_cv_exeext 2233echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2234echo "${ECHO_T}$ac_cv_exeext" >&6 2235 2236rm -f conftest.$ac_ext 2237EXEEXT=$ac_cv_exeext 2238ac_exeext=$EXEEXT 2239echo "$as_me:$LINENO: checking for suffix of object files" >&5 2240echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2241if test "${ac_cv_objext+set}" = set; then 2242 echo $ECHO_N "(cached) $ECHO_C" >&6 2243else 2244 cat >conftest.$ac_ext <<_ACEOF 2245/* confdefs.h. */ 2246_ACEOF 2247cat confdefs.h >>conftest.$ac_ext 2248cat >>conftest.$ac_ext <<_ACEOF 2249/* end confdefs.h. */ 2250 2251int 2252main () 2253{ 2254 2255 ; 2256 return 0; 2257} 2258_ACEOF 2259rm -f conftest.o conftest.obj 2260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2261 (eval $ac_compile) 2>&5 2262 ac_status=$? 2263 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2264 (exit $ac_status); }; then 2265 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2266 case $ac_file in 2267 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2268 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2269 break;; 2270 esac 2271done 2272else 2273 echo "$as_me: failed program was:" >&5 2274sed 's/^/| /' conftest.$ac_ext >&5 2275 2276{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2277See \`config.log' for more details." >&5 2278echo "$as_me: error: cannot compute suffix of object files: cannot compile 2279See \`config.log' for more details." >&2;} 2280 { (exit 1); exit 1; }; } 2281fi 2282 2283rm -f conftest.$ac_cv_objext conftest.$ac_ext 2284fi 2285echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2286echo "${ECHO_T}$ac_cv_objext" >&6 2287OBJEXT=$ac_cv_objext 2288ac_objext=$OBJEXT 2289echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2290echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2291if test "${ac_cv_c_compiler_gnu+set}" = set; then 2292 echo $ECHO_N "(cached) $ECHO_C" >&6 2293else 2294 cat >conftest.$ac_ext <<_ACEOF 2295/* confdefs.h. */ 2296_ACEOF 2297cat confdefs.h >>conftest.$ac_ext 2298cat >>conftest.$ac_ext <<_ACEOF 2299/* end confdefs.h. */ 2300 2301int 2302main () 2303{ 2304#ifndef __GNUC__ 2305 choke me 2306#endif 2307 2308 ; 2309 return 0; 2310} 2311_ACEOF 2312rm -f conftest.$ac_objext 2313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2314 (eval $ac_compile) 2>conftest.er1 2315 ac_status=$? 2316 grep -v '^ *+' conftest.er1 >conftest.err 2317 rm -f conftest.er1 2318 cat conftest.err >&5 2319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2320 (exit $ac_status); } && 2321 { ac_try='test -z "$ac_c_werror_flag" 2322 || test ! -s conftest.err' 2323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2324 (eval $ac_try) 2>&5 2325 ac_status=$? 2326 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2327 (exit $ac_status); }; } && 2328 { ac_try='test -s conftest.$ac_objext' 2329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2330 (eval $ac_try) 2>&5 2331 ac_status=$? 2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2333 (exit $ac_status); }; }; then 2334 ac_compiler_gnu=yes 2335else 2336 echo "$as_me: failed program was:" >&5 2337sed 's/^/| /' conftest.$ac_ext >&5 2338 2339ac_compiler_gnu=no 2340fi 2341rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2342ac_cv_c_compiler_gnu=$ac_compiler_gnu 2343 2344fi 2345echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2346echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2347GCC=`test $ac_compiler_gnu = yes && echo yes` 2348ac_test_CFLAGS=${CFLAGS+set} 2349ac_save_CFLAGS=$CFLAGS 2350CFLAGS="-g" 2351echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2352echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2353if test "${ac_cv_prog_cc_g+set}" = set; then 2354 echo $ECHO_N "(cached) $ECHO_C" >&6 2355else 2356 cat >conftest.$ac_ext <<_ACEOF 2357/* confdefs.h. */ 2358_ACEOF 2359cat confdefs.h >>conftest.$ac_ext 2360cat >>conftest.$ac_ext <<_ACEOF 2361/* end confdefs.h. */ 2362 2363int 2364main () 2365{ 2366 2367 ; 2368 return 0; 2369} 2370_ACEOF 2371rm -f conftest.$ac_objext 2372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2373 (eval $ac_compile) 2>conftest.er1 2374 ac_status=$? 2375 grep -v '^ *+' conftest.er1 >conftest.err 2376 rm -f conftest.er1 2377 cat conftest.err >&5 2378 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2379 (exit $ac_status); } && 2380 { ac_try='test -z "$ac_c_werror_flag" 2381 || test ! -s conftest.err' 2382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2383 (eval $ac_try) 2>&5 2384 ac_status=$? 2385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2386 (exit $ac_status); }; } && 2387 { ac_try='test -s conftest.$ac_objext' 2388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2389 (eval $ac_try) 2>&5 2390 ac_status=$? 2391 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2392 (exit $ac_status); }; }; then 2393 ac_cv_prog_cc_g=yes 2394else 2395 echo "$as_me: failed program was:" >&5 2396sed 's/^/| /' conftest.$ac_ext >&5 2397 2398ac_cv_prog_cc_g=no 2399fi 2400rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2401fi 2402echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2403echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2404if test "$ac_test_CFLAGS" = set; then 2405 CFLAGS=$ac_save_CFLAGS 2406elif test $ac_cv_prog_cc_g = yes; then 2407 if test "$GCC" = yes; then 2408 CFLAGS="-g -O2" 2409 else 2410 CFLAGS="-g" 2411 fi 2412else 2413 if test "$GCC" = yes; then 2414 CFLAGS="-O2" 2415 else 2416 CFLAGS= 2417 fi 2418fi 2419echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2420echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2421if test "${ac_cv_prog_cc_stdc+set}" = set; then 2422 echo $ECHO_N "(cached) $ECHO_C" >&6 2423else 2424 ac_cv_prog_cc_stdc=no 2425ac_save_CC=$CC 2426cat >conftest.$ac_ext <<_ACEOF 2427/* confdefs.h. */ 2428_ACEOF 2429cat confdefs.h >>conftest.$ac_ext 2430cat >>conftest.$ac_ext <<_ACEOF 2431/* end confdefs.h. */ 2432#include <stdarg.h> 2433#include <stdio.h> 2434#include <sys/types.h> 2435#include <sys/stat.h> 2436/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2437struct buf { int x; }; 2438FILE * (*rcsopen) (struct buf *, struct stat *, int); 2439static char *e (p, i) 2440 char **p; 2441 int i; 2442{ 2443 return p[i]; 2444} 2445static char *f (char * (*g) (char **, int), char **p, ...) 2446{ 2447 char *s; 2448 va_list v; 2449 va_start (v,p); 2450 s = g (p, va_arg (v,int)); 2451 va_end (v); 2452 return s; 2453} 2454 2455/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2456 function prototypes and stuff, but not '\xHH' hex character constants. 2457 These don't provoke an error unfortunately, instead are silently treated 2458 as 'x'. The following induces an error, until -std1 is added to get 2459 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2460 array size at least. It's necessary to write '\x00'==0 to get something 2461 that's true only with -std1. */ 2462int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2463 2464int test (int i, double x); 2465struct s1 {int (*f) (int a);}; 2466struct s2 {int (*f) (double a);}; 2467int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2468int argc; 2469char **argv; 2470int 2471main () 2472{ 2473return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2474 ; 2475 return 0; 2476} 2477_ACEOF 2478# Don't try gcc -ansi; that turns off useful extensions and 2479# breaks some systems' header files. 2480# AIX -qlanglvl=ansi 2481# Ultrix and OSF/1 -std1 2482# HP-UX 10.20 and later -Ae 2483# HP-UX older versions -Aa -D_HPUX_SOURCE 2484# SVR4 -Xc -D__EXTENSIONS__ 2485for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2486do 2487 CC="$ac_save_CC $ac_arg" 2488 rm -f conftest.$ac_objext 2489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2490 (eval $ac_compile) 2>conftest.er1 2491 ac_status=$? 2492 grep -v '^ *+' conftest.er1 >conftest.err 2493 rm -f conftest.er1 2494 cat conftest.err >&5 2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2496 (exit $ac_status); } && 2497 { ac_try='test -z "$ac_c_werror_flag" 2498 || test ! -s conftest.err' 2499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2500 (eval $ac_try) 2>&5 2501 ac_status=$? 2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2503 (exit $ac_status); }; } && 2504 { ac_try='test -s conftest.$ac_objext' 2505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2506 (eval $ac_try) 2>&5 2507 ac_status=$? 2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2509 (exit $ac_status); }; }; then 2510 ac_cv_prog_cc_stdc=$ac_arg 2511break 2512else 2513 echo "$as_me: failed program was:" >&5 2514sed 's/^/| /' conftest.$ac_ext >&5 2515 2516fi 2517rm -f conftest.err conftest.$ac_objext 2518done 2519rm -f conftest.$ac_ext conftest.$ac_objext 2520CC=$ac_save_CC 2521 2522fi 2523 2524case "x$ac_cv_prog_cc_stdc" in 2525 x|xno) 2526 echo "$as_me:$LINENO: result: none needed" >&5 2527echo "${ECHO_T}none needed" >&6 ;; 2528 *) 2529 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2530echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2531 CC="$CC $ac_cv_prog_cc_stdc" ;; 2532esac 2533 2534# Some people use a C++ compiler to compile C. Since we use `exit', 2535# in C++ we need to declare it. In case someone uses the same compiler 2536# for both compiling C and C++ we need to have the C++ compiler decide 2537# the declaration of exit, since it's the most demanding environment. 2538cat >conftest.$ac_ext <<_ACEOF 2539#ifndef __cplusplus 2540 choke me 2541#endif 2542_ACEOF 2543rm -f conftest.$ac_objext 2544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2545 (eval $ac_compile) 2>conftest.er1 2546 ac_status=$? 2547 grep -v '^ *+' conftest.er1 >conftest.err 2548 rm -f conftest.er1 2549 cat conftest.err >&5 2550 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2551 (exit $ac_status); } && 2552 { ac_try='test -z "$ac_c_werror_flag" 2553 || test ! -s conftest.err' 2554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2555 (eval $ac_try) 2>&5 2556 ac_status=$? 2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2558 (exit $ac_status); }; } && 2559 { ac_try='test -s conftest.$ac_objext' 2560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2561 (eval $ac_try) 2>&5 2562 ac_status=$? 2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2564 (exit $ac_status); }; }; then 2565 for ac_declaration in \ 2566 '' \ 2567 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2568 'extern "C" void std::exit (int); using std::exit;' \ 2569 'extern "C" void exit (int) throw ();' \ 2570 'extern "C" void exit (int);' \ 2571 'void exit (int);' 2572do 2573 cat >conftest.$ac_ext <<_ACEOF 2574/* confdefs.h. */ 2575_ACEOF 2576cat confdefs.h >>conftest.$ac_ext 2577cat >>conftest.$ac_ext <<_ACEOF 2578/* end confdefs.h. */ 2579$ac_declaration 2580#include <stdlib.h> 2581int 2582main () 2583{ 2584exit (42); 2585 ; 2586 return 0; 2587} 2588_ACEOF 2589rm -f conftest.$ac_objext 2590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2591 (eval $ac_compile) 2>conftest.er1 2592 ac_status=$? 2593 grep -v '^ *+' conftest.er1 >conftest.err 2594 rm -f conftest.er1 2595 cat conftest.err >&5 2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2597 (exit $ac_status); } && 2598 { ac_try='test -z "$ac_c_werror_flag" 2599 || test ! -s conftest.err' 2600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2601 (eval $ac_try) 2>&5 2602 ac_status=$? 2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2604 (exit $ac_status); }; } && 2605 { ac_try='test -s conftest.$ac_objext' 2606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2607 (eval $ac_try) 2>&5 2608 ac_status=$? 2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2610 (exit $ac_status); }; }; then 2611 : 2612else 2613 echo "$as_me: failed program was:" >&5 2614sed 's/^/| /' conftest.$ac_ext >&5 2615 2616continue 2617fi 2618rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2619 cat >conftest.$ac_ext <<_ACEOF 2620/* confdefs.h. */ 2621_ACEOF 2622cat confdefs.h >>conftest.$ac_ext 2623cat >>conftest.$ac_ext <<_ACEOF 2624/* end confdefs.h. */ 2625$ac_declaration 2626int 2627main () 2628{ 2629exit (42); 2630 ; 2631 return 0; 2632} 2633_ACEOF 2634rm -f conftest.$ac_objext 2635if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2636 (eval $ac_compile) 2>conftest.er1 2637 ac_status=$? 2638 grep -v '^ *+' conftest.er1 >conftest.err 2639 rm -f conftest.er1 2640 cat conftest.err >&5 2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2642 (exit $ac_status); } && 2643 { ac_try='test -z "$ac_c_werror_flag" 2644 || test ! -s conftest.err' 2645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2646 (eval $ac_try) 2>&5 2647 ac_status=$? 2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2649 (exit $ac_status); }; } && 2650 { ac_try='test -s conftest.$ac_objext' 2651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2652 (eval $ac_try) 2>&5 2653 ac_status=$? 2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2655 (exit $ac_status); }; }; then 2656 break 2657else 2658 echo "$as_me: failed program was:" >&5 2659sed 's/^/| /' conftest.$ac_ext >&5 2660 2661fi 2662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2663done 2664rm -f conftest* 2665if test -n "$ac_declaration"; then 2666 echo '#ifdef __cplusplus' >>confdefs.h 2667 echo $ac_declaration >>confdefs.h 2668 echo '#endif' >>confdefs.h 2669fi 2670 2671else 2672 echo "$as_me: failed program was:" >&5 2673sed 's/^/| /' conftest.$ac_ext >&5 2674 2675fi 2676rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2677ac_ext=c 2678ac_cpp='$CPP $CPPFLAGS' 2679ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2680ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2681ac_compiler_gnu=$ac_cv_c_compiler_gnu 2682 2683if test -z "$CC" ; then 2684 { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5 2685echo "$as_me: error: Failed to find a C compiler!" >&2;} 2686 { (exit 1); exit 1; }; } 2687fi 2688# Autoconf incorrectly concludes that cl recognises -g. It doesn't. 2689case "$CC" in 2690 clang* ) ;; 2691 cl* | */cl* | CL* | */CL* ) 2692 if test "$ac_cv_prog_cc_g" = yes ; then 2693 ac_cv_prog_cc_g=no 2694 { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5 2695echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;} 2696 fi ;; 2697 * ) 2698 if test x"$CYGPATH_W" = x ; then 2699 CYGPATH_W=echo 2700 fi 2701 ;; 2702esac 2703CFLAGS="$save_cflags" 2704 2705# add automake conditional so we can recognize cl compiler in makefile 2706coin_cc_is_cl=false 2707case "$CC" in 2708 clang* ) ;; 2709 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 2710 coin_cc_is_cl=true 2711 ;; 2712esac 2713 2714 2715if test $coin_cc_is_cl = true; then 2716 COIN_CC_IS_CL_TRUE= 2717 COIN_CC_IS_CL_FALSE='#' 2718else 2719 COIN_CC_IS_CL_TRUE='#' 2720 COIN_CC_IS_CL_FALSE= 2721fi 2722 2723 2724# Check if a project specific CFLAGS variable has been set 2725if test x$COIN_PRJCT != x; then 2726 eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set} 2727 if test x$coin_tmp = xset; then 2728 eval CFLAGS=\${${COIN_PRJCT}_CFLAGS} 2729 fi 2730fi 2731 2732if test x"$CFLAGS" = x; then 2733 2734 coin_add_cflags= 2735 coin_opt_cflags= 2736 coin_dbg_cflags= 2737 coin_warn_cflags= 2738 2739 if test "$GCC" = "yes"; then 2740 case "$CC" in 2741 icc* | */icc*) 2742 ;; 2743 *) 2744 coin_opt_cflags="-O3" 2745 coin_add_cflags="-pipe" 2746 coin_dbg_cflags="-g -O0" 2747 coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long" 2748 esac 2749 fi 2750 if test -z "$coin_opt_cflags"; then 2751 case $build in 2752 *-cygwin* | *-mingw*) 2753 case "$CC" in 2754 clang* ) ;; 2755 cl* | */cl* | CL* | */CL*) 2756 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then 2757 coin_opt_cflags='-MD -O2' 2758 coin_dbg_cflags='-MDd' 2759 else 2760 coin_opt_cflags='-MT -O2' 2761 coin_dbg_cflags='-MTd' 2762 fi 2763 coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE' 2764 ;; 2765 icl* | */icl* | ICL* | */ICL*) 2766 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then 2767 coin_opt_cflags='-MD -Ox' 2768 coin_dbg_cflags='-MDd -debug' 2769 else 2770 coin_opt_cflags='-MT -Ox' 2771 coin_dbg_cflags='-MTd -debug' 2772 fi 2773 coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE' 2774 ;; 2775 esac 2776 ;; 2777 *-linux-*) 2778 case "$CC" in 2779 icc* | */icc*) 2780 coin_opt_cflags="-O3 -ip -mp1" 2781 coin_add_cflags="" 2782 coin_dbg_cflags="-g" 2783 # Check if -i_dynamic is necessary (for new glibc library) 2784 CFLAGS= 2785 cat >conftest.$ac_ext <<_ACEOF 2786/* confdefs.h. */ 2787_ACEOF 2788cat confdefs.h >>conftest.$ac_ext 2789cat >>conftest.$ac_ext <<_ACEOF 2790/* end confdefs.h. */ 2791 2792int 2793main () 2794{ 2795int i=0; i++; 2796 ; 2797 return 0; 2798} 2799_ACEOF 2800rm -f conftest.$ac_objext conftest$ac_exeext 2801if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2802 (eval $ac_link) 2>conftest.er1 2803 ac_status=$? 2804 grep -v '^ *+' conftest.er1 >conftest.err 2805 rm -f conftest.er1 2806 cat conftest.err >&5 2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2808 (exit $ac_status); } && 2809 { ac_try='test -z "$ac_c_werror_flag" 2810 || test ! -s conftest.err' 2811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2812 (eval $ac_try) 2>&5 2813 ac_status=$? 2814 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2815 (exit $ac_status); }; } && 2816 { ac_try='test -s conftest$ac_exeext' 2817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2818 (eval $ac_try) 2>&5 2819 ac_status=$? 2820 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2821 (exit $ac_status); }; }; then 2822 : 2823else 2824 echo "$as_me: failed program was:" >&5 2825sed 's/^/| /' conftest.$ac_ext >&5 2826 2827coin_add_cflags="-i_dynamic $coin_add_cflags" 2828fi 2829rm -f conftest.err conftest.$ac_objext \ 2830 conftest$ac_exeext conftest.$ac_ext 2831 ;; 2832 pgcc* | */pgcc*) 2833 coin_opt_cflags="-fast" 2834 coin_add_cflags="-Kieee -pc 64" 2835 coin_dbg_cflags="-g" 2836 ;; 2837 esac 2838 ;; 2839 *-ibm-*) 2840 case "$CC" in 2841 xlc* | */xlc* | mpxlc* | */mpxlc*) 2842 coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1" 2843 coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029" 2844 coin_dbg_cflags="-g" 2845 ;; 2846 esac 2847 ;; 2848 *-hp-*) 2849 coin_opt_cflags="-O" 2850 coin_add_cflags="-Ae" 2851 coin_dbg_cflags="-g" 2852 ;; 2853 *-*-solaris*) 2854 coin_opt_cflags="-xO4" 2855 coin_dbg_cflags="-g" 2856 ;; 2857 *-sgi-*) 2858 coin_opt_cflags="-O -OPT:Olimit=0" 2859 coin_dbg_cflags="-g" 2860 ;; 2861 esac 2862 fi 2863 2864 if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then 2865 coin_dbg_cflags="-g" 2866 fi 2867 2868 if test -z "$coin_opt_cflags"; then 2869 # Try if -O option works if nothing else is set 2870 CFLAGS="-O" 2871 cat >conftest.$ac_ext <<_ACEOF 2872/* confdefs.h. */ 2873_ACEOF 2874cat confdefs.h >>conftest.$ac_ext 2875cat >>conftest.$ac_ext <<_ACEOF 2876/* end confdefs.h. */ 2877 2878int 2879main () 2880{ 2881int i=0; i++; 2882 ; 2883 return 0; 2884} 2885_ACEOF 2886rm -f conftest.$ac_objext conftest$ac_exeext 2887if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2888 (eval $ac_link) 2>conftest.er1 2889 ac_status=$? 2890 grep -v '^ *+' conftest.er1 >conftest.err 2891 rm -f conftest.er1 2892 cat conftest.err >&5 2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2894 (exit $ac_status); } && 2895 { ac_try='test -z "$ac_c_werror_flag" 2896 || test ! -s conftest.err' 2897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2898 (eval $ac_try) 2>&5 2899 ac_status=$? 2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2901 (exit $ac_status); }; } && 2902 { ac_try='test -s conftest$ac_exeext' 2903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2904 (eval $ac_try) 2>&5 2905 ac_status=$? 2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2907 (exit $ac_status); }; }; then 2908 coin_opt_cflags="-O" 2909else 2910 echo "$as_me: failed program was:" >&5 2911sed 's/^/| /' conftest.$ac_ext >&5 2912 2913fi 2914rm -f conftest.err conftest.$ac_objext \ 2915 conftest$ac_exeext conftest.$ac_ext 2916 fi 2917 2918 # if PM doesn't want the warning messages, take them out 2919 if test x"$coin_skip_warn_cflags" = xyes; then 2920 coin_warn_cflags= 2921 fi 2922 2923 if test x${DBG_CFLAGS+set} != xset; then 2924 DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags" 2925 fi 2926 if test x${OPT_CFLAGS+set} != xset; then 2927 OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags" 2928 fi 2929 2930 DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS" 2931 OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS" 2932 2933 if test "$coin_debug_compile" = "true"; then 2934 CFLAGS="$DBG_CFLAGS" 2935 else 2936 CFLAGS="$OPT_CFLAGS" 2937 fi 2938else 2939 CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS" 2940 if test x${DBG_CFLAGS+set} != xset; then 2941 DBG_CFLAGS="$CFLAGS" 2942 fi 2943 if test x${OPT_CFLAGS+set} != xset; then 2944 OPT_CFLAGS="$CFLAGS" 2945 fi 2946fi 2947 2948# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include 2949if test x$COIN_PRJCT != x; then 2950 CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD" 2951fi 2952 2953# Try if CFLAGS works 2954save_CFLAGS="$CFLAGS" 2955cat >conftest.$ac_ext <<_ACEOF 2956/* confdefs.h. */ 2957_ACEOF 2958cat confdefs.h >>conftest.$ac_ext 2959cat >>conftest.$ac_ext <<_ACEOF 2960/* end confdefs.h. */ 2961 2962int 2963main () 2964{ 2965int i=0; i++; 2966 ; 2967 return 0; 2968} 2969_ACEOF 2970rm -f conftest.$ac_objext conftest$ac_exeext 2971if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2972 (eval $ac_link) 2>conftest.er1 2973 ac_status=$? 2974 grep -v '^ *+' conftest.er1 >conftest.err 2975 rm -f conftest.er1 2976 cat conftest.err >&5 2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2978 (exit $ac_status); } && 2979 { ac_try='test -z "$ac_c_werror_flag" 2980 || test ! -s conftest.err' 2981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2982 (eval $ac_try) 2>&5 2983 ac_status=$? 2984 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2985 (exit $ac_status); }; } && 2986 { ac_try='test -s conftest$ac_exeext' 2987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2988 (eval $ac_try) 2>&5 2989 ac_status=$? 2990 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2991 (exit $ac_status); }; }; then 2992 : 2993else 2994 echo "$as_me: failed program was:" >&5 2995sed 's/^/| /' conftest.$ac_ext >&5 2996 2997CFLAGS= 2998fi 2999rm -f conftest.err conftest.$ac_objext \ 3000 conftest$ac_exeext conftest.$ac_ext 3001if test -z "$CFLAGS"; then 3002 { 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 3003echo "$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;} 3004 CFLAGS='-O' 3005 cat >conftest.$ac_ext <<_ACEOF 3006/* confdefs.h. */ 3007_ACEOF 3008cat confdefs.h >>conftest.$ac_ext 3009cat >>conftest.$ac_ext <<_ACEOF 3010/* end confdefs.h. */ 3011 3012int 3013main () 3014{ 3015int i=0; i++; 3016 ; 3017 return 0; 3018} 3019_ACEOF 3020rm -f conftest.$ac_objext conftest$ac_exeext 3021if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3022 (eval $ac_link) 2>conftest.er1 3023 ac_status=$? 3024 grep -v '^ *+' conftest.er1 >conftest.err 3025 rm -f conftest.er1 3026 cat conftest.err >&5 3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3028 (exit $ac_status); } && 3029 { ac_try='test -z "$ac_c_werror_flag" 3030 || test ! -s conftest.err' 3031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3032 (eval $ac_try) 2>&5 3033 ac_status=$? 3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3035 (exit $ac_status); }; } && 3036 { ac_try='test -s conftest$ac_exeext' 3037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3038 (eval $ac_try) 2>&5 3039 ac_status=$? 3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3041 (exit $ac_status); }; }; then 3042 : 3043else 3044 echo "$as_me: failed program was:" >&5 3045sed 's/^/| /' conftest.$ac_ext >&5 3046 3047CFLAGS= 3048fi 3049rm -f conftest.err conftest.$ac_objext \ 3050 conftest$ac_exeext conftest.$ac_ext 3051 if test -z "$CFLAGS"; then 3052 { 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 3053echo "$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;} 3054 fi 3055fi 3056 3057{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5 3058echo "$as_me: C compiler options are: $CFLAGS" >&6;} 3059 3060 3061if test x"$MPICC" = x; then :; else 3062 { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5 3063echo "$as_me: Will use MPI C compiler $MPICC" >&6;} 3064 CC="$MPICC" 3065fi 3066 3067# Correct the LD variable if we are using the MS or Intel-windows compiler 3068case "$CC" in 3069 clang* ) ;; 3070 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 3071 LD=link 3072 ;; 3073esac 3074 3075ac_ext=c 3076ac_cpp='$CPP $CPPFLAGS' 3077ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3078ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3079ac_compiler_gnu=$ac_cv_c_compiler_gnu 3080 3081 3082 3083# Get the name of the C++ compiler and appropriate compiler options 3084 3085 #Let's try if that overcomes configuration problem with VC++ 6.0 3086 3087ac_ext=cc 3088ac_cpp='$CXXCPP $CPPFLAGS' 3089ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3090ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3091ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3092 3093 3094 3095 3096 3097 3098 3099coin_has_cxx=yes 3100 3101save_cxxflags="$CXXFLAGS" 3102# For *-*-solaris*, promote Studio/Workshop compiler to front of list. 3103case $build in 3104 *-cygwin* | *-mingw*) 3105 if test "$enable_msvc" = yes ; then 3106 comps="icl cl g++" 3107 else 3108 comps="g++ icl cl" 3109 fi ;; 3110 *-*-solaris*) 3111 comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;; 3112 *-darwin*) comps="clang++ g++ c++ CC" ;; 3113 *-linux-gnu*) 3114 comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;; 3115 *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;; 3116esac 3117 3118# We delete the cached value, since the test might not have been 3119# performed with our choice of compilers earlier 3120$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; } 3121# AC_MSG_NOTICE([C++ compiler candidates: $comps]) 3122ac_ext=cc 3123ac_cpp='$CXXCPP $CPPFLAGS' 3124ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3125ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3126ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3127if test -n "$ac_tool_prefix"; then 3128 for ac_prog in $CCC $comps 3129 do 3130 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3131set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3132echo "$as_me:$LINENO: checking for $ac_word" >&5 3133echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3134if test "${ac_cv_prog_CXX+set}" = set; then 3135 echo $ECHO_N "(cached) $ECHO_C" >&6 3136else 3137 if test -n "$CXX"; then 3138 ac_cv_prog_CXX="$CXX" # Let the user override the test. 3139else 3140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3141for as_dir in $PATH 3142do 3143 IFS=$as_save_IFS 3144 test -z "$as_dir" && as_dir=. 3145 for ac_exec_ext in '' $ac_executable_extensions; do 3146 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3147 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 3148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3149 break 2 3150 fi 3151done 3152done 3153 3154fi 3155fi 3156CXX=$ac_cv_prog_CXX 3157if test -n "$CXX"; then 3158 echo "$as_me:$LINENO: result: $CXX" >&5 3159echo "${ECHO_T}$CXX" >&6 3160else 3161 echo "$as_me:$LINENO: result: no" >&5 3162echo "${ECHO_T}no" >&6 3163fi 3164 3165 test -n "$CXX" && break 3166 done 3167fi 3168if test -z "$CXX"; then 3169 ac_ct_CXX=$CXX 3170 for ac_prog in $CCC $comps 3171do 3172 # Extract the first word of "$ac_prog", so it can be a program name with args. 3173set dummy $ac_prog; ac_word=$2 3174echo "$as_me:$LINENO: checking for $ac_word" >&5 3175echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3176if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 3177 echo $ECHO_N "(cached) $ECHO_C" >&6 3178else 3179 if test -n "$ac_ct_CXX"; then 3180 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 3181else 3182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3183for as_dir in $PATH 3184do 3185 IFS=$as_save_IFS 3186 test -z "$as_dir" && as_dir=. 3187 for ac_exec_ext in '' $ac_executable_extensions; do 3188 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3189 ac_cv_prog_ac_ct_CXX="$ac_prog" 3190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3191 break 2 3192 fi 3193done 3194done 3195 3196fi 3197fi 3198ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 3199if test -n "$ac_ct_CXX"; then 3200 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 3201echo "${ECHO_T}$ac_ct_CXX" >&6 3202else 3203 echo "$as_me:$LINENO: result: no" >&5 3204echo "${ECHO_T}no" >&6 3205fi 3206 3207 test -n "$ac_ct_CXX" && break 3208done 3209test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 3210 3211 CXX=$ac_ct_CXX 3212fi 3213 3214 3215# Provide some information about the compiler. 3216echo "$as_me:$LINENO:" \ 3217 "checking for C++ compiler version" >&5 3218ac_compiler=`set X $ac_compile; echo $2` 3219{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 3220 (eval $ac_compiler --version </dev/null >&5) 2>&5 3221 ac_status=$? 3222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3223 (exit $ac_status); } 3224{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 3225 (eval $ac_compiler -v </dev/null >&5) 2>&5 3226 ac_status=$? 3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3228 (exit $ac_status); } 3229{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 3230 (eval $ac_compiler -V </dev/null >&5) 2>&5 3231 ac_status=$? 3232 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3233 (exit $ac_status); } 3234 3235echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 3236echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 3237if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 3238 echo $ECHO_N "(cached) $ECHO_C" >&6 3239else 3240 cat >conftest.$ac_ext <<_ACEOF 3241/* confdefs.h. */ 3242_ACEOF 3243cat confdefs.h >>conftest.$ac_ext 3244cat >>conftest.$ac_ext <<_ACEOF 3245/* end confdefs.h. */ 3246 3247int 3248main () 3249{ 3250#ifndef __GNUC__ 3251 choke me 3252#endif 3253 3254 ; 3255 return 0; 3256} 3257_ACEOF 3258rm -f conftest.$ac_objext 3259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3260 (eval $ac_compile) 2>conftest.er1 3261 ac_status=$? 3262 grep -v '^ *+' conftest.er1 >conftest.err 3263 rm -f conftest.er1 3264 cat conftest.err >&5 3265 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3266 (exit $ac_status); } && 3267 { ac_try='test -z "$ac_cxx_werror_flag" 3268 || test ! -s conftest.err' 3269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3270 (eval $ac_try) 2>&5 3271 ac_status=$? 3272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3273 (exit $ac_status); }; } && 3274 { ac_try='test -s conftest.$ac_objext' 3275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3276 (eval $ac_try) 2>&5 3277 ac_status=$? 3278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3279 (exit $ac_status); }; }; then 3280 ac_compiler_gnu=yes 3281else 3282 echo "$as_me: failed program was:" >&5 3283sed 's/^/| /' conftest.$ac_ext >&5 3284 3285ac_compiler_gnu=no 3286fi 3287rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3288ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3289 3290fi 3291echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 3292echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 3293GXX=`test $ac_compiler_gnu = yes && echo yes` 3294ac_test_CXXFLAGS=${CXXFLAGS+set} 3295ac_save_CXXFLAGS=$CXXFLAGS 3296CXXFLAGS="-g" 3297echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 3298echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 3299if test "${ac_cv_prog_cxx_g+set}" = set; then 3300 echo $ECHO_N "(cached) $ECHO_C" >&6 3301else 3302 cat >conftest.$ac_ext <<_ACEOF 3303/* confdefs.h. */ 3304_ACEOF 3305cat confdefs.h >>conftest.$ac_ext 3306cat >>conftest.$ac_ext <<_ACEOF 3307/* end confdefs.h. */ 3308 3309int 3310main () 3311{ 3312 3313 ; 3314 return 0; 3315} 3316_ACEOF 3317rm -f conftest.$ac_objext 3318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3319 (eval $ac_compile) 2>conftest.er1 3320 ac_status=$? 3321 grep -v '^ *+' conftest.er1 >conftest.err 3322 rm -f conftest.er1 3323 cat conftest.err >&5 3324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3325 (exit $ac_status); } && 3326 { ac_try='test -z "$ac_cxx_werror_flag" 3327 || test ! -s conftest.err' 3328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3329 (eval $ac_try) 2>&5 3330 ac_status=$? 3331 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3332 (exit $ac_status); }; } && 3333 { ac_try='test -s conftest.$ac_objext' 3334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3335 (eval $ac_try) 2>&5 3336 ac_status=$? 3337 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3338 (exit $ac_status); }; }; then 3339 ac_cv_prog_cxx_g=yes 3340else 3341 echo "$as_me: failed program was:" >&5 3342sed 's/^/| /' conftest.$ac_ext >&5 3343 3344ac_cv_prog_cxx_g=no 3345fi 3346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3347fi 3348echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 3349echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 3350if test "$ac_test_CXXFLAGS" = set; then 3351 CXXFLAGS=$ac_save_CXXFLAGS 3352elif test $ac_cv_prog_cxx_g = yes; then 3353 if test "$GXX" = yes; then 3354 CXXFLAGS="-g -O2" 3355 else 3356 CXXFLAGS="-g" 3357 fi 3358else 3359 if test "$GXX" = yes; then 3360 CXXFLAGS="-O2" 3361 else 3362 CXXFLAGS= 3363 fi 3364fi 3365for ac_declaration in \ 3366 '' \ 3367 'extern "C" void std::exit (int) throw (); using std::exit;' \ 3368 'extern "C" void std::exit (int); using std::exit;' \ 3369 'extern "C" void exit (int) throw ();' \ 3370 'extern "C" void exit (int);' \ 3371 'void exit (int);' 3372do 3373 cat >conftest.$ac_ext <<_ACEOF 3374/* confdefs.h. */ 3375_ACEOF 3376cat confdefs.h >>conftest.$ac_ext 3377cat >>conftest.$ac_ext <<_ACEOF 3378/* end confdefs.h. */ 3379$ac_declaration 3380#include <stdlib.h> 3381int 3382main () 3383{ 3384exit (42); 3385 ; 3386 return 0; 3387} 3388_ACEOF 3389rm -f conftest.$ac_objext 3390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3391 (eval $ac_compile) 2>conftest.er1 3392 ac_status=$? 3393 grep -v '^ *+' conftest.er1 >conftest.err 3394 rm -f conftest.er1 3395 cat conftest.err >&5 3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3397 (exit $ac_status); } && 3398 { ac_try='test -z "$ac_cxx_werror_flag" 3399 || test ! -s conftest.err' 3400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3401 (eval $ac_try) 2>&5 3402 ac_status=$? 3403 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3404 (exit $ac_status); }; } && 3405 { ac_try='test -s conftest.$ac_objext' 3406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3407 (eval $ac_try) 2>&5 3408 ac_status=$? 3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3410 (exit $ac_status); }; }; then 3411 : 3412else 3413 echo "$as_me: failed program was:" >&5 3414sed 's/^/| /' conftest.$ac_ext >&5 3415 3416continue 3417fi 3418rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3419 cat >conftest.$ac_ext <<_ACEOF 3420/* confdefs.h. */ 3421_ACEOF 3422cat confdefs.h >>conftest.$ac_ext 3423cat >>conftest.$ac_ext <<_ACEOF 3424/* end confdefs.h. */ 3425$ac_declaration 3426int 3427main () 3428{ 3429exit (42); 3430 ; 3431 return 0; 3432} 3433_ACEOF 3434rm -f conftest.$ac_objext 3435if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3436 (eval $ac_compile) 2>conftest.er1 3437 ac_status=$? 3438 grep -v '^ *+' conftest.er1 >conftest.err 3439 rm -f conftest.er1 3440 cat conftest.err >&5 3441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3442 (exit $ac_status); } && 3443 { ac_try='test -z "$ac_cxx_werror_flag" 3444 || test ! -s conftest.err' 3445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3446 (eval $ac_try) 2>&5 3447 ac_status=$? 3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3449 (exit $ac_status); }; } && 3450 { ac_try='test -s conftest.$ac_objext' 3451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3452 (eval $ac_try) 2>&5 3453 ac_status=$? 3454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3455 (exit $ac_status); }; }; then 3456 break 3457else 3458 echo "$as_me: failed program was:" >&5 3459sed 's/^/| /' conftest.$ac_ext >&5 3460 3461fi 3462rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3463done 3464rm -f conftest* 3465if test -n "$ac_declaration"; then 3466 echo '#ifdef __cplusplus' >>confdefs.h 3467 echo $ac_declaration >>confdefs.h 3468 echo '#endif' >>confdefs.h 3469fi 3470 3471ac_ext=cc 3472ac_cpp='$CXXCPP $CPPFLAGS' 3473ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3474ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3475ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3476 3477 3478#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler 3479#thus, we test here whether $CXX is actually working 3480ac_ext=cc 3481ac_cpp='$CXXCPP $CPPFLAGS' 3482ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3483ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3484ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3485 3486echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5 3487echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6; 3488cat >conftest.$ac_ext <<_ACEOF 3489/* confdefs.h. */ 3490_ACEOF 3491cat confdefs.h >>conftest.$ac_ext 3492cat >>conftest.$ac_ext <<_ACEOF 3493/* end confdefs.h. */ 3494 3495int 3496main () 3497{ 3498int i=0; 3499 ; 3500 return 0; 3501} 3502_ACEOF 3503rm -f conftest.$ac_objext 3504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3505 (eval $ac_compile) 2>conftest.er1 3506 ac_status=$? 3507 grep -v '^ *+' conftest.er1 >conftest.err 3508 rm -f conftest.er1 3509 cat conftest.err >&5 3510 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3511 (exit $ac_status); } && 3512 { ac_try='test -z "$ac_cxx_werror_flag" 3513 || test ! -s conftest.err' 3514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3515 (eval $ac_try) 2>&5 3516 ac_status=$? 3517 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3518 (exit $ac_status); }; } && 3519 { ac_try='test -s conftest.$ac_objext' 3520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3521 (eval $ac_try) 2>&5 3522 ac_status=$? 3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3524 (exit $ac_status); }; }; then 3525 echo "$as_me:$LINENO: result: yes" >&5 3526echo "${ECHO_T}yes" >&6 3527else 3528 echo "$as_me: failed program was:" >&5 3529sed 's/^/| /' conftest.$ac_ext >&5 3530 3531echo "$as_me:$LINENO: result: no" >&5 3532echo "${ECHO_T}no" >&6 3533 { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5 3534echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;} 3535 { (exit 1); exit 1; }; } 3536 3537fi 3538rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3539ac_ext=cc 3540ac_cpp='$CXXCPP $CPPFLAGS' 3541ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3542ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3543ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3544 3545 3546coin_cxx_is_cl=false 3547# It seems that we need to cleanup something here for the Windows 3548case "$CXX" in 3549 clang* | */clang*) ;; 3550 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 3551 sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh 3552 mv confdefs.hh confdefs.h 3553 coin_cxx_is_cl=true 3554 ;; 3555esac 3556 3557# add automake conditional so we can recognize cl compiler in makefile 3558 3559 3560if test $coin_cxx_is_cl = true; then 3561 COIN_CXX_IS_CL_TRUE= 3562 COIN_CXX_IS_CL_FALSE='#' 3563else 3564 COIN_CXX_IS_CL_TRUE='#' 3565 COIN_CXX_IS_CL_FALSE= 3566fi 3567 3568 3569# Autoconf incorrectly concludes that cl recognises -g. It doesn't. 3570case "$CXX" in 3571 clang* ) ;; 3572 cl* | */cl* | CL* | */CL* ) 3573 if test "$ac_cv_prog_cxx_g" = yes ; then 3574 ac_cv_prog_cxx_g=no 3575 { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5 3576echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;} 3577 fi ;; 3578 * ) 3579 if test x"$CYGPATH_W" = x ; then 3580 CYGPATH_W=echo 3581 fi 3582 ;; 3583esac 3584CXXFLAGS="$save_cxxflags" 3585 3586# Check if a project specific CXXFLAGS variable has been set 3587if test x$COIN_PRJCT != x; then 3588 eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set} 3589 if test x$coin_tmp = xset; then 3590 eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS} 3591 fi 3592fi 3593 3594if test x"$CXXFLAGS" = x; then 3595 3596# ToDo decide whether we want -DNDEBUG for optimization 3597 coin_add_cxxflags= 3598 coin_opt_cxxflags= 3599 coin_dbg_cxxflags= 3600 coin_warn_cxxflags= 3601 3602 if test "$GXX" = "yes"; then 3603 case "$CXX" in 3604 icpc* | */icpc*) 3605 ;; 3606 *) 3607# ToDo decide about unroll-loops 3608 coin_opt_cxxflags="-O3" 3609 coin_add_cxxflags="-pipe" 3610 coin_dbg_cxxflags="-g -O0" 3611 coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long" 3612 esac 3613 fi 3614 3615# Note that we do not need to cover GCC in the following tests. 3616 3617 if test -z "$coin_opt_cxxflags"; then 3618 case $build in 3619 *-cygwin* | *-mingw*) 3620 case "$CXX" in 3621 clang* ) ;; 3622 cl* | */cl* | CL* | */CL*) 3623 # The MT and MTd options are mutually exclusive 3624 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then 3625 coin_opt_cxxflags='-MD -O2' 3626 coin_dbg_cxxflags='-MDd' 3627 else 3628 coin_opt_cxxflags='-MT -O2' 3629 coin_dbg_cxxflags='-MTd' 3630 fi 3631 coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE' 3632 ;; 3633 icl* | */icl* | ICL* | */ICL*) 3634 # The MT and MTd options are mutually exclusive 3635 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then 3636 coin_opt_cxxflags='-MD -Ox' 3637 coin_dbg_cxxflags='-MDd -debug' 3638 else 3639 coin_opt_cxxflags='-MT -Ox' 3640 coin_dbg_cxxflags='-MTd -debug' 3641 fi 3642 coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE' 3643 ;; 3644 esac 3645 ;; 3646 *-linux-*) 3647 case "$CXX" in 3648 icpc* | */icpc*) 3649 coin_opt_cxxflags="-O3 -ip -mp1" 3650 coin_add_cxxflags="" 3651 coin_dbg_cxxflags="-g" 3652 # Check if -i_dynamic is necessary (for new glibc library) 3653 CXXFLAGS= 3654 cat >conftest.$ac_ext <<_ACEOF 3655/* confdefs.h. */ 3656_ACEOF 3657cat confdefs.h >>conftest.$ac_ext 3658cat >>conftest.$ac_ext <<_ACEOF 3659/* end confdefs.h. */ 3660 3661int 3662main () 3663{ 3664int i=0; i++; 3665 ; 3666 return 0; 3667} 3668_ACEOF 3669rm -f conftest.$ac_objext conftest$ac_exeext 3670if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3671 (eval $ac_link) 2>conftest.er1 3672 ac_status=$? 3673 grep -v '^ *+' conftest.er1 >conftest.err 3674 rm -f conftest.er1 3675 cat conftest.err >&5 3676 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3677 (exit $ac_status); } && 3678 { ac_try='test -z "$ac_cxx_werror_flag" 3679 || test ! -s conftest.err' 3680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3681 (eval $ac_try) 2>&5 3682 ac_status=$? 3683 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3684 (exit $ac_status); }; } && 3685 { ac_try='test -s conftest$ac_exeext' 3686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3687 (eval $ac_try) 2>&5 3688 ac_status=$? 3689 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3690 (exit $ac_status); }; }; then 3691 : 3692else 3693 echo "$as_me: failed program was:" >&5 3694sed 's/^/| /' conftest.$ac_ext >&5 3695 3696coin_add_cxxflags="-i_dynamic $coin_add_cxxflags" 3697fi 3698rm -f conftest.err conftest.$ac_objext \ 3699 conftest$ac_exeext conftest.$ac_ext 3700 ;; 3701 pgCC* | */pgCC*) 3702 coin_opt_cxxflags="-fast" 3703 coin_add_cxxflags="-Kieee -pc 64" 3704 coin_dbg_cxxflags="-g" 3705 ;; 3706 esac 3707 ;; 3708 *-ibm-*) 3709 case "$CXX" in 3710 xlC* | */xlC* | mpxlC* | */mpxlC*) 3711 coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1" 3712 coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++" 3713 coin_dbg_cxxflags="-g" 3714 ;; 3715 esac 3716 ;; 3717 *-hp-*) 3718 case "$CXX" in 3719 aCC* | */aCC* ) 3720 coin_opt_cxxflags="-O" 3721 coin_add_cxxflags="-AA" 3722 coin_dbg_cxxflags="-g" 3723 ;; 3724 esac 3725 ;; 3726 *-*-solaris*) 3727 coin_opt_cxxflags="-O4" 3728 coin_dbg_cxxflags="-g" 3729 ;; 3730 esac 3731 fi 3732 3733# Generic flag settings. If these don't work, add a case above. 3734 3735 if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then 3736 coin_dbg_cxxflags="-g" 3737 fi 3738 3739 if test -z "$coin_opt_cxxflags"; then 3740 # Try if -O option works if nothing else is set 3741 CXXFLAGS=-O 3742 cat >conftest.$ac_ext <<_ACEOF 3743/* confdefs.h. */ 3744_ACEOF 3745cat confdefs.h >>conftest.$ac_ext 3746cat >>conftest.$ac_ext <<_ACEOF 3747/* end confdefs.h. */ 3748 3749int 3750main () 3751{ 3752int i=0; i++; 3753 ; 3754 return 0; 3755} 3756_ACEOF 3757rm -f conftest.$ac_objext conftest$ac_exeext 3758if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3759 (eval $ac_link) 2>conftest.er1 3760 ac_status=$? 3761 grep -v '^ *+' conftest.er1 >conftest.err 3762 rm -f conftest.er1 3763 cat conftest.err >&5 3764 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3765 (exit $ac_status); } && 3766 { ac_try='test -z "$ac_cxx_werror_flag" 3767 || test ! -s conftest.err' 3768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3769 (eval $ac_try) 2>&5 3770 ac_status=$? 3771 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3772 (exit $ac_status); }; } && 3773 { ac_try='test -s conftest$ac_exeext' 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); }; }; then 3779 coin_opt_cxxflags="-O" 3780else 3781 echo "$as_me: failed program was:" >&5 3782sed 's/^/| /' conftest.$ac_ext >&5 3783 3784fi 3785rm -f conftest.err conftest.$ac_objext \ 3786 conftest$ac_exeext conftest.$ac_ext 3787 fi 3788 3789 # if PM doesn't want the warning messages, take them out 3790 if test x"$coin_skip_warn_cxxflags" = xyes; then 3791 coin_warn_cxxflags= 3792 fi 3793 3794# Do final setup of flags based on values determined above. 3795 3796 if test x${DBG_CXXFLAGS+set} != xset; then 3797 DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags" 3798 fi 3799 if test x${OPT_CXXFLAGS+set} != xset; then 3800 OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags" 3801 fi 3802 3803 DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS" 3804 OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS" 3805 3806 if test "$coin_debug_compile" = "true"; then 3807 CXXFLAGS="$DBG_CXXFLAGS" 3808 else 3809 CXXFLAGS="$OPT_CXXFLAGS" 3810 fi 3811 3812# Handle the case where CXXFLAGS was set externally. 3813else 3814 CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS" 3815 if test x${DBG_CXXFLAGS+set} != xset; then 3816 DBG_CXXFLAGS="$CXXFLAGS" 3817 fi 3818 if test x${OPT_CXXFLAGS+set} != xset; then 3819 OPT_CXXFLAGS="$CXXFLAGS" 3820 fi 3821fi 3822 3823# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include 3824if test x$COIN_PRJCT != x; then 3825 CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD" 3826fi 3827 3828# Try if CXXFLAGS works 3829save_CXXFLAGS="$CXXFLAGS" 3830cat >conftest.$ac_ext <<_ACEOF 3831/* confdefs.h. */ 3832_ACEOF 3833cat confdefs.h >>conftest.$ac_ext 3834cat >>conftest.$ac_ext <<_ACEOF 3835/* end confdefs.h. */ 3836 3837int 3838main () 3839{ 3840int i=0; i++; 3841 ; 3842 return 0; 3843} 3844_ACEOF 3845rm -f conftest.$ac_objext conftest$ac_exeext 3846if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3847 (eval $ac_link) 2>conftest.er1 3848 ac_status=$? 3849 grep -v '^ *+' conftest.er1 >conftest.err 3850 rm -f conftest.er1 3851 cat conftest.err >&5 3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3853 (exit $ac_status); } && 3854 { ac_try='test -z "$ac_cxx_werror_flag" 3855 || test ! -s conftest.err' 3856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3857 (eval $ac_try) 2>&5 3858 ac_status=$? 3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3860 (exit $ac_status); }; } && 3861 { ac_try='test -s conftest$ac_exeext' 3862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3863 (eval $ac_try) 2>&5 3864 ac_status=$? 3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3866 (exit $ac_status); }; }; then 3867 : 3868else 3869 echo "$as_me: failed program was:" >&5 3870sed 's/^/| /' conftest.$ac_ext >&5 3871 3872CXXFLAGS= 3873fi 3874rm -f conftest.err conftest.$ac_objext \ 3875 conftest$ac_exeext conftest.$ac_ext 3876if test -z "$CXXFLAGS"; then 3877 { echo "$as_me:$LINENO: WARNING: The flags CXXFLAGS=\"$save_CXXFLAGS\" do not work. I will now just try '-O', but you might want to set CXXFLAGS manually." >&5 3878echo "$as_me: WARNING: The flags CXXFLAGS=\"$save_CXXFLAGS\" do not work. I will now just try '-O', but you might want to set CXXFLAGS manually." >&2;} 3879 CXXFLAGS='-O' 3880 cat >conftest.$ac_ext <<_ACEOF 3881/* confdefs.h. */ 3882_ACEOF 3883cat confdefs.h >>conftest.$ac_ext 3884cat >>conftest.$ac_ext <<_ACEOF 3885/* end confdefs.h. */ 3886 3887int 3888main () 3889{ 3890int i=0; i++; 3891 ; 3892 return 0; 3893} 3894_ACEOF 3895rm -f conftest.$ac_objext conftest$ac_exeext 3896if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3897 (eval $ac_link) 2>conftest.er1 3898 ac_status=$? 3899 grep -v '^ *+' conftest.er1 >conftest.err 3900 rm -f conftest.er1 3901 cat conftest.err >&5 3902 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3903 (exit $ac_status); } && 3904 { ac_try='test -z "$ac_cxx_werror_flag" 3905 || test ! -s conftest.err' 3906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3907 (eval $ac_try) 2>&5 3908 ac_status=$? 3909 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3910 (exit $ac_status); }; } && 3911 { ac_try='test -s conftest$ac_exeext' 3912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3913 (eval $ac_try) 2>&5 3914 ac_status=$? 3915 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3916 (exit $ac_status); }; }; then 3917 : 3918else 3919 echo "$as_me: failed program was:" >&5 3920sed 's/^/| /' conftest.$ac_ext >&5 3921 3922CXXFLAGS= 3923fi 3924rm -f conftest.err conftest.$ac_objext \ 3925 conftest$ac_exeext conftest.$ac_ext 3926 if test -z "$CXXFLAGS"; then 3927 { echo "$as_me:$LINENO: WARNING: This value for CXXFLAGS does not work. I will continue with empty CXXFLAGS, but you might want to set CXXFLAGS manually." >&5 3928echo "$as_me: WARNING: This value for CXXFLAGS does not work. I will continue with empty CXXFLAGS, but you might want to set CXXFLAGS manually." >&2;} 3929 fi 3930fi 3931 3932{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5 3933echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;} 3934 3935 3936if test x"$MPICXX" = x; then :; else 3937 { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5 3938echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;} 3939 CXX="$MPICXX" 3940fi 3941 3942# correct the LD variable in a build with MS or Intel-windows compiler 3943case "$CXX" in 3944 clang* ) ;; 3945 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 3946 LD=link 3947 ;; 3948esac 3949 3950ac_ext=c 3951ac_cpp='$CPP $CPPFLAGS' 3952ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3953ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3954ac_compiler_gnu=$ac_cv_c_compiler_gnu 3955 3956 3957 3958# Get the name of the Fortran compiler and appropriate compiler options 3959case $build in 3960 *-cygwin* | *-mingw*) 3961 if test "$enable_msvc" = yes ; then 3962 coin_f77_comps="ifort fl32 compile_f2c" 3963 else 3964 coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c" 3965 fi ;; 3966 *-*-solaris*) 3967 coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;; 3968 *-linux-gnu*) 3969 coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;; 3970 *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;; 3971 esac 3972 3973 3974 3975 3976 3977ac_ext=f 3978ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 3979ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3980ac_compiler_gnu=$ac_cv_f77_compiler_gnu 3981 3982 3983 3984 3985 3986 3987coin_has_f77=yes 3988 3989save_fflags="$FFLAGS" 3990 3991# We delete the cached value, since the test might not have been 3992# performed with our choice of compilers earlier 3993$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; } 3994 3995# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use 3996# coin_f77_comps to see if there's a program that matches one of the names. 3997# If there's no such program, F77 = unavailable. If we match the name, 3998# feed AC_PROG_F77 the same search list, just to be sure it's a functioning 3999# compiler. 4000# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps]) 4001 4002 4003{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5 4004echo "$as_me: Trying to determine Fortran compiler name" >&6;} 4005if test -n "$ac_tool_prefix"; then 4006 for ac_prog in $coin_f77_comps 4007 do 4008 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4009set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4010echo "$as_me:$LINENO: checking for $ac_word" >&5 4011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4012if test "${ac_cv_prog_F77+set}" = set; then 4013 echo $ECHO_N "(cached) $ECHO_C" >&6 4014else 4015 if test -n "$F77"; then 4016 ac_cv_prog_F77="$F77" # Let the user override the test. 4017else 4018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4019for as_dir in $PATH 4020do 4021 IFS=$as_save_IFS 4022 test -z "$as_dir" && as_dir=. 4023 for ac_exec_ext in '' $ac_executable_extensions; do 4024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4025 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 4026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4027 break 2 4028 fi 4029done 4030done 4031 4032fi 4033fi 4034F77=$ac_cv_prog_F77 4035if test -n "$F77"; then 4036 echo "$as_me:$LINENO: result: $F77" >&5 4037echo "${ECHO_T}$F77" >&6 4038else 4039 echo "$as_me:$LINENO: result: no" >&5 4040echo "${ECHO_T}no" >&6 4041fi 4042 4043 test -n "$F77" && break 4044 done 4045fi 4046if test -z "$F77"; then 4047 ac_ct_F77=$F77 4048 for ac_prog in $coin_f77_comps 4049do 4050 # Extract the first word of "$ac_prog", so it can be a program name with args. 4051set dummy $ac_prog; ac_word=$2 4052echo "$as_me:$LINENO: checking for $ac_word" >&5 4053echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4054if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 4055 echo $ECHO_N "(cached) $ECHO_C" >&6 4056else 4057 if test -n "$ac_ct_F77"; then 4058 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 4059else 4060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4061for as_dir in $PATH 4062do 4063 IFS=$as_save_IFS 4064 test -z "$as_dir" && as_dir=. 4065 for ac_exec_ext in '' $ac_executable_extensions; do 4066 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4067 ac_cv_prog_ac_ct_F77="$ac_prog" 4068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4069 break 2 4070 fi 4071done 4072done 4073 4074fi 4075fi 4076ac_ct_F77=$ac_cv_prog_ac_ct_F77 4077if test -n "$ac_ct_F77"; then 4078 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 4079echo "${ECHO_T}$ac_ct_F77" >&6 4080else 4081 echo "$as_me:$LINENO: result: no" >&5 4082echo "${ECHO_T}no" >&6 4083fi 4084 4085 test -n "$ac_ct_F77" && break 4086done 4087test -n "$ac_ct_F77" || ac_ct_F77="unavailable" 4088 4089 F77=$ac_ct_F77 4090fi 4091 4092 4093if test "$F77" != "unavailable" ; then 4094 ac_ext=f 4095ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 4096ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4097ac_compiler_gnu=$ac_cv_f77_compiler_gnu 4098if test -n "$ac_tool_prefix"; then 4099 for ac_prog in $coin_f77_comps 4100 do 4101 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4102set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4103echo "$as_me:$LINENO: checking for $ac_word" >&5 4104echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4105if test "${ac_cv_prog_F77+set}" = set; then 4106 echo $ECHO_N "(cached) $ECHO_C" >&6 4107else 4108 if test -n "$F77"; then 4109 ac_cv_prog_F77="$F77" # Let the user override the test. 4110else 4111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4112for as_dir in $PATH 4113do 4114 IFS=$as_save_IFS 4115 test -z "$as_dir" && as_dir=. 4116 for ac_exec_ext in '' $ac_executable_extensions; do 4117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4118 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 4119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4120 break 2 4121 fi 4122done 4123done 4124 4125fi 4126fi 4127F77=$ac_cv_prog_F77 4128if test -n "$F77"; then 4129 echo "$as_me:$LINENO: result: $F77" >&5 4130echo "${ECHO_T}$F77" >&6 4131else 4132 echo "$as_me:$LINENO: result: no" >&5 4133echo "${ECHO_T}no" >&6 4134fi 4135 4136 test -n "$F77" && break 4137 done 4138fi 4139if test -z "$F77"; then 4140 ac_ct_F77=$F77 4141 for ac_prog in $coin_f77_comps 4142do 4143 # Extract the first word of "$ac_prog", so it can be a program name with args. 4144set dummy $ac_prog; ac_word=$2 4145echo "$as_me:$LINENO: checking for $ac_word" >&5 4146echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4147if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 4148 echo $ECHO_N "(cached) $ECHO_C" >&6 4149else 4150 if test -n "$ac_ct_F77"; then 4151 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 4152else 4153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4154for as_dir in $PATH 4155do 4156 IFS=$as_save_IFS 4157 test -z "$as_dir" && as_dir=. 4158 for ac_exec_ext in '' $ac_executable_extensions; do 4159 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4160 ac_cv_prog_ac_ct_F77="$ac_prog" 4161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4162 break 2 4163 fi 4164done 4165done 4166 4167fi 4168fi 4169ac_ct_F77=$ac_cv_prog_ac_ct_F77 4170if test -n "$ac_ct_F77"; then 4171 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 4172echo "${ECHO_T}$ac_ct_F77" >&6 4173else 4174 echo "$as_me:$LINENO: result: no" >&5 4175echo "${ECHO_T}no" >&6 4176fi 4177 4178 test -n "$ac_ct_F77" && break 4179done 4180 4181 F77=$ac_ct_F77 4182fi 4183 4184 4185# Provide some information about the compiler. 4186echo "$as_me:4186:" \ 4187 "checking for Fortran 77 compiler version" >&5 4188ac_compiler=`set X $ac_compile; echo $2` 4189{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 4190 (eval $ac_compiler --version </dev/null >&5) 2>&5 4191 ac_status=$? 4192 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4193 (exit $ac_status); } 4194{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 4195 (eval $ac_compiler -v </dev/null >&5) 2>&5 4196 ac_status=$? 4197 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4198 (exit $ac_status); } 4199{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 4200 (eval $ac_compiler -V </dev/null >&5) 2>&5 4201 ac_status=$? 4202 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4203 (exit $ac_status); } 4204rm -f a.out 4205 4206# If we don't use `.F' as extension, the preprocessor is not run on the 4207# input file. (Note that this only needs to work for GNU compilers.) 4208ac_save_ext=$ac_ext 4209ac_ext=F 4210echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 4211echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 4212if test "${ac_cv_f77_compiler_gnu+set}" = set; then 4213 echo $ECHO_N "(cached) $ECHO_C" >&6 4214else 4215 cat >conftest.$ac_ext <<_ACEOF 4216 program main 4217#ifndef __GNUC__ 4218 choke me 4219#endif 4220 4221 end 4222_ACEOF 4223rm -f conftest.$ac_objext 4224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4225 (eval $ac_compile) 2>conftest.er1 4226 ac_status=$? 4227 grep -v '^ *+' conftest.er1 >conftest.err 4228 rm -f conftest.er1 4229 cat conftest.err >&5 4230 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4231 (exit $ac_status); } && 4232 { ac_try='test -z "$ac_f77_werror_flag" 4233 || test ! -s conftest.err' 4234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4235 (eval $ac_try) 2>&5 4236 ac_status=$? 4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4238 (exit $ac_status); }; } && 4239 { ac_try='test -s conftest.$ac_objext' 4240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4241 (eval $ac_try) 2>&5 4242 ac_status=$? 4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4244 (exit $ac_status); }; }; then 4245 ac_compiler_gnu=yes 4246else 4247 echo "$as_me: failed program was:" >&5 4248sed 's/^/| /' conftest.$ac_ext >&5 4249 4250ac_compiler_gnu=no 4251fi 4252rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4253ac_cv_f77_compiler_gnu=$ac_compiler_gnu 4254 4255fi 4256echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 4257echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 4258ac_ext=$ac_save_ext 4259ac_test_FFLAGS=${FFLAGS+set} 4260ac_save_FFLAGS=$FFLAGS 4261FFLAGS= 4262echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 4263echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 4264if test "${ac_cv_prog_f77_g+set}" = set; then 4265 echo $ECHO_N "(cached) $ECHO_C" >&6 4266else 4267 FFLAGS=-g 4268cat >conftest.$ac_ext <<_ACEOF 4269 program main 4270 4271 end 4272_ACEOF 4273rm -f conftest.$ac_objext 4274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4275 (eval $ac_compile) 2>conftest.er1 4276 ac_status=$? 4277 grep -v '^ *+' conftest.er1 >conftest.err 4278 rm -f conftest.er1 4279 cat conftest.err >&5 4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4281 (exit $ac_status); } && 4282 { ac_try='test -z "$ac_f77_werror_flag" 4283 || test ! -s conftest.err' 4284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4285 (eval $ac_try) 2>&5 4286 ac_status=$? 4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4288 (exit $ac_status); }; } && 4289 { ac_try='test -s conftest.$ac_objext' 4290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4291 (eval $ac_try) 2>&5 4292 ac_status=$? 4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4294 (exit $ac_status); }; }; then 4295 ac_cv_prog_f77_g=yes 4296else 4297 echo "$as_me: failed program was:" >&5 4298sed 's/^/| /' conftest.$ac_ext >&5 4299 4300ac_cv_prog_f77_g=no 4301fi 4302rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4303 4304fi 4305echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 4306echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 4307if test "$ac_test_FFLAGS" = set; then 4308 FFLAGS=$ac_save_FFLAGS 4309elif test $ac_cv_prog_f77_g = yes; then 4310 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 4311 FFLAGS="-g -O2" 4312 else 4313 FFLAGS="-g" 4314 fi 4315else 4316 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 4317 FFLAGS="-O2" 4318 else 4319 FFLAGS= 4320 fi 4321fi 4322 4323G77=`test $ac_compiler_gnu = yes && echo yes` 4324ac_ext=f 4325ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 4326ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4327ac_compiler_gnu=$ac_cv_f77_compiler_gnu 4328 4329else 4330 { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5 4331echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;} 4332fi 4333 4334FFLAGS="$save_fflags" 4335 4336# Check if a project specific FFLAGS variable has been set 4337if test x$COIN_PRJCT != x; then 4338 eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set} 4339 if test x$coin_tmp = xset; then 4340 eval FFLAGS=\${${COIN_PRJCT}_FFLAGS} 4341 fi 4342fi 4343 4344if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then 4345 4346 coin_add_fflags= 4347 coin_opt_fflags= 4348 coin_dbg_fflags= 4349 coin_warn_fflags= 4350 4351 if test "$G77" = "yes"; then 4352 coin_opt_fflags="-O3" 4353 coin_add_fflags="-pipe" 4354 coin_dbg_fflags="-g -O0" 4355 else 4356 case $build in 4357 *-cygwin* | *-mingw*) 4358 case $F77 in 4359 ifort* | */ifort* | IFORT* | */IFORT* ) 4360 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then 4361 coin_opt_fflags='-MD -O3' 4362 coin_dbg_fflags='-MDd -debug' 4363 else 4364 coin_opt_fflags='-MT -O3' 4365 coin_dbg_fflags='-MTd -debug' 4366 fi 4367 coin_add_fflags='-fpp -nologo' 4368 ;; 4369 compile_f2c*) 4370 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then 4371 coin_opt_fflags='-MD -O2' 4372 coin_dbg_fflags='-MDd' 4373 else 4374 coin_opt_fflags='-MT -O2' 4375 coin_dbg_fflags='-MTd' 4376 fi 4377 coin_add_fflags='-nologo -wd4996' 4378 ;; 4379 esac 4380 ;; 4381 *-linux-*) 4382 case $F77 in 4383 ifc* | */ifc* | ifort* | */ifort*) 4384 coin_opt_fflags="-O3 -ip" 4385 coin_add_fflags="-cm -w90 -w95" 4386 coin_dbg_fflags="-g -CA -CB -CS" 4387 # Check if -i_dynamic is necessary (for new glibc library) 4388 FFLAGS= 4389 cat >conftest.$ac_ext <<_ACEOF 4390 program main 4391 write(*,*) 'Hello world' 4392 end 4393_ACEOF 4394rm -f conftest.$ac_objext conftest$ac_exeext 4395if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4396 (eval $ac_link) 2>conftest.er1 4397 ac_status=$? 4398 grep -v '^ *+' conftest.er1 >conftest.err 4399 rm -f conftest.er1 4400 cat conftest.err >&5 4401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4402 (exit $ac_status); } && 4403 { ac_try='test -z "$ac_f77_werror_flag" 4404 || test ! -s conftest.err' 4405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4406 (eval $ac_try) 2>&5 4407 ac_status=$? 4408 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4409 (exit $ac_status); }; } && 4410 { ac_try='test -s conftest$ac_exeext' 4411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4412 (eval $ac_try) 2>&5 4413 ac_status=$? 4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4415 (exit $ac_status); }; }; then 4416 : 4417else 4418 echo "$as_me: failed program was:" >&5 4419sed 's/^/| /' conftest.$ac_ext >&5 4420 4421coin_add_fflags="-i_dynamic $coin_add_fflags" 4422fi 4423rm -f conftest.err conftest.$ac_objext \ 4424 conftest$ac_exeext conftest.$ac_ext 4425 ;; 4426 pgf77* | */pgf77* | pgf90* | */pgf90*) 4427 coin_opt_fflags="-fast" 4428 coin_add_fflags="-Kieee -pc 64" 4429 coin_dbg_fflags="-g" 4430 ;; 4431 esac 4432 ;; 4433 *-ibm-*) 4434 case "$F77" in 4435 xlf* | */xlf* | mpxlf* | */mpxlf* ) 4436 coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1" 4437 coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029" 4438 coin_dbg_fflags="-g -C" 4439 ;; 4440 esac 4441 ;; 4442 *-hp-*) 4443 coin_opt_fflags="+O3" 4444 coin_add_fflags="+U77" 4445 coin_dbg_fflags="-C -g" 4446 ;; 4447 *-*-solaris*) 4448 coin_opt_fflags="-O4" 4449 coin_dbg_fflags="-g" 4450 ;; 4451 *-sgi-*) 4452 coin_opt_fflags="-O5 -OPT:Olimit=0" 4453 coin_dbg_fflags="-g" 4454 ;; 4455 esac 4456 fi 4457 4458 if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then 4459 coin_dbg_fflags="-g" 4460 fi 4461 4462 if test -z "$coin_opt_fflags"; then 4463 # Try if -O option works if nothing else is set 4464 FFLAGS=-O 4465 cat >conftest.$ac_ext <<_ACEOF 4466 program main 4467 integer i 4468 end 4469_ACEOF 4470rm -f conftest.$ac_objext conftest$ac_exeext 4471if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4472 (eval $ac_link) 2>conftest.er1 4473 ac_status=$? 4474 grep -v '^ *+' conftest.er1 >conftest.err 4475 rm -f conftest.er1 4476 cat conftest.err >&5 4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4478 (exit $ac_status); } && 4479 { ac_try='test -z "$ac_f77_werror_flag" 4480 || test ! -s conftest.err' 4481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4482 (eval $ac_try) 2>&5 4483 ac_status=$? 4484 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4485 (exit $ac_status); }; } && 4486 { ac_try='test -s conftest$ac_exeext' 4487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4488 (eval $ac_try) 2>&5 4489 ac_status=$? 4490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4491 (exit $ac_status); }; }; then 4492 coin_opt_fflags="-O" 4493else 4494 echo "$as_me: failed program was:" >&5 4495sed 's/^/| /' conftest.$ac_ext >&5 4496 4497fi 4498rm -f conftest.err conftest.$ac_objext \ 4499 conftest$ac_exeext conftest.$ac_ext 4500 fi 4501 4502 # if PM doesn't want the warning messages, take them out 4503 if test x"$coin_skip_warn_fflags" = xyes; then 4504 coin_warn_fflags= 4505 fi 4506 4507 if test x${DBG_FFLAGS+set} != xset; then 4508 DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags" 4509 fi 4510 if test x${OPT_FFLAGS+set} != xset; then 4511 OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags" 4512 fi 4513 4514 DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS" 4515 OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS" 4516 4517 if test "$coin_debug_compile" = "true"; then 4518 FFLAGS="$DBG_FFLAGS" 4519 else 4520 FFLAGS="$OPT_FFLAGS" 4521 fi 4522else 4523 FFLAGS="$FFLAGS $ADD_FFLAGS" 4524 if test x${DBG_FFLAGS+set} != xset; then 4525 DBG_FFLAGS="$FFLAGS" 4526 fi 4527 if test x${OPT_FFLAGS+set} != xset; then 4528 OPT_FFLAGS="$FFLAGS" 4529 fi 4530fi 4531 4532# Try if FFLAGS works 4533if test "$F77" != "unavailable" ; then 4534 orig_FFLAGS="FFLAGS" 4535 cat >conftest.$ac_ext <<_ACEOF 4536 program main 4537 integer i 4538 end 4539_ACEOF 4540rm -f conftest.$ac_objext conftest$ac_exeext 4541if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4542 (eval $ac_link) 2>conftest.er1 4543 ac_status=$? 4544 grep -v '^ *+' conftest.er1 >conftest.err 4545 rm -f conftest.er1 4546 cat conftest.err >&5 4547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4548 (exit $ac_status); } && 4549 { ac_try='test -z "$ac_f77_werror_flag" 4550 || test ! -s conftest.err' 4551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4552 (eval $ac_try) 2>&5 4553 ac_status=$? 4554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4555 (exit $ac_status); }; } && 4556 { ac_try='test -s conftest$ac_exeext' 4557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4558 (eval $ac_try) 2>&5 4559 ac_status=$? 4560 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4561 (exit $ac_status); }; }; then 4562 : 4563else 4564 echo "$as_me: failed program was:" >&5 4565sed 's/^/| /' conftest.$ac_ext >&5 4566 4567FFLAGS= 4568fi 4569rm -f conftest.err conftest.$ac_objext \ 4570 conftest$ac_exeext conftest.$ac_ext 4571 if test -z "$FFLAGS"; then 4572 { 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 4573echo "$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;} 4574 FFLAGS='-O' 4575 cat >conftest.$ac_ext <<_ACEOF 4576 program main 4577 integer i 4578 end 4579_ACEOF 4580rm -f conftest.$ac_objext conftest$ac_exeext 4581if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4582 (eval $ac_link) 2>conftest.er1 4583 ac_status=$? 4584 grep -v '^ *+' conftest.er1 >conftest.err 4585 rm -f conftest.er1 4586 cat conftest.err >&5 4587 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4588 (exit $ac_status); } && 4589 { ac_try='test -z "$ac_f77_werror_flag" 4590 || test ! -s conftest.err' 4591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4592 (eval $ac_try) 2>&5 4593 ac_status=$? 4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4595 (exit $ac_status); }; } && 4596 { ac_try='test -s conftest$ac_exeext' 4597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4598 (eval $ac_try) 2>&5 4599 ac_status=$? 4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4601 (exit $ac_status); }; }; then 4602 : 4603else 4604 echo "$as_me: failed program was:" >&5 4605sed 's/^/| /' conftest.$ac_ext >&5 4606 4607FFLAGS= 4608fi 4609rm -f conftest.err conftest.$ac_objext \ 4610 conftest$ac_exeext conftest.$ac_ext 4611 if test -z "$FFLAGS"; then 4612 { 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 4613echo "$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;} 4614 fi 4615 fi 4616fi 4617 4618{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5 4619echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;} 4620 4621 4622if test x"$MPIF77" = x; then :; else 4623 { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5 4624echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;} 4625 F77="$MPIF77" 4626fi 4627 4628# correct the LD variable if we use the intel fortran compiler in windows 4629case $build in 4630 *-cygwin* | *-mingw*) 4631 case "$F77" in 4632 ifort* | */ifort* | IFORT* | */IFORT*) 4633 LD=link 4634 ;; 4635 esac 4636 ;; 4637esac 4638 4639ac_ext=c 4640ac_cpp='$CPP $CPPFLAGS' 4641ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4642ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4643ac_compiler_gnu=$ac_cv_c_compiler_gnu 4644 4645 4646 4647# Initialize automake and libtool 4648# AC_MSG_NOTICE([Calling INIT_AUTO_TOOLS from CREATE_LIBTOOL.]) 4649{ 4650 4651 4652 4653# START 4654 4655coin_disable_shared=no 4656# Test if force_shared has been set 4657if test "x" = xforce_shared; then 4658 if test x$enable_shared = xno; then 4659 { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5 4660echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;} 4661 { (exit 1); exit 1; }; } 4662 fi 4663 enable_shared=yes; 4664else 4665 case $build in 4666 *-cygwin* | *-mingw*) 4667 coin_disable_shared=yes 4668 if test x"$enable_shared" = xyes; then 4669 case "$CC" in 4670 clang* ) 4671 { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5 4672echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;} 4673 ;; 4674 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 4675 { echo "$as_me:$LINENO: Building of DLLs not supported in this configuration." >&5 4676echo "$as_me: Building of DLLs not supported in this configuration." >&6;} 4677 ;; 4678 *gcc*) 4679 if test x"$enable_dependency_linking" = xyes; then 4680 coin_disable_shared=no 4681 else 4682 { echo "$as_me:$LINENO: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&5 4683echo "$as_me: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&2;} 4684 fi 4685 ;; 4686 *) 4687 { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5 4688echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;} 4689 ;; 4690 esac 4691 fi 4692 ;; 4693 *-aix*) 4694 coin_disable_shared=yes 4695 platform=AIX 4696 if test x"$enable_shared" = xyes; then 4697 { echo "$as_me:$LINENO: WARNING: Shared objects are not supported." >&5 4698echo "$as_me: WARNING: Shared objects are not supported." >&2;} 4699 fi 4700 ;; 4701 esac 4702fi 4703if test x"$coin_disable_shared" = xyes; then 4704 if test x"$enable_shared" = xyes; then 4705 : 4706 else 4707 # we don't disable shared, because it was not selected anyway 4708 coin_disable_shared=no 4709 fi 4710 enable_shared=no 4711fi 4712# By default, we only want the shared objects to be compiled 4713# Check whether --enable-static or --disable-static was given. 4714if test "${enable_static+set}" = set; then 4715 enableval="$enable_static" 4716 p=${PACKAGE-default} 4717 case $enableval in 4718 yes) enable_static=yes ;; 4719 no) enable_static=no ;; 4720 *) 4721 enable_static=no 4722 # Look at the argument we got. We use all the common list separators. 4723 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4724 for pkg in $enableval; do 4725 IFS="$lt_save_ifs" 4726 if test "X$pkg" = "X$p"; then 4727 enable_static=yes 4728 fi 4729 done 4730 IFS="$lt_save_ifs" 4731 ;; 4732 esac 4733else 4734 enable_static=no 4735fi; 4736 4737 4738 4739 4740# Initialize automake 4741echo "$as_me:$LINENO: checking for egrep" >&5 4742echo $ECHO_N "checking for egrep... $ECHO_C" >&6 4743if test "${ac_cv_prog_egrep+set}" = set; then 4744 echo $ECHO_N "(cached) $ECHO_C" >&6 4745else 4746 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 4747 then ac_cv_prog_egrep='grep -E' 4748 else ac_cv_prog_egrep='egrep' 4749 fi 4750fi 4751echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 4752echo "${ECHO_T}$ac_cv_prog_egrep" >&6 4753 EGREP=$ac_cv_prog_egrep 4754 4755 4756echo "$as_me:$LINENO: checking whether ln -s works" >&5 4757echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 4758LN_S=$as_ln_s 4759if test "$LN_S" = "ln -s"; then 4760 echo "$as_me:$LINENO: result: yes" >&5 4761echo "${ECHO_T}yes" >&6 4762else 4763 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4764echo "${ECHO_T}no, using $LN_S" >&6 4765fi 4766 4767am__api_version="1.9" 4768# Find a good install program. We prefer a C program (faster), 4769# so one script is as good as another. But avoid the broken or 4770# incompatible versions: 4771# SysV /etc/install, /usr/sbin/install 4772# SunOS /usr/etc/install 4773# IRIX /sbin/install 4774# AIX /bin/install 4775# AmigaOS /C/install, which installs bootblocks on floppy discs 4776# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4777# AFS /usr/afsws/bin/install, which mishandles nonexistent args 4778# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4779# OS/2's system install, which has a completely different semantic 4780# ./install, which can be erroneously created by make from ./install.sh. 4781echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 4782echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 4783if test -z "$INSTALL"; then 4784if test "${ac_cv_path_install+set}" = set; then 4785 echo $ECHO_N "(cached) $ECHO_C" >&6 4786else 4787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4788for as_dir in $PATH 4789do 4790 IFS=$as_save_IFS 4791 test -z "$as_dir" && as_dir=. 4792 # Account for people who put trailing slashes in PATH elements. 4793case $as_dir/ in 4794 ./ | .// | /cC/* | \ 4795 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4796 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 4797 /usr/ucb/* ) ;; 4798 *) 4799 # OSF1 and SCO ODT 3.0 have their own names for install. 4800 # Don't use installbsd from OSF since it installs stuff as root 4801 # by default. 4802 for ac_prog in ginstall scoinst install; do 4803 for ac_exec_ext in '' $ac_executable_extensions; do 4804 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 4805 if test $ac_prog = install && 4806 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4807 # AIX install. It has an incompatible calling convention. 4808 : 4809 elif test $ac_prog = install && 4810 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4811 # program-specific install script used by HP pwplus--don't use. 4812 : 4813 else 4814 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 4815 break 3 4816 fi 4817 fi 4818 done 4819 done 4820 ;; 4821esac 4822done 4823 4824 4825fi 4826 if test "${ac_cv_path_install+set}" = set; then 4827 INSTALL=$ac_cv_path_install 4828 else 4829 # As a last resort, use the slow shell script. We don't cache a 4830 # path for INSTALL within a source directory, because that will 4831 # break other packages using the cache if that directory is 4832 # removed, or if the path is relative. 4833 INSTALL=$ac_install_sh 4834 fi 4835fi 4836echo "$as_me:$LINENO: result: $INSTALL" >&5 4837echo "${ECHO_T}$INSTALL" >&6 4838 4839# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4840# It thinks the first close brace ends the variable substitution. 4841test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4842 4843test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4844 4845test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4846 4847echo "$as_me:$LINENO: checking whether build environment is sane" >&5 4848echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 4849# Just in case 4850sleep 1 4851echo timestamp > conftest.file 4852# Do `set' in a subshell so we don't clobber the current shell's 4853# arguments. Must try -L first in case configure is actually a 4854# symlink; some systems play weird games with the mod time of symlinks 4855# (eg FreeBSD returns the mod time of the symlink's containing 4856# directory). 4857if ( 4858 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 4859 if test "$*" = "X"; then 4860 # -L didn't work. 4861 set X `ls -t $srcdir/configure conftest.file` 4862 fi 4863 rm -f conftest.file 4864 if test "$*" != "X $srcdir/configure conftest.file" \ 4865 && test "$*" != "X conftest.file $srcdir/configure"; then 4866 4867 # If neither matched, then we have a broken ls. This can happen 4868 # if, for instance, CONFIG_SHELL is bash and it inherits a 4869 # broken ls alias from the environment. This has actually 4870 # happened. Such a system could not be considered "sane". 4871 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 4872alias in your environment" >&5 4873echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 4874alias in your environment" >&2;} 4875 { (exit 1); exit 1; }; } 4876 fi 4877 4878 test "$2" = conftest.file 4879 ) 4880then 4881 # Ok. 4882 : 4883else 4884 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 4885Check your system clock" >&5 4886echo "$as_me: error: newly created file is older than distributed files! 4887Check your system clock" >&2;} 4888 { (exit 1); exit 1; }; } 4889fi 4890echo "$as_me:$LINENO: result: yes" >&5 4891echo "${ECHO_T}yes" >&6 4892test "$program_prefix" != NONE && 4893 program_transform_name="s,^,$program_prefix,;$program_transform_name" 4894# Use a double $ so make ignores it. 4895test "$program_suffix" != NONE && 4896 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 4897# Double any \ or $. echo might interpret backslashes. 4898# By default was `s,x,x', remove it if useless. 4899cat <<\_ACEOF >conftest.sed 4900s/[\\$]/&&/g;s/;s,x,x,$// 4901_ACEOF 4902program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 4903rm conftest.sed 4904 4905# expand $ac_aux_dir to an absolute path 4906am_aux_dir=`cd $ac_aux_dir && pwd` 4907 4908test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 4909# Use eval to expand $SHELL 4910if eval "$MISSING --run true"; then 4911 am_missing_run="$MISSING --run " 4912else 4913 am_missing_run= 4914 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 4915echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 4916fi 4917 4918if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 4919 # We used to keeping the `.' as first argument, in order to 4920 # allow $(mkdir_p) to be used without argument. As in 4921 # $(mkdir_p) $(somedir) 4922 # where $(somedir) is conditionally defined. However this is wrong 4923 # for two reasons: 4924 # 1. if the package is installed by a user who cannot write `.' 4925 # make install will fail, 4926 # 2. the above comment should most certainly read 4927 # $(mkdir_p) $(DESTDIR)$(somedir) 4928 # so it does not work when $(somedir) is undefined and 4929 # $(DESTDIR) is not. 4930 # To support the latter case, we have to write 4931 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 4932 # so the `.' trick is pointless. 4933 mkdir_p='mkdir -p --' 4934else 4935 # On NextStep and OpenStep, the `mkdir' command does not 4936 # recognize any option. It will interpret all options as 4937 # directories to create, and then abort because `.' already 4938 # exists. 4939 for d in ./-p ./--version; 4940 do 4941 test -d $d && rmdir $d 4942 done 4943 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 4944 if test -f "$ac_aux_dir/mkinstalldirs"; then 4945 mkdir_p='$(mkinstalldirs)' 4946 else 4947 mkdir_p='$(install_sh) -d' 4948 fi 4949fi 4950 4951for ac_prog in gawk mawk nawk awk 4952do 4953 # Extract the first word of "$ac_prog", so it can be a program name with args. 4954set dummy $ac_prog; ac_word=$2 4955echo "$as_me:$LINENO: checking for $ac_word" >&5 4956echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4957if test "${ac_cv_prog_AWK+set}" = set; then 4958 echo $ECHO_N "(cached) $ECHO_C" >&6 4959else 4960 if test -n "$AWK"; then 4961 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4962else 4963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4964for as_dir in $PATH 4965do 4966 IFS=$as_save_IFS 4967 test -z "$as_dir" && as_dir=. 4968 for ac_exec_ext in '' $ac_executable_extensions; do 4969 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4970 ac_cv_prog_AWK="$ac_prog" 4971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4972 break 2 4973 fi 4974done 4975done 4976 4977fi 4978fi 4979AWK=$ac_cv_prog_AWK 4980if test -n "$AWK"; then 4981 echo "$as_me:$LINENO: result: $AWK" >&5 4982echo "${ECHO_T}$AWK" >&6 4983else 4984 echo "$as_me:$LINENO: result: no" >&5 4985echo "${ECHO_T}no" >&6 4986fi 4987 4988 test -n "$AWK" && break 4989done 4990 4991echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4992echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 4993set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 4994if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 4995 echo $ECHO_N "(cached) $ECHO_C" >&6 4996else 4997 cat >conftest.make <<\_ACEOF 4998all: 4999 @echo 'ac_maketemp="$(MAKE)"' 5000_ACEOF 5001# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 5002eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 5003if test -n "$ac_maketemp"; then 5004 eval ac_cv_prog_make_${ac_make}_set=yes 5005else 5006 eval ac_cv_prog_make_${ac_make}_set=no 5007fi 5008rm -f conftest.make 5009fi 5010if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 5011 echo "$as_me:$LINENO: result: yes" >&5 5012echo "${ECHO_T}yes" >&6 5013 SET_MAKE= 5014else 5015 echo "$as_me:$LINENO: result: no" >&5 5016echo "${ECHO_T}no" >&6 5017 SET_MAKE="MAKE=${MAKE-make}" 5018fi 5019 5020rm -rf .tst 2>/dev/null 5021mkdir .tst 2>/dev/null 5022if test -d .tst; then 5023 am__leading_dot=. 5024else 5025 am__leading_dot=_ 5026fi 5027rmdir .tst 2>/dev/null 5028 5029DEPDIR="${am__leading_dot}deps" 5030 5031 ac_config_commands="$ac_config_commands depfiles" 5032 5033 5034am_make=${MAKE-make} 5035cat > confinc << 'END' 5036am__doit: 5037 @echo done 5038.PHONY: am__doit 5039END 5040# If we don't find an include directive, just comment out the code. 5041echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 5042echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 5043am__include="#" 5044am__quote= 5045_am_result=none 5046# First try GNU make style include. 5047echo "include confinc" > confmf 5048# We grep out `Entering directory' and `Leaving directory' 5049# messages which can occur if `w' ends up in MAKEFLAGS. 5050# In particular we don't look at `^make:' because GNU make might 5051# be invoked under some other name (usually "gmake"), in which 5052# case it prints its new name instead of `make'. 5053if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 5054 am__include=include 5055 am__quote= 5056 _am_result=GNU 5057fi 5058# Now try BSD make style include. 5059if test "$am__include" = "#"; then 5060 echo '.include "confinc"' > confmf 5061 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 5062 am__include=.include 5063 am__quote="\"" 5064 _am_result=BSD 5065 fi 5066fi 5067 5068 5069echo "$as_me:$LINENO: result: $_am_result" >&5 5070echo "${ECHO_T}$_am_result" >&6 5071rm -f confinc confmf 5072 5073# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 5074if test "${enable_dependency_tracking+set}" = set; then 5075 enableval="$enable_dependency_tracking" 5076 5077fi; 5078if test "x$enable_dependency_tracking" != xno; then 5079 am_depcomp="$ac_aux_dir/depcomp" 5080 AMDEPBACKSLASH='\' 5081fi 5082 5083 5084if test "x$enable_dependency_tracking" != xno; then 5085 AMDEP_TRUE= 5086 AMDEP_FALSE='#' 5087else 5088 AMDEP_TRUE='#' 5089 AMDEP_FALSE= 5090fi 5091 5092 5093 5094 5095 5096 5097# AC_MSG_NOTICE([Beginning automake initialisation.]) 5098# Stuff for automake 5099# test to see if srcdir already configured 5100if test "`cd $srcdir && pwd`" != "`pwd`" && 5101 test -f $srcdir/config.status; then 5102 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 5103echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 5104 { (exit 1); exit 1; }; } 5105fi 5106 5107# test whether we have cygpath 5108if test -z "$CYGPATH_W"; then 5109 if (cygpath --version) >/dev/null 2>/dev/null; then 5110 CYGPATH_W='cygpath -w' 5111 else 5112 CYGPATH_W=echo 5113 fi 5114fi 5115 5116 5117# Define the identity of the package. 5118 PACKAGE='alps' 5119 VERSION='2.0.1' 5120 5121 5122cat >>confdefs.h <<_ACEOF 5123#define PACKAGE "$PACKAGE" 5124_ACEOF 5125 5126 5127cat >>confdefs.h <<_ACEOF 5128#define VERSION "$VERSION" 5129_ACEOF 5130 5131# Some tools Automake needs. 5132 5133ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 5134 5135 5136AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 5137 5138 5139AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 5140 5141 5142AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 5143 5144 5145MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 5146 5147install_sh=${install_sh-"$am_aux_dir/install-sh"} 5148 5149# Installed binaries are usually stripped using `strip' when the user 5150# run `make install-strip'. However `strip' might not be the right 5151# tool to use in cross-compilation environments, therefore Automake 5152# will honor the `STRIP' environment variable to overrule this program. 5153if test "$cross_compiling" != no; then 5154 if test -n "$ac_tool_prefix"; then 5155 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5156set dummy ${ac_tool_prefix}strip; ac_word=$2 5157echo "$as_me:$LINENO: checking for $ac_word" >&5 5158echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5159if test "${ac_cv_prog_STRIP+set}" = set; then 5160 echo $ECHO_N "(cached) $ECHO_C" >&6 5161else 5162 if test -n "$STRIP"; then 5163 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5164else 5165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5166for as_dir in $PATH 5167do 5168 IFS=$as_save_IFS 5169 test -z "$as_dir" && as_dir=. 5170 for ac_exec_ext in '' $ac_executable_extensions; do 5171 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5172 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5174 break 2 5175 fi 5176done 5177done 5178 5179fi 5180fi 5181STRIP=$ac_cv_prog_STRIP 5182if test -n "$STRIP"; then 5183 echo "$as_me:$LINENO: result: $STRIP" >&5 5184echo "${ECHO_T}$STRIP" >&6 5185else 5186 echo "$as_me:$LINENO: result: no" >&5 5187echo "${ECHO_T}no" >&6 5188fi 5189 5190fi 5191if test -z "$ac_cv_prog_STRIP"; then 5192 ac_ct_STRIP=$STRIP 5193 # Extract the first word of "strip", so it can be a program name with args. 5194set dummy strip; ac_word=$2 5195echo "$as_me:$LINENO: checking for $ac_word" >&5 5196echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5197if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 5198 echo $ECHO_N "(cached) $ECHO_C" >&6 5199else 5200 if test -n "$ac_ct_STRIP"; then 5201 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5202else 5203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5204for as_dir in $PATH 5205do 5206 IFS=$as_save_IFS 5207 test -z "$as_dir" && as_dir=. 5208 for ac_exec_ext in '' $ac_executable_extensions; do 5209 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5210 ac_cv_prog_ac_ct_STRIP="strip" 5211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5212 break 2 5213 fi 5214done 5215done 5216 5217 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 5218fi 5219fi 5220ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5221if test -n "$ac_ct_STRIP"; then 5222 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 5223echo "${ECHO_T}$ac_ct_STRIP" >&6 5224else 5225 echo "$as_me:$LINENO: result: no" >&5 5226echo "${ECHO_T}no" >&6 5227fi 5228 5229 STRIP=$ac_ct_STRIP 5230else 5231 STRIP="$ac_cv_prog_STRIP" 5232fi 5233 5234fi 5235INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 5236 5237# We need awk for the "check" target. The system "awk" is bad on 5238# some platforms. 5239# Always define AMTAR for backward compatibility. 5240 5241AMTAR=${AMTAR-"${am_missing_run}tar"} 5242 5243am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 5244 5245 5246 5247 5248depcc="$CC" am_compiler_list= 5249 5250echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5251echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 5252if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 5253 echo $ECHO_N "(cached) $ECHO_C" >&6 5254else 5255 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5256 # We make a subdir and do the tests there. Otherwise we can end up 5257 # making bogus files that we don't know about and never remove. For 5258 # instance it was reported that on HP-UX the gcc test will end up 5259 # making a dummy file named `D' -- because `-MD' means `put the output 5260 # in D'. 5261 mkdir conftest.dir 5262 # Copy depcomp to subdir because otherwise we won't find it if we're 5263 # using a relative directory. 5264 cp "$am_depcomp" conftest.dir 5265 cd conftest.dir 5266 # We will build objects and dependencies in a subdirectory because 5267 # it helps to detect inapplicable dependency modes. For instance 5268 # both Tru64's cc and ICC support -MD to output dependencies as a 5269 # side effect of compilation, but ICC will put the dependencies in 5270 # the current directory while Tru64 will put them in the object 5271 # directory. 5272 mkdir sub 5273 5274 am_cv_CC_dependencies_compiler_type=none 5275 if test "$am_compiler_list" = ""; then 5276 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5277 fi 5278 for depmode in $am_compiler_list; do 5279 # Setup a source with many dependencies, because some compilers 5280 # like to wrap large dependency lists on column 80 (with \), and 5281 # we should not choose a depcomp mode which is confused by this. 5282 # 5283 # We need to recreate these files for each test, as the compiler may 5284 # overwrite some of them when testing with obscure command lines. 5285 # This happens at least with the AIX C compiler. 5286 : > sub/conftest.c 5287 for i in 1 2 3 4 5 6; do 5288 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5289 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5290 # Solaris 8's {/usr,}/bin/sh. 5291 touch sub/conftst$i.h 5292 done 5293 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5294 5295 case $depmode in 5296 nosideeffect) 5297 # after this tag, mechanisms are not by side-effect, so they'll 5298 # only be used when explicitly requested 5299 if test "x$enable_dependency_tracking" = xyes; then 5300 continue 5301 else 5302 break 5303 fi 5304 ;; 5305 none) break ;; 5306 esac 5307 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5308 # mode. It turns out that the SunPro C++ compiler does not properly 5309 # handle `-M -o', and we need to detect this. 5310 if depmode=$depmode \ 5311 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 5312 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5313 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 5314 >/dev/null 2>conftest.err && 5315 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5316 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 5317 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5318 # icc doesn't choke on unknown options, it will just issue warnings 5319 # or remarks (even with -Werror). So we grep stderr for any message 5320 # that says an option was ignored or not supported. 5321 # When given -MP, icc 7.0 and 7.1 complain thusly: 5322 # icc: Command line warning: ignoring option '-M'; no argument required 5323 # The diagnosis changed in icc 8.0: 5324 # icc: Command line remark: option '-MP' not supported 5325 if (grep 'ignoring option' conftest.err || 5326 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5327 am_cv_CC_dependencies_compiler_type=$depmode 5328 break 5329 fi 5330 fi 5331 done 5332 5333 cd .. 5334 rm -rf conftest.dir 5335else 5336 am_cv_CC_dependencies_compiler_type=none 5337fi 5338 5339fi 5340echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 5341echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 5342CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5343 5344 5345 5346if 5347 test "x$enable_dependency_tracking" != xno \ 5348 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5349 am__fastdepCC_TRUE= 5350 am__fastdepCC_FALSE='#' 5351else 5352 am__fastdepCC_TRUE='#' 5353 am__fastdepCC_FALSE= 5354fi 5355 5356 5357depcc="$CXX" am_compiler_list= 5358 5359echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5360echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 5361if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 5362 echo $ECHO_N "(cached) $ECHO_C" >&6 5363else 5364 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5365 # We make a subdir and do the tests there. Otherwise we can end up 5366 # making bogus files that we don't know about and never remove. For 5367 # instance it was reported that on HP-UX the gcc test will end up 5368 # making a dummy file named `D' -- because `-MD' means `put the output 5369 # in D'. 5370 mkdir conftest.dir 5371 # Copy depcomp to subdir because otherwise we won't find it if we're 5372 # using a relative directory. 5373 cp "$am_depcomp" conftest.dir 5374 cd conftest.dir 5375 # We will build objects and dependencies in a subdirectory because 5376 # it helps to detect inapplicable dependency modes. For instance 5377 # both Tru64's cc and ICC support -MD to output dependencies as a 5378 # side effect of compilation, but ICC will put the dependencies in 5379 # the current directory while Tru64 will put them in the object 5380 # directory. 5381 mkdir sub 5382 5383 am_cv_CXX_dependencies_compiler_type=none 5384 if test "$am_compiler_list" = ""; then 5385 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5386 fi 5387 for depmode in $am_compiler_list; do 5388 # Setup a source with many dependencies, because some compilers 5389 # like to wrap large dependency lists on column 80 (with \), and 5390 # we should not choose a depcomp mode which is confused by this. 5391 # 5392 # We need to recreate these files for each test, as the compiler may 5393 # overwrite some of them when testing with obscure command lines. 5394 # This happens at least with the AIX C compiler. 5395 : > sub/conftest.c 5396 for i in 1 2 3 4 5 6; do 5397 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5398 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5399 # Solaris 8's {/usr,}/bin/sh. 5400 touch sub/conftst$i.h 5401 done 5402 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5403 5404 case $depmode in 5405 nosideeffect) 5406 # after this tag, mechanisms are not by side-effect, so they'll 5407 # only be used when explicitly requested 5408 if test "x$enable_dependency_tracking" = xyes; then 5409 continue 5410 else 5411 break 5412 fi 5413 ;; 5414 none) break ;; 5415 esac 5416 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5417 # mode. It turns out that the SunPro C++ compiler does not properly 5418 # handle `-M -o', and we need to detect this. 5419 if depmode=$depmode \ 5420 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 5421 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5422 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 5423 >/dev/null 2>conftest.err && 5424 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5425 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 5426 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5427 # icc doesn't choke on unknown options, it will just issue warnings 5428 # or remarks (even with -Werror). So we grep stderr for any message 5429 # that says an option was ignored or not supported. 5430 # When given -MP, icc 7.0 and 7.1 complain thusly: 5431 # icc: Command line warning: ignoring option '-M'; no argument required 5432 # The diagnosis changed in icc 8.0: 5433 # icc: Command line remark: option '-MP' not supported 5434 if (grep 'ignoring option' conftest.err || 5435 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5436 am_cv_CXX_dependencies_compiler_type=$depmode 5437 break 5438 fi 5439 fi 5440 done 5441 5442 cd .. 5443 rm -rf conftest.dir 5444else 5445 am_cv_CXX_dependencies_compiler_type=none 5446fi 5447 5448fi 5449echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 5450echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 5451CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5452 5453 5454 5455if 5456 test "x$enable_dependency_tracking" != xno \ 5457 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5458 am__fastdepCXX_TRUE= 5459 am__fastdepCXX_FALSE='#' 5460else 5461 am__fastdepCXX_TRUE='#' 5462 am__fastdepCXX_FALSE= 5463fi 5464 5465 5466 5467echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 5468echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 5469 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 5470if test "${enable_maintainer_mode+set}" = set; then 5471 enableval="$enable_maintainer_mode" 5472 USE_MAINTAINER_MODE=$enableval 5473else 5474 USE_MAINTAINER_MODE=no 5475fi; 5476 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 5477echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 5478 5479 5480if test $USE_MAINTAINER_MODE = yes; then 5481 MAINTAINER_MODE_TRUE= 5482 MAINTAINER_MODE_FALSE='#' 5483else 5484 MAINTAINER_MODE_TRUE='#' 5485 MAINTAINER_MODE_FALSE= 5486fi 5487 5488 MAINT=$MAINTAINER_MODE_TRUE 5489 5490 5491 5492coin_have_externals=no 5493if test "$enable_maintainer_mode" = yes; then 5494 5495 # If maintainer mode is chosen, we make sure that the correct versions 5496 # of the tools are used, and that we know where libtool.m4 is (to 5497 # recreate acinclude.m4) 5498 5499 5500 LIBTOOLM4= 5501 # Normally, $HOME 5502 AUTOTOOLS_DFLT=$HOME 5503 5504 echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5 5505echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6 5506if test "${ac_cv_use_correct_autotools+set}" = set; then 5507 echo $ECHO_N "(cached) $ECHO_C" >&6 5508else 5509 ac_cv_use_correct_autotools=check 5510fi 5511echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5 5512echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6 5513 5514 if test $ac_cv_use_correct_autotools = check; then 5515 ac_cv_use_correct_autotools=yes 5516 # Check if we have autoconf 5517 # Extract the first word of "autoconf", so it can be a program name with args. 5518set dummy autoconf; ac_word=$2 5519echo "$as_me:$LINENO: checking for $ac_word" >&5 5520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5521if test "${ac_cv_prog_have_autoconf+set}" = set; then 5522 echo $ECHO_N "(cached) $ECHO_C" >&6 5523else 5524 if test -n "$have_autoconf"; then 5525 ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test. 5526else 5527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5528for as_dir in $PATH 5529do 5530 IFS=$as_save_IFS 5531 test -z "$as_dir" && as_dir=. 5532 for ac_exec_ext in '' $ac_executable_extensions; do 5533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5534 ac_cv_prog_have_autoconf="yes" 5535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5536 break 2 5537 fi 5538done 5539done 5540 5541 test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no" 5542fi 5543fi 5544have_autoconf=$ac_cv_prog_have_autoconf 5545if test -n "$have_autoconf"; then 5546 echo "$as_me:$LINENO: result: $have_autoconf" >&5 5547echo "${ECHO_T}$have_autoconf" >&6 5548else 5549 echo "$as_me:$LINENO: result: no" >&5 5550echo "${ECHO_T}no" >&6 5551fi 5552 5553 if test $have_autoconf = no; then 5554 { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5 5555echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;} 5556 { (exit 1); exit 1; }; } 5557 fi 5558 5559 # Check whether autoconf is the correct version 5560 correct_version='2.59' 5561 grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'` 5562 echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5 5563echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6 5564 autoconf --version > confauto.out 2>&1 5565 if $EGREP $grep_version confauto.out >/dev/null 2>&1; then 5566 echo "$as_me:$LINENO: result: yes" >&5 5567echo "${ECHO_T}yes" >&6 5568 else 5569 rm -f confauto.out 5570 echo "$as_me:$LINENO: result: no" >&5 5571echo "${ECHO_T}no" >&6 5572 { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5 5573echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;} 5574 { (exit 1); exit 1; }; } 5575 fi 5576 rm -f confauto.out 5577 5578 # Check if the executable autoconf is picked up from the correct location 5579 echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5 5580echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6 5581 autoconf_dir=`which autoconf | sed -e 's=/autoconf=='` 5582 autoconf_dir=`cd $autoconf_dir; pwd` 5583 if test x$AUTOTOOLS_DIR = x; then 5584 want_dir=$AUTOTOOLS_DFLT/bin 5585 else 5586 want_dir=$AUTOTOOLS_DIR/bin 5587 fi 5588 if test $autoconf_dir = `cd $want_dir; pwd`; then 5589 echo "$as_me:$LINENO: result: yes" >&5 5590echo "${ECHO_T}yes" >&6 5591 else 5592 rm -f confauto.out 5593 echo "$as_me:$LINENO: result: no" >&5 5594echo "${ECHO_T}no" >&6 5595 { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5 5596echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;} 5597 { (exit 1); exit 1; }; } 5598 fi 5599 5600 # Check if we have automake 5601 # Extract the first word of "automake", so it can be a program name with args. 5602set dummy automake; ac_word=$2 5603echo "$as_me:$LINENO: checking for $ac_word" >&5 5604echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5605if test "${ac_cv_prog_have_automake+set}" = set; then 5606 echo $ECHO_N "(cached) $ECHO_C" >&6 5607else 5608 if test -n "$have_automake"; then 5609 ac_cv_prog_have_automake="$have_automake" # Let the user override the test. 5610else 5611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5612for as_dir in $PATH 5613do 5614 IFS=$as_save_IFS 5615 test -z "$as_dir" && as_dir=. 5616 for ac_exec_ext in '' $ac_executable_extensions; do 5617 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5618 ac_cv_prog_have_automake="yes" 5619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5620 break 2 5621 fi 5622done 5623done 5624 5625 test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no" 5626fi 5627fi 5628have_automake=$ac_cv_prog_have_automake 5629if test -n "$have_automake"; then 5630 echo "$as_me:$LINENO: result: $have_automake" >&5 5631echo "${ECHO_T}$have_automake" >&6 5632else 5633 echo "$as_me:$LINENO: result: no" >&5 5634echo "${ECHO_T}no" >&6 5635fi 5636 5637 if test $have_automake = no; then 5638 { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5 5639echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;} 5640 { (exit 1); exit 1; }; } 5641 fi 5642 5643 # Check whether automake is the correct version 5644 correct_version='1.9.6' 5645 grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'` 5646 echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5 5647echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6 5648 automake --version > confauto.out 2>&1 5649 if $EGREP $grep_version confauto.out >/dev/null 2>&1; then 5650 echo "$as_me:$LINENO: result: yes" >&5 5651echo "${ECHO_T}yes" >&6 5652 else 5653 rm -f confauto.out 5654 echo "$as_me:$LINENO: result: no" >&5 5655echo "${ECHO_T}no" >&6 5656 { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5 5657echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;} 5658 { (exit 1); exit 1; }; } 5659 fi 5660 rm -f confauto.out 5661 5662 # Check if the executable automake is picked up from the correct location 5663 echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5 5664echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6 5665 automake_dir=`which automake | sed -e 's=/automake=='` 5666 automake_dir=`cd $automake_dir; pwd` 5667 if test x$AUTOTOOLS_DIR = x; then 5668 want_dir=$AUTOTOOLS_DFLT/bin 5669 else 5670 want_dir=$AUTOTOOLS_DIR/bin 5671 fi 5672 if test $automake_dir = `cd $want_dir; pwd`; then 5673 echo "$as_me:$LINENO: result: yes" >&5 5674echo "${ECHO_T}yes" >&6 5675 else 5676 rm -f confauto.out 5677 echo "$as_me:$LINENO: result: no" >&5 5678echo "${ECHO_T}no" >&6 5679 { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5 5680echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;} 5681 { (exit 1); exit 1; }; } 5682 fi 5683 5684 # Check if this is the correct version of libtool (with escaped dots) 5685 if test x$AUTOTOOLS_DIR = x; then 5686 want_dir=$AUTOTOOLS_DFLT/share 5687 else 5688 want_dir=$AUTOTOOLS_DIR/share 5689 fi 5690 correct_version='1.5.22' 5691 grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'` 5692 if test -r $want_dir/libtool/ltmain.sh; then 5693 have_ltmain=yes 5694 : 5695else 5696 have_ltmain=no 5697 : 5698fi 5699 5700 echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5 5701echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6 5702 if test $have_ltmain = yes; then 5703 if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then 5704 echo "$as_me:$LINENO: result: yes" >&5 5705echo "${ECHO_T}yes" >&6 5706 else 5707 echo "$as_me:$LINENO: result: no" >&5 5708echo "${ECHO_T}no" >&6 5709 { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5 5710echo "$as_me: error: You don't have the correct version of libtool." >&2;} 5711 { (exit 1); exit 1; }; } 5712 fi 5713 else 5714 echo "$as_me:$LINENO: result: no" >&5 5715echo "${ECHO_T}no" >&6 5716 { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5 5717echo "$as_me: error: I cannot find the ltmain.sh file." >&2;} 5718 { (exit 1); exit 1; }; } 5719 fi 5720 fi 5721 5722 # Check if we can find the libtool file 5723 if test x$AUTOTOOLS_DIR = x; then 5724 want_dir=$AUTOTOOLS_DFLT/share 5725 else 5726 want_dir=$AUTOTOOLS_DIR/share 5727 fi 5728 if test -r $want_dir/aclocal/libtool.m4; then 5729 LIBTOOLM4="$want_dir/aclocal/libtool.m4" 5730 : 5731else 5732 { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5 5733echo "$as_me: error: I cannot find the libtool.m4 file." >&2;} 5734 { (exit 1); exit 1; }; } 5735 : 5736fi 5737 5738 5739 # Check if we have an Dependencies file 5740 if test -r $srcdir/Dependencies; then 5741 coin_have_externals=yes 5742 fi 5743 # Check if subversion is installed and understands https 5744 # Extract the first word of "svn", so it can be a program name with args. 5745set dummy svn; ac_word=$2 5746echo "$as_me:$LINENO: checking for $ac_word" >&5 5747echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5748if test "${ac_cv_prog_have_svn+set}" = set; then 5749 echo $ECHO_N "(cached) $ECHO_C" >&6 5750else 5751 if test -n "$have_svn"; then 5752 ac_cv_prog_have_svn="$have_svn" # Let the user override the test. 5753else 5754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5755for as_dir in $PATH 5756do 5757 IFS=$as_save_IFS 5758 test -z "$as_dir" && as_dir=. 5759 for ac_exec_ext in '' $ac_executable_extensions; do 5760 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5761 ac_cv_prog_have_svn="yes" 5762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5763 break 2 5764 fi 5765done 5766done 5767 5768 test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no" 5769fi 5770fi 5771have_svn=$ac_cv_prog_have_svn 5772if test -n "$have_svn"; then 5773 echo "$as_me:$LINENO: result: $have_svn" >&5 5774echo "${ECHO_T}$have_svn" >&6 5775else 5776 echo "$as_me:$LINENO: result: no" >&5 5777echo "${ECHO_T}no" >&6 5778fi 5779 5780 if test x$have_svn = xyes; then 5781 echo "$as_me:$LINENO: checking whether svn understands https" >&5 5782echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6 5783if test "${ac_cv_svn_understands_https+set}" = set; then 5784 echo $ECHO_N "(cached) $ECHO_C" >&6 5785else 5786 svn --version > confauto.out 2>&1 5787 if $EGREP https confauto.out >/dev/null 2>&1; then 5788 ac_cv_svn_understands_https=yes 5789 else 5790 ac_cv_svn_understands_https=no 5791 have_svn=no 5792 ac_cv_prog_have_svn=no 5793 fi 5794 rm -f confauto.out 5795fi 5796echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5 5797echo "${ECHO_T}$ac_cv_svn_understands_https" >&6 5798 fi 5799 5800 # Find the location of the BuildTools directory 5801 BUILDTOOLSDIR= 5802 if test -r $srcdir/BuildTools/coin.m4; then 5803 BUILDTOOLSDIR=$srcdir/BuildTools 5804 else 5805 if test -r $srcdir/../BuildTools/coin.m4; then 5806 BUILDTOOLSDIR=$srcdir/../BuildTools 5807 else 5808 if test -r $srcdir/../../BuildTools/coin.m4; then 5809 BUILDTOOLSDIR=$srcdir/../../BuildTools 5810 else 5811 { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5 5812echo "$as_me: error: Cannot find the BuildTools directory" >&2;} 5813 { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; } 5814 fi 5815 fi 5816 fi 5817 5818 5819 # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools 5820 if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then 5821 $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools" 5822 fi 5823 5824 # The following variable is set to the name of the directory where 5825 # the autotool scripts are located 5826 5827 AUX_DIR=$ac_aux_dir 5828fi 5829 5830# helpful variable for the base directory of this package 5831abs_source_dir=`cd $srcdir; pwd` 5832 5833 5834# Stuff for example Makefiles 5835if test x$prefix = xNONE; then 5836 full_prefix=$ac_default_prefix 5837else 5838 full_prefix=$prefix 5839fi 5840full_prefix=`cd $full_prefix ; pwd` 5841 5842abs_lib_dir=$full_prefix/lib 5843 5844abs_include_dir=$full_prefix/include 5845 5846abs_bin_dir=$full_prefix/bin 5847 5848 5849 5850if test $coin_have_externals = yes && test x$have_svn = xyes; then 5851 HAVE_EXTERNALS_TRUE= 5852 HAVE_EXTERNALS_FALSE='#' 5853else 5854 HAVE_EXTERNALS_TRUE='#' 5855 HAVE_EXTERNALS_FALSE= 5856fi 5857 5858 5859# AC_MSG_NOTICE([End automake initialisation.]) 5860 5861 5862 5863LIBTOOL= 5864if test -f ../libtool; then 5865 coin_config_dir=.. 5866 LIBTOOL='$(SHELL) $(top_builddir)/../libtool' 5867fi 5868if test "x$LIBTOOL" = x; then 5869 if test -f ../../libtool; then 5870 coin_config_dir=../.. 5871 LIBTOOL='$(SHELL) $(top_builddir)/../../libtool' 5872 fi 5873fi 5874 5875if test "x$LIBTOOL" = x; then 5876# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).]) 5877 # Stuff for libtool 5878 # Check whether --enable-shared or --disable-shared was given. 5879if test "${enable_shared+set}" = set; then 5880 enableval="$enable_shared" 5881 p=${PACKAGE-default} 5882 case $enableval in 5883 yes) enable_shared=yes ;; 5884 no) enable_shared=no ;; 5885 *) 5886 enable_shared=no 5887 # Look at the argument we got. We use all the common list separators. 5888 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 5889 for pkg in $enableval; do 5890 IFS="$lt_save_ifs" 5891 if test "X$pkg" = "X$p"; then 5892 enable_shared=yes 5893 fi 5894 done 5895 IFS="$lt_save_ifs" 5896 ;; 5897 esac 5898else 5899 enable_shared=yes 5900fi; 5901 5902# Check whether --enable-fast-install or --disable-fast-install was given. 5903if test "${enable_fast_install+set}" = set; then 5904 enableval="$enable_fast_install" 5905 p=${PACKAGE-default} 5906 case $enableval in 5907 yes) enable_fast_install=yes ;; 5908 no) enable_fast_install=no ;; 5909 *) 5910 enable_fast_install=no 5911 # Look at the argument we got. We use all the common list separators. 5912 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 5913 for pkg in $enableval; do 5914 IFS="$lt_save_ifs" 5915 if test "X$pkg" = "X$p"; then 5916 enable_fast_install=yes 5917 fi 5918 done 5919 IFS="$lt_save_ifs" 5920 ;; 5921 esac 5922else 5923 enable_fast_install=yes 5924fi; 5925 5926echo "$as_me:$LINENO: checking host system type" >&5 5927echo $ECHO_N "checking host system type... $ECHO_C" >&6 5928if test "${ac_cv_host+set}" = set; then 5929 echo $ECHO_N "(cached) $ECHO_C" >&6 5930else 5931 ac_cv_host_alias=$host_alias 5932test -z "$ac_cv_host_alias" && 5933 ac_cv_host_alias=$ac_cv_build_alias 5934ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 5935 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 5936echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 5937 { (exit 1); exit 1; }; } 5938 5939fi 5940echo "$as_me:$LINENO: result: $ac_cv_host" >&5 5941echo "${ECHO_T}$ac_cv_host" >&6 5942host=$ac_cv_host 5943host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 5944host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 5945host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 5946 5947 5948echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 5949echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 5950if test "${lt_cv_path_SED+set}" = set; then 5951 echo $ECHO_N "(cached) $ECHO_C" >&6 5952else 5953 # Loop through the user's path and test for sed and gsed. 5954# Then use that list of sed's as ones to test for truncation. 5955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5956for as_dir in $PATH 5957do 5958 IFS=$as_save_IFS 5959 test -z "$as_dir" && as_dir=. 5960 for lt_ac_prog in sed gsed; do 5961 for ac_exec_ext in '' $ac_executable_extensions; do 5962 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 5963 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 5964 fi 5965 done 5966 done 5967done 5968lt_ac_max=0 5969lt_ac_count=0 5970# Add /usr/xpg4/bin/sed as it is typically found on Solaris 5971# along with /bin/sed that truncates output. 5972for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 5973 test ! -f $lt_ac_sed && continue 5974 cat /dev/null > conftest.in 5975 lt_ac_count=0 5976 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 5977 # Check for GNU sed and select it if it is found. 5978 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 5979 lt_cv_path_SED=$lt_ac_sed 5980 break 5981 fi 5982 while true; do 5983 cat conftest.in conftest.in >conftest.tmp 5984 mv conftest.tmp conftest.in 5985 cp conftest.in conftest.nl 5986 echo >>conftest.nl 5987 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 5988 cmp -s conftest.out conftest.nl || break 5989 # 10000 chars as input seems more than enough 5990 test $lt_ac_count -gt 10 && break 5991 lt_ac_count=`expr $lt_ac_count + 1` 5992 if test $lt_ac_count -gt $lt_ac_max; then 5993 lt_ac_max=$lt_ac_count 5994 lt_cv_path_SED=$lt_ac_sed 5995 fi 5996 done 5997done 5998 5999fi 6000 6001SED=$lt_cv_path_SED 6002echo "$as_me:$LINENO: result: $SED" >&5 6003echo "${ECHO_T}$SED" >&6 6004 6005 6006# Check whether --with-gnu-ld or --without-gnu-ld was given. 6007if test "${with_gnu_ld+set}" = set; then 6008 withval="$with_gnu_ld" 6009 test "$withval" = no || with_gnu_ld=yes 6010else 6011 with_gnu_ld=no 6012fi; 6013ac_prog=ld 6014if test "$GCC" = yes; then 6015 # Check if gcc -print-prog-name=ld gives a path. 6016 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 6017echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 6018 case $host in 6019 *-*-mingw*) 6020 # gcc leaves a trailing carriage return which upsets mingw 6021 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 6022 *) 6023 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 6024 esac 6025 case $ac_prog in 6026 # Accept absolute paths. 6027 [\\/]* | ?:[\\/]*) 6028 re_direlt='/[^/][^/]*/\.\./' 6029 # Canonicalize the pathname of ld 6030 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 6031 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 6032 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 6033 done 6034 test -z "$LD" && LD="$ac_prog" 6035 ;; 6036 "") 6037 # If it fails, then pretend we aren't using GCC. 6038 ac_prog=ld 6039 ;; 6040 *) 6041 # If it is relative, then search for the first ld in PATH. 6042 with_gnu_ld=unknown 6043 ;; 6044 esac 6045elif test "$with_gnu_ld" = yes; then 6046 echo "$as_me:$LINENO: checking for GNU ld" >&5 6047echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 6048else 6049 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 6050echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 6051fi 6052if test "${lt_cv_path_LD+set}" = set; then 6053 echo $ECHO_N "(cached) $ECHO_C" >&6 6054else 6055 if test -z "$LD"; then 6056 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6057 for ac_dir in $PATH; do 6058 IFS="$lt_save_ifs" 6059 test -z "$ac_dir" && ac_dir=. 6060 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 6061 lt_cv_path_LD="$ac_dir/$ac_prog" 6062 # Check to see if the program is GNU ld. I'd rather use --version, 6063 # but apparently some variants of GNU ld only accept -v. 6064 # Break only if it was the GNU/non-GNU ld that we prefer. 6065 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 6066 *GNU* | *'with BFD'*) 6067 test "$with_gnu_ld" != no && break 6068 ;; 6069 *) 6070 test "$with_gnu_ld" != yes && break 6071 ;; 6072 esac 6073 fi 6074 done 6075 IFS="$lt_save_ifs" 6076else 6077 lt_cv_path_LD="$LD" # Let the user override the test with a path. 6078fi 6079fi 6080 6081LD="$lt_cv_path_LD" 6082if test -n "$LD"; then 6083 echo "$as_me:$LINENO: result: $LD" >&5 6084echo "${ECHO_T}$LD" >&6 6085else 6086 echo "$as_me:$LINENO: result: no" >&5 6087echo "${ECHO_T}no" >&6 6088fi 6089test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 6090echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 6091 { (exit 1); exit 1; }; } 6092echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 6093echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 6094if test "${lt_cv_prog_gnu_ld+set}" = set; then 6095 echo $ECHO_N "(cached) $ECHO_C" >&6 6096else 6097 # I'd rather use --version here, but apparently some GNU lds only accept -v. 6098case `$LD -v 2>&1 </dev/null` in 6099*GNU* | *'with BFD'*) 6100 lt_cv_prog_gnu_ld=yes 6101 ;; 6102*) 6103 lt_cv_prog_gnu_ld=no 6104 ;; 6105esac 6106fi 6107echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 6108echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 6109with_gnu_ld=$lt_cv_prog_gnu_ld 6110 6111 6112echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 6113echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 6114if test "${lt_cv_ld_reload_flag+set}" = set; then 6115 echo $ECHO_N "(cached) $ECHO_C" >&6 6116else 6117 lt_cv_ld_reload_flag='-r' 6118fi 6119echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 6120echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 6121reload_flag=$lt_cv_ld_reload_flag 6122case $reload_flag in 6123"" | " "*) ;; 6124*) reload_flag=" $reload_flag" ;; 6125esac 6126reload_cmds='$LD$reload_flag -o $output$reload_objs' 6127case $host_os in 6128 darwin*) 6129 if test "$GCC" = yes; then 6130 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 6131 else 6132 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6133 fi 6134 ;; 6135esac 6136 6137echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 6138echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 6139if test "${lt_cv_path_NM+set}" = set; then 6140 echo $ECHO_N "(cached) $ECHO_C" >&6 6141else 6142 if test -n "$NM"; then 6143 # Let the user override the test. 6144 lt_cv_path_NM="$NM" 6145else 6146 lt_nm_to_check="${ac_tool_prefix}nm" 6147 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6148 lt_nm_to_check="$lt_nm_to_check nm" 6149 fi 6150 for lt_tmp_nm in $lt_nm_to_check; do 6151 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6152 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6153 IFS="$lt_save_ifs" 6154 test -z "$ac_dir" && ac_dir=. 6155 tmp_nm="$ac_dir/$lt_tmp_nm" 6156 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 6157 # Check to see if the nm accepts a BSD-compat flag. 6158 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 6159 # nm: unknown option "B" ignored 6160 # Tru64's nm complains that /dev/null is an invalid object file 6161 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 6162 */dev/null* | *'Invalid file or object type'*) 6163 lt_cv_path_NM="$tmp_nm -B" 6164 break 6165 ;; 6166 *) 6167 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 6168 */dev/null*) 6169 lt_cv_path_NM="$tmp_nm -p" 6170 break 6171 ;; 6172 *) 6173 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6174 continue # so that we can try to find one that supports BSD flags 6175 ;; 6176 esac 6177 ;; 6178 esac 6179 fi 6180 done 6181 IFS="$lt_save_ifs" 6182 done 6183 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 6184fi 6185fi 6186echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 6187echo "${ECHO_T}$lt_cv_path_NM" >&6 6188NM="$lt_cv_path_NM" 6189 6190echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 6191echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 6192if test "${lt_cv_deplibs_check_method+set}" = set; then 6193 echo $ECHO_N "(cached) $ECHO_C" >&6 6194else 6195 lt_cv_file_magic_cmd='$MAGIC_CMD' 6196lt_cv_file_magic_test_file= 6197lt_cv_deplibs_check_method='unknown' 6198# Need to set the preceding variable on all platforms that support 6199# interlibrary dependencies. 6200# 'none' -- dependencies not supported. 6201# `unknown' -- same as none, but documents that we really don't know. 6202# 'pass_all' -- all dependencies passed with no checks. 6203# 'test_compile' -- check by making test program. 6204# 'file_magic [[regex]]' -- check by looking for files in library path 6205# which responds to the $file_magic_cmd with a given extended regex. 6206# If you have `file' or equivalent on your system and you're not sure 6207# whether `pass_all' will *always* work, you probably want this one. 6208 6209case $host_os in 6210aix4* | aix5*) 6211 lt_cv_deplibs_check_method=pass_all 6212 ;; 6213 6214beos*) 6215 lt_cv_deplibs_check_method=pass_all 6216 ;; 6217 6218bsdi[45]*) 6219 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6220 lt_cv_file_magic_cmd='/usr/bin/file -L' 6221 lt_cv_file_magic_test_file=/shlib/libc.so 6222 ;; 6223 6224cygwin*) 6225 # func_win32_libid is a shell function defined in ltmain.sh 6226 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6227 lt_cv_file_magic_cmd='func_win32_libid' 6228 ;; 6229 6230mingw* | pw32*) 6231 # Base MSYS/MinGW do not provide the 'file' command needed by 6232 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 6233 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 6234 lt_cv_file_magic_cmd='$OBJDUMP -f' 6235 ;; 6236 6237darwin* | rhapsody*) 6238 lt_cv_deplibs_check_method=pass_all 6239 ;; 6240 6241freebsd* | kfreebsd*-gnu | dragonfly*) 6242 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 6243 case $host_cpu in 6244 i*86 ) 6245 # Not sure whether the presence of OpenBSD here was a mistake. 6246 # Let's accept both of them until this is cleared up. 6247 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6248 lt_cv_file_magic_cmd=/usr/bin/file 6249 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6250 ;; 6251 esac 6252 else 6253 lt_cv_deplibs_check_method=pass_all 6254 fi 6255 ;; 6256 6257gnu*) 6258 lt_cv_deplibs_check_method=pass_all 6259 ;; 6260 6261hpux10.20* | hpux11*) 6262 lt_cv_file_magic_cmd=/usr/bin/file 6263 case $host_cpu in 6264 ia64*) 6265 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6266 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6267 ;; 6268 hppa*64*) 6269 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]' 6270 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6271 ;; 6272 *) 6273 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 6274 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6275 ;; 6276 esac 6277 ;; 6278 6279interix3*) 6280 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6281 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6282 ;; 6283 6284irix5* | irix6* | nonstopux*) 6285 case $LD in 6286 *-32|*"-32 ") libmagic=32-bit;; 6287 *-n32|*"-n32 ") libmagic=N32;; 6288 *-64|*"-64 ") libmagic=64-bit;; 6289 *) libmagic=never-match;; 6290 esac 6291 lt_cv_deplibs_check_method=pass_all 6292 ;; 6293 6294# This must be Linux ELF. 6295linux*) 6296 lt_cv_deplibs_check_method=pass_all 6297 ;; 6298 6299netbsd*) 6300 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 6301 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6302 else 6303 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6304 fi 6305 ;; 6306 6307newos6*) 6308 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6309 lt_cv_file_magic_cmd=/usr/bin/file 6310 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6311 ;; 6312 6313nto-qnx*) 6314 lt_cv_deplibs_check_method=unknown 6315 ;; 6316 6317openbsd*) 6318 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6319 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6320 else 6321 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6322 fi 6323 ;; 6324 6325osf3* | osf4* | osf5*) 6326 lt_cv_deplibs_check_method=pass_all 6327 ;; 6328 6329solaris*) 6330 lt_cv_deplibs_check_method=pass_all 6331 ;; 6332 6333sysv4 | sysv4.3*) 6334 case $host_vendor in 6335 motorola) 6336 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]' 6337 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6338 ;; 6339 ncr) 6340 lt_cv_deplibs_check_method=pass_all 6341 ;; 6342 sequent) 6343 lt_cv_file_magic_cmd='/bin/file' 6344 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6345 ;; 6346 sni) 6347 lt_cv_file_magic_cmd='/bin/file' 6348 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6349 lt_cv_file_magic_test_file=/lib/libc.so 6350 ;; 6351 siemens) 6352 lt_cv_deplibs_check_method=pass_all 6353 ;; 6354 pc) 6355 lt_cv_deplibs_check_method=pass_all 6356 ;; 6357 esac 6358 ;; 6359 6360sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6361 lt_cv_deplibs_check_method=pass_all 6362 ;; 6363esac 6364 6365fi 6366echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 6367echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 6368file_magic_cmd=$lt_cv_file_magic_cmd 6369deplibs_check_method=$lt_cv_deplibs_check_method 6370test -z "$deplibs_check_method" && deplibs_check_method=unknown 6371 6372 6373 6374 6375# If no C compiler was specified, use CC. 6376LTCC=${LTCC-"$CC"} 6377 6378# If no C compiler flags were specified, use CFLAGS. 6379LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6380 6381# Allow CC to be a program name with arguments. 6382compiler=$CC 6383 6384# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 6385if test "${enable_libtool_lock+set}" = set; then 6386 enableval="$enable_libtool_lock" 6387 6388fi; 6389test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6390 6391# Some flags need to be propagated to the compiler or linker for good 6392# libtool support. 6393case $host in 6394ia64-*-hpux*) 6395 # Find out which ABI we are using. 6396 echo 'int i;' > conftest.$ac_ext 6397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6398 (eval $ac_compile) 2>&5 6399 ac_status=$? 6400 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6401 (exit $ac_status); }; then 6402 case `/usr/bin/file conftest.$ac_objext` in 6403 *ELF-32*) 6404 HPUX_IA64_MODE="32" 6405 ;; 6406 *ELF-64*) 6407 HPUX_IA64_MODE="64" 6408 ;; 6409 esac 6410 fi 6411 rm -rf conftest* 6412 ;; 6413*-*-irix6*) 6414 # Find out which ABI we are using. 6415 echo '#line 6415 "configure"' > conftest.$ac_ext 6416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6417 (eval $ac_compile) 2>&5 6418 ac_status=$? 6419 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6420 (exit $ac_status); }; then 6421 if test "$lt_cv_prog_gnu_ld" = yes; then 6422 case `/usr/bin/file conftest.$ac_objext` in 6423 *32-bit*) 6424 LD="${LD-ld} -melf32bsmip" 6425 ;; 6426 *N32*) 6427 LD="${LD-ld} -melf32bmipn32" 6428 ;; 6429 *64-bit*) 6430 LD="${LD-ld} -melf64bmip" 6431 ;; 6432 esac 6433 else 6434 case `/usr/bin/file conftest.$ac_objext` in 6435 *32-bit*) 6436 LD="${LD-ld} -32" 6437 ;; 6438 *N32*) 6439 LD="${LD-ld} -n32" 6440 ;; 6441 *64-bit*) 6442 LD="${LD-ld} -64" 6443 ;; 6444 esac 6445 fi 6446 fi 6447 rm -rf conftest* 6448 ;; 6449 6450x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 6451 # Find out which ABI we are using. 6452 echo 'int i;' > conftest.$ac_ext 6453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6454 (eval $ac_compile) 2>&5 6455 ac_status=$? 6456 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6457 (exit $ac_status); }; then 6458 case `/usr/bin/file conftest.o` in 6459 *32-bit*) 6460 case $host in 6461 x86_64-*linux*) 6462 LD="${LD-ld} -m elf_i386" 6463 ;; 6464 ppc64-*linux*|powerpc64-*linux*) 6465 LD="${LD-ld} -m elf32ppclinux" 6466 ;; 6467 s390x-*linux*) 6468 LD="${LD-ld} -m elf_s390" 6469 ;; 6470 sparc64-*linux*) 6471 LD="${LD-ld} -m elf32_sparc" 6472 ;; 6473 esac 6474 ;; 6475 *64-bit*) 6476 case $host in 6477 x86_64-*linux*) 6478 LD="${LD-ld} -m elf_x86_64" 6479 ;; 6480 ppc*-*linux*|powerpc*-*linux*) 6481 LD="${LD-ld} -m elf64ppc" 6482 ;; 6483 s390*-*linux*) 6484 LD="${LD-ld} -m elf64_s390" 6485 ;; 6486 sparc*-*linux*) 6487 LD="${LD-ld} -m elf64_sparc" 6488 ;; 6489 esac 6490 ;; 6491 esac 6492 fi 6493 rm -rf conftest* 6494 ;; 6495 6496*-*-sco3.2v5*) 6497 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6498 SAVE_CFLAGS="$CFLAGS" 6499 CFLAGS="$CFLAGS -belf" 6500 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 6501echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 6502if test "${lt_cv_cc_needs_belf+set}" = set; then 6503 echo $ECHO_N "(cached) $ECHO_C" >&6 6504else 6505 ac_ext=c 6506ac_cpp='$CPP $CPPFLAGS' 6507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6509ac_compiler_gnu=$ac_cv_c_compiler_gnu 6510 6511 cat >conftest.$ac_ext <<_ACEOF 6512/* confdefs.h. */ 6513_ACEOF 6514cat confdefs.h >>conftest.$ac_ext 6515cat >>conftest.$ac_ext <<_ACEOF 6516/* end confdefs.h. */ 6517 6518int 6519main () 6520{ 6521 6522 ; 6523 return 0; 6524} 6525_ACEOF 6526rm -f conftest.$ac_objext conftest$ac_exeext 6527if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6528 (eval $ac_link) 2>conftest.er1 6529 ac_status=$? 6530 grep -v '^ *+' conftest.er1 >conftest.err 6531 rm -f conftest.er1 6532 cat conftest.err >&5 6533 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6534 (exit $ac_status); } && 6535 { ac_try='test -z "$ac_c_werror_flag" 6536 || test ! -s conftest.err' 6537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6538 (eval $ac_try) 2>&5 6539 ac_status=$? 6540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6541 (exit $ac_status); }; } && 6542 { ac_try='test -s conftest$ac_exeext' 6543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6544 (eval $ac_try) 2>&5 6545 ac_status=$? 6546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6547 (exit $ac_status); }; }; then 6548 lt_cv_cc_needs_belf=yes 6549else 6550 echo "$as_me: failed program was:" >&5 6551sed 's/^/| /' conftest.$ac_ext >&5 6552 6553lt_cv_cc_needs_belf=no 6554fi 6555rm -f conftest.err conftest.$ac_objext \ 6556 conftest$ac_exeext conftest.$ac_ext 6557 ac_ext=c 6558ac_cpp='$CPP $CPPFLAGS' 6559ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6560ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6561ac_compiler_gnu=$ac_cv_c_compiler_gnu 6562 6563fi 6564echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 6565echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 6566 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6567 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6568 CFLAGS="$SAVE_CFLAGS" 6569 fi 6570 ;; 6571sparc*-*solaris*) 6572 # Find out which ABI we are using. 6573 echo 'int i;' > conftest.$ac_ext 6574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6575 (eval $ac_compile) 2>&5 6576 ac_status=$? 6577 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6578 (exit $ac_status); }; then 6579 case `/usr/bin/file conftest.o` in 6580 *64-bit*) 6581 case $lt_cv_prog_gnu_ld in 6582 yes*) LD="${LD-ld} -m elf64_sparc" ;; 6583 *) LD="${LD-ld} -64" ;; 6584 esac 6585 ;; 6586 esac 6587 fi 6588 rm -rf conftest* 6589 ;; 6590 6591 6592esac 6593 6594need_locks="$enable_libtool_lock" 6595 6596 6597ac_ext=c 6598ac_cpp='$CPP $CPPFLAGS' 6599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6601ac_compiler_gnu=$ac_cv_c_compiler_gnu 6602echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 6603echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 6604# On Suns, sometimes $CPP names a directory. 6605if test -n "$CPP" && test -d "$CPP"; then 6606 CPP= 6607fi 6608if test -z "$CPP"; then 6609 if test "${ac_cv_prog_CPP+set}" = set; then 6610 echo $ECHO_N "(cached) $ECHO_C" >&6 6611else 6612 # Double quotes because CPP needs to be expanded 6613 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 6614 do 6615 ac_preproc_ok=false 6616for ac_c_preproc_warn_flag in '' yes 6617do 6618 # Use a header file that comes with gcc, so configuring glibc 6619 # with a fresh cross-compiler works. 6620 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6621 # <limits.h> exists even on freestanding compilers. 6622 # On the NeXT, cc -E runs the code through the compiler's parser, 6623 # not just through cpp. "Syntax error" is here to catch this case. 6624 cat >conftest.$ac_ext <<_ACEOF 6625/* confdefs.h. */ 6626_ACEOF 6627cat confdefs.h >>conftest.$ac_ext 6628cat >>conftest.$ac_ext <<_ACEOF 6629/* end confdefs.h. */ 6630#ifdef __STDC__ 6631# include <limits.h> 6632#else 6633# include <assert.h> 6634#endif 6635 Syntax error 6636_ACEOF 6637if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6638 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6639 ac_status=$? 6640 grep -v '^ *+' conftest.er1 >conftest.err 6641 rm -f conftest.er1 6642 cat conftest.err >&5 6643 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6644 (exit $ac_status); } >/dev/null; then 6645 if test -s conftest.err; then 6646 ac_cpp_err=$ac_c_preproc_warn_flag 6647 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6648 else 6649 ac_cpp_err= 6650 fi 6651else 6652 ac_cpp_err=yes 6653fi 6654if test -z "$ac_cpp_err"; then 6655 : 6656else 6657 echo "$as_me: failed program was:" >&5 6658sed 's/^/| /' conftest.$ac_ext >&5 6659 6660 # Broken: fails on valid input. 6661continue 6662fi 6663rm -f conftest.err conftest.$ac_ext 6664 6665 # OK, works on sane cases. Now check whether non-existent headers 6666 # can be detected and how. 6667 cat >conftest.$ac_ext <<_ACEOF 6668/* confdefs.h. */ 6669_ACEOF 6670cat confdefs.h >>conftest.$ac_ext 6671cat >>conftest.$ac_ext <<_ACEOF 6672/* end confdefs.h. */ 6673#include <ac_nonexistent.h> 6674_ACEOF 6675if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6676 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6677 ac_status=$? 6678 grep -v '^ *+' conftest.er1 >conftest.err 6679 rm -f conftest.er1 6680 cat conftest.err >&5 6681 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6682 (exit $ac_status); } >/dev/null; then 6683 if test -s conftest.err; then 6684 ac_cpp_err=$ac_c_preproc_warn_flag 6685 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6686 else 6687 ac_cpp_err= 6688 fi 6689else 6690 ac_cpp_err=yes 6691fi 6692if test -z "$ac_cpp_err"; then 6693 # Broken: success on invalid input. 6694continue 6695else 6696 echo "$as_me: failed program was:" >&5 6697sed 's/^/| /' conftest.$ac_ext >&5 6698 6699 # Passes both tests. 6700ac_preproc_ok=: 6701break 6702fi 6703rm -f conftest.err conftest.$ac_ext 6704 6705done 6706# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6707rm -f conftest.err conftest.$ac_ext 6708if $ac_preproc_ok; then 6709 break 6710fi 6711 6712 done 6713 ac_cv_prog_CPP=$CPP 6714 6715fi 6716 CPP=$ac_cv_prog_CPP 6717else 6718 ac_cv_prog_CPP=$CPP 6719fi 6720echo "$as_me:$LINENO: result: $CPP" >&5 6721echo "${ECHO_T}$CPP" >&6 6722ac_preproc_ok=false 6723for ac_c_preproc_warn_flag in '' yes 6724do 6725 # Use a header file that comes with gcc, so configuring glibc 6726 # with a fresh cross-compiler works. 6727 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6728 # <limits.h> exists even on freestanding compilers. 6729 # On the NeXT, cc -E runs the code through the compiler's parser, 6730 # not just through cpp. "Syntax error" is here to catch this case. 6731 cat >conftest.$ac_ext <<_ACEOF 6732/* confdefs.h. */ 6733_ACEOF 6734cat confdefs.h >>conftest.$ac_ext 6735cat >>conftest.$ac_ext <<_ACEOF 6736/* end confdefs.h. */ 6737#ifdef __STDC__ 6738# include <limits.h> 6739#else 6740# include <assert.h> 6741#endif 6742 Syntax error 6743_ACEOF 6744if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6745 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6746 ac_status=$? 6747 grep -v '^ *+' conftest.er1 >conftest.err 6748 rm -f conftest.er1 6749 cat conftest.err >&5 6750 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6751 (exit $ac_status); } >/dev/null; then 6752 if test -s conftest.err; then 6753 ac_cpp_err=$ac_c_preproc_warn_flag 6754 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6755 else 6756 ac_cpp_err= 6757 fi 6758else 6759 ac_cpp_err=yes 6760fi 6761if test -z "$ac_cpp_err"; then 6762 : 6763else 6764 echo "$as_me: failed program was:" >&5 6765sed 's/^/| /' conftest.$ac_ext >&5 6766 6767 # Broken: fails on valid input. 6768continue 6769fi 6770rm -f conftest.err conftest.$ac_ext 6771 6772 # OK, works on sane cases. Now check whether non-existent headers 6773 # can be detected and how. 6774 cat >conftest.$ac_ext <<_ACEOF 6775/* confdefs.h. */ 6776_ACEOF 6777cat confdefs.h >>conftest.$ac_ext 6778cat >>conftest.$ac_ext <<_ACEOF 6779/* end confdefs.h. */ 6780#include <ac_nonexistent.h> 6781_ACEOF 6782if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6783 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6784 ac_status=$? 6785 grep -v '^ *+' conftest.er1 >conftest.err 6786 rm -f conftest.er1 6787 cat conftest.err >&5 6788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6789 (exit $ac_status); } >/dev/null; then 6790 if test -s conftest.err; then 6791 ac_cpp_err=$ac_c_preproc_warn_flag 6792 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6793 else 6794 ac_cpp_err= 6795 fi 6796else 6797 ac_cpp_err=yes 6798fi 6799if test -z "$ac_cpp_err"; then 6800 # Broken: success on invalid input. 6801continue 6802else 6803 echo "$as_me: failed program was:" >&5 6804sed 's/^/| /' conftest.$ac_ext >&5 6805 6806 # Passes both tests. 6807ac_preproc_ok=: 6808break 6809fi 6810rm -f conftest.err conftest.$ac_ext 6811 6812done 6813# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6814rm -f conftest.err conftest.$ac_ext 6815if $ac_preproc_ok; then 6816 : 6817else 6818 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 6819See \`config.log' for more details." >&5 6820echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 6821See \`config.log' for more details." >&2;} 6822 { (exit 1); exit 1; }; } 6823fi 6824 6825ac_ext=c 6826ac_cpp='$CPP $CPPFLAGS' 6827ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6828ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6829ac_compiler_gnu=$ac_cv_c_compiler_gnu 6830 6831 6832echo "$as_me:$LINENO: checking for ANSI C header files" >&5 6833echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 6834if test "${ac_cv_header_stdc+set}" = set; then 6835 echo $ECHO_N "(cached) $ECHO_C" >&6 6836else 6837 cat >conftest.$ac_ext <<_ACEOF 6838/* confdefs.h. */ 6839_ACEOF 6840cat confdefs.h >>conftest.$ac_ext 6841cat >>conftest.$ac_ext <<_ACEOF 6842/* end confdefs.h. */ 6843#include <stdlib.h> 6844#include <stdarg.h> 6845#include <string.h> 6846#include <float.h> 6847 6848int 6849main () 6850{ 6851 6852 ; 6853 return 0; 6854} 6855_ACEOF 6856rm -f conftest.$ac_objext 6857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6858 (eval $ac_compile) 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); } && 6865 { ac_try='test -z "$ac_c_werror_flag" 6866 || test ! -s conftest.err' 6867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6868 (eval $ac_try) 2>&5 6869 ac_status=$? 6870 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6871 (exit $ac_status); }; } && 6872 { ac_try='test -s conftest.$ac_objext' 6873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6874 (eval $ac_try) 2>&5 6875 ac_status=$? 6876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6877 (exit $ac_status); }; }; then 6878 ac_cv_header_stdc=yes 6879else 6880 echo "$as_me: failed program was:" >&5 6881sed 's/^/| /' conftest.$ac_ext >&5 6882 6883ac_cv_header_stdc=no 6884fi 6885rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6886 6887if test $ac_cv_header_stdc = yes; then 6888 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6889 cat >conftest.$ac_ext <<_ACEOF 6890/* confdefs.h. */ 6891_ACEOF 6892cat confdefs.h >>conftest.$ac_ext 6893cat >>conftest.$ac_ext <<_ACEOF 6894/* end confdefs.h. */ 6895#include <string.h> 6896 6897_ACEOF 6898if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6899 $EGREP "memchr" >/dev/null 2>&1; then 6900 : 6901else 6902 ac_cv_header_stdc=no 6903fi 6904rm -f conftest* 6905 6906fi 6907 6908if test $ac_cv_header_stdc = yes; then 6909 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6910 cat >conftest.$ac_ext <<_ACEOF 6911/* confdefs.h. */ 6912_ACEOF 6913cat confdefs.h >>conftest.$ac_ext 6914cat >>conftest.$ac_ext <<_ACEOF 6915/* end confdefs.h. */ 6916#include <stdlib.h> 6917 6918_ACEOF 6919if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6920 $EGREP "free" >/dev/null 2>&1; then 6921 : 6922else 6923 ac_cv_header_stdc=no 6924fi 6925rm -f conftest* 6926 6927fi 6928 6929if test $ac_cv_header_stdc = yes; then 6930 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6931 if test "$cross_compiling" = yes; then 6932 : 6933else 6934 cat >conftest.$ac_ext <<_ACEOF 6935/* confdefs.h. */ 6936_ACEOF 6937cat confdefs.h >>conftest.$ac_ext 6938cat >>conftest.$ac_ext <<_ACEOF 6939/* end confdefs.h. */ 6940#include <ctype.h> 6941#if ((' ' & 0x0FF) == 0x020) 6942# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6943# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6944#else 6945# define ISLOWER(c) \ 6946 (('a' <= (c) && (c) <= 'i') \ 6947 || ('j' <= (c) && (c) <= 'r') \ 6948 || ('s' <= (c) && (c) <= 'z')) 6949# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6950#endif 6951 6952#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6953int 6954main () 6955{ 6956 int i; 6957 for (i = 0; i < 256; i++) 6958 if (XOR (islower (i), ISLOWER (i)) 6959 || toupper (i) != TOUPPER (i)) 6960 exit(2); 6961 exit (0); 6962} 6963_ACEOF 6964rm -f conftest$ac_exeext 6965if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6966 (eval $ac_link) 2>&5 6967 ac_status=$? 6968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6969 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6971 (eval $ac_try) 2>&5 6972 ac_status=$? 6973 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6974 (exit $ac_status); }; }; then 6975 : 6976else 6977 echo "$as_me: program exited with status $ac_status" >&5 6978echo "$as_me: failed program was:" >&5 6979sed 's/^/| /' conftest.$ac_ext >&5 6980 6981( exit $ac_status ) 6982ac_cv_header_stdc=no 6983fi 6984rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6985fi 6986fi 6987fi 6988echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 6989echo "${ECHO_T}$ac_cv_header_stdc" >&6 6990if test $ac_cv_header_stdc = yes; then 6991 6992cat >>confdefs.h <<\_ACEOF 6993#define STDC_HEADERS 1 6994_ACEOF 6995 6996fi 6997 6998# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7009 inttypes.h stdint.h unistd.h 7010do 7011as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7012echo "$as_me:$LINENO: checking for $ac_header" >&5 7013echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7014if eval "test \"\${$as_ac_Header+set}\" = set"; then 7015 echo $ECHO_N "(cached) $ECHO_C" >&6 7016else 7017 cat >conftest.$ac_ext <<_ACEOF 7018/* confdefs.h. */ 7019_ACEOF 7020cat confdefs.h >>conftest.$ac_ext 7021cat >>conftest.$ac_ext <<_ACEOF 7022/* end confdefs.h. */ 7023$ac_includes_default 7024 7025#include <$ac_header> 7026_ACEOF 7027rm -f conftest.$ac_objext 7028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7029 (eval $ac_compile) 2>conftest.er1 7030 ac_status=$? 7031 grep -v '^ *+' conftest.er1 >conftest.err 7032 rm -f conftest.er1 7033 cat conftest.err >&5 7034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7035 (exit $ac_status); } && 7036 { ac_try='test -z "$ac_c_werror_flag" 7037 || test ! -s conftest.err' 7038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7039 (eval $ac_try) 2>&5 7040 ac_status=$? 7041 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7042 (exit $ac_status); }; } && 7043 { ac_try='test -s conftest.$ac_objext' 7044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7045 (eval $ac_try) 2>&5 7046 ac_status=$? 7047 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7048 (exit $ac_status); }; }; then 7049 eval "$as_ac_Header=yes" 7050else 7051 echo "$as_me: failed program was:" >&5 7052sed 's/^/| /' conftest.$ac_ext >&5 7053 7054eval "$as_ac_Header=no" 7055fi 7056rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7057fi 7058echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 7059echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7060if test `eval echo '${'$as_ac_Header'}'` = yes; then 7061 cat >>confdefs.h <<_ACEOF 7062#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7063_ACEOF 7064 7065fi 7066 7067done 7068 7069 7070 7071for ac_header in dlfcn.h 7072do 7073as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7074if eval "test \"\${$as_ac_Header+set}\" = set"; then 7075 echo "$as_me:$LINENO: checking for $ac_header" >&5 7076echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7077if eval "test \"\${$as_ac_Header+set}\" = set"; then 7078 echo $ECHO_N "(cached) $ECHO_C" >&6 7079fi 7080echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 7081echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7082else 7083 # Is the header compilable? 7084echo "$as_me:$LINENO: checking $ac_header usability" >&5 7085echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 7086cat >conftest.$ac_ext <<_ACEOF 7087/* confdefs.h. */ 7088_ACEOF 7089cat confdefs.h >>conftest.$ac_ext 7090cat >>conftest.$ac_ext <<_ACEOF 7091/* end confdefs.h. */ 7092$ac_includes_default 7093#include <$ac_header> 7094_ACEOF 7095rm -f conftest.$ac_objext 7096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7097 (eval $ac_compile) 2>conftest.er1 7098 ac_status=$? 7099 grep -v '^ *+' conftest.er1 >conftest.err 7100 rm -f conftest.er1 7101 cat conftest.err >&5 7102 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7103 (exit $ac_status); } && 7104 { ac_try='test -z "$ac_c_werror_flag" 7105 || test ! -s conftest.err' 7106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7107 (eval $ac_try) 2>&5 7108 ac_status=$? 7109 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7110 (exit $ac_status); }; } && 7111 { ac_try='test -s conftest.$ac_objext' 7112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7113 (eval $ac_try) 2>&5 7114 ac_status=$? 7115 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7116 (exit $ac_status); }; }; then 7117 ac_header_compiler=yes 7118else 7119 echo "$as_me: failed program was:" >&5 7120sed 's/^/| /' conftest.$ac_ext >&5 7121 7122ac_header_compiler=no 7123fi 7124rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7125echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7126echo "${ECHO_T}$ac_header_compiler" >&6 7127 7128# Is the header present? 7129echo "$as_me:$LINENO: checking $ac_header presence" >&5 7130echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 7131cat >conftest.$ac_ext <<_ACEOF 7132/* confdefs.h. */ 7133_ACEOF 7134cat confdefs.h >>conftest.$ac_ext 7135cat >>conftest.$ac_ext <<_ACEOF 7136/* end confdefs.h. */ 7137#include <$ac_header> 7138_ACEOF 7139if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 7140 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7141 ac_status=$? 7142 grep -v '^ *+' conftest.er1 >conftest.err 7143 rm -f conftest.er1 7144 cat conftest.err >&5 7145 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7146 (exit $ac_status); } >/dev/null; then 7147 if test -s conftest.err; then 7148 ac_cpp_err=$ac_c_preproc_warn_flag 7149 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 7150 else 7151 ac_cpp_err= 7152 fi 7153else 7154 ac_cpp_err=yes 7155fi 7156if test -z "$ac_cpp_err"; then 7157 ac_header_preproc=yes 7158else 7159 echo "$as_me: failed program was:" >&5 7160sed 's/^/| /' conftest.$ac_ext >&5 7161 7162 ac_header_preproc=no 7163fi 7164rm -f conftest.err conftest.$ac_ext 7165echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7166echo "${ECHO_T}$ac_header_preproc" >&6 7167 7168# So? What about this header? 7169case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 7170 yes:no: ) 7171 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 7172echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 7173 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 7174echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 7175 ac_header_preproc=yes 7176 ;; 7177 no:yes:* ) 7178 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 7179echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 7180 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 7181echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 7182 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 7183echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 7184 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 7185echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 7186 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 7187echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 7188 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 7189echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 7190 ( 7191 cat <<\_ASBOX 7192## ---------------------------------------------------------------- ## 7193## Report this to https://github.com/coin-or/CHiPPS-ALPS/issues/new ## 7194## ---------------------------------------------------------------- ## 7195_ASBOX 7196 ) | 7197 sed "s/^/$as_me: WARNING: /" >&2 7198 ;; 7199esac 7200echo "$as_me:$LINENO: checking for $ac_header" >&5 7201echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7202if eval "test \"\${$as_ac_Header+set}\" = set"; then 7203 echo $ECHO_N "(cached) $ECHO_C" >&6 7204else 7205 eval "$as_ac_Header=\$ac_header_preproc" 7206fi 7207echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 7208echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7209 7210fi 7211if test `eval echo '${'$as_ac_Header'}'` = yes; then 7212 cat >>confdefs.h <<_ACEOF 7213#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7214_ACEOF 7215 7216fi 7217 7218done 7219 7220 7221 7222if test -n "$CXX" && ( test "X$CXX" != "Xno" && 7223 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 7224 (test "X$CXX" != "Xg++"))) ; then 7225 ac_ext=cc 7226ac_cpp='$CXXCPP $CPPFLAGS' 7227ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7228ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7229ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7230echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 7231echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 7232if test -z "$CXXCPP"; then 7233 if test "${ac_cv_prog_CXXCPP+set}" = set; then 7234 echo $ECHO_N "(cached) $ECHO_C" >&6 7235else 7236 # Double quotes because CXXCPP needs to be expanded 7237 for CXXCPP in "$CXX -E" "/lib/cpp" 7238 do 7239 ac_preproc_ok=false 7240for ac_cxx_preproc_warn_flag in '' yes 7241do 7242 # Use a header file that comes with gcc, so configuring glibc 7243 # with a fresh cross-compiler works. 7244 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7245 # <limits.h> exists even on freestanding compilers. 7246 # On the NeXT, cc -E runs the code through the compiler's parser, 7247 # not just through cpp. "Syntax error" is here to catch this case. 7248 cat >conftest.$ac_ext <<_ACEOF 7249/* confdefs.h. */ 7250_ACEOF 7251cat confdefs.h >>conftest.$ac_ext 7252cat >>conftest.$ac_ext <<_ACEOF 7253/* end confdefs.h. */ 7254#ifdef __STDC__ 7255# include <limits.h> 7256#else 7257# include <assert.h> 7258#endif 7259 Syntax error 7260_ACEOF 7261if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 7262 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7263 ac_status=$? 7264 grep -v '^ *+' conftest.er1 >conftest.err 7265 rm -f conftest.er1 7266 cat conftest.err >&5 7267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7268 (exit $ac_status); } >/dev/null; then 7269 if test -s conftest.err; then 7270 ac_cpp_err=$ac_cxx_preproc_warn_flag 7271 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 7272 else 7273 ac_cpp_err= 7274 fi 7275else 7276 ac_cpp_err=yes 7277fi 7278if test -z "$ac_cpp_err"; then 7279 : 7280else 7281 echo "$as_me: failed program was:" >&5 7282sed 's/^/| /' conftest.$ac_ext >&5 7283 7284 # Broken: fails on valid input. 7285continue 7286fi 7287rm -f conftest.err conftest.$ac_ext 7288 7289 # OK, works on sane cases. Now check whether non-existent headers 7290 # can be detected and how. 7291 cat >conftest.$ac_ext <<_ACEOF 7292/* confdefs.h. */ 7293_ACEOF 7294cat confdefs.h >>conftest.$ac_ext 7295cat >>conftest.$ac_ext <<_ACEOF 7296/* end confdefs.h. */ 7297#include <ac_nonexistent.h> 7298_ACEOF 7299if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 7300 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7301 ac_status=$? 7302 grep -v '^ *+' conftest.er1 >conftest.err 7303 rm -f conftest.er1 7304 cat conftest.err >&5 7305 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7306 (exit $ac_status); } >/dev/null; then 7307 if test -s conftest.err; then 7308 ac_cpp_err=$ac_cxx_preproc_warn_flag 7309 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 7310 else 7311 ac_cpp_err= 7312 fi 7313else 7314 ac_cpp_err=yes 7315fi 7316if test -z "$ac_cpp_err"; then 7317 # Broken: success on invalid input. 7318continue 7319else 7320 echo "$as_me: failed program was:" >&5 7321sed 's/^/| /' conftest.$ac_ext >&5 7322 7323 # Passes both tests. 7324ac_preproc_ok=: 7325break 7326fi 7327rm -f conftest.err conftest.$ac_ext 7328 7329done 7330# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7331rm -f conftest.err conftest.$ac_ext 7332if $ac_preproc_ok; then 7333 break 7334fi 7335 7336 done 7337 ac_cv_prog_CXXCPP=$CXXCPP 7338 7339fi 7340 CXXCPP=$ac_cv_prog_CXXCPP 7341else 7342 ac_cv_prog_CXXCPP=$CXXCPP 7343fi 7344echo "$as_me:$LINENO: result: $CXXCPP" >&5 7345echo "${ECHO_T}$CXXCPP" >&6 7346ac_preproc_ok=false 7347for ac_cxx_preproc_warn_flag in '' yes 7348do 7349 # Use a header file that comes with gcc, so configuring glibc 7350 # with a fresh cross-compiler works. 7351 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7352 # <limits.h> exists even on freestanding compilers. 7353 # On the NeXT, cc -E runs the code through the compiler's parser, 7354 # not just through cpp. "Syntax error" is here to catch this case. 7355 cat >conftest.$ac_ext <<_ACEOF 7356/* confdefs.h. */ 7357_ACEOF 7358cat confdefs.h >>conftest.$ac_ext 7359cat >>conftest.$ac_ext <<_ACEOF 7360/* end confdefs.h. */ 7361#ifdef __STDC__ 7362# include <limits.h> 7363#else 7364# include <assert.h> 7365#endif 7366 Syntax error 7367_ACEOF 7368if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 7369 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7370 ac_status=$? 7371 grep -v '^ *+' conftest.er1 >conftest.err 7372 rm -f conftest.er1 7373 cat conftest.err >&5 7374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7375 (exit $ac_status); } >/dev/null; then 7376 if test -s conftest.err; then 7377 ac_cpp_err=$ac_cxx_preproc_warn_flag 7378 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 7379 else 7380 ac_cpp_err= 7381 fi 7382else 7383 ac_cpp_err=yes 7384fi 7385if test -z "$ac_cpp_err"; then 7386 : 7387else 7388 echo "$as_me: failed program was:" >&5 7389sed 's/^/| /' conftest.$ac_ext >&5 7390 7391 # Broken: fails on valid input. 7392continue 7393fi 7394rm -f conftest.err conftest.$ac_ext 7395 7396 # OK, works on sane cases. Now check whether non-existent headers 7397 # can be detected and how. 7398 cat >conftest.$ac_ext <<_ACEOF 7399/* confdefs.h. */ 7400_ACEOF 7401cat confdefs.h >>conftest.$ac_ext 7402cat >>conftest.$ac_ext <<_ACEOF 7403/* end confdefs.h. */ 7404#include <ac_nonexistent.h> 7405_ACEOF 7406if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 7407 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7408 ac_status=$? 7409 grep -v '^ *+' conftest.er1 >conftest.err 7410 rm -f conftest.er1 7411 cat conftest.err >&5 7412 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7413 (exit $ac_status); } >/dev/null; then 7414 if test -s conftest.err; then 7415 ac_cpp_err=$ac_cxx_preproc_warn_flag 7416 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 7417 else 7418 ac_cpp_err= 7419 fi 7420else 7421 ac_cpp_err=yes 7422fi 7423if test -z "$ac_cpp_err"; then 7424 # Broken: success on invalid input. 7425continue 7426else 7427 echo "$as_me: failed program was:" >&5 7428sed 's/^/| /' conftest.$ac_ext >&5 7429 7430 # Passes both tests. 7431ac_preproc_ok=: 7432break 7433fi 7434rm -f conftest.err conftest.$ac_ext 7435 7436done 7437# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7438rm -f conftest.err conftest.$ac_ext 7439if $ac_preproc_ok; then 7440 : 7441else 7442 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 7443See \`config.log' for more details." >&5 7444echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 7445See \`config.log' for more details." >&2;} 7446 { (exit 1); exit 1; }; } 7447fi 7448 7449ac_ext=cc 7450ac_cpp='$CXXCPP $CPPFLAGS' 7451ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7452ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7453ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7454 7455fi 7456 7457 7458# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 7459 7460# find the maximum length of command line arguments 7461echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 7462echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 7463if test "${lt_cv_sys_max_cmd_len+set}" = set; then 7464 echo $ECHO_N "(cached) $ECHO_C" >&6 7465else 7466 i=0 7467 teststring="ABCD" 7468 7469 case $build_os in 7470 msdosdjgpp*) 7471 # On DJGPP, this test can blow up pretty badly due to problems in libc 7472 # (any single argument exceeding 2000 bytes causes a buffer overrun 7473 # during glob expansion). Even if it were fixed, the result of this 7474 # check would be larger than it should be. 7475 lt_cv_sys_max_cmd_len=12288; # 12K is about right 7476 ;; 7477 7478 gnu*) 7479 # Under GNU Hurd, this test is not required because there is 7480 # no limit to the length of command line arguments. 7481 # Libtool will interpret -1 as no limit whatsoever 7482 lt_cv_sys_max_cmd_len=-1; 7483 ;; 7484 7485 cygwin* | mingw*) 7486 # On Win9x/ME, this test blows up -- it succeeds, but takes 7487 # about 5 minutes as the teststring grows exponentially. 7488 # Worse, since 9x/ME are not pre-emptively multitasking, 7489 # you end up with a "frozen" computer, even though with patience 7490 # the test eventually succeeds (with a max line length of 256k). 7491 # Instead, let's just punt: use the minimum linelength reported by 7492 # all of the supported platforms: 8192 (on NT/2K/XP). 7493 lt_cv_sys_max_cmd_len=8192; 7494 ;; 7495 7496 amigaos*) 7497 # On AmigaOS with pdksh, this test takes hours, literally. 7498 # So we just punt and use a minimum line length of 8192. 7499 lt_cv_sys_max_cmd_len=8192; 7500 ;; 7501 7502 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 7503 # This has been around since 386BSD, at least. Likely further. 7504 if test -x /sbin/sysctl; then 7505 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 7506 elif test -x /usr/sbin/sysctl; then 7507 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 7508 else 7509 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 7510 fi 7511 # And add a safety zone 7512 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7513 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7514 ;; 7515 7516 interix*) 7517 # We know the value 262144 and hardcode it with a safety zone (like BSD) 7518 lt_cv_sys_max_cmd_len=196608 7519 ;; 7520 7521 osf*) 7522 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 7523 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 7524 # nice to cause kernel panics so lets avoid the loop below. 7525 # First set a reasonable default. 7526 lt_cv_sys_max_cmd_len=16384 7527 # 7528 if test -x /sbin/sysconfig; then 7529 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 7530 *1*) lt_cv_sys_max_cmd_len=-1 ;; 7531 esac 7532 fi 7533 ;; 7534 sco3.2v5*) 7535 lt_cv_sys_max_cmd_len=102400 7536 ;; 7537 sysv5* | sco5v6* | sysv4.2uw2*) 7538 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 7539 if test -n "$kargmax"; then 7540 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 7541 else 7542 lt_cv_sys_max_cmd_len=32768 7543 fi 7544 ;; 7545 *) 7546 # If test is not a shell built-in, we'll probably end up computing a 7547 # maximum length that is only half of the actual maximum length, but 7548 # we can't tell. 7549 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 7550 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 7551 = "XX$teststring") >/dev/null 2>&1 && 7552 new_result=`expr "X$teststring" : ".*" 2>&1` && 7553 lt_cv_sys_max_cmd_len=$new_result && 7554 test $i != 17 # 1/2 MB should be enough 7555 do 7556 i=`expr $i + 1` 7557 teststring=$teststring$teststring 7558 done 7559 teststring= 7560 # Add a significant safety factor because C++ compilers can tack on massive 7561 # amounts of additional arguments before passing them to the linker. 7562 # It appears as though 1/2 is a usable value. 7563 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 7564 ;; 7565 esac 7566 7567fi 7568 7569if test -n $lt_cv_sys_max_cmd_len ; then 7570 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 7571echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 7572else 7573 echo "$as_me:$LINENO: result: none" >&5 7574echo "${ECHO_T}none" >&6 7575fi 7576 7577 7578 7579 7580# Check for command to grab the raw symbol name followed by C symbol from nm. 7581echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 7582echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 7583if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 7584 echo $ECHO_N "(cached) $ECHO_C" >&6 7585else 7586 7587# These are sane defaults that work on at least a few old systems. 7588# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7589 7590# Character class describing NM global symbol codes. 7591symcode='[BCDEGRST]' 7592 7593# Regexp to match symbols that can be accessed directly from C. 7594sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7595 7596# Transform an extracted symbol line into a proper C declaration 7597lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 7598 7599# Transform an extracted symbol line into symbol name and symbol address 7600lt_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'" 7601 7602# Define system-specific variables. 7603case $host_os in 7604aix*) 7605 symcode='[BCDT]' 7606 ;; 7607cygwin* | mingw* | pw32*) 7608 symcode='[ABCDGISTW]' 7609 ;; 7610hpux*) # Its linker distinguishes data from code symbols 7611 if test "$host_cpu" = ia64; then 7612 symcode='[ABCDEGRST]' 7613 fi 7614 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7615 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'" 7616 ;; 7617linux*) 7618 if test "$host_cpu" = ia64; then 7619 symcode='[ABCDGIRSTW]' 7620 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7621 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'" 7622 fi 7623 ;; 7624irix* | nonstopux*) 7625 symcode='[BCDEGRST]' 7626 ;; 7627osf*) 7628 symcode='[BCDEGQRST]' 7629 ;; 7630solaris*) 7631 symcode='[BDRT]' 7632 ;; 7633sco3.2v5*) 7634 symcode='[DT]' 7635 ;; 7636sysv4.2uw2*) 7637 symcode='[DT]' 7638 ;; 7639sysv5* | sco5v6* | unixware* | OpenUNIX*) 7640 symcode='[ABDT]' 7641 ;; 7642sysv4) 7643 symcode='[DFNSTU]' 7644 ;; 7645esac 7646 7647# Handle CRLF in mingw tool chain 7648opt_cr= 7649case $build_os in 7650mingw*) 7651 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7652 ;; 7653esac 7654 7655# If we're using GNU nm, then use its standard symbol codes. 7656case `$NM -V 2>&1` in 7657*GNU* | *'with BFD'*) 7658 symcode='[ABCDGIRSTW]' ;; 7659esac 7660 7661# Try without a prefix undercore, then with it. 7662for ac_symprfx in "" "_"; do 7663 7664 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7665 symxfrm="\\1 $ac_symprfx\\2 \\2" 7666 7667 # Write the raw and C identifiers. 7668 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7669 7670 # Check to see that the pipe works correctly. 7671 pipe_works=no 7672 7673 rm -f conftest* 7674 cat > conftest.$ac_ext <<EOF 7675#ifdef __cplusplus 7676extern "C" { 7677#endif 7678char nm_test_var; 7679void nm_test_func(){} 7680#ifdef __cplusplus 7681} 7682#endif 7683int main(){nm_test_var='a';nm_test_func();return(0);} 7684EOF 7685 7686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7687 (eval $ac_compile) 2>&5 7688 ac_status=$? 7689 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7690 (exit $ac_status); }; then 7691 # Now try to grab the symbols. 7692 nlist=conftest.nm 7693 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 7694 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 7695 ac_status=$? 7696 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7697 (exit $ac_status); } && test -s "$nlist"; then 7698 # Try sorting and uniquifying the output. 7699 if sort "$nlist" | uniq > "$nlist"T; then 7700 mv -f "$nlist"T "$nlist" 7701 else 7702 rm -f "$nlist"T 7703 fi 7704 7705 # Make sure that we snagged all the symbols we need. 7706 if grep ' nm_test_var$' "$nlist" >/dev/null; then 7707 if grep ' nm_test_func$' "$nlist" >/dev/null; then 7708 cat <<EOF > conftest.$ac_ext 7709#ifdef __cplusplus 7710extern "C" { 7711#endif 7712 7713EOF 7714 # Now generate the symbol file. 7715 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 7716 7717 cat <<EOF >> conftest.$ac_ext 7718#if defined (__STDC__) && __STDC__ 7719# define lt_ptr_t void * 7720#else 7721# define lt_ptr_t char * 7722# define const 7723#endif 7724 7725/* The mapping between symbol names and symbols. */ 7726const struct { 7727 const char *name; 7728 lt_ptr_t address; 7729} 7730lt_preloaded_symbols[] = 7731{ 7732EOF 7733 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 7734 cat <<\EOF >> conftest.$ac_ext 7735 {0, (lt_ptr_t) 0} 7736}; 7737 7738#ifdef __cplusplus 7739} 7740#endif 7741EOF 7742 # Now try linking the two files. 7743 mv conftest.$ac_objext conftstm.$ac_objext 7744 lt_save_LIBS="$LIBS" 7745 lt_save_CFLAGS="$CFLAGS" 7746 LIBS="conftstm.$ac_objext" 7747 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7749 (eval $ac_link) 2>&5 7750 ac_status=$? 7751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7752 (exit $ac_status); } && test -s conftest${ac_exeext}; then 7753 pipe_works=yes 7754 fi 7755 LIBS="$lt_save_LIBS" 7756 CFLAGS="$lt_save_CFLAGS" 7757 else 7758 echo "cannot find nm_test_func in $nlist" >&5 7759 fi 7760 else 7761 echo "cannot find nm_test_var in $nlist" >&5 7762 fi 7763 else 7764 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7765 fi 7766 else 7767 echo "$progname: failed program was:" >&5 7768 cat conftest.$ac_ext >&5 7769 fi 7770 rm -f conftest* conftst* 7771 7772 # Do not use the global_symbol_pipe unless it works. 7773 if test "$pipe_works" = yes; then 7774 break 7775 else 7776 lt_cv_sys_global_symbol_pipe= 7777 fi 7778done 7779 7780fi 7781 7782if test -z "$lt_cv_sys_global_symbol_pipe"; then 7783 lt_cv_sys_global_symbol_to_cdecl= 7784fi 7785if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7786 echo "$as_me:$LINENO: result: failed" >&5 7787echo "${ECHO_T}failed" >&6 7788else 7789 echo "$as_me:$LINENO: result: ok" >&5 7790echo "${ECHO_T}ok" >&6 7791fi 7792 7793echo "$as_me:$LINENO: checking for objdir" >&5 7794echo $ECHO_N "checking for objdir... $ECHO_C" >&6 7795if test "${lt_cv_objdir+set}" = set; then 7796 echo $ECHO_N "(cached) $ECHO_C" >&6 7797else 7798 rm -f .libs 2>/dev/null 7799mkdir .libs 2>/dev/null 7800if test -d .libs; then 7801 lt_cv_objdir=.libs 7802else 7803 # MS-DOS does not allow filenames that begin with a dot. 7804 lt_cv_objdir=_libs 7805fi 7806rmdir .libs 2>/dev/null 7807fi 7808echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 7809echo "${ECHO_T}$lt_cv_objdir" >&6 7810objdir=$lt_cv_objdir 7811 7812 7813 7814 7815 7816case $host_os in 7817aix3*) 7818 # AIX sometimes has problems with the GCC collect2 program. For some 7819 # reason, if we set the COLLECT_NAMES environment variable, the problems 7820 # vanish in a puff of smoke. 7821 if test "X${COLLECT_NAMES+set}" != Xset; then 7822 COLLECT_NAMES= 7823 export COLLECT_NAMES 7824 fi 7825 ;; 7826esac 7827 7828# Sed substitution that helps us do robust quoting. It backslashifies 7829# metacharacters that are still active within double-quoted strings. 7830Xsed='sed -e 1s/^X//' 7831sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 7832 7833# Same as above, but do not quote variable references. 7834double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 7835 7836# Sed substitution to delay expansion of an escaped shell variable in a 7837# double_quote_subst'ed string. 7838delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7839 7840# Sed substitution to avoid accidental globbing in evaled expressions 7841no_glob_subst='s/\*/\\\*/g' 7842 7843# Constants: 7844rm="rm -f" 7845 7846# Global variables: 7847default_ofile=libtool 7848can_build_shared=yes 7849 7850# All known linkers require a `.a' archive for static linking (except MSVC, 7851# which needs '.lib'). 7852libext=a 7853ltmain="$ac_aux_dir/ltmain.sh" 7854ofile="$default_ofile" 7855with_gnu_ld="$lt_cv_prog_gnu_ld" 7856 7857if test -n "$ac_tool_prefix"; then 7858 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 7859set dummy ${ac_tool_prefix}ar; ac_word=$2 7860echo "$as_me:$LINENO: checking for $ac_word" >&5 7861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7862if test "${ac_cv_prog_AR+set}" = set; then 7863 echo $ECHO_N "(cached) $ECHO_C" >&6 7864else 7865 if test -n "$AR"; then 7866 ac_cv_prog_AR="$AR" # Let the user override the test. 7867else 7868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7869for as_dir in $PATH 7870do 7871 IFS=$as_save_IFS 7872 test -z "$as_dir" && as_dir=. 7873 for ac_exec_ext in '' $ac_executable_extensions; do 7874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7875 ac_cv_prog_AR="${ac_tool_prefix}ar" 7876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7877 break 2 7878 fi 7879done 7880done 7881 7882fi 7883fi 7884AR=$ac_cv_prog_AR 7885if test -n "$AR"; then 7886 echo "$as_me:$LINENO: result: $AR" >&5 7887echo "${ECHO_T}$AR" >&6 7888else 7889 echo "$as_me:$LINENO: result: no" >&5 7890echo "${ECHO_T}no" >&6 7891fi 7892 7893fi 7894if test -z "$ac_cv_prog_AR"; then 7895 ac_ct_AR=$AR 7896 # Extract the first word of "ar", so it can be a program name with args. 7897set dummy ar; ac_word=$2 7898echo "$as_me:$LINENO: checking for $ac_word" >&5 7899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7900if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 7901 echo $ECHO_N "(cached) $ECHO_C" >&6 7902else 7903 if test -n "$ac_ct_AR"; then 7904 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7905else 7906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7907for as_dir in $PATH 7908do 7909 IFS=$as_save_IFS 7910 test -z "$as_dir" && as_dir=. 7911 for ac_exec_ext in '' $ac_executable_extensions; do 7912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7913 ac_cv_prog_ac_ct_AR="ar" 7914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7915 break 2 7916 fi 7917done 7918done 7919 7920 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" 7921fi 7922fi 7923ac_ct_AR=$ac_cv_prog_ac_ct_AR 7924if test -n "$ac_ct_AR"; then 7925 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 7926echo "${ECHO_T}$ac_ct_AR" >&6 7927else 7928 echo "$as_me:$LINENO: result: no" >&5 7929echo "${ECHO_T}no" >&6 7930fi 7931 7932 AR=$ac_ct_AR 7933else 7934 AR="$ac_cv_prog_AR" 7935fi 7936 7937if test -n "$ac_tool_prefix"; then 7938 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7939set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7940echo "$as_me:$LINENO: checking for $ac_word" >&5 7941echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7942if test "${ac_cv_prog_RANLIB+set}" = set; then 7943 echo $ECHO_N "(cached) $ECHO_C" >&6 7944else 7945 if test -n "$RANLIB"; then 7946 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7947else 7948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7949for as_dir in $PATH 7950do 7951 IFS=$as_save_IFS 7952 test -z "$as_dir" && as_dir=. 7953 for ac_exec_ext in '' $ac_executable_extensions; do 7954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7955 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7957 break 2 7958 fi 7959done 7960done 7961 7962fi 7963fi 7964RANLIB=$ac_cv_prog_RANLIB 7965if test -n "$RANLIB"; then 7966 echo "$as_me:$LINENO: result: $RANLIB" >&5 7967echo "${ECHO_T}$RANLIB" >&6 7968else 7969 echo "$as_me:$LINENO: result: no" >&5 7970echo "${ECHO_T}no" >&6 7971fi 7972 7973fi 7974if test -z "$ac_cv_prog_RANLIB"; then 7975 ac_ct_RANLIB=$RANLIB 7976 # Extract the first word of "ranlib", so it can be a program name with args. 7977set dummy ranlib; ac_word=$2 7978echo "$as_me:$LINENO: checking for $ac_word" >&5 7979echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7980if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 7981 echo $ECHO_N "(cached) $ECHO_C" >&6 7982else 7983 if test -n "$ac_ct_RANLIB"; then 7984 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7985else 7986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7987for as_dir in $PATH 7988do 7989 IFS=$as_save_IFS 7990 test -z "$as_dir" && as_dir=. 7991 for ac_exec_ext in '' $ac_executable_extensions; do 7992 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7993 ac_cv_prog_ac_ct_RANLIB="ranlib" 7994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7995 break 2 7996 fi 7997done 7998done 7999 8000 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 8001fi 8002fi 8003ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 8004if test -n "$ac_ct_RANLIB"; then 8005 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 8006echo "${ECHO_T}$ac_ct_RANLIB" >&6 8007else 8008 echo "$as_me:$LINENO: result: no" >&5 8009echo "${ECHO_T}no" >&6 8010fi 8011 8012 RANLIB=$ac_ct_RANLIB 8013else 8014 RANLIB="$ac_cv_prog_RANLIB" 8015fi 8016 8017if test -n "$ac_tool_prefix"; then 8018 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 8019set dummy ${ac_tool_prefix}strip; ac_word=$2 8020echo "$as_me:$LINENO: checking for $ac_word" >&5 8021echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8022if test "${ac_cv_prog_STRIP+set}" = set; then 8023 echo $ECHO_N "(cached) $ECHO_C" >&6 8024else 8025 if test -n "$STRIP"; then 8026 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 8027else 8028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8029for as_dir in $PATH 8030do 8031 IFS=$as_save_IFS 8032 test -z "$as_dir" && as_dir=. 8033 for ac_exec_ext in '' $ac_executable_extensions; do 8034 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8035 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 8036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8037 break 2 8038 fi 8039done 8040done 8041 8042fi 8043fi 8044STRIP=$ac_cv_prog_STRIP 8045if test -n "$STRIP"; then 8046 echo "$as_me:$LINENO: result: $STRIP" >&5 8047echo "${ECHO_T}$STRIP" >&6 8048else 8049 echo "$as_me:$LINENO: result: no" >&5 8050echo "${ECHO_T}no" >&6 8051fi 8052 8053fi 8054if test -z "$ac_cv_prog_STRIP"; then 8055 ac_ct_STRIP=$STRIP 8056 # Extract the first word of "strip", so it can be a program name with args. 8057set dummy strip; ac_word=$2 8058echo "$as_me:$LINENO: checking for $ac_word" >&5 8059echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8060if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 8061 echo $ECHO_N "(cached) $ECHO_C" >&6 8062else 8063 if test -n "$ac_ct_STRIP"; then 8064 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 8065else 8066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8067for as_dir in $PATH 8068do 8069 IFS=$as_save_IFS 8070 test -z "$as_dir" && as_dir=. 8071 for ac_exec_ext in '' $ac_executable_extensions; do 8072 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8073 ac_cv_prog_ac_ct_STRIP="strip" 8074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8075 break 2 8076 fi 8077done 8078done 8079 8080 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 8081fi 8082fi 8083ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 8084if test -n "$ac_ct_STRIP"; then 8085 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 8086echo "${ECHO_T}$ac_ct_STRIP" >&6 8087else 8088 echo "$as_me:$LINENO: result: no" >&5 8089echo "${ECHO_T}no" >&6 8090fi 8091 8092 STRIP=$ac_ct_STRIP 8093else 8094 STRIP="$ac_cv_prog_STRIP" 8095fi 8096 8097 8098old_CC="$CC" 8099old_CFLAGS="$CFLAGS" 8100 8101# Set sane defaults for various variables 8102test -z "$AR" && AR=ar 8103test -z "$AR_FLAGS" && AR_FLAGS=cru 8104test -z "$AS" && AS=as 8105test -z "$CC" && CC=cc 8106test -z "$LTCC" && LTCC=$CC 8107test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8108test -z "$DLLTOOL" && DLLTOOL=dlltool 8109test -z "$LD" && LD=ld 8110test -z "$LN_S" && LN_S="ln -s" 8111test -z "$MAGIC_CMD" && MAGIC_CMD=file 8112test -z "$NM" && NM=nm 8113test -z "$SED" && SED=sed 8114test -z "$OBJDUMP" && OBJDUMP=objdump 8115test -z "$RANLIB" && RANLIB=: 8116test -z "$STRIP" && STRIP=: 8117test -z "$ac_objext" && ac_objext=o 8118 8119# Determine commands to create old-style static archives. 8120old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 8121old_postinstall_cmds='chmod 644 $oldlib' 8122old_postuninstall_cmds= 8123 8124if test -n "$RANLIB"; then 8125 case $host_os in 8126 openbsd*) 8127 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 8128 ;; 8129 *) 8130 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 8131 ;; 8132 esac 8133 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 8134fi 8135 8136for cc_temp in $compiler""; do 8137 case $cc_temp in 8138 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8139 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8140 \-*) ;; 8141 *) break;; 8142 esac 8143done 8144cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8145 8146 8147# Only perform the check for file, if the check method requires it 8148case $deplibs_check_method in 8149file_magic*) 8150 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8151 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 8152echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 8153if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 8154 echo $ECHO_N "(cached) $ECHO_C" >&6 8155else 8156 case $MAGIC_CMD in 8157[\\/*] | ?:[\\/]*) 8158 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8159 ;; 8160*) 8161 lt_save_MAGIC_CMD="$MAGIC_CMD" 8162 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8163 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8164 for ac_dir in $ac_dummy; do 8165 IFS="$lt_save_ifs" 8166 test -z "$ac_dir" && ac_dir=. 8167 if test -f $ac_dir/${ac_tool_prefix}file; then 8168 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8169 if test -n "$file_magic_test_file"; then 8170 case $deplibs_check_method in 8171 "file_magic "*) 8172 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8173 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8174 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8175 $EGREP "$file_magic_regex" > /dev/null; then 8176 : 8177 else 8178 cat <<EOF 1>&2 8179 8180*** Warning: the command libtool uses to detect shared libraries, 8181*** $file_magic_cmd, produces output that libtool cannot recognize. 8182*** The result is that libtool may fail to recognize shared libraries 8183*** as such. This will affect the creation of libtool libraries that 8184*** depend on shared libraries, but programs linked with such libtool 8185*** libraries will work regardless of this problem. Nevertheless, you 8186*** may want to report the problem to your system manager and/or to 8187*** bug-libtool@gnu.org 8188 8189EOF 8190 fi ;; 8191 esac 8192 fi 8193 break 8194 fi 8195 done 8196 IFS="$lt_save_ifs" 8197 MAGIC_CMD="$lt_save_MAGIC_CMD" 8198 ;; 8199esac 8200fi 8201 8202MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8203if test -n "$MAGIC_CMD"; then 8204 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 8205echo "${ECHO_T}$MAGIC_CMD" >&6 8206else 8207 echo "$as_me:$LINENO: result: no" >&5 8208echo "${ECHO_T}no" >&6 8209fi 8210 8211if test -z "$lt_cv_path_MAGIC_CMD"; then 8212 if test -n "$ac_tool_prefix"; then 8213 echo "$as_me:$LINENO: checking for file" >&5 8214echo $ECHO_N "checking for file... $ECHO_C" >&6 8215if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 8216 echo $ECHO_N "(cached) $ECHO_C" >&6 8217else 8218 case $MAGIC_CMD in 8219[\\/*] | ?:[\\/]*) 8220 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8221 ;; 8222*) 8223 lt_save_MAGIC_CMD="$MAGIC_CMD" 8224 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8225 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8226 for ac_dir in $ac_dummy; do 8227 IFS="$lt_save_ifs" 8228 test -z "$ac_dir" && ac_dir=. 8229 if test -f $ac_dir/file; then 8230 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8231 if test -n "$file_magic_test_file"; then 8232 case $deplibs_check_method in 8233 "file_magic "*) 8234 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8235 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8236 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8237 $EGREP "$file_magic_regex" > /dev/null; then 8238 : 8239 else 8240 cat <<EOF 1>&2 8241 8242*** Warning: the command libtool uses to detect shared libraries, 8243*** $file_magic_cmd, produces output that libtool cannot recognize. 8244*** The result is that libtool may fail to recognize shared libraries 8245*** as such. This will affect the creation of libtool libraries that 8246*** depend on shared libraries, but programs linked with such libtool 8247*** libraries will work regardless of this problem. Nevertheless, you 8248*** may want to report the problem to your system manager and/or to 8249*** bug-libtool@gnu.org 8250 8251EOF 8252 fi ;; 8253 esac 8254 fi 8255 break 8256 fi 8257 done 8258 IFS="$lt_save_ifs" 8259 MAGIC_CMD="$lt_save_MAGIC_CMD" 8260 ;; 8261esac 8262fi 8263 8264MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8265if test -n "$MAGIC_CMD"; then 8266 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 8267echo "${ECHO_T}$MAGIC_CMD" >&6 8268else 8269 echo "$as_me:$LINENO: result: no" >&5 8270echo "${ECHO_T}no" >&6 8271fi 8272 8273 else 8274 MAGIC_CMD=: 8275 fi 8276fi 8277 8278 fi 8279 ;; 8280esac 8281 8282enable_dlopen=no 8283enable_win32_dll=no 8284 8285# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 8286if test "${enable_libtool_lock+set}" = set; then 8287 enableval="$enable_libtool_lock" 8288 8289fi; 8290test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 8291 8292 8293# Check whether --with-pic or --without-pic was given. 8294if test "${with_pic+set}" = set; then 8295 withval="$with_pic" 8296 pic_mode="$withval" 8297else 8298 pic_mode=default 8299fi; 8300test -z "$pic_mode" && pic_mode=default 8301 8302# Use C for the default configuration in the libtool script 8303tagname= 8304lt_save_CC="$CC" 8305ac_ext=c 8306ac_cpp='$CPP $CPPFLAGS' 8307ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8308ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8309ac_compiler_gnu=$ac_cv_c_compiler_gnu 8310 8311 8312# Source file extension for C test sources. 8313ac_ext=c 8314 8315# Object file extension for compiled C test sources. 8316objext=o 8317objext=$objext 8318 8319# Code to be used in simple compile tests 8320lt_simple_compile_test_code="int some_variable = 0;\n" 8321 8322# Code to be used in simple link tests 8323lt_simple_link_test_code='int main(){return(0);}\n' 8324 8325 8326# If no C compiler was specified, use CC. 8327LTCC=${LTCC-"$CC"} 8328 8329# If no C compiler flags were specified, use CFLAGS. 8330LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8331 8332# Allow CC to be a program name with arguments. 8333compiler=$CC 8334 8335 8336# save warnings/boilerplate of simple test code 8337ac_outfile=conftest.$ac_objext 8338printf "$lt_simple_compile_test_code" >conftest.$ac_ext 8339eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8340_lt_compiler_boilerplate=`cat conftest.err` 8341$rm conftest* 8342 8343ac_outfile=conftest.$ac_objext 8344printf "$lt_simple_link_test_code" >conftest.$ac_ext 8345eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8346_lt_linker_boilerplate=`cat conftest.err` 8347$rm conftest* 8348 8349 8350## CAVEAT EMPTOR: 8351## There is no encapsulation within the following macros, do not change 8352## the running order or otherwise move them around unless you know exactly 8353## what you are doing... 8354 8355lt_prog_compiler_no_builtin_flag= 8356 8357if test "$GCC" = yes; then 8358 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 8359 8360 8361echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8362echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 8363if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 8364 echo $ECHO_N "(cached) $ECHO_C" >&6 8365else 8366 lt_cv_prog_compiler_rtti_exceptions=no 8367 ac_outfile=conftest.$ac_objext 8368 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8369 lt_compiler_flag="-fno-rtti -fno-exceptions" 8370 # Insert the option either (1) after the last *FLAGS variable, or 8371 # (2) before a word containing "conftest.", or (3) at the end. 8372 # Note that $ac_compile itself does not contain backslashes and begins 8373 # with a dollar sign (not a hyphen), so the echo should work correctly. 8374 # The option is referenced via a variable to avoid confusing sed. 8375 lt_compile=`echo "$ac_compile" | $SED \ 8376 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8377 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8378 -e 's:$: $lt_compiler_flag:'` 8379 (eval echo "\"\$as_me:8379: $lt_compile\"" >&5) 8380 (eval "$lt_compile" 2>conftest.err) 8381 ac_status=$? 8382 cat conftest.err >&5 8383 echo "$as_me:8383: \$? = $ac_status" >&5 8384 if (exit $ac_status) && test -s "$ac_outfile"; then 8385 # The compiler can only warn and ignore the option if not recognized 8386 # So say no if there are warnings other than the usual output. 8387 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8388 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8389 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8390 lt_cv_prog_compiler_rtti_exceptions=yes 8391 fi 8392 fi 8393 $rm conftest* 8394 8395fi 8396echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8397echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 8398 8399if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8400 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8401else 8402 : 8403fi 8404 8405fi 8406 8407lt_prog_compiler_wl= 8408lt_prog_compiler_pic= 8409lt_prog_compiler_static= 8410 8411echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 8412echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 8413 8414 if test "$GCC" = yes; then 8415 lt_prog_compiler_wl='-Wl,' 8416 lt_prog_compiler_static='-static' 8417 8418 case $host_os in 8419 aix*) 8420 # All AIX code is PIC. 8421 if test "$host_cpu" = ia64; then 8422 # AIX 5 now supports IA64 processor 8423 lt_prog_compiler_static='-Bstatic' 8424 fi 8425 ;; 8426 8427 amigaos*) 8428 # FIXME: we need at least 68020 code to build shared libraries, but 8429 # adding the `-m68020' flag to GCC prevents building anything better, 8430 # like `-m68040'. 8431 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8432 ;; 8433 8434 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8435 # PIC is the default for these OSes. 8436 ;; 8437 8438 mingw* | pw32* | os2*) 8439 # This hack is so that the source file can tell whether it is being 8440 # built for inclusion in a dll (and should export symbols for example). 8441 lt_prog_compiler_pic='-DDLL_EXPORT' 8442 ;; 8443 8444 darwin* | rhapsody*) 8445 # PIC is the default on this platform 8446 # Common symbols not allowed in MH_DYLIB files 8447 lt_prog_compiler_pic='-fno-common' 8448 ;; 8449 8450 interix3*) 8451 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8452 # Instead, we relocate shared libraries at runtime. 8453 ;; 8454 8455 msdosdjgpp*) 8456 # Just because we use GCC doesn't mean we suddenly get shared libraries 8457 # on systems that don't support them. 8458 lt_prog_compiler_can_build_shared=no 8459 enable_shared=no 8460 ;; 8461 8462 sysv4*MP*) 8463 if test -d /usr/nec; then 8464 lt_prog_compiler_pic=-Kconform_pic 8465 fi 8466 ;; 8467 8468 hpux*) 8469 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8470 # not for PA HP-UX. 8471 case $host_cpu in 8472 hppa*64*|ia64*) 8473 # +Z the default 8474 ;; 8475 *) 8476 lt_prog_compiler_pic='-fPIC' 8477 ;; 8478 esac 8479 ;; 8480 8481 *) 8482 lt_prog_compiler_pic='-fPIC' 8483 ;; 8484 esac 8485 else 8486 # PORTME Check for flag to pass linker flags through the system compiler. 8487 case $host_os in 8488 aix*) 8489 lt_prog_compiler_wl='-Wl,' 8490 if test "$host_cpu" = ia64; then 8491 # AIX 5 now supports IA64 processor 8492 lt_prog_compiler_static='-Bstatic' 8493 else 8494 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8495 fi 8496 ;; 8497 darwin*) 8498 # PIC is the default on this platform 8499 # Common symbols not allowed in MH_DYLIB files 8500 case $cc_basename in 8501 xlc*) 8502 lt_prog_compiler_pic='-qnocommon' 8503 lt_prog_compiler_wl='-Wl,' 8504 ;; 8505 esac 8506 ;; 8507 8508 mingw* | pw32* | os2*) 8509 # This hack is so that the source file can tell whether it is being 8510 # built for inclusion in a dll (and should export symbols for example). 8511 lt_prog_compiler_pic='-DDLL_EXPORT' 8512 ;; 8513 8514 hpux9* | hpux10* | hpux11*) 8515 lt_prog_compiler_wl='-Wl,' 8516 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8517 # not for PA HP-UX. 8518 case $host_cpu in 8519 hppa*64*|ia64*) 8520 # +Z the default 8521 ;; 8522 *) 8523 lt_prog_compiler_pic='+Z' 8524 ;; 8525 esac 8526 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8527 lt_prog_compiler_static='${wl}-a ${wl}archive' 8528 ;; 8529 8530 irix5* | irix6* | nonstopux*) 8531 lt_prog_compiler_wl='-Wl,' 8532 # PIC (with -KPIC) is the default. 8533 lt_prog_compiler_static='-non_shared' 8534 ;; 8535 8536 newsos6) 8537 lt_prog_compiler_pic='-KPIC' 8538 lt_prog_compiler_static='-Bstatic' 8539 ;; 8540 8541 linux*) 8542 case $cc_basename in 8543 icc* | ecc*) 8544 lt_prog_compiler_wl='-Wl,' 8545 lt_prog_compiler_pic='-KPIC' 8546 lt_prog_compiler_static='-static' 8547 ;; 8548 pgcc* | pgf77* | pgf90* | pgf95*) 8549 # Portland Group compilers (*not* the Pentium gcc compiler, 8550 # which looks to be a dead project) 8551 lt_prog_compiler_wl='-Wl,' 8552 lt_prog_compiler_pic='-fpic' 8553 lt_prog_compiler_static='-Bstatic' 8554 ;; 8555 ccc*) 8556 lt_prog_compiler_wl='-Wl,' 8557 # All Alpha code is PIC. 8558 lt_prog_compiler_static='-non_shared' 8559 ;; 8560 esac 8561 ;; 8562 8563 osf3* | osf4* | osf5*) 8564 lt_prog_compiler_wl='-Wl,' 8565 # All OSF/1 code is PIC. 8566 lt_prog_compiler_static='-non_shared' 8567 ;; 8568 8569 solaris*) 8570 lt_prog_compiler_pic='-KPIC' 8571 lt_prog_compiler_static='-Bstatic' 8572 case $cc_basename in 8573 f77* | f90* | f95*) 8574 lt_prog_compiler_wl='-Qoption ld ';; 8575 *) 8576 lt_prog_compiler_wl='-Wl,';; 8577 esac 8578 ;; 8579 8580 sunos4*) 8581 lt_prog_compiler_wl='-Qoption ld ' 8582 lt_prog_compiler_pic='-PIC' 8583 lt_prog_compiler_static='-Bstatic' 8584 ;; 8585 8586 sysv4 | sysv4.2uw2* | sysv4.3*) 8587 lt_prog_compiler_wl='-Wl,' 8588 lt_prog_compiler_pic='-KPIC' 8589 lt_prog_compiler_static='-Bstatic' 8590 ;; 8591 8592 sysv4*MP*) 8593 if test -d /usr/nec ;then 8594 lt_prog_compiler_pic='-Kconform_pic' 8595 lt_prog_compiler_static='-Bstatic' 8596 fi 8597 ;; 8598 8599 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8600 lt_prog_compiler_wl='-Wl,' 8601 lt_prog_compiler_pic='-KPIC' 8602 lt_prog_compiler_static='-Bstatic' 8603 ;; 8604 8605 unicos*) 8606 lt_prog_compiler_wl='-Wl,' 8607 lt_prog_compiler_can_build_shared=no 8608 ;; 8609 8610 uts4*) 8611 lt_prog_compiler_pic='-pic' 8612 lt_prog_compiler_static='-Bstatic' 8613 ;; 8614 8615 *) 8616 lt_prog_compiler_can_build_shared=no 8617 ;; 8618 esac 8619 fi 8620 8621echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 8622echo "${ECHO_T}$lt_prog_compiler_pic" >&6 8623 8624# 8625# Check to make sure the PIC flag actually works. 8626# 8627if test -n "$lt_prog_compiler_pic"; then 8628 8629echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8630echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 8631if test "${lt_prog_compiler_pic_works+set}" = set; then 8632 echo $ECHO_N "(cached) $ECHO_C" >&6 8633else 8634 lt_prog_compiler_pic_works=no 8635 ac_outfile=conftest.$ac_objext 8636 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8637 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8638 # Insert the option either (1) after the last *FLAGS variable, or 8639 # (2) before a word containing "conftest.", or (3) at the end. 8640 # Note that $ac_compile itself does not contain backslashes and begins 8641 # with a dollar sign (not a hyphen), so the echo should work correctly. 8642 # The option is referenced via a variable to avoid confusing sed. 8643 lt_compile=`echo "$ac_compile" | $SED \ 8644 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8645 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8646 -e 's:$: $lt_compiler_flag:'` 8647 (eval echo "\"\$as_me:8647: $lt_compile\"" >&5) 8648 (eval "$lt_compile" 2>conftest.err) 8649 ac_status=$? 8650 cat conftest.err >&5 8651 echo "$as_me:8651: \$? = $ac_status" >&5 8652 if (exit $ac_status) && test -s "$ac_outfile"; then 8653 # The compiler can only warn and ignore the option if not recognized 8654 # So say no if there are warnings other than the usual output. 8655 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8656 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8657 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8658 lt_prog_compiler_pic_works=yes 8659 fi 8660 fi 8661 $rm conftest* 8662 8663fi 8664echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 8665echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 8666 8667if test x"$lt_prog_compiler_pic_works" = xyes; then 8668 case $lt_prog_compiler_pic in 8669 "" | " "*) ;; 8670 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8671 esac 8672else 8673 lt_prog_compiler_pic= 8674 lt_prog_compiler_can_build_shared=no 8675fi 8676 8677fi 8678case $host_os in 8679 # For platforms which do not support PIC, -DPIC is meaningless: 8680 *djgpp*) 8681 lt_prog_compiler_pic= 8682 ;; 8683 *) 8684 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8685 ;; 8686esac 8687 8688# 8689# Check to make sure the static flag actually works. 8690# 8691wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8692echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8693echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 8694if test "${lt_prog_compiler_static_works+set}" = set; then 8695 echo $ECHO_N "(cached) $ECHO_C" >&6 8696else 8697 lt_prog_compiler_static_works=no 8698 save_LDFLAGS="$LDFLAGS" 8699 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8700 printf "$lt_simple_link_test_code" > conftest.$ac_ext 8701 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8702 # The linker can only warn and ignore the option if not recognized 8703 # So say no if there are warnings 8704 if test -s conftest.err; then 8705 # Append any errors to the config.log. 8706 cat conftest.err 1>&5 8707 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 8708 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8709 if diff conftest.exp conftest.er2 >/dev/null; then 8710 lt_prog_compiler_static_works=yes 8711 fi 8712 else 8713 lt_prog_compiler_static_works=yes 8714 fi 8715 fi 8716 $rm conftest* 8717 LDFLAGS="$save_LDFLAGS" 8718 8719fi 8720echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 8721echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 8722 8723if test x"$lt_prog_compiler_static_works" = xyes; then 8724 : 8725else 8726 lt_prog_compiler_static= 8727fi 8728 8729 8730echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 8731echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 8732if test "${lt_cv_prog_compiler_c_o+set}" = set; then 8733 echo $ECHO_N "(cached) $ECHO_C" >&6 8734else 8735 lt_cv_prog_compiler_c_o=no 8736 $rm -r conftest 2>/dev/null 8737 mkdir conftest 8738 cd conftest 8739 mkdir out 8740 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8741 8742 lt_compiler_flag="-o out/conftest2.$ac_objext" 8743 # Insert the option either (1) after the last *FLAGS variable, or 8744 # (2) before a word containing "conftest.", or (3) at the end. 8745 # Note that $ac_compile itself does not contain backslashes and begins 8746 # with a dollar sign (not a hyphen), so the echo should work correctly. 8747 lt_compile=`echo "$ac_compile" | $SED \ 8748 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8749 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8750 -e 's:$: $lt_compiler_flag:'` 8751 (eval echo "\"\$as_me:8751: $lt_compile\"" >&5) 8752 (eval "$lt_compile" 2>out/conftest.err) 8753 ac_status=$? 8754 cat out/conftest.err >&5 8755 echo "$as_me:8755: \$? = $ac_status" >&5 8756 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8757 then 8758 # The compiler can only warn and ignore the option if not recognized 8759 # So say no if there are warnings 8760 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8761 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8762 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8763 lt_cv_prog_compiler_c_o=yes 8764 fi 8765 fi 8766 chmod u+w . 2>&5 8767 $rm conftest* 8768 # SGI C++ compiler will create directory out/ii_files/ for 8769 # template instantiation 8770 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 8771 $rm out/* && rmdir out 8772 cd .. 8773 rmdir conftest 8774 $rm conftest* 8775 8776fi 8777echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 8778echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 8779 8780 8781hard_links="nottested" 8782if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8783 # do not overwrite the value of need_locks provided by the user 8784 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 8785echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 8786 hard_links=yes 8787 $rm conftest* 8788 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8789 touch conftest.a 8790 ln conftest.a conftest.b 2>&5 || hard_links=no 8791 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8792 echo "$as_me:$LINENO: result: $hard_links" >&5 8793echo "${ECHO_T}$hard_links" >&6 8794 if test "$hard_links" = no; then 8795 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8796echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8797 need_locks=warn 8798 fi 8799else 8800 need_locks=no 8801fi 8802 8803echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8804echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 8805 8806 runpath_var= 8807 allow_undefined_flag= 8808 enable_shared_with_static_runtimes=no 8809 archive_cmds= 8810 archive_expsym_cmds= 8811 old_archive_From_new_cmds= 8812 old_archive_from_expsyms_cmds= 8813 export_dynamic_flag_spec= 8814 whole_archive_flag_spec= 8815 thread_safe_flag_spec= 8816 hardcode_libdir_flag_spec= 8817 hardcode_libdir_flag_spec_ld= 8818 hardcode_libdir_separator= 8819 hardcode_direct=no 8820 hardcode_minus_L=no 8821 hardcode_shlibpath_var=unsupported 8822 link_all_deplibs=unknown 8823 hardcode_automatic=no 8824 module_cmds= 8825 module_expsym_cmds= 8826 always_export_symbols=no 8827 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8828 # include_expsyms should be a list of space-separated symbols to be *always* 8829 # included in the symbol list 8830 include_expsyms= 8831 # exclude_expsyms can be an extended regexp of symbols to exclude 8832 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8833 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8834 # as well as any symbol that contains `d'. 8835 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 8836 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8837 # platforms (ab)use it in PIC code, but their linkers get confused if 8838 # the symbol is explicitly referenced. Since portable code cannot 8839 # rely on this symbol name, it's probably fine to never include it in 8840 # preloaded symbol tables. 8841 extract_expsyms_cmds= 8842 # Just being paranoid about ensuring that cc_basename is set. 8843 for cc_temp in $compiler""; do 8844 case $cc_temp in 8845 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8846 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8847 \-*) ;; 8848 *) break;; 8849 esac 8850done 8851cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8852 8853 case $host_os in 8854 cygwin* | mingw* | pw32*) 8855 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8856 # When not using gcc, we currently assume that we are using 8857 # Microsoft Visual C++. 8858 if test "$GCC" != yes; then 8859 with_gnu_ld=no 8860 fi 8861 ;; 8862 interix*) 8863 # we just hope/assume this is gcc and not c89 (= MSVC++) 8864 with_gnu_ld=yes 8865 ;; 8866 openbsd*) 8867 with_gnu_ld=no 8868 ;; 8869 esac 8870 8871 ld_shlibs=yes 8872 if test "$with_gnu_ld" = yes; then 8873 # If archive_cmds runs LD, not CC, wlarc should be empty 8874 wlarc='${wl}' 8875 8876 # Set some defaults for GNU ld with shared library support. These 8877 # are reset later if shared libraries are not supported. Putting them 8878 # here allows them to be overridden if necessary. 8879 runpath_var=LD_RUN_PATH 8880 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 8881 export_dynamic_flag_spec='${wl}--export-dynamic' 8882 # ancient GNU ld didn't support --whole-archive et. al. 8883 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 8884 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8885 else 8886 whole_archive_flag_spec= 8887 fi 8888 supports_anon_versioning=no 8889 case `$LD -v 2>/dev/null` in 8890 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8891 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8892 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8893 *\ 2.11.*) ;; # other 2.11 versions 8894 *) supports_anon_versioning=yes ;; 8895 esac 8896 8897 # See if GNU ld supports shared libraries. 8898 case $host_os in 8899 aix3* | aix4* | aix5*) 8900 # On AIX/PPC, the GNU linker is very broken 8901 if test "$host_cpu" != ia64; then 8902 ld_shlibs=no 8903 cat <<EOF 1>&2 8904 8905*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8906*** to be unable to reliably create shared libraries on AIX. 8907*** Therefore, libtool is disabling shared libraries support. If you 8908*** really care for shared libraries, you may want to modify your PATH 8909*** so that a non-GNU linker is found, and then restart. 8910 8911EOF 8912 fi 8913 ;; 8914 8915 amigaos*) 8916 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)' 8917 hardcode_libdir_flag_spec='-L$libdir' 8918 hardcode_minus_L=yes 8919 8920 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 8921 # that the semantics of dynamic libraries on AmigaOS, at least up 8922 # to version 4, is to share data among multiple programs linked 8923 # with the same dynamic library. Since this doesn't match the 8924 # behavior of shared libraries on other platforms, we can't use 8925 # them. 8926 ld_shlibs=no 8927 ;; 8928 8929 beos*) 8930 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8931 allow_undefined_flag=unsupported 8932 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8933 # support --undefined. This deserves some investigation. FIXME 8934 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8935 else 8936 ld_shlibs=no 8937 fi 8938 ;; 8939 8940 cygwin* | mingw* | pw32*) 8941 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8942 # as there is no search path for DLLs. 8943 hardcode_libdir_flag_spec='-L$libdir' 8944 allow_undefined_flag=unsupported 8945 always_export_symbols=no 8946 enable_shared_with_static_runtimes=yes 8947 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 8948 8949 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 8950 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8951 # If the export-symbols file already is a .def file (1st line 8952 # is EXPORTS), use it as is; otherwise, prepend... 8953 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8954 cp $export_symbols $output_objdir/$soname.def; 8955 else 8956 echo EXPORTS > $output_objdir/$soname.def; 8957 cat $export_symbols >> $output_objdir/$soname.def; 8958 fi~ 8959 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8960 else 8961 ld_shlibs=no 8962 fi 8963 ;; 8964 8965 interix3*) 8966 hardcode_direct=no 8967 hardcode_shlibpath_var=no 8968 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8969 export_dynamic_flag_spec='${wl}-E' 8970 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8971 # Instead, shared libraries are loaded at an image base (0x10000000 by 8972 # default) and relocated if they conflict, which is a slow very memory 8973 # consuming and fragmenting process. To avoid this, we pick a random, 8974 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8975 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8976 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8977 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' 8978 ;; 8979 8980 linux*) 8981 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8982 tmp_addflag= 8983 case $cc_basename,$host_cpu in 8984 pgcc*) # Portland Group C compiler 8985 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' 8986 tmp_addflag=' $pic_flag' 8987 ;; 8988 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8989 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' 8990 tmp_addflag=' $pic_flag -Mnomain' ;; 8991 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8992 tmp_addflag=' -i_dynamic' ;; 8993 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8994 tmp_addflag=' -i_dynamic -nofor_main' ;; 8995 ifc* | ifort*) # Intel Fortran compiler 8996 tmp_addflag=' -nofor_main' ;; 8997 esac 8998 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8999 9000 if test $supports_anon_versioning = yes; then 9001 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 9002 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9003 $echo "local: *; };" >> $output_objdir/$libname.ver~ 9004 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9005 fi 9006 else 9007 ld_shlibs=no 9008 fi 9009 ;; 9010 9011 netbsd*) 9012 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9013 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9014 wlarc= 9015 else 9016 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9017 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9018 fi 9019 ;; 9020 9021 solaris*) 9022 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 9023 ld_shlibs=no 9024 cat <<EOF 1>&2 9025 9026*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9027*** create shared libraries on Solaris systems. Therefore, libtool 9028*** is disabling shared libraries support. We urge you to upgrade GNU 9029*** binutils to release 2.9.1 or newer. Another option is to modify 9030*** your PATH or compiler configuration so that the native linker is 9031*** used, and then restart. 9032 9033EOF 9034 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 9035 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9036 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9037 else 9038 ld_shlibs=no 9039 fi 9040 ;; 9041 9042 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9043 case `$LD -v 2>&1` in 9044 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9045 ld_shlibs=no 9046 cat <<_LT_EOF 1>&2 9047 9048*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9049*** reliably create shared libraries on SCO systems. Therefore, libtool 9050*** is disabling shared libraries support. We urge you to upgrade GNU 9051*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9052*** your PATH or compiler configuration so that the native linker is 9053*** used, and then restart. 9054 9055_LT_EOF 9056 ;; 9057 *) 9058 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 9059 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 9060 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 9061 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 9062 else 9063 ld_shlibs=no 9064 fi 9065 ;; 9066 esac 9067 ;; 9068 9069 sunos4*) 9070 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9071 wlarc= 9072 hardcode_direct=yes 9073 hardcode_shlibpath_var=no 9074 ;; 9075 9076 *) 9077 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 9078 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9079 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9080 else 9081 ld_shlibs=no 9082 fi 9083 ;; 9084 esac 9085 9086 if test "$ld_shlibs" = no; then 9087 runpath_var= 9088 hardcode_libdir_flag_spec= 9089 export_dynamic_flag_spec= 9090 whole_archive_flag_spec= 9091 fi 9092 else 9093 # PORTME fill in a description of your system's linker (not GNU ld) 9094 case $host_os in 9095 aix3*) 9096 allow_undefined_flag=unsupported 9097 always_export_symbols=yes 9098 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' 9099 # Note: this linker hardcodes the directories in LIBPATH if there 9100 # are no directories specified by -L. 9101 hardcode_minus_L=yes 9102 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9103 # Neither direct hardcoding nor static linking is supported with a 9104 # broken collect2. 9105 hardcode_direct=unsupported 9106 fi 9107 ;; 9108 9109 aix4* | aix5*) 9110 if test "$host_cpu" = ia64; then 9111 # On IA64, the linker does run time linking by default, so we don't 9112 # have to do anything special. 9113 aix_use_runtimelinking=no 9114 exp_sym_flag='-Bexport' 9115 no_entry_flag="" 9116 else 9117 # If we're using GNU nm, then we don't want the "-C" option. 9118 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9119 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 9120 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' 9121 else 9122 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' 9123 fi 9124 aix_use_runtimelinking=no 9125 9126 # Test if we are trying to use run time linking or normal 9127 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9128 # need to do runtime linking. 9129 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 9130 for ld_flag in $LDFLAGS; do 9131 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9132 aix_use_runtimelinking=yes 9133 break 9134 fi 9135 done 9136 ;; 9137 esac 9138 9139 exp_sym_flag='-bexport' 9140 no_entry_flag='-bnoentry' 9141 fi 9142 9143 # When large executables or shared objects are built, AIX ld can 9144 # have problems creating the table of contents. If linking a library 9145 # or program results in "error TOC overflow" add -mminimal-toc to 9146 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9147 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9148 9149 archive_cmds='' 9150 hardcode_direct=yes 9151 hardcode_libdir_separator=':' 9152 link_all_deplibs=yes 9153 9154 if test "$GCC" = yes; then 9155 case $host_os in aix4.[012]|aix4.[012].*) 9156 # We only want to do this on AIX 4.2 and lower, the check 9157 # below for broken collect2 doesn't work under 4.3+ 9158 collect2name=`${CC} -print-prog-name=collect2` 9159 if test -f "$collect2name" && \ 9160 strings "$collect2name" | grep resolve_lib_name >/dev/null 9161 then 9162 # We have reworked collect2 9163 hardcode_direct=yes 9164 else 9165 # We have old collect2 9166 hardcode_direct=unsupported 9167 # It fails to find uninstalled libraries when the uninstalled 9168 # path is not listed in the libpath. Setting hardcode_minus_L 9169 # to unsupported forces relinking 9170 hardcode_minus_L=yes 9171 hardcode_libdir_flag_spec='-L$libdir' 9172 hardcode_libdir_separator= 9173 fi 9174 ;; 9175 esac 9176 shared_flag='-shared' 9177 if test "$aix_use_runtimelinking" = yes; then 9178 shared_flag="$shared_flag "'${wl}-G' 9179 fi 9180 else 9181 # not using gcc 9182 if test "$host_cpu" = ia64; then 9183 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9184 # chokes on -Wl,-G. The following line is correct: 9185 shared_flag='-G' 9186 else 9187 if test "$aix_use_runtimelinking" = yes; then 9188 shared_flag='${wl}-G' 9189 else 9190 shared_flag='${wl}-bM:SRE' 9191 fi 9192 fi 9193 fi 9194 9195 # It seems that -bexpall does not export symbols beginning with 9196 # underscore (_), so it is better to generate a list of symbols to export. 9197 always_export_symbols=yes 9198 if test "$aix_use_runtimelinking" = yes; then 9199 # Warning - without using the other runtime loading flags (-brtl), 9200 # -berok will link without error, but may produce a broken library. 9201 allow_undefined_flag='-berok' 9202 # Determine the default libpath from the value encoded in an empty executable. 9203 cat >conftest.$ac_ext <<_ACEOF 9204/* confdefs.h. */ 9205_ACEOF 9206cat confdefs.h >>conftest.$ac_ext 9207cat >>conftest.$ac_ext <<_ACEOF 9208/* end confdefs.h. */ 9209 9210int 9211main () 9212{ 9213 9214 ; 9215 return 0; 9216} 9217_ACEOF 9218rm -f conftest.$ac_objext conftest$ac_exeext 9219if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9220 (eval $ac_link) 2>conftest.er1 9221 ac_status=$? 9222 grep -v '^ *+' conftest.er1 >conftest.err 9223 rm -f conftest.er1 9224 cat conftest.err >&5 9225 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9226 (exit $ac_status); } && 9227 { ac_try='test -z "$ac_c_werror_flag" 9228 || test ! -s conftest.err' 9229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9230 (eval $ac_try) 2>&5 9231 ac_status=$? 9232 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9233 (exit $ac_status); }; } && 9234 { ac_try='test -s conftest$ac_exeext' 9235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9236 (eval $ac_try) 2>&5 9237 ac_status=$? 9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9239 (exit $ac_status); }; }; then 9240 9241aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 9242}'` 9243# Check for a 64-bit object if we didn't find anything. 9244if 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; } 9245}'`; fi 9246else 9247 echo "$as_me: failed program was:" >&5 9248sed 's/^/| /' conftest.$ac_ext >&5 9249 9250fi 9251rm -f conftest.err conftest.$ac_objext \ 9252 conftest$ac_exeext conftest.$ac_ext 9253if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9254 9255 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9256 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" 9257 else 9258 if test "$host_cpu" = ia64; then 9259 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9260 allow_undefined_flag="-z nodefs" 9261 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" 9262 else 9263 # Determine the default libpath from the value encoded in an empty executable. 9264 cat >conftest.$ac_ext <<_ACEOF 9265/* confdefs.h. */ 9266_ACEOF 9267cat confdefs.h >>conftest.$ac_ext 9268cat >>conftest.$ac_ext <<_ACEOF 9269/* end confdefs.h. */ 9270 9271int 9272main () 9273{ 9274 9275 ; 9276 return 0; 9277} 9278_ACEOF 9279rm -f conftest.$ac_objext conftest$ac_exeext 9280if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9281 (eval $ac_link) 2>conftest.er1 9282 ac_status=$? 9283 grep -v '^ *+' conftest.er1 >conftest.err 9284 rm -f conftest.er1 9285 cat conftest.err >&5 9286 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9287 (exit $ac_status); } && 9288 { ac_try='test -z "$ac_c_werror_flag" 9289 || test ! -s conftest.err' 9290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9291 (eval $ac_try) 2>&5 9292 ac_status=$? 9293 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9294 (exit $ac_status); }; } && 9295 { ac_try='test -s conftest$ac_exeext' 9296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9297 (eval $ac_try) 2>&5 9298 ac_status=$? 9299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9300 (exit $ac_status); }; }; then 9301 9302aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 9303}'` 9304# Check for a 64-bit object if we didn't find anything. 9305if 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; } 9306}'`; fi 9307else 9308 echo "$as_me: failed program was:" >&5 9309sed 's/^/| /' conftest.$ac_ext >&5 9310 9311fi 9312rm -f conftest.err conftest.$ac_objext \ 9313 conftest$ac_exeext conftest.$ac_ext 9314if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9315 9316 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9317 # Warning - without using the other run time loading flags, 9318 # -berok will link without error, but may produce a broken library. 9319 no_undefined_flag=' ${wl}-bernotok' 9320 allow_undefined_flag=' ${wl}-berok' 9321 # Exported symbols can be pulled into shared objects from archives 9322 whole_archive_flag_spec='$convenience' 9323 archive_cmds_need_lc=yes 9324 # This is similar to how AIX traditionally builds its shared libraries. 9325 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' 9326 fi 9327 fi 9328 ;; 9329 9330 amigaos*) 9331 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)' 9332 hardcode_libdir_flag_spec='-L$libdir' 9333 hardcode_minus_L=yes 9334 # see comment about different semantics on the GNU ld section 9335 ld_shlibs=no 9336 ;; 9337 9338 bsdi[45]*) 9339 export_dynamic_flag_spec=-rdynamic 9340 ;; 9341 9342 cygwin* | mingw* | pw32*) 9343 # When not using gcc, we currently assume that we are using 9344 # Microsoft Visual C++. 9345 # hardcode_libdir_flag_spec is actually meaningless, as there is 9346 # no search path for DLLs. 9347 hardcode_libdir_flag_spec=' ' 9348 allow_undefined_flag=unsupported 9349 # Tell ltmain to make .lib files, not .a files. 9350 libext=lib 9351 # Tell ltmain to make .dll files, not .so files. 9352 shrext_cmds=".dll" 9353 # FIXME: Setting linknames here is a bad hack. 9354 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 9355 # The linker will automatically build a .lib file if we build a DLL. 9356 old_archive_From_new_cmds='true' 9357 # FIXME: Should let the user specify the lib program. 9358 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 9359 fix_srcfile_path='`cygpath -w "$srcfile"`' 9360 enable_shared_with_static_runtimes=yes 9361 ;; 9362 9363 darwin* | rhapsody*) 9364 case $host_os in 9365 rhapsody* | darwin1.[012]) 9366 allow_undefined_flag='${wl}-undefined ${wl}suppress' 9367 ;; 9368 *) # Darwin 1.3 on 9369 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 9370 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 9371 else 9372 case ${MACOSX_DEPLOYMENT_TARGET} in 9373 10.[012]) 9374 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 9375 ;; 9376 10.*) 9377 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 9378 ;; 9379 esac 9380 fi 9381 ;; 9382 esac 9383 archive_cmds_need_lc=no 9384 hardcode_direct=no 9385 hardcode_automatic=yes 9386 hardcode_shlibpath_var=unsupported 9387 whole_archive_flag_spec='' 9388 link_all_deplibs=yes 9389 if test "$GCC" = yes ; then 9390 output_verbose_link_cmd='echo' 9391 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 9392 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 9393 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 9394 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}' 9395 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}' 9396 else 9397 case $cc_basename in 9398 xlc*) 9399 output_verbose_link_cmd='echo' 9400 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 9401 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 9402 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 9403 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}' 9404 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}' 9405 ;; 9406 *) 9407 ld_shlibs=no 9408 ;; 9409 esac 9410 fi 9411 ;; 9412 9413 dgux*) 9414 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9415 hardcode_libdir_flag_spec='-L$libdir' 9416 hardcode_shlibpath_var=no 9417 ;; 9418 9419 freebsd1*) 9420 ld_shlibs=no 9421 ;; 9422 9423 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9424 # support. Future versions do this automatically, but an explicit c++rt0.o 9425 # does not break anything, and helps significantly (at the cost of a little 9426 # extra space). 9427 freebsd2.2*) 9428 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9429 hardcode_libdir_flag_spec='-R$libdir' 9430 hardcode_direct=yes 9431 hardcode_shlibpath_var=no 9432 ;; 9433 9434 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9435 freebsd2*) 9436 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9437 hardcode_direct=yes 9438 hardcode_minus_L=yes 9439 hardcode_shlibpath_var=no 9440 ;; 9441 9442 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9443 freebsd* | kfreebsd*-gnu | dragonfly*) 9444 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9445 hardcode_libdir_flag_spec='-R$libdir' 9446 hardcode_direct=yes 9447 hardcode_shlibpath_var=no 9448 ;; 9449 9450 hpux9*) 9451 if test "$GCC" = yes; then 9452 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' 9453 else 9454 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' 9455 fi 9456 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9457 hardcode_libdir_separator=: 9458 hardcode_direct=yes 9459 9460 # hardcode_minus_L: Not really in the search PATH, 9461 # but as the default location of the library. 9462 hardcode_minus_L=yes 9463 export_dynamic_flag_spec='${wl}-E' 9464 ;; 9465 9466 hpux10*) 9467 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9468 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9469 else 9470 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9471 fi 9472 if test "$with_gnu_ld" = no; then 9473 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9474 hardcode_libdir_separator=: 9475 9476 hardcode_direct=yes 9477 export_dynamic_flag_spec='${wl}-E' 9478 9479 # hardcode_minus_L: Not really in the search PATH, 9480 # but as the default location of the library. 9481 hardcode_minus_L=yes 9482 fi 9483 ;; 9484 9485 hpux11*) 9486 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9487 case $host_cpu in 9488 hppa*64*) 9489 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9490 ;; 9491 ia64*) 9492 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9493 ;; 9494 *) 9495 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9496 ;; 9497 esac 9498 else 9499 case $host_cpu in 9500 hppa*64*) 9501 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9502 ;; 9503 ia64*) 9504 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9505 ;; 9506 *) 9507 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9508 ;; 9509 esac 9510 fi 9511 if test "$with_gnu_ld" = no; then 9512 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9513 hardcode_libdir_separator=: 9514 9515 case $host_cpu in 9516 hppa*64*|ia64*) 9517 hardcode_libdir_flag_spec_ld='+b $libdir' 9518 hardcode_direct=no 9519 hardcode_shlibpath_var=no 9520 ;; 9521 *) 9522 hardcode_direct=yes 9523 export_dynamic_flag_spec='${wl}-E' 9524 9525 # hardcode_minus_L: Not really in the search PATH, 9526 # but as the default location of the library. 9527 hardcode_minus_L=yes 9528 ;; 9529 esac 9530 fi 9531 ;; 9532 9533 irix5* | irix6* | nonstopux*) 9534 if test "$GCC" = yes; then 9535 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' 9536 else 9537 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' 9538 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9539 fi 9540 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9541 hardcode_libdir_separator=: 9542 link_all_deplibs=yes 9543 ;; 9544 9545 netbsd*) 9546 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9547 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9548 else 9549 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9550 fi 9551 hardcode_libdir_flag_spec='-R$libdir' 9552 hardcode_direct=yes 9553 hardcode_shlibpath_var=no 9554 ;; 9555 9556 newsos6) 9557 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9558 hardcode_direct=yes 9559 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9560 hardcode_libdir_separator=: 9561 hardcode_shlibpath_var=no 9562 ;; 9563 9564 openbsd*) 9565 hardcode_direct=yes 9566 hardcode_shlibpath_var=no 9567 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9568 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9569 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9570 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9571 export_dynamic_flag_spec='${wl}-E' 9572 else 9573 case $host_os in 9574 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9575 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9576 hardcode_libdir_flag_spec='-R$libdir' 9577 ;; 9578 *) 9579 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9580 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9581 ;; 9582 esac 9583 fi 9584 ;; 9585 9586 os2*) 9587 hardcode_libdir_flag_spec='-L$libdir' 9588 hardcode_minus_L=yes 9589 allow_undefined_flag=unsupported 9590 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' 9591 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9592 ;; 9593 9594 osf3*) 9595 if test "$GCC" = yes; then 9596 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9597 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' 9598 else 9599 allow_undefined_flag=' -expect_unresolved \*' 9600 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' 9601 fi 9602 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9603 hardcode_libdir_separator=: 9604 ;; 9605 9606 osf4* | osf5*) # as osf3* with the addition of -msym flag 9607 if test "$GCC" = yes; then 9608 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9609 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' 9610 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9611 else 9612 allow_undefined_flag=' -expect_unresolved \*' 9613 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' 9614 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 9615 $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' 9616 9617 # Both c and cxx compiler support -rpath directly 9618 hardcode_libdir_flag_spec='-rpath $libdir' 9619 fi 9620 hardcode_libdir_separator=: 9621 ;; 9622 9623 solaris*) 9624 no_undefined_flag=' -z text' 9625 if test "$GCC" = yes; then 9626 wlarc='${wl}' 9627 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9628 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 9629 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 9630 else 9631 wlarc='' 9632 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9633 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 9634 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 9635 fi 9636 hardcode_libdir_flag_spec='-R$libdir' 9637 hardcode_shlibpath_var=no 9638 case $host_os in 9639 solaris2.[0-5] | solaris2.[0-5].*) ;; 9640 *) 9641 # The compiler driver will combine linker options so we 9642 # cannot just pass the convience library names through 9643 # without $wl, iff we do not link with $LD. 9644 # Luckily, gcc supports the same syntax we need for Sun Studio. 9645 # Supported since Solaris 2.6 (maybe 2.5.1?) 9646 case $wlarc in 9647 '') 9648 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 9649 *) 9650 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' ;; 9651 esac ;; 9652 esac 9653 link_all_deplibs=yes 9654 ;; 9655 9656 sunos4*) 9657 if test "x$host_vendor" = xsequent; then 9658 # Use $CC to link under sequent, because it throws in some extra .o 9659 # files that make .init and .fini sections work. 9660 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9661 else 9662 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9663 fi 9664 hardcode_libdir_flag_spec='-L$libdir' 9665 hardcode_direct=yes 9666 hardcode_minus_L=yes 9667 hardcode_shlibpath_var=no 9668 ;; 9669 9670 sysv4) 9671 case $host_vendor in 9672 sni) 9673 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9674 hardcode_direct=yes # is this really true??? 9675 ;; 9676 siemens) 9677 ## LD is ld it makes a PLAMLIB 9678 ## CC just makes a GrossModule. 9679 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9680 reload_cmds='$CC -r -o $output$reload_objs' 9681 hardcode_direct=no 9682 ;; 9683 motorola) 9684 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9685 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9686 ;; 9687 esac 9688 runpath_var='LD_RUN_PATH' 9689 hardcode_shlibpath_var=no 9690 ;; 9691 9692 sysv4.3*) 9693 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9694 hardcode_shlibpath_var=no 9695 export_dynamic_flag_spec='-Bexport' 9696 ;; 9697 9698 sysv4*MP*) 9699 if test -d /usr/nec; then 9700 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9701 hardcode_shlibpath_var=no 9702 runpath_var=LD_RUN_PATH 9703 hardcode_runpath_var=yes 9704 ld_shlibs=yes 9705 fi 9706 ;; 9707 9708 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 9709 no_undefined_flag='${wl}-z,text' 9710 archive_cmds_need_lc=no 9711 hardcode_shlibpath_var=no 9712 runpath_var='LD_RUN_PATH' 9713 9714 if test "$GCC" = yes; then 9715 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9716 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9717 else 9718 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9719 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9720 fi 9721 ;; 9722 9723 sysv5* | sco3.2v5* | sco5v6*) 9724 # Note: We can NOT use -z defs as we might desire, because we do not 9725 # link with -lc, and that would cause any symbols used from libc to 9726 # always be unresolved, which means just about no library would 9727 # ever link correctly. If we're not using GNU ld we use -z text 9728 # though, which does catch some bad symbols but isn't as heavy-handed 9729 # as -z defs. 9730 no_undefined_flag='${wl}-z,text' 9731 allow_undefined_flag='${wl}-z,nodefs' 9732 archive_cmds_need_lc=no 9733 hardcode_shlibpath_var=no 9734 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 9735 hardcode_libdir_separator=':' 9736 link_all_deplibs=yes 9737 export_dynamic_flag_spec='${wl}-Bexport' 9738 runpath_var='LD_RUN_PATH' 9739 9740 if test "$GCC" = yes; then 9741 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9742 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9743 else 9744 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9745 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9746 fi 9747 ;; 9748 9749 uts4*) 9750 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9751 hardcode_libdir_flag_spec='-L$libdir' 9752 hardcode_shlibpath_var=no 9753 ;; 9754 9755 *) 9756 ld_shlibs=no 9757 ;; 9758 esac 9759 fi 9760 9761echo "$as_me:$LINENO: result: $ld_shlibs" >&5 9762echo "${ECHO_T}$ld_shlibs" >&6 9763test "$ld_shlibs" = no && can_build_shared=no 9764 9765# 9766# Do we need to explicitly link libc? 9767# 9768case "x$archive_cmds_need_lc" in 9769x|xyes) 9770 # Assume -lc should be added 9771 archive_cmds_need_lc=yes 9772 9773 if test "$enable_shared" = yes && test "$GCC" = yes; then 9774 case $archive_cmds in 9775 *'~'*) 9776 # FIXME: we may have to deal with multi-command sequences. 9777 ;; 9778 '$CC '*) 9779 # Test whether the compiler implicitly links with -lc since on some 9780 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9781 # to ld, don't add -lc before -lgcc. 9782 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 9783echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 9784 $rm conftest* 9785 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 9786 9787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9788 (eval $ac_compile) 2>&5 9789 ac_status=$? 9790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9791 (exit $ac_status); } 2>conftest.err; then 9792 soname=conftest 9793 lib=conftest 9794 libobjs=conftest.$ac_objext 9795 deplibs= 9796 wl=$lt_prog_compiler_wl 9797 pic_flag=$lt_prog_compiler_pic 9798 compiler_flags=-v 9799 linker_flags=-v 9800 verstring= 9801 output_objdir=. 9802 libname=conftest 9803 lt_save_allow_undefined_flag=$allow_undefined_flag 9804 allow_undefined_flag= 9805 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 9806 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 9807 ac_status=$? 9808 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9809 (exit $ac_status); } 9810 then 9811 archive_cmds_need_lc=no 9812 else 9813 archive_cmds_need_lc=yes 9814 fi 9815 allow_undefined_flag=$lt_save_allow_undefined_flag 9816 else 9817 cat conftest.err 1>&5 9818 fi 9819 $rm conftest* 9820 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 9821echo "${ECHO_T}$archive_cmds_need_lc" >&6 9822 ;; 9823 esac 9824 fi 9825 ;; 9826esac 9827 9828echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 9829echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 9830library_names_spec= 9831libname_spec='lib$name' 9832soname_spec= 9833shrext_cmds=".so" 9834postinstall_cmds= 9835postuninstall_cmds= 9836finish_cmds= 9837finish_eval= 9838shlibpath_var= 9839shlibpath_overrides_runpath=unknown 9840version_type=none 9841dynamic_linker="$host_os ld.so" 9842sys_lib_dlsearch_path_spec="/lib /usr/lib" 9843if test "$GCC" = yes; then 9844 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9845 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 9846 # if the path contains ";" then we assume it to be the separator 9847 # otherwise default to the standard path separator (i.e. ":") - it is 9848 # assumed that no part of a normal pathname contains ";" but that should 9849 # okay in the real world where ";" in dirpaths is itself problematic. 9850 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9851 else 9852 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9853 fi 9854else 9855 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9856fi 9857need_lib_prefix=unknown 9858hardcode_into_libs=no 9859 9860# when you set need_version to no, make sure it does not cause -set_version 9861# flags to be left without arguments 9862need_version=unknown 9863 9864case $host_os in 9865aix3*) 9866 version_type=linux 9867 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9868 shlibpath_var=LIBPATH 9869 9870 # AIX 3 has no versioning support, so we append a major version to the name. 9871 soname_spec='${libname}${release}${shared_ext}$major' 9872 ;; 9873 9874aix4* | aix5*) 9875 version_type=linux 9876 need_lib_prefix=no 9877 need_version=no 9878 hardcode_into_libs=yes 9879 if test "$host_cpu" = ia64; then 9880 # AIX 5 supports IA64 9881 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9882 shlibpath_var=LD_LIBRARY_PATH 9883 else 9884 # With GCC up to 2.95.x, collect2 would create an import file 9885 # for dependence libraries. The import file would start with 9886 # the line `#! .'. This would cause the generated library to 9887 # depend on `.', always an invalid library. This was fixed in 9888 # development snapshots of GCC prior to 3.0. 9889 case $host_os in 9890 aix4 | aix4.[01] | aix4.[01].*) 9891 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9892 echo ' yes ' 9893 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 9894 : 9895 else 9896 can_build_shared=no 9897 fi 9898 ;; 9899 esac 9900 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9901 # soname into executable. Probably we can add versioning support to 9902 # collect2, so additional links can be useful in future. 9903 if test "$aix_use_runtimelinking" = yes; then 9904 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9905 # instead of lib<name>.a to let people know that these are not 9906 # typical AIX shared libraries. 9907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9908 else 9909 # We preserve .a as extension for shared libraries through AIX4.2 9910 # and later when we are not doing run time linking. 9911 library_names_spec='${libname}${release}.a $libname.a' 9912 soname_spec='${libname}${release}${shared_ext}$major' 9913 fi 9914 shlibpath_var=LIBPATH 9915 fi 9916 ;; 9917 9918amigaos*) 9919 library_names_spec='$libname.ixlibrary $libname.a' 9920 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9921 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' 9922 ;; 9923 9924beos*) 9925 library_names_spec='${libname}${shared_ext}' 9926 dynamic_linker="$host_os ld.so" 9927 shlibpath_var=LIBRARY_PATH 9928 ;; 9929 9930bsdi[45]*) 9931 version_type=linux 9932 need_version=no 9933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9934 soname_spec='${libname}${release}${shared_ext}$major' 9935 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9936 shlibpath_var=LD_LIBRARY_PATH 9937 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9938 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9939 # the default ld.so.conf also contains /usr/contrib/lib and 9940 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9941 # libtool to hard-code these into programs 9942 ;; 9943 9944cygwin* | mingw* | pw32*) 9945 version_type=windows 9946 shrext_cmds=".dll" 9947 need_version=no 9948 need_lib_prefix=no 9949 9950 case $GCC,$host_os in 9951 yes,cygwin* | yes,mingw* | yes,pw32*) 9952 library_names_spec='$libname.dll.a' 9953 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9954 postinstall_cmds='base_file=`basename \${file}`~ 9955 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 9956 dldir=$destdir/`dirname \$dlpath`~ 9957 test -d \$dldir || mkdir -p \$dldir~ 9958 $install_prog $dir/$dlname \$dldir/$dlname~ 9959 chmod a+x \$dldir/$dlname' 9960 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9961 dlpath=$dir/\$dldll~ 9962 $rm \$dlpath' 9963 shlibpath_overrides_runpath=yes 9964 9965 case $host_os in 9966 cygwin*) 9967 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9968 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9969 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9970 ;; 9971 mingw*) 9972 # MinGW DLLs use traditional 'lib' prefix 9973 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9974 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9975 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 9976 # It is most probably a Windows format PATH printed by 9977 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9978 # path with ; separators, and with drive letters. We can handle the 9979 # drive letters (cygwin fileutils understands them), so leave them, 9980 # especially as we might pass files found there to a mingw objdump, 9981 # which wouldn't understand a cygwinified path. Ahh. 9982 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9983 else 9984 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9985 fi 9986 ;; 9987 pw32*) 9988 # pw32 DLLs use 'pw' prefix rather than 'lib' 9989 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9990 ;; 9991 esac 9992 ;; 9993 9994 *) 9995 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9996 ;; 9997 esac 9998 dynamic_linker='Win32 ld.exe' 9999 # FIXME: first we should search . and the directory the executable is in 10000 shlibpath_var=PATH 10001 ;; 10002 10003darwin* | rhapsody*) 10004 dynamic_linker="$host_os dyld" 10005 version_type=darwin 10006 need_lib_prefix=no 10007 need_version=no 10008 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10009 soname_spec='${libname}${release}${major}$shared_ext' 10010 shlibpath_overrides_runpath=yes 10011 shlibpath_var=DYLD_LIBRARY_PATH 10012 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10013 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 10014 if test "$GCC" = yes; then 10015 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"` 10016 else 10017 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 10018 fi 10019 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10020 ;; 10021 10022dgux*) 10023 version_type=linux 10024 need_lib_prefix=no 10025 need_version=no 10026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10027 soname_spec='${libname}${release}${shared_ext}$major' 10028 shlibpath_var=LD_LIBRARY_PATH 10029 ;; 10030 10031freebsd1*) 10032 dynamic_linker=no 10033 ;; 10034 10035kfreebsd*-gnu) 10036 version_type=linux 10037 need_lib_prefix=no 10038 need_version=no 10039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10040 soname_spec='${libname}${release}${shared_ext}$major' 10041 shlibpath_var=LD_LIBRARY_PATH 10042 shlibpath_overrides_runpath=no 10043 hardcode_into_libs=yes 10044 dynamic_linker='GNU ld.so' 10045 ;; 10046 10047freebsd* | dragonfly*) 10048 # DragonFly does not have aout. When/if they implement a new 10049 # versioning mechanism, adjust this. 10050 if test -x /usr/bin/objformat; then 10051 objformat=`/usr/bin/objformat` 10052 else 10053 case $host_os in 10054 freebsd[123]*) objformat=aout ;; 10055 *) objformat=elf ;; 10056 esac 10057 fi 10058 version_type=freebsd-$objformat 10059 case $version_type in 10060 freebsd-elf*) 10061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10062 need_version=no 10063 need_lib_prefix=no 10064 ;; 10065 freebsd-*) 10066 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10067 need_version=yes 10068 ;; 10069 esac 10070 shlibpath_var=LD_LIBRARY_PATH 10071 case $host_os in 10072 freebsd2*) 10073 shlibpath_overrides_runpath=yes 10074 ;; 10075 freebsd3.[01]* | freebsdelf3.[01]*) 10076 shlibpath_overrides_runpath=yes 10077 hardcode_into_libs=yes 10078 ;; 10079 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10080 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10081 shlibpath_overrides_runpath=no 10082 hardcode_into_libs=yes 10083 ;; 10084 freebsd*) # from 4.6 on 10085 shlibpath_overrides_runpath=yes 10086 hardcode_into_libs=yes 10087 ;; 10088 esac 10089 ;; 10090 10091gnu*) 10092 version_type=linux 10093 need_lib_prefix=no 10094 need_version=no 10095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10096 soname_spec='${libname}${release}${shared_ext}$major' 10097 shlibpath_var=LD_LIBRARY_PATH 10098 hardcode_into_libs=yes 10099 ;; 10100 10101hpux9* | hpux10* | hpux11*) 10102 # Give a soname corresponding to the major version so that dld.sl refuses to 10103 # link against other versions. 10104 version_type=sunos 10105 need_lib_prefix=no 10106 need_version=no 10107 case $host_cpu in 10108 ia64*) 10109 shrext_cmds='.so' 10110 hardcode_into_libs=yes 10111 dynamic_linker="$host_os dld.so" 10112 shlibpath_var=LD_LIBRARY_PATH 10113 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10115 soname_spec='${libname}${release}${shared_ext}$major' 10116 if test "X$HPUX_IA64_MODE" = X32; then 10117 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10118 else 10119 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10120 fi 10121 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10122 ;; 10123 hppa*64*) 10124 shrext_cmds='.sl' 10125 hardcode_into_libs=yes 10126 dynamic_linker="$host_os dld.sl" 10127 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10128 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10130 soname_spec='${libname}${release}${shared_ext}$major' 10131 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10132 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10133 ;; 10134 *) 10135 shrext_cmds='.sl' 10136 dynamic_linker="$host_os dld.sl" 10137 shlibpath_var=SHLIB_PATH 10138 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10140 soname_spec='${libname}${release}${shared_ext}$major' 10141 ;; 10142 esac 10143 # HP-UX runs *really* slowly unless shared libraries are mode 555. 10144 postinstall_cmds='chmod 555 $lib' 10145 ;; 10146 10147interix3*) 10148 version_type=linux 10149 need_lib_prefix=no 10150 need_version=no 10151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10152 soname_spec='${libname}${release}${shared_ext}$major' 10153 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10154 shlibpath_var=LD_LIBRARY_PATH 10155 shlibpath_overrides_runpath=no 10156 hardcode_into_libs=yes 10157 ;; 10158 10159irix5* | irix6* | nonstopux*) 10160 case $host_os in 10161 nonstopux*) version_type=nonstopux ;; 10162 *) 10163 if test "$lt_cv_prog_gnu_ld" = yes; then 10164 version_type=linux 10165 else 10166 version_type=irix 10167 fi ;; 10168 esac 10169 need_lib_prefix=no 10170 need_version=no 10171 soname_spec='${libname}${release}${shared_ext}$major' 10172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10173 case $host_os in 10174 irix5* | nonstopux*) 10175 libsuff= shlibsuff= 10176 ;; 10177 *) 10178 case $LD in # libtool.m4 will add one of these switches to LD 10179 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10180 libsuff= shlibsuff= libmagic=32-bit;; 10181 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10182 libsuff=32 shlibsuff=N32 libmagic=N32;; 10183 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10184 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10185 *) libsuff= shlibsuff= libmagic=never-match;; 10186 esac 10187 ;; 10188 esac 10189 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10190 shlibpath_overrides_runpath=no 10191 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10192 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10193 hardcode_into_libs=yes 10194 ;; 10195 10196# No shared lib support for Linux oldld, aout, or coff. 10197linux*oldld* | linux*aout* | linux*coff*) 10198 dynamic_linker=no 10199 ;; 10200 10201# This must be Linux ELF. 10202linux*) 10203 version_type=linux 10204 need_lib_prefix=no 10205 need_version=no 10206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10207 soname_spec='${libname}${release}${shared_ext}$major' 10208 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10209 shlibpath_var=LD_LIBRARY_PATH 10210 shlibpath_overrides_runpath=no 10211 # This implies no fast_install, which is unacceptable. 10212 # Some rework will be needed to allow for fast_install 10213 # before this can be enabled. 10214 hardcode_into_libs=yes 10215 10216 # Append ld.so.conf contents to the search path 10217 if test -f /etc/ld.so.conf; then 10218 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' ' '` 10219 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10220 fi 10221 10222 # We used to test for /lib/ld.so.1 and disable shared libraries on 10223 # powerpc, because MkLinux only supported shared libraries with the 10224 # GNU dynamic linker. Since this was broken with cross compilers, 10225 # most powerpc-linux boxes support dynamic linking these days and 10226 # people can always --disable-shared, the test was removed, and we 10227 # assume the GNU/Linux dynamic linker is in use. 10228 dynamic_linker='GNU/Linux ld.so' 10229 ;; 10230 10231knetbsd*-gnu) 10232 version_type=linux 10233 need_lib_prefix=no 10234 need_version=no 10235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10236 soname_spec='${libname}${release}${shared_ext}$major' 10237 shlibpath_var=LD_LIBRARY_PATH 10238 shlibpath_overrides_runpath=no 10239 hardcode_into_libs=yes 10240 dynamic_linker='GNU ld.so' 10241 ;; 10242 10243netbsd*) 10244 version_type=sunos 10245 need_lib_prefix=no 10246 need_version=no 10247 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 10248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10249 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10250 dynamic_linker='NetBSD (a.out) ld.so' 10251 else 10252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10253 soname_spec='${libname}${release}${shared_ext}$major' 10254 dynamic_linker='NetBSD ld.elf_so' 10255 fi 10256 shlibpath_var=LD_LIBRARY_PATH 10257 shlibpath_overrides_runpath=yes 10258 hardcode_into_libs=yes 10259 ;; 10260 10261newsos6) 10262 version_type=linux 10263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10264 shlibpath_var=LD_LIBRARY_PATH 10265 shlibpath_overrides_runpath=yes 10266 ;; 10267 10268nto-qnx*) 10269 version_type=linux 10270 need_lib_prefix=no 10271 need_version=no 10272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10273 soname_spec='${libname}${release}${shared_ext}$major' 10274 shlibpath_var=LD_LIBRARY_PATH 10275 shlibpath_overrides_runpath=yes 10276 ;; 10277 10278openbsd*) 10279 version_type=sunos 10280 sys_lib_dlsearch_path_spec="/usr/lib" 10281 need_lib_prefix=no 10282 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10283 case $host_os in 10284 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10285 *) need_version=no ;; 10286 esac 10287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10288 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10289 shlibpath_var=LD_LIBRARY_PATH 10290 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10291 case $host_os in 10292 openbsd2.[89] | openbsd2.[89].*) 10293 shlibpath_overrides_runpath=no 10294 ;; 10295 *) 10296 shlibpath_overrides_runpath=yes 10297 ;; 10298 esac 10299 else 10300 shlibpath_overrides_runpath=yes 10301 fi 10302 ;; 10303 10304os2*) 10305 libname_spec='$name' 10306 shrext_cmds=".dll" 10307 need_lib_prefix=no 10308 library_names_spec='$libname${shared_ext} $libname.a' 10309 dynamic_linker='OS/2 ld.exe' 10310 shlibpath_var=LIBPATH 10311 ;; 10312 10313osf3* | osf4* | osf5*) 10314 version_type=osf 10315 need_lib_prefix=no 10316 need_version=no 10317 soname_spec='${libname}${release}${shared_ext}$major' 10318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10319 shlibpath_var=LD_LIBRARY_PATH 10320 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10321 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10322 ;; 10323 10324solaris*) 10325 version_type=linux 10326 need_lib_prefix=no 10327 need_version=no 10328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10329 soname_spec='${libname}${release}${shared_ext}$major' 10330 shlibpath_var=LD_LIBRARY_PATH 10331 shlibpath_overrides_runpath=yes 10332 hardcode_into_libs=yes 10333 # ldd complains unless libraries are executable 10334 postinstall_cmds='chmod +x $lib' 10335 ;; 10336 10337sunos4*) 10338 version_type=sunos 10339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10340 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10341 shlibpath_var=LD_LIBRARY_PATH 10342 shlibpath_overrides_runpath=yes 10343 if test "$with_gnu_ld" = yes; then 10344 need_lib_prefix=no 10345 fi 10346 need_version=yes 10347 ;; 10348 10349sysv4 | sysv4.3*) 10350 version_type=linux 10351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10352 soname_spec='${libname}${release}${shared_ext}$major' 10353 shlibpath_var=LD_LIBRARY_PATH 10354 case $host_vendor in 10355 sni) 10356 shlibpath_overrides_runpath=no 10357 need_lib_prefix=no 10358 export_dynamic_flag_spec='${wl}-Blargedynsym' 10359 runpath_var=LD_RUN_PATH 10360 ;; 10361 siemens) 10362 need_lib_prefix=no 10363 ;; 10364 motorola) 10365 need_lib_prefix=no 10366 need_version=no 10367 shlibpath_overrides_runpath=no 10368 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10369 ;; 10370 esac 10371 ;; 10372 10373sysv4*MP*) 10374 if test -d /usr/nec ;then 10375 version_type=linux 10376 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10377 soname_spec='$libname${shared_ext}.$major' 10378 shlibpath_var=LD_LIBRARY_PATH 10379 fi 10380 ;; 10381 10382sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10383 version_type=freebsd-elf 10384 need_lib_prefix=no 10385 need_version=no 10386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10387 soname_spec='${libname}${release}${shared_ext}$major' 10388 shlibpath_var=LD_LIBRARY_PATH 10389 hardcode_into_libs=yes 10390 if test "$with_gnu_ld" = yes; then 10391 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10392 shlibpath_overrides_runpath=no 10393 else 10394 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10395 shlibpath_overrides_runpath=yes 10396 case $host_os in 10397 sco3.2v5*) 10398 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10399 ;; 10400 esac 10401 fi 10402 sys_lib_dlsearch_path_spec='/usr/lib' 10403 ;; 10404 10405uts4*) 10406 version_type=linux 10407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10408 soname_spec='${libname}${release}${shared_ext}$major' 10409 shlibpath_var=LD_LIBRARY_PATH 10410 ;; 10411 10412*) 10413 dynamic_linker=no 10414 ;; 10415esac 10416echo "$as_me:$LINENO: result: $dynamic_linker" >&5 10417echo "${ECHO_T}$dynamic_linker" >&6 10418test "$dynamic_linker" = no && can_build_shared=no 10419 10420variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10421if test "$GCC" = yes; then 10422 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10423fi 10424 10425echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 10426echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 10427hardcode_action= 10428if test -n "$hardcode_libdir_flag_spec" || \ 10429 test -n "$runpath_var" || \ 10430 test "X$hardcode_automatic" = "Xyes" ; then 10431 10432 # We can hardcode non-existant directories. 10433 if test "$hardcode_direct" != no && 10434 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10435 # have to relink, otherwise we might link with an installed library 10436 # when we should be linking with a yet-to-be-installed one 10437 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 10438 test "$hardcode_minus_L" != no; then 10439 # Linking always hardcodes the temporary library directory. 10440 hardcode_action=relink 10441 else 10442 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10443 hardcode_action=immediate 10444 fi 10445else 10446 # We cannot hardcode anything, or else we can only hardcode existing 10447 # directories. 10448 hardcode_action=unsupported 10449fi 10450echo "$as_me:$LINENO: result: $hardcode_action" >&5 10451echo "${ECHO_T}$hardcode_action" >&6 10452 10453if test "$hardcode_action" = relink; then 10454 # Fast installation is not supported 10455 enable_fast_install=no 10456elif test "$shlibpath_overrides_runpath" = yes || 10457 test "$enable_shared" = no; then 10458 # Fast installation is not necessary 10459 enable_fast_install=needless 10460fi 10461 10462striplib= 10463old_striplib= 10464echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 10465echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 10466if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 10467 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 10468 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 10469 echo "$as_me:$LINENO: result: yes" >&5 10470echo "${ECHO_T}yes" >&6 10471else 10472# FIXME - insert some real tests, host_os isn't really good enough 10473 case $host_os in 10474 darwin*) 10475 if test -n "$STRIP" ; then 10476 striplib="$STRIP -x" 10477 echo "$as_me:$LINENO: result: yes" >&5 10478echo "${ECHO_T}yes" >&6 10479 else 10480 echo "$as_me:$LINENO: result: no" >&5 10481echo "${ECHO_T}no" >&6 10482fi 10483 ;; 10484 *) 10485 echo "$as_me:$LINENO: result: no" >&5 10486echo "${ECHO_T}no" >&6 10487 ;; 10488 esac 10489fi 10490 10491if test "x$enable_dlopen" != xyes; then 10492 enable_dlopen=unknown 10493 enable_dlopen_self=unknown 10494 enable_dlopen_self_static=unknown 10495else 10496 lt_cv_dlopen=no 10497 lt_cv_dlopen_libs= 10498 10499 case $host_os in 10500 beos*) 10501 lt_cv_dlopen="load_add_on" 10502 lt_cv_dlopen_libs= 10503 lt_cv_dlopen_self=yes 10504 ;; 10505 10506 mingw* | pw32*) 10507 lt_cv_dlopen="LoadLibrary" 10508 lt_cv_dlopen_libs= 10509 ;; 10510 10511 cygwin*) 10512 lt_cv_dlopen="dlopen" 10513 lt_cv_dlopen_libs= 10514 ;; 10515 10516 darwin*) 10517 # if libdl is installed we need to link against it 10518 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10519echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 10520if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10521 echo $ECHO_N "(cached) $ECHO_C" >&6 10522else 10523 ac_check_lib_save_LIBS=$LIBS 10524LIBS="-ldl $LIBS" 10525cat >conftest.$ac_ext <<_ACEOF 10526/* confdefs.h. */ 10527_ACEOF 10528cat confdefs.h >>conftest.$ac_ext 10529cat >>conftest.$ac_ext <<_ACEOF 10530/* end confdefs.h. */ 10531 10532/* Override any gcc2 internal prototype to avoid an error. */ 10533#ifdef __cplusplus 10534extern "C" 10535#endif 10536/* We use char because int might match the return type of a gcc2 10537 builtin and then its argument prototype would still apply. */ 10538char dlopen (); 10539int 10540main () 10541{ 10542dlopen (); 10543 ; 10544 return 0; 10545} 10546_ACEOF 10547rm -f conftest.$ac_objext conftest$ac_exeext 10548if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10549 (eval $ac_link) 2>conftest.er1 10550 ac_status=$? 10551 grep -v '^ *+' conftest.er1 >conftest.err 10552 rm -f conftest.er1 10553 cat conftest.err >&5 10554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10555 (exit $ac_status); } && 10556 { ac_try='test -z "$ac_c_werror_flag" 10557 || test ! -s conftest.err' 10558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10559 (eval $ac_try) 2>&5 10560 ac_status=$? 10561 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10562 (exit $ac_status); }; } && 10563 { ac_try='test -s conftest$ac_exeext' 10564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10565 (eval $ac_try) 2>&5 10566 ac_status=$? 10567 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10568 (exit $ac_status); }; }; then 10569 ac_cv_lib_dl_dlopen=yes 10570else 10571 echo "$as_me: failed program was:" >&5 10572sed 's/^/| /' conftest.$ac_ext >&5 10573 10574ac_cv_lib_dl_dlopen=no 10575fi 10576rm -f conftest.err conftest.$ac_objext \ 10577 conftest$ac_exeext conftest.$ac_ext 10578LIBS=$ac_check_lib_save_LIBS 10579fi 10580echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10581echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 10582if test $ac_cv_lib_dl_dlopen = yes; then 10583 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10584else 10585 10586 lt_cv_dlopen="dyld" 10587 lt_cv_dlopen_libs= 10588 lt_cv_dlopen_self=yes 10589 10590fi 10591 10592 ;; 10593 10594 *) 10595 echo "$as_me:$LINENO: checking for shl_load" >&5 10596echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 10597if test "${ac_cv_func_shl_load+set}" = set; then 10598 echo $ECHO_N "(cached) $ECHO_C" >&6 10599else 10600 cat >conftest.$ac_ext <<_ACEOF 10601/* confdefs.h. */ 10602_ACEOF 10603cat confdefs.h >>conftest.$ac_ext 10604cat >>conftest.$ac_ext <<_ACEOF 10605/* end confdefs.h. */ 10606/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 10607 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10608#define shl_load innocuous_shl_load 10609 10610/* System header to define __stub macros and hopefully few prototypes, 10611 which can conflict with char shl_load (); below. 10612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10613 <limits.h> exists even on freestanding compilers. */ 10614 10615#ifdef __STDC__ 10616# include <limits.h> 10617#else 10618# include <assert.h> 10619#endif 10620 10621#undef shl_load 10622 10623/* Override any gcc2 internal prototype to avoid an error. */ 10624#ifdef __cplusplus 10625extern "C" 10626{ 10627#endif 10628/* We use char because int might match the return type of a gcc2 10629 builtin and then its argument prototype would still apply. */ 10630char shl_load (); 10631/* The GNU C library defines this for functions which it implements 10632 to always fail with ENOSYS. Some functions are actually named 10633 something starting with __ and the normal name is an alias. */ 10634#if defined (__stub_shl_load) || defined (__stub___shl_load) 10635choke me 10636#else 10637char (*f) () = shl_load; 10638#endif 10639#ifdef __cplusplus 10640} 10641#endif 10642 10643int 10644main () 10645{ 10646return f != shl_load; 10647 ; 10648 return 0; 10649} 10650_ACEOF 10651rm -f conftest.$ac_objext conftest$ac_exeext 10652if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10653 (eval $ac_link) 2>conftest.er1 10654 ac_status=$? 10655 grep -v '^ *+' conftest.er1 >conftest.err 10656 rm -f conftest.er1 10657 cat conftest.err >&5 10658 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10659 (exit $ac_status); } && 10660 { ac_try='test -z "$ac_c_werror_flag" 10661 || test ! -s conftest.err' 10662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10663 (eval $ac_try) 2>&5 10664 ac_status=$? 10665 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10666 (exit $ac_status); }; } && 10667 { ac_try='test -s conftest$ac_exeext' 10668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10669 (eval $ac_try) 2>&5 10670 ac_status=$? 10671 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10672 (exit $ac_status); }; }; then 10673 ac_cv_func_shl_load=yes 10674else 10675 echo "$as_me: failed program was:" >&5 10676sed 's/^/| /' conftest.$ac_ext >&5 10677 10678ac_cv_func_shl_load=no 10679fi 10680rm -f conftest.err conftest.$ac_objext \ 10681 conftest$ac_exeext conftest.$ac_ext 10682fi 10683echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 10684echo "${ECHO_T}$ac_cv_func_shl_load" >&6 10685if test $ac_cv_func_shl_load = yes; then 10686 lt_cv_dlopen="shl_load" 10687else 10688 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 10689echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 10690if test "${ac_cv_lib_dld_shl_load+set}" = set; then 10691 echo $ECHO_N "(cached) $ECHO_C" >&6 10692else 10693 ac_check_lib_save_LIBS=$LIBS 10694LIBS="-ldld $LIBS" 10695cat >conftest.$ac_ext <<_ACEOF 10696/* confdefs.h. */ 10697_ACEOF 10698cat confdefs.h >>conftest.$ac_ext 10699cat >>conftest.$ac_ext <<_ACEOF 10700/* end confdefs.h. */ 10701 10702/* Override any gcc2 internal prototype to avoid an error. */ 10703#ifdef __cplusplus 10704extern "C" 10705#endif 10706/* We use char because int might match the return type of a gcc2 10707 builtin and then its argument prototype would still apply. */ 10708char shl_load (); 10709int 10710main () 10711{ 10712shl_load (); 10713 ; 10714 return 0; 10715} 10716_ACEOF 10717rm -f conftest.$ac_objext conftest$ac_exeext 10718if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10719 (eval $ac_link) 2>conftest.er1 10720 ac_status=$? 10721 grep -v '^ *+' conftest.er1 >conftest.err 10722 rm -f conftest.er1 10723 cat conftest.err >&5 10724 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10725 (exit $ac_status); } && 10726 { ac_try='test -z "$ac_c_werror_flag" 10727 || test ! -s conftest.err' 10728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10729 (eval $ac_try) 2>&5 10730 ac_status=$? 10731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10732 (exit $ac_status); }; } && 10733 { ac_try='test -s conftest$ac_exeext' 10734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10735 (eval $ac_try) 2>&5 10736 ac_status=$? 10737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10738 (exit $ac_status); }; }; then 10739 ac_cv_lib_dld_shl_load=yes 10740else 10741 echo "$as_me: failed program was:" >&5 10742sed 's/^/| /' conftest.$ac_ext >&5 10743 10744ac_cv_lib_dld_shl_load=no 10745fi 10746rm -f conftest.err conftest.$ac_objext \ 10747 conftest$ac_exeext conftest.$ac_ext 10748LIBS=$ac_check_lib_save_LIBS 10749fi 10750echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 10751echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 10752if test $ac_cv_lib_dld_shl_load = yes; then 10753 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 10754else 10755 echo "$as_me:$LINENO: checking for dlopen" >&5 10756echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 10757if test "${ac_cv_func_dlopen+set}" = set; then 10758 echo $ECHO_N "(cached) $ECHO_C" >&6 10759else 10760 cat >conftest.$ac_ext <<_ACEOF 10761/* confdefs.h. */ 10762_ACEOF 10763cat confdefs.h >>conftest.$ac_ext 10764cat >>conftest.$ac_ext <<_ACEOF 10765/* end confdefs.h. */ 10766/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 10767 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10768#define dlopen innocuous_dlopen 10769 10770/* System header to define __stub macros and hopefully few prototypes, 10771 which can conflict with char dlopen (); below. 10772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10773 <limits.h> exists even on freestanding compilers. */ 10774 10775#ifdef __STDC__ 10776# include <limits.h> 10777#else 10778# include <assert.h> 10779#endif 10780 10781#undef dlopen 10782 10783/* Override any gcc2 internal prototype to avoid an error. */ 10784#ifdef __cplusplus 10785extern "C" 10786{ 10787#endif 10788/* We use char because int might match the return type of a gcc2 10789 builtin and then its argument prototype would still apply. */ 10790char dlopen (); 10791/* The GNU C library defines this for functions which it implements 10792 to always fail with ENOSYS. Some functions are actually named 10793 something starting with __ and the normal name is an alias. */ 10794#if defined (__stub_dlopen) || defined (__stub___dlopen) 10795choke me 10796#else 10797char (*f) () = dlopen; 10798#endif 10799#ifdef __cplusplus 10800} 10801#endif 10802 10803int 10804main () 10805{ 10806return f != dlopen; 10807 ; 10808 return 0; 10809} 10810_ACEOF 10811rm -f conftest.$ac_objext conftest$ac_exeext 10812if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10813 (eval $ac_link) 2>conftest.er1 10814 ac_status=$? 10815 grep -v '^ *+' conftest.er1 >conftest.err 10816 rm -f conftest.er1 10817 cat conftest.err >&5 10818 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10819 (exit $ac_status); } && 10820 { ac_try='test -z "$ac_c_werror_flag" 10821 || test ! -s conftest.err' 10822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10823 (eval $ac_try) 2>&5 10824 ac_status=$? 10825 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10826 (exit $ac_status); }; } && 10827 { ac_try='test -s conftest$ac_exeext' 10828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10829 (eval $ac_try) 2>&5 10830 ac_status=$? 10831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10832 (exit $ac_status); }; }; then 10833 ac_cv_func_dlopen=yes 10834else 10835 echo "$as_me: failed program was:" >&5 10836sed 's/^/| /' conftest.$ac_ext >&5 10837 10838ac_cv_func_dlopen=no 10839fi 10840rm -f conftest.err conftest.$ac_objext \ 10841 conftest$ac_exeext conftest.$ac_ext 10842fi 10843echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 10844echo "${ECHO_T}$ac_cv_func_dlopen" >&6 10845if test $ac_cv_func_dlopen = yes; then 10846 lt_cv_dlopen="dlopen" 10847else 10848 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10849echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 10850if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10851 echo $ECHO_N "(cached) $ECHO_C" >&6 10852else 10853 ac_check_lib_save_LIBS=$LIBS 10854LIBS="-ldl $LIBS" 10855cat >conftest.$ac_ext <<_ACEOF 10856/* confdefs.h. */ 10857_ACEOF 10858cat confdefs.h >>conftest.$ac_ext 10859cat >>conftest.$ac_ext <<_ACEOF 10860/* end confdefs.h. */ 10861 10862/* Override any gcc2 internal prototype to avoid an error. */ 10863#ifdef __cplusplus 10864extern "C" 10865#endif 10866/* We use char because int might match the return type of a gcc2 10867 builtin and then its argument prototype would still apply. */ 10868char dlopen (); 10869int 10870main () 10871{ 10872dlopen (); 10873 ; 10874 return 0; 10875} 10876_ACEOF 10877rm -f conftest.$ac_objext conftest$ac_exeext 10878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10879 (eval $ac_link) 2>conftest.er1 10880 ac_status=$? 10881 grep -v '^ *+' conftest.er1 >conftest.err 10882 rm -f conftest.er1 10883 cat conftest.err >&5 10884 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10885 (exit $ac_status); } && 10886 { ac_try='test -z "$ac_c_werror_flag" 10887 || test ! -s conftest.err' 10888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10889 (eval $ac_try) 2>&5 10890 ac_status=$? 10891 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10892 (exit $ac_status); }; } && 10893 { ac_try='test -s conftest$ac_exeext' 10894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10895 (eval $ac_try) 2>&5 10896 ac_status=$? 10897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10898 (exit $ac_status); }; }; then 10899 ac_cv_lib_dl_dlopen=yes 10900else 10901 echo "$as_me: failed program was:" >&5 10902sed 's/^/| /' conftest.$ac_ext >&5 10903 10904ac_cv_lib_dl_dlopen=no 10905fi 10906rm -f conftest.err conftest.$ac_objext \ 10907 conftest$ac_exeext conftest.$ac_ext 10908LIBS=$ac_check_lib_save_LIBS 10909fi 10910echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10911echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 10912if test $ac_cv_lib_dl_dlopen = yes; then 10913 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10914else 10915 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10916echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 10917if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10918 echo $ECHO_N "(cached) $ECHO_C" >&6 10919else 10920 ac_check_lib_save_LIBS=$LIBS 10921LIBS="-lsvld $LIBS" 10922cat >conftest.$ac_ext <<_ACEOF 10923/* confdefs.h. */ 10924_ACEOF 10925cat confdefs.h >>conftest.$ac_ext 10926cat >>conftest.$ac_ext <<_ACEOF 10927/* end confdefs.h. */ 10928 10929/* Override any gcc2 internal prototype to avoid an error. */ 10930#ifdef __cplusplus 10931extern "C" 10932#endif 10933/* We use char because int might match the return type of a gcc2 10934 builtin and then its argument prototype would still apply. */ 10935char dlopen (); 10936int 10937main () 10938{ 10939dlopen (); 10940 ; 10941 return 0; 10942} 10943_ACEOF 10944rm -f conftest.$ac_objext conftest$ac_exeext 10945if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10946 (eval $ac_link) 2>conftest.er1 10947 ac_status=$? 10948 grep -v '^ *+' conftest.er1 >conftest.err 10949 rm -f conftest.er1 10950 cat conftest.err >&5 10951 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10952 (exit $ac_status); } && 10953 { ac_try='test -z "$ac_c_werror_flag" 10954 || test ! -s conftest.err' 10955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10956 (eval $ac_try) 2>&5 10957 ac_status=$? 10958 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10959 (exit $ac_status); }; } && 10960 { ac_try='test -s conftest$ac_exeext' 10961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10962 (eval $ac_try) 2>&5 10963 ac_status=$? 10964 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10965 (exit $ac_status); }; }; then 10966 ac_cv_lib_svld_dlopen=yes 10967else 10968 echo "$as_me: failed program was:" >&5 10969sed 's/^/| /' conftest.$ac_ext >&5 10970 10971ac_cv_lib_svld_dlopen=no 10972fi 10973rm -f conftest.err conftest.$ac_objext \ 10974 conftest$ac_exeext conftest.$ac_ext 10975LIBS=$ac_check_lib_save_LIBS 10976fi 10977echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10978echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 10979if test $ac_cv_lib_svld_dlopen = yes; then 10980 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10981else 10982 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10983echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 10984if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10985 echo $ECHO_N "(cached) $ECHO_C" >&6 10986else 10987 ac_check_lib_save_LIBS=$LIBS 10988LIBS="-ldld $LIBS" 10989cat >conftest.$ac_ext <<_ACEOF 10990/* confdefs.h. */ 10991_ACEOF 10992cat confdefs.h >>conftest.$ac_ext 10993cat >>conftest.$ac_ext <<_ACEOF 10994/* end confdefs.h. */ 10995 10996/* Override any gcc2 internal prototype to avoid an error. */ 10997#ifdef __cplusplus 10998extern "C" 10999#endif 11000/* We use char because int might match the return type of a gcc2 11001 builtin and then its argument prototype would still apply. */ 11002char dld_link (); 11003int 11004main () 11005{ 11006dld_link (); 11007 ; 11008 return 0; 11009} 11010_ACEOF 11011rm -f conftest.$ac_objext conftest$ac_exeext 11012if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11013 (eval $ac_link) 2>conftest.er1 11014 ac_status=$? 11015 grep -v '^ *+' conftest.er1 >conftest.err 11016 rm -f conftest.er1 11017 cat conftest.err >&5 11018 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11019 (exit $ac_status); } && 11020 { ac_try='test -z "$ac_c_werror_flag" 11021 || test ! -s conftest.err' 11022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11023 (eval $ac_try) 2>&5 11024 ac_status=$? 11025 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11026 (exit $ac_status); }; } && 11027 { ac_try='test -s conftest$ac_exeext' 11028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11029 (eval $ac_try) 2>&5 11030 ac_status=$? 11031 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11032 (exit $ac_status); }; }; then 11033 ac_cv_lib_dld_dld_link=yes 11034else 11035 echo "$as_me: failed program was:" >&5 11036sed 's/^/| /' conftest.$ac_ext >&5 11037 11038ac_cv_lib_dld_dld_link=no 11039fi 11040rm -f conftest.err conftest.$ac_objext \ 11041 conftest$ac_exeext conftest.$ac_ext 11042LIBS=$ac_check_lib_save_LIBS 11043fi 11044echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 11045echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 11046if test $ac_cv_lib_dld_dld_link = yes; then 11047 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 11048fi 11049 11050 11051fi 11052 11053 11054fi 11055 11056 11057fi 11058 11059 11060fi 11061 11062 11063fi 11064 11065 ;; 11066 esac 11067 11068 if test "x$lt_cv_dlopen" != xno; then 11069 enable_dlopen=yes 11070 else 11071 enable_dlopen=no 11072 fi 11073 11074 case $lt_cv_dlopen in 11075 dlopen) 11076 save_CPPFLAGS="$CPPFLAGS" 11077 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11078 11079 save_LDFLAGS="$LDFLAGS" 11080 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11081 11082 save_LIBS="$LIBS" 11083 LIBS="$lt_cv_dlopen_libs $LIBS" 11084 11085 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 11086echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 11087if test "${lt_cv_dlopen_self+set}" = set; then 11088 echo $ECHO_N "(cached) $ECHO_C" >&6 11089else 11090 if test "$cross_compiling" = yes; then : 11091 lt_cv_dlopen_self=cross 11092else 11093 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11094 lt_status=$lt_dlunknown 11095 cat > conftest.$ac_ext <<EOF 11096#line 11096 "configure" 11097#include "confdefs.h" 11098 11099#if HAVE_DLFCN_H 11100#include <dlfcn.h> 11101#endif 11102 11103#include <stdio.h> 11104 11105#ifdef RTLD_GLOBAL 11106# define LT_DLGLOBAL RTLD_GLOBAL 11107#else 11108# ifdef DL_GLOBAL 11109# define LT_DLGLOBAL DL_GLOBAL 11110# else 11111# define LT_DLGLOBAL 0 11112# endif 11113#endif 11114 11115/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11116 find out it does not work in some platform. */ 11117#ifndef LT_DLLAZY_OR_NOW 11118# ifdef RTLD_LAZY 11119# define LT_DLLAZY_OR_NOW RTLD_LAZY 11120# else 11121# ifdef DL_LAZY 11122# define LT_DLLAZY_OR_NOW DL_LAZY 11123# else 11124# ifdef RTLD_NOW 11125# define LT_DLLAZY_OR_NOW RTLD_NOW 11126# else 11127# ifdef DL_NOW 11128# define LT_DLLAZY_OR_NOW DL_NOW 11129# else 11130# define LT_DLLAZY_OR_NOW 0 11131# endif 11132# endif 11133# endif 11134# endif 11135#endif 11136 11137#ifdef __cplusplus 11138extern "C" void exit (int); 11139#endif 11140 11141void fnord() { int i=42;} 11142int main () 11143{ 11144 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11145 int status = $lt_dlunknown; 11146 11147 if (self) 11148 { 11149 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11150 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11151 /* dlclose (self); */ 11152 } 11153 else 11154 puts (dlerror ()); 11155 11156 exit (status); 11157} 11158EOF 11159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11160 (eval $ac_link) 2>&5 11161 ac_status=$? 11162 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11163 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 11164 (./conftest; exit; ) >&5 2>/dev/null 11165 lt_status=$? 11166 case x$lt_status in 11167 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11168 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11169 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11170 esac 11171 else : 11172 # compilation failed 11173 lt_cv_dlopen_self=no 11174 fi 11175fi 11176rm -fr conftest* 11177 11178 11179fi 11180echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 11181echo "${ECHO_T}$lt_cv_dlopen_self" >&6 11182 11183 if test "x$lt_cv_dlopen_self" = xyes; then 11184 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11185 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 11186echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 11187if test "${lt_cv_dlopen_self_static+set}" = set; then 11188 echo $ECHO_N "(cached) $ECHO_C" >&6 11189else 11190 if test "$cross_compiling" = yes; then : 11191 lt_cv_dlopen_self_static=cross 11192else 11193 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11194 lt_status=$lt_dlunknown 11195 cat > conftest.$ac_ext <<EOF 11196#line 11196 "configure" 11197#include "confdefs.h" 11198 11199#if HAVE_DLFCN_H 11200#include <dlfcn.h> 11201#endif 11202 11203#include <stdio.h> 11204 11205#ifdef RTLD_GLOBAL 11206# define LT_DLGLOBAL RTLD_GLOBAL 11207#else 11208# ifdef DL_GLOBAL 11209# define LT_DLGLOBAL DL_GLOBAL 11210# else 11211# define LT_DLGLOBAL 0 11212# endif 11213#endif 11214 11215/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11216 find out it does not work in some platform. */ 11217#ifndef LT_DLLAZY_OR_NOW 11218# ifdef RTLD_LAZY 11219# define LT_DLLAZY_OR_NOW RTLD_LAZY 11220# else 11221# ifdef DL_LAZY 11222# define LT_DLLAZY_OR_NOW DL_LAZY 11223# else 11224# ifdef RTLD_NOW 11225# define LT_DLLAZY_OR_NOW RTLD_NOW 11226# else 11227# ifdef DL_NOW 11228# define LT_DLLAZY_OR_NOW DL_NOW 11229# else 11230# define LT_DLLAZY_OR_NOW 0 11231# endif 11232# endif 11233# endif 11234# endif 11235#endif 11236 11237#ifdef __cplusplus 11238extern "C" void exit (int); 11239#endif 11240 11241void fnord() { int i=42;} 11242int main () 11243{ 11244 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11245 int status = $lt_dlunknown; 11246 11247 if (self) 11248 { 11249 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11250 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11251 /* dlclose (self); */ 11252 } 11253 else 11254 puts (dlerror ()); 11255 11256 exit (status); 11257} 11258EOF 11259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11260 (eval $ac_link) 2>&5 11261 ac_status=$? 11262 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11263 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 11264 (./conftest; exit; ) >&5 2>/dev/null 11265 lt_status=$? 11266 case x$lt_status in 11267 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11268 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11269 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11270 esac 11271 else : 11272 # compilation failed 11273 lt_cv_dlopen_self_static=no 11274 fi 11275fi 11276rm -fr conftest* 11277 11278 11279fi 11280echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 11281echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 11282 fi 11283 11284 CPPFLAGS="$save_CPPFLAGS" 11285 LDFLAGS="$save_LDFLAGS" 11286 LIBS="$save_LIBS" 11287 ;; 11288 esac 11289 11290 case $lt_cv_dlopen_self in 11291 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11292 *) enable_dlopen_self=unknown ;; 11293 esac 11294 11295 case $lt_cv_dlopen_self_static in 11296 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11297 *) enable_dlopen_self_static=unknown ;; 11298 esac 11299fi 11300 11301 11302# Report which library types will actually be built 11303echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 11304echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 11305echo "$as_me:$LINENO: result: $can_build_shared" >&5 11306echo "${ECHO_T}$can_build_shared" >&6 11307 11308echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 11309echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 11310test "$can_build_shared" = "no" && enable_shared=no 11311 11312# On AIX, shared libraries and static libraries use the same namespace, and 11313# are all built from PIC. 11314case $host_os in 11315aix3*) 11316 test "$enable_shared" = yes && enable_static=no 11317 if test -n "$RANLIB"; then 11318 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11319 postinstall_cmds='$RANLIB $lib' 11320 fi 11321 ;; 11322 11323aix4* | aix5*) 11324 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11325 test "$enable_shared" = yes && enable_static=no 11326 fi 11327 ;; 11328esac 11329echo "$as_me:$LINENO: result: $enable_shared" >&5 11330echo "${ECHO_T}$enable_shared" >&6 11331 11332echo "$as_me:$LINENO: checking whether to build static libraries" >&5 11333echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 11334# Make sure either enable_shared or enable_static is yes. 11335test "$enable_shared" = yes || enable_static=yes 11336echo "$as_me:$LINENO: result: $enable_static" >&5 11337echo "${ECHO_T}$enable_static" >&6 11338 11339# The else clause should only fire when bootstrapping the 11340# libtool distribution, otherwise you forgot to ship ltmain.sh 11341# with your package, and you will get complaints that there are 11342# no rules to generate ltmain.sh. 11343if test -f "$ltmain"; then 11344 # See if we are running on zsh, and set the options which allow our commands through 11345 # without removal of \ escapes. 11346 if test -n "${ZSH_VERSION+set}" ; then 11347 setopt NO_GLOB_SUBST 11348 fi 11349 # Now quote all the things that may contain metacharacters while being 11350 # careful not to overquote the AC_SUBSTed values. We take copies of the 11351 # variables and quote the copies for generation of the libtool script. 11352 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 11353 SED SHELL STRIP \ 11354 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 11355 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 11356 deplibs_check_method reload_flag reload_cmds need_locks \ 11357 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 11358 lt_cv_sys_global_symbol_to_c_name_address \ 11359 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 11360 old_postinstall_cmds old_postuninstall_cmds \ 11361 compiler \ 11362 CC \ 11363 LD \ 11364 lt_prog_compiler_wl \ 11365 lt_prog_compiler_pic \ 11366 lt_prog_compiler_static \ 11367 lt_prog_compiler_no_builtin_flag \ 11368 export_dynamic_flag_spec \ 11369 thread_safe_flag_spec \ 11370 whole_archive_flag_spec \ 11371 enable_shared_with_static_runtimes \ 11372 old_archive_cmds \ 11373 old_archive_from_new_cmds \ 11374 predep_objects \ 11375 postdep_objects \ 11376 predeps \ 11377 postdeps \ 11378 compiler_lib_search_path \ 11379 archive_cmds \ 11380 archive_expsym_cmds \ 11381 postinstall_cmds \ 11382 postuninstall_cmds \ 11383 old_archive_from_expsyms_cmds \ 11384 allow_undefined_flag \ 11385 no_undefined_flag \ 11386 export_symbols_cmds \ 11387 hardcode_libdir_flag_spec \ 11388 hardcode_libdir_flag_spec_ld \ 11389 hardcode_libdir_separator \ 11390 hardcode_automatic \ 11391 module_cmds \ 11392 module_expsym_cmds \ 11393 lt_cv_prog_compiler_c_o \ 11394 exclude_expsyms \ 11395 include_expsyms; do 11396 11397 case $var in 11398 old_archive_cmds | \ 11399 old_archive_from_new_cmds | \ 11400 archive_cmds | \ 11401 archive_expsym_cmds | \ 11402 module_cmds | \ 11403 module_expsym_cmds | \ 11404 old_archive_from_expsyms_cmds | \ 11405 export_symbols_cmds | \ 11406 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 11407 postinstall_cmds | postuninstall_cmds | \ 11408 old_postinstall_cmds | old_postuninstall_cmds | \ 11409 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 11410 # Double-quote double-evaled strings. 11411 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 11412 ;; 11413 *) 11414 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 11415 ;; 11416 esac 11417 done 11418 11419 case $lt_echo in 11420 *'\$0 --fallback-echo"') 11421 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 11422 ;; 11423 esac 11424 11425cfgfile="${ofile}T" 11426 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 11427 $rm -f "$cfgfile" 11428 { echo "$as_me:$LINENO: creating $ofile" >&5 11429echo "$as_me: creating $ofile" >&6;} 11430 11431 cat <<__EOF__ >> "$cfgfile" 11432#! $SHELL 11433 11434# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 11435# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 11436# NOTE: Changes made to this file will be lost: look at ltmain.sh. 11437# 11438# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 11439# Free Software Foundation, Inc. 11440# 11441# This file is part of GNU Libtool: 11442# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 11443# 11444# This program is free software; you can redistribute it and/or modify 11445# it under the terms of the GNU General Public License as published by 11446# the Free Software Foundation; either version 2 of the License, or 11447# (at your option) any later version. 11448# 11449# This program is distributed in the hope that it will be useful, but 11450# WITHOUT ANY WARRANTY; without even the implied warranty of 11451# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 11452# General Public License for more details. 11453# 11454# You should have received a copy of the GNU General Public License 11455# along with this program; if not, write to the Free Software 11456# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 11457# 11458# As a special exception to the GNU General Public License, if you 11459# distribute this file as part of a program that contains a 11460# configuration script generated by Autoconf, you may include it under 11461# the same distribution terms that you use for the rest of that program. 11462 11463# A sed program that does not truncate output. 11464SED=$lt_SED 11465 11466# Sed that helps us avoid accidentally triggering echo(1) options like -n. 11467Xsed="$SED -e 1s/^X//" 11468 11469# The HP-UX ksh and POSIX shell print the target directory to stdout 11470# if CDPATH is set. 11471(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11472 11473# The names of the tagged configurations supported by this script. 11474available_tags= 11475 11476# ### BEGIN LIBTOOL CONFIG 11477 11478# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 11479 11480# Shell to use when invoking shell scripts. 11481SHELL=$lt_SHELL 11482 11483# Whether or not to build shared libraries. 11484build_libtool_libs=$enable_shared 11485 11486# Whether or not to build static libraries. 11487build_old_libs=$enable_static 11488 11489# Whether or not to add -lc for building shared libraries. 11490build_libtool_need_lc=$archive_cmds_need_lc 11491 11492# Whether or not to disallow shared libs when runtime libs are static 11493allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 11494 11495# Whether or not to optimize for fast installation. 11496fast_install=$enable_fast_install 11497 11498# The host system. 11499host_alias=$host_alias 11500host=$host 11501host_os=$host_os 11502 11503# The build system. 11504build_alias=$build_alias 11505build=$build 11506build_os=$build_os 11507 11508# An echo program that does not interpret backslashes. 11509echo=$lt_echo 11510 11511# The archiver. 11512AR=$lt_AR 11513AR_FLAGS=$lt_AR_FLAGS 11514 11515# A C compiler. 11516LTCC=$lt_LTCC 11517 11518# LTCC compiler flags. 11519LTCFLAGS=$lt_LTCFLAGS 11520 11521# A language-specific compiler. 11522CC=$lt_compiler 11523 11524# Is the compiler the GNU C compiler? 11525with_gcc=$GCC 11526 11527# An ERE matcher. 11528EGREP=$lt_EGREP 11529 11530# The linker used to build libraries. 11531LD=$lt_LD 11532 11533# Whether we need hard or soft links. 11534LN_S=$lt_LN_S 11535 11536# A BSD-compatible nm program. 11537NM=$lt_NM 11538 11539# A symbol stripping program 11540STRIP=$lt_STRIP 11541 11542# Used to examine libraries when file_magic_cmd begins "file" 11543MAGIC_CMD=$MAGIC_CMD 11544 11545# Used on cygwin: DLL creation program. 11546DLLTOOL="$DLLTOOL" 11547 11548# Used on cygwin: object dumper. 11549OBJDUMP="$OBJDUMP" 11550 11551# Used on cygwin: assembler. 11552AS="$AS" 11553 11554# The name of the directory that contains temporary libtool files. 11555objdir=$objdir 11556 11557# How to create reloadable object files. 11558reload_flag=$lt_reload_flag 11559reload_cmds=$lt_reload_cmds 11560 11561# How to pass a linker flag through the compiler. 11562wl=$lt_lt_prog_compiler_wl 11563 11564# Object file suffix (normally "o"). 11565objext="$ac_objext" 11566 11567# Old archive suffix (normally "a"). 11568libext="$libext" 11569 11570# Shared library suffix (normally ".so"). 11571shrext_cmds='$shrext_cmds' 11572 11573# Executable file suffix (normally ""). 11574exeext="$exeext" 11575 11576# Additional compiler flags for building library objects. 11577pic_flag=$lt_lt_prog_compiler_pic 11578pic_mode=$pic_mode 11579 11580# What is the maximum length of a command? 11581max_cmd_len=$lt_cv_sys_max_cmd_len 11582 11583# Does compiler simultaneously support -c and -o options? 11584compiler_c_o=$lt_lt_cv_prog_compiler_c_o 11585 11586# Must we lock files when doing compilation? 11587need_locks=$lt_need_locks 11588 11589# Do we need the lib prefix for modules? 11590need_lib_prefix=$need_lib_prefix 11591 11592# Do we need a version for libraries? 11593need_version=$need_version 11594 11595# Whether dlopen is supported. 11596dlopen_support=$enable_dlopen 11597 11598# Whether dlopen of programs is supported. 11599dlopen_self=$enable_dlopen_self 11600 11601# Whether dlopen of statically linked programs is supported. 11602dlopen_self_static=$enable_dlopen_self_static 11603 11604# Compiler flag to prevent dynamic linking. 11605link_static_flag=$lt_lt_prog_compiler_static 11606 11607# Compiler flag to turn off builtin functions. 11608no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 11609 11610# Compiler flag to allow reflexive dlopens. 11611export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 11612 11613# Compiler flag to generate shared objects directly from archives. 11614whole_archive_flag_spec=$lt_whole_archive_flag_spec 11615 11616# Compiler flag to generate thread-safe objects. 11617thread_safe_flag_spec=$lt_thread_safe_flag_spec 11618 11619# Library versioning type. 11620version_type=$version_type 11621 11622# Format of library name prefix. 11623libname_spec=$lt_libname_spec 11624 11625# List of archive names. First name is the real one, the rest are links. 11626# The last name is the one that the linker finds with -lNAME. 11627library_names_spec=$lt_library_names_spec 11628 11629# The coded name of the library, if different from the real name. 11630soname_spec=$lt_soname_spec 11631 11632# Commands used to build and install an old-style archive. 11633RANLIB=$lt_RANLIB 11634old_archive_cmds=$lt_old_archive_cmds 11635old_postinstall_cmds=$lt_old_postinstall_cmds 11636old_postuninstall_cmds=$lt_old_postuninstall_cmds 11637 11638# Create an old-style archive from a shared archive. 11639old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 11640 11641# Create a temporary old-style archive to link instead of a shared archive. 11642old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 11643 11644# Commands used to build and install a shared archive. 11645archive_cmds=$lt_archive_cmds 11646archive_expsym_cmds=$lt_archive_expsym_cmds 11647postinstall_cmds=$lt_postinstall_cmds 11648postuninstall_cmds=$lt_postuninstall_cmds 11649 11650# Commands used to build a loadable module (assumed same as above if empty) 11651module_cmds=$lt_module_cmds 11652module_expsym_cmds=$lt_module_expsym_cmds 11653 11654# Commands to strip libraries. 11655old_striplib=$lt_old_striplib 11656striplib=$lt_striplib 11657 11658# Dependencies to place before the objects being linked to create a 11659# shared library. 11660predep_objects=$lt_predep_objects 11661 11662# Dependencies to place after the objects being linked to create a 11663# shared library. 11664postdep_objects=$lt_postdep_objects 11665 11666# Dependencies to place before the objects being linked to create a 11667# shared library. 11668predeps=$lt_predeps 11669 11670# Dependencies to place after the objects being linked to create a 11671# shared library. 11672postdeps=$lt_postdeps 11673 11674# The library search path used internally by the compiler when linking 11675# a shared library. 11676compiler_lib_search_path=$lt_compiler_lib_search_path 11677 11678# Method to check whether dependent libraries are shared objects. 11679deplibs_check_method=$lt_deplibs_check_method 11680 11681# Command to use when deplibs_check_method == file_magic. 11682file_magic_cmd=$lt_file_magic_cmd 11683 11684# Flag that allows shared libraries with undefined symbols to be built. 11685allow_undefined_flag=$lt_allow_undefined_flag 11686 11687# Flag that forces no undefined symbols. 11688no_undefined_flag=$lt_no_undefined_flag 11689 11690# Commands used to finish a libtool library installation in a directory. 11691finish_cmds=$lt_finish_cmds 11692 11693# Same as above, but a single script fragment to be evaled but not shown. 11694finish_eval=$lt_finish_eval 11695 11696# Take the output of nm and produce a listing of raw symbols and C names. 11697global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 11698 11699# Transform the output of nm in a proper C declaration 11700global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 11701 11702# Transform the output of nm in a C name address pair 11703global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 11704 11705# This is the shared library runtime path variable. 11706runpath_var=$runpath_var 11707 11708# This is the shared library path variable. 11709shlibpath_var=$shlibpath_var 11710 11711# Is shlibpath searched before the hard-coded library search path? 11712shlibpath_overrides_runpath=$shlibpath_overrides_runpath 11713 11714# How to hardcode a shared library path into an executable. 11715hardcode_action=$hardcode_action 11716 11717# Whether we should hardcode library paths into libraries. 11718hardcode_into_libs=$hardcode_into_libs 11719 11720# Flag to hardcode \$libdir into a binary during linking. 11721# This must work even if \$libdir does not exist. 11722hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 11723 11724# If ld is used when linking, flag to hardcode \$libdir into 11725# a binary during linking. This must work even if \$libdir does 11726# not exist. 11727hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 11728 11729# Whether we need a single -rpath flag with a separated argument. 11730hardcode_libdir_separator=$lt_hardcode_libdir_separator 11731 11732# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 11733# resulting binary. 11734hardcode_direct=$hardcode_direct 11735 11736# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 11737# resulting binary. 11738hardcode_minus_L=$hardcode_minus_L 11739 11740# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 11741# the resulting binary. 11742hardcode_shlibpath_var=$hardcode_shlibpath_var 11743 11744# Set to yes if building a shared library automatically hardcodes DIR into the library 11745# and all subsequent libraries and executables linked against it. 11746hardcode_automatic=$hardcode_automatic 11747 11748# Variables whose values should be saved in libtool wrapper scripts and 11749# restored at relink time. 11750variables_saved_for_relink="$variables_saved_for_relink" 11751 11752# Whether libtool must link a program against all its dependency libraries. 11753link_all_deplibs=$link_all_deplibs 11754 11755# Compile-time system search path for libraries 11756sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 11757 11758# Run-time system search path for libraries 11759sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 11760 11761# Fix the shell variable \$srcfile for the compiler. 11762fix_srcfile_path="$fix_srcfile_path" 11763 11764# Set to yes if exported symbols are required. 11765always_export_symbols=$always_export_symbols 11766 11767# The commands to list exported symbols. 11768export_symbols_cmds=$lt_export_symbols_cmds 11769 11770# The commands to extract the exported symbol list from a shared archive. 11771extract_expsyms_cmds=$lt_extract_expsyms_cmds 11772 11773# Symbols that should not be listed in the preloaded symbols. 11774exclude_expsyms=$lt_exclude_expsyms 11775 11776# Symbols that must always be exported. 11777include_expsyms=$lt_include_expsyms 11778 11779# ### END LIBTOOL CONFIG 11780 11781__EOF__ 11782 11783 11784 case $host_os in 11785 aix3*) 11786 cat <<\EOF >> "$cfgfile" 11787 11788# AIX sometimes has problems with the GCC collect2 program. For some 11789# reason, if we set the COLLECT_NAMES environment variable, the problems 11790# vanish in a puff of smoke. 11791if test "X${COLLECT_NAMES+set}" != Xset; then 11792 COLLECT_NAMES= 11793 export COLLECT_NAMES 11794fi 11795EOF 11796 ;; 11797 esac 11798 11799 # We use sed instead of cat because bash on DJGPP gets confused if 11800 # if finds mixed CR/LF and LF-only lines. Since sed operates in 11801 # text mode, it properly converts lines to CR/LF. This bash problem 11802 # is reportedly fixed, but why not run on old versions too? 11803 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 11804 11805 mv -f "$cfgfile" "$ofile" || \ 11806 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 11807 chmod +x "$ofile" 11808 11809else 11810 # If there is no Makefile yet, we rely on a make rule to execute 11811 # `config.status --recheck' to rerun these tests and create the 11812 # libtool script then. 11813 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 11814 if test -f "$ltmain_in"; then 11815 test -f Makefile && make "$ltmain" 11816 fi 11817fi 11818 11819 11820ac_ext=c 11821ac_cpp='$CPP $CPPFLAGS' 11822ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11823ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11824ac_compiler_gnu=$ac_cv_c_compiler_gnu 11825 11826CC="$lt_save_CC" 11827 11828 11829# Check whether --with-tags or --without-tags was given. 11830if test "${with_tags+set}" = set; then 11831 withval="$with_tags" 11832 tagnames="$withval" 11833fi; 11834 11835if test -f "$ltmain" && test -n "$tagnames"; then 11836 if test ! -f "${ofile}"; then 11837 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 11838echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 11839 fi 11840 11841 if test -z "$LTCC"; then 11842 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 11843 if test -z "$LTCC"; then 11844 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 11845echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 11846 else 11847 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 11848echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 11849 fi 11850 fi 11851 if test -z "$LTCFLAGS"; then 11852 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 11853 fi 11854 11855 # Extract list of available tagged configurations in $ofile. 11856 # Note that this assumes the entire list is on one line. 11857 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 11858 11859 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 11860 for tagname in $tagnames; do 11861 IFS="$lt_save_ifs" 11862 # Check whether tagname contains only valid characters 11863 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 11864 "") ;; 11865 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 11866echo "$as_me: error: invalid tag name: $tagname" >&2;} 11867 { (exit 1); exit 1; }; } 11868 ;; 11869 esac 11870 11871 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 11872 then 11873 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 11874echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 11875 { (exit 1); exit 1; }; } 11876 fi 11877 11878 # Update the list of available tags. 11879 if test -n "$tagname"; then 11880 echo appending configuration tag \"$tagname\" to $ofile 11881 11882 case $tagname in 11883 CXX) 11884 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 11885 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 11886 (test "X$CXX" != "Xg++"))) ; then 11887 ac_ext=cc 11888ac_cpp='$CXXCPP $CPPFLAGS' 11889ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11890ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11891ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11892 11893 11894 11895 11896archive_cmds_need_lc_CXX=no 11897allow_undefined_flag_CXX= 11898always_export_symbols_CXX=no 11899archive_expsym_cmds_CXX= 11900export_dynamic_flag_spec_CXX= 11901hardcode_direct_CXX=no 11902hardcode_libdir_flag_spec_CXX= 11903hardcode_libdir_flag_spec_ld_CXX= 11904hardcode_libdir_separator_CXX= 11905hardcode_minus_L_CXX=no 11906hardcode_shlibpath_var_CXX=unsupported 11907hardcode_automatic_CXX=no 11908module_cmds_CXX= 11909module_expsym_cmds_CXX= 11910link_all_deplibs_CXX=unknown 11911old_archive_cmds_CXX=$old_archive_cmds 11912no_undefined_flag_CXX= 11913whole_archive_flag_spec_CXX= 11914enable_shared_with_static_runtimes_CXX=no 11915 11916# Dependencies to place before and after the object being linked: 11917predep_objects_CXX= 11918postdep_objects_CXX= 11919predeps_CXX= 11920postdeps_CXX= 11921compiler_lib_search_path_CXX= 11922 11923# Source file extension for C++ test sources. 11924ac_ext=cpp 11925 11926# Object file extension for compiled C++ test sources. 11927objext=o 11928objext_CXX=$objext 11929 11930# Code to be used in simple compile tests 11931lt_simple_compile_test_code="int some_variable = 0;\n" 11932 11933# Code to be used in simple link tests 11934lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' 11935 11936# ltmain only uses $CC for tagged configurations so make sure $CC is set. 11937 11938# If no C compiler was specified, use CC. 11939LTCC=${LTCC-"$CC"} 11940 11941# If no C compiler flags were specified, use CFLAGS. 11942LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11943 11944# Allow CC to be a program name with arguments. 11945compiler=$CC 11946 11947 11948# save warnings/boilerplate of simple test code 11949ac_outfile=conftest.$ac_objext 11950printf "$lt_simple_compile_test_code" >conftest.$ac_ext 11951eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11952_lt_compiler_boilerplate=`cat conftest.err` 11953$rm conftest* 11954 11955ac_outfile=conftest.$ac_objext 11956printf "$lt_simple_link_test_code" >conftest.$ac_ext 11957eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11958_lt_linker_boilerplate=`cat conftest.err` 11959$rm conftest* 11960 11961 11962# Allow CC to be a program name with arguments. 11963lt_save_CC=$CC 11964lt_save_LD=$LD 11965lt_save_GCC=$GCC 11966GCC=$GXX 11967lt_save_with_gnu_ld=$with_gnu_ld 11968lt_save_path_LD=$lt_cv_path_LD 11969if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 11970 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 11971else 11972 $as_unset lt_cv_prog_gnu_ld 11973fi 11974if test -n "${lt_cv_path_LDCXX+set}"; then 11975 lt_cv_path_LD=$lt_cv_path_LDCXX 11976else 11977 $as_unset lt_cv_path_LD 11978fi 11979test -z "${LDCXX+set}" || LD=$LDCXX 11980CC=${CXX-"c++"} 11981compiler=$CC 11982compiler_CXX=$CC 11983for cc_temp in $compiler""; do 11984 case $cc_temp in 11985 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11986 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11987 \-*) ;; 11988 *) break;; 11989 esac 11990done 11991cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 11992 11993 11994# We don't want -fno-exception wen compiling C++ code, so set the 11995# no_builtin_flag separately 11996if test "$GXX" = yes; then 11997 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 11998else 11999 lt_prog_compiler_no_builtin_flag_CXX= 12000fi 12001 12002if test "$GXX" = yes; then 12003 # Set up default GNU C++ configuration 12004 12005 12006# Check whether --with-gnu-ld or --without-gnu-ld was given. 12007if test "${with_gnu_ld+set}" = set; then 12008 withval="$with_gnu_ld" 12009 test "$withval" = no || with_gnu_ld=yes 12010else 12011 with_gnu_ld=no 12012fi; 12013ac_prog=ld 12014if test "$GCC" = yes; then 12015 # Check if gcc -print-prog-name=ld gives a path. 12016 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 12017echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 12018 case $host in 12019 *-*-mingw*) 12020 # gcc leaves a trailing carriage return which upsets mingw 12021 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 12022 *) 12023 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 12024 esac 12025 case $ac_prog in 12026 # Accept absolute paths. 12027 [\\/]* | ?:[\\/]*) 12028 re_direlt='/[^/][^/]*/\.\./' 12029 # Canonicalize the pathname of ld 12030 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 12031 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 12032 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 12033 done 12034 test -z "$LD" && LD="$ac_prog" 12035 ;; 12036 "") 12037 # If it fails, then pretend we aren't using GCC. 12038 ac_prog=ld 12039 ;; 12040 *) 12041 # If it is relative, then search for the first ld in PATH. 12042 with_gnu_ld=unknown 12043 ;; 12044 esac 12045elif test "$with_gnu_ld" = yes; then 12046 echo "$as_me:$LINENO: checking for GNU ld" >&5 12047echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 12048else 12049 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 12050echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 12051fi 12052if test "${lt_cv_path_LD+set}" = set; then 12053 echo $ECHO_N "(cached) $ECHO_C" >&6 12054else 12055 if test -z "$LD"; then 12056 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 12057 for ac_dir in $PATH; do 12058 IFS="$lt_save_ifs" 12059 test -z "$ac_dir" && ac_dir=. 12060 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12061 lt_cv_path_LD="$ac_dir/$ac_prog" 12062 # Check to see if the program is GNU ld. I'd rather use --version, 12063 # but apparently some variants of GNU ld only accept -v. 12064 # Break only if it was the GNU/non-GNU ld that we prefer. 12065 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 12066 *GNU* | *'with BFD'*) 12067 test "$with_gnu_ld" != no && break 12068 ;; 12069 *) 12070 test "$with_gnu_ld" != yes && break 12071 ;; 12072 esac 12073 fi 12074 done 12075 IFS="$lt_save_ifs" 12076else 12077 lt_cv_path_LD="$LD" # Let the user override the test with a path. 12078fi 12079fi 12080 12081LD="$lt_cv_path_LD" 12082if test -n "$LD"; then 12083 echo "$as_me:$LINENO: result: $LD" >&5 12084echo "${ECHO_T}$LD" >&6 12085else 12086 echo "$as_me:$LINENO: result: no" >&5 12087echo "${ECHO_T}no" >&6 12088fi 12089test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 12090echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 12091 { (exit 1); exit 1; }; } 12092echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 12093echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 12094if test "${lt_cv_prog_gnu_ld+set}" = set; then 12095 echo $ECHO_N "(cached) $ECHO_C" >&6 12096else 12097 # I'd rather use --version here, but apparently some GNU lds only accept -v. 12098case `$LD -v 2>&1 </dev/null` in 12099*GNU* | *'with BFD'*) 12100 lt_cv_prog_gnu_ld=yes 12101 ;; 12102*) 12103 lt_cv_prog_gnu_ld=no 12104 ;; 12105esac 12106fi 12107echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 12108echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 12109with_gnu_ld=$lt_cv_prog_gnu_ld 12110 12111 12112 12113 # Check if GNU C++ uses GNU ld as the underlying linker, since the 12114 # archiving commands below assume that GNU ld is being used. 12115 if test "$with_gnu_ld" = yes; then 12116 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12117 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' 12118 12119 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 12120 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12121 12122 # If archive_cmds runs LD, not CC, wlarc should be empty 12123 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 12124 # investigate it a little bit more. (MM) 12125 wlarc='${wl}' 12126 12127 # ancient GNU ld didn't support --whole-archive et. al. 12128 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 12129 grep 'no-whole-archive' > /dev/null; then 12130 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12131 else 12132 whole_archive_flag_spec_CXX= 12133 fi 12134 else 12135 with_gnu_ld=no 12136 wlarc= 12137 12138 # A generic and very simple default shared library creation 12139 # command for GNU C++ for the case where it uses the native 12140 # linker, instead of GNU ld. If possible, this setting should 12141 # overridden to take advantage of the native linker features on 12142 # the platform it is being used on. 12143 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12144 fi 12145 12146 # Commands to make compiler produce verbose output that lists 12147 # what "hidden" libraries, object files and flags are used when 12148 # linking a shared library. 12149 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12150 12151else 12152 GXX=no 12153 with_gnu_ld=no 12154 wlarc= 12155fi 12156 12157# PORTME: fill in a description of your system's C++ link characteristics 12158echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12159echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 12160ld_shlibs_CXX=yes 12161case $host_os in 12162 aix3*) 12163 # FIXME: insert proper C++ library support 12164 ld_shlibs_CXX=no 12165 ;; 12166 aix4* | aix5*) 12167 if test "$host_cpu" = ia64; then 12168 # On IA64, the linker does run time linking by default, so we don't 12169 # have to do anything special. 12170 aix_use_runtimelinking=no 12171 exp_sym_flag='-Bexport' 12172 no_entry_flag="" 12173 else 12174 aix_use_runtimelinking=no 12175 12176 # Test if we are trying to use run time linking or normal 12177 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 12178 # need to do runtime linking. 12179 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 12180 for ld_flag in $LDFLAGS; do 12181 case $ld_flag in 12182 *-brtl*) 12183 aix_use_runtimelinking=yes 12184 break 12185 ;; 12186 esac 12187 done 12188 ;; 12189 esac 12190 12191 exp_sym_flag='-bexport' 12192 no_entry_flag='-bnoentry' 12193 fi 12194 12195 # When large executables or shared objects are built, AIX ld can 12196 # have problems creating the table of contents. If linking a library 12197 # or program results in "error TOC overflow" add -mminimal-toc to 12198 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 12199 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 12200 12201 archive_cmds_CXX='' 12202 hardcode_direct_CXX=yes 12203 hardcode_libdir_separator_CXX=':' 12204 link_all_deplibs_CXX=yes 12205 12206 if test "$GXX" = yes; then 12207 case $host_os in aix4.[012]|aix4.[012].*) 12208 # We only want to do this on AIX 4.2 and lower, the check 12209 # below for broken collect2 doesn't work under 4.3+ 12210 collect2name=`${CC} -print-prog-name=collect2` 12211 if test -f "$collect2name" && \ 12212 strings "$collect2name" | grep resolve_lib_name >/dev/null 12213 then 12214 # We have reworked collect2 12215 hardcode_direct_CXX=yes 12216 else 12217 # We have old collect2 12218 hardcode_direct_CXX=unsupported 12219 # It fails to find uninstalled libraries when the uninstalled 12220 # path is not listed in the libpath. Setting hardcode_minus_L 12221 # to unsupported forces relinking 12222 hardcode_minus_L_CXX=yes 12223 hardcode_libdir_flag_spec_CXX='-L$libdir' 12224 hardcode_libdir_separator_CXX= 12225 fi 12226 ;; 12227 esac 12228 shared_flag='-shared' 12229 if test "$aix_use_runtimelinking" = yes; then 12230 shared_flag="$shared_flag "'${wl}-G' 12231 fi 12232 else 12233 # not using gcc 12234 if test "$host_cpu" = ia64; then 12235 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12236 # chokes on -Wl,-G. The following line is correct: 12237 shared_flag='-G' 12238 else 12239 if test "$aix_use_runtimelinking" = yes; then 12240 shared_flag='${wl}-G' 12241 else 12242 shared_flag='${wl}-bM:SRE' 12243 fi 12244 fi 12245 fi 12246 12247 # It seems that -bexpall does not export symbols beginning with 12248 # underscore (_), so it is better to generate a list of symbols to export. 12249 always_export_symbols_CXX=yes 12250 if test "$aix_use_runtimelinking" = yes; then 12251 # Warning - without using the other runtime loading flags (-brtl), 12252 # -berok will link without error, but may produce a broken library. 12253 allow_undefined_flag_CXX='-berok' 12254 # Determine the default libpath from the value encoded in an empty executable. 12255 cat >conftest.$ac_ext <<_ACEOF 12256/* confdefs.h. */ 12257_ACEOF 12258cat confdefs.h >>conftest.$ac_ext 12259cat >>conftest.$ac_ext <<_ACEOF 12260/* end confdefs.h. */ 12261 12262int 12263main () 12264{ 12265 12266 ; 12267 return 0; 12268} 12269_ACEOF 12270rm -f conftest.$ac_objext conftest$ac_exeext 12271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12272 (eval $ac_link) 2>conftest.er1 12273 ac_status=$? 12274 grep -v '^ *+' conftest.er1 >conftest.err 12275 rm -f conftest.er1 12276 cat conftest.err >&5 12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12278 (exit $ac_status); } && 12279 { ac_try='test -z "$ac_cxx_werror_flag" 12280 || test ! -s conftest.err' 12281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12282 (eval $ac_try) 2>&5 12283 ac_status=$? 12284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12285 (exit $ac_status); }; } && 12286 { ac_try='test -s conftest$ac_exeext' 12287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12288 (eval $ac_try) 2>&5 12289 ac_status=$? 12290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12291 (exit $ac_status); }; }; then 12292 12293aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 12294}'` 12295# Check for a 64-bit object if we didn't find anything. 12296if 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; } 12297}'`; fi 12298else 12299 echo "$as_me: failed program was:" >&5 12300sed 's/^/| /' conftest.$ac_ext >&5 12301 12302fi 12303rm -f conftest.err conftest.$ac_objext \ 12304 conftest$ac_exeext conftest.$ac_ext 12305if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 12306 12307 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12308 12309 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" 12310 else 12311 if test "$host_cpu" = ia64; then 12312 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 12313 allow_undefined_flag_CXX="-z nodefs" 12314 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" 12315 else 12316 # Determine the default libpath from the value encoded in an empty executable. 12317 cat >conftest.$ac_ext <<_ACEOF 12318/* confdefs.h. */ 12319_ACEOF 12320cat confdefs.h >>conftest.$ac_ext 12321cat >>conftest.$ac_ext <<_ACEOF 12322/* end confdefs.h. */ 12323 12324int 12325main () 12326{ 12327 12328 ; 12329 return 0; 12330} 12331_ACEOF 12332rm -f conftest.$ac_objext conftest$ac_exeext 12333if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12334 (eval $ac_link) 2>conftest.er1 12335 ac_status=$? 12336 grep -v '^ *+' conftest.er1 >conftest.err 12337 rm -f conftest.er1 12338 cat conftest.err >&5 12339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12340 (exit $ac_status); } && 12341 { ac_try='test -z "$ac_cxx_werror_flag" 12342 || test ! -s conftest.err' 12343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12344 (eval $ac_try) 2>&5 12345 ac_status=$? 12346 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12347 (exit $ac_status); }; } && 12348 { ac_try='test -s conftest$ac_exeext' 12349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12350 (eval $ac_try) 2>&5 12351 ac_status=$? 12352 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12353 (exit $ac_status); }; }; then 12354 12355aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 12356}'` 12357# Check for a 64-bit object if we didn't find anything. 12358if 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; } 12359}'`; fi 12360else 12361 echo "$as_me: failed program was:" >&5 12362sed 's/^/| /' conftest.$ac_ext >&5 12363 12364fi 12365rm -f conftest.err conftest.$ac_objext \ 12366 conftest$ac_exeext conftest.$ac_ext 12367if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 12368 12369 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12370 # Warning - without using the other run time loading flags, 12371 # -berok will link without error, but may produce a broken library. 12372 no_undefined_flag_CXX=' ${wl}-bernotok' 12373 allow_undefined_flag_CXX=' ${wl}-berok' 12374 # Exported symbols can be pulled into shared objects from archives 12375 whole_archive_flag_spec_CXX='$convenience' 12376 archive_cmds_need_lc_CXX=yes 12377 # This is similar to how AIX traditionally builds its shared libraries. 12378 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' 12379 fi 12380 fi 12381 ;; 12382 12383 beos*) 12384 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 12385 allow_undefined_flag_CXX=unsupported 12386 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 12387 # support --undefined. This deserves some investigation. FIXME 12388 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12389 else 12390 ld_shlibs_CXX=no 12391 fi 12392 ;; 12393 12394 chorus*) 12395 case $cc_basename in 12396 *) 12397 # FIXME: insert proper C++ library support 12398 ld_shlibs_CXX=no 12399 ;; 12400 esac 12401 ;; 12402 12403 cygwin* | mingw* | pw32*) 12404 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 12405 # as there is no search path for DLLs. 12406 hardcode_libdir_flag_spec_CXX='-L$libdir' 12407 allow_undefined_flag_CXX=unsupported 12408 always_export_symbols_CXX=no 12409 enable_shared_with_static_runtimes_CXX=yes 12410 12411 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 12412 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' 12413 # If the export-symbols file already is a .def file (1st line 12414 # is EXPORTS), use it as is; otherwise, prepend... 12415 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12416 cp $export_symbols $output_objdir/$soname.def; 12417 else 12418 echo EXPORTS > $output_objdir/$soname.def; 12419 cat $export_symbols >> $output_objdir/$soname.def; 12420 fi~ 12421 $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' 12422 else 12423 ld_shlibs_CXX=no 12424 fi 12425 ;; 12426 darwin* | rhapsody*) 12427 case $host_os in 12428 rhapsody* | darwin1.[012]) 12429 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 12430 ;; 12431 *) # Darwin 1.3 on 12432 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 12433 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 12434 else 12435 case ${MACOSX_DEPLOYMENT_TARGET} in 12436 10.[012]) 12437 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 12438 ;; 12439 10.*) 12440 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 12441 ;; 12442 esac 12443 fi 12444 ;; 12445 esac 12446 archive_cmds_need_lc_CXX=no 12447 hardcode_direct_CXX=no 12448 hardcode_automatic_CXX=yes 12449 hardcode_shlibpath_var_CXX=unsupported 12450 whole_archive_flag_spec_CXX='' 12451 link_all_deplibs_CXX=yes 12452 12453 if test "$GXX" = yes ; then 12454 lt_int_apple_cc_single_mod=no 12455 output_verbose_link_cmd='echo' 12456 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 12457 lt_int_apple_cc_single_mod=yes 12458 fi 12459 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 12460 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 12461 else 12462 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' 12463 fi 12464 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 12465 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 12466 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 12467 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}' 12468 else 12469 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}' 12470 fi 12471 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}' 12472 else 12473 case $cc_basename in 12474 xlc*) 12475 output_verbose_link_cmd='echo' 12476 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' 12477 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 12478 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 12479 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}' 12480 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}' 12481 ;; 12482 *) 12483 ld_shlibs_CXX=no 12484 ;; 12485 esac 12486 fi 12487 ;; 12488 12489 dgux*) 12490 case $cc_basename in 12491 ec++*) 12492 # FIXME: insert proper C++ library support 12493 ld_shlibs_CXX=no 12494 ;; 12495 ghcx*) 12496 # Green Hills C++ Compiler 12497 # FIXME: insert proper C++ library support 12498 ld_shlibs_CXX=no 12499 ;; 12500 *) 12501 # FIXME: insert proper C++ library support 12502 ld_shlibs_CXX=no 12503 ;; 12504 esac 12505 ;; 12506 freebsd[12]*) 12507 # C++ shared libraries reported to be fairly broken before switch to ELF 12508 ld_shlibs_CXX=no 12509 ;; 12510 freebsd-elf*) 12511 archive_cmds_need_lc_CXX=no 12512 ;; 12513 freebsd* | kfreebsd*-gnu | dragonfly*) 12514 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 12515 # conventions 12516 ld_shlibs_CXX=yes 12517 ;; 12518 gnu*) 12519 ;; 12520 hpux9*) 12521 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12522 hardcode_libdir_separator_CXX=: 12523 export_dynamic_flag_spec_CXX='${wl}-E' 12524 hardcode_direct_CXX=yes 12525 hardcode_minus_L_CXX=yes # Not in the search PATH, 12526 # but as the default 12527 # location of the library. 12528 12529 case $cc_basename in 12530 CC*) 12531 # FIXME: insert proper C++ library support 12532 ld_shlibs_CXX=no 12533 ;; 12534 aCC*) 12535 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' 12536 # Commands to make compiler produce verbose output that lists 12537 # what "hidden" libraries, object files and flags are used when 12538 # linking a shared library. 12539 # 12540 # There doesn't appear to be a way to prevent this compiler from 12541 # explicitly linking system object files so we need to strip them 12542 # from the output so that they don't get included in the library 12543 # dependencies. 12544 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' 12545 ;; 12546 *) 12547 if test "$GXX" = yes; then 12548 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' 12549 else 12550 # FIXME: insert proper C++ library support 12551 ld_shlibs_CXX=no 12552 fi 12553 ;; 12554 esac 12555 ;; 12556 hpux10*|hpux11*) 12557 if test $with_gnu_ld = no; then 12558 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12559 hardcode_libdir_separator_CXX=: 12560 12561 case $host_cpu in 12562 hppa*64*|ia64*) 12563 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 12564 ;; 12565 *) 12566 export_dynamic_flag_spec_CXX='${wl}-E' 12567 ;; 12568 esac 12569 fi 12570 case $host_cpu in 12571 hppa*64*|ia64*) 12572 hardcode_direct_CXX=no 12573 hardcode_shlibpath_var_CXX=no 12574 ;; 12575 *) 12576 hardcode_direct_CXX=yes 12577 hardcode_minus_L_CXX=yes # Not in the search PATH, 12578 # but as the default 12579 # location of the library. 12580 ;; 12581 esac 12582 12583 case $cc_basename in 12584 CC*) 12585 # FIXME: insert proper C++ library support 12586 ld_shlibs_CXX=no 12587 ;; 12588 aCC*) 12589 case $host_cpu in 12590 hppa*64*) 12591 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12592 ;; 12593 ia64*) 12594 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12595 ;; 12596 *) 12597 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12598 ;; 12599 esac 12600 # Commands to make compiler produce verbose output that lists 12601 # what "hidden" libraries, object files and flags are used when 12602 # linking a shared library. 12603 # 12604 # There doesn't appear to be a way to prevent this compiler from 12605 # explicitly linking system object files so we need to strip them 12606 # from the output so that they don't get included in the library 12607 # dependencies. 12608 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' 12609 ;; 12610 *) 12611 if test "$GXX" = yes; then 12612 if test $with_gnu_ld = no; then 12613 case $host_cpu in 12614 hppa*64*) 12615 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12616 ;; 12617 ia64*) 12618 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12619 ;; 12620 *) 12621 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' 12622 ;; 12623 esac 12624 fi 12625 else 12626 # FIXME: insert proper C++ library support 12627 ld_shlibs_CXX=no 12628 fi 12629 ;; 12630 esac 12631 ;; 12632 interix3*) 12633 hardcode_direct_CXX=no 12634 hardcode_shlibpath_var_CXX=no 12635 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12636 export_dynamic_flag_spec_CXX='${wl}-E' 12637 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 12638 # Instead, shared libraries are loaded at an image base (0x10000000 by 12639 # default) and relocated if they conflict, which is a slow very memory 12640 # consuming and fragmenting process. To avoid this, we pick a random, 12641 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 12642 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 12643 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' 12644 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' 12645 ;; 12646 irix5* | irix6*) 12647 case $cc_basename in 12648 CC*) 12649 # SGI C++ 12650 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' 12651 12652 # Archives containing C++ object files must be created using 12653 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 12654 # necessary to make sure instantiated templates are included 12655 # in the archive. 12656 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 12657 ;; 12658 *) 12659 if test "$GXX" = yes; then 12660 if test "$with_gnu_ld" = no; then 12661 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' 12662 else 12663 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' 12664 fi 12665 fi 12666 link_all_deplibs_CXX=yes 12667 ;; 12668 esac 12669 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12670 hardcode_libdir_separator_CXX=: 12671 ;; 12672 linux*) 12673 case $cc_basename in 12674 KCC*) 12675 # Kuck and Associates, Inc. (KAI) C++ Compiler 12676 12677 # KCC will only create a shared library if the output file 12678 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12679 # to its proper name (with version) after linking. 12680 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' 12681 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' 12682 # Commands to make compiler produce verbose output that lists 12683 # what "hidden" libraries, object files and flags are used when 12684 # linking a shared library. 12685 # 12686 # There doesn't appear to be a way to prevent this compiler from 12687 # explicitly linking system object files so we need to strip them 12688 # from the output so that they don't get included in the library 12689 # dependencies. 12690 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' 12691 12692 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 12693 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12694 12695 # Archives containing C++ object files must be created using 12696 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12697 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12698 ;; 12699 icpc*) 12700 # Intel C++ 12701 with_gnu_ld=yes 12702 # version 8.0 and above of icpc choke on multiply defined symbols 12703 # if we add $predep_objects and $postdep_objects, however 7.1 and 12704 # earlier do not add the objects themselves. 12705 case `$CC -V 2>&1` in 12706 *"Version 7."*) 12707 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12708 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' 12709 ;; 12710 *) # Version 8.0 or newer 12711 tmp_idyn= 12712 case $host_cpu in 12713 ia64*) tmp_idyn=' -i_dynamic';; 12714 esac 12715 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12716 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' 12717 ;; 12718 esac 12719 archive_cmds_need_lc_CXX=no 12720 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12721 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12722 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12723 ;; 12724 pgCC*) 12725 # Portland Group C++ compiler 12726 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12727 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' 12728 12729 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 12730 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12731 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' 12732 ;; 12733 cxx*) 12734 # Compaq C++ 12735 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12736 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' 12737 12738 runpath_var=LD_RUN_PATH 12739 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12740 hardcode_libdir_separator_CXX=: 12741 12742 # Commands to make compiler produce verbose output that lists 12743 # what "hidden" libraries, object files and flags are used when 12744 # linking a shared library. 12745 # 12746 # There doesn't appear to be a way to prevent this compiler from 12747 # explicitly linking system object files so we need to strip them 12748 # from the output so that they don't get included in the library 12749 # dependencies. 12750 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' 12751 ;; 12752 esac 12753 ;; 12754 lynxos*) 12755 # FIXME: insert proper C++ library support 12756 ld_shlibs_CXX=no 12757 ;; 12758 m88k*) 12759 # FIXME: insert proper C++ library support 12760 ld_shlibs_CXX=no 12761 ;; 12762 mvs*) 12763 case $cc_basename in 12764 cxx*) 12765 # FIXME: insert proper C++ library support 12766 ld_shlibs_CXX=no 12767 ;; 12768 *) 12769 # FIXME: insert proper C++ library support 12770 ld_shlibs_CXX=no 12771 ;; 12772 esac 12773 ;; 12774 netbsd*) 12775 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12776 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 12777 wlarc= 12778 hardcode_libdir_flag_spec_CXX='-R$libdir' 12779 hardcode_direct_CXX=yes 12780 hardcode_shlibpath_var_CXX=no 12781 fi 12782 # Workaround some broken pre-1.5 toolchains 12783 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 12784 ;; 12785 openbsd2*) 12786 # C++ shared libraries are fairly broken 12787 ld_shlibs_CXX=no 12788 ;; 12789 openbsd*) 12790 hardcode_direct_CXX=yes 12791 hardcode_shlibpath_var_CXX=no 12792 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12793 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12794 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12795 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 12796 export_dynamic_flag_spec_CXX='${wl}-E' 12797 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12798 fi 12799 output_verbose_link_cmd='echo' 12800 ;; 12801 osf3*) 12802 case $cc_basename in 12803 KCC*) 12804 # Kuck and Associates, Inc. (KAI) C++ Compiler 12805 12806 # KCC will only create a shared library if the output file 12807 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12808 # to its proper name (with version) after linking. 12809 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' 12810 12811 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12812 hardcode_libdir_separator_CXX=: 12813 12814 # Archives containing C++ object files must be created using 12815 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12816 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12817 12818 ;; 12819 RCC*) 12820 # Rational C++ 2.4.1 12821 # FIXME: insert proper C++ library support 12822 ld_shlibs_CXX=no 12823 ;; 12824 cxx*) 12825 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12826 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' 12827 12828 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12829 hardcode_libdir_separator_CXX=: 12830 12831 # Commands to make compiler produce verbose output that lists 12832 # what "hidden" libraries, object files and flags are used when 12833 # linking a shared library. 12834 # 12835 # There doesn't appear to be a way to prevent this compiler from 12836 # explicitly linking system object files so we need to strip them 12837 # from the output so that they don't get included in the library 12838 # dependencies. 12839 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' 12840 ;; 12841 *) 12842 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12843 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12844 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' 12845 12846 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12847 hardcode_libdir_separator_CXX=: 12848 12849 # Commands to make compiler produce verbose output that lists 12850 # what "hidden" libraries, object files and flags are used when 12851 # linking a shared library. 12852 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12853 12854 else 12855 # FIXME: insert proper C++ library support 12856 ld_shlibs_CXX=no 12857 fi 12858 ;; 12859 esac 12860 ;; 12861 osf4* | osf5*) 12862 case $cc_basename in 12863 KCC*) 12864 # Kuck and Associates, Inc. (KAI) C++ Compiler 12865 12866 # KCC will only create a shared library if the output file 12867 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12868 # to its proper name (with version) after linking. 12869 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' 12870 12871 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12872 hardcode_libdir_separator_CXX=: 12873 12874 # Archives containing C++ object files must be created using 12875 # the KAI C++ compiler. 12876 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 12877 ;; 12878 RCC*) 12879 # Rational C++ 2.4.1 12880 # FIXME: insert proper C++ library support 12881 ld_shlibs_CXX=no 12882 ;; 12883 cxx*) 12884 allow_undefined_flag_CXX=' -expect_unresolved \*' 12885 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' 12886 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 12887 echo "-hidden">> $lib.exp~ 12888 $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~ 12889 $rm $lib.exp' 12890 12891 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12892 hardcode_libdir_separator_CXX=: 12893 12894 # Commands to make compiler produce verbose output that lists 12895 # what "hidden" libraries, object files and flags are used when 12896 # linking a shared library. 12897 # 12898 # There doesn't appear to be a way to prevent this compiler from 12899 # explicitly linking system object files so we need to strip them 12900 # from the output so that they don't get included in the library 12901 # dependencies. 12902 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' 12903 ;; 12904 *) 12905 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12906 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12907 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' 12908 12909 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12910 hardcode_libdir_separator_CXX=: 12911 12912 # Commands to make compiler produce verbose output that lists 12913 # what "hidden" libraries, object files and flags are used when 12914 # linking a shared library. 12915 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12916 12917 else 12918 # FIXME: insert proper C++ library support 12919 ld_shlibs_CXX=no 12920 fi 12921 ;; 12922 esac 12923 ;; 12924 psos*) 12925 # FIXME: insert proper C++ library support 12926 ld_shlibs_CXX=no 12927 ;; 12928 sunos4*) 12929 case $cc_basename in 12930 CC*) 12931 # Sun C++ 4.x 12932 # FIXME: insert proper C++ library support 12933 ld_shlibs_CXX=no 12934 ;; 12935 lcc*) 12936 # Lucid 12937 # FIXME: insert proper C++ library support 12938 ld_shlibs_CXX=no 12939 ;; 12940 *) 12941 # FIXME: insert proper C++ library support 12942 ld_shlibs_CXX=no 12943 ;; 12944 esac 12945 ;; 12946 solaris*) 12947 case $cc_basename in 12948 CC*) 12949 # Sun C++ 4.2, 5.x and Centerline C++ 12950 archive_cmds_need_lc_CXX=yes 12951 no_undefined_flag_CXX=' -zdefs' 12952 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12953 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12954 $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' 12955 12956 hardcode_libdir_flag_spec_CXX='-R$libdir' 12957 hardcode_shlibpath_var_CXX=no 12958 case $host_os in 12959 solaris2.[0-5] | solaris2.[0-5].*) ;; 12960 *) 12961 # The C++ compiler is used as linker so we must use $wl 12962 # flag to pass the commands to the underlying system 12963 # linker. We must also pass each convience library through 12964 # to the system linker between allextract/defaultextract. 12965 # The C++ compiler will combine linker options so we 12966 # cannot just pass the convience library names through 12967 # without $wl. 12968 # Supported since Solaris 2.6 (maybe 2.5.1?) 12969 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' 12970 ;; 12971 esac 12972 link_all_deplibs_CXX=yes 12973 12974 output_verbose_link_cmd='echo' 12975 12976 # Archives containing C++ object files must be created using 12977 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12978 # necessary to make sure instantiated templates are included 12979 # in the archive. 12980 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12981 ;; 12982 gcx*) 12983 # Green Hills C++ Compiler 12984 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12985 12986 # The C++ compiler must be used to create the archive. 12987 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 12988 ;; 12989 *) 12990 # GNU C++ compiler with Solaris linker 12991 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12992 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 12993 if $CC --version | grep -v '^2\.7' > /dev/null; then 12994 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12995 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12996 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12997 12998 # Commands to make compiler produce verbose output that lists 12999 # what "hidden" libraries, object files and flags are used when 13000 # linking a shared library. 13001 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 13002 else 13003 # g++ 2.7 appears to require `-G' NOT `-shared' on this 13004 # platform. 13005 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13006 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 13007 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 13008 13009 # Commands to make compiler produce verbose output that lists 13010 # what "hidden" libraries, object files and flags are used when 13011 # linking a shared library. 13012 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 13013 fi 13014 13015 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 13016 fi 13017 ;; 13018 esac 13019 ;; 13020 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 13021 no_undefined_flag_CXX='${wl}-z,text' 13022 archive_cmds_need_lc_CXX=no 13023 hardcode_shlibpath_var_CXX=no 13024 runpath_var='LD_RUN_PATH' 13025 13026 case $cc_basename in 13027 CC*) 13028 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13029 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13030 ;; 13031 *) 13032 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13033 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13034 ;; 13035 esac 13036 ;; 13037 sysv5* | sco3.2v5* | sco5v6*) 13038 # Note: We can NOT use -z defs as we might desire, because we do not 13039 # link with -lc, and that would cause any symbols used from libc to 13040 # always be unresolved, which means just about no library would 13041 # ever link correctly. If we're not using GNU ld we use -z text 13042 # though, which does catch some bad symbols but isn't as heavy-handed 13043 # as -z defs. 13044 # For security reasons, it is highly recommended that you always 13045 # use absolute paths for naming shared libraries, and exclude the 13046 # DT_RUNPATH tag from executables and libraries. But doing so 13047 # requires that you compile everything twice, which is a pain. 13048 # So that behaviour is only enabled if SCOABSPATH is set to a 13049 # non-empty value in the environment. Most likely only useful for 13050 # creating official distributions of packages. 13051 # This is a hack until libtool officially supports absolute path 13052 # names for shared libraries. 13053 no_undefined_flag_CXX='${wl}-z,text' 13054 allow_undefined_flag_CXX='${wl}-z,nodefs' 13055 archive_cmds_need_lc_CXX=no 13056 hardcode_shlibpath_var_CXX=no 13057 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 13058 hardcode_libdir_separator_CXX=':' 13059 link_all_deplibs_CXX=yes 13060 export_dynamic_flag_spec_CXX='${wl}-Bexport' 13061 runpath_var='LD_RUN_PATH' 13062 13063 case $cc_basename in 13064 CC*) 13065 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 13066 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 13067 ;; 13068 *) 13069 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 13070 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 13071 ;; 13072 esac 13073 ;; 13074 tandem*) 13075 case $cc_basename in 13076 NCC*) 13077 # NonStop-UX NCC 3.20 13078 # FIXME: insert proper C++ library support 13079 ld_shlibs_CXX=no 13080 ;; 13081 *) 13082 # FIXME: insert proper C++ library support 13083 ld_shlibs_CXX=no 13084 ;; 13085 esac 13086 ;; 13087 vxworks*) 13088 # FIXME: insert proper C++ library support 13089 ld_shlibs_CXX=no 13090 ;; 13091 *) 13092 # FIXME: insert proper C++ library support 13093 ld_shlibs_CXX=no 13094 ;; 13095esac 13096echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 13097echo "${ECHO_T}$ld_shlibs_CXX" >&6 13098test "$ld_shlibs_CXX" = no && can_build_shared=no 13099 13100GCC_CXX="$GXX" 13101LD_CXX="$LD" 13102 13103## CAVEAT EMPTOR: 13104## There is no encapsulation within the following macros, do not change 13105## the running order or otherwise move them around unless you know exactly 13106## what you are doing... 13107 13108cat > conftest.$ac_ext <<EOF 13109class Foo 13110{ 13111public: 13112 Foo (void) { a = 0; } 13113private: 13114 int a; 13115}; 13116EOF 13117 13118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13119 (eval $ac_compile) 2>&5 13120 ac_status=$? 13121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13122 (exit $ac_status); }; then 13123 # Parse the compiler output and extract the necessary 13124 # objects, libraries and library flags. 13125 13126 # Sentinel used to keep track of whether or not we are before 13127 # the conftest object file. 13128 pre_test_object_deps_done=no 13129 13130 # The `*' in the case matches for architectures that use `case' in 13131 # $output_verbose_cmd can trigger glob expansion during the loop 13132 # eval without this substitution. 13133 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 13134 13135 for p in `eval $output_verbose_link_cmd`; do 13136 case $p in 13137 13138 -L* | -R* | -l*) 13139 # Some compilers place space between "-{L,R}" and the path. 13140 # Remove the space. 13141 if test $p = "-L" \ 13142 || test $p = "-R"; then 13143 prev=$p 13144 continue 13145 else 13146 prev= 13147 fi 13148 13149 if test "$pre_test_object_deps_done" = no; then 13150 case $p in 13151 -L* | -R*) 13152 # Internal compiler library paths should come after those 13153 # provided the user. The postdeps already come after the 13154 # user supplied libs so there is no need to process them. 13155 if test -z "$compiler_lib_search_path_CXX"; then 13156 compiler_lib_search_path_CXX="${prev}${p}" 13157 else 13158 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 13159 fi 13160 ;; 13161 # The "-l" case would never come before the object being 13162 # linked, so don't bother handling this case. 13163 esac 13164 else 13165 if test -z "$postdeps_CXX"; then 13166 postdeps_CXX="${prev}${p}" 13167 else 13168 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 13169 fi 13170 fi 13171 ;; 13172 13173 *.$objext) 13174 # This assumes that the test object file only shows up 13175 # once in the compiler output. 13176 if test "$p" = "conftest.$objext"; then 13177 pre_test_object_deps_done=yes 13178 continue 13179 fi 13180 13181 if test "$pre_test_object_deps_done" = no; then 13182 if test -z "$predep_objects_CXX"; then 13183 predep_objects_CXX="$p" 13184 else 13185 predep_objects_CXX="$predep_objects_CXX $p" 13186 fi 13187 else 13188 if test -z "$postdep_objects_CXX"; then 13189 postdep_objects_CXX="$p" 13190 else 13191 postdep_objects_CXX="$postdep_objects_CXX $p" 13192 fi 13193 fi 13194 ;; 13195 13196 *) ;; # Ignore the rest. 13197 13198 esac 13199 done 13200 13201 # Clean up. 13202 rm -f a.out a.exe 13203else 13204 echo "libtool.m4: error: problem compiling CXX test program" 13205fi 13206 13207$rm -f confest.$objext 13208 13209# PORTME: override above test on systems where it is broken 13210case $host_os in 13211interix3*) 13212 # Interix 3.5 installs completely hosed .la files for C++, so rather than 13213 # hack all around it, let's just trust "g++" to DTRT. 13214 predep_objects_CXX= 13215 postdep_objects_CXX= 13216 postdeps_CXX= 13217 ;; 13218 13219solaris*) 13220 case $cc_basename in 13221 CC*) 13222 # Adding this requires a known-good setup of shared libraries for 13223 # Sun compiler versions before 5.6, else PIC objects from an old 13224 # archive will be linked into the output, leading to subtle bugs. 13225 postdeps_CXX='-lCstd -lCrun' 13226 ;; 13227 esac 13228 ;; 13229esac 13230 13231 13232case " $postdeps_CXX " in 13233*" -lc "*) archive_cmds_need_lc_CXX=no ;; 13234esac 13235 13236lt_prog_compiler_wl_CXX= 13237lt_prog_compiler_pic_CXX= 13238lt_prog_compiler_static_CXX= 13239 13240echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 13241echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 13242 13243 # C++ specific cases for pic, static, wl, etc. 13244 if test "$GXX" = yes; then 13245 lt_prog_compiler_wl_CXX='-Wl,' 13246 lt_prog_compiler_static_CXX='-static' 13247 13248 case $host_os in 13249 aix*) 13250 # All AIX code is PIC. 13251 if test "$host_cpu" = ia64; then 13252 # AIX 5 now supports IA64 processor 13253 lt_prog_compiler_static_CXX='-Bstatic' 13254 fi 13255 ;; 13256 amigaos*) 13257 # FIXME: we need at least 68020 code to build shared libraries, but 13258 # adding the `-m68020' flag to GCC prevents building anything better, 13259 # like `-m68040'. 13260 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 13261 ;; 13262 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13263 # PIC is the default for these OSes. 13264 ;; 13265 mingw* | os2* | pw32*) 13266 # This hack is so that the source file can tell whether it is being 13267 # built for inclusion in a dll (and should export symbols for example). 13268 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 13269 ;; 13270 darwin* | rhapsody*) 13271 # PIC is the default on this platform 13272 # Common symbols not allowed in MH_DYLIB files 13273 lt_prog_compiler_pic_CXX='-fno-common' 13274 ;; 13275 *djgpp*) 13276 # DJGPP does not support shared libraries at all 13277 lt_prog_compiler_pic_CXX= 13278 ;; 13279 interix3*) 13280 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13281 # Instead, we relocate shared libraries at runtime. 13282 ;; 13283 sysv4*MP*) 13284 if test -d /usr/nec; then 13285 lt_prog_compiler_pic_CXX=-Kconform_pic 13286 fi 13287 ;; 13288 hpux*) 13289 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13290 # not for PA HP-UX. 13291 case $host_cpu in 13292 hppa*64*|ia64*) 13293 ;; 13294 *) 13295 lt_prog_compiler_pic_CXX='-fPIC' 13296 ;; 13297 esac 13298 ;; 13299 *) 13300 lt_prog_compiler_pic_CXX='-fPIC' 13301 ;; 13302 esac 13303 else 13304 case $host_os in 13305 aix4* | aix5*) 13306 # All AIX code is PIC. 13307 if test "$host_cpu" = ia64; then 13308 # AIX 5 now supports IA64 processor 13309 lt_prog_compiler_static_CXX='-Bstatic' 13310 else 13311 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 13312 fi 13313 ;; 13314 chorus*) 13315 case $cc_basename in 13316 cxch68*) 13317 # Green Hills C++ Compiler 13318 # _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" 13319 ;; 13320 esac 13321 ;; 13322 darwin*) 13323 # PIC is the default on this platform 13324 # Common symbols not allowed in MH_DYLIB files 13325 case $cc_basename in 13326 xlc*) 13327 lt_prog_compiler_pic_CXX='-qnocommon' 13328 lt_prog_compiler_wl_CXX='-Wl,' 13329 ;; 13330 esac 13331 ;; 13332 dgux*) 13333 case $cc_basename in 13334 ec++*) 13335 lt_prog_compiler_pic_CXX='-KPIC' 13336 ;; 13337 ghcx*) 13338 # Green Hills C++ Compiler 13339 lt_prog_compiler_pic_CXX='-pic' 13340 ;; 13341 *) 13342 ;; 13343 esac 13344 ;; 13345 freebsd* | kfreebsd*-gnu | dragonfly*) 13346 # FreeBSD uses GNU C++ 13347 ;; 13348 hpux9* | hpux10* | hpux11*) 13349 case $cc_basename in 13350 CC*) 13351 lt_prog_compiler_wl_CXX='-Wl,' 13352 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 13353 if test "$host_cpu" != ia64; then 13354 lt_prog_compiler_pic_CXX='+Z' 13355 fi 13356 ;; 13357 aCC*) 13358 lt_prog_compiler_wl_CXX='-Wl,' 13359 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 13360 case $host_cpu in 13361 hppa*64*|ia64*) 13362 # +Z the default 13363 ;; 13364 *) 13365 lt_prog_compiler_pic_CXX='+Z' 13366 ;; 13367 esac 13368 ;; 13369 *) 13370 ;; 13371 esac 13372 ;; 13373 interix*) 13374 # This is c89, which is MS Visual C++ (no shared libs) 13375 # Anyone wants to do a port? 13376 ;; 13377 irix5* | irix6* | nonstopux*) 13378 case $cc_basename in 13379 CC*) 13380 lt_prog_compiler_wl_CXX='-Wl,' 13381 lt_prog_compiler_static_CXX='-non_shared' 13382 # CC pic flag -KPIC is the default. 13383 ;; 13384 *) 13385 ;; 13386 esac 13387 ;; 13388 linux*) 13389 case $cc_basename in 13390 KCC*) 13391 # KAI C++ Compiler 13392 lt_prog_compiler_wl_CXX='--backend -Wl,' 13393 lt_prog_compiler_pic_CXX='-fPIC' 13394 ;; 13395 icpc* | ecpc*) 13396 # Intel C++ 13397 lt_prog_compiler_wl_CXX='-Wl,' 13398 lt_prog_compiler_pic_CXX='-KPIC' 13399 lt_prog_compiler_static_CXX='-static' 13400 ;; 13401 pgCC*) 13402 # Portland Group C++ compiler. 13403 lt_prog_compiler_wl_CXX='-Wl,' 13404 lt_prog_compiler_pic_CXX='-fpic' 13405 lt_prog_compiler_static_CXX='-Bstatic' 13406 ;; 13407 cxx*) 13408 # Compaq C++ 13409 # Make sure the PIC flag is empty. It appears that all Alpha 13410 # Linux and Compaq Tru64 Unix objects are PIC. 13411 lt_prog_compiler_pic_CXX= 13412 lt_prog_compiler_static_CXX='-non_shared' 13413 ;; 13414 *) 13415 ;; 13416 esac 13417 ;; 13418 lynxos*) 13419 ;; 13420 m88k*) 13421 ;; 13422 mvs*) 13423 case $cc_basename in 13424 cxx*) 13425 lt_prog_compiler_pic_CXX='-W c,exportall' 13426 ;; 13427 *) 13428 ;; 13429 esac 13430 ;; 13431 netbsd*) 13432 ;; 13433 osf3* | osf4* | osf5*) 13434 case $cc_basename in 13435 KCC*) 13436 lt_prog_compiler_wl_CXX='--backend -Wl,' 13437 ;; 13438 RCC*) 13439 # Rational C++ 2.4.1 13440 lt_prog_compiler_pic_CXX='-pic' 13441 ;; 13442 cxx*) 13443 # Digital/Compaq C++ 13444 lt_prog_compiler_wl_CXX='-Wl,' 13445 # Make sure the PIC flag is empty. It appears that all Alpha 13446 # Linux and Compaq Tru64 Unix objects are PIC. 13447 lt_prog_compiler_pic_CXX= 13448 lt_prog_compiler_static_CXX='-non_shared' 13449 ;; 13450 *) 13451 ;; 13452 esac 13453 ;; 13454 psos*) 13455 ;; 13456 solaris*) 13457 case $cc_basename in 13458 CC*) 13459 # Sun C++ 4.2, 5.x and Centerline C++ 13460 lt_prog_compiler_pic_CXX='-KPIC' 13461 lt_prog_compiler_static_CXX='-Bstatic' 13462 lt_prog_compiler_wl_CXX='-Qoption ld ' 13463 ;; 13464 gcx*) 13465 # Green Hills C++ Compiler 13466 lt_prog_compiler_pic_CXX='-PIC' 13467 ;; 13468 *) 13469 ;; 13470 esac 13471 ;; 13472 sunos4*) 13473 case $cc_basename in 13474 CC*) 13475 # Sun C++ 4.x 13476 lt_prog_compiler_pic_CXX='-pic' 13477 lt_prog_compiler_static_CXX='-Bstatic' 13478 ;; 13479 lcc*) 13480 # Lucid 13481 lt_prog_compiler_pic_CXX='-pic' 13482 ;; 13483 *) 13484 ;; 13485 esac 13486 ;; 13487 tandem*) 13488 case $cc_basename in 13489 NCC*) 13490 # NonStop-UX NCC 3.20 13491 lt_prog_compiler_pic_CXX='-KPIC' 13492 ;; 13493 *) 13494 ;; 13495 esac 13496 ;; 13497 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13498 case $cc_basename in 13499 CC*) 13500 lt_prog_compiler_wl_CXX='-Wl,' 13501 lt_prog_compiler_pic_CXX='-KPIC' 13502 lt_prog_compiler_static_CXX='-Bstatic' 13503 ;; 13504 esac 13505 ;; 13506 vxworks*) 13507 ;; 13508 *) 13509 lt_prog_compiler_can_build_shared_CXX=no 13510 ;; 13511 esac 13512 fi 13513 13514echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 13515echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 13516 13517# 13518# Check to make sure the PIC flag actually works. 13519# 13520if test -n "$lt_prog_compiler_pic_CXX"; then 13521 13522echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 13523echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 13524if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 13525 echo $ECHO_N "(cached) $ECHO_C" >&6 13526else 13527 lt_prog_compiler_pic_works_CXX=no 13528 ac_outfile=conftest.$ac_objext 13529 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13530 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 13531 # Insert the option either (1) after the last *FLAGS variable, or 13532 # (2) before a word containing "conftest.", or (3) at the end. 13533 # Note that $ac_compile itself does not contain backslashes and begins 13534 # with a dollar sign (not a hyphen), so the echo should work correctly. 13535 # The option is referenced via a variable to avoid confusing sed. 13536 lt_compile=`echo "$ac_compile" | $SED \ 13537 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13538 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13539 -e 's:$: $lt_compiler_flag:'` 13540 (eval echo "\"\$as_me:13540: $lt_compile\"" >&5) 13541 (eval "$lt_compile" 2>conftest.err) 13542 ac_status=$? 13543 cat conftest.err >&5 13544 echo "$as_me:13544: \$? = $ac_status" >&5 13545 if (exit $ac_status) && test -s "$ac_outfile"; then 13546 # The compiler can only warn and ignore the option if not recognized 13547 # So say no if there are warnings other than the usual output. 13548 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 13549 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13550 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13551 lt_prog_compiler_pic_works_CXX=yes 13552 fi 13553 fi 13554 $rm conftest* 13555 13556fi 13557echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 13558echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 13559 13560if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 13561 case $lt_prog_compiler_pic_CXX in 13562 "" | " "*) ;; 13563 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 13564 esac 13565else 13566 lt_prog_compiler_pic_CXX= 13567 lt_prog_compiler_can_build_shared_CXX=no 13568fi 13569 13570fi 13571case $host_os in 13572 # For platforms which do not support PIC, -DPIC is meaningless: 13573 *djgpp*) 13574 lt_prog_compiler_pic_CXX= 13575 ;; 13576 *) 13577 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 13578 ;; 13579esac 13580 13581# 13582# Check to make sure the static flag actually works. 13583# 13584wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 13585echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13586echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 13587if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 13588 echo $ECHO_N "(cached) $ECHO_C" >&6 13589else 13590 lt_prog_compiler_static_works_CXX=no 13591 save_LDFLAGS="$LDFLAGS" 13592 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13593 printf "$lt_simple_link_test_code" > conftest.$ac_ext 13594 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13595 # The linker can only warn and ignore the option if not recognized 13596 # So say no if there are warnings 13597 if test -s conftest.err; then 13598 # Append any errors to the config.log. 13599 cat conftest.err 1>&5 13600 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 13601 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13602 if diff conftest.exp conftest.er2 >/dev/null; then 13603 lt_prog_compiler_static_works_CXX=yes 13604 fi 13605 else 13606 lt_prog_compiler_static_works_CXX=yes 13607 fi 13608 fi 13609 $rm conftest* 13610 LDFLAGS="$save_LDFLAGS" 13611 13612fi 13613echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 13614echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6 13615 13616if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 13617 : 13618else 13619 lt_prog_compiler_static_CXX= 13620fi 13621 13622 13623echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 13624echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 13625if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 13626 echo $ECHO_N "(cached) $ECHO_C" >&6 13627else 13628 lt_cv_prog_compiler_c_o_CXX=no 13629 $rm -r conftest 2>/dev/null 13630 mkdir conftest 13631 cd conftest 13632 mkdir out 13633 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13634 13635 lt_compiler_flag="-o out/conftest2.$ac_objext" 13636 # Insert the option either (1) after the last *FLAGS variable, or 13637 # (2) before a word containing "conftest.", or (3) at the end. 13638 # Note that $ac_compile itself does not contain backslashes and begins 13639 # with a dollar sign (not a hyphen), so the echo should work correctly. 13640 lt_compile=`echo "$ac_compile" | $SED \ 13641 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13642 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13643 -e 's:$: $lt_compiler_flag:'` 13644 (eval echo "\"\$as_me:13644: $lt_compile\"" >&5) 13645 (eval "$lt_compile" 2>out/conftest.err) 13646 ac_status=$? 13647 cat out/conftest.err >&5 13648 echo "$as_me:13648: \$? = $ac_status" >&5 13649 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13650 then 13651 # The compiler can only warn and ignore the option if not recognized 13652 # So say no if there are warnings 13653 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 13654 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13655 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13656 lt_cv_prog_compiler_c_o_CXX=yes 13657 fi 13658 fi 13659 chmod u+w . 2>&5 13660 $rm conftest* 13661 # SGI C++ compiler will create directory out/ii_files/ for 13662 # template instantiation 13663 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 13664 $rm out/* && rmdir out 13665 cd .. 13666 rmdir conftest 13667 $rm conftest* 13668 13669fi 13670echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 13671echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 13672 13673 13674hard_links="nottested" 13675if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 13676 # do not overwrite the value of need_locks provided by the user 13677 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 13678echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 13679 hard_links=yes 13680 $rm conftest* 13681 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13682 touch conftest.a 13683 ln conftest.a conftest.b 2>&5 || hard_links=no 13684 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13685 echo "$as_me:$LINENO: result: $hard_links" >&5 13686echo "${ECHO_T}$hard_links" >&6 13687 if test "$hard_links" = no; then 13688 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13689echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13690 need_locks=warn 13691 fi 13692else 13693 need_locks=no 13694fi 13695 13696echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13697echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 13698 13699 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13700 case $host_os in 13701 aix4* | aix5*) 13702 # If we're using GNU nm, then we don't want the "-C" option. 13703 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13704 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 13705 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' 13706 else 13707 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' 13708 fi 13709 ;; 13710 pw32*) 13711 export_symbols_cmds_CXX="$ltdll_cmds" 13712 ;; 13713 cygwin* | mingw*) 13714 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' 13715 ;; 13716 *) 13717 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13718 ;; 13719 esac 13720 13721echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 13722echo "${ECHO_T}$ld_shlibs_CXX" >&6 13723test "$ld_shlibs_CXX" = no && can_build_shared=no 13724 13725# 13726# Do we need to explicitly link libc? 13727# 13728case "x$archive_cmds_need_lc_CXX" in 13729x|xyes) 13730 # Assume -lc should be added 13731 archive_cmds_need_lc_CXX=yes 13732 13733 if test "$enable_shared" = yes && test "$GCC" = yes; then 13734 case $archive_cmds_CXX in 13735 *'~'*) 13736 # FIXME: we may have to deal with multi-command sequences. 13737 ;; 13738 '$CC '*) 13739 # Test whether the compiler implicitly links with -lc since on some 13740 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13741 # to ld, don't add -lc before -lgcc. 13742 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 13743echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 13744 $rm conftest* 13745 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13746 13747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13748 (eval $ac_compile) 2>&5 13749 ac_status=$? 13750 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13751 (exit $ac_status); } 2>conftest.err; then 13752 soname=conftest 13753 lib=conftest 13754 libobjs=conftest.$ac_objext 13755 deplibs= 13756 wl=$lt_prog_compiler_wl_CXX 13757 pic_flag=$lt_prog_compiler_pic_CXX 13758 compiler_flags=-v 13759 linker_flags=-v 13760 verstring= 13761 output_objdir=. 13762 libname=conftest 13763 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 13764 allow_undefined_flag_CXX= 13765 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 13766 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 13767 ac_status=$? 13768 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13769 (exit $ac_status); } 13770 then 13771 archive_cmds_need_lc_CXX=no 13772 else 13773 archive_cmds_need_lc_CXX=yes 13774 fi 13775 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 13776 else 13777 cat conftest.err 1>&5 13778 fi 13779 $rm conftest* 13780 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 13781echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 13782 ;; 13783 esac 13784 fi 13785 ;; 13786esac 13787 13788echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 13789echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 13790library_names_spec= 13791libname_spec='lib$name' 13792soname_spec= 13793shrext_cmds=".so" 13794postinstall_cmds= 13795postuninstall_cmds= 13796finish_cmds= 13797finish_eval= 13798shlibpath_var= 13799shlibpath_overrides_runpath=unknown 13800version_type=none 13801dynamic_linker="$host_os ld.so" 13802sys_lib_dlsearch_path_spec="/lib /usr/lib" 13803if test "$GCC" = yes; then 13804 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13805 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 13806 # if the path contains ";" then we assume it to be the separator 13807 # otherwise default to the standard path separator (i.e. ":") - it is 13808 # assumed that no part of a normal pathname contains ";" but that should 13809 # okay in the real world where ";" in dirpaths is itself problematic. 13810 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13811 else 13812 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13813 fi 13814else 13815 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 13816fi 13817need_lib_prefix=unknown 13818hardcode_into_libs=no 13819 13820# when you set need_version to no, make sure it does not cause -set_version 13821# flags to be left without arguments 13822need_version=unknown 13823 13824case $host_os in 13825aix3*) 13826 version_type=linux 13827 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 13828 shlibpath_var=LIBPATH 13829 13830 # AIX 3 has no versioning support, so we append a major version to the name. 13831 soname_spec='${libname}${release}${shared_ext}$major' 13832 ;; 13833 13834aix4* | aix5*) 13835 version_type=linux 13836 need_lib_prefix=no 13837 need_version=no 13838 hardcode_into_libs=yes 13839 if test "$host_cpu" = ia64; then 13840 # AIX 5 supports IA64 13841 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 13842 shlibpath_var=LD_LIBRARY_PATH 13843 else 13844 # With GCC up to 2.95.x, collect2 would create an import file 13845 # for dependence libraries. The import file would start with 13846 # the line `#! .'. This would cause the generated library to 13847 # depend on `.', always an invalid library. This was fixed in 13848 # development snapshots of GCC prior to 3.0. 13849 case $host_os in 13850 aix4 | aix4.[01] | aix4.[01].*) 13851 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13852 echo ' yes ' 13853 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 13854 : 13855 else 13856 can_build_shared=no 13857 fi 13858 ;; 13859 esac 13860 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 13861 # soname into executable. Probably we can add versioning support to 13862 # collect2, so additional links can be useful in future. 13863 if test "$aix_use_runtimelinking" = yes; then 13864 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13865 # instead of lib<name>.a to let people know that these are not 13866 # typical AIX shared libraries. 13867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13868 else 13869 # We preserve .a as extension for shared libraries through AIX4.2 13870 # and later when we are not doing run time linking. 13871 library_names_spec='${libname}${release}.a $libname.a' 13872 soname_spec='${libname}${release}${shared_ext}$major' 13873 fi 13874 shlibpath_var=LIBPATH 13875 fi 13876 ;; 13877 13878amigaos*) 13879 library_names_spec='$libname.ixlibrary $libname.a' 13880 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13881 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' 13882 ;; 13883 13884beos*) 13885 library_names_spec='${libname}${shared_ext}' 13886 dynamic_linker="$host_os ld.so" 13887 shlibpath_var=LIBRARY_PATH 13888 ;; 13889 13890bsdi[45]*) 13891 version_type=linux 13892 need_version=no 13893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13894 soname_spec='${libname}${release}${shared_ext}$major' 13895 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13896 shlibpath_var=LD_LIBRARY_PATH 13897 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13898 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13899 # the default ld.so.conf also contains /usr/contrib/lib and 13900 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13901 # libtool to hard-code these into programs 13902 ;; 13903 13904cygwin* | mingw* | pw32*) 13905 version_type=windows 13906 shrext_cmds=".dll" 13907 need_version=no 13908 need_lib_prefix=no 13909 13910 case $GCC,$host_os in 13911 yes,cygwin* | yes,mingw* | yes,pw32*) 13912 library_names_spec='$libname.dll.a' 13913 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13914 postinstall_cmds='base_file=`basename \${file}`~ 13915 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 13916 dldir=$destdir/`dirname \$dlpath`~ 13917 test -d \$dldir || mkdir -p \$dldir~ 13918 $install_prog $dir/$dlname \$dldir/$dlname~ 13919 chmod a+x \$dldir/$dlname' 13920 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13921 dlpath=$dir/\$dldll~ 13922 $rm \$dlpath' 13923 shlibpath_overrides_runpath=yes 13924 13925 case $host_os in 13926 cygwin*) 13927 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13928 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13929 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 13930 ;; 13931 mingw*) 13932 # MinGW DLLs use traditional 'lib' prefix 13933 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13934 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13935 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 13936 # It is most probably a Windows format PATH printed by 13937 # mingw gcc, but we are running on Cygwin. Gcc prints its search 13938 # path with ; separators, and with drive letters. We can handle the 13939 # drive letters (cygwin fileutils understands them), so leave them, 13940 # especially as we might pass files found there to a mingw objdump, 13941 # which wouldn't understand a cygwinified path. Ahh. 13942 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13943 else 13944 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13945 fi 13946 ;; 13947 pw32*) 13948 # pw32 DLLs use 'pw' prefix rather than 'lib' 13949 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13950 ;; 13951 esac 13952 ;; 13953 13954 *) 13955 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13956 ;; 13957 esac 13958 dynamic_linker='Win32 ld.exe' 13959 # FIXME: first we should search . and the directory the executable is in 13960 shlibpath_var=PATH 13961 ;; 13962 13963darwin* | rhapsody*) 13964 dynamic_linker="$host_os dyld" 13965 version_type=darwin 13966 need_lib_prefix=no 13967 need_version=no 13968 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13969 soname_spec='${libname}${release}${major}$shared_ext' 13970 shlibpath_overrides_runpath=yes 13971 shlibpath_var=DYLD_LIBRARY_PATH 13972 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13973 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 13974 if test "$GCC" = yes; then 13975 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"` 13976 else 13977 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 13978 fi 13979 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13980 ;; 13981 13982dgux*) 13983 version_type=linux 13984 need_lib_prefix=no 13985 need_version=no 13986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13987 soname_spec='${libname}${release}${shared_ext}$major' 13988 shlibpath_var=LD_LIBRARY_PATH 13989 ;; 13990 13991freebsd1*) 13992 dynamic_linker=no 13993 ;; 13994 13995kfreebsd*-gnu) 13996 version_type=linux 13997 need_lib_prefix=no 13998 need_version=no 13999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14000 soname_spec='${libname}${release}${shared_ext}$major' 14001 shlibpath_var=LD_LIBRARY_PATH 14002 shlibpath_overrides_runpath=no 14003 hardcode_into_libs=yes 14004 dynamic_linker='GNU ld.so' 14005 ;; 14006 14007freebsd* | dragonfly*) 14008 # DragonFly does not have aout. When/if they implement a new 14009 # versioning mechanism, adjust this. 14010 if test -x /usr/bin/objformat; then 14011 objformat=`/usr/bin/objformat` 14012 else 14013 case $host_os in 14014 freebsd[123]*) objformat=aout ;; 14015 *) objformat=elf ;; 14016 esac 14017 fi 14018 version_type=freebsd-$objformat 14019 case $version_type in 14020 freebsd-elf*) 14021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14022 need_version=no 14023 need_lib_prefix=no 14024 ;; 14025 freebsd-*) 14026 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 14027 need_version=yes 14028 ;; 14029 esac 14030 shlibpath_var=LD_LIBRARY_PATH 14031 case $host_os in 14032 freebsd2*) 14033 shlibpath_overrides_runpath=yes 14034 ;; 14035 freebsd3.[01]* | freebsdelf3.[01]*) 14036 shlibpath_overrides_runpath=yes 14037 hardcode_into_libs=yes 14038 ;; 14039 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 14040 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 14041 shlibpath_overrides_runpath=no 14042 hardcode_into_libs=yes 14043 ;; 14044 freebsd*) # from 4.6 on 14045 shlibpath_overrides_runpath=yes 14046 hardcode_into_libs=yes 14047 ;; 14048 esac 14049 ;; 14050 14051gnu*) 14052 version_type=linux 14053 need_lib_prefix=no 14054 need_version=no 14055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14056 soname_spec='${libname}${release}${shared_ext}$major' 14057 shlibpath_var=LD_LIBRARY_PATH 14058 hardcode_into_libs=yes 14059 ;; 14060 14061hpux9* | hpux10* | hpux11*) 14062 # Give a soname corresponding to the major version so that dld.sl refuses to 14063 # link against other versions. 14064 version_type=sunos 14065 need_lib_prefix=no 14066 need_version=no 14067 case $host_cpu in 14068 ia64*) 14069 shrext_cmds='.so' 14070 hardcode_into_libs=yes 14071 dynamic_linker="$host_os dld.so" 14072 shlibpath_var=LD_LIBRARY_PATH 14073 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14075 soname_spec='${libname}${release}${shared_ext}$major' 14076 if test "X$HPUX_IA64_MODE" = X32; then 14077 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14078 else 14079 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14080 fi 14081 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14082 ;; 14083 hppa*64*) 14084 shrext_cmds='.sl' 14085 hardcode_into_libs=yes 14086 dynamic_linker="$host_os dld.sl" 14087 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14088 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14090 soname_spec='${libname}${release}${shared_ext}$major' 14091 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14092 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14093 ;; 14094 *) 14095 shrext_cmds='.sl' 14096 dynamic_linker="$host_os dld.sl" 14097 shlibpath_var=SHLIB_PATH 14098 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14100 soname_spec='${libname}${release}${shared_ext}$major' 14101 ;; 14102 esac 14103 # HP-UX runs *really* slowly unless shared libraries are mode 555. 14104 postinstall_cmds='chmod 555 $lib' 14105 ;; 14106 14107interix3*) 14108 version_type=linux 14109 need_lib_prefix=no 14110 need_version=no 14111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14112 soname_spec='${libname}${release}${shared_ext}$major' 14113 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 14114 shlibpath_var=LD_LIBRARY_PATH 14115 shlibpath_overrides_runpath=no 14116 hardcode_into_libs=yes 14117 ;; 14118 14119irix5* | irix6* | nonstopux*) 14120 case $host_os in 14121 nonstopux*) version_type=nonstopux ;; 14122 *) 14123 if test "$lt_cv_prog_gnu_ld" = yes; then 14124 version_type=linux 14125 else 14126 version_type=irix 14127 fi ;; 14128 esac 14129 need_lib_prefix=no 14130 need_version=no 14131 soname_spec='${libname}${release}${shared_ext}$major' 14132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 14133 case $host_os in 14134 irix5* | nonstopux*) 14135 libsuff= shlibsuff= 14136 ;; 14137 *) 14138 case $LD in # libtool.m4 will add one of these switches to LD 14139 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14140 libsuff= shlibsuff= libmagic=32-bit;; 14141 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14142 libsuff=32 shlibsuff=N32 libmagic=N32;; 14143 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14144 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14145 *) libsuff= shlibsuff= libmagic=never-match;; 14146 esac 14147 ;; 14148 esac 14149 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14150 shlibpath_overrides_runpath=no 14151 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 14152 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 14153 hardcode_into_libs=yes 14154 ;; 14155 14156# No shared lib support for Linux oldld, aout, or coff. 14157linux*oldld* | linux*aout* | linux*coff*) 14158 dynamic_linker=no 14159 ;; 14160 14161# This must be Linux ELF. 14162linux*) 14163 version_type=linux 14164 need_lib_prefix=no 14165 need_version=no 14166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14167 soname_spec='${libname}${release}${shared_ext}$major' 14168 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14169 shlibpath_var=LD_LIBRARY_PATH 14170 shlibpath_overrides_runpath=no 14171 # This implies no fast_install, which is unacceptable. 14172 # Some rework will be needed to allow for fast_install 14173 # before this can be enabled. 14174 hardcode_into_libs=yes 14175 14176 # Append ld.so.conf contents to the search path 14177 if test -f /etc/ld.so.conf; then 14178 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' ' '` 14179 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 14180 fi 14181 14182 # We used to test for /lib/ld.so.1 and disable shared libraries on 14183 # powerpc, because MkLinux only supported shared libraries with the 14184 # GNU dynamic linker. Since this was broken with cross compilers, 14185 # most powerpc-linux boxes support dynamic linking these days and 14186 # people can always --disable-shared, the test was removed, and we 14187 # assume the GNU/Linux dynamic linker is in use. 14188 dynamic_linker='GNU/Linux ld.so' 14189 ;; 14190 14191knetbsd*-gnu) 14192 version_type=linux 14193 need_lib_prefix=no 14194 need_version=no 14195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14196 soname_spec='${libname}${release}${shared_ext}$major' 14197 shlibpath_var=LD_LIBRARY_PATH 14198 shlibpath_overrides_runpath=no 14199 hardcode_into_libs=yes 14200 dynamic_linker='GNU ld.so' 14201 ;; 14202 14203netbsd*) 14204 version_type=sunos 14205 need_lib_prefix=no 14206 need_version=no 14207 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14209 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14210 dynamic_linker='NetBSD (a.out) ld.so' 14211 else 14212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14213 soname_spec='${libname}${release}${shared_ext}$major' 14214 dynamic_linker='NetBSD ld.elf_so' 14215 fi 14216 shlibpath_var=LD_LIBRARY_PATH 14217 shlibpath_overrides_runpath=yes 14218 hardcode_into_libs=yes 14219 ;; 14220 14221newsos6) 14222 version_type=linux 14223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14224 shlibpath_var=LD_LIBRARY_PATH 14225 shlibpath_overrides_runpath=yes 14226 ;; 14227 14228nto-qnx*) 14229 version_type=linux 14230 need_lib_prefix=no 14231 need_version=no 14232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14233 soname_spec='${libname}${release}${shared_ext}$major' 14234 shlibpath_var=LD_LIBRARY_PATH 14235 shlibpath_overrides_runpath=yes 14236 ;; 14237 14238openbsd*) 14239 version_type=sunos 14240 sys_lib_dlsearch_path_spec="/usr/lib" 14241 need_lib_prefix=no 14242 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 14243 case $host_os in 14244 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 14245 *) need_version=no ;; 14246 esac 14247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14248 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14249 shlibpath_var=LD_LIBRARY_PATH 14250 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14251 case $host_os in 14252 openbsd2.[89] | openbsd2.[89].*) 14253 shlibpath_overrides_runpath=no 14254 ;; 14255 *) 14256 shlibpath_overrides_runpath=yes 14257 ;; 14258 esac 14259 else 14260 shlibpath_overrides_runpath=yes 14261 fi 14262 ;; 14263 14264os2*) 14265 libname_spec='$name' 14266 shrext_cmds=".dll" 14267 need_lib_prefix=no 14268 library_names_spec='$libname${shared_ext} $libname.a' 14269 dynamic_linker='OS/2 ld.exe' 14270 shlibpath_var=LIBPATH 14271 ;; 14272 14273osf3* | osf4* | osf5*) 14274 version_type=osf 14275 need_lib_prefix=no 14276 need_version=no 14277 soname_spec='${libname}${release}${shared_ext}$major' 14278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14279 shlibpath_var=LD_LIBRARY_PATH 14280 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14281 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 14282 ;; 14283 14284solaris*) 14285 version_type=linux 14286 need_lib_prefix=no 14287 need_version=no 14288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14289 soname_spec='${libname}${release}${shared_ext}$major' 14290 shlibpath_var=LD_LIBRARY_PATH 14291 shlibpath_overrides_runpath=yes 14292 hardcode_into_libs=yes 14293 # ldd complains unless libraries are executable 14294 postinstall_cmds='chmod +x $lib' 14295 ;; 14296 14297sunos4*) 14298 version_type=sunos 14299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14300 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14301 shlibpath_var=LD_LIBRARY_PATH 14302 shlibpath_overrides_runpath=yes 14303 if test "$with_gnu_ld" = yes; then 14304 need_lib_prefix=no 14305 fi 14306 need_version=yes 14307 ;; 14308 14309sysv4 | sysv4.3*) 14310 version_type=linux 14311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14312 soname_spec='${libname}${release}${shared_ext}$major' 14313 shlibpath_var=LD_LIBRARY_PATH 14314 case $host_vendor in 14315 sni) 14316 shlibpath_overrides_runpath=no 14317 need_lib_prefix=no 14318 export_dynamic_flag_spec='${wl}-Blargedynsym' 14319 runpath_var=LD_RUN_PATH 14320 ;; 14321 siemens) 14322 need_lib_prefix=no 14323 ;; 14324 motorola) 14325 need_lib_prefix=no 14326 need_version=no 14327 shlibpath_overrides_runpath=no 14328 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14329 ;; 14330 esac 14331 ;; 14332 14333sysv4*MP*) 14334 if test -d /usr/nec ;then 14335 version_type=linux 14336 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 14337 soname_spec='$libname${shared_ext}.$major' 14338 shlibpath_var=LD_LIBRARY_PATH 14339 fi 14340 ;; 14341 14342sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 14343 version_type=freebsd-elf 14344 need_lib_prefix=no 14345 need_version=no 14346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14347 soname_spec='${libname}${release}${shared_ext}$major' 14348 shlibpath_var=LD_LIBRARY_PATH 14349 hardcode_into_libs=yes 14350 if test "$with_gnu_ld" = yes; then 14351 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 14352 shlibpath_overrides_runpath=no 14353 else 14354 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 14355 shlibpath_overrides_runpath=yes 14356 case $host_os in 14357 sco3.2v5*) 14358 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 14359 ;; 14360 esac 14361 fi 14362 sys_lib_dlsearch_path_spec='/usr/lib' 14363 ;; 14364 14365uts4*) 14366 version_type=linux 14367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14368 soname_spec='${libname}${release}${shared_ext}$major' 14369 shlibpath_var=LD_LIBRARY_PATH 14370 ;; 14371 14372*) 14373 dynamic_linker=no 14374 ;; 14375esac 14376echo "$as_me:$LINENO: result: $dynamic_linker" >&5 14377echo "${ECHO_T}$dynamic_linker" >&6 14378test "$dynamic_linker" = no && can_build_shared=no 14379 14380variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14381if test "$GCC" = yes; then 14382 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14383fi 14384 14385echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 14386echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 14387hardcode_action_CXX= 14388if test -n "$hardcode_libdir_flag_spec_CXX" || \ 14389 test -n "$runpath_var_CXX" || \ 14390 test "X$hardcode_automatic_CXX" = "Xyes" ; then 14391 14392 # We can hardcode non-existant directories. 14393 if test "$hardcode_direct_CXX" != no && 14394 # If the only mechanism to avoid hardcoding is shlibpath_var, we 14395 # have to relink, otherwise we might link with an installed library 14396 # when we should be linking with a yet-to-be-installed one 14397 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 14398 test "$hardcode_minus_L_CXX" != no; then 14399 # Linking always hardcodes the temporary library directory. 14400 hardcode_action_CXX=relink 14401 else 14402 # We can link without hardcoding, and we can hardcode nonexisting dirs. 14403 hardcode_action_CXX=immediate 14404 fi 14405else 14406 # We cannot hardcode anything, or else we can only hardcode existing 14407 # directories. 14408 hardcode_action_CXX=unsupported 14409fi 14410echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 14411echo "${ECHO_T}$hardcode_action_CXX" >&6 14412 14413if test "$hardcode_action_CXX" = relink; then 14414 # Fast installation is not supported 14415 enable_fast_install=no 14416elif test "$shlibpath_overrides_runpath" = yes || 14417 test "$enable_shared" = no; then 14418 # Fast installation is not necessary 14419 enable_fast_install=needless 14420fi 14421 14422 14423# The else clause should only fire when bootstrapping the 14424# libtool distribution, otherwise you forgot to ship ltmain.sh 14425# with your package, and you will get complaints that there are 14426# no rules to generate ltmain.sh. 14427if test -f "$ltmain"; then 14428 # See if we are running on zsh, and set the options which allow our commands through 14429 # without removal of \ escapes. 14430 if test -n "${ZSH_VERSION+set}" ; then 14431 setopt NO_GLOB_SUBST 14432 fi 14433 # Now quote all the things that may contain metacharacters while being 14434 # careful not to overquote the AC_SUBSTed values. We take copies of the 14435 # variables and quote the copies for generation of the libtool script. 14436 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 14437 SED SHELL STRIP \ 14438 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 14439 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 14440 deplibs_check_method reload_flag reload_cmds need_locks \ 14441 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 14442 lt_cv_sys_global_symbol_to_c_name_address \ 14443 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 14444 old_postinstall_cmds old_postuninstall_cmds \ 14445 compiler_CXX \ 14446 CC_CXX \ 14447 LD_CXX \ 14448 lt_prog_compiler_wl_CXX \ 14449 lt_prog_compiler_pic_CXX \ 14450 lt_prog_compiler_static_CXX \ 14451 lt_prog_compiler_no_builtin_flag_CXX \ 14452 export_dynamic_flag_spec_CXX \ 14453 thread_safe_flag_spec_CXX \ 14454 whole_archive_flag_spec_CXX \ 14455 enable_shared_with_static_runtimes_CXX \ 14456 old_archive_cmds_CXX \ 14457 old_archive_from_new_cmds_CXX \ 14458 predep_objects_CXX \ 14459 postdep_objects_CXX \ 14460 predeps_CXX \ 14461 postdeps_CXX \ 14462 compiler_lib_search_path_CXX \ 14463 archive_cmds_CXX \ 14464 archive_expsym_cmds_CXX \ 14465 postinstall_cmds_CXX \ 14466 postuninstall_cmds_CXX \ 14467 old_archive_from_expsyms_cmds_CXX \ 14468 allow_undefined_flag_CXX \ 14469 no_undefined_flag_CXX \ 14470 export_symbols_cmds_CXX \ 14471 hardcode_libdir_flag_spec_CXX \ 14472 hardcode_libdir_flag_spec_ld_CXX \ 14473 hardcode_libdir_separator_CXX \ 14474 hardcode_automatic_CXX \ 14475 module_cmds_CXX \ 14476 module_expsym_cmds_CXX \ 14477 lt_cv_prog_compiler_c_o_CXX \ 14478 exclude_expsyms_CXX \ 14479 include_expsyms_CXX; do 14480 14481 case $var in 14482 old_archive_cmds_CXX | \ 14483 old_archive_from_new_cmds_CXX | \ 14484 archive_cmds_CXX | \ 14485 archive_expsym_cmds_CXX | \ 14486 module_cmds_CXX | \ 14487 module_expsym_cmds_CXX | \ 14488 old_archive_from_expsyms_cmds_CXX | \ 14489 export_symbols_cmds_CXX | \ 14490 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 14491 postinstall_cmds | postuninstall_cmds | \ 14492 old_postinstall_cmds | old_postuninstall_cmds | \ 14493 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 14494 # Double-quote double-evaled strings. 14495 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 14496 ;; 14497 *) 14498 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 14499 ;; 14500 esac 14501 done 14502 14503 case $lt_echo in 14504 *'\$0 --fallback-echo"') 14505 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 14506 ;; 14507 esac 14508 14509cfgfile="$ofile" 14510 14511 cat <<__EOF__ >> "$cfgfile" 14512# ### BEGIN LIBTOOL TAG CONFIG: $tagname 14513 14514# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14515 14516# Shell to use when invoking shell scripts. 14517SHELL=$lt_SHELL 14518 14519# Whether or not to build shared libraries. 14520build_libtool_libs=$enable_shared 14521 14522# Whether or not to build static libraries. 14523build_old_libs=$enable_static 14524 14525# Whether or not to add -lc for building shared libraries. 14526build_libtool_need_lc=$archive_cmds_need_lc_CXX 14527 14528# Whether or not to disallow shared libs when runtime libs are static 14529allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 14530 14531# Whether or not to optimize for fast installation. 14532fast_install=$enable_fast_install 14533 14534# The host system. 14535host_alias=$host_alias 14536host=$host 14537host_os=$host_os 14538 14539# The build system. 14540build_alias=$build_alias 14541build=$build 14542build_os=$build_os 14543 14544# An echo program that does not interpret backslashes. 14545echo=$lt_echo 14546 14547# The archiver. 14548AR=$lt_AR 14549AR_FLAGS=$lt_AR_FLAGS 14550 14551# A C compiler. 14552LTCC=$lt_LTCC 14553 14554# LTCC compiler flags. 14555LTCFLAGS=$lt_LTCFLAGS 14556 14557# A language-specific compiler. 14558CC=$lt_compiler_CXX 14559 14560# Is the compiler the GNU C compiler? 14561with_gcc=$GCC_CXX 14562 14563# An ERE matcher. 14564EGREP=$lt_EGREP 14565 14566# The linker used to build libraries. 14567LD=$lt_LD_CXX 14568 14569# Whether we need hard or soft links. 14570LN_S=$lt_LN_S 14571 14572# A BSD-compatible nm program. 14573NM=$lt_NM 14574 14575# A symbol stripping program 14576STRIP=$lt_STRIP 14577 14578# Used to examine libraries when file_magic_cmd begins "file" 14579MAGIC_CMD=$MAGIC_CMD 14580 14581# Used on cygwin: DLL creation program. 14582DLLTOOL="$DLLTOOL" 14583 14584# Used on cygwin: object dumper. 14585OBJDUMP="$OBJDUMP" 14586 14587# Used on cygwin: assembler. 14588AS="$AS" 14589 14590# The name of the directory that contains temporary libtool files. 14591objdir=$objdir 14592 14593# How to create reloadable object files. 14594reload_flag=$lt_reload_flag 14595reload_cmds=$lt_reload_cmds 14596 14597# How to pass a linker flag through the compiler. 14598wl=$lt_lt_prog_compiler_wl_CXX 14599 14600# Object file suffix (normally "o"). 14601objext="$ac_objext" 14602 14603# Old archive suffix (normally "a"). 14604libext="$libext" 14605 14606# Shared library suffix (normally ".so"). 14607shrext_cmds='$shrext_cmds' 14608 14609# Executable file suffix (normally ""). 14610exeext="$exeext" 14611 14612# Additional compiler flags for building library objects. 14613pic_flag=$lt_lt_prog_compiler_pic_CXX 14614pic_mode=$pic_mode 14615 14616# What is the maximum length of a command? 14617max_cmd_len=$lt_cv_sys_max_cmd_len 14618 14619# Does compiler simultaneously support -c and -o options? 14620compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 14621 14622# Must we lock files when doing compilation? 14623need_locks=$lt_need_locks 14624 14625# Do we need the lib prefix for modules? 14626need_lib_prefix=$need_lib_prefix 14627 14628# Do we need a version for libraries? 14629need_version=$need_version 14630 14631# Whether dlopen is supported. 14632dlopen_support=$enable_dlopen 14633 14634# Whether dlopen of programs is supported. 14635dlopen_self=$enable_dlopen_self 14636 14637# Whether dlopen of statically linked programs is supported. 14638dlopen_self_static=$enable_dlopen_self_static 14639 14640# Compiler flag to prevent dynamic linking. 14641link_static_flag=$lt_lt_prog_compiler_static_CXX 14642 14643# Compiler flag to turn off builtin functions. 14644no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 14645 14646# Compiler flag to allow reflexive dlopens. 14647export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 14648 14649# Compiler flag to generate shared objects directly from archives. 14650whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 14651 14652# Compiler flag to generate thread-safe objects. 14653thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 14654 14655# Library versioning type. 14656version_type=$version_type 14657 14658# Format of library name prefix. 14659libname_spec=$lt_libname_spec 14660 14661# List of archive names. First name is the real one, the rest are links. 14662# The last name is the one that the linker finds with -lNAME. 14663library_names_spec=$lt_library_names_spec 14664 14665# The coded name of the library, if different from the real name. 14666soname_spec=$lt_soname_spec 14667 14668# Commands used to build and install an old-style archive. 14669RANLIB=$lt_RANLIB 14670old_archive_cmds=$lt_old_archive_cmds_CXX 14671old_postinstall_cmds=$lt_old_postinstall_cmds 14672old_postuninstall_cmds=$lt_old_postuninstall_cmds 14673 14674# Create an old-style archive from a shared archive. 14675old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 14676 14677# Create a temporary old-style archive to link instead of a shared archive. 14678old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 14679 14680# Commands used to build and install a shared archive. 14681archive_cmds=$lt_archive_cmds_CXX 14682archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 14683postinstall_cmds=$lt_postinstall_cmds 14684postuninstall_cmds=$lt_postuninstall_cmds 14685 14686# Commands used to build a loadable module (assumed same as above if empty) 14687module_cmds=$lt_module_cmds_CXX 14688module_expsym_cmds=$lt_module_expsym_cmds_CXX 14689 14690# Commands to strip libraries. 14691old_striplib=$lt_old_striplib 14692striplib=$lt_striplib 14693 14694# Dependencies to place before the objects being linked to create a 14695# shared library. 14696predep_objects=$lt_predep_objects_CXX 14697 14698# Dependencies to place after the objects being linked to create a 14699# shared library. 14700postdep_objects=$lt_postdep_objects_CXX 14701 14702# Dependencies to place before the objects being linked to create a 14703# shared library. 14704predeps=$lt_predeps_CXX 14705 14706# Dependencies to place after the objects being linked to create a 14707# shared library. 14708postdeps=$lt_postdeps_CXX 14709 14710# The library search path used internally by the compiler when linking 14711# a shared library. 14712compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 14713 14714# Method to check whether dependent libraries are shared objects. 14715deplibs_check_method=$lt_deplibs_check_method 14716 14717# Command to use when deplibs_check_method == file_magic. 14718file_magic_cmd=$lt_file_magic_cmd 14719 14720# Flag that allows shared libraries with undefined symbols to be built. 14721allow_undefined_flag=$lt_allow_undefined_flag_CXX 14722 14723# Flag that forces no undefined symbols. 14724no_undefined_flag=$lt_no_undefined_flag_CXX 14725 14726# Commands used to finish a libtool library installation in a directory. 14727finish_cmds=$lt_finish_cmds 14728 14729# Same as above, but a single script fragment to be evaled but not shown. 14730finish_eval=$lt_finish_eval 14731 14732# Take the output of nm and produce a listing of raw symbols and C names. 14733global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14734 14735# Transform the output of nm in a proper C declaration 14736global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14737 14738# Transform the output of nm in a C name address pair 14739global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14740 14741# This is the shared library runtime path variable. 14742runpath_var=$runpath_var 14743 14744# This is the shared library path variable. 14745shlibpath_var=$shlibpath_var 14746 14747# Is shlibpath searched before the hard-coded library search path? 14748shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14749 14750# How to hardcode a shared library path into an executable. 14751hardcode_action=$hardcode_action_CXX 14752 14753# Whether we should hardcode library paths into libraries. 14754hardcode_into_libs=$hardcode_into_libs 14755 14756# Flag to hardcode \$libdir into a binary during linking. 14757# This must work even if \$libdir does not exist. 14758hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 14759 14760# If ld is used when linking, flag to hardcode \$libdir into 14761# a binary during linking. This must work even if \$libdir does 14762# not exist. 14763hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 14764 14765# Whether we need a single -rpath flag with a separated argument. 14766hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 14767 14768# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 14769# resulting binary. 14770hardcode_direct=$hardcode_direct_CXX 14771 14772# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 14773# resulting binary. 14774hardcode_minus_L=$hardcode_minus_L_CXX 14775 14776# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 14777# the resulting binary. 14778hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 14779 14780# Set to yes if building a shared library automatically hardcodes DIR into the library 14781# and all subsequent libraries and executables linked against it. 14782hardcode_automatic=$hardcode_automatic_CXX 14783 14784# Variables whose values should be saved in libtool wrapper scripts and 14785# restored at relink time. 14786variables_saved_for_relink="$variables_saved_for_relink" 14787 14788# Whether libtool must link a program against all its dependency libraries. 14789link_all_deplibs=$link_all_deplibs_CXX 14790 14791# Compile-time system search path for libraries 14792sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14793 14794# Run-time system search path for libraries 14795sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14796 14797# Fix the shell variable \$srcfile for the compiler. 14798fix_srcfile_path="$fix_srcfile_path_CXX" 14799 14800# Set to yes if exported symbols are required. 14801always_export_symbols=$always_export_symbols_CXX 14802 14803# The commands to list exported symbols. 14804export_symbols_cmds=$lt_export_symbols_cmds_CXX 14805 14806# The commands to extract the exported symbol list from a shared archive. 14807extract_expsyms_cmds=$lt_extract_expsyms_cmds 14808 14809# Symbols that should not be listed in the preloaded symbols. 14810exclude_expsyms=$lt_exclude_expsyms_CXX 14811 14812# Symbols that must always be exported. 14813include_expsyms=$lt_include_expsyms_CXX 14814 14815# ### END LIBTOOL TAG CONFIG: $tagname 14816 14817__EOF__ 14818 14819 14820else 14821 # If there is no Makefile yet, we rely on a make rule to execute 14822 # `config.status --recheck' to rerun these tests and create the 14823 # libtool script then. 14824 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 14825 if test -f "$ltmain_in"; then 14826 test -f Makefile && make "$ltmain" 14827 fi 14828fi 14829 14830 14831ac_ext=c 14832ac_cpp='$CPP $CPPFLAGS' 14833ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14834ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14835ac_compiler_gnu=$ac_cv_c_compiler_gnu 14836 14837CC=$lt_save_CC 14838LDCXX=$LD 14839LD=$lt_save_LD 14840GCC=$lt_save_GCC 14841with_gnu_ldcxx=$with_gnu_ld 14842with_gnu_ld=$lt_save_with_gnu_ld 14843lt_cv_path_LDCXX=$lt_cv_path_LD 14844lt_cv_path_LD=$lt_save_path_LD 14845lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 14846lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 14847 14848 else 14849 tagname="" 14850 fi 14851 ;; 14852 14853 F77) 14854 if test -n "$F77" && test "X$F77" != "Xno"; then 14855 14856ac_ext=f 14857ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 14858ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14859ac_compiler_gnu=$ac_cv_f77_compiler_gnu 14860 14861 14862archive_cmds_need_lc_F77=no 14863allow_undefined_flag_F77= 14864always_export_symbols_F77=no 14865archive_expsym_cmds_F77= 14866export_dynamic_flag_spec_F77= 14867hardcode_direct_F77=no 14868hardcode_libdir_flag_spec_F77= 14869hardcode_libdir_flag_spec_ld_F77= 14870hardcode_libdir_separator_F77= 14871hardcode_minus_L_F77=no 14872hardcode_automatic_F77=no 14873module_cmds_F77= 14874module_expsym_cmds_F77= 14875link_all_deplibs_F77=unknown 14876old_archive_cmds_F77=$old_archive_cmds 14877no_undefined_flag_F77= 14878whole_archive_flag_spec_F77= 14879enable_shared_with_static_runtimes_F77=no 14880 14881# Source file extension for f77 test sources. 14882ac_ext=f 14883 14884# Object file extension for compiled f77 test sources. 14885objext=o 14886objext_F77=$objext 14887 14888# Code to be used in simple compile tests 14889lt_simple_compile_test_code=" subroutine t\n return\n end\n" 14890 14891# Code to be used in simple link tests 14892lt_simple_link_test_code=" program t\n end\n" 14893 14894# ltmain only uses $CC for tagged configurations so make sure $CC is set. 14895 14896# If no C compiler was specified, use CC. 14897LTCC=${LTCC-"$CC"} 14898 14899# If no C compiler flags were specified, use CFLAGS. 14900LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14901 14902# Allow CC to be a program name with arguments. 14903compiler=$CC 14904 14905 14906# save warnings/boilerplate of simple test code 14907ac_outfile=conftest.$ac_objext 14908printf "$lt_simple_compile_test_code" >conftest.$ac_ext 14909eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14910_lt_compiler_boilerplate=`cat conftest.err` 14911$rm conftest* 14912 14913ac_outfile=conftest.$ac_objext 14914printf "$lt_simple_link_test_code" >conftest.$ac_ext 14915eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14916_lt_linker_boilerplate=`cat conftest.err` 14917$rm conftest* 14918 14919 14920# Allow CC to be a program name with arguments. 14921lt_save_CC="$CC" 14922CC=${F77-"f77"} 14923compiler=$CC 14924compiler_F77=$CC 14925for cc_temp in $compiler""; do 14926 case $cc_temp in 14927 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14928 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14929 \-*) ;; 14930 *) break;; 14931 esac 14932done 14933cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14934 14935 14936echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 14937echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 14938echo "$as_me:$LINENO: result: $can_build_shared" >&5 14939echo "${ECHO_T}$can_build_shared" >&6 14940 14941echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 14942echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 14943test "$can_build_shared" = "no" && enable_shared=no 14944 14945# On AIX, shared libraries and static libraries use the same namespace, and 14946# are all built from PIC. 14947case $host_os in 14948aix3*) 14949 test "$enable_shared" = yes && enable_static=no 14950 if test -n "$RANLIB"; then 14951 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14952 postinstall_cmds='$RANLIB $lib' 14953 fi 14954 ;; 14955aix4* | aix5*) 14956 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 14957 test "$enable_shared" = yes && enable_static=no 14958 fi 14959 ;; 14960esac 14961echo "$as_me:$LINENO: result: $enable_shared" >&5 14962echo "${ECHO_T}$enable_shared" >&6 14963 14964echo "$as_me:$LINENO: checking whether to build static libraries" >&5 14965echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 14966# Make sure either enable_shared or enable_static is yes. 14967test "$enable_shared" = yes || enable_static=yes 14968echo "$as_me:$LINENO: result: $enable_static" >&5 14969echo "${ECHO_T}$enable_static" >&6 14970 14971GCC_F77="$G77" 14972LD_F77="$LD" 14973 14974lt_prog_compiler_wl_F77= 14975lt_prog_compiler_pic_F77= 14976lt_prog_compiler_static_F77= 14977 14978echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 14979echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 14980 14981 if test "$GCC" = yes; then 14982 lt_prog_compiler_wl_F77='-Wl,' 14983 lt_prog_compiler_static_F77='-static' 14984 14985 case $host_os in 14986 aix*) 14987 # All AIX code is PIC. 14988 if test "$host_cpu" = ia64; then 14989 # AIX 5 now supports IA64 processor 14990 lt_prog_compiler_static_F77='-Bstatic' 14991 fi 14992 ;; 14993 14994 amigaos*) 14995 # FIXME: we need at least 68020 code to build shared libraries, but 14996 # adding the `-m68020' flag to GCC prevents building anything better, 14997 # like `-m68040'. 14998 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 14999 ;; 15000 15001 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15002 # PIC is the default for these OSes. 15003 ;; 15004 15005 mingw* | pw32* | os2*) 15006 # This hack is so that the source file can tell whether it is being 15007 # built for inclusion in a dll (and should export symbols for example). 15008 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 15009 ;; 15010 15011 darwin* | rhapsody*) 15012 # PIC is the default on this platform 15013 # Common symbols not allowed in MH_DYLIB files 15014 lt_prog_compiler_pic_F77='-fno-common' 15015 ;; 15016 15017 interix3*) 15018 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15019 # Instead, we relocate shared libraries at runtime. 15020 ;; 15021 15022 msdosdjgpp*) 15023 # Just because we use GCC doesn't mean we suddenly get shared libraries 15024 # on systems that don't support them. 15025 lt_prog_compiler_can_build_shared_F77=no 15026 enable_shared=no 15027 ;; 15028 15029 sysv4*MP*) 15030 if test -d /usr/nec; then 15031 lt_prog_compiler_pic_F77=-Kconform_pic 15032 fi 15033 ;; 15034 15035 hpux*) 15036 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15037 # not for PA HP-UX. 15038 case $host_cpu in 15039 hppa*64*|ia64*) 15040 # +Z the default 15041 ;; 15042 *) 15043 lt_prog_compiler_pic_F77='-fPIC' 15044 ;; 15045 esac 15046 ;; 15047 15048 *) 15049 lt_prog_compiler_pic_F77='-fPIC' 15050 ;; 15051 esac 15052 else 15053 # PORTME Check for flag to pass linker flags through the system compiler. 15054 case $host_os in 15055 aix*) 15056 lt_prog_compiler_wl_F77='-Wl,' 15057 if test "$host_cpu" = ia64; then 15058 # AIX 5 now supports IA64 processor 15059 lt_prog_compiler_static_F77='-Bstatic' 15060 else 15061 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 15062 fi 15063 ;; 15064 darwin*) 15065 # PIC is the default on this platform 15066 # Common symbols not allowed in MH_DYLIB files 15067 case $cc_basename in 15068 xlc*) 15069 lt_prog_compiler_pic_F77='-qnocommon' 15070 lt_prog_compiler_wl_F77='-Wl,' 15071 ;; 15072 esac 15073 ;; 15074 15075 mingw* | pw32* | os2*) 15076 # This hack is so that the source file can tell whether it is being 15077 # built for inclusion in a dll (and should export symbols for example). 15078 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 15079 ;; 15080 15081 hpux9* | hpux10* | hpux11*) 15082 lt_prog_compiler_wl_F77='-Wl,' 15083 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15084 # not for PA HP-UX. 15085 case $host_cpu in 15086 hppa*64*|ia64*) 15087 # +Z the default 15088 ;; 15089 *) 15090 lt_prog_compiler_pic_F77='+Z' 15091 ;; 15092 esac 15093 # Is there a better lt_prog_compiler_static that works with the bundled CC? 15094 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 15095 ;; 15096 15097 irix5* | irix6* | nonstopux*) 15098 lt_prog_compiler_wl_F77='-Wl,' 15099 # PIC (with -KPIC) is the default. 15100 lt_prog_compiler_static_F77='-non_shared' 15101 ;; 15102 15103 newsos6) 15104 lt_prog_compiler_pic_F77='-KPIC' 15105 lt_prog_compiler_static_F77='-Bstatic' 15106 ;; 15107 15108 linux*) 15109 case $cc_basename in 15110 icc* | ecc*) 15111 lt_prog_compiler_wl_F77='-Wl,' 15112 lt_prog_compiler_pic_F77='-KPIC' 15113 lt_prog_compiler_static_F77='-static' 15114 ;; 15115 pgcc* | pgf77* | pgf90* | pgf95*) 15116 # Portland Group compilers (*not* the Pentium gcc compiler, 15117 # which looks to be a dead project) 15118 lt_prog_compiler_wl_F77='-Wl,' 15119 lt_prog_compiler_pic_F77='-fpic' 15120 lt_prog_compiler_static_F77='-Bstatic' 15121 ;; 15122 ccc*) 15123 lt_prog_compiler_wl_F77='-Wl,' 15124 # All Alpha code is PIC. 15125 lt_prog_compiler_static_F77='-non_shared' 15126 ;; 15127 esac 15128 ;; 15129 15130 osf3* | osf4* | osf5*) 15131 lt_prog_compiler_wl_F77='-Wl,' 15132 # All OSF/1 code is PIC. 15133 lt_prog_compiler_static_F77='-non_shared' 15134 ;; 15135 15136 solaris*) 15137 lt_prog_compiler_pic_F77='-KPIC' 15138 lt_prog_compiler_static_F77='-Bstatic' 15139 case $cc_basename in 15140 f77* | f90* | f95*) 15141 lt_prog_compiler_wl_F77='-Qoption ld ';; 15142 *) 15143 lt_prog_compiler_wl_F77='-Wl,';; 15144 esac 15145 ;; 15146 15147 sunos4*) 15148 lt_prog_compiler_wl_F77='-Qoption ld ' 15149 lt_prog_compiler_pic_F77='-PIC' 15150 lt_prog_compiler_static_F77='-Bstatic' 15151 ;; 15152 15153 sysv4 | sysv4.2uw2* | sysv4.3*) 15154 lt_prog_compiler_wl_F77='-Wl,' 15155 lt_prog_compiler_pic_F77='-KPIC' 15156 lt_prog_compiler_static_F77='-Bstatic' 15157 ;; 15158 15159 sysv4*MP*) 15160 if test -d /usr/nec ;then 15161 lt_prog_compiler_pic_F77='-Kconform_pic' 15162 lt_prog_compiler_static_F77='-Bstatic' 15163 fi 15164 ;; 15165 15166 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15167 lt_prog_compiler_wl_F77='-Wl,' 15168 lt_prog_compiler_pic_F77='-KPIC' 15169 lt_prog_compiler_static_F77='-Bstatic' 15170 ;; 15171 15172 unicos*) 15173 lt_prog_compiler_wl_F77='-Wl,' 15174 lt_prog_compiler_can_build_shared_F77=no 15175 ;; 15176 15177 uts4*) 15178 lt_prog_compiler_pic_F77='-pic' 15179 lt_prog_compiler_static_F77='-Bstatic' 15180 ;; 15181 15182 *) 15183 lt_prog_compiler_can_build_shared_F77=no 15184 ;; 15185 esac 15186 fi 15187 15188echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 15189echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 15190 15191# 15192# Check to make sure the PIC flag actually works. 15193# 15194if test -n "$lt_prog_compiler_pic_F77"; then 15195 15196echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 15197echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 15198if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 15199 echo $ECHO_N "(cached) $ECHO_C" >&6 15200else 15201 lt_prog_compiler_pic_works_F77=no 15202 ac_outfile=conftest.$ac_objext 15203 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15204 lt_compiler_flag="$lt_prog_compiler_pic_F77" 15205 # Insert the option either (1) after the last *FLAGS variable, or 15206 # (2) before a word containing "conftest.", or (3) at the end. 15207 # Note that $ac_compile itself does not contain backslashes and begins 15208 # with a dollar sign (not a hyphen), so the echo should work correctly. 15209 # The option is referenced via a variable to avoid confusing sed. 15210 lt_compile=`echo "$ac_compile" | $SED \ 15211 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15212 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15213 -e 's:$: $lt_compiler_flag:'` 15214 (eval echo "\"\$as_me:15214: $lt_compile\"" >&5) 15215 (eval "$lt_compile" 2>conftest.err) 15216 ac_status=$? 15217 cat conftest.err >&5 15218 echo "$as_me:15218: \$? = $ac_status" >&5 15219 if (exit $ac_status) && test -s "$ac_outfile"; then 15220 # The compiler can only warn and ignore the option if not recognized 15221 # So say no if there are warnings other than the usual output. 15222 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 15223 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15224 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15225 lt_prog_compiler_pic_works_F77=yes 15226 fi 15227 fi 15228 $rm conftest* 15229 15230fi 15231echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 15232echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 15233 15234if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 15235 case $lt_prog_compiler_pic_F77 in 15236 "" | " "*) ;; 15237 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 15238 esac 15239else 15240 lt_prog_compiler_pic_F77= 15241 lt_prog_compiler_can_build_shared_F77=no 15242fi 15243 15244fi 15245case $host_os in 15246 # For platforms which do not support PIC, -DPIC is meaningless: 15247 *djgpp*) 15248 lt_prog_compiler_pic_F77= 15249 ;; 15250 *) 15251 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 15252 ;; 15253esac 15254 15255# 15256# Check to make sure the static flag actually works. 15257# 15258wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 15259echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15260echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 15261if test "${lt_prog_compiler_static_works_F77+set}" = set; then 15262 echo $ECHO_N "(cached) $ECHO_C" >&6 15263else 15264 lt_prog_compiler_static_works_F77=no 15265 save_LDFLAGS="$LDFLAGS" 15266 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15267 printf "$lt_simple_link_test_code" > conftest.$ac_ext 15268 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15269 # The linker can only warn and ignore the option if not recognized 15270 # So say no if there are warnings 15271 if test -s conftest.err; then 15272 # Append any errors to the config.log. 15273 cat conftest.err 1>&5 15274 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 15275 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15276 if diff conftest.exp conftest.er2 >/dev/null; then 15277 lt_prog_compiler_static_works_F77=yes 15278 fi 15279 else 15280 lt_prog_compiler_static_works_F77=yes 15281 fi 15282 fi 15283 $rm conftest* 15284 LDFLAGS="$save_LDFLAGS" 15285 15286fi 15287echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 15288echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6 15289 15290if test x"$lt_prog_compiler_static_works_F77" = xyes; then 15291 : 15292else 15293 lt_prog_compiler_static_F77= 15294fi 15295 15296 15297echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 15298echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 15299if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 15300 echo $ECHO_N "(cached) $ECHO_C" >&6 15301else 15302 lt_cv_prog_compiler_c_o_F77=no 15303 $rm -r conftest 2>/dev/null 15304 mkdir conftest 15305 cd conftest 15306 mkdir out 15307 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15308 15309 lt_compiler_flag="-o out/conftest2.$ac_objext" 15310 # Insert the option either (1) after the last *FLAGS variable, or 15311 # (2) before a word containing "conftest.", or (3) at the end. 15312 # Note that $ac_compile itself does not contain backslashes and begins 15313 # with a dollar sign (not a hyphen), so the echo should work correctly. 15314 lt_compile=`echo "$ac_compile" | $SED \ 15315 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15316 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15317 -e 's:$: $lt_compiler_flag:'` 15318 (eval echo "\"\$as_me:15318: $lt_compile\"" >&5) 15319 (eval "$lt_compile" 2>out/conftest.err) 15320 ac_status=$? 15321 cat out/conftest.err >&5 15322 echo "$as_me:15322: \$? = $ac_status" >&5 15323 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15324 then 15325 # The compiler can only warn and ignore the option if not recognized 15326 # So say no if there are warnings 15327 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 15328 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15329 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15330 lt_cv_prog_compiler_c_o_F77=yes 15331 fi 15332 fi 15333 chmod u+w . 2>&5 15334 $rm conftest* 15335 # SGI C++ compiler will create directory out/ii_files/ for 15336 # template instantiation 15337 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 15338 $rm out/* && rmdir out 15339 cd .. 15340 rmdir conftest 15341 $rm conftest* 15342 15343fi 15344echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 15345echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 15346 15347 15348hard_links="nottested" 15349if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 15350 # do not overwrite the value of need_locks provided by the user 15351 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 15352echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 15353 hard_links=yes 15354 $rm conftest* 15355 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15356 touch conftest.a 15357 ln conftest.a conftest.b 2>&5 || hard_links=no 15358 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15359 echo "$as_me:$LINENO: result: $hard_links" >&5 15360echo "${ECHO_T}$hard_links" >&6 15361 if test "$hard_links" = no; then 15362 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 15363echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 15364 need_locks=warn 15365 fi 15366else 15367 need_locks=no 15368fi 15369 15370echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15371echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 15372 15373 runpath_var= 15374 allow_undefined_flag_F77= 15375 enable_shared_with_static_runtimes_F77=no 15376 archive_cmds_F77= 15377 archive_expsym_cmds_F77= 15378 old_archive_From_new_cmds_F77= 15379 old_archive_from_expsyms_cmds_F77= 15380 export_dynamic_flag_spec_F77= 15381 whole_archive_flag_spec_F77= 15382 thread_safe_flag_spec_F77= 15383 hardcode_libdir_flag_spec_F77= 15384 hardcode_libdir_flag_spec_ld_F77= 15385 hardcode_libdir_separator_F77= 15386 hardcode_direct_F77=no 15387 hardcode_minus_L_F77=no 15388 hardcode_shlibpath_var_F77=unsupported 15389 link_all_deplibs_F77=unknown 15390 hardcode_automatic_F77=no 15391 module_cmds_F77= 15392 module_expsym_cmds_F77= 15393 always_export_symbols_F77=no 15394 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15395 # include_expsyms should be a list of space-separated symbols to be *always* 15396 # included in the symbol list 15397 include_expsyms_F77= 15398 # exclude_expsyms can be an extended regexp of symbols to exclude 15399 # it will be wrapped by ` (' and `)$', so one must not match beginning or 15400 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 15401 # as well as any symbol that contains `d'. 15402 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 15403 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 15404 # platforms (ab)use it in PIC code, but their linkers get confused if 15405 # the symbol is explicitly referenced. Since portable code cannot 15406 # rely on this symbol name, it's probably fine to never include it in 15407 # preloaded symbol tables. 15408 extract_expsyms_cmds= 15409 # Just being paranoid about ensuring that cc_basename is set. 15410 for cc_temp in $compiler""; do 15411 case $cc_temp in 15412 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15413 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15414 \-*) ;; 15415 *) break;; 15416 esac 15417done 15418cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 15419 15420 case $host_os in 15421 cygwin* | mingw* | pw32*) 15422 # FIXME: the MSVC++ port hasn't been tested in a loooong time 15423 # When not using gcc, we currently assume that we are using 15424 # Microsoft Visual C++. 15425 if test "$GCC" != yes; then 15426 with_gnu_ld=no 15427 fi 15428 ;; 15429 interix*) 15430 # we just hope/assume this is gcc and not c89 (= MSVC++) 15431 with_gnu_ld=yes 15432 ;; 15433 openbsd*) 15434 with_gnu_ld=no 15435 ;; 15436 esac 15437 15438 ld_shlibs_F77=yes 15439 if test "$with_gnu_ld" = yes; then 15440 # If archive_cmds runs LD, not CC, wlarc should be empty 15441 wlarc='${wl}' 15442 15443 # Set some defaults for GNU ld with shared library support. These 15444 # are reset later if shared libraries are not supported. Putting them 15445 # here allows them to be overridden if necessary. 15446 runpath_var=LD_RUN_PATH 15447 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 15448 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 15449 # ancient GNU ld didn't support --whole-archive et. al. 15450 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 15451 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 15452 else 15453 whole_archive_flag_spec_F77= 15454 fi 15455 supports_anon_versioning=no 15456 case `$LD -v 2>/dev/null` in 15457 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 15458 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 15459 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 15460 *\ 2.11.*) ;; # other 2.11 versions 15461 *) supports_anon_versioning=yes ;; 15462 esac 15463 15464 # See if GNU ld supports shared libraries. 15465 case $host_os in 15466 aix3* | aix4* | aix5*) 15467 # On AIX/PPC, the GNU linker is very broken 15468 if test "$host_cpu" != ia64; then 15469 ld_shlibs_F77=no 15470 cat <<EOF 1>&2 15471 15472*** Warning: the GNU linker, at least up to release 2.9.1, is reported 15473*** to be unable to reliably create shared libraries on AIX. 15474*** Therefore, libtool is disabling shared libraries support. If you 15475*** really care for shared libraries, you may want to modify your PATH 15476*** so that a non-GNU linker is found, and then restart. 15477 15478EOF 15479 fi 15480 ;; 15481 15482 amigaos*) 15483 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)' 15484 hardcode_libdir_flag_spec_F77='-L$libdir' 15485 hardcode_minus_L_F77=yes 15486 15487 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 15488 # that the semantics of dynamic libraries on AmigaOS, at least up 15489 # to version 4, is to share data among multiple programs linked 15490 # with the same dynamic library. Since this doesn't match the 15491 # behavior of shared libraries on other platforms, we can't use 15492 # them. 15493 ld_shlibs_F77=no 15494 ;; 15495 15496 beos*) 15497 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15498 allow_undefined_flag_F77=unsupported 15499 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 15500 # support --undefined. This deserves some investigation. FIXME 15501 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15502 else 15503 ld_shlibs_F77=no 15504 fi 15505 ;; 15506 15507 cygwin* | mingw* | pw32*) 15508 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 15509 # as there is no search path for DLLs. 15510 hardcode_libdir_flag_spec_F77='-L$libdir' 15511 allow_undefined_flag_F77=unsupported 15512 always_export_symbols_F77=no 15513 enable_shared_with_static_runtimes_F77=yes 15514 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 15515 15516 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 15517 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15518 # If the export-symbols file already is a .def file (1st line 15519 # is EXPORTS), use it as is; otherwise, prepend... 15520 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 15521 cp $export_symbols $output_objdir/$soname.def; 15522 else 15523 echo EXPORTS > $output_objdir/$soname.def; 15524 cat $export_symbols >> $output_objdir/$soname.def; 15525 fi~ 15526 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15527 else 15528 ld_shlibs_F77=no 15529 fi 15530 ;; 15531 15532 interix3*) 15533 hardcode_direct_F77=no 15534 hardcode_shlibpath_var_F77=no 15535 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15536 export_dynamic_flag_spec_F77='${wl}-E' 15537 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 15538 # Instead, shared libraries are loaded at an image base (0x10000000 by 15539 # default) and relocated if they conflict, which is a slow very memory 15540 # consuming and fragmenting process. To avoid this, we pick a random, 15541 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 15542 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 15543 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' 15544 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' 15545 ;; 15546 15547 linux*) 15548 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15549 tmp_addflag= 15550 case $cc_basename,$host_cpu in 15551 pgcc*) # Portland Group C compiler 15552 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' 15553 tmp_addflag=' $pic_flag' 15554 ;; 15555 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 15556 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' 15557 tmp_addflag=' $pic_flag -Mnomain' ;; 15558 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 15559 tmp_addflag=' -i_dynamic' ;; 15560 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 15561 tmp_addflag=' -i_dynamic -nofor_main' ;; 15562 ifc* | ifort*) # Intel Fortran compiler 15563 tmp_addflag=' -nofor_main' ;; 15564 esac 15565 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15566 15567 if test $supports_anon_versioning = yes; then 15568 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 15569 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15570 $echo "local: *; };" >> $output_objdir/$libname.ver~ 15571 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 15572 fi 15573 else 15574 ld_shlibs_F77=no 15575 fi 15576 ;; 15577 15578 netbsd*) 15579 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15580 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 15581 wlarc= 15582 else 15583 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15584 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15585 fi 15586 ;; 15587 15588 solaris*) 15589 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 15590 ld_shlibs_F77=no 15591 cat <<EOF 1>&2 15592 15593*** Warning: The releases 2.8.* of the GNU linker cannot reliably 15594*** create shared libraries on Solaris systems. Therefore, libtool 15595*** is disabling shared libraries support. We urge you to upgrade GNU 15596*** binutils to release 2.9.1 or newer. Another option is to modify 15597*** your PATH or compiler configuration so that the native linker is 15598*** used, and then restart. 15599 15600EOF 15601 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15602 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15603 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15604 else 15605 ld_shlibs_F77=no 15606 fi 15607 ;; 15608 15609 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 15610 case `$LD -v 2>&1` in 15611 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 15612 ld_shlibs_F77=no 15613 cat <<_LT_EOF 1>&2 15614 15615*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 15616*** reliably create shared libraries on SCO systems. Therefore, libtool 15617*** is disabling shared libraries support. We urge you to upgrade GNU 15618*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 15619*** your PATH or compiler configuration so that the native linker is 15620*** used, and then restart. 15621 15622_LT_EOF 15623 ;; 15624 *) 15625 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15626 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 15627 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 15628 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 15629 else 15630 ld_shlibs_F77=no 15631 fi 15632 ;; 15633 esac 15634 ;; 15635 15636 sunos4*) 15637 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15638 wlarc= 15639 hardcode_direct_F77=yes 15640 hardcode_shlibpath_var_F77=no 15641 ;; 15642 15643 *) 15644 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15645 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15646 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15647 else 15648 ld_shlibs_F77=no 15649 fi 15650 ;; 15651 esac 15652 15653 if test "$ld_shlibs_F77" = no; then 15654 runpath_var= 15655 hardcode_libdir_flag_spec_F77= 15656 export_dynamic_flag_spec_F77= 15657 whole_archive_flag_spec_F77= 15658 fi 15659 else 15660 # PORTME fill in a description of your system's linker (not GNU ld) 15661 case $host_os in 15662 aix3*) 15663 allow_undefined_flag_F77=unsupported 15664 always_export_symbols_F77=yes 15665 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' 15666 # Note: this linker hardcodes the directories in LIBPATH if there 15667 # are no directories specified by -L. 15668 hardcode_minus_L_F77=yes 15669 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 15670 # Neither direct hardcoding nor static linking is supported with a 15671 # broken collect2. 15672 hardcode_direct_F77=unsupported 15673 fi 15674 ;; 15675 15676 aix4* | aix5*) 15677 if test "$host_cpu" = ia64; then 15678 # On IA64, the linker does run time linking by default, so we don't 15679 # have to do anything special. 15680 aix_use_runtimelinking=no 15681 exp_sym_flag='-Bexport' 15682 no_entry_flag="" 15683 else 15684 # If we're using GNU nm, then we don't want the "-C" option. 15685 # -C means demangle to AIX nm, but means don't demangle with GNU nm 15686 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 15687 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' 15688 else 15689 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' 15690 fi 15691 aix_use_runtimelinking=no 15692 15693 # Test if we are trying to use run time linking or normal 15694 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15695 # need to do runtime linking. 15696 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 15697 for ld_flag in $LDFLAGS; do 15698 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 15699 aix_use_runtimelinking=yes 15700 break 15701 fi 15702 done 15703 ;; 15704 esac 15705 15706 exp_sym_flag='-bexport' 15707 no_entry_flag='-bnoentry' 15708 fi 15709 15710 # When large executables or shared objects are built, AIX ld can 15711 # have problems creating the table of contents. If linking a library 15712 # or program results in "error TOC overflow" add -mminimal-toc to 15713 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15714 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15715 15716 archive_cmds_F77='' 15717 hardcode_direct_F77=yes 15718 hardcode_libdir_separator_F77=':' 15719 link_all_deplibs_F77=yes 15720 15721 if test "$GCC" = yes; then 15722 case $host_os in aix4.[012]|aix4.[012].*) 15723 # We only want to do this on AIX 4.2 and lower, the check 15724 # below for broken collect2 doesn't work under 4.3+ 15725 collect2name=`${CC} -print-prog-name=collect2` 15726 if test -f "$collect2name" && \ 15727 strings "$collect2name" | grep resolve_lib_name >/dev/null 15728 then 15729 # We have reworked collect2 15730 hardcode_direct_F77=yes 15731 else 15732 # We have old collect2 15733 hardcode_direct_F77=unsupported 15734 # It fails to find uninstalled libraries when the uninstalled 15735 # path is not listed in the libpath. Setting hardcode_minus_L 15736 # to unsupported forces relinking 15737 hardcode_minus_L_F77=yes 15738 hardcode_libdir_flag_spec_F77='-L$libdir' 15739 hardcode_libdir_separator_F77= 15740 fi 15741 ;; 15742 esac 15743 shared_flag='-shared' 15744 if test "$aix_use_runtimelinking" = yes; then 15745 shared_flag="$shared_flag "'${wl}-G' 15746 fi 15747 else 15748 # not using gcc 15749 if test "$host_cpu" = ia64; then 15750 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15751 # chokes on -Wl,-G. The following line is correct: 15752 shared_flag='-G' 15753 else 15754 if test "$aix_use_runtimelinking" = yes; then 15755 shared_flag='${wl}-G' 15756 else 15757 shared_flag='${wl}-bM:SRE' 15758 fi 15759 fi 15760 fi 15761 15762 # It seems that -bexpall does not export symbols beginning with 15763 # underscore (_), so it is better to generate a list of symbols to export. 15764 always_export_symbols_F77=yes 15765 if test "$aix_use_runtimelinking" = yes; then 15766 # Warning - without using the other runtime loading flags (-brtl), 15767 # -berok will link without error, but may produce a broken library. 15768 allow_undefined_flag_F77='-berok' 15769 # Determine the default libpath from the value encoded in an empty executable. 15770 cat >conftest.$ac_ext <<_ACEOF 15771 program main 15772 15773 end 15774_ACEOF 15775rm -f conftest.$ac_objext conftest$ac_exeext 15776if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15777 (eval $ac_link) 2>conftest.er1 15778 ac_status=$? 15779 grep -v '^ *+' conftest.er1 >conftest.err 15780 rm -f conftest.er1 15781 cat conftest.err >&5 15782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15783 (exit $ac_status); } && 15784 { ac_try='test -z "$ac_f77_werror_flag" 15785 || test ! -s conftest.err' 15786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15787 (eval $ac_try) 2>&5 15788 ac_status=$? 15789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15790 (exit $ac_status); }; } && 15791 { ac_try='test -s conftest$ac_exeext' 15792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15793 (eval $ac_try) 2>&5 15794 ac_status=$? 15795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15796 (exit $ac_status); }; }; then 15797 15798aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15799}'` 15800# Check for a 64-bit object if we didn't find anything. 15801if 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; } 15802}'`; fi 15803else 15804 echo "$as_me: failed program was:" >&5 15805sed 's/^/| /' conftest.$ac_ext >&5 15806 15807fi 15808rm -f conftest.err conftest.$ac_objext \ 15809 conftest$ac_exeext conftest.$ac_ext 15810if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15811 15812 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15813 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" 15814 else 15815 if test "$host_cpu" = ia64; then 15816 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 15817 allow_undefined_flag_F77="-z nodefs" 15818 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" 15819 else 15820 # Determine the default libpath from the value encoded in an empty executable. 15821 cat >conftest.$ac_ext <<_ACEOF 15822 program main 15823 15824 end 15825_ACEOF 15826rm -f conftest.$ac_objext conftest$ac_exeext 15827if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15828 (eval $ac_link) 2>conftest.er1 15829 ac_status=$? 15830 grep -v '^ *+' conftest.er1 >conftest.err 15831 rm -f conftest.er1 15832 cat conftest.err >&5 15833 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15834 (exit $ac_status); } && 15835 { ac_try='test -z "$ac_f77_werror_flag" 15836 || test ! -s conftest.err' 15837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15838 (eval $ac_try) 2>&5 15839 ac_status=$? 15840 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15841 (exit $ac_status); }; } && 15842 { ac_try='test -s conftest$ac_exeext' 15843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15844 (eval $ac_try) 2>&5 15845 ac_status=$? 15846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15847 (exit $ac_status); }; }; then 15848 15849aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15850}'` 15851# Check for a 64-bit object if we didn't find anything. 15852if 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; } 15853}'`; fi 15854else 15855 echo "$as_me: failed program was:" >&5 15856sed 's/^/| /' conftest.$ac_ext >&5 15857 15858fi 15859rm -f conftest.err conftest.$ac_objext \ 15860 conftest$ac_exeext conftest.$ac_ext 15861if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15862 15863 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15864 # Warning - without using the other run time loading flags, 15865 # -berok will link without error, but may produce a broken library. 15866 no_undefined_flag_F77=' ${wl}-bernotok' 15867 allow_undefined_flag_F77=' ${wl}-berok' 15868 # Exported symbols can be pulled into shared objects from archives 15869 whole_archive_flag_spec_F77='$convenience' 15870 archive_cmds_need_lc_F77=yes 15871 # This is similar to how AIX traditionally builds its shared libraries. 15872 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' 15873 fi 15874 fi 15875 ;; 15876 15877 amigaos*) 15878 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)' 15879 hardcode_libdir_flag_spec_F77='-L$libdir' 15880 hardcode_minus_L_F77=yes 15881 # see comment about different semantics on the GNU ld section 15882 ld_shlibs_F77=no 15883 ;; 15884 15885 bsdi[45]*) 15886 export_dynamic_flag_spec_F77=-rdynamic 15887 ;; 15888 15889 cygwin* | mingw* | pw32*) 15890 # When not using gcc, we currently assume that we are using 15891 # Microsoft Visual C++. 15892 # hardcode_libdir_flag_spec is actually meaningless, as there is 15893 # no search path for DLLs. 15894 hardcode_libdir_flag_spec_F77=' ' 15895 allow_undefined_flag_F77=unsupported 15896 # Tell ltmain to make .lib files, not .a files. 15897 libext=lib 15898 # Tell ltmain to make .dll files, not .so files. 15899 shrext_cmds=".dll" 15900 # FIXME: Setting linknames here is a bad hack. 15901 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 15902 # The linker will automatically build a .lib file if we build a DLL. 15903 old_archive_From_new_cmds_F77='true' 15904 # FIXME: Should let the user specify the lib program. 15905 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 15906 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 15907 enable_shared_with_static_runtimes_F77=yes 15908 ;; 15909 15910 darwin* | rhapsody*) 15911 case $host_os in 15912 rhapsody* | darwin1.[012]) 15913 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 15914 ;; 15915 *) # Darwin 1.3 on 15916 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 15917 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15918 else 15919 case ${MACOSX_DEPLOYMENT_TARGET} in 15920 10.[012]) 15921 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15922 ;; 15923 10.*) 15924 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 15925 ;; 15926 esac 15927 fi 15928 ;; 15929 esac 15930 archive_cmds_need_lc_F77=no 15931 hardcode_direct_F77=no 15932 hardcode_automatic_F77=yes 15933 hardcode_shlibpath_var_F77=unsupported 15934 whole_archive_flag_spec_F77='' 15935 link_all_deplibs_F77=yes 15936 if test "$GCC" = yes ; then 15937 output_verbose_link_cmd='echo' 15938 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 15939 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15940 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15941 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}' 15942 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}' 15943 else 15944 case $cc_basename in 15945 xlc*) 15946 output_verbose_link_cmd='echo' 15947 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 15948 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15949 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15950 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}' 15951 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}' 15952 ;; 15953 *) 15954 ld_shlibs_F77=no 15955 ;; 15956 esac 15957 fi 15958 ;; 15959 15960 dgux*) 15961 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15962 hardcode_libdir_flag_spec_F77='-L$libdir' 15963 hardcode_shlibpath_var_F77=no 15964 ;; 15965 15966 freebsd1*) 15967 ld_shlibs_F77=no 15968 ;; 15969 15970 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15971 # support. Future versions do this automatically, but an explicit c++rt0.o 15972 # does not break anything, and helps significantly (at the cost of a little 15973 # extra space). 15974 freebsd2.2*) 15975 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15976 hardcode_libdir_flag_spec_F77='-R$libdir' 15977 hardcode_direct_F77=yes 15978 hardcode_shlibpath_var_F77=no 15979 ;; 15980 15981 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15982 freebsd2*) 15983 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15984 hardcode_direct_F77=yes 15985 hardcode_minus_L_F77=yes 15986 hardcode_shlibpath_var_F77=no 15987 ;; 15988 15989 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15990 freebsd* | kfreebsd*-gnu | dragonfly*) 15991 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 15992 hardcode_libdir_flag_spec_F77='-R$libdir' 15993 hardcode_direct_F77=yes 15994 hardcode_shlibpath_var_F77=no 15995 ;; 15996 15997 hpux9*) 15998 if test "$GCC" = yes; then 15999 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' 16000 else 16001 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' 16002 fi 16003 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 16004 hardcode_libdir_separator_F77=: 16005 hardcode_direct_F77=yes 16006 16007 # hardcode_minus_L: Not really in the search PATH, 16008 # but as the default location of the library. 16009 hardcode_minus_L_F77=yes 16010 export_dynamic_flag_spec_F77='${wl}-E' 16011 ;; 16012 16013 hpux10*) 16014 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 16015 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16016 else 16017 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16018 fi 16019 if test "$with_gnu_ld" = no; then 16020 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 16021 hardcode_libdir_separator_F77=: 16022 16023 hardcode_direct_F77=yes 16024 export_dynamic_flag_spec_F77='${wl}-E' 16025 16026 # hardcode_minus_L: Not really in the search PATH, 16027 # but as the default location of the library. 16028 hardcode_minus_L_F77=yes 16029 fi 16030 ;; 16031 16032 hpux11*) 16033 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 16034 case $host_cpu in 16035 hppa*64*) 16036 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16037 ;; 16038 ia64*) 16039 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16040 ;; 16041 *) 16042 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16043 ;; 16044 esac 16045 else 16046 case $host_cpu in 16047 hppa*64*) 16048 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16049 ;; 16050 ia64*) 16051 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16052 ;; 16053 *) 16054 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16055 ;; 16056 esac 16057 fi 16058 if test "$with_gnu_ld" = no; then 16059 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 16060 hardcode_libdir_separator_F77=: 16061 16062 case $host_cpu in 16063 hppa*64*|ia64*) 16064 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 16065 hardcode_direct_F77=no 16066 hardcode_shlibpath_var_F77=no 16067 ;; 16068 *) 16069 hardcode_direct_F77=yes 16070 export_dynamic_flag_spec_F77='${wl}-E' 16071 16072 # hardcode_minus_L: Not really in the search PATH, 16073 # but as the default location of the library. 16074 hardcode_minus_L_F77=yes 16075 ;; 16076 esac 16077 fi 16078 ;; 16079 16080 irix5* | irix6* | nonstopux*) 16081 if test "$GCC" = yes; then 16082 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' 16083 else 16084 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' 16085 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 16086 fi 16087 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 16088 hardcode_libdir_separator_F77=: 16089 link_all_deplibs_F77=yes 16090 ;; 16091 16092 netbsd*) 16093 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16094 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 16095 else 16096 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 16097 fi 16098 hardcode_libdir_flag_spec_F77='-R$libdir' 16099 hardcode_direct_F77=yes 16100 hardcode_shlibpath_var_F77=no 16101 ;; 16102 16103 newsos6) 16104 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16105 hardcode_direct_F77=yes 16106 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 16107 hardcode_libdir_separator_F77=: 16108 hardcode_shlibpath_var_F77=no 16109 ;; 16110 16111 openbsd*) 16112 hardcode_direct_F77=yes 16113 hardcode_shlibpath_var_F77=no 16114 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16115 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16116 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 16117 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 16118 export_dynamic_flag_spec_F77='${wl}-E' 16119 else 16120 case $host_os in 16121 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 16122 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16123 hardcode_libdir_flag_spec_F77='-R$libdir' 16124 ;; 16125 *) 16126 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16127 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 16128 ;; 16129 esac 16130 fi 16131 ;; 16132 16133 os2*) 16134 hardcode_libdir_flag_spec_F77='-L$libdir' 16135 hardcode_minus_L_F77=yes 16136 allow_undefined_flag_F77=unsupported 16137 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' 16138 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 16139 ;; 16140 16141 osf3*) 16142 if test "$GCC" = yes; then 16143 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 16144 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' 16145 else 16146 allow_undefined_flag_F77=' -expect_unresolved \*' 16147 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' 16148 fi 16149 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 16150 hardcode_libdir_separator_F77=: 16151 ;; 16152 16153 osf4* | osf5*) # as osf3* with the addition of -msym flag 16154 if test "$GCC" = yes; then 16155 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 16156 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' 16157 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 16158 else 16159 allow_undefined_flag_F77=' -expect_unresolved \*' 16160 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' 16161 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~ 16162 $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' 16163 16164 # Both c and cxx compiler support -rpath directly 16165 hardcode_libdir_flag_spec_F77='-rpath $libdir' 16166 fi 16167 hardcode_libdir_separator_F77=: 16168 ;; 16169 16170 solaris*) 16171 no_undefined_flag_F77=' -z text' 16172 if test "$GCC" = yes; then 16173 wlarc='${wl}' 16174 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16175 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16176 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 16177 else 16178 wlarc='' 16179 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 16180 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16181 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 16182 fi 16183 hardcode_libdir_flag_spec_F77='-R$libdir' 16184 hardcode_shlibpath_var_F77=no 16185 case $host_os in 16186 solaris2.[0-5] | solaris2.[0-5].*) ;; 16187 *) 16188 # The compiler driver will combine linker options so we 16189 # cannot just pass the convience library names through 16190 # without $wl, iff we do not link with $LD. 16191 # Luckily, gcc supports the same syntax we need for Sun Studio. 16192 # Supported since Solaris 2.6 (maybe 2.5.1?) 16193 case $wlarc in 16194 '') 16195 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 16196 *) 16197 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' ;; 16198 esac ;; 16199 esac 16200 link_all_deplibs_F77=yes 16201 ;; 16202 16203 sunos4*) 16204 if test "x$host_vendor" = xsequent; then 16205 # Use $CC to link under sequent, because it throws in some extra .o 16206 # files that make .init and .fini sections work. 16207 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 16208 else 16209 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 16210 fi 16211 hardcode_libdir_flag_spec_F77='-L$libdir' 16212 hardcode_direct_F77=yes 16213 hardcode_minus_L_F77=yes 16214 hardcode_shlibpath_var_F77=no 16215 ;; 16216 16217 sysv4) 16218 case $host_vendor in 16219 sni) 16220 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16221 hardcode_direct_F77=yes # is this really true??? 16222 ;; 16223 siemens) 16224 ## LD is ld it makes a PLAMLIB 16225 ## CC just makes a GrossModule. 16226 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16227 reload_cmds_F77='$CC -r -o $output$reload_objs' 16228 hardcode_direct_F77=no 16229 ;; 16230 motorola) 16231 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16232 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 16233 ;; 16234 esac 16235 runpath_var='LD_RUN_PATH' 16236 hardcode_shlibpath_var_F77=no 16237 ;; 16238 16239 sysv4.3*) 16240 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16241 hardcode_shlibpath_var_F77=no 16242 export_dynamic_flag_spec_F77='-Bexport' 16243 ;; 16244 16245 sysv4*MP*) 16246 if test -d /usr/nec; then 16247 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16248 hardcode_shlibpath_var_F77=no 16249 runpath_var=LD_RUN_PATH 16250 hardcode_runpath_var=yes 16251 ld_shlibs_F77=yes 16252 fi 16253 ;; 16254 16255 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 16256 no_undefined_flag_F77='${wl}-z,text' 16257 archive_cmds_need_lc_F77=no 16258 hardcode_shlibpath_var_F77=no 16259 runpath_var='LD_RUN_PATH' 16260 16261 if test "$GCC" = yes; then 16262 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16263 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16264 else 16265 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16266 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16267 fi 16268 ;; 16269 16270 sysv5* | sco3.2v5* | sco5v6*) 16271 # Note: We can NOT use -z defs as we might desire, because we do not 16272 # link with -lc, and that would cause any symbols used from libc to 16273 # always be unresolved, which means just about no library would 16274 # ever link correctly. If we're not using GNU ld we use -z text 16275 # though, which does catch some bad symbols but isn't as heavy-handed 16276 # as -z defs. 16277 no_undefined_flag_F77='${wl}-z,text' 16278 allow_undefined_flag_F77='${wl}-z,nodefs' 16279 archive_cmds_need_lc_F77=no 16280 hardcode_shlibpath_var_F77=no 16281 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 16282 hardcode_libdir_separator_F77=':' 16283 link_all_deplibs_F77=yes 16284 export_dynamic_flag_spec_F77='${wl}-Bexport' 16285 runpath_var='LD_RUN_PATH' 16286 16287 if test "$GCC" = yes; then 16288 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16289 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16290 else 16291 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16292 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16293 fi 16294 ;; 16295 16296 uts4*) 16297 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16298 hardcode_libdir_flag_spec_F77='-L$libdir' 16299 hardcode_shlibpath_var_F77=no 16300 ;; 16301 16302 *) 16303 ld_shlibs_F77=no 16304 ;; 16305 esac 16306 fi 16307 16308echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 16309echo "${ECHO_T}$ld_shlibs_F77" >&6 16310test "$ld_shlibs_F77" = no && can_build_shared=no 16311 16312# 16313# Do we need to explicitly link libc? 16314# 16315case "x$archive_cmds_need_lc_F77" in 16316x|xyes) 16317 # Assume -lc should be added 16318 archive_cmds_need_lc_F77=yes 16319 16320 if test "$enable_shared" = yes && test "$GCC" = yes; then 16321 case $archive_cmds_F77 in 16322 *'~'*) 16323 # FIXME: we may have to deal with multi-command sequences. 16324 ;; 16325 '$CC '*) 16326 # Test whether the compiler implicitly links with -lc since on some 16327 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16328 # to ld, don't add -lc before -lgcc. 16329 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 16330echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 16331 $rm conftest* 16332 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16333 16334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16335 (eval $ac_compile) 2>&5 16336 ac_status=$? 16337 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16338 (exit $ac_status); } 2>conftest.err; then 16339 soname=conftest 16340 lib=conftest 16341 libobjs=conftest.$ac_objext 16342 deplibs= 16343 wl=$lt_prog_compiler_wl_F77 16344 pic_flag=$lt_prog_compiler_pic_F77 16345 compiler_flags=-v 16346 linker_flags=-v 16347 verstring= 16348 output_objdir=. 16349 libname=conftest 16350 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 16351 allow_undefined_flag_F77= 16352 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 16353 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 16354 ac_status=$? 16355 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16356 (exit $ac_status); } 16357 then 16358 archive_cmds_need_lc_F77=no 16359 else 16360 archive_cmds_need_lc_F77=yes 16361 fi 16362 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 16363 else 16364 cat conftest.err 1>&5 16365 fi 16366 $rm conftest* 16367 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 16368echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 16369 ;; 16370 esac 16371 fi 16372 ;; 16373esac 16374 16375echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 16376echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 16377library_names_spec= 16378libname_spec='lib$name' 16379soname_spec= 16380shrext_cmds=".so" 16381postinstall_cmds= 16382postuninstall_cmds= 16383finish_cmds= 16384finish_eval= 16385shlibpath_var= 16386shlibpath_overrides_runpath=unknown 16387version_type=none 16388dynamic_linker="$host_os ld.so" 16389sys_lib_dlsearch_path_spec="/lib /usr/lib" 16390if test "$GCC" = yes; then 16391 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 16392 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 16393 # if the path contains ";" then we assume it to be the separator 16394 # otherwise default to the standard path separator (i.e. ":") - it is 16395 # assumed that no part of a normal pathname contains ";" but that should 16396 # okay in the real world where ";" in dirpaths is itself problematic. 16397 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16398 else 16399 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16400 fi 16401else 16402 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16403fi 16404need_lib_prefix=unknown 16405hardcode_into_libs=no 16406 16407# when you set need_version to no, make sure it does not cause -set_version 16408# flags to be left without arguments 16409need_version=unknown 16410 16411case $host_os in 16412aix3*) 16413 version_type=linux 16414 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 16415 shlibpath_var=LIBPATH 16416 16417 # AIX 3 has no versioning support, so we append a major version to the name. 16418 soname_spec='${libname}${release}${shared_ext}$major' 16419 ;; 16420 16421aix4* | aix5*) 16422 version_type=linux 16423 need_lib_prefix=no 16424 need_version=no 16425 hardcode_into_libs=yes 16426 if test "$host_cpu" = ia64; then 16427 # AIX 5 supports IA64 16428 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 16429 shlibpath_var=LD_LIBRARY_PATH 16430 else 16431 # With GCC up to 2.95.x, collect2 would create an import file 16432 # for dependence libraries. The import file would start with 16433 # the line `#! .'. This would cause the generated library to 16434 # depend on `.', always an invalid library. This was fixed in 16435 # development snapshots of GCC prior to 3.0. 16436 case $host_os in 16437 aix4 | aix4.[01] | aix4.[01].*) 16438 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16439 echo ' yes ' 16440 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 16441 : 16442 else 16443 can_build_shared=no 16444 fi 16445 ;; 16446 esac 16447 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 16448 # soname into executable. Probably we can add versioning support to 16449 # collect2, so additional links can be useful in future. 16450 if test "$aix_use_runtimelinking" = yes; then 16451 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16452 # instead of lib<name>.a to let people know that these are not 16453 # typical AIX shared libraries. 16454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16455 else 16456 # We preserve .a as extension for shared libraries through AIX4.2 16457 # and later when we are not doing run time linking. 16458 library_names_spec='${libname}${release}.a $libname.a' 16459 soname_spec='${libname}${release}${shared_ext}$major' 16460 fi 16461 shlibpath_var=LIBPATH 16462 fi 16463 ;; 16464 16465amigaos*) 16466 library_names_spec='$libname.ixlibrary $libname.a' 16467 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16468 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' 16469 ;; 16470 16471beos*) 16472 library_names_spec='${libname}${shared_ext}' 16473 dynamic_linker="$host_os ld.so" 16474 shlibpath_var=LIBRARY_PATH 16475 ;; 16476 16477bsdi[45]*) 16478 version_type=linux 16479 need_version=no 16480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16481 soname_spec='${libname}${release}${shared_ext}$major' 16482 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16483 shlibpath_var=LD_LIBRARY_PATH 16484 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16485 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16486 # the default ld.so.conf also contains /usr/contrib/lib and 16487 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16488 # libtool to hard-code these into programs 16489 ;; 16490 16491cygwin* | mingw* | pw32*) 16492 version_type=windows 16493 shrext_cmds=".dll" 16494 need_version=no 16495 need_lib_prefix=no 16496 16497 case $GCC,$host_os in 16498 yes,cygwin* | yes,mingw* | yes,pw32*) 16499 library_names_spec='$libname.dll.a' 16500 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16501 postinstall_cmds='base_file=`basename \${file}`~ 16502 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 16503 dldir=$destdir/`dirname \$dlpath`~ 16504 test -d \$dldir || mkdir -p \$dldir~ 16505 $install_prog $dir/$dlname \$dldir/$dlname~ 16506 chmod a+x \$dldir/$dlname' 16507 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16508 dlpath=$dir/\$dldll~ 16509 $rm \$dlpath' 16510 shlibpath_overrides_runpath=yes 16511 16512 case $host_os in 16513 cygwin*) 16514 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16515 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16516 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 16517 ;; 16518 mingw*) 16519 # MinGW DLLs use traditional 'lib' prefix 16520 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16521 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 16522 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 16523 # It is most probably a Windows format PATH printed by 16524 # mingw gcc, but we are running on Cygwin. Gcc prints its search 16525 # path with ; separators, and with drive letters. We can handle the 16526 # drive letters (cygwin fileutils understands them), so leave them, 16527 # especially as we might pass files found there to a mingw objdump, 16528 # which wouldn't understand a cygwinified path. Ahh. 16529 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16530 else 16531 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16532 fi 16533 ;; 16534 pw32*) 16535 # pw32 DLLs use 'pw' prefix rather than 'lib' 16536 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16537 ;; 16538 esac 16539 ;; 16540 16541 *) 16542 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 16543 ;; 16544 esac 16545 dynamic_linker='Win32 ld.exe' 16546 # FIXME: first we should search . and the directory the executable is in 16547 shlibpath_var=PATH 16548 ;; 16549 16550darwin* | rhapsody*) 16551 dynamic_linker="$host_os dyld" 16552 version_type=darwin 16553 need_lib_prefix=no 16554 need_version=no 16555 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 16556 soname_spec='${libname}${release}${major}$shared_ext' 16557 shlibpath_overrides_runpath=yes 16558 shlibpath_var=DYLD_LIBRARY_PATH 16559 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16560 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 16561 if test "$GCC" = yes; then 16562 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"` 16563 else 16564 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 16565 fi 16566 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16567 ;; 16568 16569dgux*) 16570 version_type=linux 16571 need_lib_prefix=no 16572 need_version=no 16573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 16574 soname_spec='${libname}${release}${shared_ext}$major' 16575 shlibpath_var=LD_LIBRARY_PATH 16576 ;; 16577 16578freebsd1*) 16579 dynamic_linker=no 16580 ;; 16581 16582kfreebsd*-gnu) 16583 version_type=linux 16584 need_lib_prefix=no 16585 need_version=no 16586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16587 soname_spec='${libname}${release}${shared_ext}$major' 16588 shlibpath_var=LD_LIBRARY_PATH 16589 shlibpath_overrides_runpath=no 16590 hardcode_into_libs=yes 16591 dynamic_linker='GNU ld.so' 16592 ;; 16593 16594freebsd* | dragonfly*) 16595 # DragonFly does not have aout. When/if they implement a new 16596 # versioning mechanism, adjust this. 16597 if test -x /usr/bin/objformat; then 16598 objformat=`/usr/bin/objformat` 16599 else 16600 case $host_os in 16601 freebsd[123]*) objformat=aout ;; 16602 *) objformat=elf ;; 16603 esac 16604 fi 16605 version_type=freebsd-$objformat 16606 case $version_type in 16607 freebsd-elf*) 16608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16609 need_version=no 16610 need_lib_prefix=no 16611 ;; 16612 freebsd-*) 16613 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 16614 need_version=yes 16615 ;; 16616 esac 16617 shlibpath_var=LD_LIBRARY_PATH 16618 case $host_os in 16619 freebsd2*) 16620 shlibpath_overrides_runpath=yes 16621 ;; 16622 freebsd3.[01]* | freebsdelf3.[01]*) 16623 shlibpath_overrides_runpath=yes 16624 hardcode_into_libs=yes 16625 ;; 16626 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16627 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16628 shlibpath_overrides_runpath=no 16629 hardcode_into_libs=yes 16630 ;; 16631 freebsd*) # from 4.6 on 16632 shlibpath_overrides_runpath=yes 16633 hardcode_into_libs=yes 16634 ;; 16635 esac 16636 ;; 16637 16638gnu*) 16639 version_type=linux 16640 need_lib_prefix=no 16641 need_version=no 16642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16643 soname_spec='${libname}${release}${shared_ext}$major' 16644 shlibpath_var=LD_LIBRARY_PATH 16645 hardcode_into_libs=yes 16646 ;; 16647 16648hpux9* | hpux10* | hpux11*) 16649 # Give a soname corresponding to the major version so that dld.sl refuses to 16650 # link against other versions. 16651 version_type=sunos 16652 need_lib_prefix=no 16653 need_version=no 16654 case $host_cpu in 16655 ia64*) 16656 shrext_cmds='.so' 16657 hardcode_into_libs=yes 16658 dynamic_linker="$host_os dld.so" 16659 shlibpath_var=LD_LIBRARY_PATH 16660 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16662 soname_spec='${libname}${release}${shared_ext}$major' 16663 if test "X$HPUX_IA64_MODE" = X32; then 16664 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16665 else 16666 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16667 fi 16668 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16669 ;; 16670 hppa*64*) 16671 shrext_cmds='.sl' 16672 hardcode_into_libs=yes 16673 dynamic_linker="$host_os dld.sl" 16674 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16675 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16677 soname_spec='${libname}${release}${shared_ext}$major' 16678 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16679 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16680 ;; 16681 *) 16682 shrext_cmds='.sl' 16683 dynamic_linker="$host_os dld.sl" 16684 shlibpath_var=SHLIB_PATH 16685 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16687 soname_spec='${libname}${release}${shared_ext}$major' 16688 ;; 16689 esac 16690 # HP-UX runs *really* slowly unless shared libraries are mode 555. 16691 postinstall_cmds='chmod 555 $lib' 16692 ;; 16693 16694interix3*) 16695 version_type=linux 16696 need_lib_prefix=no 16697 need_version=no 16698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16699 soname_spec='${libname}${release}${shared_ext}$major' 16700 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16701 shlibpath_var=LD_LIBRARY_PATH 16702 shlibpath_overrides_runpath=no 16703 hardcode_into_libs=yes 16704 ;; 16705 16706irix5* | irix6* | nonstopux*) 16707 case $host_os in 16708 nonstopux*) version_type=nonstopux ;; 16709 *) 16710 if test "$lt_cv_prog_gnu_ld" = yes; then 16711 version_type=linux 16712 else 16713 version_type=irix 16714 fi ;; 16715 esac 16716 need_lib_prefix=no 16717 need_version=no 16718 soname_spec='${libname}${release}${shared_ext}$major' 16719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 16720 case $host_os in 16721 irix5* | nonstopux*) 16722 libsuff= shlibsuff= 16723 ;; 16724 *) 16725 case $LD in # libtool.m4 will add one of these switches to LD 16726 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16727 libsuff= shlibsuff= libmagic=32-bit;; 16728 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16729 libsuff=32 shlibsuff=N32 libmagic=N32;; 16730 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16731 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16732 *) libsuff= shlibsuff= libmagic=never-match;; 16733 esac 16734 ;; 16735 esac 16736 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16737 shlibpath_overrides_runpath=no 16738 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16739 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16740 hardcode_into_libs=yes 16741 ;; 16742 16743# No shared lib support for Linux oldld, aout, or coff. 16744linux*oldld* | linux*aout* | linux*coff*) 16745 dynamic_linker=no 16746 ;; 16747 16748# This must be Linux ELF. 16749linux*) 16750 version_type=linux 16751 need_lib_prefix=no 16752 need_version=no 16753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16754 soname_spec='${libname}${release}${shared_ext}$major' 16755 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16756 shlibpath_var=LD_LIBRARY_PATH 16757 shlibpath_overrides_runpath=no 16758 # This implies no fast_install, which is unacceptable. 16759 # Some rework will be needed to allow for fast_install 16760 # before this can be enabled. 16761 hardcode_into_libs=yes 16762 16763 # Append ld.so.conf contents to the search path 16764 if test -f /etc/ld.so.conf; then 16765 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' ' '` 16766 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16767 fi 16768 16769 # We used to test for /lib/ld.so.1 and disable shared libraries on 16770 # powerpc, because MkLinux only supported shared libraries with the 16771 # GNU dynamic linker. Since this was broken with cross compilers, 16772 # most powerpc-linux boxes support dynamic linking these days and 16773 # people can always --disable-shared, the test was removed, and we 16774 # assume the GNU/Linux dynamic linker is in use. 16775 dynamic_linker='GNU/Linux ld.so' 16776 ;; 16777 16778knetbsd*-gnu) 16779 version_type=linux 16780 need_lib_prefix=no 16781 need_version=no 16782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16783 soname_spec='${libname}${release}${shared_ext}$major' 16784 shlibpath_var=LD_LIBRARY_PATH 16785 shlibpath_overrides_runpath=no 16786 hardcode_into_libs=yes 16787 dynamic_linker='GNU ld.so' 16788 ;; 16789 16790netbsd*) 16791 version_type=sunos 16792 need_lib_prefix=no 16793 need_version=no 16794 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16796 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16797 dynamic_linker='NetBSD (a.out) ld.so' 16798 else 16799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16800 soname_spec='${libname}${release}${shared_ext}$major' 16801 dynamic_linker='NetBSD ld.elf_so' 16802 fi 16803 shlibpath_var=LD_LIBRARY_PATH 16804 shlibpath_overrides_runpath=yes 16805 hardcode_into_libs=yes 16806 ;; 16807 16808newsos6) 16809 version_type=linux 16810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16811 shlibpath_var=LD_LIBRARY_PATH 16812 shlibpath_overrides_runpath=yes 16813 ;; 16814 16815nto-qnx*) 16816 version_type=linux 16817 need_lib_prefix=no 16818 need_version=no 16819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16820 soname_spec='${libname}${release}${shared_ext}$major' 16821 shlibpath_var=LD_LIBRARY_PATH 16822 shlibpath_overrides_runpath=yes 16823 ;; 16824 16825openbsd*) 16826 version_type=sunos 16827 sys_lib_dlsearch_path_spec="/usr/lib" 16828 need_lib_prefix=no 16829 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 16830 case $host_os in 16831 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 16832 *) need_version=no ;; 16833 esac 16834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16835 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16836 shlibpath_var=LD_LIBRARY_PATH 16837 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16838 case $host_os in 16839 openbsd2.[89] | openbsd2.[89].*) 16840 shlibpath_overrides_runpath=no 16841 ;; 16842 *) 16843 shlibpath_overrides_runpath=yes 16844 ;; 16845 esac 16846 else 16847 shlibpath_overrides_runpath=yes 16848 fi 16849 ;; 16850 16851os2*) 16852 libname_spec='$name' 16853 shrext_cmds=".dll" 16854 need_lib_prefix=no 16855 library_names_spec='$libname${shared_ext} $libname.a' 16856 dynamic_linker='OS/2 ld.exe' 16857 shlibpath_var=LIBPATH 16858 ;; 16859 16860osf3* | osf4* | osf5*) 16861 version_type=osf 16862 need_lib_prefix=no 16863 need_version=no 16864 soname_spec='${libname}${release}${shared_ext}$major' 16865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16866 shlibpath_var=LD_LIBRARY_PATH 16867 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16868 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16869 ;; 16870 16871solaris*) 16872 version_type=linux 16873 need_lib_prefix=no 16874 need_version=no 16875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16876 soname_spec='${libname}${release}${shared_ext}$major' 16877 shlibpath_var=LD_LIBRARY_PATH 16878 shlibpath_overrides_runpath=yes 16879 hardcode_into_libs=yes 16880 # ldd complains unless libraries are executable 16881 postinstall_cmds='chmod +x $lib' 16882 ;; 16883 16884sunos4*) 16885 version_type=sunos 16886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16887 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16888 shlibpath_var=LD_LIBRARY_PATH 16889 shlibpath_overrides_runpath=yes 16890 if test "$with_gnu_ld" = yes; then 16891 need_lib_prefix=no 16892 fi 16893 need_version=yes 16894 ;; 16895 16896sysv4 | sysv4.3*) 16897 version_type=linux 16898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16899 soname_spec='${libname}${release}${shared_ext}$major' 16900 shlibpath_var=LD_LIBRARY_PATH 16901 case $host_vendor in 16902 sni) 16903 shlibpath_overrides_runpath=no 16904 need_lib_prefix=no 16905 export_dynamic_flag_spec='${wl}-Blargedynsym' 16906 runpath_var=LD_RUN_PATH 16907 ;; 16908 siemens) 16909 need_lib_prefix=no 16910 ;; 16911 motorola) 16912 need_lib_prefix=no 16913 need_version=no 16914 shlibpath_overrides_runpath=no 16915 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16916 ;; 16917 esac 16918 ;; 16919 16920sysv4*MP*) 16921 if test -d /usr/nec ;then 16922 version_type=linux 16923 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16924 soname_spec='$libname${shared_ext}.$major' 16925 shlibpath_var=LD_LIBRARY_PATH 16926 fi 16927 ;; 16928 16929sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16930 version_type=freebsd-elf 16931 need_lib_prefix=no 16932 need_version=no 16933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16934 soname_spec='${libname}${release}${shared_ext}$major' 16935 shlibpath_var=LD_LIBRARY_PATH 16936 hardcode_into_libs=yes 16937 if test "$with_gnu_ld" = yes; then 16938 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16939 shlibpath_overrides_runpath=no 16940 else 16941 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16942 shlibpath_overrides_runpath=yes 16943 case $host_os in 16944 sco3.2v5*) 16945 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16946 ;; 16947 esac 16948 fi 16949 sys_lib_dlsearch_path_spec='/usr/lib' 16950 ;; 16951 16952uts4*) 16953 version_type=linux 16954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16955 soname_spec='${libname}${release}${shared_ext}$major' 16956 shlibpath_var=LD_LIBRARY_PATH 16957 ;; 16958 16959*) 16960 dynamic_linker=no 16961 ;; 16962esac 16963echo "$as_me:$LINENO: result: $dynamic_linker" >&5 16964echo "${ECHO_T}$dynamic_linker" >&6 16965test "$dynamic_linker" = no && can_build_shared=no 16966 16967variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16968if test "$GCC" = yes; then 16969 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16970fi 16971 16972echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 16973echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 16974hardcode_action_F77= 16975if test -n "$hardcode_libdir_flag_spec_F77" || \ 16976 test -n "$runpath_var_F77" || \ 16977 test "X$hardcode_automatic_F77" = "Xyes" ; then 16978 16979 # We can hardcode non-existant directories. 16980 if test "$hardcode_direct_F77" != no && 16981 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16982 # have to relink, otherwise we might link with an installed library 16983 # when we should be linking with a yet-to-be-installed one 16984 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 16985 test "$hardcode_minus_L_F77" != no; then 16986 # Linking always hardcodes the temporary library directory. 16987 hardcode_action_F77=relink 16988 else 16989 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16990 hardcode_action_F77=immediate 16991 fi 16992else 16993 # We cannot hardcode anything, or else we can only hardcode existing 16994 # directories. 16995 hardcode_action_F77=unsupported 16996fi 16997echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 16998echo "${ECHO_T}$hardcode_action_F77" >&6 16999 17000if test "$hardcode_action_F77" = relink; then 17001 # Fast installation is not supported 17002 enable_fast_install=no 17003elif test "$shlibpath_overrides_runpath" = yes || 17004 test "$enable_shared" = no; then 17005 # Fast installation is not necessary 17006 enable_fast_install=needless 17007fi 17008 17009 17010# The else clause should only fire when bootstrapping the 17011# libtool distribution, otherwise you forgot to ship ltmain.sh 17012# with your package, and you will get complaints that there are 17013# no rules to generate ltmain.sh. 17014if test -f "$ltmain"; then 17015 # See if we are running on zsh, and set the options which allow our commands through 17016 # without removal of \ escapes. 17017 if test -n "${ZSH_VERSION+set}" ; then 17018 setopt NO_GLOB_SUBST 17019 fi 17020 # Now quote all the things that may contain metacharacters while being 17021 # careful not to overquote the AC_SUBSTed values. We take copies of the 17022 # variables and quote the copies for generation of the libtool script. 17023 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 17024 SED SHELL STRIP \ 17025 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 17026 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 17027 deplibs_check_method reload_flag reload_cmds need_locks \ 17028 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 17029 lt_cv_sys_global_symbol_to_c_name_address \ 17030 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 17031 old_postinstall_cmds old_postuninstall_cmds \ 17032 compiler_F77 \ 17033 CC_F77 \ 17034 LD_F77 \ 17035 lt_prog_compiler_wl_F77 \ 17036 lt_prog_compiler_pic_F77 \ 17037 lt_prog_compiler_static_F77 \ 17038 lt_prog_compiler_no_builtin_flag_F77 \ 17039 export_dynamic_flag_spec_F77 \ 17040 thread_safe_flag_spec_F77 \ 17041 whole_archive_flag_spec_F77 \ 17042 enable_shared_with_static_runtimes_F77 \ 17043 old_archive_cmds_F77 \ 17044 old_archive_from_new_cmds_F77 \ 17045 predep_objects_F77 \ 17046 postdep_objects_F77 \ 17047 predeps_F77 \ 17048 postdeps_F77 \ 17049 compiler_lib_search_path_F77 \ 17050 archive_cmds_F77 \ 17051 archive_expsym_cmds_F77 \ 17052 postinstall_cmds_F77 \ 17053 postuninstall_cmds_F77 \ 17054 old_archive_from_expsyms_cmds_F77 \ 17055 allow_undefined_flag_F77 \ 17056 no_undefined_flag_F77 \ 17057 export_symbols_cmds_F77 \ 17058 hardcode_libdir_flag_spec_F77 \ 17059 hardcode_libdir_flag_spec_ld_F77 \ 17060 hardcode_libdir_separator_F77 \ 17061 hardcode_automatic_F77 \ 17062 module_cmds_F77 \ 17063 module_expsym_cmds_F77 \ 17064 lt_cv_prog_compiler_c_o_F77 \ 17065 exclude_expsyms_F77 \ 17066 include_expsyms_F77; do 17067 17068 case $var in 17069 old_archive_cmds_F77 | \ 17070 old_archive_from_new_cmds_F77 | \ 17071 archive_cmds_F77 | \ 17072 archive_expsym_cmds_F77 | \ 17073 module_cmds_F77 | \ 17074 module_expsym_cmds_F77 | \ 17075 old_archive_from_expsyms_cmds_F77 | \ 17076 export_symbols_cmds_F77 | \ 17077 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 17078 postinstall_cmds | postuninstall_cmds | \ 17079 old_postinstall_cmds | old_postuninstall_cmds | \ 17080 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 17081 # Double-quote double-evaled strings. 17082 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 17083 ;; 17084 *) 17085 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 17086 ;; 17087 esac 17088 done 17089 17090 case $lt_echo in 17091 *'\$0 --fallback-echo"') 17092 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 17093 ;; 17094 esac 17095 17096cfgfile="$ofile" 17097 17098 cat <<__EOF__ >> "$cfgfile" 17099# ### BEGIN LIBTOOL TAG CONFIG: $tagname 17100 17101# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17102 17103# Shell to use when invoking shell scripts. 17104SHELL=$lt_SHELL 17105 17106# Whether or not to build shared libraries. 17107build_libtool_libs=$enable_shared 17108 17109# Whether or not to build static libraries. 17110build_old_libs=$enable_static 17111 17112# Whether or not to add -lc for building shared libraries. 17113build_libtool_need_lc=$archive_cmds_need_lc_F77 17114 17115# Whether or not to disallow shared libs when runtime libs are static 17116allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 17117 17118# Whether or not to optimize for fast installation. 17119fast_install=$enable_fast_install 17120 17121# The host system. 17122host_alias=$host_alias 17123host=$host 17124host_os=$host_os 17125 17126# The build system. 17127build_alias=$build_alias 17128build=$build 17129build_os=$build_os 17130 17131# An echo program that does not interpret backslashes. 17132echo=$lt_echo 17133 17134# The archiver. 17135AR=$lt_AR 17136AR_FLAGS=$lt_AR_FLAGS 17137 17138# A C compiler. 17139LTCC=$lt_LTCC 17140 17141# LTCC compiler flags. 17142LTCFLAGS=$lt_LTCFLAGS 17143 17144# A language-specific compiler. 17145CC=$lt_compiler_F77 17146 17147# Is the compiler the GNU C compiler? 17148with_gcc=$GCC_F77 17149 17150# An ERE matcher. 17151EGREP=$lt_EGREP 17152 17153# The linker used to build libraries. 17154LD=$lt_LD_F77 17155 17156# Whether we need hard or soft links. 17157LN_S=$lt_LN_S 17158 17159# A BSD-compatible nm program. 17160NM=$lt_NM 17161 17162# A symbol stripping program 17163STRIP=$lt_STRIP 17164 17165# Used to examine libraries when file_magic_cmd begins "file" 17166MAGIC_CMD=$MAGIC_CMD 17167 17168# Used on cygwin: DLL creation program. 17169DLLTOOL="$DLLTOOL" 17170 17171# Used on cygwin: object dumper. 17172OBJDUMP="$OBJDUMP" 17173 17174# Used on cygwin: assembler. 17175AS="$AS" 17176 17177# The name of the directory that contains temporary libtool files. 17178objdir=$objdir 17179 17180# How to create reloadable object files. 17181reload_flag=$lt_reload_flag 17182reload_cmds=$lt_reload_cmds 17183 17184# How to pass a linker flag through the compiler. 17185wl=$lt_lt_prog_compiler_wl_F77 17186 17187# Object file suffix (normally "o"). 17188objext="$ac_objext" 17189 17190# Old archive suffix (normally "a"). 17191libext="$libext" 17192 17193# Shared library suffix (normally ".so"). 17194shrext_cmds='$shrext_cmds' 17195 17196# Executable file suffix (normally ""). 17197exeext="$exeext" 17198 17199# Additional compiler flags for building library objects. 17200pic_flag=$lt_lt_prog_compiler_pic_F77 17201pic_mode=$pic_mode 17202 17203# What is the maximum length of a command? 17204max_cmd_len=$lt_cv_sys_max_cmd_len 17205 17206# Does compiler simultaneously support -c and -o options? 17207compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 17208 17209# Must we lock files when doing compilation? 17210need_locks=$lt_need_locks 17211 17212# Do we need the lib prefix for modules? 17213need_lib_prefix=$need_lib_prefix 17214 17215# Do we need a version for libraries? 17216need_version=$need_version 17217 17218# Whether dlopen is supported. 17219dlopen_support=$enable_dlopen 17220 17221# Whether dlopen of programs is supported. 17222dlopen_self=$enable_dlopen_self 17223 17224# Whether dlopen of statically linked programs is supported. 17225dlopen_self_static=$enable_dlopen_self_static 17226 17227# Compiler flag to prevent dynamic linking. 17228link_static_flag=$lt_lt_prog_compiler_static_F77 17229 17230# Compiler flag to turn off builtin functions. 17231no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 17232 17233# Compiler flag to allow reflexive dlopens. 17234export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 17235 17236# Compiler flag to generate shared objects directly from archives. 17237whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 17238 17239# Compiler flag to generate thread-safe objects. 17240thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 17241 17242# Library versioning type. 17243version_type=$version_type 17244 17245# Format of library name prefix. 17246libname_spec=$lt_libname_spec 17247 17248# List of archive names. First name is the real one, the rest are links. 17249# The last name is the one that the linker finds with -lNAME. 17250library_names_spec=$lt_library_names_spec 17251 17252# The coded name of the library, if different from the real name. 17253soname_spec=$lt_soname_spec 17254 17255# Commands used to build and install an old-style archive. 17256RANLIB=$lt_RANLIB 17257old_archive_cmds=$lt_old_archive_cmds_F77 17258old_postinstall_cmds=$lt_old_postinstall_cmds 17259old_postuninstall_cmds=$lt_old_postuninstall_cmds 17260 17261# Create an old-style archive from a shared archive. 17262old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 17263 17264# Create a temporary old-style archive to link instead of a shared archive. 17265old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 17266 17267# Commands used to build and install a shared archive. 17268archive_cmds=$lt_archive_cmds_F77 17269archive_expsym_cmds=$lt_archive_expsym_cmds_F77 17270postinstall_cmds=$lt_postinstall_cmds 17271postuninstall_cmds=$lt_postuninstall_cmds 17272 17273# Commands used to build a loadable module (assumed same as above if empty) 17274module_cmds=$lt_module_cmds_F77 17275module_expsym_cmds=$lt_module_expsym_cmds_F77 17276 17277# Commands to strip libraries. 17278old_striplib=$lt_old_striplib 17279striplib=$lt_striplib 17280 17281# Dependencies to place before the objects being linked to create a 17282# shared library. 17283predep_objects=$lt_predep_objects_F77 17284 17285# Dependencies to place after the objects being linked to create a 17286# shared library. 17287postdep_objects=$lt_postdep_objects_F77 17288 17289# Dependencies to place before the objects being linked to create a 17290# shared library. 17291predeps=$lt_predeps_F77 17292 17293# Dependencies to place after the objects being linked to create a 17294# shared library. 17295postdeps=$lt_postdeps_F77 17296 17297# The library search path used internally by the compiler when linking 17298# a shared library. 17299compiler_lib_search_path=$lt_compiler_lib_search_path_F77 17300 17301# Method to check whether dependent libraries are shared objects. 17302deplibs_check_method=$lt_deplibs_check_method 17303 17304# Command to use when deplibs_check_method == file_magic. 17305file_magic_cmd=$lt_file_magic_cmd 17306 17307# Flag that allows shared libraries with undefined symbols to be built. 17308allow_undefined_flag=$lt_allow_undefined_flag_F77 17309 17310# Flag that forces no undefined symbols. 17311no_undefined_flag=$lt_no_undefined_flag_F77 17312 17313# Commands used to finish a libtool library installation in a directory. 17314finish_cmds=$lt_finish_cmds 17315 17316# Same as above, but a single script fragment to be evaled but not shown. 17317finish_eval=$lt_finish_eval 17318 17319# Take the output of nm and produce a listing of raw symbols and C names. 17320global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17321 17322# Transform the output of nm in a proper C declaration 17323global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17324 17325# Transform the output of nm in a C name address pair 17326global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 17327 17328# This is the shared library runtime path variable. 17329runpath_var=$runpath_var 17330 17331# This is the shared library path variable. 17332shlibpath_var=$shlibpath_var 17333 17334# Is shlibpath searched before the hard-coded library search path? 17335shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17336 17337# How to hardcode a shared library path into an executable. 17338hardcode_action=$hardcode_action_F77 17339 17340# Whether we should hardcode library paths into libraries. 17341hardcode_into_libs=$hardcode_into_libs 17342 17343# Flag to hardcode \$libdir into a binary during linking. 17344# This must work even if \$libdir does not exist. 17345hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 17346 17347# If ld is used when linking, flag to hardcode \$libdir into 17348# a binary during linking. This must work even if \$libdir does 17349# not exist. 17350hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 17351 17352# Whether we need a single -rpath flag with a separated argument. 17353hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 17354 17355# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 17356# resulting binary. 17357hardcode_direct=$hardcode_direct_F77 17358 17359# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 17360# resulting binary. 17361hardcode_minus_L=$hardcode_minus_L_F77 17362 17363# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 17364# the resulting binary. 17365hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 17366 17367# Set to yes if building a shared library automatically hardcodes DIR into the library 17368# and all subsequent libraries and executables linked against it. 17369hardcode_automatic=$hardcode_automatic_F77 17370 17371# Variables whose values should be saved in libtool wrapper scripts and 17372# restored at relink time. 17373variables_saved_for_relink="$variables_saved_for_relink" 17374 17375# Whether libtool must link a program against all its dependency libraries. 17376link_all_deplibs=$link_all_deplibs_F77 17377 17378# Compile-time system search path for libraries 17379sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 17380 17381# Run-time system search path for libraries 17382sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 17383 17384# Fix the shell variable \$srcfile for the compiler. 17385fix_srcfile_path="$fix_srcfile_path_F77" 17386 17387# Set to yes if exported symbols are required. 17388always_export_symbols=$always_export_symbols_F77 17389 17390# The commands to list exported symbols. 17391export_symbols_cmds=$lt_export_symbols_cmds_F77 17392 17393# The commands to extract the exported symbol list from a shared archive. 17394extract_expsyms_cmds=$lt_extract_expsyms_cmds 17395 17396# Symbols that should not be listed in the preloaded symbols. 17397exclude_expsyms=$lt_exclude_expsyms_F77 17398 17399# Symbols that must always be exported. 17400include_expsyms=$lt_include_expsyms_F77 17401 17402# ### END LIBTOOL TAG CONFIG: $tagname 17403 17404__EOF__ 17405 17406 17407else 17408 # If there is no Makefile yet, we rely on a make rule to execute 17409 # `config.status --recheck' to rerun these tests and create the 17410 # libtool script then. 17411 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 17412 if test -f "$ltmain_in"; then 17413 test -f Makefile && make "$ltmain" 17414 fi 17415fi 17416 17417 17418ac_ext=c 17419ac_cpp='$CPP $CPPFLAGS' 17420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17422ac_compiler_gnu=$ac_cv_c_compiler_gnu 17423 17424CC="$lt_save_CC" 17425 17426 else 17427 tagname="" 17428 fi 17429 ;; 17430 17431 GCJ) 17432 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 17433 17434 17435 17436# Source file extension for Java test sources. 17437ac_ext=java 17438 17439# Object file extension for compiled Java test sources. 17440objext=o 17441objext_GCJ=$objext 17442 17443# Code to be used in simple compile tests 17444lt_simple_compile_test_code="class foo {}\n" 17445 17446# Code to be used in simple link tests 17447lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 17448 17449# ltmain only uses $CC for tagged configurations so make sure $CC is set. 17450 17451# If no C compiler was specified, use CC. 17452LTCC=${LTCC-"$CC"} 17453 17454# If no C compiler flags were specified, use CFLAGS. 17455LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 17456 17457# Allow CC to be a program name with arguments. 17458compiler=$CC 17459 17460 17461# save warnings/boilerplate of simple test code 17462ac_outfile=conftest.$ac_objext 17463printf "$lt_simple_compile_test_code" >conftest.$ac_ext 17464eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 17465_lt_compiler_boilerplate=`cat conftest.err` 17466$rm conftest* 17467 17468ac_outfile=conftest.$ac_objext 17469printf "$lt_simple_link_test_code" >conftest.$ac_ext 17470eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 17471_lt_linker_boilerplate=`cat conftest.err` 17472$rm conftest* 17473 17474 17475# Allow CC to be a program name with arguments. 17476lt_save_CC="$CC" 17477CC=${GCJ-"gcj"} 17478compiler=$CC 17479compiler_GCJ=$CC 17480for cc_temp in $compiler""; do 17481 case $cc_temp in 17482 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17483 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17484 \-*) ;; 17485 *) break;; 17486 esac 17487done 17488cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17489 17490 17491# GCJ did not exist at the time GCC didn't implicitly link libc in. 17492archive_cmds_need_lc_GCJ=no 17493 17494old_archive_cmds_GCJ=$old_archive_cmds 17495 17496## CAVEAT EMPTOR: 17497## There is no encapsulation within the following macros, do not change 17498## the running order or otherwise move them around unless you know exactly 17499## what you are doing... 17500 17501lt_prog_compiler_no_builtin_flag_GCJ= 17502 17503if test "$GCC" = yes; then 17504 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 17505 17506 17507echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 17508echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 17509if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 17510 echo $ECHO_N "(cached) $ECHO_C" >&6 17511else 17512 lt_cv_prog_compiler_rtti_exceptions=no 17513 ac_outfile=conftest.$ac_objext 17514 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17515 lt_compiler_flag="-fno-rtti -fno-exceptions" 17516 # Insert the option either (1) after the last *FLAGS variable, or 17517 # (2) before a word containing "conftest.", or (3) at the end. 17518 # Note that $ac_compile itself does not contain backslashes and begins 17519 # with a dollar sign (not a hyphen), so the echo should work correctly. 17520 # The option is referenced via a variable to avoid confusing sed. 17521 lt_compile=`echo "$ac_compile" | $SED \ 17522 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17523 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17524 -e 's:$: $lt_compiler_flag:'` 17525 (eval echo "\"\$as_me:17525: $lt_compile\"" >&5) 17526 (eval "$lt_compile" 2>conftest.err) 17527 ac_status=$? 17528 cat conftest.err >&5 17529 echo "$as_me:17529: \$? = $ac_status" >&5 17530 if (exit $ac_status) && test -s "$ac_outfile"; then 17531 # The compiler can only warn and ignore the option if not recognized 17532 # So say no if there are warnings other than the usual output. 17533 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 17534 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17535 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17536 lt_cv_prog_compiler_rtti_exceptions=yes 17537 fi 17538 fi 17539 $rm conftest* 17540 17541fi 17542echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 17543echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 17544 17545if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 17546 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 17547else 17548 : 17549fi 17550 17551fi 17552 17553lt_prog_compiler_wl_GCJ= 17554lt_prog_compiler_pic_GCJ= 17555lt_prog_compiler_static_GCJ= 17556 17557echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 17558echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 17559 17560 if test "$GCC" = yes; then 17561 lt_prog_compiler_wl_GCJ='-Wl,' 17562 lt_prog_compiler_static_GCJ='-static' 17563 17564 case $host_os in 17565 aix*) 17566 # All AIX code is PIC. 17567 if test "$host_cpu" = ia64; then 17568 # AIX 5 now supports IA64 processor 17569 lt_prog_compiler_static_GCJ='-Bstatic' 17570 fi 17571 ;; 17572 17573 amigaos*) 17574 # FIXME: we need at least 68020 code to build shared libraries, but 17575 # adding the `-m68020' flag to GCC prevents building anything better, 17576 # like `-m68040'. 17577 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 17578 ;; 17579 17580 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 17581 # PIC is the default for these OSes. 17582 ;; 17583 17584 mingw* | pw32* | os2*) 17585 # This hack is so that the source file can tell whether it is being 17586 # built for inclusion in a dll (and should export symbols for example). 17587 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 17588 ;; 17589 17590 darwin* | rhapsody*) 17591 # PIC is the default on this platform 17592 # Common symbols not allowed in MH_DYLIB files 17593 lt_prog_compiler_pic_GCJ='-fno-common' 17594 ;; 17595 17596 interix3*) 17597 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 17598 # Instead, we relocate shared libraries at runtime. 17599 ;; 17600 17601 msdosdjgpp*) 17602 # Just because we use GCC doesn't mean we suddenly get shared libraries 17603 # on systems that don't support them. 17604 lt_prog_compiler_can_build_shared_GCJ=no 17605 enable_shared=no 17606 ;; 17607 17608 sysv4*MP*) 17609 if test -d /usr/nec; then 17610 lt_prog_compiler_pic_GCJ=-Kconform_pic 17611 fi 17612 ;; 17613 17614 hpux*) 17615 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 17616 # not for PA HP-UX. 17617 case $host_cpu in 17618 hppa*64*|ia64*) 17619 # +Z the default 17620 ;; 17621 *) 17622 lt_prog_compiler_pic_GCJ='-fPIC' 17623 ;; 17624 esac 17625 ;; 17626 17627 *) 17628 lt_prog_compiler_pic_GCJ='-fPIC' 17629 ;; 17630 esac 17631 else 17632 # PORTME Check for flag to pass linker flags through the system compiler. 17633 case $host_os in 17634 aix*) 17635 lt_prog_compiler_wl_GCJ='-Wl,' 17636 if test "$host_cpu" = ia64; then 17637 # AIX 5 now supports IA64 processor 17638 lt_prog_compiler_static_GCJ='-Bstatic' 17639 else 17640 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 17641 fi 17642 ;; 17643 darwin*) 17644 # PIC is the default on this platform 17645 # Common symbols not allowed in MH_DYLIB files 17646 case $cc_basename in 17647 xlc*) 17648 lt_prog_compiler_pic_GCJ='-qnocommon' 17649 lt_prog_compiler_wl_GCJ='-Wl,' 17650 ;; 17651 esac 17652 ;; 17653 17654 mingw* | pw32* | os2*) 17655 # This hack is so that the source file can tell whether it is being 17656 # built for inclusion in a dll (and should export symbols for example). 17657 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 17658 ;; 17659 17660 hpux9* | hpux10* | hpux11*) 17661 lt_prog_compiler_wl_GCJ='-Wl,' 17662 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 17663 # not for PA HP-UX. 17664 case $host_cpu in 17665 hppa*64*|ia64*) 17666 # +Z the default 17667 ;; 17668 *) 17669 lt_prog_compiler_pic_GCJ='+Z' 17670 ;; 17671 esac 17672 # Is there a better lt_prog_compiler_static that works with the bundled CC? 17673 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 17674 ;; 17675 17676 irix5* | irix6* | nonstopux*) 17677 lt_prog_compiler_wl_GCJ='-Wl,' 17678 # PIC (with -KPIC) is the default. 17679 lt_prog_compiler_static_GCJ='-non_shared' 17680 ;; 17681 17682 newsos6) 17683 lt_prog_compiler_pic_GCJ='-KPIC' 17684 lt_prog_compiler_static_GCJ='-Bstatic' 17685 ;; 17686 17687 linux*) 17688 case $cc_basename in 17689 icc* | ecc*) 17690 lt_prog_compiler_wl_GCJ='-Wl,' 17691 lt_prog_compiler_pic_GCJ='-KPIC' 17692 lt_prog_compiler_static_GCJ='-static' 17693 ;; 17694 pgcc* | pgf77* | pgf90* | pgf95*) 17695 # Portland Group compilers (*not* the Pentium gcc compiler, 17696 # which looks to be a dead project) 17697 lt_prog_compiler_wl_GCJ='-Wl,' 17698 lt_prog_compiler_pic_GCJ='-fpic' 17699 lt_prog_compiler_static_GCJ='-Bstatic' 17700 ;; 17701 ccc*) 17702 lt_prog_compiler_wl_GCJ='-Wl,' 17703 # All Alpha code is PIC. 17704 lt_prog_compiler_static_GCJ='-non_shared' 17705 ;; 17706 esac 17707 ;; 17708 17709 osf3* | osf4* | osf5*) 17710 lt_prog_compiler_wl_GCJ='-Wl,' 17711 # All OSF/1 code is PIC. 17712 lt_prog_compiler_static_GCJ='-non_shared' 17713 ;; 17714 17715 solaris*) 17716 lt_prog_compiler_pic_GCJ='-KPIC' 17717 lt_prog_compiler_static_GCJ='-Bstatic' 17718 case $cc_basename in 17719 f77* | f90* | f95*) 17720 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 17721 *) 17722 lt_prog_compiler_wl_GCJ='-Wl,';; 17723 esac 17724 ;; 17725 17726 sunos4*) 17727 lt_prog_compiler_wl_GCJ='-Qoption ld ' 17728 lt_prog_compiler_pic_GCJ='-PIC' 17729 lt_prog_compiler_static_GCJ='-Bstatic' 17730 ;; 17731 17732 sysv4 | sysv4.2uw2* | sysv4.3*) 17733 lt_prog_compiler_wl_GCJ='-Wl,' 17734 lt_prog_compiler_pic_GCJ='-KPIC' 17735 lt_prog_compiler_static_GCJ='-Bstatic' 17736 ;; 17737 17738 sysv4*MP*) 17739 if test -d /usr/nec ;then 17740 lt_prog_compiler_pic_GCJ='-Kconform_pic' 17741 lt_prog_compiler_static_GCJ='-Bstatic' 17742 fi 17743 ;; 17744 17745 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 17746 lt_prog_compiler_wl_GCJ='-Wl,' 17747 lt_prog_compiler_pic_GCJ='-KPIC' 17748 lt_prog_compiler_static_GCJ='-Bstatic' 17749 ;; 17750 17751 unicos*) 17752 lt_prog_compiler_wl_GCJ='-Wl,' 17753 lt_prog_compiler_can_build_shared_GCJ=no 17754 ;; 17755 17756 uts4*) 17757 lt_prog_compiler_pic_GCJ='-pic' 17758 lt_prog_compiler_static_GCJ='-Bstatic' 17759 ;; 17760 17761 *) 17762 lt_prog_compiler_can_build_shared_GCJ=no 17763 ;; 17764 esac 17765 fi 17766 17767echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 17768echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 17769 17770# 17771# Check to make sure the PIC flag actually works. 17772# 17773if test -n "$lt_prog_compiler_pic_GCJ"; then 17774 17775echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 17776echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 17777if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 17778 echo $ECHO_N "(cached) $ECHO_C" >&6 17779else 17780 lt_prog_compiler_pic_works_GCJ=no 17781 ac_outfile=conftest.$ac_objext 17782 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17783 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 17784 # Insert the option either (1) after the last *FLAGS variable, or 17785 # (2) before a word containing "conftest.", or (3) at the end. 17786 # Note that $ac_compile itself does not contain backslashes and begins 17787 # with a dollar sign (not a hyphen), so the echo should work correctly. 17788 # The option is referenced via a variable to avoid confusing sed. 17789 lt_compile=`echo "$ac_compile" | $SED \ 17790 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17791 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17792 -e 's:$: $lt_compiler_flag:'` 17793 (eval echo "\"\$as_me:17793: $lt_compile\"" >&5) 17794 (eval "$lt_compile" 2>conftest.err) 17795 ac_status=$? 17796 cat conftest.err >&5 17797 echo "$as_me:17797: \$? = $ac_status" >&5 17798 if (exit $ac_status) && test -s "$ac_outfile"; then 17799 # The compiler can only warn and ignore the option if not recognized 17800 # So say no if there are warnings other than the usual output. 17801 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 17802 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17803 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17804 lt_prog_compiler_pic_works_GCJ=yes 17805 fi 17806 fi 17807 $rm conftest* 17808 17809fi 17810echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 17811echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 17812 17813if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 17814 case $lt_prog_compiler_pic_GCJ in 17815 "" | " "*) ;; 17816 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 17817 esac 17818else 17819 lt_prog_compiler_pic_GCJ= 17820 lt_prog_compiler_can_build_shared_GCJ=no 17821fi 17822 17823fi 17824case $host_os in 17825 # For platforms which do not support PIC, -DPIC is meaningless: 17826 *djgpp*) 17827 lt_prog_compiler_pic_GCJ= 17828 ;; 17829 *) 17830 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 17831 ;; 17832esac 17833 17834# 17835# Check to make sure the static flag actually works. 17836# 17837wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 17838echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 17839echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 17840if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 17841 echo $ECHO_N "(cached) $ECHO_C" >&6 17842else 17843 lt_prog_compiler_static_works_GCJ=no 17844 save_LDFLAGS="$LDFLAGS" 17845 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 17846 printf "$lt_simple_link_test_code" > conftest.$ac_ext 17847 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17848 # The linker can only warn and ignore the option if not recognized 17849 # So say no if there are warnings 17850 if test -s conftest.err; then 17851 # Append any errors to the config.log. 17852 cat conftest.err 1>&5 17853 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 17854 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17855 if diff conftest.exp conftest.er2 >/dev/null; then 17856 lt_prog_compiler_static_works_GCJ=yes 17857 fi 17858 else 17859 lt_prog_compiler_static_works_GCJ=yes 17860 fi 17861 fi 17862 $rm conftest* 17863 LDFLAGS="$save_LDFLAGS" 17864 17865fi 17866echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 17867echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6 17868 17869if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 17870 : 17871else 17872 lt_prog_compiler_static_GCJ= 17873fi 17874 17875 17876echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 17877echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 17878if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 17879 echo $ECHO_N "(cached) $ECHO_C" >&6 17880else 17881 lt_cv_prog_compiler_c_o_GCJ=no 17882 $rm -r conftest 2>/dev/null 17883 mkdir conftest 17884 cd conftest 17885 mkdir out 17886 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17887 17888 lt_compiler_flag="-o out/conftest2.$ac_objext" 17889 # Insert the option either (1) after the last *FLAGS variable, or 17890 # (2) before a word containing "conftest.", or (3) at the end. 17891 # Note that $ac_compile itself does not contain backslashes and begins 17892 # with a dollar sign (not a hyphen), so the echo should work correctly. 17893 lt_compile=`echo "$ac_compile" | $SED \ 17894 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17895 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17896 -e 's:$: $lt_compiler_flag:'` 17897 (eval echo "\"\$as_me:17897: $lt_compile\"" >&5) 17898 (eval "$lt_compile" 2>out/conftest.err) 17899 ac_status=$? 17900 cat out/conftest.err >&5 17901 echo "$as_me:17901: \$? = $ac_status" >&5 17902 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17903 then 17904 # The compiler can only warn and ignore the option if not recognized 17905 # So say no if there are warnings 17906 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 17907 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17908 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17909 lt_cv_prog_compiler_c_o_GCJ=yes 17910 fi 17911 fi 17912 chmod u+w . 2>&5 17913 $rm conftest* 17914 # SGI C++ compiler will create directory out/ii_files/ for 17915 # template instantiation 17916 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 17917 $rm out/* && rmdir out 17918 cd .. 17919 rmdir conftest 17920 $rm conftest* 17921 17922fi 17923echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 17924echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 17925 17926 17927hard_links="nottested" 17928if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 17929 # do not overwrite the value of need_locks provided by the user 17930 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 17931echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 17932 hard_links=yes 17933 $rm conftest* 17934 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17935 touch conftest.a 17936 ln conftest.a conftest.b 2>&5 || hard_links=no 17937 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17938 echo "$as_me:$LINENO: result: $hard_links" >&5 17939echo "${ECHO_T}$hard_links" >&6 17940 if test "$hard_links" = no; then 17941 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 17942echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 17943 need_locks=warn 17944 fi 17945else 17946 need_locks=no 17947fi 17948 17949echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17950echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 17951 17952 runpath_var= 17953 allow_undefined_flag_GCJ= 17954 enable_shared_with_static_runtimes_GCJ=no 17955 archive_cmds_GCJ= 17956 archive_expsym_cmds_GCJ= 17957 old_archive_From_new_cmds_GCJ= 17958 old_archive_from_expsyms_cmds_GCJ= 17959 export_dynamic_flag_spec_GCJ= 17960 whole_archive_flag_spec_GCJ= 17961 thread_safe_flag_spec_GCJ= 17962 hardcode_libdir_flag_spec_GCJ= 17963 hardcode_libdir_flag_spec_ld_GCJ= 17964 hardcode_libdir_separator_GCJ= 17965 hardcode_direct_GCJ=no 17966 hardcode_minus_L_GCJ=no 17967 hardcode_shlibpath_var_GCJ=unsupported 17968 link_all_deplibs_GCJ=unknown 17969 hardcode_automatic_GCJ=no 17970 module_cmds_GCJ= 17971 module_expsym_cmds_GCJ= 17972 always_export_symbols_GCJ=no 17973 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17974 # include_expsyms should be a list of space-separated symbols to be *always* 17975 # included in the symbol list 17976 include_expsyms_GCJ= 17977 # exclude_expsyms can be an extended regexp of symbols to exclude 17978 # it will be wrapped by ` (' and `)$', so one must not match beginning or 17979 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 17980 # as well as any symbol that contains `d'. 17981 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 17982 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 17983 # platforms (ab)use it in PIC code, but their linkers get confused if 17984 # the symbol is explicitly referenced. Since portable code cannot 17985 # rely on this symbol name, it's probably fine to never include it in 17986 # preloaded symbol tables. 17987 extract_expsyms_cmds= 17988 # Just being paranoid about ensuring that cc_basename is set. 17989 for cc_temp in $compiler""; do 17990 case $cc_temp in 17991 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17992 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17993 \-*) ;; 17994 *) break;; 17995 esac 17996done 17997cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17998 17999 case $host_os in 18000 cygwin* | mingw* | pw32*) 18001 # FIXME: the MSVC++ port hasn't been tested in a loooong time 18002 # When not using gcc, we currently assume that we are using 18003 # Microsoft Visual C++. 18004 if test "$GCC" != yes; then 18005 with_gnu_ld=no 18006 fi 18007 ;; 18008 interix*) 18009 # we just hope/assume this is gcc and not c89 (= MSVC++) 18010 with_gnu_ld=yes 18011 ;; 18012 openbsd*) 18013 with_gnu_ld=no 18014 ;; 18015 esac 18016 18017 ld_shlibs_GCJ=yes 18018 if test "$with_gnu_ld" = yes; then 18019 # If archive_cmds runs LD, not CC, wlarc should be empty 18020 wlarc='${wl}' 18021 18022 # Set some defaults for GNU ld with shared library support. These 18023 # are reset later if shared libraries are not supported. Putting them 18024 # here allows them to be overridden if necessary. 18025 runpath_var=LD_RUN_PATH 18026 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 18027 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 18028 # ancient GNU ld didn't support --whole-archive et. al. 18029 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 18030 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 18031 else 18032 whole_archive_flag_spec_GCJ= 18033 fi 18034 supports_anon_versioning=no 18035 case `$LD -v 2>/dev/null` in 18036 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 18037 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 18038 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 18039 *\ 2.11.*) ;; # other 2.11 versions 18040 *) supports_anon_versioning=yes ;; 18041 esac 18042 18043 # See if GNU ld supports shared libraries. 18044 case $host_os in 18045 aix3* | aix4* | aix5*) 18046 # On AIX/PPC, the GNU linker is very broken 18047 if test "$host_cpu" != ia64; then 18048 ld_shlibs_GCJ=no 18049 cat <<EOF 1>&2 18050 18051*** Warning: the GNU linker, at least up to release 2.9.1, is reported 18052*** to be unable to reliably create shared libraries on AIX. 18053*** Therefore, libtool is disabling shared libraries support. If you 18054*** really care for shared libraries, you may want to modify your PATH 18055*** so that a non-GNU linker is found, and then restart. 18056 18057EOF 18058 fi 18059 ;; 18060 18061 amigaos*) 18062 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)' 18063 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18064 hardcode_minus_L_GCJ=yes 18065 18066 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 18067 # that the semantics of dynamic libraries on AmigaOS, at least up 18068 # to version 4, is to share data among multiple programs linked 18069 # with the same dynamic library. Since this doesn't match the 18070 # behavior of shared libraries on other platforms, we can't use 18071 # them. 18072 ld_shlibs_GCJ=no 18073 ;; 18074 18075 beos*) 18076 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18077 allow_undefined_flag_GCJ=unsupported 18078 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 18079 # support --undefined. This deserves some investigation. FIXME 18080 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18081 else 18082 ld_shlibs_GCJ=no 18083 fi 18084 ;; 18085 18086 cygwin* | mingw* | pw32*) 18087 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 18088 # as there is no search path for DLLs. 18089 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18090 allow_undefined_flag_GCJ=unsupported 18091 always_export_symbols_GCJ=no 18092 enable_shared_with_static_runtimes_GCJ=yes 18093 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 18094 18095 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 18096 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 18097 # If the export-symbols file already is a .def file (1st line 18098 # is EXPORTS), use it as is; otherwise, prepend... 18099 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 18100 cp $export_symbols $output_objdir/$soname.def; 18101 else 18102 echo EXPORTS > $output_objdir/$soname.def; 18103 cat $export_symbols >> $output_objdir/$soname.def; 18104 fi~ 18105 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 18106 else 18107 ld_shlibs_GCJ=no 18108 fi 18109 ;; 18110 18111 interix3*) 18112 hardcode_direct_GCJ=no 18113 hardcode_shlibpath_var_GCJ=no 18114 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18115 export_dynamic_flag_spec_GCJ='${wl}-E' 18116 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 18117 # Instead, shared libraries are loaded at an image base (0x10000000 by 18118 # default) and relocated if they conflict, which is a slow very memory 18119 # consuming and fragmenting process. To avoid this, we pick a random, 18120 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 18121 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 18122 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' 18123 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' 18124 ;; 18125 18126 linux*) 18127 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18128 tmp_addflag= 18129 case $cc_basename,$host_cpu in 18130 pgcc*) # Portland Group C compiler 18131 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' 18132 tmp_addflag=' $pic_flag' 18133 ;; 18134 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 18135 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' 18136 tmp_addflag=' $pic_flag -Mnomain' ;; 18137 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 18138 tmp_addflag=' -i_dynamic' ;; 18139 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 18140 tmp_addflag=' -i_dynamic -nofor_main' ;; 18141 ifc* | ifort*) # Intel Fortran compiler 18142 tmp_addflag=' -nofor_main' ;; 18143 esac 18144 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18145 18146 if test $supports_anon_versioning = yes; then 18147 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 18148 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 18149 $echo "local: *; };" >> $output_objdir/$libname.ver~ 18150 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 18151 fi 18152 else 18153 ld_shlibs_GCJ=no 18154 fi 18155 ;; 18156 18157 netbsd*) 18158 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18159 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 18160 wlarc= 18161 else 18162 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18163 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 18164 fi 18165 ;; 18166 18167 solaris*) 18168 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 18169 ld_shlibs_GCJ=no 18170 cat <<EOF 1>&2 18171 18172*** Warning: The releases 2.8.* of the GNU linker cannot reliably 18173*** create shared libraries on Solaris systems. Therefore, libtool 18174*** is disabling shared libraries support. We urge you to upgrade GNU 18175*** binutils to release 2.9.1 or newer. Another option is to modify 18176*** your PATH or compiler configuration so that the native linker is 18177*** used, and then restart. 18178 18179EOF 18180 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18181 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18182 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 18183 else 18184 ld_shlibs_GCJ=no 18185 fi 18186 ;; 18187 18188 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 18189 case `$LD -v 2>&1` in 18190 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 18191 ld_shlibs_GCJ=no 18192 cat <<_LT_EOF 1>&2 18193 18194*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 18195*** reliably create shared libraries on SCO systems. Therefore, libtool 18196*** is disabling shared libraries support. We urge you to upgrade GNU 18197*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 18198*** your PATH or compiler configuration so that the native linker is 18199*** used, and then restart. 18200 18201_LT_EOF 18202 ;; 18203 *) 18204 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18205 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 18206 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 18207 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 18208 else 18209 ld_shlibs_GCJ=no 18210 fi 18211 ;; 18212 esac 18213 ;; 18214 18215 sunos4*) 18216 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18217 wlarc= 18218 hardcode_direct_GCJ=yes 18219 hardcode_shlibpath_var_GCJ=no 18220 ;; 18221 18222 *) 18223 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18224 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18225 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 18226 else 18227 ld_shlibs_GCJ=no 18228 fi 18229 ;; 18230 esac 18231 18232 if test "$ld_shlibs_GCJ" = no; then 18233 runpath_var= 18234 hardcode_libdir_flag_spec_GCJ= 18235 export_dynamic_flag_spec_GCJ= 18236 whole_archive_flag_spec_GCJ= 18237 fi 18238 else 18239 # PORTME fill in a description of your system's linker (not GNU ld) 18240 case $host_os in 18241 aix3*) 18242 allow_undefined_flag_GCJ=unsupported 18243 always_export_symbols_GCJ=yes 18244 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' 18245 # Note: this linker hardcodes the directories in LIBPATH if there 18246 # are no directories specified by -L. 18247 hardcode_minus_L_GCJ=yes 18248 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 18249 # Neither direct hardcoding nor static linking is supported with a 18250 # broken collect2. 18251 hardcode_direct_GCJ=unsupported 18252 fi 18253 ;; 18254 18255 aix4* | aix5*) 18256 if test "$host_cpu" = ia64; then 18257 # On IA64, the linker does run time linking by default, so we don't 18258 # have to do anything special. 18259 aix_use_runtimelinking=no 18260 exp_sym_flag='-Bexport' 18261 no_entry_flag="" 18262 else 18263 # If we're using GNU nm, then we don't want the "-C" option. 18264 # -C means demangle to AIX nm, but means don't demangle with GNU nm 18265 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 18266 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' 18267 else 18268 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' 18269 fi 18270 aix_use_runtimelinking=no 18271 18272 # Test if we are trying to use run time linking or normal 18273 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 18274 # need to do runtime linking. 18275 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 18276 for ld_flag in $LDFLAGS; do 18277 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 18278 aix_use_runtimelinking=yes 18279 break 18280 fi 18281 done 18282 ;; 18283 esac 18284 18285 exp_sym_flag='-bexport' 18286 no_entry_flag='-bnoentry' 18287 fi 18288 18289 # When large executables or shared objects are built, AIX ld can 18290 # have problems creating the table of contents. If linking a library 18291 # or program results in "error TOC overflow" add -mminimal-toc to 18292 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 18293 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 18294 18295 archive_cmds_GCJ='' 18296 hardcode_direct_GCJ=yes 18297 hardcode_libdir_separator_GCJ=':' 18298 link_all_deplibs_GCJ=yes 18299 18300 if test "$GCC" = yes; then 18301 case $host_os in aix4.[012]|aix4.[012].*) 18302 # We only want to do this on AIX 4.2 and lower, the check 18303 # below for broken collect2 doesn't work under 4.3+ 18304 collect2name=`${CC} -print-prog-name=collect2` 18305 if test -f "$collect2name" && \ 18306 strings "$collect2name" | grep resolve_lib_name >/dev/null 18307 then 18308 # We have reworked collect2 18309 hardcode_direct_GCJ=yes 18310 else 18311 # We have old collect2 18312 hardcode_direct_GCJ=unsupported 18313 # It fails to find uninstalled libraries when the uninstalled 18314 # path is not listed in the libpath. Setting hardcode_minus_L 18315 # to unsupported forces relinking 18316 hardcode_minus_L_GCJ=yes 18317 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18318 hardcode_libdir_separator_GCJ= 18319 fi 18320 ;; 18321 esac 18322 shared_flag='-shared' 18323 if test "$aix_use_runtimelinking" = yes; then 18324 shared_flag="$shared_flag "'${wl}-G' 18325 fi 18326 else 18327 # not using gcc 18328 if test "$host_cpu" = ia64; then 18329 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 18330 # chokes on -Wl,-G. The following line is correct: 18331 shared_flag='-G' 18332 else 18333 if test "$aix_use_runtimelinking" = yes; then 18334 shared_flag='${wl}-G' 18335 else 18336 shared_flag='${wl}-bM:SRE' 18337 fi 18338 fi 18339 fi 18340 18341 # It seems that -bexpall does not export symbols beginning with 18342 # underscore (_), so it is better to generate a list of symbols to export. 18343 always_export_symbols_GCJ=yes 18344 if test "$aix_use_runtimelinking" = yes; then 18345 # Warning - without using the other runtime loading flags (-brtl), 18346 # -berok will link without error, but may produce a broken library. 18347 allow_undefined_flag_GCJ='-berok' 18348 # Determine the default libpath from the value encoded in an empty executable. 18349 cat >conftest.$ac_ext <<_ACEOF 18350/* confdefs.h. */ 18351_ACEOF 18352cat confdefs.h >>conftest.$ac_ext 18353cat >>conftest.$ac_ext <<_ACEOF 18354/* end confdefs.h. */ 18355 18356int 18357main () 18358{ 18359 18360 ; 18361 return 0; 18362} 18363_ACEOF 18364rm -f conftest.$ac_objext conftest$ac_exeext 18365if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18366 (eval $ac_link) 2>conftest.er1 18367 ac_status=$? 18368 grep -v '^ *+' conftest.er1 >conftest.err 18369 rm -f conftest.er1 18370 cat conftest.err >&5 18371 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18372 (exit $ac_status); } && 18373 { ac_try='test -z "$ac_c_werror_flag" 18374 || test ! -s conftest.err' 18375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18376 (eval $ac_try) 2>&5 18377 ac_status=$? 18378 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18379 (exit $ac_status); }; } && 18380 { ac_try='test -s conftest$ac_exeext' 18381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18382 (eval $ac_try) 2>&5 18383 ac_status=$? 18384 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18385 (exit $ac_status); }; }; then 18386 18387aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 18388}'` 18389# Check for a 64-bit object if we didn't find anything. 18390if 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; } 18391}'`; fi 18392else 18393 echo "$as_me: failed program was:" >&5 18394sed 's/^/| /' conftest.$ac_ext >&5 18395 18396fi 18397rm -f conftest.err conftest.$ac_objext \ 18398 conftest$ac_exeext conftest.$ac_ext 18399if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 18400 18401 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 18402 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" 18403 else 18404 if test "$host_cpu" = ia64; then 18405 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 18406 allow_undefined_flag_GCJ="-z nodefs" 18407 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" 18408 else 18409 # Determine the default libpath from the value encoded in an empty executable. 18410 cat >conftest.$ac_ext <<_ACEOF 18411/* confdefs.h. */ 18412_ACEOF 18413cat confdefs.h >>conftest.$ac_ext 18414cat >>conftest.$ac_ext <<_ACEOF 18415/* end confdefs.h. */ 18416 18417int 18418main () 18419{ 18420 18421 ; 18422 return 0; 18423} 18424_ACEOF 18425rm -f conftest.$ac_objext conftest$ac_exeext 18426if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18427 (eval $ac_link) 2>conftest.er1 18428 ac_status=$? 18429 grep -v '^ *+' conftest.er1 >conftest.err 18430 rm -f conftest.er1 18431 cat conftest.err >&5 18432 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18433 (exit $ac_status); } && 18434 { ac_try='test -z "$ac_c_werror_flag" 18435 || test ! -s conftest.err' 18436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18437 (eval $ac_try) 2>&5 18438 ac_status=$? 18439 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18440 (exit $ac_status); }; } && 18441 { ac_try='test -s conftest$ac_exeext' 18442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18443 (eval $ac_try) 2>&5 18444 ac_status=$? 18445 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18446 (exit $ac_status); }; }; then 18447 18448aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 18449}'` 18450# Check for a 64-bit object if we didn't find anything. 18451if 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; } 18452}'`; fi 18453else 18454 echo "$as_me: failed program was:" >&5 18455sed 's/^/| /' conftest.$ac_ext >&5 18456 18457fi 18458rm -f conftest.err conftest.$ac_objext \ 18459 conftest$ac_exeext conftest.$ac_ext 18460if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 18461 18462 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 18463 # Warning - without using the other run time loading flags, 18464 # -berok will link without error, but may produce a broken library. 18465 no_undefined_flag_GCJ=' ${wl}-bernotok' 18466 allow_undefined_flag_GCJ=' ${wl}-berok' 18467 # Exported symbols can be pulled into shared objects from archives 18468 whole_archive_flag_spec_GCJ='$convenience' 18469 archive_cmds_need_lc_GCJ=yes 18470 # This is similar to how AIX traditionally builds its shared libraries. 18471 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' 18472 fi 18473 fi 18474 ;; 18475 18476 amigaos*) 18477 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)' 18478 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18479 hardcode_minus_L_GCJ=yes 18480 # see comment about different semantics on the GNU ld section 18481 ld_shlibs_GCJ=no 18482 ;; 18483 18484 bsdi[45]*) 18485 export_dynamic_flag_spec_GCJ=-rdynamic 18486 ;; 18487 18488 cygwin* | mingw* | pw32*) 18489 # When not using gcc, we currently assume that we are using 18490 # Microsoft Visual C++. 18491 # hardcode_libdir_flag_spec is actually meaningless, as there is 18492 # no search path for DLLs. 18493 hardcode_libdir_flag_spec_GCJ=' ' 18494 allow_undefined_flag_GCJ=unsupported 18495 # Tell ltmain to make .lib files, not .a files. 18496 libext=lib 18497 # Tell ltmain to make .dll files, not .so files. 18498 shrext_cmds=".dll" 18499 # FIXME: Setting linknames here is a bad hack. 18500 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 18501 # The linker will automatically build a .lib file if we build a DLL. 18502 old_archive_From_new_cmds_GCJ='true' 18503 # FIXME: Should let the user specify the lib program. 18504 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 18505 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 18506 enable_shared_with_static_runtimes_GCJ=yes 18507 ;; 18508 18509 darwin* | rhapsody*) 18510 case $host_os in 18511 rhapsody* | darwin1.[012]) 18512 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 18513 ;; 18514 *) # Darwin 1.3 on 18515 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 18516 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 18517 else 18518 case ${MACOSX_DEPLOYMENT_TARGET} in 18519 10.[012]) 18520 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 18521 ;; 18522 10.*) 18523 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 18524 ;; 18525 esac 18526 fi 18527 ;; 18528 esac 18529 archive_cmds_need_lc_GCJ=no 18530 hardcode_direct_GCJ=no 18531 hardcode_automatic_GCJ=yes 18532 hardcode_shlibpath_var_GCJ=unsupported 18533 whole_archive_flag_spec_GCJ='' 18534 link_all_deplibs_GCJ=yes 18535 if test "$GCC" = yes ; then 18536 output_verbose_link_cmd='echo' 18537 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 18538 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 18539 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 18540 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}' 18541 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}' 18542 else 18543 case $cc_basename in 18544 xlc*) 18545 output_verbose_link_cmd='echo' 18546 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 18547 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 18548 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 18549 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}' 18550 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}' 18551 ;; 18552 *) 18553 ld_shlibs_GCJ=no 18554 ;; 18555 esac 18556 fi 18557 ;; 18558 18559 dgux*) 18560 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18561 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18562 hardcode_shlibpath_var_GCJ=no 18563 ;; 18564 18565 freebsd1*) 18566 ld_shlibs_GCJ=no 18567 ;; 18568 18569 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 18570 # support. Future versions do this automatically, but an explicit c++rt0.o 18571 # does not break anything, and helps significantly (at the cost of a little 18572 # extra space). 18573 freebsd2.2*) 18574 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 18575 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18576 hardcode_direct_GCJ=yes 18577 hardcode_shlibpath_var_GCJ=no 18578 ;; 18579 18580 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 18581 freebsd2*) 18582 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18583 hardcode_direct_GCJ=yes 18584 hardcode_minus_L_GCJ=yes 18585 hardcode_shlibpath_var_GCJ=no 18586 ;; 18587 18588 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 18589 freebsd* | kfreebsd*-gnu | dragonfly*) 18590 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 18591 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18592 hardcode_direct_GCJ=yes 18593 hardcode_shlibpath_var_GCJ=no 18594 ;; 18595 18596 hpux9*) 18597 if test "$GCC" = yes; then 18598 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' 18599 else 18600 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' 18601 fi 18602 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18603 hardcode_libdir_separator_GCJ=: 18604 hardcode_direct_GCJ=yes 18605 18606 # hardcode_minus_L: Not really in the search PATH, 18607 # but as the default location of the library. 18608 hardcode_minus_L_GCJ=yes 18609 export_dynamic_flag_spec_GCJ='${wl}-E' 18610 ;; 18611 18612 hpux10*) 18613 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 18614 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18615 else 18616 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 18617 fi 18618 if test "$with_gnu_ld" = no; then 18619 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18620 hardcode_libdir_separator_GCJ=: 18621 18622 hardcode_direct_GCJ=yes 18623 export_dynamic_flag_spec_GCJ='${wl}-E' 18624 18625 # hardcode_minus_L: Not really in the search PATH, 18626 # but as the default location of the library. 18627 hardcode_minus_L_GCJ=yes 18628 fi 18629 ;; 18630 18631 hpux11*) 18632 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 18633 case $host_cpu in 18634 hppa*64*) 18635 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18636 ;; 18637 ia64*) 18638 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18639 ;; 18640 *) 18641 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18642 ;; 18643 esac 18644 else 18645 case $host_cpu in 18646 hppa*64*) 18647 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18648 ;; 18649 ia64*) 18650 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18651 ;; 18652 *) 18653 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18654 ;; 18655 esac 18656 fi 18657 if test "$with_gnu_ld" = no; then 18658 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18659 hardcode_libdir_separator_GCJ=: 18660 18661 case $host_cpu in 18662 hppa*64*|ia64*) 18663 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 18664 hardcode_direct_GCJ=no 18665 hardcode_shlibpath_var_GCJ=no 18666 ;; 18667 *) 18668 hardcode_direct_GCJ=yes 18669 export_dynamic_flag_spec_GCJ='${wl}-E' 18670 18671 # hardcode_minus_L: Not really in the search PATH, 18672 # but as the default location of the library. 18673 hardcode_minus_L_GCJ=yes 18674 ;; 18675 esac 18676 fi 18677 ;; 18678 18679 irix5* | irix6* | nonstopux*) 18680 if test "$GCC" = yes; then 18681 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' 18682 else 18683 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' 18684 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 18685 fi 18686 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18687 hardcode_libdir_separator_GCJ=: 18688 link_all_deplibs_GCJ=yes 18689 ;; 18690 18691 netbsd*) 18692 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18693 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 18694 else 18695 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 18696 fi 18697 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18698 hardcode_direct_GCJ=yes 18699 hardcode_shlibpath_var_GCJ=no 18700 ;; 18701 18702 newsos6) 18703 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18704 hardcode_direct_GCJ=yes 18705 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18706 hardcode_libdir_separator_GCJ=: 18707 hardcode_shlibpath_var_GCJ=no 18708 ;; 18709 18710 openbsd*) 18711 hardcode_direct_GCJ=yes 18712 hardcode_shlibpath_var_GCJ=no 18713 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18714 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18715 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 18716 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18717 export_dynamic_flag_spec_GCJ='${wl}-E' 18718 else 18719 case $host_os in 18720 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 18721 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18722 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18723 ;; 18724 *) 18725 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18726 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18727 ;; 18728 esac 18729 fi 18730 ;; 18731 18732 os2*) 18733 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18734 hardcode_minus_L_GCJ=yes 18735 allow_undefined_flag_GCJ=unsupported 18736 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' 18737 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 18738 ;; 18739 18740 osf3*) 18741 if test "$GCC" = yes; then 18742 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18743 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' 18744 else 18745 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18746 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' 18747 fi 18748 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18749 hardcode_libdir_separator_GCJ=: 18750 ;; 18751 18752 osf4* | osf5*) # as osf3* with the addition of -msym flag 18753 if test "$GCC" = yes; then 18754 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18755 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' 18756 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18757 else 18758 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18759 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' 18760 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~ 18761 $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' 18762 18763 # Both c and cxx compiler support -rpath directly 18764 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 18765 fi 18766 hardcode_libdir_separator_GCJ=: 18767 ;; 18768 18769 solaris*) 18770 no_undefined_flag_GCJ=' -z text' 18771 if test "$GCC" = yes; then 18772 wlarc='${wl}' 18773 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18774 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18775 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 18776 else 18777 wlarc='' 18778 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 18779 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18780 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 18781 fi 18782 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18783 hardcode_shlibpath_var_GCJ=no 18784 case $host_os in 18785 solaris2.[0-5] | solaris2.[0-5].*) ;; 18786 *) 18787 # The compiler driver will combine linker options so we 18788 # cannot just pass the convience library names through 18789 # without $wl, iff we do not link with $LD. 18790 # Luckily, gcc supports the same syntax we need for Sun Studio. 18791 # Supported since Solaris 2.6 (maybe 2.5.1?) 18792 case $wlarc in 18793 '') 18794 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 18795 *) 18796 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' ;; 18797 esac ;; 18798 esac 18799 link_all_deplibs_GCJ=yes 18800 ;; 18801 18802 sunos4*) 18803 if test "x$host_vendor" = xsequent; then 18804 # Use $CC to link under sequent, because it throws in some extra .o 18805 # files that make .init and .fini sections work. 18806 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 18807 else 18808 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 18809 fi 18810 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18811 hardcode_direct_GCJ=yes 18812 hardcode_minus_L_GCJ=yes 18813 hardcode_shlibpath_var_GCJ=no 18814 ;; 18815 18816 sysv4) 18817 case $host_vendor in 18818 sni) 18819 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18820 hardcode_direct_GCJ=yes # is this really true??? 18821 ;; 18822 siemens) 18823 ## LD is ld it makes a PLAMLIB 18824 ## CC just makes a GrossModule. 18825 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 18826 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 18827 hardcode_direct_GCJ=no 18828 ;; 18829 motorola) 18830 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18831 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 18832 ;; 18833 esac 18834 runpath_var='LD_RUN_PATH' 18835 hardcode_shlibpath_var_GCJ=no 18836 ;; 18837 18838 sysv4.3*) 18839 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18840 hardcode_shlibpath_var_GCJ=no 18841 export_dynamic_flag_spec_GCJ='-Bexport' 18842 ;; 18843 18844 sysv4*MP*) 18845 if test -d /usr/nec; then 18846 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18847 hardcode_shlibpath_var_GCJ=no 18848 runpath_var=LD_RUN_PATH 18849 hardcode_runpath_var=yes 18850 ld_shlibs_GCJ=yes 18851 fi 18852 ;; 18853 18854 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 18855 no_undefined_flag_GCJ='${wl}-z,text' 18856 archive_cmds_need_lc_GCJ=no 18857 hardcode_shlibpath_var_GCJ=no 18858 runpath_var='LD_RUN_PATH' 18859 18860 if test "$GCC" = yes; then 18861 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18862 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18863 else 18864 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18865 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18866 fi 18867 ;; 18868 18869 sysv5* | sco3.2v5* | sco5v6*) 18870 # Note: We can NOT use -z defs as we might desire, because we do not 18871 # link with -lc, and that would cause any symbols used from libc to 18872 # always be unresolved, which means just about no library would 18873 # ever link correctly. If we're not using GNU ld we use -z text 18874 # though, which does catch some bad symbols but isn't as heavy-handed 18875 # as -z defs. 18876 no_undefined_flag_GCJ='${wl}-z,text' 18877 allow_undefined_flag_GCJ='${wl}-z,nodefs' 18878 archive_cmds_need_lc_GCJ=no 18879 hardcode_shlibpath_var_GCJ=no 18880 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 18881 hardcode_libdir_separator_GCJ=':' 18882 link_all_deplibs_GCJ=yes 18883 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 18884 runpath_var='LD_RUN_PATH' 18885 18886 if test "$GCC" = yes; then 18887 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18888 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18889 else 18890 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18891 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18892 fi 18893 ;; 18894 18895 uts4*) 18896 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18897 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18898 hardcode_shlibpath_var_GCJ=no 18899 ;; 18900 18901 *) 18902 ld_shlibs_GCJ=no 18903 ;; 18904 esac 18905 fi 18906 18907echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 18908echo "${ECHO_T}$ld_shlibs_GCJ" >&6 18909test "$ld_shlibs_GCJ" = no && can_build_shared=no 18910 18911# 18912# Do we need to explicitly link libc? 18913# 18914case "x$archive_cmds_need_lc_GCJ" in 18915x|xyes) 18916 # Assume -lc should be added 18917 archive_cmds_need_lc_GCJ=yes 18918 18919 if test "$enable_shared" = yes && test "$GCC" = yes; then 18920 case $archive_cmds_GCJ in 18921 *'~'*) 18922 # FIXME: we may have to deal with multi-command sequences. 18923 ;; 18924 '$CC '*) 18925 # Test whether the compiler implicitly links with -lc since on some 18926 # systems, -lgcc has to come before -lc. If gcc already passes -lc 18927 # to ld, don't add -lc before -lgcc. 18928 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 18929echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 18930 $rm conftest* 18931 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 18932 18933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18934 (eval $ac_compile) 2>&5 18935 ac_status=$? 18936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18937 (exit $ac_status); } 2>conftest.err; then 18938 soname=conftest 18939 lib=conftest 18940 libobjs=conftest.$ac_objext 18941 deplibs= 18942 wl=$lt_prog_compiler_wl_GCJ 18943 pic_flag=$lt_prog_compiler_pic_GCJ 18944 compiler_flags=-v 18945 linker_flags=-v 18946 verstring= 18947 output_objdir=. 18948 libname=conftest 18949 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 18950 allow_undefined_flag_GCJ= 18951 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 18952 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 18953 ac_status=$? 18954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18955 (exit $ac_status); } 18956 then 18957 archive_cmds_need_lc_GCJ=no 18958 else 18959 archive_cmds_need_lc_GCJ=yes 18960 fi 18961 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 18962 else 18963 cat conftest.err 1>&5 18964 fi 18965 $rm conftest* 18966 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 18967echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 18968 ;; 18969 esac 18970 fi 18971 ;; 18972esac 18973 18974echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 18975echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 18976library_names_spec= 18977libname_spec='lib$name' 18978soname_spec= 18979shrext_cmds=".so" 18980postinstall_cmds= 18981postuninstall_cmds= 18982finish_cmds= 18983finish_eval= 18984shlibpath_var= 18985shlibpath_overrides_runpath=unknown 18986version_type=none 18987dynamic_linker="$host_os ld.so" 18988sys_lib_dlsearch_path_spec="/lib /usr/lib" 18989if test "$GCC" = yes; then 18990 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18991 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 18992 # if the path contains ";" then we assume it to be the separator 18993 # otherwise default to the standard path separator (i.e. ":") - it is 18994 # assumed that no part of a normal pathname contains ";" but that should 18995 # okay in the real world where ";" in dirpaths is itself problematic. 18996 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18997 else 18998 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18999 fi 19000else 19001 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 19002fi 19003need_lib_prefix=unknown 19004hardcode_into_libs=no 19005 19006# when you set need_version to no, make sure it does not cause -set_version 19007# flags to be left without arguments 19008need_version=unknown 19009 19010case $host_os in 19011aix3*) 19012 version_type=linux 19013 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 19014 shlibpath_var=LIBPATH 19015 19016 # AIX 3 has no versioning support, so we append a major version to the name. 19017 soname_spec='${libname}${release}${shared_ext}$major' 19018 ;; 19019 19020aix4* | aix5*) 19021 version_type=linux 19022 need_lib_prefix=no 19023 need_version=no 19024 hardcode_into_libs=yes 19025 if test "$host_cpu" = ia64; then 19026 # AIX 5 supports IA64 19027 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 19028 shlibpath_var=LD_LIBRARY_PATH 19029 else 19030 # With GCC up to 2.95.x, collect2 would create an import file 19031 # for dependence libraries. The import file would start with 19032 # the line `#! .'. This would cause the generated library to 19033 # depend on `.', always an invalid library. This was fixed in 19034 # development snapshots of GCC prior to 3.0. 19035 case $host_os in 19036 aix4 | aix4.[01] | aix4.[01].*) 19037 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 19038 echo ' yes ' 19039 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 19040 : 19041 else 19042 can_build_shared=no 19043 fi 19044 ;; 19045 esac 19046 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 19047 # soname into executable. Probably we can add versioning support to 19048 # collect2, so additional links can be useful in future. 19049 if test "$aix_use_runtimelinking" = yes; then 19050 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 19051 # instead of lib<name>.a to let people know that these are not 19052 # typical AIX shared libraries. 19053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19054 else 19055 # We preserve .a as extension for shared libraries through AIX4.2 19056 # and later when we are not doing run time linking. 19057 library_names_spec='${libname}${release}.a $libname.a' 19058 soname_spec='${libname}${release}${shared_ext}$major' 19059 fi 19060 shlibpath_var=LIBPATH 19061 fi 19062 ;; 19063 19064amigaos*) 19065 library_names_spec='$libname.ixlibrary $libname.a' 19066 # Create ${libname}_ixlibrary.a entries in /sys/libs. 19067 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' 19068 ;; 19069 19070beos*) 19071 library_names_spec='${libname}${shared_ext}' 19072 dynamic_linker="$host_os ld.so" 19073 shlibpath_var=LIBRARY_PATH 19074 ;; 19075 19076bsdi[45]*) 19077 version_type=linux 19078 need_version=no 19079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19080 soname_spec='${libname}${release}${shared_ext}$major' 19081 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 19082 shlibpath_var=LD_LIBRARY_PATH 19083 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 19084 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 19085 # the default ld.so.conf also contains /usr/contrib/lib and 19086 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 19087 # libtool to hard-code these into programs 19088 ;; 19089 19090cygwin* | mingw* | pw32*) 19091 version_type=windows 19092 shrext_cmds=".dll" 19093 need_version=no 19094 need_lib_prefix=no 19095 19096 case $GCC,$host_os in 19097 yes,cygwin* | yes,mingw* | yes,pw32*) 19098 library_names_spec='$libname.dll.a' 19099 # DLL is installed to $(libdir)/../bin by postinstall_cmds 19100 postinstall_cmds='base_file=`basename \${file}`~ 19101 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 19102 dldir=$destdir/`dirname \$dlpath`~ 19103 test -d \$dldir || mkdir -p \$dldir~ 19104 $install_prog $dir/$dlname \$dldir/$dlname~ 19105 chmod a+x \$dldir/$dlname' 19106 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 19107 dlpath=$dir/\$dldll~ 19108 $rm \$dlpath' 19109 shlibpath_overrides_runpath=yes 19110 19111 case $host_os in 19112 cygwin*) 19113 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 19114 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 19115 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 19116 ;; 19117 mingw*) 19118 # MinGW DLLs use traditional 'lib' prefix 19119 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 19120 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 19121 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 19122 # It is most probably a Windows format PATH printed by 19123 # mingw gcc, but we are running on Cygwin. Gcc prints its search 19124 # path with ; separators, and with drive letters. We can handle the 19125 # drive letters (cygwin fileutils understands them), so leave them, 19126 # especially as we might pass files found there to a mingw objdump, 19127 # which wouldn't understand a cygwinified path. Ahh. 19128 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 19129 else 19130 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 19131 fi 19132 ;; 19133 pw32*) 19134 # pw32 DLLs use 'pw' prefix rather than 'lib' 19135 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 19136 ;; 19137 esac 19138 ;; 19139 19140 *) 19141 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 19142 ;; 19143 esac 19144 dynamic_linker='Win32 ld.exe' 19145 # FIXME: first we should search . and the directory the executable is in 19146 shlibpath_var=PATH 19147 ;; 19148 19149darwin* | rhapsody*) 19150 dynamic_linker="$host_os dyld" 19151 version_type=darwin 19152 need_lib_prefix=no 19153 need_version=no 19154 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 19155 soname_spec='${libname}${release}${major}$shared_ext' 19156 shlibpath_overrides_runpath=yes 19157 shlibpath_var=DYLD_LIBRARY_PATH 19158 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 19159 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 19160 if test "$GCC" = yes; then 19161 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"` 19162 else 19163 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 19164 fi 19165 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 19166 ;; 19167 19168dgux*) 19169 version_type=linux 19170 need_lib_prefix=no 19171 need_version=no 19172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 19173 soname_spec='${libname}${release}${shared_ext}$major' 19174 shlibpath_var=LD_LIBRARY_PATH 19175 ;; 19176 19177freebsd1*) 19178 dynamic_linker=no 19179 ;; 19180 19181kfreebsd*-gnu) 19182 version_type=linux 19183 need_lib_prefix=no 19184 need_version=no 19185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 19186 soname_spec='${libname}${release}${shared_ext}$major' 19187 shlibpath_var=LD_LIBRARY_PATH 19188 shlibpath_overrides_runpath=no 19189 hardcode_into_libs=yes 19190 dynamic_linker='GNU ld.so' 19191 ;; 19192 19193freebsd* | dragonfly*) 19194 # DragonFly does not have aout. When/if they implement a new 19195 # versioning mechanism, adjust this. 19196 if test -x /usr/bin/objformat; then 19197 objformat=`/usr/bin/objformat` 19198 else 19199 case $host_os in 19200 freebsd[123]*) objformat=aout ;; 19201 *) objformat=elf ;; 19202 esac 19203 fi 19204 version_type=freebsd-$objformat 19205 case $version_type in 19206 freebsd-elf*) 19207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 19208 need_version=no 19209 need_lib_prefix=no 19210 ;; 19211 freebsd-*) 19212 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 19213 need_version=yes 19214 ;; 19215 esac 19216 shlibpath_var=LD_LIBRARY_PATH 19217 case $host_os in 19218 freebsd2*) 19219 shlibpath_overrides_runpath=yes 19220 ;; 19221 freebsd3.[01]* | freebsdelf3.[01]*) 19222 shlibpath_overrides_runpath=yes 19223 hardcode_into_libs=yes 19224 ;; 19225 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 19226 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 19227 shlibpath_overrides_runpath=no 19228 hardcode_into_libs=yes 19229 ;; 19230 freebsd*) # from 4.6 on 19231 shlibpath_overrides_runpath=yes 19232 hardcode_into_libs=yes 19233 ;; 19234 esac 19235 ;; 19236 19237gnu*) 19238 version_type=linux 19239 need_lib_prefix=no 19240 need_version=no 19241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 19242 soname_spec='${libname}${release}${shared_ext}$major' 19243 shlibpath_var=LD_LIBRARY_PATH 19244 hardcode_into_libs=yes 19245 ;; 19246 19247hpux9* | hpux10* | hpux11*) 19248 # Give a soname corresponding to the major version so that dld.sl refuses to 19249 # link against other versions. 19250 version_type=sunos 19251 need_lib_prefix=no 19252 need_version=no 19253 case $host_cpu in 19254 ia64*) 19255 shrext_cmds='.so' 19256 hardcode_into_libs=yes 19257 dynamic_linker="$host_os dld.so" 19258 shlibpath_var=LD_LIBRARY_PATH 19259 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 19260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19261 soname_spec='${libname}${release}${shared_ext}$major' 19262 if test "X$HPUX_IA64_MODE" = X32; then 19263 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 19264 else 19265 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 19266 fi 19267 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 19268 ;; 19269 hppa*64*) 19270 shrext_cmds='.sl' 19271 hardcode_into_libs=yes 19272 dynamic_linker="$host_os dld.sl" 19273 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 19274 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 19275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19276 soname_spec='${libname}${release}${shared_ext}$major' 19277 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 19278 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 19279 ;; 19280 *) 19281 shrext_cmds='.sl' 19282 dynamic_linker="$host_os dld.sl" 19283 shlibpath_var=SHLIB_PATH 19284 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 19285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19286 soname_spec='${libname}${release}${shared_ext}$major' 19287 ;; 19288 esac 19289 # HP-UX runs *really* slowly unless shared libraries are mode 555. 19290 postinstall_cmds='chmod 555 $lib' 19291 ;; 19292 19293interix3*) 19294 version_type=linux 19295 need_lib_prefix=no 19296 need_version=no 19297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 19298 soname_spec='${libname}${release}${shared_ext}$major' 19299 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 19300 shlibpath_var=LD_LIBRARY_PATH 19301 shlibpath_overrides_runpath=no 19302 hardcode_into_libs=yes 19303 ;; 19304 19305irix5* | irix6* | nonstopux*) 19306 case $host_os in 19307 nonstopux*) version_type=nonstopux ;; 19308 *) 19309 if test "$lt_cv_prog_gnu_ld" = yes; then 19310 version_type=linux 19311 else 19312 version_type=irix 19313 fi ;; 19314 esac 19315 need_lib_prefix=no 19316 need_version=no 19317 soname_spec='${libname}${release}${shared_ext}$major' 19318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 19319 case $host_os in 19320 irix5* | nonstopux*) 19321 libsuff= shlibsuff= 19322 ;; 19323 *) 19324 case $LD in # libtool.m4 will add one of these switches to LD 19325 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 19326 libsuff= shlibsuff= libmagic=32-bit;; 19327 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 19328 libsuff=32 shlibsuff=N32 libmagic=N32;; 19329 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 19330 libsuff=64 shlibsuff=64 libmagic=64-bit;; 19331 *) libsuff= shlibsuff= libmagic=never-match;; 19332 esac 19333 ;; 19334 esac 19335 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 19336 shlibpath_overrides_runpath=no 19337 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 19338 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 19339 hardcode_into_libs=yes 19340 ;; 19341 19342# No shared lib support for Linux oldld, aout, or coff. 19343linux*oldld* | linux*aout* | linux*coff*) 19344 dynamic_linker=no 19345 ;; 19346 19347# This must be Linux ELF. 19348linux*) 19349 version_type=linux 19350 need_lib_prefix=no 19351 need_version=no 19352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19353 soname_spec='${libname}${release}${shared_ext}$major' 19354 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 19355 shlibpath_var=LD_LIBRARY_PATH 19356 shlibpath_overrides_runpath=no 19357 # This implies no fast_install, which is unacceptable. 19358 # Some rework will be needed to allow for fast_install 19359 # before this can be enabled. 19360 hardcode_into_libs=yes 19361 19362 # Append ld.so.conf contents to the search path 19363 if test -f /etc/ld.so.conf; then 19364 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' ' '` 19365 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 19366 fi 19367 19368 # We used to test for /lib/ld.so.1 and disable shared libraries on 19369 # powerpc, because MkLinux only supported shared libraries with the 19370 # GNU dynamic linker. Since this was broken with cross compilers, 19371 # most powerpc-linux boxes support dynamic linking these days and 19372 # people can always --disable-shared, the test was removed, and we 19373 # assume the GNU/Linux dynamic linker is in use. 19374 dynamic_linker='GNU/Linux ld.so' 19375 ;; 19376 19377knetbsd*-gnu) 19378 version_type=linux 19379 need_lib_prefix=no 19380 need_version=no 19381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 19382 soname_spec='${libname}${release}${shared_ext}$major' 19383 shlibpath_var=LD_LIBRARY_PATH 19384 shlibpath_overrides_runpath=no 19385 hardcode_into_libs=yes 19386 dynamic_linker='GNU ld.so' 19387 ;; 19388 19389netbsd*) 19390 version_type=sunos 19391 need_lib_prefix=no 19392 need_version=no 19393 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 19394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 19395 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 19396 dynamic_linker='NetBSD (a.out) ld.so' 19397 else 19398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 19399 soname_spec='${libname}${release}${shared_ext}$major' 19400 dynamic_linker='NetBSD ld.elf_so' 19401 fi 19402 shlibpath_var=LD_LIBRARY_PATH 19403 shlibpath_overrides_runpath=yes 19404 hardcode_into_libs=yes 19405 ;; 19406 19407newsos6) 19408 version_type=linux 19409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19410 shlibpath_var=LD_LIBRARY_PATH 19411 shlibpath_overrides_runpath=yes 19412 ;; 19413 19414nto-qnx*) 19415 version_type=linux 19416 need_lib_prefix=no 19417 need_version=no 19418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19419 soname_spec='${libname}${release}${shared_ext}$major' 19420 shlibpath_var=LD_LIBRARY_PATH 19421 shlibpath_overrides_runpath=yes 19422 ;; 19423 19424openbsd*) 19425 version_type=sunos 19426 sys_lib_dlsearch_path_spec="/usr/lib" 19427 need_lib_prefix=no 19428 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 19429 case $host_os in 19430 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 19431 *) need_version=no ;; 19432 esac 19433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 19434 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 19435 shlibpath_var=LD_LIBRARY_PATH 19436 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 19437 case $host_os in 19438 openbsd2.[89] | openbsd2.[89].*) 19439 shlibpath_overrides_runpath=no 19440 ;; 19441 *) 19442 shlibpath_overrides_runpath=yes 19443 ;; 19444 esac 19445 else 19446 shlibpath_overrides_runpath=yes 19447 fi 19448 ;; 19449 19450os2*) 19451 libname_spec='$name' 19452 shrext_cmds=".dll" 19453 need_lib_prefix=no 19454 library_names_spec='$libname${shared_ext} $libname.a' 19455 dynamic_linker='OS/2 ld.exe' 19456 shlibpath_var=LIBPATH 19457 ;; 19458 19459osf3* | osf4* | osf5*) 19460 version_type=osf 19461 need_lib_prefix=no 19462 need_version=no 19463 soname_spec='${libname}${release}${shared_ext}$major' 19464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19465 shlibpath_var=LD_LIBRARY_PATH 19466 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 19467 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 19468 ;; 19469 19470solaris*) 19471 version_type=linux 19472 need_lib_prefix=no 19473 need_version=no 19474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19475 soname_spec='${libname}${release}${shared_ext}$major' 19476 shlibpath_var=LD_LIBRARY_PATH 19477 shlibpath_overrides_runpath=yes 19478 hardcode_into_libs=yes 19479 # ldd complains unless libraries are executable 19480 postinstall_cmds='chmod +x $lib' 19481 ;; 19482 19483sunos4*) 19484 version_type=sunos 19485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 19486 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 19487 shlibpath_var=LD_LIBRARY_PATH 19488 shlibpath_overrides_runpath=yes 19489 if test "$with_gnu_ld" = yes; then 19490 need_lib_prefix=no 19491 fi 19492 need_version=yes 19493 ;; 19494 19495sysv4 | sysv4.3*) 19496 version_type=linux 19497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19498 soname_spec='${libname}${release}${shared_ext}$major' 19499 shlibpath_var=LD_LIBRARY_PATH 19500 case $host_vendor in 19501 sni) 19502 shlibpath_overrides_runpath=no 19503 need_lib_prefix=no 19504 export_dynamic_flag_spec='${wl}-Blargedynsym' 19505 runpath_var=LD_RUN_PATH 19506 ;; 19507 siemens) 19508 need_lib_prefix=no 19509 ;; 19510 motorola) 19511 need_lib_prefix=no 19512 need_version=no 19513 shlibpath_overrides_runpath=no 19514 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 19515 ;; 19516 esac 19517 ;; 19518 19519sysv4*MP*) 19520 if test -d /usr/nec ;then 19521 version_type=linux 19522 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 19523 soname_spec='$libname${shared_ext}.$major' 19524 shlibpath_var=LD_LIBRARY_PATH 19525 fi 19526 ;; 19527 19528sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 19529 version_type=freebsd-elf 19530 need_lib_prefix=no 19531 need_version=no 19532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 19533 soname_spec='${libname}${release}${shared_ext}$major' 19534 shlibpath_var=LD_LIBRARY_PATH 19535 hardcode_into_libs=yes 19536 if test "$with_gnu_ld" = yes; then 19537 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 19538 shlibpath_overrides_runpath=no 19539 else 19540 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 19541 shlibpath_overrides_runpath=yes 19542 case $host_os in 19543 sco3.2v5*) 19544 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 19545 ;; 19546 esac 19547 fi 19548 sys_lib_dlsearch_path_spec='/usr/lib' 19549 ;; 19550 19551uts4*) 19552 version_type=linux 19553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19554 soname_spec='${libname}${release}${shared_ext}$major' 19555 shlibpath_var=LD_LIBRARY_PATH 19556 ;; 19557 19558*) 19559 dynamic_linker=no 19560 ;; 19561esac 19562echo "$as_me:$LINENO: result: $dynamic_linker" >&5 19563echo "${ECHO_T}$dynamic_linker" >&6 19564test "$dynamic_linker" = no && can_build_shared=no 19565 19566variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 19567if test "$GCC" = yes; then 19568 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 19569fi 19570 19571echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 19572echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 19573hardcode_action_GCJ= 19574if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 19575 test -n "$runpath_var_GCJ" || \ 19576 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 19577 19578 # We can hardcode non-existant directories. 19579 if test "$hardcode_direct_GCJ" != no && 19580 # If the only mechanism to avoid hardcoding is shlibpath_var, we 19581 # have to relink, otherwise we might link with an installed library 19582 # when we should be linking with a yet-to-be-installed one 19583 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 19584 test "$hardcode_minus_L_GCJ" != no; then 19585 # Linking always hardcodes the temporary library directory. 19586 hardcode_action_GCJ=relink 19587 else 19588 # We can link without hardcoding, and we can hardcode nonexisting dirs. 19589 hardcode_action_GCJ=immediate 19590 fi 19591else 19592 # We cannot hardcode anything, or else we can only hardcode existing 19593 # directories. 19594 hardcode_action_GCJ=unsupported 19595fi 19596echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 19597echo "${ECHO_T}$hardcode_action_GCJ" >&6 19598 19599if test "$hardcode_action_GCJ" = relink; then 19600 # Fast installation is not supported 19601 enable_fast_install=no 19602elif test "$shlibpath_overrides_runpath" = yes || 19603 test "$enable_shared" = no; then 19604 # Fast installation is not necessary 19605 enable_fast_install=needless 19606fi 19607 19608 19609# The else clause should only fire when bootstrapping the 19610# libtool distribution, otherwise you forgot to ship ltmain.sh 19611# with your package, and you will get complaints that there are 19612# no rules to generate ltmain.sh. 19613if test -f "$ltmain"; then 19614 # See if we are running on zsh, and set the options which allow our commands through 19615 # without removal of \ escapes. 19616 if test -n "${ZSH_VERSION+set}" ; then 19617 setopt NO_GLOB_SUBST 19618 fi 19619 # Now quote all the things that may contain metacharacters while being 19620 # careful not to overquote the AC_SUBSTed values. We take copies of the 19621 # variables and quote the copies for generation of the libtool script. 19622 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19623 SED SHELL STRIP \ 19624 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19625 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19626 deplibs_check_method reload_flag reload_cmds need_locks \ 19627 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19628 lt_cv_sys_global_symbol_to_c_name_address \ 19629 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19630 old_postinstall_cmds old_postuninstall_cmds \ 19631 compiler_GCJ \ 19632 CC_GCJ \ 19633 LD_GCJ \ 19634 lt_prog_compiler_wl_GCJ \ 19635 lt_prog_compiler_pic_GCJ \ 19636 lt_prog_compiler_static_GCJ \ 19637 lt_prog_compiler_no_builtin_flag_GCJ \ 19638 export_dynamic_flag_spec_GCJ \ 19639 thread_safe_flag_spec_GCJ \ 19640 whole_archive_flag_spec_GCJ \ 19641 enable_shared_with_static_runtimes_GCJ \ 19642 old_archive_cmds_GCJ \ 19643 old_archive_from_new_cmds_GCJ \ 19644 predep_objects_GCJ \ 19645 postdep_objects_GCJ \ 19646 predeps_GCJ \ 19647 postdeps_GCJ \ 19648 compiler_lib_search_path_GCJ \ 19649 archive_cmds_GCJ \ 19650 archive_expsym_cmds_GCJ \ 19651 postinstall_cmds_GCJ \ 19652 postuninstall_cmds_GCJ \ 19653 old_archive_from_expsyms_cmds_GCJ \ 19654 allow_undefined_flag_GCJ \ 19655 no_undefined_flag_GCJ \ 19656 export_symbols_cmds_GCJ \ 19657 hardcode_libdir_flag_spec_GCJ \ 19658 hardcode_libdir_flag_spec_ld_GCJ \ 19659 hardcode_libdir_separator_GCJ \ 19660 hardcode_automatic_GCJ \ 19661 module_cmds_GCJ \ 19662 module_expsym_cmds_GCJ \ 19663 lt_cv_prog_compiler_c_o_GCJ \ 19664 exclude_expsyms_GCJ \ 19665 include_expsyms_GCJ; do 19666 19667 case $var in 19668 old_archive_cmds_GCJ | \ 19669 old_archive_from_new_cmds_GCJ | \ 19670 archive_cmds_GCJ | \ 19671 archive_expsym_cmds_GCJ | \ 19672 module_cmds_GCJ | \ 19673 module_expsym_cmds_GCJ | \ 19674 old_archive_from_expsyms_cmds_GCJ | \ 19675 export_symbols_cmds_GCJ | \ 19676 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19677 postinstall_cmds | postuninstall_cmds | \ 19678 old_postinstall_cmds | old_postuninstall_cmds | \ 19679 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19680 # Double-quote double-evaled strings. 19681 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19682 ;; 19683 *) 19684 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19685 ;; 19686 esac 19687 done 19688 19689 case $lt_echo in 19690 *'\$0 --fallback-echo"') 19691 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19692 ;; 19693 esac 19694 19695cfgfile="$ofile" 19696 19697 cat <<__EOF__ >> "$cfgfile" 19698# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19699 19700# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19701 19702# Shell to use when invoking shell scripts. 19703SHELL=$lt_SHELL 19704 19705# Whether or not to build shared libraries. 19706build_libtool_libs=$enable_shared 19707 19708# Whether or not to build static libraries. 19709build_old_libs=$enable_static 19710 19711# Whether or not to add -lc for building shared libraries. 19712build_libtool_need_lc=$archive_cmds_need_lc_GCJ 19713 19714# Whether or not to disallow shared libs when runtime libs are static 19715allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 19716 19717# Whether or not to optimize for fast installation. 19718fast_install=$enable_fast_install 19719 19720# The host system. 19721host_alias=$host_alias 19722host=$host 19723host_os=$host_os 19724 19725# The build system. 19726build_alias=$build_alias 19727build=$build 19728build_os=$build_os 19729 19730# An echo program that does not interpret backslashes. 19731echo=$lt_echo 19732 19733# The archiver. 19734AR=$lt_AR 19735AR_FLAGS=$lt_AR_FLAGS 19736 19737# A C compiler. 19738LTCC=$lt_LTCC 19739 19740# LTCC compiler flags. 19741LTCFLAGS=$lt_LTCFLAGS 19742 19743# A language-specific compiler. 19744CC=$lt_compiler_GCJ 19745 19746# Is the compiler the GNU C compiler? 19747with_gcc=$GCC_GCJ 19748 19749# An ERE matcher. 19750EGREP=$lt_EGREP 19751 19752# The linker used to build libraries. 19753LD=$lt_LD_GCJ 19754 19755# Whether we need hard or soft links. 19756LN_S=$lt_LN_S 19757 19758# A BSD-compatible nm program. 19759NM=$lt_NM 19760 19761# A symbol stripping program 19762STRIP=$lt_STRIP 19763 19764# Used to examine libraries when file_magic_cmd begins "file" 19765MAGIC_CMD=$MAGIC_CMD 19766 19767# Used on cygwin: DLL creation program. 19768DLLTOOL="$DLLTOOL" 19769 19770# Used on cygwin: object dumper. 19771OBJDUMP="$OBJDUMP" 19772 19773# Used on cygwin: assembler. 19774AS="$AS" 19775 19776# The name of the directory that contains temporary libtool files. 19777objdir=$objdir 19778 19779# How to create reloadable object files. 19780reload_flag=$lt_reload_flag 19781reload_cmds=$lt_reload_cmds 19782 19783# How to pass a linker flag through the compiler. 19784wl=$lt_lt_prog_compiler_wl_GCJ 19785 19786# Object file suffix (normally "o"). 19787objext="$ac_objext" 19788 19789# Old archive suffix (normally "a"). 19790libext="$libext" 19791 19792# Shared library suffix (normally ".so"). 19793shrext_cmds='$shrext_cmds' 19794 19795# Executable file suffix (normally ""). 19796exeext="$exeext" 19797 19798# Additional compiler flags for building library objects. 19799pic_flag=$lt_lt_prog_compiler_pic_GCJ 19800pic_mode=$pic_mode 19801 19802# What is the maximum length of a command? 19803max_cmd_len=$lt_cv_sys_max_cmd_len 19804 19805# Does compiler simultaneously support -c and -o options? 19806compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 19807 19808# Must we lock files when doing compilation? 19809need_locks=$lt_need_locks 19810 19811# Do we need the lib prefix for modules? 19812need_lib_prefix=$need_lib_prefix 19813 19814# Do we need a version for libraries? 19815need_version=$need_version 19816 19817# Whether dlopen is supported. 19818dlopen_support=$enable_dlopen 19819 19820# Whether dlopen of programs is supported. 19821dlopen_self=$enable_dlopen_self 19822 19823# Whether dlopen of statically linked programs is supported. 19824dlopen_self_static=$enable_dlopen_self_static 19825 19826# Compiler flag to prevent dynamic linking. 19827link_static_flag=$lt_lt_prog_compiler_static_GCJ 19828 19829# Compiler flag to turn off builtin functions. 19830no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 19831 19832# Compiler flag to allow reflexive dlopens. 19833export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 19834 19835# Compiler flag to generate shared objects directly from archives. 19836whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 19837 19838# Compiler flag to generate thread-safe objects. 19839thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 19840 19841# Library versioning type. 19842version_type=$version_type 19843 19844# Format of library name prefix. 19845libname_spec=$lt_libname_spec 19846 19847# List of archive names. First name is the real one, the rest are links. 19848# The last name is the one that the linker finds with -lNAME. 19849library_names_spec=$lt_library_names_spec 19850 19851# The coded name of the library, if different from the real name. 19852soname_spec=$lt_soname_spec 19853 19854# Commands used to build and install an old-style archive. 19855RANLIB=$lt_RANLIB 19856old_archive_cmds=$lt_old_archive_cmds_GCJ 19857old_postinstall_cmds=$lt_old_postinstall_cmds 19858old_postuninstall_cmds=$lt_old_postuninstall_cmds 19859 19860# Create an old-style archive from a shared archive. 19861old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 19862 19863# Create a temporary old-style archive to link instead of a shared archive. 19864old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 19865 19866# Commands used to build and install a shared archive. 19867archive_cmds=$lt_archive_cmds_GCJ 19868archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 19869postinstall_cmds=$lt_postinstall_cmds 19870postuninstall_cmds=$lt_postuninstall_cmds 19871 19872# Commands used to build a loadable module (assumed same as above if empty) 19873module_cmds=$lt_module_cmds_GCJ 19874module_expsym_cmds=$lt_module_expsym_cmds_GCJ 19875 19876# Commands to strip libraries. 19877old_striplib=$lt_old_striplib 19878striplib=$lt_striplib 19879 19880# Dependencies to place before the objects being linked to create a 19881# shared library. 19882predep_objects=$lt_predep_objects_GCJ 19883 19884# Dependencies to place after the objects being linked to create a 19885# shared library. 19886postdep_objects=$lt_postdep_objects_GCJ 19887 19888# Dependencies to place before the objects being linked to create a 19889# shared library. 19890predeps=$lt_predeps_GCJ 19891 19892# Dependencies to place after the objects being linked to create a 19893# shared library. 19894postdeps=$lt_postdeps_GCJ 19895 19896# The library search path used internally by the compiler when linking 19897# a shared library. 19898compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 19899 19900# Method to check whether dependent libraries are shared objects. 19901deplibs_check_method=$lt_deplibs_check_method 19902 19903# Command to use when deplibs_check_method == file_magic. 19904file_magic_cmd=$lt_file_magic_cmd 19905 19906# Flag that allows shared libraries with undefined symbols to be built. 19907allow_undefined_flag=$lt_allow_undefined_flag_GCJ 19908 19909# Flag that forces no undefined symbols. 19910no_undefined_flag=$lt_no_undefined_flag_GCJ 19911 19912# Commands used to finish a libtool library installation in a directory. 19913finish_cmds=$lt_finish_cmds 19914 19915# Same as above, but a single script fragment to be evaled but not shown. 19916finish_eval=$lt_finish_eval 19917 19918# Take the output of nm and produce a listing of raw symbols and C names. 19919global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19920 19921# Transform the output of nm in a proper C declaration 19922global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19923 19924# Transform the output of nm in a C name address pair 19925global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19926 19927# This is the shared library runtime path variable. 19928runpath_var=$runpath_var 19929 19930# This is the shared library path variable. 19931shlibpath_var=$shlibpath_var 19932 19933# Is shlibpath searched before the hard-coded library search path? 19934shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19935 19936# How to hardcode a shared library path into an executable. 19937hardcode_action=$hardcode_action_GCJ 19938 19939# Whether we should hardcode library paths into libraries. 19940hardcode_into_libs=$hardcode_into_libs 19941 19942# Flag to hardcode \$libdir into a binary during linking. 19943# This must work even if \$libdir does not exist. 19944hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 19945 19946# If ld is used when linking, flag to hardcode \$libdir into 19947# a binary during linking. This must work even if \$libdir does 19948# not exist. 19949hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 19950 19951# Whether we need a single -rpath flag with a separated argument. 19952hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 19953 19954# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19955# resulting binary. 19956hardcode_direct=$hardcode_direct_GCJ 19957 19958# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19959# resulting binary. 19960hardcode_minus_L=$hardcode_minus_L_GCJ 19961 19962# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19963# the resulting binary. 19964hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 19965 19966# Set to yes if building a shared library automatically hardcodes DIR into the library 19967# and all subsequent libraries and executables linked against it. 19968hardcode_automatic=$hardcode_automatic_GCJ 19969 19970# Variables whose values should be saved in libtool wrapper scripts and 19971# restored at relink time. 19972variables_saved_for_relink="$variables_saved_for_relink" 19973 19974# Whether libtool must link a program against all its dependency libraries. 19975link_all_deplibs=$link_all_deplibs_GCJ 19976 19977# Compile-time system search path for libraries 19978sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19979 19980# Run-time system search path for libraries 19981sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19982 19983# Fix the shell variable \$srcfile for the compiler. 19984fix_srcfile_path="$fix_srcfile_path_GCJ" 19985 19986# Set to yes if exported symbols are required. 19987always_export_symbols=$always_export_symbols_GCJ 19988 19989# The commands to list exported symbols. 19990export_symbols_cmds=$lt_export_symbols_cmds_GCJ 19991 19992# The commands to extract the exported symbol list from a shared archive. 19993extract_expsyms_cmds=$lt_extract_expsyms_cmds 19994 19995# Symbols that should not be listed in the preloaded symbols. 19996exclude_expsyms=$lt_exclude_expsyms_GCJ 19997 19998# Symbols that must always be exported. 19999include_expsyms=$lt_include_expsyms_GCJ 20000 20001# ### END LIBTOOL TAG CONFIG: $tagname 20002 20003__EOF__ 20004 20005 20006else 20007 # If there is no Makefile yet, we rely on a make rule to execute 20008 # `config.status --recheck' to rerun these tests and create the 20009 # libtool script then. 20010 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 20011 if test -f "$ltmain_in"; then 20012 test -f Makefile && make "$ltmain" 20013 fi 20014fi 20015 20016 20017ac_ext=c 20018ac_cpp='$CPP $CPPFLAGS' 20019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20021ac_compiler_gnu=$ac_cv_c_compiler_gnu 20022 20023CC="$lt_save_CC" 20024 20025 else 20026 tagname="" 20027 fi 20028 ;; 20029 20030 RC) 20031 20032 20033 20034# Source file extension for RC test sources. 20035ac_ext=rc 20036 20037# Object file extension for compiled RC test sources. 20038objext=o 20039objext_RC=$objext 20040 20041# Code to be used in simple compile tests 20042lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 20043 20044# Code to be used in simple link tests 20045lt_simple_link_test_code="$lt_simple_compile_test_code" 20046 20047# ltmain only uses $CC for tagged configurations so make sure $CC is set. 20048 20049# If no C compiler was specified, use CC. 20050LTCC=${LTCC-"$CC"} 20051 20052# If no C compiler flags were specified, use CFLAGS. 20053LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 20054 20055# Allow CC to be a program name with arguments. 20056compiler=$CC 20057 20058 20059# save warnings/boilerplate of simple test code 20060ac_outfile=conftest.$ac_objext 20061printf "$lt_simple_compile_test_code" >conftest.$ac_ext 20062eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 20063_lt_compiler_boilerplate=`cat conftest.err` 20064$rm conftest* 20065 20066ac_outfile=conftest.$ac_objext 20067printf "$lt_simple_link_test_code" >conftest.$ac_ext 20068eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 20069_lt_linker_boilerplate=`cat conftest.err` 20070$rm conftest* 20071 20072 20073# Allow CC to be a program name with arguments. 20074lt_save_CC="$CC" 20075CC=${RC-"windres"} 20076compiler=$CC 20077compiler_RC=$CC 20078for cc_temp in $compiler""; do 20079 case $cc_temp in 20080 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 20081 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 20082 \-*) ;; 20083 *) break;; 20084 esac 20085done 20086cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 20087 20088lt_cv_prog_compiler_c_o_RC=yes 20089 20090# The else clause should only fire when bootstrapping the 20091# libtool distribution, otherwise you forgot to ship ltmain.sh 20092# with your package, and you will get complaints that there are 20093# no rules to generate ltmain.sh. 20094if test -f "$ltmain"; then 20095 # See if we are running on zsh, and set the options which allow our commands through 20096 # without removal of \ escapes. 20097 if test -n "${ZSH_VERSION+set}" ; then 20098 setopt NO_GLOB_SUBST 20099 fi 20100 # Now quote all the things that may contain metacharacters while being 20101 # careful not to overquote the AC_SUBSTed values. We take copies of the 20102 # variables and quote the copies for generation of the libtool script. 20103 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 20104 SED SHELL STRIP \ 20105 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 20106 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 20107 deplibs_check_method reload_flag reload_cmds need_locks \ 20108 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 20109 lt_cv_sys_global_symbol_to_c_name_address \ 20110 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 20111 old_postinstall_cmds old_postuninstall_cmds \ 20112 compiler_RC \ 20113 CC_RC \ 20114 LD_RC \ 20115 lt_prog_compiler_wl_RC \ 20116 lt_prog_compiler_pic_RC \ 20117 lt_prog_compiler_static_RC \ 20118 lt_prog_compiler_no_builtin_flag_RC \ 20119 export_dynamic_flag_spec_RC \ 20120 thread_safe_flag_spec_RC \ 20121 whole_archive_flag_spec_RC \ 20122 enable_shared_with_static_runtimes_RC \ 20123 old_archive_cmds_RC \ 20124 old_archive_from_new_cmds_RC \ 20125 predep_objects_RC \ 20126 postdep_objects_RC \ 20127 predeps_RC \ 20128 postdeps_RC \ 20129 compiler_lib_search_path_RC \ 20130 archive_cmds_RC \ 20131 archive_expsym_cmds_RC \ 20132 postinstall_cmds_RC \ 20133 postuninstall_cmds_RC \ 20134 old_archive_from_expsyms_cmds_RC \ 20135 allow_undefined_flag_RC \ 20136 no_undefined_flag_RC \ 20137 export_symbols_cmds_RC \ 20138 hardcode_libdir_flag_spec_RC \ 20139 hardcode_libdir_flag_spec_ld_RC \ 20140 hardcode_libdir_separator_RC \ 20141 hardcode_automatic_RC \ 20142 module_cmds_RC \ 20143 module_expsym_cmds_RC \ 20144 lt_cv_prog_compiler_c_o_RC \ 20145 exclude_expsyms_RC \ 20146 include_expsyms_RC; do 20147 20148 case $var in 20149 old_archive_cmds_RC | \ 20150 old_archive_from_new_cmds_RC | \ 20151 archive_cmds_RC | \ 20152 archive_expsym_cmds_RC | \ 20153 module_cmds_RC | \ 20154 module_expsym_cmds_RC | \ 20155 old_archive_from_expsyms_cmds_RC | \ 20156 export_symbols_cmds_RC | \ 20157 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 20158 postinstall_cmds | postuninstall_cmds | \ 20159 old_postinstall_cmds | old_postuninstall_cmds | \ 20160 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 20161 # Double-quote double-evaled strings. 20162 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 20163 ;; 20164 *) 20165 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 20166 ;; 20167 esac 20168 done 20169 20170 case $lt_echo in 20171 *'\$0 --fallback-echo"') 20172 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 20173 ;; 20174 esac 20175 20176cfgfile="$ofile" 20177 20178 cat <<__EOF__ >> "$cfgfile" 20179# ### BEGIN LIBTOOL TAG CONFIG: $tagname 20180 20181# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20182 20183# Shell to use when invoking shell scripts. 20184SHELL=$lt_SHELL 20185 20186# Whether or not to build shared libraries. 20187build_libtool_libs=$enable_shared 20188 20189# Whether or not to build static libraries. 20190build_old_libs=$enable_static 20191 20192# Whether or not to add -lc for building shared libraries. 20193build_libtool_need_lc=$archive_cmds_need_lc_RC 20194 20195# Whether or not to disallow shared libs when runtime libs are static 20196allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 20197 20198# Whether or not to optimize for fast installation. 20199fast_install=$enable_fast_install 20200 20201# The host system. 20202host_alias=$host_alias 20203host=$host 20204host_os=$host_os 20205 20206# The build system. 20207build_alias=$build_alias 20208build=$build 20209build_os=$build_os 20210 20211# An echo program that does not interpret backslashes. 20212echo=$lt_echo 20213 20214# The archiver. 20215AR=$lt_AR 20216AR_FLAGS=$lt_AR_FLAGS 20217 20218# A C compiler. 20219LTCC=$lt_LTCC 20220 20221# LTCC compiler flags. 20222LTCFLAGS=$lt_LTCFLAGS 20223 20224# A language-specific compiler. 20225CC=$lt_compiler_RC 20226 20227# Is the compiler the GNU C compiler? 20228with_gcc=$GCC_RC 20229 20230# An ERE matcher. 20231EGREP=$lt_EGREP 20232 20233# The linker used to build libraries. 20234LD=$lt_LD_RC 20235 20236# Whether we need hard or soft links. 20237LN_S=$lt_LN_S 20238 20239# A BSD-compatible nm program. 20240NM=$lt_NM 20241 20242# A symbol stripping program 20243STRIP=$lt_STRIP 20244 20245# Used to examine libraries when file_magic_cmd begins "file" 20246MAGIC_CMD=$MAGIC_CMD 20247 20248# Used on cygwin: DLL creation program. 20249DLLTOOL="$DLLTOOL" 20250 20251# Used on cygwin: object dumper. 20252OBJDUMP="$OBJDUMP" 20253 20254# Used on cygwin: assembler. 20255AS="$AS" 20256 20257# The name of the directory that contains temporary libtool files. 20258objdir=$objdir 20259 20260# How to create reloadable object files. 20261reload_flag=$lt_reload_flag 20262reload_cmds=$lt_reload_cmds 20263 20264# How to pass a linker flag through the compiler. 20265wl=$lt_lt_prog_compiler_wl_RC 20266 20267# Object file suffix (normally "o"). 20268objext="$ac_objext" 20269 20270# Old archive suffix (normally "a"). 20271libext="$libext" 20272 20273# Shared library suffix (normally ".so"). 20274shrext_cmds='$shrext_cmds' 20275 20276# Executable file suffix (normally ""). 20277exeext="$exeext" 20278 20279# Additional compiler flags for building library objects. 20280pic_flag=$lt_lt_prog_compiler_pic_RC 20281pic_mode=$pic_mode 20282 20283# What is the maximum length of a command? 20284max_cmd_len=$lt_cv_sys_max_cmd_len 20285 20286# Does compiler simultaneously support -c and -o options? 20287compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 20288 20289# Must we lock files when doing compilation? 20290need_locks=$lt_need_locks 20291 20292# Do we need the lib prefix for modules? 20293need_lib_prefix=$need_lib_prefix 20294 20295# Do we need a version for libraries? 20296need_version=$need_version 20297 20298# Whether dlopen is supported. 20299dlopen_support=$enable_dlopen 20300 20301# Whether dlopen of programs is supported. 20302dlopen_self=$enable_dlopen_self 20303 20304# Whether dlopen of statically linked programs is supported. 20305dlopen_self_static=$enable_dlopen_self_static 20306 20307# Compiler flag to prevent dynamic linking. 20308link_static_flag=$lt_lt_prog_compiler_static_RC 20309 20310# Compiler flag to turn off builtin functions. 20311no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 20312 20313# Compiler flag to allow reflexive dlopens. 20314export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 20315 20316# Compiler flag to generate shared objects directly from archives. 20317whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 20318 20319# Compiler flag to generate thread-safe objects. 20320thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 20321 20322# Library versioning type. 20323version_type=$version_type 20324 20325# Format of library name prefix. 20326libname_spec=$lt_libname_spec 20327 20328# List of archive names. First name is the real one, the rest are links. 20329# The last name is the one that the linker finds with -lNAME. 20330library_names_spec=$lt_library_names_spec 20331 20332# The coded name of the library, if different from the real name. 20333soname_spec=$lt_soname_spec 20334 20335# Commands used to build and install an old-style archive. 20336RANLIB=$lt_RANLIB 20337old_archive_cmds=$lt_old_archive_cmds_RC 20338old_postinstall_cmds=$lt_old_postinstall_cmds 20339old_postuninstall_cmds=$lt_old_postuninstall_cmds 20340 20341# Create an old-style archive from a shared archive. 20342old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 20343 20344# Create a temporary old-style archive to link instead of a shared archive. 20345old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 20346 20347# Commands used to build and install a shared archive. 20348archive_cmds=$lt_archive_cmds_RC 20349archive_expsym_cmds=$lt_archive_expsym_cmds_RC 20350postinstall_cmds=$lt_postinstall_cmds 20351postuninstall_cmds=$lt_postuninstall_cmds 20352 20353# Commands used to build a loadable module (assumed same as above if empty) 20354module_cmds=$lt_module_cmds_RC 20355module_expsym_cmds=$lt_module_expsym_cmds_RC 20356 20357# Commands to strip libraries. 20358old_striplib=$lt_old_striplib 20359striplib=$lt_striplib 20360 20361# Dependencies to place before the objects being linked to create a 20362# shared library. 20363predep_objects=$lt_predep_objects_RC 20364 20365# Dependencies to place after the objects being linked to create a 20366# shared library. 20367postdep_objects=$lt_postdep_objects_RC 20368 20369# Dependencies to place before the objects being linked to create a 20370# shared library. 20371predeps=$lt_predeps_RC 20372 20373# Dependencies to place after the objects being linked to create a 20374# shared library. 20375postdeps=$lt_postdeps_RC 20376 20377# The library search path used internally by the compiler when linking 20378# a shared library. 20379compiler_lib_search_path=$lt_compiler_lib_search_path_RC 20380 20381# Method to check whether dependent libraries are shared objects. 20382deplibs_check_method=$lt_deplibs_check_method 20383 20384# Command to use when deplibs_check_method == file_magic. 20385file_magic_cmd=$lt_file_magic_cmd 20386 20387# Flag that allows shared libraries with undefined symbols to be built. 20388allow_undefined_flag=$lt_allow_undefined_flag_RC 20389 20390# Flag that forces no undefined symbols. 20391no_undefined_flag=$lt_no_undefined_flag_RC 20392 20393# Commands used to finish a libtool library installation in a directory. 20394finish_cmds=$lt_finish_cmds 20395 20396# Same as above, but a single script fragment to be evaled but not shown. 20397finish_eval=$lt_finish_eval 20398 20399# Take the output of nm and produce a listing of raw symbols and C names. 20400global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20401 20402# Transform the output of nm in a proper C declaration 20403global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20404 20405# Transform the output of nm in a C name address pair 20406global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20407 20408# This is the shared library runtime path variable. 20409runpath_var=$runpath_var 20410 20411# This is the shared library path variable. 20412shlibpath_var=$shlibpath_var 20413 20414# Is shlibpath searched before the hard-coded library search path? 20415shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20416 20417# How to hardcode a shared library path into an executable. 20418hardcode_action=$hardcode_action_RC 20419 20420# Whether we should hardcode library paths into libraries. 20421hardcode_into_libs=$hardcode_into_libs 20422 20423# Flag to hardcode \$libdir into a binary during linking. 20424# This must work even if \$libdir does not exist. 20425hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 20426 20427# If ld is used when linking, flag to hardcode \$libdir into 20428# a binary during linking. This must work even if \$libdir does 20429# not exist. 20430hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 20431 20432# Whether we need a single -rpath flag with a separated argument. 20433hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 20434 20435# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 20436# resulting binary. 20437hardcode_direct=$hardcode_direct_RC 20438 20439# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 20440# resulting binary. 20441hardcode_minus_L=$hardcode_minus_L_RC 20442 20443# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 20444# the resulting binary. 20445hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 20446 20447# Set to yes if building a shared library automatically hardcodes DIR into the library 20448# and all subsequent libraries and executables linked against it. 20449hardcode_automatic=$hardcode_automatic_RC 20450 20451# Variables whose values should be saved in libtool wrapper scripts and 20452# restored at relink time. 20453variables_saved_for_relink="$variables_saved_for_relink" 20454 20455# Whether libtool must link a program against all its dependency libraries. 20456link_all_deplibs=$link_all_deplibs_RC 20457 20458# Compile-time system search path for libraries 20459sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20460 20461# Run-time system search path for libraries 20462sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 20463 20464# Fix the shell variable \$srcfile for the compiler. 20465fix_srcfile_path="$fix_srcfile_path_RC" 20466 20467# Set to yes if exported symbols are required. 20468always_export_symbols=$always_export_symbols_RC 20469 20470# The commands to list exported symbols. 20471export_symbols_cmds=$lt_export_symbols_cmds_RC 20472 20473# The commands to extract the exported symbol list from a shared archive. 20474extract_expsyms_cmds=$lt_extract_expsyms_cmds 20475 20476# Symbols that should not be listed in the preloaded symbols. 20477exclude_expsyms=$lt_exclude_expsyms_RC 20478 20479# Symbols that must always be exported. 20480include_expsyms=$lt_include_expsyms_RC 20481 20482# ### END LIBTOOL TAG CONFIG: $tagname 20483 20484__EOF__ 20485 20486 20487else 20488 # If there is no Makefile yet, we rely on a make rule to execute 20489 # `config.status --recheck' to rerun these tests and create the 20490 # libtool script then. 20491 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 20492 if test -f "$ltmain_in"; then 20493 test -f Makefile && make "$ltmain" 20494 fi 20495fi 20496 20497 20498ac_ext=c 20499ac_cpp='$CPP $CPPFLAGS' 20500ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20501ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20502ac_compiler_gnu=$ac_cv_c_compiler_gnu 20503 20504CC="$lt_save_CC" 20505 20506 ;; 20507 20508 *) 20509 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 20510echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 20511 { (exit 1); exit 1; }; } 20512 ;; 20513 esac 20514 20515 # Append the new tag name to the list of available tags. 20516 if test -n "$tagname" ; then 20517 available_tags="$available_tags $tagname" 20518 fi 20519 fi 20520 done 20521 IFS="$lt_save_ifs" 20522 20523 # Now substitute the updated list of available tags. 20524 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 20525 mv "${ofile}T" "$ofile" 20526 chmod +x "$ofile" 20527 else 20528 rm -f "${ofile}T" 20529 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 20530echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 20531 { (exit 1); exit 1; }; } 20532 fi 20533fi 20534 20535 20536 20537# This can be used to rebuild libtool when needed 20538LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 20539 20540# Always use our own libtool. 20541LIBTOOL='$(SHELL) $(top_builddir)/libtool' 20542 20543# Prevent multiple expansion 20544 20545 20546 20547 20548 20549 20550 20551 20552 20553 20554 20555# No longer needed now that CPPFLAGS is correctly set -- lh, 061214 -- 20556 # AC_REQUIRE([AC_COIN_DLFCN_H]) 20557 20558# NEW: If libtool exists in the directory higher up, we use that one 20559# instead of creating a new one 20560 20561# It turns out that the code for AC_PROG_LIBTOOL is somehow AC_REQUIRED 20562# out in front of this macro body. You'll notice that LIBTOOL is already 20563# defined here. We'll have to count on this macro not being called if libtool 20564# already exists, or at least move the libtool fixes outside the conditional. 20565# AC_MSG_NOTICE([Entering coin_prog_libtool, LIBTOOL = "$LIBTOOL".]) 20566# This test is therefore removed. -- lh, 061214 -- 20567# if test "x$LIBTOOL" = x; then 20568 20569# AC_MSG_NOTICE([Calling PROG_LIBTOOL.]) 20570 20571 20572 20573 20574 20575 20576 20577 20578 20579# AC_MSG_NOTICE([Finished PROG_LIBTOOL.]) 20580 20581 20582 20583 { echo "$as_me:$LINENO: Build is \"$build\"." >&5 20584echo "$as_me: Build is \"$build\"." >&6;} 20585 mydos2unix='| dos2unix' 20586 case $build in 20587 *-mingw*) 20588 CYGPATH_W=echo 20589 ;; 20590 esac 20591 20592 case $build in 20593 # Here we need to check if -m32 is specified. If so, we need to correct 20594 # sys_lib_search_path_spec 20595 *-cygwin* | *-mingw*) 20596 case "$CXX" in 20597 clang* ) 20598 # we assume that libtool patches for CLANG are the same as for GNU compiler - correct??? 20599 { echo "$as_me:$LINENO: Applying patches to libtool for CLANG compiler" >&5 20600echo "$as_me: Applying patches to libtool for CLANG compiler" >&6;} 20601 sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \ 20602 -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \ 20603 -e 's|libext="lib"|libext="a"|' \ 20604 libtool > conftest.bla 20605 ;; 20606 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 20607 { echo "$as_me:$LINENO: Applying patches to libtool for cl compiler" >&5 20608echo "$as_me: Applying patches to libtool for cl compiler" >&6;} 20609 sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \ 20610 -e 's|fix_srcfile_path=\"\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \ 20611 -e 's%compile_deplibs=\"\$dir/\$old_library \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$old_library | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \ 20612 -e 's%compile_deplibs=\"\$dir/\$linklib \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$linklib | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \ 20613 -e 's%lib /OUT:%lib -OUT:%' \ 20614 -e "s%cygpath -w%$CYGPATH_W%" \ 20615 -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%' \ 20616 -e 's%$AR t "$f_ex_an_ar_oldlib"%lib -nologo -list \$('"$CYGPATH_W \$1"') '"$mydos2unix"'%' \ 20617 -e 's%f_ex_an_ar_oldlib="\($?*1*\)"%f_ex_an_ar_oldlib='\`"$CYGPATH_W"' \1`%' \ 20618 -e 's%^archive_cmds=.*%archive_cmds="\\$CC -o \\$lib \\$libobjs \\$compiler_flags \\\\\\`echo \\\\\\"\\$deplibs\\\\\\" | \\$SED -e '"\'"'s/ -lc\\$//'"\'"'\\\\\\` -link -dll~linknames="%' \ 20619 -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"%' \ 20620 libtool > conftest.bla 20621 ;; 20622 *) 20623 { echo "$as_me:$LINENO: Applying patches to libtool for GNU compiler" >&5 20624echo "$as_me: Applying patches to libtool for GNU compiler" >&6;} 20625 sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \ 20626 -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \ 20627 -e 's|libext="lib"|libext="a"|' \ 20628 libtool > conftest.bla 20629 ;; 20630 esac 20631 mv conftest.bla libtool 20632 chmod 755 libtool 20633 20634 ;; 20635 *x86_64-*) 20636 if test "$GCC" = yes && (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm32' >& /dev/null); then 20637 { echo "$as_me:$LINENO: Applying patches to libtool for 32bit compilation" >&5 20638echo "$as_me: Applying patches to libtool for 32bit compilation" >&6;} 20639 sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="/lib /usr/lib"|' libtool > conftest.bla 20640 mv conftest.bla libtool 20641 chmod 755 libtool 20642 fi 20643 ;; 20644 20645 *-solaris*) 20646 if test "$GCC" = yes && \ 20647 (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm64' >/dev/null 2>&1) ; then 20648 hdwisa=`isainfo | sed -e 's/\([^ ]*\) .*$/\1/'` 20649 if `$EGREP 'sys_lib_search_path_spec=' libtool | $EGREP -v $hdwisa >/dev/null 2>&1` ; then 20650 { echo "$as_me:$LINENO: Applying patches to libtool for 64-bit GCC compilation" >&5 20651echo "$as_me: Applying patches to libtool for 64-bit GCC compilation" >&6;} 20652 fixlibtmp=`$CC -m64 -print-search-dirs | $EGREP '^libraries:'` 20653 fixlibtmp=`echo $fixlibtmp | sed -e 's/libraries: =//' -e 's/:/ /g'` 20654 if `echo "$fixlibtmp" | $EGREP -v $hdwisa >/dev/null 2>&1` ; then 20655 # AC_MSG_NOTICE(Compensating for broken gcc) 20656 for lib in $fixlibtmp ; do 20657 if test -d "${lib}${hdwisa}" ; then 20658 syslibpath64="$syslibpath64 ${lib}${hdwisa}/" 20659 fi 20660 done 20661 syslibpath64="${syslibpath64} ${fixlibtmp}" 20662 else 20663 syslibpath64="$fixlibtmp" 20664 fi 20665 sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="'"$syslibpath64"'"|' libtool > conftest.bla 20666 mv conftest.bla libtool 20667 chmod 755 libtool 20668 fi 20669 # AC_MSG_NOTICE(Result is ) 20670 # $EGREP 'sys_lib_search_path_spec=' libtool 20671 fi 20672 ;; 20673 # Cygwin. Ah, cygwin. Too big and ugly to inline; see the macro. 20674 *-darwin*) 20675 { echo "$as_me:$LINENO: Applying patches to libtool for Darwin" >&5 20676echo "$as_me: Applying patches to libtool for Darwin" >&6;} 20677 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"/' \ 20678 -e 's/ -dynamiclib / -dynamiclib -single_module /g' \ 20679 libtool > conftest.bla 20680 20681 mv conftest.bla libtool 20682 chmod 755 libtool 20683 ;; 20684 esac 20685# This fi matches the commented `if test "x$LIBTOOL" = x;' up at the head of 20686# the macro. -- lh, 061214 -- 20687# fi 20688 20689# AC_MSG_NOTICE([End libtool initialisation.]) 20690 20691# AC_MSG_NOTICE([Finished COIN_PROG_LIBTOOL.]) 20692 # set RPATH_FLAGS to the compiler link flags required to hardcode location 20693 # of the shared objects 20694 RPATH_FLAGS= 20695 20696if test $enable_shared = yes; then 20697 case $build in 20698 *-linux-*) 20699 if test "$GXX" = "yes"; then 20700 RPATH_FLAGS= 20701 for dir in $abs_lib_dir; do 20702 RPATH_FLAGS="$RPATH_FLAGS -Wl,--rpath -Wl,$dir" 20703 done 20704 fi ;; 20705 *-darwin*) 20706 RPATH_FLAGS=nothing ;; 20707 *-ibm-*) 20708 case "$CXX" in 20709 xlC* | */xlC* | mpxlC* | */mpxlC*) 20710 RPATH_FLAGS=nothing ;; 20711 esac ;; 20712 *-hp-*) 20713 RPATH_FLAGS=nothing ;; 20714 *-mingw32) 20715 RPATH_FLAGS=nothing ;; 20716 *-*-solaris*) 20717 RPATH_FLAGS= 20718 for dir in $abs_lib_dir; do 20719 RPATH_FLAGS="$RPATH_FLAGS -R$dir" 20720 done 20721 esac 20722 20723 if test "$RPATH_FLAGS" = ""; then 20724 { 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 20725echo "$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;} 20726 fi 20727 if test "$RPATH_FLAGS" = "nothing"; then 20728 RPATH_FLAGS= 20729 fi 20730fi 20731 20732 20733 20734 20735else 20736 20737 { echo "$as_me:$LINENO: Using libtool script in directory $coin_config_dir" >&5 20738echo "$as_me: Using libtool script in directory $coin_config_dir" >&6;} 20739 # get all missing information from the config.log file 20740 20741 # output variables and defines 20742 as_save_IFS=$IFS 20743 IFS=' 20744' 20745 for oneline in `cat $coin_config_dir/config.status`; do 20746 case "$oneline" in 20747 # First some automake conditionals 20748 s,@am__fastdep* | s,@AR@* | s,@CPP@* | s,@CPPFLAGS@* | s,@CXXCPP@* | \ 20749 s,@RANLIB@* | s,@STRIP@* | s,@ac_ct_AR@* | s,@ac_ct_RANLIB@* | \ 20750 s,@ac_ct_STRIP@* | s,@host* | s,@LN_S@* | s,@RPATH_FLAGS@* | \ 20751 s,@ac_c_preproc_warn_flag@* | s,@ac_cxx_preproc_warn_flag@* ) 20752 command=`echo $oneline | sed -e 's/^s,@//' -e 's/@,/="/' -e 's/,;t t/"/'` 20753# echo "$command" 20754 eval "$command" 20755 ;; 20756 s,@DEFS@* ) 20757 command=`echo $oneline | sed -e 's/^s,@DEFS@,/defsline="/' -e 's/,;t t/"/'` 20758# echo "$command" 20759 eval "$command" 20760 ;; 20761 esac 20762 done 20763 IFS=$as_save_IFS 20764 20765 # And some defines (assuming here that the packages base dir 20766 # doesn't have a config.h file 20767 for word in $defsline; do 20768# echo word $word 20769 case $word in 20770 -DHAVE_[A-Z_]*_H=1 | -DSTDC_HEADERS=1 ) 20771 i=`echo $word | sed -e 's/-D/#define /' -e 's/=/ /'` 20772# echo dd $i 20773 echo $i >>confdefs.h 20774 ;; 20775 esac 20776 done 20777fi 20778 20779# AC_MSG_NOTICE([End of INIT_AUTO_TOOLS.]) 20780 20781# Check whether --enable-dependency-linking or --disable-dependency-linking was given. 20782if test "${enable_dependency_linking+set}" = set; then 20783 enableval="$enable_dependency_linking" 20784 dependency_linking="$enableval" 20785else 20786 dependency_linking=auto 20787fi; 20788 20789if test "$dependency_linking" = auto; then 20790 # On Cygwin and AIX, building DLLs doesn't work 20791 dependency_linking=no 20792 if test x"$coin_disable_shared" = xno; then 20793 case $build in 20794 *-cygwin* | *-mingw*) 20795 case "$CC" in 20796 clang* ) 20797 dependency_linking=yes 20798 ;; 20799 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 20800 dependency_linking=no 20801 ;; 20802 *gcc*) 20803 dependency_linking=yes 20804 ;; 20805 *) 20806 dependency_linking=yes 20807 ;; 20808 esac 20809 ;; 20810 *) 20811 dependency_linking=yes 20812 ;; 20813 esac 20814 fi 20815fi 20816 20817if test "$dependency_linking" = yes ; 20818then 20819 LT_LDFLAGS="-no-undefined" 20820else 20821 LT_LDFLAGS= 20822fi 20823 20824 20825 20826if test "$dependency_linking" = yes; then 20827 DEPENDENCY_LINKING_TRUE= 20828 DEPENDENCY_LINKING_FALSE='#' 20829else 20830 DEPENDENCY_LINKING_TRUE='#' 20831 DEPENDENCY_LINKING_FALSE= 20832fi 20833 20834 20835# Check if we want to set the library version 20836echo "$as_me:$LINENO: checking if library version is set" >&5 20837echo $ECHO_N "checking if library version is set... $ECHO_C" >&6 20838if test x"$coin_libversion" != x; then 20839 LT_LDFLAGS="$LT_LDFLAGS -version-info $coin_libversion" 20840 echo "$as_me:$LINENO: result: $coin_libversion" >&5 20841echo "${ECHO_T}$coin_libversion" >&6 20842else 20843 echo "$as_me:$LINENO: result: no" >&5 20844echo "${ECHO_T}no" >&6 20845fi 20846 20847 20848 20849#END 20850} 20851# AC_MSG_NOTICE([Finished INIT_AUTO_TOOLS from CREATE_LIBTOOL.]) 20852 20853 20854############################################################################# 20855# Check which subprojects are there # 20856############################################################################# 20857 20858 20859echo "$as_me:$LINENO: checking whether source of project CoinUtils is available and should be compiled" >&5 20860echo $ECHO_N "checking whether source of project CoinUtils is available and should be compiled... $ECHO_C" >&6 20861 20862coin_has_coinutils=notGiven 20863coin_reason= 20864 20865# check if user wants to skip project in any case 20866 20867if test x"$COIN_SKIP_PROJECTS" != x; then 20868 for dir in $COIN_SKIP_PROJECTS; do 20869 if test $dir = "CoinUtils"; then 20870 coin_has_coinutils="no" 20871 coin_reason="CoinUtils has been specified in COIN_SKIP_PROJECTS" 20872 fi 20873 20874 done 20875fi 20876 20877if test "$coin_has_coinutils" != no; then 20878 20879# Check whether --with-m4_tolower(CoinUtils) or --without-m4_tolower(CoinUtils) was given. 20880if test "${with_coinutils+set}" = set; then 20881 withval="$with_coinutils" 20882 if test "$withval" = no ; then 20883 coin_has_coinutils="no" 20884 coin_reason="--without-coinutils has been specified" 20885 fi 20886 20887fi; 20888fi 20889 20890if test "$coin_has_coinutils" != no; then 20891 20892# Check whether --with-m4_tolower(CoinUtils)-lib or --without-m4_tolower(CoinUtils)-lib was given. 20893if test "${with_coinutils_lib+set}" = set; then 20894 withval="$with_coinutils_lib" 20895 if test "$withval" = no ; then 20896 coin_has_coinutils="no" 20897 coin_reason="--without-coinutils-lib has been specified" 20898 else 20899 coin_has_coinutils="no" 20900 coin_reason="--with-coinutils-lib has been specified" 20901 fi 20902fi; 20903fi 20904 20905if test "$coin_has_coinutils" != no; then 20906 20907# Check whether --with-m4_tolower(CoinUtils)-incdir or --without-m4_tolower(CoinUtils)-incdir was given. 20908if test "${with_coinutils_incdir+set}" = set; then 20909 withval="$with_coinutils_incdir" 20910 if test "$withval" = no ; then 20911 coin_has_coinutils="no" 20912 coin_reason="--without-coinutils-incdir has been specified" 20913 else 20914 coin_has_coinutils="no" 20915 coin_reason="--with-coinutils-incdir has been specified" 20916 fi 20917fi; 20918fi 20919 20920if test "$coin_has_coinutils" != no; then 20921 20922# Check whether --with-m4_tolower(CoinUtils)-datadir or --without-m4_tolower(CoinUtils)-datadir was given. 20923if test "${with_coinutils_datadir+set}" = set; then 20924 withval="$with_coinutils_datadir" 20925 if test "$withval" = no ; then 20926 coin_has_coinutils="no" 20927 coin_reason="--without-coinutils-datadir has been specified" 20928 else 20929 coin_has_coinutils="no" 20930 coin_reason="--with-coinutils-datadir has been specified" 20931 fi 20932fi; 20933fi 20934 20935 20936 20937 20938 20939# check if project is available in present directory 20940if test "$coin_has_coinutils" = notGiven; then 20941 coin_has_coinutils=no 20942 if test -d $srcdir/CoinUtils; then 20943 coin_reason="source in CoinUtils" 20944 # If a third argument is given, then we have to check if one one the files given in that third argument is present. 20945 # If none of the files in the third argument is available, then we consider the project directory as non-existing. 20946 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient. 20947 coin_has_coinutils="yes" 20948 20949 fi 20950fi 20951 20952if test -z "$coin_reason" ; then 20953 echo "$as_me:$LINENO: result: $coin_has_coinutils" >&5 20954echo "${ECHO_T}$coin_has_coinutils" >&6 20955else 20956 echo "$as_me:$LINENO: result: $coin_has_coinutils, $coin_reason" >&5 20957echo "${ECHO_T}$coin_has_coinutils, $coin_reason" >&6 20958fi 20959 20960if test "$coin_has_coinutils" = yes ; then 20961 if test -r $srcdir/CoinUtils/configure; then 20962 coin_subdirs="$coin_subdirs CoinUtils" 20963 20964 20965subdirs="$subdirs CoinUtils" 20966 20967 fi 20968fi 20969 20970# The following are required for Alps examples 20971 20972echo "$as_me:$LINENO: checking whether source of project Blas is available and should be compiled" >&5 20973echo $ECHO_N "checking whether source of project Blas is available and should be compiled... $ECHO_C" >&6 20974 20975coin_has_blas=notGiven 20976coin_reason= 20977 20978# check if user wants to skip project in any case 20979 20980if test x"$COIN_SKIP_PROJECTS" != x; then 20981 for dir in $COIN_SKIP_PROJECTS; do 20982 if test $dir = "Blas"; then 20983 coin_has_blas="no" 20984 coin_reason="Blas has been specified in COIN_SKIP_PROJECTS" 20985 fi 20986 20987 if test $dir = "ThirdParty/Blas"; then 20988 coin_has_blas="no" 20989 coin_reason="ThirdParty/Blas has been specified in COIN_SKIP_PROJECTS" 20990 fi 20991 done 20992fi 20993 20994if test "$coin_has_blas" != no; then 20995 20996# Check whether --with-m4_tolower(Blas) or --without-m4_tolower(Blas) was given. 20997if test "${with_blas+set}" = set; then 20998 withval="$with_blas" 20999 if test "$withval" = no ; then 21000 coin_has_blas="no" 21001 coin_reason="--without-blas has been specified" 21002 fi 21003 21004fi; 21005fi 21006 21007if test "$coin_has_blas" != no; then 21008 21009# Check whether --with-m4_tolower(Blas)-lib or --without-m4_tolower(Blas)-lib was given. 21010if test "${with_blas_lib+set}" = set; then 21011 withval="$with_blas_lib" 21012 if test "$withval" = no ; then 21013 coin_has_blas="no" 21014 coin_reason="--without-blas-lib has been specified" 21015 else 21016 coin_has_blas="no" 21017 coin_reason="--with-blas-lib has been specified" 21018 fi 21019fi; 21020fi 21021 21022if test "$coin_has_blas" != no; then 21023 21024# Check whether --with-m4_tolower(Blas)-incdir or --without-m4_tolower(Blas)-incdir was given. 21025if test "${with_blas_incdir+set}" = set; then 21026 withval="$with_blas_incdir" 21027 if test "$withval" = no ; then 21028 coin_has_blas="no" 21029 coin_reason="--without-blas-incdir has been specified" 21030 else 21031 coin_has_blas="no" 21032 coin_reason="--with-blas-incdir has been specified" 21033 fi 21034fi; 21035fi 21036 21037if test "$coin_has_blas" != no; then 21038 21039# Check whether --with-m4_tolower(Blas)-datadir or --without-m4_tolower(Blas)-datadir was given. 21040if test "${with_blas_datadir+set}" = set; then 21041 withval="$with_blas_datadir" 21042 if test "$withval" = no ; then 21043 coin_has_blas="no" 21044 coin_reason="--without-blas-datadir has been specified" 21045 else 21046 coin_has_blas="no" 21047 coin_reason="--with-blas-datadir has been specified" 21048 fi 21049fi; 21050fi 21051 21052 21053 if test $coin_has_blas != no; then 21054 #--with-blas can overwrite --with-blas-lib, and can be set to BUILD to enforce building blas 21055 21056# Check whether --with-blas or --without-blas was given. 21057if test "${with_blas+set}" = set; then 21058 withval="$with_blas" 21059 if test x"$withval" = "xno" ; then 21060 coin_has_blas="no" 21061 coin_reason="--without-blas has been specified" 21062 elif test x"$withval" != "xBUILD" ; then 21063 coin_has_blas="no" 21064 coin_reason="--with-blas has been specified" 21065 fi 21066fi; 21067 fi 21068 21069 21070 21071 21072# check if project is available in present directory 21073if test "$coin_has_blas" = notGiven; then 21074 coin_has_blas=no 21075 if test -d $srcdir/ThirdParty/Blas; then 21076 coin_reason="source in ThirdParty/Blas" 21077 # If a third argument is given, then we have to check if one one the files given in that third argument is present. 21078 # If none of the files in the third argument is available, then we consider the project directory as non-existing. 21079 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient. 21080 for i in $srcdir/ThirdParty/Blas/daxpy.f; do 21081 if test -r $i; then 21082 coin_has_blas="yes" 21083 else 21084 coin_has_blas="no" 21085 coin_reason="source file $i not available" 21086 break 21087 fi 21088 done 21089 21090 fi 21091fi 21092 21093if test -z "$coin_reason" ; then 21094 echo "$as_me:$LINENO: result: $coin_has_blas" >&5 21095echo "${ECHO_T}$coin_has_blas" >&6 21096else 21097 echo "$as_me:$LINENO: result: $coin_has_blas, $coin_reason" >&5 21098echo "${ECHO_T}$coin_has_blas, $coin_reason" >&6 21099fi 21100 21101if test "$coin_has_blas" = yes ; then 21102 if test -r $srcdir/ThirdParty/Blas/configure; then 21103 coin_subdirs="$coin_subdirs ThirdParty/Blas" 21104 21105 21106subdirs="$subdirs ThirdParty/Blas" 21107 21108 fi 21109fi 21110 21111 21112echo "$as_me:$LINENO: checking whether source of project Lapack is available and should be compiled" >&5 21113echo $ECHO_N "checking whether source of project Lapack is available and should be compiled... $ECHO_C" >&6 21114 21115coin_has_lapack=notGiven 21116coin_reason= 21117 21118# check if user wants to skip project in any case 21119 21120if test x"$COIN_SKIP_PROJECTS" != x; then 21121 for dir in $COIN_SKIP_PROJECTS; do 21122 if test $dir = "Lapack"; then 21123 coin_has_lapack="no" 21124 coin_reason="Lapack has been specified in COIN_SKIP_PROJECTS" 21125 fi 21126 21127 if test $dir = "ThirdParty/Lapack"; then 21128 coin_has_lapack="no" 21129 coin_reason="ThirdParty/Lapack has been specified in COIN_SKIP_PROJECTS" 21130 fi 21131 done 21132fi 21133 21134if test "$coin_has_lapack" != no; then 21135 21136# Check whether --with-m4_tolower(Lapack) or --without-m4_tolower(Lapack) was given. 21137if test "${with_lapack+set}" = set; then 21138 withval="$with_lapack" 21139 if test "$withval" = no ; then 21140 coin_has_lapack="no" 21141 coin_reason="--without-lapack has been specified" 21142 fi 21143 21144fi; 21145fi 21146 21147if test "$coin_has_lapack" != no; then 21148 21149# Check whether --with-m4_tolower(Lapack)-lib or --without-m4_tolower(Lapack)-lib was given. 21150if test "${with_lapack_lib+set}" = set; then 21151 withval="$with_lapack_lib" 21152 if test "$withval" = no ; then 21153 coin_has_lapack="no" 21154 coin_reason="--without-lapack-lib has been specified" 21155 else 21156 coin_has_lapack="no" 21157 coin_reason="--with-lapack-lib has been specified" 21158 fi 21159fi; 21160fi 21161 21162if test "$coin_has_lapack" != no; then 21163 21164# Check whether --with-m4_tolower(Lapack)-incdir or --without-m4_tolower(Lapack)-incdir was given. 21165if test "${with_lapack_incdir+set}" = set; then 21166 withval="$with_lapack_incdir" 21167 if test "$withval" = no ; then 21168 coin_has_lapack="no" 21169 coin_reason="--without-lapack-incdir has been specified" 21170 else 21171 coin_has_lapack="no" 21172 coin_reason="--with-lapack-incdir has been specified" 21173 fi 21174fi; 21175fi 21176 21177if test "$coin_has_lapack" != no; then 21178 21179# Check whether --with-m4_tolower(Lapack)-datadir or --without-m4_tolower(Lapack)-datadir was given. 21180if test "${with_lapack_datadir+set}" = set; then 21181 withval="$with_lapack_datadir" 21182 if test "$withval" = no ; then 21183 coin_has_lapack="no" 21184 coin_reason="--without-lapack-datadir has been specified" 21185 else 21186 coin_has_lapack="no" 21187 coin_reason="--with-lapack-datadir has been specified" 21188 fi 21189fi; 21190fi 21191 21192 21193 21194 21195 if test $coin_has_lapack != no; then 21196 #--with-lapack can overwrite --with-lapack-lib, and can be set to BUILD to enforce building lapack 21197 21198# Check whether --with-lapack or --without-lapack was given. 21199if test "${with_lapack+set}" = set; then 21200 withval="$with_lapack" 21201 if test x"$withval" = "xno" ; then 21202 coin_has_lapack="no" 21203 coin_reason="--without-lapack has been specified" 21204 elif test x"$withval" != "xBUILD" ; then 21205 coin_has_lapack="no" 21206 coin_reason="--with-lapack has been specified" 21207 fi 21208fi; 21209 fi 21210 21211 21212# check if project is available in present directory 21213if test "$coin_has_lapack" = notGiven; then 21214 coin_has_lapack=no 21215 if test -d $srcdir/ThirdParty/Lapack; then 21216 coin_reason="source in ThirdParty/Lapack" 21217 # If a third argument is given, then we have to check if one one the files given in that third argument is present. 21218 # If none of the files in the third argument is available, then we consider the project directory as non-existing. 21219 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient. 21220 for i in $srcdir/ThirdParty/Lapack/LAPACK/SRC/dlarf.f; do 21221 if test -r $i; then 21222 coin_has_lapack="yes" 21223 else 21224 coin_has_lapack="no" 21225 coin_reason="source file $i not available" 21226 break 21227 fi 21228 done 21229 21230 fi 21231fi 21232 21233if test -z "$coin_reason" ; then 21234 echo "$as_me:$LINENO: result: $coin_has_lapack" >&5 21235echo "${ECHO_T}$coin_has_lapack" >&6 21236else 21237 echo "$as_me:$LINENO: result: $coin_has_lapack, $coin_reason" >&5 21238echo "${ECHO_T}$coin_has_lapack, $coin_reason" >&6 21239fi 21240 21241if test "$coin_has_lapack" = yes ; then 21242 if test -r $srcdir/ThirdParty/Lapack/configure; then 21243 coin_subdirs="$coin_subdirs ThirdParty/Lapack" 21244 21245 21246subdirs="$subdirs ThirdParty/Lapack" 21247 21248 fi 21249fi 21250 21251 21252echo "$as_me:$LINENO: checking whether source of project Glpk is available and should be compiled" >&5 21253echo $ECHO_N "checking whether source of project Glpk is available and should be compiled... $ECHO_C" >&6 21254 21255coin_has_glpk=notGiven 21256coin_reason= 21257 21258# check if user wants to skip project in any case 21259 21260if test x"$COIN_SKIP_PROJECTS" != x; then 21261 for dir in $COIN_SKIP_PROJECTS; do 21262 if test $dir = "Glpk"; then 21263 coin_has_glpk="no" 21264 coin_reason="Glpk has been specified in COIN_SKIP_PROJECTS" 21265 fi 21266 21267 if test $dir = "ThirdParty/Glpk"; then 21268 coin_has_glpk="no" 21269 coin_reason="ThirdParty/Glpk has been specified in COIN_SKIP_PROJECTS" 21270 fi 21271 done 21272fi 21273 21274if test "$coin_has_glpk" != no; then 21275 21276# Check whether --with-m4_tolower(Glpk) or --without-m4_tolower(Glpk) was given. 21277if test "${with_glpk+set}" = set; then 21278 withval="$with_glpk" 21279 if test "$withval" = no ; then 21280 coin_has_glpk="no" 21281 coin_reason="--without-glpk has been specified" 21282 fi 21283 21284fi; 21285fi 21286 21287if test "$coin_has_glpk" != no; then 21288 21289# Check whether --with-m4_tolower(Glpk)-lib or --without-m4_tolower(Glpk)-lib was given. 21290if test "${with_glpk_lib+set}" = set; then 21291 withval="$with_glpk_lib" 21292 if test "$withval" = no ; then 21293 coin_has_glpk="no" 21294 coin_reason="--without-glpk-lib has been specified" 21295 else 21296 coin_has_glpk="no" 21297 coin_reason="--with-glpk-lib has been specified" 21298 fi 21299fi; 21300fi 21301 21302if test "$coin_has_glpk" != no; then 21303 21304# Check whether --with-m4_tolower(Glpk)-incdir or --without-m4_tolower(Glpk)-incdir was given. 21305if test "${with_glpk_incdir+set}" = set; then 21306 withval="$with_glpk_incdir" 21307 if test "$withval" = no ; then 21308 coin_has_glpk="no" 21309 coin_reason="--without-glpk-incdir has been specified" 21310 else 21311 coin_has_glpk="no" 21312 coin_reason="--with-glpk-incdir has been specified" 21313 fi 21314fi; 21315fi 21316 21317if test "$coin_has_glpk" != no; then 21318 21319# Check whether --with-m4_tolower(Glpk)-datadir or --without-m4_tolower(Glpk)-datadir was given. 21320if test "${with_glpk_datadir+set}" = set; then 21321 withval="$with_glpk_datadir" 21322 if test "$withval" = no ; then 21323 coin_has_glpk="no" 21324 coin_reason="--without-glpk-datadir has been specified" 21325 else 21326 coin_has_glpk="no" 21327 coin_reason="--with-glpk-datadir has been specified" 21328 fi 21329fi; 21330fi 21331 21332 21333 21334 21335 21336# check if project is available in present directory 21337if test "$coin_has_glpk" = notGiven; then 21338 coin_has_glpk=no 21339 if test -d $srcdir/ThirdParty/Glpk; then 21340 coin_reason="source in ThirdParty/Glpk" 21341 # If a third argument is given, then we have to check if one one the files given in that third argument is present. 21342 # If none of the files in the third argument is available, then we consider the project directory as non-existing. 21343 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient. 21344 for i in $srcdir/ThirdParty/Glpk/glpk/src/glplpx01.c; do 21345 if test -r $i; then 21346 coin_has_glpk="yes" 21347 else 21348 coin_has_glpk="no" 21349 coin_reason="source file $i not available" 21350 break 21351 fi 21352 done 21353 21354 fi 21355fi 21356 21357if test -z "$coin_reason" ; then 21358 echo "$as_me:$LINENO: result: $coin_has_glpk" >&5 21359echo "${ECHO_T}$coin_has_glpk" >&6 21360else 21361 echo "$as_me:$LINENO: result: $coin_has_glpk, $coin_reason" >&5 21362echo "${ECHO_T}$coin_has_glpk, $coin_reason" >&6 21363fi 21364 21365if test "$coin_has_glpk" = yes ; then 21366 if test -r $srcdir/ThirdParty/Glpk/configure; then 21367 coin_subdirs="$coin_subdirs ThirdParty/Glpk" 21368 21369 21370subdirs="$subdirs ThirdParty/Glpk" 21371 21372 fi 21373fi 21374 21375 21376echo "$as_me:$LINENO: checking whether source of project Sample is available and should be compiled" >&5 21377echo $ECHO_N "checking whether source of project Sample is available and should be compiled... $ECHO_C" >&6 21378 21379coin_has_sample=notGiven 21380coin_reason= 21381 21382# check if user wants to skip project in any case 21383 21384if test x"$COIN_SKIP_PROJECTS" != x; then 21385 for dir in $COIN_SKIP_PROJECTS; do 21386 if test $dir = "Sample"; then 21387 coin_has_sample="no" 21388 coin_reason="Sample has been specified in COIN_SKIP_PROJECTS" 21389 fi 21390 21391 if test $dir = "Data/Sample"; then 21392 coin_has_sample="no" 21393 coin_reason="Data/Sample has been specified in COIN_SKIP_PROJECTS" 21394 fi 21395 done 21396fi 21397 21398if test "$coin_has_sample" != no; then 21399 21400# Check whether --with-m4_tolower(Sample) or --without-m4_tolower(Sample) was given. 21401if test "${with_sample+set}" = set; then 21402 withval="$with_sample" 21403 if test "$withval" = no ; then 21404 coin_has_sample="no" 21405 coin_reason="--without-sample has been specified" 21406 fi 21407 21408fi; 21409fi 21410 21411if test "$coin_has_sample" != no; then 21412 21413# Check whether --with-m4_tolower(Sample)-lib or --without-m4_tolower(Sample)-lib was given. 21414if test "${with_sample_lib+set}" = set; then 21415 withval="$with_sample_lib" 21416 if test "$withval" = no ; then 21417 coin_has_sample="no" 21418 coin_reason="--without-sample-lib has been specified" 21419 else 21420 coin_has_sample="no" 21421 coin_reason="--with-sample-lib has been specified" 21422 fi 21423fi; 21424fi 21425 21426if test "$coin_has_sample" != no; then 21427 21428# Check whether --with-m4_tolower(Sample)-incdir or --without-m4_tolower(Sample)-incdir was given. 21429if test "${with_sample_incdir+set}" = set; then 21430 withval="$with_sample_incdir" 21431 if test "$withval" = no ; then 21432 coin_has_sample="no" 21433 coin_reason="--without-sample-incdir has been specified" 21434 else 21435 coin_has_sample="no" 21436 coin_reason="--with-sample-incdir has been specified" 21437 fi 21438fi; 21439fi 21440 21441if test "$coin_has_sample" != no; then 21442 21443# Check whether --with-m4_tolower(Sample)-datadir or --without-m4_tolower(Sample)-datadir was given. 21444if test "${with_sample_datadir+set}" = set; then 21445 withval="$with_sample_datadir" 21446 if test "$withval" = no ; then 21447 coin_has_sample="no" 21448 coin_reason="--without-sample-datadir has been specified" 21449 else 21450 coin_has_sample="no" 21451 coin_reason="--with-sample-datadir has been specified" 21452 fi 21453fi; 21454fi 21455 21456 21457 21458 21459 21460# check if project is available in present directory 21461if test "$coin_has_sample" = notGiven; then 21462 coin_has_sample=no 21463 if test -d $srcdir/Data/Sample; then 21464 coin_reason="source in Data/Sample" 21465 # If a third argument is given, then we have to check if one one the files given in that third argument is present. 21466 # If none of the files in the third argument is available, then we consider the project directory as non-existing. 21467 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient. 21468 coin_has_sample="yes" 21469 21470 fi 21471fi 21472 21473if test -z "$coin_reason" ; then 21474 echo "$as_me:$LINENO: result: $coin_has_sample" >&5 21475echo "${ECHO_T}$coin_has_sample" >&6 21476else 21477 echo "$as_me:$LINENO: result: $coin_has_sample, $coin_reason" >&5 21478echo "${ECHO_T}$coin_has_sample, $coin_reason" >&6 21479fi 21480 21481if test "$coin_has_sample" = yes ; then 21482 if test -r $srcdir/Data/Sample/configure; then 21483 coin_subdirs="$coin_subdirs Data/Sample" 21484 21485 21486subdirs="$subdirs Data/Sample" 21487 21488 fi 21489fi 21490 21491 21492echo "$as_me:$LINENO: checking whether source of project Osi is available and should be compiled" >&5 21493echo $ECHO_N "checking whether source of project Osi is available and should be compiled... $ECHO_C" >&6 21494 21495coin_has_osi=notGiven 21496coin_reason= 21497 21498# check if user wants to skip project in any case 21499 21500if test x"$COIN_SKIP_PROJECTS" != x; then 21501 for dir in $COIN_SKIP_PROJECTS; do 21502 if test $dir = "Osi"; then 21503 coin_has_osi="no" 21504 coin_reason="Osi has been specified in COIN_SKIP_PROJECTS" 21505 fi 21506 21507 done 21508fi 21509 21510if test "$coin_has_osi" != no; then 21511 21512# Check whether --with-m4_tolower(Osi) or --without-m4_tolower(Osi) was given. 21513if test "${with_osi+set}" = set; then 21514 withval="$with_osi" 21515 if test "$withval" = no ; then 21516 coin_has_osi="no" 21517 coin_reason="--without-osi has been specified" 21518 fi 21519 21520fi; 21521fi 21522 21523if test "$coin_has_osi" != no; then 21524 21525# Check whether --with-m4_tolower(Osi)-lib or --without-m4_tolower(Osi)-lib was given. 21526if test "${with_osi_lib+set}" = set; then 21527 withval="$with_osi_lib" 21528 if test "$withval" = no ; then 21529 coin_has_osi="no" 21530 coin_reason="--without-osi-lib has been specified" 21531 else 21532 coin_has_osi="no" 21533 coin_reason="--with-osi-lib has been specified" 21534 fi 21535fi; 21536fi 21537 21538if test "$coin_has_osi" != no; then 21539 21540# Check whether --with-m4_tolower(Osi)-incdir or --without-m4_tolower(Osi)-incdir was given. 21541if test "${with_osi_incdir+set}" = set; then 21542 withval="$with_osi_incdir" 21543 if test "$withval" = no ; then 21544 coin_has_osi="no" 21545 coin_reason="--without-osi-incdir has been specified" 21546 else 21547 coin_has_osi="no" 21548 coin_reason="--with-osi-incdir has been specified" 21549 fi 21550fi; 21551fi 21552 21553if test "$coin_has_osi" != no; then 21554 21555# Check whether --with-m4_tolower(Osi)-datadir or --without-m4_tolower(Osi)-datadir was given. 21556if test "${with_osi_datadir+set}" = set; then 21557 withval="$with_osi_datadir" 21558 if test "$withval" = no ; then 21559 coin_has_osi="no" 21560 coin_reason="--without-osi-datadir has been specified" 21561 else 21562 coin_has_osi="no" 21563 coin_reason="--with-osi-datadir has been specified" 21564 fi 21565fi; 21566fi 21567 21568 21569 21570 21571 21572# check if project is available in present directory 21573if test "$coin_has_osi" = notGiven; then 21574 coin_has_osi=no 21575 if test -d $srcdir/Osi; then 21576 coin_reason="source in Osi" 21577 # If a third argument is given, then we have to check if one one the files given in that third argument is present. 21578 # If none of the files in the third argument is available, then we consider the project directory as non-existing. 21579 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient. 21580 coin_has_osi="yes" 21581 21582 fi 21583fi 21584 21585if test -z "$coin_reason" ; then 21586 echo "$as_me:$LINENO: result: $coin_has_osi" >&5 21587echo "${ECHO_T}$coin_has_osi" >&6 21588else 21589 echo "$as_me:$LINENO: result: $coin_has_osi, $coin_reason" >&5 21590echo "${ECHO_T}$coin_has_osi, $coin_reason" >&6 21591fi 21592 21593if test "$coin_has_osi" = yes ; then 21594 if test -r $srcdir/Osi/configure; then 21595 coin_subdirs="$coin_subdirs Osi" 21596 21597 21598subdirs="$subdirs Osi" 21599 21600 fi 21601fi 21602 21603 21604echo "$as_me:$LINENO: checking whether source of project Clp is available and should be compiled" >&5 21605echo $ECHO_N "checking whether source of project Clp is available and should be compiled... $ECHO_C" >&6 21606 21607coin_has_clp=notGiven 21608coin_reason= 21609 21610# check if user wants to skip project in any case 21611 21612if test x"$COIN_SKIP_PROJECTS" != x; then 21613 for dir in $COIN_SKIP_PROJECTS; do 21614 if test $dir = "Clp"; then 21615 coin_has_clp="no" 21616 coin_reason="Clp has been specified in COIN_SKIP_PROJECTS" 21617 fi 21618 21619 done 21620fi 21621 21622if test "$coin_has_clp" != no; then 21623 21624# Check whether --with-m4_tolower(Clp) or --without-m4_tolower(Clp) was given. 21625if test "${with_clp+set}" = set; then 21626 withval="$with_clp" 21627 if test "$withval" = no ; then 21628 coin_has_clp="no" 21629 coin_reason="--without-clp has been specified" 21630 fi 21631 21632fi; 21633fi 21634 21635if test "$coin_has_clp" != no; then 21636 21637# Check whether --with-m4_tolower(Clp)-lib or --without-m4_tolower(Clp)-lib was given. 21638if test "${with_clp_lib+set}" = set; then 21639 withval="$with_clp_lib" 21640 if test "$withval" = no ; then 21641 coin_has_clp="no" 21642 coin_reason="--without-clp-lib has been specified" 21643 else 21644 coin_has_clp="no" 21645 coin_reason="--with-clp-lib has been specified" 21646 fi 21647fi; 21648fi 21649 21650if test "$coin_has_clp" != no; then 21651 21652# Check whether --with-m4_tolower(Clp)-incdir or --without-m4_tolower(Clp)-incdir was given. 21653if test "${with_clp_incdir+set}" = set; then 21654 withval="$with_clp_incdir" 21655 if test "$withval" = no ; then 21656 coin_has_clp="no" 21657 coin_reason="--without-clp-incdir has been specified" 21658 else 21659 coin_has_clp="no" 21660 coin_reason="--with-clp-incdir has been specified" 21661 fi 21662fi; 21663fi 21664 21665if test "$coin_has_clp" != no; then 21666 21667# Check whether --with-m4_tolower(Clp)-datadir or --without-m4_tolower(Clp)-datadir was given. 21668if test "${with_clp_datadir+set}" = set; then 21669 withval="$with_clp_datadir" 21670 if test "$withval" = no ; then 21671 coin_has_clp="no" 21672 coin_reason="--without-clp-datadir has been specified" 21673 else 21674 coin_has_clp="no" 21675 coin_reason="--with-clp-datadir has been specified" 21676 fi 21677fi; 21678fi 21679 21680 21681 21682 21683 21684# check if project is available in present directory 21685if test "$coin_has_clp" = notGiven; then 21686 coin_has_clp=no 21687 if test -d $srcdir/Clp; then 21688 coin_reason="source in Clp" 21689 # If a third argument is given, then we have to check if one one the files given in that third argument is present. 21690 # If none of the files in the third argument is available, then we consider the project directory as non-existing. 21691 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient. 21692 coin_has_clp="yes" 21693 21694 fi 21695fi 21696 21697if test -z "$coin_reason" ; then 21698 echo "$as_me:$LINENO: result: $coin_has_clp" >&5 21699echo "${ECHO_T}$coin_has_clp" >&6 21700else 21701 echo "$as_me:$LINENO: result: $coin_has_clp, $coin_reason" >&5 21702echo "${ECHO_T}$coin_has_clp, $coin_reason" >&6 21703fi 21704 21705if test "$coin_has_clp" = yes ; then 21706 if test -r $srcdir/Clp/configure; then 21707 coin_subdirs="$coin_subdirs Clp" 21708 21709 21710subdirs="$subdirs Clp" 21711 21712 fi 21713fi 21714 21715 21716echo "$as_me:$LINENO: checking whether source of project Cgl is available and should be compiled" >&5 21717echo $ECHO_N "checking whether source of project Cgl is available and should be compiled... $ECHO_C" >&6 21718 21719coin_has_cgl=notGiven 21720coin_reason= 21721 21722# check if user wants to skip project in any case 21723 21724if test x"$COIN_SKIP_PROJECTS" != x; then 21725 for dir in $COIN_SKIP_PROJECTS; do 21726 if test $dir = "Cgl"; then 21727 coin_has_cgl="no" 21728 coin_reason="Cgl has been specified in COIN_SKIP_PROJECTS" 21729 fi 21730 21731 done 21732fi 21733 21734if test "$coin_has_cgl" != no; then 21735 21736# Check whether --with-m4_tolower(Cgl) or --without-m4_tolower(Cgl) was given. 21737if test "${with_cgl+set}" = set; then 21738 withval="$with_cgl" 21739 if test "$withval" = no ; then 21740 coin_has_cgl="no" 21741 coin_reason="--without-cgl has been specified" 21742 fi 21743 21744fi; 21745fi 21746 21747if test "$coin_has_cgl" != no; then 21748 21749# Check whether --with-m4_tolower(Cgl)-lib or --without-m4_tolower(Cgl)-lib was given. 21750if test "${with_cgl_lib+set}" = set; then 21751 withval="$with_cgl_lib" 21752 if test "$withval" = no ; then 21753 coin_has_cgl="no" 21754 coin_reason="--without-cgl-lib has been specified" 21755 else 21756 coin_has_cgl="no" 21757 coin_reason="--with-cgl-lib has been specified" 21758 fi 21759fi; 21760fi 21761 21762if test "$coin_has_cgl" != no; then 21763 21764# Check whether --with-m4_tolower(Cgl)-incdir or --without-m4_tolower(Cgl)-incdir was given. 21765if test "${with_cgl_incdir+set}" = set; then 21766 withval="$with_cgl_incdir" 21767 if test "$withval" = no ; then 21768 coin_has_cgl="no" 21769 coin_reason="--without-cgl-incdir has been specified" 21770 else 21771 coin_has_cgl="no" 21772 coin_reason="--with-cgl-incdir has been specified" 21773 fi 21774fi; 21775fi 21776 21777if test "$coin_has_cgl" != no; then 21778 21779# Check whether --with-m4_tolower(Cgl)-datadir or --without-m4_tolower(Cgl)-datadir was given. 21780if test "${with_cgl_datadir+set}" = set; then 21781 withval="$with_cgl_datadir" 21782 if test "$withval" = no ; then 21783 coin_has_cgl="no" 21784 coin_reason="--without-cgl-datadir has been specified" 21785 else 21786 coin_has_cgl="no" 21787 coin_reason="--with-cgl-datadir has been specified" 21788 fi 21789fi; 21790fi 21791 21792 21793 21794 21795 21796# check if project is available in present directory 21797if test "$coin_has_cgl" = notGiven; then 21798 coin_has_cgl=no 21799 if test -d $srcdir/Cgl; then 21800 coin_reason="source in Cgl" 21801 # If a third argument is given, then we have to check if one one the files given in that third argument is present. 21802 # If none of the files in the third argument is available, then we consider the project directory as non-existing. 21803 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient. 21804 coin_has_cgl="yes" 21805 21806 fi 21807fi 21808 21809if test -z "$coin_reason" ; then 21810 echo "$as_me:$LINENO: result: $coin_has_cgl" >&5 21811echo "${ECHO_T}$coin_has_cgl" >&6 21812else 21813 echo "$as_me:$LINENO: result: $coin_has_cgl, $coin_reason" >&5 21814echo "${ECHO_T}$coin_has_cgl, $coin_reason" >&6 21815fi 21816 21817if test "$coin_has_cgl" = yes ; then 21818 if test -r $srcdir/Cgl/configure; then 21819 coin_subdirs="$coin_subdirs Cgl" 21820 21821 21822subdirs="$subdirs Cgl" 21823 21824 fi 21825fi 21826 21827 21828echo "$as_me:$LINENO: checking whether source of project Alps is available and should be compiled" >&5 21829echo $ECHO_N "checking whether source of project Alps is available and should be compiled... $ECHO_C" >&6 21830 21831coin_has_alps=notGiven 21832coin_reason= 21833 21834# check if user wants to skip project in any case 21835 21836if test x"$COIN_SKIP_PROJECTS" != x; then 21837 for dir in $COIN_SKIP_PROJECTS; do 21838 if test $dir = "Alps"; then 21839 coin_has_alps="no" 21840 coin_reason="Alps has been specified in COIN_SKIP_PROJECTS" 21841 fi 21842 21843 done 21844fi 21845 21846if test "$coin_has_alps" != no; then 21847 21848# Check whether --with-m4_tolower(Alps) or --without-m4_tolower(Alps) was given. 21849if test "${with_alps+set}" = set; then 21850 withval="$with_alps" 21851 if test "$withval" = no ; then 21852 coin_has_alps="no" 21853 coin_reason="--without-alps has been specified" 21854 fi 21855 21856fi; 21857fi 21858 21859if test "$coin_has_alps" != no; then 21860 21861# Check whether --with-m4_tolower(Alps)-lib or --without-m4_tolower(Alps)-lib was given. 21862if test "${with_alps_lib+set}" = set; then 21863 withval="$with_alps_lib" 21864 if test "$withval" = no ; then 21865 coin_has_alps="no" 21866 coin_reason="--without-alps-lib has been specified" 21867 else 21868 coin_has_alps="no" 21869 coin_reason="--with-alps-lib has been specified" 21870 fi 21871fi; 21872fi 21873 21874if test "$coin_has_alps" != no; then 21875 21876# Check whether --with-m4_tolower(Alps)-incdir or --without-m4_tolower(Alps)-incdir was given. 21877if test "${with_alps_incdir+set}" = set; then 21878 withval="$with_alps_incdir" 21879 if test "$withval" = no ; then 21880 coin_has_alps="no" 21881 coin_reason="--without-alps-incdir has been specified" 21882 else 21883 coin_has_alps="no" 21884 coin_reason="--with-alps-incdir has been specified" 21885 fi 21886fi; 21887fi 21888 21889if test "$coin_has_alps" != no; then 21890 21891# Check whether --with-m4_tolower(Alps)-datadir or --without-m4_tolower(Alps)-datadir was given. 21892if test "${with_alps_datadir+set}" = set; then 21893 withval="$with_alps_datadir" 21894 if test "$withval" = no ; then 21895 coin_has_alps="no" 21896 coin_reason="--without-alps-datadir has been specified" 21897 else 21898 coin_has_alps="no" 21899 coin_reason="--with-alps-datadir has been specified" 21900 fi 21901fi; 21902fi 21903 21904 21905 21906 21907 21908# check if project is available in present directory 21909if test "$coin_has_alps" = notGiven; then 21910 coin_has_alps=no 21911 if test -d $srcdir/Alps; then 21912 coin_reason="source in Alps" 21913 # If a third argument is given, then we have to check if one one the files given in that third argument is present. 21914 # If none of the files in the third argument is available, then we consider the project directory as non-existing. 21915 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient. 21916 coin_has_alps="yes" 21917 21918 fi 21919fi 21920 21921if test -z "$coin_reason" ; then 21922 echo "$as_me:$LINENO: result: $coin_has_alps" >&5 21923echo "${ECHO_T}$coin_has_alps" >&6 21924else 21925 echo "$as_me:$LINENO: result: $coin_has_alps, $coin_reason" >&5 21926echo "${ECHO_T}$coin_has_alps, $coin_reason" >&6 21927fi 21928 21929if test "$coin_has_alps" = yes ; then 21930 if test -r $srcdir/Alps/configure; then 21931 coin_subdirs="$coin_subdirs Alps" 21932 21933 21934subdirs="$subdirs Alps" 21935 21936 fi 21937fi 21938 21939 21940############################################################################## 21941# Finishing up by writing all the output # 21942############################################################################## 21943 21944# Here list all the files that configure should create (except for the 21945# configuration header file) 21946 ac_config_files="$ac_config_files Makefile" 21947 21948 21949# Finally, we let configure write all the output... 21950 21951 21952 21953 21954echo "$as_me:$LINENO: checking which command should be used to link input files" >&5 21955echo $ECHO_N "checking which command should be used to link input files... $ECHO_C" >&6 21956coin_link_input_cmd="$LN_S" 21957case "$CC" in 21958 clang* ) ;; 21959 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 21960 coin_link_input_cmd=cp ;; 21961esac 21962echo "$as_me:$LINENO: result: $coin_link_input_cmd" >&5 21963echo "${ECHO_T}$coin_link_input_cmd" >&6 21964 21965 21966 21967if test x$coin_skip_ac_output != xyes; then 21968 21969 # library extension 21970 21971 case "$CC" in 21972 clang* ) 21973 LIBEXT=a ;; 21974 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 21975 LIBEXT=lib ;; 21976 *) LIBEXT=a ;; 21977 esac 21978 21979 # Define VPATH_DISTCLEANFILES to be everything that needs to be 21980 # cleaned for distclean in a vpath configuration 21981 21982 VPATH_DISTCLEANFILES="$coin_vpath_link_files" 21983 21984 # Take out subdirectories if their configuration concluded that they 21985 # don't need to be compiled 21986 if test x"$coin_ac_skip_subdirs" != x; then 21987 new_subdirs= 21988 for i in $subdirs; do 21989 skipme=no 21990 for j in $coin_ac_skip_subdirs; do 21991 if test $i = $j; then 21992 skipme=yes; 21993 fi 21994 done 21995 if test $skipme = no; then 21996 new_subdirs="$new_subdirs $i" 21997 fi 21998 done 21999 subdirs="$new_subdirs" 22000 fi 22001 22002 # need to come before AC_OUTPUT 22003 if test x$coin_projectdir != xyes; then 22004 # write coin_subdirs to a file so that project configuration knows where to find uninstalled projects 22005 echo $coin_subdirs > coin_subdirs.txt 22006 else 22007 # substitute for OBJDIR, needed to setup .pc file for uninstalled project 22008 ABSBUILDDIR="`pwd`" 22009 22010 fi 22011 22012 cat >confcache <<\_ACEOF 22013# This file is a shell script that caches the results of configure 22014# tests run on this system so they can be shared between configure 22015# scripts and configure runs, see configure's option --config-cache. 22016# It is not useful on other systems. If it contains results you don't 22017# want to keep, you may remove or edit it. 22018# 22019# config.status only pays attention to the cache file if you give it 22020# the --recheck option to rerun configure. 22021# 22022# `ac_cv_env_foo' variables (set or unset) will be overridden when 22023# loading this file, other *unset* `ac_cv_foo' will be assigned the 22024# following values. 22025 22026_ACEOF 22027 22028# The following way of writing the cache mishandles newlines in values, 22029# but we know of no workaround that is simple, portable, and efficient. 22030# So, don't put newlines in cache variables' values. 22031# Ultrix sh set writes to stderr and can't be redirected directly, 22032# and sets the high bit in the cache file unless we assign to the vars. 22033{ 22034 (set) 2>&1 | 22035 case `(ac_space=' '; set | grep ac_space) 2>&1` in 22036 *ac_space=\ *) 22037 # `set' does not quote correctly, so add quotes (double-quote 22038 # substitution turns \\\\ into \\, and sed turns \\ into \). 22039 sed -n \ 22040 "s/'/'\\\\''/g; 22041 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 22042 ;; 22043 *) 22044 # `set' quotes correctly as required by POSIX, so do not add quotes. 22045 sed -n \ 22046 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 22047 ;; 22048 esac; 22049} | 22050 sed ' 22051 t clear 22052 : clear 22053 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 22054 t end 22055 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 22056 : end' >>confcache 22057if diff $cache_file confcache >/dev/null 2>&1; then :; else 22058 if test -w $cache_file; then 22059 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 22060 cat confcache >$cache_file 22061 else 22062 echo "not updating unwritable cache $cache_file" 22063 fi 22064fi 22065rm -f confcache 22066 22067test "x$prefix" = xNONE && prefix=$ac_default_prefix 22068# Let make expand exec_prefix. 22069test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 22070 22071# VPATH may cause trouble with some makes, so we remove $(srcdir), 22072# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 22073# trailing colons and then remove the whole line if VPATH becomes empty 22074# (actually we leave an empty line to preserve line numbers). 22075if test "x$srcdir" = x.; then 22076 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 22077s/:*\$(srcdir):*/:/; 22078s/:*\${srcdir}:*/:/; 22079s/:*@srcdir@:*/:/; 22080s/^\([^=]*=[ ]*\):*/\1/; 22081s/:*$//; 22082s/^[^=]*=[ ]*$//; 22083}' 22084fi 22085 22086# Transform confdefs.h into DEFS. 22087# Protect against shell expansion while executing Makefile rules. 22088# Protect against Makefile macro expansion. 22089# 22090# If the first sed substitution is executed (which looks for macros that 22091# take arguments), then we branch to the quote section. Otherwise, 22092# look for a macro that doesn't take arguments. 22093cat >confdef2opt.sed <<\_ACEOF 22094t clear 22095: clear 22096s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g 22097t quote 22098s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g 22099t quote 22100d 22101: quote 22102s,[ `~#$^&*(){}\\|;'"<>?],\\&,g 22103s,\[,\\&,g 22104s,\],\\&,g 22105s,\$,$$,g 22106p 22107_ACEOF 22108# We use echo to avoid assuming a particular line-breaking character. 22109# The extra dot is to prevent the shell from consuming trailing 22110# line-breaks from the sub-command output. A line-break within 22111# single-quotes doesn't work because, if this script is created in a 22112# platform that uses two characters for line-breaks (e.g., DOS), tr 22113# would break. 22114ac_LF_and_DOT=`echo; echo .` 22115DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` 22116rm -f confdef2opt.sed 22117 22118 22119ac_libobjs= 22120ac_ltlibobjs= 22121for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 22122 # 1. Remove the extension, and $U if already installed. 22123 ac_i=`echo "$ac_i" | 22124 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 22125 # 2. Add them. 22126 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 22127 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 22128done 22129LIBOBJS=$ac_libobjs 22130 22131LTLIBOBJS=$ac_ltlibobjs 22132 22133 22134if test -z "${COIN_CC_IS_CL_TRUE}" && test -z "${COIN_CC_IS_CL_FALSE}"; then 22135 { { echo "$as_me:$LINENO: error: conditional \"COIN_CC_IS_CL\" was never defined. 22136Usually this means the macro was only invoked conditionally." >&5 22137echo "$as_me: error: conditional \"COIN_CC_IS_CL\" was never defined. 22138Usually this means the macro was only invoked conditionally." >&2;} 22139 { (exit 1); exit 1; }; } 22140fi 22141if test -z "${COIN_CXX_IS_CL_TRUE}" && test -z "${COIN_CXX_IS_CL_FALSE}"; then 22142 { { echo "$as_me:$LINENO: error: conditional \"COIN_CXX_IS_CL\" was never defined. 22143Usually this means the macro was only invoked conditionally." >&5 22144echo "$as_me: error: conditional \"COIN_CXX_IS_CL\" was never defined. 22145Usually this means the macro was only invoked conditionally." >&2;} 22146 { (exit 1); exit 1; }; } 22147fi 22148if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 22149 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 22150Usually this means the macro was only invoked conditionally." >&5 22151echo "$as_me: error: conditional \"AMDEP\" was never defined. 22152Usually this means the macro was only invoked conditionally." >&2;} 22153 { (exit 1); exit 1; }; } 22154fi 22155if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 22156 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 22157Usually this means the macro was only invoked conditionally." >&5 22158echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 22159Usually this means the macro was only invoked conditionally." >&2;} 22160 { (exit 1); exit 1; }; } 22161fi 22162if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 22163 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 22164Usually this means the macro was only invoked conditionally." >&5 22165echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 22166Usually this means the macro was only invoked conditionally." >&2;} 22167 { (exit 1); exit 1; }; } 22168fi 22169if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 22170 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 22171Usually this means the macro was only invoked conditionally." >&5 22172echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 22173Usually this means the macro was only invoked conditionally." >&2;} 22174 { (exit 1); exit 1; }; } 22175fi 22176if test -z "${HAVE_EXTERNALS_TRUE}" && test -z "${HAVE_EXTERNALS_FALSE}"; then 22177 { { echo "$as_me:$LINENO: error: conditional \"HAVE_EXTERNALS\" was never defined. 22178Usually this means the macro was only invoked conditionally." >&5 22179echo "$as_me: error: conditional \"HAVE_EXTERNALS\" was never defined. 22180Usually this means the macro was only invoked conditionally." >&2;} 22181 { (exit 1); exit 1; }; } 22182fi 22183if test -z "${DEPENDENCY_LINKING_TRUE}" && test -z "${DEPENDENCY_LINKING_FALSE}"; then 22184 { { echo "$as_me:$LINENO: error: conditional \"DEPENDENCY_LINKING\" was never defined. 22185Usually this means the macro was only invoked conditionally." >&5 22186echo "$as_me: error: conditional \"DEPENDENCY_LINKING\" was never defined. 22187Usually this means the macro was only invoked conditionally." >&2;} 22188 { (exit 1); exit 1; }; } 22189fi 22190 22191: ${CONFIG_STATUS=./config.status} 22192ac_clean_files_save=$ac_clean_files 22193ac_clean_files="$ac_clean_files $CONFIG_STATUS" 22194{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 22195echo "$as_me: creating $CONFIG_STATUS" >&6;} 22196cat >$CONFIG_STATUS <<_ACEOF 22197#! $SHELL 22198# Generated by $as_me. 22199# Run this file to recreate the current configuration. 22200# Compiler output produced by configure, useful for debugging 22201# configure, is in config.log if it exists. 22202 22203debug=false 22204ac_cs_recheck=false 22205ac_cs_silent=false 22206SHELL=\${CONFIG_SHELL-$SHELL} 22207_ACEOF 22208 22209cat >>$CONFIG_STATUS <<\_ACEOF 22210## --------------------- ## 22211## M4sh Initialization. ## 22212## --------------------- ## 22213 22214# Be Bourne compatible 22215if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 22216 emulate sh 22217 NULLCMD=: 22218 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 22219 # is contrary to our usage. Disable this feature. 22220 alias -g '${1+"$@"}'='"$@"' 22221elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 22222 set -o posix 22223fi 22224DUALCASE=1; export DUALCASE # for MKS sh 22225 22226# Support unset when possible. 22227if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 22228 as_unset=unset 22229else 22230 as_unset=false 22231fi 22232 22233 22234# Work around bugs in pre-3.0 UWIN ksh. 22235$as_unset ENV MAIL MAILPATH 22236PS1='$ ' 22237PS2='> ' 22238PS4='+ ' 22239 22240# NLS nuisances. 22241for as_var in \ 22242 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 22243 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 22244 LC_TELEPHONE LC_TIME 22245do 22246 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 22247 eval $as_var=C; export $as_var 22248 else 22249 $as_unset $as_var 22250 fi 22251done 22252 22253# Required to use basename. 22254if expr a : '\(a\)' >/dev/null 2>&1; then 22255 as_expr=expr 22256else 22257 as_expr=false 22258fi 22259 22260if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 22261 as_basename=basename 22262else 22263 as_basename=false 22264fi 22265 22266 22267# Name of the executable. 22268as_me=`$as_basename "$0" || 22269$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 22270 X"$0" : 'X\(//\)$' \| \ 22271 X"$0" : 'X\(/\)$' \| \ 22272 . : '\(.\)' 2>/dev/null || 22273echo X/"$0" | 22274 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 22275 /^X\/\(\/\/\)$/{ s//\1/; q; } 22276 /^X\/\(\/\).*/{ s//\1/; q; } 22277 s/.*/./; q'` 22278 22279 22280# PATH needs CR, and LINENO needs CR and PATH. 22281# Avoid depending upon Character Ranges. 22282as_cr_letters='abcdefghijklmnopqrstuvwxyz' 22283as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 22284as_cr_Letters=$as_cr_letters$as_cr_LETTERS 22285as_cr_digits='0123456789' 22286as_cr_alnum=$as_cr_Letters$as_cr_digits 22287 22288# The user is always right. 22289if test "${PATH_SEPARATOR+set}" != set; then 22290 echo "#! /bin/sh" >conf$$.sh 22291 echo "exit 0" >>conf$$.sh 22292 chmod +x conf$$.sh 22293 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 22294 PATH_SEPARATOR=';' 22295 else 22296 PATH_SEPARATOR=: 22297 fi 22298 rm -f conf$$.sh 22299fi 22300 22301 22302 as_lineno_1=$LINENO 22303 as_lineno_2=$LINENO 22304 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 22305 test "x$as_lineno_1" != "x$as_lineno_2" && 22306 test "x$as_lineno_3" = "x$as_lineno_2" || { 22307 # Find who we are. Look in the path if we contain no path at all 22308 # relative or not. 22309 case $0 in 22310 *[\\/]* ) as_myself=$0 ;; 22311 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22312for as_dir in $PATH 22313do 22314 IFS=$as_save_IFS 22315 test -z "$as_dir" && as_dir=. 22316 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 22317done 22318 22319 ;; 22320 esac 22321 # We did not find ourselves, most probably we were run as `sh COMMAND' 22322 # in which case we are not to be found in the path. 22323 if test "x$as_myself" = x; then 22324 as_myself=$0 22325 fi 22326 if test ! -f "$as_myself"; then 22327 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 22328echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 22329 { (exit 1); exit 1; }; } 22330 fi 22331 case $CONFIG_SHELL in 22332 '') 22333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22334for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 22335do 22336 IFS=$as_save_IFS 22337 test -z "$as_dir" && as_dir=. 22338 for as_base in sh bash ksh sh5; do 22339 case $as_dir in 22340 /*) 22341 if ("$as_dir/$as_base" -c ' 22342 as_lineno_1=$LINENO 22343 as_lineno_2=$LINENO 22344 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 22345 test "x$as_lineno_1" != "x$as_lineno_2" && 22346 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 22347 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 22348 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 22349 CONFIG_SHELL=$as_dir/$as_base 22350 export CONFIG_SHELL 22351 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 22352 fi;; 22353 esac 22354 done 22355done 22356;; 22357 esac 22358 22359 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 22360 # uniformly replaced by the line number. The first 'sed' inserts a 22361 # line-number line before each line; the second 'sed' does the real 22362 # work. The second script uses 'N' to pair each line-number line 22363 # with the numbered line, and appends trailing '-' during 22364 # substitution so that $LINENO is not a special case at line end. 22365 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 22366 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 22367 sed '=' <$as_myself | 22368 sed ' 22369 N 22370 s,$,-, 22371 : loop 22372 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 22373 t loop 22374 s,-$,, 22375 s,^['$as_cr_digits']*\n,, 22376 ' >$as_me.lineno && 22377 chmod +x $as_me.lineno || 22378 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 22379echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 22380 { (exit 1); exit 1; }; } 22381 22382 # Don't try to exec as it changes $[0], causing all sort of problems 22383 # (the dirname of $[0] is not the place where we might find the 22384 # original and so on. Autoconf is especially sensible to this). 22385 . ./$as_me.lineno 22386 # Exit status is that of the last command. 22387 exit 22388} 22389 22390 22391case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 22392 *c*,-n*) ECHO_N= ECHO_C=' 22393' ECHO_T=' ' ;; 22394 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 22395 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 22396esac 22397 22398if expr a : '\(a\)' >/dev/null 2>&1; then 22399 as_expr=expr 22400else 22401 as_expr=false 22402fi 22403 22404rm -f conf$$ conf$$.exe conf$$.file 22405echo >conf$$.file 22406if ln -s conf$$.file conf$$ 2>/dev/null; then 22407 # We could just check for DJGPP; but this test a) works b) is more generic 22408 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 22409 if test -f conf$$.exe; then 22410 # Don't use ln at all; we don't have any links 22411 as_ln_s='cp -p' 22412 else 22413 as_ln_s='ln -s' 22414 fi 22415elif ln conf$$.file conf$$ 2>/dev/null; then 22416 as_ln_s=ln 22417else 22418 as_ln_s='cp -p' 22419fi 22420rm -f conf$$ conf$$.exe conf$$.file 22421 22422if mkdir -p . 2>/dev/null; then 22423 as_mkdir_p=: 22424else 22425 test -d ./-p && rmdir ./-p 22426 as_mkdir_p=false 22427fi 22428 22429as_executable_p="test -f" 22430 22431# Sed expression to map a string onto a valid CPP name. 22432as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 22433 22434# Sed expression to map a string onto a valid variable name. 22435as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 22436 22437 22438# IFS 22439# We need space, tab and new line, in precisely that order. 22440as_nl=' 22441' 22442IFS=" $as_nl" 22443 22444# CDPATH. 22445$as_unset CDPATH 22446 22447exec 6>&1 22448 22449# Open the log real soon, to keep \$[0] and so on meaningful, and to 22450# report actual input values of CONFIG_FILES etc. instead of their 22451# values after options handling. Logging --version etc. is OK. 22452exec 5>>config.log 22453{ 22454 echo 22455 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 22456## Running $as_me. ## 22457_ASBOX 22458} >&5 22459cat >&5 <<_CSEOF 22460 22461This file was extended by Alps $as_me 2.0.1, which was 22462generated by GNU Autoconf 2.59. Invocation command line was 22463 22464 CONFIG_FILES = $CONFIG_FILES 22465 CONFIG_HEADERS = $CONFIG_HEADERS 22466 CONFIG_LINKS = $CONFIG_LINKS 22467 CONFIG_COMMANDS = $CONFIG_COMMANDS 22468 $ $0 $@ 22469 22470_CSEOF 22471echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 22472echo >&5 22473_ACEOF 22474 22475# Files that config.status was made for. 22476if test -n "$ac_config_files"; then 22477 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 22478fi 22479 22480if test -n "$ac_config_headers"; then 22481 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 22482fi 22483 22484if test -n "$ac_config_links"; then 22485 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 22486fi 22487 22488if test -n "$ac_config_commands"; then 22489 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 22490fi 22491 22492cat >>$CONFIG_STATUS <<\_ACEOF 22493 22494ac_cs_usage="\ 22495\`$as_me' instantiates files from templates according to the 22496current configuration. 22497 22498Usage: $0 [OPTIONS] [FILE]... 22499 22500 -h, --help print this help, then exit 22501 -V, --version print version number, then exit 22502 -q, --quiet do not print progress messages 22503 -d, --debug don't remove temporary files 22504 --recheck update $as_me by reconfiguring in the same conditions 22505 --file=FILE[:TEMPLATE] 22506 instantiate the configuration file FILE 22507 22508Configuration files: 22509$config_files 22510 22511Configuration commands: 22512$config_commands 22513 22514Report bugs to <bug-autoconf@gnu.org>." 22515_ACEOF 22516 22517cat >>$CONFIG_STATUS <<_ACEOF 22518ac_cs_version="\\ 22519Alps config.status 2.0.1 22520configured by $0, generated by GNU Autoconf 2.59, 22521 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 22522 22523Copyright (C) 2003 Free Software Foundation, Inc. 22524This config.status script is free software; the Free Software Foundation 22525gives unlimited permission to copy, distribute and modify it." 22526srcdir=$srcdir 22527INSTALL="$INSTALL" 22528_ACEOF 22529 22530cat >>$CONFIG_STATUS <<\_ACEOF 22531# If no file are specified by the user, then we need to provide default 22532# value. By we need to know if files were specified by the user. 22533ac_need_defaults=: 22534while test $# != 0 22535do 22536 case $1 in 22537 --*=*) 22538 ac_option=`expr "x$1" : 'x\([^=]*\)='` 22539 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 22540 ac_shift=: 22541 ;; 22542 -*) 22543 ac_option=$1 22544 ac_optarg=$2 22545 ac_shift=shift 22546 ;; 22547 *) # This is not an option, so the user has probably given explicit 22548 # arguments. 22549 ac_option=$1 22550 ac_need_defaults=false;; 22551 esac 22552 22553 case $ac_option in 22554 # Handling of the options. 22555_ACEOF 22556cat >>$CONFIG_STATUS <<\_ACEOF 22557 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 22558 ac_cs_recheck=: ;; 22559 --version | --vers* | -V ) 22560 echo "$ac_cs_version"; exit 0 ;; 22561 --he | --h) 22562 # Conflict between --help and --header 22563 { { echo "$as_me:$LINENO: error: ambiguous option: $1 22564Try \`$0 --help' for more information." >&5 22565echo "$as_me: error: ambiguous option: $1 22566Try \`$0 --help' for more information." >&2;} 22567 { (exit 1); exit 1; }; };; 22568 --help | --hel | -h ) 22569 echo "$ac_cs_usage"; exit 0 ;; 22570 --debug | --d* | -d ) 22571 debug=: ;; 22572 --file | --fil | --fi | --f ) 22573 $ac_shift 22574 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 22575 ac_need_defaults=false;; 22576 --header | --heade | --head | --hea ) 22577 $ac_shift 22578 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 22579 ac_need_defaults=false;; 22580 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 22581 | -silent | --silent | --silen | --sile | --sil | --si | --s) 22582 ac_cs_silent=: ;; 22583 22584 # This is an error. 22585 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 22586Try \`$0 --help' for more information." >&5 22587echo "$as_me: error: unrecognized option: $1 22588Try \`$0 --help' for more information." >&2;} 22589 { (exit 1); exit 1; }; } ;; 22590 22591 *) ac_config_targets="$ac_config_targets $1" ;; 22592 22593 esac 22594 shift 22595done 22596 22597ac_configure_extra_args= 22598 22599if $ac_cs_silent; then 22600 exec 6>/dev/null 22601 ac_configure_extra_args="$ac_configure_extra_args --silent" 22602fi 22603 22604_ACEOF 22605cat >>$CONFIG_STATUS <<_ACEOF 22606if \$ac_cs_recheck; then 22607 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 22608 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 22609fi 22610 22611_ACEOF 22612 22613cat >>$CONFIG_STATUS <<_ACEOF 22614# 22615# INIT-COMMANDS section. 22616# 22617 22618AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 22619 22620_ACEOF 22621 22622 22623 22624cat >>$CONFIG_STATUS <<\_ACEOF 22625for ac_config_target in $ac_config_targets 22626do 22627 case "$ac_config_target" in 22628 # Handling of arguments. 22629 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 22630 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 22631 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 22632echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 22633 { (exit 1); exit 1; }; };; 22634 esac 22635done 22636 22637# If the user did not use the arguments to specify the items to instantiate, 22638# then the envvar interface is used. Set only those that are not. 22639# We use the long form for the default assignment because of an extremely 22640# bizarre bug on SunOS 4.1.3. 22641if $ac_need_defaults; then 22642 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 22643 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 22644fi 22645 22646# Have a temporary directory for convenience. Make it in the build tree 22647# simply because there is no reason to put it here, and in addition, 22648# creating and moving files from /tmp can sometimes cause problems. 22649# Create a temporary directory, and hook for its removal unless debugging. 22650$debug || 22651{ 22652 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 22653 trap '{ (exit 1); exit 1; }' 1 2 13 15 22654} 22655 22656# Create a (secure) tmp directory for tmp files. 22657 22658{ 22659 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 22660 test -n "$tmp" && test -d "$tmp" 22661} || 22662{ 22663 tmp=./confstat$$-$RANDOM 22664 (umask 077 && mkdir $tmp) 22665} || 22666{ 22667 echo "$me: cannot create a temporary directory in ." >&2 22668 { (exit 1); exit 1; } 22669} 22670 22671_ACEOF 22672 22673cat >>$CONFIG_STATUS <<_ACEOF 22674 22675# 22676# CONFIG_FILES section. 22677# 22678 22679# No need to generate the scripts if there are no CONFIG_FILES. 22680# This happens for instance when ./config.status config.h 22681if test -n "\$CONFIG_FILES"; then 22682 # Protect against being on the right side of a sed subst in config.status. 22683 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 22684 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 22685s,@SHELL@,$SHELL,;t t 22686s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 22687s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 22688s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 22689s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 22690s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 22691s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 22692s,@exec_prefix@,$exec_prefix,;t t 22693s,@prefix@,$prefix,;t t 22694s,@program_transform_name@,$program_transform_name,;t t 22695s,@bindir@,$bindir,;t t 22696s,@sbindir@,$sbindir,;t t 22697s,@libexecdir@,$libexecdir,;t t 22698s,@datadir@,$datadir,;t t 22699s,@sysconfdir@,$sysconfdir,;t t 22700s,@sharedstatedir@,$sharedstatedir,;t t 22701s,@localstatedir@,$localstatedir,;t t 22702s,@libdir@,$libdir,;t t 22703s,@includedir@,$includedir,;t t 22704s,@oldincludedir@,$oldincludedir,;t t 22705s,@infodir@,$infodir,;t t 22706s,@mandir@,$mandir,;t t 22707s,@build_alias@,$build_alias,;t t 22708s,@host_alias@,$host_alias,;t t 22709s,@target_alias@,$target_alias,;t t 22710s,@DEFS@,$DEFS,;t t 22711s,@ECHO_C@,$ECHO_C,;t t 22712s,@ECHO_N@,$ECHO_N,;t t 22713s,@ECHO_T@,$ECHO_T,;t t 22714s,@LIBS@,$LIBS,;t t 22715s,@build@,$build,;t t 22716s,@build_cpu@,$build_cpu,;t t 22717s,@build_vendor@,$build_vendor,;t t 22718s,@build_os@,$build_os,;t t 22719s,@CDEFS@,$CDEFS,;t t 22720s,@ADD_CFLAGS@,$ADD_CFLAGS,;t t 22721s,@DBG_CFLAGS@,$DBG_CFLAGS,;t t 22722s,@OPT_CFLAGS@,$OPT_CFLAGS,;t t 22723s,@sol_cc_compiler@,$sol_cc_compiler,;t t 22724s,@CC@,$CC,;t t 22725s,@CFLAGS@,$CFLAGS,;t t 22726s,@LDFLAGS@,$LDFLAGS,;t t 22727s,@CPPFLAGS@,$CPPFLAGS,;t t 22728s,@ac_ct_CC@,$ac_ct_CC,;t t 22729s,@EXEEXT@,$EXEEXT,;t t 22730s,@OBJEXT@,$OBJEXT,;t t 22731s,@COIN_CC_IS_CL_TRUE@,$COIN_CC_IS_CL_TRUE,;t t 22732s,@COIN_CC_IS_CL_FALSE@,$COIN_CC_IS_CL_FALSE,;t t 22733s,@MPICC@,$MPICC,;t t 22734s,@CXXDEFS@,$CXXDEFS,;t t 22735s,@ADD_CXXFLAGS@,$ADD_CXXFLAGS,;t t 22736s,@DBG_CXXFLAGS@,$DBG_CXXFLAGS,;t t 22737s,@OPT_CXXFLAGS@,$OPT_CXXFLAGS,;t t 22738s,@CXX@,$CXX,;t t 22739s,@CXXFLAGS@,$CXXFLAGS,;t t 22740s,@ac_ct_CXX@,$ac_ct_CXX,;t t 22741s,@COIN_CXX_IS_CL_TRUE@,$COIN_CXX_IS_CL_TRUE,;t t 22742s,@COIN_CXX_IS_CL_FALSE@,$COIN_CXX_IS_CL_FALSE,;t t 22743s,@MPICXX@,$MPICXX,;t t 22744s,@ADD_FFLAGS@,$ADD_FFLAGS,;t t 22745s,@DBG_FFLAGS@,$DBG_FFLAGS,;t t 22746s,@OPT_FFLAGS@,$OPT_FFLAGS,;t t 22747s,@F77@,$F77,;t t 22748s,@ac_ct_F77@,$ac_ct_F77,;t t 22749s,@FFLAGS@,$FFLAGS,;t t 22750s,@MPIF77@,$MPIF77,;t t 22751s,@EGREP@,$EGREP,;t t 22752s,@LN_S@,$LN_S,;t t 22753s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 22754s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 22755s,@INSTALL_DATA@,$INSTALL_DATA,;t t 22756s,@CYGPATH_W@,$CYGPATH_W,;t t 22757s,@PACKAGE@,$PACKAGE,;t t 22758s,@VERSION@,$VERSION,;t t 22759s,@ACLOCAL@,$ACLOCAL,;t t 22760s,@AUTOCONF@,$AUTOCONF,;t t 22761s,@AUTOMAKE@,$AUTOMAKE,;t t 22762s,@AUTOHEADER@,$AUTOHEADER,;t t 22763s,@MAKEINFO@,$MAKEINFO,;t t 22764s,@install_sh@,$install_sh,;t t 22765s,@STRIP@,$STRIP,;t t 22766s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 22767s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 22768s,@mkdir_p@,$mkdir_p,;t t 22769s,@AWK@,$AWK,;t t 22770s,@SET_MAKE@,$SET_MAKE,;t t 22771s,@am__leading_dot@,$am__leading_dot,;t t 22772s,@AMTAR@,$AMTAR,;t t 22773s,@am__tar@,$am__tar,;t t 22774s,@am__untar@,$am__untar,;t t 22775s,@DEPDIR@,$DEPDIR,;t t 22776s,@am__include@,$am__include,;t t 22777s,@am__quote@,$am__quote,;t t 22778s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 22779s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 22780s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 22781s,@CCDEPMODE@,$CCDEPMODE,;t t 22782s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t 22783s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t 22784s,@CXXDEPMODE@,$CXXDEPMODE,;t t 22785s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t 22786s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t 22787s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t 22788s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t 22789s,@MAINT@,$MAINT,;t t 22790s,@LIBTOOLM4@,$LIBTOOLM4,;t t 22791s,@have_autoconf@,$have_autoconf,;t t 22792s,@have_automake@,$have_automake,;t t 22793s,@have_svn@,$have_svn,;t t 22794s,@BUILDTOOLSDIR@,$BUILDTOOLSDIR,;t t 22795s,@AUX_DIR@,$AUX_DIR,;t t 22796s,@abs_source_dir@,$abs_source_dir,;t t 22797s,@abs_lib_dir@,$abs_lib_dir,;t t 22798s,@abs_include_dir@,$abs_include_dir,;t t 22799s,@abs_bin_dir@,$abs_bin_dir,;t t 22800s,@HAVE_EXTERNALS_TRUE@,$HAVE_EXTERNALS_TRUE,;t t 22801s,@HAVE_EXTERNALS_FALSE@,$HAVE_EXTERNALS_FALSE,;t t 22802s,@host@,$host,;t t 22803s,@host_cpu@,$host_cpu,;t t 22804s,@host_vendor@,$host_vendor,;t t 22805s,@host_os@,$host_os,;t t 22806s,@ECHO@,$ECHO,;t t 22807s,@AR@,$AR,;t t 22808s,@ac_ct_AR@,$ac_ct_AR,;t t 22809s,@RANLIB@,$RANLIB,;t t 22810s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 22811s,@CPP@,$CPP,;t t 22812s,@CXXCPP@,$CXXCPP,;t t 22813s,@LIBTOOL@,$LIBTOOL,;t t 22814s,@ac_c_preproc_warn_flag@,$ac_c_preproc_warn_flag,;t t 22815s,@ac_cxx_preproc_warn_flag@,$ac_cxx_preproc_warn_flag,;t t 22816s,@RPATH_FLAGS@,$RPATH_FLAGS,;t t 22817s,@DEPENDENCY_LINKING_TRUE@,$DEPENDENCY_LINKING_TRUE,;t t 22818s,@DEPENDENCY_LINKING_FALSE@,$DEPENDENCY_LINKING_FALSE,;t t 22819s,@LT_LDFLAGS@,$LT_LDFLAGS,;t t 22820s,@COIN_SKIP_PROJECTS@,$COIN_SKIP_PROJECTS,;t t 22821s,@subdirs@,$subdirs,;t t 22822s,@LIBEXT@,$LIBEXT,;t t 22823s,@VPATH_DISTCLEANFILES@,$VPATH_DISTCLEANFILES,;t t 22824s,@ABSBUILDDIR@,$ABSBUILDDIR,;t t 22825s,@LIBOBJS@,$LIBOBJS,;t t 22826s,@LTLIBOBJS@,$LTLIBOBJS,;t t 22827CEOF 22828 22829_ACEOF 22830 22831 cat >>$CONFIG_STATUS <<\_ACEOF 22832 # Split the substitutions into bite-sized pieces for seds with 22833 # small command number limits, like on Digital OSF/1 and HP-UX. 22834 ac_max_sed_lines=48 22835 ac_sed_frag=1 # Number of current file. 22836 ac_beg=1 # First line for current file. 22837 ac_end=$ac_max_sed_lines # Line after last line for current file. 22838 ac_more_lines=: 22839 ac_sed_cmds= 22840 while $ac_more_lines; do 22841 if test $ac_beg -gt 1; then 22842 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 22843 else 22844 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 22845 fi 22846 if test ! -s $tmp/subs.frag; then 22847 ac_more_lines=false 22848 else 22849 # The purpose of the label and of the branching condition is to 22850 # speed up the sed processing (if there are no `@' at all, there 22851 # is no need to browse any of the substitutions). 22852 # These are the two extra sed commands mentioned above. 22853 (echo ':t 22854 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 22855 if test -z "$ac_sed_cmds"; then 22856 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 22857 else 22858 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 22859 fi 22860 ac_sed_frag=`expr $ac_sed_frag + 1` 22861 ac_beg=$ac_end 22862 ac_end=`expr $ac_end + $ac_max_sed_lines` 22863 fi 22864 done 22865 if test -z "$ac_sed_cmds"; then 22866 ac_sed_cmds=cat 22867 fi 22868fi # test -n "$CONFIG_FILES" 22869 22870_ACEOF 22871cat >>$CONFIG_STATUS <<\_ACEOF 22872for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 22873 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 22874 case $ac_file in 22875 - | *:- | *:-:* ) # input from stdin 22876 cat >$tmp/stdin 22877 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 22878 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 22879 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 22880 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 22881 * ) ac_file_in=$ac_file.in ;; 22882 esac 22883 22884 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 22885 ac_dir=`(dirname "$ac_file") 2>/dev/null || 22886$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22887 X"$ac_file" : 'X\(//\)[^/]' \| \ 22888 X"$ac_file" : 'X\(//\)$' \| \ 22889 X"$ac_file" : 'X\(/\)' \| \ 22890 . : '\(.\)' 2>/dev/null || 22891echo X"$ac_file" | 22892 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22893 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22894 /^X\(\/\/\)$/{ s//\1/; q; } 22895 /^X\(\/\).*/{ s//\1/; q; } 22896 s/.*/./; q'` 22897 { if $as_mkdir_p; then 22898 mkdir -p "$ac_dir" 22899 else 22900 as_dir="$ac_dir" 22901 as_dirs= 22902 while test ! -d "$as_dir"; do 22903 as_dirs="$as_dir $as_dirs" 22904 as_dir=`(dirname "$as_dir") 2>/dev/null || 22905$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22906 X"$as_dir" : 'X\(//\)[^/]' \| \ 22907 X"$as_dir" : 'X\(//\)$' \| \ 22908 X"$as_dir" : 'X\(/\)' \| \ 22909 . : '\(.\)' 2>/dev/null || 22910echo X"$as_dir" | 22911 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22912 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22913 /^X\(\/\/\)$/{ s//\1/; q; } 22914 /^X\(\/\).*/{ s//\1/; q; } 22915 s/.*/./; q'` 22916 done 22917 test ! -n "$as_dirs" || mkdir $as_dirs 22918 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 22919echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 22920 { (exit 1); exit 1; }; }; } 22921 22922 ac_builddir=. 22923 22924if test "$ac_dir" != .; then 22925 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 22926 # A "../" for each directory in $ac_dir_suffix. 22927 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 22928else 22929 ac_dir_suffix= ac_top_builddir= 22930fi 22931 22932case $srcdir in 22933 .) # No --srcdir option. We are building in place. 22934 ac_srcdir=. 22935 if test -z "$ac_top_builddir"; then 22936 ac_top_srcdir=. 22937 else 22938 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 22939 fi ;; 22940 [\\/]* | ?:[\\/]* ) # Absolute path. 22941 ac_srcdir=$srcdir$ac_dir_suffix; 22942 ac_top_srcdir=$srcdir ;; 22943 *) # Relative path. 22944 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 22945 ac_top_srcdir=$ac_top_builddir$srcdir ;; 22946esac 22947 22948# Do not use `cd foo && pwd` to compute absolute paths, because 22949# the directories may not exist. 22950case `pwd` in 22951.) ac_abs_builddir="$ac_dir";; 22952*) 22953 case "$ac_dir" in 22954 .) ac_abs_builddir=`pwd`;; 22955 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 22956 *) ac_abs_builddir=`pwd`/"$ac_dir";; 22957 esac;; 22958esac 22959case $ac_abs_builddir in 22960.) ac_abs_top_builddir=${ac_top_builddir}.;; 22961*) 22962 case ${ac_top_builddir}. in 22963 .) ac_abs_top_builddir=$ac_abs_builddir;; 22964 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 22965 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 22966 esac;; 22967esac 22968case $ac_abs_builddir in 22969.) ac_abs_srcdir=$ac_srcdir;; 22970*) 22971 case $ac_srcdir in 22972 .) ac_abs_srcdir=$ac_abs_builddir;; 22973 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 22974 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 22975 esac;; 22976esac 22977case $ac_abs_builddir in 22978.) ac_abs_top_srcdir=$ac_top_srcdir;; 22979*) 22980 case $ac_top_srcdir in 22981 .) ac_abs_top_srcdir=$ac_abs_builddir;; 22982 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 22983 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 22984 esac;; 22985esac 22986 22987 22988 case $INSTALL in 22989 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22990 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 22991 esac 22992 22993 if test x"$ac_file" != x-; then 22994 { echo "$as_me:$LINENO: creating $ac_file" >&5 22995echo "$as_me: creating $ac_file" >&6;} 22996 rm -f "$ac_file" 22997 fi 22998 # Let's still pretend it is `configure' which instantiates (i.e., don't 22999 # use $as_me), people would be surprised to read: 23000 # /* config.h. Generated by config.status. */ 23001 if test x"$ac_file" = x-; then 23002 configure_input= 23003 else 23004 configure_input="$ac_file. " 23005 fi 23006 configure_input=$configure_input"Generated from `echo $ac_file_in | 23007 sed 's,.*/,,'` by configure." 23008 23009 # First look for the input files in the build tree, otherwise in the 23010 # src tree. 23011 ac_file_inputs=`IFS=: 23012 for f in $ac_file_in; do 23013 case $f in 23014 -) echo $tmp/stdin ;; 23015 [\\/$]*) 23016 # Absolute (can't be DOS-style, as IFS=:) 23017 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 23018echo "$as_me: error: cannot find input file: $f" >&2;} 23019 { (exit 1); exit 1; }; } 23020 echo "$f";; 23021 *) # Relative 23022 if test -f "$f"; then 23023 # Build tree 23024 echo "$f" 23025 elif test -f "$srcdir/$f"; then 23026 # Source tree 23027 echo "$srcdir/$f" 23028 else 23029 # /dev/null tree 23030 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 23031echo "$as_me: error: cannot find input file: $f" >&2;} 23032 { (exit 1); exit 1; }; } 23033 fi;; 23034 esac 23035 done` || { (exit 1); exit 1; } 23036_ACEOF 23037cat >>$CONFIG_STATUS <<_ACEOF 23038 sed "$ac_vpsub 23039$extrasub 23040_ACEOF 23041cat >>$CONFIG_STATUS <<\_ACEOF 23042:t 23043/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23044s,@configure_input@,$configure_input,;t t 23045s,@srcdir@,$ac_srcdir,;t t 23046s,@abs_srcdir@,$ac_abs_srcdir,;t t 23047s,@top_srcdir@,$ac_top_srcdir,;t t 23048s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 23049s,@builddir@,$ac_builddir,;t t 23050s,@abs_builddir@,$ac_abs_builddir,;t t 23051s,@top_builddir@,$ac_top_builddir,;t t 23052s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 23053s,@INSTALL@,$ac_INSTALL,;t t 23054" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 23055 rm -f $tmp/stdin 23056 if test x"$ac_file" != x-; then 23057 mv $tmp/out $ac_file 23058 else 23059 cat $tmp/out 23060 rm -f $tmp/out 23061 fi 23062 23063done 23064_ACEOF 23065cat >>$CONFIG_STATUS <<\_ACEOF 23066 23067# 23068# CONFIG_COMMANDS section. 23069# 23070for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 23071 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 23072 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 23073 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 23074$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23075 X"$ac_dest" : 'X\(//\)[^/]' \| \ 23076 X"$ac_dest" : 'X\(//\)$' \| \ 23077 X"$ac_dest" : 'X\(/\)' \| \ 23078 . : '\(.\)' 2>/dev/null || 23079echo X"$ac_dest" | 23080 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23081 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23082 /^X\(\/\/\)$/{ s//\1/; q; } 23083 /^X\(\/\).*/{ s//\1/; q; } 23084 s/.*/./; q'` 23085 { if $as_mkdir_p; then 23086 mkdir -p "$ac_dir" 23087 else 23088 as_dir="$ac_dir" 23089 as_dirs= 23090 while test ! -d "$as_dir"; do 23091 as_dirs="$as_dir $as_dirs" 23092 as_dir=`(dirname "$as_dir") 2>/dev/null || 23093$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23094 X"$as_dir" : 'X\(//\)[^/]' \| \ 23095 X"$as_dir" : 'X\(//\)$' \| \ 23096 X"$as_dir" : 'X\(/\)' \| \ 23097 . : '\(.\)' 2>/dev/null || 23098echo X"$as_dir" | 23099 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23100 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23101 /^X\(\/\/\)$/{ s//\1/; q; } 23102 /^X\(\/\).*/{ s//\1/; q; } 23103 s/.*/./; q'` 23104 done 23105 test ! -n "$as_dirs" || mkdir $as_dirs 23106 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 23107echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 23108 { (exit 1); exit 1; }; }; } 23109 23110 ac_builddir=. 23111 23112if test "$ac_dir" != .; then 23113 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 23114 # A "../" for each directory in $ac_dir_suffix. 23115 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 23116else 23117 ac_dir_suffix= ac_top_builddir= 23118fi 23119 23120case $srcdir in 23121 .) # No --srcdir option. We are building in place. 23122 ac_srcdir=. 23123 if test -z "$ac_top_builddir"; then 23124 ac_top_srcdir=. 23125 else 23126 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 23127 fi ;; 23128 [\\/]* | ?:[\\/]* ) # Absolute path. 23129 ac_srcdir=$srcdir$ac_dir_suffix; 23130 ac_top_srcdir=$srcdir ;; 23131 *) # Relative path. 23132 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 23133 ac_top_srcdir=$ac_top_builddir$srcdir ;; 23134esac 23135 23136# Do not use `cd foo && pwd` to compute absolute paths, because 23137# the directories may not exist. 23138case `pwd` in 23139.) ac_abs_builddir="$ac_dir";; 23140*) 23141 case "$ac_dir" in 23142 .) ac_abs_builddir=`pwd`;; 23143 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 23144 *) ac_abs_builddir=`pwd`/"$ac_dir";; 23145 esac;; 23146esac 23147case $ac_abs_builddir in 23148.) ac_abs_top_builddir=${ac_top_builddir}.;; 23149*) 23150 case ${ac_top_builddir}. in 23151 .) ac_abs_top_builddir=$ac_abs_builddir;; 23152 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 23153 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 23154 esac;; 23155esac 23156case $ac_abs_builddir in 23157.) ac_abs_srcdir=$ac_srcdir;; 23158*) 23159 case $ac_srcdir in 23160 .) ac_abs_srcdir=$ac_abs_builddir;; 23161 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 23162 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 23163 esac;; 23164esac 23165case $ac_abs_builddir in 23166.) ac_abs_top_srcdir=$ac_top_srcdir;; 23167*) 23168 case $ac_top_srcdir in 23169 .) ac_abs_top_srcdir=$ac_abs_builddir;; 23170 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 23171 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 23172 esac;; 23173esac 23174 23175 23176 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 23177echo "$as_me: executing $ac_dest commands" >&6;} 23178 case $ac_dest in 23179 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 23180 # Strip MF so we end up with the name of the file. 23181 mf=`echo "$mf" | sed -e 's/:.*$//'` 23182 # Check whether this is an Automake generated Makefile or not. 23183 # We used to match only the files named `Makefile.in', but 23184 # some people rename them; so instead we look at the file content. 23185 # Grep'ing the first line is not enough: some people post-process 23186 # each Makefile.in and add a new line on top of each file to say so. 23187 # So let's grep whole file. 23188 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 23189 dirpart=`(dirname "$mf") 2>/dev/null || 23190$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23191 X"$mf" : 'X\(//\)[^/]' \| \ 23192 X"$mf" : 'X\(//\)$' \| \ 23193 X"$mf" : 'X\(/\)' \| \ 23194 . : '\(.\)' 2>/dev/null || 23195echo X"$mf" | 23196 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23197 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23198 /^X\(\/\/\)$/{ s//\1/; q; } 23199 /^X\(\/\).*/{ s//\1/; q; } 23200 s/.*/./; q'` 23201 else 23202 continue 23203 fi 23204 # Extract the definition of DEPDIR, am__include, and am__quote 23205 # from the Makefile without running `make'. 23206 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 23207 test -z "$DEPDIR" && continue 23208 am__include=`sed -n 's/^am__include = //p' < "$mf"` 23209 test -z "am__include" && continue 23210 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 23211 # When using ansi2knr, U may be empty or an underscore; expand it 23212 U=`sed -n 's/^U = //p' < "$mf"` 23213 # Find all dependency output files, they are included files with 23214 # $(DEPDIR) in their names. We invoke sed twice because it is the 23215 # simplest approach to changing $(DEPDIR) to its actual value in the 23216 # expansion. 23217 for file in `sed -n " 23218 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 23219 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 23220 # Make sure the directory exists. 23221 test -f "$dirpart/$file" && continue 23222 fdir=`(dirname "$file") 2>/dev/null || 23223$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23224 X"$file" : 'X\(//\)[^/]' \| \ 23225 X"$file" : 'X\(//\)$' \| \ 23226 X"$file" : 'X\(/\)' \| \ 23227 . : '\(.\)' 2>/dev/null || 23228echo X"$file" | 23229 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23230 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23231 /^X\(\/\/\)$/{ s//\1/; q; } 23232 /^X\(\/\).*/{ s//\1/; q; } 23233 s/.*/./; q'` 23234 { if $as_mkdir_p; then 23235 mkdir -p $dirpart/$fdir 23236 else 23237 as_dir=$dirpart/$fdir 23238 as_dirs= 23239 while test ! -d "$as_dir"; do 23240 as_dirs="$as_dir $as_dirs" 23241 as_dir=`(dirname "$as_dir") 2>/dev/null || 23242$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23243 X"$as_dir" : 'X\(//\)[^/]' \| \ 23244 X"$as_dir" : 'X\(//\)$' \| \ 23245 X"$as_dir" : 'X\(/\)' \| \ 23246 . : '\(.\)' 2>/dev/null || 23247echo X"$as_dir" | 23248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23249 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23250 /^X\(\/\/\)$/{ s//\1/; q; } 23251 /^X\(\/\).*/{ s//\1/; q; } 23252 s/.*/./; q'` 23253 done 23254 test ! -n "$as_dirs" || mkdir $as_dirs 23255 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 23256echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} 23257 { (exit 1); exit 1; }; }; } 23258 23259 # echo "creating $dirpart/$file" 23260 echo '# dummy' > "$dirpart/$file" 23261 done 23262done 23263 ;; 23264 esac 23265done 23266_ACEOF 23267 23268cat >>$CONFIG_STATUS <<\_ACEOF 23269 23270{ (exit 0); exit 0; } 23271_ACEOF 23272chmod +x $CONFIG_STATUS 23273ac_clean_files=$ac_clean_files_save 23274 23275 23276# configure is writing to config.log, and then calls config.status. 23277# config.status does its own redirection, appending to config.log. 23278# Unfortunately, on DOS this fails, as config.log is still kept open 23279# by configure, so config.status won't be able to write to it; its 23280# output is simply discarded. So we exec the FD to /dev/null, 23281# effectively closing config.log, so it can be properly (re)opened and 23282# appended to by config.status. When coming back to configure, we 23283# need to make the FD available again. 23284if test "$no_create" != yes; then 23285 ac_cs_success=: 23286 ac_config_status_args= 23287 test "$silent" = yes && 23288 ac_config_status_args="$ac_config_status_args --quiet" 23289 exec 5>/dev/null 23290 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23291 exec 5>>config.log 23292 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23293 # would make configure fail if this is the last instruction. 23294 $ac_cs_success || { (exit 1); exit 1; } 23295fi 23296 23297# 23298# CONFIG_SUBDIRS section. 23299# 23300if test "$no_recursion" != yes; then 23301 23302 # Remove --cache-file and --srcdir arguments so they do not pile up. 23303 ac_sub_configure_args= 23304 ac_prev= 23305 for ac_arg in $ac_configure_args; do 23306 if test -n "$ac_prev"; then 23307 ac_prev= 23308 continue 23309 fi 23310 case $ac_arg in 23311 -cache-file | --cache-file | --cache-fil | --cache-fi \ 23312 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 23313 ac_prev=cache_file ;; 23314 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 23315 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 23316 | --c=*) 23317 ;; 23318 --config-cache | -C) 23319 ;; 23320 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 23321 ac_prev=srcdir ;; 23322 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 23323 ;; 23324 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 23325 ac_prev=prefix ;; 23326 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 23327 ;; 23328 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; 23329 esac 23330 done 23331 23332 # Always prepend --prefix to ensure using the same prefix 23333 # in subdir configurations. 23334 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" 23335 23336 ac_popdir=`pwd` 23337 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 23338 23339 # Do not complain, so a configure script can configure whichever 23340 # parts of a large source tree are present. 23341 test -d $srcdir/$ac_dir || continue 23342 23343 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 23344echo "$as_me: configuring in $ac_dir" >&6;} 23345 { if $as_mkdir_p; then 23346 mkdir -p "$ac_dir" 23347 else 23348 as_dir="$ac_dir" 23349 as_dirs= 23350 while test ! -d "$as_dir"; do 23351 as_dirs="$as_dir $as_dirs" 23352 as_dir=`(dirname "$as_dir") 2>/dev/null || 23353$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23354 X"$as_dir" : 'X\(//\)[^/]' \| \ 23355 X"$as_dir" : 'X\(//\)$' \| \ 23356 X"$as_dir" : 'X\(/\)' \| \ 23357 . : '\(.\)' 2>/dev/null || 23358echo X"$as_dir" | 23359 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23360 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23361 /^X\(\/\/\)$/{ s//\1/; q; } 23362 /^X\(\/\).*/{ s//\1/; q; } 23363 s/.*/./; q'` 23364 done 23365 test ! -n "$as_dirs" || mkdir $as_dirs 23366 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 23367echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 23368 { (exit 1); exit 1; }; }; } 23369 23370 ac_builddir=. 23371 23372if test "$ac_dir" != .; then 23373 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 23374 # A "../" for each directory in $ac_dir_suffix. 23375 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 23376else 23377 ac_dir_suffix= ac_top_builddir= 23378fi 23379 23380case $srcdir in 23381 .) # No --srcdir option. We are building in place. 23382 ac_srcdir=. 23383 if test -z "$ac_top_builddir"; then 23384 ac_top_srcdir=. 23385 else 23386 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 23387 fi ;; 23388 [\\/]* | ?:[\\/]* ) # Absolute path. 23389 ac_srcdir=$srcdir$ac_dir_suffix; 23390 ac_top_srcdir=$srcdir ;; 23391 *) # Relative path. 23392 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 23393 ac_top_srcdir=$ac_top_builddir$srcdir ;; 23394esac 23395 23396# Do not use `cd foo && pwd` to compute absolute paths, because 23397# the directories may not exist. 23398case `pwd` in 23399.) ac_abs_builddir="$ac_dir";; 23400*) 23401 case "$ac_dir" in 23402 .) ac_abs_builddir=`pwd`;; 23403 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 23404 *) ac_abs_builddir=`pwd`/"$ac_dir";; 23405 esac;; 23406esac 23407case $ac_abs_builddir in 23408.) ac_abs_top_builddir=${ac_top_builddir}.;; 23409*) 23410 case ${ac_top_builddir}. in 23411 .) ac_abs_top_builddir=$ac_abs_builddir;; 23412 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 23413 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 23414 esac;; 23415esac 23416case $ac_abs_builddir in 23417.) ac_abs_srcdir=$ac_srcdir;; 23418*) 23419 case $ac_srcdir in 23420 .) ac_abs_srcdir=$ac_abs_builddir;; 23421 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 23422 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 23423 esac;; 23424esac 23425case $ac_abs_builddir in 23426.) ac_abs_top_srcdir=$ac_top_srcdir;; 23427*) 23428 case $ac_top_srcdir in 23429 .) ac_abs_top_srcdir=$ac_abs_builddir;; 23430 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 23431 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 23432 esac;; 23433esac 23434 23435 23436 cd $ac_dir 23437 23438 # Check for guested configure; otherwise get Cygnus style configure. 23439 if test -f $ac_srcdir/configure.gnu; then 23440 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" 23441 elif test -f $ac_srcdir/configure; then 23442 ac_sub_configure="$SHELL '$ac_srcdir/configure'" 23443 elif test -f $ac_srcdir/configure.in; then 23444 ac_sub_configure=$ac_configure 23445 else 23446 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 23447echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 23448 ac_sub_configure= 23449 fi 23450 23451 # The recursion is here. 23452 if test -n "$ac_sub_configure"; then 23453 # Make the cache file name correct relative to the subdirectory. 23454 case $cache_file in 23455 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 23456 *) # Relative path. 23457 ac_sub_cache_file=$ac_top_builddir$cache_file ;; 23458 esac 23459 23460 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 23461echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 23462 # The eval makes quoting arguments work. 23463 eval $ac_sub_configure $ac_sub_configure_args \ 23464 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || 23465 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 23466echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} 23467 { (exit 1); exit 1; }; } 23468 fi 23469 23470 cd $ac_popdir 23471 done 23472fi 23473 23474 23475 if test x"$coin_vpath_link_files" = x; then : ; else 23476 lnkcmd="$coin_link_input_cmd" 23477 if test "$lnkcmd" = cp; then 23478 { echo "$as_me:$LINENO: Copying data files for VPATH configuration" >&5 23479echo "$as_me: Copying data files for VPATH configuration" >&6;} 23480 else 23481 { echo "$as_me:$LINENO: Creating VPATH links for data files" >&5 23482echo "$as_me: Creating VPATH links for data files" >&6;} 23483 fi 23484 for file in $coin_vpath_link_files; do 23485 dir=`(dirname "./$file") 2>/dev/null || 23486$as_expr X"./$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23487 X"./$file" : 'X\(//\)[^/]' \| \ 23488 X"./$file" : 'X\(//\)$' \| \ 23489 X"./$file" : 'X\(/\)' \| \ 23490 . : '\(.\)' 2>/dev/null || 23491echo X"./$file" | 23492 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23493 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23494 /^X\(\/\/\)$/{ s//\1/; q; } 23495 /^X\(\/\).*/{ s//\1/; q; } 23496 s/.*/./; q'` 23497 if test -d $dir; then : ; else 23498 { if $as_mkdir_p; then 23499 mkdir -p $dir 23500 else 23501 as_dir=$dir 23502 as_dirs= 23503 while test ! -d "$as_dir"; do 23504 as_dirs="$as_dir $as_dirs" 23505 as_dir=`(dirname "$as_dir") 2>/dev/null || 23506$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23507 X"$as_dir" : 'X\(//\)[^/]' \| \ 23508 X"$as_dir" : 'X\(//\)$' \| \ 23509 X"$as_dir" : 'X\(/\)' \| \ 23510 . : '\(.\)' 2>/dev/null || 23511echo X"$as_dir" | 23512 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23513 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23514 /^X\(\/\/\)$/{ s//\1/; q; } 23515 /^X\(\/\).*/{ s//\1/; q; } 23516 s/.*/./; q'` 23517 done 23518 test ! -n "$as_dirs" || mkdir $as_dirs 23519 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dir" >&5 23520echo "$as_me: error: cannot create directory $dir" >&2;} 23521 { (exit 1); exit 1; }; }; } 23522 23523 fi 23524 rm -f $file 23525 $lnkcmd $abs_source_dir/$file $file 23526 done 23527 fi 23528 23529 { echo "$as_me:$LINENO: In case of trouble, first consult the troubleshooting page at https://projects.coin-or.org/BuildTools/wiki/user-troubleshooting" >&5 23530echo "$as_me: In case of trouble, first consult the troubleshooting page at https://projects.coin-or.org/BuildTools/wiki/user-troubleshooting" >&6;} 23531 if test x$coin_projectdir = xyes; then 23532 { echo "$as_me:$LINENO: Configuration of $PACKAGE_NAME successful" >&5 23533echo "$as_me: Configuration of $PACKAGE_NAME successful" >&6;} 23534 else 23535 { echo "$as_me:$LINENO: Main configuration of $PACKAGE_NAME successful" >&5 23536echo "$as_me: Main configuration of $PACKAGE_NAME successful" >&6;} 23537 fi 23538else 23539 { echo "$as_me:$LINENO: No configuration of $PACKAGE_NAME necessary" >&5 23540echo "$as_me: No configuration of $PACKAGE_NAME necessary" >&6;} 23541fi 23542 23543 23544