1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.59 for ThirdPartyASL 1.4.3. 4# 5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>. 6# 7# Copyright (C) 2003 Free Software Foundation, Inc. 8# This configure script is free software; the Free Software Foundation 9# gives unlimited permission to copy, distribute and modify it. 10# 11# 12# Copyright 2006, 2007, 2009 International Business Machines and others. 13# All Rights Reserved. 14# This file is part of the open source package Coin which is distributed 15# under the Eclipse Public License. 16## --------------------- ## 17## M4sh Initialization. ## 18## --------------------- ## 19 20# Be Bourne compatible 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 22 emulate sh 23 NULLCMD=: 24 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 28 set -o posix 29fi 30DUALCASE=1; export DUALCASE # for MKS sh 31 32# Support unset when possible. 33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 34 as_unset=unset 35else 36 as_unset=false 37fi 38 39 40# Work around bugs in pre-3.0 UWIN ksh. 41$as_unset ENV MAIL MAILPATH 42PS1='$ ' 43PS2='> ' 44PS4='+ ' 45 46# NLS nuisances. 47for as_var in \ 48 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 49 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 50 LC_TELEPHONE LC_TIME 51do 52 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 53 eval $as_var=C; export $as_var 54 else 55 $as_unset $as_var 56 fi 57done 58 59# Required to use basename. 60if expr a : '\(a\)' >/dev/null 2>&1; then 61 as_expr=expr 62else 63 as_expr=false 64fi 65 66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 67 as_basename=basename 68else 69 as_basename=false 70fi 71 72 73# Name of the executable. 74as_me=`$as_basename "$0" || 75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 76 X"$0" : 'X\(//\)$' \| \ 77 X"$0" : 'X\(/\)$' \| \ 78 . : '\(.\)' 2>/dev/null || 79echo X/"$0" | 80 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 81 /^X\/\(\/\/\)$/{ s//\1/; q; } 82 /^X\/\(\/\).*/{ s//\1/; q; } 83 s/.*/./; q'` 84 85 86# PATH needs CR, and LINENO needs CR and PATH. 87# Avoid depending upon Character Ranges. 88as_cr_letters='abcdefghijklmnopqrstuvwxyz' 89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 90as_cr_Letters=$as_cr_letters$as_cr_LETTERS 91as_cr_digits='0123456789' 92as_cr_alnum=$as_cr_Letters$as_cr_digits 93 94# The user is always right. 95if test "${PATH_SEPARATOR+set}" != set; then 96 echo "#! /bin/sh" >conf$$.sh 97 echo "exit 0" >>conf$$.sh 98 chmod +x conf$$.sh 99 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 100 PATH_SEPARATOR=';' 101 else 102 PATH_SEPARATOR=: 103 fi 104 rm -f conf$$.sh 105fi 106 107 108 as_lineno_1=$LINENO 109 as_lineno_2=$LINENO 110 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 111 test "x$as_lineno_1" != "x$as_lineno_2" && 112 test "x$as_lineno_3" = "x$as_lineno_2" || { 113 # Find who we are. Look in the path if we contain no path at all 114 # relative or not. 115 case $0 in 116 *[\\/]* ) as_myself=$0 ;; 117 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 118for as_dir in $PATH 119do 120 IFS=$as_save_IFS 121 test -z "$as_dir" && as_dir=. 122 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 123done 124 125 ;; 126 esac 127 # We did not find ourselves, most probably we were run as `sh COMMAND' 128 # in which case we are not to be found in the path. 129 if test "x$as_myself" = x; then 130 as_myself=$0 131 fi 132 if test ! -f "$as_myself"; then 133 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 134 { (exit 1); exit 1; }; } 135 fi 136 case $CONFIG_SHELL in 137 '') 138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 140do 141 IFS=$as_save_IFS 142 test -z "$as_dir" && as_dir=. 143 for as_base in sh bash ksh sh5; do 144 case $as_dir in 145 /*) 146 if ("$as_dir/$as_base" -c ' 147 as_lineno_1=$LINENO 148 as_lineno_2=$LINENO 149 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 150 test "x$as_lineno_1" != "x$as_lineno_2" && 151 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 152 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 153 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 154 CONFIG_SHELL=$as_dir/$as_base 155 export CONFIG_SHELL 156 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 157 fi;; 158 esac 159 done 160done 161;; 162 esac 163 164 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 165 # uniformly replaced by the line number. The first 'sed' inserts a 166 # line-number line before each line; the second 'sed' does the real 167 # work. The second script uses 'N' to pair each line-number line 168 # with the numbered line, and appends trailing '-' during 169 # substitution so that $LINENO is not a special case at line end. 170 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 171 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 172 sed '=' <$as_myself | 173 sed ' 174 N 175 s,$,-, 176 : loop 177 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 178 t loop 179 s,-$,, 180 s,^['$as_cr_digits']*\n,, 181 ' >$as_me.lineno && 182 chmod +x $as_me.lineno || 183 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 184 { (exit 1); exit 1; }; } 185 186 # Don't try to exec as it changes $[0], causing all sort of problems 187 # (the dirname of $[0] is not the place where we might find the 188 # original and so on. Autoconf is especially sensible to this). 189 . ./$as_me.lineno 190 # Exit status is that of the last command. 191 exit 192} 193 194 195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 196 *c*,-n*) ECHO_N= ECHO_C=' 197' ECHO_T=' ' ;; 198 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 199 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 200esac 201 202if expr a : '\(a\)' >/dev/null 2>&1; then 203 as_expr=expr 204else 205 as_expr=false 206fi 207 208rm -f conf$$ conf$$.exe conf$$.file 209echo >conf$$.file 210if ln -s conf$$.file conf$$ 2>/dev/null; then 211 # We could just check for DJGPP; but this test a) works b) is more generic 212 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 213 if test -f conf$$.exe; then 214 # Don't use ln at all; we don't have any links 215 as_ln_s='cp -p' 216 else 217 as_ln_s='ln -s' 218 fi 219elif ln conf$$.file conf$$ 2>/dev/null; then 220 as_ln_s=ln 221else 222 as_ln_s='cp -p' 223fi 224rm -f conf$$ conf$$.exe conf$$.file 225 226if mkdir -p . 2>/dev/null; then 227 as_mkdir_p=: 228else 229 test -d ./-p && rmdir ./-p 230 as_mkdir_p=false 231fi 232 233as_executable_p="test -f" 234 235# Sed expression to map a string onto a valid CPP name. 236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 237 238# Sed expression to map a string onto a valid variable name. 239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 240 241 242# IFS 243# We need space, tab and new line, in precisely that order. 244as_nl=' 245' 246IFS=" $as_nl" 247 248# CDPATH. 249$as_unset CDPATH 250 251 252 253# Check that we are running under the correct shell. 254SHELL=${CONFIG_SHELL-/bin/sh} 255 256case X$ECHO in 257X*--fallback-echo) 258 # Remove one level of quotation (which was required for Make). 259 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 260 ;; 261esac 262 263echo=${ECHO-echo} 264if test "X$1" = X--no-reexec; then 265 # Discard the --no-reexec flag, and continue. 266 shift 267elif test "X$1" = X--fallback-echo; then 268 # Avoid inline document here, it may be left over 269 : 270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 271 # Yippee, $echo works! 272 : 273else 274 # Restart under the correct shell. 275 exec $SHELL "$0" --no-reexec ${1+"$@"} 276fi 277 278if test "X$1" = X--fallback-echo; then 279 # used as fallback echo 280 shift 281 cat <<EOF 282$* 283EOF 284 exit 0 285fi 286 287# The HP-UX ksh and POSIX shell print the target directory to stdout 288# if CDPATH is set. 289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 290 291if test -z "$ECHO"; then 292if test "X${echo_test_string+set}" != Xset; then 293# find a string as large as possible, as long as the shell can cope with it 294 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 295 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 296 if (echo_test_string=`eval $cmd`) 2>/dev/null && 297 echo_test_string=`eval $cmd` && 298 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 299 then 300 break 301 fi 302 done 303fi 304 305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 306 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 307 test "X$echo_testing_string" = "X$echo_test_string"; then 308 : 309else 310 # The Solaris, AIX, and Digital Unix default echo programs unquote 311 # backslashes. This makes it impossible to quote backslashes using 312 # echo "$something" | sed 's/\\/\\\\/g' 313 # 314 # So, first we look for a working echo in the user's PATH. 315 316 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 317 for dir in $PATH /usr/ucb; do 318 IFS="$lt_save_ifs" 319 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 320 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 321 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 322 test "X$echo_testing_string" = "X$echo_test_string"; then 323 echo="$dir/echo" 324 break 325 fi 326 done 327 IFS="$lt_save_ifs" 328 329 if test "X$echo" = Xecho; then 330 # We didn't find a better echo, so look for alternatives. 331 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 332 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 333 test "X$echo_testing_string" = "X$echo_test_string"; then 334 # This shell has a builtin print -r that does the trick. 335 echo='print -r' 336 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 337 test "X$CONFIG_SHELL" != X/bin/ksh; then 338 # If we have ksh, try running configure again with it. 339 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 340 export ORIGINAL_CONFIG_SHELL 341 CONFIG_SHELL=/bin/ksh 342 export CONFIG_SHELL 343 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 344 else 345 # Try using printf. 346 echo='printf %s\n' 347 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 348 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 349 test "X$echo_testing_string" = "X$echo_test_string"; then 350 # Cool, printf works 351 : 352 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 353 test "X$echo_testing_string" = 'X\t' && 354 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 355 test "X$echo_testing_string" = "X$echo_test_string"; then 356 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 357 export CONFIG_SHELL 358 SHELL="$CONFIG_SHELL" 359 export SHELL 360 echo="$CONFIG_SHELL $0 --fallback-echo" 361 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 362 test "X$echo_testing_string" = 'X\t' && 363 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 364 test "X$echo_testing_string" = "X$echo_test_string"; then 365 echo="$CONFIG_SHELL $0 --fallback-echo" 366 else 367 # maybe with a smaller string... 368 prev=: 369 370 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 371 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 372 then 373 break 374 fi 375 prev="$cmd" 376 done 377 378 if test "$prev" != 'sed 50q "$0"'; then 379 echo_test_string=`eval $prev` 380 export echo_test_string 381 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 382 else 383 # Oops. We lost completely, so just stick with echo. 384 echo=echo 385 fi 386 fi 387 fi 388 fi 389fi 390fi 391 392# Copy echo and quote the copy suitably for passing to libtool from 393# the Makefile, instead of quoting the original, which is used later. 394ECHO=$echo 395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 396 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 397fi 398 399 400 401 402tagnames=${tagnames+${tagnames},}CXX 403 404tagnames=${tagnames+${tagnames},}F77 405 406# Name of the host. 407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 408# so uname gets run too. 409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 410 411exec 6>&1 412 413# 414# Initializations. 415# 416ac_default_prefix=/usr/local 417ac_config_libobj_dir=. 418cross_compiling=no 419subdirs= 420MFLAGS= 421MAKEFLAGS= 422SHELL=${CONFIG_SHELL-/bin/sh} 423 424# Maximum number of lines to put in a shell here document. 425# This variable seems obsolete. It should probably be removed, and 426# only ac_max_sed_lines should be used. 427: ${ac_max_here_lines=38} 428 429# Identity of this package. 430PACKAGE_NAME='ThirdPartyASL' 431PACKAGE_TARNAME='thirdpartyasl' 432PACKAGE_VERSION='1.4.3' 433PACKAGE_STRING='ThirdPartyASL 1.4.3' 434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket' 435 436ac_unique_file="solvers/asl.h" 437ac_default_prefix=`pwd` 438# Factoring default headers for most tests. 439ac_includes_default="\ 440#include <stdio.h> 441#if HAVE_SYS_TYPES_H 442# include <sys/types.h> 443#endif 444#if HAVE_SYS_STAT_H 445# include <sys/stat.h> 446#endif 447#if STDC_HEADERS 448# include <stdlib.h> 449# include <stddef.h> 450#else 451# if HAVE_STDLIB_H 452# include <stdlib.h> 453# endif 454#endif 455#if HAVE_STRING_H 456# if !STDC_HEADERS && HAVE_MEMORY_H 457# include <memory.h> 458# endif 459# include <string.h> 460#endif 461#if HAVE_STRINGS_H 462# include <strings.h> 463#endif 464#if HAVE_INTTYPES_H 465# include <inttypes.h> 466#else 467# if HAVE_STDINT_H 468# include <stdint.h> 469# endif 470#endif 471#if HAVE_UNISTD_H 472# include <unistd.h> 473#endif" 474 475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion ASL_SVN_REV EGREP LN_S 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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag dos2unix RPATH_FLAGS DEPENDENCY_LINKING_TRUE DEPENDENCY_LINKING_FALSE LT_LDFLAGS PKG_CONFIG ac_ct_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED AMPLSOLVER_A HOST_TYPE HOST_IS_CYGWIN_TRUE HOST_IS_CYGWIN_FALSE ASLMAKEFLAGS ASL_PCLIBS LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS' 476ac_subst_files='' 477 478# Initialize some variables set by options. 479ac_init_help= 480ac_init_version=false 481# The variables have the same names as the options, with 482# dashes changed to underlines. 483cache_file=/dev/null 484exec_prefix=NONE 485no_create= 486no_recursion= 487prefix=NONE 488program_prefix=NONE 489program_suffix=NONE 490program_transform_name=s,x,x, 491silent= 492site= 493srcdir= 494verbose= 495x_includes=NONE 496x_libraries=NONE 497 498# Installation directory options. 499# These are left unexpanded so users can "make install exec_prefix=/foo" 500# and all the variables that are supposed to be based on exec_prefix 501# by default will actually change. 502# Use braces instead of parens because sh, perl, etc. also accept them. 503bindir='${exec_prefix}/bin' 504sbindir='${exec_prefix}/sbin' 505libexecdir='${exec_prefix}/libexec' 506datadir='${prefix}/share' 507sysconfdir='${prefix}/etc' 508sharedstatedir='${prefix}/com' 509localstatedir='${prefix}/var' 510libdir='${exec_prefix}/lib' 511includedir='${prefix}/include' 512oldincludedir='/usr/include' 513infodir='${prefix}/info' 514mandir='${prefix}/man' 515 516ac_prev= 517for ac_option 518do 519 # If the previous option needs an argument, assign it. 520 if test -n "$ac_prev"; then 521 eval "$ac_prev=\$ac_option" 522 ac_prev= 523 continue 524 fi 525 526 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 527 528 # Accept the important Cygnus configure options, so we can diagnose typos. 529 530 case $ac_option in 531 532 -bindir | --bindir | --bindi | --bind | --bin | --bi) 533 ac_prev=bindir ;; 534 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 535 bindir=$ac_optarg ;; 536 537 -build | --build | --buil | --bui | --bu) 538 ac_prev=build_alias ;; 539 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 540 build_alias=$ac_optarg ;; 541 542 -cache-file | --cache-file | --cache-fil | --cache-fi \ 543 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 544 ac_prev=cache_file ;; 545 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 546 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 547 cache_file=$ac_optarg ;; 548 549 --config-cache | -C) 550 cache_file=config.cache ;; 551 552 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 553 ac_prev=datadir ;; 554 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 555 | --da=*) 556 datadir=$ac_optarg ;; 557 558 -disable-* | --disable-*) 559 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 560 # Reject names that are not valid shell variable names. 561 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 562 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 563 { (exit 1); exit 1; }; } 564 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 565 eval "enable_$ac_feature=no" ;; 566 567 -enable-* | --enable-*) 568 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 569 # Reject names that are not valid shell variable names. 570 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 571 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 572 { (exit 1); exit 1; }; } 573 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 574 case $ac_option in 575 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 576 *) ac_optarg=yes ;; 577 esac 578 eval "enable_$ac_feature='$ac_optarg'" ;; 579 580 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 581 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 582 | --exec | --exe | --ex) 583 ac_prev=exec_prefix ;; 584 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 585 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 586 | --exec=* | --exe=* | --ex=*) 587 exec_prefix=$ac_optarg ;; 588 589 -gas | --gas | --ga | --g) 590 # Obsolete; use --with-gas. 591 with_gas=yes ;; 592 593 -help | --help | --hel | --he | -h) 594 ac_init_help=long ;; 595 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 596 ac_init_help=recursive ;; 597 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 598 ac_init_help=short ;; 599 600 -host | --host | --hos | --ho) 601 ac_prev=host_alias ;; 602 -host=* | --host=* | --hos=* | --ho=*) 603 host_alias=$ac_optarg ;; 604 605 -includedir | --includedir | --includedi | --included | --include \ 606 | --includ | --inclu | --incl | --inc) 607 ac_prev=includedir ;; 608 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 609 | --includ=* | --inclu=* | --incl=* | --inc=*) 610 includedir=$ac_optarg ;; 611 612 -infodir | --infodir | --infodi | --infod | --info | --inf) 613 ac_prev=infodir ;; 614 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 615 infodir=$ac_optarg ;; 616 617 -libdir | --libdir | --libdi | --libd) 618 ac_prev=libdir ;; 619 -libdir=* | --libdir=* | --libdi=* | --libd=*) 620 libdir=$ac_optarg ;; 621 622 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 623 | --libexe | --libex | --libe) 624 ac_prev=libexecdir ;; 625 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 626 | --libexe=* | --libex=* | --libe=*) 627 libexecdir=$ac_optarg ;; 628 629 -localstatedir | --localstatedir | --localstatedi | --localstated \ 630 | --localstate | --localstat | --localsta | --localst \ 631 | --locals | --local | --loca | --loc | --lo) 632 ac_prev=localstatedir ;; 633 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 634 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 635 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 636 localstatedir=$ac_optarg ;; 637 638 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 639 ac_prev=mandir ;; 640 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 641 mandir=$ac_optarg ;; 642 643 -nfp | --nfp | --nf) 644 # Obsolete; use --without-fp. 645 with_fp=no ;; 646 647 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 648 | --no-cr | --no-c | -n) 649 no_create=yes ;; 650 651 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 652 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 653 no_recursion=yes ;; 654 655 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 656 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 657 | --oldin | --oldi | --old | --ol | --o) 658 ac_prev=oldincludedir ;; 659 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 660 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 661 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 662 oldincludedir=$ac_optarg ;; 663 664 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 665 ac_prev=prefix ;; 666 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 667 prefix=$ac_optarg ;; 668 669 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 670 | --program-pre | --program-pr | --program-p) 671 ac_prev=program_prefix ;; 672 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 673 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 674 program_prefix=$ac_optarg ;; 675 676 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 677 | --program-suf | --program-su | --program-s) 678 ac_prev=program_suffix ;; 679 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 680 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 681 program_suffix=$ac_optarg ;; 682 683 -program-transform-name | --program-transform-name \ 684 | --program-transform-nam | --program-transform-na \ 685 | --program-transform-n | --program-transform- \ 686 | --program-transform | --program-transfor \ 687 | --program-transfo | --program-transf \ 688 | --program-trans | --program-tran \ 689 | --progr-tra | --program-tr | --program-t) 690 ac_prev=program_transform_name ;; 691 -program-transform-name=* | --program-transform-name=* \ 692 | --program-transform-nam=* | --program-transform-na=* \ 693 | --program-transform-n=* | --program-transform-=* \ 694 | --program-transform=* | --program-transfor=* \ 695 | --program-transfo=* | --program-transf=* \ 696 | --program-trans=* | --program-tran=* \ 697 | --progr-tra=* | --program-tr=* | --program-t=*) 698 program_transform_name=$ac_optarg ;; 699 700 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 701 | -silent | --silent | --silen | --sile | --sil) 702 silent=yes ;; 703 704 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 705 ac_prev=sbindir ;; 706 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 707 | --sbi=* | --sb=*) 708 sbindir=$ac_optarg ;; 709 710 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 711 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 712 | --sharedst | --shareds | --shared | --share | --shar \ 713 | --sha | --sh) 714 ac_prev=sharedstatedir ;; 715 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 716 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 717 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 718 | --sha=* | --sh=*) 719 sharedstatedir=$ac_optarg ;; 720 721 -site | --site | --sit) 722 ac_prev=site ;; 723 -site=* | --site=* | --sit=*) 724 site=$ac_optarg ;; 725 726 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 727 ac_prev=srcdir ;; 728 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 729 srcdir=$ac_optarg ;; 730 731 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 732 | --syscon | --sysco | --sysc | --sys | --sy) 733 ac_prev=sysconfdir ;; 734 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 735 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 736 sysconfdir=$ac_optarg ;; 737 738 -target | --target | --targe | --targ | --tar | --ta | --t) 739 ac_prev=target_alias ;; 740 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 741 target_alias=$ac_optarg ;; 742 743 -v | -verbose | --verbose | --verbos | --verbo | --verb) 744 verbose=yes ;; 745 746 -version | --version | --versio | --versi | --vers | -V) 747 ac_init_version=: ;; 748 749 -with-* | --with-*) 750 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 751 # Reject names that are not valid shell variable names. 752 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 753 { echo "$as_me: error: invalid package name: $ac_package" >&2 754 { (exit 1); exit 1; }; } 755 ac_package=`echo $ac_package| sed 's/-/_/g'` 756 case $ac_option in 757 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 758 *) ac_optarg=yes ;; 759 esac 760 eval "with_$ac_package='$ac_optarg'" ;; 761 762 -without-* | --without-*) 763 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 764 # Reject names that are not valid shell variable names. 765 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 766 { echo "$as_me: error: invalid package name: $ac_package" >&2 767 { (exit 1); exit 1; }; } 768 ac_package=`echo $ac_package | sed 's/-/_/g'` 769 eval "with_$ac_package=no" ;; 770 771 --x) 772 # Obsolete; use --with-x. 773 with_x=yes ;; 774 775 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 776 | --x-incl | --x-inc | --x-in | --x-i) 777 ac_prev=x_includes ;; 778 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 779 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 780 x_includes=$ac_optarg ;; 781 782 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 783 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 784 ac_prev=x_libraries ;; 785 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 786 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 787 x_libraries=$ac_optarg ;; 788 789 -*) { echo "$as_me: error: unrecognized option: $ac_option 790Try \`$0 --help' for more information." >&2 791 { (exit 1); exit 1; }; } 792 ;; 793 794 *=*) 795 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 796 # Reject names that are not valid shell variable names. 797 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 798 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 799 { (exit 1); exit 1; }; } 800 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 801 eval "$ac_envvar='$ac_optarg'" 802 export $ac_envvar ;; 803 804 *) 805 # FIXME: should be removed in autoconf 3.0. 806 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 807 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 808 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 809 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 810 ;; 811 812 esac 813done 814 815if test -n "$ac_prev"; then 816 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 817 { echo "$as_me: error: missing argument to $ac_option" >&2 818 { (exit 1); exit 1; }; } 819fi 820 821# Be sure to have absolute paths. 822for ac_var in exec_prefix prefix 823do 824 eval ac_val=$`echo $ac_var` 825 case $ac_val in 826 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 827 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 828 { (exit 1); exit 1; }; };; 829 esac 830done 831 832# Be sure to have absolute paths. 833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 834 localstatedir libdir includedir oldincludedir infodir mandir 835do 836 eval ac_val=$`echo $ac_var` 837 case $ac_val in 838 [\\/$]* | ?:[\\/]* ) ;; 839 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 840 { (exit 1); exit 1; }; };; 841 esac 842done 843 844# There might be people who depend on the old broken behavior: `$host' 845# used to hold the argument of --host etc. 846# FIXME: To remove some day. 847build=$build_alias 848host=$host_alias 849target=$target_alias 850 851# FIXME: To remove some day. 852if test "x$host_alias" != x; then 853 if test "x$build_alias" = x; then 854 cross_compiling=maybe 855 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 856 If a cross compiler is detected then cross compile mode will be used." >&2 857 elif test "x$build_alias" != "x$host_alias"; then 858 cross_compiling=yes 859 fi 860fi 861 862ac_tool_prefix= 863test -n "$host_alias" && ac_tool_prefix=$host_alias- 864 865test "$silent" = yes && exec 6>/dev/null 866 867 868# Find the source files, if location was not specified. 869if test -z "$srcdir"; then 870 ac_srcdir_defaulted=yes 871 # Try the directory containing this script, then its parent. 872 ac_confdir=`(dirname "$0") 2>/dev/null || 873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 874 X"$0" : 'X\(//\)[^/]' \| \ 875 X"$0" : 'X\(//\)$' \| \ 876 X"$0" : 'X\(/\)' \| \ 877 . : '\(.\)' 2>/dev/null || 878echo X"$0" | 879 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 880 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 881 /^X\(\/\/\)$/{ s//\1/; q; } 882 /^X\(\/\).*/{ s//\1/; q; } 883 s/.*/./; q'` 884 srcdir=$ac_confdir 885 if test ! -r $srcdir/$ac_unique_file; then 886 srcdir=.. 887 fi 888else 889 ac_srcdir_defaulted=no 890fi 891if test ! -r $srcdir/$ac_unique_file; then 892 if test "$ac_srcdir_defaulted" = yes; then 893 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 894 { (exit 1); exit 1; }; } 895 else 896 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 897 { (exit 1); exit 1; }; } 898 fi 899fi 900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 901 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 902 { (exit 1); exit 1; }; } 903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 904ac_env_build_alias_set=${build_alias+set} 905ac_env_build_alias_value=$build_alias 906ac_cv_env_build_alias_set=${build_alias+set} 907ac_cv_env_build_alias_value=$build_alias 908ac_env_host_alias_set=${host_alias+set} 909ac_env_host_alias_value=$host_alias 910ac_cv_env_host_alias_set=${host_alias+set} 911ac_cv_env_host_alias_value=$host_alias 912ac_env_target_alias_set=${target_alias+set} 913ac_env_target_alias_value=$target_alias 914ac_cv_env_target_alias_set=${target_alias+set} 915ac_cv_env_target_alias_value=$target_alias 916ac_env_CDEFS_set=${CDEFS+set} 917ac_env_CDEFS_value=$CDEFS 918ac_cv_env_CDEFS_set=${CDEFS+set} 919ac_cv_env_CDEFS_value=$CDEFS 920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set} 921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS 922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set} 923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS 924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set} 925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS 926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set} 927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS 928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set} 929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS 930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set} 931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS 932ac_env_CC_set=${CC+set} 933ac_env_CC_value=$CC 934ac_cv_env_CC_set=${CC+set} 935ac_cv_env_CC_value=$CC 936ac_env_CFLAGS_set=${CFLAGS+set} 937ac_env_CFLAGS_value=$CFLAGS 938ac_cv_env_CFLAGS_set=${CFLAGS+set} 939ac_cv_env_CFLAGS_value=$CFLAGS 940ac_env_LDFLAGS_set=${LDFLAGS+set} 941ac_env_LDFLAGS_value=$LDFLAGS 942ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 943ac_cv_env_LDFLAGS_value=$LDFLAGS 944ac_env_CPPFLAGS_set=${CPPFLAGS+set} 945ac_env_CPPFLAGS_value=$CPPFLAGS 946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 947ac_cv_env_CPPFLAGS_value=$CPPFLAGS 948ac_env_MPICC_set=${MPICC+set} 949ac_env_MPICC_value=$MPICC 950ac_cv_env_MPICC_set=${MPICC+set} 951ac_cv_env_MPICC_value=$MPICC 952ac_env_CPP_set=${CPP+set} 953ac_env_CPP_value=$CPP 954ac_cv_env_CPP_set=${CPP+set} 955ac_cv_env_CPP_value=$CPP 956ac_env_CXX_set=${CXX+set} 957ac_env_CXX_value=$CXX 958ac_cv_env_CXX_set=${CXX+set} 959ac_cv_env_CXX_value=$CXX 960ac_env_CXXFLAGS_set=${CXXFLAGS+set} 961ac_env_CXXFLAGS_value=$CXXFLAGS 962ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 963ac_cv_env_CXXFLAGS_value=$CXXFLAGS 964ac_env_CXXCPP_set=${CXXCPP+set} 965ac_env_CXXCPP_value=$CXXCPP 966ac_cv_env_CXXCPP_set=${CXXCPP+set} 967ac_cv_env_CXXCPP_value=$CXXCPP 968ac_env_F77_set=${F77+set} 969ac_env_F77_value=$F77 970ac_cv_env_F77_set=${F77+set} 971ac_cv_env_F77_value=$F77 972ac_env_FFLAGS_set=${FFLAGS+set} 973ac_env_FFLAGS_value=$FFLAGS 974ac_cv_env_FFLAGS_set=${FFLAGS+set} 975ac_cv_env_FFLAGS_value=$FFLAGS 976ac_env_PKG_CONFIG_set=${PKG_CONFIG+set} 977ac_env_PKG_CONFIG_value=$PKG_CONFIG 978ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set} 979ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG 980ac_env_ASLMAKEFLAGS_set=${ASLMAKEFLAGS+set} 981ac_env_ASLMAKEFLAGS_value=$ASLMAKEFLAGS 982ac_cv_env_ASLMAKEFLAGS_set=${ASLMAKEFLAGS+set} 983ac_cv_env_ASLMAKEFLAGS_value=$ASLMAKEFLAGS 984 985# 986# Report the --help message. 987# 988if test "$ac_init_help" = "long"; then 989 # Omit some internal or obsolete options to make the list less imposing. 990 # This message is too long to be a string in the A/UX 3.1 sh. 991 cat <<_ACEOF 992\`configure' configures ThirdPartyASL 1.4.3 to adapt to many kinds of systems. 993 994Usage: $0 [OPTION]... [VAR=VALUE]... 995 996To assign environment variables (e.g., CC, CFLAGS...), specify them as 997VAR=VALUE. See below for descriptions of some of the useful variables. 998 999Defaults for the options are specified in brackets. 1000 1001Configuration: 1002 -h, --help display this help and exit 1003 --help=short display options specific to this package 1004 --help=recursive display the short help of all the included packages 1005 -V, --version display version information and exit 1006 -q, --quiet, --silent do not print \`checking...' messages 1007 --cache-file=FILE cache test results in FILE [disabled] 1008 -C, --config-cache alias for \`--cache-file=config.cache' 1009 -n, --no-create do not create output files 1010 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1011 1012_ACEOF 1013 1014 cat <<_ACEOF 1015Installation directories: 1016 --prefix=PREFIX install architecture-independent files in PREFIX 1017 [$ac_default_prefix] 1018 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1019 [PREFIX] 1020 1021By default, \`make install' will install all the files in 1022\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1023an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1024for instance \`--prefix=\$HOME'. 1025 1026For better control, use the options below. 1027 1028Fine tuning of the installation directories: 1029 --bindir=DIR user executables [EPREFIX/bin] 1030 --sbindir=DIR system admin executables [EPREFIX/sbin] 1031 --libexecdir=DIR program executables [EPREFIX/libexec] 1032 --datadir=DIR read-only architecture-independent data [PREFIX/share] 1033 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1034 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1035 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1036 --libdir=DIR object code libraries [EPREFIX/lib] 1037 --includedir=DIR C header files [PREFIX/include] 1038 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1039 --infodir=DIR info documentation [PREFIX/info] 1040 --mandir=DIR man documentation [PREFIX/man] 1041_ACEOF 1042 1043 cat <<\_ACEOF 1044 1045Program names: 1046 --program-prefix=PREFIX prepend PREFIX to installed program names 1047 --program-suffix=SUFFIX append SUFFIX to installed program names 1048 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1049 1050System types: 1051 --build=BUILD configure for building on BUILD [guessed] 1052 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1053_ACEOF 1054fi 1055 1056if test -n "$ac_init_help"; then 1057 case $ac_init_help in 1058 short | recursive ) echo "Configuration of ThirdPartyASL 1.4.3:";; 1059 esac 1060 cat <<\_ACEOF 1061 1062Optional Features: 1063 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1064 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1065 --enable-debug compile all projects with debug options tests 1066 (implies --disable-shared) 1067 --enable-debug-asl compile project ASL with debug compiler flags 1068 1069 --enable-msvc Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin. 1070 --enable-static[=PKGS] 1071 build static libraries [default=no] 1072 --disable-dependency-tracking speeds up one-time build 1073 --enable-dependency-tracking do not reject slow dependency extractors 1074 --enable-maintainer-mode enable make rules and dependencies not useful 1075 (and sometimes confusing) to the casual installer 1076 --enable-shared[=PKGS] 1077 build shared libraries [default=yes] 1078 --enable-fast-install[=PKGS] 1079 optimize for fast installation [default=yes] 1080 --disable-libtool-lock avoid locking (might break parallel builds) 1081 --disable-dependency-linking 1082 disable linking library dependencies into shared 1083 libraries 1084 --disable-pkg-config disable use of pkg-config (if available) 1085 1086Optional Packages: 1087 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1088 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1089 --with-asl-verbosity specify the debug verbosity level for project ASL 1090 --with-asl-checklevel specify the sanity check level for project ASL 1091 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1092 --with-pic try to use only PIC/non-PIC objects [default=use 1093 both] 1094 --with-tags[=TAGS] 1095 include additional configurations [automatic] 1096 --with-coin-instdir prefix of installation directory for precompiled 1097 COIN packages 1098 1099Some influential environment variables: 1100 CDEFS Additional -D flags to be used when compiling C code. 1101 ADD_CFLAGS Additional C compiler options 1102 DBG_CFLAGS Debug C compiler options 1103 OPT_CFLAGS Optimize C compiler options 1104 CC C compiler command 1105 CFLAGS C compiler flags 1106 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1107 nonstandard directory <lib dir> 1108 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1109 headers in a nonstandard directory <include dir> 1110 MPICC C MPI Compiler 1111 CPP C preprocessor 1112 CXX C++ compiler command 1113 CXXFLAGS C++ compiler flags 1114 CXXCPP C++ preprocessor 1115 F77 Fortran 77 compiler command 1116 FFLAGS Fortran 77 compiler flags 1117 PKG_CONFIG path to pkg-config utility 1118 ASLMAKEFLAGS 1119 Compilation flags necessary for compiling the AMPL solver 1120 library 1121 1122Use these variables to override the choices made by `configure' or to help 1123it to find libraries and programs with nonstandard names/locations. 1124 1125Report bugs to <http://projects.coin-or.org/BuildTools/newticket>. 1126_ACEOF 1127fi 1128 1129if test "$ac_init_help" = "recursive"; then 1130 # If there are subdirs, report their specific --help. 1131 ac_popdir=`pwd` 1132 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1133 test -d $ac_dir || continue 1134 ac_builddir=. 1135 1136if test "$ac_dir" != .; then 1137 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1138 # A "../" for each directory in $ac_dir_suffix. 1139 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 1140else 1141 ac_dir_suffix= ac_top_builddir= 1142fi 1143 1144case $srcdir in 1145 .) # No --srcdir option. We are building in place. 1146 ac_srcdir=. 1147 if test -z "$ac_top_builddir"; then 1148 ac_top_srcdir=. 1149 else 1150 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 1151 fi ;; 1152 [\\/]* | ?:[\\/]* ) # Absolute path. 1153 ac_srcdir=$srcdir$ac_dir_suffix; 1154 ac_top_srcdir=$srcdir ;; 1155 *) # Relative path. 1156 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 1157 ac_top_srcdir=$ac_top_builddir$srcdir ;; 1158esac 1159 1160# Do not use `cd foo && pwd` to compute absolute paths, because 1161# the directories may not exist. 1162case `pwd` in 1163.) ac_abs_builddir="$ac_dir";; 1164*) 1165 case "$ac_dir" in 1166 .) ac_abs_builddir=`pwd`;; 1167 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 1168 *) ac_abs_builddir=`pwd`/"$ac_dir";; 1169 esac;; 1170esac 1171case $ac_abs_builddir in 1172.) ac_abs_top_builddir=${ac_top_builddir}.;; 1173*) 1174 case ${ac_top_builddir}. in 1175 .) ac_abs_top_builddir=$ac_abs_builddir;; 1176 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 1177 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 1178 esac;; 1179esac 1180case $ac_abs_builddir in 1181.) ac_abs_srcdir=$ac_srcdir;; 1182*) 1183 case $ac_srcdir in 1184 .) ac_abs_srcdir=$ac_abs_builddir;; 1185 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 1186 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 1187 esac;; 1188esac 1189case $ac_abs_builddir in 1190.) ac_abs_top_srcdir=$ac_top_srcdir;; 1191*) 1192 case $ac_top_srcdir in 1193 .) ac_abs_top_srcdir=$ac_abs_builddir;; 1194 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 1195 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 1196 esac;; 1197esac 1198 1199 cd $ac_dir 1200 # Check for guested configure; otherwise get Cygnus style configure. 1201 if test -f $ac_srcdir/configure.gnu; then 1202 echo 1203 $SHELL $ac_srcdir/configure.gnu --help=recursive 1204 elif test -f $ac_srcdir/configure; then 1205 echo 1206 $SHELL $ac_srcdir/configure --help=recursive 1207 elif test -f $ac_srcdir/configure.ac || 1208 test -f $ac_srcdir/configure.in; then 1209 echo 1210 $ac_configure --help 1211 else 1212 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1213 fi 1214 cd $ac_popdir 1215 done 1216fi 1217 1218test -n "$ac_init_help" && exit 0 1219if $ac_init_version; then 1220 cat <<\_ACEOF 1221ThirdPartyASL configure 1.4.3 1222generated by GNU Autoconf 2.59 1223 1224Copyright (C) 2003 Free Software Foundation, Inc. 1225This configure script is free software; the Free Software Foundation 1226gives unlimited permission to copy, distribute and modify it. 1227 1228 1229Copyright 2006, 2007, 2009 International Business Machines and others. 1230All Rights Reserved. 1231This file is part of the open source package Coin which is distributed 1232under the Eclipse Public License. 1233_ACEOF 1234 exit 0 1235fi 1236exec 5>config.log 1237cat >&5 <<_ACEOF 1238This file contains any messages produced by compilers while 1239running configure, to aid debugging if configure makes a mistake. 1240 1241It was created by ThirdPartyASL $as_me 1.4.3, which was 1242generated by GNU Autoconf 2.59. Invocation command line was 1243 1244 $ $0 $@ 1245 1246_ACEOF 1247{ 1248cat <<_ASUNAME 1249## --------- ## 1250## Platform. ## 1251## --------- ## 1252 1253hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1254uname -m = `(uname -m) 2>/dev/null || echo unknown` 1255uname -r = `(uname -r) 2>/dev/null || echo unknown` 1256uname -s = `(uname -s) 2>/dev/null || echo unknown` 1257uname -v = `(uname -v) 2>/dev/null || echo unknown` 1258 1259/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1260/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1261 1262/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1263/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1264/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1265hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1266/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1267/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1268/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1269 1270_ASUNAME 1271 1272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1273for as_dir in $PATH 1274do 1275 IFS=$as_save_IFS 1276 test -z "$as_dir" && as_dir=. 1277 echo "PATH: $as_dir" 1278done 1279 1280} >&5 1281 1282cat >&5 <<_ACEOF 1283 1284 1285## ----------- ## 1286## Core tests. ## 1287## ----------- ## 1288 1289_ACEOF 1290 1291 1292# Keep a trace of the command line. 1293# Strip out --no-create and --no-recursion so they do not pile up. 1294# Strip out --silent because we don't want to record it for future runs. 1295# Also quote any args containing shell meta-characters. 1296# Make two passes to allow for proper duplicate-argument suppression. 1297ac_configure_args= 1298ac_configure_args0= 1299ac_configure_args1= 1300ac_sep= 1301ac_must_keep_next=false 1302for ac_pass in 1 2 1303do 1304 for ac_arg 1305 do 1306 case $ac_arg in 1307 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1308 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1309 | -silent | --silent | --silen | --sile | --sil) 1310 continue ;; 1311 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1312 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1313 esac 1314 case $ac_pass in 1315 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1316 2) 1317 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1318 if test $ac_must_keep_next = true; then 1319 ac_must_keep_next=false # Got value, back to normal. 1320 else 1321 case $ac_arg in 1322 *=* | --config-cache | -C | -disable-* | --disable-* \ 1323 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1324 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1325 | -with-* | --with-* | -without-* | --without-* | --x) 1326 case "$ac_configure_args0 " in 1327 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1328 esac 1329 ;; 1330 -* ) ac_must_keep_next=true ;; 1331 esac 1332 fi 1333 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1334 # Get rid of the leading space. 1335 ac_sep=" " 1336 ;; 1337 esac 1338 done 1339done 1340$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1341$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1342 1343# When interrupted or exit'd, cleanup temporary files, and complete 1344# config.log. We remove comments because anyway the quotes in there 1345# would cause problems or look ugly. 1346# WARNING: Be sure not to use single quotes in there, as some shells, 1347# such as our DU 5.0 friend, will then `close' the trap. 1348trap 'exit_status=$? 1349 # Save into config.log some information that might help in debugging. 1350 { 1351 echo 1352 1353 cat <<\_ASBOX 1354## ---------------- ## 1355## Cache variables. ## 1356## ---------------- ## 1357_ASBOX 1358 echo 1359 # The following way of writing the cache mishandles newlines in values, 1360{ 1361 (set) 2>&1 | 1362 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1363 *ac_space=\ *) 1364 sed -n \ 1365 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1366 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1367 ;; 1368 *) 1369 sed -n \ 1370 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1371 ;; 1372 esac; 1373} 1374 echo 1375 1376 cat <<\_ASBOX 1377## ----------------- ## 1378## Output variables. ## 1379## ----------------- ## 1380_ASBOX 1381 echo 1382 for ac_var in $ac_subst_vars 1383 do 1384 eval ac_val=$`echo $ac_var` 1385 echo "$ac_var='"'"'$ac_val'"'"'" 1386 done | sort 1387 echo 1388 1389 if test -n "$ac_subst_files"; then 1390 cat <<\_ASBOX 1391## ------------- ## 1392## Output files. ## 1393## ------------- ## 1394_ASBOX 1395 echo 1396 for ac_var in $ac_subst_files 1397 do 1398 eval ac_val=$`echo $ac_var` 1399 echo "$ac_var='"'"'$ac_val'"'"'" 1400 done | sort 1401 echo 1402 fi 1403 1404 if test -s confdefs.h; then 1405 cat <<\_ASBOX 1406## ----------- ## 1407## confdefs.h. ## 1408## ----------- ## 1409_ASBOX 1410 echo 1411 sed "/^$/d" confdefs.h | sort 1412 echo 1413 fi 1414 test "$ac_signal" != 0 && 1415 echo "$as_me: caught signal $ac_signal" 1416 echo "$as_me: exit $exit_status" 1417 } >&5 1418 rm -f core *.core && 1419 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1420 exit $exit_status 1421 ' 0 1422for ac_signal in 1 2 13 15; do 1423 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1424done 1425ac_signal=0 1426 1427# confdefs.h avoids OS command line length limits that DEFS can exceed. 1428rm -rf conftest* confdefs.h 1429# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1430echo >confdefs.h 1431 1432# Predefined preprocessor variables. 1433 1434cat >>confdefs.h <<_ACEOF 1435#define PACKAGE_NAME "$PACKAGE_NAME" 1436_ACEOF 1437 1438 1439cat >>confdefs.h <<_ACEOF 1440#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1441_ACEOF 1442 1443 1444cat >>confdefs.h <<_ACEOF 1445#define PACKAGE_VERSION "$PACKAGE_VERSION" 1446_ACEOF 1447 1448 1449cat >>confdefs.h <<_ACEOF 1450#define PACKAGE_STRING "$PACKAGE_STRING" 1451_ACEOF 1452 1453 1454cat >>confdefs.h <<_ACEOF 1455#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1456_ACEOF 1457 1458 1459# Let the site file select an alternate cache file if it wants to. 1460# Prefer explicitly selected file to automatically selected ones. 1461if test -z "$CONFIG_SITE"; then 1462 if test "x$prefix" != xNONE; then 1463 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1464 else 1465 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1466 fi 1467fi 1468for ac_site_file in $CONFIG_SITE; do 1469 if test -r "$ac_site_file"; then 1470 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1471echo "$as_me: loading site script $ac_site_file" >&6;} 1472 sed 's/^/| /' "$ac_site_file" >&5 1473 . "$ac_site_file" 1474 fi 1475done 1476 1477if test -r "$cache_file"; then 1478 # Some versions of bash will fail to source /dev/null (special 1479 # files actually), so we avoid doing that. 1480 if test -f "$cache_file"; then 1481 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1482echo "$as_me: loading cache $cache_file" >&6;} 1483 case $cache_file in 1484 [\\/]* | ?:[\\/]* ) . $cache_file;; 1485 *) . ./$cache_file;; 1486 esac 1487 fi 1488else 1489 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1490echo "$as_me: creating cache $cache_file" >&6;} 1491 >$cache_file 1492fi 1493 1494# Check that the precious variables saved in the cache have kept the same 1495# value. 1496ac_cache_corrupted=false 1497for ac_var in `(set) 2>&1 | 1498 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1499 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1500 eval ac_new_set=\$ac_env_${ac_var}_set 1501 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1502 eval ac_new_val="\$ac_env_${ac_var}_value" 1503 case $ac_old_set,$ac_new_set in 1504 set,) 1505 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1506echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1507 ac_cache_corrupted=: ;; 1508 ,set) 1509 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1510echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1511 ac_cache_corrupted=: ;; 1512 ,);; 1513 *) 1514 if test "x$ac_old_val" != "x$ac_new_val"; then 1515 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1516echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1517 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1518echo "$as_me: former value: $ac_old_val" >&2;} 1519 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1520echo "$as_me: current value: $ac_new_val" >&2;} 1521 ac_cache_corrupted=: 1522 fi;; 1523 esac 1524 # Pass precious variables to config.status. 1525 if test "$ac_new_set" = set; then 1526 case $ac_new_val in 1527 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1528 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1529 *) ac_arg=$ac_var=$ac_new_val ;; 1530 esac 1531 case " $ac_configure_args " in 1532 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1533 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1534 esac 1535 fi 1536done 1537if $ac_cache_corrupted; then 1538 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1539echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1540 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1541echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1542 { (exit 1); exit 1; }; } 1543fi 1544 1545ac_ext=c 1546ac_cpp='$CPP $CPPFLAGS' 1547ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1548ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1549ac_compiler_gnu=$ac_cv_c_compiler_gnu 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580# List one file in the package so that the configure script can test 1581# whether the package is actually there 1582 1583 1584# Where should everything be installed by default? Here, we want it 1585# to be installed directly in 'bin', 'lib', 'include' subdirectories 1586# of the directory where configure is run. The default would be 1587# /usr/local. 1588 1589 1590############################################################################# 1591# Standard build tool stuff # 1592############################################################################# 1593 1594# Get the system type 1595ac_aux_dir= 1596for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1597 if test -f $ac_dir/install-sh; then 1598 ac_aux_dir=$ac_dir 1599 ac_install_sh="$ac_aux_dir/install-sh -c" 1600 break 1601 elif test -f $ac_dir/install.sh; then 1602 ac_aux_dir=$ac_dir 1603 ac_install_sh="$ac_aux_dir/install.sh -c" 1604 break 1605 elif test -f $ac_dir/shtool; then 1606 ac_aux_dir=$ac_dir 1607 ac_install_sh="$ac_aux_dir/shtool install -c" 1608 break 1609 fi 1610done 1611if test -z "$ac_aux_dir"; then 1612 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1613echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1614 { (exit 1); exit 1; }; } 1615fi 1616ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1617ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1618ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1619 1620# Make sure we can run config.sub. 1621$ac_config_sub sun4 >/dev/null 2>&1 || 1622 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 1623echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1624 { (exit 1); exit 1; }; } 1625 1626echo "$as_me:$LINENO: checking build system type" >&5 1627echo $ECHO_N "checking build system type... $ECHO_C" >&6 1628if test "${ac_cv_build+set}" = set; then 1629 echo $ECHO_N "(cached) $ECHO_C" >&6 1630else 1631 ac_cv_build_alias=$build_alias 1632test -z "$ac_cv_build_alias" && 1633 ac_cv_build_alias=`$ac_config_guess` 1634test -z "$ac_cv_build_alias" && 1635 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1636echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1637 { (exit 1); exit 1; }; } 1638ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 1639 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 1640echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 1641 { (exit 1); exit 1; }; } 1642 1643fi 1644echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1645echo "${ECHO_T}$ac_cv_build" >&6 1646build=$ac_cv_build 1647build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1648build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1649build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1650 1651 1652 1653# A bit of initial setup. 1654 1655# As backup, we make sure we don't loose an FLIBS if it has been set 1656# by the user 1657save_FLIBS="$FLIBS" 1658 1659# A useful makefile conditional that is always false 1660 1661 1662if false; then 1663 ALWAYS_FALSE_TRUE= 1664 ALWAYS_FALSE_FALSE='#' 1665else 1666 ALWAYS_FALSE_TRUE='#' 1667 ALWAYS_FALSE_FALSE= 1668fi 1669 1670 1671# We set the following variable so that we know later in AC_COIN_FINALIZE 1672# that we are in a project main directory 1673coin_projectdir=yes 1674 1675# Set the project's version numbers 1676 1677 1678cat >>confdefs.h <<_ACEOF 1679#define ASL_VERSION "$PACKAGE_VERSION" 1680_ACEOF 1681 1682 1683 coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'` 1684 coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'` 1685 coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'` 1686 if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi 1687 if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi 1688 if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi 1689 1690cat >>confdefs.h <<_ACEOF 1691#define ASL_VERSION_MAJOR $coin_majorver 1692_ACEOF 1693 1694 1695cat >>confdefs.h <<_ACEOF 1696#define ASL_VERSION_MINOR $coin_minorver 1697_ACEOF 1698 1699 1700cat >>confdefs.h <<_ACEOF 1701#define ASL_VERSION_RELEASE $coin_releasever 1702_ACEOF 1703 1704 1705 # We use the following variable to have a string with the upper case 1706 # version of the project name 1707 COIN_PRJCT=ASL 1708 1709 # Set the project's SVN revision number. The complicated sed expression 1710 # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up 1711 # as a single number. 1712 # Extract the first word of "svnversion", so it can be a program name with args. 1713set dummy svnversion; ac_word=$2 1714echo "$as_me:$LINENO: checking for $ac_word" >&5 1715echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1716if test "${ac_cv_prog_have_svnversion+set}" = set; then 1717 echo $ECHO_N "(cached) $ECHO_C" >&6 1718else 1719 if test -n "$have_svnversion"; then 1720 ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test. 1721else 1722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1723for as_dir in $PATH 1724do 1725 IFS=$as_save_IFS 1726 test -z "$as_dir" && as_dir=. 1727 for ac_exec_ext in '' $ac_executable_extensions; do 1728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1729 ac_cv_prog_have_svnversion="yes" 1730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1731 break 2 1732 fi 1733done 1734done 1735 1736 test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no" 1737fi 1738fi 1739have_svnversion=$ac_cv_prog_have_svnversion 1740if test -n "$have_svnversion"; then 1741 echo "$as_me:$LINENO: result: $have_svnversion" >&5 1742echo "${ECHO_T}$have_svnversion" >&6 1743else 1744 echo "$as_me:$LINENO: result: no" >&5 1745echo "${ECHO_T}no" >&6 1746fi 1747 1748 if test "x$have_svnversion" = xyes; then 1749 1750 svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null` 1751 if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then 1752 ASL_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'` 1753 1754cat >>confdefs.h <<_ACEOF 1755#define ASL_SVN_REV $ASL_SVN_REV 1756_ACEOF 1757 1758 fi 1759 fi 1760 1761 1762 1763# Capture libtool library version, if given. 1764 coin_libversion=5:3:4 1765 1766 1767 1768# Turn off warnings and pedantic mode since they could make trouble on some 1769# platforms, and we can't fix issues in third-party code. 1770coin_skip_warn_cflags=yes 1771 1772# Check if user wants to produce debugging code 1773 1774echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5 1775echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6 1776 1777# Check whether --enable-debug or --disable-debug was given. 1778if test "${enable_debug+set}" = set; then 1779 enableval="$enable_debug" 1780 case "${enableval}" in 1781 yes) coin_debug_compile=true 1782 if test "${enable_shared+set}" = set; then :; else 1783 enable_shared=no 1784 fi 1785 ;; 1786 no) coin_debug_compile=false 1787 ;; 1788 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5 1789echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;} 1790 { (exit 1); exit 1; }; } 1791 ;; 1792esac 1793else 1794 coin_debug_compile=false 1795fi; 1796 1797# Check whether --enable-debug-asl or --disable-debug-asl was given. 1798if test "${enable_debug_asl+set}" = set; then 1799 enableval="$enable_debug_asl" 1800 case "${enableval}" in 1801 yes) coin_debug_compile=true 1802 ;; 1803 no) coin_debug_compile=false 1804 ;; 1805 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-asl" >&5 1806echo "$as_me: error: bad value ${enableval} for --enable-debug-asl" >&2;} 1807 { (exit 1); exit 1; }; } 1808 ;; 1809 esac 1810else 1811 : 1812fi; 1813 1814 # m4_ifvaln([ASL], 1815 1816if test $coin_debug_compile = true; then 1817 echo "$as_me:$LINENO: result: yes" >&5 1818echo "${ECHO_T}yes" >&6 1819else 1820 echo "$as_me:$LINENO: result: no" >&5 1821echo "${ECHO_T}no" >&6 1822fi 1823 1824 1825# Check whether --with-asl-verbosity or --without-asl-verbosity was given. 1826if test "${with_asl_verbosity+set}" = set; then 1827 withval="$with_asl_verbosity" 1828 if test "$withval" = yes; then 1829 withval=1 1830 fi 1831 coin_asl_verbosity=$withval 1832else 1833 coin_asl_verbosity=0 1834fi; 1835 1836cat >>confdefs.h <<_ACEOF 1837#define COIN_ASL_VERBOSITY $coin_asl_verbosity 1838_ACEOF 1839 1840 1841 1842# Check whether --with-asl-checklevel or --without-asl-checklevel was given. 1843if test "${with_asl_checklevel+set}" = set; then 1844 withval="$with_asl_checklevel" 1845 if test "$withval" = yes; then 1846 withval=1 1847 fi 1848 coin_asl_checklevel=$withval 1849else 1850 coin_asl_checklevel=0 1851fi; 1852 1853cat >>confdefs.h <<_ACEOF 1854#define COIN_ASL_CHECKLEVEL $coin_asl_checklevel 1855_ACEOF 1856 1857 1858 # m4_ifvaln([ASL], 1859 1860 1861 1862# We need egrep and ln -s somewhere 1863echo "$as_me:$LINENO: checking for egrep" >&5 1864echo $ECHO_N "checking for egrep... $ECHO_C" >&6 1865if test "${ac_cv_prog_egrep+set}" = set; then 1866 echo $ECHO_N "(cached) $ECHO_C" >&6 1867else 1868 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 1869 then ac_cv_prog_egrep='grep -E' 1870 else ac_cv_prog_egrep='egrep' 1871 fi 1872fi 1873echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 1874echo "${ECHO_T}$ac_cv_prog_egrep" >&6 1875 EGREP=$ac_cv_prog_egrep 1876 1877 1878echo "$as_me:$LINENO: checking whether ln -s works" >&5 1879echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 1880LN_S=$as_ln_s 1881if test "$LN_S" = "ln -s"; then 1882 echo "$as_me:$LINENO: result: yes" >&5 1883echo "${ECHO_T}yes" >&6 1884else 1885 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 1886echo "${ECHO_T}no, using $LN_S" >&6 1887fi 1888 1889 1890# Get the name of the C compiler and compiler flags 1891 1892 1893 # for backward compatibility 1894 # Check whether --enable-doscompile or --disable-doscompile was given. 1895if test "${enable_doscompile+set}" = set; then 1896 enableval="$enable_doscompile" 1897 enable_doscompile=$enableval 1898else 1899 enable_doscompile=no 1900fi; 1901 1902 # Check whether --enable-msvc or --disable-msvc was given. 1903if test "${enable_msvc+set}" = set; then 1904 enableval="$enable_msvc" 1905 enable_msvc=$enableval 1906else 1907 enable_msvc=no 1908 if test "$enable_doscompile" = msvc ; then 1909 enable_msvc=yes 1910 elif test "$enable_doscompile" != no ; then 1911 { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5 1912echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;} 1913 { (exit 1); exit 1; }; } 1914 fi 1915 1916fi; 1917 1918 if test "$enable_msvc" = MD; then 1919 enable_shared=yes 1920 enable_msvc=yes 1921 fi 1922 1923 if test "$enable_msvc" = yes; then 1924 case $build in 1925 *-cygwin* | *-mingw*) ;; 1926 *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5 1927echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;} 1928 { (exit 1); exit 1; }; } ;; 1929 esac 1930 fi 1931 1932 1933 1934ac_ext=c 1935ac_cpp='$CPP $CPPFLAGS' 1936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1938ac_compiler_gnu=$ac_cv_c_compiler_gnu 1939 1940 1941# For consistency, we set the C compiler to the same value of the C++ 1942# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl) 1943if test x"$CXX" != x; then 1944 case "$CXX" in 1945 clang* ) ;; 1946 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 1947 if test x"$CC" = x; then 1948 CC="$CXX" 1949 { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5 1950echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;} 1951 fi 1952 ;; 1953 esac 1954fi 1955 1956 1957 1958 1959 1960 1961coin_has_cc=yes 1962 1963save_cflags="$CFLAGS" 1964 1965# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list. 1966# Depending on the user's PATH, when Studio/Workshop cc is not present we may 1967# find /usr/ucb/cc, which is almost certainly not a good choice for the C 1968# compiler. In this case, put cc after gcc. 1969 1970case $build in 1971 *-cygwin* | *-mingw*) 1972 if test "$enable_msvc" = yes ; then 1973 comps="icl cl gcc" 1974 else 1975 comps="gcc icl cl" 1976 fi ;; 1977 *-*-solaris*) 1978 # Extract the first word of "cc", so it can be a program name with args. 1979set dummy cc; 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_sol_cc_compiler+set}" = set; then 1983 echo $ECHO_N "(cached) $ECHO_C" >&6 1984else 1985 if test -n "$sol_cc_compiler"; then 1986 ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test. 1987else 1988 ac_prog_rejected=no 1989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1990for as_dir in $PATH 1991do 1992 IFS=$as_save_IFS 1993 test -z "$as_dir" && as_dir=. 1994 for ac_exec_ext in '' $ac_executable_extensions; do 1995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1996 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1997 ac_prog_rejected=yes 1998 continue 1999 fi 2000 ac_cv_prog_sol_cc_compiler="cc" 2001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2002 break 2 2003 fi 2004done 2005done 2006 2007if test $ac_prog_rejected = yes; then 2008 # We found a bogon in the path, so make sure we never use it. 2009 set dummy $ac_cv_prog_sol_cc_compiler 2010 shift 2011 if test $# != 0; then 2012 # We chose a different compiler from the bogus one. 2013 # However, it has the same basename, so the bogon will be chosen 2014 # first if we set sol_cc_compiler to just the basename; use the full file name. 2015 shift 2016 ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@" 2017 fi 2018fi 2019fi 2020fi 2021sol_cc_compiler=$ac_cv_prog_sol_cc_compiler 2022if test -n "$sol_cc_compiler"; then 2023 echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5 2024echo "${ECHO_T}$sol_cc_compiler" >&6 2025else 2026 echo "$as_me:$LINENO: result: no" >&5 2027echo "${ECHO_T}no" >&6 2028fi 2029 2030 if test "$sol_cc_compiler" = "cc" ; then 2031 comps="cc xlc gcc pgcc icc" 2032 else 2033 comps="xlc gcc pgcc icc cc" 2034 fi 2035 ;; 2036 *-*-darwin*) comps="clang gcc cc" ;; 2037 *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;; 2038 *-linux-*) comps="xlc gcc cc pgcc icc" ;; 2039 *) comps="xlc_r xlc cc gcc pgcc icc" ;; 2040esac 2041 2042# We delete the cached value, since the test might not have been 2043# performed with our choice of compilers earlier 2044$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; } 2045# AC_MSG_NOTICE([C compiler candidates: $comps]) 2046ac_ext=c 2047ac_cpp='$CPP $CPPFLAGS' 2048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2050ac_compiler_gnu=$ac_cv_c_compiler_gnu 2051if test -n "$ac_tool_prefix"; then 2052 for ac_prog in $comps 2053 do 2054 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2055set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2056echo "$as_me:$LINENO: checking for $ac_word" >&5 2057echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2058if test "${ac_cv_prog_CC+set}" = set; then 2059 echo $ECHO_N "(cached) $ECHO_C" >&6 2060else 2061 if test -n "$CC"; then 2062 ac_cv_prog_CC="$CC" # Let the user override the test. 2063else 2064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2065for as_dir in $PATH 2066do 2067 IFS=$as_save_IFS 2068 test -z "$as_dir" && as_dir=. 2069 for ac_exec_ext in '' $ac_executable_extensions; do 2070 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2071 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2073 break 2 2074 fi 2075done 2076done 2077 2078fi 2079fi 2080CC=$ac_cv_prog_CC 2081if test -n "$CC"; then 2082 echo "$as_me:$LINENO: result: $CC" >&5 2083echo "${ECHO_T}$CC" >&6 2084else 2085 echo "$as_me:$LINENO: result: no" >&5 2086echo "${ECHO_T}no" >&6 2087fi 2088 2089 test -n "$CC" && break 2090 done 2091fi 2092if test -z "$CC"; then 2093 ac_ct_CC=$CC 2094 for ac_prog in $comps 2095do 2096 # Extract the first word of "$ac_prog", so it can be a program name with args. 2097set dummy $ac_prog; ac_word=$2 2098echo "$as_me:$LINENO: checking for $ac_word" >&5 2099echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2100if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2101 echo $ECHO_N "(cached) $ECHO_C" >&6 2102else 2103 if test -n "$ac_ct_CC"; then 2104 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2105else 2106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2107for as_dir in $PATH 2108do 2109 IFS=$as_save_IFS 2110 test -z "$as_dir" && as_dir=. 2111 for ac_exec_ext in '' $ac_executable_extensions; do 2112 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2113 ac_cv_prog_ac_ct_CC="$ac_prog" 2114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2115 break 2 2116 fi 2117done 2118done 2119 2120fi 2121fi 2122ac_ct_CC=$ac_cv_prog_ac_ct_CC 2123if test -n "$ac_ct_CC"; then 2124 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2125echo "${ECHO_T}$ac_ct_CC" >&6 2126else 2127 echo "$as_me:$LINENO: result: no" >&5 2128echo "${ECHO_T}no" >&6 2129fi 2130 2131 test -n "$ac_ct_CC" && break 2132done 2133 2134 CC=$ac_ct_CC 2135fi 2136 2137 2138test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2139See \`config.log' for more details." >&5 2140echo "$as_me: error: no acceptable C compiler found in \$PATH 2141See \`config.log' for more details." >&2;} 2142 { (exit 1); exit 1; }; } 2143 2144# Provide some information about the compiler. 2145echo "$as_me:$LINENO:" \ 2146 "checking for C compiler version" >&5 2147ac_compiler=`set X $ac_compile; echo $2` 2148{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2149 (eval $ac_compiler --version </dev/null >&5) 2>&5 2150 ac_status=$? 2151 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2152 (exit $ac_status); } 2153{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2154 (eval $ac_compiler -v </dev/null >&5) 2>&5 2155 ac_status=$? 2156 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2157 (exit $ac_status); } 2158{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2159 (eval $ac_compiler -V </dev/null >&5) 2>&5 2160 ac_status=$? 2161 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2162 (exit $ac_status); } 2163 2164cat >conftest.$ac_ext <<_ACEOF 2165/* confdefs.h. */ 2166_ACEOF 2167cat confdefs.h >>conftest.$ac_ext 2168cat >>conftest.$ac_ext <<_ACEOF 2169/* end confdefs.h. */ 2170 2171int 2172main () 2173{ 2174 2175 ; 2176 return 0; 2177} 2178_ACEOF 2179ac_clean_files_save=$ac_clean_files 2180ac_clean_files="$ac_clean_files a.out a.exe b.out" 2181# Try to create an executable without -o first, disregard a.out. 2182# It will help us diagnose broken compilers, and finding out an intuition 2183# of exeext. 2184echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2185echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2186ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2187if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2188 (eval $ac_link_default) 2>&5 2189 ac_status=$? 2190 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2191 (exit $ac_status); }; then 2192 # Find the output, starting from the most likely. This scheme is 2193# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2194# resort. 2195 2196# Be careful to initialize this variable, since it used to be cached. 2197# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2198ac_cv_exeext= 2199# b.out is created by i960 compilers. 2200for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2201do 2202 test -f "$ac_file" || continue 2203 case $ac_file in 2204 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2205 ;; 2206 conftest.$ac_ext ) 2207 # This is the source file. 2208 ;; 2209 [ab].out ) 2210 # We found the default executable, but exeext='' is most 2211 # certainly right. 2212 break;; 2213 *.* ) 2214 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2215 # FIXME: I believe we export ac_cv_exeext for Libtool, 2216 # but it would be cool to find out if it's true. Does anybody 2217 # maintain Libtool? --akim. 2218 export ac_cv_exeext 2219 break;; 2220 * ) 2221 break;; 2222 esac 2223done 2224else 2225 echo "$as_me: failed program was:" >&5 2226sed 's/^/| /' conftest.$ac_ext >&5 2227 2228{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2229See \`config.log' for more details." >&5 2230echo "$as_me: error: C compiler cannot create executables 2231See \`config.log' for more details." >&2;} 2232 { (exit 77); exit 77; }; } 2233fi 2234 2235ac_exeext=$ac_cv_exeext 2236echo "$as_me:$LINENO: result: $ac_file" >&5 2237echo "${ECHO_T}$ac_file" >&6 2238 2239# Check the compiler produces executables we can run. If not, either 2240# the compiler is broken, or we cross compile. 2241echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2242echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2243# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2244# If not cross compiling, check that we can run a simple program. 2245if test "$cross_compiling" != yes; then 2246 if { ac_try='./$ac_file' 2247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2248 (eval $ac_try) 2>&5 2249 ac_status=$? 2250 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2251 (exit $ac_status); }; }; then 2252 cross_compiling=no 2253 else 2254 if test "$cross_compiling" = maybe; then 2255 cross_compiling=yes 2256 else 2257 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2258If you meant to cross compile, use \`--host'. 2259See \`config.log' for more details." >&5 2260echo "$as_me: error: cannot run C compiled programs. 2261If you meant to cross compile, use \`--host'. 2262See \`config.log' for more details." >&2;} 2263 { (exit 1); exit 1; }; } 2264 fi 2265 fi 2266fi 2267echo "$as_me:$LINENO: result: yes" >&5 2268echo "${ECHO_T}yes" >&6 2269 2270rm -f a.out a.exe conftest$ac_cv_exeext b.out 2271ac_clean_files=$ac_clean_files_save 2272# Check the compiler produces executables we can run. If not, either 2273# the compiler is broken, or we cross compile. 2274echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2275echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2276echo "$as_me:$LINENO: result: $cross_compiling" >&5 2277echo "${ECHO_T}$cross_compiling" >&6 2278 2279echo "$as_me:$LINENO: checking for suffix of executables" >&5 2280echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2281if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2282 (eval $ac_link) 2>&5 2283 ac_status=$? 2284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2285 (exit $ac_status); }; then 2286 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2287# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2288# work properly (i.e., refer to `conftest.exe'), while it won't with 2289# `rm'. 2290for ac_file in conftest.exe conftest conftest.*; do 2291 test -f "$ac_file" || continue 2292 case $ac_file in 2293 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2294 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2295 export ac_cv_exeext 2296 break;; 2297 * ) break;; 2298 esac 2299done 2300else 2301 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2302See \`config.log' for more details." >&5 2303echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2304See \`config.log' for more details." >&2;} 2305 { (exit 1); exit 1; }; } 2306fi 2307 2308rm -f conftest$ac_cv_exeext 2309echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2310echo "${ECHO_T}$ac_cv_exeext" >&6 2311 2312rm -f conftest.$ac_ext 2313EXEEXT=$ac_cv_exeext 2314ac_exeext=$EXEEXT 2315echo "$as_me:$LINENO: checking for suffix of object files" >&5 2316echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2317if test "${ac_cv_objext+set}" = set; then 2318 echo $ECHO_N "(cached) $ECHO_C" >&6 2319else 2320 cat >conftest.$ac_ext <<_ACEOF 2321/* confdefs.h. */ 2322_ACEOF 2323cat confdefs.h >>conftest.$ac_ext 2324cat >>conftest.$ac_ext <<_ACEOF 2325/* end confdefs.h. */ 2326 2327int 2328main () 2329{ 2330 2331 ; 2332 return 0; 2333} 2334_ACEOF 2335rm -f conftest.o conftest.obj 2336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2337 (eval $ac_compile) 2>&5 2338 ac_status=$? 2339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2340 (exit $ac_status); }; then 2341 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2342 case $ac_file in 2343 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2344 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2345 break;; 2346 esac 2347done 2348else 2349 echo "$as_me: failed program was:" >&5 2350sed 's/^/| /' conftest.$ac_ext >&5 2351 2352{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2353See \`config.log' for more details." >&5 2354echo "$as_me: error: cannot compute suffix of object files: cannot compile 2355See \`config.log' for more details." >&2;} 2356 { (exit 1); exit 1; }; } 2357fi 2358 2359rm -f conftest.$ac_cv_objext conftest.$ac_ext 2360fi 2361echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2362echo "${ECHO_T}$ac_cv_objext" >&6 2363OBJEXT=$ac_cv_objext 2364ac_objext=$OBJEXT 2365echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2366echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2367if test "${ac_cv_c_compiler_gnu+set}" = set; then 2368 echo $ECHO_N "(cached) $ECHO_C" >&6 2369else 2370 cat >conftest.$ac_ext <<_ACEOF 2371/* confdefs.h. */ 2372_ACEOF 2373cat confdefs.h >>conftest.$ac_ext 2374cat >>conftest.$ac_ext <<_ACEOF 2375/* end confdefs.h. */ 2376 2377int 2378main () 2379{ 2380#ifndef __GNUC__ 2381 choke me 2382#endif 2383 2384 ; 2385 return 0; 2386} 2387_ACEOF 2388rm -f conftest.$ac_objext 2389if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2390 (eval $ac_compile) 2>conftest.er1 2391 ac_status=$? 2392 grep -v '^ *+' conftest.er1 >conftest.err 2393 rm -f conftest.er1 2394 cat conftest.err >&5 2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2396 (exit $ac_status); } && 2397 { ac_try='test -z "$ac_c_werror_flag" 2398 || test ! -s conftest.err' 2399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2400 (eval $ac_try) 2>&5 2401 ac_status=$? 2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2403 (exit $ac_status); }; } && 2404 { ac_try='test -s conftest.$ac_objext' 2405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2406 (eval $ac_try) 2>&5 2407 ac_status=$? 2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2409 (exit $ac_status); }; }; then 2410 ac_compiler_gnu=yes 2411else 2412 echo "$as_me: failed program was:" >&5 2413sed 's/^/| /' conftest.$ac_ext >&5 2414 2415ac_compiler_gnu=no 2416fi 2417rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2418ac_cv_c_compiler_gnu=$ac_compiler_gnu 2419 2420fi 2421echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2422echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2423GCC=`test $ac_compiler_gnu = yes && echo yes` 2424ac_test_CFLAGS=${CFLAGS+set} 2425ac_save_CFLAGS=$CFLAGS 2426CFLAGS="-g" 2427echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2428echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2429if test "${ac_cv_prog_cc_g+set}" = set; then 2430 echo $ECHO_N "(cached) $ECHO_C" >&6 2431else 2432 cat >conftest.$ac_ext <<_ACEOF 2433/* confdefs.h. */ 2434_ACEOF 2435cat confdefs.h >>conftest.$ac_ext 2436cat >>conftest.$ac_ext <<_ACEOF 2437/* end confdefs.h. */ 2438 2439int 2440main () 2441{ 2442 2443 ; 2444 return 0; 2445} 2446_ACEOF 2447rm -f conftest.$ac_objext 2448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2449 (eval $ac_compile) 2>conftest.er1 2450 ac_status=$? 2451 grep -v '^ *+' conftest.er1 >conftest.err 2452 rm -f conftest.er1 2453 cat conftest.err >&5 2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2455 (exit $ac_status); } && 2456 { ac_try='test -z "$ac_c_werror_flag" 2457 || test ! -s conftest.err' 2458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2459 (eval $ac_try) 2>&5 2460 ac_status=$? 2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2462 (exit $ac_status); }; } && 2463 { ac_try='test -s conftest.$ac_objext' 2464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2465 (eval $ac_try) 2>&5 2466 ac_status=$? 2467 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2468 (exit $ac_status); }; }; then 2469 ac_cv_prog_cc_g=yes 2470else 2471 echo "$as_me: failed program was:" >&5 2472sed 's/^/| /' conftest.$ac_ext >&5 2473 2474ac_cv_prog_cc_g=no 2475fi 2476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2477fi 2478echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2479echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2480if test "$ac_test_CFLAGS" = set; then 2481 CFLAGS=$ac_save_CFLAGS 2482elif test $ac_cv_prog_cc_g = yes; then 2483 if test "$GCC" = yes; then 2484 CFLAGS="-g -O2" 2485 else 2486 CFLAGS="-g" 2487 fi 2488else 2489 if test "$GCC" = yes; then 2490 CFLAGS="-O2" 2491 else 2492 CFLAGS= 2493 fi 2494fi 2495echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2496echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2497if test "${ac_cv_prog_cc_stdc+set}" = set; then 2498 echo $ECHO_N "(cached) $ECHO_C" >&6 2499else 2500 ac_cv_prog_cc_stdc=no 2501ac_save_CC=$CC 2502cat >conftest.$ac_ext <<_ACEOF 2503/* confdefs.h. */ 2504_ACEOF 2505cat confdefs.h >>conftest.$ac_ext 2506cat >>conftest.$ac_ext <<_ACEOF 2507/* end confdefs.h. */ 2508#include <stdarg.h> 2509#include <stdio.h> 2510#include <sys/types.h> 2511#include <sys/stat.h> 2512/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2513struct buf { int x; }; 2514FILE * (*rcsopen) (struct buf *, struct stat *, int); 2515static char *e (p, i) 2516 char **p; 2517 int i; 2518{ 2519 return p[i]; 2520} 2521static char *f (char * (*g) (char **, int), char **p, ...) 2522{ 2523 char *s; 2524 va_list v; 2525 va_start (v,p); 2526 s = g (p, va_arg (v,int)); 2527 va_end (v); 2528 return s; 2529} 2530 2531/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2532 function prototypes and stuff, but not '\xHH' hex character constants. 2533 These don't provoke an error unfortunately, instead are silently treated 2534 as 'x'. The following induces an error, until -std1 is added to get 2535 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2536 array size at least. It's necessary to write '\x00'==0 to get something 2537 that's true only with -std1. */ 2538int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2539 2540int test (int i, double x); 2541struct s1 {int (*f) (int a);}; 2542struct s2 {int (*f) (double a);}; 2543int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2544int argc; 2545char **argv; 2546int 2547main () 2548{ 2549return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2550 ; 2551 return 0; 2552} 2553_ACEOF 2554# Don't try gcc -ansi; that turns off useful extensions and 2555# breaks some systems' header files. 2556# AIX -qlanglvl=ansi 2557# Ultrix and OSF/1 -std1 2558# HP-UX 10.20 and later -Ae 2559# HP-UX older versions -Aa -D_HPUX_SOURCE 2560# SVR4 -Xc -D__EXTENSIONS__ 2561for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2562do 2563 CC="$ac_save_CC $ac_arg" 2564 rm -f conftest.$ac_objext 2565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2566 (eval $ac_compile) 2>conftest.er1 2567 ac_status=$? 2568 grep -v '^ *+' conftest.er1 >conftest.err 2569 rm -f conftest.er1 2570 cat conftest.err >&5 2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2572 (exit $ac_status); } && 2573 { ac_try='test -z "$ac_c_werror_flag" 2574 || test ! -s conftest.err' 2575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2576 (eval $ac_try) 2>&5 2577 ac_status=$? 2578 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2579 (exit $ac_status); }; } && 2580 { ac_try='test -s conftest.$ac_objext' 2581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2582 (eval $ac_try) 2>&5 2583 ac_status=$? 2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2585 (exit $ac_status); }; }; then 2586 ac_cv_prog_cc_stdc=$ac_arg 2587break 2588else 2589 echo "$as_me: failed program was:" >&5 2590sed 's/^/| /' conftest.$ac_ext >&5 2591 2592fi 2593rm -f conftest.err conftest.$ac_objext 2594done 2595rm -f conftest.$ac_ext conftest.$ac_objext 2596CC=$ac_save_CC 2597 2598fi 2599 2600case "x$ac_cv_prog_cc_stdc" in 2601 x|xno) 2602 echo "$as_me:$LINENO: result: none needed" >&5 2603echo "${ECHO_T}none needed" >&6 ;; 2604 *) 2605 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2606echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2607 CC="$CC $ac_cv_prog_cc_stdc" ;; 2608esac 2609 2610# Some people use a C++ compiler to compile C. Since we use `exit', 2611# in C++ we need to declare it. In case someone uses the same compiler 2612# for both compiling C and C++ we need to have the C++ compiler decide 2613# the declaration of exit, since it's the most demanding environment. 2614cat >conftest.$ac_ext <<_ACEOF 2615#ifndef __cplusplus 2616 choke me 2617#endif 2618_ACEOF 2619rm -f conftest.$ac_objext 2620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2621 (eval $ac_compile) 2>conftest.er1 2622 ac_status=$? 2623 grep -v '^ *+' conftest.er1 >conftest.err 2624 rm -f conftest.er1 2625 cat conftest.err >&5 2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2627 (exit $ac_status); } && 2628 { ac_try='test -z "$ac_c_werror_flag" 2629 || test ! -s conftest.err' 2630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2631 (eval $ac_try) 2>&5 2632 ac_status=$? 2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2634 (exit $ac_status); }; } && 2635 { ac_try='test -s conftest.$ac_objext' 2636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2637 (eval $ac_try) 2>&5 2638 ac_status=$? 2639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2640 (exit $ac_status); }; }; then 2641 for ac_declaration in \ 2642 '' \ 2643 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2644 'extern "C" void std::exit (int); using std::exit;' \ 2645 'extern "C" void exit (int) throw ();' \ 2646 'extern "C" void exit (int);' \ 2647 'void exit (int);' 2648do 2649 cat >conftest.$ac_ext <<_ACEOF 2650/* confdefs.h. */ 2651_ACEOF 2652cat confdefs.h >>conftest.$ac_ext 2653cat >>conftest.$ac_ext <<_ACEOF 2654/* end confdefs.h. */ 2655$ac_declaration 2656#include <stdlib.h> 2657int 2658main () 2659{ 2660exit (42); 2661 ; 2662 return 0; 2663} 2664_ACEOF 2665rm -f conftest.$ac_objext 2666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2667 (eval $ac_compile) 2>conftest.er1 2668 ac_status=$? 2669 grep -v '^ *+' conftest.er1 >conftest.err 2670 rm -f conftest.er1 2671 cat conftest.err >&5 2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2673 (exit $ac_status); } && 2674 { ac_try='test -z "$ac_c_werror_flag" 2675 || test ! -s conftest.err' 2676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2677 (eval $ac_try) 2>&5 2678 ac_status=$? 2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2680 (exit $ac_status); }; } && 2681 { ac_try='test -s conftest.$ac_objext' 2682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2683 (eval $ac_try) 2>&5 2684 ac_status=$? 2685 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2686 (exit $ac_status); }; }; then 2687 : 2688else 2689 echo "$as_me: failed program was:" >&5 2690sed 's/^/| /' conftest.$ac_ext >&5 2691 2692continue 2693fi 2694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2695 cat >conftest.$ac_ext <<_ACEOF 2696/* confdefs.h. */ 2697_ACEOF 2698cat confdefs.h >>conftest.$ac_ext 2699cat >>conftest.$ac_ext <<_ACEOF 2700/* end confdefs.h. */ 2701$ac_declaration 2702int 2703main () 2704{ 2705exit (42); 2706 ; 2707 return 0; 2708} 2709_ACEOF 2710rm -f conftest.$ac_objext 2711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2712 (eval $ac_compile) 2>conftest.er1 2713 ac_status=$? 2714 grep -v '^ *+' conftest.er1 >conftest.err 2715 rm -f conftest.er1 2716 cat conftest.err >&5 2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2718 (exit $ac_status); } && 2719 { ac_try='test -z "$ac_c_werror_flag" 2720 || test ! -s conftest.err' 2721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2722 (eval $ac_try) 2>&5 2723 ac_status=$? 2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2725 (exit $ac_status); }; } && 2726 { ac_try='test -s conftest.$ac_objext' 2727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2728 (eval $ac_try) 2>&5 2729 ac_status=$? 2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2731 (exit $ac_status); }; }; then 2732 break 2733else 2734 echo "$as_me: failed program was:" >&5 2735sed 's/^/| /' conftest.$ac_ext >&5 2736 2737fi 2738rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2739done 2740rm -f conftest* 2741if test -n "$ac_declaration"; then 2742 echo '#ifdef __cplusplus' >>confdefs.h 2743 echo $ac_declaration >>confdefs.h 2744 echo '#endif' >>confdefs.h 2745fi 2746 2747else 2748 echo "$as_me: failed program was:" >&5 2749sed 's/^/| /' conftest.$ac_ext >&5 2750 2751fi 2752rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2753ac_ext=c 2754ac_cpp='$CPP $CPPFLAGS' 2755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2757ac_compiler_gnu=$ac_cv_c_compiler_gnu 2758 2759if test -z "$CC" ; then 2760 { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5 2761echo "$as_me: error: Failed to find a C compiler!" >&2;} 2762 { (exit 1); exit 1; }; } 2763fi 2764# Autoconf incorrectly concludes that cl recognises -g. It doesn't. 2765case "$CC" in 2766 clang* ) ;; 2767 cl* | */cl* | CL* | */CL* ) 2768 if test "$ac_cv_prog_cc_g" = yes ; then 2769 ac_cv_prog_cc_g=no 2770 { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5 2771echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;} 2772 fi ;; 2773 * ) 2774 if test x"$CYGPATH_W" = x ; then 2775 CYGPATH_W=echo 2776 fi 2777 ;; 2778esac 2779CFLAGS="$save_cflags" 2780 2781# add automake conditional so we can recognize cl compiler in makefile 2782coin_cc_is_cl=false 2783case "$CC" in 2784 clang* ) ;; 2785 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 2786 coin_cc_is_cl=true 2787 ;; 2788esac 2789 2790 2791if test $coin_cc_is_cl = true; then 2792 COIN_CC_IS_CL_TRUE= 2793 COIN_CC_IS_CL_FALSE='#' 2794else 2795 COIN_CC_IS_CL_TRUE='#' 2796 COIN_CC_IS_CL_FALSE= 2797fi 2798 2799 2800# Check if a project specific CFLAGS variable has been set 2801if test x$COIN_PRJCT != x; then 2802 eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set} 2803 if test x$coin_tmp = xset; then 2804 eval CFLAGS=\${${COIN_PRJCT}_CFLAGS} 2805 fi 2806fi 2807 2808if test x"$CFLAGS" = x; then 2809 2810 coin_add_cflags= 2811 coin_opt_cflags= 2812 coin_dbg_cflags= 2813 coin_warn_cflags= 2814 2815 if test "$GCC" = "yes"; then 2816 case "$CC" in 2817 icc* | */icc*) 2818 ;; 2819 *) 2820 coin_opt_cflags="-O3" 2821 coin_add_cflags="-pipe" 2822 coin_dbg_cflags="-g -O0" 2823 coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long" 2824 esac 2825 fi 2826 if test -z "$coin_opt_cflags"; then 2827 case $build in 2828 *-cygwin* | *-mingw*) 2829 case "$CC" in 2830 clang* ) ;; 2831 cl* | */cl* | CL* | */CL*) 2832 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then 2833 coin_opt_cflags='-MD -O2' 2834 coin_dbg_cflags='-MDd' 2835 else 2836 coin_opt_cflags='-MT -O2' 2837 coin_dbg_cflags='-MTd' 2838 fi 2839 coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE' 2840 ;; 2841 icl* | */icl* | ICL* | */ICL*) 2842 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then 2843 coin_opt_cflags='-MD -Ox' 2844 coin_dbg_cflags='-MDd -debug' 2845 else 2846 coin_opt_cflags='-MT -Ox' 2847 coin_dbg_cflags='-MTd -debug' 2848 fi 2849 coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE' 2850 ;; 2851 esac 2852 ;; 2853 *-linux-*) 2854 case "$CC" in 2855 icc* | */icc*) 2856 coin_opt_cflags="-O3 -ip -mp1" 2857 coin_add_cflags="" 2858 coin_dbg_cflags="-g" 2859 # Check if -i_dynamic is necessary (for new glibc library) 2860 CFLAGS= 2861 cat >conftest.$ac_ext <<_ACEOF 2862/* confdefs.h. */ 2863_ACEOF 2864cat confdefs.h >>conftest.$ac_ext 2865cat >>conftest.$ac_ext <<_ACEOF 2866/* end confdefs.h. */ 2867 2868int 2869main () 2870{ 2871int i=0; i++; 2872 ; 2873 return 0; 2874} 2875_ACEOF 2876rm -f conftest.$ac_objext conftest$ac_exeext 2877if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2878 (eval $ac_link) 2>conftest.er1 2879 ac_status=$? 2880 grep -v '^ *+' conftest.er1 >conftest.err 2881 rm -f conftest.er1 2882 cat conftest.err >&5 2883 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2884 (exit $ac_status); } && 2885 { ac_try='test -z "$ac_c_werror_flag" 2886 || test ! -s conftest.err' 2887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2888 (eval $ac_try) 2>&5 2889 ac_status=$? 2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2891 (exit $ac_status); }; } && 2892 { ac_try='test -s conftest$ac_exeext' 2893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2894 (eval $ac_try) 2>&5 2895 ac_status=$? 2896 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2897 (exit $ac_status); }; }; then 2898 : 2899else 2900 echo "$as_me: failed program was:" >&5 2901sed 's/^/| /' conftest.$ac_ext >&5 2902 2903coin_add_cflags="-i_dynamic $coin_add_cflags" 2904fi 2905rm -f conftest.err conftest.$ac_objext \ 2906 conftest$ac_exeext conftest.$ac_ext 2907 ;; 2908 pgcc* | */pgcc*) 2909 coin_opt_cflags="-fast" 2910 coin_add_cflags="-Kieee -pc 64" 2911 coin_dbg_cflags="-g" 2912 ;; 2913 esac 2914 ;; 2915 *-ibm-*) 2916 case "$CC" in 2917 xlc* | */xlc* | mpxlc* | */mpxlc*) 2918 coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1" 2919 coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029" 2920 coin_dbg_cflags="-g" 2921 ;; 2922 esac 2923 ;; 2924 *-hp-*) 2925 coin_opt_cflags="-O" 2926 coin_add_cflags="-Ae" 2927 coin_dbg_cflags="-g" 2928 ;; 2929 *-*-solaris*) 2930 coin_opt_cflags="-xO4" 2931 coin_dbg_cflags="-g" 2932 ;; 2933 *-sgi-*) 2934 coin_opt_cflags="-O -OPT:Olimit=0" 2935 coin_dbg_cflags="-g" 2936 ;; 2937 esac 2938 fi 2939 2940 if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then 2941 coin_dbg_cflags="-g" 2942 fi 2943 2944 if test -z "$coin_opt_cflags"; then 2945 # Try if -O option works if nothing else is set 2946 CFLAGS="-O" 2947 cat >conftest.$ac_ext <<_ACEOF 2948/* confdefs.h. */ 2949_ACEOF 2950cat confdefs.h >>conftest.$ac_ext 2951cat >>conftest.$ac_ext <<_ACEOF 2952/* end confdefs.h. */ 2953 2954int 2955main () 2956{ 2957int i=0; i++; 2958 ; 2959 return 0; 2960} 2961_ACEOF 2962rm -f conftest.$ac_objext conftest$ac_exeext 2963if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2964 (eval $ac_link) 2>conftest.er1 2965 ac_status=$? 2966 grep -v '^ *+' conftest.er1 >conftest.err 2967 rm -f conftest.er1 2968 cat conftest.err >&5 2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2970 (exit $ac_status); } && 2971 { ac_try='test -z "$ac_c_werror_flag" 2972 || test ! -s conftest.err' 2973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2974 (eval $ac_try) 2>&5 2975 ac_status=$? 2976 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2977 (exit $ac_status); }; } && 2978 { ac_try='test -s conftest$ac_exeext' 2979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2980 (eval $ac_try) 2>&5 2981 ac_status=$? 2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2983 (exit $ac_status); }; }; then 2984 coin_opt_cflags="-O" 2985else 2986 echo "$as_me: failed program was:" >&5 2987sed 's/^/| /' conftest.$ac_ext >&5 2988 2989fi 2990rm -f conftest.err conftest.$ac_objext \ 2991 conftest$ac_exeext conftest.$ac_ext 2992 fi 2993 2994 # if PM doesn't want the warning messages, take them out 2995 if test x"$coin_skip_warn_cflags" = xyes; then 2996 coin_warn_cflags= 2997 fi 2998 2999 if test x${DBG_CFLAGS+set} != xset; then 3000 DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags" 3001 fi 3002 if test x${OPT_CFLAGS+set} != xset; then 3003 OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags" 3004 fi 3005 3006 DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS" 3007 OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS" 3008 3009 if test "$coin_debug_compile" = "true"; then 3010 CFLAGS="$DBG_CFLAGS" 3011 else 3012 CFLAGS="$OPT_CFLAGS" 3013 fi 3014else 3015 CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS" 3016 if test x${DBG_CFLAGS+set} != xset; then 3017 DBG_CFLAGS="$CFLAGS" 3018 fi 3019 if test x${OPT_CFLAGS+set} != xset; then 3020 OPT_CFLAGS="$CFLAGS" 3021 fi 3022fi 3023 3024# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include 3025if test x$COIN_PRJCT != x; then 3026 CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD" 3027fi 3028 3029# Try if CFLAGS works 3030save_CFLAGS="$CFLAGS" 3031cat >conftest.$ac_ext <<_ACEOF 3032/* confdefs.h. */ 3033_ACEOF 3034cat confdefs.h >>conftest.$ac_ext 3035cat >>conftest.$ac_ext <<_ACEOF 3036/* end confdefs.h. */ 3037 3038int 3039main () 3040{ 3041int i=0; i++; 3042 ; 3043 return 0; 3044} 3045_ACEOF 3046rm -f conftest.$ac_objext conftest$ac_exeext 3047if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3048 (eval $ac_link) 2>conftest.er1 3049 ac_status=$? 3050 grep -v '^ *+' conftest.er1 >conftest.err 3051 rm -f conftest.er1 3052 cat conftest.err >&5 3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3054 (exit $ac_status); } && 3055 { ac_try='test -z "$ac_c_werror_flag" 3056 || test ! -s conftest.err' 3057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3058 (eval $ac_try) 2>&5 3059 ac_status=$? 3060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3061 (exit $ac_status); }; } && 3062 { ac_try='test -s conftest$ac_exeext' 3063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3064 (eval $ac_try) 2>&5 3065 ac_status=$? 3066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3067 (exit $ac_status); }; }; then 3068 : 3069else 3070 echo "$as_me: failed program was:" >&5 3071sed 's/^/| /' conftest.$ac_ext >&5 3072 3073CFLAGS= 3074fi 3075rm -f conftest.err conftest.$ac_objext \ 3076 conftest$ac_exeext conftest.$ac_ext 3077if test -z "$CFLAGS"; then 3078 { 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 3079echo "$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;} 3080 CFLAGS='-O' 3081 cat >conftest.$ac_ext <<_ACEOF 3082/* confdefs.h. */ 3083_ACEOF 3084cat confdefs.h >>conftest.$ac_ext 3085cat >>conftest.$ac_ext <<_ACEOF 3086/* end confdefs.h. */ 3087 3088int 3089main () 3090{ 3091int i=0; i++; 3092 ; 3093 return 0; 3094} 3095_ACEOF 3096rm -f conftest.$ac_objext conftest$ac_exeext 3097if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3098 (eval $ac_link) 2>conftest.er1 3099 ac_status=$? 3100 grep -v '^ *+' conftest.er1 >conftest.err 3101 rm -f conftest.er1 3102 cat conftest.err >&5 3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3104 (exit $ac_status); } && 3105 { ac_try='test -z "$ac_c_werror_flag" 3106 || test ! -s conftest.err' 3107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3108 (eval $ac_try) 2>&5 3109 ac_status=$? 3110 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3111 (exit $ac_status); }; } && 3112 { ac_try='test -s conftest$ac_exeext' 3113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3114 (eval $ac_try) 2>&5 3115 ac_status=$? 3116 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3117 (exit $ac_status); }; }; then 3118 : 3119else 3120 echo "$as_me: failed program was:" >&5 3121sed 's/^/| /' conftest.$ac_ext >&5 3122 3123CFLAGS= 3124fi 3125rm -f conftest.err conftest.$ac_objext \ 3126 conftest$ac_exeext conftest.$ac_ext 3127 if test -z "$CFLAGS"; then 3128 { 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 3129echo "$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;} 3130 fi 3131fi 3132 3133{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5 3134echo "$as_me: C compiler options are: $CFLAGS" >&6;} 3135 3136 3137if test x"$MPICC" = x; then :; else 3138 { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5 3139echo "$as_me: Will use MPI C compiler $MPICC" >&6;} 3140 CC="$MPICC" 3141fi 3142 3143# Correct the LD variable if we are using the MS or Intel-windows compiler 3144case "$CC" in 3145 clang* ) ;; 3146 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 3147 LD=link 3148 ;; 3149esac 3150 3151ac_ext=c 3152ac_cpp='$CPP $CPPFLAGS' 3153ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3154ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3155ac_compiler_gnu=$ac_cv_c_compiler_gnu 3156 3157 3158 3159# Initialize automake and libtool 3160{ 3161 3162 3163 3164# START 3165 3166coin_disable_shared=no 3167# Test if force_shared has been set 3168if test "x" = xforce_shared; then 3169 if test x$enable_shared = xno; then 3170 { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5 3171echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;} 3172 { (exit 1); exit 1; }; } 3173 fi 3174 enable_shared=yes; 3175else 3176 case $build in 3177 *-cygwin* | *-mingw*) 3178 coin_disable_shared=yes 3179 if test x"$enable_shared" = xyes; then 3180 case "$CC" in 3181 clang* ) 3182 { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5 3183echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;} 3184 ;; 3185 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 3186 { echo "$as_me:$LINENO: Building of DLLs not supported in this configuration." >&5 3187echo "$as_me: Building of DLLs not supported in this configuration." >&6;} 3188 ;; 3189 *gcc*) 3190 if test x"$enable_dependency_linking" = xyes; then 3191 coin_disable_shared=no 3192 else 3193 { echo "$as_me:$LINENO: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&5 3194echo "$as_me: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&2;} 3195 fi 3196 ;; 3197 *) 3198 { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5 3199echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;} 3200 ;; 3201 esac 3202 fi 3203 ;; 3204 *-aix*) 3205 coin_disable_shared=yes 3206 platform=AIX 3207 if test x"$enable_shared" = xyes; then 3208 { echo "$as_me:$LINENO: WARNING: Shared objects are not supported." >&5 3209echo "$as_me: WARNING: Shared objects are not supported." >&2;} 3210 fi 3211 ;; 3212 esac 3213fi 3214if test x"$coin_disable_shared" = xyes; then 3215 if test x"$enable_shared" = xyes; then 3216 : 3217 else 3218 # we don't disable shared, because it was not selected anyway 3219 coin_disable_shared=no 3220 fi 3221 enable_shared=no 3222fi 3223# By default, we only want the shared objects to be compiled 3224# Check whether --enable-static or --disable-static was given. 3225if test "${enable_static+set}" = set; then 3226 enableval="$enable_static" 3227 p=${PACKAGE-default} 3228 case $enableval in 3229 yes) enable_static=yes ;; 3230 no) enable_static=no ;; 3231 *) 3232 enable_static=no 3233 # Look at the argument we got. We use all the common list separators. 3234 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3235 for pkg in $enableval; do 3236 IFS="$lt_save_ifs" 3237 if test "X$pkg" = "X$p"; then 3238 enable_static=yes 3239 fi 3240 done 3241 IFS="$lt_save_ifs" 3242 ;; 3243 esac 3244else 3245 enable_static=no 3246fi; 3247 3248 3249 3250 3251# Initialize automake 3252am__api_version="1.9" 3253# Find a good install program. We prefer a C program (faster), 3254# so one script is as good as another. But avoid the broken or 3255# incompatible versions: 3256# SysV /etc/install, /usr/sbin/install 3257# SunOS /usr/etc/install 3258# IRIX /sbin/install 3259# AIX /bin/install 3260# AmigaOS /C/install, which installs bootblocks on floppy discs 3261# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3262# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3263# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3264# OS/2's system install, which has a completely different semantic 3265# ./install, which can be erroneously created by make from ./install.sh. 3266echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3267echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 3268if test -z "$INSTALL"; then 3269if test "${ac_cv_path_install+set}" = set; then 3270 echo $ECHO_N "(cached) $ECHO_C" >&6 3271else 3272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3273for as_dir in $PATH 3274do 3275 IFS=$as_save_IFS 3276 test -z "$as_dir" && as_dir=. 3277 # Account for people who put trailing slashes in PATH elements. 3278case $as_dir/ in 3279 ./ | .// | /cC/* | \ 3280 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3281 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3282 /usr/ucb/* ) ;; 3283 *) 3284 # OSF1 and SCO ODT 3.0 have their own names for install. 3285 # Don't use installbsd from OSF since it installs stuff as root 3286 # by default. 3287 for ac_prog in ginstall scoinst install; do 3288 for ac_exec_ext in '' $ac_executable_extensions; do 3289 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3290 if test $ac_prog = install && 3291 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3292 # AIX install. It has an incompatible calling convention. 3293 : 3294 elif test $ac_prog = install && 3295 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3296 # program-specific install script used by HP pwplus--don't use. 3297 : 3298 else 3299 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3300 break 3 3301 fi 3302 fi 3303 done 3304 done 3305 ;; 3306esac 3307done 3308 3309 3310fi 3311 if test "${ac_cv_path_install+set}" = set; then 3312 INSTALL=$ac_cv_path_install 3313 else 3314 # As a last resort, use the slow shell script. We don't cache a 3315 # path for INSTALL within a source directory, because that will 3316 # break other packages using the cache if that directory is 3317 # removed, or if the path is relative. 3318 INSTALL=$ac_install_sh 3319 fi 3320fi 3321echo "$as_me:$LINENO: result: $INSTALL" >&5 3322echo "${ECHO_T}$INSTALL" >&6 3323 3324# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3325# It thinks the first close brace ends the variable substitution. 3326test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3327 3328test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3329 3330test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3331 3332echo "$as_me:$LINENO: checking whether build environment is sane" >&5 3333echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 3334# Just in case 3335sleep 1 3336echo timestamp > conftest.file 3337# Do `set' in a subshell so we don't clobber the current shell's 3338# arguments. Must try -L first in case configure is actually a 3339# symlink; some systems play weird games with the mod time of symlinks 3340# (eg FreeBSD returns the mod time of the symlink's containing 3341# directory). 3342if ( 3343 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 3344 if test "$*" = "X"; then 3345 # -L didn't work. 3346 set X `ls -t $srcdir/configure conftest.file` 3347 fi 3348 rm -f conftest.file 3349 if test "$*" != "X $srcdir/configure conftest.file" \ 3350 && test "$*" != "X conftest.file $srcdir/configure"; then 3351 3352 # If neither matched, then we have a broken ls. This can happen 3353 # if, for instance, CONFIG_SHELL is bash and it inherits a 3354 # broken ls alias from the environment. This has actually 3355 # happened. Such a system could not be considered "sane". 3356 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 3357alias in your environment" >&5 3358echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 3359alias in your environment" >&2;} 3360 { (exit 1); exit 1; }; } 3361 fi 3362 3363 test "$2" = conftest.file 3364 ) 3365then 3366 # Ok. 3367 : 3368else 3369 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 3370Check your system clock" >&5 3371echo "$as_me: error: newly created file is older than distributed files! 3372Check your system clock" >&2;} 3373 { (exit 1); exit 1; }; } 3374fi 3375echo "$as_me:$LINENO: result: yes" >&5 3376echo "${ECHO_T}yes" >&6 3377test "$program_prefix" != NONE && 3378 program_transform_name="s,^,$program_prefix,;$program_transform_name" 3379# Use a double $ so make ignores it. 3380test "$program_suffix" != NONE && 3381 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 3382# Double any \ or $. echo might interpret backslashes. 3383# By default was `s,x,x', remove it if useless. 3384cat <<\_ACEOF >conftest.sed 3385s/[\\$]/&&/g;s/;s,x,x,$// 3386_ACEOF 3387program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 3388rm conftest.sed 3389 3390# expand $ac_aux_dir to an absolute path 3391am_aux_dir=`cd $ac_aux_dir && pwd` 3392 3393test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 3394# Use eval to expand $SHELL 3395if eval "$MISSING --run true"; then 3396 am_missing_run="$MISSING --run " 3397else 3398 am_missing_run= 3399 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 3400echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 3401fi 3402 3403if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 3404 # We used to keeping the `.' as first argument, in order to 3405 # allow $(mkdir_p) to be used without argument. As in 3406 # $(mkdir_p) $(somedir) 3407 # where $(somedir) is conditionally defined. However this is wrong 3408 # for two reasons: 3409 # 1. if the package is installed by a user who cannot write `.' 3410 # make install will fail, 3411 # 2. the above comment should most certainly read 3412 # $(mkdir_p) $(DESTDIR)$(somedir) 3413 # so it does not work when $(somedir) is undefined and 3414 # $(DESTDIR) is not. 3415 # To support the latter case, we have to write 3416 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 3417 # so the `.' trick is pointless. 3418 mkdir_p='mkdir -p --' 3419else 3420 # On NextStep and OpenStep, the `mkdir' command does not 3421 # recognize any option. It will interpret all options as 3422 # directories to create, and then abort because `.' already 3423 # exists. 3424 for d in ./-p ./--version; 3425 do 3426 test -d $d && rmdir $d 3427 done 3428 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 3429 if test -f "$ac_aux_dir/mkinstalldirs"; then 3430 mkdir_p='$(mkinstalldirs)' 3431 else 3432 mkdir_p='$(install_sh) -d' 3433 fi 3434fi 3435 3436for ac_prog in gawk mawk nawk awk 3437do 3438 # Extract the first word of "$ac_prog", so it can be a program name with args. 3439set dummy $ac_prog; ac_word=$2 3440echo "$as_me:$LINENO: checking for $ac_word" >&5 3441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3442if test "${ac_cv_prog_AWK+set}" = set; then 3443 echo $ECHO_N "(cached) $ECHO_C" >&6 3444else 3445 if test -n "$AWK"; then 3446 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3447else 3448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3449for as_dir in $PATH 3450do 3451 IFS=$as_save_IFS 3452 test -z "$as_dir" && as_dir=. 3453 for ac_exec_ext in '' $ac_executable_extensions; do 3454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3455 ac_cv_prog_AWK="$ac_prog" 3456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3457 break 2 3458 fi 3459done 3460done 3461 3462fi 3463fi 3464AWK=$ac_cv_prog_AWK 3465if test -n "$AWK"; then 3466 echo "$as_me:$LINENO: result: $AWK" >&5 3467echo "${ECHO_T}$AWK" >&6 3468else 3469 echo "$as_me:$LINENO: result: no" >&5 3470echo "${ECHO_T}no" >&6 3471fi 3472 3473 test -n "$AWK" && break 3474done 3475 3476echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3477echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 3478set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 3479if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 3480 echo $ECHO_N "(cached) $ECHO_C" >&6 3481else 3482 cat >conftest.make <<\_ACEOF 3483all: 3484 @echo 'ac_maketemp="$(MAKE)"' 3485_ACEOF 3486# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3487eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 3488if test -n "$ac_maketemp"; then 3489 eval ac_cv_prog_make_${ac_make}_set=yes 3490else 3491 eval ac_cv_prog_make_${ac_make}_set=no 3492fi 3493rm -f conftest.make 3494fi 3495if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 3496 echo "$as_me:$LINENO: result: yes" >&5 3497echo "${ECHO_T}yes" >&6 3498 SET_MAKE= 3499else 3500 echo "$as_me:$LINENO: result: no" >&5 3501echo "${ECHO_T}no" >&6 3502 SET_MAKE="MAKE=${MAKE-make}" 3503fi 3504 3505rm -rf .tst 2>/dev/null 3506mkdir .tst 2>/dev/null 3507if test -d .tst; then 3508 am__leading_dot=. 3509else 3510 am__leading_dot=_ 3511fi 3512rmdir .tst 2>/dev/null 3513 3514DEPDIR="${am__leading_dot}deps" 3515 3516 ac_config_commands="$ac_config_commands depfiles" 3517 3518 3519am_make=${MAKE-make} 3520cat > confinc << 'END' 3521am__doit: 3522 @echo done 3523.PHONY: am__doit 3524END 3525# If we don't find an include directive, just comment out the code. 3526echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3527echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 3528am__include="#" 3529am__quote= 3530_am_result=none 3531# First try GNU make style include. 3532echo "include confinc" > confmf 3533# We grep out `Entering directory' and `Leaving directory' 3534# messages which can occur if `w' ends up in MAKEFLAGS. 3535# In particular we don't look at `^make:' because GNU make might 3536# be invoked under some other name (usually "gmake"), in which 3537# case it prints its new name instead of `make'. 3538if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3539 am__include=include 3540 am__quote= 3541 _am_result=GNU 3542fi 3543# Now try BSD make style include. 3544if test "$am__include" = "#"; then 3545 echo '.include "confinc"' > confmf 3546 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3547 am__include=.include 3548 am__quote="\"" 3549 _am_result=BSD 3550 fi 3551fi 3552 3553 3554echo "$as_me:$LINENO: result: $_am_result" >&5 3555echo "${ECHO_T}$_am_result" >&6 3556rm -f confinc confmf 3557 3558# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 3559if test "${enable_dependency_tracking+set}" = set; then 3560 enableval="$enable_dependency_tracking" 3561 3562fi; 3563if test "x$enable_dependency_tracking" != xno; then 3564 am_depcomp="$ac_aux_dir/depcomp" 3565 AMDEPBACKSLASH='\' 3566fi 3567 3568 3569if test "x$enable_dependency_tracking" != xno; then 3570 AMDEP_TRUE= 3571 AMDEP_FALSE='#' 3572else 3573 AMDEP_TRUE='#' 3574 AMDEP_FALSE= 3575fi 3576 3577 3578 3579 3580 3581 3582# AC_MSG_NOTICE([Beginning automake initialisation.]) 3583# Stuff for automake 3584# test to see if srcdir already configured 3585if test "`cd $srcdir && pwd`" != "`pwd`" && 3586 test -f $srcdir/config.status; then 3587 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 3588echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 3589 { (exit 1); exit 1; }; } 3590fi 3591 3592# test whether we have cygpath 3593if test -z "$CYGPATH_W"; then 3594 if (cygpath --version) >/dev/null 2>/dev/null; then 3595 CYGPATH_W='cygpath -w' 3596 else 3597 CYGPATH_W=echo 3598 fi 3599fi 3600 3601 3602# Define the identity of the package. 3603 PACKAGE='thirdpartyasl' 3604 VERSION='1.4.3' 3605 3606 3607cat >>confdefs.h <<_ACEOF 3608#define PACKAGE "$PACKAGE" 3609_ACEOF 3610 3611 3612cat >>confdefs.h <<_ACEOF 3613#define VERSION "$VERSION" 3614_ACEOF 3615 3616# Some tools Automake needs. 3617 3618ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3619 3620 3621AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3622 3623 3624AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3625 3626 3627AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3628 3629 3630MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3631 3632install_sh=${install_sh-"$am_aux_dir/install-sh"} 3633 3634# Installed binaries are usually stripped using `strip' when the user 3635# run `make install-strip'. However `strip' might not be the right 3636# tool to use in cross-compilation environments, therefore Automake 3637# will honor the `STRIP' environment variable to overrule this program. 3638if test "$cross_compiling" != no; then 3639 if test -n "$ac_tool_prefix"; then 3640 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3641set dummy ${ac_tool_prefix}strip; ac_word=$2 3642echo "$as_me:$LINENO: checking for $ac_word" >&5 3643echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3644if test "${ac_cv_prog_STRIP+set}" = set; then 3645 echo $ECHO_N "(cached) $ECHO_C" >&6 3646else 3647 if test -n "$STRIP"; then 3648 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3649else 3650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3651for as_dir in $PATH 3652do 3653 IFS=$as_save_IFS 3654 test -z "$as_dir" && as_dir=. 3655 for ac_exec_ext in '' $ac_executable_extensions; do 3656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3657 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3659 break 2 3660 fi 3661done 3662done 3663 3664fi 3665fi 3666STRIP=$ac_cv_prog_STRIP 3667if test -n "$STRIP"; then 3668 echo "$as_me:$LINENO: result: $STRIP" >&5 3669echo "${ECHO_T}$STRIP" >&6 3670else 3671 echo "$as_me:$LINENO: result: no" >&5 3672echo "${ECHO_T}no" >&6 3673fi 3674 3675fi 3676if test -z "$ac_cv_prog_STRIP"; then 3677 ac_ct_STRIP=$STRIP 3678 # Extract the first word of "strip", so it can be a program name with args. 3679set dummy strip; ac_word=$2 3680echo "$as_me:$LINENO: checking for $ac_word" >&5 3681echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3682if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 3683 echo $ECHO_N "(cached) $ECHO_C" >&6 3684else 3685 if test -n "$ac_ct_STRIP"; then 3686 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3687else 3688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3689for as_dir in $PATH 3690do 3691 IFS=$as_save_IFS 3692 test -z "$as_dir" && as_dir=. 3693 for ac_exec_ext in '' $ac_executable_extensions; do 3694 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3695 ac_cv_prog_ac_ct_STRIP="strip" 3696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3697 break 2 3698 fi 3699done 3700done 3701 3702 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 3703fi 3704fi 3705ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3706if test -n "$ac_ct_STRIP"; then 3707 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 3708echo "${ECHO_T}$ac_ct_STRIP" >&6 3709else 3710 echo "$as_me:$LINENO: result: no" >&5 3711echo "${ECHO_T}no" >&6 3712fi 3713 3714 STRIP=$ac_ct_STRIP 3715else 3716 STRIP="$ac_cv_prog_STRIP" 3717fi 3718 3719fi 3720INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 3721 3722# We need awk for the "check" target. The system "awk" is bad on 3723# some platforms. 3724# Always define AMTAR for backward compatibility. 3725 3726AMTAR=${AMTAR-"${am_missing_run}tar"} 3727 3728am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 3729 3730 3731 3732 3733depcc="$CC" am_compiler_list= 3734 3735echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3736echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 3737if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3738 echo $ECHO_N "(cached) $ECHO_C" >&6 3739else 3740 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3741 # We make a subdir and do the tests there. Otherwise we can end up 3742 # making bogus files that we don't know about and never remove. For 3743 # instance it was reported that on HP-UX the gcc test will end up 3744 # making a dummy file named `D' -- because `-MD' means `put the output 3745 # in D'. 3746 mkdir conftest.dir 3747 # Copy depcomp to subdir because otherwise we won't find it if we're 3748 # using a relative directory. 3749 cp "$am_depcomp" conftest.dir 3750 cd conftest.dir 3751 # We will build objects and dependencies in a subdirectory because 3752 # it helps to detect inapplicable dependency modes. For instance 3753 # both Tru64's cc and ICC support -MD to output dependencies as a 3754 # side effect of compilation, but ICC will put the dependencies in 3755 # the current directory while Tru64 will put them in the object 3756 # directory. 3757 mkdir sub 3758 3759 am_cv_CC_dependencies_compiler_type=none 3760 if test "$am_compiler_list" = ""; then 3761 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3762 fi 3763 for depmode in $am_compiler_list; do 3764 # Setup a source with many dependencies, because some compilers 3765 # like to wrap large dependency lists on column 80 (with \), and 3766 # we should not choose a depcomp mode which is confused by this. 3767 # 3768 # We need to recreate these files for each test, as the compiler may 3769 # overwrite some of them when testing with obscure command lines. 3770 # This happens at least with the AIX C compiler. 3771 : > sub/conftest.c 3772 for i in 1 2 3 4 5 6; do 3773 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3774 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3775 # Solaris 8's {/usr,}/bin/sh. 3776 touch sub/conftst$i.h 3777 done 3778 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3779 3780 case $depmode in 3781 nosideeffect) 3782 # after this tag, mechanisms are not by side-effect, so they'll 3783 # only be used when explicitly requested 3784 if test "x$enable_dependency_tracking" = xyes; then 3785 continue 3786 else 3787 break 3788 fi 3789 ;; 3790 none) break ;; 3791 esac 3792 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3793 # mode. It turns out that the SunPro C++ compiler does not properly 3794 # handle `-M -o', and we need to detect this. 3795 if depmode=$depmode \ 3796 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3797 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3798 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3799 >/dev/null 2>conftest.err && 3800 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3801 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3802 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3803 # icc doesn't choke on unknown options, it will just issue warnings 3804 # or remarks (even with -Werror). So we grep stderr for any message 3805 # that says an option was ignored or not supported. 3806 # When given -MP, icc 7.0 and 7.1 complain thusly: 3807 # icc: Command line warning: ignoring option '-M'; no argument required 3808 # The diagnosis changed in icc 8.0: 3809 # icc: Command line remark: option '-MP' not supported 3810 if (grep 'ignoring option' conftest.err || 3811 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3812 am_cv_CC_dependencies_compiler_type=$depmode 3813 break 3814 fi 3815 fi 3816 done 3817 3818 cd .. 3819 rm -rf conftest.dir 3820else 3821 am_cv_CC_dependencies_compiler_type=none 3822fi 3823 3824fi 3825echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3826echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 3827CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3828 3829 3830 3831if 3832 test "x$enable_dependency_tracking" != xno \ 3833 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3834 am__fastdepCC_TRUE= 3835 am__fastdepCC_FALSE='#' 3836else 3837 am__fastdepCC_TRUE='#' 3838 am__fastdepCC_FALSE= 3839fi 3840 3841 3842 3843echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 3844echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 3845 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 3846if test "${enable_maintainer_mode+set}" = set; then 3847 enableval="$enable_maintainer_mode" 3848 USE_MAINTAINER_MODE=$enableval 3849else 3850 USE_MAINTAINER_MODE=no 3851fi; 3852 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 3853echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 3854 3855 3856if test $USE_MAINTAINER_MODE = yes; then 3857 MAINTAINER_MODE_TRUE= 3858 MAINTAINER_MODE_FALSE='#' 3859else 3860 MAINTAINER_MODE_TRUE='#' 3861 MAINTAINER_MODE_FALSE= 3862fi 3863 3864 MAINT=$MAINTAINER_MODE_TRUE 3865 3866 3867 3868coin_have_externals=no 3869if test "$enable_maintainer_mode" = yes; then 3870 3871 # If maintainer mode is chosen, we make sure that the correct versions 3872 # of the tools are used, and that we know where libtool.m4 is (to 3873 # recreate acinclude.m4) 3874 3875 3876 LIBTOOLM4= 3877 # Normally, $HOME 3878 AUTOTOOLS_DFLT=$HOME 3879 3880 echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5 3881echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6 3882if test "${ac_cv_use_correct_autotools+set}" = set; then 3883 echo $ECHO_N "(cached) $ECHO_C" >&6 3884else 3885 ac_cv_use_correct_autotools=check 3886fi 3887echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5 3888echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6 3889 3890 if test $ac_cv_use_correct_autotools = check; then 3891 ac_cv_use_correct_autotools=yes 3892 # Check if we have autoconf 3893 # Extract the first word of "autoconf", so it can be a program name with args. 3894set dummy autoconf; ac_word=$2 3895echo "$as_me:$LINENO: checking for $ac_word" >&5 3896echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3897if test "${ac_cv_prog_have_autoconf+set}" = set; then 3898 echo $ECHO_N "(cached) $ECHO_C" >&6 3899else 3900 if test -n "$have_autoconf"; then 3901 ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test. 3902else 3903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3904for as_dir in $PATH 3905do 3906 IFS=$as_save_IFS 3907 test -z "$as_dir" && as_dir=. 3908 for ac_exec_ext in '' $ac_executable_extensions; do 3909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3910 ac_cv_prog_have_autoconf="yes" 3911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3912 break 2 3913 fi 3914done 3915done 3916 3917 test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no" 3918fi 3919fi 3920have_autoconf=$ac_cv_prog_have_autoconf 3921if test -n "$have_autoconf"; then 3922 echo "$as_me:$LINENO: result: $have_autoconf" >&5 3923echo "${ECHO_T}$have_autoconf" >&6 3924else 3925 echo "$as_me:$LINENO: result: no" >&5 3926echo "${ECHO_T}no" >&6 3927fi 3928 3929 if test $have_autoconf = no; then 3930 { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5 3931echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;} 3932 { (exit 1); exit 1; }; } 3933 fi 3934 3935 # Check whether autoconf is the correct version 3936 correct_version='2.59' 3937 grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'` 3938 echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5 3939echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6 3940 autoconf --version > confauto.out 2>&1 3941 if $EGREP $grep_version confauto.out >/dev/null 2>&1; then 3942 echo "$as_me:$LINENO: result: yes" >&5 3943echo "${ECHO_T}yes" >&6 3944 else 3945 rm -f confauto.out 3946 echo "$as_me:$LINENO: result: no" >&5 3947echo "${ECHO_T}no" >&6 3948 { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5 3949echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;} 3950 { (exit 1); exit 1; }; } 3951 fi 3952 rm -f confauto.out 3953 3954 # Check if the executable autoconf is picked up from the correct location 3955 echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5 3956echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6 3957 autoconf_dir=`which autoconf | sed -e 's=/autoconf=='` 3958 autoconf_dir=`cd $autoconf_dir; pwd` 3959 if test x$AUTOTOOLS_DIR = x; then 3960 want_dir=$AUTOTOOLS_DFLT/bin 3961 else 3962 want_dir=$AUTOTOOLS_DIR/bin 3963 fi 3964 if test $autoconf_dir = `cd $want_dir; pwd`; then 3965 echo "$as_me:$LINENO: result: yes" >&5 3966echo "${ECHO_T}yes" >&6 3967 else 3968 rm -f confauto.out 3969 echo "$as_me:$LINENO: result: no" >&5 3970echo "${ECHO_T}no" >&6 3971 { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5 3972echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;} 3973 { (exit 1); exit 1; }; } 3974 fi 3975 3976 # Check if we have automake 3977 # Extract the first word of "automake", so it can be a program name with args. 3978set dummy automake; ac_word=$2 3979echo "$as_me:$LINENO: checking for $ac_word" >&5 3980echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3981if test "${ac_cv_prog_have_automake+set}" = set; then 3982 echo $ECHO_N "(cached) $ECHO_C" >&6 3983else 3984 if test -n "$have_automake"; then 3985 ac_cv_prog_have_automake="$have_automake" # Let the user override the test. 3986else 3987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3988for as_dir in $PATH 3989do 3990 IFS=$as_save_IFS 3991 test -z "$as_dir" && as_dir=. 3992 for ac_exec_ext in '' $ac_executable_extensions; do 3993 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3994 ac_cv_prog_have_automake="yes" 3995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3996 break 2 3997 fi 3998done 3999done 4000 4001 test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no" 4002fi 4003fi 4004have_automake=$ac_cv_prog_have_automake 4005if test -n "$have_automake"; then 4006 echo "$as_me:$LINENO: result: $have_automake" >&5 4007echo "${ECHO_T}$have_automake" >&6 4008else 4009 echo "$as_me:$LINENO: result: no" >&5 4010echo "${ECHO_T}no" >&6 4011fi 4012 4013 if test $have_automake = no; then 4014 { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5 4015echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;} 4016 { (exit 1); exit 1; }; } 4017 fi 4018 4019 # Check whether automake is the correct version 4020 correct_version='1.9.6' 4021 grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'` 4022 echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5 4023echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6 4024 automake --version > confauto.out 2>&1 4025 if $EGREP $grep_version confauto.out >/dev/null 2>&1; then 4026 echo "$as_me:$LINENO: result: yes" >&5 4027echo "${ECHO_T}yes" >&6 4028 else 4029 rm -f confauto.out 4030 echo "$as_me:$LINENO: result: no" >&5 4031echo "${ECHO_T}no" >&6 4032 { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5 4033echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;} 4034 { (exit 1); exit 1; }; } 4035 fi 4036 rm -f confauto.out 4037 4038 # Check if the executable automake is picked up from the correct location 4039 echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5 4040echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6 4041 automake_dir=`which automake | sed -e 's=/automake=='` 4042 automake_dir=`cd $automake_dir; pwd` 4043 if test x$AUTOTOOLS_DIR = x; then 4044 want_dir=$AUTOTOOLS_DFLT/bin 4045 else 4046 want_dir=$AUTOTOOLS_DIR/bin 4047 fi 4048 if test $automake_dir = `cd $want_dir; pwd`; then 4049 echo "$as_me:$LINENO: result: yes" >&5 4050echo "${ECHO_T}yes" >&6 4051 else 4052 rm -f confauto.out 4053 echo "$as_me:$LINENO: result: no" >&5 4054echo "${ECHO_T}no" >&6 4055 { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5 4056echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;} 4057 { (exit 1); exit 1; }; } 4058 fi 4059 4060 # Check if this is the correct version of libtool (with escaped dots) 4061 if test x$AUTOTOOLS_DIR = x; then 4062 want_dir=$AUTOTOOLS_DFLT/share 4063 else 4064 want_dir=$AUTOTOOLS_DIR/share 4065 fi 4066 correct_version='1.5.22' 4067 grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'` 4068 if test -r $want_dir/libtool/ltmain.sh; then 4069 have_ltmain=yes 4070 : 4071else 4072 have_ltmain=no 4073 : 4074fi 4075 4076 echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5 4077echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6 4078 if test $have_ltmain = yes; then 4079 if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then 4080 echo "$as_me:$LINENO: result: yes" >&5 4081echo "${ECHO_T}yes" >&6 4082 else 4083 echo "$as_me:$LINENO: result: no" >&5 4084echo "${ECHO_T}no" >&6 4085 { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5 4086echo "$as_me: error: You don't have the correct version of libtool." >&2;} 4087 { (exit 1); exit 1; }; } 4088 fi 4089 else 4090 echo "$as_me:$LINENO: result: no" >&5 4091echo "${ECHO_T}no" >&6 4092 { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5 4093echo "$as_me: error: I cannot find the ltmain.sh file." >&2;} 4094 { (exit 1); exit 1; }; } 4095 fi 4096 fi 4097 4098 # Check if we can find the libtool file 4099 if test x$AUTOTOOLS_DIR = x; then 4100 want_dir=$AUTOTOOLS_DFLT/share 4101 else 4102 want_dir=$AUTOTOOLS_DIR/share 4103 fi 4104 if test -r $want_dir/aclocal/libtool.m4; then 4105 LIBTOOLM4="$want_dir/aclocal/libtool.m4" 4106 : 4107else 4108 { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5 4109echo "$as_me: error: I cannot find the libtool.m4 file." >&2;} 4110 { (exit 1); exit 1; }; } 4111 : 4112fi 4113 4114 4115 # Check if we have an Dependencies file 4116 if test -r $srcdir/Dependencies; then 4117 coin_have_externals=yes 4118 fi 4119 # Check if subversion is installed and understands https 4120 # Extract the first word of "svn", so it can be a program name with args. 4121set dummy svn; ac_word=$2 4122echo "$as_me:$LINENO: checking for $ac_word" >&5 4123echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4124if test "${ac_cv_prog_have_svn+set}" = set; then 4125 echo $ECHO_N "(cached) $ECHO_C" >&6 4126else 4127 if test -n "$have_svn"; then 4128 ac_cv_prog_have_svn="$have_svn" # Let the user override the test. 4129else 4130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4131for as_dir in $PATH 4132do 4133 IFS=$as_save_IFS 4134 test -z "$as_dir" && as_dir=. 4135 for ac_exec_ext in '' $ac_executable_extensions; do 4136 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4137 ac_cv_prog_have_svn="yes" 4138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4139 break 2 4140 fi 4141done 4142done 4143 4144 test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no" 4145fi 4146fi 4147have_svn=$ac_cv_prog_have_svn 4148if test -n "$have_svn"; then 4149 echo "$as_me:$LINENO: result: $have_svn" >&5 4150echo "${ECHO_T}$have_svn" >&6 4151else 4152 echo "$as_me:$LINENO: result: no" >&5 4153echo "${ECHO_T}no" >&6 4154fi 4155 4156 if test x$have_svn = xyes; then 4157 echo "$as_me:$LINENO: checking whether svn understands https" >&5 4158echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6 4159if test "${ac_cv_svn_understands_https+set}" = set; then 4160 echo $ECHO_N "(cached) $ECHO_C" >&6 4161else 4162 svn --version > confauto.out 2>&1 4163 if $EGREP https confauto.out >/dev/null 2>&1; then 4164 ac_cv_svn_understands_https=yes 4165 else 4166 ac_cv_svn_understands_https=no 4167 have_svn=no 4168 ac_cv_prog_have_svn=no 4169 fi 4170 rm -f confauto.out 4171fi 4172echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5 4173echo "${ECHO_T}$ac_cv_svn_understands_https" >&6 4174 fi 4175 4176 # Find the location of the BuildTools directory 4177 BUILDTOOLSDIR= 4178 if test -r $srcdir/BuildTools/coin.m4; then 4179 BUILDTOOLSDIR=$srcdir/BuildTools 4180 elif test -r $srcdir/../BuildTools/coin.m4; then 4181 BUILDTOOLSDIR=$srcdir/../BuildTools 4182 elif test -r $srcdir/../../BuildTools/coin.m4; then 4183 BUILDTOOLSDIR=$srcdir/../../BuildTools 4184 elif test -r $srcdir/../../../BuildTools/coin.m4; then 4185 BUILDTOOLSDIR=$srcdir/../../../BuildTools 4186 else 4187 { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5 4188echo "$as_me: error: Cannot find the BuildTools directory" >&2;} 4189 { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; } 4190 fi 4191 4192 4193 # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools 4194 if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then 4195 $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools" 4196 fi 4197 4198 # The following variable is set to the name of the directory where 4199 # the autotool scripts are located 4200 4201 AUX_DIR=$ac_aux_dir 4202fi 4203 4204# helpful variable for the base directory of this package 4205abs_source_dir=`cd $srcdir; pwd` 4206 4207 4208# Stuff for example Makefiles 4209if test x$prefix = xNONE; then 4210 full_prefix=$ac_default_prefix 4211else 4212 full_prefix=$prefix 4213fi 4214 4215 4216abs_lib_dir=$full_prefix/lib 4217 4218abs_include_dir=$full_prefix/include 4219 4220abs_bin_dir=$full_prefix/bin 4221 4222 4223 4224if test $coin_have_externals = yes && test x$have_svn = xyes; then 4225 HAVE_EXTERNALS_TRUE= 4226 HAVE_EXTERNALS_FALSE='#' 4227else 4228 HAVE_EXTERNALS_TRUE='#' 4229 HAVE_EXTERNALS_FALSE= 4230fi 4231 4232 4233# AC_MSG_NOTICE([End automake initialisation.]) 4234 4235 4236 4237LIBTOOL= 4238if test -f ../libtool; then 4239 coin_config_dir=.. 4240 LIBTOOL='$(SHELL) $(top_builddir)/../libtool' 4241fi 4242if test "x$LIBTOOL" = x; then 4243 if test -f ../../libtool; then 4244 coin_config_dir=../.. 4245 LIBTOOL='$(SHELL) $(top_builddir)/../../libtool' 4246 fi 4247fi 4248 4249if test "x$LIBTOOL" = x; then 4250# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).]) 4251 # Stuff for libtool 4252 # Check whether --enable-shared or --disable-shared was given. 4253if test "${enable_shared+set}" = set; then 4254 enableval="$enable_shared" 4255 p=${PACKAGE-default} 4256 case $enableval in 4257 yes) enable_shared=yes ;; 4258 no) enable_shared=no ;; 4259 *) 4260 enable_shared=no 4261 # Look at the argument we got. We use all the common list separators. 4262 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4263 for pkg in $enableval; do 4264 IFS="$lt_save_ifs" 4265 if test "X$pkg" = "X$p"; then 4266 enable_shared=yes 4267 fi 4268 done 4269 IFS="$lt_save_ifs" 4270 ;; 4271 esac 4272else 4273 enable_shared=yes 4274fi; 4275 4276# Check whether --enable-fast-install or --disable-fast-install was given. 4277if test "${enable_fast_install+set}" = set; then 4278 enableval="$enable_fast_install" 4279 p=${PACKAGE-default} 4280 case $enableval in 4281 yes) enable_fast_install=yes ;; 4282 no) enable_fast_install=no ;; 4283 *) 4284 enable_fast_install=no 4285 # Look at the argument we got. We use all the common list separators. 4286 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4287 for pkg in $enableval; do 4288 IFS="$lt_save_ifs" 4289 if test "X$pkg" = "X$p"; then 4290 enable_fast_install=yes 4291 fi 4292 done 4293 IFS="$lt_save_ifs" 4294 ;; 4295 esac 4296else 4297 enable_fast_install=yes 4298fi; 4299 4300echo "$as_me:$LINENO: checking host system type" >&5 4301echo $ECHO_N "checking host system type... $ECHO_C" >&6 4302if test "${ac_cv_host+set}" = set; then 4303 echo $ECHO_N "(cached) $ECHO_C" >&6 4304else 4305 ac_cv_host_alias=$host_alias 4306test -z "$ac_cv_host_alias" && 4307 ac_cv_host_alias=$ac_cv_build_alias 4308ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 4309 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 4310echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 4311 { (exit 1); exit 1; }; } 4312 4313fi 4314echo "$as_me:$LINENO: result: $ac_cv_host" >&5 4315echo "${ECHO_T}$ac_cv_host" >&6 4316host=$ac_cv_host 4317host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 4318host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 4319host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 4320 4321 4322echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 4323echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 4324if test "${lt_cv_path_SED+set}" = set; then 4325 echo $ECHO_N "(cached) $ECHO_C" >&6 4326else 4327 # Loop through the user's path and test for sed and gsed. 4328# Then use that list of sed's as ones to test for truncation. 4329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4330for as_dir in $PATH 4331do 4332 IFS=$as_save_IFS 4333 test -z "$as_dir" && as_dir=. 4334 for lt_ac_prog in sed gsed; do 4335 for ac_exec_ext in '' $ac_executable_extensions; do 4336 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 4337 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 4338 fi 4339 done 4340 done 4341done 4342lt_ac_max=0 4343lt_ac_count=0 4344# Add /usr/xpg4/bin/sed as it is typically found on Solaris 4345# along with /bin/sed that truncates output. 4346for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 4347 test ! -f $lt_ac_sed && continue 4348 cat /dev/null > conftest.in 4349 lt_ac_count=0 4350 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 4351 # Check for GNU sed and select it if it is found. 4352 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 4353 lt_cv_path_SED=$lt_ac_sed 4354 break 4355 fi 4356 while true; do 4357 cat conftest.in conftest.in >conftest.tmp 4358 mv conftest.tmp conftest.in 4359 cp conftest.in conftest.nl 4360 echo >>conftest.nl 4361 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 4362 cmp -s conftest.out conftest.nl || break 4363 # 10000 chars as input seems more than enough 4364 test $lt_ac_count -gt 10 && break 4365 lt_ac_count=`expr $lt_ac_count + 1` 4366 if test $lt_ac_count -gt $lt_ac_max; then 4367 lt_ac_max=$lt_ac_count 4368 lt_cv_path_SED=$lt_ac_sed 4369 fi 4370 done 4371done 4372 4373fi 4374 4375SED=$lt_cv_path_SED 4376echo "$as_me:$LINENO: result: $SED" >&5 4377echo "${ECHO_T}$SED" >&6 4378 4379 4380# Check whether --with-gnu-ld or --without-gnu-ld was given. 4381if test "${with_gnu_ld+set}" = set; then 4382 withval="$with_gnu_ld" 4383 test "$withval" = no || with_gnu_ld=yes 4384else 4385 with_gnu_ld=no 4386fi; 4387ac_prog=ld 4388if test "$GCC" = yes; then 4389 # Check if gcc -print-prog-name=ld gives a path. 4390 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4391echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 4392 case $host in 4393 *-*-mingw*) 4394 # gcc leaves a trailing carriage return which upsets mingw 4395 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4396 *) 4397 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4398 esac 4399 case $ac_prog in 4400 # Accept absolute paths. 4401 [\\/]* | ?:[\\/]*) 4402 re_direlt='/[^/][^/]*/\.\./' 4403 # Canonicalize the pathname of ld 4404 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 4405 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 4406 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 4407 done 4408 test -z "$LD" && LD="$ac_prog" 4409 ;; 4410 "") 4411 # If it fails, then pretend we aren't using GCC. 4412 ac_prog=ld 4413 ;; 4414 *) 4415 # If it is relative, then search for the first ld in PATH. 4416 with_gnu_ld=unknown 4417 ;; 4418 esac 4419elif test "$with_gnu_ld" = yes; then 4420 echo "$as_me:$LINENO: checking for GNU ld" >&5 4421echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 4422else 4423 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4424echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 4425fi 4426if test "${lt_cv_path_LD+set}" = set; then 4427 echo $ECHO_N "(cached) $ECHO_C" >&6 4428else 4429 if test -z "$LD"; then 4430 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4431 for ac_dir in $PATH; do 4432 IFS="$lt_save_ifs" 4433 test -z "$ac_dir" && ac_dir=. 4434 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4435 lt_cv_path_LD="$ac_dir/$ac_prog" 4436 # Check to see if the program is GNU ld. I'd rather use --version, 4437 # but apparently some variants of GNU ld only accept -v. 4438 # Break only if it was the GNU/non-GNU ld that we prefer. 4439 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4440 *GNU* | *'with BFD'*) 4441 test "$with_gnu_ld" != no && break 4442 ;; 4443 *) 4444 test "$with_gnu_ld" != yes && break 4445 ;; 4446 esac 4447 fi 4448 done 4449 IFS="$lt_save_ifs" 4450else 4451 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4452fi 4453fi 4454 4455LD="$lt_cv_path_LD" 4456if test -n "$LD"; then 4457 echo "$as_me:$LINENO: result: $LD" >&5 4458echo "${ECHO_T}$LD" >&6 4459else 4460 echo "$as_me:$LINENO: result: no" >&5 4461echo "${ECHO_T}no" >&6 4462fi 4463test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4464echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4465 { (exit 1); exit 1; }; } 4466echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4467echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 4468if test "${lt_cv_prog_gnu_ld+set}" = set; then 4469 echo $ECHO_N "(cached) $ECHO_C" >&6 4470else 4471 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4472case `$LD -v 2>&1 </dev/null` in 4473*GNU* | *'with BFD'*) 4474 lt_cv_prog_gnu_ld=yes 4475 ;; 4476*) 4477 lt_cv_prog_gnu_ld=no 4478 ;; 4479esac 4480fi 4481echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4482echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 4483with_gnu_ld=$lt_cv_prog_gnu_ld 4484 4485 4486echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4487echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 4488if test "${lt_cv_ld_reload_flag+set}" = set; then 4489 echo $ECHO_N "(cached) $ECHO_C" >&6 4490else 4491 lt_cv_ld_reload_flag='-r' 4492fi 4493echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4494echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 4495reload_flag=$lt_cv_ld_reload_flag 4496case $reload_flag in 4497"" | " "*) ;; 4498*) reload_flag=" $reload_flag" ;; 4499esac 4500reload_cmds='$LD$reload_flag -o $output$reload_objs' 4501case $host_os in 4502 darwin*) 4503 if test "$GCC" = yes; then 4504 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4505 else 4506 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4507 fi 4508 ;; 4509esac 4510 4511echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4512echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 4513if test "${lt_cv_path_NM+set}" = set; then 4514 echo $ECHO_N "(cached) $ECHO_C" >&6 4515else 4516 if test -n "$NM"; then 4517 # Let the user override the test. 4518 lt_cv_path_NM="$NM" 4519else 4520 lt_nm_to_check="${ac_tool_prefix}nm" 4521 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4522 lt_nm_to_check="$lt_nm_to_check nm" 4523 fi 4524 for lt_tmp_nm in $lt_nm_to_check; do 4525 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4526 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4527 IFS="$lt_save_ifs" 4528 test -z "$ac_dir" && ac_dir=. 4529 tmp_nm="$ac_dir/$lt_tmp_nm" 4530 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4531 # Check to see if the nm accepts a BSD-compat flag. 4532 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4533 # nm: unknown option "B" ignored 4534 # Tru64's nm complains that /dev/null is an invalid object file 4535 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4536 */dev/null* | *'Invalid file or object type'*) 4537 lt_cv_path_NM="$tmp_nm -B" 4538 break 4539 ;; 4540 *) 4541 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4542 */dev/null*) 4543 lt_cv_path_NM="$tmp_nm -p" 4544 break 4545 ;; 4546 *) 4547 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4548 continue # so that we can try to find one that supports BSD flags 4549 ;; 4550 esac 4551 ;; 4552 esac 4553 fi 4554 done 4555 IFS="$lt_save_ifs" 4556 done 4557 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4558fi 4559fi 4560echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4561echo "${ECHO_T}$lt_cv_path_NM" >&6 4562NM="$lt_cv_path_NM" 4563 4564echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 4565echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 4566if test "${lt_cv_deplibs_check_method+set}" = set; then 4567 echo $ECHO_N "(cached) $ECHO_C" >&6 4568else 4569 lt_cv_file_magic_cmd='$MAGIC_CMD' 4570lt_cv_file_magic_test_file= 4571lt_cv_deplibs_check_method='unknown' 4572# Need to set the preceding variable on all platforms that support 4573# interlibrary dependencies. 4574# 'none' -- dependencies not supported. 4575# `unknown' -- same as none, but documents that we really don't know. 4576# 'pass_all' -- all dependencies passed with no checks. 4577# 'test_compile' -- check by making test program. 4578# 'file_magic [[regex]]' -- check by looking for files in library path 4579# which responds to the $file_magic_cmd with a given extended regex. 4580# If you have `file' or equivalent on your system and you're not sure 4581# whether `pass_all' will *always* work, you probably want this one. 4582 4583case $host_os in 4584aix4* | aix5*) 4585 lt_cv_deplibs_check_method=pass_all 4586 ;; 4587 4588beos*) 4589 lt_cv_deplibs_check_method=pass_all 4590 ;; 4591 4592bsdi[45]*) 4593 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4594 lt_cv_file_magic_cmd='/usr/bin/file -L' 4595 lt_cv_file_magic_test_file=/shlib/libc.so 4596 ;; 4597 4598cygwin*) 4599 # func_win32_libid is a shell function defined in ltmain.sh 4600 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4601 lt_cv_file_magic_cmd='func_win32_libid' 4602 ;; 4603 4604mingw* | pw32*) 4605 # Base MSYS/MinGW do not provide the 'file' command needed by 4606 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 4607 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4608 lt_cv_file_magic_cmd='$OBJDUMP -f' 4609 ;; 4610 4611darwin* | rhapsody*) 4612 lt_cv_deplibs_check_method=pass_all 4613 ;; 4614 4615freebsd* | kfreebsd*-gnu | dragonfly*) 4616 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4617 case $host_cpu in 4618 i*86 ) 4619 # Not sure whether the presence of OpenBSD here was a mistake. 4620 # Let's accept both of them until this is cleared up. 4621 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4622 lt_cv_file_magic_cmd=/usr/bin/file 4623 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4624 ;; 4625 esac 4626 else 4627 lt_cv_deplibs_check_method=pass_all 4628 fi 4629 ;; 4630 4631gnu*) 4632 lt_cv_deplibs_check_method=pass_all 4633 ;; 4634 4635hpux10.20* | hpux11*) 4636 lt_cv_file_magic_cmd=/usr/bin/file 4637 case $host_cpu in 4638 ia64*) 4639 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4640 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4641 ;; 4642 hppa*64*) 4643 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]' 4644 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4645 ;; 4646 *) 4647 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4648 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4649 ;; 4650 esac 4651 ;; 4652 4653interix3*) 4654 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4655 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4656 ;; 4657 4658irix5* | irix6* | nonstopux*) 4659 case $LD in 4660 *-32|*"-32 ") libmagic=32-bit;; 4661 *-n32|*"-n32 ") libmagic=N32;; 4662 *-64|*"-64 ") libmagic=64-bit;; 4663 *) libmagic=never-match;; 4664 esac 4665 lt_cv_deplibs_check_method=pass_all 4666 ;; 4667 4668# This must be Linux ELF. 4669linux*) 4670 lt_cv_deplibs_check_method=pass_all 4671 ;; 4672 4673netbsd*) 4674 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4675 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4676 else 4677 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4678 fi 4679 ;; 4680 4681newos6*) 4682 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4683 lt_cv_file_magic_cmd=/usr/bin/file 4684 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4685 ;; 4686 4687nto-qnx*) 4688 lt_cv_deplibs_check_method=unknown 4689 ;; 4690 4691openbsd*) 4692 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4693 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4694 else 4695 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4696 fi 4697 ;; 4698 4699osf3* | osf4* | osf5*) 4700 lt_cv_deplibs_check_method=pass_all 4701 ;; 4702 4703solaris*) 4704 lt_cv_deplibs_check_method=pass_all 4705 ;; 4706 4707sysv4 | sysv4.3*) 4708 case $host_vendor in 4709 motorola) 4710 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]' 4711 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4712 ;; 4713 ncr) 4714 lt_cv_deplibs_check_method=pass_all 4715 ;; 4716 sequent) 4717 lt_cv_file_magic_cmd='/bin/file' 4718 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4719 ;; 4720 sni) 4721 lt_cv_file_magic_cmd='/bin/file' 4722 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4723 lt_cv_file_magic_test_file=/lib/libc.so 4724 ;; 4725 siemens) 4726 lt_cv_deplibs_check_method=pass_all 4727 ;; 4728 pc) 4729 lt_cv_deplibs_check_method=pass_all 4730 ;; 4731 esac 4732 ;; 4733 4734sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4735 lt_cv_deplibs_check_method=pass_all 4736 ;; 4737esac 4738 4739fi 4740echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4741echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 4742file_magic_cmd=$lt_cv_file_magic_cmd 4743deplibs_check_method=$lt_cv_deplibs_check_method 4744test -z "$deplibs_check_method" && deplibs_check_method=unknown 4745 4746 4747 4748 4749# If no C compiler was specified, use CC. 4750LTCC=${LTCC-"$CC"} 4751 4752# If no C compiler flags were specified, use CFLAGS. 4753LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4754 4755# Allow CC to be a program name with arguments. 4756compiler=$CC 4757 4758# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 4759if test "${enable_libtool_lock+set}" = set; then 4760 enableval="$enable_libtool_lock" 4761 4762fi; 4763test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4764 4765# Some flags need to be propagated to the compiler or linker for good 4766# libtool support. 4767case $host in 4768ia64-*-hpux*) 4769 # Find out which ABI we are using. 4770 echo 'int i;' > conftest.$ac_ext 4771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4772 (eval $ac_compile) 2>&5 4773 ac_status=$? 4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4775 (exit $ac_status); }; then 4776 case `/usr/bin/file conftest.$ac_objext` in 4777 *ELF-32*) 4778 HPUX_IA64_MODE="32" 4779 ;; 4780 *ELF-64*) 4781 HPUX_IA64_MODE="64" 4782 ;; 4783 esac 4784 fi 4785 rm -rf conftest* 4786 ;; 4787*-*-irix6*) 4788 # Find out which ABI we are using. 4789 echo '#line 4789 "configure"' > conftest.$ac_ext 4790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4791 (eval $ac_compile) 2>&5 4792 ac_status=$? 4793 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4794 (exit $ac_status); }; then 4795 if test "$lt_cv_prog_gnu_ld" = yes; then 4796 case `/usr/bin/file conftest.$ac_objext` in 4797 *32-bit*) 4798 LD="${LD-ld} -melf32bsmip" 4799 ;; 4800 *N32*) 4801 LD="${LD-ld} -melf32bmipn32" 4802 ;; 4803 *64-bit*) 4804 LD="${LD-ld} -melf64bmip" 4805 ;; 4806 esac 4807 else 4808 case `/usr/bin/file conftest.$ac_objext` in 4809 *32-bit*) 4810 LD="${LD-ld} -32" 4811 ;; 4812 *N32*) 4813 LD="${LD-ld} -n32" 4814 ;; 4815 *64-bit*) 4816 LD="${LD-ld} -64" 4817 ;; 4818 esac 4819 fi 4820 fi 4821 rm -rf conftest* 4822 ;; 4823 4824x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 4825 # Find out which ABI we are using. 4826 echo 'int i;' > conftest.$ac_ext 4827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4828 (eval $ac_compile) 2>&5 4829 ac_status=$? 4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4831 (exit $ac_status); }; then 4832 case `/usr/bin/file conftest.o` in 4833 *32-bit*) 4834 case $host in 4835 x86_64-*linux*) 4836 LD="${LD-ld} -m elf_i386" 4837 ;; 4838 ppc64-*linux*|powerpc64-*linux*) 4839 LD="${LD-ld} -m elf32ppclinux" 4840 ;; 4841 s390x-*linux*) 4842 LD="${LD-ld} -m elf_s390" 4843 ;; 4844 sparc64-*linux*) 4845 LD="${LD-ld} -m elf32_sparc" 4846 ;; 4847 esac 4848 ;; 4849 *64-bit*) 4850 case $host in 4851 x86_64-*linux*) 4852 LD="${LD-ld} -m elf_x86_64" 4853 ;; 4854 ppc*-*linux*|powerpc*-*linux*) 4855 LD="${LD-ld} -m elf64ppc" 4856 ;; 4857 s390*-*linux*) 4858 LD="${LD-ld} -m elf64_s390" 4859 ;; 4860 sparc*-*linux*) 4861 LD="${LD-ld} -m elf64_sparc" 4862 ;; 4863 esac 4864 ;; 4865 esac 4866 fi 4867 rm -rf conftest* 4868 ;; 4869 4870*-*-sco3.2v5*) 4871 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4872 SAVE_CFLAGS="$CFLAGS" 4873 CFLAGS="$CFLAGS -belf" 4874 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4875echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 4876if test "${lt_cv_cc_needs_belf+set}" = set; then 4877 echo $ECHO_N "(cached) $ECHO_C" >&6 4878else 4879 ac_ext=c 4880ac_cpp='$CPP $CPPFLAGS' 4881ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4882ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4883ac_compiler_gnu=$ac_cv_c_compiler_gnu 4884 4885 cat >conftest.$ac_ext <<_ACEOF 4886/* confdefs.h. */ 4887_ACEOF 4888cat confdefs.h >>conftest.$ac_ext 4889cat >>conftest.$ac_ext <<_ACEOF 4890/* end confdefs.h. */ 4891 4892int 4893main () 4894{ 4895 4896 ; 4897 return 0; 4898} 4899_ACEOF 4900rm -f conftest.$ac_objext conftest$ac_exeext 4901if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4902 (eval $ac_link) 2>conftest.er1 4903 ac_status=$? 4904 grep -v '^ *+' conftest.er1 >conftest.err 4905 rm -f conftest.er1 4906 cat conftest.err >&5 4907 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4908 (exit $ac_status); } && 4909 { ac_try='test -z "$ac_c_werror_flag" 4910 || test ! -s conftest.err' 4911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4912 (eval $ac_try) 2>&5 4913 ac_status=$? 4914 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4915 (exit $ac_status); }; } && 4916 { ac_try='test -s conftest$ac_exeext' 4917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4918 (eval $ac_try) 2>&5 4919 ac_status=$? 4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4921 (exit $ac_status); }; }; then 4922 lt_cv_cc_needs_belf=yes 4923else 4924 echo "$as_me: failed program was:" >&5 4925sed 's/^/| /' conftest.$ac_ext >&5 4926 4927lt_cv_cc_needs_belf=no 4928fi 4929rm -f conftest.err conftest.$ac_objext \ 4930 conftest$ac_exeext conftest.$ac_ext 4931 ac_ext=c 4932ac_cpp='$CPP $CPPFLAGS' 4933ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4934ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4935ac_compiler_gnu=$ac_cv_c_compiler_gnu 4936 4937fi 4938echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4939echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 4940 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4941 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4942 CFLAGS="$SAVE_CFLAGS" 4943 fi 4944 ;; 4945sparc*-*solaris*) 4946 # Find out which ABI we are using. 4947 echo 'int i;' > conftest.$ac_ext 4948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4949 (eval $ac_compile) 2>&5 4950 ac_status=$? 4951 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4952 (exit $ac_status); }; then 4953 case `/usr/bin/file conftest.o` in 4954 *64-bit*) 4955 case $lt_cv_prog_gnu_ld in 4956 yes*) LD="${LD-ld} -m elf64_sparc" ;; 4957 *) LD="${LD-ld} -64" ;; 4958 esac 4959 ;; 4960 esac 4961 fi 4962 rm -rf conftest* 4963 ;; 4964 4965 4966esac 4967 4968need_locks="$enable_libtool_lock" 4969 4970 4971ac_ext=c 4972ac_cpp='$CPP $CPPFLAGS' 4973ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4974ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4975ac_compiler_gnu=$ac_cv_c_compiler_gnu 4976echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4977echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 4978# On Suns, sometimes $CPP names a directory. 4979if test -n "$CPP" && test -d "$CPP"; then 4980 CPP= 4981fi 4982if test -z "$CPP"; then 4983 if test "${ac_cv_prog_CPP+set}" = set; then 4984 echo $ECHO_N "(cached) $ECHO_C" >&6 4985else 4986 # Double quotes because CPP needs to be expanded 4987 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4988 do 4989 ac_preproc_ok=false 4990for ac_c_preproc_warn_flag in '' yes 4991do 4992 # Use a header file that comes with gcc, so configuring glibc 4993 # with a fresh cross-compiler works. 4994 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4995 # <limits.h> exists even on freestanding compilers. 4996 # On the NeXT, cc -E runs the code through the compiler's parser, 4997 # not just through cpp. "Syntax error" is here to catch this case. 4998 cat >conftest.$ac_ext <<_ACEOF 4999/* confdefs.h. */ 5000_ACEOF 5001cat confdefs.h >>conftest.$ac_ext 5002cat >>conftest.$ac_ext <<_ACEOF 5003/* end confdefs.h. */ 5004#ifdef __STDC__ 5005# include <limits.h> 5006#else 5007# include <assert.h> 5008#endif 5009 Syntax error 5010_ACEOF 5011if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5012 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5013 ac_status=$? 5014 grep -v '^ *+' conftest.er1 >conftest.err 5015 rm -f conftest.er1 5016 cat conftest.err >&5 5017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5018 (exit $ac_status); } >/dev/null; then 5019 if test -s conftest.err; then 5020 ac_cpp_err=$ac_c_preproc_warn_flag 5021 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5022 else 5023 ac_cpp_err= 5024 fi 5025else 5026 ac_cpp_err=yes 5027fi 5028if test -z "$ac_cpp_err"; then 5029 : 5030else 5031 echo "$as_me: failed program was:" >&5 5032sed 's/^/| /' conftest.$ac_ext >&5 5033 5034 # Broken: fails on valid input. 5035continue 5036fi 5037rm -f conftest.err conftest.$ac_ext 5038 5039 # OK, works on sane cases. Now check whether non-existent headers 5040 # can be detected and how. 5041 cat >conftest.$ac_ext <<_ACEOF 5042/* confdefs.h. */ 5043_ACEOF 5044cat confdefs.h >>conftest.$ac_ext 5045cat >>conftest.$ac_ext <<_ACEOF 5046/* end confdefs.h. */ 5047#include <ac_nonexistent.h> 5048_ACEOF 5049if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5050 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5051 ac_status=$? 5052 grep -v '^ *+' conftest.er1 >conftest.err 5053 rm -f conftest.er1 5054 cat conftest.err >&5 5055 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5056 (exit $ac_status); } >/dev/null; then 5057 if test -s conftest.err; then 5058 ac_cpp_err=$ac_c_preproc_warn_flag 5059 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5060 else 5061 ac_cpp_err= 5062 fi 5063else 5064 ac_cpp_err=yes 5065fi 5066if test -z "$ac_cpp_err"; then 5067 # Broken: success on invalid input. 5068continue 5069else 5070 echo "$as_me: failed program was:" >&5 5071sed 's/^/| /' conftest.$ac_ext >&5 5072 5073 # Passes both tests. 5074ac_preproc_ok=: 5075break 5076fi 5077rm -f conftest.err conftest.$ac_ext 5078 5079done 5080# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5081rm -f conftest.err conftest.$ac_ext 5082if $ac_preproc_ok; then 5083 break 5084fi 5085 5086 done 5087 ac_cv_prog_CPP=$CPP 5088 5089fi 5090 CPP=$ac_cv_prog_CPP 5091else 5092 ac_cv_prog_CPP=$CPP 5093fi 5094echo "$as_me:$LINENO: result: $CPP" >&5 5095echo "${ECHO_T}$CPP" >&6 5096ac_preproc_ok=false 5097for ac_c_preproc_warn_flag in '' yes 5098do 5099 # Use a header file that comes with gcc, so configuring glibc 5100 # with a fresh cross-compiler works. 5101 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5102 # <limits.h> exists even on freestanding compilers. 5103 # On the NeXT, cc -E runs the code through the compiler's parser, 5104 # not just through cpp. "Syntax error" is here to catch this case. 5105 cat >conftest.$ac_ext <<_ACEOF 5106/* confdefs.h. */ 5107_ACEOF 5108cat confdefs.h >>conftest.$ac_ext 5109cat >>conftest.$ac_ext <<_ACEOF 5110/* end confdefs.h. */ 5111#ifdef __STDC__ 5112# include <limits.h> 5113#else 5114# include <assert.h> 5115#endif 5116 Syntax error 5117_ACEOF 5118if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5119 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5120 ac_status=$? 5121 grep -v '^ *+' conftest.er1 >conftest.err 5122 rm -f conftest.er1 5123 cat conftest.err >&5 5124 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5125 (exit $ac_status); } >/dev/null; then 5126 if test -s conftest.err; then 5127 ac_cpp_err=$ac_c_preproc_warn_flag 5128 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5129 else 5130 ac_cpp_err= 5131 fi 5132else 5133 ac_cpp_err=yes 5134fi 5135if test -z "$ac_cpp_err"; then 5136 : 5137else 5138 echo "$as_me: failed program was:" >&5 5139sed 's/^/| /' conftest.$ac_ext >&5 5140 5141 # Broken: fails on valid input. 5142continue 5143fi 5144rm -f conftest.err conftest.$ac_ext 5145 5146 # OK, works on sane cases. Now check whether non-existent headers 5147 # can be detected and how. 5148 cat >conftest.$ac_ext <<_ACEOF 5149/* confdefs.h. */ 5150_ACEOF 5151cat confdefs.h >>conftest.$ac_ext 5152cat >>conftest.$ac_ext <<_ACEOF 5153/* end confdefs.h. */ 5154#include <ac_nonexistent.h> 5155_ACEOF 5156if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5157 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5158 ac_status=$? 5159 grep -v '^ *+' conftest.er1 >conftest.err 5160 rm -f conftest.er1 5161 cat conftest.err >&5 5162 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5163 (exit $ac_status); } >/dev/null; then 5164 if test -s conftest.err; then 5165 ac_cpp_err=$ac_c_preproc_warn_flag 5166 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5167 else 5168 ac_cpp_err= 5169 fi 5170else 5171 ac_cpp_err=yes 5172fi 5173if test -z "$ac_cpp_err"; then 5174 # Broken: success on invalid input. 5175continue 5176else 5177 echo "$as_me: failed program was:" >&5 5178sed 's/^/| /' conftest.$ac_ext >&5 5179 5180 # Passes both tests. 5181ac_preproc_ok=: 5182break 5183fi 5184rm -f conftest.err conftest.$ac_ext 5185 5186done 5187# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5188rm -f conftest.err conftest.$ac_ext 5189if $ac_preproc_ok; then 5190 : 5191else 5192 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 5193See \`config.log' for more details." >&5 5194echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 5195See \`config.log' for more details." >&2;} 5196 { (exit 1); exit 1; }; } 5197fi 5198 5199ac_ext=c 5200ac_cpp='$CPP $CPPFLAGS' 5201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5203ac_compiler_gnu=$ac_cv_c_compiler_gnu 5204 5205 5206echo "$as_me:$LINENO: checking for ANSI C header files" >&5 5207echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 5208if test "${ac_cv_header_stdc+set}" = set; then 5209 echo $ECHO_N "(cached) $ECHO_C" >&6 5210else 5211 cat >conftest.$ac_ext <<_ACEOF 5212/* confdefs.h. */ 5213_ACEOF 5214cat confdefs.h >>conftest.$ac_ext 5215cat >>conftest.$ac_ext <<_ACEOF 5216/* end confdefs.h. */ 5217#include <stdlib.h> 5218#include <stdarg.h> 5219#include <string.h> 5220#include <float.h> 5221 5222int 5223main () 5224{ 5225 5226 ; 5227 return 0; 5228} 5229_ACEOF 5230rm -f conftest.$ac_objext 5231if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5232 (eval $ac_compile) 2>conftest.er1 5233 ac_status=$? 5234 grep -v '^ *+' conftest.er1 >conftest.err 5235 rm -f conftest.er1 5236 cat conftest.err >&5 5237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5238 (exit $ac_status); } && 5239 { ac_try='test -z "$ac_c_werror_flag" 5240 || test ! -s conftest.err' 5241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5242 (eval $ac_try) 2>&5 5243 ac_status=$? 5244 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5245 (exit $ac_status); }; } && 5246 { ac_try='test -s conftest.$ac_objext' 5247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5248 (eval $ac_try) 2>&5 5249 ac_status=$? 5250 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5251 (exit $ac_status); }; }; then 5252 ac_cv_header_stdc=yes 5253else 5254 echo "$as_me: failed program was:" >&5 5255sed 's/^/| /' conftest.$ac_ext >&5 5256 5257ac_cv_header_stdc=no 5258fi 5259rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5260 5261if test $ac_cv_header_stdc = yes; then 5262 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5263 cat >conftest.$ac_ext <<_ACEOF 5264/* confdefs.h. */ 5265_ACEOF 5266cat confdefs.h >>conftest.$ac_ext 5267cat >>conftest.$ac_ext <<_ACEOF 5268/* end confdefs.h. */ 5269#include <string.h> 5270 5271_ACEOF 5272if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5273 $EGREP "memchr" >/dev/null 2>&1; then 5274 : 5275else 5276 ac_cv_header_stdc=no 5277fi 5278rm -f conftest* 5279 5280fi 5281 5282if test $ac_cv_header_stdc = yes; then 5283 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5284 cat >conftest.$ac_ext <<_ACEOF 5285/* confdefs.h. */ 5286_ACEOF 5287cat confdefs.h >>conftest.$ac_ext 5288cat >>conftest.$ac_ext <<_ACEOF 5289/* end confdefs.h. */ 5290#include <stdlib.h> 5291 5292_ACEOF 5293if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5294 $EGREP "free" >/dev/null 2>&1; then 5295 : 5296else 5297 ac_cv_header_stdc=no 5298fi 5299rm -f conftest* 5300 5301fi 5302 5303if test $ac_cv_header_stdc = yes; then 5304 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5305 if test "$cross_compiling" = yes; then 5306 : 5307else 5308 cat >conftest.$ac_ext <<_ACEOF 5309/* confdefs.h. */ 5310_ACEOF 5311cat confdefs.h >>conftest.$ac_ext 5312cat >>conftest.$ac_ext <<_ACEOF 5313/* end confdefs.h. */ 5314#include <ctype.h> 5315#if ((' ' & 0x0FF) == 0x020) 5316# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5317# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5318#else 5319# define ISLOWER(c) \ 5320 (('a' <= (c) && (c) <= 'i') \ 5321 || ('j' <= (c) && (c) <= 'r') \ 5322 || ('s' <= (c) && (c) <= 'z')) 5323# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5324#endif 5325 5326#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5327int 5328main () 5329{ 5330 int i; 5331 for (i = 0; i < 256; i++) 5332 if (XOR (islower (i), ISLOWER (i)) 5333 || toupper (i) != TOUPPER (i)) 5334 exit(2); 5335 exit (0); 5336} 5337_ACEOF 5338rm -f conftest$ac_exeext 5339if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5340 (eval $ac_link) 2>&5 5341 ac_status=$? 5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5343 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5345 (eval $ac_try) 2>&5 5346 ac_status=$? 5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5348 (exit $ac_status); }; }; then 5349 : 5350else 5351 echo "$as_me: program exited with status $ac_status" >&5 5352echo "$as_me: failed program was:" >&5 5353sed 's/^/| /' conftest.$ac_ext >&5 5354 5355( exit $ac_status ) 5356ac_cv_header_stdc=no 5357fi 5358rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5359fi 5360fi 5361fi 5362echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 5363echo "${ECHO_T}$ac_cv_header_stdc" >&6 5364if test $ac_cv_header_stdc = yes; then 5365 5366cat >>confdefs.h <<\_ACEOF 5367#define STDC_HEADERS 1 5368_ACEOF 5369 5370fi 5371 5372# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5383 inttypes.h stdint.h unistd.h 5384do 5385as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5386echo "$as_me:$LINENO: checking for $ac_header" >&5 5387echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5388if eval "test \"\${$as_ac_Header+set}\" = set"; then 5389 echo $ECHO_N "(cached) $ECHO_C" >&6 5390else 5391 cat >conftest.$ac_ext <<_ACEOF 5392/* confdefs.h. */ 5393_ACEOF 5394cat confdefs.h >>conftest.$ac_ext 5395cat >>conftest.$ac_ext <<_ACEOF 5396/* end confdefs.h. */ 5397$ac_includes_default 5398 5399#include <$ac_header> 5400_ACEOF 5401rm -f conftest.$ac_objext 5402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5403 (eval $ac_compile) 2>conftest.er1 5404 ac_status=$? 5405 grep -v '^ *+' conftest.er1 >conftest.err 5406 rm -f conftest.er1 5407 cat conftest.err >&5 5408 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5409 (exit $ac_status); } && 5410 { ac_try='test -z "$ac_c_werror_flag" 5411 || test ! -s conftest.err' 5412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5413 (eval $ac_try) 2>&5 5414 ac_status=$? 5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5416 (exit $ac_status); }; } && 5417 { ac_try='test -s conftest.$ac_objext' 5418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5419 (eval $ac_try) 2>&5 5420 ac_status=$? 5421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5422 (exit $ac_status); }; }; then 5423 eval "$as_ac_Header=yes" 5424else 5425 echo "$as_me: failed program was:" >&5 5426sed 's/^/| /' conftest.$ac_ext >&5 5427 5428eval "$as_ac_Header=no" 5429fi 5430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5431fi 5432echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5433echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5434if test `eval echo '${'$as_ac_Header'}'` = yes; then 5435 cat >>confdefs.h <<_ACEOF 5436#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5437_ACEOF 5438 5439fi 5440 5441done 5442 5443 5444 5445for ac_header in dlfcn.h 5446do 5447as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5448if eval "test \"\${$as_ac_Header+set}\" = set"; then 5449 echo "$as_me:$LINENO: checking for $ac_header" >&5 5450echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5451if eval "test \"\${$as_ac_Header+set}\" = set"; then 5452 echo $ECHO_N "(cached) $ECHO_C" >&6 5453fi 5454echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5455echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5456else 5457 # Is the header compilable? 5458echo "$as_me:$LINENO: checking $ac_header usability" >&5 5459echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 5460cat >conftest.$ac_ext <<_ACEOF 5461/* confdefs.h. */ 5462_ACEOF 5463cat confdefs.h >>conftest.$ac_ext 5464cat >>conftest.$ac_ext <<_ACEOF 5465/* end confdefs.h. */ 5466$ac_includes_default 5467#include <$ac_header> 5468_ACEOF 5469rm -f conftest.$ac_objext 5470if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5471 (eval $ac_compile) 2>conftest.er1 5472 ac_status=$? 5473 grep -v '^ *+' conftest.er1 >conftest.err 5474 rm -f conftest.er1 5475 cat conftest.err >&5 5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5477 (exit $ac_status); } && 5478 { ac_try='test -z "$ac_c_werror_flag" 5479 || test ! -s conftest.err' 5480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5481 (eval $ac_try) 2>&5 5482 ac_status=$? 5483 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5484 (exit $ac_status); }; } && 5485 { ac_try='test -s conftest.$ac_objext' 5486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5487 (eval $ac_try) 2>&5 5488 ac_status=$? 5489 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5490 (exit $ac_status); }; }; then 5491 ac_header_compiler=yes 5492else 5493 echo "$as_me: failed program was:" >&5 5494sed 's/^/| /' conftest.$ac_ext >&5 5495 5496ac_header_compiler=no 5497fi 5498rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5499echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5500echo "${ECHO_T}$ac_header_compiler" >&6 5501 5502# Is the header present? 5503echo "$as_me:$LINENO: checking $ac_header presence" >&5 5504echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 5505cat >conftest.$ac_ext <<_ACEOF 5506/* confdefs.h. */ 5507_ACEOF 5508cat confdefs.h >>conftest.$ac_ext 5509cat >>conftest.$ac_ext <<_ACEOF 5510/* end confdefs.h. */ 5511#include <$ac_header> 5512_ACEOF 5513if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5514 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5515 ac_status=$? 5516 grep -v '^ *+' conftest.er1 >conftest.err 5517 rm -f conftest.er1 5518 cat conftest.err >&5 5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5520 (exit $ac_status); } >/dev/null; then 5521 if test -s conftest.err; then 5522 ac_cpp_err=$ac_c_preproc_warn_flag 5523 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5524 else 5525 ac_cpp_err= 5526 fi 5527else 5528 ac_cpp_err=yes 5529fi 5530if test -z "$ac_cpp_err"; then 5531 ac_header_preproc=yes 5532else 5533 echo "$as_me: failed program was:" >&5 5534sed 's/^/| /' conftest.$ac_ext >&5 5535 5536 ac_header_preproc=no 5537fi 5538rm -f conftest.err conftest.$ac_ext 5539echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5540echo "${ECHO_T}$ac_header_preproc" >&6 5541 5542# So? What about this header? 5543case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5544 yes:no: ) 5545 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5546echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5547 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5548echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5549 ac_header_preproc=yes 5550 ;; 5551 no:yes:* ) 5552 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5553echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5554 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5555echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5556 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5557echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5558 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5559echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5561echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5562 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5563echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5564 ( 5565 cat <<\_ASBOX 5566## --------------------------------------------------------------- ## 5567## Report this to http://projects.coin-or.org/BuildTools/newticket ## 5568## --------------------------------------------------------------- ## 5569_ASBOX 5570 ) | 5571 sed "s/^/$as_me: WARNING: /" >&2 5572 ;; 5573esac 5574echo "$as_me:$LINENO: checking for $ac_header" >&5 5575echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5576if eval "test \"\${$as_ac_Header+set}\" = set"; then 5577 echo $ECHO_N "(cached) $ECHO_C" >&6 5578else 5579 eval "$as_ac_Header=\$ac_header_preproc" 5580fi 5581echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5582echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5583 5584fi 5585if test `eval echo '${'$as_ac_Header'}'` = yes; then 5586 cat >>confdefs.h <<_ACEOF 5587#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5588_ACEOF 5589 5590fi 5591 5592done 5593 5594ac_ext=cc 5595ac_cpp='$CXXCPP $CPPFLAGS' 5596ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5597ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5598ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5599if test -n "$ac_tool_prefix"; then 5600 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 5601 do 5602 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5603set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5604echo "$as_me:$LINENO: checking for $ac_word" >&5 5605echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5606if test "${ac_cv_prog_CXX+set}" = set; then 5607 echo $ECHO_N "(cached) $ECHO_C" >&6 5608else 5609 if test -n "$CXX"; then 5610 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5611else 5612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5613for as_dir in $PATH 5614do 5615 IFS=$as_save_IFS 5616 test -z "$as_dir" && as_dir=. 5617 for ac_exec_ext in '' $ac_executable_extensions; do 5618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5619 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5621 break 2 5622 fi 5623done 5624done 5625 5626fi 5627fi 5628CXX=$ac_cv_prog_CXX 5629if test -n "$CXX"; then 5630 echo "$as_me:$LINENO: result: $CXX" >&5 5631echo "${ECHO_T}$CXX" >&6 5632else 5633 echo "$as_me:$LINENO: result: no" >&5 5634echo "${ECHO_T}no" >&6 5635fi 5636 5637 test -n "$CXX" && break 5638 done 5639fi 5640if test -z "$CXX"; then 5641 ac_ct_CXX=$CXX 5642 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 5643do 5644 # Extract the first word of "$ac_prog", so it can be a program name with args. 5645set dummy $ac_prog; ac_word=$2 5646echo "$as_me:$LINENO: checking for $ac_word" >&5 5647echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5648if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 5649 echo $ECHO_N "(cached) $ECHO_C" >&6 5650else 5651 if test -n "$ac_ct_CXX"; then 5652 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5653else 5654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5655for as_dir in $PATH 5656do 5657 IFS=$as_save_IFS 5658 test -z "$as_dir" && as_dir=. 5659 for ac_exec_ext in '' $ac_executable_extensions; do 5660 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5661 ac_cv_prog_ac_ct_CXX="$ac_prog" 5662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5663 break 2 5664 fi 5665done 5666done 5667 5668fi 5669fi 5670ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5671if test -n "$ac_ct_CXX"; then 5672 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 5673echo "${ECHO_T}$ac_ct_CXX" >&6 5674else 5675 echo "$as_me:$LINENO: result: no" >&5 5676echo "${ECHO_T}no" >&6 5677fi 5678 5679 test -n "$ac_ct_CXX" && break 5680done 5681test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 5682 5683 CXX=$ac_ct_CXX 5684fi 5685 5686 5687# Provide some information about the compiler. 5688echo "$as_me:$LINENO:" \ 5689 "checking for C++ compiler version" >&5 5690ac_compiler=`set X $ac_compile; echo $2` 5691{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 5692 (eval $ac_compiler --version </dev/null >&5) 2>&5 5693 ac_status=$? 5694 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5695 (exit $ac_status); } 5696{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 5697 (eval $ac_compiler -v </dev/null >&5) 2>&5 5698 ac_status=$? 5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5700 (exit $ac_status); } 5701{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 5702 (eval $ac_compiler -V </dev/null >&5) 2>&5 5703 ac_status=$? 5704 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5705 (exit $ac_status); } 5706 5707echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 5708echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 5709if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 5710 echo $ECHO_N "(cached) $ECHO_C" >&6 5711else 5712 cat >conftest.$ac_ext <<_ACEOF 5713/* confdefs.h. */ 5714_ACEOF 5715cat confdefs.h >>conftest.$ac_ext 5716cat >>conftest.$ac_ext <<_ACEOF 5717/* end confdefs.h. */ 5718 5719int 5720main () 5721{ 5722#ifndef __GNUC__ 5723 choke me 5724#endif 5725 5726 ; 5727 return 0; 5728} 5729_ACEOF 5730rm -f conftest.$ac_objext 5731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5732 (eval $ac_compile) 2>conftest.er1 5733 ac_status=$? 5734 grep -v '^ *+' conftest.er1 >conftest.err 5735 rm -f conftest.er1 5736 cat conftest.err >&5 5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5738 (exit $ac_status); } && 5739 { ac_try='test -z "$ac_cxx_werror_flag" 5740 || test ! -s conftest.err' 5741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5742 (eval $ac_try) 2>&5 5743 ac_status=$? 5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5745 (exit $ac_status); }; } && 5746 { ac_try='test -s conftest.$ac_objext' 5747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5748 (eval $ac_try) 2>&5 5749 ac_status=$? 5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5751 (exit $ac_status); }; }; then 5752 ac_compiler_gnu=yes 5753else 5754 echo "$as_me: failed program was:" >&5 5755sed 's/^/| /' conftest.$ac_ext >&5 5756 5757ac_compiler_gnu=no 5758fi 5759rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5760ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5761 5762fi 5763echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 5764echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 5765GXX=`test $ac_compiler_gnu = yes && echo yes` 5766ac_test_CXXFLAGS=${CXXFLAGS+set} 5767ac_save_CXXFLAGS=$CXXFLAGS 5768CXXFLAGS="-g" 5769echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 5770echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 5771if test "${ac_cv_prog_cxx_g+set}" = set; then 5772 echo $ECHO_N "(cached) $ECHO_C" >&6 5773else 5774 cat >conftest.$ac_ext <<_ACEOF 5775/* confdefs.h. */ 5776_ACEOF 5777cat confdefs.h >>conftest.$ac_ext 5778cat >>conftest.$ac_ext <<_ACEOF 5779/* end confdefs.h. */ 5780 5781int 5782main () 5783{ 5784 5785 ; 5786 return 0; 5787} 5788_ACEOF 5789rm -f conftest.$ac_objext 5790if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5791 (eval $ac_compile) 2>conftest.er1 5792 ac_status=$? 5793 grep -v '^ *+' conftest.er1 >conftest.err 5794 rm -f conftest.er1 5795 cat conftest.err >&5 5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5797 (exit $ac_status); } && 5798 { ac_try='test -z "$ac_cxx_werror_flag" 5799 || test ! -s conftest.err' 5800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5801 (eval $ac_try) 2>&5 5802 ac_status=$? 5803 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5804 (exit $ac_status); }; } && 5805 { ac_try='test -s conftest.$ac_objext' 5806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5807 (eval $ac_try) 2>&5 5808 ac_status=$? 5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5810 (exit $ac_status); }; }; then 5811 ac_cv_prog_cxx_g=yes 5812else 5813 echo "$as_me: failed program was:" >&5 5814sed 's/^/| /' conftest.$ac_ext >&5 5815 5816ac_cv_prog_cxx_g=no 5817fi 5818rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5819fi 5820echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 5821echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 5822if test "$ac_test_CXXFLAGS" = set; then 5823 CXXFLAGS=$ac_save_CXXFLAGS 5824elif test $ac_cv_prog_cxx_g = yes; then 5825 if test "$GXX" = yes; then 5826 CXXFLAGS="-g -O2" 5827 else 5828 CXXFLAGS="-g" 5829 fi 5830else 5831 if test "$GXX" = yes; then 5832 CXXFLAGS="-O2" 5833 else 5834 CXXFLAGS= 5835 fi 5836fi 5837for ac_declaration in \ 5838 '' \ 5839 'extern "C" void std::exit (int) throw (); using std::exit;' \ 5840 'extern "C" void std::exit (int); using std::exit;' \ 5841 'extern "C" void exit (int) throw ();' \ 5842 'extern "C" void exit (int);' \ 5843 'void exit (int);' 5844do 5845 cat >conftest.$ac_ext <<_ACEOF 5846/* confdefs.h. */ 5847_ACEOF 5848cat confdefs.h >>conftest.$ac_ext 5849cat >>conftest.$ac_ext <<_ACEOF 5850/* end confdefs.h. */ 5851$ac_declaration 5852#include <stdlib.h> 5853int 5854main () 5855{ 5856exit (42); 5857 ; 5858 return 0; 5859} 5860_ACEOF 5861rm -f conftest.$ac_objext 5862if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5863 (eval $ac_compile) 2>conftest.er1 5864 ac_status=$? 5865 grep -v '^ *+' conftest.er1 >conftest.err 5866 rm -f conftest.er1 5867 cat conftest.err >&5 5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5869 (exit $ac_status); } && 5870 { ac_try='test -z "$ac_cxx_werror_flag" 5871 || test ! -s conftest.err' 5872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5873 (eval $ac_try) 2>&5 5874 ac_status=$? 5875 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5876 (exit $ac_status); }; } && 5877 { ac_try='test -s conftest.$ac_objext' 5878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5879 (eval $ac_try) 2>&5 5880 ac_status=$? 5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5882 (exit $ac_status); }; }; then 5883 : 5884else 5885 echo "$as_me: failed program was:" >&5 5886sed 's/^/| /' conftest.$ac_ext >&5 5887 5888continue 5889fi 5890rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5891 cat >conftest.$ac_ext <<_ACEOF 5892/* confdefs.h. */ 5893_ACEOF 5894cat confdefs.h >>conftest.$ac_ext 5895cat >>conftest.$ac_ext <<_ACEOF 5896/* end confdefs.h. */ 5897$ac_declaration 5898int 5899main () 5900{ 5901exit (42); 5902 ; 5903 return 0; 5904} 5905_ACEOF 5906rm -f conftest.$ac_objext 5907if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5908 (eval $ac_compile) 2>conftest.er1 5909 ac_status=$? 5910 grep -v '^ *+' conftest.er1 >conftest.err 5911 rm -f conftest.er1 5912 cat conftest.err >&5 5913 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5914 (exit $ac_status); } && 5915 { ac_try='test -z "$ac_cxx_werror_flag" 5916 || test ! -s conftest.err' 5917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5918 (eval $ac_try) 2>&5 5919 ac_status=$? 5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5921 (exit $ac_status); }; } && 5922 { ac_try='test -s conftest.$ac_objext' 5923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5924 (eval $ac_try) 2>&5 5925 ac_status=$? 5926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5927 (exit $ac_status); }; }; then 5928 break 5929else 5930 echo "$as_me: failed program was:" >&5 5931sed 's/^/| /' conftest.$ac_ext >&5 5932 5933fi 5934rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5935done 5936rm -f conftest* 5937if test -n "$ac_declaration"; then 5938 echo '#ifdef __cplusplus' >>confdefs.h 5939 echo $ac_declaration >>confdefs.h 5940 echo '#endif' >>confdefs.h 5941fi 5942 5943ac_ext=cc 5944ac_cpp='$CXXCPP $CPPFLAGS' 5945ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5946ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5947ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5948 5949depcc="$CXX" am_compiler_list= 5950 5951echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5952echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 5953if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 5954 echo $ECHO_N "(cached) $ECHO_C" >&6 5955else 5956 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5957 # We make a subdir and do the tests there. Otherwise we can end up 5958 # making bogus files that we don't know about and never remove. For 5959 # instance it was reported that on HP-UX the gcc test will end up 5960 # making a dummy file named `D' -- because `-MD' means `put the output 5961 # in D'. 5962 mkdir conftest.dir 5963 # Copy depcomp to subdir because otherwise we won't find it if we're 5964 # using a relative directory. 5965 cp "$am_depcomp" conftest.dir 5966 cd conftest.dir 5967 # We will build objects and dependencies in a subdirectory because 5968 # it helps to detect inapplicable dependency modes. For instance 5969 # both Tru64's cc and ICC support -MD to output dependencies as a 5970 # side effect of compilation, but ICC will put the dependencies in 5971 # the current directory while Tru64 will put them in the object 5972 # directory. 5973 mkdir sub 5974 5975 am_cv_CXX_dependencies_compiler_type=none 5976 if test "$am_compiler_list" = ""; then 5977 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5978 fi 5979 for depmode in $am_compiler_list; do 5980 # Setup a source with many dependencies, because some compilers 5981 # like to wrap large dependency lists on column 80 (with \), and 5982 # we should not choose a depcomp mode which is confused by this. 5983 # 5984 # We need to recreate these files for each test, as the compiler may 5985 # overwrite some of them when testing with obscure command lines. 5986 # This happens at least with the AIX C compiler. 5987 : > sub/conftest.c 5988 for i in 1 2 3 4 5 6; do 5989 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5990 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5991 # Solaris 8's {/usr,}/bin/sh. 5992 touch sub/conftst$i.h 5993 done 5994 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5995 5996 case $depmode in 5997 nosideeffect) 5998 # after this tag, mechanisms are not by side-effect, so they'll 5999 # only be used when explicitly requested 6000 if test "x$enable_dependency_tracking" = xyes; then 6001 continue 6002 else 6003 break 6004 fi 6005 ;; 6006 none) break ;; 6007 esac 6008 # We check with `-c' and `-o' for the sake of the "dashmstdout" 6009 # mode. It turns out that the SunPro C++ compiler does not properly 6010 # handle `-M -o', and we need to detect this. 6011 if depmode=$depmode \ 6012 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 6013 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 6014 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 6015 >/dev/null 2>conftest.err && 6016 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 6017 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 6018 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 6019 # icc doesn't choke on unknown options, it will just issue warnings 6020 # or remarks (even with -Werror). So we grep stderr for any message 6021 # that says an option was ignored or not supported. 6022 # When given -MP, icc 7.0 and 7.1 complain thusly: 6023 # icc: Command line warning: ignoring option '-M'; no argument required 6024 # The diagnosis changed in icc 8.0: 6025 # icc: Command line remark: option '-MP' not supported 6026 if (grep 'ignoring option' conftest.err || 6027 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 6028 am_cv_CXX_dependencies_compiler_type=$depmode 6029 break 6030 fi 6031 fi 6032 done 6033 6034 cd .. 6035 rm -rf conftest.dir 6036else 6037 am_cv_CXX_dependencies_compiler_type=none 6038fi 6039 6040fi 6041echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 6042echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 6043CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 6044 6045 6046 6047if 6048 test "x$enable_dependency_tracking" != xno \ 6049 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 6050 am__fastdepCXX_TRUE= 6051 am__fastdepCXX_FALSE='#' 6052else 6053 am__fastdepCXX_TRUE='#' 6054 am__fastdepCXX_FALSE= 6055fi 6056 6057 6058 6059 6060if test -n "$CXX" && ( test "X$CXX" != "Xno" && 6061 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 6062 (test "X$CXX" != "Xg++"))) ; then 6063 ac_ext=cc 6064ac_cpp='$CXXCPP $CPPFLAGS' 6065ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6066ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6067ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6068echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 6069echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 6070if test -z "$CXXCPP"; then 6071 if test "${ac_cv_prog_CXXCPP+set}" = set; then 6072 echo $ECHO_N "(cached) $ECHO_C" >&6 6073else 6074 # Double quotes because CXXCPP needs to be expanded 6075 for CXXCPP in "$CXX -E" "/lib/cpp" 6076 do 6077 ac_preproc_ok=false 6078for ac_cxx_preproc_warn_flag in '' yes 6079do 6080 # Use a header file that comes with gcc, so configuring glibc 6081 # with a fresh cross-compiler works. 6082 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6083 # <limits.h> exists even on freestanding compilers. 6084 # On the NeXT, cc -E runs the code through the compiler's parser, 6085 # not just through cpp. "Syntax error" is here to catch this case. 6086 cat >conftest.$ac_ext <<_ACEOF 6087/* confdefs.h. */ 6088_ACEOF 6089cat confdefs.h >>conftest.$ac_ext 6090cat >>conftest.$ac_ext <<_ACEOF 6091/* end confdefs.h. */ 6092#ifdef __STDC__ 6093# include <limits.h> 6094#else 6095# include <assert.h> 6096#endif 6097 Syntax error 6098_ACEOF 6099if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6100 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6101 ac_status=$? 6102 grep -v '^ *+' conftest.er1 >conftest.err 6103 rm -f conftest.er1 6104 cat conftest.err >&5 6105 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6106 (exit $ac_status); } >/dev/null; then 6107 if test -s conftest.err; then 6108 ac_cpp_err=$ac_cxx_preproc_warn_flag 6109 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 6110 else 6111 ac_cpp_err= 6112 fi 6113else 6114 ac_cpp_err=yes 6115fi 6116if test -z "$ac_cpp_err"; then 6117 : 6118else 6119 echo "$as_me: failed program was:" >&5 6120sed 's/^/| /' conftest.$ac_ext >&5 6121 6122 # Broken: fails on valid input. 6123continue 6124fi 6125rm -f conftest.err conftest.$ac_ext 6126 6127 # OK, works on sane cases. Now check whether non-existent headers 6128 # can be detected and how. 6129 cat >conftest.$ac_ext <<_ACEOF 6130/* confdefs.h. */ 6131_ACEOF 6132cat confdefs.h >>conftest.$ac_ext 6133cat >>conftest.$ac_ext <<_ACEOF 6134/* end confdefs.h. */ 6135#include <ac_nonexistent.h> 6136_ACEOF 6137if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6138 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6139 ac_status=$? 6140 grep -v '^ *+' conftest.er1 >conftest.err 6141 rm -f conftest.er1 6142 cat conftest.err >&5 6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6144 (exit $ac_status); } >/dev/null; then 6145 if test -s conftest.err; then 6146 ac_cpp_err=$ac_cxx_preproc_warn_flag 6147 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 6148 else 6149 ac_cpp_err= 6150 fi 6151else 6152 ac_cpp_err=yes 6153fi 6154if test -z "$ac_cpp_err"; then 6155 # Broken: success on invalid input. 6156continue 6157else 6158 echo "$as_me: failed program was:" >&5 6159sed 's/^/| /' conftest.$ac_ext >&5 6160 6161 # Passes both tests. 6162ac_preproc_ok=: 6163break 6164fi 6165rm -f conftest.err conftest.$ac_ext 6166 6167done 6168# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6169rm -f conftest.err conftest.$ac_ext 6170if $ac_preproc_ok; then 6171 break 6172fi 6173 6174 done 6175 ac_cv_prog_CXXCPP=$CXXCPP 6176 6177fi 6178 CXXCPP=$ac_cv_prog_CXXCPP 6179else 6180 ac_cv_prog_CXXCPP=$CXXCPP 6181fi 6182echo "$as_me:$LINENO: result: $CXXCPP" >&5 6183echo "${ECHO_T}$CXXCPP" >&6 6184ac_preproc_ok=false 6185for ac_cxx_preproc_warn_flag in '' yes 6186do 6187 # Use a header file that comes with gcc, so configuring glibc 6188 # with a fresh cross-compiler works. 6189 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6190 # <limits.h> exists even on freestanding compilers. 6191 # On the NeXT, cc -E runs the code through the compiler's parser, 6192 # not just through cpp. "Syntax error" is here to catch this case. 6193 cat >conftest.$ac_ext <<_ACEOF 6194/* confdefs.h. */ 6195_ACEOF 6196cat confdefs.h >>conftest.$ac_ext 6197cat >>conftest.$ac_ext <<_ACEOF 6198/* end confdefs.h. */ 6199#ifdef __STDC__ 6200# include <limits.h> 6201#else 6202# include <assert.h> 6203#endif 6204 Syntax error 6205_ACEOF 6206if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6207 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6208 ac_status=$? 6209 grep -v '^ *+' conftest.er1 >conftest.err 6210 rm -f conftest.er1 6211 cat conftest.err >&5 6212 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6213 (exit $ac_status); } >/dev/null; then 6214 if test -s conftest.err; then 6215 ac_cpp_err=$ac_cxx_preproc_warn_flag 6216 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 6217 else 6218 ac_cpp_err= 6219 fi 6220else 6221 ac_cpp_err=yes 6222fi 6223if test -z "$ac_cpp_err"; then 6224 : 6225else 6226 echo "$as_me: failed program was:" >&5 6227sed 's/^/| /' conftest.$ac_ext >&5 6228 6229 # Broken: fails on valid input. 6230continue 6231fi 6232rm -f conftest.err conftest.$ac_ext 6233 6234 # OK, works on sane cases. Now check whether non-existent headers 6235 # can be detected and how. 6236 cat >conftest.$ac_ext <<_ACEOF 6237/* confdefs.h. */ 6238_ACEOF 6239cat confdefs.h >>conftest.$ac_ext 6240cat >>conftest.$ac_ext <<_ACEOF 6241/* end confdefs.h. */ 6242#include <ac_nonexistent.h> 6243_ACEOF 6244if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6245 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6246 ac_status=$? 6247 grep -v '^ *+' conftest.er1 >conftest.err 6248 rm -f conftest.er1 6249 cat conftest.err >&5 6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6251 (exit $ac_status); } >/dev/null; then 6252 if test -s conftest.err; then 6253 ac_cpp_err=$ac_cxx_preproc_warn_flag 6254 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 6255 else 6256 ac_cpp_err= 6257 fi 6258else 6259 ac_cpp_err=yes 6260fi 6261if test -z "$ac_cpp_err"; then 6262 # Broken: success on invalid input. 6263continue 6264else 6265 echo "$as_me: failed program was:" >&5 6266sed 's/^/| /' conftest.$ac_ext >&5 6267 6268 # Passes both tests. 6269ac_preproc_ok=: 6270break 6271fi 6272rm -f conftest.err conftest.$ac_ext 6273 6274done 6275# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6276rm -f conftest.err conftest.$ac_ext 6277if $ac_preproc_ok; then 6278 : 6279else 6280 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6281See \`config.log' for more details." >&5 6282echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6283See \`config.log' for more details." >&2;} 6284 { (exit 1); exit 1; }; } 6285fi 6286 6287ac_ext=cc 6288ac_cpp='$CXXCPP $CPPFLAGS' 6289ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6290ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6291ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6292 6293fi 6294 6295 6296ac_ext=f 6297ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 6298ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6299ac_compiler_gnu=$ac_cv_f77_compiler_gnu 6300if test -n "$ac_tool_prefix"; then 6301 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 6302 do 6303 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6304set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6305echo "$as_me:$LINENO: checking for $ac_word" >&5 6306echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6307if test "${ac_cv_prog_F77+set}" = set; then 6308 echo $ECHO_N "(cached) $ECHO_C" >&6 6309else 6310 if test -n "$F77"; then 6311 ac_cv_prog_F77="$F77" # Let the user override the test. 6312else 6313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6314for as_dir in $PATH 6315do 6316 IFS=$as_save_IFS 6317 test -z "$as_dir" && as_dir=. 6318 for ac_exec_ext in '' $ac_executable_extensions; do 6319 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6320 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 6321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6322 break 2 6323 fi 6324done 6325done 6326 6327fi 6328fi 6329F77=$ac_cv_prog_F77 6330if test -n "$F77"; then 6331 echo "$as_me:$LINENO: result: $F77" >&5 6332echo "${ECHO_T}$F77" >&6 6333else 6334 echo "$as_me:$LINENO: result: no" >&5 6335echo "${ECHO_T}no" >&6 6336fi 6337 6338 test -n "$F77" && break 6339 done 6340fi 6341if test -z "$F77"; then 6342 ac_ct_F77=$F77 6343 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 6344do 6345 # Extract the first word of "$ac_prog", so it can be a program name with args. 6346set dummy $ac_prog; ac_word=$2 6347echo "$as_me:$LINENO: checking for $ac_word" >&5 6348echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6349if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 6350 echo $ECHO_N "(cached) $ECHO_C" >&6 6351else 6352 if test -n "$ac_ct_F77"; then 6353 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 6354else 6355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6356for as_dir in $PATH 6357do 6358 IFS=$as_save_IFS 6359 test -z "$as_dir" && as_dir=. 6360 for ac_exec_ext in '' $ac_executable_extensions; do 6361 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6362 ac_cv_prog_ac_ct_F77="$ac_prog" 6363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6364 break 2 6365 fi 6366done 6367done 6368 6369fi 6370fi 6371ac_ct_F77=$ac_cv_prog_ac_ct_F77 6372if test -n "$ac_ct_F77"; then 6373 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 6374echo "${ECHO_T}$ac_ct_F77" >&6 6375else 6376 echo "$as_me:$LINENO: result: no" >&5 6377echo "${ECHO_T}no" >&6 6378fi 6379 6380 test -n "$ac_ct_F77" && break 6381done 6382 6383 F77=$ac_ct_F77 6384fi 6385 6386 6387# Provide some information about the compiler. 6388echo "$as_me:6388:" \ 6389 "checking for Fortran 77 compiler version" >&5 6390ac_compiler=`set X $ac_compile; echo $2` 6391{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 6392 (eval $ac_compiler --version </dev/null >&5) 2>&5 6393 ac_status=$? 6394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6395 (exit $ac_status); } 6396{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 6397 (eval $ac_compiler -v </dev/null >&5) 2>&5 6398 ac_status=$? 6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6400 (exit $ac_status); } 6401{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 6402 (eval $ac_compiler -V </dev/null >&5) 2>&5 6403 ac_status=$? 6404 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6405 (exit $ac_status); } 6406rm -f a.out 6407 6408# If we don't use `.F' as extension, the preprocessor is not run on the 6409# input file. (Note that this only needs to work for GNU compilers.) 6410ac_save_ext=$ac_ext 6411ac_ext=F 6412echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 6413echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 6414if test "${ac_cv_f77_compiler_gnu+set}" = set; then 6415 echo $ECHO_N "(cached) $ECHO_C" >&6 6416else 6417 cat >conftest.$ac_ext <<_ACEOF 6418 program main 6419#ifndef __GNUC__ 6420 choke me 6421#endif 6422 6423 end 6424_ACEOF 6425rm -f conftest.$ac_objext 6426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6427 (eval $ac_compile) 2>conftest.er1 6428 ac_status=$? 6429 grep -v '^ *+' conftest.er1 >conftest.err 6430 rm -f conftest.er1 6431 cat conftest.err >&5 6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6433 (exit $ac_status); } && 6434 { ac_try='test -z "$ac_f77_werror_flag" 6435 || test ! -s conftest.err' 6436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6437 (eval $ac_try) 2>&5 6438 ac_status=$? 6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6440 (exit $ac_status); }; } && 6441 { ac_try='test -s conftest.$ac_objext' 6442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6443 (eval $ac_try) 2>&5 6444 ac_status=$? 6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6446 (exit $ac_status); }; }; then 6447 ac_compiler_gnu=yes 6448else 6449 echo "$as_me: failed program was:" >&5 6450sed 's/^/| /' conftest.$ac_ext >&5 6451 6452ac_compiler_gnu=no 6453fi 6454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6455ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6456 6457fi 6458echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 6459echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 6460ac_ext=$ac_save_ext 6461ac_test_FFLAGS=${FFLAGS+set} 6462ac_save_FFLAGS=$FFLAGS 6463FFLAGS= 6464echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 6465echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 6466if test "${ac_cv_prog_f77_g+set}" = set; then 6467 echo $ECHO_N "(cached) $ECHO_C" >&6 6468else 6469 FFLAGS=-g 6470cat >conftest.$ac_ext <<_ACEOF 6471 program main 6472 6473 end 6474_ACEOF 6475rm -f conftest.$ac_objext 6476if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6477 (eval $ac_compile) 2>conftest.er1 6478 ac_status=$? 6479 grep -v '^ *+' conftest.er1 >conftest.err 6480 rm -f conftest.er1 6481 cat conftest.err >&5 6482 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6483 (exit $ac_status); } && 6484 { ac_try='test -z "$ac_f77_werror_flag" 6485 || test ! -s conftest.err' 6486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6487 (eval $ac_try) 2>&5 6488 ac_status=$? 6489 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6490 (exit $ac_status); }; } && 6491 { ac_try='test -s conftest.$ac_objext' 6492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6493 (eval $ac_try) 2>&5 6494 ac_status=$? 6495 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6496 (exit $ac_status); }; }; then 6497 ac_cv_prog_f77_g=yes 6498else 6499 echo "$as_me: failed program was:" >&5 6500sed 's/^/| /' conftest.$ac_ext >&5 6501 6502ac_cv_prog_f77_g=no 6503fi 6504rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6505 6506fi 6507echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 6508echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 6509if test "$ac_test_FFLAGS" = set; then 6510 FFLAGS=$ac_save_FFLAGS 6511elif test $ac_cv_prog_f77_g = yes; then 6512 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6513 FFLAGS="-g -O2" 6514 else 6515 FFLAGS="-g" 6516 fi 6517else 6518 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6519 FFLAGS="-O2" 6520 else 6521 FFLAGS= 6522 fi 6523fi 6524 6525G77=`test $ac_compiler_gnu = yes && echo yes` 6526ac_ext=c 6527ac_cpp='$CPP $CPPFLAGS' 6528ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6529ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6530ac_compiler_gnu=$ac_cv_c_compiler_gnu 6531 6532 6533 6534# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6535 6536# find the maximum length of command line arguments 6537echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6538echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 6539if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6540 echo $ECHO_N "(cached) $ECHO_C" >&6 6541else 6542 i=0 6543 teststring="ABCD" 6544 6545 case $build_os in 6546 msdosdjgpp*) 6547 # On DJGPP, this test can blow up pretty badly due to problems in libc 6548 # (any single argument exceeding 2000 bytes causes a buffer overrun 6549 # during glob expansion). Even if it were fixed, the result of this 6550 # check would be larger than it should be. 6551 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6552 ;; 6553 6554 gnu*) 6555 # Under GNU Hurd, this test is not required because there is 6556 # no limit to the length of command line arguments. 6557 # Libtool will interpret -1 as no limit whatsoever 6558 lt_cv_sys_max_cmd_len=-1; 6559 ;; 6560 6561 cygwin* | mingw*) 6562 # On Win9x/ME, this test blows up -- it succeeds, but takes 6563 # about 5 minutes as the teststring grows exponentially. 6564 # Worse, since 9x/ME are not pre-emptively multitasking, 6565 # you end up with a "frozen" computer, even though with patience 6566 # the test eventually succeeds (with a max line length of 256k). 6567 # Instead, let's just punt: use the minimum linelength reported by 6568 # all of the supported platforms: 8192 (on NT/2K/XP). 6569 lt_cv_sys_max_cmd_len=8192; 6570 ;; 6571 6572 amigaos*) 6573 # On AmigaOS with pdksh, this test takes hours, literally. 6574 # So we just punt and use a minimum line length of 8192. 6575 lt_cv_sys_max_cmd_len=8192; 6576 ;; 6577 6578 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6579 # This has been around since 386BSD, at least. Likely further. 6580 if test -x /sbin/sysctl; then 6581 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6582 elif test -x /usr/sbin/sysctl; then 6583 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6584 else 6585 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6586 fi 6587 # And add a safety zone 6588 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6589 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6590 ;; 6591 6592 interix*) 6593 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6594 lt_cv_sys_max_cmd_len=196608 6595 ;; 6596 6597 osf*) 6598 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6599 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6600 # nice to cause kernel panics so lets avoid the loop below. 6601 # First set a reasonable default. 6602 lt_cv_sys_max_cmd_len=16384 6603 # 6604 if test -x /sbin/sysconfig; then 6605 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6606 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6607 esac 6608 fi 6609 ;; 6610 sco3.2v5*) 6611 lt_cv_sys_max_cmd_len=102400 6612 ;; 6613 sysv5* | sco5v6* | sysv4.2uw2*) 6614 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6615 if test -n "$kargmax"; then 6616 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6617 else 6618 lt_cv_sys_max_cmd_len=32768 6619 fi 6620 ;; 6621 *) 6622 # If test is not a shell built-in, we'll probably end up computing a 6623 # maximum length that is only half of the actual maximum length, but 6624 # we can't tell. 6625 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6626 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6627 = "XX$teststring") >/dev/null 2>&1 && 6628 new_result=`expr "X$teststring" : ".*" 2>&1` && 6629 lt_cv_sys_max_cmd_len=$new_result && 6630 test $i != 17 # 1/2 MB should be enough 6631 do 6632 i=`expr $i + 1` 6633 teststring=$teststring$teststring 6634 done 6635 teststring= 6636 # Add a significant safety factor because C++ compilers can tack on massive 6637 # amounts of additional arguments before passing them to the linker. 6638 # It appears as though 1/2 is a usable value. 6639 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6640 ;; 6641 esac 6642 6643fi 6644 6645if test -n $lt_cv_sys_max_cmd_len ; then 6646 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6647echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 6648else 6649 echo "$as_me:$LINENO: result: none" >&5 6650echo "${ECHO_T}none" >&6 6651fi 6652 6653 6654 6655 6656# Check for command to grab the raw symbol name followed by C symbol from nm. 6657echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6658echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 6659if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6660 echo $ECHO_N "(cached) $ECHO_C" >&6 6661else 6662 6663# These are sane defaults that work on at least a few old systems. 6664# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6665 6666# Character class describing NM global symbol codes. 6667symcode='[BCDEGRST]' 6668 6669# Regexp to match symbols that can be accessed directly from C. 6670sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6671 6672# Transform an extracted symbol line into a proper C declaration 6673lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6674 6675# Transform an extracted symbol line into symbol name and symbol address 6676lt_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'" 6677 6678# Define system-specific variables. 6679case $host_os in 6680aix*) 6681 symcode='[BCDT]' 6682 ;; 6683cygwin* | mingw* | pw32*) 6684 symcode='[ABCDGISTW]' 6685 ;; 6686hpux*) # Its linker distinguishes data from code symbols 6687 if test "$host_cpu" = ia64; then 6688 symcode='[ABCDEGRST]' 6689 fi 6690 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6691 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'" 6692 ;; 6693linux*) 6694 if test "$host_cpu" = ia64; then 6695 symcode='[ABCDGIRSTW]' 6696 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6697 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'" 6698 fi 6699 ;; 6700irix* | nonstopux*) 6701 symcode='[BCDEGRST]' 6702 ;; 6703osf*) 6704 symcode='[BCDEGQRST]' 6705 ;; 6706solaris*) 6707 symcode='[BDRT]' 6708 ;; 6709sco3.2v5*) 6710 symcode='[DT]' 6711 ;; 6712sysv4.2uw2*) 6713 symcode='[DT]' 6714 ;; 6715sysv5* | sco5v6* | unixware* | OpenUNIX*) 6716 symcode='[ABDT]' 6717 ;; 6718sysv4) 6719 symcode='[DFNSTU]' 6720 ;; 6721esac 6722 6723# Handle CRLF in mingw tool chain 6724opt_cr= 6725case $build_os in 6726mingw*) 6727 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6728 ;; 6729esac 6730 6731# If we're using GNU nm, then use its standard symbol codes. 6732case `$NM -V 2>&1` in 6733*GNU* | *'with BFD'*) 6734 symcode='[ABCDGIRSTW]' ;; 6735esac 6736 6737# Try without a prefix undercore, then with it. 6738for ac_symprfx in "" "_"; do 6739 6740 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6741 symxfrm="\\1 $ac_symprfx\\2 \\2" 6742 6743 # Write the raw and C identifiers. 6744 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6745 6746 # Check to see that the pipe works correctly. 6747 pipe_works=no 6748 6749 rm -f conftest* 6750 cat > conftest.$ac_ext <<EOF 6751#ifdef __cplusplus 6752extern "C" { 6753#endif 6754char nm_test_var; 6755void nm_test_func(){} 6756#ifdef __cplusplus 6757} 6758#endif 6759int main(){nm_test_var='a';nm_test_func();return(0);} 6760EOF 6761 6762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6763 (eval $ac_compile) 2>&5 6764 ac_status=$? 6765 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6766 (exit $ac_status); }; then 6767 # Now try to grab the symbols. 6768 nlist=conftest.nm 6769 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6770 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6771 ac_status=$? 6772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6773 (exit $ac_status); } && test -s "$nlist"; then 6774 # Try sorting and uniquifying the output. 6775 if sort "$nlist" | uniq > "$nlist"T; then 6776 mv -f "$nlist"T "$nlist" 6777 else 6778 rm -f "$nlist"T 6779 fi 6780 6781 # Make sure that we snagged all the symbols we need. 6782 if grep ' nm_test_var$' "$nlist" >/dev/null; then 6783 if grep ' nm_test_func$' "$nlist" >/dev/null; then 6784 cat <<EOF > conftest.$ac_ext 6785#ifdef __cplusplus 6786extern "C" { 6787#endif 6788 6789EOF 6790 # Now generate the symbol file. 6791 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 6792 6793 cat <<EOF >> conftest.$ac_ext 6794#if defined (__STDC__) && __STDC__ 6795# define lt_ptr_t void * 6796#else 6797# define lt_ptr_t char * 6798# define const 6799#endif 6800 6801/* The mapping between symbol names and symbols. */ 6802const struct { 6803 const char *name; 6804 lt_ptr_t address; 6805} 6806lt_preloaded_symbols[] = 6807{ 6808EOF 6809 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 6810 cat <<\EOF >> conftest.$ac_ext 6811 {0, (lt_ptr_t) 0} 6812}; 6813 6814#ifdef __cplusplus 6815} 6816#endif 6817EOF 6818 # Now try linking the two files. 6819 mv conftest.$ac_objext conftstm.$ac_objext 6820 lt_save_LIBS="$LIBS" 6821 lt_save_CFLAGS="$CFLAGS" 6822 LIBS="conftstm.$ac_objext" 6823 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6825 (eval $ac_link) 2>&5 6826 ac_status=$? 6827 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6828 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6829 pipe_works=yes 6830 fi 6831 LIBS="$lt_save_LIBS" 6832 CFLAGS="$lt_save_CFLAGS" 6833 else 6834 echo "cannot find nm_test_func in $nlist" >&5 6835 fi 6836 else 6837 echo "cannot find nm_test_var in $nlist" >&5 6838 fi 6839 else 6840 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6841 fi 6842 else 6843 echo "$progname: failed program was:" >&5 6844 cat conftest.$ac_ext >&5 6845 fi 6846 rm -f conftest* conftst* 6847 6848 # Do not use the global_symbol_pipe unless it works. 6849 if test "$pipe_works" = yes; then 6850 break 6851 else 6852 lt_cv_sys_global_symbol_pipe= 6853 fi 6854done 6855 6856fi 6857 6858if test -z "$lt_cv_sys_global_symbol_pipe"; then 6859 lt_cv_sys_global_symbol_to_cdecl= 6860fi 6861if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6862 echo "$as_me:$LINENO: result: failed" >&5 6863echo "${ECHO_T}failed" >&6 6864else 6865 echo "$as_me:$LINENO: result: ok" >&5 6866echo "${ECHO_T}ok" >&6 6867fi 6868 6869echo "$as_me:$LINENO: checking for objdir" >&5 6870echo $ECHO_N "checking for objdir... $ECHO_C" >&6 6871if test "${lt_cv_objdir+set}" = set; then 6872 echo $ECHO_N "(cached) $ECHO_C" >&6 6873else 6874 rm -f .libs 2>/dev/null 6875mkdir .libs 2>/dev/null 6876if test -d .libs; then 6877 lt_cv_objdir=.libs 6878else 6879 # MS-DOS does not allow filenames that begin with a dot. 6880 lt_cv_objdir=_libs 6881fi 6882rmdir .libs 2>/dev/null 6883fi 6884echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6885echo "${ECHO_T}$lt_cv_objdir" >&6 6886objdir=$lt_cv_objdir 6887 6888 6889 6890 6891 6892case $host_os in 6893aix3*) 6894 # AIX sometimes has problems with the GCC collect2 program. For some 6895 # reason, if we set the COLLECT_NAMES environment variable, the problems 6896 # vanish in a puff of smoke. 6897 if test "X${COLLECT_NAMES+set}" != Xset; then 6898 COLLECT_NAMES= 6899 export COLLECT_NAMES 6900 fi 6901 ;; 6902esac 6903 6904# Sed substitution that helps us do robust quoting. It backslashifies 6905# metacharacters that are still active within double-quoted strings. 6906Xsed='sed -e 1s/^X//' 6907sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 6908 6909# Same as above, but do not quote variable references. 6910double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 6911 6912# Sed substitution to delay expansion of an escaped shell variable in a 6913# double_quote_subst'ed string. 6914delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6915 6916# Sed substitution to avoid accidental globbing in evaled expressions 6917no_glob_subst='s/\*/\\\*/g' 6918 6919# Constants: 6920rm="rm -f" 6921 6922# Global variables: 6923default_ofile=libtool 6924can_build_shared=yes 6925 6926# All known linkers require a `.a' archive for static linking (except MSVC, 6927# which needs '.lib'). 6928libext=a 6929ltmain="$ac_aux_dir/ltmain.sh" 6930ofile="$default_ofile" 6931with_gnu_ld="$lt_cv_prog_gnu_ld" 6932 6933if test -n "$ac_tool_prefix"; then 6934 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6935set dummy ${ac_tool_prefix}ar; ac_word=$2 6936echo "$as_me:$LINENO: checking for $ac_word" >&5 6937echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6938if test "${ac_cv_prog_AR+set}" = set; then 6939 echo $ECHO_N "(cached) $ECHO_C" >&6 6940else 6941 if test -n "$AR"; then 6942 ac_cv_prog_AR="$AR" # Let the user override the test. 6943else 6944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6945for as_dir in $PATH 6946do 6947 IFS=$as_save_IFS 6948 test -z "$as_dir" && as_dir=. 6949 for ac_exec_ext in '' $ac_executable_extensions; do 6950 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6951 ac_cv_prog_AR="${ac_tool_prefix}ar" 6952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6953 break 2 6954 fi 6955done 6956done 6957 6958fi 6959fi 6960AR=$ac_cv_prog_AR 6961if test -n "$AR"; then 6962 echo "$as_me:$LINENO: result: $AR" >&5 6963echo "${ECHO_T}$AR" >&6 6964else 6965 echo "$as_me:$LINENO: result: no" >&5 6966echo "${ECHO_T}no" >&6 6967fi 6968 6969fi 6970if test -z "$ac_cv_prog_AR"; then 6971 ac_ct_AR=$AR 6972 # Extract the first word of "ar", so it can be a program name with args. 6973set dummy ar; ac_word=$2 6974echo "$as_me:$LINENO: checking for $ac_word" >&5 6975echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6976if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6977 echo $ECHO_N "(cached) $ECHO_C" >&6 6978else 6979 if test -n "$ac_ct_AR"; then 6980 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6981else 6982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6983for as_dir in $PATH 6984do 6985 IFS=$as_save_IFS 6986 test -z "$as_dir" && as_dir=. 6987 for ac_exec_ext in '' $ac_executable_extensions; do 6988 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6989 ac_cv_prog_ac_ct_AR="ar" 6990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6991 break 2 6992 fi 6993done 6994done 6995 6996 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" 6997fi 6998fi 6999ac_ct_AR=$ac_cv_prog_ac_ct_AR 7000if test -n "$ac_ct_AR"; then 7001 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 7002echo "${ECHO_T}$ac_ct_AR" >&6 7003else 7004 echo "$as_me:$LINENO: result: no" >&5 7005echo "${ECHO_T}no" >&6 7006fi 7007 7008 AR=$ac_ct_AR 7009else 7010 AR="$ac_cv_prog_AR" 7011fi 7012 7013if test -n "$ac_tool_prefix"; then 7014 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7015set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7016echo "$as_me:$LINENO: checking for $ac_word" >&5 7017echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7018if test "${ac_cv_prog_RANLIB+set}" = set; then 7019 echo $ECHO_N "(cached) $ECHO_C" >&6 7020else 7021 if test -n "$RANLIB"; then 7022 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7023else 7024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7025for as_dir in $PATH 7026do 7027 IFS=$as_save_IFS 7028 test -z "$as_dir" && as_dir=. 7029 for ac_exec_ext in '' $ac_executable_extensions; do 7030 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7031 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7033 break 2 7034 fi 7035done 7036done 7037 7038fi 7039fi 7040RANLIB=$ac_cv_prog_RANLIB 7041if test -n "$RANLIB"; then 7042 echo "$as_me:$LINENO: result: $RANLIB" >&5 7043echo "${ECHO_T}$RANLIB" >&6 7044else 7045 echo "$as_me:$LINENO: result: no" >&5 7046echo "${ECHO_T}no" >&6 7047fi 7048 7049fi 7050if test -z "$ac_cv_prog_RANLIB"; then 7051 ac_ct_RANLIB=$RANLIB 7052 # Extract the first word of "ranlib", so it can be a program name with args. 7053set dummy ranlib; ac_word=$2 7054echo "$as_me:$LINENO: checking for $ac_word" >&5 7055echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7056if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 7057 echo $ECHO_N "(cached) $ECHO_C" >&6 7058else 7059 if test -n "$ac_ct_RANLIB"; then 7060 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7061else 7062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7063for as_dir in $PATH 7064do 7065 IFS=$as_save_IFS 7066 test -z "$as_dir" && as_dir=. 7067 for ac_exec_ext in '' $ac_executable_extensions; do 7068 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7069 ac_cv_prog_ac_ct_RANLIB="ranlib" 7070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7071 break 2 7072 fi 7073done 7074done 7075 7076 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 7077fi 7078fi 7079ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7080if test -n "$ac_ct_RANLIB"; then 7081 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 7082echo "${ECHO_T}$ac_ct_RANLIB" >&6 7083else 7084 echo "$as_me:$LINENO: result: no" >&5 7085echo "${ECHO_T}no" >&6 7086fi 7087 7088 RANLIB=$ac_ct_RANLIB 7089else 7090 RANLIB="$ac_cv_prog_RANLIB" 7091fi 7092 7093if test -n "$ac_tool_prefix"; then 7094 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7095set dummy ${ac_tool_prefix}strip; ac_word=$2 7096echo "$as_me:$LINENO: checking for $ac_word" >&5 7097echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7098if test "${ac_cv_prog_STRIP+set}" = set; then 7099 echo $ECHO_N "(cached) $ECHO_C" >&6 7100else 7101 if test -n "$STRIP"; then 7102 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7103else 7104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7105for as_dir in $PATH 7106do 7107 IFS=$as_save_IFS 7108 test -z "$as_dir" && as_dir=. 7109 for ac_exec_ext in '' $ac_executable_extensions; do 7110 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7111 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7113 break 2 7114 fi 7115done 7116done 7117 7118fi 7119fi 7120STRIP=$ac_cv_prog_STRIP 7121if test -n "$STRIP"; then 7122 echo "$as_me:$LINENO: result: $STRIP" >&5 7123echo "${ECHO_T}$STRIP" >&6 7124else 7125 echo "$as_me:$LINENO: result: no" >&5 7126echo "${ECHO_T}no" >&6 7127fi 7128 7129fi 7130if test -z "$ac_cv_prog_STRIP"; then 7131 ac_ct_STRIP=$STRIP 7132 # Extract the first word of "strip", so it can be a program name with args. 7133set dummy strip; ac_word=$2 7134echo "$as_me:$LINENO: checking for $ac_word" >&5 7135echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7136if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 7137 echo $ECHO_N "(cached) $ECHO_C" >&6 7138else 7139 if test -n "$ac_ct_STRIP"; then 7140 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7141else 7142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7143for as_dir in $PATH 7144do 7145 IFS=$as_save_IFS 7146 test -z "$as_dir" && as_dir=. 7147 for ac_exec_ext in '' $ac_executable_extensions; do 7148 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7149 ac_cv_prog_ac_ct_STRIP="strip" 7150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7151 break 2 7152 fi 7153done 7154done 7155 7156 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 7157fi 7158fi 7159ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7160if test -n "$ac_ct_STRIP"; then 7161 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 7162echo "${ECHO_T}$ac_ct_STRIP" >&6 7163else 7164 echo "$as_me:$LINENO: result: no" >&5 7165echo "${ECHO_T}no" >&6 7166fi 7167 7168 STRIP=$ac_ct_STRIP 7169else 7170 STRIP="$ac_cv_prog_STRIP" 7171fi 7172 7173 7174old_CC="$CC" 7175old_CFLAGS="$CFLAGS" 7176 7177# Set sane defaults for various variables 7178test -z "$AR" && AR=ar 7179test -z "$AR_FLAGS" && AR_FLAGS=cru 7180test -z "$AS" && AS=as 7181test -z "$CC" && CC=cc 7182test -z "$LTCC" && LTCC=$CC 7183test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7184test -z "$DLLTOOL" && DLLTOOL=dlltool 7185test -z "$LD" && LD=ld 7186test -z "$LN_S" && LN_S="ln -s" 7187test -z "$MAGIC_CMD" && MAGIC_CMD=file 7188test -z "$NM" && NM=nm 7189test -z "$SED" && SED=sed 7190test -z "$OBJDUMP" && OBJDUMP=objdump 7191test -z "$RANLIB" && RANLIB=: 7192test -z "$STRIP" && STRIP=: 7193test -z "$ac_objext" && ac_objext=o 7194 7195# Determine commands to create old-style static archives. 7196old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 7197old_postinstall_cmds='chmod 644 $oldlib' 7198old_postuninstall_cmds= 7199 7200if test -n "$RANLIB"; then 7201 case $host_os in 7202 openbsd*) 7203 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 7204 ;; 7205 *) 7206 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 7207 ;; 7208 esac 7209 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 7210fi 7211 7212for cc_temp in $compiler""; do 7213 case $cc_temp in 7214 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7215 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7216 \-*) ;; 7217 *) break;; 7218 esac 7219done 7220cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7221 7222 7223# Only perform the check for file, if the check method requires it 7224case $deplibs_check_method in 7225file_magic*) 7226 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7227 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 7228echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 7229if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7230 echo $ECHO_N "(cached) $ECHO_C" >&6 7231else 7232 case $MAGIC_CMD in 7233[\\/*] | ?:[\\/]*) 7234 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7235 ;; 7236*) 7237 lt_save_MAGIC_CMD="$MAGIC_CMD" 7238 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7239 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7240 for ac_dir in $ac_dummy; do 7241 IFS="$lt_save_ifs" 7242 test -z "$ac_dir" && ac_dir=. 7243 if test -f $ac_dir/${ac_tool_prefix}file; then 7244 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7245 if test -n "$file_magic_test_file"; then 7246 case $deplibs_check_method in 7247 "file_magic "*) 7248 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7249 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7250 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7251 $EGREP "$file_magic_regex" > /dev/null; then 7252 : 7253 else 7254 cat <<EOF 1>&2 7255 7256*** Warning: the command libtool uses to detect shared libraries, 7257*** $file_magic_cmd, produces output that libtool cannot recognize. 7258*** The result is that libtool may fail to recognize shared libraries 7259*** as such. This will affect the creation of libtool libraries that 7260*** depend on shared libraries, but programs linked with such libtool 7261*** libraries will work regardless of this problem. Nevertheless, you 7262*** may want to report the problem to your system manager and/or to 7263*** bug-libtool@gnu.org 7264 7265EOF 7266 fi ;; 7267 esac 7268 fi 7269 break 7270 fi 7271 done 7272 IFS="$lt_save_ifs" 7273 MAGIC_CMD="$lt_save_MAGIC_CMD" 7274 ;; 7275esac 7276fi 7277 7278MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7279if test -n "$MAGIC_CMD"; then 7280 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7281echo "${ECHO_T}$MAGIC_CMD" >&6 7282else 7283 echo "$as_me:$LINENO: result: no" >&5 7284echo "${ECHO_T}no" >&6 7285fi 7286 7287if test -z "$lt_cv_path_MAGIC_CMD"; then 7288 if test -n "$ac_tool_prefix"; then 7289 echo "$as_me:$LINENO: checking for file" >&5 7290echo $ECHO_N "checking for file... $ECHO_C" >&6 7291if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7292 echo $ECHO_N "(cached) $ECHO_C" >&6 7293else 7294 case $MAGIC_CMD in 7295[\\/*] | ?:[\\/]*) 7296 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7297 ;; 7298*) 7299 lt_save_MAGIC_CMD="$MAGIC_CMD" 7300 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7301 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7302 for ac_dir in $ac_dummy; do 7303 IFS="$lt_save_ifs" 7304 test -z "$ac_dir" && ac_dir=. 7305 if test -f $ac_dir/file; then 7306 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7307 if test -n "$file_magic_test_file"; then 7308 case $deplibs_check_method in 7309 "file_magic "*) 7310 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7311 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7312 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7313 $EGREP "$file_magic_regex" > /dev/null; then 7314 : 7315 else 7316 cat <<EOF 1>&2 7317 7318*** Warning: the command libtool uses to detect shared libraries, 7319*** $file_magic_cmd, produces output that libtool cannot recognize. 7320*** The result is that libtool may fail to recognize shared libraries 7321*** as such. This will affect the creation of libtool libraries that 7322*** depend on shared libraries, but programs linked with such libtool 7323*** libraries will work regardless of this problem. Nevertheless, you 7324*** may want to report the problem to your system manager and/or to 7325*** bug-libtool@gnu.org 7326 7327EOF 7328 fi ;; 7329 esac 7330 fi 7331 break 7332 fi 7333 done 7334 IFS="$lt_save_ifs" 7335 MAGIC_CMD="$lt_save_MAGIC_CMD" 7336 ;; 7337esac 7338fi 7339 7340MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7341if test -n "$MAGIC_CMD"; then 7342 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7343echo "${ECHO_T}$MAGIC_CMD" >&6 7344else 7345 echo "$as_me:$LINENO: result: no" >&5 7346echo "${ECHO_T}no" >&6 7347fi 7348 7349 else 7350 MAGIC_CMD=: 7351 fi 7352fi 7353 7354 fi 7355 ;; 7356esac 7357 7358enable_dlopen=no 7359enable_win32_dll=no 7360 7361# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 7362if test "${enable_libtool_lock+set}" = set; then 7363 enableval="$enable_libtool_lock" 7364 7365fi; 7366test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7367 7368 7369# Check whether --with-pic or --without-pic was given. 7370if test "${with_pic+set}" = set; then 7371 withval="$with_pic" 7372 pic_mode="$withval" 7373else 7374 pic_mode=default 7375fi; 7376test -z "$pic_mode" && pic_mode=default 7377 7378# Use C for the default configuration in the libtool script 7379tagname= 7380lt_save_CC="$CC" 7381ac_ext=c 7382ac_cpp='$CPP $CPPFLAGS' 7383ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7384ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7385ac_compiler_gnu=$ac_cv_c_compiler_gnu 7386 7387 7388# Source file extension for C test sources. 7389ac_ext=c 7390 7391# Object file extension for compiled C test sources. 7392objext=o 7393objext=$objext 7394 7395# Code to be used in simple compile tests 7396lt_simple_compile_test_code="int some_variable = 0;\n" 7397 7398# Code to be used in simple link tests 7399lt_simple_link_test_code='int main(){return(0);}\n' 7400 7401 7402# If no C compiler was specified, use CC. 7403LTCC=${LTCC-"$CC"} 7404 7405# If no C compiler flags were specified, use CFLAGS. 7406LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7407 7408# Allow CC to be a program name with arguments. 7409compiler=$CC 7410 7411 7412# save warnings/boilerplate of simple test code 7413ac_outfile=conftest.$ac_objext 7414printf "$lt_simple_compile_test_code" >conftest.$ac_ext 7415eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7416_lt_compiler_boilerplate=`cat conftest.err` 7417$rm conftest* 7418 7419ac_outfile=conftest.$ac_objext 7420printf "$lt_simple_link_test_code" >conftest.$ac_ext 7421eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7422_lt_linker_boilerplate=`cat conftest.err` 7423$rm conftest* 7424 7425 7426## CAVEAT EMPTOR: 7427## There is no encapsulation within the following macros, do not change 7428## the running order or otherwise move them around unless you know exactly 7429## what you are doing... 7430 7431lt_prog_compiler_no_builtin_flag= 7432 7433if test "$GCC" = yes; then 7434 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7435 7436 7437echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7438echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 7439if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7440 echo $ECHO_N "(cached) $ECHO_C" >&6 7441else 7442 lt_cv_prog_compiler_rtti_exceptions=no 7443 ac_outfile=conftest.$ac_objext 7444 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7445 lt_compiler_flag="-fno-rtti -fno-exceptions" 7446 # Insert the option either (1) after the last *FLAGS variable, or 7447 # (2) before a word containing "conftest.", or (3) at the end. 7448 # Note that $ac_compile itself does not contain backslashes and begins 7449 # with a dollar sign (not a hyphen), so the echo should work correctly. 7450 # The option is referenced via a variable to avoid confusing sed. 7451 lt_compile=`echo "$ac_compile" | $SED \ 7452 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7453 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7454 -e 's:$: $lt_compiler_flag:'` 7455 (eval echo "\"\$as_me:7455: $lt_compile\"" >&5) 7456 (eval "$lt_compile" 2>conftest.err) 7457 ac_status=$? 7458 cat conftest.err >&5 7459 echo "$as_me:7459: \$? = $ac_status" >&5 7460 if (exit $ac_status) && test -s "$ac_outfile"; then 7461 # The compiler can only warn and ignore the option if not recognized 7462 # So say no if there are warnings other than the usual output. 7463 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7464 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7465 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7466 lt_cv_prog_compiler_rtti_exceptions=yes 7467 fi 7468 fi 7469 $rm conftest* 7470 7471fi 7472echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7473echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 7474 7475if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7476 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7477else 7478 : 7479fi 7480 7481fi 7482 7483lt_prog_compiler_wl= 7484lt_prog_compiler_pic= 7485lt_prog_compiler_static= 7486 7487echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7488echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 7489 7490 if test "$GCC" = yes; then 7491 lt_prog_compiler_wl='-Wl,' 7492 lt_prog_compiler_static='-static' 7493 7494 case $host_os in 7495 aix*) 7496 # All AIX code is PIC. 7497 if test "$host_cpu" = ia64; then 7498 # AIX 5 now supports IA64 processor 7499 lt_prog_compiler_static='-Bstatic' 7500 fi 7501 ;; 7502 7503 amigaos*) 7504 # FIXME: we need at least 68020 code to build shared libraries, but 7505 # adding the `-m68020' flag to GCC prevents building anything better, 7506 # like `-m68040'. 7507 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7508 ;; 7509 7510 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7511 # PIC is the default for these OSes. 7512 ;; 7513 7514 mingw* | pw32* | os2*) 7515 # This hack is so that the source file can tell whether it is being 7516 # built for inclusion in a dll (and should export symbols for example). 7517 lt_prog_compiler_pic='-DDLL_EXPORT' 7518 ;; 7519 7520 darwin* | rhapsody*) 7521 # PIC is the default on this platform 7522 # Common symbols not allowed in MH_DYLIB files 7523 lt_prog_compiler_pic='-fno-common' 7524 ;; 7525 7526 interix3*) 7527 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7528 # Instead, we relocate shared libraries at runtime. 7529 ;; 7530 7531 msdosdjgpp*) 7532 # Just because we use GCC doesn't mean we suddenly get shared libraries 7533 # on systems that don't support them. 7534 lt_prog_compiler_can_build_shared=no 7535 enable_shared=no 7536 ;; 7537 7538 sysv4*MP*) 7539 if test -d /usr/nec; then 7540 lt_prog_compiler_pic=-Kconform_pic 7541 fi 7542 ;; 7543 7544 hpux*) 7545 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7546 # not for PA HP-UX. 7547 case $host_cpu in 7548 hppa*64*|ia64*) 7549 # +Z the default 7550 ;; 7551 *) 7552 lt_prog_compiler_pic='-fPIC' 7553 ;; 7554 esac 7555 ;; 7556 7557 *) 7558 lt_prog_compiler_pic='-fPIC' 7559 ;; 7560 esac 7561 else 7562 # PORTME Check for flag to pass linker flags through the system compiler. 7563 case $host_os in 7564 aix*) 7565 lt_prog_compiler_wl='-Wl,' 7566 if test "$host_cpu" = ia64; then 7567 # AIX 5 now supports IA64 processor 7568 lt_prog_compiler_static='-Bstatic' 7569 else 7570 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7571 fi 7572 ;; 7573 darwin*) 7574 # PIC is the default on this platform 7575 # Common symbols not allowed in MH_DYLIB files 7576 case $cc_basename in 7577 xlc*) 7578 lt_prog_compiler_pic='-qnocommon' 7579 lt_prog_compiler_wl='-Wl,' 7580 ;; 7581 esac 7582 ;; 7583 7584 mingw* | pw32* | os2*) 7585 # This hack is so that the source file can tell whether it is being 7586 # built for inclusion in a dll (and should export symbols for example). 7587 lt_prog_compiler_pic='-DDLL_EXPORT' 7588 ;; 7589 7590 hpux9* | hpux10* | hpux11*) 7591 lt_prog_compiler_wl='-Wl,' 7592 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7593 # not for PA HP-UX. 7594 case $host_cpu in 7595 hppa*64*|ia64*) 7596 # +Z the default 7597 ;; 7598 *) 7599 lt_prog_compiler_pic='+Z' 7600 ;; 7601 esac 7602 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7603 lt_prog_compiler_static='${wl}-a ${wl}archive' 7604 ;; 7605 7606 irix5* | irix6* | nonstopux*) 7607 lt_prog_compiler_wl='-Wl,' 7608 # PIC (with -KPIC) is the default. 7609 lt_prog_compiler_static='-non_shared' 7610 ;; 7611 7612 newsos6) 7613 lt_prog_compiler_pic='-KPIC' 7614 lt_prog_compiler_static='-Bstatic' 7615 ;; 7616 7617 linux*) 7618 case $cc_basename in 7619 icc* | ecc*) 7620 lt_prog_compiler_wl='-Wl,' 7621 lt_prog_compiler_pic='-KPIC' 7622 lt_prog_compiler_static='-static' 7623 ;; 7624 pgcc* | pgf77* | pgf90* | pgf95*) 7625 # Portland Group compilers (*not* the Pentium gcc compiler, 7626 # which looks to be a dead project) 7627 lt_prog_compiler_wl='-Wl,' 7628 lt_prog_compiler_pic='-fpic' 7629 lt_prog_compiler_static='-Bstatic' 7630 ;; 7631 ccc*) 7632 lt_prog_compiler_wl='-Wl,' 7633 # All Alpha code is PIC. 7634 lt_prog_compiler_static='-non_shared' 7635 ;; 7636 esac 7637 ;; 7638 7639 osf3* | osf4* | osf5*) 7640 lt_prog_compiler_wl='-Wl,' 7641 # All OSF/1 code is PIC. 7642 lt_prog_compiler_static='-non_shared' 7643 ;; 7644 7645 solaris*) 7646 lt_prog_compiler_pic='-KPIC' 7647 lt_prog_compiler_static='-Bstatic' 7648 case $cc_basename in 7649 f77* | f90* | f95*) 7650 lt_prog_compiler_wl='-Qoption ld ';; 7651 *) 7652 lt_prog_compiler_wl='-Wl,';; 7653 esac 7654 ;; 7655 7656 sunos4*) 7657 lt_prog_compiler_wl='-Qoption ld ' 7658 lt_prog_compiler_pic='-PIC' 7659 lt_prog_compiler_static='-Bstatic' 7660 ;; 7661 7662 sysv4 | sysv4.2uw2* | sysv4.3*) 7663 lt_prog_compiler_wl='-Wl,' 7664 lt_prog_compiler_pic='-KPIC' 7665 lt_prog_compiler_static='-Bstatic' 7666 ;; 7667 7668 sysv4*MP*) 7669 if test -d /usr/nec ;then 7670 lt_prog_compiler_pic='-Kconform_pic' 7671 lt_prog_compiler_static='-Bstatic' 7672 fi 7673 ;; 7674 7675 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7676 lt_prog_compiler_wl='-Wl,' 7677 lt_prog_compiler_pic='-KPIC' 7678 lt_prog_compiler_static='-Bstatic' 7679 ;; 7680 7681 unicos*) 7682 lt_prog_compiler_wl='-Wl,' 7683 lt_prog_compiler_can_build_shared=no 7684 ;; 7685 7686 uts4*) 7687 lt_prog_compiler_pic='-pic' 7688 lt_prog_compiler_static='-Bstatic' 7689 ;; 7690 7691 *) 7692 lt_prog_compiler_can_build_shared=no 7693 ;; 7694 esac 7695 fi 7696 7697echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7698echo "${ECHO_T}$lt_prog_compiler_pic" >&6 7699 7700# 7701# Check to make sure the PIC flag actually works. 7702# 7703if test -n "$lt_prog_compiler_pic"; then 7704 7705echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7706echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 7707if test "${lt_prog_compiler_pic_works+set}" = set; then 7708 echo $ECHO_N "(cached) $ECHO_C" >&6 7709else 7710 lt_prog_compiler_pic_works=no 7711 ac_outfile=conftest.$ac_objext 7712 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7713 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7714 # Insert the option either (1) after the last *FLAGS variable, or 7715 # (2) before a word containing "conftest.", or (3) at the end. 7716 # Note that $ac_compile itself does not contain backslashes and begins 7717 # with a dollar sign (not a hyphen), so the echo should work correctly. 7718 # The option is referenced via a variable to avoid confusing sed. 7719 lt_compile=`echo "$ac_compile" | $SED \ 7720 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7721 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7722 -e 's:$: $lt_compiler_flag:'` 7723 (eval echo "\"\$as_me:7723: $lt_compile\"" >&5) 7724 (eval "$lt_compile" 2>conftest.err) 7725 ac_status=$? 7726 cat conftest.err >&5 7727 echo "$as_me:7727: \$? = $ac_status" >&5 7728 if (exit $ac_status) && test -s "$ac_outfile"; then 7729 # The compiler can only warn and ignore the option if not recognized 7730 # So say no if there are warnings other than the usual output. 7731 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7732 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7733 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7734 lt_prog_compiler_pic_works=yes 7735 fi 7736 fi 7737 $rm conftest* 7738 7739fi 7740echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 7741echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 7742 7743if test x"$lt_prog_compiler_pic_works" = xyes; then 7744 case $lt_prog_compiler_pic in 7745 "" | " "*) ;; 7746 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7747 esac 7748else 7749 lt_prog_compiler_pic= 7750 lt_prog_compiler_can_build_shared=no 7751fi 7752 7753fi 7754case $host_os in 7755 # For platforms which do not support PIC, -DPIC is meaningless: 7756 *djgpp*) 7757 lt_prog_compiler_pic= 7758 ;; 7759 *) 7760 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7761 ;; 7762esac 7763 7764# 7765# Check to make sure the static flag actually works. 7766# 7767wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7768echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7769echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 7770if test "${lt_prog_compiler_static_works+set}" = set; then 7771 echo $ECHO_N "(cached) $ECHO_C" >&6 7772else 7773 lt_prog_compiler_static_works=no 7774 save_LDFLAGS="$LDFLAGS" 7775 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7776 printf "$lt_simple_link_test_code" > conftest.$ac_ext 7777 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7778 # The linker can only warn and ignore the option if not recognized 7779 # So say no if there are warnings 7780 if test -s conftest.err; then 7781 # Append any errors to the config.log. 7782 cat conftest.err 1>&5 7783 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7784 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7785 if diff conftest.exp conftest.er2 >/dev/null; then 7786 lt_prog_compiler_static_works=yes 7787 fi 7788 else 7789 lt_prog_compiler_static_works=yes 7790 fi 7791 fi 7792 $rm conftest* 7793 LDFLAGS="$save_LDFLAGS" 7794 7795fi 7796echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 7797echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 7798 7799if test x"$lt_prog_compiler_static_works" = xyes; then 7800 : 7801else 7802 lt_prog_compiler_static= 7803fi 7804 7805 7806echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7807echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 7808if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7809 echo $ECHO_N "(cached) $ECHO_C" >&6 7810else 7811 lt_cv_prog_compiler_c_o=no 7812 $rm -r conftest 2>/dev/null 7813 mkdir conftest 7814 cd conftest 7815 mkdir out 7816 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7817 7818 lt_compiler_flag="-o out/conftest2.$ac_objext" 7819 # Insert the option either (1) after the last *FLAGS variable, or 7820 # (2) before a word containing "conftest.", or (3) at the end. 7821 # Note that $ac_compile itself does not contain backslashes and begins 7822 # with a dollar sign (not a hyphen), so the echo should work correctly. 7823 lt_compile=`echo "$ac_compile" | $SED \ 7824 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7825 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7826 -e 's:$: $lt_compiler_flag:'` 7827 (eval echo "\"\$as_me:7827: $lt_compile\"" >&5) 7828 (eval "$lt_compile" 2>out/conftest.err) 7829 ac_status=$? 7830 cat out/conftest.err >&5 7831 echo "$as_me:7831: \$? = $ac_status" >&5 7832 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7833 then 7834 # The compiler can only warn and ignore the option if not recognized 7835 # So say no if there are warnings 7836 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7837 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7838 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7839 lt_cv_prog_compiler_c_o=yes 7840 fi 7841 fi 7842 chmod u+w . 2>&5 7843 $rm conftest* 7844 # SGI C++ compiler will create directory out/ii_files/ for 7845 # template instantiation 7846 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 7847 $rm out/* && rmdir out 7848 cd .. 7849 rmdir conftest 7850 $rm conftest* 7851 7852fi 7853echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7854echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 7855 7856 7857hard_links="nottested" 7858if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7859 # do not overwrite the value of need_locks provided by the user 7860 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 7861echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 7862 hard_links=yes 7863 $rm conftest* 7864 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7865 touch conftest.a 7866 ln conftest.a conftest.b 2>&5 || hard_links=no 7867 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7868 echo "$as_me:$LINENO: result: $hard_links" >&5 7869echo "${ECHO_T}$hard_links" >&6 7870 if test "$hard_links" = no; then 7871 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7872echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7873 need_locks=warn 7874 fi 7875else 7876 need_locks=no 7877fi 7878 7879echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7880echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 7881 7882 runpath_var= 7883 allow_undefined_flag= 7884 enable_shared_with_static_runtimes=no 7885 archive_cmds= 7886 archive_expsym_cmds= 7887 old_archive_From_new_cmds= 7888 old_archive_from_expsyms_cmds= 7889 export_dynamic_flag_spec= 7890 whole_archive_flag_spec= 7891 thread_safe_flag_spec= 7892 hardcode_libdir_flag_spec= 7893 hardcode_libdir_flag_spec_ld= 7894 hardcode_libdir_separator= 7895 hardcode_direct=no 7896 hardcode_minus_L=no 7897 hardcode_shlibpath_var=unsupported 7898 link_all_deplibs=unknown 7899 hardcode_automatic=no 7900 module_cmds= 7901 module_expsym_cmds= 7902 always_export_symbols=no 7903 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7904 # include_expsyms should be a list of space-separated symbols to be *always* 7905 # included in the symbol list 7906 include_expsyms= 7907 # exclude_expsyms can be an extended regexp of symbols to exclude 7908 # it will be wrapped by ` (' and `)$', so one must not match beginning or 7909 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7910 # as well as any symbol that contains `d'. 7911 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 7912 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7913 # platforms (ab)use it in PIC code, but their linkers get confused if 7914 # the symbol is explicitly referenced. Since portable code cannot 7915 # rely on this symbol name, it's probably fine to never include it in 7916 # preloaded symbol tables. 7917 extract_expsyms_cmds= 7918 # Just being paranoid about ensuring that cc_basename is set. 7919 for cc_temp in $compiler""; do 7920 case $cc_temp in 7921 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7922 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7923 \-*) ;; 7924 *) break;; 7925 esac 7926done 7927cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7928 7929 case $host_os in 7930 cygwin* | mingw* | pw32*) 7931 # FIXME: the MSVC++ port hasn't been tested in a loooong time 7932 # When not using gcc, we currently assume that we are using 7933 # Microsoft Visual C++. 7934 if test "$GCC" != yes; then 7935 with_gnu_ld=no 7936 fi 7937 ;; 7938 interix*) 7939 # we just hope/assume this is gcc and not c89 (= MSVC++) 7940 with_gnu_ld=yes 7941 ;; 7942 openbsd*) 7943 with_gnu_ld=no 7944 ;; 7945 esac 7946 7947 ld_shlibs=yes 7948 if test "$with_gnu_ld" = yes; then 7949 # If archive_cmds runs LD, not CC, wlarc should be empty 7950 wlarc='${wl}' 7951 7952 # Set some defaults for GNU ld with shared library support. These 7953 # are reset later if shared libraries are not supported. Putting them 7954 # here allows them to be overridden if necessary. 7955 runpath_var=LD_RUN_PATH 7956 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 7957 export_dynamic_flag_spec='${wl}--export-dynamic' 7958 # ancient GNU ld didn't support --whole-archive et. al. 7959 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 7960 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7961 else 7962 whole_archive_flag_spec= 7963 fi 7964 supports_anon_versioning=no 7965 case `$LD -v 2>/dev/null` in 7966 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 7967 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7968 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7969 *\ 2.11.*) ;; # other 2.11 versions 7970 *) supports_anon_versioning=yes ;; 7971 esac 7972 7973 # See if GNU ld supports shared libraries. 7974 case $host_os in 7975 aix3* | aix4* | aix5*) 7976 # On AIX/PPC, the GNU linker is very broken 7977 if test "$host_cpu" != ia64; then 7978 ld_shlibs=no 7979 cat <<EOF 1>&2 7980 7981*** Warning: the GNU linker, at least up to release 2.9.1, is reported 7982*** to be unable to reliably create shared libraries on AIX. 7983*** Therefore, libtool is disabling shared libraries support. If you 7984*** really care for shared libraries, you may want to modify your PATH 7985*** so that a non-GNU linker is found, and then restart. 7986 7987EOF 7988 fi 7989 ;; 7990 7991 amigaos*) 7992 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)' 7993 hardcode_libdir_flag_spec='-L$libdir' 7994 hardcode_minus_L=yes 7995 7996 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 7997 # that the semantics of dynamic libraries on AmigaOS, at least up 7998 # to version 4, is to share data among multiple programs linked 7999 # with the same dynamic library. Since this doesn't match the 8000 # behavior of shared libraries on other platforms, we can't use 8001 # them. 8002 ld_shlibs=no 8003 ;; 8004 8005 beos*) 8006 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8007 allow_undefined_flag=unsupported 8008 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8009 # support --undefined. This deserves some investigation. FIXME 8010 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8011 else 8012 ld_shlibs=no 8013 fi 8014 ;; 8015 8016 cygwin* | mingw* | pw32*) 8017 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8018 # as there is no search path for DLLs. 8019 hardcode_libdir_flag_spec='-L$libdir' 8020 allow_undefined_flag=unsupported 8021 always_export_symbols=no 8022 enable_shared_with_static_runtimes=yes 8023 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 8024 8025 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 8026 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8027 # If the export-symbols file already is a .def file (1st line 8028 # is EXPORTS), use it as is; otherwise, prepend... 8029 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8030 cp $export_symbols $output_objdir/$soname.def; 8031 else 8032 echo EXPORTS > $output_objdir/$soname.def; 8033 cat $export_symbols >> $output_objdir/$soname.def; 8034 fi~ 8035 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8036 else 8037 ld_shlibs=no 8038 fi 8039 ;; 8040 8041 interix3*) 8042 hardcode_direct=no 8043 hardcode_shlibpath_var=no 8044 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8045 export_dynamic_flag_spec='${wl}-E' 8046 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8047 # Instead, shared libraries are loaded at an image base (0x10000000 by 8048 # default) and relocated if they conflict, which is a slow very memory 8049 # consuming and fragmenting process. To avoid this, we pick a random, 8050 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8051 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8052 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8053 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' 8054 ;; 8055 8056 linux*) 8057 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8058 tmp_addflag= 8059 case $cc_basename,$host_cpu in 8060 pgcc*) # Portland Group C compiler 8061 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' 8062 tmp_addflag=' $pic_flag' 8063 ;; 8064 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8065 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' 8066 tmp_addflag=' $pic_flag -Mnomain' ;; 8067 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8068 tmp_addflag=' -i_dynamic' ;; 8069 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8070 tmp_addflag=' -i_dynamic -nofor_main' ;; 8071 ifc* | ifort*) # Intel Fortran compiler 8072 tmp_addflag=' -nofor_main' ;; 8073 esac 8074 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8075 8076 if test $supports_anon_versioning = yes; then 8077 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 8078 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8079 $echo "local: *; };" >> $output_objdir/$libname.ver~ 8080 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8081 fi 8082 else 8083 ld_shlibs=no 8084 fi 8085 ;; 8086 8087 netbsd*) 8088 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8089 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8090 wlarc= 8091 else 8092 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8093 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8094 fi 8095 ;; 8096 8097 solaris*) 8098 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 8099 ld_shlibs=no 8100 cat <<EOF 1>&2 8101 8102*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8103*** create shared libraries on Solaris systems. Therefore, libtool 8104*** is disabling shared libraries support. We urge you to upgrade GNU 8105*** binutils to release 2.9.1 or newer. Another option is to modify 8106*** your PATH or compiler configuration so that the native linker is 8107*** used, and then restart. 8108 8109EOF 8110 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8111 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8112 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8113 else 8114 ld_shlibs=no 8115 fi 8116 ;; 8117 8118 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8119 case `$LD -v 2>&1` in 8120 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8121 ld_shlibs=no 8122 cat <<_LT_EOF 1>&2 8123 8124*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8125*** reliably create shared libraries on SCO systems. Therefore, libtool 8126*** is disabling shared libraries support. We urge you to upgrade GNU 8127*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8128*** your PATH or compiler configuration so that the native linker is 8129*** used, and then restart. 8130 8131_LT_EOF 8132 ;; 8133 *) 8134 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8135 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 8136 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 8137 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 8138 else 8139 ld_shlibs=no 8140 fi 8141 ;; 8142 esac 8143 ;; 8144 8145 sunos4*) 8146 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8147 wlarc= 8148 hardcode_direct=yes 8149 hardcode_shlibpath_var=no 8150 ;; 8151 8152 *) 8153 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8154 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8155 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8156 else 8157 ld_shlibs=no 8158 fi 8159 ;; 8160 esac 8161 8162 if test "$ld_shlibs" = no; then 8163 runpath_var= 8164 hardcode_libdir_flag_spec= 8165 export_dynamic_flag_spec= 8166 whole_archive_flag_spec= 8167 fi 8168 else 8169 # PORTME fill in a description of your system's linker (not GNU ld) 8170 case $host_os in 8171 aix3*) 8172 allow_undefined_flag=unsupported 8173 always_export_symbols=yes 8174 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' 8175 # Note: this linker hardcodes the directories in LIBPATH if there 8176 # are no directories specified by -L. 8177 hardcode_minus_L=yes 8178 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8179 # Neither direct hardcoding nor static linking is supported with a 8180 # broken collect2. 8181 hardcode_direct=unsupported 8182 fi 8183 ;; 8184 8185 aix4* | aix5*) 8186 if test "$host_cpu" = ia64; then 8187 # On IA64, the linker does run time linking by default, so we don't 8188 # have to do anything special. 8189 aix_use_runtimelinking=no 8190 exp_sym_flag='-Bexport' 8191 no_entry_flag="" 8192 else 8193 # If we're using GNU nm, then we don't want the "-C" option. 8194 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8195 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 8196 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' 8197 else 8198 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' 8199 fi 8200 aix_use_runtimelinking=no 8201 8202 # Test if we are trying to use run time linking or normal 8203 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8204 # need to do runtime linking. 8205 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 8206 for ld_flag in $LDFLAGS; do 8207 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8208 aix_use_runtimelinking=yes 8209 break 8210 fi 8211 done 8212 ;; 8213 esac 8214 8215 exp_sym_flag='-bexport' 8216 no_entry_flag='-bnoentry' 8217 fi 8218 8219 # When large executables or shared objects are built, AIX ld can 8220 # have problems creating the table of contents. If linking a library 8221 # or program results in "error TOC overflow" add -mminimal-toc to 8222 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8223 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8224 8225 archive_cmds='' 8226 hardcode_direct=yes 8227 hardcode_libdir_separator=':' 8228 link_all_deplibs=yes 8229 8230 if test "$GCC" = yes; then 8231 case $host_os in aix4.[012]|aix4.[012].*) 8232 # We only want to do this on AIX 4.2 and lower, the check 8233 # below for broken collect2 doesn't work under 4.3+ 8234 collect2name=`${CC} -print-prog-name=collect2` 8235 if test -f "$collect2name" && \ 8236 strings "$collect2name" | grep resolve_lib_name >/dev/null 8237 then 8238 # We have reworked collect2 8239 hardcode_direct=yes 8240 else 8241 # We have old collect2 8242 hardcode_direct=unsupported 8243 # It fails to find uninstalled libraries when the uninstalled 8244 # path is not listed in the libpath. Setting hardcode_minus_L 8245 # to unsupported forces relinking 8246 hardcode_minus_L=yes 8247 hardcode_libdir_flag_spec='-L$libdir' 8248 hardcode_libdir_separator= 8249 fi 8250 ;; 8251 esac 8252 shared_flag='-shared' 8253 if test "$aix_use_runtimelinking" = yes; then 8254 shared_flag="$shared_flag "'${wl}-G' 8255 fi 8256 else 8257 # not using gcc 8258 if test "$host_cpu" = ia64; then 8259 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8260 # chokes on -Wl,-G. The following line is correct: 8261 shared_flag='-G' 8262 else 8263 if test "$aix_use_runtimelinking" = yes; then 8264 shared_flag='${wl}-G' 8265 else 8266 shared_flag='${wl}-bM:SRE' 8267 fi 8268 fi 8269 fi 8270 8271 # It seems that -bexpall does not export symbols beginning with 8272 # underscore (_), so it is better to generate a list of symbols to export. 8273 always_export_symbols=yes 8274 if test "$aix_use_runtimelinking" = yes; then 8275 # Warning - without using the other runtime loading flags (-brtl), 8276 # -berok will link without error, but may produce a broken library. 8277 allow_undefined_flag='-berok' 8278 # Determine the default libpath from the value encoded in an empty executable. 8279 cat >conftest.$ac_ext <<_ACEOF 8280/* confdefs.h. */ 8281_ACEOF 8282cat confdefs.h >>conftest.$ac_ext 8283cat >>conftest.$ac_ext <<_ACEOF 8284/* end confdefs.h. */ 8285 8286int 8287main () 8288{ 8289 8290 ; 8291 return 0; 8292} 8293_ACEOF 8294rm -f conftest.$ac_objext conftest$ac_exeext 8295if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8296 (eval $ac_link) 2>conftest.er1 8297 ac_status=$? 8298 grep -v '^ *+' conftest.er1 >conftest.err 8299 rm -f conftest.er1 8300 cat conftest.err >&5 8301 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8302 (exit $ac_status); } && 8303 { ac_try='test -z "$ac_c_werror_flag" 8304 || test ! -s conftest.err' 8305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8306 (eval $ac_try) 2>&5 8307 ac_status=$? 8308 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8309 (exit $ac_status); }; } && 8310 { ac_try='test -s conftest$ac_exeext' 8311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8312 (eval $ac_try) 2>&5 8313 ac_status=$? 8314 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8315 (exit $ac_status); }; }; then 8316 8317aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8318}'` 8319# Check for a 64-bit object if we didn't find anything. 8320if 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; } 8321}'`; fi 8322else 8323 echo "$as_me: failed program was:" >&5 8324sed 's/^/| /' conftest.$ac_ext >&5 8325 8326fi 8327rm -f conftest.err conftest.$ac_objext \ 8328 conftest$ac_exeext conftest.$ac_ext 8329if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8330 8331 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8332 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" 8333 else 8334 if test "$host_cpu" = ia64; then 8335 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8336 allow_undefined_flag="-z nodefs" 8337 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" 8338 else 8339 # Determine the default libpath from the value encoded in an empty executable. 8340 cat >conftest.$ac_ext <<_ACEOF 8341/* confdefs.h. */ 8342_ACEOF 8343cat confdefs.h >>conftest.$ac_ext 8344cat >>conftest.$ac_ext <<_ACEOF 8345/* end confdefs.h. */ 8346 8347int 8348main () 8349{ 8350 8351 ; 8352 return 0; 8353} 8354_ACEOF 8355rm -f conftest.$ac_objext conftest$ac_exeext 8356if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8357 (eval $ac_link) 2>conftest.er1 8358 ac_status=$? 8359 grep -v '^ *+' conftest.er1 >conftest.err 8360 rm -f conftest.er1 8361 cat conftest.err >&5 8362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8363 (exit $ac_status); } && 8364 { ac_try='test -z "$ac_c_werror_flag" 8365 || test ! -s conftest.err' 8366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8367 (eval $ac_try) 2>&5 8368 ac_status=$? 8369 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8370 (exit $ac_status); }; } && 8371 { ac_try='test -s conftest$ac_exeext' 8372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8373 (eval $ac_try) 2>&5 8374 ac_status=$? 8375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8376 (exit $ac_status); }; }; then 8377 8378aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8379}'` 8380# Check for a 64-bit object if we didn't find anything. 8381if 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; } 8382}'`; fi 8383else 8384 echo "$as_me: failed program was:" >&5 8385sed 's/^/| /' conftest.$ac_ext >&5 8386 8387fi 8388rm -f conftest.err conftest.$ac_objext \ 8389 conftest$ac_exeext conftest.$ac_ext 8390if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8391 8392 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8393 # Warning - without using the other run time loading flags, 8394 # -berok will link without error, but may produce a broken library. 8395 no_undefined_flag=' ${wl}-bernotok' 8396 allow_undefined_flag=' ${wl}-berok' 8397 # Exported symbols can be pulled into shared objects from archives 8398 whole_archive_flag_spec='$convenience' 8399 archive_cmds_need_lc=yes 8400 # This is similar to how AIX traditionally builds its shared libraries. 8401 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' 8402 fi 8403 fi 8404 ;; 8405 8406 amigaos*) 8407 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)' 8408 hardcode_libdir_flag_spec='-L$libdir' 8409 hardcode_minus_L=yes 8410 # see comment about different semantics on the GNU ld section 8411 ld_shlibs=no 8412 ;; 8413 8414 bsdi[45]*) 8415 export_dynamic_flag_spec=-rdynamic 8416 ;; 8417 8418 cygwin* | mingw* | pw32*) 8419 # When not using gcc, we currently assume that we are using 8420 # Microsoft Visual C++. 8421 # hardcode_libdir_flag_spec is actually meaningless, as there is 8422 # no search path for DLLs. 8423 hardcode_libdir_flag_spec=' ' 8424 allow_undefined_flag=unsupported 8425 # Tell ltmain to make .lib files, not .a files. 8426 libext=lib 8427 # Tell ltmain to make .dll files, not .so files. 8428 shrext_cmds=".dll" 8429 # FIXME: Setting linknames here is a bad hack. 8430 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8431 # The linker will automatically build a .lib file if we build a DLL. 8432 old_archive_From_new_cmds='true' 8433 # FIXME: Should let the user specify the lib program. 8434 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 8435 fix_srcfile_path='`cygpath -w "$srcfile"`' 8436 enable_shared_with_static_runtimes=yes 8437 ;; 8438 8439 darwin* | rhapsody*) 8440 case $host_os in 8441 rhapsody* | darwin1.[012]) 8442 allow_undefined_flag='${wl}-undefined ${wl}suppress' 8443 ;; 8444 *) # Darwin 1.3 on 8445 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8446 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8447 else 8448 case ${MACOSX_DEPLOYMENT_TARGET} in 8449 10.[012]) 8450 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8451 ;; 8452 10.*) 8453 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 8454 ;; 8455 esac 8456 fi 8457 ;; 8458 esac 8459 archive_cmds_need_lc=no 8460 hardcode_direct=no 8461 hardcode_automatic=yes 8462 hardcode_shlibpath_var=unsupported 8463 whole_archive_flag_spec='' 8464 link_all_deplibs=yes 8465 if test "$GCC" = yes ; then 8466 output_verbose_link_cmd='echo' 8467 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 8468 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8469 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8470 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}' 8471 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}' 8472 else 8473 case $cc_basename in 8474 xlc*) 8475 output_verbose_link_cmd='echo' 8476 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 8477 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8478 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8479 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}' 8480 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}' 8481 ;; 8482 *) 8483 ld_shlibs=no 8484 ;; 8485 esac 8486 fi 8487 ;; 8488 8489 dgux*) 8490 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8491 hardcode_libdir_flag_spec='-L$libdir' 8492 hardcode_shlibpath_var=no 8493 ;; 8494 8495 freebsd1*) 8496 ld_shlibs=no 8497 ;; 8498 8499 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8500 # support. Future versions do this automatically, but an explicit c++rt0.o 8501 # does not break anything, and helps significantly (at the cost of a little 8502 # extra space). 8503 freebsd2.2*) 8504 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8505 hardcode_libdir_flag_spec='-R$libdir' 8506 hardcode_direct=yes 8507 hardcode_shlibpath_var=no 8508 ;; 8509 8510 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8511 freebsd2*) 8512 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8513 hardcode_direct=yes 8514 hardcode_minus_L=yes 8515 hardcode_shlibpath_var=no 8516 ;; 8517 8518 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8519 freebsd* | kfreebsd*-gnu | dragonfly*) 8520 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8521 hardcode_libdir_flag_spec='-R$libdir' 8522 hardcode_direct=yes 8523 hardcode_shlibpath_var=no 8524 ;; 8525 8526 hpux9*) 8527 if test "$GCC" = yes; then 8528 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' 8529 else 8530 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' 8531 fi 8532 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8533 hardcode_libdir_separator=: 8534 hardcode_direct=yes 8535 8536 # hardcode_minus_L: Not really in the search PATH, 8537 # but as the default location of the library. 8538 hardcode_minus_L=yes 8539 export_dynamic_flag_spec='${wl}-E' 8540 ;; 8541 8542 hpux10*) 8543 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8544 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8545 else 8546 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8547 fi 8548 if test "$with_gnu_ld" = no; then 8549 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8550 hardcode_libdir_separator=: 8551 8552 hardcode_direct=yes 8553 export_dynamic_flag_spec='${wl}-E' 8554 8555 # hardcode_minus_L: Not really in the search PATH, 8556 # but as the default location of the library. 8557 hardcode_minus_L=yes 8558 fi 8559 ;; 8560 8561 hpux11*) 8562 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8563 case $host_cpu in 8564 hppa*64*) 8565 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8566 ;; 8567 ia64*) 8568 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8569 ;; 8570 *) 8571 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8572 ;; 8573 esac 8574 else 8575 case $host_cpu in 8576 hppa*64*) 8577 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8578 ;; 8579 ia64*) 8580 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8581 ;; 8582 *) 8583 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8584 ;; 8585 esac 8586 fi 8587 if test "$with_gnu_ld" = no; then 8588 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8589 hardcode_libdir_separator=: 8590 8591 case $host_cpu in 8592 hppa*64*|ia64*) 8593 hardcode_libdir_flag_spec_ld='+b $libdir' 8594 hardcode_direct=no 8595 hardcode_shlibpath_var=no 8596 ;; 8597 *) 8598 hardcode_direct=yes 8599 export_dynamic_flag_spec='${wl}-E' 8600 8601 # hardcode_minus_L: Not really in the search PATH, 8602 # but as the default location of the library. 8603 hardcode_minus_L=yes 8604 ;; 8605 esac 8606 fi 8607 ;; 8608 8609 irix5* | irix6* | nonstopux*) 8610 if test "$GCC" = yes; then 8611 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' 8612 else 8613 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' 8614 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8615 fi 8616 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8617 hardcode_libdir_separator=: 8618 link_all_deplibs=yes 8619 ;; 8620 8621 netbsd*) 8622 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8623 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8624 else 8625 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8626 fi 8627 hardcode_libdir_flag_spec='-R$libdir' 8628 hardcode_direct=yes 8629 hardcode_shlibpath_var=no 8630 ;; 8631 8632 newsos6) 8633 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8634 hardcode_direct=yes 8635 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8636 hardcode_libdir_separator=: 8637 hardcode_shlibpath_var=no 8638 ;; 8639 8640 openbsd*) 8641 hardcode_direct=yes 8642 hardcode_shlibpath_var=no 8643 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8644 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8645 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8646 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8647 export_dynamic_flag_spec='${wl}-E' 8648 else 8649 case $host_os in 8650 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8651 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8652 hardcode_libdir_flag_spec='-R$libdir' 8653 ;; 8654 *) 8655 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8656 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8657 ;; 8658 esac 8659 fi 8660 ;; 8661 8662 os2*) 8663 hardcode_libdir_flag_spec='-L$libdir' 8664 hardcode_minus_L=yes 8665 allow_undefined_flag=unsupported 8666 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' 8667 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8668 ;; 8669 8670 osf3*) 8671 if test "$GCC" = yes; then 8672 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8673 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' 8674 else 8675 allow_undefined_flag=' -expect_unresolved \*' 8676 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' 8677 fi 8678 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8679 hardcode_libdir_separator=: 8680 ;; 8681 8682 osf4* | osf5*) # as osf3* with the addition of -msym flag 8683 if test "$GCC" = yes; then 8684 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8685 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' 8686 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8687 else 8688 allow_undefined_flag=' -expect_unresolved \*' 8689 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' 8690 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8691 $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' 8692 8693 # Both c and cxx compiler support -rpath directly 8694 hardcode_libdir_flag_spec='-rpath $libdir' 8695 fi 8696 hardcode_libdir_separator=: 8697 ;; 8698 8699 solaris*) 8700 no_undefined_flag=' -z text' 8701 if test "$GCC" = yes; then 8702 wlarc='${wl}' 8703 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8704 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8705 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8706 else 8707 wlarc='' 8708 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8709 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8710 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8711 fi 8712 hardcode_libdir_flag_spec='-R$libdir' 8713 hardcode_shlibpath_var=no 8714 case $host_os in 8715 solaris2.[0-5] | solaris2.[0-5].*) ;; 8716 *) 8717 # The compiler driver will combine linker options so we 8718 # cannot just pass the convience library names through 8719 # without $wl, iff we do not link with $LD. 8720 # Luckily, gcc supports the same syntax we need for Sun Studio. 8721 # Supported since Solaris 2.6 (maybe 2.5.1?) 8722 case $wlarc in 8723 '') 8724 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 8725 *) 8726 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' ;; 8727 esac ;; 8728 esac 8729 link_all_deplibs=yes 8730 ;; 8731 8732 sunos4*) 8733 if test "x$host_vendor" = xsequent; then 8734 # Use $CC to link under sequent, because it throws in some extra .o 8735 # files that make .init and .fini sections work. 8736 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8737 else 8738 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8739 fi 8740 hardcode_libdir_flag_spec='-L$libdir' 8741 hardcode_direct=yes 8742 hardcode_minus_L=yes 8743 hardcode_shlibpath_var=no 8744 ;; 8745 8746 sysv4) 8747 case $host_vendor in 8748 sni) 8749 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8750 hardcode_direct=yes # is this really true??? 8751 ;; 8752 siemens) 8753 ## LD is ld it makes a PLAMLIB 8754 ## CC just makes a GrossModule. 8755 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8756 reload_cmds='$CC -r -o $output$reload_objs' 8757 hardcode_direct=no 8758 ;; 8759 motorola) 8760 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8761 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8762 ;; 8763 esac 8764 runpath_var='LD_RUN_PATH' 8765 hardcode_shlibpath_var=no 8766 ;; 8767 8768 sysv4.3*) 8769 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8770 hardcode_shlibpath_var=no 8771 export_dynamic_flag_spec='-Bexport' 8772 ;; 8773 8774 sysv4*MP*) 8775 if test -d /usr/nec; then 8776 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8777 hardcode_shlibpath_var=no 8778 runpath_var=LD_RUN_PATH 8779 hardcode_runpath_var=yes 8780 ld_shlibs=yes 8781 fi 8782 ;; 8783 8784 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 8785 no_undefined_flag='${wl}-z,text' 8786 archive_cmds_need_lc=no 8787 hardcode_shlibpath_var=no 8788 runpath_var='LD_RUN_PATH' 8789 8790 if test "$GCC" = yes; then 8791 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8792 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8793 else 8794 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8795 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8796 fi 8797 ;; 8798 8799 sysv5* | sco3.2v5* | sco5v6*) 8800 # Note: We can NOT use -z defs as we might desire, because we do not 8801 # link with -lc, and that would cause any symbols used from libc to 8802 # always be unresolved, which means just about no library would 8803 # ever link correctly. If we're not using GNU ld we use -z text 8804 # though, which does catch some bad symbols but isn't as heavy-handed 8805 # as -z defs. 8806 no_undefined_flag='${wl}-z,text' 8807 allow_undefined_flag='${wl}-z,nodefs' 8808 archive_cmds_need_lc=no 8809 hardcode_shlibpath_var=no 8810 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 8811 hardcode_libdir_separator=':' 8812 link_all_deplibs=yes 8813 export_dynamic_flag_spec='${wl}-Bexport' 8814 runpath_var='LD_RUN_PATH' 8815 8816 if test "$GCC" = yes; then 8817 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8818 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8819 else 8820 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8821 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8822 fi 8823 ;; 8824 8825 uts4*) 8826 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8827 hardcode_libdir_flag_spec='-L$libdir' 8828 hardcode_shlibpath_var=no 8829 ;; 8830 8831 *) 8832 ld_shlibs=no 8833 ;; 8834 esac 8835 fi 8836 8837echo "$as_me:$LINENO: result: $ld_shlibs" >&5 8838echo "${ECHO_T}$ld_shlibs" >&6 8839test "$ld_shlibs" = no && can_build_shared=no 8840 8841# 8842# Do we need to explicitly link libc? 8843# 8844case "x$archive_cmds_need_lc" in 8845x|xyes) 8846 # Assume -lc should be added 8847 archive_cmds_need_lc=yes 8848 8849 if test "$enable_shared" = yes && test "$GCC" = yes; then 8850 case $archive_cmds in 8851 *'~'*) 8852 # FIXME: we may have to deal with multi-command sequences. 8853 ;; 8854 '$CC '*) 8855 # Test whether the compiler implicitly links with -lc since on some 8856 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8857 # to ld, don't add -lc before -lgcc. 8858 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 8859echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 8860 $rm conftest* 8861 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8862 8863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8864 (eval $ac_compile) 2>&5 8865 ac_status=$? 8866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8867 (exit $ac_status); } 2>conftest.err; then 8868 soname=conftest 8869 lib=conftest 8870 libobjs=conftest.$ac_objext 8871 deplibs= 8872 wl=$lt_prog_compiler_wl 8873 pic_flag=$lt_prog_compiler_pic 8874 compiler_flags=-v 8875 linker_flags=-v 8876 verstring= 8877 output_objdir=. 8878 libname=conftest 8879 lt_save_allow_undefined_flag=$allow_undefined_flag 8880 allow_undefined_flag= 8881 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 8882 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 8883 ac_status=$? 8884 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8885 (exit $ac_status); } 8886 then 8887 archive_cmds_need_lc=no 8888 else 8889 archive_cmds_need_lc=yes 8890 fi 8891 allow_undefined_flag=$lt_save_allow_undefined_flag 8892 else 8893 cat conftest.err 1>&5 8894 fi 8895 $rm conftest* 8896 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 8897echo "${ECHO_T}$archive_cmds_need_lc" >&6 8898 ;; 8899 esac 8900 fi 8901 ;; 8902esac 8903 8904echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 8905echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 8906library_names_spec= 8907libname_spec='lib$name' 8908soname_spec= 8909shrext_cmds=".so" 8910postinstall_cmds= 8911postuninstall_cmds= 8912finish_cmds= 8913finish_eval= 8914shlibpath_var= 8915shlibpath_overrides_runpath=unknown 8916version_type=none 8917dynamic_linker="$host_os ld.so" 8918sys_lib_dlsearch_path_spec="/lib /usr/lib" 8919if test "$GCC" = yes; then 8920 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8921 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 8922 # if the path contains ";" then we assume it to be the separator 8923 # otherwise default to the standard path separator (i.e. ":") - it is 8924 # assumed that no part of a normal pathname contains ";" but that should 8925 # okay in the real world where ";" in dirpaths is itself problematic. 8926 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8927 else 8928 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8929 fi 8930else 8931 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8932fi 8933need_lib_prefix=unknown 8934hardcode_into_libs=no 8935 8936# when you set need_version to no, make sure it does not cause -set_version 8937# flags to be left without arguments 8938need_version=unknown 8939 8940case $host_os in 8941aix3*) 8942 version_type=linux 8943 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 8944 shlibpath_var=LIBPATH 8945 8946 # AIX 3 has no versioning support, so we append a major version to the name. 8947 soname_spec='${libname}${release}${shared_ext}$major' 8948 ;; 8949 8950aix4* | aix5*) 8951 version_type=linux 8952 need_lib_prefix=no 8953 need_version=no 8954 hardcode_into_libs=yes 8955 if test "$host_cpu" = ia64; then 8956 # AIX 5 supports IA64 8957 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 8958 shlibpath_var=LD_LIBRARY_PATH 8959 else 8960 # With GCC up to 2.95.x, collect2 would create an import file 8961 # for dependence libraries. The import file would start with 8962 # the line `#! .'. This would cause the generated library to 8963 # depend on `.', always an invalid library. This was fixed in 8964 # development snapshots of GCC prior to 3.0. 8965 case $host_os in 8966 aix4 | aix4.[01] | aix4.[01].*) 8967 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 8968 echo ' yes ' 8969 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 8970 : 8971 else 8972 can_build_shared=no 8973 fi 8974 ;; 8975 esac 8976 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 8977 # soname into executable. Probably we can add versioning support to 8978 # collect2, so additional links can be useful in future. 8979 if test "$aix_use_runtimelinking" = yes; then 8980 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 8981 # instead of lib<name>.a to let people know that these are not 8982 # typical AIX shared libraries. 8983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8984 else 8985 # We preserve .a as extension for shared libraries through AIX4.2 8986 # and later when we are not doing run time linking. 8987 library_names_spec='${libname}${release}.a $libname.a' 8988 soname_spec='${libname}${release}${shared_ext}$major' 8989 fi 8990 shlibpath_var=LIBPATH 8991 fi 8992 ;; 8993 8994amigaos*) 8995 library_names_spec='$libname.ixlibrary $libname.a' 8996 # Create ${libname}_ixlibrary.a entries in /sys/libs. 8997 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' 8998 ;; 8999 9000beos*) 9001 library_names_spec='${libname}${shared_ext}' 9002 dynamic_linker="$host_os ld.so" 9003 shlibpath_var=LIBRARY_PATH 9004 ;; 9005 9006bsdi[45]*) 9007 version_type=linux 9008 need_version=no 9009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9010 soname_spec='${libname}${release}${shared_ext}$major' 9011 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9012 shlibpath_var=LD_LIBRARY_PATH 9013 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9014 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9015 # the default ld.so.conf also contains /usr/contrib/lib and 9016 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9017 # libtool to hard-code these into programs 9018 ;; 9019 9020cygwin* | mingw* | pw32*) 9021 version_type=windows 9022 shrext_cmds=".dll" 9023 need_version=no 9024 need_lib_prefix=no 9025 9026 case $GCC,$host_os in 9027 yes,cygwin* | yes,mingw* | yes,pw32*) 9028 library_names_spec='$libname.dll.a' 9029 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9030 postinstall_cmds='base_file=`basename \${file}`~ 9031 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 9032 dldir=$destdir/`dirname \$dlpath`~ 9033 test -d \$dldir || mkdir -p \$dldir~ 9034 $install_prog $dir/$dlname \$dldir/$dlname~ 9035 chmod a+x \$dldir/$dlname' 9036 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9037 dlpath=$dir/\$dldll~ 9038 $rm \$dlpath' 9039 shlibpath_overrides_runpath=yes 9040 9041 case $host_os in 9042 cygwin*) 9043 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9044 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9045 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9046 ;; 9047 mingw*) 9048 # MinGW DLLs use traditional 'lib' prefix 9049 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9050 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9051 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 9052 # It is most probably a Windows format PATH printed by 9053 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9054 # path with ; separators, and with drive letters. We can handle the 9055 # drive letters (cygwin fileutils understands them), so leave them, 9056 # especially as we might pass files found there to a mingw objdump, 9057 # which wouldn't understand a cygwinified path. Ahh. 9058 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9059 else 9060 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9061 fi 9062 ;; 9063 pw32*) 9064 # pw32 DLLs use 'pw' prefix rather than 'lib' 9065 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9066 ;; 9067 esac 9068 ;; 9069 9070 *) 9071 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9072 ;; 9073 esac 9074 dynamic_linker='Win32 ld.exe' 9075 # FIXME: first we should search . and the directory the executable is in 9076 shlibpath_var=PATH 9077 ;; 9078 9079darwin* | rhapsody*) 9080 dynamic_linker="$host_os dyld" 9081 version_type=darwin 9082 need_lib_prefix=no 9083 need_version=no 9084 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9085 soname_spec='${libname}${release}${major}$shared_ext' 9086 shlibpath_overrides_runpath=yes 9087 shlibpath_var=DYLD_LIBRARY_PATH 9088 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9089 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 9090 if test "$GCC" = yes; then 9091 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"` 9092 else 9093 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 9094 fi 9095 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9096 ;; 9097 9098dgux*) 9099 version_type=linux 9100 need_lib_prefix=no 9101 need_version=no 9102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9103 soname_spec='${libname}${release}${shared_ext}$major' 9104 shlibpath_var=LD_LIBRARY_PATH 9105 ;; 9106 9107freebsd1*) 9108 dynamic_linker=no 9109 ;; 9110 9111kfreebsd*-gnu) 9112 version_type=linux 9113 need_lib_prefix=no 9114 need_version=no 9115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9116 soname_spec='${libname}${release}${shared_ext}$major' 9117 shlibpath_var=LD_LIBRARY_PATH 9118 shlibpath_overrides_runpath=no 9119 hardcode_into_libs=yes 9120 dynamic_linker='GNU ld.so' 9121 ;; 9122 9123freebsd* | dragonfly*) 9124 # DragonFly does not have aout. When/if they implement a new 9125 # versioning mechanism, adjust this. 9126 if test -x /usr/bin/objformat; then 9127 objformat=`/usr/bin/objformat` 9128 else 9129 case $host_os in 9130 freebsd[123]*) objformat=aout ;; 9131 *) objformat=elf ;; 9132 esac 9133 fi 9134 version_type=freebsd-$objformat 9135 case $version_type in 9136 freebsd-elf*) 9137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9138 need_version=no 9139 need_lib_prefix=no 9140 ;; 9141 freebsd-*) 9142 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9143 need_version=yes 9144 ;; 9145 esac 9146 shlibpath_var=LD_LIBRARY_PATH 9147 case $host_os in 9148 freebsd2*) 9149 shlibpath_overrides_runpath=yes 9150 ;; 9151 freebsd3.[01]* | freebsdelf3.[01]*) 9152 shlibpath_overrides_runpath=yes 9153 hardcode_into_libs=yes 9154 ;; 9155 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9156 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9157 shlibpath_overrides_runpath=no 9158 hardcode_into_libs=yes 9159 ;; 9160 freebsd*) # from 4.6 on 9161 shlibpath_overrides_runpath=yes 9162 hardcode_into_libs=yes 9163 ;; 9164 esac 9165 ;; 9166 9167gnu*) 9168 version_type=linux 9169 need_lib_prefix=no 9170 need_version=no 9171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9172 soname_spec='${libname}${release}${shared_ext}$major' 9173 shlibpath_var=LD_LIBRARY_PATH 9174 hardcode_into_libs=yes 9175 ;; 9176 9177hpux9* | hpux10* | hpux11*) 9178 # Give a soname corresponding to the major version so that dld.sl refuses to 9179 # link against other versions. 9180 version_type=sunos 9181 need_lib_prefix=no 9182 need_version=no 9183 case $host_cpu in 9184 ia64*) 9185 shrext_cmds='.so' 9186 hardcode_into_libs=yes 9187 dynamic_linker="$host_os dld.so" 9188 shlibpath_var=LD_LIBRARY_PATH 9189 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9191 soname_spec='${libname}${release}${shared_ext}$major' 9192 if test "X$HPUX_IA64_MODE" = X32; then 9193 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9194 else 9195 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9196 fi 9197 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9198 ;; 9199 hppa*64*) 9200 shrext_cmds='.sl' 9201 hardcode_into_libs=yes 9202 dynamic_linker="$host_os dld.sl" 9203 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9204 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9206 soname_spec='${libname}${release}${shared_ext}$major' 9207 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9208 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9209 ;; 9210 *) 9211 shrext_cmds='.sl' 9212 dynamic_linker="$host_os dld.sl" 9213 shlibpath_var=SHLIB_PATH 9214 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9216 soname_spec='${libname}${release}${shared_ext}$major' 9217 ;; 9218 esac 9219 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9220 postinstall_cmds='chmod 555 $lib' 9221 ;; 9222 9223interix3*) 9224 version_type=linux 9225 need_lib_prefix=no 9226 need_version=no 9227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9228 soname_spec='${libname}${release}${shared_ext}$major' 9229 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9230 shlibpath_var=LD_LIBRARY_PATH 9231 shlibpath_overrides_runpath=no 9232 hardcode_into_libs=yes 9233 ;; 9234 9235irix5* | irix6* | nonstopux*) 9236 case $host_os in 9237 nonstopux*) version_type=nonstopux ;; 9238 *) 9239 if test "$lt_cv_prog_gnu_ld" = yes; then 9240 version_type=linux 9241 else 9242 version_type=irix 9243 fi ;; 9244 esac 9245 need_lib_prefix=no 9246 need_version=no 9247 soname_spec='${libname}${release}${shared_ext}$major' 9248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9249 case $host_os in 9250 irix5* | nonstopux*) 9251 libsuff= shlibsuff= 9252 ;; 9253 *) 9254 case $LD in # libtool.m4 will add one of these switches to LD 9255 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9256 libsuff= shlibsuff= libmagic=32-bit;; 9257 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9258 libsuff=32 shlibsuff=N32 libmagic=N32;; 9259 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9260 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9261 *) libsuff= shlibsuff= libmagic=never-match;; 9262 esac 9263 ;; 9264 esac 9265 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9266 shlibpath_overrides_runpath=no 9267 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9268 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9269 hardcode_into_libs=yes 9270 ;; 9271 9272# No shared lib support for Linux oldld, aout, or coff. 9273linux*oldld* | linux*aout* | linux*coff*) 9274 dynamic_linker=no 9275 ;; 9276 9277# This must be Linux ELF. 9278linux*) 9279 version_type=linux 9280 need_lib_prefix=no 9281 need_version=no 9282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9283 soname_spec='${libname}${release}${shared_ext}$major' 9284 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9285 shlibpath_var=LD_LIBRARY_PATH 9286 shlibpath_overrides_runpath=no 9287 # This implies no fast_install, which is unacceptable. 9288 # Some rework will be needed to allow for fast_install 9289 # before this can be enabled. 9290 hardcode_into_libs=yes 9291 9292 # Append ld.so.conf contents to the search path 9293 if test -f /etc/ld.so.conf; then 9294 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' ' '` 9295 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9296 fi 9297 9298 # We used to test for /lib/ld.so.1 and disable shared libraries on 9299 # powerpc, because MkLinux only supported shared libraries with the 9300 # GNU dynamic linker. Since this was broken with cross compilers, 9301 # most powerpc-linux boxes support dynamic linking these days and 9302 # people can always --disable-shared, the test was removed, and we 9303 # assume the GNU/Linux dynamic linker is in use. 9304 dynamic_linker='GNU/Linux ld.so' 9305 ;; 9306 9307knetbsd*-gnu) 9308 version_type=linux 9309 need_lib_prefix=no 9310 need_version=no 9311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9312 soname_spec='${libname}${release}${shared_ext}$major' 9313 shlibpath_var=LD_LIBRARY_PATH 9314 shlibpath_overrides_runpath=no 9315 hardcode_into_libs=yes 9316 dynamic_linker='GNU ld.so' 9317 ;; 9318 9319netbsd*) 9320 version_type=sunos 9321 need_lib_prefix=no 9322 need_version=no 9323 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9325 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9326 dynamic_linker='NetBSD (a.out) ld.so' 9327 else 9328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9329 soname_spec='${libname}${release}${shared_ext}$major' 9330 dynamic_linker='NetBSD ld.elf_so' 9331 fi 9332 shlibpath_var=LD_LIBRARY_PATH 9333 shlibpath_overrides_runpath=yes 9334 hardcode_into_libs=yes 9335 ;; 9336 9337newsos6) 9338 version_type=linux 9339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9340 shlibpath_var=LD_LIBRARY_PATH 9341 shlibpath_overrides_runpath=yes 9342 ;; 9343 9344nto-qnx*) 9345 version_type=linux 9346 need_lib_prefix=no 9347 need_version=no 9348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9349 soname_spec='${libname}${release}${shared_ext}$major' 9350 shlibpath_var=LD_LIBRARY_PATH 9351 shlibpath_overrides_runpath=yes 9352 ;; 9353 9354openbsd*) 9355 version_type=sunos 9356 sys_lib_dlsearch_path_spec="/usr/lib" 9357 need_lib_prefix=no 9358 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9359 case $host_os in 9360 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9361 *) need_version=no ;; 9362 esac 9363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9364 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9365 shlibpath_var=LD_LIBRARY_PATH 9366 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9367 case $host_os in 9368 openbsd2.[89] | openbsd2.[89].*) 9369 shlibpath_overrides_runpath=no 9370 ;; 9371 *) 9372 shlibpath_overrides_runpath=yes 9373 ;; 9374 esac 9375 else 9376 shlibpath_overrides_runpath=yes 9377 fi 9378 ;; 9379 9380os2*) 9381 libname_spec='$name' 9382 shrext_cmds=".dll" 9383 need_lib_prefix=no 9384 library_names_spec='$libname${shared_ext} $libname.a' 9385 dynamic_linker='OS/2 ld.exe' 9386 shlibpath_var=LIBPATH 9387 ;; 9388 9389osf3* | osf4* | osf5*) 9390 version_type=osf 9391 need_lib_prefix=no 9392 need_version=no 9393 soname_spec='${libname}${release}${shared_ext}$major' 9394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9395 shlibpath_var=LD_LIBRARY_PATH 9396 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9397 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9398 ;; 9399 9400solaris*) 9401 version_type=linux 9402 need_lib_prefix=no 9403 need_version=no 9404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9405 soname_spec='${libname}${release}${shared_ext}$major' 9406 shlibpath_var=LD_LIBRARY_PATH 9407 shlibpath_overrides_runpath=yes 9408 hardcode_into_libs=yes 9409 # ldd complains unless libraries are executable 9410 postinstall_cmds='chmod +x $lib' 9411 ;; 9412 9413sunos4*) 9414 version_type=sunos 9415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9416 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9417 shlibpath_var=LD_LIBRARY_PATH 9418 shlibpath_overrides_runpath=yes 9419 if test "$with_gnu_ld" = yes; then 9420 need_lib_prefix=no 9421 fi 9422 need_version=yes 9423 ;; 9424 9425sysv4 | sysv4.3*) 9426 version_type=linux 9427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9428 soname_spec='${libname}${release}${shared_ext}$major' 9429 shlibpath_var=LD_LIBRARY_PATH 9430 case $host_vendor in 9431 sni) 9432 shlibpath_overrides_runpath=no 9433 need_lib_prefix=no 9434 export_dynamic_flag_spec='${wl}-Blargedynsym' 9435 runpath_var=LD_RUN_PATH 9436 ;; 9437 siemens) 9438 need_lib_prefix=no 9439 ;; 9440 motorola) 9441 need_lib_prefix=no 9442 need_version=no 9443 shlibpath_overrides_runpath=no 9444 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9445 ;; 9446 esac 9447 ;; 9448 9449sysv4*MP*) 9450 if test -d /usr/nec ;then 9451 version_type=linux 9452 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9453 soname_spec='$libname${shared_ext}.$major' 9454 shlibpath_var=LD_LIBRARY_PATH 9455 fi 9456 ;; 9457 9458sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9459 version_type=freebsd-elf 9460 need_lib_prefix=no 9461 need_version=no 9462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9463 soname_spec='${libname}${release}${shared_ext}$major' 9464 shlibpath_var=LD_LIBRARY_PATH 9465 hardcode_into_libs=yes 9466 if test "$with_gnu_ld" = yes; then 9467 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9468 shlibpath_overrides_runpath=no 9469 else 9470 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9471 shlibpath_overrides_runpath=yes 9472 case $host_os in 9473 sco3.2v5*) 9474 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9475 ;; 9476 esac 9477 fi 9478 sys_lib_dlsearch_path_spec='/usr/lib' 9479 ;; 9480 9481uts4*) 9482 version_type=linux 9483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9484 soname_spec='${libname}${release}${shared_ext}$major' 9485 shlibpath_var=LD_LIBRARY_PATH 9486 ;; 9487 9488*) 9489 dynamic_linker=no 9490 ;; 9491esac 9492echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9493echo "${ECHO_T}$dynamic_linker" >&6 9494test "$dynamic_linker" = no && can_build_shared=no 9495 9496variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9497if test "$GCC" = yes; then 9498 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9499fi 9500 9501echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9502echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 9503hardcode_action= 9504if test -n "$hardcode_libdir_flag_spec" || \ 9505 test -n "$runpath_var" || \ 9506 test "X$hardcode_automatic" = "Xyes" ; then 9507 9508 # We can hardcode non-existant directories. 9509 if test "$hardcode_direct" != no && 9510 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9511 # have to relink, otherwise we might link with an installed library 9512 # when we should be linking with a yet-to-be-installed one 9513 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 9514 test "$hardcode_minus_L" != no; then 9515 # Linking always hardcodes the temporary library directory. 9516 hardcode_action=relink 9517 else 9518 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9519 hardcode_action=immediate 9520 fi 9521else 9522 # We cannot hardcode anything, or else we can only hardcode existing 9523 # directories. 9524 hardcode_action=unsupported 9525fi 9526echo "$as_me:$LINENO: result: $hardcode_action" >&5 9527echo "${ECHO_T}$hardcode_action" >&6 9528 9529if test "$hardcode_action" = relink; then 9530 # Fast installation is not supported 9531 enable_fast_install=no 9532elif test "$shlibpath_overrides_runpath" = yes || 9533 test "$enable_shared" = no; then 9534 # Fast installation is not necessary 9535 enable_fast_install=needless 9536fi 9537 9538striplib= 9539old_striplib= 9540echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9541echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 9542if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9543 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9544 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9545 echo "$as_me:$LINENO: result: yes" >&5 9546echo "${ECHO_T}yes" >&6 9547else 9548# FIXME - insert some real tests, host_os isn't really good enough 9549 case $host_os in 9550 darwin*) 9551 if test -n "$STRIP" ; then 9552 striplib="$STRIP -x" 9553 echo "$as_me:$LINENO: result: yes" >&5 9554echo "${ECHO_T}yes" >&6 9555 else 9556 echo "$as_me:$LINENO: result: no" >&5 9557echo "${ECHO_T}no" >&6 9558fi 9559 ;; 9560 *) 9561 echo "$as_me:$LINENO: result: no" >&5 9562echo "${ECHO_T}no" >&6 9563 ;; 9564 esac 9565fi 9566 9567if test "x$enable_dlopen" != xyes; then 9568 enable_dlopen=unknown 9569 enable_dlopen_self=unknown 9570 enable_dlopen_self_static=unknown 9571else 9572 lt_cv_dlopen=no 9573 lt_cv_dlopen_libs= 9574 9575 case $host_os in 9576 beos*) 9577 lt_cv_dlopen="load_add_on" 9578 lt_cv_dlopen_libs= 9579 lt_cv_dlopen_self=yes 9580 ;; 9581 9582 mingw* | pw32*) 9583 lt_cv_dlopen="LoadLibrary" 9584 lt_cv_dlopen_libs= 9585 ;; 9586 9587 cygwin*) 9588 lt_cv_dlopen="dlopen" 9589 lt_cv_dlopen_libs= 9590 ;; 9591 9592 darwin*) 9593 # if libdl is installed we need to link against it 9594 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9595echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 9596if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9597 echo $ECHO_N "(cached) $ECHO_C" >&6 9598else 9599 ac_check_lib_save_LIBS=$LIBS 9600LIBS="-ldl $LIBS" 9601cat >conftest.$ac_ext <<_ACEOF 9602/* confdefs.h. */ 9603_ACEOF 9604cat confdefs.h >>conftest.$ac_ext 9605cat >>conftest.$ac_ext <<_ACEOF 9606/* end confdefs.h. */ 9607 9608/* Override any gcc2 internal prototype to avoid an error. */ 9609#ifdef __cplusplus 9610extern "C" 9611#endif 9612/* We use char because int might match the return type of a gcc2 9613 builtin and then its argument prototype would still apply. */ 9614char dlopen (); 9615int 9616main () 9617{ 9618dlopen (); 9619 ; 9620 return 0; 9621} 9622_ACEOF 9623rm -f conftest.$ac_objext conftest$ac_exeext 9624if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9625 (eval $ac_link) 2>conftest.er1 9626 ac_status=$? 9627 grep -v '^ *+' conftest.er1 >conftest.err 9628 rm -f conftest.er1 9629 cat conftest.err >&5 9630 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9631 (exit $ac_status); } && 9632 { ac_try='test -z "$ac_c_werror_flag" 9633 || test ! -s conftest.err' 9634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9635 (eval $ac_try) 2>&5 9636 ac_status=$? 9637 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9638 (exit $ac_status); }; } && 9639 { ac_try='test -s conftest$ac_exeext' 9640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9641 (eval $ac_try) 2>&5 9642 ac_status=$? 9643 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9644 (exit $ac_status); }; }; then 9645 ac_cv_lib_dl_dlopen=yes 9646else 9647 echo "$as_me: failed program was:" >&5 9648sed 's/^/| /' conftest.$ac_ext >&5 9649 9650ac_cv_lib_dl_dlopen=no 9651fi 9652rm -f conftest.err conftest.$ac_objext \ 9653 conftest$ac_exeext conftest.$ac_ext 9654LIBS=$ac_check_lib_save_LIBS 9655fi 9656echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9657echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 9658if test $ac_cv_lib_dl_dlopen = yes; then 9659 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9660else 9661 9662 lt_cv_dlopen="dyld" 9663 lt_cv_dlopen_libs= 9664 lt_cv_dlopen_self=yes 9665 9666fi 9667 9668 ;; 9669 9670 *) 9671 echo "$as_me:$LINENO: checking for shl_load" >&5 9672echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 9673if test "${ac_cv_func_shl_load+set}" = set; then 9674 echo $ECHO_N "(cached) $ECHO_C" >&6 9675else 9676 cat >conftest.$ac_ext <<_ACEOF 9677/* confdefs.h. */ 9678_ACEOF 9679cat confdefs.h >>conftest.$ac_ext 9680cat >>conftest.$ac_ext <<_ACEOF 9681/* end confdefs.h. */ 9682/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9683 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9684#define shl_load innocuous_shl_load 9685 9686/* System header to define __stub macros and hopefully few prototypes, 9687 which can conflict with char shl_load (); below. 9688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9689 <limits.h> exists even on freestanding compilers. */ 9690 9691#ifdef __STDC__ 9692# include <limits.h> 9693#else 9694# include <assert.h> 9695#endif 9696 9697#undef shl_load 9698 9699/* Override any gcc2 internal prototype to avoid an error. */ 9700#ifdef __cplusplus 9701extern "C" 9702{ 9703#endif 9704/* We use char because int might match the return type of a gcc2 9705 builtin and then its argument prototype would still apply. */ 9706char shl_load (); 9707/* The GNU C library defines this for functions which it implements 9708 to always fail with ENOSYS. Some functions are actually named 9709 something starting with __ and the normal name is an alias. */ 9710#if defined (__stub_shl_load) || defined (__stub___shl_load) 9711choke me 9712#else 9713char (*f) () = shl_load; 9714#endif 9715#ifdef __cplusplus 9716} 9717#endif 9718 9719int 9720main () 9721{ 9722return f != shl_load; 9723 ; 9724 return 0; 9725} 9726_ACEOF 9727rm -f conftest.$ac_objext conftest$ac_exeext 9728if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9729 (eval $ac_link) 2>conftest.er1 9730 ac_status=$? 9731 grep -v '^ *+' conftest.er1 >conftest.err 9732 rm -f conftest.er1 9733 cat conftest.err >&5 9734 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9735 (exit $ac_status); } && 9736 { ac_try='test -z "$ac_c_werror_flag" 9737 || test ! -s conftest.err' 9738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9739 (eval $ac_try) 2>&5 9740 ac_status=$? 9741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9742 (exit $ac_status); }; } && 9743 { ac_try='test -s conftest$ac_exeext' 9744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9745 (eval $ac_try) 2>&5 9746 ac_status=$? 9747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9748 (exit $ac_status); }; }; then 9749 ac_cv_func_shl_load=yes 9750else 9751 echo "$as_me: failed program was:" >&5 9752sed 's/^/| /' conftest.$ac_ext >&5 9753 9754ac_cv_func_shl_load=no 9755fi 9756rm -f conftest.err conftest.$ac_objext \ 9757 conftest$ac_exeext conftest.$ac_ext 9758fi 9759echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9760echo "${ECHO_T}$ac_cv_func_shl_load" >&6 9761if test $ac_cv_func_shl_load = yes; then 9762 lt_cv_dlopen="shl_load" 9763else 9764 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9765echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 9766if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9767 echo $ECHO_N "(cached) $ECHO_C" >&6 9768else 9769 ac_check_lib_save_LIBS=$LIBS 9770LIBS="-ldld $LIBS" 9771cat >conftest.$ac_ext <<_ACEOF 9772/* confdefs.h. */ 9773_ACEOF 9774cat confdefs.h >>conftest.$ac_ext 9775cat >>conftest.$ac_ext <<_ACEOF 9776/* end confdefs.h. */ 9777 9778/* Override any gcc2 internal prototype to avoid an error. */ 9779#ifdef __cplusplus 9780extern "C" 9781#endif 9782/* We use char because int might match the return type of a gcc2 9783 builtin and then its argument prototype would still apply. */ 9784char shl_load (); 9785int 9786main () 9787{ 9788shl_load (); 9789 ; 9790 return 0; 9791} 9792_ACEOF 9793rm -f conftest.$ac_objext conftest$ac_exeext 9794if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9795 (eval $ac_link) 2>conftest.er1 9796 ac_status=$? 9797 grep -v '^ *+' conftest.er1 >conftest.err 9798 rm -f conftest.er1 9799 cat conftest.err >&5 9800 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9801 (exit $ac_status); } && 9802 { ac_try='test -z "$ac_c_werror_flag" 9803 || test ! -s conftest.err' 9804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9805 (eval $ac_try) 2>&5 9806 ac_status=$? 9807 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9808 (exit $ac_status); }; } && 9809 { ac_try='test -s conftest$ac_exeext' 9810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9811 (eval $ac_try) 2>&5 9812 ac_status=$? 9813 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9814 (exit $ac_status); }; }; then 9815 ac_cv_lib_dld_shl_load=yes 9816else 9817 echo "$as_me: failed program was:" >&5 9818sed 's/^/| /' conftest.$ac_ext >&5 9819 9820ac_cv_lib_dld_shl_load=no 9821fi 9822rm -f conftest.err conftest.$ac_objext \ 9823 conftest$ac_exeext conftest.$ac_ext 9824LIBS=$ac_check_lib_save_LIBS 9825fi 9826echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9827echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 9828if test $ac_cv_lib_dld_shl_load = yes; then 9829 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 9830else 9831 echo "$as_me:$LINENO: checking for dlopen" >&5 9832echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 9833if test "${ac_cv_func_dlopen+set}" = set; then 9834 echo $ECHO_N "(cached) $ECHO_C" >&6 9835else 9836 cat >conftest.$ac_ext <<_ACEOF 9837/* confdefs.h. */ 9838_ACEOF 9839cat confdefs.h >>conftest.$ac_ext 9840cat >>conftest.$ac_ext <<_ACEOF 9841/* end confdefs.h. */ 9842/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 9843 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9844#define dlopen innocuous_dlopen 9845 9846/* System header to define __stub macros and hopefully few prototypes, 9847 which can conflict with char dlopen (); below. 9848 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9849 <limits.h> exists even on freestanding compilers. */ 9850 9851#ifdef __STDC__ 9852# include <limits.h> 9853#else 9854# include <assert.h> 9855#endif 9856 9857#undef dlopen 9858 9859/* Override any gcc2 internal prototype to avoid an error. */ 9860#ifdef __cplusplus 9861extern "C" 9862{ 9863#endif 9864/* We use char because int might match the return type of a gcc2 9865 builtin and then its argument prototype would still apply. */ 9866char dlopen (); 9867/* The GNU C library defines this for functions which it implements 9868 to always fail with ENOSYS. Some functions are actually named 9869 something starting with __ and the normal name is an alias. */ 9870#if defined (__stub_dlopen) || defined (__stub___dlopen) 9871choke me 9872#else 9873char (*f) () = dlopen; 9874#endif 9875#ifdef __cplusplus 9876} 9877#endif 9878 9879int 9880main () 9881{ 9882return f != dlopen; 9883 ; 9884 return 0; 9885} 9886_ACEOF 9887rm -f conftest.$ac_objext conftest$ac_exeext 9888if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9889 (eval $ac_link) 2>conftest.er1 9890 ac_status=$? 9891 grep -v '^ *+' conftest.er1 >conftest.err 9892 rm -f conftest.er1 9893 cat conftest.err >&5 9894 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9895 (exit $ac_status); } && 9896 { ac_try='test -z "$ac_c_werror_flag" 9897 || test ! -s conftest.err' 9898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9899 (eval $ac_try) 2>&5 9900 ac_status=$? 9901 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9902 (exit $ac_status); }; } && 9903 { ac_try='test -s conftest$ac_exeext' 9904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9905 (eval $ac_try) 2>&5 9906 ac_status=$? 9907 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9908 (exit $ac_status); }; }; then 9909 ac_cv_func_dlopen=yes 9910else 9911 echo "$as_me: failed program was:" >&5 9912sed 's/^/| /' conftest.$ac_ext >&5 9913 9914ac_cv_func_dlopen=no 9915fi 9916rm -f conftest.err conftest.$ac_objext \ 9917 conftest$ac_exeext conftest.$ac_ext 9918fi 9919echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 9920echo "${ECHO_T}$ac_cv_func_dlopen" >&6 9921if test $ac_cv_func_dlopen = yes; then 9922 lt_cv_dlopen="dlopen" 9923else 9924 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9925echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 9926if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9927 echo $ECHO_N "(cached) $ECHO_C" >&6 9928else 9929 ac_check_lib_save_LIBS=$LIBS 9930LIBS="-ldl $LIBS" 9931cat >conftest.$ac_ext <<_ACEOF 9932/* confdefs.h. */ 9933_ACEOF 9934cat confdefs.h >>conftest.$ac_ext 9935cat >>conftest.$ac_ext <<_ACEOF 9936/* end confdefs.h. */ 9937 9938/* Override any gcc2 internal prototype to avoid an error. */ 9939#ifdef __cplusplus 9940extern "C" 9941#endif 9942/* We use char because int might match the return type of a gcc2 9943 builtin and then its argument prototype would still apply. */ 9944char dlopen (); 9945int 9946main () 9947{ 9948dlopen (); 9949 ; 9950 return 0; 9951} 9952_ACEOF 9953rm -f conftest.$ac_objext conftest$ac_exeext 9954if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9955 (eval $ac_link) 2>conftest.er1 9956 ac_status=$? 9957 grep -v '^ *+' conftest.er1 >conftest.err 9958 rm -f conftest.er1 9959 cat conftest.err >&5 9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9961 (exit $ac_status); } && 9962 { ac_try='test -z "$ac_c_werror_flag" 9963 || test ! -s conftest.err' 9964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9965 (eval $ac_try) 2>&5 9966 ac_status=$? 9967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9968 (exit $ac_status); }; } && 9969 { ac_try='test -s conftest$ac_exeext' 9970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9971 (eval $ac_try) 2>&5 9972 ac_status=$? 9973 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9974 (exit $ac_status); }; }; then 9975 ac_cv_lib_dl_dlopen=yes 9976else 9977 echo "$as_me: failed program was:" >&5 9978sed 's/^/| /' conftest.$ac_ext >&5 9979 9980ac_cv_lib_dl_dlopen=no 9981fi 9982rm -f conftest.err conftest.$ac_objext \ 9983 conftest$ac_exeext conftest.$ac_ext 9984LIBS=$ac_check_lib_save_LIBS 9985fi 9986echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9987echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 9988if test $ac_cv_lib_dl_dlopen = yes; then 9989 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9990else 9991 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 9992echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 9993if test "${ac_cv_lib_svld_dlopen+set}" = set; then 9994 echo $ECHO_N "(cached) $ECHO_C" >&6 9995else 9996 ac_check_lib_save_LIBS=$LIBS 9997LIBS="-lsvld $LIBS" 9998cat >conftest.$ac_ext <<_ACEOF 9999/* confdefs.h. */ 10000_ACEOF 10001cat confdefs.h >>conftest.$ac_ext 10002cat >>conftest.$ac_ext <<_ACEOF 10003/* end confdefs.h. */ 10004 10005/* Override any gcc2 internal prototype to avoid an error. */ 10006#ifdef __cplusplus 10007extern "C" 10008#endif 10009/* We use char because int might match the return type of a gcc2 10010 builtin and then its argument prototype would still apply. */ 10011char dlopen (); 10012int 10013main () 10014{ 10015dlopen (); 10016 ; 10017 return 0; 10018} 10019_ACEOF 10020rm -f conftest.$ac_objext conftest$ac_exeext 10021if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10022 (eval $ac_link) 2>conftest.er1 10023 ac_status=$? 10024 grep -v '^ *+' conftest.er1 >conftest.err 10025 rm -f conftest.er1 10026 cat conftest.err >&5 10027 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10028 (exit $ac_status); } && 10029 { ac_try='test -z "$ac_c_werror_flag" 10030 || test ! -s conftest.err' 10031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10032 (eval $ac_try) 2>&5 10033 ac_status=$? 10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10035 (exit $ac_status); }; } && 10036 { ac_try='test -s conftest$ac_exeext' 10037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10038 (eval $ac_try) 2>&5 10039 ac_status=$? 10040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10041 (exit $ac_status); }; }; then 10042 ac_cv_lib_svld_dlopen=yes 10043else 10044 echo "$as_me: failed program was:" >&5 10045sed 's/^/| /' conftest.$ac_ext >&5 10046 10047ac_cv_lib_svld_dlopen=no 10048fi 10049rm -f conftest.err conftest.$ac_objext \ 10050 conftest$ac_exeext conftest.$ac_ext 10051LIBS=$ac_check_lib_save_LIBS 10052fi 10053echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10054echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 10055if test $ac_cv_lib_svld_dlopen = yes; then 10056 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10057else 10058 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10059echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 10060if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10061 echo $ECHO_N "(cached) $ECHO_C" >&6 10062else 10063 ac_check_lib_save_LIBS=$LIBS 10064LIBS="-ldld $LIBS" 10065cat >conftest.$ac_ext <<_ACEOF 10066/* confdefs.h. */ 10067_ACEOF 10068cat confdefs.h >>conftest.$ac_ext 10069cat >>conftest.$ac_ext <<_ACEOF 10070/* end confdefs.h. */ 10071 10072/* Override any gcc2 internal prototype to avoid an error. */ 10073#ifdef __cplusplus 10074extern "C" 10075#endif 10076/* We use char because int might match the return type of a gcc2 10077 builtin and then its argument prototype would still apply. */ 10078char dld_link (); 10079int 10080main () 10081{ 10082dld_link (); 10083 ; 10084 return 0; 10085} 10086_ACEOF 10087rm -f conftest.$ac_objext conftest$ac_exeext 10088if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10089 (eval $ac_link) 2>conftest.er1 10090 ac_status=$? 10091 grep -v '^ *+' conftest.er1 >conftest.err 10092 rm -f conftest.er1 10093 cat conftest.err >&5 10094 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10095 (exit $ac_status); } && 10096 { ac_try='test -z "$ac_c_werror_flag" 10097 || test ! -s conftest.err' 10098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10099 (eval $ac_try) 2>&5 10100 ac_status=$? 10101 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10102 (exit $ac_status); }; } && 10103 { ac_try='test -s conftest$ac_exeext' 10104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10105 (eval $ac_try) 2>&5 10106 ac_status=$? 10107 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10108 (exit $ac_status); }; }; then 10109 ac_cv_lib_dld_dld_link=yes 10110else 10111 echo "$as_me: failed program was:" >&5 10112sed 's/^/| /' conftest.$ac_ext >&5 10113 10114ac_cv_lib_dld_dld_link=no 10115fi 10116rm -f conftest.err conftest.$ac_objext \ 10117 conftest$ac_exeext conftest.$ac_ext 10118LIBS=$ac_check_lib_save_LIBS 10119fi 10120echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10121echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 10122if test $ac_cv_lib_dld_dld_link = yes; then 10123 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 10124fi 10125 10126 10127fi 10128 10129 10130fi 10131 10132 10133fi 10134 10135 10136fi 10137 10138 10139fi 10140 10141 ;; 10142 esac 10143 10144 if test "x$lt_cv_dlopen" != xno; then 10145 enable_dlopen=yes 10146 else 10147 enable_dlopen=no 10148 fi 10149 10150 case $lt_cv_dlopen in 10151 dlopen) 10152 save_CPPFLAGS="$CPPFLAGS" 10153 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10154 10155 save_LDFLAGS="$LDFLAGS" 10156 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10157 10158 save_LIBS="$LIBS" 10159 LIBS="$lt_cv_dlopen_libs $LIBS" 10160 10161 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10162echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 10163if test "${lt_cv_dlopen_self+set}" = set; then 10164 echo $ECHO_N "(cached) $ECHO_C" >&6 10165else 10166 if test "$cross_compiling" = yes; then : 10167 lt_cv_dlopen_self=cross 10168else 10169 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10170 lt_status=$lt_dlunknown 10171 cat > conftest.$ac_ext <<EOF 10172#line 10172 "configure" 10173#include "confdefs.h" 10174 10175#if HAVE_DLFCN_H 10176#include <dlfcn.h> 10177#endif 10178 10179#include <stdio.h> 10180 10181#ifdef RTLD_GLOBAL 10182# define LT_DLGLOBAL RTLD_GLOBAL 10183#else 10184# ifdef DL_GLOBAL 10185# define LT_DLGLOBAL DL_GLOBAL 10186# else 10187# define LT_DLGLOBAL 0 10188# endif 10189#endif 10190 10191/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10192 find out it does not work in some platform. */ 10193#ifndef LT_DLLAZY_OR_NOW 10194# ifdef RTLD_LAZY 10195# define LT_DLLAZY_OR_NOW RTLD_LAZY 10196# else 10197# ifdef DL_LAZY 10198# define LT_DLLAZY_OR_NOW DL_LAZY 10199# else 10200# ifdef RTLD_NOW 10201# define LT_DLLAZY_OR_NOW RTLD_NOW 10202# else 10203# ifdef DL_NOW 10204# define LT_DLLAZY_OR_NOW DL_NOW 10205# else 10206# define LT_DLLAZY_OR_NOW 0 10207# endif 10208# endif 10209# endif 10210# endif 10211#endif 10212 10213#ifdef __cplusplus 10214extern "C" void exit (int); 10215#endif 10216 10217void fnord() { int i=42;} 10218int main () 10219{ 10220 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10221 int status = $lt_dlunknown; 10222 10223 if (self) 10224 { 10225 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10226 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10227 /* dlclose (self); */ 10228 } 10229 else 10230 puts (dlerror ()); 10231 10232 exit (status); 10233} 10234EOF 10235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10236 (eval $ac_link) 2>&5 10237 ac_status=$? 10238 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10239 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10240 (./conftest; exit; ) >&5 2>/dev/null 10241 lt_status=$? 10242 case x$lt_status in 10243 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10244 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10245 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10246 esac 10247 else : 10248 # compilation failed 10249 lt_cv_dlopen_self=no 10250 fi 10251fi 10252rm -fr conftest* 10253 10254 10255fi 10256echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10257echo "${ECHO_T}$lt_cv_dlopen_self" >&6 10258 10259 if test "x$lt_cv_dlopen_self" = xyes; then 10260 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10261 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10262echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 10263if test "${lt_cv_dlopen_self_static+set}" = set; then 10264 echo $ECHO_N "(cached) $ECHO_C" >&6 10265else 10266 if test "$cross_compiling" = yes; then : 10267 lt_cv_dlopen_self_static=cross 10268else 10269 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10270 lt_status=$lt_dlunknown 10271 cat > conftest.$ac_ext <<EOF 10272#line 10272 "configure" 10273#include "confdefs.h" 10274 10275#if HAVE_DLFCN_H 10276#include <dlfcn.h> 10277#endif 10278 10279#include <stdio.h> 10280 10281#ifdef RTLD_GLOBAL 10282# define LT_DLGLOBAL RTLD_GLOBAL 10283#else 10284# ifdef DL_GLOBAL 10285# define LT_DLGLOBAL DL_GLOBAL 10286# else 10287# define LT_DLGLOBAL 0 10288# endif 10289#endif 10290 10291/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10292 find out it does not work in some platform. */ 10293#ifndef LT_DLLAZY_OR_NOW 10294# ifdef RTLD_LAZY 10295# define LT_DLLAZY_OR_NOW RTLD_LAZY 10296# else 10297# ifdef DL_LAZY 10298# define LT_DLLAZY_OR_NOW DL_LAZY 10299# else 10300# ifdef RTLD_NOW 10301# define LT_DLLAZY_OR_NOW RTLD_NOW 10302# else 10303# ifdef DL_NOW 10304# define LT_DLLAZY_OR_NOW DL_NOW 10305# else 10306# define LT_DLLAZY_OR_NOW 0 10307# endif 10308# endif 10309# endif 10310# endif 10311#endif 10312 10313#ifdef __cplusplus 10314extern "C" void exit (int); 10315#endif 10316 10317void fnord() { int i=42;} 10318int main () 10319{ 10320 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10321 int status = $lt_dlunknown; 10322 10323 if (self) 10324 { 10325 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10326 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10327 /* dlclose (self); */ 10328 } 10329 else 10330 puts (dlerror ()); 10331 10332 exit (status); 10333} 10334EOF 10335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10336 (eval $ac_link) 2>&5 10337 ac_status=$? 10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10339 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10340 (./conftest; exit; ) >&5 2>/dev/null 10341 lt_status=$? 10342 case x$lt_status in 10343 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10344 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10345 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10346 esac 10347 else : 10348 # compilation failed 10349 lt_cv_dlopen_self_static=no 10350 fi 10351fi 10352rm -fr conftest* 10353 10354 10355fi 10356echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 10357echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 10358 fi 10359 10360 CPPFLAGS="$save_CPPFLAGS" 10361 LDFLAGS="$save_LDFLAGS" 10362 LIBS="$save_LIBS" 10363 ;; 10364 esac 10365 10366 case $lt_cv_dlopen_self in 10367 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10368 *) enable_dlopen_self=unknown ;; 10369 esac 10370 10371 case $lt_cv_dlopen_self_static in 10372 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10373 *) enable_dlopen_self_static=unknown ;; 10374 esac 10375fi 10376 10377 10378# Report which library types will actually be built 10379echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 10380echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 10381echo "$as_me:$LINENO: result: $can_build_shared" >&5 10382echo "${ECHO_T}$can_build_shared" >&6 10383 10384echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 10385echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 10386test "$can_build_shared" = "no" && enable_shared=no 10387 10388# On AIX, shared libraries and static libraries use the same namespace, and 10389# are all built from PIC. 10390case $host_os in 10391aix3*) 10392 test "$enable_shared" = yes && enable_static=no 10393 if test -n "$RANLIB"; then 10394 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10395 postinstall_cmds='$RANLIB $lib' 10396 fi 10397 ;; 10398 10399aix4* | aix5*) 10400 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10401 test "$enable_shared" = yes && enable_static=no 10402 fi 10403 ;; 10404esac 10405echo "$as_me:$LINENO: result: $enable_shared" >&5 10406echo "${ECHO_T}$enable_shared" >&6 10407 10408echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10409echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 10410# Make sure either enable_shared or enable_static is yes. 10411test "$enable_shared" = yes || enable_static=yes 10412echo "$as_me:$LINENO: result: $enable_static" >&5 10413echo "${ECHO_T}$enable_static" >&6 10414 10415# The else clause should only fire when bootstrapping the 10416# libtool distribution, otherwise you forgot to ship ltmain.sh 10417# with your package, and you will get complaints that there are 10418# no rules to generate ltmain.sh. 10419if test -f "$ltmain"; then 10420 # See if we are running on zsh, and set the options which allow our commands through 10421 # without removal of \ escapes. 10422 if test -n "${ZSH_VERSION+set}" ; then 10423 setopt NO_GLOB_SUBST 10424 fi 10425 # Now quote all the things that may contain metacharacters while being 10426 # careful not to overquote the AC_SUBSTed values. We take copies of the 10427 # variables and quote the copies for generation of the libtool script. 10428 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 10429 SED SHELL STRIP \ 10430 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 10431 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 10432 deplibs_check_method reload_flag reload_cmds need_locks \ 10433 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 10434 lt_cv_sys_global_symbol_to_c_name_address \ 10435 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 10436 old_postinstall_cmds old_postuninstall_cmds \ 10437 compiler \ 10438 CC \ 10439 LD \ 10440 lt_prog_compiler_wl \ 10441 lt_prog_compiler_pic \ 10442 lt_prog_compiler_static \ 10443 lt_prog_compiler_no_builtin_flag \ 10444 export_dynamic_flag_spec \ 10445 thread_safe_flag_spec \ 10446 whole_archive_flag_spec \ 10447 enable_shared_with_static_runtimes \ 10448 old_archive_cmds \ 10449 old_archive_from_new_cmds \ 10450 predep_objects \ 10451 postdep_objects \ 10452 predeps \ 10453 postdeps \ 10454 compiler_lib_search_path \ 10455 archive_cmds \ 10456 archive_expsym_cmds \ 10457 postinstall_cmds \ 10458 postuninstall_cmds \ 10459 old_archive_from_expsyms_cmds \ 10460 allow_undefined_flag \ 10461 no_undefined_flag \ 10462 export_symbols_cmds \ 10463 hardcode_libdir_flag_spec \ 10464 hardcode_libdir_flag_spec_ld \ 10465 hardcode_libdir_separator \ 10466 hardcode_automatic \ 10467 module_cmds \ 10468 module_expsym_cmds \ 10469 lt_cv_prog_compiler_c_o \ 10470 exclude_expsyms \ 10471 include_expsyms; do 10472 10473 case $var in 10474 old_archive_cmds | \ 10475 old_archive_from_new_cmds | \ 10476 archive_cmds | \ 10477 archive_expsym_cmds | \ 10478 module_cmds | \ 10479 module_expsym_cmds | \ 10480 old_archive_from_expsyms_cmds | \ 10481 export_symbols_cmds | \ 10482 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 10483 postinstall_cmds | postuninstall_cmds | \ 10484 old_postinstall_cmds | old_postuninstall_cmds | \ 10485 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10486 # Double-quote double-evaled strings. 10487 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10488 ;; 10489 *) 10490 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10491 ;; 10492 esac 10493 done 10494 10495 case $lt_echo in 10496 *'\$0 --fallback-echo"') 10497 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 10498 ;; 10499 esac 10500 10501cfgfile="${ofile}T" 10502 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10503 $rm -f "$cfgfile" 10504 { echo "$as_me:$LINENO: creating $ofile" >&5 10505echo "$as_me: creating $ofile" >&6;} 10506 10507 cat <<__EOF__ >> "$cfgfile" 10508#! $SHELL 10509 10510# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10511# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10512# NOTE: Changes made to this file will be lost: look at ltmain.sh. 10513# 10514# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 10515# Free Software Foundation, Inc. 10516# 10517# This file is part of GNU Libtool: 10518# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 10519# 10520# This program is free software; you can redistribute it and/or modify 10521# it under the terms of the GNU General Public License as published by 10522# the Free Software Foundation; either version 2 of the License, or 10523# (at your option) any later version. 10524# 10525# This program is distributed in the hope that it will be useful, but 10526# WITHOUT ANY WARRANTY; without even the implied warranty of 10527# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10528# General Public License for more details. 10529# 10530# You should have received a copy of the GNU General Public License 10531# along with this program; if not, write to the Free Software 10532# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 10533# 10534# As a special exception to the GNU General Public License, if you 10535# distribute this file as part of a program that contains a 10536# configuration script generated by Autoconf, you may include it under 10537# the same distribution terms that you use for the rest of that program. 10538 10539# A sed program that does not truncate output. 10540SED=$lt_SED 10541 10542# Sed that helps us avoid accidentally triggering echo(1) options like -n. 10543Xsed="$SED -e 1s/^X//" 10544 10545# The HP-UX ksh and POSIX shell print the target directory to stdout 10546# if CDPATH is set. 10547(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10548 10549# The names of the tagged configurations supported by this script. 10550available_tags= 10551 10552# ### BEGIN LIBTOOL CONFIG 10553 10554# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10555 10556# Shell to use when invoking shell scripts. 10557SHELL=$lt_SHELL 10558 10559# Whether or not to build shared libraries. 10560build_libtool_libs=$enable_shared 10561 10562# Whether or not to build static libraries. 10563build_old_libs=$enable_static 10564 10565# Whether or not to add -lc for building shared libraries. 10566build_libtool_need_lc=$archive_cmds_need_lc 10567 10568# Whether or not to disallow shared libs when runtime libs are static 10569allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 10570 10571# Whether or not to optimize for fast installation. 10572fast_install=$enable_fast_install 10573 10574# The host system. 10575host_alias=$host_alias 10576host=$host 10577host_os=$host_os 10578 10579# The build system. 10580build_alias=$build_alias 10581build=$build 10582build_os=$build_os 10583 10584# An echo program that does not interpret backslashes. 10585echo=$lt_echo 10586 10587# The archiver. 10588AR=$lt_AR 10589AR_FLAGS=$lt_AR_FLAGS 10590 10591# A C compiler. 10592LTCC=$lt_LTCC 10593 10594# LTCC compiler flags. 10595LTCFLAGS=$lt_LTCFLAGS 10596 10597# A language-specific compiler. 10598CC=$lt_compiler 10599 10600# Is the compiler the GNU C compiler? 10601with_gcc=$GCC 10602 10603# An ERE matcher. 10604EGREP=$lt_EGREP 10605 10606# The linker used to build libraries. 10607LD=$lt_LD 10608 10609# Whether we need hard or soft links. 10610LN_S=$lt_LN_S 10611 10612# A BSD-compatible nm program. 10613NM=$lt_NM 10614 10615# A symbol stripping program 10616STRIP=$lt_STRIP 10617 10618# Used to examine libraries when file_magic_cmd begins "file" 10619MAGIC_CMD=$MAGIC_CMD 10620 10621# Used on cygwin: DLL creation program. 10622DLLTOOL="$DLLTOOL" 10623 10624# Used on cygwin: object dumper. 10625OBJDUMP="$OBJDUMP" 10626 10627# Used on cygwin: assembler. 10628AS="$AS" 10629 10630# The name of the directory that contains temporary libtool files. 10631objdir=$objdir 10632 10633# How to create reloadable object files. 10634reload_flag=$lt_reload_flag 10635reload_cmds=$lt_reload_cmds 10636 10637# How to pass a linker flag through the compiler. 10638wl=$lt_lt_prog_compiler_wl 10639 10640# Object file suffix (normally "o"). 10641objext="$ac_objext" 10642 10643# Old archive suffix (normally "a"). 10644libext="$libext" 10645 10646# Shared library suffix (normally ".so"). 10647shrext_cmds='$shrext_cmds' 10648 10649# Executable file suffix (normally ""). 10650exeext="$exeext" 10651 10652# Additional compiler flags for building library objects. 10653pic_flag=$lt_lt_prog_compiler_pic 10654pic_mode=$pic_mode 10655 10656# What is the maximum length of a command? 10657max_cmd_len=$lt_cv_sys_max_cmd_len 10658 10659# Does compiler simultaneously support -c and -o options? 10660compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10661 10662# Must we lock files when doing compilation? 10663need_locks=$lt_need_locks 10664 10665# Do we need the lib prefix for modules? 10666need_lib_prefix=$need_lib_prefix 10667 10668# Do we need a version for libraries? 10669need_version=$need_version 10670 10671# Whether dlopen is supported. 10672dlopen_support=$enable_dlopen 10673 10674# Whether dlopen of programs is supported. 10675dlopen_self=$enable_dlopen_self 10676 10677# Whether dlopen of statically linked programs is supported. 10678dlopen_self_static=$enable_dlopen_self_static 10679 10680# Compiler flag to prevent dynamic linking. 10681link_static_flag=$lt_lt_prog_compiler_static 10682 10683# Compiler flag to turn off builtin functions. 10684no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 10685 10686# Compiler flag to allow reflexive dlopens. 10687export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10688 10689# Compiler flag to generate shared objects directly from archives. 10690whole_archive_flag_spec=$lt_whole_archive_flag_spec 10691 10692# Compiler flag to generate thread-safe objects. 10693thread_safe_flag_spec=$lt_thread_safe_flag_spec 10694 10695# Library versioning type. 10696version_type=$version_type 10697 10698# Format of library name prefix. 10699libname_spec=$lt_libname_spec 10700 10701# List of archive names. First name is the real one, the rest are links. 10702# The last name is the one that the linker finds with -lNAME. 10703library_names_spec=$lt_library_names_spec 10704 10705# The coded name of the library, if different from the real name. 10706soname_spec=$lt_soname_spec 10707 10708# Commands used to build and install an old-style archive. 10709RANLIB=$lt_RANLIB 10710old_archive_cmds=$lt_old_archive_cmds 10711old_postinstall_cmds=$lt_old_postinstall_cmds 10712old_postuninstall_cmds=$lt_old_postuninstall_cmds 10713 10714# Create an old-style archive from a shared archive. 10715old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 10716 10717# Create a temporary old-style archive to link instead of a shared archive. 10718old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 10719 10720# Commands used to build and install a shared archive. 10721archive_cmds=$lt_archive_cmds 10722archive_expsym_cmds=$lt_archive_expsym_cmds 10723postinstall_cmds=$lt_postinstall_cmds 10724postuninstall_cmds=$lt_postuninstall_cmds 10725 10726# Commands used to build a loadable module (assumed same as above if empty) 10727module_cmds=$lt_module_cmds 10728module_expsym_cmds=$lt_module_expsym_cmds 10729 10730# Commands to strip libraries. 10731old_striplib=$lt_old_striplib 10732striplib=$lt_striplib 10733 10734# Dependencies to place before the objects being linked to create a 10735# shared library. 10736predep_objects=$lt_predep_objects 10737 10738# Dependencies to place after the objects being linked to create a 10739# shared library. 10740postdep_objects=$lt_postdep_objects 10741 10742# Dependencies to place before the objects being linked to create a 10743# shared library. 10744predeps=$lt_predeps 10745 10746# Dependencies to place after the objects being linked to create a 10747# shared library. 10748postdeps=$lt_postdeps 10749 10750# The library search path used internally by the compiler when linking 10751# a shared library. 10752compiler_lib_search_path=$lt_compiler_lib_search_path 10753 10754# Method to check whether dependent libraries are shared objects. 10755deplibs_check_method=$lt_deplibs_check_method 10756 10757# Command to use when deplibs_check_method == file_magic. 10758file_magic_cmd=$lt_file_magic_cmd 10759 10760# Flag that allows shared libraries with undefined symbols to be built. 10761allow_undefined_flag=$lt_allow_undefined_flag 10762 10763# Flag that forces no undefined symbols. 10764no_undefined_flag=$lt_no_undefined_flag 10765 10766# Commands used to finish a libtool library installation in a directory. 10767finish_cmds=$lt_finish_cmds 10768 10769# Same as above, but a single script fragment to be evaled but not shown. 10770finish_eval=$lt_finish_eval 10771 10772# Take the output of nm and produce a listing of raw symbols and C names. 10773global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 10774 10775# Transform the output of nm in a proper C declaration 10776global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 10777 10778# Transform the output of nm in a C name address pair 10779global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 10780 10781# This is the shared library runtime path variable. 10782runpath_var=$runpath_var 10783 10784# This is the shared library path variable. 10785shlibpath_var=$shlibpath_var 10786 10787# Is shlibpath searched before the hard-coded library search path? 10788shlibpath_overrides_runpath=$shlibpath_overrides_runpath 10789 10790# How to hardcode a shared library path into an executable. 10791hardcode_action=$hardcode_action 10792 10793# Whether we should hardcode library paths into libraries. 10794hardcode_into_libs=$hardcode_into_libs 10795 10796# Flag to hardcode \$libdir into a binary during linking. 10797# This must work even if \$libdir does not exist. 10798hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 10799 10800# If ld is used when linking, flag to hardcode \$libdir into 10801# a binary during linking. This must work even if \$libdir does 10802# not exist. 10803hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 10804 10805# Whether we need a single -rpath flag with a separated argument. 10806hardcode_libdir_separator=$lt_hardcode_libdir_separator 10807 10808# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 10809# resulting binary. 10810hardcode_direct=$hardcode_direct 10811 10812# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 10813# resulting binary. 10814hardcode_minus_L=$hardcode_minus_L 10815 10816# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 10817# the resulting binary. 10818hardcode_shlibpath_var=$hardcode_shlibpath_var 10819 10820# Set to yes if building a shared library automatically hardcodes DIR into the library 10821# and all subsequent libraries and executables linked against it. 10822hardcode_automatic=$hardcode_automatic 10823 10824# Variables whose values should be saved in libtool wrapper scripts and 10825# restored at relink time. 10826variables_saved_for_relink="$variables_saved_for_relink" 10827 10828# Whether libtool must link a program against all its dependency libraries. 10829link_all_deplibs=$link_all_deplibs 10830 10831# Compile-time system search path for libraries 10832sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 10833 10834# Run-time system search path for libraries 10835sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 10836 10837# Fix the shell variable \$srcfile for the compiler. 10838fix_srcfile_path="$fix_srcfile_path" 10839 10840# Set to yes if exported symbols are required. 10841always_export_symbols=$always_export_symbols 10842 10843# The commands to list exported symbols. 10844export_symbols_cmds=$lt_export_symbols_cmds 10845 10846# The commands to extract the exported symbol list from a shared archive. 10847extract_expsyms_cmds=$lt_extract_expsyms_cmds 10848 10849# Symbols that should not be listed in the preloaded symbols. 10850exclude_expsyms=$lt_exclude_expsyms 10851 10852# Symbols that must always be exported. 10853include_expsyms=$lt_include_expsyms 10854 10855# ### END LIBTOOL CONFIG 10856 10857__EOF__ 10858 10859 10860 case $host_os in 10861 aix3*) 10862 cat <<\EOF >> "$cfgfile" 10863 10864# AIX sometimes has problems with the GCC collect2 program. For some 10865# reason, if we set the COLLECT_NAMES environment variable, the problems 10866# vanish in a puff of smoke. 10867if test "X${COLLECT_NAMES+set}" != Xset; then 10868 COLLECT_NAMES= 10869 export COLLECT_NAMES 10870fi 10871EOF 10872 ;; 10873 esac 10874 10875 # We use sed instead of cat because bash on DJGPP gets confused if 10876 # if finds mixed CR/LF and LF-only lines. Since sed operates in 10877 # text mode, it properly converts lines to CR/LF. This bash problem 10878 # is reportedly fixed, but why not run on old versions too? 10879 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 10880 10881 mv -f "$cfgfile" "$ofile" || \ 10882 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 10883 chmod +x "$ofile" 10884 10885else 10886 # If there is no Makefile yet, we rely on a make rule to execute 10887 # `config.status --recheck' to rerun these tests and create the 10888 # libtool script then. 10889 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 10890 if test -f "$ltmain_in"; then 10891 test -f Makefile && make "$ltmain" 10892 fi 10893fi 10894 10895 10896ac_ext=c 10897ac_cpp='$CPP $CPPFLAGS' 10898ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10899ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10900ac_compiler_gnu=$ac_cv_c_compiler_gnu 10901 10902CC="$lt_save_CC" 10903 10904 10905# Check whether --with-tags or --without-tags was given. 10906if test "${with_tags+set}" = set; then 10907 withval="$with_tags" 10908 tagnames="$withval" 10909fi; 10910 10911if test -f "$ltmain" && test -n "$tagnames"; then 10912 if test ! -f "${ofile}"; then 10913 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 10914echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 10915 fi 10916 10917 if test -z "$LTCC"; then 10918 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 10919 if test -z "$LTCC"; then 10920 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 10921echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 10922 else 10923 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 10924echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 10925 fi 10926 fi 10927 if test -z "$LTCFLAGS"; then 10928 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 10929 fi 10930 10931 # Extract list of available tagged configurations in $ofile. 10932 # Note that this assumes the entire list is on one line. 10933 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 10934 10935 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10936 for tagname in $tagnames; do 10937 IFS="$lt_save_ifs" 10938 # Check whether tagname contains only valid characters 10939 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 10940 "") ;; 10941 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 10942echo "$as_me: error: invalid tag name: $tagname" >&2;} 10943 { (exit 1); exit 1; }; } 10944 ;; 10945 esac 10946 10947 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 10948 then 10949 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 10950echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 10951 { (exit 1); exit 1; }; } 10952 fi 10953 10954 # Update the list of available tags. 10955 if test -n "$tagname"; then 10956 echo appending configuration tag \"$tagname\" to $ofile 10957 10958 case $tagname in 10959 CXX) 10960 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 10961 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 10962 (test "X$CXX" != "Xg++"))) ; then 10963 ac_ext=cc 10964ac_cpp='$CXXCPP $CPPFLAGS' 10965ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10966ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10967ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10968 10969 10970 10971 10972archive_cmds_need_lc_CXX=no 10973allow_undefined_flag_CXX= 10974always_export_symbols_CXX=no 10975archive_expsym_cmds_CXX= 10976export_dynamic_flag_spec_CXX= 10977hardcode_direct_CXX=no 10978hardcode_libdir_flag_spec_CXX= 10979hardcode_libdir_flag_spec_ld_CXX= 10980hardcode_libdir_separator_CXX= 10981hardcode_minus_L_CXX=no 10982hardcode_shlibpath_var_CXX=unsupported 10983hardcode_automatic_CXX=no 10984module_cmds_CXX= 10985module_expsym_cmds_CXX= 10986link_all_deplibs_CXX=unknown 10987old_archive_cmds_CXX=$old_archive_cmds 10988no_undefined_flag_CXX= 10989whole_archive_flag_spec_CXX= 10990enable_shared_with_static_runtimes_CXX=no 10991 10992# Dependencies to place before and after the object being linked: 10993predep_objects_CXX= 10994postdep_objects_CXX= 10995predeps_CXX= 10996postdeps_CXX= 10997compiler_lib_search_path_CXX= 10998 10999# Source file extension for C++ test sources. 11000ac_ext=cpp 11001 11002# Object file extension for compiled C++ test sources. 11003objext=o 11004objext_CXX=$objext 11005 11006# Code to be used in simple compile tests 11007lt_simple_compile_test_code="int some_variable = 0;\n" 11008 11009# Code to be used in simple link tests 11010lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' 11011 11012# ltmain only uses $CC for tagged configurations so make sure $CC is set. 11013 11014# If no C compiler was specified, use CC. 11015LTCC=${LTCC-"$CC"} 11016 11017# If no C compiler flags were specified, use CFLAGS. 11018LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11019 11020# Allow CC to be a program name with arguments. 11021compiler=$CC 11022 11023 11024# save warnings/boilerplate of simple test code 11025ac_outfile=conftest.$ac_objext 11026printf "$lt_simple_compile_test_code" >conftest.$ac_ext 11027eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11028_lt_compiler_boilerplate=`cat conftest.err` 11029$rm conftest* 11030 11031ac_outfile=conftest.$ac_objext 11032printf "$lt_simple_link_test_code" >conftest.$ac_ext 11033eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11034_lt_linker_boilerplate=`cat conftest.err` 11035$rm conftest* 11036 11037 11038# Allow CC to be a program name with arguments. 11039lt_save_CC=$CC 11040lt_save_LD=$LD 11041lt_save_GCC=$GCC 11042GCC=$GXX 11043lt_save_with_gnu_ld=$with_gnu_ld 11044lt_save_path_LD=$lt_cv_path_LD 11045if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 11046 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 11047else 11048 $as_unset lt_cv_prog_gnu_ld 11049fi 11050if test -n "${lt_cv_path_LDCXX+set}"; then 11051 lt_cv_path_LD=$lt_cv_path_LDCXX 11052else 11053 $as_unset lt_cv_path_LD 11054fi 11055test -z "${LDCXX+set}" || LD=$LDCXX 11056CC=${CXX-"c++"} 11057compiler=$CC 11058compiler_CXX=$CC 11059for cc_temp in $compiler""; do 11060 case $cc_temp in 11061 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11062 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11063 \-*) ;; 11064 *) break;; 11065 esac 11066done 11067cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 11068 11069 11070# We don't want -fno-exception wen compiling C++ code, so set the 11071# no_builtin_flag separately 11072if test "$GXX" = yes; then 11073 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 11074else 11075 lt_prog_compiler_no_builtin_flag_CXX= 11076fi 11077 11078if test "$GXX" = yes; then 11079 # Set up default GNU C++ configuration 11080 11081 11082# Check whether --with-gnu-ld or --without-gnu-ld was given. 11083if test "${with_gnu_ld+set}" = set; then 11084 withval="$with_gnu_ld" 11085 test "$withval" = no || with_gnu_ld=yes 11086else 11087 with_gnu_ld=no 11088fi; 11089ac_prog=ld 11090if test "$GCC" = yes; then 11091 # Check if gcc -print-prog-name=ld gives a path. 11092 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 11093echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 11094 case $host in 11095 *-*-mingw*) 11096 # gcc leaves a trailing carriage return which upsets mingw 11097 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11098 *) 11099 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11100 esac 11101 case $ac_prog in 11102 # Accept absolute paths. 11103 [\\/]* | ?:[\\/]*) 11104 re_direlt='/[^/][^/]*/\.\./' 11105 # Canonicalize the pathname of ld 11106 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 11107 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 11108 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 11109 done 11110 test -z "$LD" && LD="$ac_prog" 11111 ;; 11112 "") 11113 # If it fails, then pretend we aren't using GCC. 11114 ac_prog=ld 11115 ;; 11116 *) 11117 # If it is relative, then search for the first ld in PATH. 11118 with_gnu_ld=unknown 11119 ;; 11120 esac 11121elif test "$with_gnu_ld" = yes; then 11122 echo "$as_me:$LINENO: checking for GNU ld" >&5 11123echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 11124else 11125 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 11126echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 11127fi 11128if test "${lt_cv_path_LD+set}" = set; then 11129 echo $ECHO_N "(cached) $ECHO_C" >&6 11130else 11131 if test -z "$LD"; then 11132 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11133 for ac_dir in $PATH; do 11134 IFS="$lt_save_ifs" 11135 test -z "$ac_dir" && ac_dir=. 11136 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11137 lt_cv_path_LD="$ac_dir/$ac_prog" 11138 # Check to see if the program is GNU ld. I'd rather use --version, 11139 # but apparently some variants of GNU ld only accept -v. 11140 # Break only if it was the GNU/non-GNU ld that we prefer. 11141 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11142 *GNU* | *'with BFD'*) 11143 test "$with_gnu_ld" != no && break 11144 ;; 11145 *) 11146 test "$with_gnu_ld" != yes && break 11147 ;; 11148 esac 11149 fi 11150 done 11151 IFS="$lt_save_ifs" 11152else 11153 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11154fi 11155fi 11156 11157LD="$lt_cv_path_LD" 11158if test -n "$LD"; then 11159 echo "$as_me:$LINENO: result: $LD" >&5 11160echo "${ECHO_T}$LD" >&6 11161else 11162 echo "$as_me:$LINENO: result: no" >&5 11163echo "${ECHO_T}no" >&6 11164fi 11165test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 11166echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 11167 { (exit 1); exit 1; }; } 11168echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 11169echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 11170if test "${lt_cv_prog_gnu_ld+set}" = set; then 11171 echo $ECHO_N "(cached) $ECHO_C" >&6 11172else 11173 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11174case `$LD -v 2>&1 </dev/null` in 11175*GNU* | *'with BFD'*) 11176 lt_cv_prog_gnu_ld=yes 11177 ;; 11178*) 11179 lt_cv_prog_gnu_ld=no 11180 ;; 11181esac 11182fi 11183echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 11184echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 11185with_gnu_ld=$lt_cv_prog_gnu_ld 11186 11187 11188 11189 # Check if GNU C++ uses GNU ld as the underlying linker, since the 11190 # archiving commands below assume that GNU ld is being used. 11191 if test "$with_gnu_ld" = yes; then 11192 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11193 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' 11194 11195 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11196 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11197 11198 # If archive_cmds runs LD, not CC, wlarc should be empty 11199 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 11200 # investigate it a little bit more. (MM) 11201 wlarc='${wl}' 11202 11203 # ancient GNU ld didn't support --whole-archive et. al. 11204 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 11205 grep 'no-whole-archive' > /dev/null; then 11206 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11207 else 11208 whole_archive_flag_spec_CXX= 11209 fi 11210 else 11211 with_gnu_ld=no 11212 wlarc= 11213 11214 # A generic and very simple default shared library creation 11215 # command for GNU C++ for the case where it uses the native 11216 # linker, instead of GNU ld. If possible, this setting should 11217 # overridden to take advantage of the native linker features on 11218 # the platform it is being used on. 11219 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11220 fi 11221 11222 # Commands to make compiler produce verbose output that lists 11223 # what "hidden" libraries, object files and flags are used when 11224 # linking a shared library. 11225 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11226 11227else 11228 GXX=no 11229 with_gnu_ld=no 11230 wlarc= 11231fi 11232 11233# PORTME: fill in a description of your system's C++ link characteristics 11234echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11235echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 11236ld_shlibs_CXX=yes 11237case $host_os in 11238 aix3*) 11239 # FIXME: insert proper C++ library support 11240 ld_shlibs_CXX=no 11241 ;; 11242 aix4* | aix5*) 11243 if test "$host_cpu" = ia64; then 11244 # On IA64, the linker does run time linking by default, so we don't 11245 # have to do anything special. 11246 aix_use_runtimelinking=no 11247 exp_sym_flag='-Bexport' 11248 no_entry_flag="" 11249 else 11250 aix_use_runtimelinking=no 11251 11252 # Test if we are trying to use run time linking or normal 11253 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11254 # need to do runtime linking. 11255 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 11256 for ld_flag in $LDFLAGS; do 11257 case $ld_flag in 11258 *-brtl*) 11259 aix_use_runtimelinking=yes 11260 break 11261 ;; 11262 esac 11263 done 11264 ;; 11265 esac 11266 11267 exp_sym_flag='-bexport' 11268 no_entry_flag='-bnoentry' 11269 fi 11270 11271 # When large executables or shared objects are built, AIX ld can 11272 # have problems creating the table of contents. If linking a library 11273 # or program results in "error TOC overflow" add -mminimal-toc to 11274 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11275 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11276 11277 archive_cmds_CXX='' 11278 hardcode_direct_CXX=yes 11279 hardcode_libdir_separator_CXX=':' 11280 link_all_deplibs_CXX=yes 11281 11282 if test "$GXX" = yes; then 11283 case $host_os in aix4.[012]|aix4.[012].*) 11284 # We only want to do this on AIX 4.2 and lower, the check 11285 # below for broken collect2 doesn't work under 4.3+ 11286 collect2name=`${CC} -print-prog-name=collect2` 11287 if test -f "$collect2name" && \ 11288 strings "$collect2name" | grep resolve_lib_name >/dev/null 11289 then 11290 # We have reworked collect2 11291 hardcode_direct_CXX=yes 11292 else 11293 # We have old collect2 11294 hardcode_direct_CXX=unsupported 11295 # It fails to find uninstalled libraries when the uninstalled 11296 # path is not listed in the libpath. Setting hardcode_minus_L 11297 # to unsupported forces relinking 11298 hardcode_minus_L_CXX=yes 11299 hardcode_libdir_flag_spec_CXX='-L$libdir' 11300 hardcode_libdir_separator_CXX= 11301 fi 11302 ;; 11303 esac 11304 shared_flag='-shared' 11305 if test "$aix_use_runtimelinking" = yes; then 11306 shared_flag="$shared_flag "'${wl}-G' 11307 fi 11308 else 11309 # not using gcc 11310 if test "$host_cpu" = ia64; then 11311 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11312 # chokes on -Wl,-G. The following line is correct: 11313 shared_flag='-G' 11314 else 11315 if test "$aix_use_runtimelinking" = yes; then 11316 shared_flag='${wl}-G' 11317 else 11318 shared_flag='${wl}-bM:SRE' 11319 fi 11320 fi 11321 fi 11322 11323 # It seems that -bexpall does not export symbols beginning with 11324 # underscore (_), so it is better to generate a list of symbols to export. 11325 always_export_symbols_CXX=yes 11326 if test "$aix_use_runtimelinking" = yes; then 11327 # Warning - without using the other runtime loading flags (-brtl), 11328 # -berok will link without error, but may produce a broken library. 11329 allow_undefined_flag_CXX='-berok' 11330 # Determine the default libpath from the value encoded in an empty executable. 11331 cat >conftest.$ac_ext <<_ACEOF 11332/* confdefs.h. */ 11333_ACEOF 11334cat confdefs.h >>conftest.$ac_ext 11335cat >>conftest.$ac_ext <<_ACEOF 11336/* end confdefs.h. */ 11337 11338int 11339main () 11340{ 11341 11342 ; 11343 return 0; 11344} 11345_ACEOF 11346rm -f conftest.$ac_objext conftest$ac_exeext 11347if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11348 (eval $ac_link) 2>conftest.er1 11349 ac_status=$? 11350 grep -v '^ *+' conftest.er1 >conftest.err 11351 rm -f conftest.er1 11352 cat conftest.err >&5 11353 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11354 (exit $ac_status); } && 11355 { ac_try='test -z "$ac_cxx_werror_flag" 11356 || test ! -s conftest.err' 11357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11358 (eval $ac_try) 2>&5 11359 ac_status=$? 11360 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11361 (exit $ac_status); }; } && 11362 { ac_try='test -s conftest$ac_exeext' 11363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11364 (eval $ac_try) 2>&5 11365 ac_status=$? 11366 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11367 (exit $ac_status); }; }; then 11368 11369aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11370}'` 11371# Check for a 64-bit object if we didn't find anything. 11372if 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; } 11373}'`; fi 11374else 11375 echo "$as_me: failed program was:" >&5 11376sed 's/^/| /' conftest.$ac_ext >&5 11377 11378fi 11379rm -f conftest.err conftest.$ac_objext \ 11380 conftest$ac_exeext conftest.$ac_ext 11381if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11382 11383 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11384 11385 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" 11386 else 11387 if test "$host_cpu" = ia64; then 11388 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11389 allow_undefined_flag_CXX="-z nodefs" 11390 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" 11391 else 11392 # Determine the default libpath from the value encoded in an empty executable. 11393 cat >conftest.$ac_ext <<_ACEOF 11394/* confdefs.h. */ 11395_ACEOF 11396cat confdefs.h >>conftest.$ac_ext 11397cat >>conftest.$ac_ext <<_ACEOF 11398/* end confdefs.h. */ 11399 11400int 11401main () 11402{ 11403 11404 ; 11405 return 0; 11406} 11407_ACEOF 11408rm -f conftest.$ac_objext conftest$ac_exeext 11409if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11410 (eval $ac_link) 2>conftest.er1 11411 ac_status=$? 11412 grep -v '^ *+' conftest.er1 >conftest.err 11413 rm -f conftest.er1 11414 cat conftest.err >&5 11415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11416 (exit $ac_status); } && 11417 { ac_try='test -z "$ac_cxx_werror_flag" 11418 || test ! -s conftest.err' 11419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11420 (eval $ac_try) 2>&5 11421 ac_status=$? 11422 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11423 (exit $ac_status); }; } && 11424 { ac_try='test -s conftest$ac_exeext' 11425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11426 (eval $ac_try) 2>&5 11427 ac_status=$? 11428 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11429 (exit $ac_status); }; }; then 11430 11431aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11432}'` 11433# Check for a 64-bit object if we didn't find anything. 11434if 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; } 11435}'`; fi 11436else 11437 echo "$as_me: failed program was:" >&5 11438sed 's/^/| /' conftest.$ac_ext >&5 11439 11440fi 11441rm -f conftest.err conftest.$ac_objext \ 11442 conftest$ac_exeext conftest.$ac_ext 11443if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11444 11445 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11446 # Warning - without using the other run time loading flags, 11447 # -berok will link without error, but may produce a broken library. 11448 no_undefined_flag_CXX=' ${wl}-bernotok' 11449 allow_undefined_flag_CXX=' ${wl}-berok' 11450 # Exported symbols can be pulled into shared objects from archives 11451 whole_archive_flag_spec_CXX='$convenience' 11452 archive_cmds_need_lc_CXX=yes 11453 # This is similar to how AIX traditionally builds its shared libraries. 11454 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' 11455 fi 11456 fi 11457 ;; 11458 11459 beos*) 11460 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11461 allow_undefined_flag_CXX=unsupported 11462 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11463 # support --undefined. This deserves some investigation. FIXME 11464 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11465 else 11466 ld_shlibs_CXX=no 11467 fi 11468 ;; 11469 11470 chorus*) 11471 case $cc_basename in 11472 *) 11473 # FIXME: insert proper C++ library support 11474 ld_shlibs_CXX=no 11475 ;; 11476 esac 11477 ;; 11478 11479 cygwin* | mingw* | pw32*) 11480 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11481 # as there is no search path for DLLs. 11482 hardcode_libdir_flag_spec_CXX='-L$libdir' 11483 allow_undefined_flag_CXX=unsupported 11484 always_export_symbols_CXX=no 11485 enable_shared_with_static_runtimes_CXX=yes 11486 11487 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11488 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' 11489 # If the export-symbols file already is a .def file (1st line 11490 # is EXPORTS), use it as is; otherwise, prepend... 11491 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11492 cp $export_symbols $output_objdir/$soname.def; 11493 else 11494 echo EXPORTS > $output_objdir/$soname.def; 11495 cat $export_symbols >> $output_objdir/$soname.def; 11496 fi~ 11497 $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' 11498 else 11499 ld_shlibs_CXX=no 11500 fi 11501 ;; 11502 darwin* | rhapsody*) 11503 case $host_os in 11504 rhapsody* | darwin1.[012]) 11505 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 11506 ;; 11507 *) # Darwin 1.3 on 11508 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 11509 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11510 else 11511 case ${MACOSX_DEPLOYMENT_TARGET} in 11512 10.[012]) 11513 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11514 ;; 11515 10.*) 11516 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 11517 ;; 11518 esac 11519 fi 11520 ;; 11521 esac 11522 archive_cmds_need_lc_CXX=no 11523 hardcode_direct_CXX=no 11524 hardcode_automatic_CXX=yes 11525 hardcode_shlibpath_var_CXX=unsupported 11526 whole_archive_flag_spec_CXX='' 11527 link_all_deplibs_CXX=yes 11528 11529 if test "$GXX" = yes ; then 11530 lt_int_apple_cc_single_mod=no 11531 output_verbose_link_cmd='echo' 11532 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 11533 lt_int_apple_cc_single_mod=yes 11534 fi 11535 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11536 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 11537 else 11538 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' 11539 fi 11540 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11541 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11542 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11543 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}' 11544 else 11545 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}' 11546 fi 11547 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}' 11548 else 11549 case $cc_basename in 11550 xlc*) 11551 output_verbose_link_cmd='echo' 11552 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' 11553 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11554 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11555 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}' 11556 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}' 11557 ;; 11558 *) 11559 ld_shlibs_CXX=no 11560 ;; 11561 esac 11562 fi 11563 ;; 11564 11565 dgux*) 11566 case $cc_basename in 11567 ec++*) 11568 # FIXME: insert proper C++ library support 11569 ld_shlibs_CXX=no 11570 ;; 11571 ghcx*) 11572 # Green Hills C++ Compiler 11573 # FIXME: insert proper C++ library support 11574 ld_shlibs_CXX=no 11575 ;; 11576 *) 11577 # FIXME: insert proper C++ library support 11578 ld_shlibs_CXX=no 11579 ;; 11580 esac 11581 ;; 11582 freebsd[12]*) 11583 # C++ shared libraries reported to be fairly broken before switch to ELF 11584 ld_shlibs_CXX=no 11585 ;; 11586 freebsd-elf*) 11587 archive_cmds_need_lc_CXX=no 11588 ;; 11589 freebsd* | kfreebsd*-gnu | dragonfly*) 11590 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11591 # conventions 11592 ld_shlibs_CXX=yes 11593 ;; 11594 gnu*) 11595 ;; 11596 hpux9*) 11597 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11598 hardcode_libdir_separator_CXX=: 11599 export_dynamic_flag_spec_CXX='${wl}-E' 11600 hardcode_direct_CXX=yes 11601 hardcode_minus_L_CXX=yes # Not in the search PATH, 11602 # but as the default 11603 # location of the library. 11604 11605 case $cc_basename in 11606 CC*) 11607 # FIXME: insert proper C++ library support 11608 ld_shlibs_CXX=no 11609 ;; 11610 aCC*) 11611 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' 11612 # Commands to make compiler produce verbose output that lists 11613 # what "hidden" libraries, object files and flags are used when 11614 # linking a shared library. 11615 # 11616 # There doesn't appear to be a way to prevent this compiler from 11617 # explicitly linking system object files so we need to strip them 11618 # from the output so that they don't get included in the library 11619 # dependencies. 11620 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' 11621 ;; 11622 *) 11623 if test "$GXX" = yes; then 11624 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' 11625 else 11626 # FIXME: insert proper C++ library support 11627 ld_shlibs_CXX=no 11628 fi 11629 ;; 11630 esac 11631 ;; 11632 hpux10*|hpux11*) 11633 if test $with_gnu_ld = no; then 11634 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11635 hardcode_libdir_separator_CXX=: 11636 11637 case $host_cpu in 11638 hppa*64*|ia64*) 11639 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 11640 ;; 11641 *) 11642 export_dynamic_flag_spec_CXX='${wl}-E' 11643 ;; 11644 esac 11645 fi 11646 case $host_cpu in 11647 hppa*64*|ia64*) 11648 hardcode_direct_CXX=no 11649 hardcode_shlibpath_var_CXX=no 11650 ;; 11651 *) 11652 hardcode_direct_CXX=yes 11653 hardcode_minus_L_CXX=yes # Not in the search PATH, 11654 # but as the default 11655 # location of the library. 11656 ;; 11657 esac 11658 11659 case $cc_basename in 11660 CC*) 11661 # FIXME: insert proper C++ library support 11662 ld_shlibs_CXX=no 11663 ;; 11664 aCC*) 11665 case $host_cpu in 11666 hppa*64*) 11667 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11668 ;; 11669 ia64*) 11670 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11671 ;; 11672 *) 11673 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11674 ;; 11675 esac 11676 # Commands to make compiler produce verbose output that lists 11677 # what "hidden" libraries, object files and flags are used when 11678 # linking a shared library. 11679 # 11680 # There doesn't appear to be a way to prevent this compiler from 11681 # explicitly linking system object files so we need to strip them 11682 # from the output so that they don't get included in the library 11683 # dependencies. 11684 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' 11685 ;; 11686 *) 11687 if test "$GXX" = yes; then 11688 if test $with_gnu_ld = no; then 11689 case $host_cpu in 11690 hppa*64*) 11691 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11692 ;; 11693 ia64*) 11694 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11695 ;; 11696 *) 11697 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' 11698 ;; 11699 esac 11700 fi 11701 else 11702 # FIXME: insert proper C++ library support 11703 ld_shlibs_CXX=no 11704 fi 11705 ;; 11706 esac 11707 ;; 11708 interix3*) 11709 hardcode_direct_CXX=no 11710 hardcode_shlibpath_var_CXX=no 11711 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11712 export_dynamic_flag_spec_CXX='${wl}-E' 11713 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11714 # Instead, shared libraries are loaded at an image base (0x10000000 by 11715 # default) and relocated if they conflict, which is a slow very memory 11716 # consuming and fragmenting process. To avoid this, we pick a random, 11717 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11718 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11719 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' 11720 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' 11721 ;; 11722 irix5* | irix6*) 11723 case $cc_basename in 11724 CC*) 11725 # SGI C++ 11726 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' 11727 11728 # Archives containing C++ object files must be created using 11729 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 11730 # necessary to make sure instantiated templates are included 11731 # in the archive. 11732 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 11733 ;; 11734 *) 11735 if test "$GXX" = yes; then 11736 if test "$with_gnu_ld" = no; then 11737 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' 11738 else 11739 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' 11740 fi 11741 fi 11742 link_all_deplibs_CXX=yes 11743 ;; 11744 esac 11745 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11746 hardcode_libdir_separator_CXX=: 11747 ;; 11748 linux*) 11749 case $cc_basename in 11750 KCC*) 11751 # Kuck and Associates, Inc. (KAI) C++ Compiler 11752 11753 # KCC will only create a shared library if the output file 11754 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11755 # to its proper name (with version) after linking. 11756 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' 11757 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' 11758 # Commands to make compiler produce verbose output that lists 11759 # what "hidden" libraries, object files and flags are used when 11760 # linking a shared library. 11761 # 11762 # There doesn't appear to be a way to prevent this compiler from 11763 # explicitly linking system object files so we need to strip them 11764 # from the output so that they don't get included in the library 11765 # dependencies. 11766 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' 11767 11768 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 11769 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11770 11771 # Archives containing C++ object files must be created using 11772 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11773 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11774 ;; 11775 icpc*) 11776 # Intel C++ 11777 with_gnu_ld=yes 11778 # version 8.0 and above of icpc choke on multiply defined symbols 11779 # if we add $predep_objects and $postdep_objects, however 7.1 and 11780 # earlier do not add the objects themselves. 11781 case `$CC -V 2>&1` in 11782 *"Version 7."*) 11783 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11784 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' 11785 ;; 11786 *) # Version 8.0 or newer 11787 tmp_idyn= 11788 case $host_cpu in 11789 ia64*) tmp_idyn=' -i_dynamic';; 11790 esac 11791 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11792 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' 11793 ;; 11794 esac 11795 archive_cmds_need_lc_CXX=no 11796 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11797 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11798 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11799 ;; 11800 pgCC*) 11801 # Portland Group C++ compiler 11802 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 11803 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' 11804 11805 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11806 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11807 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' 11808 ;; 11809 cxx*) 11810 # Compaq C++ 11811 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11812 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' 11813 11814 runpath_var=LD_RUN_PATH 11815 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11816 hardcode_libdir_separator_CXX=: 11817 11818 # Commands to make compiler produce verbose output that lists 11819 # what "hidden" libraries, object files and flags are used when 11820 # linking a shared library. 11821 # 11822 # There doesn't appear to be a way to prevent this compiler from 11823 # explicitly linking system object files so we need to strip them 11824 # from the output so that they don't get included in the library 11825 # dependencies. 11826 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' 11827 ;; 11828 esac 11829 ;; 11830 lynxos*) 11831 # FIXME: insert proper C++ library support 11832 ld_shlibs_CXX=no 11833 ;; 11834 m88k*) 11835 # FIXME: insert proper C++ library support 11836 ld_shlibs_CXX=no 11837 ;; 11838 mvs*) 11839 case $cc_basename in 11840 cxx*) 11841 # FIXME: insert proper C++ library support 11842 ld_shlibs_CXX=no 11843 ;; 11844 *) 11845 # FIXME: insert proper C++ library support 11846 ld_shlibs_CXX=no 11847 ;; 11848 esac 11849 ;; 11850 netbsd*) 11851 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11852 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 11853 wlarc= 11854 hardcode_libdir_flag_spec_CXX='-R$libdir' 11855 hardcode_direct_CXX=yes 11856 hardcode_shlibpath_var_CXX=no 11857 fi 11858 # Workaround some broken pre-1.5 toolchains 11859 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 11860 ;; 11861 openbsd2*) 11862 # C++ shared libraries are fairly broken 11863 ld_shlibs_CXX=no 11864 ;; 11865 openbsd*) 11866 hardcode_direct_CXX=yes 11867 hardcode_shlibpath_var_CXX=no 11868 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11869 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11870 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11871 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 11872 export_dynamic_flag_spec_CXX='${wl}-E' 11873 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11874 fi 11875 output_verbose_link_cmd='echo' 11876 ;; 11877 osf3*) 11878 case $cc_basename in 11879 KCC*) 11880 # Kuck and Associates, Inc. (KAI) C++ Compiler 11881 11882 # KCC will only create a shared library if the output file 11883 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11884 # to its proper name (with version) after linking. 11885 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' 11886 11887 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11888 hardcode_libdir_separator_CXX=: 11889 11890 # Archives containing C++ object files must be created using 11891 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11892 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11893 11894 ;; 11895 RCC*) 11896 # Rational C++ 2.4.1 11897 # FIXME: insert proper C++ library support 11898 ld_shlibs_CXX=no 11899 ;; 11900 cxx*) 11901 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11902 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' 11903 11904 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11905 hardcode_libdir_separator_CXX=: 11906 11907 # Commands to make compiler produce verbose output that lists 11908 # what "hidden" libraries, object files and flags are used when 11909 # linking a shared library. 11910 # 11911 # There doesn't appear to be a way to prevent this compiler from 11912 # explicitly linking system object files so we need to strip them 11913 # from the output so that they don't get included in the library 11914 # dependencies. 11915 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' 11916 ;; 11917 *) 11918 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11919 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11920 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' 11921 11922 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11923 hardcode_libdir_separator_CXX=: 11924 11925 # Commands to make compiler produce verbose output that lists 11926 # what "hidden" libraries, object files and flags are used when 11927 # linking a shared library. 11928 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11929 11930 else 11931 # FIXME: insert proper C++ library support 11932 ld_shlibs_CXX=no 11933 fi 11934 ;; 11935 esac 11936 ;; 11937 osf4* | osf5*) 11938 case $cc_basename in 11939 KCC*) 11940 # Kuck and Associates, Inc. (KAI) C++ Compiler 11941 11942 # KCC will only create a shared library if the output file 11943 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11944 # to its proper name (with version) after linking. 11945 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' 11946 11947 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11948 hardcode_libdir_separator_CXX=: 11949 11950 # Archives containing C++ object files must be created using 11951 # the KAI C++ compiler. 11952 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 11953 ;; 11954 RCC*) 11955 # Rational C++ 2.4.1 11956 # FIXME: insert proper C++ library support 11957 ld_shlibs_CXX=no 11958 ;; 11959 cxx*) 11960 allow_undefined_flag_CXX=' -expect_unresolved \*' 11961 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' 11962 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 11963 echo "-hidden">> $lib.exp~ 11964 $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~ 11965 $rm $lib.exp' 11966 11967 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11968 hardcode_libdir_separator_CXX=: 11969 11970 # Commands to make compiler produce verbose output that lists 11971 # what "hidden" libraries, object files and flags are used when 11972 # linking a shared library. 11973 # 11974 # There doesn't appear to be a way to prevent this compiler from 11975 # explicitly linking system object files so we need to strip them 11976 # from the output so that they don't get included in the library 11977 # dependencies. 11978 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' 11979 ;; 11980 *) 11981 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11982 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11983 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' 11984 11985 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11986 hardcode_libdir_separator_CXX=: 11987 11988 # Commands to make compiler produce verbose output that lists 11989 # what "hidden" libraries, object files and flags are used when 11990 # linking a shared library. 11991 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11992 11993 else 11994 # FIXME: insert proper C++ library support 11995 ld_shlibs_CXX=no 11996 fi 11997 ;; 11998 esac 11999 ;; 12000 psos*) 12001 # FIXME: insert proper C++ library support 12002 ld_shlibs_CXX=no 12003 ;; 12004 sunos4*) 12005 case $cc_basename in 12006 CC*) 12007 # Sun C++ 4.x 12008 # FIXME: insert proper C++ library support 12009 ld_shlibs_CXX=no 12010 ;; 12011 lcc*) 12012 # Lucid 12013 # FIXME: insert proper C++ library support 12014 ld_shlibs_CXX=no 12015 ;; 12016 *) 12017 # FIXME: insert proper C++ library support 12018 ld_shlibs_CXX=no 12019 ;; 12020 esac 12021 ;; 12022 solaris*) 12023 case $cc_basename in 12024 CC*) 12025 # Sun C++ 4.2, 5.x and Centerline C++ 12026 archive_cmds_need_lc_CXX=yes 12027 no_undefined_flag_CXX=' -zdefs' 12028 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12029 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12030 $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' 12031 12032 hardcode_libdir_flag_spec_CXX='-R$libdir' 12033 hardcode_shlibpath_var_CXX=no 12034 case $host_os in 12035 solaris2.[0-5] | solaris2.[0-5].*) ;; 12036 *) 12037 # The C++ compiler is used as linker so we must use $wl 12038 # flag to pass the commands to the underlying system 12039 # linker. We must also pass each convience library through 12040 # to the system linker between allextract/defaultextract. 12041 # The C++ compiler will combine linker options so we 12042 # cannot just pass the convience library names through 12043 # without $wl. 12044 # Supported since Solaris 2.6 (maybe 2.5.1?) 12045 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' 12046 ;; 12047 esac 12048 link_all_deplibs_CXX=yes 12049 12050 output_verbose_link_cmd='echo' 12051 12052 # Archives containing C++ object files must be created using 12053 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12054 # necessary to make sure instantiated templates are included 12055 # in the archive. 12056 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12057 ;; 12058 gcx*) 12059 # Green Hills C++ Compiler 12060 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12061 12062 # The C++ compiler must be used to create the archive. 12063 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 12064 ;; 12065 *) 12066 # GNU C++ compiler with Solaris linker 12067 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12068 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 12069 if $CC --version | grep -v '^2\.7' > /dev/null; then 12070 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12071 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12072 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12073 12074 # Commands to make compiler produce verbose output that lists 12075 # what "hidden" libraries, object files and flags are used when 12076 # linking a shared library. 12077 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12078 else 12079 # g++ 2.7 appears to require `-G' NOT `-shared' on this 12080 # platform. 12081 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12082 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12083 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12084 12085 # Commands to make compiler produce verbose output that lists 12086 # what "hidden" libraries, object files and flags are used when 12087 # linking a shared library. 12088 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12089 fi 12090 12091 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 12092 fi 12093 ;; 12094 esac 12095 ;; 12096 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12097 no_undefined_flag_CXX='${wl}-z,text' 12098 archive_cmds_need_lc_CXX=no 12099 hardcode_shlibpath_var_CXX=no 12100 runpath_var='LD_RUN_PATH' 12101 12102 case $cc_basename in 12103 CC*) 12104 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12105 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12106 ;; 12107 *) 12108 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12109 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12110 ;; 12111 esac 12112 ;; 12113 sysv5* | sco3.2v5* | sco5v6*) 12114 # Note: We can NOT use -z defs as we might desire, because we do not 12115 # link with -lc, and that would cause any symbols used from libc to 12116 # always be unresolved, which means just about no library would 12117 # ever link correctly. If we're not using GNU ld we use -z text 12118 # though, which does catch some bad symbols but isn't as heavy-handed 12119 # as -z defs. 12120 # For security reasons, it is highly recommended that you always 12121 # use absolute paths for naming shared libraries, and exclude the 12122 # DT_RUNPATH tag from executables and libraries. But doing so 12123 # requires that you compile everything twice, which is a pain. 12124 # So that behaviour is only enabled if SCOABSPATH is set to a 12125 # non-empty value in the environment. Most likely only useful for 12126 # creating official distributions of packages. 12127 # This is a hack until libtool officially supports absolute path 12128 # names for shared libraries. 12129 no_undefined_flag_CXX='${wl}-z,text' 12130 allow_undefined_flag_CXX='${wl}-z,nodefs' 12131 archive_cmds_need_lc_CXX=no 12132 hardcode_shlibpath_var_CXX=no 12133 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 12134 hardcode_libdir_separator_CXX=':' 12135 link_all_deplibs_CXX=yes 12136 export_dynamic_flag_spec_CXX='${wl}-Bexport' 12137 runpath_var='LD_RUN_PATH' 12138 12139 case $cc_basename in 12140 CC*) 12141 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12142 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12143 ;; 12144 *) 12145 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12146 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12147 ;; 12148 esac 12149 ;; 12150 tandem*) 12151 case $cc_basename in 12152 NCC*) 12153 # NonStop-UX NCC 3.20 12154 # FIXME: insert proper C++ library support 12155 ld_shlibs_CXX=no 12156 ;; 12157 *) 12158 # FIXME: insert proper C++ library support 12159 ld_shlibs_CXX=no 12160 ;; 12161 esac 12162 ;; 12163 vxworks*) 12164 # FIXME: insert proper C++ library support 12165 ld_shlibs_CXX=no 12166 ;; 12167 *) 12168 # FIXME: insert proper C++ library support 12169 ld_shlibs_CXX=no 12170 ;; 12171esac 12172echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12173echo "${ECHO_T}$ld_shlibs_CXX" >&6 12174test "$ld_shlibs_CXX" = no && can_build_shared=no 12175 12176GCC_CXX="$GXX" 12177LD_CXX="$LD" 12178 12179## CAVEAT EMPTOR: 12180## There is no encapsulation within the following macros, do not change 12181## the running order or otherwise move them around unless you know exactly 12182## what you are doing... 12183 12184cat > conftest.$ac_ext <<EOF 12185class Foo 12186{ 12187public: 12188 Foo (void) { a = 0; } 12189private: 12190 int a; 12191}; 12192EOF 12193 12194if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12195 (eval $ac_compile) 2>&5 12196 ac_status=$? 12197 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12198 (exit $ac_status); }; then 12199 # Parse the compiler output and extract the necessary 12200 # objects, libraries and library flags. 12201 12202 # Sentinel used to keep track of whether or not we are before 12203 # the conftest object file. 12204 pre_test_object_deps_done=no 12205 12206 # The `*' in the case matches for architectures that use `case' in 12207 # $output_verbose_cmd can trigger glob expansion during the loop 12208 # eval without this substitution. 12209 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 12210 12211 for p in `eval $output_verbose_link_cmd`; do 12212 case $p in 12213 12214 -L* | -R* | -l*) 12215 # Some compilers place space between "-{L,R}" and the path. 12216 # Remove the space. 12217 if test $p = "-L" \ 12218 || test $p = "-R"; then 12219 prev=$p 12220 continue 12221 else 12222 prev= 12223 fi 12224 12225 if test "$pre_test_object_deps_done" = no; then 12226 case $p in 12227 -L* | -R*) 12228 # Internal compiler library paths should come after those 12229 # provided the user. The postdeps already come after the 12230 # user supplied libs so there is no need to process them. 12231 if test -z "$compiler_lib_search_path_CXX"; then 12232 compiler_lib_search_path_CXX="${prev}${p}" 12233 else 12234 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 12235 fi 12236 ;; 12237 # The "-l" case would never come before the object being 12238 # linked, so don't bother handling this case. 12239 esac 12240 else 12241 if test -z "$postdeps_CXX"; then 12242 postdeps_CXX="${prev}${p}" 12243 else 12244 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 12245 fi 12246 fi 12247 ;; 12248 12249 *.$objext) 12250 # This assumes that the test object file only shows up 12251 # once in the compiler output. 12252 if test "$p" = "conftest.$objext"; then 12253 pre_test_object_deps_done=yes 12254 continue 12255 fi 12256 12257 if test "$pre_test_object_deps_done" = no; then 12258 if test -z "$predep_objects_CXX"; then 12259 predep_objects_CXX="$p" 12260 else 12261 predep_objects_CXX="$predep_objects_CXX $p" 12262 fi 12263 else 12264 if test -z "$postdep_objects_CXX"; then 12265 postdep_objects_CXX="$p" 12266 else 12267 postdep_objects_CXX="$postdep_objects_CXX $p" 12268 fi 12269 fi 12270 ;; 12271 12272 *) ;; # Ignore the rest. 12273 12274 esac 12275 done 12276 12277 # Clean up. 12278 rm -f a.out a.exe 12279else 12280 echo "libtool.m4: error: problem compiling CXX test program" 12281fi 12282 12283$rm -f confest.$objext 12284 12285# PORTME: override above test on systems where it is broken 12286case $host_os in 12287interix3*) 12288 # Interix 3.5 installs completely hosed .la files for C++, so rather than 12289 # hack all around it, let's just trust "g++" to DTRT. 12290 predep_objects_CXX= 12291 postdep_objects_CXX= 12292 postdeps_CXX= 12293 ;; 12294 12295solaris*) 12296 case $cc_basename in 12297 CC*) 12298 # Adding this requires a known-good setup of shared libraries for 12299 # Sun compiler versions before 5.6, else PIC objects from an old 12300 # archive will be linked into the output, leading to subtle bugs. 12301 postdeps_CXX='-lCstd -lCrun' 12302 ;; 12303 esac 12304 ;; 12305esac 12306 12307 12308case " $postdeps_CXX " in 12309*" -lc "*) archive_cmds_need_lc_CXX=no ;; 12310esac 12311 12312lt_prog_compiler_wl_CXX= 12313lt_prog_compiler_pic_CXX= 12314lt_prog_compiler_static_CXX= 12315 12316echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 12317echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 12318 12319 # C++ specific cases for pic, static, wl, etc. 12320 if test "$GXX" = yes; then 12321 lt_prog_compiler_wl_CXX='-Wl,' 12322 lt_prog_compiler_static_CXX='-static' 12323 12324 case $host_os in 12325 aix*) 12326 # All AIX code is PIC. 12327 if test "$host_cpu" = ia64; then 12328 # AIX 5 now supports IA64 processor 12329 lt_prog_compiler_static_CXX='-Bstatic' 12330 fi 12331 ;; 12332 amigaos*) 12333 # FIXME: we need at least 68020 code to build shared libraries, but 12334 # adding the `-m68020' flag to GCC prevents building anything better, 12335 # like `-m68040'. 12336 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 12337 ;; 12338 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12339 # PIC is the default for these OSes. 12340 ;; 12341 mingw* | os2* | pw32*) 12342 # This hack is so that the source file can tell whether it is being 12343 # built for inclusion in a dll (and should export symbols for example). 12344 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 12345 ;; 12346 darwin* | rhapsody*) 12347 # PIC is the default on this platform 12348 # Common symbols not allowed in MH_DYLIB files 12349 lt_prog_compiler_pic_CXX='-fno-common' 12350 ;; 12351 *djgpp*) 12352 # DJGPP does not support shared libraries at all 12353 lt_prog_compiler_pic_CXX= 12354 ;; 12355 interix3*) 12356 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12357 # Instead, we relocate shared libraries at runtime. 12358 ;; 12359 sysv4*MP*) 12360 if test -d /usr/nec; then 12361 lt_prog_compiler_pic_CXX=-Kconform_pic 12362 fi 12363 ;; 12364 hpux*) 12365 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12366 # not for PA HP-UX. 12367 case $host_cpu in 12368 hppa*64*|ia64*) 12369 ;; 12370 *) 12371 lt_prog_compiler_pic_CXX='-fPIC' 12372 ;; 12373 esac 12374 ;; 12375 *) 12376 lt_prog_compiler_pic_CXX='-fPIC' 12377 ;; 12378 esac 12379 else 12380 case $host_os in 12381 aix4* | aix5*) 12382 # All AIX code is PIC. 12383 if test "$host_cpu" = ia64; then 12384 # AIX 5 now supports IA64 processor 12385 lt_prog_compiler_static_CXX='-Bstatic' 12386 else 12387 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 12388 fi 12389 ;; 12390 chorus*) 12391 case $cc_basename in 12392 cxch68*) 12393 # Green Hills C++ Compiler 12394 # _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" 12395 ;; 12396 esac 12397 ;; 12398 darwin*) 12399 # PIC is the default on this platform 12400 # Common symbols not allowed in MH_DYLIB files 12401 case $cc_basename in 12402 xlc*) 12403 lt_prog_compiler_pic_CXX='-qnocommon' 12404 lt_prog_compiler_wl_CXX='-Wl,' 12405 ;; 12406 esac 12407 ;; 12408 dgux*) 12409 case $cc_basename in 12410 ec++*) 12411 lt_prog_compiler_pic_CXX='-KPIC' 12412 ;; 12413 ghcx*) 12414 # Green Hills C++ Compiler 12415 lt_prog_compiler_pic_CXX='-pic' 12416 ;; 12417 *) 12418 ;; 12419 esac 12420 ;; 12421 freebsd* | kfreebsd*-gnu | dragonfly*) 12422 # FreeBSD uses GNU C++ 12423 ;; 12424 hpux9* | hpux10* | hpux11*) 12425 case $cc_basename in 12426 CC*) 12427 lt_prog_compiler_wl_CXX='-Wl,' 12428 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12429 if test "$host_cpu" != ia64; then 12430 lt_prog_compiler_pic_CXX='+Z' 12431 fi 12432 ;; 12433 aCC*) 12434 lt_prog_compiler_wl_CXX='-Wl,' 12435 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12436 case $host_cpu in 12437 hppa*64*|ia64*) 12438 # +Z the default 12439 ;; 12440 *) 12441 lt_prog_compiler_pic_CXX='+Z' 12442 ;; 12443 esac 12444 ;; 12445 *) 12446 ;; 12447 esac 12448 ;; 12449 interix*) 12450 # This is c89, which is MS Visual C++ (no shared libs) 12451 # Anyone wants to do a port? 12452 ;; 12453 irix5* | irix6* | nonstopux*) 12454 case $cc_basename in 12455 CC*) 12456 lt_prog_compiler_wl_CXX='-Wl,' 12457 lt_prog_compiler_static_CXX='-non_shared' 12458 # CC pic flag -KPIC is the default. 12459 ;; 12460 *) 12461 ;; 12462 esac 12463 ;; 12464 linux*) 12465 case $cc_basename in 12466 KCC*) 12467 # KAI C++ Compiler 12468 lt_prog_compiler_wl_CXX='--backend -Wl,' 12469 lt_prog_compiler_pic_CXX='-fPIC' 12470 ;; 12471 icpc* | ecpc*) 12472 # Intel C++ 12473 lt_prog_compiler_wl_CXX='-Wl,' 12474 lt_prog_compiler_pic_CXX='-KPIC' 12475 lt_prog_compiler_static_CXX='-static' 12476 ;; 12477 pgCC*) 12478 # Portland Group C++ compiler. 12479 lt_prog_compiler_wl_CXX='-Wl,' 12480 lt_prog_compiler_pic_CXX='-fpic' 12481 lt_prog_compiler_static_CXX='-Bstatic' 12482 ;; 12483 cxx*) 12484 # Compaq C++ 12485 # Make sure the PIC flag is empty. It appears that all Alpha 12486 # Linux and Compaq Tru64 Unix objects are PIC. 12487 lt_prog_compiler_pic_CXX= 12488 lt_prog_compiler_static_CXX='-non_shared' 12489 ;; 12490 *) 12491 ;; 12492 esac 12493 ;; 12494 lynxos*) 12495 ;; 12496 m88k*) 12497 ;; 12498 mvs*) 12499 case $cc_basename in 12500 cxx*) 12501 lt_prog_compiler_pic_CXX='-W c,exportall' 12502 ;; 12503 *) 12504 ;; 12505 esac 12506 ;; 12507 netbsd*) 12508 ;; 12509 osf3* | osf4* | osf5*) 12510 case $cc_basename in 12511 KCC*) 12512 lt_prog_compiler_wl_CXX='--backend -Wl,' 12513 ;; 12514 RCC*) 12515 # Rational C++ 2.4.1 12516 lt_prog_compiler_pic_CXX='-pic' 12517 ;; 12518 cxx*) 12519 # Digital/Compaq C++ 12520 lt_prog_compiler_wl_CXX='-Wl,' 12521 # Make sure the PIC flag is empty. It appears that all Alpha 12522 # Linux and Compaq Tru64 Unix objects are PIC. 12523 lt_prog_compiler_pic_CXX= 12524 lt_prog_compiler_static_CXX='-non_shared' 12525 ;; 12526 *) 12527 ;; 12528 esac 12529 ;; 12530 psos*) 12531 ;; 12532 solaris*) 12533 case $cc_basename in 12534 CC*) 12535 # Sun C++ 4.2, 5.x and Centerline C++ 12536 lt_prog_compiler_pic_CXX='-KPIC' 12537 lt_prog_compiler_static_CXX='-Bstatic' 12538 lt_prog_compiler_wl_CXX='-Qoption ld ' 12539 ;; 12540 gcx*) 12541 # Green Hills C++ Compiler 12542 lt_prog_compiler_pic_CXX='-PIC' 12543 ;; 12544 *) 12545 ;; 12546 esac 12547 ;; 12548 sunos4*) 12549 case $cc_basename in 12550 CC*) 12551 # Sun C++ 4.x 12552 lt_prog_compiler_pic_CXX='-pic' 12553 lt_prog_compiler_static_CXX='-Bstatic' 12554 ;; 12555 lcc*) 12556 # Lucid 12557 lt_prog_compiler_pic_CXX='-pic' 12558 ;; 12559 *) 12560 ;; 12561 esac 12562 ;; 12563 tandem*) 12564 case $cc_basename in 12565 NCC*) 12566 # NonStop-UX NCC 3.20 12567 lt_prog_compiler_pic_CXX='-KPIC' 12568 ;; 12569 *) 12570 ;; 12571 esac 12572 ;; 12573 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12574 case $cc_basename in 12575 CC*) 12576 lt_prog_compiler_wl_CXX='-Wl,' 12577 lt_prog_compiler_pic_CXX='-KPIC' 12578 lt_prog_compiler_static_CXX='-Bstatic' 12579 ;; 12580 esac 12581 ;; 12582 vxworks*) 12583 ;; 12584 *) 12585 lt_prog_compiler_can_build_shared_CXX=no 12586 ;; 12587 esac 12588 fi 12589 12590echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 12591echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 12592 12593# 12594# Check to make sure the PIC flag actually works. 12595# 12596if test -n "$lt_prog_compiler_pic_CXX"; then 12597 12598echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12599echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 12600if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 12601 echo $ECHO_N "(cached) $ECHO_C" >&6 12602else 12603 lt_prog_compiler_pic_works_CXX=no 12604 ac_outfile=conftest.$ac_objext 12605 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12606 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12607 # Insert the option either (1) after the last *FLAGS variable, or 12608 # (2) before a word containing "conftest.", or (3) at the end. 12609 # Note that $ac_compile itself does not contain backslashes and begins 12610 # with a dollar sign (not a hyphen), so the echo should work correctly. 12611 # The option is referenced via a variable to avoid confusing sed. 12612 lt_compile=`echo "$ac_compile" | $SED \ 12613 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12614 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12615 -e 's:$: $lt_compiler_flag:'` 12616 (eval echo "\"\$as_me:12616: $lt_compile\"" >&5) 12617 (eval "$lt_compile" 2>conftest.err) 12618 ac_status=$? 12619 cat conftest.err >&5 12620 echo "$as_me:12620: \$? = $ac_status" >&5 12621 if (exit $ac_status) && test -s "$ac_outfile"; then 12622 # The compiler can only warn and ignore the option if not recognized 12623 # So say no if there are warnings other than the usual output. 12624 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12625 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12626 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12627 lt_prog_compiler_pic_works_CXX=yes 12628 fi 12629 fi 12630 $rm conftest* 12631 12632fi 12633echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 12634echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 12635 12636if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 12637 case $lt_prog_compiler_pic_CXX in 12638 "" | " "*) ;; 12639 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 12640 esac 12641else 12642 lt_prog_compiler_pic_CXX= 12643 lt_prog_compiler_can_build_shared_CXX=no 12644fi 12645 12646fi 12647case $host_os in 12648 # For platforms which do not support PIC, -DPIC is meaningless: 12649 *djgpp*) 12650 lt_prog_compiler_pic_CXX= 12651 ;; 12652 *) 12653 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 12654 ;; 12655esac 12656 12657# 12658# Check to make sure the static flag actually works. 12659# 12660wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 12661echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12662echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 12663if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 12664 echo $ECHO_N "(cached) $ECHO_C" >&6 12665else 12666 lt_prog_compiler_static_works_CXX=no 12667 save_LDFLAGS="$LDFLAGS" 12668 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12669 printf "$lt_simple_link_test_code" > conftest.$ac_ext 12670 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12671 # The linker can only warn and ignore the option if not recognized 12672 # So say no if there are warnings 12673 if test -s conftest.err; then 12674 # Append any errors to the config.log. 12675 cat conftest.err 1>&5 12676 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 12677 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12678 if diff conftest.exp conftest.er2 >/dev/null; then 12679 lt_prog_compiler_static_works_CXX=yes 12680 fi 12681 else 12682 lt_prog_compiler_static_works_CXX=yes 12683 fi 12684 fi 12685 $rm conftest* 12686 LDFLAGS="$save_LDFLAGS" 12687 12688fi 12689echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 12690echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6 12691 12692if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 12693 : 12694else 12695 lt_prog_compiler_static_CXX= 12696fi 12697 12698 12699echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12700echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 12701if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 12702 echo $ECHO_N "(cached) $ECHO_C" >&6 12703else 12704 lt_cv_prog_compiler_c_o_CXX=no 12705 $rm -r conftest 2>/dev/null 12706 mkdir conftest 12707 cd conftest 12708 mkdir out 12709 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12710 12711 lt_compiler_flag="-o out/conftest2.$ac_objext" 12712 # Insert the option either (1) after the last *FLAGS variable, or 12713 # (2) before a word containing "conftest.", or (3) at the end. 12714 # Note that $ac_compile itself does not contain backslashes and begins 12715 # with a dollar sign (not a hyphen), so the echo should work correctly. 12716 lt_compile=`echo "$ac_compile" | $SED \ 12717 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12718 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12719 -e 's:$: $lt_compiler_flag:'` 12720 (eval echo "\"\$as_me:12720: $lt_compile\"" >&5) 12721 (eval "$lt_compile" 2>out/conftest.err) 12722 ac_status=$? 12723 cat out/conftest.err >&5 12724 echo "$as_me:12724: \$? = $ac_status" >&5 12725 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12726 then 12727 # The compiler can only warn and ignore the option if not recognized 12728 # So say no if there are warnings 12729 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 12730 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12731 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12732 lt_cv_prog_compiler_c_o_CXX=yes 12733 fi 12734 fi 12735 chmod u+w . 2>&5 12736 $rm conftest* 12737 # SGI C++ compiler will create directory out/ii_files/ for 12738 # template instantiation 12739 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 12740 $rm out/* && rmdir out 12741 cd .. 12742 rmdir conftest 12743 $rm conftest* 12744 12745fi 12746echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 12747echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 12748 12749 12750hard_links="nottested" 12751if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 12752 # do not overwrite the value of need_locks provided by the user 12753 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 12754echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 12755 hard_links=yes 12756 $rm conftest* 12757 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12758 touch conftest.a 12759 ln conftest.a conftest.b 2>&5 || hard_links=no 12760 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12761 echo "$as_me:$LINENO: result: $hard_links" >&5 12762echo "${ECHO_T}$hard_links" >&6 12763 if test "$hard_links" = no; then 12764 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 12765echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 12766 need_locks=warn 12767 fi 12768else 12769 need_locks=no 12770fi 12771 12772echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12773echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 12774 12775 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12776 case $host_os in 12777 aix4* | aix5*) 12778 # If we're using GNU nm, then we don't want the "-C" option. 12779 # -C means demangle to AIX nm, but means don't demangle with GNU nm 12780 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 12781 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' 12782 else 12783 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' 12784 fi 12785 ;; 12786 pw32*) 12787 export_symbols_cmds_CXX="$ltdll_cmds" 12788 ;; 12789 cygwin* | mingw*) 12790 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' 12791 ;; 12792 *) 12793 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12794 ;; 12795 esac 12796 12797echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12798echo "${ECHO_T}$ld_shlibs_CXX" >&6 12799test "$ld_shlibs_CXX" = no && can_build_shared=no 12800 12801# 12802# Do we need to explicitly link libc? 12803# 12804case "x$archive_cmds_need_lc_CXX" in 12805x|xyes) 12806 # Assume -lc should be added 12807 archive_cmds_need_lc_CXX=yes 12808 12809 if test "$enable_shared" = yes && test "$GCC" = yes; then 12810 case $archive_cmds_CXX in 12811 *'~'*) 12812 # FIXME: we may have to deal with multi-command sequences. 12813 ;; 12814 '$CC '*) 12815 # Test whether the compiler implicitly links with -lc since on some 12816 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12817 # to ld, don't add -lc before -lgcc. 12818 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 12819echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 12820 $rm conftest* 12821 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12822 12823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12824 (eval $ac_compile) 2>&5 12825 ac_status=$? 12826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12827 (exit $ac_status); } 2>conftest.err; then 12828 soname=conftest 12829 lib=conftest 12830 libobjs=conftest.$ac_objext 12831 deplibs= 12832 wl=$lt_prog_compiler_wl_CXX 12833 pic_flag=$lt_prog_compiler_pic_CXX 12834 compiler_flags=-v 12835 linker_flags=-v 12836 verstring= 12837 output_objdir=. 12838 libname=conftest 12839 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 12840 allow_undefined_flag_CXX= 12841 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 12842 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 12843 ac_status=$? 12844 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12845 (exit $ac_status); } 12846 then 12847 archive_cmds_need_lc_CXX=no 12848 else 12849 archive_cmds_need_lc_CXX=yes 12850 fi 12851 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 12852 else 12853 cat conftest.err 1>&5 12854 fi 12855 $rm conftest* 12856 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 12857echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 12858 ;; 12859 esac 12860 fi 12861 ;; 12862esac 12863 12864echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 12865echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 12866library_names_spec= 12867libname_spec='lib$name' 12868soname_spec= 12869shrext_cmds=".so" 12870postinstall_cmds= 12871postuninstall_cmds= 12872finish_cmds= 12873finish_eval= 12874shlibpath_var= 12875shlibpath_overrides_runpath=unknown 12876version_type=none 12877dynamic_linker="$host_os ld.so" 12878sys_lib_dlsearch_path_spec="/lib /usr/lib" 12879if test "$GCC" = yes; then 12880 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12881 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 12882 # if the path contains ";" then we assume it to be the separator 12883 # otherwise default to the standard path separator (i.e. ":") - it is 12884 # assumed that no part of a normal pathname contains ";" but that should 12885 # okay in the real world where ";" in dirpaths is itself problematic. 12886 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12887 else 12888 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12889 fi 12890else 12891 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12892fi 12893need_lib_prefix=unknown 12894hardcode_into_libs=no 12895 12896# when you set need_version to no, make sure it does not cause -set_version 12897# flags to be left without arguments 12898need_version=unknown 12899 12900case $host_os in 12901aix3*) 12902 version_type=linux 12903 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 12904 shlibpath_var=LIBPATH 12905 12906 # AIX 3 has no versioning support, so we append a major version to the name. 12907 soname_spec='${libname}${release}${shared_ext}$major' 12908 ;; 12909 12910aix4* | aix5*) 12911 version_type=linux 12912 need_lib_prefix=no 12913 need_version=no 12914 hardcode_into_libs=yes 12915 if test "$host_cpu" = ia64; then 12916 # AIX 5 supports IA64 12917 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 12918 shlibpath_var=LD_LIBRARY_PATH 12919 else 12920 # With GCC up to 2.95.x, collect2 would create an import file 12921 # for dependence libraries. The import file would start with 12922 # the line `#! .'. This would cause the generated library to 12923 # depend on `.', always an invalid library. This was fixed in 12924 # development snapshots of GCC prior to 3.0. 12925 case $host_os in 12926 aix4 | aix4.[01] | aix4.[01].*) 12927 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12928 echo ' yes ' 12929 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 12930 : 12931 else 12932 can_build_shared=no 12933 fi 12934 ;; 12935 esac 12936 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 12937 # soname into executable. Probably we can add versioning support to 12938 # collect2, so additional links can be useful in future. 12939 if test "$aix_use_runtimelinking" = yes; then 12940 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12941 # instead of lib<name>.a to let people know that these are not 12942 # typical AIX shared libraries. 12943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12944 else 12945 # We preserve .a as extension for shared libraries through AIX4.2 12946 # and later when we are not doing run time linking. 12947 library_names_spec='${libname}${release}.a $libname.a' 12948 soname_spec='${libname}${release}${shared_ext}$major' 12949 fi 12950 shlibpath_var=LIBPATH 12951 fi 12952 ;; 12953 12954amigaos*) 12955 library_names_spec='$libname.ixlibrary $libname.a' 12956 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12957 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' 12958 ;; 12959 12960beos*) 12961 library_names_spec='${libname}${shared_ext}' 12962 dynamic_linker="$host_os ld.so" 12963 shlibpath_var=LIBRARY_PATH 12964 ;; 12965 12966bsdi[45]*) 12967 version_type=linux 12968 need_version=no 12969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12970 soname_spec='${libname}${release}${shared_ext}$major' 12971 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12972 shlibpath_var=LD_LIBRARY_PATH 12973 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12974 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12975 # the default ld.so.conf also contains /usr/contrib/lib and 12976 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12977 # libtool to hard-code these into programs 12978 ;; 12979 12980cygwin* | mingw* | pw32*) 12981 version_type=windows 12982 shrext_cmds=".dll" 12983 need_version=no 12984 need_lib_prefix=no 12985 12986 case $GCC,$host_os in 12987 yes,cygwin* | yes,mingw* | yes,pw32*) 12988 library_names_spec='$libname.dll.a' 12989 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12990 postinstall_cmds='base_file=`basename \${file}`~ 12991 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 12992 dldir=$destdir/`dirname \$dlpath`~ 12993 test -d \$dldir || mkdir -p \$dldir~ 12994 $install_prog $dir/$dlname \$dldir/$dlname~ 12995 chmod a+x \$dldir/$dlname' 12996 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12997 dlpath=$dir/\$dldll~ 12998 $rm \$dlpath' 12999 shlibpath_overrides_runpath=yes 13000 13001 case $host_os in 13002 cygwin*) 13003 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13004 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13005 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 13006 ;; 13007 mingw*) 13008 # MinGW DLLs use traditional 'lib' prefix 13009 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13010 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13011 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 13012 # It is most probably a Windows format PATH printed by 13013 # mingw gcc, but we are running on Cygwin. Gcc prints its search 13014 # path with ; separators, and with drive letters. We can handle the 13015 # drive letters (cygwin fileutils understands them), so leave them, 13016 # especially as we might pass files found there to a mingw objdump, 13017 # which wouldn't understand a cygwinified path. Ahh. 13018 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13019 else 13020 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13021 fi 13022 ;; 13023 pw32*) 13024 # pw32 DLLs use 'pw' prefix rather than 'lib' 13025 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13026 ;; 13027 esac 13028 ;; 13029 13030 *) 13031 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13032 ;; 13033 esac 13034 dynamic_linker='Win32 ld.exe' 13035 # FIXME: first we should search . and the directory the executable is in 13036 shlibpath_var=PATH 13037 ;; 13038 13039darwin* | rhapsody*) 13040 dynamic_linker="$host_os dyld" 13041 version_type=darwin 13042 need_lib_prefix=no 13043 need_version=no 13044 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13045 soname_spec='${libname}${release}${major}$shared_ext' 13046 shlibpath_overrides_runpath=yes 13047 shlibpath_var=DYLD_LIBRARY_PATH 13048 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13049 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 13050 if test "$GCC" = yes; then 13051 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"` 13052 else 13053 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 13054 fi 13055 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13056 ;; 13057 13058dgux*) 13059 version_type=linux 13060 need_lib_prefix=no 13061 need_version=no 13062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13063 soname_spec='${libname}${release}${shared_ext}$major' 13064 shlibpath_var=LD_LIBRARY_PATH 13065 ;; 13066 13067freebsd1*) 13068 dynamic_linker=no 13069 ;; 13070 13071kfreebsd*-gnu) 13072 version_type=linux 13073 need_lib_prefix=no 13074 need_version=no 13075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13076 soname_spec='${libname}${release}${shared_ext}$major' 13077 shlibpath_var=LD_LIBRARY_PATH 13078 shlibpath_overrides_runpath=no 13079 hardcode_into_libs=yes 13080 dynamic_linker='GNU ld.so' 13081 ;; 13082 13083freebsd* | dragonfly*) 13084 # DragonFly does not have aout. When/if they implement a new 13085 # versioning mechanism, adjust this. 13086 if test -x /usr/bin/objformat; then 13087 objformat=`/usr/bin/objformat` 13088 else 13089 case $host_os in 13090 freebsd[123]*) objformat=aout ;; 13091 *) objformat=elf ;; 13092 esac 13093 fi 13094 version_type=freebsd-$objformat 13095 case $version_type in 13096 freebsd-elf*) 13097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13098 need_version=no 13099 need_lib_prefix=no 13100 ;; 13101 freebsd-*) 13102 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 13103 need_version=yes 13104 ;; 13105 esac 13106 shlibpath_var=LD_LIBRARY_PATH 13107 case $host_os in 13108 freebsd2*) 13109 shlibpath_overrides_runpath=yes 13110 ;; 13111 freebsd3.[01]* | freebsdelf3.[01]*) 13112 shlibpath_overrides_runpath=yes 13113 hardcode_into_libs=yes 13114 ;; 13115 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13116 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13117 shlibpath_overrides_runpath=no 13118 hardcode_into_libs=yes 13119 ;; 13120 freebsd*) # from 4.6 on 13121 shlibpath_overrides_runpath=yes 13122 hardcode_into_libs=yes 13123 ;; 13124 esac 13125 ;; 13126 13127gnu*) 13128 version_type=linux 13129 need_lib_prefix=no 13130 need_version=no 13131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13132 soname_spec='${libname}${release}${shared_ext}$major' 13133 shlibpath_var=LD_LIBRARY_PATH 13134 hardcode_into_libs=yes 13135 ;; 13136 13137hpux9* | hpux10* | hpux11*) 13138 # Give a soname corresponding to the major version so that dld.sl refuses to 13139 # link against other versions. 13140 version_type=sunos 13141 need_lib_prefix=no 13142 need_version=no 13143 case $host_cpu in 13144 ia64*) 13145 shrext_cmds='.so' 13146 hardcode_into_libs=yes 13147 dynamic_linker="$host_os dld.so" 13148 shlibpath_var=LD_LIBRARY_PATH 13149 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13151 soname_spec='${libname}${release}${shared_ext}$major' 13152 if test "X$HPUX_IA64_MODE" = X32; then 13153 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13154 else 13155 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13156 fi 13157 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13158 ;; 13159 hppa*64*) 13160 shrext_cmds='.sl' 13161 hardcode_into_libs=yes 13162 dynamic_linker="$host_os dld.sl" 13163 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13164 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13166 soname_spec='${libname}${release}${shared_ext}$major' 13167 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13168 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13169 ;; 13170 *) 13171 shrext_cmds='.sl' 13172 dynamic_linker="$host_os dld.sl" 13173 shlibpath_var=SHLIB_PATH 13174 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13176 soname_spec='${libname}${release}${shared_ext}$major' 13177 ;; 13178 esac 13179 # HP-UX runs *really* slowly unless shared libraries are mode 555. 13180 postinstall_cmds='chmod 555 $lib' 13181 ;; 13182 13183interix3*) 13184 version_type=linux 13185 need_lib_prefix=no 13186 need_version=no 13187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13188 soname_spec='${libname}${release}${shared_ext}$major' 13189 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13190 shlibpath_var=LD_LIBRARY_PATH 13191 shlibpath_overrides_runpath=no 13192 hardcode_into_libs=yes 13193 ;; 13194 13195irix5* | irix6* | nonstopux*) 13196 case $host_os in 13197 nonstopux*) version_type=nonstopux ;; 13198 *) 13199 if test "$lt_cv_prog_gnu_ld" = yes; then 13200 version_type=linux 13201 else 13202 version_type=irix 13203 fi ;; 13204 esac 13205 need_lib_prefix=no 13206 need_version=no 13207 soname_spec='${libname}${release}${shared_ext}$major' 13208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 13209 case $host_os in 13210 irix5* | nonstopux*) 13211 libsuff= shlibsuff= 13212 ;; 13213 *) 13214 case $LD in # libtool.m4 will add one of these switches to LD 13215 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13216 libsuff= shlibsuff= libmagic=32-bit;; 13217 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13218 libsuff=32 shlibsuff=N32 libmagic=N32;; 13219 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13220 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13221 *) libsuff= shlibsuff= libmagic=never-match;; 13222 esac 13223 ;; 13224 esac 13225 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13226 shlibpath_overrides_runpath=no 13227 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13228 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13229 hardcode_into_libs=yes 13230 ;; 13231 13232# No shared lib support for Linux oldld, aout, or coff. 13233linux*oldld* | linux*aout* | linux*coff*) 13234 dynamic_linker=no 13235 ;; 13236 13237# This must be Linux ELF. 13238linux*) 13239 version_type=linux 13240 need_lib_prefix=no 13241 need_version=no 13242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13243 soname_spec='${libname}${release}${shared_ext}$major' 13244 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13245 shlibpath_var=LD_LIBRARY_PATH 13246 shlibpath_overrides_runpath=no 13247 # This implies no fast_install, which is unacceptable. 13248 # Some rework will be needed to allow for fast_install 13249 # before this can be enabled. 13250 hardcode_into_libs=yes 13251 13252 # Append ld.so.conf contents to the search path 13253 if test -f /etc/ld.so.conf; then 13254 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' ' '` 13255 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 13256 fi 13257 13258 # We used to test for /lib/ld.so.1 and disable shared libraries on 13259 # powerpc, because MkLinux only supported shared libraries with the 13260 # GNU dynamic linker. Since this was broken with cross compilers, 13261 # most powerpc-linux boxes support dynamic linking these days and 13262 # people can always --disable-shared, the test was removed, and we 13263 # assume the GNU/Linux dynamic linker is in use. 13264 dynamic_linker='GNU/Linux ld.so' 13265 ;; 13266 13267knetbsd*-gnu) 13268 version_type=linux 13269 need_lib_prefix=no 13270 need_version=no 13271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13272 soname_spec='${libname}${release}${shared_ext}$major' 13273 shlibpath_var=LD_LIBRARY_PATH 13274 shlibpath_overrides_runpath=no 13275 hardcode_into_libs=yes 13276 dynamic_linker='GNU ld.so' 13277 ;; 13278 13279netbsd*) 13280 version_type=sunos 13281 need_lib_prefix=no 13282 need_version=no 13283 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13285 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13286 dynamic_linker='NetBSD (a.out) ld.so' 13287 else 13288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13289 soname_spec='${libname}${release}${shared_ext}$major' 13290 dynamic_linker='NetBSD ld.elf_so' 13291 fi 13292 shlibpath_var=LD_LIBRARY_PATH 13293 shlibpath_overrides_runpath=yes 13294 hardcode_into_libs=yes 13295 ;; 13296 13297newsos6) 13298 version_type=linux 13299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13300 shlibpath_var=LD_LIBRARY_PATH 13301 shlibpath_overrides_runpath=yes 13302 ;; 13303 13304nto-qnx*) 13305 version_type=linux 13306 need_lib_prefix=no 13307 need_version=no 13308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13309 soname_spec='${libname}${release}${shared_ext}$major' 13310 shlibpath_var=LD_LIBRARY_PATH 13311 shlibpath_overrides_runpath=yes 13312 ;; 13313 13314openbsd*) 13315 version_type=sunos 13316 sys_lib_dlsearch_path_spec="/usr/lib" 13317 need_lib_prefix=no 13318 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 13319 case $host_os in 13320 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 13321 *) need_version=no ;; 13322 esac 13323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13324 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13325 shlibpath_var=LD_LIBRARY_PATH 13326 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13327 case $host_os in 13328 openbsd2.[89] | openbsd2.[89].*) 13329 shlibpath_overrides_runpath=no 13330 ;; 13331 *) 13332 shlibpath_overrides_runpath=yes 13333 ;; 13334 esac 13335 else 13336 shlibpath_overrides_runpath=yes 13337 fi 13338 ;; 13339 13340os2*) 13341 libname_spec='$name' 13342 shrext_cmds=".dll" 13343 need_lib_prefix=no 13344 library_names_spec='$libname${shared_ext} $libname.a' 13345 dynamic_linker='OS/2 ld.exe' 13346 shlibpath_var=LIBPATH 13347 ;; 13348 13349osf3* | osf4* | osf5*) 13350 version_type=osf 13351 need_lib_prefix=no 13352 need_version=no 13353 soname_spec='${libname}${release}${shared_ext}$major' 13354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13355 shlibpath_var=LD_LIBRARY_PATH 13356 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13357 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13358 ;; 13359 13360solaris*) 13361 version_type=linux 13362 need_lib_prefix=no 13363 need_version=no 13364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13365 soname_spec='${libname}${release}${shared_ext}$major' 13366 shlibpath_var=LD_LIBRARY_PATH 13367 shlibpath_overrides_runpath=yes 13368 hardcode_into_libs=yes 13369 # ldd complains unless libraries are executable 13370 postinstall_cmds='chmod +x $lib' 13371 ;; 13372 13373sunos4*) 13374 version_type=sunos 13375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13376 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13377 shlibpath_var=LD_LIBRARY_PATH 13378 shlibpath_overrides_runpath=yes 13379 if test "$with_gnu_ld" = yes; then 13380 need_lib_prefix=no 13381 fi 13382 need_version=yes 13383 ;; 13384 13385sysv4 | sysv4.3*) 13386 version_type=linux 13387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13388 soname_spec='${libname}${release}${shared_ext}$major' 13389 shlibpath_var=LD_LIBRARY_PATH 13390 case $host_vendor in 13391 sni) 13392 shlibpath_overrides_runpath=no 13393 need_lib_prefix=no 13394 export_dynamic_flag_spec='${wl}-Blargedynsym' 13395 runpath_var=LD_RUN_PATH 13396 ;; 13397 siemens) 13398 need_lib_prefix=no 13399 ;; 13400 motorola) 13401 need_lib_prefix=no 13402 need_version=no 13403 shlibpath_overrides_runpath=no 13404 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13405 ;; 13406 esac 13407 ;; 13408 13409sysv4*MP*) 13410 if test -d /usr/nec ;then 13411 version_type=linux 13412 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13413 soname_spec='$libname${shared_ext}.$major' 13414 shlibpath_var=LD_LIBRARY_PATH 13415 fi 13416 ;; 13417 13418sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13419 version_type=freebsd-elf 13420 need_lib_prefix=no 13421 need_version=no 13422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13423 soname_spec='${libname}${release}${shared_ext}$major' 13424 shlibpath_var=LD_LIBRARY_PATH 13425 hardcode_into_libs=yes 13426 if test "$with_gnu_ld" = yes; then 13427 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13428 shlibpath_overrides_runpath=no 13429 else 13430 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13431 shlibpath_overrides_runpath=yes 13432 case $host_os in 13433 sco3.2v5*) 13434 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13435 ;; 13436 esac 13437 fi 13438 sys_lib_dlsearch_path_spec='/usr/lib' 13439 ;; 13440 13441uts4*) 13442 version_type=linux 13443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13444 soname_spec='${libname}${release}${shared_ext}$major' 13445 shlibpath_var=LD_LIBRARY_PATH 13446 ;; 13447 13448*) 13449 dynamic_linker=no 13450 ;; 13451esac 13452echo "$as_me:$LINENO: result: $dynamic_linker" >&5 13453echo "${ECHO_T}$dynamic_linker" >&6 13454test "$dynamic_linker" = no && can_build_shared=no 13455 13456variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13457if test "$GCC" = yes; then 13458 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13459fi 13460 13461echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 13462echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 13463hardcode_action_CXX= 13464if test -n "$hardcode_libdir_flag_spec_CXX" || \ 13465 test -n "$runpath_var_CXX" || \ 13466 test "X$hardcode_automatic_CXX" = "Xyes" ; then 13467 13468 # We can hardcode non-existant directories. 13469 if test "$hardcode_direct_CXX" != no && 13470 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13471 # have to relink, otherwise we might link with an installed library 13472 # when we should be linking with a yet-to-be-installed one 13473 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 13474 test "$hardcode_minus_L_CXX" != no; then 13475 # Linking always hardcodes the temporary library directory. 13476 hardcode_action_CXX=relink 13477 else 13478 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13479 hardcode_action_CXX=immediate 13480 fi 13481else 13482 # We cannot hardcode anything, or else we can only hardcode existing 13483 # directories. 13484 hardcode_action_CXX=unsupported 13485fi 13486echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 13487echo "${ECHO_T}$hardcode_action_CXX" >&6 13488 13489if test "$hardcode_action_CXX" = relink; then 13490 # Fast installation is not supported 13491 enable_fast_install=no 13492elif test "$shlibpath_overrides_runpath" = yes || 13493 test "$enable_shared" = no; then 13494 # Fast installation is not necessary 13495 enable_fast_install=needless 13496fi 13497 13498 13499# The else clause should only fire when bootstrapping the 13500# libtool distribution, otherwise you forgot to ship ltmain.sh 13501# with your package, and you will get complaints that there are 13502# no rules to generate ltmain.sh. 13503if test -f "$ltmain"; then 13504 # See if we are running on zsh, and set the options which allow our commands through 13505 # without removal of \ escapes. 13506 if test -n "${ZSH_VERSION+set}" ; then 13507 setopt NO_GLOB_SUBST 13508 fi 13509 # Now quote all the things that may contain metacharacters while being 13510 # careful not to overquote the AC_SUBSTed values. We take copies of the 13511 # variables and quote the copies for generation of the libtool script. 13512 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 13513 SED SHELL STRIP \ 13514 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13515 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13516 deplibs_check_method reload_flag reload_cmds need_locks \ 13517 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13518 lt_cv_sys_global_symbol_to_c_name_address \ 13519 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13520 old_postinstall_cmds old_postuninstall_cmds \ 13521 compiler_CXX \ 13522 CC_CXX \ 13523 LD_CXX \ 13524 lt_prog_compiler_wl_CXX \ 13525 lt_prog_compiler_pic_CXX \ 13526 lt_prog_compiler_static_CXX \ 13527 lt_prog_compiler_no_builtin_flag_CXX \ 13528 export_dynamic_flag_spec_CXX \ 13529 thread_safe_flag_spec_CXX \ 13530 whole_archive_flag_spec_CXX \ 13531 enable_shared_with_static_runtimes_CXX \ 13532 old_archive_cmds_CXX \ 13533 old_archive_from_new_cmds_CXX \ 13534 predep_objects_CXX \ 13535 postdep_objects_CXX \ 13536 predeps_CXX \ 13537 postdeps_CXX \ 13538 compiler_lib_search_path_CXX \ 13539 archive_cmds_CXX \ 13540 archive_expsym_cmds_CXX \ 13541 postinstall_cmds_CXX \ 13542 postuninstall_cmds_CXX \ 13543 old_archive_from_expsyms_cmds_CXX \ 13544 allow_undefined_flag_CXX \ 13545 no_undefined_flag_CXX \ 13546 export_symbols_cmds_CXX \ 13547 hardcode_libdir_flag_spec_CXX \ 13548 hardcode_libdir_flag_spec_ld_CXX \ 13549 hardcode_libdir_separator_CXX \ 13550 hardcode_automatic_CXX \ 13551 module_cmds_CXX \ 13552 module_expsym_cmds_CXX \ 13553 lt_cv_prog_compiler_c_o_CXX \ 13554 exclude_expsyms_CXX \ 13555 include_expsyms_CXX; do 13556 13557 case $var in 13558 old_archive_cmds_CXX | \ 13559 old_archive_from_new_cmds_CXX | \ 13560 archive_cmds_CXX | \ 13561 archive_expsym_cmds_CXX | \ 13562 module_cmds_CXX | \ 13563 module_expsym_cmds_CXX | \ 13564 old_archive_from_expsyms_cmds_CXX | \ 13565 export_symbols_cmds_CXX | \ 13566 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13567 postinstall_cmds | postuninstall_cmds | \ 13568 old_postinstall_cmds | old_postuninstall_cmds | \ 13569 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13570 # Double-quote double-evaled strings. 13571 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13572 ;; 13573 *) 13574 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13575 ;; 13576 esac 13577 done 13578 13579 case $lt_echo in 13580 *'\$0 --fallback-echo"') 13581 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13582 ;; 13583 esac 13584 13585cfgfile="$ofile" 13586 13587 cat <<__EOF__ >> "$cfgfile" 13588# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13589 13590# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13591 13592# Shell to use when invoking shell scripts. 13593SHELL=$lt_SHELL 13594 13595# Whether or not to build shared libraries. 13596build_libtool_libs=$enable_shared 13597 13598# Whether or not to build static libraries. 13599build_old_libs=$enable_static 13600 13601# Whether or not to add -lc for building shared libraries. 13602build_libtool_need_lc=$archive_cmds_need_lc_CXX 13603 13604# Whether or not to disallow shared libs when runtime libs are static 13605allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13606 13607# Whether or not to optimize for fast installation. 13608fast_install=$enable_fast_install 13609 13610# The host system. 13611host_alias=$host_alias 13612host=$host 13613host_os=$host_os 13614 13615# The build system. 13616build_alias=$build_alias 13617build=$build 13618build_os=$build_os 13619 13620# An echo program that does not interpret backslashes. 13621echo=$lt_echo 13622 13623# The archiver. 13624AR=$lt_AR 13625AR_FLAGS=$lt_AR_FLAGS 13626 13627# A C compiler. 13628LTCC=$lt_LTCC 13629 13630# LTCC compiler flags. 13631LTCFLAGS=$lt_LTCFLAGS 13632 13633# A language-specific compiler. 13634CC=$lt_compiler_CXX 13635 13636# Is the compiler the GNU C compiler? 13637with_gcc=$GCC_CXX 13638 13639# An ERE matcher. 13640EGREP=$lt_EGREP 13641 13642# The linker used to build libraries. 13643LD=$lt_LD_CXX 13644 13645# Whether we need hard or soft links. 13646LN_S=$lt_LN_S 13647 13648# A BSD-compatible nm program. 13649NM=$lt_NM 13650 13651# A symbol stripping program 13652STRIP=$lt_STRIP 13653 13654# Used to examine libraries when file_magic_cmd begins "file" 13655MAGIC_CMD=$MAGIC_CMD 13656 13657# Used on cygwin: DLL creation program. 13658DLLTOOL="$DLLTOOL" 13659 13660# Used on cygwin: object dumper. 13661OBJDUMP="$OBJDUMP" 13662 13663# Used on cygwin: assembler. 13664AS="$AS" 13665 13666# The name of the directory that contains temporary libtool files. 13667objdir=$objdir 13668 13669# How to create reloadable object files. 13670reload_flag=$lt_reload_flag 13671reload_cmds=$lt_reload_cmds 13672 13673# How to pass a linker flag through the compiler. 13674wl=$lt_lt_prog_compiler_wl_CXX 13675 13676# Object file suffix (normally "o"). 13677objext="$ac_objext" 13678 13679# Old archive suffix (normally "a"). 13680libext="$libext" 13681 13682# Shared library suffix (normally ".so"). 13683shrext_cmds='$shrext_cmds' 13684 13685# Executable file suffix (normally ""). 13686exeext="$exeext" 13687 13688# Additional compiler flags for building library objects. 13689pic_flag=$lt_lt_prog_compiler_pic_CXX 13690pic_mode=$pic_mode 13691 13692# What is the maximum length of a command? 13693max_cmd_len=$lt_cv_sys_max_cmd_len 13694 13695# Does compiler simultaneously support -c and -o options? 13696compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13697 13698# Must we lock files when doing compilation? 13699need_locks=$lt_need_locks 13700 13701# Do we need the lib prefix for modules? 13702need_lib_prefix=$need_lib_prefix 13703 13704# Do we need a version for libraries? 13705need_version=$need_version 13706 13707# Whether dlopen is supported. 13708dlopen_support=$enable_dlopen 13709 13710# Whether dlopen of programs is supported. 13711dlopen_self=$enable_dlopen_self 13712 13713# Whether dlopen of statically linked programs is supported. 13714dlopen_self_static=$enable_dlopen_self_static 13715 13716# Compiler flag to prevent dynamic linking. 13717link_static_flag=$lt_lt_prog_compiler_static_CXX 13718 13719# Compiler flag to turn off builtin functions. 13720no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13721 13722# Compiler flag to allow reflexive dlopens. 13723export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13724 13725# Compiler flag to generate shared objects directly from archives. 13726whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13727 13728# Compiler flag to generate thread-safe objects. 13729thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13730 13731# Library versioning type. 13732version_type=$version_type 13733 13734# Format of library name prefix. 13735libname_spec=$lt_libname_spec 13736 13737# List of archive names. First name is the real one, the rest are links. 13738# The last name is the one that the linker finds with -lNAME. 13739library_names_spec=$lt_library_names_spec 13740 13741# The coded name of the library, if different from the real name. 13742soname_spec=$lt_soname_spec 13743 13744# Commands used to build and install an old-style archive. 13745RANLIB=$lt_RANLIB 13746old_archive_cmds=$lt_old_archive_cmds_CXX 13747old_postinstall_cmds=$lt_old_postinstall_cmds 13748old_postuninstall_cmds=$lt_old_postuninstall_cmds 13749 13750# Create an old-style archive from a shared archive. 13751old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 13752 13753# Create a temporary old-style archive to link instead of a shared archive. 13754old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 13755 13756# Commands used to build and install a shared archive. 13757archive_cmds=$lt_archive_cmds_CXX 13758archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 13759postinstall_cmds=$lt_postinstall_cmds 13760postuninstall_cmds=$lt_postuninstall_cmds 13761 13762# Commands used to build a loadable module (assumed same as above if empty) 13763module_cmds=$lt_module_cmds_CXX 13764module_expsym_cmds=$lt_module_expsym_cmds_CXX 13765 13766# Commands to strip libraries. 13767old_striplib=$lt_old_striplib 13768striplib=$lt_striplib 13769 13770# Dependencies to place before the objects being linked to create a 13771# shared library. 13772predep_objects=$lt_predep_objects_CXX 13773 13774# Dependencies to place after the objects being linked to create a 13775# shared library. 13776postdep_objects=$lt_postdep_objects_CXX 13777 13778# Dependencies to place before the objects being linked to create a 13779# shared library. 13780predeps=$lt_predeps_CXX 13781 13782# Dependencies to place after the objects being linked to create a 13783# shared library. 13784postdeps=$lt_postdeps_CXX 13785 13786# The library search path used internally by the compiler when linking 13787# a shared library. 13788compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 13789 13790# Method to check whether dependent libraries are shared objects. 13791deplibs_check_method=$lt_deplibs_check_method 13792 13793# Command to use when deplibs_check_method == file_magic. 13794file_magic_cmd=$lt_file_magic_cmd 13795 13796# Flag that allows shared libraries with undefined symbols to be built. 13797allow_undefined_flag=$lt_allow_undefined_flag_CXX 13798 13799# Flag that forces no undefined symbols. 13800no_undefined_flag=$lt_no_undefined_flag_CXX 13801 13802# Commands used to finish a libtool library installation in a directory. 13803finish_cmds=$lt_finish_cmds 13804 13805# Same as above, but a single script fragment to be evaled but not shown. 13806finish_eval=$lt_finish_eval 13807 13808# Take the output of nm and produce a listing of raw symbols and C names. 13809global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13810 13811# Transform the output of nm in a proper C declaration 13812global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13813 13814# Transform the output of nm in a C name address pair 13815global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13816 13817# This is the shared library runtime path variable. 13818runpath_var=$runpath_var 13819 13820# This is the shared library path variable. 13821shlibpath_var=$shlibpath_var 13822 13823# Is shlibpath searched before the hard-coded library search path? 13824shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13825 13826# How to hardcode a shared library path into an executable. 13827hardcode_action=$hardcode_action_CXX 13828 13829# Whether we should hardcode library paths into libraries. 13830hardcode_into_libs=$hardcode_into_libs 13831 13832# Flag to hardcode \$libdir into a binary during linking. 13833# This must work even if \$libdir does not exist. 13834hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 13835 13836# If ld is used when linking, flag to hardcode \$libdir into 13837# a binary during linking. This must work even if \$libdir does 13838# not exist. 13839hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 13840 13841# Whether we need a single -rpath flag with a separated argument. 13842hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 13843 13844# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 13845# resulting binary. 13846hardcode_direct=$hardcode_direct_CXX 13847 13848# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 13849# resulting binary. 13850hardcode_minus_L=$hardcode_minus_L_CXX 13851 13852# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 13853# the resulting binary. 13854hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 13855 13856# Set to yes if building a shared library automatically hardcodes DIR into the library 13857# and all subsequent libraries and executables linked against it. 13858hardcode_automatic=$hardcode_automatic_CXX 13859 13860# Variables whose values should be saved in libtool wrapper scripts and 13861# restored at relink time. 13862variables_saved_for_relink="$variables_saved_for_relink" 13863 13864# Whether libtool must link a program against all its dependency libraries. 13865link_all_deplibs=$link_all_deplibs_CXX 13866 13867# Compile-time system search path for libraries 13868sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13869 13870# Run-time system search path for libraries 13871sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13872 13873# Fix the shell variable \$srcfile for the compiler. 13874fix_srcfile_path="$fix_srcfile_path_CXX" 13875 13876# Set to yes if exported symbols are required. 13877always_export_symbols=$always_export_symbols_CXX 13878 13879# The commands to list exported symbols. 13880export_symbols_cmds=$lt_export_symbols_cmds_CXX 13881 13882# The commands to extract the exported symbol list from a shared archive. 13883extract_expsyms_cmds=$lt_extract_expsyms_cmds 13884 13885# Symbols that should not be listed in the preloaded symbols. 13886exclude_expsyms=$lt_exclude_expsyms_CXX 13887 13888# Symbols that must always be exported. 13889include_expsyms=$lt_include_expsyms_CXX 13890 13891# ### END LIBTOOL TAG CONFIG: $tagname 13892 13893__EOF__ 13894 13895 13896else 13897 # If there is no Makefile yet, we rely on a make rule to execute 13898 # `config.status --recheck' to rerun these tests and create the 13899 # libtool script then. 13900 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 13901 if test -f "$ltmain_in"; then 13902 test -f Makefile && make "$ltmain" 13903 fi 13904fi 13905 13906 13907ac_ext=c 13908ac_cpp='$CPP $CPPFLAGS' 13909ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13910ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13911ac_compiler_gnu=$ac_cv_c_compiler_gnu 13912 13913CC=$lt_save_CC 13914LDCXX=$LD 13915LD=$lt_save_LD 13916GCC=$lt_save_GCC 13917with_gnu_ldcxx=$with_gnu_ld 13918with_gnu_ld=$lt_save_with_gnu_ld 13919lt_cv_path_LDCXX=$lt_cv_path_LD 13920lt_cv_path_LD=$lt_save_path_LD 13921lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 13922lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 13923 13924 else 13925 tagname="" 13926 fi 13927 ;; 13928 13929 F77) 13930 if test -n "$F77" && test "X$F77" != "Xno"; then 13931 13932ac_ext=f 13933ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 13934ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13935ac_compiler_gnu=$ac_cv_f77_compiler_gnu 13936 13937 13938archive_cmds_need_lc_F77=no 13939allow_undefined_flag_F77= 13940always_export_symbols_F77=no 13941archive_expsym_cmds_F77= 13942export_dynamic_flag_spec_F77= 13943hardcode_direct_F77=no 13944hardcode_libdir_flag_spec_F77= 13945hardcode_libdir_flag_spec_ld_F77= 13946hardcode_libdir_separator_F77= 13947hardcode_minus_L_F77=no 13948hardcode_automatic_F77=no 13949module_cmds_F77= 13950module_expsym_cmds_F77= 13951link_all_deplibs_F77=unknown 13952old_archive_cmds_F77=$old_archive_cmds 13953no_undefined_flag_F77= 13954whole_archive_flag_spec_F77= 13955enable_shared_with_static_runtimes_F77=no 13956 13957# Source file extension for f77 test sources. 13958ac_ext=f 13959 13960# Object file extension for compiled f77 test sources. 13961objext=o 13962objext_F77=$objext 13963 13964# Code to be used in simple compile tests 13965lt_simple_compile_test_code=" subroutine t\n return\n end\n" 13966 13967# Code to be used in simple link tests 13968lt_simple_link_test_code=" program t\n end\n" 13969 13970# ltmain only uses $CC for tagged configurations so make sure $CC is set. 13971 13972# If no C compiler was specified, use CC. 13973LTCC=${LTCC-"$CC"} 13974 13975# If no C compiler flags were specified, use CFLAGS. 13976LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13977 13978# Allow CC to be a program name with arguments. 13979compiler=$CC 13980 13981 13982# save warnings/boilerplate of simple test code 13983ac_outfile=conftest.$ac_objext 13984printf "$lt_simple_compile_test_code" >conftest.$ac_ext 13985eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13986_lt_compiler_boilerplate=`cat conftest.err` 13987$rm conftest* 13988 13989ac_outfile=conftest.$ac_objext 13990printf "$lt_simple_link_test_code" >conftest.$ac_ext 13991eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13992_lt_linker_boilerplate=`cat conftest.err` 13993$rm conftest* 13994 13995 13996# Allow CC to be a program name with arguments. 13997lt_save_CC="$CC" 13998CC=${F77-"f77"} 13999compiler=$CC 14000compiler_F77=$CC 14001for cc_temp in $compiler""; do 14002 case $cc_temp in 14003 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14004 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14005 \-*) ;; 14006 *) break;; 14007 esac 14008done 14009cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14010 14011 14012echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 14013echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 14014echo "$as_me:$LINENO: result: $can_build_shared" >&5 14015echo "${ECHO_T}$can_build_shared" >&6 14016 14017echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 14018echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 14019test "$can_build_shared" = "no" && enable_shared=no 14020 14021# On AIX, shared libraries and static libraries use the same namespace, and 14022# are all built from PIC. 14023case $host_os in 14024aix3*) 14025 test "$enable_shared" = yes && enable_static=no 14026 if test -n "$RANLIB"; then 14027 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14028 postinstall_cmds='$RANLIB $lib' 14029 fi 14030 ;; 14031aix4* | aix5*) 14032 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 14033 test "$enable_shared" = yes && enable_static=no 14034 fi 14035 ;; 14036esac 14037echo "$as_me:$LINENO: result: $enable_shared" >&5 14038echo "${ECHO_T}$enable_shared" >&6 14039 14040echo "$as_me:$LINENO: checking whether to build static libraries" >&5 14041echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 14042# Make sure either enable_shared or enable_static is yes. 14043test "$enable_shared" = yes || enable_static=yes 14044echo "$as_me:$LINENO: result: $enable_static" >&5 14045echo "${ECHO_T}$enable_static" >&6 14046 14047GCC_F77="$G77" 14048LD_F77="$LD" 14049 14050lt_prog_compiler_wl_F77= 14051lt_prog_compiler_pic_F77= 14052lt_prog_compiler_static_F77= 14053 14054echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 14055echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 14056 14057 if test "$GCC" = yes; then 14058 lt_prog_compiler_wl_F77='-Wl,' 14059 lt_prog_compiler_static_F77='-static' 14060 14061 case $host_os in 14062 aix*) 14063 # All AIX code is PIC. 14064 if test "$host_cpu" = ia64; then 14065 # AIX 5 now supports IA64 processor 14066 lt_prog_compiler_static_F77='-Bstatic' 14067 fi 14068 ;; 14069 14070 amigaos*) 14071 # FIXME: we need at least 68020 code to build shared libraries, but 14072 # adding the `-m68020' flag to GCC prevents building anything better, 14073 # like `-m68040'. 14074 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 14075 ;; 14076 14077 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14078 # PIC is the default for these OSes. 14079 ;; 14080 14081 mingw* | pw32* | os2*) 14082 # This hack is so that the source file can tell whether it is being 14083 # built for inclusion in a dll (and should export symbols for example). 14084 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14085 ;; 14086 14087 darwin* | rhapsody*) 14088 # PIC is the default on this platform 14089 # Common symbols not allowed in MH_DYLIB files 14090 lt_prog_compiler_pic_F77='-fno-common' 14091 ;; 14092 14093 interix3*) 14094 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14095 # Instead, we relocate shared libraries at runtime. 14096 ;; 14097 14098 msdosdjgpp*) 14099 # Just because we use GCC doesn't mean we suddenly get shared libraries 14100 # on systems that don't support them. 14101 lt_prog_compiler_can_build_shared_F77=no 14102 enable_shared=no 14103 ;; 14104 14105 sysv4*MP*) 14106 if test -d /usr/nec; then 14107 lt_prog_compiler_pic_F77=-Kconform_pic 14108 fi 14109 ;; 14110 14111 hpux*) 14112 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14113 # not for PA HP-UX. 14114 case $host_cpu in 14115 hppa*64*|ia64*) 14116 # +Z the default 14117 ;; 14118 *) 14119 lt_prog_compiler_pic_F77='-fPIC' 14120 ;; 14121 esac 14122 ;; 14123 14124 *) 14125 lt_prog_compiler_pic_F77='-fPIC' 14126 ;; 14127 esac 14128 else 14129 # PORTME Check for flag to pass linker flags through the system compiler. 14130 case $host_os in 14131 aix*) 14132 lt_prog_compiler_wl_F77='-Wl,' 14133 if test "$host_cpu" = ia64; then 14134 # AIX 5 now supports IA64 processor 14135 lt_prog_compiler_static_F77='-Bstatic' 14136 else 14137 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 14138 fi 14139 ;; 14140 darwin*) 14141 # PIC is the default on this platform 14142 # Common symbols not allowed in MH_DYLIB files 14143 case $cc_basename in 14144 xlc*) 14145 lt_prog_compiler_pic_F77='-qnocommon' 14146 lt_prog_compiler_wl_F77='-Wl,' 14147 ;; 14148 esac 14149 ;; 14150 14151 mingw* | pw32* | os2*) 14152 # This hack is so that the source file can tell whether it is being 14153 # built for inclusion in a dll (and should export symbols for example). 14154 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14155 ;; 14156 14157 hpux9* | hpux10* | hpux11*) 14158 lt_prog_compiler_wl_F77='-Wl,' 14159 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14160 # not for PA HP-UX. 14161 case $host_cpu in 14162 hppa*64*|ia64*) 14163 # +Z the default 14164 ;; 14165 *) 14166 lt_prog_compiler_pic_F77='+Z' 14167 ;; 14168 esac 14169 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14170 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 14171 ;; 14172 14173 irix5* | irix6* | nonstopux*) 14174 lt_prog_compiler_wl_F77='-Wl,' 14175 # PIC (with -KPIC) is the default. 14176 lt_prog_compiler_static_F77='-non_shared' 14177 ;; 14178 14179 newsos6) 14180 lt_prog_compiler_pic_F77='-KPIC' 14181 lt_prog_compiler_static_F77='-Bstatic' 14182 ;; 14183 14184 linux*) 14185 case $cc_basename in 14186 icc* | ecc*) 14187 lt_prog_compiler_wl_F77='-Wl,' 14188 lt_prog_compiler_pic_F77='-KPIC' 14189 lt_prog_compiler_static_F77='-static' 14190 ;; 14191 pgcc* | pgf77* | pgf90* | pgf95*) 14192 # Portland Group compilers (*not* the Pentium gcc compiler, 14193 # which looks to be a dead project) 14194 lt_prog_compiler_wl_F77='-Wl,' 14195 lt_prog_compiler_pic_F77='-fpic' 14196 lt_prog_compiler_static_F77='-Bstatic' 14197 ;; 14198 ccc*) 14199 lt_prog_compiler_wl_F77='-Wl,' 14200 # All Alpha code is PIC. 14201 lt_prog_compiler_static_F77='-non_shared' 14202 ;; 14203 esac 14204 ;; 14205 14206 osf3* | osf4* | osf5*) 14207 lt_prog_compiler_wl_F77='-Wl,' 14208 # All OSF/1 code is PIC. 14209 lt_prog_compiler_static_F77='-non_shared' 14210 ;; 14211 14212 solaris*) 14213 lt_prog_compiler_pic_F77='-KPIC' 14214 lt_prog_compiler_static_F77='-Bstatic' 14215 case $cc_basename in 14216 f77* | f90* | f95*) 14217 lt_prog_compiler_wl_F77='-Qoption ld ';; 14218 *) 14219 lt_prog_compiler_wl_F77='-Wl,';; 14220 esac 14221 ;; 14222 14223 sunos4*) 14224 lt_prog_compiler_wl_F77='-Qoption ld ' 14225 lt_prog_compiler_pic_F77='-PIC' 14226 lt_prog_compiler_static_F77='-Bstatic' 14227 ;; 14228 14229 sysv4 | sysv4.2uw2* | sysv4.3*) 14230 lt_prog_compiler_wl_F77='-Wl,' 14231 lt_prog_compiler_pic_F77='-KPIC' 14232 lt_prog_compiler_static_F77='-Bstatic' 14233 ;; 14234 14235 sysv4*MP*) 14236 if test -d /usr/nec ;then 14237 lt_prog_compiler_pic_F77='-Kconform_pic' 14238 lt_prog_compiler_static_F77='-Bstatic' 14239 fi 14240 ;; 14241 14242 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14243 lt_prog_compiler_wl_F77='-Wl,' 14244 lt_prog_compiler_pic_F77='-KPIC' 14245 lt_prog_compiler_static_F77='-Bstatic' 14246 ;; 14247 14248 unicos*) 14249 lt_prog_compiler_wl_F77='-Wl,' 14250 lt_prog_compiler_can_build_shared_F77=no 14251 ;; 14252 14253 uts4*) 14254 lt_prog_compiler_pic_F77='-pic' 14255 lt_prog_compiler_static_F77='-Bstatic' 14256 ;; 14257 14258 *) 14259 lt_prog_compiler_can_build_shared_F77=no 14260 ;; 14261 esac 14262 fi 14263 14264echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 14265echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 14266 14267# 14268# Check to make sure the PIC flag actually works. 14269# 14270if test -n "$lt_prog_compiler_pic_F77"; then 14271 14272echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 14273echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 14274if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 14275 echo $ECHO_N "(cached) $ECHO_C" >&6 14276else 14277 lt_prog_compiler_pic_works_F77=no 14278 ac_outfile=conftest.$ac_objext 14279 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14280 lt_compiler_flag="$lt_prog_compiler_pic_F77" 14281 # Insert the option either (1) after the last *FLAGS variable, or 14282 # (2) before a word containing "conftest.", or (3) at the end. 14283 # Note that $ac_compile itself does not contain backslashes and begins 14284 # with a dollar sign (not a hyphen), so the echo should work correctly. 14285 # The option is referenced via a variable to avoid confusing sed. 14286 lt_compile=`echo "$ac_compile" | $SED \ 14287 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14288 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14289 -e 's:$: $lt_compiler_flag:'` 14290 (eval echo "\"\$as_me:14290: $lt_compile\"" >&5) 14291 (eval "$lt_compile" 2>conftest.err) 14292 ac_status=$? 14293 cat conftest.err >&5 14294 echo "$as_me:14294: \$? = $ac_status" >&5 14295 if (exit $ac_status) && test -s "$ac_outfile"; then 14296 # The compiler can only warn and ignore the option if not recognized 14297 # So say no if there are warnings other than the usual output. 14298 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14299 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14300 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14301 lt_prog_compiler_pic_works_F77=yes 14302 fi 14303 fi 14304 $rm conftest* 14305 14306fi 14307echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 14308echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 14309 14310if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 14311 case $lt_prog_compiler_pic_F77 in 14312 "" | " "*) ;; 14313 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 14314 esac 14315else 14316 lt_prog_compiler_pic_F77= 14317 lt_prog_compiler_can_build_shared_F77=no 14318fi 14319 14320fi 14321case $host_os in 14322 # For platforms which do not support PIC, -DPIC is meaningless: 14323 *djgpp*) 14324 lt_prog_compiler_pic_F77= 14325 ;; 14326 *) 14327 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 14328 ;; 14329esac 14330 14331# 14332# Check to make sure the static flag actually works. 14333# 14334wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 14335echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14336echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 14337if test "${lt_prog_compiler_static_works_F77+set}" = set; then 14338 echo $ECHO_N "(cached) $ECHO_C" >&6 14339else 14340 lt_prog_compiler_static_works_F77=no 14341 save_LDFLAGS="$LDFLAGS" 14342 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14343 printf "$lt_simple_link_test_code" > conftest.$ac_ext 14344 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14345 # The linker can only warn and ignore the option if not recognized 14346 # So say no if there are warnings 14347 if test -s conftest.err; then 14348 # Append any errors to the config.log. 14349 cat conftest.err 1>&5 14350 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 14351 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14352 if diff conftest.exp conftest.er2 >/dev/null; then 14353 lt_prog_compiler_static_works_F77=yes 14354 fi 14355 else 14356 lt_prog_compiler_static_works_F77=yes 14357 fi 14358 fi 14359 $rm conftest* 14360 LDFLAGS="$save_LDFLAGS" 14361 14362fi 14363echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 14364echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6 14365 14366if test x"$lt_prog_compiler_static_works_F77" = xyes; then 14367 : 14368else 14369 lt_prog_compiler_static_F77= 14370fi 14371 14372 14373echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14374echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 14375if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 14376 echo $ECHO_N "(cached) $ECHO_C" >&6 14377else 14378 lt_cv_prog_compiler_c_o_F77=no 14379 $rm -r conftest 2>/dev/null 14380 mkdir conftest 14381 cd conftest 14382 mkdir out 14383 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14384 14385 lt_compiler_flag="-o out/conftest2.$ac_objext" 14386 # Insert the option either (1) after the last *FLAGS variable, or 14387 # (2) before a word containing "conftest.", or (3) at the end. 14388 # Note that $ac_compile itself does not contain backslashes and begins 14389 # with a dollar sign (not a hyphen), so the echo should work correctly. 14390 lt_compile=`echo "$ac_compile" | $SED \ 14391 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14392 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14393 -e 's:$: $lt_compiler_flag:'` 14394 (eval echo "\"\$as_me:14394: $lt_compile\"" >&5) 14395 (eval "$lt_compile" 2>out/conftest.err) 14396 ac_status=$? 14397 cat out/conftest.err >&5 14398 echo "$as_me:14398: \$? = $ac_status" >&5 14399 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14400 then 14401 # The compiler can only warn and ignore the option if not recognized 14402 # So say no if there are warnings 14403 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14404 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14405 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14406 lt_cv_prog_compiler_c_o_F77=yes 14407 fi 14408 fi 14409 chmod u+w . 2>&5 14410 $rm conftest* 14411 # SGI C++ compiler will create directory out/ii_files/ for 14412 # template instantiation 14413 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14414 $rm out/* && rmdir out 14415 cd .. 14416 rmdir conftest 14417 $rm conftest* 14418 14419fi 14420echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 14421echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 14422 14423 14424hard_links="nottested" 14425if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14426 # do not overwrite the value of need_locks provided by the user 14427 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14428echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 14429 hard_links=yes 14430 $rm conftest* 14431 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14432 touch conftest.a 14433 ln conftest.a conftest.b 2>&5 || hard_links=no 14434 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14435 echo "$as_me:$LINENO: result: $hard_links" >&5 14436echo "${ECHO_T}$hard_links" >&6 14437 if test "$hard_links" = no; then 14438 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14439echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14440 need_locks=warn 14441 fi 14442else 14443 need_locks=no 14444fi 14445 14446echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14447echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 14448 14449 runpath_var= 14450 allow_undefined_flag_F77= 14451 enable_shared_with_static_runtimes_F77=no 14452 archive_cmds_F77= 14453 archive_expsym_cmds_F77= 14454 old_archive_From_new_cmds_F77= 14455 old_archive_from_expsyms_cmds_F77= 14456 export_dynamic_flag_spec_F77= 14457 whole_archive_flag_spec_F77= 14458 thread_safe_flag_spec_F77= 14459 hardcode_libdir_flag_spec_F77= 14460 hardcode_libdir_flag_spec_ld_F77= 14461 hardcode_libdir_separator_F77= 14462 hardcode_direct_F77=no 14463 hardcode_minus_L_F77=no 14464 hardcode_shlibpath_var_F77=unsupported 14465 link_all_deplibs_F77=unknown 14466 hardcode_automatic_F77=no 14467 module_cmds_F77= 14468 module_expsym_cmds_F77= 14469 always_export_symbols_F77=no 14470 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14471 # include_expsyms should be a list of space-separated symbols to be *always* 14472 # included in the symbol list 14473 include_expsyms_F77= 14474 # exclude_expsyms can be an extended regexp of symbols to exclude 14475 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14476 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14477 # as well as any symbol that contains `d'. 14478 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 14479 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14480 # platforms (ab)use it in PIC code, but their linkers get confused if 14481 # the symbol is explicitly referenced. Since portable code cannot 14482 # rely on this symbol name, it's probably fine to never include it in 14483 # preloaded symbol tables. 14484 extract_expsyms_cmds= 14485 # Just being paranoid about ensuring that cc_basename is set. 14486 for cc_temp in $compiler""; do 14487 case $cc_temp in 14488 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14489 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14490 \-*) ;; 14491 *) break;; 14492 esac 14493done 14494cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14495 14496 case $host_os in 14497 cygwin* | mingw* | pw32*) 14498 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14499 # When not using gcc, we currently assume that we are using 14500 # Microsoft Visual C++. 14501 if test "$GCC" != yes; then 14502 with_gnu_ld=no 14503 fi 14504 ;; 14505 interix*) 14506 # we just hope/assume this is gcc and not c89 (= MSVC++) 14507 with_gnu_ld=yes 14508 ;; 14509 openbsd*) 14510 with_gnu_ld=no 14511 ;; 14512 esac 14513 14514 ld_shlibs_F77=yes 14515 if test "$with_gnu_ld" = yes; then 14516 # If archive_cmds runs LD, not CC, wlarc should be empty 14517 wlarc='${wl}' 14518 14519 # Set some defaults for GNU ld with shared library support. These 14520 # are reset later if shared libraries are not supported. Putting them 14521 # here allows them to be overridden if necessary. 14522 runpath_var=LD_RUN_PATH 14523 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14524 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14525 # ancient GNU ld didn't support --whole-archive et. al. 14526 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14527 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14528 else 14529 whole_archive_flag_spec_F77= 14530 fi 14531 supports_anon_versioning=no 14532 case `$LD -v 2>/dev/null` in 14533 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14534 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14535 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14536 *\ 2.11.*) ;; # other 2.11 versions 14537 *) supports_anon_versioning=yes ;; 14538 esac 14539 14540 # See if GNU ld supports shared libraries. 14541 case $host_os in 14542 aix3* | aix4* | aix5*) 14543 # On AIX/PPC, the GNU linker is very broken 14544 if test "$host_cpu" != ia64; then 14545 ld_shlibs_F77=no 14546 cat <<EOF 1>&2 14547 14548*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14549*** to be unable to reliably create shared libraries on AIX. 14550*** Therefore, libtool is disabling shared libraries support. If you 14551*** really care for shared libraries, you may want to modify your PATH 14552*** so that a non-GNU linker is found, and then restart. 14553 14554EOF 14555 fi 14556 ;; 14557 14558 amigaos*) 14559 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)' 14560 hardcode_libdir_flag_spec_F77='-L$libdir' 14561 hardcode_minus_L_F77=yes 14562 14563 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14564 # that the semantics of dynamic libraries on AmigaOS, at least up 14565 # to version 4, is to share data among multiple programs linked 14566 # with the same dynamic library. Since this doesn't match the 14567 # behavior of shared libraries on other platforms, we can't use 14568 # them. 14569 ld_shlibs_F77=no 14570 ;; 14571 14572 beos*) 14573 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14574 allow_undefined_flag_F77=unsupported 14575 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14576 # support --undefined. This deserves some investigation. FIXME 14577 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14578 else 14579 ld_shlibs_F77=no 14580 fi 14581 ;; 14582 14583 cygwin* | mingw* | pw32*) 14584 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14585 # as there is no search path for DLLs. 14586 hardcode_libdir_flag_spec_F77='-L$libdir' 14587 allow_undefined_flag_F77=unsupported 14588 always_export_symbols_F77=no 14589 enable_shared_with_static_runtimes_F77=yes 14590 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 14591 14592 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14593 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14594 # If the export-symbols file already is a .def file (1st line 14595 # is EXPORTS), use it as is; otherwise, prepend... 14596 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14597 cp $export_symbols $output_objdir/$soname.def; 14598 else 14599 echo EXPORTS > $output_objdir/$soname.def; 14600 cat $export_symbols >> $output_objdir/$soname.def; 14601 fi~ 14602 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14603 else 14604 ld_shlibs_F77=no 14605 fi 14606 ;; 14607 14608 interix3*) 14609 hardcode_direct_F77=no 14610 hardcode_shlibpath_var_F77=no 14611 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14612 export_dynamic_flag_spec_F77='${wl}-E' 14613 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14614 # Instead, shared libraries are loaded at an image base (0x10000000 by 14615 # default) and relocated if they conflict, which is a slow very memory 14616 # consuming and fragmenting process. To avoid this, we pick a random, 14617 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14618 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14619 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' 14620 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' 14621 ;; 14622 14623 linux*) 14624 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14625 tmp_addflag= 14626 case $cc_basename,$host_cpu in 14627 pgcc*) # Portland Group C compiler 14628 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' 14629 tmp_addflag=' $pic_flag' 14630 ;; 14631 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14632 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' 14633 tmp_addflag=' $pic_flag -Mnomain' ;; 14634 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14635 tmp_addflag=' -i_dynamic' ;; 14636 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14637 tmp_addflag=' -i_dynamic -nofor_main' ;; 14638 ifc* | ifort*) # Intel Fortran compiler 14639 tmp_addflag=' -nofor_main' ;; 14640 esac 14641 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14642 14643 if test $supports_anon_versioning = yes; then 14644 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 14645 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14646 $echo "local: *; };" >> $output_objdir/$libname.ver~ 14647 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14648 fi 14649 else 14650 ld_shlibs_F77=no 14651 fi 14652 ;; 14653 14654 netbsd*) 14655 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14656 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14657 wlarc= 14658 else 14659 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14660 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14661 fi 14662 ;; 14663 14664 solaris*) 14665 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14666 ld_shlibs_F77=no 14667 cat <<EOF 1>&2 14668 14669*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14670*** create shared libraries on Solaris systems. Therefore, libtool 14671*** is disabling shared libraries support. We urge you to upgrade GNU 14672*** binutils to release 2.9.1 or newer. Another option is to modify 14673*** your PATH or compiler configuration so that the native linker is 14674*** used, and then restart. 14675 14676EOF 14677 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14678 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14679 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14680 else 14681 ld_shlibs_F77=no 14682 fi 14683 ;; 14684 14685 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 14686 case `$LD -v 2>&1` in 14687 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 14688 ld_shlibs_F77=no 14689 cat <<_LT_EOF 1>&2 14690 14691*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 14692*** reliably create shared libraries on SCO systems. Therefore, libtool 14693*** is disabling shared libraries support. We urge you to upgrade GNU 14694*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 14695*** your PATH or compiler configuration so that the native linker is 14696*** used, and then restart. 14697 14698_LT_EOF 14699 ;; 14700 *) 14701 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14702 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 14703 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 14704 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 14705 else 14706 ld_shlibs_F77=no 14707 fi 14708 ;; 14709 esac 14710 ;; 14711 14712 sunos4*) 14713 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14714 wlarc= 14715 hardcode_direct_F77=yes 14716 hardcode_shlibpath_var_F77=no 14717 ;; 14718 14719 *) 14720 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14721 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14722 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14723 else 14724 ld_shlibs_F77=no 14725 fi 14726 ;; 14727 esac 14728 14729 if test "$ld_shlibs_F77" = no; then 14730 runpath_var= 14731 hardcode_libdir_flag_spec_F77= 14732 export_dynamic_flag_spec_F77= 14733 whole_archive_flag_spec_F77= 14734 fi 14735 else 14736 # PORTME fill in a description of your system's linker (not GNU ld) 14737 case $host_os in 14738 aix3*) 14739 allow_undefined_flag_F77=unsupported 14740 always_export_symbols_F77=yes 14741 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' 14742 # Note: this linker hardcodes the directories in LIBPATH if there 14743 # are no directories specified by -L. 14744 hardcode_minus_L_F77=yes 14745 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 14746 # Neither direct hardcoding nor static linking is supported with a 14747 # broken collect2. 14748 hardcode_direct_F77=unsupported 14749 fi 14750 ;; 14751 14752 aix4* | aix5*) 14753 if test "$host_cpu" = ia64; then 14754 # On IA64, the linker does run time linking by default, so we don't 14755 # have to do anything special. 14756 aix_use_runtimelinking=no 14757 exp_sym_flag='-Bexport' 14758 no_entry_flag="" 14759 else 14760 # If we're using GNU nm, then we don't want the "-C" option. 14761 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14762 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 14763 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' 14764 else 14765 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' 14766 fi 14767 aix_use_runtimelinking=no 14768 14769 # Test if we are trying to use run time linking or normal 14770 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14771 # need to do runtime linking. 14772 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 14773 for ld_flag in $LDFLAGS; do 14774 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 14775 aix_use_runtimelinking=yes 14776 break 14777 fi 14778 done 14779 ;; 14780 esac 14781 14782 exp_sym_flag='-bexport' 14783 no_entry_flag='-bnoentry' 14784 fi 14785 14786 # When large executables or shared objects are built, AIX ld can 14787 # have problems creating the table of contents. If linking a library 14788 # or program results in "error TOC overflow" add -mminimal-toc to 14789 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14790 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14791 14792 archive_cmds_F77='' 14793 hardcode_direct_F77=yes 14794 hardcode_libdir_separator_F77=':' 14795 link_all_deplibs_F77=yes 14796 14797 if test "$GCC" = yes; then 14798 case $host_os in aix4.[012]|aix4.[012].*) 14799 # We only want to do this on AIX 4.2 and lower, the check 14800 # below for broken collect2 doesn't work under 4.3+ 14801 collect2name=`${CC} -print-prog-name=collect2` 14802 if test -f "$collect2name" && \ 14803 strings "$collect2name" | grep resolve_lib_name >/dev/null 14804 then 14805 # We have reworked collect2 14806 hardcode_direct_F77=yes 14807 else 14808 # We have old collect2 14809 hardcode_direct_F77=unsupported 14810 # It fails to find uninstalled libraries when the uninstalled 14811 # path is not listed in the libpath. Setting hardcode_minus_L 14812 # to unsupported forces relinking 14813 hardcode_minus_L_F77=yes 14814 hardcode_libdir_flag_spec_F77='-L$libdir' 14815 hardcode_libdir_separator_F77= 14816 fi 14817 ;; 14818 esac 14819 shared_flag='-shared' 14820 if test "$aix_use_runtimelinking" = yes; then 14821 shared_flag="$shared_flag "'${wl}-G' 14822 fi 14823 else 14824 # not using gcc 14825 if test "$host_cpu" = ia64; then 14826 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14827 # chokes on -Wl,-G. The following line is correct: 14828 shared_flag='-G' 14829 else 14830 if test "$aix_use_runtimelinking" = yes; then 14831 shared_flag='${wl}-G' 14832 else 14833 shared_flag='${wl}-bM:SRE' 14834 fi 14835 fi 14836 fi 14837 14838 # It seems that -bexpall does not export symbols beginning with 14839 # underscore (_), so it is better to generate a list of symbols to export. 14840 always_export_symbols_F77=yes 14841 if test "$aix_use_runtimelinking" = yes; then 14842 # Warning - without using the other runtime loading flags (-brtl), 14843 # -berok will link without error, but may produce a broken library. 14844 allow_undefined_flag_F77='-berok' 14845 # Determine the default libpath from the value encoded in an empty executable. 14846 cat >conftest.$ac_ext <<_ACEOF 14847 program main 14848 14849 end 14850_ACEOF 14851rm -f conftest.$ac_objext conftest$ac_exeext 14852if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14853 (eval $ac_link) 2>conftest.er1 14854 ac_status=$? 14855 grep -v '^ *+' conftest.er1 >conftest.err 14856 rm -f conftest.er1 14857 cat conftest.err >&5 14858 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14859 (exit $ac_status); } && 14860 { ac_try='test -z "$ac_f77_werror_flag" 14861 || test ! -s conftest.err' 14862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14863 (eval $ac_try) 2>&5 14864 ac_status=$? 14865 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14866 (exit $ac_status); }; } && 14867 { ac_try='test -s conftest$ac_exeext' 14868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14869 (eval $ac_try) 2>&5 14870 ac_status=$? 14871 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14872 (exit $ac_status); }; }; then 14873 14874aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14875}'` 14876# Check for a 64-bit object if we didn't find anything. 14877if 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; } 14878}'`; fi 14879else 14880 echo "$as_me: failed program was:" >&5 14881sed 's/^/| /' conftest.$ac_ext >&5 14882 14883fi 14884rm -f conftest.err conftest.$ac_objext \ 14885 conftest$ac_exeext conftest.$ac_ext 14886if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14887 14888 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14889 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" 14890 else 14891 if test "$host_cpu" = ia64; then 14892 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 14893 allow_undefined_flag_F77="-z nodefs" 14894 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" 14895 else 14896 # Determine the default libpath from the value encoded in an empty executable. 14897 cat >conftest.$ac_ext <<_ACEOF 14898 program main 14899 14900 end 14901_ACEOF 14902rm -f conftest.$ac_objext conftest$ac_exeext 14903if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14904 (eval $ac_link) 2>conftest.er1 14905 ac_status=$? 14906 grep -v '^ *+' conftest.er1 >conftest.err 14907 rm -f conftest.er1 14908 cat conftest.err >&5 14909 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14910 (exit $ac_status); } && 14911 { ac_try='test -z "$ac_f77_werror_flag" 14912 || test ! -s conftest.err' 14913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14914 (eval $ac_try) 2>&5 14915 ac_status=$? 14916 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14917 (exit $ac_status); }; } && 14918 { ac_try='test -s conftest$ac_exeext' 14919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14920 (eval $ac_try) 2>&5 14921 ac_status=$? 14922 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14923 (exit $ac_status); }; }; then 14924 14925aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14926}'` 14927# Check for a 64-bit object if we didn't find anything. 14928if 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; } 14929}'`; fi 14930else 14931 echo "$as_me: failed program was:" >&5 14932sed 's/^/| /' conftest.$ac_ext >&5 14933 14934fi 14935rm -f conftest.err conftest.$ac_objext \ 14936 conftest$ac_exeext conftest.$ac_ext 14937if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14938 14939 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14940 # Warning - without using the other run time loading flags, 14941 # -berok will link without error, but may produce a broken library. 14942 no_undefined_flag_F77=' ${wl}-bernotok' 14943 allow_undefined_flag_F77=' ${wl}-berok' 14944 # Exported symbols can be pulled into shared objects from archives 14945 whole_archive_flag_spec_F77='$convenience' 14946 archive_cmds_need_lc_F77=yes 14947 # This is similar to how AIX traditionally builds its shared libraries. 14948 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' 14949 fi 14950 fi 14951 ;; 14952 14953 amigaos*) 14954 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)' 14955 hardcode_libdir_flag_spec_F77='-L$libdir' 14956 hardcode_minus_L_F77=yes 14957 # see comment about different semantics on the GNU ld section 14958 ld_shlibs_F77=no 14959 ;; 14960 14961 bsdi[45]*) 14962 export_dynamic_flag_spec_F77=-rdynamic 14963 ;; 14964 14965 cygwin* | mingw* | pw32*) 14966 # When not using gcc, we currently assume that we are using 14967 # Microsoft Visual C++. 14968 # hardcode_libdir_flag_spec is actually meaningless, as there is 14969 # no search path for DLLs. 14970 hardcode_libdir_flag_spec_F77=' ' 14971 allow_undefined_flag_F77=unsupported 14972 # Tell ltmain to make .lib files, not .a files. 14973 libext=lib 14974 # Tell ltmain to make .dll files, not .so files. 14975 shrext_cmds=".dll" 14976 # FIXME: Setting linknames here is a bad hack. 14977 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 14978 # The linker will automatically build a .lib file if we build a DLL. 14979 old_archive_From_new_cmds_F77='true' 14980 # FIXME: Should let the user specify the lib program. 14981 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 14982 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 14983 enable_shared_with_static_runtimes_F77=yes 14984 ;; 14985 14986 darwin* | rhapsody*) 14987 case $host_os in 14988 rhapsody* | darwin1.[012]) 14989 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 14990 ;; 14991 *) # Darwin 1.3 on 14992 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 14993 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14994 else 14995 case ${MACOSX_DEPLOYMENT_TARGET} in 14996 10.[012]) 14997 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14998 ;; 14999 10.*) 15000 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 15001 ;; 15002 esac 15003 fi 15004 ;; 15005 esac 15006 archive_cmds_need_lc_F77=no 15007 hardcode_direct_F77=no 15008 hardcode_automatic_F77=yes 15009 hardcode_shlibpath_var_F77=unsupported 15010 whole_archive_flag_spec_F77='' 15011 link_all_deplibs_F77=yes 15012 if test "$GCC" = yes ; then 15013 output_verbose_link_cmd='echo' 15014 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 15015 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15016 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15017 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}' 15018 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}' 15019 else 15020 case $cc_basename in 15021 xlc*) 15022 output_verbose_link_cmd='echo' 15023 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 15024 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15025 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15026 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}' 15027 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}' 15028 ;; 15029 *) 15030 ld_shlibs_F77=no 15031 ;; 15032 esac 15033 fi 15034 ;; 15035 15036 dgux*) 15037 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15038 hardcode_libdir_flag_spec_F77='-L$libdir' 15039 hardcode_shlibpath_var_F77=no 15040 ;; 15041 15042 freebsd1*) 15043 ld_shlibs_F77=no 15044 ;; 15045 15046 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15047 # support. Future versions do this automatically, but an explicit c++rt0.o 15048 # does not break anything, and helps significantly (at the cost of a little 15049 # extra space). 15050 freebsd2.2*) 15051 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15052 hardcode_libdir_flag_spec_F77='-R$libdir' 15053 hardcode_direct_F77=yes 15054 hardcode_shlibpath_var_F77=no 15055 ;; 15056 15057 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15058 freebsd2*) 15059 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15060 hardcode_direct_F77=yes 15061 hardcode_minus_L_F77=yes 15062 hardcode_shlibpath_var_F77=no 15063 ;; 15064 15065 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15066 freebsd* | kfreebsd*-gnu | dragonfly*) 15067 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 15068 hardcode_libdir_flag_spec_F77='-R$libdir' 15069 hardcode_direct_F77=yes 15070 hardcode_shlibpath_var_F77=no 15071 ;; 15072 15073 hpux9*) 15074 if test "$GCC" = yes; then 15075 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' 15076 else 15077 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' 15078 fi 15079 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15080 hardcode_libdir_separator_F77=: 15081 hardcode_direct_F77=yes 15082 15083 # hardcode_minus_L: Not really in the search PATH, 15084 # but as the default location of the library. 15085 hardcode_minus_L_F77=yes 15086 export_dynamic_flag_spec_F77='${wl}-E' 15087 ;; 15088 15089 hpux10*) 15090 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15091 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15092 else 15093 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15094 fi 15095 if test "$with_gnu_ld" = no; then 15096 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15097 hardcode_libdir_separator_F77=: 15098 15099 hardcode_direct_F77=yes 15100 export_dynamic_flag_spec_F77='${wl}-E' 15101 15102 # hardcode_minus_L: Not really in the search PATH, 15103 # but as the default location of the library. 15104 hardcode_minus_L_F77=yes 15105 fi 15106 ;; 15107 15108 hpux11*) 15109 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15110 case $host_cpu in 15111 hppa*64*) 15112 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15113 ;; 15114 ia64*) 15115 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15116 ;; 15117 *) 15118 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15119 ;; 15120 esac 15121 else 15122 case $host_cpu in 15123 hppa*64*) 15124 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15125 ;; 15126 ia64*) 15127 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15128 ;; 15129 *) 15130 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15131 ;; 15132 esac 15133 fi 15134 if test "$with_gnu_ld" = no; then 15135 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15136 hardcode_libdir_separator_F77=: 15137 15138 case $host_cpu in 15139 hppa*64*|ia64*) 15140 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 15141 hardcode_direct_F77=no 15142 hardcode_shlibpath_var_F77=no 15143 ;; 15144 *) 15145 hardcode_direct_F77=yes 15146 export_dynamic_flag_spec_F77='${wl}-E' 15147 15148 # hardcode_minus_L: Not really in the search PATH, 15149 # but as the default location of the library. 15150 hardcode_minus_L_F77=yes 15151 ;; 15152 esac 15153 fi 15154 ;; 15155 15156 irix5* | irix6* | nonstopux*) 15157 if test "$GCC" = yes; then 15158 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' 15159 else 15160 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' 15161 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 15162 fi 15163 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15164 hardcode_libdir_separator_F77=: 15165 link_all_deplibs_F77=yes 15166 ;; 15167 15168 netbsd*) 15169 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15170 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15171 else 15172 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15173 fi 15174 hardcode_libdir_flag_spec_F77='-R$libdir' 15175 hardcode_direct_F77=yes 15176 hardcode_shlibpath_var_F77=no 15177 ;; 15178 15179 newsos6) 15180 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15181 hardcode_direct_F77=yes 15182 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15183 hardcode_libdir_separator_F77=: 15184 hardcode_shlibpath_var_F77=no 15185 ;; 15186 15187 openbsd*) 15188 hardcode_direct_F77=yes 15189 hardcode_shlibpath_var_F77=no 15190 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15191 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15192 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 15193 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15194 export_dynamic_flag_spec_F77='${wl}-E' 15195 else 15196 case $host_os in 15197 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15198 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15199 hardcode_libdir_flag_spec_F77='-R$libdir' 15200 ;; 15201 *) 15202 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15203 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15204 ;; 15205 esac 15206 fi 15207 ;; 15208 15209 os2*) 15210 hardcode_libdir_flag_spec_F77='-L$libdir' 15211 hardcode_minus_L_F77=yes 15212 allow_undefined_flag_F77=unsupported 15213 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' 15214 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15215 ;; 15216 15217 osf3*) 15218 if test "$GCC" = yes; then 15219 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15220 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' 15221 else 15222 allow_undefined_flag_F77=' -expect_unresolved \*' 15223 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' 15224 fi 15225 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15226 hardcode_libdir_separator_F77=: 15227 ;; 15228 15229 osf4* | osf5*) # as osf3* with the addition of -msym flag 15230 if test "$GCC" = yes; then 15231 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15232 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' 15233 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15234 else 15235 allow_undefined_flag_F77=' -expect_unresolved \*' 15236 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' 15237 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~ 15238 $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' 15239 15240 # Both c and cxx compiler support -rpath directly 15241 hardcode_libdir_flag_spec_F77='-rpath $libdir' 15242 fi 15243 hardcode_libdir_separator_F77=: 15244 ;; 15245 15246 solaris*) 15247 no_undefined_flag_F77=' -z text' 15248 if test "$GCC" = yes; then 15249 wlarc='${wl}' 15250 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15251 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15252 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 15253 else 15254 wlarc='' 15255 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15256 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15257 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15258 fi 15259 hardcode_libdir_flag_spec_F77='-R$libdir' 15260 hardcode_shlibpath_var_F77=no 15261 case $host_os in 15262 solaris2.[0-5] | solaris2.[0-5].*) ;; 15263 *) 15264 # The compiler driver will combine linker options so we 15265 # cannot just pass the convience library names through 15266 # without $wl, iff we do not link with $LD. 15267 # Luckily, gcc supports the same syntax we need for Sun Studio. 15268 # Supported since Solaris 2.6 (maybe 2.5.1?) 15269 case $wlarc in 15270 '') 15271 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 15272 *) 15273 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' ;; 15274 esac ;; 15275 esac 15276 link_all_deplibs_F77=yes 15277 ;; 15278 15279 sunos4*) 15280 if test "x$host_vendor" = xsequent; then 15281 # Use $CC to link under sequent, because it throws in some extra .o 15282 # files that make .init and .fini sections work. 15283 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15284 else 15285 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15286 fi 15287 hardcode_libdir_flag_spec_F77='-L$libdir' 15288 hardcode_direct_F77=yes 15289 hardcode_minus_L_F77=yes 15290 hardcode_shlibpath_var_F77=no 15291 ;; 15292 15293 sysv4) 15294 case $host_vendor in 15295 sni) 15296 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15297 hardcode_direct_F77=yes # is this really true??? 15298 ;; 15299 siemens) 15300 ## LD is ld it makes a PLAMLIB 15301 ## CC just makes a GrossModule. 15302 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15303 reload_cmds_F77='$CC -r -o $output$reload_objs' 15304 hardcode_direct_F77=no 15305 ;; 15306 motorola) 15307 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15308 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 15309 ;; 15310 esac 15311 runpath_var='LD_RUN_PATH' 15312 hardcode_shlibpath_var_F77=no 15313 ;; 15314 15315 sysv4.3*) 15316 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15317 hardcode_shlibpath_var_F77=no 15318 export_dynamic_flag_spec_F77='-Bexport' 15319 ;; 15320 15321 sysv4*MP*) 15322 if test -d /usr/nec; then 15323 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15324 hardcode_shlibpath_var_F77=no 15325 runpath_var=LD_RUN_PATH 15326 hardcode_runpath_var=yes 15327 ld_shlibs_F77=yes 15328 fi 15329 ;; 15330 15331 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 15332 no_undefined_flag_F77='${wl}-z,text' 15333 archive_cmds_need_lc_F77=no 15334 hardcode_shlibpath_var_F77=no 15335 runpath_var='LD_RUN_PATH' 15336 15337 if test "$GCC" = yes; then 15338 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15339 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15340 else 15341 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15342 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15343 fi 15344 ;; 15345 15346 sysv5* | sco3.2v5* | sco5v6*) 15347 # Note: We can NOT use -z defs as we might desire, because we do not 15348 # link with -lc, and that would cause any symbols used from libc to 15349 # always be unresolved, which means just about no library would 15350 # ever link correctly. If we're not using GNU ld we use -z text 15351 # though, which does catch some bad symbols but isn't as heavy-handed 15352 # as -z defs. 15353 no_undefined_flag_F77='${wl}-z,text' 15354 allow_undefined_flag_F77='${wl}-z,nodefs' 15355 archive_cmds_need_lc_F77=no 15356 hardcode_shlibpath_var_F77=no 15357 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 15358 hardcode_libdir_separator_F77=':' 15359 link_all_deplibs_F77=yes 15360 export_dynamic_flag_spec_F77='${wl}-Bexport' 15361 runpath_var='LD_RUN_PATH' 15362 15363 if test "$GCC" = yes; then 15364 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15365 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15366 else 15367 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15368 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15369 fi 15370 ;; 15371 15372 uts4*) 15373 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15374 hardcode_libdir_flag_spec_F77='-L$libdir' 15375 hardcode_shlibpath_var_F77=no 15376 ;; 15377 15378 *) 15379 ld_shlibs_F77=no 15380 ;; 15381 esac 15382 fi 15383 15384echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 15385echo "${ECHO_T}$ld_shlibs_F77" >&6 15386test "$ld_shlibs_F77" = no && can_build_shared=no 15387 15388# 15389# Do we need to explicitly link libc? 15390# 15391case "x$archive_cmds_need_lc_F77" in 15392x|xyes) 15393 # Assume -lc should be added 15394 archive_cmds_need_lc_F77=yes 15395 15396 if test "$enable_shared" = yes && test "$GCC" = yes; then 15397 case $archive_cmds_F77 in 15398 *'~'*) 15399 # FIXME: we may have to deal with multi-command sequences. 15400 ;; 15401 '$CC '*) 15402 # Test whether the compiler implicitly links with -lc since on some 15403 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15404 # to ld, don't add -lc before -lgcc. 15405 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15406echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 15407 $rm conftest* 15408 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15409 15410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15411 (eval $ac_compile) 2>&5 15412 ac_status=$? 15413 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15414 (exit $ac_status); } 2>conftest.err; then 15415 soname=conftest 15416 lib=conftest 15417 libobjs=conftest.$ac_objext 15418 deplibs= 15419 wl=$lt_prog_compiler_wl_F77 15420 pic_flag=$lt_prog_compiler_pic_F77 15421 compiler_flags=-v 15422 linker_flags=-v 15423 verstring= 15424 output_objdir=. 15425 libname=conftest 15426 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 15427 allow_undefined_flag_F77= 15428 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15429 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15430 ac_status=$? 15431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15432 (exit $ac_status); } 15433 then 15434 archive_cmds_need_lc_F77=no 15435 else 15436 archive_cmds_need_lc_F77=yes 15437 fi 15438 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15439 else 15440 cat conftest.err 1>&5 15441 fi 15442 $rm conftest* 15443 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 15444echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 15445 ;; 15446 esac 15447 fi 15448 ;; 15449esac 15450 15451echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15452echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 15453library_names_spec= 15454libname_spec='lib$name' 15455soname_spec= 15456shrext_cmds=".so" 15457postinstall_cmds= 15458postuninstall_cmds= 15459finish_cmds= 15460finish_eval= 15461shlibpath_var= 15462shlibpath_overrides_runpath=unknown 15463version_type=none 15464dynamic_linker="$host_os ld.so" 15465sys_lib_dlsearch_path_spec="/lib /usr/lib" 15466if test "$GCC" = yes; then 15467 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15468 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 15469 # if the path contains ";" then we assume it to be the separator 15470 # otherwise default to the standard path separator (i.e. ":") - it is 15471 # assumed that no part of a normal pathname contains ";" but that should 15472 # okay in the real world where ";" in dirpaths is itself problematic. 15473 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15474 else 15475 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15476 fi 15477else 15478 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15479fi 15480need_lib_prefix=unknown 15481hardcode_into_libs=no 15482 15483# when you set need_version to no, make sure it does not cause -set_version 15484# flags to be left without arguments 15485need_version=unknown 15486 15487case $host_os in 15488aix3*) 15489 version_type=linux 15490 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15491 shlibpath_var=LIBPATH 15492 15493 # AIX 3 has no versioning support, so we append a major version to the name. 15494 soname_spec='${libname}${release}${shared_ext}$major' 15495 ;; 15496 15497aix4* | aix5*) 15498 version_type=linux 15499 need_lib_prefix=no 15500 need_version=no 15501 hardcode_into_libs=yes 15502 if test "$host_cpu" = ia64; then 15503 # AIX 5 supports IA64 15504 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15505 shlibpath_var=LD_LIBRARY_PATH 15506 else 15507 # With GCC up to 2.95.x, collect2 would create an import file 15508 # for dependence libraries. The import file would start with 15509 # the line `#! .'. This would cause the generated library to 15510 # depend on `.', always an invalid library. This was fixed in 15511 # development snapshots of GCC prior to 3.0. 15512 case $host_os in 15513 aix4 | aix4.[01] | aix4.[01].*) 15514 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15515 echo ' yes ' 15516 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15517 : 15518 else 15519 can_build_shared=no 15520 fi 15521 ;; 15522 esac 15523 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15524 # soname into executable. Probably we can add versioning support to 15525 # collect2, so additional links can be useful in future. 15526 if test "$aix_use_runtimelinking" = yes; then 15527 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15528 # instead of lib<name>.a to let people know that these are not 15529 # typical AIX shared libraries. 15530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15531 else 15532 # We preserve .a as extension for shared libraries through AIX4.2 15533 # and later when we are not doing run time linking. 15534 library_names_spec='${libname}${release}.a $libname.a' 15535 soname_spec='${libname}${release}${shared_ext}$major' 15536 fi 15537 shlibpath_var=LIBPATH 15538 fi 15539 ;; 15540 15541amigaos*) 15542 library_names_spec='$libname.ixlibrary $libname.a' 15543 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15544 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' 15545 ;; 15546 15547beos*) 15548 library_names_spec='${libname}${shared_ext}' 15549 dynamic_linker="$host_os ld.so" 15550 shlibpath_var=LIBRARY_PATH 15551 ;; 15552 15553bsdi[45]*) 15554 version_type=linux 15555 need_version=no 15556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15557 soname_spec='${libname}${release}${shared_ext}$major' 15558 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15559 shlibpath_var=LD_LIBRARY_PATH 15560 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15561 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15562 # the default ld.so.conf also contains /usr/contrib/lib and 15563 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15564 # libtool to hard-code these into programs 15565 ;; 15566 15567cygwin* | mingw* | pw32*) 15568 version_type=windows 15569 shrext_cmds=".dll" 15570 need_version=no 15571 need_lib_prefix=no 15572 15573 case $GCC,$host_os in 15574 yes,cygwin* | yes,mingw* | yes,pw32*) 15575 library_names_spec='$libname.dll.a' 15576 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15577 postinstall_cmds='base_file=`basename \${file}`~ 15578 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15579 dldir=$destdir/`dirname \$dlpath`~ 15580 test -d \$dldir || mkdir -p \$dldir~ 15581 $install_prog $dir/$dlname \$dldir/$dlname~ 15582 chmod a+x \$dldir/$dlname' 15583 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15584 dlpath=$dir/\$dldll~ 15585 $rm \$dlpath' 15586 shlibpath_overrides_runpath=yes 15587 15588 case $host_os in 15589 cygwin*) 15590 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15591 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15592 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15593 ;; 15594 mingw*) 15595 # MinGW DLLs use traditional 'lib' prefix 15596 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15597 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15598 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15599 # It is most probably a Windows format PATH printed by 15600 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15601 # path with ; separators, and with drive letters. We can handle the 15602 # drive letters (cygwin fileutils understands them), so leave them, 15603 # especially as we might pass files found there to a mingw objdump, 15604 # which wouldn't understand a cygwinified path. Ahh. 15605 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15606 else 15607 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15608 fi 15609 ;; 15610 pw32*) 15611 # pw32 DLLs use 'pw' prefix rather than 'lib' 15612 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15613 ;; 15614 esac 15615 ;; 15616 15617 *) 15618 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15619 ;; 15620 esac 15621 dynamic_linker='Win32 ld.exe' 15622 # FIXME: first we should search . and the directory the executable is in 15623 shlibpath_var=PATH 15624 ;; 15625 15626darwin* | rhapsody*) 15627 dynamic_linker="$host_os dyld" 15628 version_type=darwin 15629 need_lib_prefix=no 15630 need_version=no 15631 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15632 soname_spec='${libname}${release}${major}$shared_ext' 15633 shlibpath_overrides_runpath=yes 15634 shlibpath_var=DYLD_LIBRARY_PATH 15635 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15636 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 15637 if test "$GCC" = yes; then 15638 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"` 15639 else 15640 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 15641 fi 15642 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15643 ;; 15644 15645dgux*) 15646 version_type=linux 15647 need_lib_prefix=no 15648 need_version=no 15649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15650 soname_spec='${libname}${release}${shared_ext}$major' 15651 shlibpath_var=LD_LIBRARY_PATH 15652 ;; 15653 15654freebsd1*) 15655 dynamic_linker=no 15656 ;; 15657 15658kfreebsd*-gnu) 15659 version_type=linux 15660 need_lib_prefix=no 15661 need_version=no 15662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15663 soname_spec='${libname}${release}${shared_ext}$major' 15664 shlibpath_var=LD_LIBRARY_PATH 15665 shlibpath_overrides_runpath=no 15666 hardcode_into_libs=yes 15667 dynamic_linker='GNU ld.so' 15668 ;; 15669 15670freebsd* | dragonfly*) 15671 # DragonFly does not have aout. When/if they implement a new 15672 # versioning mechanism, adjust this. 15673 if test -x /usr/bin/objformat; then 15674 objformat=`/usr/bin/objformat` 15675 else 15676 case $host_os in 15677 freebsd[123]*) objformat=aout ;; 15678 *) objformat=elf ;; 15679 esac 15680 fi 15681 version_type=freebsd-$objformat 15682 case $version_type in 15683 freebsd-elf*) 15684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15685 need_version=no 15686 need_lib_prefix=no 15687 ;; 15688 freebsd-*) 15689 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15690 need_version=yes 15691 ;; 15692 esac 15693 shlibpath_var=LD_LIBRARY_PATH 15694 case $host_os in 15695 freebsd2*) 15696 shlibpath_overrides_runpath=yes 15697 ;; 15698 freebsd3.[01]* | freebsdelf3.[01]*) 15699 shlibpath_overrides_runpath=yes 15700 hardcode_into_libs=yes 15701 ;; 15702 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15703 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15704 shlibpath_overrides_runpath=no 15705 hardcode_into_libs=yes 15706 ;; 15707 freebsd*) # from 4.6 on 15708 shlibpath_overrides_runpath=yes 15709 hardcode_into_libs=yes 15710 ;; 15711 esac 15712 ;; 15713 15714gnu*) 15715 version_type=linux 15716 need_lib_prefix=no 15717 need_version=no 15718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15719 soname_spec='${libname}${release}${shared_ext}$major' 15720 shlibpath_var=LD_LIBRARY_PATH 15721 hardcode_into_libs=yes 15722 ;; 15723 15724hpux9* | hpux10* | hpux11*) 15725 # Give a soname corresponding to the major version so that dld.sl refuses to 15726 # link against other versions. 15727 version_type=sunos 15728 need_lib_prefix=no 15729 need_version=no 15730 case $host_cpu in 15731 ia64*) 15732 shrext_cmds='.so' 15733 hardcode_into_libs=yes 15734 dynamic_linker="$host_os dld.so" 15735 shlibpath_var=LD_LIBRARY_PATH 15736 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15738 soname_spec='${libname}${release}${shared_ext}$major' 15739 if test "X$HPUX_IA64_MODE" = X32; then 15740 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15741 else 15742 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15743 fi 15744 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15745 ;; 15746 hppa*64*) 15747 shrext_cmds='.sl' 15748 hardcode_into_libs=yes 15749 dynamic_linker="$host_os dld.sl" 15750 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15751 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15753 soname_spec='${libname}${release}${shared_ext}$major' 15754 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15755 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15756 ;; 15757 *) 15758 shrext_cmds='.sl' 15759 dynamic_linker="$host_os dld.sl" 15760 shlibpath_var=SHLIB_PATH 15761 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15763 soname_spec='${libname}${release}${shared_ext}$major' 15764 ;; 15765 esac 15766 # HP-UX runs *really* slowly unless shared libraries are mode 555. 15767 postinstall_cmds='chmod 555 $lib' 15768 ;; 15769 15770interix3*) 15771 version_type=linux 15772 need_lib_prefix=no 15773 need_version=no 15774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15775 soname_spec='${libname}${release}${shared_ext}$major' 15776 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15777 shlibpath_var=LD_LIBRARY_PATH 15778 shlibpath_overrides_runpath=no 15779 hardcode_into_libs=yes 15780 ;; 15781 15782irix5* | irix6* | nonstopux*) 15783 case $host_os in 15784 nonstopux*) version_type=nonstopux ;; 15785 *) 15786 if test "$lt_cv_prog_gnu_ld" = yes; then 15787 version_type=linux 15788 else 15789 version_type=irix 15790 fi ;; 15791 esac 15792 need_lib_prefix=no 15793 need_version=no 15794 soname_spec='${libname}${release}${shared_ext}$major' 15795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15796 case $host_os in 15797 irix5* | nonstopux*) 15798 libsuff= shlibsuff= 15799 ;; 15800 *) 15801 case $LD in # libtool.m4 will add one of these switches to LD 15802 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15803 libsuff= shlibsuff= libmagic=32-bit;; 15804 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15805 libsuff=32 shlibsuff=N32 libmagic=N32;; 15806 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15807 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15808 *) libsuff= shlibsuff= libmagic=never-match;; 15809 esac 15810 ;; 15811 esac 15812 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15813 shlibpath_overrides_runpath=no 15814 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15815 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15816 hardcode_into_libs=yes 15817 ;; 15818 15819# No shared lib support for Linux oldld, aout, or coff. 15820linux*oldld* | linux*aout* | linux*coff*) 15821 dynamic_linker=no 15822 ;; 15823 15824# This must be Linux ELF. 15825linux*) 15826 version_type=linux 15827 need_lib_prefix=no 15828 need_version=no 15829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15830 soname_spec='${libname}${release}${shared_ext}$major' 15831 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15832 shlibpath_var=LD_LIBRARY_PATH 15833 shlibpath_overrides_runpath=no 15834 # This implies no fast_install, which is unacceptable. 15835 # Some rework will be needed to allow for fast_install 15836 # before this can be enabled. 15837 hardcode_into_libs=yes 15838 15839 # Append ld.so.conf contents to the search path 15840 if test -f /etc/ld.so.conf; then 15841 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' ' '` 15842 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15843 fi 15844 15845 # We used to test for /lib/ld.so.1 and disable shared libraries on 15846 # powerpc, because MkLinux only supported shared libraries with the 15847 # GNU dynamic linker. Since this was broken with cross compilers, 15848 # most powerpc-linux boxes support dynamic linking these days and 15849 # people can always --disable-shared, the test was removed, and we 15850 # assume the GNU/Linux dynamic linker is in use. 15851 dynamic_linker='GNU/Linux ld.so' 15852 ;; 15853 15854knetbsd*-gnu) 15855 version_type=linux 15856 need_lib_prefix=no 15857 need_version=no 15858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15859 soname_spec='${libname}${release}${shared_ext}$major' 15860 shlibpath_var=LD_LIBRARY_PATH 15861 shlibpath_overrides_runpath=no 15862 hardcode_into_libs=yes 15863 dynamic_linker='GNU ld.so' 15864 ;; 15865 15866netbsd*) 15867 version_type=sunos 15868 need_lib_prefix=no 15869 need_version=no 15870 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15872 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15873 dynamic_linker='NetBSD (a.out) ld.so' 15874 else 15875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15876 soname_spec='${libname}${release}${shared_ext}$major' 15877 dynamic_linker='NetBSD ld.elf_so' 15878 fi 15879 shlibpath_var=LD_LIBRARY_PATH 15880 shlibpath_overrides_runpath=yes 15881 hardcode_into_libs=yes 15882 ;; 15883 15884newsos6) 15885 version_type=linux 15886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15887 shlibpath_var=LD_LIBRARY_PATH 15888 shlibpath_overrides_runpath=yes 15889 ;; 15890 15891nto-qnx*) 15892 version_type=linux 15893 need_lib_prefix=no 15894 need_version=no 15895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15896 soname_spec='${libname}${release}${shared_ext}$major' 15897 shlibpath_var=LD_LIBRARY_PATH 15898 shlibpath_overrides_runpath=yes 15899 ;; 15900 15901openbsd*) 15902 version_type=sunos 15903 sys_lib_dlsearch_path_spec="/usr/lib" 15904 need_lib_prefix=no 15905 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15906 case $host_os in 15907 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15908 *) need_version=no ;; 15909 esac 15910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15911 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15912 shlibpath_var=LD_LIBRARY_PATH 15913 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15914 case $host_os in 15915 openbsd2.[89] | openbsd2.[89].*) 15916 shlibpath_overrides_runpath=no 15917 ;; 15918 *) 15919 shlibpath_overrides_runpath=yes 15920 ;; 15921 esac 15922 else 15923 shlibpath_overrides_runpath=yes 15924 fi 15925 ;; 15926 15927os2*) 15928 libname_spec='$name' 15929 shrext_cmds=".dll" 15930 need_lib_prefix=no 15931 library_names_spec='$libname${shared_ext} $libname.a' 15932 dynamic_linker='OS/2 ld.exe' 15933 shlibpath_var=LIBPATH 15934 ;; 15935 15936osf3* | osf4* | osf5*) 15937 version_type=osf 15938 need_lib_prefix=no 15939 need_version=no 15940 soname_spec='${libname}${release}${shared_ext}$major' 15941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15942 shlibpath_var=LD_LIBRARY_PATH 15943 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15944 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15945 ;; 15946 15947solaris*) 15948 version_type=linux 15949 need_lib_prefix=no 15950 need_version=no 15951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15952 soname_spec='${libname}${release}${shared_ext}$major' 15953 shlibpath_var=LD_LIBRARY_PATH 15954 shlibpath_overrides_runpath=yes 15955 hardcode_into_libs=yes 15956 # ldd complains unless libraries are executable 15957 postinstall_cmds='chmod +x $lib' 15958 ;; 15959 15960sunos4*) 15961 version_type=sunos 15962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15963 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15964 shlibpath_var=LD_LIBRARY_PATH 15965 shlibpath_overrides_runpath=yes 15966 if test "$with_gnu_ld" = yes; then 15967 need_lib_prefix=no 15968 fi 15969 need_version=yes 15970 ;; 15971 15972sysv4 | sysv4.3*) 15973 version_type=linux 15974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15975 soname_spec='${libname}${release}${shared_ext}$major' 15976 shlibpath_var=LD_LIBRARY_PATH 15977 case $host_vendor in 15978 sni) 15979 shlibpath_overrides_runpath=no 15980 need_lib_prefix=no 15981 export_dynamic_flag_spec='${wl}-Blargedynsym' 15982 runpath_var=LD_RUN_PATH 15983 ;; 15984 siemens) 15985 need_lib_prefix=no 15986 ;; 15987 motorola) 15988 need_lib_prefix=no 15989 need_version=no 15990 shlibpath_overrides_runpath=no 15991 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15992 ;; 15993 esac 15994 ;; 15995 15996sysv4*MP*) 15997 if test -d /usr/nec ;then 15998 version_type=linux 15999 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16000 soname_spec='$libname${shared_ext}.$major' 16001 shlibpath_var=LD_LIBRARY_PATH 16002 fi 16003 ;; 16004 16005sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16006 version_type=freebsd-elf 16007 need_lib_prefix=no 16008 need_version=no 16009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16010 soname_spec='${libname}${release}${shared_ext}$major' 16011 shlibpath_var=LD_LIBRARY_PATH 16012 hardcode_into_libs=yes 16013 if test "$with_gnu_ld" = yes; then 16014 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16015 shlibpath_overrides_runpath=no 16016 else 16017 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16018 shlibpath_overrides_runpath=yes 16019 case $host_os in 16020 sco3.2v5*) 16021 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16022 ;; 16023 esac 16024 fi 16025 sys_lib_dlsearch_path_spec='/usr/lib' 16026 ;; 16027 16028uts4*) 16029 version_type=linux 16030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16031 soname_spec='${libname}${release}${shared_ext}$major' 16032 shlibpath_var=LD_LIBRARY_PATH 16033 ;; 16034 16035*) 16036 dynamic_linker=no 16037 ;; 16038esac 16039echo "$as_me:$LINENO: result: $dynamic_linker" >&5 16040echo "${ECHO_T}$dynamic_linker" >&6 16041test "$dynamic_linker" = no && can_build_shared=no 16042 16043variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16044if test "$GCC" = yes; then 16045 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16046fi 16047 16048echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 16049echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 16050hardcode_action_F77= 16051if test -n "$hardcode_libdir_flag_spec_F77" || \ 16052 test -n "$runpath_var_F77" || \ 16053 test "X$hardcode_automatic_F77" = "Xyes" ; then 16054 16055 # We can hardcode non-existant directories. 16056 if test "$hardcode_direct_F77" != no && 16057 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16058 # have to relink, otherwise we might link with an installed library 16059 # when we should be linking with a yet-to-be-installed one 16060 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 16061 test "$hardcode_minus_L_F77" != no; then 16062 # Linking always hardcodes the temporary library directory. 16063 hardcode_action_F77=relink 16064 else 16065 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16066 hardcode_action_F77=immediate 16067 fi 16068else 16069 # We cannot hardcode anything, or else we can only hardcode existing 16070 # directories. 16071 hardcode_action_F77=unsupported 16072fi 16073echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 16074echo "${ECHO_T}$hardcode_action_F77" >&6 16075 16076if test "$hardcode_action_F77" = relink; then 16077 # Fast installation is not supported 16078 enable_fast_install=no 16079elif test "$shlibpath_overrides_runpath" = yes || 16080 test "$enable_shared" = no; then 16081 # Fast installation is not necessary 16082 enable_fast_install=needless 16083fi 16084 16085 16086# The else clause should only fire when bootstrapping the 16087# libtool distribution, otherwise you forgot to ship ltmain.sh 16088# with your package, and you will get complaints that there are 16089# no rules to generate ltmain.sh. 16090if test -f "$ltmain"; then 16091 # See if we are running on zsh, and set the options which allow our commands through 16092 # without removal of \ escapes. 16093 if test -n "${ZSH_VERSION+set}" ; then 16094 setopt NO_GLOB_SUBST 16095 fi 16096 # Now quote all the things that may contain metacharacters while being 16097 # careful not to overquote the AC_SUBSTed values. We take copies of the 16098 # variables and quote the copies for generation of the libtool script. 16099 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 16100 SED SHELL STRIP \ 16101 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 16102 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 16103 deplibs_check_method reload_flag reload_cmds need_locks \ 16104 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 16105 lt_cv_sys_global_symbol_to_c_name_address \ 16106 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 16107 old_postinstall_cmds old_postuninstall_cmds \ 16108 compiler_F77 \ 16109 CC_F77 \ 16110 LD_F77 \ 16111 lt_prog_compiler_wl_F77 \ 16112 lt_prog_compiler_pic_F77 \ 16113 lt_prog_compiler_static_F77 \ 16114 lt_prog_compiler_no_builtin_flag_F77 \ 16115 export_dynamic_flag_spec_F77 \ 16116 thread_safe_flag_spec_F77 \ 16117 whole_archive_flag_spec_F77 \ 16118 enable_shared_with_static_runtimes_F77 \ 16119 old_archive_cmds_F77 \ 16120 old_archive_from_new_cmds_F77 \ 16121 predep_objects_F77 \ 16122 postdep_objects_F77 \ 16123 predeps_F77 \ 16124 postdeps_F77 \ 16125 compiler_lib_search_path_F77 \ 16126 archive_cmds_F77 \ 16127 archive_expsym_cmds_F77 \ 16128 postinstall_cmds_F77 \ 16129 postuninstall_cmds_F77 \ 16130 old_archive_from_expsyms_cmds_F77 \ 16131 allow_undefined_flag_F77 \ 16132 no_undefined_flag_F77 \ 16133 export_symbols_cmds_F77 \ 16134 hardcode_libdir_flag_spec_F77 \ 16135 hardcode_libdir_flag_spec_ld_F77 \ 16136 hardcode_libdir_separator_F77 \ 16137 hardcode_automatic_F77 \ 16138 module_cmds_F77 \ 16139 module_expsym_cmds_F77 \ 16140 lt_cv_prog_compiler_c_o_F77 \ 16141 exclude_expsyms_F77 \ 16142 include_expsyms_F77; do 16143 16144 case $var in 16145 old_archive_cmds_F77 | \ 16146 old_archive_from_new_cmds_F77 | \ 16147 archive_cmds_F77 | \ 16148 archive_expsym_cmds_F77 | \ 16149 module_cmds_F77 | \ 16150 module_expsym_cmds_F77 | \ 16151 old_archive_from_expsyms_cmds_F77 | \ 16152 export_symbols_cmds_F77 | \ 16153 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 16154 postinstall_cmds | postuninstall_cmds | \ 16155 old_postinstall_cmds | old_postuninstall_cmds | \ 16156 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 16157 # Double-quote double-evaled strings. 16158 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 16159 ;; 16160 *) 16161 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 16162 ;; 16163 esac 16164 done 16165 16166 case $lt_echo in 16167 *'\$0 --fallback-echo"') 16168 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 16169 ;; 16170 esac 16171 16172cfgfile="$ofile" 16173 16174 cat <<__EOF__ >> "$cfgfile" 16175# ### BEGIN LIBTOOL TAG CONFIG: $tagname 16176 16177# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16178 16179# Shell to use when invoking shell scripts. 16180SHELL=$lt_SHELL 16181 16182# Whether or not to build shared libraries. 16183build_libtool_libs=$enable_shared 16184 16185# Whether or not to build static libraries. 16186build_old_libs=$enable_static 16187 16188# Whether or not to add -lc for building shared libraries. 16189build_libtool_need_lc=$archive_cmds_need_lc_F77 16190 16191# Whether or not to disallow shared libs when runtime libs are static 16192allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 16193 16194# Whether or not to optimize for fast installation. 16195fast_install=$enable_fast_install 16196 16197# The host system. 16198host_alias=$host_alias 16199host=$host 16200host_os=$host_os 16201 16202# The build system. 16203build_alias=$build_alias 16204build=$build 16205build_os=$build_os 16206 16207# An echo program that does not interpret backslashes. 16208echo=$lt_echo 16209 16210# The archiver. 16211AR=$lt_AR 16212AR_FLAGS=$lt_AR_FLAGS 16213 16214# A C compiler. 16215LTCC=$lt_LTCC 16216 16217# LTCC compiler flags. 16218LTCFLAGS=$lt_LTCFLAGS 16219 16220# A language-specific compiler. 16221CC=$lt_compiler_F77 16222 16223# Is the compiler the GNU C compiler? 16224with_gcc=$GCC_F77 16225 16226# An ERE matcher. 16227EGREP=$lt_EGREP 16228 16229# The linker used to build libraries. 16230LD=$lt_LD_F77 16231 16232# Whether we need hard or soft links. 16233LN_S=$lt_LN_S 16234 16235# A BSD-compatible nm program. 16236NM=$lt_NM 16237 16238# A symbol stripping program 16239STRIP=$lt_STRIP 16240 16241# Used to examine libraries when file_magic_cmd begins "file" 16242MAGIC_CMD=$MAGIC_CMD 16243 16244# Used on cygwin: DLL creation program. 16245DLLTOOL="$DLLTOOL" 16246 16247# Used on cygwin: object dumper. 16248OBJDUMP="$OBJDUMP" 16249 16250# Used on cygwin: assembler. 16251AS="$AS" 16252 16253# The name of the directory that contains temporary libtool files. 16254objdir=$objdir 16255 16256# How to create reloadable object files. 16257reload_flag=$lt_reload_flag 16258reload_cmds=$lt_reload_cmds 16259 16260# How to pass a linker flag through the compiler. 16261wl=$lt_lt_prog_compiler_wl_F77 16262 16263# Object file suffix (normally "o"). 16264objext="$ac_objext" 16265 16266# Old archive suffix (normally "a"). 16267libext="$libext" 16268 16269# Shared library suffix (normally ".so"). 16270shrext_cmds='$shrext_cmds' 16271 16272# Executable file suffix (normally ""). 16273exeext="$exeext" 16274 16275# Additional compiler flags for building library objects. 16276pic_flag=$lt_lt_prog_compiler_pic_F77 16277pic_mode=$pic_mode 16278 16279# What is the maximum length of a command? 16280max_cmd_len=$lt_cv_sys_max_cmd_len 16281 16282# Does compiler simultaneously support -c and -o options? 16283compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 16284 16285# Must we lock files when doing compilation? 16286need_locks=$lt_need_locks 16287 16288# Do we need the lib prefix for modules? 16289need_lib_prefix=$need_lib_prefix 16290 16291# Do we need a version for libraries? 16292need_version=$need_version 16293 16294# Whether dlopen is supported. 16295dlopen_support=$enable_dlopen 16296 16297# Whether dlopen of programs is supported. 16298dlopen_self=$enable_dlopen_self 16299 16300# Whether dlopen of statically linked programs is supported. 16301dlopen_self_static=$enable_dlopen_self_static 16302 16303# Compiler flag to prevent dynamic linking. 16304link_static_flag=$lt_lt_prog_compiler_static_F77 16305 16306# Compiler flag to turn off builtin functions. 16307no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 16308 16309# Compiler flag to allow reflexive dlopens. 16310export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 16311 16312# Compiler flag to generate shared objects directly from archives. 16313whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 16314 16315# Compiler flag to generate thread-safe objects. 16316thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 16317 16318# Library versioning type. 16319version_type=$version_type 16320 16321# Format of library name prefix. 16322libname_spec=$lt_libname_spec 16323 16324# List of archive names. First name is the real one, the rest are links. 16325# The last name is the one that the linker finds with -lNAME. 16326library_names_spec=$lt_library_names_spec 16327 16328# The coded name of the library, if different from the real name. 16329soname_spec=$lt_soname_spec 16330 16331# Commands used to build and install an old-style archive. 16332RANLIB=$lt_RANLIB 16333old_archive_cmds=$lt_old_archive_cmds_F77 16334old_postinstall_cmds=$lt_old_postinstall_cmds 16335old_postuninstall_cmds=$lt_old_postuninstall_cmds 16336 16337# Create an old-style archive from a shared archive. 16338old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 16339 16340# Create a temporary old-style archive to link instead of a shared archive. 16341old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 16342 16343# Commands used to build and install a shared archive. 16344archive_cmds=$lt_archive_cmds_F77 16345archive_expsym_cmds=$lt_archive_expsym_cmds_F77 16346postinstall_cmds=$lt_postinstall_cmds 16347postuninstall_cmds=$lt_postuninstall_cmds 16348 16349# Commands used to build a loadable module (assumed same as above if empty) 16350module_cmds=$lt_module_cmds_F77 16351module_expsym_cmds=$lt_module_expsym_cmds_F77 16352 16353# Commands to strip libraries. 16354old_striplib=$lt_old_striplib 16355striplib=$lt_striplib 16356 16357# Dependencies to place before the objects being linked to create a 16358# shared library. 16359predep_objects=$lt_predep_objects_F77 16360 16361# Dependencies to place after the objects being linked to create a 16362# shared library. 16363postdep_objects=$lt_postdep_objects_F77 16364 16365# Dependencies to place before the objects being linked to create a 16366# shared library. 16367predeps=$lt_predeps_F77 16368 16369# Dependencies to place after the objects being linked to create a 16370# shared library. 16371postdeps=$lt_postdeps_F77 16372 16373# The library search path used internally by the compiler when linking 16374# a shared library. 16375compiler_lib_search_path=$lt_compiler_lib_search_path_F77 16376 16377# Method to check whether dependent libraries are shared objects. 16378deplibs_check_method=$lt_deplibs_check_method 16379 16380# Command to use when deplibs_check_method == file_magic. 16381file_magic_cmd=$lt_file_magic_cmd 16382 16383# Flag that allows shared libraries with undefined symbols to be built. 16384allow_undefined_flag=$lt_allow_undefined_flag_F77 16385 16386# Flag that forces no undefined symbols. 16387no_undefined_flag=$lt_no_undefined_flag_F77 16388 16389# Commands used to finish a libtool library installation in a directory. 16390finish_cmds=$lt_finish_cmds 16391 16392# Same as above, but a single script fragment to be evaled but not shown. 16393finish_eval=$lt_finish_eval 16394 16395# Take the output of nm and produce a listing of raw symbols and C names. 16396global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16397 16398# Transform the output of nm in a proper C declaration 16399global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16400 16401# Transform the output of nm in a C name address pair 16402global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16403 16404# This is the shared library runtime path variable. 16405runpath_var=$runpath_var 16406 16407# This is the shared library path variable. 16408shlibpath_var=$shlibpath_var 16409 16410# Is shlibpath searched before the hard-coded library search path? 16411shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16412 16413# How to hardcode a shared library path into an executable. 16414hardcode_action=$hardcode_action_F77 16415 16416# Whether we should hardcode library paths into libraries. 16417hardcode_into_libs=$hardcode_into_libs 16418 16419# Flag to hardcode \$libdir into a binary during linking. 16420# This must work even if \$libdir does not exist. 16421hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 16422 16423# If ld is used when linking, flag to hardcode \$libdir into 16424# a binary during linking. This must work even if \$libdir does 16425# not exist. 16426hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 16427 16428# Whether we need a single -rpath flag with a separated argument. 16429hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 16430 16431# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16432# resulting binary. 16433hardcode_direct=$hardcode_direct_F77 16434 16435# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16436# resulting binary. 16437hardcode_minus_L=$hardcode_minus_L_F77 16438 16439# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16440# the resulting binary. 16441hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 16442 16443# Set to yes if building a shared library automatically hardcodes DIR into the library 16444# and all subsequent libraries and executables linked against it. 16445hardcode_automatic=$hardcode_automatic_F77 16446 16447# Variables whose values should be saved in libtool wrapper scripts and 16448# restored at relink time. 16449variables_saved_for_relink="$variables_saved_for_relink" 16450 16451# Whether libtool must link a program against all its dependency libraries. 16452link_all_deplibs=$link_all_deplibs_F77 16453 16454# Compile-time system search path for libraries 16455sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16456 16457# Run-time system search path for libraries 16458sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16459 16460# Fix the shell variable \$srcfile for the compiler. 16461fix_srcfile_path="$fix_srcfile_path_F77" 16462 16463# Set to yes if exported symbols are required. 16464always_export_symbols=$always_export_symbols_F77 16465 16466# The commands to list exported symbols. 16467export_symbols_cmds=$lt_export_symbols_cmds_F77 16468 16469# The commands to extract the exported symbol list from a shared archive. 16470extract_expsyms_cmds=$lt_extract_expsyms_cmds 16471 16472# Symbols that should not be listed in the preloaded symbols. 16473exclude_expsyms=$lt_exclude_expsyms_F77 16474 16475# Symbols that must always be exported. 16476include_expsyms=$lt_include_expsyms_F77 16477 16478# ### END LIBTOOL TAG CONFIG: $tagname 16479 16480__EOF__ 16481 16482 16483else 16484 # If there is no Makefile yet, we rely on a make rule to execute 16485 # `config.status --recheck' to rerun these tests and create the 16486 # libtool script then. 16487 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16488 if test -f "$ltmain_in"; then 16489 test -f Makefile && make "$ltmain" 16490 fi 16491fi 16492 16493 16494ac_ext=c 16495ac_cpp='$CPP $CPPFLAGS' 16496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16498ac_compiler_gnu=$ac_cv_c_compiler_gnu 16499 16500CC="$lt_save_CC" 16501 16502 else 16503 tagname="" 16504 fi 16505 ;; 16506 16507 GCJ) 16508 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16509 16510 16511 16512# Source file extension for Java test sources. 16513ac_ext=java 16514 16515# Object file extension for compiled Java test sources. 16516objext=o 16517objext_GCJ=$objext 16518 16519# Code to be used in simple compile tests 16520lt_simple_compile_test_code="class foo {}\n" 16521 16522# Code to be used in simple link tests 16523lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 16524 16525# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16526 16527# If no C compiler was specified, use CC. 16528LTCC=${LTCC-"$CC"} 16529 16530# If no C compiler flags were specified, use CFLAGS. 16531LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16532 16533# Allow CC to be a program name with arguments. 16534compiler=$CC 16535 16536 16537# save warnings/boilerplate of simple test code 16538ac_outfile=conftest.$ac_objext 16539printf "$lt_simple_compile_test_code" >conftest.$ac_ext 16540eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16541_lt_compiler_boilerplate=`cat conftest.err` 16542$rm conftest* 16543 16544ac_outfile=conftest.$ac_objext 16545printf "$lt_simple_link_test_code" >conftest.$ac_ext 16546eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16547_lt_linker_boilerplate=`cat conftest.err` 16548$rm conftest* 16549 16550 16551# Allow CC to be a program name with arguments. 16552lt_save_CC="$CC" 16553CC=${GCJ-"gcj"} 16554compiler=$CC 16555compiler_GCJ=$CC 16556for cc_temp in $compiler""; do 16557 case $cc_temp in 16558 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16559 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16560 \-*) ;; 16561 *) break;; 16562 esac 16563done 16564cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16565 16566 16567# GCJ did not exist at the time GCC didn't implicitly link libc in. 16568archive_cmds_need_lc_GCJ=no 16569 16570old_archive_cmds_GCJ=$old_archive_cmds 16571 16572## CAVEAT EMPTOR: 16573## There is no encapsulation within the following macros, do not change 16574## the running order or otherwise move them around unless you know exactly 16575## what you are doing... 16576 16577lt_prog_compiler_no_builtin_flag_GCJ= 16578 16579if test "$GCC" = yes; then 16580 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16581 16582 16583echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16584echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 16585if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16586 echo $ECHO_N "(cached) $ECHO_C" >&6 16587else 16588 lt_cv_prog_compiler_rtti_exceptions=no 16589 ac_outfile=conftest.$ac_objext 16590 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16591 lt_compiler_flag="-fno-rtti -fno-exceptions" 16592 # Insert the option either (1) after the last *FLAGS variable, or 16593 # (2) before a word containing "conftest.", or (3) at the end. 16594 # Note that $ac_compile itself does not contain backslashes and begins 16595 # with a dollar sign (not a hyphen), so the echo should work correctly. 16596 # The option is referenced via a variable to avoid confusing sed. 16597 lt_compile=`echo "$ac_compile" | $SED \ 16598 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16599 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16600 -e 's:$: $lt_compiler_flag:'` 16601 (eval echo "\"\$as_me:16601: $lt_compile\"" >&5) 16602 (eval "$lt_compile" 2>conftest.err) 16603 ac_status=$? 16604 cat conftest.err >&5 16605 echo "$as_me:16605: \$? = $ac_status" >&5 16606 if (exit $ac_status) && test -s "$ac_outfile"; then 16607 # The compiler can only warn and ignore the option if not recognized 16608 # So say no if there are warnings other than the usual output. 16609 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16610 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16611 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16612 lt_cv_prog_compiler_rtti_exceptions=yes 16613 fi 16614 fi 16615 $rm conftest* 16616 16617fi 16618echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16619echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 16620 16621if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16622 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16623else 16624 : 16625fi 16626 16627fi 16628 16629lt_prog_compiler_wl_GCJ= 16630lt_prog_compiler_pic_GCJ= 16631lt_prog_compiler_static_GCJ= 16632 16633echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16634echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 16635 16636 if test "$GCC" = yes; then 16637 lt_prog_compiler_wl_GCJ='-Wl,' 16638 lt_prog_compiler_static_GCJ='-static' 16639 16640 case $host_os in 16641 aix*) 16642 # All AIX code is PIC. 16643 if test "$host_cpu" = ia64; then 16644 # AIX 5 now supports IA64 processor 16645 lt_prog_compiler_static_GCJ='-Bstatic' 16646 fi 16647 ;; 16648 16649 amigaos*) 16650 # FIXME: we need at least 68020 code to build shared libraries, but 16651 # adding the `-m68020' flag to GCC prevents building anything better, 16652 # like `-m68040'. 16653 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16654 ;; 16655 16656 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16657 # PIC is the default for these OSes. 16658 ;; 16659 16660 mingw* | pw32* | os2*) 16661 # This hack is so that the source file can tell whether it is being 16662 # built for inclusion in a dll (and should export symbols for example). 16663 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16664 ;; 16665 16666 darwin* | rhapsody*) 16667 # PIC is the default on this platform 16668 # Common symbols not allowed in MH_DYLIB files 16669 lt_prog_compiler_pic_GCJ='-fno-common' 16670 ;; 16671 16672 interix3*) 16673 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16674 # Instead, we relocate shared libraries at runtime. 16675 ;; 16676 16677 msdosdjgpp*) 16678 # Just because we use GCC doesn't mean we suddenly get shared libraries 16679 # on systems that don't support them. 16680 lt_prog_compiler_can_build_shared_GCJ=no 16681 enable_shared=no 16682 ;; 16683 16684 sysv4*MP*) 16685 if test -d /usr/nec; then 16686 lt_prog_compiler_pic_GCJ=-Kconform_pic 16687 fi 16688 ;; 16689 16690 hpux*) 16691 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16692 # not for PA HP-UX. 16693 case $host_cpu in 16694 hppa*64*|ia64*) 16695 # +Z the default 16696 ;; 16697 *) 16698 lt_prog_compiler_pic_GCJ='-fPIC' 16699 ;; 16700 esac 16701 ;; 16702 16703 *) 16704 lt_prog_compiler_pic_GCJ='-fPIC' 16705 ;; 16706 esac 16707 else 16708 # PORTME Check for flag to pass linker flags through the system compiler. 16709 case $host_os in 16710 aix*) 16711 lt_prog_compiler_wl_GCJ='-Wl,' 16712 if test "$host_cpu" = ia64; then 16713 # AIX 5 now supports IA64 processor 16714 lt_prog_compiler_static_GCJ='-Bstatic' 16715 else 16716 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 16717 fi 16718 ;; 16719 darwin*) 16720 # PIC is the default on this platform 16721 # Common symbols not allowed in MH_DYLIB files 16722 case $cc_basename in 16723 xlc*) 16724 lt_prog_compiler_pic_GCJ='-qnocommon' 16725 lt_prog_compiler_wl_GCJ='-Wl,' 16726 ;; 16727 esac 16728 ;; 16729 16730 mingw* | pw32* | os2*) 16731 # This hack is so that the source file can tell whether it is being 16732 # built for inclusion in a dll (and should export symbols for example). 16733 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16734 ;; 16735 16736 hpux9* | hpux10* | hpux11*) 16737 lt_prog_compiler_wl_GCJ='-Wl,' 16738 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16739 # not for PA HP-UX. 16740 case $host_cpu in 16741 hppa*64*|ia64*) 16742 # +Z the default 16743 ;; 16744 *) 16745 lt_prog_compiler_pic_GCJ='+Z' 16746 ;; 16747 esac 16748 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16749 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 16750 ;; 16751 16752 irix5* | irix6* | nonstopux*) 16753 lt_prog_compiler_wl_GCJ='-Wl,' 16754 # PIC (with -KPIC) is the default. 16755 lt_prog_compiler_static_GCJ='-non_shared' 16756 ;; 16757 16758 newsos6) 16759 lt_prog_compiler_pic_GCJ='-KPIC' 16760 lt_prog_compiler_static_GCJ='-Bstatic' 16761 ;; 16762 16763 linux*) 16764 case $cc_basename in 16765 icc* | ecc*) 16766 lt_prog_compiler_wl_GCJ='-Wl,' 16767 lt_prog_compiler_pic_GCJ='-KPIC' 16768 lt_prog_compiler_static_GCJ='-static' 16769 ;; 16770 pgcc* | pgf77* | pgf90* | pgf95*) 16771 # Portland Group compilers (*not* the Pentium gcc compiler, 16772 # which looks to be a dead project) 16773 lt_prog_compiler_wl_GCJ='-Wl,' 16774 lt_prog_compiler_pic_GCJ='-fpic' 16775 lt_prog_compiler_static_GCJ='-Bstatic' 16776 ;; 16777 ccc*) 16778 lt_prog_compiler_wl_GCJ='-Wl,' 16779 # All Alpha code is PIC. 16780 lt_prog_compiler_static_GCJ='-non_shared' 16781 ;; 16782 esac 16783 ;; 16784 16785 osf3* | osf4* | osf5*) 16786 lt_prog_compiler_wl_GCJ='-Wl,' 16787 # All OSF/1 code is PIC. 16788 lt_prog_compiler_static_GCJ='-non_shared' 16789 ;; 16790 16791 solaris*) 16792 lt_prog_compiler_pic_GCJ='-KPIC' 16793 lt_prog_compiler_static_GCJ='-Bstatic' 16794 case $cc_basename in 16795 f77* | f90* | f95*) 16796 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 16797 *) 16798 lt_prog_compiler_wl_GCJ='-Wl,';; 16799 esac 16800 ;; 16801 16802 sunos4*) 16803 lt_prog_compiler_wl_GCJ='-Qoption ld ' 16804 lt_prog_compiler_pic_GCJ='-PIC' 16805 lt_prog_compiler_static_GCJ='-Bstatic' 16806 ;; 16807 16808 sysv4 | sysv4.2uw2* | sysv4.3*) 16809 lt_prog_compiler_wl_GCJ='-Wl,' 16810 lt_prog_compiler_pic_GCJ='-KPIC' 16811 lt_prog_compiler_static_GCJ='-Bstatic' 16812 ;; 16813 16814 sysv4*MP*) 16815 if test -d /usr/nec ;then 16816 lt_prog_compiler_pic_GCJ='-Kconform_pic' 16817 lt_prog_compiler_static_GCJ='-Bstatic' 16818 fi 16819 ;; 16820 16821 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16822 lt_prog_compiler_wl_GCJ='-Wl,' 16823 lt_prog_compiler_pic_GCJ='-KPIC' 16824 lt_prog_compiler_static_GCJ='-Bstatic' 16825 ;; 16826 16827 unicos*) 16828 lt_prog_compiler_wl_GCJ='-Wl,' 16829 lt_prog_compiler_can_build_shared_GCJ=no 16830 ;; 16831 16832 uts4*) 16833 lt_prog_compiler_pic_GCJ='-pic' 16834 lt_prog_compiler_static_GCJ='-Bstatic' 16835 ;; 16836 16837 *) 16838 lt_prog_compiler_can_build_shared_GCJ=no 16839 ;; 16840 esac 16841 fi 16842 16843echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 16844echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 16845 16846# 16847# Check to make sure the PIC flag actually works. 16848# 16849if test -n "$lt_prog_compiler_pic_GCJ"; then 16850 16851echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 16852echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 16853if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 16854 echo $ECHO_N "(cached) $ECHO_C" >&6 16855else 16856 lt_prog_compiler_pic_works_GCJ=no 16857 ac_outfile=conftest.$ac_objext 16858 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16859 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 16860 # Insert the option either (1) after the last *FLAGS variable, or 16861 # (2) before a word containing "conftest.", or (3) at the end. 16862 # Note that $ac_compile itself does not contain backslashes and begins 16863 # with a dollar sign (not a hyphen), so the echo should work correctly. 16864 # The option is referenced via a variable to avoid confusing sed. 16865 lt_compile=`echo "$ac_compile" | $SED \ 16866 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16867 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16868 -e 's:$: $lt_compiler_flag:'` 16869 (eval echo "\"\$as_me:16869: $lt_compile\"" >&5) 16870 (eval "$lt_compile" 2>conftest.err) 16871 ac_status=$? 16872 cat conftest.err >&5 16873 echo "$as_me:16873: \$? = $ac_status" >&5 16874 if (exit $ac_status) && test -s "$ac_outfile"; then 16875 # The compiler can only warn and ignore the option if not recognized 16876 # So say no if there are warnings other than the usual output. 16877 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16878 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16879 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16880 lt_prog_compiler_pic_works_GCJ=yes 16881 fi 16882 fi 16883 $rm conftest* 16884 16885fi 16886echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 16887echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 16888 16889if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 16890 case $lt_prog_compiler_pic_GCJ in 16891 "" | " "*) ;; 16892 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 16893 esac 16894else 16895 lt_prog_compiler_pic_GCJ= 16896 lt_prog_compiler_can_build_shared_GCJ=no 16897fi 16898 16899fi 16900case $host_os in 16901 # For platforms which do not support PIC, -DPIC is meaningless: 16902 *djgpp*) 16903 lt_prog_compiler_pic_GCJ= 16904 ;; 16905 *) 16906 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 16907 ;; 16908esac 16909 16910# 16911# Check to make sure the static flag actually works. 16912# 16913wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 16914echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 16915echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 16916if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 16917 echo $ECHO_N "(cached) $ECHO_C" >&6 16918else 16919 lt_prog_compiler_static_works_GCJ=no 16920 save_LDFLAGS="$LDFLAGS" 16921 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 16922 printf "$lt_simple_link_test_code" > conftest.$ac_ext 16923 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16924 # The linker can only warn and ignore the option if not recognized 16925 # So say no if there are warnings 16926 if test -s conftest.err; then 16927 # Append any errors to the config.log. 16928 cat conftest.err 1>&5 16929 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 16930 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16931 if diff conftest.exp conftest.er2 >/dev/null; then 16932 lt_prog_compiler_static_works_GCJ=yes 16933 fi 16934 else 16935 lt_prog_compiler_static_works_GCJ=yes 16936 fi 16937 fi 16938 $rm conftest* 16939 LDFLAGS="$save_LDFLAGS" 16940 16941fi 16942echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 16943echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6 16944 16945if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 16946 : 16947else 16948 lt_prog_compiler_static_GCJ= 16949fi 16950 16951 16952echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 16953echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 16954if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 16955 echo $ECHO_N "(cached) $ECHO_C" >&6 16956else 16957 lt_cv_prog_compiler_c_o_GCJ=no 16958 $rm -r conftest 2>/dev/null 16959 mkdir conftest 16960 cd conftest 16961 mkdir out 16962 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16963 16964 lt_compiler_flag="-o out/conftest2.$ac_objext" 16965 # Insert the option either (1) after the last *FLAGS variable, or 16966 # (2) before a word containing "conftest.", or (3) at the end. 16967 # Note that $ac_compile itself does not contain backslashes and begins 16968 # with a dollar sign (not a hyphen), so the echo should work correctly. 16969 lt_compile=`echo "$ac_compile" | $SED \ 16970 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16971 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16972 -e 's:$: $lt_compiler_flag:'` 16973 (eval echo "\"\$as_me:16973: $lt_compile\"" >&5) 16974 (eval "$lt_compile" 2>out/conftest.err) 16975 ac_status=$? 16976 cat out/conftest.err >&5 16977 echo "$as_me:16977: \$? = $ac_status" >&5 16978 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16979 then 16980 # The compiler can only warn and ignore the option if not recognized 16981 # So say no if there are warnings 16982 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 16983 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16984 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16985 lt_cv_prog_compiler_c_o_GCJ=yes 16986 fi 16987 fi 16988 chmod u+w . 2>&5 16989 $rm conftest* 16990 # SGI C++ compiler will create directory out/ii_files/ for 16991 # template instantiation 16992 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 16993 $rm out/* && rmdir out 16994 cd .. 16995 rmdir conftest 16996 $rm conftest* 16997 16998fi 16999echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 17000echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 17001 17002 17003hard_links="nottested" 17004if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 17005 # do not overwrite the value of need_locks provided by the user 17006 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 17007echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 17008 hard_links=yes 17009 $rm conftest* 17010 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17011 touch conftest.a 17012 ln conftest.a conftest.b 2>&5 || hard_links=no 17013 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17014 echo "$as_me:$LINENO: result: $hard_links" >&5 17015echo "${ECHO_T}$hard_links" >&6 17016 if test "$hard_links" = no; then 17017 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 17018echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 17019 need_locks=warn 17020 fi 17021else 17022 need_locks=no 17023fi 17024 17025echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17026echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 17027 17028 runpath_var= 17029 allow_undefined_flag_GCJ= 17030 enable_shared_with_static_runtimes_GCJ=no 17031 archive_cmds_GCJ= 17032 archive_expsym_cmds_GCJ= 17033 old_archive_From_new_cmds_GCJ= 17034 old_archive_from_expsyms_cmds_GCJ= 17035 export_dynamic_flag_spec_GCJ= 17036 whole_archive_flag_spec_GCJ= 17037 thread_safe_flag_spec_GCJ= 17038 hardcode_libdir_flag_spec_GCJ= 17039 hardcode_libdir_flag_spec_ld_GCJ= 17040 hardcode_libdir_separator_GCJ= 17041 hardcode_direct_GCJ=no 17042 hardcode_minus_L_GCJ=no 17043 hardcode_shlibpath_var_GCJ=unsupported 17044 link_all_deplibs_GCJ=unknown 17045 hardcode_automatic_GCJ=no 17046 module_cmds_GCJ= 17047 module_expsym_cmds_GCJ= 17048 always_export_symbols_GCJ=no 17049 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17050 # include_expsyms should be a list of space-separated symbols to be *always* 17051 # included in the symbol list 17052 include_expsyms_GCJ= 17053 # exclude_expsyms can be an extended regexp of symbols to exclude 17054 # it will be wrapped by ` (' and `)$', so one must not match beginning or 17055 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 17056 # as well as any symbol that contains `d'. 17057 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 17058 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 17059 # platforms (ab)use it in PIC code, but their linkers get confused if 17060 # the symbol is explicitly referenced. Since portable code cannot 17061 # rely on this symbol name, it's probably fine to never include it in 17062 # preloaded symbol tables. 17063 extract_expsyms_cmds= 17064 # Just being paranoid about ensuring that cc_basename is set. 17065 for cc_temp in $compiler""; do 17066 case $cc_temp in 17067 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17068 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17069 \-*) ;; 17070 *) break;; 17071 esac 17072done 17073cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17074 17075 case $host_os in 17076 cygwin* | mingw* | pw32*) 17077 # FIXME: the MSVC++ port hasn't been tested in a loooong time 17078 # When not using gcc, we currently assume that we are using 17079 # Microsoft Visual C++. 17080 if test "$GCC" != yes; then 17081 with_gnu_ld=no 17082 fi 17083 ;; 17084 interix*) 17085 # we just hope/assume this is gcc and not c89 (= MSVC++) 17086 with_gnu_ld=yes 17087 ;; 17088 openbsd*) 17089 with_gnu_ld=no 17090 ;; 17091 esac 17092 17093 ld_shlibs_GCJ=yes 17094 if test "$with_gnu_ld" = yes; then 17095 # If archive_cmds runs LD, not CC, wlarc should be empty 17096 wlarc='${wl}' 17097 17098 # Set some defaults for GNU ld with shared library support. These 17099 # are reset later if shared libraries are not supported. Putting them 17100 # here allows them to be overridden if necessary. 17101 runpath_var=LD_RUN_PATH 17102 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 17103 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 17104 # ancient GNU ld didn't support --whole-archive et. al. 17105 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 17106 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 17107 else 17108 whole_archive_flag_spec_GCJ= 17109 fi 17110 supports_anon_versioning=no 17111 case `$LD -v 2>/dev/null` in 17112 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 17113 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 17114 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 17115 *\ 2.11.*) ;; # other 2.11 versions 17116 *) supports_anon_versioning=yes ;; 17117 esac 17118 17119 # See if GNU ld supports shared libraries. 17120 case $host_os in 17121 aix3* | aix4* | aix5*) 17122 # On AIX/PPC, the GNU linker is very broken 17123 if test "$host_cpu" != ia64; then 17124 ld_shlibs_GCJ=no 17125 cat <<EOF 1>&2 17126 17127*** Warning: the GNU linker, at least up to release 2.9.1, is reported 17128*** to be unable to reliably create shared libraries on AIX. 17129*** Therefore, libtool is disabling shared libraries support. If you 17130*** really care for shared libraries, you may want to modify your PATH 17131*** so that a non-GNU linker is found, and then restart. 17132 17133EOF 17134 fi 17135 ;; 17136 17137 amigaos*) 17138 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)' 17139 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17140 hardcode_minus_L_GCJ=yes 17141 17142 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 17143 # that the semantics of dynamic libraries on AmigaOS, at least up 17144 # to version 4, is to share data among multiple programs linked 17145 # with the same dynamic library. Since this doesn't match the 17146 # behavior of shared libraries on other platforms, we can't use 17147 # them. 17148 ld_shlibs_GCJ=no 17149 ;; 17150 17151 beos*) 17152 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17153 allow_undefined_flag_GCJ=unsupported 17154 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 17155 # support --undefined. This deserves some investigation. FIXME 17156 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17157 else 17158 ld_shlibs_GCJ=no 17159 fi 17160 ;; 17161 17162 cygwin* | mingw* | pw32*) 17163 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 17164 # as there is no search path for DLLs. 17165 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17166 allow_undefined_flag_GCJ=unsupported 17167 always_export_symbols_GCJ=no 17168 enable_shared_with_static_runtimes_GCJ=yes 17169 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 17170 17171 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 17172 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17173 # If the export-symbols file already is a .def file (1st line 17174 # is EXPORTS), use it as is; otherwise, prepend... 17175 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 17176 cp $export_symbols $output_objdir/$soname.def; 17177 else 17178 echo EXPORTS > $output_objdir/$soname.def; 17179 cat $export_symbols >> $output_objdir/$soname.def; 17180 fi~ 17181 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17182 else 17183 ld_shlibs_GCJ=no 17184 fi 17185 ;; 17186 17187 interix3*) 17188 hardcode_direct_GCJ=no 17189 hardcode_shlibpath_var_GCJ=no 17190 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17191 export_dynamic_flag_spec_GCJ='${wl}-E' 17192 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 17193 # Instead, shared libraries are loaded at an image base (0x10000000 by 17194 # default) and relocated if they conflict, which is a slow very memory 17195 # consuming and fragmenting process. To avoid this, we pick a random, 17196 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 17197 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 17198 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' 17199 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' 17200 ;; 17201 17202 linux*) 17203 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17204 tmp_addflag= 17205 case $cc_basename,$host_cpu in 17206 pgcc*) # Portland Group C compiler 17207 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' 17208 tmp_addflag=' $pic_flag' 17209 ;; 17210 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 17211 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' 17212 tmp_addflag=' $pic_flag -Mnomain' ;; 17213 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 17214 tmp_addflag=' -i_dynamic' ;; 17215 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 17216 tmp_addflag=' -i_dynamic -nofor_main' ;; 17217 ifc* | ifort*) # Intel Fortran compiler 17218 tmp_addflag=' -nofor_main' ;; 17219 esac 17220 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17221 17222 if test $supports_anon_versioning = yes; then 17223 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 17224 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17225 $echo "local: *; };" >> $output_objdir/$libname.ver~ 17226 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 17227 fi 17228 else 17229 ld_shlibs_GCJ=no 17230 fi 17231 ;; 17232 17233 netbsd*) 17234 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17235 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 17236 wlarc= 17237 else 17238 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17239 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17240 fi 17241 ;; 17242 17243 solaris*) 17244 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 17245 ld_shlibs_GCJ=no 17246 cat <<EOF 1>&2 17247 17248*** Warning: The releases 2.8.* of the GNU linker cannot reliably 17249*** create shared libraries on Solaris systems. Therefore, libtool 17250*** is disabling shared libraries support. We urge you to upgrade GNU 17251*** binutils to release 2.9.1 or newer. Another option is to modify 17252*** your PATH or compiler configuration so that the native linker is 17253*** used, and then restart. 17254 17255EOF 17256 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17257 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17258 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17259 else 17260 ld_shlibs_GCJ=no 17261 fi 17262 ;; 17263 17264 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 17265 case `$LD -v 2>&1` in 17266 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 17267 ld_shlibs_GCJ=no 17268 cat <<_LT_EOF 1>&2 17269 17270*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 17271*** reliably create shared libraries on SCO systems. Therefore, libtool 17272*** is disabling shared libraries support. We urge you to upgrade GNU 17273*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 17274*** your PATH or compiler configuration so that the native linker is 17275*** used, and then restart. 17276 17277_LT_EOF 17278 ;; 17279 *) 17280 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17281 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 17282 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 17283 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 17284 else 17285 ld_shlibs_GCJ=no 17286 fi 17287 ;; 17288 esac 17289 ;; 17290 17291 sunos4*) 17292 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17293 wlarc= 17294 hardcode_direct_GCJ=yes 17295 hardcode_shlibpath_var_GCJ=no 17296 ;; 17297 17298 *) 17299 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17300 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17301 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17302 else 17303 ld_shlibs_GCJ=no 17304 fi 17305 ;; 17306 esac 17307 17308 if test "$ld_shlibs_GCJ" = no; then 17309 runpath_var= 17310 hardcode_libdir_flag_spec_GCJ= 17311 export_dynamic_flag_spec_GCJ= 17312 whole_archive_flag_spec_GCJ= 17313 fi 17314 else 17315 # PORTME fill in a description of your system's linker (not GNU ld) 17316 case $host_os in 17317 aix3*) 17318 allow_undefined_flag_GCJ=unsupported 17319 always_export_symbols_GCJ=yes 17320 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' 17321 # Note: this linker hardcodes the directories in LIBPATH if there 17322 # are no directories specified by -L. 17323 hardcode_minus_L_GCJ=yes 17324 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 17325 # Neither direct hardcoding nor static linking is supported with a 17326 # broken collect2. 17327 hardcode_direct_GCJ=unsupported 17328 fi 17329 ;; 17330 17331 aix4* | aix5*) 17332 if test "$host_cpu" = ia64; then 17333 # On IA64, the linker does run time linking by default, so we don't 17334 # have to do anything special. 17335 aix_use_runtimelinking=no 17336 exp_sym_flag='-Bexport' 17337 no_entry_flag="" 17338 else 17339 # If we're using GNU nm, then we don't want the "-C" option. 17340 # -C means demangle to AIX nm, but means don't demangle with GNU nm 17341 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 17342 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' 17343 else 17344 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' 17345 fi 17346 aix_use_runtimelinking=no 17347 17348 # Test if we are trying to use run time linking or normal 17349 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17350 # need to do runtime linking. 17351 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 17352 for ld_flag in $LDFLAGS; do 17353 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 17354 aix_use_runtimelinking=yes 17355 break 17356 fi 17357 done 17358 ;; 17359 esac 17360 17361 exp_sym_flag='-bexport' 17362 no_entry_flag='-bnoentry' 17363 fi 17364 17365 # When large executables or shared objects are built, AIX ld can 17366 # have problems creating the table of contents. If linking a library 17367 # or program results in "error TOC overflow" add -mminimal-toc to 17368 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17369 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17370 17371 archive_cmds_GCJ='' 17372 hardcode_direct_GCJ=yes 17373 hardcode_libdir_separator_GCJ=':' 17374 link_all_deplibs_GCJ=yes 17375 17376 if test "$GCC" = yes; then 17377 case $host_os in aix4.[012]|aix4.[012].*) 17378 # We only want to do this on AIX 4.2 and lower, the check 17379 # below for broken collect2 doesn't work under 4.3+ 17380 collect2name=`${CC} -print-prog-name=collect2` 17381 if test -f "$collect2name" && \ 17382 strings "$collect2name" | grep resolve_lib_name >/dev/null 17383 then 17384 # We have reworked collect2 17385 hardcode_direct_GCJ=yes 17386 else 17387 # We have old collect2 17388 hardcode_direct_GCJ=unsupported 17389 # It fails to find uninstalled libraries when the uninstalled 17390 # path is not listed in the libpath. Setting hardcode_minus_L 17391 # to unsupported forces relinking 17392 hardcode_minus_L_GCJ=yes 17393 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17394 hardcode_libdir_separator_GCJ= 17395 fi 17396 ;; 17397 esac 17398 shared_flag='-shared' 17399 if test "$aix_use_runtimelinking" = yes; then 17400 shared_flag="$shared_flag "'${wl}-G' 17401 fi 17402 else 17403 # not using gcc 17404 if test "$host_cpu" = ia64; then 17405 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17406 # chokes on -Wl,-G. The following line is correct: 17407 shared_flag='-G' 17408 else 17409 if test "$aix_use_runtimelinking" = yes; then 17410 shared_flag='${wl}-G' 17411 else 17412 shared_flag='${wl}-bM:SRE' 17413 fi 17414 fi 17415 fi 17416 17417 # It seems that -bexpall does not export symbols beginning with 17418 # underscore (_), so it is better to generate a list of symbols to export. 17419 always_export_symbols_GCJ=yes 17420 if test "$aix_use_runtimelinking" = yes; then 17421 # Warning - without using the other runtime loading flags (-brtl), 17422 # -berok will link without error, but may produce a broken library. 17423 allow_undefined_flag_GCJ='-berok' 17424 # Determine the default libpath from the value encoded in an empty executable. 17425 cat >conftest.$ac_ext <<_ACEOF 17426/* confdefs.h. */ 17427_ACEOF 17428cat confdefs.h >>conftest.$ac_ext 17429cat >>conftest.$ac_ext <<_ACEOF 17430/* end confdefs.h. */ 17431 17432int 17433main () 17434{ 17435 17436 ; 17437 return 0; 17438} 17439_ACEOF 17440rm -f conftest.$ac_objext conftest$ac_exeext 17441if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17442 (eval $ac_link) 2>conftest.er1 17443 ac_status=$? 17444 grep -v '^ *+' conftest.er1 >conftest.err 17445 rm -f conftest.er1 17446 cat conftest.err >&5 17447 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17448 (exit $ac_status); } && 17449 { ac_try='test -z "$ac_c_werror_flag" 17450 || test ! -s conftest.err' 17451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17452 (eval $ac_try) 2>&5 17453 ac_status=$? 17454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17455 (exit $ac_status); }; } && 17456 { ac_try='test -s conftest$ac_exeext' 17457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17458 (eval $ac_try) 2>&5 17459 ac_status=$? 17460 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17461 (exit $ac_status); }; }; then 17462 17463aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17464}'` 17465# Check for a 64-bit object if we didn't find anything. 17466if 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; } 17467}'`; fi 17468else 17469 echo "$as_me: failed program was:" >&5 17470sed 's/^/| /' conftest.$ac_ext >&5 17471 17472fi 17473rm -f conftest.err conftest.$ac_objext \ 17474 conftest$ac_exeext conftest.$ac_ext 17475if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17476 17477 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17478 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" 17479 else 17480 if test "$host_cpu" = ia64; then 17481 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 17482 allow_undefined_flag_GCJ="-z nodefs" 17483 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" 17484 else 17485 # Determine the default libpath from the value encoded in an empty executable. 17486 cat >conftest.$ac_ext <<_ACEOF 17487/* confdefs.h. */ 17488_ACEOF 17489cat confdefs.h >>conftest.$ac_ext 17490cat >>conftest.$ac_ext <<_ACEOF 17491/* end confdefs.h. */ 17492 17493int 17494main () 17495{ 17496 17497 ; 17498 return 0; 17499} 17500_ACEOF 17501rm -f conftest.$ac_objext conftest$ac_exeext 17502if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17503 (eval $ac_link) 2>conftest.er1 17504 ac_status=$? 17505 grep -v '^ *+' conftest.er1 >conftest.err 17506 rm -f conftest.er1 17507 cat conftest.err >&5 17508 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17509 (exit $ac_status); } && 17510 { ac_try='test -z "$ac_c_werror_flag" 17511 || test ! -s conftest.err' 17512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17513 (eval $ac_try) 2>&5 17514 ac_status=$? 17515 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17516 (exit $ac_status); }; } && 17517 { ac_try='test -s conftest$ac_exeext' 17518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17519 (eval $ac_try) 2>&5 17520 ac_status=$? 17521 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17522 (exit $ac_status); }; }; then 17523 17524aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17525}'` 17526# Check for a 64-bit object if we didn't find anything. 17527if 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; } 17528}'`; fi 17529else 17530 echo "$as_me: failed program was:" >&5 17531sed 's/^/| /' conftest.$ac_ext >&5 17532 17533fi 17534rm -f conftest.err conftest.$ac_objext \ 17535 conftest$ac_exeext conftest.$ac_ext 17536if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17537 17538 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17539 # Warning - without using the other run time loading flags, 17540 # -berok will link without error, but may produce a broken library. 17541 no_undefined_flag_GCJ=' ${wl}-bernotok' 17542 allow_undefined_flag_GCJ=' ${wl}-berok' 17543 # Exported symbols can be pulled into shared objects from archives 17544 whole_archive_flag_spec_GCJ='$convenience' 17545 archive_cmds_need_lc_GCJ=yes 17546 # This is similar to how AIX traditionally builds its shared libraries. 17547 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' 17548 fi 17549 fi 17550 ;; 17551 17552 amigaos*) 17553 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)' 17554 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17555 hardcode_minus_L_GCJ=yes 17556 # see comment about different semantics on the GNU ld section 17557 ld_shlibs_GCJ=no 17558 ;; 17559 17560 bsdi[45]*) 17561 export_dynamic_flag_spec_GCJ=-rdynamic 17562 ;; 17563 17564 cygwin* | mingw* | pw32*) 17565 # When not using gcc, we currently assume that we are using 17566 # Microsoft Visual C++. 17567 # hardcode_libdir_flag_spec is actually meaningless, as there is 17568 # no search path for DLLs. 17569 hardcode_libdir_flag_spec_GCJ=' ' 17570 allow_undefined_flag_GCJ=unsupported 17571 # Tell ltmain to make .lib files, not .a files. 17572 libext=lib 17573 # Tell ltmain to make .dll files, not .so files. 17574 shrext_cmds=".dll" 17575 # FIXME: Setting linknames here is a bad hack. 17576 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17577 # The linker will automatically build a .lib file if we build a DLL. 17578 old_archive_From_new_cmds_GCJ='true' 17579 # FIXME: Should let the user specify the lib program. 17580 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 17581 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 17582 enable_shared_with_static_runtimes_GCJ=yes 17583 ;; 17584 17585 darwin* | rhapsody*) 17586 case $host_os in 17587 rhapsody* | darwin1.[012]) 17588 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 17589 ;; 17590 *) # Darwin 1.3 on 17591 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17592 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17593 else 17594 case ${MACOSX_DEPLOYMENT_TARGET} in 17595 10.[012]) 17596 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17597 ;; 17598 10.*) 17599 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 17600 ;; 17601 esac 17602 fi 17603 ;; 17604 esac 17605 archive_cmds_need_lc_GCJ=no 17606 hardcode_direct_GCJ=no 17607 hardcode_automatic_GCJ=yes 17608 hardcode_shlibpath_var_GCJ=unsupported 17609 whole_archive_flag_spec_GCJ='' 17610 link_all_deplibs_GCJ=yes 17611 if test "$GCC" = yes ; then 17612 output_verbose_link_cmd='echo' 17613 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 17614 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17615 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17616 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}' 17617 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}' 17618 else 17619 case $cc_basename in 17620 xlc*) 17621 output_verbose_link_cmd='echo' 17622 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 17623 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17624 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17625 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}' 17626 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}' 17627 ;; 17628 *) 17629 ld_shlibs_GCJ=no 17630 ;; 17631 esac 17632 fi 17633 ;; 17634 17635 dgux*) 17636 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17637 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17638 hardcode_shlibpath_var_GCJ=no 17639 ;; 17640 17641 freebsd1*) 17642 ld_shlibs_GCJ=no 17643 ;; 17644 17645 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17646 # support. Future versions do this automatically, but an explicit c++rt0.o 17647 # does not break anything, and helps significantly (at the cost of a little 17648 # extra space). 17649 freebsd2.2*) 17650 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17651 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17652 hardcode_direct_GCJ=yes 17653 hardcode_shlibpath_var_GCJ=no 17654 ;; 17655 17656 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17657 freebsd2*) 17658 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17659 hardcode_direct_GCJ=yes 17660 hardcode_minus_L_GCJ=yes 17661 hardcode_shlibpath_var_GCJ=no 17662 ;; 17663 17664 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17665 freebsd* | kfreebsd*-gnu | dragonfly*) 17666 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17667 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17668 hardcode_direct_GCJ=yes 17669 hardcode_shlibpath_var_GCJ=no 17670 ;; 17671 17672 hpux9*) 17673 if test "$GCC" = yes; then 17674 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' 17675 else 17676 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' 17677 fi 17678 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17679 hardcode_libdir_separator_GCJ=: 17680 hardcode_direct_GCJ=yes 17681 17682 # hardcode_minus_L: Not really in the search PATH, 17683 # but as the default location of the library. 17684 hardcode_minus_L_GCJ=yes 17685 export_dynamic_flag_spec_GCJ='${wl}-E' 17686 ;; 17687 17688 hpux10*) 17689 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17690 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17691 else 17692 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17693 fi 17694 if test "$with_gnu_ld" = no; then 17695 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17696 hardcode_libdir_separator_GCJ=: 17697 17698 hardcode_direct_GCJ=yes 17699 export_dynamic_flag_spec_GCJ='${wl}-E' 17700 17701 # hardcode_minus_L: Not really in the search PATH, 17702 # but as the default location of the library. 17703 hardcode_minus_L_GCJ=yes 17704 fi 17705 ;; 17706 17707 hpux11*) 17708 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17709 case $host_cpu in 17710 hppa*64*) 17711 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17712 ;; 17713 ia64*) 17714 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17715 ;; 17716 *) 17717 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17718 ;; 17719 esac 17720 else 17721 case $host_cpu in 17722 hppa*64*) 17723 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17724 ;; 17725 ia64*) 17726 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17727 ;; 17728 *) 17729 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17730 ;; 17731 esac 17732 fi 17733 if test "$with_gnu_ld" = no; then 17734 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17735 hardcode_libdir_separator_GCJ=: 17736 17737 case $host_cpu in 17738 hppa*64*|ia64*) 17739 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 17740 hardcode_direct_GCJ=no 17741 hardcode_shlibpath_var_GCJ=no 17742 ;; 17743 *) 17744 hardcode_direct_GCJ=yes 17745 export_dynamic_flag_spec_GCJ='${wl}-E' 17746 17747 # hardcode_minus_L: Not really in the search PATH, 17748 # but as the default location of the library. 17749 hardcode_minus_L_GCJ=yes 17750 ;; 17751 esac 17752 fi 17753 ;; 17754 17755 irix5* | irix6* | nonstopux*) 17756 if test "$GCC" = yes; then 17757 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' 17758 else 17759 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' 17760 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 17761 fi 17762 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17763 hardcode_libdir_separator_GCJ=: 17764 link_all_deplibs_GCJ=yes 17765 ;; 17766 17767 netbsd*) 17768 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17769 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17770 else 17771 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17772 fi 17773 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17774 hardcode_direct_GCJ=yes 17775 hardcode_shlibpath_var_GCJ=no 17776 ;; 17777 17778 newsos6) 17779 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17780 hardcode_direct_GCJ=yes 17781 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17782 hardcode_libdir_separator_GCJ=: 17783 hardcode_shlibpath_var_GCJ=no 17784 ;; 17785 17786 openbsd*) 17787 hardcode_direct_GCJ=yes 17788 hardcode_shlibpath_var_GCJ=no 17789 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17790 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17791 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 17792 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17793 export_dynamic_flag_spec_GCJ='${wl}-E' 17794 else 17795 case $host_os in 17796 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 17797 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17798 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17799 ;; 17800 *) 17801 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17802 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17803 ;; 17804 esac 17805 fi 17806 ;; 17807 17808 os2*) 17809 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17810 hardcode_minus_L_GCJ=yes 17811 allow_undefined_flag_GCJ=unsupported 17812 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' 17813 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 17814 ;; 17815 17816 osf3*) 17817 if test "$GCC" = yes; then 17818 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17819 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' 17820 else 17821 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17822 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' 17823 fi 17824 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17825 hardcode_libdir_separator_GCJ=: 17826 ;; 17827 17828 osf4* | osf5*) # as osf3* with the addition of -msym flag 17829 if test "$GCC" = yes; then 17830 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17831 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' 17832 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17833 else 17834 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17835 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' 17836 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~ 17837 $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' 17838 17839 # Both c and cxx compiler support -rpath directly 17840 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 17841 fi 17842 hardcode_libdir_separator_GCJ=: 17843 ;; 17844 17845 solaris*) 17846 no_undefined_flag_GCJ=' -z text' 17847 if test "$GCC" = yes; then 17848 wlarc='${wl}' 17849 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17850 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17851 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 17852 else 17853 wlarc='' 17854 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 17855 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17856 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 17857 fi 17858 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17859 hardcode_shlibpath_var_GCJ=no 17860 case $host_os in 17861 solaris2.[0-5] | solaris2.[0-5].*) ;; 17862 *) 17863 # The compiler driver will combine linker options so we 17864 # cannot just pass the convience library names through 17865 # without $wl, iff we do not link with $LD. 17866 # Luckily, gcc supports the same syntax we need for Sun Studio. 17867 # Supported since Solaris 2.6 (maybe 2.5.1?) 17868 case $wlarc in 17869 '') 17870 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 17871 *) 17872 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' ;; 17873 esac ;; 17874 esac 17875 link_all_deplibs_GCJ=yes 17876 ;; 17877 17878 sunos4*) 17879 if test "x$host_vendor" = xsequent; then 17880 # Use $CC to link under sequent, because it throws in some extra .o 17881 # files that make .init and .fini sections work. 17882 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17883 else 17884 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17885 fi 17886 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17887 hardcode_direct_GCJ=yes 17888 hardcode_minus_L_GCJ=yes 17889 hardcode_shlibpath_var_GCJ=no 17890 ;; 17891 17892 sysv4) 17893 case $host_vendor in 17894 sni) 17895 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17896 hardcode_direct_GCJ=yes # is this really true??? 17897 ;; 17898 siemens) 17899 ## LD is ld it makes a PLAMLIB 17900 ## CC just makes a GrossModule. 17901 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17902 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 17903 hardcode_direct_GCJ=no 17904 ;; 17905 motorola) 17906 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17907 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 17908 ;; 17909 esac 17910 runpath_var='LD_RUN_PATH' 17911 hardcode_shlibpath_var_GCJ=no 17912 ;; 17913 17914 sysv4.3*) 17915 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17916 hardcode_shlibpath_var_GCJ=no 17917 export_dynamic_flag_spec_GCJ='-Bexport' 17918 ;; 17919 17920 sysv4*MP*) 17921 if test -d /usr/nec; then 17922 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17923 hardcode_shlibpath_var_GCJ=no 17924 runpath_var=LD_RUN_PATH 17925 hardcode_runpath_var=yes 17926 ld_shlibs_GCJ=yes 17927 fi 17928 ;; 17929 17930 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 17931 no_undefined_flag_GCJ='${wl}-z,text' 17932 archive_cmds_need_lc_GCJ=no 17933 hardcode_shlibpath_var_GCJ=no 17934 runpath_var='LD_RUN_PATH' 17935 17936 if test "$GCC" = yes; then 17937 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17938 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17939 else 17940 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17941 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17942 fi 17943 ;; 17944 17945 sysv5* | sco3.2v5* | sco5v6*) 17946 # Note: We can NOT use -z defs as we might desire, because we do not 17947 # link with -lc, and that would cause any symbols used from libc to 17948 # always be unresolved, which means just about no library would 17949 # ever link correctly. If we're not using GNU ld we use -z text 17950 # though, which does catch some bad symbols but isn't as heavy-handed 17951 # as -z defs. 17952 no_undefined_flag_GCJ='${wl}-z,text' 17953 allow_undefined_flag_GCJ='${wl}-z,nodefs' 17954 archive_cmds_need_lc_GCJ=no 17955 hardcode_shlibpath_var_GCJ=no 17956 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 17957 hardcode_libdir_separator_GCJ=':' 17958 link_all_deplibs_GCJ=yes 17959 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 17960 runpath_var='LD_RUN_PATH' 17961 17962 if test "$GCC" = yes; then 17963 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17964 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17965 else 17966 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17967 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17968 fi 17969 ;; 17970 17971 uts4*) 17972 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17973 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17974 hardcode_shlibpath_var_GCJ=no 17975 ;; 17976 17977 *) 17978 ld_shlibs_GCJ=no 17979 ;; 17980 esac 17981 fi 17982 17983echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 17984echo "${ECHO_T}$ld_shlibs_GCJ" >&6 17985test "$ld_shlibs_GCJ" = no && can_build_shared=no 17986 17987# 17988# Do we need to explicitly link libc? 17989# 17990case "x$archive_cmds_need_lc_GCJ" in 17991x|xyes) 17992 # Assume -lc should be added 17993 archive_cmds_need_lc_GCJ=yes 17994 17995 if test "$enable_shared" = yes && test "$GCC" = yes; then 17996 case $archive_cmds_GCJ in 17997 *'~'*) 17998 # FIXME: we may have to deal with multi-command sequences. 17999 ;; 18000 '$CC '*) 18001 # Test whether the compiler implicitly links with -lc since on some 18002 # systems, -lgcc has to come before -lc. If gcc already passes -lc 18003 # to ld, don't add -lc before -lgcc. 18004 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 18005echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 18006 $rm conftest* 18007 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 18008 18009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18010 (eval $ac_compile) 2>&5 18011 ac_status=$? 18012 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18013 (exit $ac_status); } 2>conftest.err; then 18014 soname=conftest 18015 lib=conftest 18016 libobjs=conftest.$ac_objext 18017 deplibs= 18018 wl=$lt_prog_compiler_wl_GCJ 18019 pic_flag=$lt_prog_compiler_pic_GCJ 18020 compiler_flags=-v 18021 linker_flags=-v 18022 verstring= 18023 output_objdir=. 18024 libname=conftest 18025 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 18026 allow_undefined_flag_GCJ= 18027 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 18028 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 18029 ac_status=$? 18030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18031 (exit $ac_status); } 18032 then 18033 archive_cmds_need_lc_GCJ=no 18034 else 18035 archive_cmds_need_lc_GCJ=yes 18036 fi 18037 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 18038 else 18039 cat conftest.err 1>&5 18040 fi 18041 $rm conftest* 18042 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 18043echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 18044 ;; 18045 esac 18046 fi 18047 ;; 18048esac 18049 18050echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 18051echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 18052library_names_spec= 18053libname_spec='lib$name' 18054soname_spec= 18055shrext_cmds=".so" 18056postinstall_cmds= 18057postuninstall_cmds= 18058finish_cmds= 18059finish_eval= 18060shlibpath_var= 18061shlibpath_overrides_runpath=unknown 18062version_type=none 18063dynamic_linker="$host_os ld.so" 18064sys_lib_dlsearch_path_spec="/lib /usr/lib" 18065if test "$GCC" = yes; then 18066 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18067 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 18068 # if the path contains ";" then we assume it to be the separator 18069 # otherwise default to the standard path separator (i.e. ":") - it is 18070 # assumed that no part of a normal pathname contains ";" but that should 18071 # okay in the real world where ";" in dirpaths is itself problematic. 18072 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18073 else 18074 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18075 fi 18076else 18077 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18078fi 18079need_lib_prefix=unknown 18080hardcode_into_libs=no 18081 18082# when you set need_version to no, make sure it does not cause -set_version 18083# flags to be left without arguments 18084need_version=unknown 18085 18086case $host_os in 18087aix3*) 18088 version_type=linux 18089 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 18090 shlibpath_var=LIBPATH 18091 18092 # AIX 3 has no versioning support, so we append a major version to the name. 18093 soname_spec='${libname}${release}${shared_ext}$major' 18094 ;; 18095 18096aix4* | aix5*) 18097 version_type=linux 18098 need_lib_prefix=no 18099 need_version=no 18100 hardcode_into_libs=yes 18101 if test "$host_cpu" = ia64; then 18102 # AIX 5 supports IA64 18103 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 18104 shlibpath_var=LD_LIBRARY_PATH 18105 else 18106 # With GCC up to 2.95.x, collect2 would create an import file 18107 # for dependence libraries. The import file would start with 18108 # the line `#! .'. This would cause the generated library to 18109 # depend on `.', always an invalid library. This was fixed in 18110 # development snapshots of GCC prior to 3.0. 18111 case $host_os in 18112 aix4 | aix4.[01] | aix4.[01].*) 18113 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18114 echo ' yes ' 18115 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 18116 : 18117 else 18118 can_build_shared=no 18119 fi 18120 ;; 18121 esac 18122 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 18123 # soname into executable. Probably we can add versioning support to 18124 # collect2, so additional links can be useful in future. 18125 if test "$aix_use_runtimelinking" = yes; then 18126 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18127 # instead of lib<name>.a to let people know that these are not 18128 # typical AIX shared libraries. 18129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18130 else 18131 # We preserve .a as extension for shared libraries through AIX4.2 18132 # and later when we are not doing run time linking. 18133 library_names_spec='${libname}${release}.a $libname.a' 18134 soname_spec='${libname}${release}${shared_ext}$major' 18135 fi 18136 shlibpath_var=LIBPATH 18137 fi 18138 ;; 18139 18140amigaos*) 18141 library_names_spec='$libname.ixlibrary $libname.a' 18142 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18143 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' 18144 ;; 18145 18146beos*) 18147 library_names_spec='${libname}${shared_ext}' 18148 dynamic_linker="$host_os ld.so" 18149 shlibpath_var=LIBRARY_PATH 18150 ;; 18151 18152bsdi[45]*) 18153 version_type=linux 18154 need_version=no 18155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18156 soname_spec='${libname}${release}${shared_ext}$major' 18157 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18158 shlibpath_var=LD_LIBRARY_PATH 18159 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18160 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18161 # the default ld.so.conf also contains /usr/contrib/lib and 18162 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18163 # libtool to hard-code these into programs 18164 ;; 18165 18166cygwin* | mingw* | pw32*) 18167 version_type=windows 18168 shrext_cmds=".dll" 18169 need_version=no 18170 need_lib_prefix=no 18171 18172 case $GCC,$host_os in 18173 yes,cygwin* | yes,mingw* | yes,pw32*) 18174 library_names_spec='$libname.dll.a' 18175 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18176 postinstall_cmds='base_file=`basename \${file}`~ 18177 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 18178 dldir=$destdir/`dirname \$dlpath`~ 18179 test -d \$dldir || mkdir -p \$dldir~ 18180 $install_prog $dir/$dlname \$dldir/$dlname~ 18181 chmod a+x \$dldir/$dlname' 18182 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18183 dlpath=$dir/\$dldll~ 18184 $rm \$dlpath' 18185 shlibpath_overrides_runpath=yes 18186 18187 case $host_os in 18188 cygwin*) 18189 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18190 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18191 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 18192 ;; 18193 mingw*) 18194 # MinGW DLLs use traditional 'lib' prefix 18195 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18196 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18197 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 18198 # It is most probably a Windows format PATH printed by 18199 # mingw gcc, but we are running on Cygwin. Gcc prints its search 18200 # path with ; separators, and with drive letters. We can handle the 18201 # drive letters (cygwin fileutils understands them), so leave them, 18202 # especially as we might pass files found there to a mingw objdump, 18203 # which wouldn't understand a cygwinified path. Ahh. 18204 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18205 else 18206 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18207 fi 18208 ;; 18209 pw32*) 18210 # pw32 DLLs use 'pw' prefix rather than 'lib' 18211 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18212 ;; 18213 esac 18214 ;; 18215 18216 *) 18217 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 18218 ;; 18219 esac 18220 dynamic_linker='Win32 ld.exe' 18221 # FIXME: first we should search . and the directory the executable is in 18222 shlibpath_var=PATH 18223 ;; 18224 18225darwin* | rhapsody*) 18226 dynamic_linker="$host_os dyld" 18227 version_type=darwin 18228 need_lib_prefix=no 18229 need_version=no 18230 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 18231 soname_spec='${libname}${release}${major}$shared_ext' 18232 shlibpath_overrides_runpath=yes 18233 shlibpath_var=DYLD_LIBRARY_PATH 18234 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18235 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 18236 if test "$GCC" = yes; then 18237 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"` 18238 else 18239 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 18240 fi 18241 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18242 ;; 18243 18244dgux*) 18245 version_type=linux 18246 need_lib_prefix=no 18247 need_version=no 18248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 18249 soname_spec='${libname}${release}${shared_ext}$major' 18250 shlibpath_var=LD_LIBRARY_PATH 18251 ;; 18252 18253freebsd1*) 18254 dynamic_linker=no 18255 ;; 18256 18257kfreebsd*-gnu) 18258 version_type=linux 18259 need_lib_prefix=no 18260 need_version=no 18261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18262 soname_spec='${libname}${release}${shared_ext}$major' 18263 shlibpath_var=LD_LIBRARY_PATH 18264 shlibpath_overrides_runpath=no 18265 hardcode_into_libs=yes 18266 dynamic_linker='GNU ld.so' 18267 ;; 18268 18269freebsd* | dragonfly*) 18270 # DragonFly does not have aout. When/if they implement a new 18271 # versioning mechanism, adjust this. 18272 if test -x /usr/bin/objformat; then 18273 objformat=`/usr/bin/objformat` 18274 else 18275 case $host_os in 18276 freebsd[123]*) objformat=aout ;; 18277 *) objformat=elf ;; 18278 esac 18279 fi 18280 version_type=freebsd-$objformat 18281 case $version_type in 18282 freebsd-elf*) 18283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18284 need_version=no 18285 need_lib_prefix=no 18286 ;; 18287 freebsd-*) 18288 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 18289 need_version=yes 18290 ;; 18291 esac 18292 shlibpath_var=LD_LIBRARY_PATH 18293 case $host_os in 18294 freebsd2*) 18295 shlibpath_overrides_runpath=yes 18296 ;; 18297 freebsd3.[01]* | freebsdelf3.[01]*) 18298 shlibpath_overrides_runpath=yes 18299 hardcode_into_libs=yes 18300 ;; 18301 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18302 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18303 shlibpath_overrides_runpath=no 18304 hardcode_into_libs=yes 18305 ;; 18306 freebsd*) # from 4.6 on 18307 shlibpath_overrides_runpath=yes 18308 hardcode_into_libs=yes 18309 ;; 18310 esac 18311 ;; 18312 18313gnu*) 18314 version_type=linux 18315 need_lib_prefix=no 18316 need_version=no 18317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 18318 soname_spec='${libname}${release}${shared_ext}$major' 18319 shlibpath_var=LD_LIBRARY_PATH 18320 hardcode_into_libs=yes 18321 ;; 18322 18323hpux9* | hpux10* | hpux11*) 18324 # Give a soname corresponding to the major version so that dld.sl refuses to 18325 # link against other versions. 18326 version_type=sunos 18327 need_lib_prefix=no 18328 need_version=no 18329 case $host_cpu in 18330 ia64*) 18331 shrext_cmds='.so' 18332 hardcode_into_libs=yes 18333 dynamic_linker="$host_os dld.so" 18334 shlibpath_var=LD_LIBRARY_PATH 18335 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18337 soname_spec='${libname}${release}${shared_ext}$major' 18338 if test "X$HPUX_IA64_MODE" = X32; then 18339 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18340 else 18341 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18342 fi 18343 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18344 ;; 18345 hppa*64*) 18346 shrext_cmds='.sl' 18347 hardcode_into_libs=yes 18348 dynamic_linker="$host_os dld.sl" 18349 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18350 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18352 soname_spec='${libname}${release}${shared_ext}$major' 18353 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18354 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18355 ;; 18356 *) 18357 shrext_cmds='.sl' 18358 dynamic_linker="$host_os dld.sl" 18359 shlibpath_var=SHLIB_PATH 18360 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18362 soname_spec='${libname}${release}${shared_ext}$major' 18363 ;; 18364 esac 18365 # HP-UX runs *really* slowly unless shared libraries are mode 555. 18366 postinstall_cmds='chmod 555 $lib' 18367 ;; 18368 18369interix3*) 18370 version_type=linux 18371 need_lib_prefix=no 18372 need_version=no 18373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18374 soname_spec='${libname}${release}${shared_ext}$major' 18375 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18376 shlibpath_var=LD_LIBRARY_PATH 18377 shlibpath_overrides_runpath=no 18378 hardcode_into_libs=yes 18379 ;; 18380 18381irix5* | irix6* | nonstopux*) 18382 case $host_os in 18383 nonstopux*) version_type=nonstopux ;; 18384 *) 18385 if test "$lt_cv_prog_gnu_ld" = yes; then 18386 version_type=linux 18387 else 18388 version_type=irix 18389 fi ;; 18390 esac 18391 need_lib_prefix=no 18392 need_version=no 18393 soname_spec='${libname}${release}${shared_ext}$major' 18394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18395 case $host_os in 18396 irix5* | nonstopux*) 18397 libsuff= shlibsuff= 18398 ;; 18399 *) 18400 case $LD in # libtool.m4 will add one of these switches to LD 18401 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18402 libsuff= shlibsuff= libmagic=32-bit;; 18403 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18404 libsuff=32 shlibsuff=N32 libmagic=N32;; 18405 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18406 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18407 *) libsuff= shlibsuff= libmagic=never-match;; 18408 esac 18409 ;; 18410 esac 18411 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18412 shlibpath_overrides_runpath=no 18413 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18414 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18415 hardcode_into_libs=yes 18416 ;; 18417 18418# No shared lib support for Linux oldld, aout, or coff. 18419linux*oldld* | linux*aout* | linux*coff*) 18420 dynamic_linker=no 18421 ;; 18422 18423# This must be Linux ELF. 18424linux*) 18425 version_type=linux 18426 need_lib_prefix=no 18427 need_version=no 18428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18429 soname_spec='${libname}${release}${shared_ext}$major' 18430 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18431 shlibpath_var=LD_LIBRARY_PATH 18432 shlibpath_overrides_runpath=no 18433 # This implies no fast_install, which is unacceptable. 18434 # Some rework will be needed to allow for fast_install 18435 # before this can be enabled. 18436 hardcode_into_libs=yes 18437 18438 # Append ld.so.conf contents to the search path 18439 if test -f /etc/ld.so.conf; then 18440 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' ' '` 18441 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18442 fi 18443 18444 # We used to test for /lib/ld.so.1 and disable shared libraries on 18445 # powerpc, because MkLinux only supported shared libraries with the 18446 # GNU dynamic linker. Since this was broken with cross compilers, 18447 # most powerpc-linux boxes support dynamic linking these days and 18448 # people can always --disable-shared, the test was removed, and we 18449 # assume the GNU/Linux dynamic linker is in use. 18450 dynamic_linker='GNU/Linux ld.so' 18451 ;; 18452 18453knetbsd*-gnu) 18454 version_type=linux 18455 need_lib_prefix=no 18456 need_version=no 18457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18458 soname_spec='${libname}${release}${shared_ext}$major' 18459 shlibpath_var=LD_LIBRARY_PATH 18460 shlibpath_overrides_runpath=no 18461 hardcode_into_libs=yes 18462 dynamic_linker='GNU ld.so' 18463 ;; 18464 18465netbsd*) 18466 version_type=sunos 18467 need_lib_prefix=no 18468 need_version=no 18469 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18471 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18472 dynamic_linker='NetBSD (a.out) ld.so' 18473 else 18474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18475 soname_spec='${libname}${release}${shared_ext}$major' 18476 dynamic_linker='NetBSD ld.elf_so' 18477 fi 18478 shlibpath_var=LD_LIBRARY_PATH 18479 shlibpath_overrides_runpath=yes 18480 hardcode_into_libs=yes 18481 ;; 18482 18483newsos6) 18484 version_type=linux 18485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18486 shlibpath_var=LD_LIBRARY_PATH 18487 shlibpath_overrides_runpath=yes 18488 ;; 18489 18490nto-qnx*) 18491 version_type=linux 18492 need_lib_prefix=no 18493 need_version=no 18494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18495 soname_spec='${libname}${release}${shared_ext}$major' 18496 shlibpath_var=LD_LIBRARY_PATH 18497 shlibpath_overrides_runpath=yes 18498 ;; 18499 18500openbsd*) 18501 version_type=sunos 18502 sys_lib_dlsearch_path_spec="/usr/lib" 18503 need_lib_prefix=no 18504 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18505 case $host_os in 18506 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18507 *) need_version=no ;; 18508 esac 18509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18510 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18511 shlibpath_var=LD_LIBRARY_PATH 18512 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18513 case $host_os in 18514 openbsd2.[89] | openbsd2.[89].*) 18515 shlibpath_overrides_runpath=no 18516 ;; 18517 *) 18518 shlibpath_overrides_runpath=yes 18519 ;; 18520 esac 18521 else 18522 shlibpath_overrides_runpath=yes 18523 fi 18524 ;; 18525 18526os2*) 18527 libname_spec='$name' 18528 shrext_cmds=".dll" 18529 need_lib_prefix=no 18530 library_names_spec='$libname${shared_ext} $libname.a' 18531 dynamic_linker='OS/2 ld.exe' 18532 shlibpath_var=LIBPATH 18533 ;; 18534 18535osf3* | osf4* | osf5*) 18536 version_type=osf 18537 need_lib_prefix=no 18538 need_version=no 18539 soname_spec='${libname}${release}${shared_ext}$major' 18540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18541 shlibpath_var=LD_LIBRARY_PATH 18542 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18543 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18544 ;; 18545 18546solaris*) 18547 version_type=linux 18548 need_lib_prefix=no 18549 need_version=no 18550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18551 soname_spec='${libname}${release}${shared_ext}$major' 18552 shlibpath_var=LD_LIBRARY_PATH 18553 shlibpath_overrides_runpath=yes 18554 hardcode_into_libs=yes 18555 # ldd complains unless libraries are executable 18556 postinstall_cmds='chmod +x $lib' 18557 ;; 18558 18559sunos4*) 18560 version_type=sunos 18561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18562 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18563 shlibpath_var=LD_LIBRARY_PATH 18564 shlibpath_overrides_runpath=yes 18565 if test "$with_gnu_ld" = yes; then 18566 need_lib_prefix=no 18567 fi 18568 need_version=yes 18569 ;; 18570 18571sysv4 | sysv4.3*) 18572 version_type=linux 18573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18574 soname_spec='${libname}${release}${shared_ext}$major' 18575 shlibpath_var=LD_LIBRARY_PATH 18576 case $host_vendor in 18577 sni) 18578 shlibpath_overrides_runpath=no 18579 need_lib_prefix=no 18580 export_dynamic_flag_spec='${wl}-Blargedynsym' 18581 runpath_var=LD_RUN_PATH 18582 ;; 18583 siemens) 18584 need_lib_prefix=no 18585 ;; 18586 motorola) 18587 need_lib_prefix=no 18588 need_version=no 18589 shlibpath_overrides_runpath=no 18590 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18591 ;; 18592 esac 18593 ;; 18594 18595sysv4*MP*) 18596 if test -d /usr/nec ;then 18597 version_type=linux 18598 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18599 soname_spec='$libname${shared_ext}.$major' 18600 shlibpath_var=LD_LIBRARY_PATH 18601 fi 18602 ;; 18603 18604sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18605 version_type=freebsd-elf 18606 need_lib_prefix=no 18607 need_version=no 18608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18609 soname_spec='${libname}${release}${shared_ext}$major' 18610 shlibpath_var=LD_LIBRARY_PATH 18611 hardcode_into_libs=yes 18612 if test "$with_gnu_ld" = yes; then 18613 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18614 shlibpath_overrides_runpath=no 18615 else 18616 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18617 shlibpath_overrides_runpath=yes 18618 case $host_os in 18619 sco3.2v5*) 18620 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18621 ;; 18622 esac 18623 fi 18624 sys_lib_dlsearch_path_spec='/usr/lib' 18625 ;; 18626 18627uts4*) 18628 version_type=linux 18629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18630 soname_spec='${libname}${release}${shared_ext}$major' 18631 shlibpath_var=LD_LIBRARY_PATH 18632 ;; 18633 18634*) 18635 dynamic_linker=no 18636 ;; 18637esac 18638echo "$as_me:$LINENO: result: $dynamic_linker" >&5 18639echo "${ECHO_T}$dynamic_linker" >&6 18640test "$dynamic_linker" = no && can_build_shared=no 18641 18642variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18643if test "$GCC" = yes; then 18644 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18645fi 18646 18647echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 18648echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 18649hardcode_action_GCJ= 18650if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 18651 test -n "$runpath_var_GCJ" || \ 18652 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 18653 18654 # We can hardcode non-existant directories. 18655 if test "$hardcode_direct_GCJ" != no && 18656 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18657 # have to relink, otherwise we might link with an installed library 18658 # when we should be linking with a yet-to-be-installed one 18659 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 18660 test "$hardcode_minus_L_GCJ" != no; then 18661 # Linking always hardcodes the temporary library directory. 18662 hardcode_action_GCJ=relink 18663 else 18664 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18665 hardcode_action_GCJ=immediate 18666 fi 18667else 18668 # We cannot hardcode anything, or else we can only hardcode existing 18669 # directories. 18670 hardcode_action_GCJ=unsupported 18671fi 18672echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 18673echo "${ECHO_T}$hardcode_action_GCJ" >&6 18674 18675if test "$hardcode_action_GCJ" = relink; then 18676 # Fast installation is not supported 18677 enable_fast_install=no 18678elif test "$shlibpath_overrides_runpath" = yes || 18679 test "$enable_shared" = no; then 18680 # Fast installation is not necessary 18681 enable_fast_install=needless 18682fi 18683 18684 18685# The else clause should only fire when bootstrapping the 18686# libtool distribution, otherwise you forgot to ship ltmain.sh 18687# with your package, and you will get complaints that there are 18688# no rules to generate ltmain.sh. 18689if test -f "$ltmain"; then 18690 # See if we are running on zsh, and set the options which allow our commands through 18691 # without removal of \ escapes. 18692 if test -n "${ZSH_VERSION+set}" ; then 18693 setopt NO_GLOB_SUBST 18694 fi 18695 # Now quote all the things that may contain metacharacters while being 18696 # careful not to overquote the AC_SUBSTed values. We take copies of the 18697 # variables and quote the copies for generation of the libtool script. 18698 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18699 SED SHELL STRIP \ 18700 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18701 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18702 deplibs_check_method reload_flag reload_cmds need_locks \ 18703 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18704 lt_cv_sys_global_symbol_to_c_name_address \ 18705 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18706 old_postinstall_cmds old_postuninstall_cmds \ 18707 compiler_GCJ \ 18708 CC_GCJ \ 18709 LD_GCJ \ 18710 lt_prog_compiler_wl_GCJ \ 18711 lt_prog_compiler_pic_GCJ \ 18712 lt_prog_compiler_static_GCJ \ 18713 lt_prog_compiler_no_builtin_flag_GCJ \ 18714 export_dynamic_flag_spec_GCJ \ 18715 thread_safe_flag_spec_GCJ \ 18716 whole_archive_flag_spec_GCJ \ 18717 enable_shared_with_static_runtimes_GCJ \ 18718 old_archive_cmds_GCJ \ 18719 old_archive_from_new_cmds_GCJ \ 18720 predep_objects_GCJ \ 18721 postdep_objects_GCJ \ 18722 predeps_GCJ \ 18723 postdeps_GCJ \ 18724 compiler_lib_search_path_GCJ \ 18725 archive_cmds_GCJ \ 18726 archive_expsym_cmds_GCJ \ 18727 postinstall_cmds_GCJ \ 18728 postuninstall_cmds_GCJ \ 18729 old_archive_from_expsyms_cmds_GCJ \ 18730 allow_undefined_flag_GCJ \ 18731 no_undefined_flag_GCJ \ 18732 export_symbols_cmds_GCJ \ 18733 hardcode_libdir_flag_spec_GCJ \ 18734 hardcode_libdir_flag_spec_ld_GCJ \ 18735 hardcode_libdir_separator_GCJ \ 18736 hardcode_automatic_GCJ \ 18737 module_cmds_GCJ \ 18738 module_expsym_cmds_GCJ \ 18739 lt_cv_prog_compiler_c_o_GCJ \ 18740 exclude_expsyms_GCJ \ 18741 include_expsyms_GCJ; do 18742 18743 case $var in 18744 old_archive_cmds_GCJ | \ 18745 old_archive_from_new_cmds_GCJ | \ 18746 archive_cmds_GCJ | \ 18747 archive_expsym_cmds_GCJ | \ 18748 module_cmds_GCJ | \ 18749 module_expsym_cmds_GCJ | \ 18750 old_archive_from_expsyms_cmds_GCJ | \ 18751 export_symbols_cmds_GCJ | \ 18752 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18753 postinstall_cmds | postuninstall_cmds | \ 18754 old_postinstall_cmds | old_postuninstall_cmds | \ 18755 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18756 # Double-quote double-evaled strings. 18757 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18758 ;; 18759 *) 18760 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18761 ;; 18762 esac 18763 done 18764 18765 case $lt_echo in 18766 *'\$0 --fallback-echo"') 18767 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18768 ;; 18769 esac 18770 18771cfgfile="$ofile" 18772 18773 cat <<__EOF__ >> "$cfgfile" 18774# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18775 18776# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18777 18778# Shell to use when invoking shell scripts. 18779SHELL=$lt_SHELL 18780 18781# Whether or not to build shared libraries. 18782build_libtool_libs=$enable_shared 18783 18784# Whether or not to build static libraries. 18785build_old_libs=$enable_static 18786 18787# Whether or not to add -lc for building shared libraries. 18788build_libtool_need_lc=$archive_cmds_need_lc_GCJ 18789 18790# Whether or not to disallow shared libs when runtime libs are static 18791allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 18792 18793# Whether or not to optimize for fast installation. 18794fast_install=$enable_fast_install 18795 18796# The host system. 18797host_alias=$host_alias 18798host=$host 18799host_os=$host_os 18800 18801# The build system. 18802build_alias=$build_alias 18803build=$build 18804build_os=$build_os 18805 18806# An echo program that does not interpret backslashes. 18807echo=$lt_echo 18808 18809# The archiver. 18810AR=$lt_AR 18811AR_FLAGS=$lt_AR_FLAGS 18812 18813# A C compiler. 18814LTCC=$lt_LTCC 18815 18816# LTCC compiler flags. 18817LTCFLAGS=$lt_LTCFLAGS 18818 18819# A language-specific compiler. 18820CC=$lt_compiler_GCJ 18821 18822# Is the compiler the GNU C compiler? 18823with_gcc=$GCC_GCJ 18824 18825# An ERE matcher. 18826EGREP=$lt_EGREP 18827 18828# The linker used to build libraries. 18829LD=$lt_LD_GCJ 18830 18831# Whether we need hard or soft links. 18832LN_S=$lt_LN_S 18833 18834# A BSD-compatible nm program. 18835NM=$lt_NM 18836 18837# A symbol stripping program 18838STRIP=$lt_STRIP 18839 18840# Used to examine libraries when file_magic_cmd begins "file" 18841MAGIC_CMD=$MAGIC_CMD 18842 18843# Used on cygwin: DLL creation program. 18844DLLTOOL="$DLLTOOL" 18845 18846# Used on cygwin: object dumper. 18847OBJDUMP="$OBJDUMP" 18848 18849# Used on cygwin: assembler. 18850AS="$AS" 18851 18852# The name of the directory that contains temporary libtool files. 18853objdir=$objdir 18854 18855# How to create reloadable object files. 18856reload_flag=$lt_reload_flag 18857reload_cmds=$lt_reload_cmds 18858 18859# How to pass a linker flag through the compiler. 18860wl=$lt_lt_prog_compiler_wl_GCJ 18861 18862# Object file suffix (normally "o"). 18863objext="$ac_objext" 18864 18865# Old archive suffix (normally "a"). 18866libext="$libext" 18867 18868# Shared library suffix (normally ".so"). 18869shrext_cmds='$shrext_cmds' 18870 18871# Executable file suffix (normally ""). 18872exeext="$exeext" 18873 18874# Additional compiler flags for building library objects. 18875pic_flag=$lt_lt_prog_compiler_pic_GCJ 18876pic_mode=$pic_mode 18877 18878# What is the maximum length of a command? 18879max_cmd_len=$lt_cv_sys_max_cmd_len 18880 18881# Does compiler simultaneously support -c and -o options? 18882compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 18883 18884# Must we lock files when doing compilation? 18885need_locks=$lt_need_locks 18886 18887# Do we need the lib prefix for modules? 18888need_lib_prefix=$need_lib_prefix 18889 18890# Do we need a version for libraries? 18891need_version=$need_version 18892 18893# Whether dlopen is supported. 18894dlopen_support=$enable_dlopen 18895 18896# Whether dlopen of programs is supported. 18897dlopen_self=$enable_dlopen_self 18898 18899# Whether dlopen of statically linked programs is supported. 18900dlopen_self_static=$enable_dlopen_self_static 18901 18902# Compiler flag to prevent dynamic linking. 18903link_static_flag=$lt_lt_prog_compiler_static_GCJ 18904 18905# Compiler flag to turn off builtin functions. 18906no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 18907 18908# Compiler flag to allow reflexive dlopens. 18909export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 18910 18911# Compiler flag to generate shared objects directly from archives. 18912whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 18913 18914# Compiler flag to generate thread-safe objects. 18915thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 18916 18917# Library versioning type. 18918version_type=$version_type 18919 18920# Format of library name prefix. 18921libname_spec=$lt_libname_spec 18922 18923# List of archive names. First name is the real one, the rest are links. 18924# The last name is the one that the linker finds with -lNAME. 18925library_names_spec=$lt_library_names_spec 18926 18927# The coded name of the library, if different from the real name. 18928soname_spec=$lt_soname_spec 18929 18930# Commands used to build and install an old-style archive. 18931RANLIB=$lt_RANLIB 18932old_archive_cmds=$lt_old_archive_cmds_GCJ 18933old_postinstall_cmds=$lt_old_postinstall_cmds 18934old_postuninstall_cmds=$lt_old_postuninstall_cmds 18935 18936# Create an old-style archive from a shared archive. 18937old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 18938 18939# Create a temporary old-style archive to link instead of a shared archive. 18940old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 18941 18942# Commands used to build and install a shared archive. 18943archive_cmds=$lt_archive_cmds_GCJ 18944archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 18945postinstall_cmds=$lt_postinstall_cmds 18946postuninstall_cmds=$lt_postuninstall_cmds 18947 18948# Commands used to build a loadable module (assumed same as above if empty) 18949module_cmds=$lt_module_cmds_GCJ 18950module_expsym_cmds=$lt_module_expsym_cmds_GCJ 18951 18952# Commands to strip libraries. 18953old_striplib=$lt_old_striplib 18954striplib=$lt_striplib 18955 18956# Dependencies to place before the objects being linked to create a 18957# shared library. 18958predep_objects=$lt_predep_objects_GCJ 18959 18960# Dependencies to place after the objects being linked to create a 18961# shared library. 18962postdep_objects=$lt_postdep_objects_GCJ 18963 18964# Dependencies to place before the objects being linked to create a 18965# shared library. 18966predeps=$lt_predeps_GCJ 18967 18968# Dependencies to place after the objects being linked to create a 18969# shared library. 18970postdeps=$lt_postdeps_GCJ 18971 18972# The library search path used internally by the compiler when linking 18973# a shared library. 18974compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 18975 18976# Method to check whether dependent libraries are shared objects. 18977deplibs_check_method=$lt_deplibs_check_method 18978 18979# Command to use when deplibs_check_method == file_magic. 18980file_magic_cmd=$lt_file_magic_cmd 18981 18982# Flag that allows shared libraries with undefined symbols to be built. 18983allow_undefined_flag=$lt_allow_undefined_flag_GCJ 18984 18985# Flag that forces no undefined symbols. 18986no_undefined_flag=$lt_no_undefined_flag_GCJ 18987 18988# Commands used to finish a libtool library installation in a directory. 18989finish_cmds=$lt_finish_cmds 18990 18991# Same as above, but a single script fragment to be evaled but not shown. 18992finish_eval=$lt_finish_eval 18993 18994# Take the output of nm and produce a listing of raw symbols and C names. 18995global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18996 18997# Transform the output of nm in a proper C declaration 18998global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18999 19000# Transform the output of nm in a C name address pair 19001global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19002 19003# This is the shared library runtime path variable. 19004runpath_var=$runpath_var 19005 19006# This is the shared library path variable. 19007shlibpath_var=$shlibpath_var 19008 19009# Is shlibpath searched before the hard-coded library search path? 19010shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19011 19012# How to hardcode a shared library path into an executable. 19013hardcode_action=$hardcode_action_GCJ 19014 19015# Whether we should hardcode library paths into libraries. 19016hardcode_into_libs=$hardcode_into_libs 19017 19018# Flag to hardcode \$libdir into a binary during linking. 19019# This must work even if \$libdir does not exist. 19020hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 19021 19022# If ld is used when linking, flag to hardcode \$libdir into 19023# a binary during linking. This must work even if \$libdir does 19024# not exist. 19025hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 19026 19027# Whether we need a single -rpath flag with a separated argument. 19028hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 19029 19030# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19031# resulting binary. 19032hardcode_direct=$hardcode_direct_GCJ 19033 19034# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19035# resulting binary. 19036hardcode_minus_L=$hardcode_minus_L_GCJ 19037 19038# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19039# the resulting binary. 19040hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 19041 19042# Set to yes if building a shared library automatically hardcodes DIR into the library 19043# and all subsequent libraries and executables linked against it. 19044hardcode_automatic=$hardcode_automatic_GCJ 19045 19046# Variables whose values should be saved in libtool wrapper scripts and 19047# restored at relink time. 19048variables_saved_for_relink="$variables_saved_for_relink" 19049 19050# Whether libtool must link a program against all its dependency libraries. 19051link_all_deplibs=$link_all_deplibs_GCJ 19052 19053# Compile-time system search path for libraries 19054sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19055 19056# Run-time system search path for libraries 19057sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19058 19059# Fix the shell variable \$srcfile for the compiler. 19060fix_srcfile_path="$fix_srcfile_path_GCJ" 19061 19062# Set to yes if exported symbols are required. 19063always_export_symbols=$always_export_symbols_GCJ 19064 19065# The commands to list exported symbols. 19066export_symbols_cmds=$lt_export_symbols_cmds_GCJ 19067 19068# The commands to extract the exported symbol list from a shared archive. 19069extract_expsyms_cmds=$lt_extract_expsyms_cmds 19070 19071# Symbols that should not be listed in the preloaded symbols. 19072exclude_expsyms=$lt_exclude_expsyms_GCJ 19073 19074# Symbols that must always be exported. 19075include_expsyms=$lt_include_expsyms_GCJ 19076 19077# ### END LIBTOOL TAG CONFIG: $tagname 19078 19079__EOF__ 19080 19081 19082else 19083 # If there is no Makefile yet, we rely on a make rule to execute 19084 # `config.status --recheck' to rerun these tests and create the 19085 # libtool script then. 19086 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19087 if test -f "$ltmain_in"; then 19088 test -f Makefile && make "$ltmain" 19089 fi 19090fi 19091 19092 19093ac_ext=c 19094ac_cpp='$CPP $CPPFLAGS' 19095ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19096ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19097ac_compiler_gnu=$ac_cv_c_compiler_gnu 19098 19099CC="$lt_save_CC" 19100 19101 else 19102 tagname="" 19103 fi 19104 ;; 19105 19106 RC) 19107 19108 19109 19110# Source file extension for RC test sources. 19111ac_ext=rc 19112 19113# Object file extension for compiled RC test sources. 19114objext=o 19115objext_RC=$objext 19116 19117# Code to be used in simple compile tests 19118lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 19119 19120# Code to be used in simple link tests 19121lt_simple_link_test_code="$lt_simple_compile_test_code" 19122 19123# ltmain only uses $CC for tagged configurations so make sure $CC is set. 19124 19125# If no C compiler was specified, use CC. 19126LTCC=${LTCC-"$CC"} 19127 19128# If no C compiler flags were specified, use CFLAGS. 19129LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 19130 19131# Allow CC to be a program name with arguments. 19132compiler=$CC 19133 19134 19135# save warnings/boilerplate of simple test code 19136ac_outfile=conftest.$ac_objext 19137printf "$lt_simple_compile_test_code" >conftest.$ac_ext 19138eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19139_lt_compiler_boilerplate=`cat conftest.err` 19140$rm conftest* 19141 19142ac_outfile=conftest.$ac_objext 19143printf "$lt_simple_link_test_code" >conftest.$ac_ext 19144eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19145_lt_linker_boilerplate=`cat conftest.err` 19146$rm conftest* 19147 19148 19149# Allow CC to be a program name with arguments. 19150lt_save_CC="$CC" 19151CC=${RC-"windres"} 19152compiler=$CC 19153compiler_RC=$CC 19154for cc_temp in $compiler""; do 19155 case $cc_temp in 19156 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19157 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19158 \-*) ;; 19159 *) break;; 19160 esac 19161done 19162cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 19163 19164lt_cv_prog_compiler_c_o_RC=yes 19165 19166# The else clause should only fire when bootstrapping the 19167# libtool distribution, otherwise you forgot to ship ltmain.sh 19168# with your package, and you will get complaints that there are 19169# no rules to generate ltmain.sh. 19170if test -f "$ltmain"; then 19171 # See if we are running on zsh, and set the options which allow our commands through 19172 # without removal of \ escapes. 19173 if test -n "${ZSH_VERSION+set}" ; then 19174 setopt NO_GLOB_SUBST 19175 fi 19176 # Now quote all the things that may contain metacharacters while being 19177 # careful not to overquote the AC_SUBSTed values. We take copies of the 19178 # variables and quote the copies for generation of the libtool script. 19179 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19180 SED SHELL STRIP \ 19181 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19182 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19183 deplibs_check_method reload_flag reload_cmds need_locks \ 19184 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19185 lt_cv_sys_global_symbol_to_c_name_address \ 19186 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19187 old_postinstall_cmds old_postuninstall_cmds \ 19188 compiler_RC \ 19189 CC_RC \ 19190 LD_RC \ 19191 lt_prog_compiler_wl_RC \ 19192 lt_prog_compiler_pic_RC \ 19193 lt_prog_compiler_static_RC \ 19194 lt_prog_compiler_no_builtin_flag_RC \ 19195 export_dynamic_flag_spec_RC \ 19196 thread_safe_flag_spec_RC \ 19197 whole_archive_flag_spec_RC \ 19198 enable_shared_with_static_runtimes_RC \ 19199 old_archive_cmds_RC \ 19200 old_archive_from_new_cmds_RC \ 19201 predep_objects_RC \ 19202 postdep_objects_RC \ 19203 predeps_RC \ 19204 postdeps_RC \ 19205 compiler_lib_search_path_RC \ 19206 archive_cmds_RC \ 19207 archive_expsym_cmds_RC \ 19208 postinstall_cmds_RC \ 19209 postuninstall_cmds_RC \ 19210 old_archive_from_expsyms_cmds_RC \ 19211 allow_undefined_flag_RC \ 19212 no_undefined_flag_RC \ 19213 export_symbols_cmds_RC \ 19214 hardcode_libdir_flag_spec_RC \ 19215 hardcode_libdir_flag_spec_ld_RC \ 19216 hardcode_libdir_separator_RC \ 19217 hardcode_automatic_RC \ 19218 module_cmds_RC \ 19219 module_expsym_cmds_RC \ 19220 lt_cv_prog_compiler_c_o_RC \ 19221 exclude_expsyms_RC \ 19222 include_expsyms_RC; do 19223 19224 case $var in 19225 old_archive_cmds_RC | \ 19226 old_archive_from_new_cmds_RC | \ 19227 archive_cmds_RC | \ 19228 archive_expsym_cmds_RC | \ 19229 module_cmds_RC | \ 19230 module_expsym_cmds_RC | \ 19231 old_archive_from_expsyms_cmds_RC | \ 19232 export_symbols_cmds_RC | \ 19233 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19234 postinstall_cmds | postuninstall_cmds | \ 19235 old_postinstall_cmds | old_postuninstall_cmds | \ 19236 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19237 # Double-quote double-evaled strings. 19238 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19239 ;; 19240 *) 19241 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19242 ;; 19243 esac 19244 done 19245 19246 case $lt_echo in 19247 *'\$0 --fallback-echo"') 19248 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19249 ;; 19250 esac 19251 19252cfgfile="$ofile" 19253 19254 cat <<__EOF__ >> "$cfgfile" 19255# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19256 19257# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19258 19259# Shell to use when invoking shell scripts. 19260SHELL=$lt_SHELL 19261 19262# Whether or not to build shared libraries. 19263build_libtool_libs=$enable_shared 19264 19265# Whether or not to build static libraries. 19266build_old_libs=$enable_static 19267 19268# Whether or not to add -lc for building shared libraries. 19269build_libtool_need_lc=$archive_cmds_need_lc_RC 19270 19271# Whether or not to disallow shared libs when runtime libs are static 19272allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 19273 19274# Whether or not to optimize for fast installation. 19275fast_install=$enable_fast_install 19276 19277# The host system. 19278host_alias=$host_alias 19279host=$host 19280host_os=$host_os 19281 19282# The build system. 19283build_alias=$build_alias 19284build=$build 19285build_os=$build_os 19286 19287# An echo program that does not interpret backslashes. 19288echo=$lt_echo 19289 19290# The archiver. 19291AR=$lt_AR 19292AR_FLAGS=$lt_AR_FLAGS 19293 19294# A C compiler. 19295LTCC=$lt_LTCC 19296 19297# LTCC compiler flags. 19298LTCFLAGS=$lt_LTCFLAGS 19299 19300# A language-specific compiler. 19301CC=$lt_compiler_RC 19302 19303# Is the compiler the GNU C compiler? 19304with_gcc=$GCC_RC 19305 19306# An ERE matcher. 19307EGREP=$lt_EGREP 19308 19309# The linker used to build libraries. 19310LD=$lt_LD_RC 19311 19312# Whether we need hard or soft links. 19313LN_S=$lt_LN_S 19314 19315# A BSD-compatible nm program. 19316NM=$lt_NM 19317 19318# A symbol stripping program 19319STRIP=$lt_STRIP 19320 19321# Used to examine libraries when file_magic_cmd begins "file" 19322MAGIC_CMD=$MAGIC_CMD 19323 19324# Used on cygwin: DLL creation program. 19325DLLTOOL="$DLLTOOL" 19326 19327# Used on cygwin: object dumper. 19328OBJDUMP="$OBJDUMP" 19329 19330# Used on cygwin: assembler. 19331AS="$AS" 19332 19333# The name of the directory that contains temporary libtool files. 19334objdir=$objdir 19335 19336# How to create reloadable object files. 19337reload_flag=$lt_reload_flag 19338reload_cmds=$lt_reload_cmds 19339 19340# How to pass a linker flag through the compiler. 19341wl=$lt_lt_prog_compiler_wl_RC 19342 19343# Object file suffix (normally "o"). 19344objext="$ac_objext" 19345 19346# Old archive suffix (normally "a"). 19347libext="$libext" 19348 19349# Shared library suffix (normally ".so"). 19350shrext_cmds='$shrext_cmds' 19351 19352# Executable file suffix (normally ""). 19353exeext="$exeext" 19354 19355# Additional compiler flags for building library objects. 19356pic_flag=$lt_lt_prog_compiler_pic_RC 19357pic_mode=$pic_mode 19358 19359# What is the maximum length of a command? 19360max_cmd_len=$lt_cv_sys_max_cmd_len 19361 19362# Does compiler simultaneously support -c and -o options? 19363compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19364 19365# Must we lock files when doing compilation? 19366need_locks=$lt_need_locks 19367 19368# Do we need the lib prefix for modules? 19369need_lib_prefix=$need_lib_prefix 19370 19371# Do we need a version for libraries? 19372need_version=$need_version 19373 19374# Whether dlopen is supported. 19375dlopen_support=$enable_dlopen 19376 19377# Whether dlopen of programs is supported. 19378dlopen_self=$enable_dlopen_self 19379 19380# Whether dlopen of statically linked programs is supported. 19381dlopen_self_static=$enable_dlopen_self_static 19382 19383# Compiler flag to prevent dynamic linking. 19384link_static_flag=$lt_lt_prog_compiler_static_RC 19385 19386# Compiler flag to turn off builtin functions. 19387no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19388 19389# Compiler flag to allow reflexive dlopens. 19390export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19391 19392# Compiler flag to generate shared objects directly from archives. 19393whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19394 19395# Compiler flag to generate thread-safe objects. 19396thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19397 19398# Library versioning type. 19399version_type=$version_type 19400 19401# Format of library name prefix. 19402libname_spec=$lt_libname_spec 19403 19404# List of archive names. First name is the real one, the rest are links. 19405# The last name is the one that the linker finds with -lNAME. 19406library_names_spec=$lt_library_names_spec 19407 19408# The coded name of the library, if different from the real name. 19409soname_spec=$lt_soname_spec 19410 19411# Commands used to build and install an old-style archive. 19412RANLIB=$lt_RANLIB 19413old_archive_cmds=$lt_old_archive_cmds_RC 19414old_postinstall_cmds=$lt_old_postinstall_cmds 19415old_postuninstall_cmds=$lt_old_postuninstall_cmds 19416 19417# Create an old-style archive from a shared archive. 19418old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19419 19420# Create a temporary old-style archive to link instead of a shared archive. 19421old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19422 19423# Commands used to build and install a shared archive. 19424archive_cmds=$lt_archive_cmds_RC 19425archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19426postinstall_cmds=$lt_postinstall_cmds 19427postuninstall_cmds=$lt_postuninstall_cmds 19428 19429# Commands used to build a loadable module (assumed same as above if empty) 19430module_cmds=$lt_module_cmds_RC 19431module_expsym_cmds=$lt_module_expsym_cmds_RC 19432 19433# Commands to strip libraries. 19434old_striplib=$lt_old_striplib 19435striplib=$lt_striplib 19436 19437# Dependencies to place before the objects being linked to create a 19438# shared library. 19439predep_objects=$lt_predep_objects_RC 19440 19441# Dependencies to place after the objects being linked to create a 19442# shared library. 19443postdep_objects=$lt_postdep_objects_RC 19444 19445# Dependencies to place before the objects being linked to create a 19446# shared library. 19447predeps=$lt_predeps_RC 19448 19449# Dependencies to place after the objects being linked to create a 19450# shared library. 19451postdeps=$lt_postdeps_RC 19452 19453# The library search path used internally by the compiler when linking 19454# a shared library. 19455compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19456 19457# Method to check whether dependent libraries are shared objects. 19458deplibs_check_method=$lt_deplibs_check_method 19459 19460# Command to use when deplibs_check_method == file_magic. 19461file_magic_cmd=$lt_file_magic_cmd 19462 19463# Flag that allows shared libraries with undefined symbols to be built. 19464allow_undefined_flag=$lt_allow_undefined_flag_RC 19465 19466# Flag that forces no undefined symbols. 19467no_undefined_flag=$lt_no_undefined_flag_RC 19468 19469# Commands used to finish a libtool library installation in a directory. 19470finish_cmds=$lt_finish_cmds 19471 19472# Same as above, but a single script fragment to be evaled but not shown. 19473finish_eval=$lt_finish_eval 19474 19475# Take the output of nm and produce a listing of raw symbols and C names. 19476global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19477 19478# Transform the output of nm in a proper C declaration 19479global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19480 19481# Transform the output of nm in a C name address pair 19482global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19483 19484# This is the shared library runtime path variable. 19485runpath_var=$runpath_var 19486 19487# This is the shared library path variable. 19488shlibpath_var=$shlibpath_var 19489 19490# Is shlibpath searched before the hard-coded library search path? 19491shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19492 19493# How to hardcode a shared library path into an executable. 19494hardcode_action=$hardcode_action_RC 19495 19496# Whether we should hardcode library paths into libraries. 19497hardcode_into_libs=$hardcode_into_libs 19498 19499# Flag to hardcode \$libdir into a binary during linking. 19500# This must work even if \$libdir does not exist. 19501hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19502 19503# If ld is used when linking, flag to hardcode \$libdir into 19504# a binary during linking. This must work even if \$libdir does 19505# not exist. 19506hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19507 19508# Whether we need a single -rpath flag with a separated argument. 19509hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19510 19511# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19512# resulting binary. 19513hardcode_direct=$hardcode_direct_RC 19514 19515# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19516# resulting binary. 19517hardcode_minus_L=$hardcode_minus_L_RC 19518 19519# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19520# the resulting binary. 19521hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19522 19523# Set to yes if building a shared library automatically hardcodes DIR into the library 19524# and all subsequent libraries and executables linked against it. 19525hardcode_automatic=$hardcode_automatic_RC 19526 19527# Variables whose values should be saved in libtool wrapper scripts and 19528# restored at relink time. 19529variables_saved_for_relink="$variables_saved_for_relink" 19530 19531# Whether libtool must link a program against all its dependency libraries. 19532link_all_deplibs=$link_all_deplibs_RC 19533 19534# Compile-time system search path for libraries 19535sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19536 19537# Run-time system search path for libraries 19538sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19539 19540# Fix the shell variable \$srcfile for the compiler. 19541fix_srcfile_path="$fix_srcfile_path_RC" 19542 19543# Set to yes if exported symbols are required. 19544always_export_symbols=$always_export_symbols_RC 19545 19546# The commands to list exported symbols. 19547export_symbols_cmds=$lt_export_symbols_cmds_RC 19548 19549# The commands to extract the exported symbol list from a shared archive. 19550extract_expsyms_cmds=$lt_extract_expsyms_cmds 19551 19552# Symbols that should not be listed in the preloaded symbols. 19553exclude_expsyms=$lt_exclude_expsyms_RC 19554 19555# Symbols that must always be exported. 19556include_expsyms=$lt_include_expsyms_RC 19557 19558# ### END LIBTOOL TAG CONFIG: $tagname 19559 19560__EOF__ 19561 19562 19563else 19564 # If there is no Makefile yet, we rely on a make rule to execute 19565 # `config.status --recheck' to rerun these tests and create the 19566 # libtool script then. 19567 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19568 if test -f "$ltmain_in"; then 19569 test -f Makefile && make "$ltmain" 19570 fi 19571fi 19572 19573 19574ac_ext=c 19575ac_cpp='$CPP $CPPFLAGS' 19576ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19577ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19578ac_compiler_gnu=$ac_cv_c_compiler_gnu 19579 19580CC="$lt_save_CC" 19581 19582 ;; 19583 19584 *) 19585 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19586echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19587 { (exit 1); exit 1; }; } 19588 ;; 19589 esac 19590 19591 # Append the new tag name to the list of available tags. 19592 if test -n "$tagname" ; then 19593 available_tags="$available_tags $tagname" 19594 fi 19595 fi 19596 done 19597 IFS="$lt_save_ifs" 19598 19599 # Now substitute the updated list of available tags. 19600 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19601 mv "${ofile}T" "$ofile" 19602 chmod +x "$ofile" 19603 else 19604 rm -f "${ofile}T" 19605 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19606echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19607 { (exit 1); exit 1; }; } 19608 fi 19609fi 19610 19611 19612 19613# This can be used to rebuild libtool when needed 19614LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19615 19616# Always use our own libtool. 19617LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19618 19619# Prevent multiple expansion 19620 19621 19622 19623 19624 19625 19626 19627 19628 19629 19630 19631# No longer needed now that CPPFLAGS is correctly set -- lh, 061214 -- 19632 # AC_REQUIRE([AC_COIN_DLFCN_H]) 19633 19634# NEW: If libtool exists in the directory higher up, we use that one 19635# instead of creating a new one 19636 19637# It turns out that the code for AC_PROG_LIBTOOL is somehow AC_REQUIRED 19638# out in front of this macro body. You'll notice that LIBTOOL is already 19639# defined here. We'll have to count on this macro not being called if libtool 19640# already exists, or at least move the libtool fixes outside the conditional. 19641# AC_MSG_NOTICE([Entering coin_prog_libtool, LIBTOOL = "$LIBTOOL".]) 19642# This test is therefore removed. -- lh, 061214 -- 19643# if test "x$LIBTOOL" = x; then 19644 19645# AC_MSG_NOTICE([Calling PROG_LIBTOOL.]) 19646 19647 19648 19649 19650 19651 19652 19653 19654 19655# AC_MSG_NOTICE([Finished PROG_LIBTOOL.]) 19656 19657 19658 19659 { echo "$as_me:$LINENO: Build is \"$build\"." >&5 19660echo "$as_me: Build is \"$build\"." >&6;} 19661 # Extract the first word of "dos2unix", so it can be a program name with args. 19662set dummy dos2unix; ac_word=$2 19663echo "$as_me:$LINENO: checking for $ac_word" >&5 19664echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 19665if test "${ac_cv_prog_dos2unix+set}" = set; then 19666 echo $ECHO_N "(cached) $ECHO_C" >&6 19667else 19668 if test -n "$dos2unix"; then 19669 ac_cv_prog_dos2unix="$dos2unix" # Let the user override the test. 19670else 19671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19672for as_dir in $PATH 19673do 19674 IFS=$as_save_IFS 19675 test -z "$as_dir" && as_dir=. 19676 for ac_exec_ext in '' $ac_executable_extensions; do 19677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19678 ac_cv_prog_dos2unix="dos2unix" 19679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19680 break 2 19681 fi 19682done 19683done 19684 19685fi 19686fi 19687dos2unix=$ac_cv_prog_dos2unix 19688if test -n "$dos2unix"; then 19689 echo "$as_me:$LINENO: result: $dos2unix" >&5 19690echo "${ECHO_T}$dos2unix" >&6 19691else 19692 echo "$as_me:$LINENO: result: no" >&5 19693echo "${ECHO_T}no" >&6 19694fi 19695 19696 if test "$dos2unix" = dos2unix ; then 19697 mydos2unix="| dos2unix" 19698 fi 19699 case $build in 19700 *-mingw*) 19701 CYGPATH_W=echo 19702 ;; 19703 esac 19704 19705 case $build in 19706 # Here we need to check if -m32 is specified. If so, we need to correct 19707 # sys_lib_search_path_spec 19708 *-cygwin* | *-mingw*) 19709 case "$CXX" in 19710 clang* ) 19711 # we assume that libtool patches for CLANG are the same as for GNU compiler - correct??? 19712 { echo "$as_me:$LINENO: Applying patches to libtool for CLANG compiler" >&5 19713echo "$as_me: Applying patches to libtool for CLANG compiler" >&6;} 19714 sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \ 19715 -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \ 19716 -e 's|libext="lib"|libext="a"|' \ 19717 libtool > conftest.bla 19718 ;; 19719 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 19720 { echo "$as_me:$LINENO: Applying patches to libtool for cl compiler" >&5 19721echo "$as_me: Applying patches to libtool for cl compiler" >&6;} 19722 sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \ 19723 -e 's|fix_srcfile_path=\"\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \ 19724 -e 's%compile_deplibs=\"\$dir/\$old_library \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$old_library | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \ 19725 -e 's%compile_deplibs=\"\$dir/\$linklib \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$linklib | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \ 19726 -e 's%lib /OUT:%lib -OUT:%' \ 19727 -e "s%cygpath -w%$CYGPATH_W%" \ 19728 -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%' \ 19729 -e 's%$AR t "$f_ex_an_ar_oldlib"%lib -nologo -list \$('"$CYGPATH_W \$1"') '"$mydos2unix"'%' \ 19730 -e 's%f_ex_an_ar_oldlib="\($?*1*\)"%f_ex_an_ar_oldlib='\`"$CYGPATH_W"' \1`%' \ 19731 -e 's%^archive_cmds=.*%archive_cmds="\\$CC -o \\$lib \\$libobjs \\$compiler_flags \\\\\\`echo \\\\\\"\\$deplibs\\\\\\" | \\$SED -e '"\'"'s/ -lc\\$//'"\'"'\\\\\\` -link -dll~linknames="%' \ 19732 -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"%' \ 19733 libtool > conftest.bla 19734 ;; 19735 *) 19736 { echo "$as_me:$LINENO: Applying patches to libtool for GNU compiler" >&5 19737echo "$as_me: Applying patches to libtool for GNU compiler" >&6;} 19738 sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \ 19739 -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \ 19740 -e 's|libext="lib"|libext="a"|' \ 19741 libtool > conftest.bla 19742 ;; 19743 esac 19744 mv conftest.bla libtool 19745 chmod 755 libtool 19746 19747 ;; 19748 *x86_64-*) 19749 if test "$GCC" = yes && (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm32' >& /dev/null); then 19750 { echo "$as_me:$LINENO: Applying patches to libtool for 32bit compilation" >&5 19751echo "$as_me: Applying patches to libtool for 32bit compilation" >&6;} 19752 sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="/lib /usr/lib"|' libtool > conftest.bla 19753 mv conftest.bla libtool 19754 chmod 755 libtool 19755 fi 19756 ;; 19757 19758 *-solaris*) 19759 if test "$GCC" = yes && \ 19760 (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm64' >/dev/null 2>&1) ; then 19761 hdwisa=`isainfo | sed -e 's/\([^ ]*\) .*$/\1/'` 19762 if `$EGREP 'sys_lib_search_path_spec=' libtool | $EGREP -v $hdwisa >/dev/null 2>&1` ; then 19763 { echo "$as_me:$LINENO: Applying patches to libtool for 64-bit GCC compilation" >&5 19764echo "$as_me: Applying patches to libtool for 64-bit GCC compilation" >&6;} 19765 fixlibtmp=`$CC -m64 -print-search-dirs | $EGREP '^libraries:'` 19766 fixlibtmp=`echo $fixlibtmp | sed -e 's/libraries: =//' -e 's/:/ /g'` 19767 if `echo "$fixlibtmp" | $EGREP -v $hdwisa >/dev/null 2>&1` ; then 19768 # AC_MSG_NOTICE(Compensating for broken gcc) 19769 for lib in $fixlibtmp ; do 19770 if test -d "${lib}${hdwisa}" ; then 19771 syslibpath64="$syslibpath64 ${lib}${hdwisa}/" 19772 fi 19773 done 19774 syslibpath64="${syslibpath64} ${fixlibtmp}" 19775 else 19776 syslibpath64="$fixlibtmp" 19777 fi 19778 sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="'"$syslibpath64"'"|' libtool > conftest.bla 19779 mv conftest.bla libtool 19780 chmod 755 libtool 19781 fi 19782 # AC_MSG_NOTICE(Result is ) 19783 # $EGREP 'sys_lib_search_path_spec=' libtool 19784 fi 19785 ;; 19786 # Cygwin. Ah, cygwin. Too big and ugly to inline; see the macro. 19787 *-darwin*) 19788 { echo "$as_me:$LINENO: Applying patches to libtool for Darwin" >&5 19789echo "$as_me: Applying patches to libtool for Darwin" >&6;} 19790 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"/' \ 19791 -e 's/ -dynamiclib / -dynamiclib -single_module /g' \ 19792 libtool > conftest.bla 19793 19794 mv conftest.bla libtool 19795 chmod 755 libtool 19796 ;; 19797 esac 19798# This fi matches the commented `if test "x$LIBTOOL" = x;' up at the head of 19799# the macro. -- lh, 061214 -- 19800# fi 19801 19802# AC_MSG_NOTICE([End libtool initialisation.]) 19803 19804# AC_MSG_NOTICE([Finished COIN_PROG_LIBTOOL.]) 19805 # set RPATH_FLAGS to the compiler link flags required to hardcode location 19806 # of the shared objects 19807 RPATH_FLAGS= 19808 19809if test $enable_shared = yes; then 19810 case $build in 19811 *-linux-*) 19812 if test "$GXX" = "yes"; then 19813 RPATH_FLAGS= 19814 for dir in $abs_lib_dir; do 19815 RPATH_FLAGS="$RPATH_FLAGS -Wl,--rpath -Wl,$dir" 19816 done 19817 fi ;; 19818 *-darwin*) 19819 RPATH_FLAGS=nothing ;; 19820 *-ibm-*) 19821 case "$CXX" in 19822 xlC* | */xlC* | mpxlC* | */mpxlC*) 19823 RPATH_FLAGS=nothing ;; 19824 esac ;; 19825 *-hp-*) 19826 RPATH_FLAGS=nothing ;; 19827 *-mingw32) 19828 RPATH_FLAGS=nothing ;; 19829 *-*-solaris*) 19830 RPATH_FLAGS= 19831 for dir in $abs_lib_dir; do 19832 RPATH_FLAGS="$RPATH_FLAGS -R$dir" 19833 done 19834 esac 19835 19836 if test "$RPATH_FLAGS" = ""; then 19837 { 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 19838echo "$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;} 19839 fi 19840 if test "$RPATH_FLAGS" = "nothing"; then 19841 RPATH_FLAGS= 19842 fi 19843fi 19844 19845 19846 19847 19848else 19849 19850 { echo "$as_me:$LINENO: Using libtool script in directory $coin_config_dir" >&5 19851echo "$as_me: Using libtool script in directory $coin_config_dir" >&6;} 19852 # get all missing information from the config.log file 19853 19854 # output variables and defines 19855 as_save_IFS=$IFS 19856 IFS=' 19857' 19858 for oneline in `cat $coin_config_dir/config.status`; do 19859 case "$oneline" in 19860 # First some automake conditionals 19861 s,@am__fastdep* | s,@AR@* | s,@CPP@* | s,@CPPFLAGS@* | s,@CXXCPP@* | \ 19862 s,@RANLIB@* | s,@STRIP@* | s,@ac_ct_AR@* | s,@ac_ct_RANLIB@* | \ 19863 s,@ac_ct_STRIP@* | s,@host* | s,@LN_S@* | s,@RPATH_FLAGS@* | \ 19864 s,@ac_c_preproc_warn_flag@* | s,@ac_cxx_preproc_warn_flag@* ) 19865 command=`echo $oneline | sed -e 's/^s,@//' -e 's/@,/="/' -e 's/,;t t/"/'` 19866# echo "$command" 19867 eval "$command" 19868 ;; 19869 s,@DEFS@* ) 19870 command=`echo $oneline | sed -e 's/^s,@DEFS@,/defsline="/' -e 's/,;t t/"/'` 19871# echo "$command" 19872 eval "$command" 19873 ;; 19874 esac 19875 done 19876 IFS=$as_save_IFS 19877 19878 # And some defines (assuming here that the packages base dir 19879 # doesn't have a config.h file 19880 for word in $defsline; do 19881# echo word $word 19882 case $word in 19883 -DHAVE_[A-Z_]*_H=1 | -DSTDC_HEADERS=1 ) 19884 i=`echo $word | sed -e 's/-D/#define /' -e 's/=/ /'` 19885# echo dd $i 19886 echo $i >>confdefs.h 19887 ;; 19888 esac 19889 done 19890fi 19891 19892# AC_MSG_NOTICE([End of INIT_AUTO_TOOLS.]) 19893 19894# Check whether --enable-dependency-linking or --disable-dependency-linking was given. 19895if test "${enable_dependency_linking+set}" = set; then 19896 enableval="$enable_dependency_linking" 19897 dependency_linking="$enableval" 19898else 19899 dependency_linking=auto 19900fi; 19901 19902if test "$dependency_linking" = auto; then 19903 # On Cygwin and AIX, building DLLs doesn't work 19904 dependency_linking=no 19905 if test x"$coin_disable_shared" = xno; then 19906 case $build in 19907 *-cygwin* | *-mingw*) 19908 case "$CC" in 19909 clang* ) 19910 dependency_linking=yes 19911 ;; 19912 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 19913 dependency_linking=no 19914 ;; 19915 *gcc*) 19916 dependency_linking=yes 19917 ;; 19918 *) 19919 dependency_linking=yes 19920 ;; 19921 esac 19922 ;; 19923 *) 19924 dependency_linking=yes 19925 ;; 19926 esac 19927 fi 19928fi 19929 19930if test "$dependency_linking" = yes ; 19931then 19932 LT_LDFLAGS="-no-undefined" 19933else 19934 LT_LDFLAGS= 19935fi 19936 19937 19938 19939if test "$dependency_linking" = yes; then 19940 DEPENDENCY_LINKING_TRUE= 19941 DEPENDENCY_LINKING_FALSE='#' 19942else 19943 DEPENDENCY_LINKING_TRUE='#' 19944 DEPENDENCY_LINKING_FALSE= 19945fi 19946 19947 19948# Check if we want to set the library version 19949echo "$as_me:$LINENO: checking if library version is set" >&5 19950echo $ECHO_N "checking if library version is set... $ECHO_C" >&6 19951if test x"$coin_libversion" != x; then 19952 LT_LDFLAGS="$LT_LDFLAGS -version-info $coin_libversion" 19953 echo "$as_me:$LINENO: result: $coin_libversion" >&5 19954echo "${ECHO_T}$coin_libversion" >&6 19955else 19956 echo "$as_me:$LINENO: result: no" >&5 19957echo "${ECHO_T}no" >&6 19958fi 19959 19960 19961 19962#END 19963} 19964 19965# Check if pkg-config is available (to setup addlibs file) 19966 19967 19968# Check whether --enable-pkg-config or --disable-pkg-config was given. 19969if test "${enable_pkg_config+set}" = set; then 19970 enableval="$enable_pkg_config" 19971 use_pkgconfig="$enableval" 19972else 19973 if test x$coin_cc_is_cl = xtrue; then 19974 use_pkgconfig=no 19975 else 19976 use_pkgconfig=yes 19977 fi 19978fi; 19979 19980if test $use_pkgconfig = yes ; then 19981 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 19982 if test -n "$ac_tool_prefix"; then 19983 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 19984set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 19985echo "$as_me:$LINENO: checking for $ac_word" >&5 19986echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 19987if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then 19988 echo $ECHO_N "(cached) $ECHO_C" >&6 19989else 19990 if test -n "$PKG_CONFIG"; then 19991 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test. 19992else 19993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19994for as_dir in $PATH 19995do 19996 IFS=$as_save_IFS 19997 test -z "$as_dir" && as_dir=. 19998 for ac_exec_ext in '' $ac_executable_extensions; do 19999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20000 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config" 20001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20002 break 2 20003 fi 20004done 20005done 20006 20007fi 20008fi 20009PKG_CONFIG=$ac_cv_prog_PKG_CONFIG 20010if test -n "$PKG_CONFIG"; then 20011 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 20012echo "${ECHO_T}$PKG_CONFIG" >&6 20013else 20014 echo "$as_me:$LINENO: result: no" >&5 20015echo "${ECHO_T}no" >&6 20016fi 20017 20018fi 20019if test -z "$ac_cv_prog_PKG_CONFIG"; then 20020 ac_ct_PKG_CONFIG=$PKG_CONFIG 20021 # Extract the first word of "pkg-config", so it can be a program name with args. 20022set dummy pkg-config; ac_word=$2 20023echo "$as_me:$LINENO: checking for $ac_word" >&5 20024echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 20025if test "${ac_cv_prog_ac_ct_PKG_CONFIG+set}" = set; then 20026 echo $ECHO_N "(cached) $ECHO_C" >&6 20027else 20028 if test -n "$ac_ct_PKG_CONFIG"; then 20029 ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test. 20030else 20031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20032for as_dir in $PATH 20033do 20034 IFS=$as_save_IFS 20035 test -z "$as_dir" && as_dir=. 20036 for ac_exec_ext in '' $ac_executable_extensions; do 20037 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20038 ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config" 20039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20040 break 2 20041 fi 20042done 20043done 20044 20045fi 20046fi 20047ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG 20048if test -n "$ac_ct_PKG_CONFIG"; then 20049 echo "$as_me:$LINENO: result: $ac_ct_PKG_CONFIG" >&5 20050echo "${ECHO_T}$ac_ct_PKG_CONFIG" >&6 20051else 20052 echo "$as_me:$LINENO: result: no" >&5 20053echo "${ECHO_T}no" >&6 20054fi 20055 20056 PKG_CONFIG=$ac_ct_PKG_CONFIG 20057else 20058 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG" 20059fi 20060 20061 fi 20062 if test -n "$PKG_CONFIG"; then 20063 _pkg_min_version=0.16.0 20064 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 20065echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6 20066 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 20067 echo "$as_me:$LINENO: result: yes" >&5 20068echo "${ECHO_T}yes" >&6 20069 else 20070 echo "$as_me:$LINENO: result: no" >&5 20071echo "${ECHO_T}no" >&6 20072 PKG_CONFIG="" 20073 fi 20074 fi 20075 20076 # check if pkg-config supports the short-errors flag 20077 if test -n "$PKG_CONFIG" && \ 20078 $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20079 pkg_short_errors=" --short-errors " 20080 else 20081 pkg_short_errors="" 20082 fi 20083fi 20084 20085 20086 20087if test -n "$PKG_CONFIG"; then 20088 COIN_HAS_PKGCONFIG_TRUE= 20089 COIN_HAS_PKGCONFIG_FALSE='#' 20090else 20091 COIN_HAS_PKGCONFIG_TRUE='#' 20092 COIN_HAS_PKGCONFIG_FALSE= 20093fi 20094 20095 20096 20097# assemble pkg-config search path for installed projects 20098COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH" 20099 20100# let's assume that when installing into $prefix, then the user may have installed some other coin projects there before, so it's worth to have a look into there 20101# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig, 20102# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}... 20103if test "x${prefix}" = xNONE ; then 20104 COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib64/pkgconfig:${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}" 20105else 20106 COIN_PKG_CONFIG_PATH="${prefix}/lib64/pkgconfig:${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}" 20107fi 20108 20109 20110# Check whether --with-coin-instdir or --without-coin-instdir was given. 20111if test "${with_coin_instdir+set}" = set; then 20112 withval="$with_coin_instdir" 20113 if test -d "$withval"; then : ; else 20114 { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5 20115echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;} 20116 { (exit 1); exit 1; }; } 20117 fi 20118 COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}" 20119 20120fi; 20121 20122 20123 20124# assemble additional pkg-config search paths for uninstalled projects 20125if test x$coin_projectdir = xyes ; then 20126 # if we are in a project setup, then in a classic setup, we want to find uninstalled projects 20127 # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory 20128 # unfortunately, if the user set prefix, then we do not know where the project base directory is located 20129 # but it is likely to be either .. (if we are a usual coin project) or ../.. (if we are a unusual coin project like ThirdParty or Data) 20130 COIN_PKG_CONFIG_PATH_UNINSTALLED= 20131 if test -f ../coin_subdirs.txt ; then 20132 for i in `cat ../coin_subdirs.txt` ; do 20133 if test -d ../$i ; then 20134 COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}" 20135 fi 20136 if test -d ../$i/pkgconfig ; then 20137 COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}" 20138 fi 20139 done 20140 fi 20141 20142 if test -f ../../coin_subdirs.txt ; then 20143 for i in `cat ../../coin_subdirs.txt` ; do 20144 if test -d ../../$i ; then 20145 COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}" 20146 fi 20147 if test -d ../../$i/pkgconfig ; then 20148 COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}" 20149 fi 20150 done 20151 fi 20152 20153 if test -f ../../../coin_subdirs.txt ; then 20154 for i in `cat ../../../coin_subdirs.txt` ; do 20155 if test -d ../../../$i ; then 20156 COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}" 20157 fi 20158 if test -d ../../../$i/pkgconfig ; then 20159 COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}" 20160 fi 20161 done 20162 fi 20163 20164 20165fi 20166 20167if test -n "$PKG_CONFIG" && test x$coin_cc_is_cl = xtrue; then 20168 { echo "$as_me:$LINENO: WARNING: Using pkg-config together with MS or Intel Compiler on Windows is not support by example Makefiles. Consider using --disable-pkg-config." >&5 20169echo "$as_me: WARNING: Using pkg-config together with MS or Intel Compiler on Windows is not support by example Makefiles. Consider using --disable-pkg-config." >&2;} 20170fi 20171 20172 20173 20174############################################################################# 20175# AMPL SOLVER LIBRARY # 20176############################################################################# 20177 20178# Determine the name of the ASL library 20179 20180# Set a substitutable variable with the library name, and determine the compilation style. 20181 20182if test "x$coin_cc_is_cl" = xtrue ; then 20183 AMPLSOLVER_A=libamplsolver.lib 20184else 20185 AMPLSOLVER_A=libamplsolver.a 20186fi 20187 20188# Determine the host type to set linker options in the Makefile 20189 20190case $host in 20191 *-cygwin* | *-mingw*) 20192 20193 20194if test 0 = 0; then 20195 HOST_IS_CYGWIN_TRUE= 20196 HOST_IS_CYGWIN_FALSE='#' 20197else 20198 HOST_IS_CYGWIN_TRUE='#' 20199 HOST_IS_CYGWIN_FALSE= 20200fi 20201 20202 ;; 20203 *) 20204 20205 20206if test 0 = 1; then 20207 HOST_IS_CYGWIN_TRUE= 20208 HOST_IS_CYGWIN_FALSE='#' 20209else 20210 HOST_IS_CYGWIN_TRUE='#' 20211 HOST_IS_CYGWIN_FALSE= 20212fi 20213 20214 ;; 20215esac 20216 20217# Determine flags to be passed on the command line to (n)make. The main 20218# activity is to groom CFLAGS and set up ASLMAKEFLAGS to pass CFLAGS on the 20219# (n)make command line. 20220# NON_STDIO no longer appears in any source file; removed all mention. 20221# No_Control87 seems to be specific to DEC Alpha. Try leaving it undefined. 20222 20223if test -z "$ASLMAKEFLAGS" ; then 20224 asladdcflags= 20225 case $build in 20226 *-linux*) 20227 case $CC in 20228 pgcc* | */pgcc* | xlc* | */xlc* | blrts_xlc* | */blrts_xlc*) 20229 asladdcflags="$asladdcflags -DNO_fpu_control";; 20230 esac 20231 ;; 20232 esac 20233 20234# Various feature checks. Force the language to be C while we do this to avoid 20235# issues with C++ (re)declarations. 20236 ac_ext=c 20237ac_cpp='$CPP $CPPFLAGS' 20238ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20239ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20240ac_compiler_gnu=$ac_cv_c_compiler_gnu 20241 20242 20243# The critical function for NO_RUSAGE is getrusage(). Use a standard test. 20244 20245 echo "$as_me:$LINENO: checking for getrusage" >&5 20246echo $ECHO_N "checking for getrusage... $ECHO_C" >&6 20247 cat >conftest.$ac_ext <<_ACEOF 20248/* confdefs.h. */ 20249_ACEOF 20250cat confdefs.h >>conftest.$ac_ext 20251cat >>conftest.$ac_ext <<_ACEOF 20252/* end confdefs.h. */ 20253 20254int 20255main () 20256{ 20257getrusage() 20258 ; 20259 return 0; 20260} 20261_ACEOF 20262rm -f conftest.$ac_objext conftest$ac_exeext 20263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20264 (eval $ac_link) 2>conftest.er1 20265 ac_status=$? 20266 grep -v '^ *+' conftest.er1 >conftest.err 20267 rm -f conftest.er1 20268 cat conftest.err >&5 20269 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20270 (exit $ac_status); } && 20271 { ac_try='test -z "$ac_c_werror_flag" 20272 || test ! -s conftest.err' 20273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20274 (eval $ac_try) 2>&5 20275 ac_status=$? 20276 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20277 (exit $ac_status); }; } && 20278 { ac_try='test -s conftest$ac_exeext' 20279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20280 (eval $ac_try) 2>&5 20281 ac_status=$? 20282 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20283 (exit $ac_status); }; }; then 20284 echo "$as_me:$LINENO: result: yes" >&5 20285echo "${ECHO_T}yes" >&6 20286else 20287 echo "$as_me: failed program was:" >&5 20288sed 's/^/| /' conftest.$ac_ext >&5 20289 20290asladdcflags="$asladdcflags -DNO_RUSAGE" 20291 echo "$as_me:$LINENO: result: no" >&5 20292echo "${ECHO_T}no" >&6 20293fi 20294rm -f conftest.err conftest.$ac_objext \ 20295 conftest$ac_exeext conftest.$ac_ext 20296 20297# Check for long long; we need to define NO_LONG_LONG if it's not present. ASL 20298# makefile.u and makefile.vc both deal with this, in their own way. 20299# Unfortunately, when trying to build with cl under cygwin, the makefile.vc 20300# solution, comptry.bat, fails. To safely discard comptry.bat, we need to do 20301# this check. It's hardly likely that long long is missing on any modern 20302# system, but it's easy to check. 20303# Also, if it's present, then ASL uses strtoull, which is not supported on Windows systems. 20304# Instead, there should be a _strtoui64. 20305 20306 echo "$as_me:$LINENO: checking for long long" >&5 20307echo $ECHO_N "checking for long long... $ECHO_C" >&6 20308if test "${ac_cv_type_long_long+set}" = set; then 20309 echo $ECHO_N "(cached) $ECHO_C" >&6 20310else 20311 cat >conftest.$ac_ext <<_ACEOF 20312/* confdefs.h. */ 20313_ACEOF 20314cat confdefs.h >>conftest.$ac_ext 20315cat >>conftest.$ac_ext <<_ACEOF 20316/* end confdefs.h. */ 20317$ac_includes_default 20318int 20319main () 20320{ 20321if ((long long *) 0) 20322 return 0; 20323if (sizeof (long long)) 20324 return 0; 20325 ; 20326 return 0; 20327} 20328_ACEOF 20329rm -f conftest.$ac_objext 20330if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20331 (eval $ac_compile) 2>conftest.er1 20332 ac_status=$? 20333 grep -v '^ *+' conftest.er1 >conftest.err 20334 rm -f conftest.er1 20335 cat conftest.err >&5 20336 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20337 (exit $ac_status); } && 20338 { ac_try='test -z "$ac_c_werror_flag" 20339 || test ! -s conftest.err' 20340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20341 (eval $ac_try) 2>&5 20342 ac_status=$? 20343 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20344 (exit $ac_status); }; } && 20345 { ac_try='test -s conftest.$ac_objext' 20346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20347 (eval $ac_try) 2>&5 20348 ac_status=$? 20349 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20350 (exit $ac_status); }; }; then 20351 ac_cv_type_long_long=yes 20352else 20353 echo "$as_me: failed program was:" >&5 20354sed 's/^/| /' conftest.$ac_ext >&5 20355 20356ac_cv_type_long_long=no 20357fi 20358rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20359fi 20360echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 20361echo "${ECHO_T}$ac_cv_type_long_long" >&6 20362if test $ac_cv_type_long_long = yes; then 20363 20364 if test "x$coin_cc_is_cl" = xtrue ; then 20365 asladdcflags="$asladdcflags -Dstrtoull=_strtoui64" 20366 fi 20367else 20368 asladdcflags="$asladdcflags -DNO_LONG_LONG" 20369fi 20370 20371 20372# Check for ssize_t; we need to define NO_SSIZE_T if it's not present. 20373 20374 echo "$as_me:$LINENO: checking for ssize_t" >&5 20375echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 20376if test "${ac_cv_type_ssize_t+set}" = set; then 20377 echo $ECHO_N "(cached) $ECHO_C" >&6 20378else 20379 cat >conftest.$ac_ext <<_ACEOF 20380/* confdefs.h. */ 20381_ACEOF 20382cat confdefs.h >>conftest.$ac_ext 20383cat >>conftest.$ac_ext <<_ACEOF 20384/* end confdefs.h. */ 20385$ac_includes_default 20386int 20387main () 20388{ 20389if ((ssize_t *) 0) 20390 return 0; 20391if (sizeof (ssize_t)) 20392 return 0; 20393 ; 20394 return 0; 20395} 20396_ACEOF 20397rm -f conftest.$ac_objext 20398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20399 (eval $ac_compile) 2>conftest.er1 20400 ac_status=$? 20401 grep -v '^ *+' conftest.er1 >conftest.err 20402 rm -f conftest.er1 20403 cat conftest.err >&5 20404 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20405 (exit $ac_status); } && 20406 { ac_try='test -z "$ac_c_werror_flag" 20407 || test ! -s conftest.err' 20408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20409 (eval $ac_try) 2>&5 20410 ac_status=$? 20411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20412 (exit $ac_status); }; } && 20413 { ac_try='test -s conftest.$ac_objext' 20414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20415 (eval $ac_try) 2>&5 20416 ac_status=$? 20417 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20418 (exit $ac_status); }; }; then 20419 ac_cv_type_ssize_t=yes 20420else 20421 echo "$as_me: failed program was:" >&5 20422sed 's/^/| /' conftest.$ac_ext >&5 20423 20424ac_cv_type_ssize_t=no 20425fi 20426rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20427fi 20428echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 20429echo "${ECHO_T}$ac_cv_type_ssize_t" >&6 20430if test $ac_cv_type_ssize_t = yes; then 20431 : 20432else 20433 asladdcflags="$asladdcflags -DNO_SSIZE_T" 20434fi 20435 20436 20437# Check for dlopen, ASL uses it to load userdefined function libraries 20438 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 20439echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 20440if test "${ac_cv_lib_dl_dlopen+set}" = set; then 20441 echo $ECHO_N "(cached) $ECHO_C" >&6 20442else 20443 ac_check_lib_save_LIBS=$LIBS 20444LIBS="-ldl $LIBS" 20445cat >conftest.$ac_ext <<_ACEOF 20446/* confdefs.h. */ 20447_ACEOF 20448cat confdefs.h >>conftest.$ac_ext 20449cat >>conftest.$ac_ext <<_ACEOF 20450/* end confdefs.h. */ 20451 20452/* Override any gcc2 internal prototype to avoid an error. */ 20453#ifdef __cplusplus 20454extern "C" 20455#endif 20456/* We use char because int might match the return type of a gcc2 20457 builtin and then its argument prototype would still apply. */ 20458char dlopen (); 20459int 20460main () 20461{ 20462dlopen (); 20463 ; 20464 return 0; 20465} 20466_ACEOF 20467rm -f conftest.$ac_objext conftest$ac_exeext 20468if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20469 (eval $ac_link) 2>conftest.er1 20470 ac_status=$? 20471 grep -v '^ *+' conftest.er1 >conftest.err 20472 rm -f conftest.er1 20473 cat conftest.err >&5 20474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20475 (exit $ac_status); } && 20476 { ac_try='test -z "$ac_c_werror_flag" 20477 || test ! -s conftest.err' 20478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20479 (eval $ac_try) 2>&5 20480 ac_status=$? 20481 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20482 (exit $ac_status); }; } && 20483 { ac_try='test -s conftest$ac_exeext' 20484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20485 (eval $ac_try) 2>&5 20486 ac_status=$? 20487 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20488 (exit $ac_status); }; }; then 20489 ac_cv_lib_dl_dlopen=yes 20490else 20491 echo "$as_me: failed program was:" >&5 20492sed 's/^/| /' conftest.$ac_ext >&5 20493 20494ac_cv_lib_dl_dlopen=no 20495fi 20496rm -f conftest.err conftest.$ac_objext \ 20497 conftest$ac_exeext conftest.$ac_ext 20498LIBS=$ac_check_lib_save_LIBS 20499fi 20500echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 20501echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 20502if test $ac_cv_lib_dl_dlopen = yes; then 20503 ASL_PCLIBS="-ldl $ASL_PCLIBS" 20504fi 20505 20506 20507# Back to whatever language we were in. 20508 ac_ext=c 20509ac_cpp='$CPP $CPPFLAGS' 20510ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20511ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20512ac_compiler_gnu=$ac_cv_c_compiler_gnu 20513 20514 20515# On BlueGene disable dynamic library loading 20516 if test x"$enable_bg" = xyes; then 20517 asladdcflags="$asladdcflags -DNO_FUNCADD" 20518 fi 20519 20520# Groom CFLAGS before we merge it with asladdcflags. 20521# Remove -Werror if present, to make sure we are not interrupting compilation 20522# of ASL because of warning messages. The cl equivalent is -WX. 20523# SV: Our buildsystem should never add these flags to the CFLAGS, so why bother checking for them? 20524# If the user added some, shouldn't we listen to it and not just remove them again? 20525 bla= 20526 if test "x$coin_cc_is_cl" = xtrue ; then 20527 warnToErr="-WX" 20528 else 20529 warnToErr="-Werror" 20530 fi 20531 for i in $CFLAGS; do 20532 if test "$i" != "$warnToErr"; then 20533 bla="$bla $i" 20534 fi 20535 done 20536 20537# Add -fPIC -DPIC if we actually build shared libraries 20538 if test x$enable_shared != xno; then 20539 asladdcflags="$asladdcflags -fPIC -DPIC" 20540 fi 20541 20542 ASLMAKEFLAGS="CFLAGS=\"$bla $asladdcflags\"" 20543 20544# Somehow, the flags specified here cause ASL to segfault on the AIX 20545# compiler, so take them out. 20546 case $CC in 20547 xlc* | */xlc* | mpxlc* | */mpxlc*) 20548 ASLMAKEFLAGS=`echo $ASLMAKEFLAGS | sed -e 's/-qtune=auto//g' -e 's/-qarch=auto//g' -e 's/-qcache=auto//g' -e 's/-qhot//g' -e 's/-O3/-O/g'` 20549 ;; 20550 pgcc* | */pgcc*) 20551 ASLMAKEFLAGS=`echo $ASLMAKEFLAGS | sed -e 's/-fast/-O1/g'` 20552 ;; 20553 esac 20554 20555# Limit GNU make to one thread. But remember that if we're building with 20556# cl, ultimately we're going to use nmake, which knows nothing of this. 20557 if test "x$coin_cc_is_cl" != xtrue ; then 20558 rm -rf conftest.mak 20559 ($am_make -v > conftest.grp) 2>&5 20560 if $EGREP GNU conftest.grp >&5 ; then 20561 ASLMAKEFLAGS="-j 1 $ASLMAKEFLAGS" 20562 fi 20563 rm -f conftest.grp 20564 fi 20565fi 20566# End if-then to construct ASLMAKEFLAGS. Announce the result. 20567 20568{ echo "$as_me:$LINENO: Command line flags for (n)make \"$ASLMAKEFLAGS\"." >&5 20569echo "$as_me: Command line flags for (n)make \"$ASLMAKEFLAGS\"." >&6;} 20570 20571 20572# generate the output files. 20573 20574 ac_config_files="$ac_config_files Makefile" 20575 20576 ac_config_files="$ac_config_files compile_MS_ASL" 20577 20578 ac_config_files="$ac_config_files compile_Unix_ASL" 20579 20580 ac_config_files="$ac_config_files coinasl.pc coinasl-uninstalled.pc" 20581 20582 20583 20584 20585if test $coin_cc_is_cl != true ; then 20586 20587 ASL_LIBS="-lm $ASL_LIBS" 20588 ASL_PCLIBS="-lm $ASL_PCLIBS" 20589 ASL_LIBS_INSTALLED="-lm $ASL_LIBS_INSTALLED" 20590 20591fi 20592 20593 20594 20595 20596 20597 20598 20599 20600echo "$as_me:$LINENO: checking which command should be used to link input files" >&5 20601echo $ECHO_N "checking which command should be used to link input files... $ECHO_C" >&6 20602coin_link_input_cmd="$LN_S" 20603case "$CC" in 20604 clang* ) ;; 20605 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 20606 coin_link_input_cmd=cp ;; 20607esac 20608echo "$as_me:$LINENO: result: $coin_link_input_cmd" >&5 20609echo "${ECHO_T}$coin_link_input_cmd" >&6 20610 20611 20612 20613if test x$coin_skip_ac_output != xyes; then 20614 20615 # library extension 20616 20617 case "$CC" in 20618 clang* ) 20619 LIBEXT=a ;; 20620 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 20621 LIBEXT=lib ;; 20622 *) LIBEXT=a ;; 20623 esac 20624 20625 # Define VPATH_DISTCLEANFILES to be everything that needs to be 20626 # cleaned for distclean in a vpath configuration 20627 20628 VPATH_DISTCLEANFILES="$coin_vpath_link_files" 20629 20630 # Take out subdirectories if their configuration concluded that they 20631 # don't need to be compiled 20632 if test x"$coin_ac_skip_subdirs" != x; then 20633 new_subdirs= 20634 for i in $subdirs; do 20635 skipme=no 20636 for j in $coin_ac_skip_subdirs; do 20637 if test $i = $j; then 20638 skipme=yes; 20639 fi 20640 done 20641 if test $skipme = no; then 20642 new_subdirs="$new_subdirs $i" 20643 fi 20644 done 20645 subdirs="$new_subdirs" 20646 fi 20647 20648 # need to come before AC_OUTPUT 20649 if test x$coin_projectdir != xyes; then 20650 # write coin_subdirs to a file so that project configuration knows where to find uninstalled projects 20651 echo $coin_subdirs > coin_subdirs.txt 20652 else 20653 # substitute for OBJDIR, needed to setup .pc file for uninstalled project 20654 ABSBUILDDIR="`pwd`" 20655 20656 fi 20657 20658 cat >confcache <<\_ACEOF 20659# This file is a shell script that caches the results of configure 20660# tests run on this system so they can be shared between configure 20661# scripts and configure runs, see configure's option --config-cache. 20662# It is not useful on other systems. If it contains results you don't 20663# want to keep, you may remove or edit it. 20664# 20665# config.status only pays attention to the cache file if you give it 20666# the --recheck option to rerun configure. 20667# 20668# `ac_cv_env_foo' variables (set or unset) will be overridden when 20669# loading this file, other *unset* `ac_cv_foo' will be assigned the 20670# following values. 20671 20672_ACEOF 20673 20674# The following way of writing the cache mishandles newlines in values, 20675# but we know of no workaround that is simple, portable, and efficient. 20676# So, don't put newlines in cache variables' values. 20677# Ultrix sh set writes to stderr and can't be redirected directly, 20678# and sets the high bit in the cache file unless we assign to the vars. 20679{ 20680 (set) 2>&1 | 20681 case `(ac_space=' '; set | grep ac_space) 2>&1` in 20682 *ac_space=\ *) 20683 # `set' does not quote correctly, so add quotes (double-quote 20684 # substitution turns \\\\ into \\, and sed turns \\ into \). 20685 sed -n \ 20686 "s/'/'\\\\''/g; 20687 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20688 ;; 20689 *) 20690 # `set' quotes correctly as required by POSIX, so do not add quotes. 20691 sed -n \ 20692 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 20693 ;; 20694 esac; 20695} | 20696 sed ' 20697 t clear 20698 : clear 20699 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 20700 t end 20701 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20702 : end' >>confcache 20703if diff $cache_file confcache >/dev/null 2>&1; then :; else 20704 if test -w $cache_file; then 20705 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 20706 cat confcache >$cache_file 20707 else 20708 echo "not updating unwritable cache $cache_file" 20709 fi 20710fi 20711rm -f confcache 20712 20713test "x$prefix" = xNONE && prefix=$ac_default_prefix 20714# Let make expand exec_prefix. 20715test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20716 20717# VPATH may cause trouble with some makes, so we remove $(srcdir), 20718# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 20719# trailing colons and then remove the whole line if VPATH becomes empty 20720# (actually we leave an empty line to preserve line numbers). 20721if test "x$srcdir" = x.; then 20722 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 20723s/:*\$(srcdir):*/:/; 20724s/:*\${srcdir}:*/:/; 20725s/:*@srcdir@:*/:/; 20726s/^\([^=]*=[ ]*\):*/\1/; 20727s/:*$//; 20728s/^[^=]*=[ ]*$//; 20729}' 20730fi 20731 20732# Transform confdefs.h into DEFS. 20733# Protect against shell expansion while executing Makefile rules. 20734# Protect against Makefile macro expansion. 20735# 20736# If the first sed substitution is executed (which looks for macros that 20737# take arguments), then we branch to the quote section. Otherwise, 20738# look for a macro that doesn't take arguments. 20739cat >confdef2opt.sed <<\_ACEOF 20740t clear 20741: clear 20742s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g 20743t quote 20744s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g 20745t quote 20746d 20747: quote 20748s,[ `~#$^&*(){}\\|;'"<>?],\\&,g 20749s,\[,\\&,g 20750s,\],\\&,g 20751s,\$,$$,g 20752p 20753_ACEOF 20754# We use echo to avoid assuming a particular line-breaking character. 20755# The extra dot is to prevent the shell from consuming trailing 20756# line-breaks from the sub-command output. A line-break within 20757# single-quotes doesn't work because, if this script is created in a 20758# platform that uses two characters for line-breaks (e.g., DOS), tr 20759# would break. 20760ac_LF_and_DOT=`echo; echo .` 20761DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` 20762rm -f confdef2opt.sed 20763 20764 20765ac_libobjs= 20766ac_ltlibobjs= 20767for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20768 # 1. Remove the extension, and $U if already installed. 20769 ac_i=`echo "$ac_i" | 20770 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 20771 # 2. Add them. 20772 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 20773 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 20774done 20775LIBOBJS=$ac_libobjs 20776 20777LTLIBOBJS=$ac_ltlibobjs 20778 20779 20780if test -z "${ALWAYS_FALSE_TRUE}" && test -z "${ALWAYS_FALSE_FALSE}"; then 20781 { { echo "$as_me:$LINENO: error: conditional \"ALWAYS_FALSE\" was never defined. 20782Usually this means the macro was only invoked conditionally." >&5 20783echo "$as_me: error: conditional \"ALWAYS_FALSE\" was never defined. 20784Usually this means the macro was only invoked conditionally." >&2;} 20785 { (exit 1); exit 1; }; } 20786fi 20787if test -z "${COIN_CC_IS_CL_TRUE}" && test -z "${COIN_CC_IS_CL_FALSE}"; then 20788 { { echo "$as_me:$LINENO: error: conditional \"COIN_CC_IS_CL\" was never defined. 20789Usually this means the macro was only invoked conditionally." >&5 20790echo "$as_me: error: conditional \"COIN_CC_IS_CL\" was never defined. 20791Usually this means the macro was only invoked conditionally." >&2;} 20792 { (exit 1); exit 1; }; } 20793fi 20794if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20795 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 20796Usually this means the macro was only invoked conditionally." >&5 20797echo "$as_me: error: conditional \"AMDEP\" was never defined. 20798Usually this means the macro was only invoked conditionally." >&2;} 20799 { (exit 1); exit 1; }; } 20800fi 20801if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20802 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 20803Usually this means the macro was only invoked conditionally." >&5 20804echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 20805Usually this means the macro was only invoked conditionally." >&2;} 20806 { (exit 1); exit 1; }; } 20807fi 20808if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 20809 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 20810Usually this means the macro was only invoked conditionally." >&5 20811echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 20812Usually this means the macro was only invoked conditionally." >&2;} 20813 { (exit 1); exit 1; }; } 20814fi 20815if test -z "${HAVE_EXTERNALS_TRUE}" && test -z "${HAVE_EXTERNALS_FALSE}"; then 20816 { { echo "$as_me:$LINENO: error: conditional \"HAVE_EXTERNALS\" was never defined. 20817Usually this means the macro was only invoked conditionally." >&5 20818echo "$as_me: error: conditional \"HAVE_EXTERNALS\" was never defined. 20819Usually this means the macro was only invoked conditionally." >&2;} 20820 { (exit 1); exit 1; }; } 20821fi 20822if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 20823 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 20824Usually this means the macro was only invoked conditionally." >&5 20825echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 20826Usually this means the macro was only invoked conditionally." >&2;} 20827 { (exit 1); exit 1; }; } 20828fi 20829if test -z "${DEPENDENCY_LINKING_TRUE}" && test -z "${DEPENDENCY_LINKING_FALSE}"; then 20830 { { echo "$as_me:$LINENO: error: conditional \"DEPENDENCY_LINKING\" was never defined. 20831Usually this means the macro was only invoked conditionally." >&5 20832echo "$as_me: error: conditional \"DEPENDENCY_LINKING\" was never defined. 20833Usually this means the macro was only invoked conditionally." >&2;} 20834 { (exit 1); exit 1; }; } 20835fi 20836if test -z "${COIN_HAS_PKGCONFIG_TRUE}" && test -z "${COIN_HAS_PKGCONFIG_FALSE}"; then 20837 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_PKGCONFIG\" was never defined. 20838Usually this means the macro was only invoked conditionally." >&5 20839echo "$as_me: error: conditional \"COIN_HAS_PKGCONFIG\" was never defined. 20840Usually this means the macro was only invoked conditionally." >&2;} 20841 { (exit 1); exit 1; }; } 20842fi 20843if test -z "${HOST_IS_CYGWIN_TRUE}" && test -z "${HOST_IS_CYGWIN_FALSE}"; then 20844 { { echo "$as_me:$LINENO: error: conditional \"HOST_IS_CYGWIN\" was never defined. 20845Usually this means the macro was only invoked conditionally." >&5 20846echo "$as_me: error: conditional \"HOST_IS_CYGWIN\" was never defined. 20847Usually this means the macro was only invoked conditionally." >&2;} 20848 { (exit 1); exit 1; }; } 20849fi 20850if test -z "${HOST_IS_CYGWIN_TRUE}" && test -z "${HOST_IS_CYGWIN_FALSE}"; then 20851 { { echo "$as_me:$LINENO: error: conditional \"HOST_IS_CYGWIN\" was never defined. 20852Usually this means the macro was only invoked conditionally." >&5 20853echo "$as_me: error: conditional \"HOST_IS_CYGWIN\" was never defined. 20854Usually this means the macro was only invoked conditionally." >&2;} 20855 { (exit 1); exit 1; }; } 20856fi 20857 20858: ${CONFIG_STATUS=./config.status} 20859ac_clean_files_save=$ac_clean_files 20860ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20861{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 20862echo "$as_me: creating $CONFIG_STATUS" >&6;} 20863cat >$CONFIG_STATUS <<_ACEOF 20864#! $SHELL 20865# Generated by $as_me. 20866# Run this file to recreate the current configuration. 20867# Compiler output produced by configure, useful for debugging 20868# configure, is in config.log if it exists. 20869 20870debug=false 20871ac_cs_recheck=false 20872ac_cs_silent=false 20873SHELL=\${CONFIG_SHELL-$SHELL} 20874_ACEOF 20875 20876cat >>$CONFIG_STATUS <<\_ACEOF 20877## --------------------- ## 20878## M4sh Initialization. ## 20879## --------------------- ## 20880 20881# Be Bourne compatible 20882if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 20883 emulate sh 20884 NULLCMD=: 20885 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 20886 # is contrary to our usage. Disable this feature. 20887 alias -g '${1+"$@"}'='"$@"' 20888elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 20889 set -o posix 20890fi 20891DUALCASE=1; export DUALCASE # for MKS sh 20892 20893# Support unset when possible. 20894if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 20895 as_unset=unset 20896else 20897 as_unset=false 20898fi 20899 20900 20901# Work around bugs in pre-3.0 UWIN ksh. 20902$as_unset ENV MAIL MAILPATH 20903PS1='$ ' 20904PS2='> ' 20905PS4='+ ' 20906 20907# NLS nuisances. 20908for as_var in \ 20909 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 20910 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 20911 LC_TELEPHONE LC_TIME 20912do 20913 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 20914 eval $as_var=C; export $as_var 20915 else 20916 $as_unset $as_var 20917 fi 20918done 20919 20920# Required to use basename. 20921if expr a : '\(a\)' >/dev/null 2>&1; then 20922 as_expr=expr 20923else 20924 as_expr=false 20925fi 20926 20927if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 20928 as_basename=basename 20929else 20930 as_basename=false 20931fi 20932 20933 20934# Name of the executable. 20935as_me=`$as_basename "$0" || 20936$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20937 X"$0" : 'X\(//\)$' \| \ 20938 X"$0" : 'X\(/\)$' \| \ 20939 . : '\(.\)' 2>/dev/null || 20940echo X/"$0" | 20941 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 20942 /^X\/\(\/\/\)$/{ s//\1/; q; } 20943 /^X\/\(\/\).*/{ s//\1/; q; } 20944 s/.*/./; q'` 20945 20946 20947# PATH needs CR, and LINENO needs CR and PATH. 20948# Avoid depending upon Character Ranges. 20949as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20950as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20951as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20952as_cr_digits='0123456789' 20953as_cr_alnum=$as_cr_Letters$as_cr_digits 20954 20955# The user is always right. 20956if test "${PATH_SEPARATOR+set}" != set; then 20957 echo "#! /bin/sh" >conf$$.sh 20958 echo "exit 0" >>conf$$.sh 20959 chmod +x conf$$.sh 20960 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 20961 PATH_SEPARATOR=';' 20962 else 20963 PATH_SEPARATOR=: 20964 fi 20965 rm -f conf$$.sh 20966fi 20967 20968 20969 as_lineno_1=$LINENO 20970 as_lineno_2=$LINENO 20971 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 20972 test "x$as_lineno_1" != "x$as_lineno_2" && 20973 test "x$as_lineno_3" = "x$as_lineno_2" || { 20974 # Find who we are. Look in the path if we contain no path at all 20975 # relative or not. 20976 case $0 in 20977 *[\\/]* ) as_myself=$0 ;; 20978 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20979for as_dir in $PATH 20980do 20981 IFS=$as_save_IFS 20982 test -z "$as_dir" && as_dir=. 20983 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 20984done 20985 20986 ;; 20987 esac 20988 # We did not find ourselves, most probably we were run as `sh COMMAND' 20989 # in which case we are not to be found in the path. 20990 if test "x$as_myself" = x; then 20991 as_myself=$0 20992 fi 20993 if test ! -f "$as_myself"; then 20994 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 20995echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 20996 { (exit 1); exit 1; }; } 20997 fi 20998 case $CONFIG_SHELL in 20999 '') 21000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21001for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 21002do 21003 IFS=$as_save_IFS 21004 test -z "$as_dir" && as_dir=. 21005 for as_base in sh bash ksh sh5; do 21006 case $as_dir in 21007 /*) 21008 if ("$as_dir/$as_base" -c ' 21009 as_lineno_1=$LINENO 21010 as_lineno_2=$LINENO 21011 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 21012 test "x$as_lineno_1" != "x$as_lineno_2" && 21013 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 21014 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 21015 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 21016 CONFIG_SHELL=$as_dir/$as_base 21017 export CONFIG_SHELL 21018 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 21019 fi;; 21020 esac 21021 done 21022done 21023;; 21024 esac 21025 21026 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 21027 # uniformly replaced by the line number. The first 'sed' inserts a 21028 # line-number line before each line; the second 'sed' does the real 21029 # work. The second script uses 'N' to pair each line-number line 21030 # with the numbered line, and appends trailing '-' during 21031 # substitution so that $LINENO is not a special case at line end. 21032 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 21033 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 21034 sed '=' <$as_myself | 21035 sed ' 21036 N 21037 s,$,-, 21038 : loop 21039 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 21040 t loop 21041 s,-$,, 21042 s,^['$as_cr_digits']*\n,, 21043 ' >$as_me.lineno && 21044 chmod +x $as_me.lineno || 21045 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 21046echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 21047 { (exit 1); exit 1; }; } 21048 21049 # Don't try to exec as it changes $[0], causing all sort of problems 21050 # (the dirname of $[0] is not the place where we might find the 21051 # original and so on. Autoconf is especially sensible to this). 21052 . ./$as_me.lineno 21053 # Exit status is that of the last command. 21054 exit 21055} 21056 21057 21058case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 21059 *c*,-n*) ECHO_N= ECHO_C=' 21060' ECHO_T=' ' ;; 21061 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 21062 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 21063esac 21064 21065if expr a : '\(a\)' >/dev/null 2>&1; then 21066 as_expr=expr 21067else 21068 as_expr=false 21069fi 21070 21071rm -f conf$$ conf$$.exe conf$$.file 21072echo >conf$$.file 21073if ln -s conf$$.file conf$$ 2>/dev/null; then 21074 # We could just check for DJGPP; but this test a) works b) is more generic 21075 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 21076 if test -f conf$$.exe; then 21077 # Don't use ln at all; we don't have any links 21078 as_ln_s='cp -p' 21079 else 21080 as_ln_s='ln -s' 21081 fi 21082elif ln conf$$.file conf$$ 2>/dev/null; then 21083 as_ln_s=ln 21084else 21085 as_ln_s='cp -p' 21086fi 21087rm -f conf$$ conf$$.exe conf$$.file 21088 21089if mkdir -p . 2>/dev/null; then 21090 as_mkdir_p=: 21091else 21092 test -d ./-p && rmdir ./-p 21093 as_mkdir_p=false 21094fi 21095 21096as_executable_p="test -f" 21097 21098# Sed expression to map a string onto a valid CPP name. 21099as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 21100 21101# Sed expression to map a string onto a valid variable name. 21102as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 21103 21104 21105# IFS 21106# We need space, tab and new line, in precisely that order. 21107as_nl=' 21108' 21109IFS=" $as_nl" 21110 21111# CDPATH. 21112$as_unset CDPATH 21113 21114exec 6>&1 21115 21116# Open the log real soon, to keep \$[0] and so on meaningful, and to 21117# report actual input values of CONFIG_FILES etc. instead of their 21118# values after options handling. Logging --version etc. is OK. 21119exec 5>>config.log 21120{ 21121 echo 21122 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21123## Running $as_me. ## 21124_ASBOX 21125} >&5 21126cat >&5 <<_CSEOF 21127 21128This file was extended by ThirdPartyASL $as_me 1.4.3, which was 21129generated by GNU Autoconf 2.59. Invocation command line was 21130 21131 CONFIG_FILES = $CONFIG_FILES 21132 CONFIG_HEADERS = $CONFIG_HEADERS 21133 CONFIG_LINKS = $CONFIG_LINKS 21134 CONFIG_COMMANDS = $CONFIG_COMMANDS 21135 $ $0 $@ 21136 21137_CSEOF 21138echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 21139echo >&5 21140_ACEOF 21141 21142# Files that config.status was made for. 21143if test -n "$ac_config_files"; then 21144 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 21145fi 21146 21147if test -n "$ac_config_headers"; then 21148 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 21149fi 21150 21151if test -n "$ac_config_links"; then 21152 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 21153fi 21154 21155if test -n "$ac_config_commands"; then 21156 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 21157fi 21158 21159cat >>$CONFIG_STATUS <<\_ACEOF 21160 21161ac_cs_usage="\ 21162\`$as_me' instantiates files from templates according to the 21163current configuration. 21164 21165Usage: $0 [OPTIONS] [FILE]... 21166 21167 -h, --help print this help, then exit 21168 -V, --version print version number, then exit 21169 -q, --quiet do not print progress messages 21170 -d, --debug don't remove temporary files 21171 --recheck update $as_me by reconfiguring in the same conditions 21172 --file=FILE[:TEMPLATE] 21173 instantiate the configuration file FILE 21174 21175Configuration files: 21176$config_files 21177 21178Configuration commands: 21179$config_commands 21180 21181Report bugs to <bug-autoconf@gnu.org>." 21182_ACEOF 21183 21184cat >>$CONFIG_STATUS <<_ACEOF 21185ac_cs_version="\\ 21186ThirdPartyASL config.status 1.4.3 21187configured by $0, generated by GNU Autoconf 2.59, 21188 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 21189 21190Copyright (C) 2003 Free Software Foundation, Inc. 21191This config.status script is free software; the Free Software Foundation 21192gives unlimited permission to copy, distribute and modify it." 21193srcdir=$srcdir 21194INSTALL="$INSTALL" 21195_ACEOF 21196 21197cat >>$CONFIG_STATUS <<\_ACEOF 21198# If no file are specified by the user, then we need to provide default 21199# value. By we need to know if files were specified by the user. 21200ac_need_defaults=: 21201while test $# != 0 21202do 21203 case $1 in 21204 --*=*) 21205 ac_option=`expr "x$1" : 'x\([^=]*\)='` 21206 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 21207 ac_shift=: 21208 ;; 21209 -*) 21210 ac_option=$1 21211 ac_optarg=$2 21212 ac_shift=shift 21213 ;; 21214 *) # This is not an option, so the user has probably given explicit 21215 # arguments. 21216 ac_option=$1 21217 ac_need_defaults=false;; 21218 esac 21219 21220 case $ac_option in 21221 # Handling of the options. 21222_ACEOF 21223cat >>$CONFIG_STATUS <<\_ACEOF 21224 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21225 ac_cs_recheck=: ;; 21226 --version | --vers* | -V ) 21227 echo "$ac_cs_version"; exit 0 ;; 21228 --he | --h) 21229 # Conflict between --help and --header 21230 { { echo "$as_me:$LINENO: error: ambiguous option: $1 21231Try \`$0 --help' for more information." >&5 21232echo "$as_me: error: ambiguous option: $1 21233Try \`$0 --help' for more information." >&2;} 21234 { (exit 1); exit 1; }; };; 21235 --help | --hel | -h ) 21236 echo "$ac_cs_usage"; exit 0 ;; 21237 --debug | --d* | -d ) 21238 debug=: ;; 21239 --file | --fil | --fi | --f ) 21240 $ac_shift 21241 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 21242 ac_need_defaults=false;; 21243 --header | --heade | --head | --hea ) 21244 $ac_shift 21245 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 21246 ac_need_defaults=false;; 21247 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21248 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21249 ac_cs_silent=: ;; 21250 21251 # This is an error. 21252 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 21253Try \`$0 --help' for more information." >&5 21254echo "$as_me: error: unrecognized option: $1 21255Try \`$0 --help' for more information." >&2;} 21256 { (exit 1); exit 1; }; } ;; 21257 21258 *) ac_config_targets="$ac_config_targets $1" ;; 21259 21260 esac 21261 shift 21262done 21263 21264ac_configure_extra_args= 21265 21266if $ac_cs_silent; then 21267 exec 6>/dev/null 21268 ac_configure_extra_args="$ac_configure_extra_args --silent" 21269fi 21270 21271_ACEOF 21272cat >>$CONFIG_STATUS <<_ACEOF 21273if \$ac_cs_recheck; then 21274 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 21275 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21276fi 21277 21278_ACEOF 21279 21280cat >>$CONFIG_STATUS <<_ACEOF 21281# 21282# INIT-COMMANDS section. 21283# 21284 21285AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 21286 21287_ACEOF 21288 21289 21290 21291cat >>$CONFIG_STATUS <<\_ACEOF 21292for ac_config_target in $ac_config_targets 21293do 21294 case "$ac_config_target" in 21295 # Handling of arguments. 21296 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21297 "compile_MS_ASL" ) CONFIG_FILES="$CONFIG_FILES compile_MS_ASL" ;; 21298 "compile_Unix_ASL" ) CONFIG_FILES="$CONFIG_FILES compile_Unix_ASL" ;; 21299 "coinasl.pc" ) CONFIG_FILES="$CONFIG_FILES coinasl.pc" ;; 21300 "coinasl-uninstalled.pc" ) CONFIG_FILES="$CONFIG_FILES coinasl-uninstalled.pc" ;; 21301 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21302 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 21303echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 21304 { (exit 1); exit 1; }; };; 21305 esac 21306done 21307 21308# If the user did not use the arguments to specify the items to instantiate, 21309# then the envvar interface is used. Set only those that are not. 21310# We use the long form for the default assignment because of an extremely 21311# bizarre bug on SunOS 4.1.3. 21312if $ac_need_defaults; then 21313 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 21314 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 21315fi 21316 21317# Have a temporary directory for convenience. Make it in the build tree 21318# simply because there is no reason to put it here, and in addition, 21319# creating and moving files from /tmp can sometimes cause problems. 21320# Create a temporary directory, and hook for its removal unless debugging. 21321$debug || 21322{ 21323 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 21324 trap '{ (exit 1); exit 1; }' 1 2 13 15 21325} 21326 21327# Create a (secure) tmp directory for tmp files. 21328 21329{ 21330 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 21331 test -n "$tmp" && test -d "$tmp" 21332} || 21333{ 21334 tmp=./confstat$$-$RANDOM 21335 (umask 077 && mkdir $tmp) 21336} || 21337{ 21338 echo "$me: cannot create a temporary directory in ." >&2 21339 { (exit 1); exit 1; } 21340} 21341 21342_ACEOF 21343 21344cat >>$CONFIG_STATUS <<_ACEOF 21345 21346# 21347# CONFIG_FILES section. 21348# 21349 21350# No need to generate the scripts if there are no CONFIG_FILES. 21351# This happens for instance when ./config.status config.h 21352if test -n "\$CONFIG_FILES"; then 21353 # Protect against being on the right side of a sed subst in config.status. 21354 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 21355 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 21356s,@SHELL@,$SHELL,;t t 21357s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 21358s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 21359s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 21360s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 21361s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 21362s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 21363s,@exec_prefix@,$exec_prefix,;t t 21364s,@prefix@,$prefix,;t t 21365s,@program_transform_name@,$program_transform_name,;t t 21366s,@bindir@,$bindir,;t t 21367s,@sbindir@,$sbindir,;t t 21368s,@libexecdir@,$libexecdir,;t t 21369s,@datadir@,$datadir,;t t 21370s,@sysconfdir@,$sysconfdir,;t t 21371s,@sharedstatedir@,$sharedstatedir,;t t 21372s,@localstatedir@,$localstatedir,;t t 21373s,@libdir@,$libdir,;t t 21374s,@includedir@,$includedir,;t t 21375s,@oldincludedir@,$oldincludedir,;t t 21376s,@infodir@,$infodir,;t t 21377s,@mandir@,$mandir,;t t 21378s,@build_alias@,$build_alias,;t t 21379s,@host_alias@,$host_alias,;t t 21380s,@target_alias@,$target_alias,;t t 21381s,@DEFS@,$DEFS,;t t 21382s,@ECHO_C@,$ECHO_C,;t t 21383s,@ECHO_N@,$ECHO_N,;t t 21384s,@ECHO_T@,$ECHO_T,;t t 21385s,@LIBS@,$LIBS,;t t 21386s,@build@,$build,;t t 21387s,@build_cpu@,$build_cpu,;t t 21388s,@build_vendor@,$build_vendor,;t t 21389s,@build_os@,$build_os,;t t 21390s,@ALWAYS_FALSE_TRUE@,$ALWAYS_FALSE_TRUE,;t t 21391s,@ALWAYS_FALSE_FALSE@,$ALWAYS_FALSE_FALSE,;t t 21392s,@have_svnversion@,$have_svnversion,;t t 21393s,@ASL_SVN_REV@,$ASL_SVN_REV,;t t 21394s,@EGREP@,$EGREP,;t t 21395s,@LN_S@,$LN_S,;t t 21396s,@CDEFS@,$CDEFS,;t t 21397s,@ADD_CFLAGS@,$ADD_CFLAGS,;t t 21398s,@DBG_CFLAGS@,$DBG_CFLAGS,;t t 21399s,@OPT_CFLAGS@,$OPT_CFLAGS,;t t 21400s,@sol_cc_compiler@,$sol_cc_compiler,;t t 21401s,@CC@,$CC,;t t 21402s,@CFLAGS@,$CFLAGS,;t t 21403s,@LDFLAGS@,$LDFLAGS,;t t 21404s,@CPPFLAGS@,$CPPFLAGS,;t t 21405s,@ac_ct_CC@,$ac_ct_CC,;t t 21406s,@EXEEXT@,$EXEEXT,;t t 21407s,@OBJEXT@,$OBJEXT,;t t 21408s,@COIN_CC_IS_CL_TRUE@,$COIN_CC_IS_CL_TRUE,;t t 21409s,@COIN_CC_IS_CL_FALSE@,$COIN_CC_IS_CL_FALSE,;t t 21410s,@MPICC@,$MPICC,;t t 21411s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 21412s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 21413s,@INSTALL_DATA@,$INSTALL_DATA,;t t 21414s,@CYGPATH_W@,$CYGPATH_W,;t t 21415s,@PACKAGE@,$PACKAGE,;t t 21416s,@VERSION@,$VERSION,;t t 21417s,@ACLOCAL@,$ACLOCAL,;t t 21418s,@AUTOCONF@,$AUTOCONF,;t t 21419s,@AUTOMAKE@,$AUTOMAKE,;t t 21420s,@AUTOHEADER@,$AUTOHEADER,;t t 21421s,@MAKEINFO@,$MAKEINFO,;t t 21422s,@install_sh@,$install_sh,;t t 21423s,@STRIP@,$STRIP,;t t 21424s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 21425s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 21426s,@mkdir_p@,$mkdir_p,;t t 21427s,@AWK@,$AWK,;t t 21428s,@SET_MAKE@,$SET_MAKE,;t t 21429s,@am__leading_dot@,$am__leading_dot,;t t 21430s,@AMTAR@,$AMTAR,;t t 21431s,@am__tar@,$am__tar,;t t 21432s,@am__untar@,$am__untar,;t t 21433s,@DEPDIR@,$DEPDIR,;t t 21434s,@am__include@,$am__include,;t t 21435s,@am__quote@,$am__quote,;t t 21436s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 21437s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 21438s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 21439s,@CCDEPMODE@,$CCDEPMODE,;t t 21440s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t 21441s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t 21442s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t 21443s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t 21444s,@MAINT@,$MAINT,;t t 21445s,@LIBTOOLM4@,$LIBTOOLM4,;t t 21446s,@have_autoconf@,$have_autoconf,;t t 21447s,@have_automake@,$have_automake,;t t 21448s,@have_svn@,$have_svn,;t t 21449s,@BUILDTOOLSDIR@,$BUILDTOOLSDIR,;t t 21450s,@AUX_DIR@,$AUX_DIR,;t t 21451s,@abs_source_dir@,$abs_source_dir,;t t 21452s,@abs_lib_dir@,$abs_lib_dir,;t t 21453s,@abs_include_dir@,$abs_include_dir,;t t 21454s,@abs_bin_dir@,$abs_bin_dir,;t t 21455s,@HAVE_EXTERNALS_TRUE@,$HAVE_EXTERNALS_TRUE,;t t 21456s,@HAVE_EXTERNALS_FALSE@,$HAVE_EXTERNALS_FALSE,;t t 21457s,@host@,$host,;t t 21458s,@host_cpu@,$host_cpu,;t t 21459s,@host_vendor@,$host_vendor,;t t 21460s,@host_os@,$host_os,;t t 21461s,@ECHO@,$ECHO,;t t 21462s,@AR@,$AR,;t t 21463s,@ac_ct_AR@,$ac_ct_AR,;t t 21464s,@RANLIB@,$RANLIB,;t t 21465s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 21466s,@CPP@,$CPP,;t t 21467s,@CXX@,$CXX,;t t 21468s,@CXXFLAGS@,$CXXFLAGS,;t t 21469s,@ac_ct_CXX@,$ac_ct_CXX,;t t 21470s,@CXXDEPMODE@,$CXXDEPMODE,;t t 21471s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t 21472s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t 21473s,@CXXCPP@,$CXXCPP,;t t 21474s,@F77@,$F77,;t t 21475s,@FFLAGS@,$FFLAGS,;t t 21476s,@ac_ct_F77@,$ac_ct_F77,;t t 21477s,@LIBTOOL@,$LIBTOOL,;t t 21478s,@ac_c_preproc_warn_flag@,$ac_c_preproc_warn_flag,;t t 21479s,@ac_cxx_preproc_warn_flag@,$ac_cxx_preproc_warn_flag,;t t 21480s,@dos2unix@,$dos2unix,;t t 21481s,@RPATH_FLAGS@,$RPATH_FLAGS,;t t 21482s,@DEPENDENCY_LINKING_TRUE@,$DEPENDENCY_LINKING_TRUE,;t t 21483s,@DEPENDENCY_LINKING_FALSE@,$DEPENDENCY_LINKING_FALSE,;t t 21484s,@LT_LDFLAGS@,$LT_LDFLAGS,;t t 21485s,@PKG_CONFIG@,$PKG_CONFIG,;t t 21486s,@ac_ct_PKG_CONFIG@,$ac_ct_PKG_CONFIG,;t t 21487s,@COIN_HAS_PKGCONFIG_TRUE@,$COIN_HAS_PKGCONFIG_TRUE,;t t 21488s,@COIN_HAS_PKGCONFIG_FALSE@,$COIN_HAS_PKGCONFIG_FALSE,;t t 21489s,@COIN_PKG_CONFIG_PATH@,$COIN_PKG_CONFIG_PATH,;t t 21490s,@COIN_PKG_CONFIG_PATH_UNINSTALLED@,$COIN_PKG_CONFIG_PATH_UNINSTALLED,;t t 21491s,@AMPLSOLVER_A@,$AMPLSOLVER_A,;t t 21492s,@HOST_TYPE@,$HOST_TYPE,;t t 21493s,@HOST_IS_CYGWIN_TRUE@,$HOST_IS_CYGWIN_TRUE,;t t 21494s,@HOST_IS_CYGWIN_FALSE@,$HOST_IS_CYGWIN_FALSE,;t t 21495s,@ASLMAKEFLAGS@,$ASLMAKEFLAGS,;t t 21496s,@ASL_PCLIBS@,$ASL_PCLIBS,;t t 21497s,@LIBEXT@,$LIBEXT,;t t 21498s,@VPATH_DISTCLEANFILES@,$VPATH_DISTCLEANFILES,;t t 21499s,@ABSBUILDDIR@,$ABSBUILDDIR,;t t 21500s,@LIBOBJS@,$LIBOBJS,;t t 21501s,@LTLIBOBJS@,$LTLIBOBJS,;t t 21502CEOF 21503 21504_ACEOF 21505 21506 cat >>$CONFIG_STATUS <<\_ACEOF 21507 # Split the substitutions into bite-sized pieces for seds with 21508 # small command number limits, like on Digital OSF/1 and HP-UX. 21509 ac_max_sed_lines=48 21510 ac_sed_frag=1 # Number of current file. 21511 ac_beg=1 # First line for current file. 21512 ac_end=$ac_max_sed_lines # Line after last line for current file. 21513 ac_more_lines=: 21514 ac_sed_cmds= 21515 while $ac_more_lines; do 21516 if test $ac_beg -gt 1; then 21517 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 21518 else 21519 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 21520 fi 21521 if test ! -s $tmp/subs.frag; then 21522 ac_more_lines=false 21523 else 21524 # The purpose of the label and of the branching condition is to 21525 # speed up the sed processing (if there are no `@' at all, there 21526 # is no need to browse any of the substitutions). 21527 # These are the two extra sed commands mentioned above. 21528 (echo ':t 21529 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 21530 if test -z "$ac_sed_cmds"; then 21531 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 21532 else 21533 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 21534 fi 21535 ac_sed_frag=`expr $ac_sed_frag + 1` 21536 ac_beg=$ac_end 21537 ac_end=`expr $ac_end + $ac_max_sed_lines` 21538 fi 21539 done 21540 if test -z "$ac_sed_cmds"; then 21541 ac_sed_cmds=cat 21542 fi 21543fi # test -n "$CONFIG_FILES" 21544 21545_ACEOF 21546cat >>$CONFIG_STATUS <<\_ACEOF 21547for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 21548 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 21549 case $ac_file in 21550 - | *:- | *:-:* ) # input from stdin 21551 cat >$tmp/stdin 21552 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 21553 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 21554 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 21555 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 21556 * ) ac_file_in=$ac_file.in ;; 21557 esac 21558 21559 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 21560 ac_dir=`(dirname "$ac_file") 2>/dev/null || 21561$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21562 X"$ac_file" : 'X\(//\)[^/]' \| \ 21563 X"$ac_file" : 'X\(//\)$' \| \ 21564 X"$ac_file" : 'X\(/\)' \| \ 21565 . : '\(.\)' 2>/dev/null || 21566echo X"$ac_file" | 21567 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21568 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21569 /^X\(\/\/\)$/{ s//\1/; q; } 21570 /^X\(\/\).*/{ s//\1/; q; } 21571 s/.*/./; q'` 21572 { if $as_mkdir_p; then 21573 mkdir -p "$ac_dir" 21574 else 21575 as_dir="$ac_dir" 21576 as_dirs= 21577 while test ! -d "$as_dir"; do 21578 as_dirs="$as_dir $as_dirs" 21579 as_dir=`(dirname "$as_dir") 2>/dev/null || 21580$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21581 X"$as_dir" : 'X\(//\)[^/]' \| \ 21582 X"$as_dir" : 'X\(//\)$' \| \ 21583 X"$as_dir" : 'X\(/\)' \| \ 21584 . : '\(.\)' 2>/dev/null || 21585echo X"$as_dir" | 21586 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21587 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21588 /^X\(\/\/\)$/{ s//\1/; q; } 21589 /^X\(\/\).*/{ s//\1/; q; } 21590 s/.*/./; q'` 21591 done 21592 test ! -n "$as_dirs" || mkdir $as_dirs 21593 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 21594echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 21595 { (exit 1); exit 1; }; }; } 21596 21597 ac_builddir=. 21598 21599if test "$ac_dir" != .; then 21600 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 21601 # A "../" for each directory in $ac_dir_suffix. 21602 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 21603else 21604 ac_dir_suffix= ac_top_builddir= 21605fi 21606 21607case $srcdir in 21608 .) # No --srcdir option. We are building in place. 21609 ac_srcdir=. 21610 if test -z "$ac_top_builddir"; then 21611 ac_top_srcdir=. 21612 else 21613 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 21614 fi ;; 21615 [\\/]* | ?:[\\/]* ) # Absolute path. 21616 ac_srcdir=$srcdir$ac_dir_suffix; 21617 ac_top_srcdir=$srcdir ;; 21618 *) # Relative path. 21619 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 21620 ac_top_srcdir=$ac_top_builddir$srcdir ;; 21621esac 21622 21623# Do not use `cd foo && pwd` to compute absolute paths, because 21624# the directories may not exist. 21625case `pwd` in 21626.) ac_abs_builddir="$ac_dir";; 21627*) 21628 case "$ac_dir" in 21629 .) ac_abs_builddir=`pwd`;; 21630 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 21631 *) ac_abs_builddir=`pwd`/"$ac_dir";; 21632 esac;; 21633esac 21634case $ac_abs_builddir in 21635.) ac_abs_top_builddir=${ac_top_builddir}.;; 21636*) 21637 case ${ac_top_builddir}. in 21638 .) ac_abs_top_builddir=$ac_abs_builddir;; 21639 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 21640 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 21641 esac;; 21642esac 21643case $ac_abs_builddir in 21644.) ac_abs_srcdir=$ac_srcdir;; 21645*) 21646 case $ac_srcdir in 21647 .) ac_abs_srcdir=$ac_abs_builddir;; 21648 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 21649 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 21650 esac;; 21651esac 21652case $ac_abs_builddir in 21653.) ac_abs_top_srcdir=$ac_top_srcdir;; 21654*) 21655 case $ac_top_srcdir in 21656 .) ac_abs_top_srcdir=$ac_abs_builddir;; 21657 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 21658 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 21659 esac;; 21660esac 21661 21662 21663 case $INSTALL in 21664 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21665 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 21666 esac 21667 21668 if test x"$ac_file" != x-; then 21669 { echo "$as_me:$LINENO: creating $ac_file" >&5 21670echo "$as_me: creating $ac_file" >&6;} 21671 rm -f "$ac_file" 21672 fi 21673 # Let's still pretend it is `configure' which instantiates (i.e., don't 21674 # use $as_me), people would be surprised to read: 21675 # /* config.h. Generated by config.status. */ 21676 if test x"$ac_file" = x-; then 21677 configure_input= 21678 else 21679 configure_input="$ac_file. " 21680 fi 21681 configure_input=$configure_input"Generated from `echo $ac_file_in | 21682 sed 's,.*/,,'` by configure." 21683 21684 # First look for the input files in the build tree, otherwise in the 21685 # src tree. 21686 ac_file_inputs=`IFS=: 21687 for f in $ac_file_in; do 21688 case $f in 21689 -) echo $tmp/stdin ;; 21690 [\\/$]*) 21691 # Absolute (can't be DOS-style, as IFS=:) 21692 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 21693echo "$as_me: error: cannot find input file: $f" >&2;} 21694 { (exit 1); exit 1; }; } 21695 echo "$f";; 21696 *) # Relative 21697 if test -f "$f"; then 21698 # Build tree 21699 echo "$f" 21700 elif test -f "$srcdir/$f"; then 21701 # Source tree 21702 echo "$srcdir/$f" 21703 else 21704 # /dev/null tree 21705 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 21706echo "$as_me: error: cannot find input file: $f" >&2;} 21707 { (exit 1); exit 1; }; } 21708 fi;; 21709 esac 21710 done` || { (exit 1); exit 1; } 21711_ACEOF 21712cat >>$CONFIG_STATUS <<_ACEOF 21713 sed "$ac_vpsub 21714$extrasub 21715_ACEOF 21716cat >>$CONFIG_STATUS <<\_ACEOF 21717:t 21718/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21719s,@configure_input@,$configure_input,;t t 21720s,@srcdir@,$ac_srcdir,;t t 21721s,@abs_srcdir@,$ac_abs_srcdir,;t t 21722s,@top_srcdir@,$ac_top_srcdir,;t t 21723s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 21724s,@builddir@,$ac_builddir,;t t 21725s,@abs_builddir@,$ac_abs_builddir,;t t 21726s,@top_builddir@,$ac_top_builddir,;t t 21727s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 21728s,@INSTALL@,$ac_INSTALL,;t t 21729" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 21730 rm -f $tmp/stdin 21731 if test x"$ac_file" != x-; then 21732 mv $tmp/out $ac_file 21733 else 21734 cat $tmp/out 21735 rm -f $tmp/out 21736 fi 21737 21738 # Run the commands associated with the file. 21739 case $ac_file in 21740 compile_MS_ASL ) chmod a+x compile_MS_ASL ;; 21741 compile_Unix_ASL ) chmod a+x compile_Unix_ASL ;; 21742 esac 21743done 21744_ACEOF 21745cat >>$CONFIG_STATUS <<\_ACEOF 21746 21747# 21748# CONFIG_COMMANDS section. 21749# 21750for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 21751 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 21752 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 21753 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 21754$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21755 X"$ac_dest" : 'X\(//\)[^/]' \| \ 21756 X"$ac_dest" : 'X\(//\)$' \| \ 21757 X"$ac_dest" : 'X\(/\)' \| \ 21758 . : '\(.\)' 2>/dev/null || 21759echo X"$ac_dest" | 21760 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21761 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21762 /^X\(\/\/\)$/{ s//\1/; q; } 21763 /^X\(\/\).*/{ s//\1/; q; } 21764 s/.*/./; q'` 21765 { if $as_mkdir_p; then 21766 mkdir -p "$ac_dir" 21767 else 21768 as_dir="$ac_dir" 21769 as_dirs= 21770 while test ! -d "$as_dir"; do 21771 as_dirs="$as_dir $as_dirs" 21772 as_dir=`(dirname "$as_dir") 2>/dev/null || 21773$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21774 X"$as_dir" : 'X\(//\)[^/]' \| \ 21775 X"$as_dir" : 'X\(//\)$' \| \ 21776 X"$as_dir" : 'X\(/\)' \| \ 21777 . : '\(.\)' 2>/dev/null || 21778echo X"$as_dir" | 21779 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21780 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21781 /^X\(\/\/\)$/{ s//\1/; q; } 21782 /^X\(\/\).*/{ s//\1/; q; } 21783 s/.*/./; q'` 21784 done 21785 test ! -n "$as_dirs" || mkdir $as_dirs 21786 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 21787echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 21788 { (exit 1); exit 1; }; }; } 21789 21790 ac_builddir=. 21791 21792if test "$ac_dir" != .; then 21793 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 21794 # A "../" for each directory in $ac_dir_suffix. 21795 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 21796else 21797 ac_dir_suffix= ac_top_builddir= 21798fi 21799 21800case $srcdir in 21801 .) # No --srcdir option. We are building in place. 21802 ac_srcdir=. 21803 if test -z "$ac_top_builddir"; then 21804 ac_top_srcdir=. 21805 else 21806 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 21807 fi ;; 21808 [\\/]* | ?:[\\/]* ) # Absolute path. 21809 ac_srcdir=$srcdir$ac_dir_suffix; 21810 ac_top_srcdir=$srcdir ;; 21811 *) # Relative path. 21812 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 21813 ac_top_srcdir=$ac_top_builddir$srcdir ;; 21814esac 21815 21816# Do not use `cd foo && pwd` to compute absolute paths, because 21817# the directories may not exist. 21818case `pwd` in 21819.) ac_abs_builddir="$ac_dir";; 21820*) 21821 case "$ac_dir" in 21822 .) ac_abs_builddir=`pwd`;; 21823 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 21824 *) ac_abs_builddir=`pwd`/"$ac_dir";; 21825 esac;; 21826esac 21827case $ac_abs_builddir in 21828.) ac_abs_top_builddir=${ac_top_builddir}.;; 21829*) 21830 case ${ac_top_builddir}. in 21831 .) ac_abs_top_builddir=$ac_abs_builddir;; 21832 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 21833 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 21834 esac;; 21835esac 21836case $ac_abs_builddir in 21837.) ac_abs_srcdir=$ac_srcdir;; 21838*) 21839 case $ac_srcdir in 21840 .) ac_abs_srcdir=$ac_abs_builddir;; 21841 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 21842 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 21843 esac;; 21844esac 21845case $ac_abs_builddir in 21846.) ac_abs_top_srcdir=$ac_top_srcdir;; 21847*) 21848 case $ac_top_srcdir in 21849 .) ac_abs_top_srcdir=$ac_abs_builddir;; 21850 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 21851 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 21852 esac;; 21853esac 21854 21855 21856 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 21857echo "$as_me: executing $ac_dest commands" >&6;} 21858 case $ac_dest in 21859 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 21860 # Strip MF so we end up with the name of the file. 21861 mf=`echo "$mf" | sed -e 's/:.*$//'` 21862 # Check whether this is an Automake generated Makefile or not. 21863 # We used to match only the files named `Makefile.in', but 21864 # some people rename them; so instead we look at the file content. 21865 # Grep'ing the first line is not enough: some people post-process 21866 # each Makefile.in and add a new line on top of each file to say so. 21867 # So let's grep whole file. 21868 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 21869 dirpart=`(dirname "$mf") 2>/dev/null || 21870$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21871 X"$mf" : 'X\(//\)[^/]' \| \ 21872 X"$mf" : 'X\(//\)$' \| \ 21873 X"$mf" : 'X\(/\)' \| \ 21874 . : '\(.\)' 2>/dev/null || 21875echo X"$mf" | 21876 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21877 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21878 /^X\(\/\/\)$/{ s//\1/; q; } 21879 /^X\(\/\).*/{ s//\1/; q; } 21880 s/.*/./; q'` 21881 else 21882 continue 21883 fi 21884 # Extract the definition of DEPDIR, am__include, and am__quote 21885 # from the Makefile without running `make'. 21886 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 21887 test -z "$DEPDIR" && continue 21888 am__include=`sed -n 's/^am__include = //p' < "$mf"` 21889 test -z "am__include" && continue 21890 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 21891 # When using ansi2knr, U may be empty or an underscore; expand it 21892 U=`sed -n 's/^U = //p' < "$mf"` 21893 # Find all dependency output files, they are included files with 21894 # $(DEPDIR) in their names. We invoke sed twice because it is the 21895 # simplest approach to changing $(DEPDIR) to its actual value in the 21896 # expansion. 21897 for file in `sed -n " 21898 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 21899 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 21900 # Make sure the directory exists. 21901 test -f "$dirpart/$file" && continue 21902 fdir=`(dirname "$file") 2>/dev/null || 21903$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21904 X"$file" : 'X\(//\)[^/]' \| \ 21905 X"$file" : 'X\(//\)$' \| \ 21906 X"$file" : 'X\(/\)' \| \ 21907 . : '\(.\)' 2>/dev/null || 21908echo X"$file" | 21909 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21910 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21911 /^X\(\/\/\)$/{ s//\1/; q; } 21912 /^X\(\/\).*/{ s//\1/; q; } 21913 s/.*/./; q'` 21914 { if $as_mkdir_p; then 21915 mkdir -p $dirpart/$fdir 21916 else 21917 as_dir=$dirpart/$fdir 21918 as_dirs= 21919 while test ! -d "$as_dir"; do 21920 as_dirs="$as_dir $as_dirs" 21921 as_dir=`(dirname "$as_dir") 2>/dev/null || 21922$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21923 X"$as_dir" : 'X\(//\)[^/]' \| \ 21924 X"$as_dir" : 'X\(//\)$' \| \ 21925 X"$as_dir" : 'X\(/\)' \| \ 21926 . : '\(.\)' 2>/dev/null || 21927echo X"$as_dir" | 21928 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21929 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21930 /^X\(\/\/\)$/{ s//\1/; q; } 21931 /^X\(\/\).*/{ s//\1/; q; } 21932 s/.*/./; q'` 21933 done 21934 test ! -n "$as_dirs" || mkdir $as_dirs 21935 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 21936echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} 21937 { (exit 1); exit 1; }; }; } 21938 21939 # echo "creating $dirpart/$file" 21940 echo '# dummy' > "$dirpart/$file" 21941 done 21942done 21943 ;; 21944 esac 21945done 21946_ACEOF 21947 21948cat >>$CONFIG_STATUS <<\_ACEOF 21949 21950{ (exit 0); exit 0; } 21951_ACEOF 21952chmod +x $CONFIG_STATUS 21953ac_clean_files=$ac_clean_files_save 21954 21955 21956# configure is writing to config.log, and then calls config.status. 21957# config.status does its own redirection, appending to config.log. 21958# Unfortunately, on DOS this fails, as config.log is still kept open 21959# by configure, so config.status won't be able to write to it; its 21960# output is simply discarded. So we exec the FD to /dev/null, 21961# effectively closing config.log, so it can be properly (re)opened and 21962# appended to by config.status. When coming back to configure, we 21963# need to make the FD available again. 21964if test "$no_create" != yes; then 21965 ac_cs_success=: 21966 ac_config_status_args= 21967 test "$silent" = yes && 21968 ac_config_status_args="$ac_config_status_args --quiet" 21969 exec 5>/dev/null 21970 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21971 exec 5>>config.log 21972 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21973 # would make configure fail if this is the last instruction. 21974 $ac_cs_success || { (exit 1); exit 1; } 21975fi 21976 21977 21978 if test x"$coin_vpath_link_files" = x; then : ; else 21979 lnkcmd="$coin_link_input_cmd" 21980 if test "$lnkcmd" = cp; then 21981 { echo "$as_me:$LINENO: Copying data files for VPATH configuration" >&5 21982echo "$as_me: Copying data files for VPATH configuration" >&6;} 21983 else 21984 { echo "$as_me:$LINENO: Creating VPATH links for data files" >&5 21985echo "$as_me: Creating VPATH links for data files" >&6;} 21986 fi 21987 for file in $coin_vpath_link_files; do 21988 dir=`(dirname "./$file") 2>/dev/null || 21989$as_expr X"./$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21990 X"./$file" : 'X\(//\)[^/]' \| \ 21991 X"./$file" : 'X\(//\)$' \| \ 21992 X"./$file" : 'X\(/\)' \| \ 21993 . : '\(.\)' 2>/dev/null || 21994echo X"./$file" | 21995 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21996 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21997 /^X\(\/\/\)$/{ s//\1/; q; } 21998 /^X\(\/\).*/{ s//\1/; q; } 21999 s/.*/./; q'` 22000 if test -d $dir; then : ; else 22001 { if $as_mkdir_p; then 22002 mkdir -p $dir 22003 else 22004 as_dir=$dir 22005 as_dirs= 22006 while test ! -d "$as_dir"; do 22007 as_dirs="$as_dir $as_dirs" 22008 as_dir=`(dirname "$as_dir") 2>/dev/null || 22009$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22010 X"$as_dir" : 'X\(//\)[^/]' \| \ 22011 X"$as_dir" : 'X\(//\)$' \| \ 22012 X"$as_dir" : 'X\(/\)' \| \ 22013 . : '\(.\)' 2>/dev/null || 22014echo X"$as_dir" | 22015 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22016 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22017 /^X\(\/\/\)$/{ s//\1/; q; } 22018 /^X\(\/\).*/{ s//\1/; q; } 22019 s/.*/./; q'` 22020 done 22021 test ! -n "$as_dirs" || mkdir $as_dirs 22022 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dir" >&5 22023echo "$as_me: error: cannot create directory $dir" >&2;} 22024 { (exit 1); exit 1; }; }; } 22025 22026 fi 22027 rm -f $file 22028 $lnkcmd $abs_source_dir/$file $file 22029 done 22030 fi 22031 22032 { echo "$as_me:$LINENO: In case of trouble, first consult the troubleshooting page at https://projects.coin-or.org/BuildTools/wiki/user-troubleshooting" >&5 22033echo "$as_me: In case of trouble, first consult the troubleshooting page at https://projects.coin-or.org/BuildTools/wiki/user-troubleshooting" >&6;} 22034 if test x$coin_projectdir = xyes; then 22035 { echo "$as_me:$LINENO: Configuration of $PACKAGE_NAME successful" >&5 22036echo "$as_me: Configuration of $PACKAGE_NAME successful" >&6;} 22037 else 22038 { echo "$as_me:$LINENO: Main configuration of $PACKAGE_NAME successful" >&5 22039echo "$as_me: Main configuration of $PACKAGE_NAME successful" >&6;} 22040 fi 22041else 22042 { echo "$as_me:$LINENO: No configuration of $PACKAGE_NAME necessary" >&5 22043echo "$as_me: No configuration of $PACKAGE_NAME necessary" >&6;} 22044fi 22045 22046 22047