1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.59 for OsiConic 1.0.0. 4# 5# Report bugs to <https://github.com/aykutbulut/OSI-CONIC/issues/new>. 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# /*===========================================================================*/ 13# /* */ 14# /* OsiConic is developed by Aykut Bulut (aykutblt@gmail.com) */ 15# /* */ 16# /* (c) Copyright 2017 Lehigh University. All Rights Reserved. */ 17# /* */ 18# /* This software is licensed under the Eclipse Public License. Please see */ 19# /* accompanying file for terms. */ 20# /* */ 21# /*===========================================================================*/ 22# 23## --------------------- ## 24## M4sh Initialization. ## 25## --------------------- ## 26 27# Be Bourne compatible 28if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 29 emulate sh 30 NULLCMD=: 31 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 32 # is contrary to our usage. Disable this feature. 33 alias -g '${1+"$@"}'='"$@"' 34elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 35 set -o posix 36fi 37DUALCASE=1; export DUALCASE # for MKS sh 38 39# Support unset when possible. 40if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 41 as_unset=unset 42else 43 as_unset=false 44fi 45 46 47# Work around bugs in pre-3.0 UWIN ksh. 48$as_unset ENV MAIL MAILPATH 49PS1='$ ' 50PS2='> ' 51PS4='+ ' 52 53# NLS nuisances. 54for as_var in \ 55 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 56 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 57 LC_TELEPHONE LC_TIME 58do 59 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 60 eval $as_var=C; export $as_var 61 else 62 $as_unset $as_var 63 fi 64done 65 66# Required to use basename. 67if expr a : '\(a\)' >/dev/null 2>&1; then 68 as_expr=expr 69else 70 as_expr=false 71fi 72 73if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 74 as_basename=basename 75else 76 as_basename=false 77fi 78 79 80# Name of the executable. 81as_me=`$as_basename "$0" || 82$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 83 X"$0" : 'X\(//\)$' \| \ 84 X"$0" : 'X\(/\)$' \| \ 85 . : '\(.\)' 2>/dev/null || 86echo X/"$0" | 87 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 88 /^X\/\(\/\/\)$/{ s//\1/; q; } 89 /^X\/\(\/\).*/{ s//\1/; q; } 90 s/.*/./; q'` 91 92 93# PATH needs CR, and LINENO needs CR and PATH. 94# Avoid depending upon Character Ranges. 95as_cr_letters='abcdefghijklmnopqrstuvwxyz' 96as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 97as_cr_Letters=$as_cr_letters$as_cr_LETTERS 98as_cr_digits='0123456789' 99as_cr_alnum=$as_cr_Letters$as_cr_digits 100 101# The user is always right. 102if test "${PATH_SEPARATOR+set}" != set; then 103 echo "#! /bin/sh" >conf$$.sh 104 echo "exit 0" >>conf$$.sh 105 chmod +x conf$$.sh 106 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 107 PATH_SEPARATOR=';' 108 else 109 PATH_SEPARATOR=: 110 fi 111 rm -f conf$$.sh 112fi 113 114 115 as_lineno_1=$LINENO 116 as_lineno_2=$LINENO 117 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 118 test "x$as_lineno_1" != "x$as_lineno_2" && 119 test "x$as_lineno_3" = "x$as_lineno_2" || { 120 # Find who we are. Look in the path if we contain no path at all 121 # relative or not. 122 case $0 in 123 *[\\/]* ) as_myself=$0 ;; 124 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 125for as_dir in $PATH 126do 127 IFS=$as_save_IFS 128 test -z "$as_dir" && as_dir=. 129 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 130done 131 132 ;; 133 esac 134 # We did not find ourselves, most probably we were run as `sh COMMAND' 135 # in which case we are not to be found in the path. 136 if test "x$as_myself" = x; then 137 as_myself=$0 138 fi 139 if test ! -f "$as_myself"; then 140 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 141 { (exit 1); exit 1; }; } 142 fi 143 case $CONFIG_SHELL in 144 '') 145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 146for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 147do 148 IFS=$as_save_IFS 149 test -z "$as_dir" && as_dir=. 150 for as_base in sh bash ksh sh5; do 151 case $as_dir in 152 /*) 153 if ("$as_dir/$as_base" -c ' 154 as_lineno_1=$LINENO 155 as_lineno_2=$LINENO 156 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 157 test "x$as_lineno_1" != "x$as_lineno_2" && 158 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 159 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 160 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 161 CONFIG_SHELL=$as_dir/$as_base 162 export CONFIG_SHELL 163 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 164 fi;; 165 esac 166 done 167done 168;; 169 esac 170 171 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 172 # uniformly replaced by the line number. The first 'sed' inserts a 173 # line-number line before each line; the second 'sed' does the real 174 # work. The second script uses 'N' to pair each line-number line 175 # with the numbered line, and appends trailing '-' during 176 # substitution so that $LINENO is not a special case at line end. 177 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 178 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 179 sed '=' <$as_myself | 180 sed ' 181 N 182 s,$,-, 183 : loop 184 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 185 t loop 186 s,-$,, 187 s,^['$as_cr_digits']*\n,, 188 ' >$as_me.lineno && 189 chmod +x $as_me.lineno || 190 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 191 { (exit 1); exit 1; }; } 192 193 # Don't try to exec as it changes $[0], causing all sort of problems 194 # (the dirname of $[0] is not the place where we might find the 195 # original and so on. Autoconf is especially sensible to this). 196 . ./$as_me.lineno 197 # Exit status is that of the last command. 198 exit 199} 200 201 202case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 203 *c*,-n*) ECHO_N= ECHO_C=' 204' ECHO_T=' ' ;; 205 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 206 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 207esac 208 209if expr a : '\(a\)' >/dev/null 2>&1; then 210 as_expr=expr 211else 212 as_expr=false 213fi 214 215rm -f conf$$ conf$$.exe conf$$.file 216echo >conf$$.file 217if ln -s conf$$.file conf$$ 2>/dev/null; then 218 # We could just check for DJGPP; but this test a) works b) is more generic 219 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 220 if test -f conf$$.exe; then 221 # Don't use ln at all; we don't have any links 222 as_ln_s='cp -p' 223 else 224 as_ln_s='ln -s' 225 fi 226elif ln conf$$.file conf$$ 2>/dev/null; then 227 as_ln_s=ln 228else 229 as_ln_s='cp -p' 230fi 231rm -f conf$$ conf$$.exe conf$$.file 232 233if mkdir -p . 2>/dev/null; then 234 as_mkdir_p=: 235else 236 test -d ./-p && rmdir ./-p 237 as_mkdir_p=false 238fi 239 240as_executable_p="test -f" 241 242# Sed expression to map a string onto a valid CPP name. 243as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 244 245# Sed expression to map a string onto a valid variable name. 246as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 247 248 249# IFS 250# We need space, tab and new line, in precisely that order. 251as_nl=' 252' 253IFS=" $as_nl" 254 255# CDPATH. 256$as_unset CDPATH 257 258 259 260# Check that we are running under the correct shell. 261SHELL=${CONFIG_SHELL-/bin/sh} 262 263case X$ECHO in 264X*--fallback-echo) 265 # Remove one level of quotation (which was required for Make). 266 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 267 ;; 268esac 269 270echo=${ECHO-echo} 271if test "X$1" = X--no-reexec; then 272 # Discard the --no-reexec flag, and continue. 273 shift 274elif test "X$1" = X--fallback-echo; then 275 # Avoid inline document here, it may be left over 276 : 277elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 278 # Yippee, $echo works! 279 : 280else 281 # Restart under the correct shell. 282 exec $SHELL "$0" --no-reexec ${1+"$@"} 283fi 284 285if test "X$1" = X--fallback-echo; then 286 # used as fallback echo 287 shift 288 cat <<EOF 289$* 290EOF 291 exit 0 292fi 293 294# The HP-UX ksh and POSIX shell print the target directory to stdout 295# if CDPATH is set. 296(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 297 298if test -z "$ECHO"; then 299if test "X${echo_test_string+set}" != Xset; then 300# find a string as large as possible, as long as the shell can cope with it 301 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 302 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 303 if (echo_test_string=`eval $cmd`) 2>/dev/null && 304 echo_test_string=`eval $cmd` && 305 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 306 then 307 break 308 fi 309 done 310fi 311 312if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 313 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 314 test "X$echo_testing_string" = "X$echo_test_string"; then 315 : 316else 317 # The Solaris, AIX, and Digital Unix default echo programs unquote 318 # backslashes. This makes it impossible to quote backslashes using 319 # echo "$something" | sed 's/\\/\\\\/g' 320 # 321 # So, first we look for a working echo in the user's PATH. 322 323 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 324 for dir in $PATH /usr/ucb; do 325 IFS="$lt_save_ifs" 326 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 327 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 328 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 329 test "X$echo_testing_string" = "X$echo_test_string"; then 330 echo="$dir/echo" 331 break 332 fi 333 done 334 IFS="$lt_save_ifs" 335 336 if test "X$echo" = Xecho; then 337 # We didn't find a better echo, so look for alternatives. 338 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 339 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 340 test "X$echo_testing_string" = "X$echo_test_string"; then 341 # This shell has a builtin print -r that does the trick. 342 echo='print -r' 343 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 344 test "X$CONFIG_SHELL" != X/bin/ksh; then 345 # If we have ksh, try running configure again with it. 346 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 347 export ORIGINAL_CONFIG_SHELL 348 CONFIG_SHELL=/bin/ksh 349 export CONFIG_SHELL 350 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 351 else 352 # Try using printf. 353 echo='printf %s\n' 354 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 355 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 356 test "X$echo_testing_string" = "X$echo_test_string"; then 357 # Cool, printf works 358 : 359 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 360 test "X$echo_testing_string" = 'X\t' && 361 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 362 test "X$echo_testing_string" = "X$echo_test_string"; then 363 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 364 export CONFIG_SHELL 365 SHELL="$CONFIG_SHELL" 366 export SHELL 367 echo="$CONFIG_SHELL $0 --fallback-echo" 368 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 369 test "X$echo_testing_string" = 'X\t' && 370 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 371 test "X$echo_testing_string" = "X$echo_test_string"; then 372 echo="$CONFIG_SHELL $0 --fallback-echo" 373 else 374 # maybe with a smaller string... 375 prev=: 376 377 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 378 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 379 then 380 break 381 fi 382 prev="$cmd" 383 done 384 385 if test "$prev" != 'sed 50q "$0"'; then 386 echo_test_string=`eval $prev` 387 export echo_test_string 388 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 389 else 390 # Oops. We lost completely, so just stick with echo. 391 echo=echo 392 fi 393 fi 394 fi 395 fi 396fi 397fi 398 399# Copy echo and quote the copy suitably for passing to libtool from 400# the Makefile, instead of quoting the original, which is used later. 401ECHO=$echo 402if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 403 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 404fi 405 406 407 408 409tagnames=${tagnames+${tagnames},}CXX 410 411tagnames=${tagnames+${tagnames},}F77 412 413# Name of the host. 414# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 415# so uname gets run too. 416ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 417 418exec 6>&1 419 420# 421# Initializations. 422# 423ac_default_prefix=/usr/local 424ac_config_libobj_dir=. 425cross_compiling=no 426subdirs= 427MFLAGS= 428MAKEFLAGS= 429SHELL=${CONFIG_SHELL-/bin/sh} 430 431# Maximum number of lines to put in a shell here document. 432# This variable seems obsolete. It should probably be removed, and 433# only ac_max_sed_lines should be used. 434: ${ac_max_here_lines=38} 435 436# Identity of this package. 437PACKAGE_NAME='OsiConic' 438PACKAGE_TARNAME='osiconic' 439PACKAGE_VERSION='1.0.0' 440PACKAGE_STRING='OsiConic 1.0.0' 441PACKAGE_BUGREPORT='https://github.com/aykutbulut/OSI-CONIC/issues/new' 442 443ac_unique_file="src/OsiConicSolverInterface.hpp" 444ac_default_prefix=`pwd` 445# Factoring default headers for most tests. 446ac_includes_default="\ 447#include <stdio.h> 448#if HAVE_SYS_TYPES_H 449# include <sys/types.h> 450#endif 451#if HAVE_SYS_STAT_H 452# include <sys/stat.h> 453#endif 454#if STDC_HEADERS 455# include <stdlib.h> 456# include <stddef.h> 457#else 458# if HAVE_STDLIB_H 459# include <stdlib.h> 460# endif 461#endif 462#if HAVE_STRING_H 463# if !STDC_HEADERS && HAVE_MEMORY_H 464# include <memory.h> 465# endif 466# include <string.h> 467#endif 468#if HAVE_STRINGS_H 469# include <strings.h> 470#endif 471#if HAVE_INTTYPES_H 472# include <inttypes.h> 473#else 474# if HAVE_STDINT_H 475# include <stdint.h> 476# endif 477#endif 478#if HAVE_UNISTD_H 479# include <unistd.h> 480#endif" 481 482ac_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 OSICONIC_SVN_REV CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag 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 COINUTILS_LIBS COINUTILS_CFLAGS COINUTILS_DATA COINUTILS_DEPENDENCIES COINUTILS_LIBS_INSTALLED COINUTILS_CFLAGS_INSTALLED COINUTILS_DATA_INSTALLED OSICONICLIB_CFLAGS OSICONICLIB_LIBS OSICONICLIB_PCLIBS OSICONICLIB_PCREQUIRES OSICONICLIB_DEPENDENCIES OSICONICLIB_CFLAGS_INSTALLED OSICONICLIB_LIBS_INSTALLED COIN_HAS_COINUTILS_TRUE COIN_HAS_COINUTILS_FALSE OSI_LIBS OSI_CFLAGS OSI_DATA OSI_DEPENDENCIES OSI_LIBS_INSTALLED OSI_CFLAGS_INSTALLED OSI_DATA_INSTALLED COIN_HAS_OSI_TRUE COIN_HAS_OSI_FALSE coin_have_doxygen coin_have_latex coin_doxy_usedot coin_doxy_tagname coin_doxy_logname COIN_HAS_DOXYGEN_TRUE COIN_HAS_DOXYGEN_FALSE COIN_HAS_LATEX_TRUE COIN_HAS_LATEX_FALSE coin_doxy_tagfiles coin_doxy_excludes LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS' 483ac_subst_files='' 484 485# Initialize some variables set by options. 486ac_init_help= 487ac_init_version=false 488# The variables have the same names as the options, with 489# dashes changed to underlines. 490cache_file=/dev/null 491exec_prefix=NONE 492no_create= 493no_recursion= 494prefix=NONE 495program_prefix=NONE 496program_suffix=NONE 497program_transform_name=s,x,x, 498silent= 499site= 500srcdir= 501verbose= 502x_includes=NONE 503x_libraries=NONE 504 505# Installation directory options. 506# These are left unexpanded so users can "make install exec_prefix=/foo" 507# and all the variables that are supposed to be based on exec_prefix 508# by default will actually change. 509# Use braces instead of parens because sh, perl, etc. also accept them. 510bindir='${exec_prefix}/bin' 511sbindir='${exec_prefix}/sbin' 512libexecdir='${exec_prefix}/libexec' 513datadir='${prefix}/share' 514sysconfdir='${prefix}/etc' 515sharedstatedir='${prefix}/com' 516localstatedir='${prefix}/var' 517libdir='${exec_prefix}/lib' 518includedir='${prefix}/include' 519oldincludedir='/usr/include' 520infodir='${prefix}/info' 521mandir='${prefix}/man' 522 523ac_prev= 524for ac_option 525do 526 # If the previous option needs an argument, assign it. 527 if test -n "$ac_prev"; then 528 eval "$ac_prev=\$ac_option" 529 ac_prev= 530 continue 531 fi 532 533 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 534 535 # Accept the important Cygnus configure options, so we can diagnose typos. 536 537 case $ac_option in 538 539 -bindir | --bindir | --bindi | --bind | --bin | --bi) 540 ac_prev=bindir ;; 541 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 542 bindir=$ac_optarg ;; 543 544 -build | --build | --buil | --bui | --bu) 545 ac_prev=build_alias ;; 546 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 547 build_alias=$ac_optarg ;; 548 549 -cache-file | --cache-file | --cache-fil | --cache-fi \ 550 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 551 ac_prev=cache_file ;; 552 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 553 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 554 cache_file=$ac_optarg ;; 555 556 --config-cache | -C) 557 cache_file=config.cache ;; 558 559 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 560 ac_prev=datadir ;; 561 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 562 | --da=*) 563 datadir=$ac_optarg ;; 564 565 -disable-* | --disable-*) 566 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 567 # Reject names that are not valid shell variable names. 568 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 569 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 570 { (exit 1); exit 1; }; } 571 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 572 eval "enable_$ac_feature=no" ;; 573 574 -enable-* | --enable-*) 575 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 576 # Reject names that are not valid shell variable names. 577 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 578 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 579 { (exit 1); exit 1; }; } 580 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 581 case $ac_option in 582 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 583 *) ac_optarg=yes ;; 584 esac 585 eval "enable_$ac_feature='$ac_optarg'" ;; 586 587 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 588 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 589 | --exec | --exe | --ex) 590 ac_prev=exec_prefix ;; 591 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 592 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 593 | --exec=* | --exe=* | --ex=*) 594 exec_prefix=$ac_optarg ;; 595 596 -gas | --gas | --ga | --g) 597 # Obsolete; use --with-gas. 598 with_gas=yes ;; 599 600 -help | --help | --hel | --he | -h) 601 ac_init_help=long ;; 602 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 603 ac_init_help=recursive ;; 604 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 605 ac_init_help=short ;; 606 607 -host | --host | --hos | --ho) 608 ac_prev=host_alias ;; 609 -host=* | --host=* | --hos=* | --ho=*) 610 host_alias=$ac_optarg ;; 611 612 -includedir | --includedir | --includedi | --included | --include \ 613 | --includ | --inclu | --incl | --inc) 614 ac_prev=includedir ;; 615 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 616 | --includ=* | --inclu=* | --incl=* | --inc=*) 617 includedir=$ac_optarg ;; 618 619 -infodir | --infodir | --infodi | --infod | --info | --inf) 620 ac_prev=infodir ;; 621 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 622 infodir=$ac_optarg ;; 623 624 -libdir | --libdir | --libdi | --libd) 625 ac_prev=libdir ;; 626 -libdir=* | --libdir=* | --libdi=* | --libd=*) 627 libdir=$ac_optarg ;; 628 629 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 630 | --libexe | --libex | --libe) 631 ac_prev=libexecdir ;; 632 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 633 | --libexe=* | --libex=* | --libe=*) 634 libexecdir=$ac_optarg ;; 635 636 -localstatedir | --localstatedir | --localstatedi | --localstated \ 637 | --localstate | --localstat | --localsta | --localst \ 638 | --locals | --local | --loca | --loc | --lo) 639 ac_prev=localstatedir ;; 640 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 641 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 642 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 643 localstatedir=$ac_optarg ;; 644 645 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 646 ac_prev=mandir ;; 647 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 648 mandir=$ac_optarg ;; 649 650 -nfp | --nfp | --nf) 651 # Obsolete; use --without-fp. 652 with_fp=no ;; 653 654 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 655 | --no-cr | --no-c | -n) 656 no_create=yes ;; 657 658 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 659 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 660 no_recursion=yes ;; 661 662 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 663 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 664 | --oldin | --oldi | --old | --ol | --o) 665 ac_prev=oldincludedir ;; 666 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 667 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 668 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 669 oldincludedir=$ac_optarg ;; 670 671 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 672 ac_prev=prefix ;; 673 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 674 prefix=$ac_optarg ;; 675 676 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 677 | --program-pre | --program-pr | --program-p) 678 ac_prev=program_prefix ;; 679 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 680 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 681 program_prefix=$ac_optarg ;; 682 683 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 684 | --program-suf | --program-su | --program-s) 685 ac_prev=program_suffix ;; 686 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 687 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 688 program_suffix=$ac_optarg ;; 689 690 -program-transform-name | --program-transform-name \ 691 | --program-transform-nam | --program-transform-na \ 692 | --program-transform-n | --program-transform- \ 693 | --program-transform | --program-transfor \ 694 | --program-transfo | --program-transf \ 695 | --program-trans | --program-tran \ 696 | --progr-tra | --program-tr | --program-t) 697 ac_prev=program_transform_name ;; 698 -program-transform-name=* | --program-transform-name=* \ 699 | --program-transform-nam=* | --program-transform-na=* \ 700 | --program-transform-n=* | --program-transform-=* \ 701 | --program-transform=* | --program-transfor=* \ 702 | --program-transfo=* | --program-transf=* \ 703 | --program-trans=* | --program-tran=* \ 704 | --progr-tra=* | --program-tr=* | --program-t=*) 705 program_transform_name=$ac_optarg ;; 706 707 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 708 | -silent | --silent | --silen | --sile | --sil) 709 silent=yes ;; 710 711 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 712 ac_prev=sbindir ;; 713 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 714 | --sbi=* | --sb=*) 715 sbindir=$ac_optarg ;; 716 717 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 718 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 719 | --sharedst | --shareds | --shared | --share | --shar \ 720 | --sha | --sh) 721 ac_prev=sharedstatedir ;; 722 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 723 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 724 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 725 | --sha=* | --sh=*) 726 sharedstatedir=$ac_optarg ;; 727 728 -site | --site | --sit) 729 ac_prev=site ;; 730 -site=* | --site=* | --sit=*) 731 site=$ac_optarg ;; 732 733 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 734 ac_prev=srcdir ;; 735 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 736 srcdir=$ac_optarg ;; 737 738 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 739 | --syscon | --sysco | --sysc | --sys | --sy) 740 ac_prev=sysconfdir ;; 741 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 742 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 743 sysconfdir=$ac_optarg ;; 744 745 -target | --target | --targe | --targ | --tar | --ta | --t) 746 ac_prev=target_alias ;; 747 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 748 target_alias=$ac_optarg ;; 749 750 -v | -verbose | --verbose | --verbos | --verbo | --verb) 751 verbose=yes ;; 752 753 -version | --version | --versio | --versi | --vers | -V) 754 ac_init_version=: ;; 755 756 -with-* | --with-*) 757 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 758 # Reject names that are not valid shell variable names. 759 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 760 { echo "$as_me: error: invalid package name: $ac_package" >&2 761 { (exit 1); exit 1; }; } 762 ac_package=`echo $ac_package| sed 's/-/_/g'` 763 case $ac_option in 764 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 765 *) ac_optarg=yes ;; 766 esac 767 eval "with_$ac_package='$ac_optarg'" ;; 768 769 -without-* | --without-*) 770 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 771 # Reject names that are not valid shell variable names. 772 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 773 { echo "$as_me: error: invalid package name: $ac_package" >&2 774 { (exit 1); exit 1; }; } 775 ac_package=`echo $ac_package | sed 's/-/_/g'` 776 eval "with_$ac_package=no" ;; 777 778 --x) 779 # Obsolete; use --with-x. 780 with_x=yes ;; 781 782 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 783 | --x-incl | --x-inc | --x-in | --x-i) 784 ac_prev=x_includes ;; 785 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 786 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 787 x_includes=$ac_optarg ;; 788 789 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 790 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 791 ac_prev=x_libraries ;; 792 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 793 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 794 x_libraries=$ac_optarg ;; 795 796 -*) { echo "$as_me: error: unrecognized option: $ac_option 797Try \`$0 --help' for more information." >&2 798 { (exit 1); exit 1; }; } 799 ;; 800 801 *=*) 802 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 803 # Reject names that are not valid shell variable names. 804 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 805 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 806 { (exit 1); exit 1; }; } 807 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 808 eval "$ac_envvar='$ac_optarg'" 809 export $ac_envvar ;; 810 811 *) 812 # FIXME: should be removed in autoconf 3.0. 813 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 814 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 815 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 816 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 817 ;; 818 819 esac 820done 821 822if test -n "$ac_prev"; then 823 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 824 { echo "$as_me: error: missing argument to $ac_option" >&2 825 { (exit 1); exit 1; }; } 826fi 827 828# Be sure to have absolute paths. 829for ac_var in exec_prefix prefix 830do 831 eval ac_val=$`echo $ac_var` 832 case $ac_val in 833 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 834 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 835 { (exit 1); exit 1; }; };; 836 esac 837done 838 839# Be sure to have absolute paths. 840for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 841 localstatedir libdir includedir oldincludedir infodir mandir 842do 843 eval ac_val=$`echo $ac_var` 844 case $ac_val in 845 [\\/$]* | ?:[\\/]* ) ;; 846 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 847 { (exit 1); exit 1; }; };; 848 esac 849done 850 851# There might be people who depend on the old broken behavior: `$host' 852# used to hold the argument of --host etc. 853# FIXME: To remove some day. 854build=$build_alias 855host=$host_alias 856target=$target_alias 857 858# FIXME: To remove some day. 859if test "x$host_alias" != x; then 860 if test "x$build_alias" = x; then 861 cross_compiling=maybe 862 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 863 If a cross compiler is detected then cross compile mode will be used." >&2 864 elif test "x$build_alias" != "x$host_alias"; then 865 cross_compiling=yes 866 fi 867fi 868 869ac_tool_prefix= 870test -n "$host_alias" && ac_tool_prefix=$host_alias- 871 872test "$silent" = yes && exec 6>/dev/null 873 874 875# Find the source files, if location was not specified. 876if test -z "$srcdir"; then 877 ac_srcdir_defaulted=yes 878 # Try the directory containing this script, then its parent. 879 ac_confdir=`(dirname "$0") 2>/dev/null || 880$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 881 X"$0" : 'X\(//\)[^/]' \| \ 882 X"$0" : 'X\(//\)$' \| \ 883 X"$0" : 'X\(/\)' \| \ 884 . : '\(.\)' 2>/dev/null || 885echo X"$0" | 886 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 887 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 888 /^X\(\/\/\)$/{ s//\1/; q; } 889 /^X\(\/\).*/{ s//\1/; q; } 890 s/.*/./; q'` 891 srcdir=$ac_confdir 892 if test ! -r $srcdir/$ac_unique_file; then 893 srcdir=.. 894 fi 895else 896 ac_srcdir_defaulted=no 897fi 898if test ! -r $srcdir/$ac_unique_file; then 899 if test "$ac_srcdir_defaulted" = yes; then 900 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 901 { (exit 1); exit 1; }; } 902 else 903 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 904 { (exit 1); exit 1; }; } 905 fi 906fi 907(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 908 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 909 { (exit 1); exit 1; }; } 910srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 911ac_env_build_alias_set=${build_alias+set} 912ac_env_build_alias_value=$build_alias 913ac_cv_env_build_alias_set=${build_alias+set} 914ac_cv_env_build_alias_value=$build_alias 915ac_env_host_alias_set=${host_alias+set} 916ac_env_host_alias_value=$host_alias 917ac_cv_env_host_alias_set=${host_alias+set} 918ac_cv_env_host_alias_value=$host_alias 919ac_env_target_alias_set=${target_alias+set} 920ac_env_target_alias_value=$target_alias 921ac_cv_env_target_alias_set=${target_alias+set} 922ac_cv_env_target_alias_value=$target_alias 923ac_env_CDEFS_set=${CDEFS+set} 924ac_env_CDEFS_value=$CDEFS 925ac_cv_env_CDEFS_set=${CDEFS+set} 926ac_cv_env_CDEFS_value=$CDEFS 927ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set} 928ac_env_ADD_CFLAGS_value=$ADD_CFLAGS 929ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set} 930ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS 931ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set} 932ac_env_DBG_CFLAGS_value=$DBG_CFLAGS 933ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set} 934ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS 935ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set} 936ac_env_OPT_CFLAGS_value=$OPT_CFLAGS 937ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set} 938ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS 939ac_env_CC_set=${CC+set} 940ac_env_CC_value=$CC 941ac_cv_env_CC_set=${CC+set} 942ac_cv_env_CC_value=$CC 943ac_env_CFLAGS_set=${CFLAGS+set} 944ac_env_CFLAGS_value=$CFLAGS 945ac_cv_env_CFLAGS_set=${CFLAGS+set} 946ac_cv_env_CFLAGS_value=$CFLAGS 947ac_env_LDFLAGS_set=${LDFLAGS+set} 948ac_env_LDFLAGS_value=$LDFLAGS 949ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 950ac_cv_env_LDFLAGS_value=$LDFLAGS 951ac_env_CPPFLAGS_set=${CPPFLAGS+set} 952ac_env_CPPFLAGS_value=$CPPFLAGS 953ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 954ac_cv_env_CPPFLAGS_value=$CPPFLAGS 955ac_env_MPICC_set=${MPICC+set} 956ac_env_MPICC_value=$MPICC 957ac_cv_env_MPICC_set=${MPICC+set} 958ac_cv_env_MPICC_value=$MPICC 959ac_env_CXXDEFS_set=${CXXDEFS+set} 960ac_env_CXXDEFS_value=$CXXDEFS 961ac_cv_env_CXXDEFS_set=${CXXDEFS+set} 962ac_cv_env_CXXDEFS_value=$CXXDEFS 963ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set} 964ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS 965ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set} 966ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS 967ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set} 968ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS 969ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set} 970ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS 971ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set} 972ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS 973ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set} 974ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS 975ac_env_CXX_set=${CXX+set} 976ac_env_CXX_value=$CXX 977ac_cv_env_CXX_set=${CXX+set} 978ac_cv_env_CXX_value=$CXX 979ac_env_CXXFLAGS_set=${CXXFLAGS+set} 980ac_env_CXXFLAGS_value=$CXXFLAGS 981ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 982ac_cv_env_CXXFLAGS_value=$CXXFLAGS 983ac_env_MPICXX_set=${MPICXX+set} 984ac_env_MPICXX_value=$MPICXX 985ac_cv_env_MPICXX_set=${MPICXX+set} 986ac_cv_env_MPICXX_value=$MPICXX 987ac_env_CPP_set=${CPP+set} 988ac_env_CPP_value=$CPP 989ac_cv_env_CPP_set=${CPP+set} 990ac_cv_env_CPP_value=$CPP 991ac_env_CXXCPP_set=${CXXCPP+set} 992ac_env_CXXCPP_value=$CXXCPP 993ac_cv_env_CXXCPP_set=${CXXCPP+set} 994ac_cv_env_CXXCPP_value=$CXXCPP 995ac_env_F77_set=${F77+set} 996ac_env_F77_value=$F77 997ac_cv_env_F77_set=${F77+set} 998ac_cv_env_F77_value=$F77 999ac_env_FFLAGS_set=${FFLAGS+set} 1000ac_env_FFLAGS_value=$FFLAGS 1001ac_cv_env_FFLAGS_set=${FFLAGS+set} 1002ac_cv_env_FFLAGS_value=$FFLAGS 1003ac_env_PKG_CONFIG_set=${PKG_CONFIG+set} 1004ac_env_PKG_CONFIG_value=$PKG_CONFIG 1005ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set} 1006ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG 1007 1008# 1009# Report the --help message. 1010# 1011if test "$ac_init_help" = "long"; then 1012 # Omit some internal or obsolete options to make the list less imposing. 1013 # This message is too long to be a string in the A/UX 3.1 sh. 1014 cat <<_ACEOF 1015\`configure' configures OsiConic 1.0.0 to adapt to many kinds of systems. 1016 1017Usage: $0 [OPTION]... [VAR=VALUE]... 1018 1019To assign environment variables (e.g., CC, CFLAGS...), specify them as 1020VAR=VALUE. See below for descriptions of some of the useful variables. 1021 1022Defaults for the options are specified in brackets. 1023 1024Configuration: 1025 -h, --help display this help and exit 1026 --help=short display options specific to this package 1027 --help=recursive display the short help of all the included packages 1028 -V, --version display version information and exit 1029 -q, --quiet, --silent do not print \`checking...' messages 1030 --cache-file=FILE cache test results in FILE [disabled] 1031 -C, --config-cache alias for \`--cache-file=config.cache' 1032 -n, --no-create do not create output files 1033 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1034 1035_ACEOF 1036 1037 cat <<_ACEOF 1038Installation directories: 1039 --prefix=PREFIX install architecture-independent files in PREFIX 1040 [$ac_default_prefix] 1041 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1042 [PREFIX] 1043 1044By default, \`make install' will install all the files in 1045\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1046an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1047for instance \`--prefix=\$HOME'. 1048 1049For better control, use the options below. 1050 1051Fine tuning of the installation directories: 1052 --bindir=DIR user executables [EPREFIX/bin] 1053 --sbindir=DIR system admin executables [EPREFIX/sbin] 1054 --libexecdir=DIR program executables [EPREFIX/libexec] 1055 --datadir=DIR read-only architecture-independent data [PREFIX/share] 1056 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1057 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1058 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1059 --libdir=DIR object code libraries [EPREFIX/lib] 1060 --includedir=DIR C header files [PREFIX/include] 1061 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1062 --infodir=DIR info documentation [PREFIX/info] 1063 --mandir=DIR man documentation [PREFIX/man] 1064_ACEOF 1065 1066 cat <<\_ACEOF 1067 1068Program names: 1069 --program-prefix=PREFIX prepend PREFIX to installed program names 1070 --program-suffix=SUFFIX append SUFFIX to installed program names 1071 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1072 1073System types: 1074 --build=BUILD configure for building on BUILD [guessed] 1075 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1076_ACEOF 1077fi 1078 1079if test -n "$ac_init_help"; then 1080 case $ac_init_help in 1081 short | recursive ) echo "Configuration of OsiConic 1.0.0:";; 1082 esac 1083 cat <<\_ACEOF 1084 1085Optional Features: 1086 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1087 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1088 --enable-debug compile all projects with debug options tests 1089 (implies --disable-shared) 1090 --enable-debug-osiconic compile project OsiConic with debug compiler flags 1091 1092 --enable-msvc Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin. 1093 --enable-static[=PKGS] 1094 build static libraries [default=no] 1095 --disable-dependency-tracking speeds up one-time build 1096 --enable-dependency-tracking do not reject slow dependency extractors 1097 --enable-maintainer-mode enable make rules and dependencies not useful 1098 (and sometimes confusing) to the casual installer 1099 --enable-shared[=PKGS] 1100 build shared libraries [default=yes] 1101 --enable-fast-install[=PKGS] 1102 optimize for fast installation [default=yes] 1103 --disable-libtool-lock avoid locking (might break parallel builds) 1104 --disable-dependency-linking 1105 disable linking library dependencies into shared 1106 libraries 1107 --disable-pkg-config disable use of pkg-config (if available) 1108 --disable-interpackage-dependencies 1109 disables deduction of Makefile dependencies from 1110 package linker flags 1111 1112Optional Packages: 1113 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1114 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1115 --with-osiconic-verbosity 1116 specify the debug verbosity level for project 1117 OsiConic 1118 --with-osiconic-checklevel 1119 specify the sanity check level for project OsiConic 1120 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1121 --with-pic try to use only PIC/non-PIC objects [default=use 1122 both] 1123 --with-tags[=TAGS] 1124 include additional configurations [automatic] 1125 --with-coin-instdir prefix of installation directory for precompiled 1126 COIN packages 1127 1128 --with-coinutils-lib linker flags for using package CoinUtils 1129 --with-coinutils-incdir directory with header files for using package 1130 CoinUtils 1131 --with-coinutils-datadir 1132 directory with data files for using package 1133 CoinUtils 1134 --with-osi-lib linker flags for using package Osi 1135 --with-osi-incdir directory with header files for using package Osi 1136 --with-osi-datadir directory with data files for using package Osi 1137 --with-dot use dot (from graphviz) when creating documentation 1138 with doxygen if available; --without-dot to disable 1139 1140Some influential environment variables: 1141 CDEFS Additional -D flags to be used when compiling C code. 1142 ADD_CFLAGS Additional C compiler options 1143 DBG_CFLAGS Debug C compiler options 1144 OPT_CFLAGS Optimize C compiler options 1145 CC C compiler command 1146 CFLAGS C compiler flags 1147 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1148 nonstandard directory <lib dir> 1149 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1150 headers in a nonstandard directory <include dir> 1151 MPICC C MPI Compiler 1152 CXXDEFS Additional -D flags to be used when compiling C++ code. 1153 ADD_CXXFLAGS 1154 Additional C++ compiler options 1155 DBG_CXXFLAGS 1156 Debug C++ compiler options 1157 OPT_CXXFLAGS 1158 Optimize C++ compiler options 1159 CXX C++ compiler command 1160 CXXFLAGS C++ compiler flags 1161 MPICXX C++ MPI Compiler 1162 CPP C preprocessor 1163 CXXCPP C++ preprocessor 1164 F77 Fortran 77 compiler command 1165 FFLAGS Fortran 77 compiler flags 1166 PKG_CONFIG path to pkg-config utility 1167 1168Use these variables to override the choices made by `configure' or to help 1169it to find libraries and programs with nonstandard names/locations. 1170 1171Report bugs to <https://github.com/aykutbulut/OSI-CONIC/issues/new>. 1172_ACEOF 1173fi 1174 1175if test "$ac_init_help" = "recursive"; then 1176 # If there are subdirs, report their specific --help. 1177 ac_popdir=`pwd` 1178 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1179 test -d $ac_dir || continue 1180 ac_builddir=. 1181 1182if test "$ac_dir" != .; then 1183 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1184 # A "../" for each directory in $ac_dir_suffix. 1185 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 1186else 1187 ac_dir_suffix= ac_top_builddir= 1188fi 1189 1190case $srcdir in 1191 .) # No --srcdir option. We are building in place. 1192 ac_srcdir=. 1193 if test -z "$ac_top_builddir"; then 1194 ac_top_srcdir=. 1195 else 1196 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 1197 fi ;; 1198 [\\/]* | ?:[\\/]* ) # Absolute path. 1199 ac_srcdir=$srcdir$ac_dir_suffix; 1200 ac_top_srcdir=$srcdir ;; 1201 *) # Relative path. 1202 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 1203 ac_top_srcdir=$ac_top_builddir$srcdir ;; 1204esac 1205 1206# Do not use `cd foo && pwd` to compute absolute paths, because 1207# the directories may not exist. 1208case `pwd` in 1209.) ac_abs_builddir="$ac_dir";; 1210*) 1211 case "$ac_dir" in 1212 .) ac_abs_builddir=`pwd`;; 1213 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 1214 *) ac_abs_builddir=`pwd`/"$ac_dir";; 1215 esac;; 1216esac 1217case $ac_abs_builddir in 1218.) ac_abs_top_builddir=${ac_top_builddir}.;; 1219*) 1220 case ${ac_top_builddir}. in 1221 .) ac_abs_top_builddir=$ac_abs_builddir;; 1222 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 1223 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 1224 esac;; 1225esac 1226case $ac_abs_builddir in 1227.) ac_abs_srcdir=$ac_srcdir;; 1228*) 1229 case $ac_srcdir in 1230 .) ac_abs_srcdir=$ac_abs_builddir;; 1231 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 1232 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 1233 esac;; 1234esac 1235case $ac_abs_builddir in 1236.) ac_abs_top_srcdir=$ac_top_srcdir;; 1237*) 1238 case $ac_top_srcdir in 1239 .) ac_abs_top_srcdir=$ac_abs_builddir;; 1240 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 1241 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 1242 esac;; 1243esac 1244 1245 cd $ac_dir 1246 # Check for guested configure; otherwise get Cygnus style configure. 1247 if test -f $ac_srcdir/configure.gnu; then 1248 echo 1249 $SHELL $ac_srcdir/configure.gnu --help=recursive 1250 elif test -f $ac_srcdir/configure; then 1251 echo 1252 $SHELL $ac_srcdir/configure --help=recursive 1253 elif test -f $ac_srcdir/configure.ac || 1254 test -f $ac_srcdir/configure.in; then 1255 echo 1256 $ac_configure --help 1257 else 1258 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1259 fi 1260 cd $ac_popdir 1261 done 1262fi 1263 1264test -n "$ac_init_help" && exit 0 1265if $ac_init_version; then 1266 cat <<\_ACEOF 1267OsiConic configure 1.0.0 1268generated by GNU Autoconf 2.59 1269 1270Copyright (C) 2003 Free Software Foundation, Inc. 1271This configure script is free software; the Free Software Foundation 1272gives unlimited permission to copy, distribute and modify it. 1273 1274 1275/*===========================================================================*/ 1276/* */ 1277/* OsiConic is developed by Aykut Bulut (aykutblt@gmail.com) */ 1278/* */ 1279/* (c) Copyright 2017 Lehigh University. All Rights Reserved. */ 1280/* */ 1281/* This software is licensed under the Eclipse Public License. Please see */ 1282/* accompanying file for terms. */ 1283/* */ 1284/*===========================================================================*/ 1285 1286_ACEOF 1287 exit 0 1288fi 1289exec 5>config.log 1290cat >&5 <<_ACEOF 1291This file contains any messages produced by compilers while 1292running configure, to aid debugging if configure makes a mistake. 1293 1294It was created by OsiConic $as_me 1.0.0, which was 1295generated by GNU Autoconf 2.59. Invocation command line was 1296 1297 $ $0 $@ 1298 1299_ACEOF 1300{ 1301cat <<_ASUNAME 1302## --------- ## 1303## Platform. ## 1304## --------- ## 1305 1306hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1307uname -m = `(uname -m) 2>/dev/null || echo unknown` 1308uname -r = `(uname -r) 2>/dev/null || echo unknown` 1309uname -s = `(uname -s) 2>/dev/null || echo unknown` 1310uname -v = `(uname -v) 2>/dev/null || echo unknown` 1311 1312/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1313/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1314 1315/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1316/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1317/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1318hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1319/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1320/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1321/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1322 1323_ASUNAME 1324 1325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1326for as_dir in $PATH 1327do 1328 IFS=$as_save_IFS 1329 test -z "$as_dir" && as_dir=. 1330 echo "PATH: $as_dir" 1331done 1332 1333} >&5 1334 1335cat >&5 <<_ACEOF 1336 1337 1338## ----------- ## 1339## Core tests. ## 1340## ----------- ## 1341 1342_ACEOF 1343 1344 1345# Keep a trace of the command line. 1346# Strip out --no-create and --no-recursion so they do not pile up. 1347# Strip out --silent because we don't want to record it for future runs. 1348# Also quote any args containing shell meta-characters. 1349# Make two passes to allow for proper duplicate-argument suppression. 1350ac_configure_args= 1351ac_configure_args0= 1352ac_configure_args1= 1353ac_sep= 1354ac_must_keep_next=false 1355for ac_pass in 1 2 1356do 1357 for ac_arg 1358 do 1359 case $ac_arg in 1360 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1361 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1362 | -silent | --silent | --silen | --sile | --sil) 1363 continue ;; 1364 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1365 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1366 esac 1367 case $ac_pass in 1368 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1369 2) 1370 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1371 if test $ac_must_keep_next = true; then 1372 ac_must_keep_next=false # Got value, back to normal. 1373 else 1374 case $ac_arg in 1375 *=* | --config-cache | -C | -disable-* | --disable-* \ 1376 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1377 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1378 | -with-* | --with-* | -without-* | --without-* | --x) 1379 case "$ac_configure_args0 " in 1380 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1381 esac 1382 ;; 1383 -* ) ac_must_keep_next=true ;; 1384 esac 1385 fi 1386 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1387 # Get rid of the leading space. 1388 ac_sep=" " 1389 ;; 1390 esac 1391 done 1392done 1393$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1394$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1395 1396# When interrupted or exit'd, cleanup temporary files, and complete 1397# config.log. We remove comments because anyway the quotes in there 1398# would cause problems or look ugly. 1399# WARNING: Be sure not to use single quotes in there, as some shells, 1400# such as our DU 5.0 friend, will then `close' the trap. 1401trap 'exit_status=$? 1402 # Save into config.log some information that might help in debugging. 1403 { 1404 echo 1405 1406 cat <<\_ASBOX 1407## ---------------- ## 1408## Cache variables. ## 1409## ---------------- ## 1410_ASBOX 1411 echo 1412 # The following way of writing the cache mishandles newlines in values, 1413{ 1414 (set) 2>&1 | 1415 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1416 *ac_space=\ *) 1417 sed -n \ 1418 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1419 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1420 ;; 1421 *) 1422 sed -n \ 1423 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1424 ;; 1425 esac; 1426} 1427 echo 1428 1429 cat <<\_ASBOX 1430## ----------------- ## 1431## Output variables. ## 1432## ----------------- ## 1433_ASBOX 1434 echo 1435 for ac_var in $ac_subst_vars 1436 do 1437 eval ac_val=$`echo $ac_var` 1438 echo "$ac_var='"'"'$ac_val'"'"'" 1439 done | sort 1440 echo 1441 1442 if test -n "$ac_subst_files"; then 1443 cat <<\_ASBOX 1444## ------------- ## 1445## Output files. ## 1446## ------------- ## 1447_ASBOX 1448 echo 1449 for ac_var in $ac_subst_files 1450 do 1451 eval ac_val=$`echo $ac_var` 1452 echo "$ac_var='"'"'$ac_val'"'"'" 1453 done | sort 1454 echo 1455 fi 1456 1457 if test -s confdefs.h; then 1458 cat <<\_ASBOX 1459## ----------- ## 1460## confdefs.h. ## 1461## ----------- ## 1462_ASBOX 1463 echo 1464 sed "/^$/d" confdefs.h | sort 1465 echo 1466 fi 1467 test "$ac_signal" != 0 && 1468 echo "$as_me: caught signal $ac_signal" 1469 echo "$as_me: exit $exit_status" 1470 } >&5 1471 rm -f core *.core && 1472 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1473 exit $exit_status 1474 ' 0 1475for ac_signal in 1 2 13 15; do 1476 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1477done 1478ac_signal=0 1479 1480# confdefs.h avoids OS command line length limits that DEFS can exceed. 1481rm -rf conftest* confdefs.h 1482# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1483echo >confdefs.h 1484 1485# Predefined preprocessor variables. 1486 1487cat >>confdefs.h <<_ACEOF 1488#define PACKAGE_NAME "$PACKAGE_NAME" 1489_ACEOF 1490 1491 1492cat >>confdefs.h <<_ACEOF 1493#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1494_ACEOF 1495 1496 1497cat >>confdefs.h <<_ACEOF 1498#define PACKAGE_VERSION "$PACKAGE_VERSION" 1499_ACEOF 1500 1501 1502cat >>confdefs.h <<_ACEOF 1503#define PACKAGE_STRING "$PACKAGE_STRING" 1504_ACEOF 1505 1506 1507cat >>confdefs.h <<_ACEOF 1508#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1509_ACEOF 1510 1511 1512# Let the site file select an alternate cache file if it wants to. 1513# Prefer explicitly selected file to automatically selected ones. 1514if test -z "$CONFIG_SITE"; then 1515 if test "x$prefix" != xNONE; then 1516 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1517 else 1518 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1519 fi 1520fi 1521for ac_site_file in $CONFIG_SITE; do 1522 if test -r "$ac_site_file"; then 1523 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1524echo "$as_me: loading site script $ac_site_file" >&6;} 1525 sed 's/^/| /' "$ac_site_file" >&5 1526 . "$ac_site_file" 1527 fi 1528done 1529 1530if test -r "$cache_file"; then 1531 # Some versions of bash will fail to source /dev/null (special 1532 # files actually), so we avoid doing that. 1533 if test -f "$cache_file"; then 1534 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1535echo "$as_me: loading cache $cache_file" >&6;} 1536 case $cache_file in 1537 [\\/]* | ?:[\\/]* ) . $cache_file;; 1538 *) . ./$cache_file;; 1539 esac 1540 fi 1541else 1542 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1543echo "$as_me: creating cache $cache_file" >&6;} 1544 >$cache_file 1545fi 1546 1547# Check that the precious variables saved in the cache have kept the same 1548# value. 1549ac_cache_corrupted=false 1550for ac_var in `(set) 2>&1 | 1551 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1552 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1553 eval ac_new_set=\$ac_env_${ac_var}_set 1554 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1555 eval ac_new_val="\$ac_env_${ac_var}_value" 1556 case $ac_old_set,$ac_new_set in 1557 set,) 1558 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1559echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1560 ac_cache_corrupted=: ;; 1561 ,set) 1562 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1563echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1564 ac_cache_corrupted=: ;; 1565 ,);; 1566 *) 1567 if test "x$ac_old_val" != "x$ac_new_val"; then 1568 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1569echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1570 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1571echo "$as_me: former value: $ac_old_val" >&2;} 1572 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1573echo "$as_me: current value: $ac_new_val" >&2;} 1574 ac_cache_corrupted=: 1575 fi;; 1576 esac 1577 # Pass precious variables to config.status. 1578 if test "$ac_new_set" = set; then 1579 case $ac_new_val in 1580 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1581 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1582 *) ac_arg=$ac_var=$ac_new_val ;; 1583 esac 1584 case " $ac_configure_args " in 1585 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1586 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1587 esac 1588 fi 1589done 1590if $ac_cache_corrupted; then 1591 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1592echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1593 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1594echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1595 { (exit 1); exit 1; }; } 1596fi 1597 1598ac_ext=c 1599ac_cpp='$CPP $CPPFLAGS' 1600ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1601ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1602ac_compiler_gnu=$ac_cv_c_compiler_gnu 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633# List one file in the package so that the configure script can test 1634# whether the package is actually there 1635 1636 1637# Where should everything be installed by default? Here, we want it 1638# to be installed directly in 'bin', 'lib', 'include' subdirectories 1639# of the directory where configure is run. The default would be 1640# /usr/local. 1641 1642 1643############################################################################# 1644# Standard build tool stuff # 1645############################################################################# 1646# Get the system type 1647ac_aux_dir= 1648for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1649 if test -f $ac_dir/install-sh; then 1650 ac_aux_dir=$ac_dir 1651 ac_install_sh="$ac_aux_dir/install-sh -c" 1652 break 1653 elif test -f $ac_dir/install.sh; then 1654 ac_aux_dir=$ac_dir 1655 ac_install_sh="$ac_aux_dir/install.sh -c" 1656 break 1657 elif test -f $ac_dir/shtool; then 1658 ac_aux_dir=$ac_dir 1659 ac_install_sh="$ac_aux_dir/shtool install -c" 1660 break 1661 fi 1662done 1663if test -z "$ac_aux_dir"; then 1664 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1665echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1666 { (exit 1); exit 1; }; } 1667fi 1668ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1669ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1670ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1671 1672# Make sure we can run config.sub. 1673$ac_config_sub sun4 >/dev/null 2>&1 || 1674 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 1675echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1676 { (exit 1); exit 1; }; } 1677 1678echo "$as_me:$LINENO: checking build system type" >&5 1679echo $ECHO_N "checking build system type... $ECHO_C" >&6 1680if test "${ac_cv_build+set}" = set; then 1681 echo $ECHO_N "(cached) $ECHO_C" >&6 1682else 1683 ac_cv_build_alias=$build_alias 1684test -z "$ac_cv_build_alias" && 1685 ac_cv_build_alias=`$ac_config_guess` 1686test -z "$ac_cv_build_alias" && 1687 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1688echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1689 { (exit 1); exit 1; }; } 1690ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 1691 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 1692echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 1693 { (exit 1); exit 1; }; } 1694 1695fi 1696echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1697echo "${ECHO_T}$ac_cv_build" >&6 1698build=$ac_cv_build 1699build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1700build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1701build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1702 1703 1704 1705# If this project depends on external projects, the Externals file in 1706# the source root directory contains definition of where to find those 1707# externals. The following macro ensures that those externals are 1708# retrieved by svn if they are not there yet. 1709 1710# As backup, we make sure we don't loose an FLIBS if it has been set 1711# by the user 1712save_FLIBS="$FLIBS" 1713 1714# A useful makefile conditional that is always false 1715 1716 1717if false; then 1718 ALWAYS_FALSE_TRUE= 1719 ALWAYS_FALSE_FALSE='#' 1720else 1721 ALWAYS_FALSE_TRUE='#' 1722 ALWAYS_FALSE_FALSE= 1723fi 1724 1725 1726# We set the following variable so that we know later in AC_COIN_FINALIZE 1727# that we are in a project main directory 1728coin_projectdir=yes 1729 1730# Set the project's version numbers 1731 1732 1733cat >>confdefs.h <<_ACEOF 1734#define OSICONIC_VERSION "$PACKAGE_VERSION" 1735_ACEOF 1736 1737 1738 coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'` 1739 coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'` 1740 coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'` 1741 if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi 1742 if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi 1743 if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi 1744 1745cat >>confdefs.h <<_ACEOF 1746#define OSICONIC_VERSION_MAJOR $coin_majorver 1747_ACEOF 1748 1749 1750cat >>confdefs.h <<_ACEOF 1751#define OSICONIC_VERSION_MINOR $coin_minorver 1752_ACEOF 1753 1754 1755cat >>confdefs.h <<_ACEOF 1756#define OSICONIC_VERSION_RELEASE $coin_releasever 1757_ACEOF 1758 1759 1760 # We use the following variable to have a string with the upper case 1761 # version of the project name 1762 COIN_PRJCT=OSICONIC 1763 1764 # Set the project's SVN revision number. The complicated sed expression 1765 # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up 1766 # as a single number. 1767 # Extract the first word of "svnversion", so it can be a program name with args. 1768set dummy svnversion; ac_word=$2 1769echo "$as_me:$LINENO: checking for $ac_word" >&5 1770echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1771if test "${ac_cv_prog_have_svnversion+set}" = set; then 1772 echo $ECHO_N "(cached) $ECHO_C" >&6 1773else 1774 if test -n "$have_svnversion"; then 1775 ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test. 1776else 1777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1778for as_dir in $PATH 1779do 1780 IFS=$as_save_IFS 1781 test -z "$as_dir" && as_dir=. 1782 for ac_exec_ext in '' $ac_executable_extensions; do 1783 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1784 ac_cv_prog_have_svnversion="yes" 1785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1786 break 2 1787 fi 1788done 1789done 1790 1791 test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no" 1792fi 1793fi 1794have_svnversion=$ac_cv_prog_have_svnversion 1795if test -n "$have_svnversion"; then 1796 echo "$as_me:$LINENO: result: $have_svnversion" >&5 1797echo "${ECHO_T}$have_svnversion" >&6 1798else 1799 echo "$as_me:$LINENO: result: no" >&5 1800echo "${ECHO_T}no" >&6 1801fi 1802 1803 if test "x$have_svnversion" = xyes; then 1804 1805 svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null` 1806 if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then 1807 OSICONIC_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'` 1808 1809cat >>confdefs.h <<_ACEOF 1810#define OSICONIC_SVN_REV $OSICONIC_SVN_REV 1811_ACEOF 1812 1813 fi 1814 fi 1815 1816 1817 1818# Capture libtool library version, if given. 1819 1820 1821 1822 1823# Check if user wants to produce debugging code 1824 1825echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5 1826echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6 1827 1828# Check whether --enable-debug or --disable-debug was given. 1829if test "${enable_debug+set}" = set; then 1830 enableval="$enable_debug" 1831 case "${enableval}" in 1832 yes) coin_debug_compile=true 1833 if test "${enable_shared+set}" = set; then :; else 1834 enable_shared=no 1835 fi 1836 ;; 1837 no) coin_debug_compile=false 1838 ;; 1839 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5 1840echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;} 1841 { (exit 1); exit 1; }; } 1842 ;; 1843esac 1844else 1845 coin_debug_compile=false 1846fi; 1847 1848# Check whether --enable-debug-osiconic or --disable-debug-osiconic was given. 1849if test "${enable_debug_osiconic+set}" = set; then 1850 enableval="$enable_debug_osiconic" 1851 case "${enableval}" in 1852 yes) coin_debug_compile=true 1853 ;; 1854 no) coin_debug_compile=false 1855 ;; 1856 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-osiconic" >&5 1857echo "$as_me: error: bad value ${enableval} for --enable-debug-osiconic" >&2;} 1858 { (exit 1); exit 1; }; } 1859 ;; 1860 esac 1861else 1862 : 1863fi; 1864 1865 # m4_ifvaln([OsiConic], 1866 1867if test $coin_debug_compile = true; then 1868 echo "$as_me:$LINENO: result: yes" >&5 1869echo "${ECHO_T}yes" >&6 1870else 1871 echo "$as_me:$LINENO: result: no" >&5 1872echo "${ECHO_T}no" >&6 1873fi 1874 1875 1876# Check whether --with-osiconic-verbosity or --without-osiconic-verbosity was given. 1877if test "${with_osiconic_verbosity+set}" = set; then 1878 withval="$with_osiconic_verbosity" 1879 if test "$withval" = yes; then 1880 withval=1 1881 fi 1882 coin_osiconic_verbosity=$withval 1883else 1884 coin_osiconic_verbosity=0 1885fi; 1886 1887cat >>confdefs.h <<_ACEOF 1888#define COIN_OSICONIC_VERBOSITY $coin_osiconic_verbosity 1889_ACEOF 1890 1891 1892 1893# Check whether --with-osiconic-checklevel or --without-osiconic-checklevel was given. 1894if test "${with_osiconic_checklevel+set}" = set; then 1895 withval="$with_osiconic_checklevel" 1896 if test "$withval" = yes; then 1897 withval=1 1898 fi 1899 coin_osiconic_checklevel=$withval 1900else 1901 coin_osiconic_checklevel=0 1902fi; 1903 1904cat >>confdefs.h <<_ACEOF 1905#define COIN_OSICONIC_CHECKLEVEL $coin_osiconic_checklevel 1906_ACEOF 1907 1908 1909 # m4_ifvaln([OsiConic], 1910 1911 1912 1913# Get the name of the C++ compiler and appropriate compiler options 1914 1915 1916 # for backward compatibility 1917 # Check whether --enable-doscompile or --disable-doscompile was given. 1918if test "${enable_doscompile+set}" = set; then 1919 enableval="$enable_doscompile" 1920 enable_doscompile=$enableval 1921else 1922 enable_doscompile=no 1923fi; 1924 1925 # Check whether --enable-msvc or --disable-msvc was given. 1926if test "${enable_msvc+set}" = set; then 1927 enableval="$enable_msvc" 1928 enable_msvc=$enableval 1929else 1930 enable_msvc=no 1931 if test "$enable_doscompile" = msvc ; then 1932 enable_msvc=yes 1933 elif test "$enable_doscompile" != no ; then 1934 { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5 1935echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;} 1936 { (exit 1); exit 1; }; } 1937 fi 1938 1939fi; 1940 1941 if test "$enable_msvc" = MD; then 1942 enable_shared=yes 1943 enable_msvc=yes 1944 fi 1945 1946 if test "$enable_msvc" = yes; then 1947 case $build in 1948 *-cygwin* | *-mingw*) ;; 1949 *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5 1950echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;} 1951 { (exit 1); exit 1; }; } ;; 1952 esac 1953 fi 1954 1955 1956 1957ac_ext=c 1958ac_cpp='$CPP $CPPFLAGS' 1959ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1960ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1961ac_compiler_gnu=$ac_cv_c_compiler_gnu 1962 1963 1964# For consistency, we set the C compiler to the same value of the C++ 1965# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl) 1966if test x"$CXX" != x; then 1967 case "$CXX" in 1968 clang* ) ;; 1969 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 1970 if test x"$CC" = x; then 1971 CC="$CXX" 1972 { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5 1973echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;} 1974 fi 1975 ;; 1976 esac 1977fi 1978 1979 1980 1981 1982 1983 1984coin_has_cc=yes 1985 1986save_cflags="$CFLAGS" 1987 1988# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list. 1989# Depending on the user's PATH, when Studio/Workshop cc is not present we may 1990# find /usr/ucb/cc, which is almost certainly not a good choice for the C 1991# compiler. In this case, put cc after gcc. 1992 1993case $build in 1994 *-cygwin* | *-mingw*) 1995 if test "$enable_msvc" = yes ; then 1996 comps="icl cl gcc" 1997 else 1998 comps="gcc icl cl" 1999 fi ;; 2000 *-*-solaris*) 2001 # Extract the first word of "cc", so it can be a program name with args. 2002set dummy cc; ac_word=$2 2003echo "$as_me:$LINENO: checking for $ac_word" >&5 2004echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2005if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then 2006 echo $ECHO_N "(cached) $ECHO_C" >&6 2007else 2008 if test -n "$sol_cc_compiler"; then 2009 ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test. 2010else 2011 ac_prog_rejected=no 2012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2013for as_dir in $PATH 2014do 2015 IFS=$as_save_IFS 2016 test -z "$as_dir" && as_dir=. 2017 for ac_exec_ext in '' $ac_executable_extensions; do 2018 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2019 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2020 ac_prog_rejected=yes 2021 continue 2022 fi 2023 ac_cv_prog_sol_cc_compiler="cc" 2024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2025 break 2 2026 fi 2027done 2028done 2029 2030if test $ac_prog_rejected = yes; then 2031 # We found a bogon in the path, so make sure we never use it. 2032 set dummy $ac_cv_prog_sol_cc_compiler 2033 shift 2034 if test $# != 0; then 2035 # We chose a different compiler from the bogus one. 2036 # However, it has the same basename, so the bogon will be chosen 2037 # first if we set sol_cc_compiler to just the basename; use the full file name. 2038 shift 2039 ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@" 2040 fi 2041fi 2042fi 2043fi 2044sol_cc_compiler=$ac_cv_prog_sol_cc_compiler 2045if test -n "$sol_cc_compiler"; then 2046 echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5 2047echo "${ECHO_T}$sol_cc_compiler" >&6 2048else 2049 echo "$as_me:$LINENO: result: no" >&5 2050echo "${ECHO_T}no" >&6 2051fi 2052 2053 if test "$sol_cc_compiler" = "cc" ; then 2054 comps="cc xlc gcc pgcc icc" 2055 else 2056 comps="xlc gcc pgcc icc cc" 2057 fi 2058 ;; 2059 *-*-darwin*) comps="clang gcc cc" ;; 2060 *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;; 2061 *-linux-*) comps="xlc gcc cc pgcc icc" ;; 2062 *) comps="xlc_r xlc cc gcc pgcc icc" ;; 2063esac 2064 2065# We delete the cached value, since the test might not have been 2066# performed with our choice of compilers earlier 2067$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; } 2068# AC_MSG_NOTICE([C compiler candidates: $comps]) 2069ac_ext=c 2070ac_cpp='$CPP $CPPFLAGS' 2071ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2072ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2073ac_compiler_gnu=$ac_cv_c_compiler_gnu 2074if test -n "$ac_tool_prefix"; then 2075 for ac_prog in $comps 2076 do 2077 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2078set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2079echo "$as_me:$LINENO: checking for $ac_word" >&5 2080echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2081if test "${ac_cv_prog_CC+set}" = set; then 2082 echo $ECHO_N "(cached) $ECHO_C" >&6 2083else 2084 if test -n "$CC"; then 2085 ac_cv_prog_CC="$CC" # Let the user override the test. 2086else 2087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2088for as_dir in $PATH 2089do 2090 IFS=$as_save_IFS 2091 test -z "$as_dir" && as_dir=. 2092 for ac_exec_ext in '' $ac_executable_extensions; do 2093 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2094 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2096 break 2 2097 fi 2098done 2099done 2100 2101fi 2102fi 2103CC=$ac_cv_prog_CC 2104if test -n "$CC"; then 2105 echo "$as_me:$LINENO: result: $CC" >&5 2106echo "${ECHO_T}$CC" >&6 2107else 2108 echo "$as_me:$LINENO: result: no" >&5 2109echo "${ECHO_T}no" >&6 2110fi 2111 2112 test -n "$CC" && break 2113 done 2114fi 2115if test -z "$CC"; then 2116 ac_ct_CC=$CC 2117 for ac_prog in $comps 2118do 2119 # Extract the first word of "$ac_prog", so it can be a program name with args. 2120set dummy $ac_prog; ac_word=$2 2121echo "$as_me:$LINENO: checking for $ac_word" >&5 2122echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2123if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2124 echo $ECHO_N "(cached) $ECHO_C" >&6 2125else 2126 if test -n "$ac_ct_CC"; then 2127 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2128else 2129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2130for as_dir in $PATH 2131do 2132 IFS=$as_save_IFS 2133 test -z "$as_dir" && as_dir=. 2134 for ac_exec_ext in '' $ac_executable_extensions; do 2135 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2136 ac_cv_prog_ac_ct_CC="$ac_prog" 2137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2138 break 2 2139 fi 2140done 2141done 2142 2143fi 2144fi 2145ac_ct_CC=$ac_cv_prog_ac_ct_CC 2146if test -n "$ac_ct_CC"; then 2147 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2148echo "${ECHO_T}$ac_ct_CC" >&6 2149else 2150 echo "$as_me:$LINENO: result: no" >&5 2151echo "${ECHO_T}no" >&6 2152fi 2153 2154 test -n "$ac_ct_CC" && break 2155done 2156 2157 CC=$ac_ct_CC 2158fi 2159 2160 2161test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2162See \`config.log' for more details." >&5 2163echo "$as_me: error: no acceptable C compiler found in \$PATH 2164See \`config.log' for more details." >&2;} 2165 { (exit 1); exit 1; }; } 2166 2167# Provide some information about the compiler. 2168echo "$as_me:$LINENO:" \ 2169 "checking for C compiler version" >&5 2170ac_compiler=`set X $ac_compile; echo $2` 2171{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2172 (eval $ac_compiler --version </dev/null >&5) 2>&5 2173 ac_status=$? 2174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2175 (exit $ac_status); } 2176{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2177 (eval $ac_compiler -v </dev/null >&5) 2>&5 2178 ac_status=$? 2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2180 (exit $ac_status); } 2181{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2182 (eval $ac_compiler -V </dev/null >&5) 2>&5 2183 ac_status=$? 2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2185 (exit $ac_status); } 2186 2187cat >conftest.$ac_ext <<_ACEOF 2188/* confdefs.h. */ 2189_ACEOF 2190cat confdefs.h >>conftest.$ac_ext 2191cat >>conftest.$ac_ext <<_ACEOF 2192/* end confdefs.h. */ 2193 2194int 2195main () 2196{ 2197 2198 ; 2199 return 0; 2200} 2201_ACEOF 2202ac_clean_files_save=$ac_clean_files 2203ac_clean_files="$ac_clean_files a.out a.exe b.out" 2204# Try to create an executable without -o first, disregard a.out. 2205# It will help us diagnose broken compilers, and finding out an intuition 2206# of exeext. 2207echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2208echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2209ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2210if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2211 (eval $ac_link_default) 2>&5 2212 ac_status=$? 2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2214 (exit $ac_status); }; then 2215 # Find the output, starting from the most likely. This scheme is 2216# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2217# resort. 2218 2219# Be careful to initialize this variable, since it used to be cached. 2220# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2221ac_cv_exeext= 2222# b.out is created by i960 compilers. 2223for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2224do 2225 test -f "$ac_file" || continue 2226 case $ac_file in 2227 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2228 ;; 2229 conftest.$ac_ext ) 2230 # This is the source file. 2231 ;; 2232 [ab].out ) 2233 # We found the default executable, but exeext='' is most 2234 # certainly right. 2235 break;; 2236 *.* ) 2237 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2238 # FIXME: I believe we export ac_cv_exeext for Libtool, 2239 # but it would be cool to find out if it's true. Does anybody 2240 # maintain Libtool? --akim. 2241 export ac_cv_exeext 2242 break;; 2243 * ) 2244 break;; 2245 esac 2246done 2247else 2248 echo "$as_me: failed program was:" >&5 2249sed 's/^/| /' conftest.$ac_ext >&5 2250 2251{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2252See \`config.log' for more details." >&5 2253echo "$as_me: error: C compiler cannot create executables 2254See \`config.log' for more details." >&2;} 2255 { (exit 77); exit 77; }; } 2256fi 2257 2258ac_exeext=$ac_cv_exeext 2259echo "$as_me:$LINENO: result: $ac_file" >&5 2260echo "${ECHO_T}$ac_file" >&6 2261 2262# Check the compiler produces executables we can run. If not, either 2263# the compiler is broken, or we cross compile. 2264echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2265echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2266# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2267# If not cross compiling, check that we can run a simple program. 2268if test "$cross_compiling" != yes; then 2269 if { ac_try='./$ac_file' 2270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2271 (eval $ac_try) 2>&5 2272 ac_status=$? 2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2274 (exit $ac_status); }; }; then 2275 cross_compiling=no 2276 else 2277 if test "$cross_compiling" = maybe; then 2278 cross_compiling=yes 2279 else 2280 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2281If you meant to cross compile, use \`--host'. 2282See \`config.log' for more details." >&5 2283echo "$as_me: error: cannot run C compiled programs. 2284If you meant to cross compile, use \`--host'. 2285See \`config.log' for more details." >&2;} 2286 { (exit 1); exit 1; }; } 2287 fi 2288 fi 2289fi 2290echo "$as_me:$LINENO: result: yes" >&5 2291echo "${ECHO_T}yes" >&6 2292 2293rm -f a.out a.exe conftest$ac_cv_exeext b.out 2294ac_clean_files=$ac_clean_files_save 2295# Check the compiler produces executables we can run. If not, either 2296# the compiler is broken, or we cross compile. 2297echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2298echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2299echo "$as_me:$LINENO: result: $cross_compiling" >&5 2300echo "${ECHO_T}$cross_compiling" >&6 2301 2302echo "$as_me:$LINENO: checking for suffix of executables" >&5 2303echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2304if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2305 (eval $ac_link) 2>&5 2306 ac_status=$? 2307 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2308 (exit $ac_status); }; then 2309 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2310# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2311# work properly (i.e., refer to `conftest.exe'), while it won't with 2312# `rm'. 2313for ac_file in conftest.exe conftest conftest.*; do 2314 test -f "$ac_file" || continue 2315 case $ac_file in 2316 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2317 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2318 export ac_cv_exeext 2319 break;; 2320 * ) break;; 2321 esac 2322done 2323else 2324 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2325See \`config.log' for more details." >&5 2326echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2327See \`config.log' for more details." >&2;} 2328 { (exit 1); exit 1; }; } 2329fi 2330 2331rm -f conftest$ac_cv_exeext 2332echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2333echo "${ECHO_T}$ac_cv_exeext" >&6 2334 2335rm -f conftest.$ac_ext 2336EXEEXT=$ac_cv_exeext 2337ac_exeext=$EXEEXT 2338echo "$as_me:$LINENO: checking for suffix of object files" >&5 2339echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2340if test "${ac_cv_objext+set}" = set; then 2341 echo $ECHO_N "(cached) $ECHO_C" >&6 2342else 2343 cat >conftest.$ac_ext <<_ACEOF 2344/* confdefs.h. */ 2345_ACEOF 2346cat confdefs.h >>conftest.$ac_ext 2347cat >>conftest.$ac_ext <<_ACEOF 2348/* end confdefs.h. */ 2349 2350int 2351main () 2352{ 2353 2354 ; 2355 return 0; 2356} 2357_ACEOF 2358rm -f conftest.o conftest.obj 2359if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2360 (eval $ac_compile) 2>&5 2361 ac_status=$? 2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2363 (exit $ac_status); }; then 2364 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2365 case $ac_file in 2366 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2367 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2368 break;; 2369 esac 2370done 2371else 2372 echo "$as_me: failed program was:" >&5 2373sed 's/^/| /' conftest.$ac_ext >&5 2374 2375{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2376See \`config.log' for more details." >&5 2377echo "$as_me: error: cannot compute suffix of object files: cannot compile 2378See \`config.log' for more details." >&2;} 2379 { (exit 1); exit 1; }; } 2380fi 2381 2382rm -f conftest.$ac_cv_objext conftest.$ac_ext 2383fi 2384echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2385echo "${ECHO_T}$ac_cv_objext" >&6 2386OBJEXT=$ac_cv_objext 2387ac_objext=$OBJEXT 2388echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2389echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2390if test "${ac_cv_c_compiler_gnu+set}" = set; then 2391 echo $ECHO_N "(cached) $ECHO_C" >&6 2392else 2393 cat >conftest.$ac_ext <<_ACEOF 2394/* confdefs.h. */ 2395_ACEOF 2396cat confdefs.h >>conftest.$ac_ext 2397cat >>conftest.$ac_ext <<_ACEOF 2398/* end confdefs.h. */ 2399 2400int 2401main () 2402{ 2403#ifndef __GNUC__ 2404 choke me 2405#endif 2406 2407 ; 2408 return 0; 2409} 2410_ACEOF 2411rm -f conftest.$ac_objext 2412if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2413 (eval $ac_compile) 2>conftest.er1 2414 ac_status=$? 2415 grep -v '^ *+' conftest.er1 >conftest.err 2416 rm -f conftest.er1 2417 cat conftest.err >&5 2418 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2419 (exit $ac_status); } && 2420 { ac_try='test -z "$ac_c_werror_flag" 2421 || test ! -s conftest.err' 2422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2423 (eval $ac_try) 2>&5 2424 ac_status=$? 2425 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2426 (exit $ac_status); }; } && 2427 { ac_try='test -s conftest.$ac_objext' 2428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2429 (eval $ac_try) 2>&5 2430 ac_status=$? 2431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2432 (exit $ac_status); }; }; then 2433 ac_compiler_gnu=yes 2434else 2435 echo "$as_me: failed program was:" >&5 2436sed 's/^/| /' conftest.$ac_ext >&5 2437 2438ac_compiler_gnu=no 2439fi 2440rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2441ac_cv_c_compiler_gnu=$ac_compiler_gnu 2442 2443fi 2444echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2445echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2446GCC=`test $ac_compiler_gnu = yes && echo yes` 2447ac_test_CFLAGS=${CFLAGS+set} 2448ac_save_CFLAGS=$CFLAGS 2449CFLAGS="-g" 2450echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2451echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2452if test "${ac_cv_prog_cc_g+set}" = set; then 2453 echo $ECHO_N "(cached) $ECHO_C" >&6 2454else 2455 cat >conftest.$ac_ext <<_ACEOF 2456/* confdefs.h. */ 2457_ACEOF 2458cat confdefs.h >>conftest.$ac_ext 2459cat >>conftest.$ac_ext <<_ACEOF 2460/* end confdefs.h. */ 2461 2462int 2463main () 2464{ 2465 2466 ; 2467 return 0; 2468} 2469_ACEOF 2470rm -f conftest.$ac_objext 2471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2472 (eval $ac_compile) 2>conftest.er1 2473 ac_status=$? 2474 grep -v '^ *+' conftest.er1 >conftest.err 2475 rm -f conftest.er1 2476 cat conftest.err >&5 2477 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2478 (exit $ac_status); } && 2479 { ac_try='test -z "$ac_c_werror_flag" 2480 || test ! -s conftest.err' 2481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2482 (eval $ac_try) 2>&5 2483 ac_status=$? 2484 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2485 (exit $ac_status); }; } && 2486 { ac_try='test -s conftest.$ac_objext' 2487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2488 (eval $ac_try) 2>&5 2489 ac_status=$? 2490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2491 (exit $ac_status); }; }; then 2492 ac_cv_prog_cc_g=yes 2493else 2494 echo "$as_me: failed program was:" >&5 2495sed 's/^/| /' conftest.$ac_ext >&5 2496 2497ac_cv_prog_cc_g=no 2498fi 2499rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2500fi 2501echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2502echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2503if test "$ac_test_CFLAGS" = set; then 2504 CFLAGS=$ac_save_CFLAGS 2505elif test $ac_cv_prog_cc_g = yes; then 2506 if test "$GCC" = yes; then 2507 CFLAGS="-g -O2" 2508 else 2509 CFLAGS="-g" 2510 fi 2511else 2512 if test "$GCC" = yes; then 2513 CFLAGS="-O2" 2514 else 2515 CFLAGS= 2516 fi 2517fi 2518echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2519echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2520if test "${ac_cv_prog_cc_stdc+set}" = set; then 2521 echo $ECHO_N "(cached) $ECHO_C" >&6 2522else 2523 ac_cv_prog_cc_stdc=no 2524ac_save_CC=$CC 2525cat >conftest.$ac_ext <<_ACEOF 2526/* confdefs.h. */ 2527_ACEOF 2528cat confdefs.h >>conftest.$ac_ext 2529cat >>conftest.$ac_ext <<_ACEOF 2530/* end confdefs.h. */ 2531#include <stdarg.h> 2532#include <stdio.h> 2533#include <sys/types.h> 2534#include <sys/stat.h> 2535/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2536struct buf { int x; }; 2537FILE * (*rcsopen) (struct buf *, struct stat *, int); 2538static char *e (p, i) 2539 char **p; 2540 int i; 2541{ 2542 return p[i]; 2543} 2544static char *f (char * (*g) (char **, int), char **p, ...) 2545{ 2546 char *s; 2547 va_list v; 2548 va_start (v,p); 2549 s = g (p, va_arg (v,int)); 2550 va_end (v); 2551 return s; 2552} 2553 2554/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2555 function prototypes and stuff, but not '\xHH' hex character constants. 2556 These don't provoke an error unfortunately, instead are silently treated 2557 as 'x'. The following induces an error, until -std1 is added to get 2558 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2559 array size at least. It's necessary to write '\x00'==0 to get something 2560 that's true only with -std1. */ 2561int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2562 2563int test (int i, double x); 2564struct s1 {int (*f) (int a);}; 2565struct s2 {int (*f) (double a);}; 2566int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2567int argc; 2568char **argv; 2569int 2570main () 2571{ 2572return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2573 ; 2574 return 0; 2575} 2576_ACEOF 2577# Don't try gcc -ansi; that turns off useful extensions and 2578# breaks some systems' header files. 2579# AIX -qlanglvl=ansi 2580# Ultrix and OSF/1 -std1 2581# HP-UX 10.20 and later -Ae 2582# HP-UX older versions -Aa -D_HPUX_SOURCE 2583# SVR4 -Xc -D__EXTENSIONS__ 2584for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2585do 2586 CC="$ac_save_CC $ac_arg" 2587 rm -f conftest.$ac_objext 2588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2589 (eval $ac_compile) 2>conftest.er1 2590 ac_status=$? 2591 grep -v '^ *+' conftest.er1 >conftest.err 2592 rm -f conftest.er1 2593 cat conftest.err >&5 2594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2595 (exit $ac_status); } && 2596 { ac_try='test -z "$ac_c_werror_flag" 2597 || test ! -s conftest.err' 2598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2599 (eval $ac_try) 2>&5 2600 ac_status=$? 2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2602 (exit $ac_status); }; } && 2603 { ac_try='test -s conftest.$ac_objext' 2604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2605 (eval $ac_try) 2>&5 2606 ac_status=$? 2607 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2608 (exit $ac_status); }; }; then 2609 ac_cv_prog_cc_stdc=$ac_arg 2610break 2611else 2612 echo "$as_me: failed program was:" >&5 2613sed 's/^/| /' conftest.$ac_ext >&5 2614 2615fi 2616rm -f conftest.err conftest.$ac_objext 2617done 2618rm -f conftest.$ac_ext conftest.$ac_objext 2619CC=$ac_save_CC 2620 2621fi 2622 2623case "x$ac_cv_prog_cc_stdc" in 2624 x|xno) 2625 echo "$as_me:$LINENO: result: none needed" >&5 2626echo "${ECHO_T}none needed" >&6 ;; 2627 *) 2628 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2629echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2630 CC="$CC $ac_cv_prog_cc_stdc" ;; 2631esac 2632 2633# Some people use a C++ compiler to compile C. Since we use `exit', 2634# in C++ we need to declare it. In case someone uses the same compiler 2635# for both compiling C and C++ we need to have the C++ compiler decide 2636# the declaration of exit, since it's the most demanding environment. 2637cat >conftest.$ac_ext <<_ACEOF 2638#ifndef __cplusplus 2639 choke me 2640#endif 2641_ACEOF 2642rm -f conftest.$ac_objext 2643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2644 (eval $ac_compile) 2>conftest.er1 2645 ac_status=$? 2646 grep -v '^ *+' conftest.er1 >conftest.err 2647 rm -f conftest.er1 2648 cat conftest.err >&5 2649 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2650 (exit $ac_status); } && 2651 { ac_try='test -z "$ac_c_werror_flag" 2652 || test ! -s conftest.err' 2653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2654 (eval $ac_try) 2>&5 2655 ac_status=$? 2656 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2657 (exit $ac_status); }; } && 2658 { ac_try='test -s conftest.$ac_objext' 2659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2660 (eval $ac_try) 2>&5 2661 ac_status=$? 2662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2663 (exit $ac_status); }; }; then 2664 for ac_declaration in \ 2665 '' \ 2666 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2667 'extern "C" void std::exit (int); using std::exit;' \ 2668 'extern "C" void exit (int) throw ();' \ 2669 'extern "C" void exit (int);' \ 2670 'void exit (int);' 2671do 2672 cat >conftest.$ac_ext <<_ACEOF 2673/* confdefs.h. */ 2674_ACEOF 2675cat confdefs.h >>conftest.$ac_ext 2676cat >>conftest.$ac_ext <<_ACEOF 2677/* end confdefs.h. */ 2678$ac_declaration 2679#include <stdlib.h> 2680int 2681main () 2682{ 2683exit (42); 2684 ; 2685 return 0; 2686} 2687_ACEOF 2688rm -f conftest.$ac_objext 2689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2690 (eval $ac_compile) 2>conftest.er1 2691 ac_status=$? 2692 grep -v '^ *+' conftest.er1 >conftest.err 2693 rm -f conftest.er1 2694 cat conftest.err >&5 2695 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2696 (exit $ac_status); } && 2697 { ac_try='test -z "$ac_c_werror_flag" 2698 || test ! -s conftest.err' 2699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2700 (eval $ac_try) 2>&5 2701 ac_status=$? 2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2703 (exit $ac_status); }; } && 2704 { ac_try='test -s conftest.$ac_objext' 2705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2706 (eval $ac_try) 2>&5 2707 ac_status=$? 2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2709 (exit $ac_status); }; }; then 2710 : 2711else 2712 echo "$as_me: failed program was:" >&5 2713sed 's/^/| /' conftest.$ac_ext >&5 2714 2715continue 2716fi 2717rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2718 cat >conftest.$ac_ext <<_ACEOF 2719/* confdefs.h. */ 2720_ACEOF 2721cat confdefs.h >>conftest.$ac_ext 2722cat >>conftest.$ac_ext <<_ACEOF 2723/* end confdefs.h. */ 2724$ac_declaration 2725int 2726main () 2727{ 2728exit (42); 2729 ; 2730 return 0; 2731} 2732_ACEOF 2733rm -f conftest.$ac_objext 2734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2735 (eval $ac_compile) 2>conftest.er1 2736 ac_status=$? 2737 grep -v '^ *+' conftest.er1 >conftest.err 2738 rm -f conftest.er1 2739 cat conftest.err >&5 2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2741 (exit $ac_status); } && 2742 { ac_try='test -z "$ac_c_werror_flag" 2743 || test ! -s conftest.err' 2744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2745 (eval $ac_try) 2>&5 2746 ac_status=$? 2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2748 (exit $ac_status); }; } && 2749 { ac_try='test -s conftest.$ac_objext' 2750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2751 (eval $ac_try) 2>&5 2752 ac_status=$? 2753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2754 (exit $ac_status); }; }; then 2755 break 2756else 2757 echo "$as_me: failed program was:" >&5 2758sed 's/^/| /' conftest.$ac_ext >&5 2759 2760fi 2761rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2762done 2763rm -f conftest* 2764if test -n "$ac_declaration"; then 2765 echo '#ifdef __cplusplus' >>confdefs.h 2766 echo $ac_declaration >>confdefs.h 2767 echo '#endif' >>confdefs.h 2768fi 2769 2770else 2771 echo "$as_me: failed program was:" >&5 2772sed 's/^/| /' conftest.$ac_ext >&5 2773 2774fi 2775rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2776ac_ext=c 2777ac_cpp='$CPP $CPPFLAGS' 2778ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2779ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2780ac_compiler_gnu=$ac_cv_c_compiler_gnu 2781 2782if test -z "$CC" ; then 2783 { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5 2784echo "$as_me: error: Failed to find a C compiler!" >&2;} 2785 { (exit 1); exit 1; }; } 2786fi 2787# Autoconf incorrectly concludes that cl recognises -g. It doesn't. 2788case "$CC" in 2789 clang* ) ;; 2790 cl* | */cl* | CL* | */CL* ) 2791 if test "$ac_cv_prog_cc_g" = yes ; then 2792 ac_cv_prog_cc_g=no 2793 { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5 2794echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;} 2795 fi ;; 2796 * ) 2797 if test x"$CYGPATH_W" = x ; then 2798 CYGPATH_W=echo 2799 fi 2800 ;; 2801esac 2802CFLAGS="$save_cflags" 2803 2804# add automake conditional so we can recognize cl compiler in makefile 2805coin_cc_is_cl=false 2806case "$CC" in 2807 clang* ) ;; 2808 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 2809 coin_cc_is_cl=true 2810 ;; 2811esac 2812 2813 2814if test $coin_cc_is_cl = true; then 2815 COIN_CC_IS_CL_TRUE= 2816 COIN_CC_IS_CL_FALSE='#' 2817else 2818 COIN_CC_IS_CL_TRUE='#' 2819 COIN_CC_IS_CL_FALSE= 2820fi 2821 2822 2823# Check if a project specific CFLAGS variable has been set 2824if test x$COIN_PRJCT != x; then 2825 eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set} 2826 if test x$coin_tmp = xset; then 2827 eval CFLAGS=\${${COIN_PRJCT}_CFLAGS} 2828 fi 2829fi 2830 2831if test x"$CFLAGS" = x; then 2832 2833 coin_add_cflags= 2834 coin_opt_cflags= 2835 coin_dbg_cflags= 2836 coin_warn_cflags= 2837 2838 if test "$GCC" = "yes"; then 2839 case "$CC" in 2840 icc* | */icc*) 2841 ;; 2842 *) 2843 coin_opt_cflags="-O3" 2844 coin_add_cflags="-pipe" 2845 coin_dbg_cflags="-g -O0" 2846 coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long" 2847 esac 2848 fi 2849 if test -z "$coin_opt_cflags"; then 2850 case $build in 2851 *-cygwin* | *-mingw*) 2852 case "$CC" in 2853 clang* ) ;; 2854 cl* | */cl* | CL* | */CL*) 2855 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then 2856 coin_opt_cflags='-MD -O2' 2857 coin_dbg_cflags='-MDd' 2858 else 2859 coin_opt_cflags='-MT -O2' 2860 coin_dbg_cflags='-MTd' 2861 fi 2862 coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE' 2863 ;; 2864 icl* | */icl* | ICL* | */ICL*) 2865 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then 2866 coin_opt_cflags='-MD -Ox' 2867 coin_dbg_cflags='-MDd -debug' 2868 else 2869 coin_opt_cflags='-MT -Ox' 2870 coin_dbg_cflags='-MTd -debug' 2871 fi 2872 coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE' 2873 ;; 2874 esac 2875 ;; 2876 *-linux-*) 2877 case "$CC" in 2878 icc* | */icc*) 2879 coin_opt_cflags="-O3 -ip -mp1" 2880 coin_add_cflags="" 2881 coin_dbg_cflags="-g" 2882 # Check if -i_dynamic is necessary (for new glibc library) 2883 CFLAGS= 2884 cat >conftest.$ac_ext <<_ACEOF 2885/* confdefs.h. */ 2886_ACEOF 2887cat confdefs.h >>conftest.$ac_ext 2888cat >>conftest.$ac_ext <<_ACEOF 2889/* end confdefs.h. */ 2890 2891int 2892main () 2893{ 2894int i=0; i++; 2895 ; 2896 return 0; 2897} 2898_ACEOF 2899rm -f conftest.$ac_objext conftest$ac_exeext 2900if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2901 (eval $ac_link) 2>conftest.er1 2902 ac_status=$? 2903 grep -v '^ *+' conftest.er1 >conftest.err 2904 rm -f conftest.er1 2905 cat conftest.err >&5 2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2907 (exit $ac_status); } && 2908 { ac_try='test -z "$ac_c_werror_flag" 2909 || test ! -s conftest.err' 2910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2911 (eval $ac_try) 2>&5 2912 ac_status=$? 2913 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2914 (exit $ac_status); }; } && 2915 { ac_try='test -s conftest$ac_exeext' 2916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2917 (eval $ac_try) 2>&5 2918 ac_status=$? 2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2920 (exit $ac_status); }; }; then 2921 : 2922else 2923 echo "$as_me: failed program was:" >&5 2924sed 's/^/| /' conftest.$ac_ext >&5 2925 2926coin_add_cflags="-i_dynamic $coin_add_cflags" 2927fi 2928rm -f conftest.err conftest.$ac_objext \ 2929 conftest$ac_exeext conftest.$ac_ext 2930 ;; 2931 pgcc* | */pgcc*) 2932 coin_opt_cflags="-fast" 2933 coin_add_cflags="-Kieee -pc 64" 2934 coin_dbg_cflags="-g" 2935 ;; 2936 esac 2937 ;; 2938 *-ibm-*) 2939 case "$CC" in 2940 xlc* | */xlc* | mpxlc* | */mpxlc*) 2941 coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1" 2942 coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029" 2943 coin_dbg_cflags="-g" 2944 ;; 2945 esac 2946 ;; 2947 *-hp-*) 2948 coin_opt_cflags="-O" 2949 coin_add_cflags="-Ae" 2950 coin_dbg_cflags="-g" 2951 ;; 2952 *-*-solaris*) 2953 coin_opt_cflags="-xO4" 2954 coin_dbg_cflags="-g" 2955 ;; 2956 *-sgi-*) 2957 coin_opt_cflags="-O -OPT:Olimit=0" 2958 coin_dbg_cflags="-g" 2959 ;; 2960 esac 2961 fi 2962 2963 if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then 2964 coin_dbg_cflags="-g" 2965 fi 2966 2967 if test -z "$coin_opt_cflags"; then 2968 # Try if -O option works if nothing else is set 2969 CFLAGS="-O" 2970 cat >conftest.$ac_ext <<_ACEOF 2971/* confdefs.h. */ 2972_ACEOF 2973cat confdefs.h >>conftest.$ac_ext 2974cat >>conftest.$ac_ext <<_ACEOF 2975/* end confdefs.h. */ 2976 2977int 2978main () 2979{ 2980int i=0; i++; 2981 ; 2982 return 0; 2983} 2984_ACEOF 2985rm -f conftest.$ac_objext conftest$ac_exeext 2986if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2987 (eval $ac_link) 2>conftest.er1 2988 ac_status=$? 2989 grep -v '^ *+' conftest.er1 >conftest.err 2990 rm -f conftest.er1 2991 cat conftest.err >&5 2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2993 (exit $ac_status); } && 2994 { ac_try='test -z "$ac_c_werror_flag" 2995 || test ! -s conftest.err' 2996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2997 (eval $ac_try) 2>&5 2998 ac_status=$? 2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3000 (exit $ac_status); }; } && 3001 { ac_try='test -s conftest$ac_exeext' 3002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3003 (eval $ac_try) 2>&5 3004 ac_status=$? 3005 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3006 (exit $ac_status); }; }; then 3007 coin_opt_cflags="-O" 3008else 3009 echo "$as_me: failed program was:" >&5 3010sed 's/^/| /' conftest.$ac_ext >&5 3011 3012fi 3013rm -f conftest.err conftest.$ac_objext \ 3014 conftest$ac_exeext conftest.$ac_ext 3015 fi 3016 3017 # if PM doesn't want the warning messages, take them out 3018 if test x"$coin_skip_warn_cflags" = xyes; then 3019 coin_warn_cflags= 3020 fi 3021 3022 if test x${DBG_CFLAGS+set} != xset; then 3023 DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags" 3024 fi 3025 if test x${OPT_CFLAGS+set} != xset; then 3026 OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags" 3027 fi 3028 3029 DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS" 3030 OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS" 3031 3032 if test "$coin_debug_compile" = "true"; then 3033 CFLAGS="$DBG_CFLAGS" 3034 else 3035 CFLAGS="$OPT_CFLAGS" 3036 fi 3037else 3038 CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS" 3039 if test x${DBG_CFLAGS+set} != xset; then 3040 DBG_CFLAGS="$CFLAGS" 3041 fi 3042 if test x${OPT_CFLAGS+set} != xset; then 3043 OPT_CFLAGS="$CFLAGS" 3044 fi 3045fi 3046 3047# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include 3048if test x$COIN_PRJCT != x; then 3049 CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD" 3050fi 3051 3052# Try if CFLAGS works 3053save_CFLAGS="$CFLAGS" 3054cat >conftest.$ac_ext <<_ACEOF 3055/* confdefs.h. */ 3056_ACEOF 3057cat confdefs.h >>conftest.$ac_ext 3058cat >>conftest.$ac_ext <<_ACEOF 3059/* end confdefs.h. */ 3060 3061int 3062main () 3063{ 3064int i=0; i++; 3065 ; 3066 return 0; 3067} 3068_ACEOF 3069rm -f conftest.$ac_objext conftest$ac_exeext 3070if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3071 (eval $ac_link) 2>conftest.er1 3072 ac_status=$? 3073 grep -v '^ *+' conftest.er1 >conftest.err 3074 rm -f conftest.er1 3075 cat conftest.err >&5 3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3077 (exit $ac_status); } && 3078 { ac_try='test -z "$ac_c_werror_flag" 3079 || test ! -s conftest.err' 3080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3081 (eval $ac_try) 2>&5 3082 ac_status=$? 3083 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3084 (exit $ac_status); }; } && 3085 { ac_try='test -s conftest$ac_exeext' 3086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3087 (eval $ac_try) 2>&5 3088 ac_status=$? 3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3090 (exit $ac_status); }; }; then 3091 : 3092else 3093 echo "$as_me: failed program was:" >&5 3094sed 's/^/| /' conftest.$ac_ext >&5 3095 3096CFLAGS= 3097fi 3098rm -f conftest.err conftest.$ac_objext \ 3099 conftest$ac_exeext conftest.$ac_ext 3100if test -z "$CFLAGS"; then 3101 { 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 3102echo "$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;} 3103 CFLAGS='-O' 3104 cat >conftest.$ac_ext <<_ACEOF 3105/* confdefs.h. */ 3106_ACEOF 3107cat confdefs.h >>conftest.$ac_ext 3108cat >>conftest.$ac_ext <<_ACEOF 3109/* end confdefs.h. */ 3110 3111int 3112main () 3113{ 3114int i=0; i++; 3115 ; 3116 return 0; 3117} 3118_ACEOF 3119rm -f conftest.$ac_objext conftest$ac_exeext 3120if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3121 (eval $ac_link) 2>conftest.er1 3122 ac_status=$? 3123 grep -v '^ *+' conftest.er1 >conftest.err 3124 rm -f conftest.er1 3125 cat conftest.err >&5 3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3127 (exit $ac_status); } && 3128 { ac_try='test -z "$ac_c_werror_flag" 3129 || test ! -s conftest.err' 3130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3131 (eval $ac_try) 2>&5 3132 ac_status=$? 3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3134 (exit $ac_status); }; } && 3135 { ac_try='test -s conftest$ac_exeext' 3136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3137 (eval $ac_try) 2>&5 3138 ac_status=$? 3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3140 (exit $ac_status); }; }; then 3141 : 3142else 3143 echo "$as_me: failed program was:" >&5 3144sed 's/^/| /' conftest.$ac_ext >&5 3145 3146CFLAGS= 3147fi 3148rm -f conftest.err conftest.$ac_objext \ 3149 conftest$ac_exeext conftest.$ac_ext 3150 if test -z "$CFLAGS"; then 3151 { 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 3152echo "$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;} 3153 fi 3154fi 3155 3156{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5 3157echo "$as_me: C compiler options are: $CFLAGS" >&6;} 3158 3159 3160if test x"$MPICC" = x; then :; else 3161 { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5 3162echo "$as_me: Will use MPI C compiler $MPICC" >&6;} 3163 CC="$MPICC" 3164fi 3165 3166# Correct the LD variable if we are using the MS or Intel-windows compiler 3167case "$CC" in 3168 clang* ) ;; 3169 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 3170 LD=link 3171 ;; 3172esac 3173 3174ac_ext=c 3175ac_cpp='$CPP $CPPFLAGS' 3176ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3177ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3178ac_compiler_gnu=$ac_cv_c_compiler_gnu 3179 3180 3181 3182 #Let's try if that overcomes configuration problem with VC++ 6.0 3183 3184ac_ext=cc 3185ac_cpp='$CXXCPP $CPPFLAGS' 3186ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3187ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3188ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3189 3190 3191 3192 3193 3194 3195 3196coin_has_cxx=yes 3197 3198save_cxxflags="$CXXFLAGS" 3199# For *-*-solaris*, promote Studio/Workshop compiler to front of list. 3200case $build in 3201 *-cygwin* | *-mingw*) 3202 if test "$enable_msvc" = yes ; then 3203 comps="icl cl g++" 3204 else 3205 comps="g++ icl cl" 3206 fi ;; 3207 *-*-solaris*) 3208 comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;; 3209 *-darwin*) comps="clang++ g++ c++ CC" ;; 3210 *-linux-gnu*) 3211 comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;; 3212 *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;; 3213esac 3214 3215# We delete the cached value, since the test might not have been 3216# performed with our choice of compilers earlier 3217$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; } 3218# AC_MSG_NOTICE([C++ compiler candidates: $comps]) 3219ac_ext=cc 3220ac_cpp='$CXXCPP $CPPFLAGS' 3221ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3222ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3223ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3224if test -n "$ac_tool_prefix"; then 3225 for ac_prog in $CCC $comps 3226 do 3227 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3228set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3229echo "$as_me:$LINENO: checking for $ac_word" >&5 3230echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3231if test "${ac_cv_prog_CXX+set}" = set; then 3232 echo $ECHO_N "(cached) $ECHO_C" >&6 3233else 3234 if test -n "$CXX"; then 3235 ac_cv_prog_CXX="$CXX" # Let the user override the test. 3236else 3237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3238for as_dir in $PATH 3239do 3240 IFS=$as_save_IFS 3241 test -z "$as_dir" && as_dir=. 3242 for ac_exec_ext in '' $ac_executable_extensions; do 3243 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3244 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 3245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3246 break 2 3247 fi 3248done 3249done 3250 3251fi 3252fi 3253CXX=$ac_cv_prog_CXX 3254if test -n "$CXX"; then 3255 echo "$as_me:$LINENO: result: $CXX" >&5 3256echo "${ECHO_T}$CXX" >&6 3257else 3258 echo "$as_me:$LINENO: result: no" >&5 3259echo "${ECHO_T}no" >&6 3260fi 3261 3262 test -n "$CXX" && break 3263 done 3264fi 3265if test -z "$CXX"; then 3266 ac_ct_CXX=$CXX 3267 for ac_prog in $CCC $comps 3268do 3269 # Extract the first word of "$ac_prog", so it can be a program name with args. 3270set dummy $ac_prog; ac_word=$2 3271echo "$as_me:$LINENO: checking for $ac_word" >&5 3272echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3273if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 3274 echo $ECHO_N "(cached) $ECHO_C" >&6 3275else 3276 if test -n "$ac_ct_CXX"; then 3277 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 3278else 3279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3280for as_dir in $PATH 3281do 3282 IFS=$as_save_IFS 3283 test -z "$as_dir" && as_dir=. 3284 for ac_exec_ext in '' $ac_executable_extensions; do 3285 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3286 ac_cv_prog_ac_ct_CXX="$ac_prog" 3287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3288 break 2 3289 fi 3290done 3291done 3292 3293fi 3294fi 3295ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 3296if test -n "$ac_ct_CXX"; then 3297 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 3298echo "${ECHO_T}$ac_ct_CXX" >&6 3299else 3300 echo "$as_me:$LINENO: result: no" >&5 3301echo "${ECHO_T}no" >&6 3302fi 3303 3304 test -n "$ac_ct_CXX" && break 3305done 3306test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 3307 3308 CXX=$ac_ct_CXX 3309fi 3310 3311 3312# Provide some information about the compiler. 3313echo "$as_me:$LINENO:" \ 3314 "checking for C++ compiler version" >&5 3315ac_compiler=`set X $ac_compile; echo $2` 3316{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 3317 (eval $ac_compiler --version </dev/null >&5) 2>&5 3318 ac_status=$? 3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3320 (exit $ac_status); } 3321{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 3322 (eval $ac_compiler -v </dev/null >&5) 2>&5 3323 ac_status=$? 3324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3325 (exit $ac_status); } 3326{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 3327 (eval $ac_compiler -V </dev/null >&5) 2>&5 3328 ac_status=$? 3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3330 (exit $ac_status); } 3331 3332echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 3333echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 3334if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 3335 echo $ECHO_N "(cached) $ECHO_C" >&6 3336else 3337 cat >conftest.$ac_ext <<_ACEOF 3338/* confdefs.h. */ 3339_ACEOF 3340cat confdefs.h >>conftest.$ac_ext 3341cat >>conftest.$ac_ext <<_ACEOF 3342/* end confdefs.h. */ 3343 3344int 3345main () 3346{ 3347#ifndef __GNUC__ 3348 choke me 3349#endif 3350 3351 ; 3352 return 0; 3353} 3354_ACEOF 3355rm -f conftest.$ac_objext 3356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3357 (eval $ac_compile) 2>conftest.er1 3358 ac_status=$? 3359 grep -v '^ *+' conftest.er1 >conftest.err 3360 rm -f conftest.er1 3361 cat conftest.err >&5 3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3363 (exit $ac_status); } && 3364 { ac_try='test -z "$ac_cxx_werror_flag" 3365 || test ! -s conftest.err' 3366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3367 (eval $ac_try) 2>&5 3368 ac_status=$? 3369 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3370 (exit $ac_status); }; } && 3371 { ac_try='test -s conftest.$ac_objext' 3372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3373 (eval $ac_try) 2>&5 3374 ac_status=$? 3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3376 (exit $ac_status); }; }; then 3377 ac_compiler_gnu=yes 3378else 3379 echo "$as_me: failed program was:" >&5 3380sed 's/^/| /' conftest.$ac_ext >&5 3381 3382ac_compiler_gnu=no 3383fi 3384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3385ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3386 3387fi 3388echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 3389echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 3390GXX=`test $ac_compiler_gnu = yes && echo yes` 3391ac_test_CXXFLAGS=${CXXFLAGS+set} 3392ac_save_CXXFLAGS=$CXXFLAGS 3393CXXFLAGS="-g" 3394echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 3395echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 3396if test "${ac_cv_prog_cxx_g+set}" = set; then 3397 echo $ECHO_N "(cached) $ECHO_C" >&6 3398else 3399 cat >conftest.$ac_ext <<_ACEOF 3400/* confdefs.h. */ 3401_ACEOF 3402cat confdefs.h >>conftest.$ac_ext 3403cat >>conftest.$ac_ext <<_ACEOF 3404/* end confdefs.h. */ 3405 3406int 3407main () 3408{ 3409 3410 ; 3411 return 0; 3412} 3413_ACEOF 3414rm -f conftest.$ac_objext 3415if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3416 (eval $ac_compile) 2>conftest.er1 3417 ac_status=$? 3418 grep -v '^ *+' conftest.er1 >conftest.err 3419 rm -f conftest.er1 3420 cat conftest.err >&5 3421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3422 (exit $ac_status); } && 3423 { ac_try='test -z "$ac_cxx_werror_flag" 3424 || test ! -s conftest.err' 3425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3426 (eval $ac_try) 2>&5 3427 ac_status=$? 3428 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3429 (exit $ac_status); }; } && 3430 { ac_try='test -s conftest.$ac_objext' 3431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3432 (eval $ac_try) 2>&5 3433 ac_status=$? 3434 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3435 (exit $ac_status); }; }; then 3436 ac_cv_prog_cxx_g=yes 3437else 3438 echo "$as_me: failed program was:" >&5 3439sed 's/^/| /' conftest.$ac_ext >&5 3440 3441ac_cv_prog_cxx_g=no 3442fi 3443rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3444fi 3445echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 3446echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 3447if test "$ac_test_CXXFLAGS" = set; then 3448 CXXFLAGS=$ac_save_CXXFLAGS 3449elif test $ac_cv_prog_cxx_g = yes; then 3450 if test "$GXX" = yes; then 3451 CXXFLAGS="-g -O2" 3452 else 3453 CXXFLAGS="-g" 3454 fi 3455else 3456 if test "$GXX" = yes; then 3457 CXXFLAGS="-O2" 3458 else 3459 CXXFLAGS= 3460 fi 3461fi 3462for ac_declaration in \ 3463 '' \ 3464 'extern "C" void std::exit (int) throw (); using std::exit;' \ 3465 'extern "C" void std::exit (int); using std::exit;' \ 3466 'extern "C" void exit (int) throw ();' \ 3467 'extern "C" void exit (int);' \ 3468 'void exit (int);' 3469do 3470 cat >conftest.$ac_ext <<_ACEOF 3471/* confdefs.h. */ 3472_ACEOF 3473cat confdefs.h >>conftest.$ac_ext 3474cat >>conftest.$ac_ext <<_ACEOF 3475/* end confdefs.h. */ 3476$ac_declaration 3477#include <stdlib.h> 3478int 3479main () 3480{ 3481exit (42); 3482 ; 3483 return 0; 3484} 3485_ACEOF 3486rm -f conftest.$ac_objext 3487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3488 (eval $ac_compile) 2>conftest.er1 3489 ac_status=$? 3490 grep -v '^ *+' conftest.er1 >conftest.err 3491 rm -f conftest.er1 3492 cat conftest.err >&5 3493 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3494 (exit $ac_status); } && 3495 { ac_try='test -z "$ac_cxx_werror_flag" 3496 || test ! -s conftest.err' 3497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3498 (eval $ac_try) 2>&5 3499 ac_status=$? 3500 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3501 (exit $ac_status); }; } && 3502 { ac_try='test -s conftest.$ac_objext' 3503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3504 (eval $ac_try) 2>&5 3505 ac_status=$? 3506 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3507 (exit $ac_status); }; }; then 3508 : 3509else 3510 echo "$as_me: failed program was:" >&5 3511sed 's/^/| /' conftest.$ac_ext >&5 3512 3513continue 3514fi 3515rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3516 cat >conftest.$ac_ext <<_ACEOF 3517/* confdefs.h. */ 3518_ACEOF 3519cat confdefs.h >>conftest.$ac_ext 3520cat >>conftest.$ac_ext <<_ACEOF 3521/* end confdefs.h. */ 3522$ac_declaration 3523int 3524main () 3525{ 3526exit (42); 3527 ; 3528 return 0; 3529} 3530_ACEOF 3531rm -f conftest.$ac_objext 3532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3533 (eval $ac_compile) 2>conftest.er1 3534 ac_status=$? 3535 grep -v '^ *+' conftest.er1 >conftest.err 3536 rm -f conftest.er1 3537 cat conftest.err >&5 3538 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3539 (exit $ac_status); } && 3540 { ac_try='test -z "$ac_cxx_werror_flag" 3541 || test ! -s conftest.err' 3542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3543 (eval $ac_try) 2>&5 3544 ac_status=$? 3545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3546 (exit $ac_status); }; } && 3547 { ac_try='test -s conftest.$ac_objext' 3548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3549 (eval $ac_try) 2>&5 3550 ac_status=$? 3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3552 (exit $ac_status); }; }; then 3553 break 3554else 3555 echo "$as_me: failed program was:" >&5 3556sed 's/^/| /' conftest.$ac_ext >&5 3557 3558fi 3559rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3560done 3561rm -f conftest* 3562if test -n "$ac_declaration"; then 3563 echo '#ifdef __cplusplus' >>confdefs.h 3564 echo $ac_declaration >>confdefs.h 3565 echo '#endif' >>confdefs.h 3566fi 3567 3568ac_ext=cc 3569ac_cpp='$CXXCPP $CPPFLAGS' 3570ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3571ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3572ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3573 3574 3575#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler 3576#thus, we test here whether $CXX is actually working 3577ac_ext=cc 3578ac_cpp='$CXXCPP $CPPFLAGS' 3579ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3580ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3581ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3582 3583echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5 3584echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6; 3585cat >conftest.$ac_ext <<_ACEOF 3586/* confdefs.h. */ 3587_ACEOF 3588cat confdefs.h >>conftest.$ac_ext 3589cat >>conftest.$ac_ext <<_ACEOF 3590/* end confdefs.h. */ 3591 3592int 3593main () 3594{ 3595int i=0; 3596 ; 3597 return 0; 3598} 3599_ACEOF 3600rm -f conftest.$ac_objext 3601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3602 (eval $ac_compile) 2>conftest.er1 3603 ac_status=$? 3604 grep -v '^ *+' conftest.er1 >conftest.err 3605 rm -f conftest.er1 3606 cat conftest.err >&5 3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3608 (exit $ac_status); } && 3609 { ac_try='test -z "$ac_cxx_werror_flag" 3610 || test ! -s conftest.err' 3611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3612 (eval $ac_try) 2>&5 3613 ac_status=$? 3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3615 (exit $ac_status); }; } && 3616 { ac_try='test -s conftest.$ac_objext' 3617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3618 (eval $ac_try) 2>&5 3619 ac_status=$? 3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3621 (exit $ac_status); }; }; then 3622 echo "$as_me:$LINENO: result: yes" >&5 3623echo "${ECHO_T}yes" >&6 3624else 3625 echo "$as_me: failed program was:" >&5 3626sed 's/^/| /' conftest.$ac_ext >&5 3627 3628echo "$as_me:$LINENO: result: no" >&5 3629echo "${ECHO_T}no" >&6 3630 { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5 3631echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;} 3632 { (exit 1); exit 1; }; } 3633 3634fi 3635rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3636ac_ext=cc 3637ac_cpp='$CXXCPP $CPPFLAGS' 3638ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3639ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3640ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3641 3642 3643coin_cxx_is_cl=false 3644# It seems that we need to cleanup something here for the Windows 3645case "$CXX" in 3646 clang* | */clang*) ;; 3647 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 3648 sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh 3649 mv confdefs.hh confdefs.h 3650 coin_cxx_is_cl=true 3651 ;; 3652esac 3653 3654# add automake conditional so we can recognize cl compiler in makefile 3655 3656 3657if test $coin_cxx_is_cl = true; then 3658 COIN_CXX_IS_CL_TRUE= 3659 COIN_CXX_IS_CL_FALSE='#' 3660else 3661 COIN_CXX_IS_CL_TRUE='#' 3662 COIN_CXX_IS_CL_FALSE= 3663fi 3664 3665 3666# Autoconf incorrectly concludes that cl recognises -g. It doesn't. 3667case "$CXX" in 3668 clang* ) ;; 3669 cl* | */cl* | CL* | */CL* ) 3670 if test "$ac_cv_prog_cxx_g" = yes ; then 3671 ac_cv_prog_cxx_g=no 3672 { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5 3673echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;} 3674 fi ;; 3675 * ) 3676 if test x"$CYGPATH_W" = x ; then 3677 CYGPATH_W=echo 3678 fi 3679 ;; 3680esac 3681CXXFLAGS="$save_cxxflags" 3682 3683# Check if a project specific CXXFLAGS variable has been set 3684if test x$COIN_PRJCT != x; then 3685 eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set} 3686 if test x$coin_tmp = xset; then 3687 eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS} 3688 fi 3689fi 3690 3691if test x"$CXXFLAGS" = x; then 3692 3693# ToDo decide whether we want -DNDEBUG for optimization 3694 coin_add_cxxflags= 3695 coin_opt_cxxflags= 3696 coin_dbg_cxxflags= 3697 coin_warn_cxxflags= 3698 3699 if test "$GXX" = "yes"; then 3700 case "$CXX" in 3701 icpc* | */icpc*) 3702 ;; 3703 *) 3704# ToDo decide about unroll-loops 3705 coin_opt_cxxflags="-O3" 3706 coin_add_cxxflags="-pipe" 3707 coin_dbg_cxxflags="-g -O0" 3708 coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long" 3709 esac 3710 fi 3711 3712# Note that we do not need to cover GCC in the following tests. 3713 3714 if test -z "$coin_opt_cxxflags"; then 3715 case $build in 3716 *-cygwin* | *-mingw*) 3717 case "$CXX" in 3718 clang* ) ;; 3719 cl* | */cl* | CL* | */CL*) 3720 # The MT and MTd options are mutually exclusive 3721 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then 3722 coin_opt_cxxflags='-MD -O2' 3723 coin_dbg_cxxflags='-MDd' 3724 else 3725 coin_opt_cxxflags='-MT -O2' 3726 coin_dbg_cxxflags='-MTd' 3727 fi 3728 coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE' 3729 ;; 3730 icl* | */icl* | ICL* | */ICL*) 3731 # The MT and MTd options are mutually exclusive 3732 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then 3733 coin_opt_cxxflags='-MD -Ox' 3734 coin_dbg_cxxflags='-MDd -debug' 3735 else 3736 coin_opt_cxxflags='-MT -Ox' 3737 coin_dbg_cxxflags='-MTd -debug' 3738 fi 3739 coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE' 3740 ;; 3741 esac 3742 ;; 3743 *-linux-*) 3744 case "$CXX" in 3745 icpc* | */icpc*) 3746 coin_opt_cxxflags="-O3 -ip -mp1" 3747 coin_add_cxxflags="" 3748 coin_dbg_cxxflags="-g" 3749 # Check if -i_dynamic is necessary (for new glibc library) 3750 CXXFLAGS= 3751 cat >conftest.$ac_ext <<_ACEOF 3752/* confdefs.h. */ 3753_ACEOF 3754cat confdefs.h >>conftest.$ac_ext 3755cat >>conftest.$ac_ext <<_ACEOF 3756/* end confdefs.h. */ 3757 3758int 3759main () 3760{ 3761int i=0; i++; 3762 ; 3763 return 0; 3764} 3765_ACEOF 3766rm -f conftest.$ac_objext conftest$ac_exeext 3767if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3768 (eval $ac_link) 2>conftest.er1 3769 ac_status=$? 3770 grep -v '^ *+' conftest.er1 >conftest.err 3771 rm -f conftest.er1 3772 cat conftest.err >&5 3773 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3774 (exit $ac_status); } && 3775 { ac_try='test -z "$ac_cxx_werror_flag" 3776 || test ! -s conftest.err' 3777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3778 (eval $ac_try) 2>&5 3779 ac_status=$? 3780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3781 (exit $ac_status); }; } && 3782 { ac_try='test -s conftest$ac_exeext' 3783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3784 (eval $ac_try) 2>&5 3785 ac_status=$? 3786 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3787 (exit $ac_status); }; }; then 3788 : 3789else 3790 echo "$as_me: failed program was:" >&5 3791sed 's/^/| /' conftest.$ac_ext >&5 3792 3793coin_add_cxxflags="-i_dynamic $coin_add_cxxflags" 3794fi 3795rm -f conftest.err conftest.$ac_objext \ 3796 conftest$ac_exeext conftest.$ac_ext 3797 ;; 3798 pgCC* | */pgCC*) 3799 coin_opt_cxxflags="-fast" 3800 coin_add_cxxflags="-Kieee -pc 64" 3801 coin_dbg_cxxflags="-g" 3802 ;; 3803 esac 3804 ;; 3805 *-ibm-*) 3806 case "$CXX" in 3807 xlC* | */xlC* | mpxlC* | */mpxlC*) 3808 coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1" 3809 coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++" 3810 coin_dbg_cxxflags="-g" 3811 ;; 3812 esac 3813 ;; 3814 *-hp-*) 3815 case "$CXX" in 3816 aCC* | */aCC* ) 3817 coin_opt_cxxflags="-O" 3818 coin_add_cxxflags="-AA" 3819 coin_dbg_cxxflags="-g" 3820 ;; 3821 esac 3822 ;; 3823 *-*-solaris*) 3824 coin_opt_cxxflags="-O4" 3825 coin_dbg_cxxflags="-g" 3826 ;; 3827 esac 3828 fi 3829 3830# Generic flag settings. If these don't work, add a case above. 3831 3832 if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then 3833 coin_dbg_cxxflags="-g" 3834 fi 3835 3836 if test -z "$coin_opt_cxxflags"; then 3837 # Try if -O option works if nothing else is set 3838 CXXFLAGS=-O 3839 cat >conftest.$ac_ext <<_ACEOF 3840/* confdefs.h. */ 3841_ACEOF 3842cat confdefs.h >>conftest.$ac_ext 3843cat >>conftest.$ac_ext <<_ACEOF 3844/* end confdefs.h. */ 3845 3846int 3847main () 3848{ 3849int i=0; i++; 3850 ; 3851 return 0; 3852} 3853_ACEOF 3854rm -f conftest.$ac_objext conftest$ac_exeext 3855if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3856 (eval $ac_link) 2>conftest.er1 3857 ac_status=$? 3858 grep -v '^ *+' conftest.er1 >conftest.err 3859 rm -f conftest.er1 3860 cat conftest.err >&5 3861 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3862 (exit $ac_status); } && 3863 { ac_try='test -z "$ac_cxx_werror_flag" 3864 || test ! -s conftest.err' 3865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3866 (eval $ac_try) 2>&5 3867 ac_status=$? 3868 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3869 (exit $ac_status); }; } && 3870 { ac_try='test -s conftest$ac_exeext' 3871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3872 (eval $ac_try) 2>&5 3873 ac_status=$? 3874 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3875 (exit $ac_status); }; }; then 3876 coin_opt_cxxflags="-O" 3877else 3878 echo "$as_me: failed program was:" >&5 3879sed 's/^/| /' conftest.$ac_ext >&5 3880 3881fi 3882rm -f conftest.err conftest.$ac_objext \ 3883 conftest$ac_exeext conftest.$ac_ext 3884 fi 3885 3886 # if PM doesn't want the warning messages, take them out 3887 if test x"$coin_skip_warn_cxxflags" = xyes; then 3888 coin_warn_cxxflags= 3889 fi 3890 3891# Do final setup of flags based on values determined above. 3892 3893 if test x${DBG_CXXFLAGS+set} != xset; then 3894 DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags" 3895 fi 3896 if test x${OPT_CXXFLAGS+set} != xset; then 3897 OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags" 3898 fi 3899 3900 DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS" 3901 OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS" 3902 3903 if test "$coin_debug_compile" = "true"; then 3904 CXXFLAGS="$DBG_CXXFLAGS" 3905 else 3906 CXXFLAGS="$OPT_CXXFLAGS" 3907 fi 3908 3909# Handle the case where CXXFLAGS was set externally. 3910else 3911 CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS" 3912 if test x${DBG_CXXFLAGS+set} != xset; then 3913 DBG_CXXFLAGS="$CXXFLAGS" 3914 fi 3915 if test x${OPT_CXXFLAGS+set} != xset; then 3916 OPT_CXXFLAGS="$CXXFLAGS" 3917 fi 3918fi 3919 3920# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include 3921if test x$COIN_PRJCT != x; then 3922 CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD" 3923fi 3924 3925# Try if CXXFLAGS works 3926save_CXXFLAGS="$CXXFLAGS" 3927cat >conftest.$ac_ext <<_ACEOF 3928/* confdefs.h. */ 3929_ACEOF 3930cat confdefs.h >>conftest.$ac_ext 3931cat >>conftest.$ac_ext <<_ACEOF 3932/* end confdefs.h. */ 3933 3934int 3935main () 3936{ 3937int i=0; i++; 3938 ; 3939 return 0; 3940} 3941_ACEOF 3942rm -f conftest.$ac_objext conftest$ac_exeext 3943if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3944 (eval $ac_link) 2>conftest.er1 3945 ac_status=$? 3946 grep -v '^ *+' conftest.er1 >conftest.err 3947 rm -f conftest.er1 3948 cat conftest.err >&5 3949 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3950 (exit $ac_status); } && 3951 { ac_try='test -z "$ac_cxx_werror_flag" 3952 || test ! -s conftest.err' 3953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3954 (eval $ac_try) 2>&5 3955 ac_status=$? 3956 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3957 (exit $ac_status); }; } && 3958 { ac_try='test -s conftest$ac_exeext' 3959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3960 (eval $ac_try) 2>&5 3961 ac_status=$? 3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3963 (exit $ac_status); }; }; then 3964 : 3965else 3966 echo "$as_me: failed program was:" >&5 3967sed 's/^/| /' conftest.$ac_ext >&5 3968 3969CXXFLAGS= 3970fi 3971rm -f conftest.err conftest.$ac_objext \ 3972 conftest$ac_exeext conftest.$ac_ext 3973if test -z "$CXXFLAGS"; then 3974 { echo "$as_me:$LINENO: WARNING: The flags CXXFLAGS=\"$save_CXXFLAGS\" do not work. I will now just try '-O', but you might want to set CXXFLAGS manually." >&5 3975echo "$as_me: WARNING: The flags CXXFLAGS=\"$save_CXXFLAGS\" do not work. I will now just try '-O', but you might want to set CXXFLAGS manually." >&2;} 3976 CXXFLAGS='-O' 3977 cat >conftest.$ac_ext <<_ACEOF 3978/* confdefs.h. */ 3979_ACEOF 3980cat confdefs.h >>conftest.$ac_ext 3981cat >>conftest.$ac_ext <<_ACEOF 3982/* end confdefs.h. */ 3983 3984int 3985main () 3986{ 3987int i=0; i++; 3988 ; 3989 return 0; 3990} 3991_ACEOF 3992rm -f conftest.$ac_objext conftest$ac_exeext 3993if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3994 (eval $ac_link) 2>conftest.er1 3995 ac_status=$? 3996 grep -v '^ *+' conftest.er1 >conftest.err 3997 rm -f conftest.er1 3998 cat conftest.err >&5 3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4000 (exit $ac_status); } && 4001 { ac_try='test -z "$ac_cxx_werror_flag" 4002 || test ! -s conftest.err' 4003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4004 (eval $ac_try) 2>&5 4005 ac_status=$? 4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4007 (exit $ac_status); }; } && 4008 { ac_try='test -s conftest$ac_exeext' 4009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4010 (eval $ac_try) 2>&5 4011 ac_status=$? 4012 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4013 (exit $ac_status); }; }; then 4014 : 4015else 4016 echo "$as_me: failed program was:" >&5 4017sed 's/^/| /' conftest.$ac_ext >&5 4018 4019CXXFLAGS= 4020fi 4021rm -f conftest.err conftest.$ac_objext \ 4022 conftest$ac_exeext conftest.$ac_ext 4023 if test -z "$CXXFLAGS"; then 4024 { echo "$as_me:$LINENO: WARNING: This value for CXXFLAGS does not work. I will continue with empty CXXFLAGS, but you might want to set CXXFLAGS manually." >&5 4025echo "$as_me: WARNING: This value for CXXFLAGS does not work. I will continue with empty CXXFLAGS, but you might want to set CXXFLAGS manually." >&2;} 4026 fi 4027fi 4028 4029{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5 4030echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;} 4031 4032 4033if test x"$MPICXX" = x; then :; else 4034 { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5 4035echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;} 4036 CXX="$MPICXX" 4037fi 4038 4039# correct the LD variable in a build with MS or Intel-windows compiler 4040case "$CXX" in 4041 clang* ) ;; 4042 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 4043 LD=link 4044 ;; 4045esac 4046 4047ac_ext=c 4048ac_cpp='$CPP $CPPFLAGS' 4049ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4050ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4051ac_compiler_gnu=$ac_cv_c_compiler_gnu 4052 4053 4054 4055# Initialize automake and libtool 4056{ 4057 4058 4059 4060# START 4061 4062coin_disable_shared=no 4063# Test if force_shared has been set 4064if test "x" = xforce_shared; then 4065 if test x$enable_shared = xno; then 4066 { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5 4067echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;} 4068 { (exit 1); exit 1; }; } 4069 fi 4070 enable_shared=yes; 4071else 4072 case $build in 4073 *-cygwin* | *-mingw*) 4074 coin_disable_shared=yes 4075 if test x"$enable_shared" = xyes; then 4076 case "$CC" in 4077 clang* ) 4078 { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5 4079echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;} 4080 ;; 4081 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 4082 { echo "$as_me:$LINENO: Building of DLLs not supported in this configuration." >&5 4083echo "$as_me: Building of DLLs not supported in this configuration." >&6;} 4084 ;; 4085 *gcc*) 4086 if test x"$enable_dependency_linking" = xyes; then 4087 coin_disable_shared=no 4088 else 4089 { echo "$as_me:$LINENO: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&5 4090echo "$as_me: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&2;} 4091 fi 4092 ;; 4093 *) 4094 { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5 4095echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;} 4096 ;; 4097 esac 4098 fi 4099 ;; 4100 *-aix*) 4101 coin_disable_shared=yes 4102 platform=AIX 4103 if test x"$enable_shared" = xyes; then 4104 { echo "$as_me:$LINENO: WARNING: Shared objects are not supported." >&5 4105echo "$as_me: WARNING: Shared objects are not supported." >&2;} 4106 fi 4107 ;; 4108 esac 4109fi 4110if test x"$coin_disable_shared" = xyes; then 4111 if test x"$enable_shared" = xyes; then 4112 : 4113 else 4114 # we don't disable shared, because it was not selected anyway 4115 coin_disable_shared=no 4116 fi 4117 enable_shared=no 4118fi 4119# By default, we only want the shared objects to be compiled 4120# Check whether --enable-static or --disable-static was given. 4121if test "${enable_static+set}" = set; then 4122 enableval="$enable_static" 4123 p=${PACKAGE-default} 4124 case $enableval in 4125 yes) enable_static=yes ;; 4126 no) enable_static=no ;; 4127 *) 4128 enable_static=no 4129 # Look at the argument we got. We use all the common list separators. 4130 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4131 for pkg in $enableval; do 4132 IFS="$lt_save_ifs" 4133 if test "X$pkg" = "X$p"; then 4134 enable_static=yes 4135 fi 4136 done 4137 IFS="$lt_save_ifs" 4138 ;; 4139 esac 4140else 4141 enable_static=no 4142fi; 4143 4144 4145 4146 4147# Initialize automake 4148echo "$as_me:$LINENO: checking for egrep" >&5 4149echo $ECHO_N "checking for egrep... $ECHO_C" >&6 4150if test "${ac_cv_prog_egrep+set}" = set; then 4151 echo $ECHO_N "(cached) $ECHO_C" >&6 4152else 4153 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 4154 then ac_cv_prog_egrep='grep -E' 4155 else ac_cv_prog_egrep='egrep' 4156 fi 4157fi 4158echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 4159echo "${ECHO_T}$ac_cv_prog_egrep" >&6 4160 EGREP=$ac_cv_prog_egrep 4161 4162 4163echo "$as_me:$LINENO: checking whether ln -s works" >&5 4164echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 4165LN_S=$as_ln_s 4166if test "$LN_S" = "ln -s"; then 4167 echo "$as_me:$LINENO: result: yes" >&5 4168echo "${ECHO_T}yes" >&6 4169else 4170 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4171echo "${ECHO_T}no, using $LN_S" >&6 4172fi 4173 4174am__api_version="1.9" 4175# Find a good install program. We prefer a C program (faster), 4176# so one script is as good as another. But avoid the broken or 4177# incompatible versions: 4178# SysV /etc/install, /usr/sbin/install 4179# SunOS /usr/etc/install 4180# IRIX /sbin/install 4181# AIX /bin/install 4182# AmigaOS /C/install, which installs bootblocks on floppy discs 4183# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4184# AFS /usr/afsws/bin/install, which mishandles nonexistent args 4185# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4186# OS/2's system install, which has a completely different semantic 4187# ./install, which can be erroneously created by make from ./install.sh. 4188echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 4189echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 4190if test -z "$INSTALL"; then 4191if test "${ac_cv_path_install+set}" = set; then 4192 echo $ECHO_N "(cached) $ECHO_C" >&6 4193else 4194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4195for as_dir in $PATH 4196do 4197 IFS=$as_save_IFS 4198 test -z "$as_dir" && as_dir=. 4199 # Account for people who put trailing slashes in PATH elements. 4200case $as_dir/ in 4201 ./ | .// | /cC/* | \ 4202 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4203 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 4204 /usr/ucb/* ) ;; 4205 *) 4206 # OSF1 and SCO ODT 3.0 have their own names for install. 4207 # Don't use installbsd from OSF since it installs stuff as root 4208 # by default. 4209 for ac_prog in ginstall scoinst install; do 4210 for ac_exec_ext in '' $ac_executable_extensions; do 4211 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 4212 if test $ac_prog = install && 4213 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4214 # AIX install. It has an incompatible calling convention. 4215 : 4216 elif test $ac_prog = install && 4217 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4218 # program-specific install script used by HP pwplus--don't use. 4219 : 4220 else 4221 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 4222 break 3 4223 fi 4224 fi 4225 done 4226 done 4227 ;; 4228esac 4229done 4230 4231 4232fi 4233 if test "${ac_cv_path_install+set}" = set; then 4234 INSTALL=$ac_cv_path_install 4235 else 4236 # As a last resort, use the slow shell script. We don't cache a 4237 # path for INSTALL within a source directory, because that will 4238 # break other packages using the cache if that directory is 4239 # removed, or if the path is relative. 4240 INSTALL=$ac_install_sh 4241 fi 4242fi 4243echo "$as_me:$LINENO: result: $INSTALL" >&5 4244echo "${ECHO_T}$INSTALL" >&6 4245 4246# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4247# It thinks the first close brace ends the variable substitution. 4248test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4249 4250test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4251 4252test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4253 4254echo "$as_me:$LINENO: checking whether build environment is sane" >&5 4255echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 4256# Just in case 4257sleep 1 4258echo timestamp > conftest.file 4259# Do `set' in a subshell so we don't clobber the current shell's 4260# arguments. Must try -L first in case configure is actually a 4261# symlink; some systems play weird games with the mod time of symlinks 4262# (eg FreeBSD returns the mod time of the symlink's containing 4263# directory). 4264if ( 4265 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 4266 if test "$*" = "X"; then 4267 # -L didn't work. 4268 set X `ls -t $srcdir/configure conftest.file` 4269 fi 4270 rm -f conftest.file 4271 if test "$*" != "X $srcdir/configure conftest.file" \ 4272 && test "$*" != "X conftest.file $srcdir/configure"; then 4273 4274 # If neither matched, then we have a broken ls. This can happen 4275 # if, for instance, CONFIG_SHELL is bash and it inherits a 4276 # broken ls alias from the environment. This has actually 4277 # happened. Such a system could not be considered "sane". 4278 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 4279alias in your environment" >&5 4280echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 4281alias in your environment" >&2;} 4282 { (exit 1); exit 1; }; } 4283 fi 4284 4285 test "$2" = conftest.file 4286 ) 4287then 4288 # Ok. 4289 : 4290else 4291 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 4292Check your system clock" >&5 4293echo "$as_me: error: newly created file is older than distributed files! 4294Check your system clock" >&2;} 4295 { (exit 1); exit 1; }; } 4296fi 4297echo "$as_me:$LINENO: result: yes" >&5 4298echo "${ECHO_T}yes" >&6 4299test "$program_prefix" != NONE && 4300 program_transform_name="s,^,$program_prefix,;$program_transform_name" 4301# Use a double $ so make ignores it. 4302test "$program_suffix" != NONE && 4303 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 4304# Double any \ or $. echo might interpret backslashes. 4305# By default was `s,x,x', remove it if useless. 4306cat <<\_ACEOF >conftest.sed 4307s/[\\$]/&&/g;s/;s,x,x,$// 4308_ACEOF 4309program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 4310rm conftest.sed 4311 4312# expand $ac_aux_dir to an absolute path 4313am_aux_dir=`cd $ac_aux_dir && pwd` 4314 4315test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 4316# Use eval to expand $SHELL 4317if eval "$MISSING --run true"; then 4318 am_missing_run="$MISSING --run " 4319else 4320 am_missing_run= 4321 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 4322echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 4323fi 4324 4325if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 4326 # We used to keeping the `.' as first argument, in order to 4327 # allow $(mkdir_p) to be used without argument. As in 4328 # $(mkdir_p) $(somedir) 4329 # where $(somedir) is conditionally defined. However this is wrong 4330 # for two reasons: 4331 # 1. if the package is installed by a user who cannot write `.' 4332 # make install will fail, 4333 # 2. the above comment should most certainly read 4334 # $(mkdir_p) $(DESTDIR)$(somedir) 4335 # so it does not work when $(somedir) is undefined and 4336 # $(DESTDIR) is not. 4337 # To support the latter case, we have to write 4338 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 4339 # so the `.' trick is pointless. 4340 mkdir_p='mkdir -p --' 4341else 4342 # On NextStep and OpenStep, the `mkdir' command does not 4343 # recognize any option. It will interpret all options as 4344 # directories to create, and then abort because `.' already 4345 # exists. 4346 for d in ./-p ./--version; 4347 do 4348 test -d $d && rmdir $d 4349 done 4350 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 4351 if test -f "$ac_aux_dir/mkinstalldirs"; then 4352 mkdir_p='$(mkinstalldirs)' 4353 else 4354 mkdir_p='$(install_sh) -d' 4355 fi 4356fi 4357 4358for ac_prog in gawk mawk nawk awk 4359do 4360 # Extract the first word of "$ac_prog", so it can be a program name with args. 4361set dummy $ac_prog; ac_word=$2 4362echo "$as_me:$LINENO: checking for $ac_word" >&5 4363echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4364if test "${ac_cv_prog_AWK+set}" = set; then 4365 echo $ECHO_N "(cached) $ECHO_C" >&6 4366else 4367 if test -n "$AWK"; then 4368 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4369else 4370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4371for as_dir in $PATH 4372do 4373 IFS=$as_save_IFS 4374 test -z "$as_dir" && as_dir=. 4375 for ac_exec_ext in '' $ac_executable_extensions; do 4376 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4377 ac_cv_prog_AWK="$ac_prog" 4378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4379 break 2 4380 fi 4381done 4382done 4383 4384fi 4385fi 4386AWK=$ac_cv_prog_AWK 4387if test -n "$AWK"; then 4388 echo "$as_me:$LINENO: result: $AWK" >&5 4389echo "${ECHO_T}$AWK" >&6 4390else 4391 echo "$as_me:$LINENO: result: no" >&5 4392echo "${ECHO_T}no" >&6 4393fi 4394 4395 test -n "$AWK" && break 4396done 4397 4398echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4399echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 4400set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 4401if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 4402 echo $ECHO_N "(cached) $ECHO_C" >&6 4403else 4404 cat >conftest.make <<\_ACEOF 4405all: 4406 @echo 'ac_maketemp="$(MAKE)"' 4407_ACEOF 4408# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 4409eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 4410if test -n "$ac_maketemp"; then 4411 eval ac_cv_prog_make_${ac_make}_set=yes 4412else 4413 eval ac_cv_prog_make_${ac_make}_set=no 4414fi 4415rm -f conftest.make 4416fi 4417if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 4418 echo "$as_me:$LINENO: result: yes" >&5 4419echo "${ECHO_T}yes" >&6 4420 SET_MAKE= 4421else 4422 echo "$as_me:$LINENO: result: no" >&5 4423echo "${ECHO_T}no" >&6 4424 SET_MAKE="MAKE=${MAKE-make}" 4425fi 4426 4427rm -rf .tst 2>/dev/null 4428mkdir .tst 2>/dev/null 4429if test -d .tst; then 4430 am__leading_dot=. 4431else 4432 am__leading_dot=_ 4433fi 4434rmdir .tst 2>/dev/null 4435 4436DEPDIR="${am__leading_dot}deps" 4437 4438 ac_config_commands="$ac_config_commands depfiles" 4439 4440 4441am_make=${MAKE-make} 4442cat > confinc << 'END' 4443am__doit: 4444 @echo done 4445.PHONY: am__doit 4446END 4447# If we don't find an include directive, just comment out the code. 4448echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 4449echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 4450am__include="#" 4451am__quote= 4452_am_result=none 4453# First try GNU make style include. 4454echo "include confinc" > confmf 4455# We grep out `Entering directory' and `Leaving directory' 4456# messages which can occur if `w' ends up in MAKEFLAGS. 4457# In particular we don't look at `^make:' because GNU make might 4458# be invoked under some other name (usually "gmake"), in which 4459# case it prints its new name instead of `make'. 4460if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 4461 am__include=include 4462 am__quote= 4463 _am_result=GNU 4464fi 4465# Now try BSD make style include. 4466if test "$am__include" = "#"; then 4467 echo '.include "confinc"' > confmf 4468 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 4469 am__include=.include 4470 am__quote="\"" 4471 _am_result=BSD 4472 fi 4473fi 4474 4475 4476echo "$as_me:$LINENO: result: $_am_result" >&5 4477echo "${ECHO_T}$_am_result" >&6 4478rm -f confinc confmf 4479 4480# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 4481if test "${enable_dependency_tracking+set}" = set; then 4482 enableval="$enable_dependency_tracking" 4483 4484fi; 4485if test "x$enable_dependency_tracking" != xno; then 4486 am_depcomp="$ac_aux_dir/depcomp" 4487 AMDEPBACKSLASH='\' 4488fi 4489 4490 4491if test "x$enable_dependency_tracking" != xno; then 4492 AMDEP_TRUE= 4493 AMDEP_FALSE='#' 4494else 4495 AMDEP_TRUE='#' 4496 AMDEP_FALSE= 4497fi 4498 4499 4500 4501 4502 4503 4504# AC_MSG_NOTICE([Beginning automake initialisation.]) 4505# Stuff for automake 4506# test to see if srcdir already configured 4507if test "`cd $srcdir && pwd`" != "`pwd`" && 4508 test -f $srcdir/config.status; then 4509 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 4510echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 4511 { (exit 1); exit 1; }; } 4512fi 4513 4514# test whether we have cygpath 4515if test -z "$CYGPATH_W"; then 4516 if (cygpath --version) >/dev/null 2>/dev/null; then 4517 CYGPATH_W='cygpath -w' 4518 else 4519 CYGPATH_W=echo 4520 fi 4521fi 4522 4523 4524# Define the identity of the package. 4525 PACKAGE='osiconic' 4526 VERSION='1.0.0' 4527 4528 4529cat >>confdefs.h <<_ACEOF 4530#define PACKAGE "$PACKAGE" 4531_ACEOF 4532 4533 4534cat >>confdefs.h <<_ACEOF 4535#define VERSION "$VERSION" 4536_ACEOF 4537 4538# Some tools Automake needs. 4539 4540ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4541 4542 4543AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4544 4545 4546AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4547 4548 4549AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4550 4551 4552MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4553 4554install_sh=${install_sh-"$am_aux_dir/install-sh"} 4555 4556# Installed binaries are usually stripped using `strip' when the user 4557# run `make install-strip'. However `strip' might not be the right 4558# tool to use in cross-compilation environments, therefore Automake 4559# will honor the `STRIP' environment variable to overrule this program. 4560if test "$cross_compiling" != no; then 4561 if test -n "$ac_tool_prefix"; then 4562 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4563set dummy ${ac_tool_prefix}strip; ac_word=$2 4564echo "$as_me:$LINENO: checking for $ac_word" >&5 4565echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4566if test "${ac_cv_prog_STRIP+set}" = set; then 4567 echo $ECHO_N "(cached) $ECHO_C" >&6 4568else 4569 if test -n "$STRIP"; then 4570 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4571else 4572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4573for as_dir in $PATH 4574do 4575 IFS=$as_save_IFS 4576 test -z "$as_dir" && as_dir=. 4577 for ac_exec_ext in '' $ac_executable_extensions; do 4578 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4579 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4581 break 2 4582 fi 4583done 4584done 4585 4586fi 4587fi 4588STRIP=$ac_cv_prog_STRIP 4589if test -n "$STRIP"; then 4590 echo "$as_me:$LINENO: result: $STRIP" >&5 4591echo "${ECHO_T}$STRIP" >&6 4592else 4593 echo "$as_me:$LINENO: result: no" >&5 4594echo "${ECHO_T}no" >&6 4595fi 4596 4597fi 4598if test -z "$ac_cv_prog_STRIP"; then 4599 ac_ct_STRIP=$STRIP 4600 # Extract the first word of "strip", so it can be a program name with args. 4601set dummy strip; ac_word=$2 4602echo "$as_me:$LINENO: checking for $ac_word" >&5 4603echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4604if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 4605 echo $ECHO_N "(cached) $ECHO_C" >&6 4606else 4607 if test -n "$ac_ct_STRIP"; then 4608 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4609else 4610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4611for as_dir in $PATH 4612do 4613 IFS=$as_save_IFS 4614 test -z "$as_dir" && as_dir=. 4615 for ac_exec_ext in '' $ac_executable_extensions; do 4616 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4617 ac_cv_prog_ac_ct_STRIP="strip" 4618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4619 break 2 4620 fi 4621done 4622done 4623 4624 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 4625fi 4626fi 4627ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4628if test -n "$ac_ct_STRIP"; then 4629 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 4630echo "${ECHO_T}$ac_ct_STRIP" >&6 4631else 4632 echo "$as_me:$LINENO: result: no" >&5 4633echo "${ECHO_T}no" >&6 4634fi 4635 4636 STRIP=$ac_ct_STRIP 4637else 4638 STRIP="$ac_cv_prog_STRIP" 4639fi 4640 4641fi 4642INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 4643 4644# We need awk for the "check" target. The system "awk" is bad on 4645# some platforms. 4646# Always define AMTAR for backward compatibility. 4647 4648AMTAR=${AMTAR-"${am_missing_run}tar"} 4649 4650am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 4651 4652 4653 4654 4655depcc="$CC" am_compiler_list= 4656 4657echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 4658echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 4659if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 4660 echo $ECHO_N "(cached) $ECHO_C" >&6 4661else 4662 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4663 # We make a subdir and do the tests there. Otherwise we can end up 4664 # making bogus files that we don't know about and never remove. For 4665 # instance it was reported that on HP-UX the gcc test will end up 4666 # making a dummy file named `D' -- because `-MD' means `put the output 4667 # in D'. 4668 mkdir conftest.dir 4669 # Copy depcomp to subdir because otherwise we won't find it if we're 4670 # using a relative directory. 4671 cp "$am_depcomp" conftest.dir 4672 cd conftest.dir 4673 # We will build objects and dependencies in a subdirectory because 4674 # it helps to detect inapplicable dependency modes. For instance 4675 # both Tru64's cc and ICC support -MD to output dependencies as a 4676 # side effect of compilation, but ICC will put the dependencies in 4677 # the current directory while Tru64 will put them in the object 4678 # directory. 4679 mkdir sub 4680 4681 am_cv_CC_dependencies_compiler_type=none 4682 if test "$am_compiler_list" = ""; then 4683 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4684 fi 4685 for depmode in $am_compiler_list; do 4686 # Setup a source with many dependencies, because some compilers 4687 # like to wrap large dependency lists on column 80 (with \), and 4688 # we should not choose a depcomp mode which is confused by this. 4689 # 4690 # We need to recreate these files for each test, as the compiler may 4691 # overwrite some of them when testing with obscure command lines. 4692 # This happens at least with the AIX C compiler. 4693 : > sub/conftest.c 4694 for i in 1 2 3 4 5 6; do 4695 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4696 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4697 # Solaris 8's {/usr,}/bin/sh. 4698 touch sub/conftst$i.h 4699 done 4700 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4701 4702 case $depmode in 4703 nosideeffect) 4704 # after this tag, mechanisms are not by side-effect, so they'll 4705 # only be used when explicitly requested 4706 if test "x$enable_dependency_tracking" = xyes; then 4707 continue 4708 else 4709 break 4710 fi 4711 ;; 4712 none) break ;; 4713 esac 4714 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4715 # mode. It turns out that the SunPro C++ compiler does not properly 4716 # handle `-M -o', and we need to detect this. 4717 if depmode=$depmode \ 4718 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 4719 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4720 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 4721 >/dev/null 2>conftest.err && 4722 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4723 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 4724 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4725 # icc doesn't choke on unknown options, it will just issue warnings 4726 # or remarks (even with -Werror). So we grep stderr for any message 4727 # that says an option was ignored or not supported. 4728 # When given -MP, icc 7.0 and 7.1 complain thusly: 4729 # icc: Command line warning: ignoring option '-M'; no argument required 4730 # The diagnosis changed in icc 8.0: 4731 # icc: Command line remark: option '-MP' not supported 4732 if (grep 'ignoring option' conftest.err || 4733 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4734 am_cv_CC_dependencies_compiler_type=$depmode 4735 break 4736 fi 4737 fi 4738 done 4739 4740 cd .. 4741 rm -rf conftest.dir 4742else 4743 am_cv_CC_dependencies_compiler_type=none 4744fi 4745 4746fi 4747echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 4748echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 4749CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4750 4751 4752 4753if 4754 test "x$enable_dependency_tracking" != xno \ 4755 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4756 am__fastdepCC_TRUE= 4757 am__fastdepCC_FALSE='#' 4758else 4759 am__fastdepCC_TRUE='#' 4760 am__fastdepCC_FALSE= 4761fi 4762 4763 4764depcc="$CXX" am_compiler_list= 4765 4766echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 4767echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 4768if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 4769 echo $ECHO_N "(cached) $ECHO_C" >&6 4770else 4771 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4772 # We make a subdir and do the tests there. Otherwise we can end up 4773 # making bogus files that we don't know about and never remove. For 4774 # instance it was reported that on HP-UX the gcc test will end up 4775 # making a dummy file named `D' -- because `-MD' means `put the output 4776 # in D'. 4777 mkdir conftest.dir 4778 # Copy depcomp to subdir because otherwise we won't find it if we're 4779 # using a relative directory. 4780 cp "$am_depcomp" conftest.dir 4781 cd conftest.dir 4782 # We will build objects and dependencies in a subdirectory because 4783 # it helps to detect inapplicable dependency modes. For instance 4784 # both Tru64's cc and ICC support -MD to output dependencies as a 4785 # side effect of compilation, but ICC will put the dependencies in 4786 # the current directory while Tru64 will put them in the object 4787 # directory. 4788 mkdir sub 4789 4790 am_cv_CXX_dependencies_compiler_type=none 4791 if test "$am_compiler_list" = ""; then 4792 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4793 fi 4794 for depmode in $am_compiler_list; do 4795 # Setup a source with many dependencies, because some compilers 4796 # like to wrap large dependency lists on column 80 (with \), and 4797 # we should not choose a depcomp mode which is confused by this. 4798 # 4799 # We need to recreate these files for each test, as the compiler may 4800 # overwrite some of them when testing with obscure command lines. 4801 # This happens at least with the AIX C compiler. 4802 : > sub/conftest.c 4803 for i in 1 2 3 4 5 6; do 4804 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4805 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4806 # Solaris 8's {/usr,}/bin/sh. 4807 touch sub/conftst$i.h 4808 done 4809 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4810 4811 case $depmode in 4812 nosideeffect) 4813 # after this tag, mechanisms are not by side-effect, so they'll 4814 # only be used when explicitly requested 4815 if test "x$enable_dependency_tracking" = xyes; then 4816 continue 4817 else 4818 break 4819 fi 4820 ;; 4821 none) break ;; 4822 esac 4823 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4824 # mode. It turns out that the SunPro C++ compiler does not properly 4825 # handle `-M -o', and we need to detect this. 4826 if depmode=$depmode \ 4827 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 4828 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4829 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 4830 >/dev/null 2>conftest.err && 4831 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4832 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 4833 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4834 # icc doesn't choke on unknown options, it will just issue warnings 4835 # or remarks (even with -Werror). So we grep stderr for any message 4836 # that says an option was ignored or not supported. 4837 # When given -MP, icc 7.0 and 7.1 complain thusly: 4838 # icc: Command line warning: ignoring option '-M'; no argument required 4839 # The diagnosis changed in icc 8.0: 4840 # icc: Command line remark: option '-MP' not supported 4841 if (grep 'ignoring option' conftest.err || 4842 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4843 am_cv_CXX_dependencies_compiler_type=$depmode 4844 break 4845 fi 4846 fi 4847 done 4848 4849 cd .. 4850 rm -rf conftest.dir 4851else 4852 am_cv_CXX_dependencies_compiler_type=none 4853fi 4854 4855fi 4856echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 4857echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 4858CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 4859 4860 4861 4862if 4863 test "x$enable_dependency_tracking" != xno \ 4864 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 4865 am__fastdepCXX_TRUE= 4866 am__fastdepCXX_FALSE='#' 4867else 4868 am__fastdepCXX_TRUE='#' 4869 am__fastdepCXX_FALSE= 4870fi 4871 4872 4873 4874echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 4875echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 4876 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 4877if test "${enable_maintainer_mode+set}" = set; then 4878 enableval="$enable_maintainer_mode" 4879 USE_MAINTAINER_MODE=$enableval 4880else 4881 USE_MAINTAINER_MODE=no 4882fi; 4883 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 4884echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 4885 4886 4887if test $USE_MAINTAINER_MODE = yes; then 4888 MAINTAINER_MODE_TRUE= 4889 MAINTAINER_MODE_FALSE='#' 4890else 4891 MAINTAINER_MODE_TRUE='#' 4892 MAINTAINER_MODE_FALSE= 4893fi 4894 4895 MAINT=$MAINTAINER_MODE_TRUE 4896 4897 4898 4899coin_have_externals=no 4900if test "$enable_maintainer_mode" = yes; then 4901 4902 # If maintainer mode is chosen, we make sure that the correct versions 4903 # of the tools are used, and that we know where libtool.m4 is (to 4904 # recreate acinclude.m4) 4905 4906 4907 LIBTOOLM4= 4908 # Normally, $HOME 4909 AUTOTOOLS_DFLT=$HOME 4910 4911 echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5 4912echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6 4913if test "${ac_cv_use_correct_autotools+set}" = set; then 4914 echo $ECHO_N "(cached) $ECHO_C" >&6 4915else 4916 ac_cv_use_correct_autotools=check 4917fi 4918echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5 4919echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6 4920 4921 if test $ac_cv_use_correct_autotools = check; then 4922 ac_cv_use_correct_autotools=yes 4923 # Check if we have autoconf 4924 # Extract the first word of "autoconf", so it can be a program name with args. 4925set dummy autoconf; ac_word=$2 4926echo "$as_me:$LINENO: checking for $ac_word" >&5 4927echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4928if test "${ac_cv_prog_have_autoconf+set}" = set; then 4929 echo $ECHO_N "(cached) $ECHO_C" >&6 4930else 4931 if test -n "$have_autoconf"; then 4932 ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test. 4933else 4934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4935for as_dir in $PATH 4936do 4937 IFS=$as_save_IFS 4938 test -z "$as_dir" && as_dir=. 4939 for ac_exec_ext in '' $ac_executable_extensions; do 4940 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4941 ac_cv_prog_have_autoconf="yes" 4942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4943 break 2 4944 fi 4945done 4946done 4947 4948 test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no" 4949fi 4950fi 4951have_autoconf=$ac_cv_prog_have_autoconf 4952if test -n "$have_autoconf"; then 4953 echo "$as_me:$LINENO: result: $have_autoconf" >&5 4954echo "${ECHO_T}$have_autoconf" >&6 4955else 4956 echo "$as_me:$LINENO: result: no" >&5 4957echo "${ECHO_T}no" >&6 4958fi 4959 4960 if test $have_autoconf = no; then 4961 { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5 4962echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;} 4963 { (exit 1); exit 1; }; } 4964 fi 4965 4966 # Check whether autoconf is the correct version 4967 correct_version='2.59' 4968 grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'` 4969 echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5 4970echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6 4971 autoconf --version > confauto.out 2>&1 4972 if $EGREP $grep_version confauto.out >/dev/null 2>&1; then 4973 echo "$as_me:$LINENO: result: yes" >&5 4974echo "${ECHO_T}yes" >&6 4975 else 4976 rm -f confauto.out 4977 echo "$as_me:$LINENO: result: no" >&5 4978echo "${ECHO_T}no" >&6 4979 { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5 4980echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;} 4981 { (exit 1); exit 1; }; } 4982 fi 4983 rm -f confauto.out 4984 4985 # Check if the executable autoconf is picked up from the correct location 4986 echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5 4987echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6 4988 autoconf_dir=`which autoconf | sed -e 's=/autoconf=='` 4989 autoconf_dir=`cd $autoconf_dir; pwd` 4990 if test x$AUTOTOOLS_DIR = x; then 4991 want_dir=$AUTOTOOLS_DFLT/bin 4992 else 4993 want_dir=$AUTOTOOLS_DIR/bin 4994 fi 4995 if test $autoconf_dir = `cd $want_dir; pwd`; then 4996 echo "$as_me:$LINENO: result: yes" >&5 4997echo "${ECHO_T}yes" >&6 4998 else 4999 rm -f confauto.out 5000 echo "$as_me:$LINENO: result: no" >&5 5001echo "${ECHO_T}no" >&6 5002 { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5 5003echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;} 5004 { (exit 1); exit 1; }; } 5005 fi 5006 5007 # Check if we have automake 5008 # Extract the first word of "automake", so it can be a program name with args. 5009set dummy automake; ac_word=$2 5010echo "$as_me:$LINENO: checking for $ac_word" >&5 5011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5012if test "${ac_cv_prog_have_automake+set}" = set; then 5013 echo $ECHO_N "(cached) $ECHO_C" >&6 5014else 5015 if test -n "$have_automake"; then 5016 ac_cv_prog_have_automake="$have_automake" # Let the user override the test. 5017else 5018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5019for as_dir in $PATH 5020do 5021 IFS=$as_save_IFS 5022 test -z "$as_dir" && as_dir=. 5023 for ac_exec_ext in '' $ac_executable_extensions; do 5024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5025 ac_cv_prog_have_automake="yes" 5026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5027 break 2 5028 fi 5029done 5030done 5031 5032 test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no" 5033fi 5034fi 5035have_automake=$ac_cv_prog_have_automake 5036if test -n "$have_automake"; then 5037 echo "$as_me:$LINENO: result: $have_automake" >&5 5038echo "${ECHO_T}$have_automake" >&6 5039else 5040 echo "$as_me:$LINENO: result: no" >&5 5041echo "${ECHO_T}no" >&6 5042fi 5043 5044 if test $have_automake = no; then 5045 { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5 5046echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;} 5047 { (exit 1); exit 1; }; } 5048 fi 5049 5050 # Check whether automake is the correct version 5051 correct_version='1.9.6' 5052 grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'` 5053 echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5 5054echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6 5055 automake --version > confauto.out 2>&1 5056 if $EGREP $grep_version confauto.out >/dev/null 2>&1; then 5057 echo "$as_me:$LINENO: result: yes" >&5 5058echo "${ECHO_T}yes" >&6 5059 else 5060 rm -f confauto.out 5061 echo "$as_me:$LINENO: result: no" >&5 5062echo "${ECHO_T}no" >&6 5063 { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5 5064echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;} 5065 { (exit 1); exit 1; }; } 5066 fi 5067 rm -f confauto.out 5068 5069 # Check if the executable automake is picked up from the correct location 5070 echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5 5071echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6 5072 automake_dir=`which automake | sed -e 's=/automake=='` 5073 automake_dir=`cd $automake_dir; pwd` 5074 if test x$AUTOTOOLS_DIR = x; then 5075 want_dir=$AUTOTOOLS_DFLT/bin 5076 else 5077 want_dir=$AUTOTOOLS_DIR/bin 5078 fi 5079 if test $automake_dir = `cd $want_dir; pwd`; then 5080 echo "$as_me:$LINENO: result: yes" >&5 5081echo "${ECHO_T}yes" >&6 5082 else 5083 rm -f confauto.out 5084 echo "$as_me:$LINENO: result: no" >&5 5085echo "${ECHO_T}no" >&6 5086 { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5 5087echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;} 5088 { (exit 1); exit 1; }; } 5089 fi 5090 5091 # Check if this is the correct version of libtool (with escaped dots) 5092 if test x$AUTOTOOLS_DIR = x; then 5093 want_dir=$AUTOTOOLS_DFLT/share 5094 else 5095 want_dir=$AUTOTOOLS_DIR/share 5096 fi 5097 correct_version='1.5.22' 5098 grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'` 5099 if test -r $want_dir/libtool/ltmain.sh; then 5100 have_ltmain=yes 5101 : 5102else 5103 have_ltmain=no 5104 : 5105fi 5106 5107 echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5 5108echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6 5109 if test $have_ltmain = yes; then 5110 if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then 5111 echo "$as_me:$LINENO: result: yes" >&5 5112echo "${ECHO_T}yes" >&6 5113 else 5114 echo "$as_me:$LINENO: result: no" >&5 5115echo "${ECHO_T}no" >&6 5116 { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5 5117echo "$as_me: error: You don't have the correct version of libtool." >&2;} 5118 { (exit 1); exit 1; }; } 5119 fi 5120 else 5121 echo "$as_me:$LINENO: result: no" >&5 5122echo "${ECHO_T}no" >&6 5123 { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5 5124echo "$as_me: error: I cannot find the ltmain.sh file." >&2;} 5125 { (exit 1); exit 1; }; } 5126 fi 5127 fi 5128 5129 # Check if we can find the libtool file 5130 if test x$AUTOTOOLS_DIR = x; then 5131 want_dir=$AUTOTOOLS_DFLT/share 5132 else 5133 want_dir=$AUTOTOOLS_DIR/share 5134 fi 5135 if test -r $want_dir/aclocal/libtool.m4; then 5136 LIBTOOLM4="$want_dir/aclocal/libtool.m4" 5137 : 5138else 5139 { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5 5140echo "$as_me: error: I cannot find the libtool.m4 file." >&2;} 5141 { (exit 1); exit 1; }; } 5142 : 5143fi 5144 5145 5146 # Check if we have an Dependencies file 5147 if test -r $srcdir/Dependencies; then 5148 coin_have_externals=yes 5149 fi 5150 # Check if subversion is installed and understands https 5151 # Extract the first word of "svn", so it can be a program name with args. 5152set dummy svn; ac_word=$2 5153echo "$as_me:$LINENO: checking for $ac_word" >&5 5154echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5155if test "${ac_cv_prog_have_svn+set}" = set; then 5156 echo $ECHO_N "(cached) $ECHO_C" >&6 5157else 5158 if test -n "$have_svn"; then 5159 ac_cv_prog_have_svn="$have_svn" # Let the user override the test. 5160else 5161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5162for as_dir in $PATH 5163do 5164 IFS=$as_save_IFS 5165 test -z "$as_dir" && as_dir=. 5166 for ac_exec_ext in '' $ac_executable_extensions; do 5167 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5168 ac_cv_prog_have_svn="yes" 5169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5170 break 2 5171 fi 5172done 5173done 5174 5175 test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no" 5176fi 5177fi 5178have_svn=$ac_cv_prog_have_svn 5179if test -n "$have_svn"; then 5180 echo "$as_me:$LINENO: result: $have_svn" >&5 5181echo "${ECHO_T}$have_svn" >&6 5182else 5183 echo "$as_me:$LINENO: result: no" >&5 5184echo "${ECHO_T}no" >&6 5185fi 5186 5187 if test x$have_svn = xyes; then 5188 echo "$as_me:$LINENO: checking whether svn understands https" >&5 5189echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6 5190if test "${ac_cv_svn_understands_https+set}" = set; then 5191 echo $ECHO_N "(cached) $ECHO_C" >&6 5192else 5193 svn --version > confauto.out 2>&1 5194 if $EGREP https confauto.out >/dev/null 2>&1; then 5195 ac_cv_svn_understands_https=yes 5196 else 5197 ac_cv_svn_understands_https=no 5198 have_svn=no 5199 ac_cv_prog_have_svn=no 5200 fi 5201 rm -f confauto.out 5202fi 5203echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5 5204echo "${ECHO_T}$ac_cv_svn_understands_https" >&6 5205 fi 5206 5207 # Find the location of the BuildTools directory 5208 BUILDTOOLSDIR= 5209 if test -r $srcdir/BuildTools/coin.m4; then 5210 BUILDTOOLSDIR=$srcdir/BuildTools 5211 else 5212 if test -r $srcdir/../BuildTools/coin.m4; then 5213 BUILDTOOLSDIR=$srcdir/../BuildTools 5214 else 5215 if test -r $srcdir/../../BuildTools/coin.m4; then 5216 BUILDTOOLSDIR=$srcdir/../../BuildTools 5217 else 5218 { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5 5219echo "$as_me: error: Cannot find the BuildTools directory" >&2;} 5220 { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; } 5221 fi 5222 fi 5223 fi 5224 5225 5226 # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools 5227 if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then 5228 $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools" 5229 fi 5230 5231 # The following variable is set to the name of the directory where 5232 # the autotool scripts are located 5233 5234 AUX_DIR=$ac_aux_dir 5235fi 5236 5237# helpful variable for the base directory of this package 5238abs_source_dir=`cd $srcdir; pwd` 5239 5240 5241# Stuff for example Makefiles 5242if test x$prefix = xNONE; then 5243 full_prefix=$ac_default_prefix 5244else 5245 full_prefix=$prefix 5246fi 5247# Check whether the path given is absolute. 5248# If not, get absolute path 5249case $full_prefix in 5250 \\/$* | ?:\\/* | NONE | '' ) ;; 5251 *) full_prefix=`cd $full_prefix ; pwd` ;; 5252esac 5253 5254abs_lib_dir=$full_prefix/lib 5255 5256abs_include_dir=$full_prefix/include 5257 5258abs_bin_dir=$full_prefix/bin 5259 5260 5261 5262if test $coin_have_externals = yes && test x$have_svn = xyes; then 5263 HAVE_EXTERNALS_TRUE= 5264 HAVE_EXTERNALS_FALSE='#' 5265else 5266 HAVE_EXTERNALS_TRUE='#' 5267 HAVE_EXTERNALS_FALSE= 5268fi 5269 5270 5271# AC_MSG_NOTICE([End automake initialisation.]) 5272 5273 5274 5275LIBTOOL= 5276if test -f ../libtool; then 5277 coin_config_dir=.. 5278 LIBTOOL='$(SHELL) $(top_builddir)/../libtool' 5279fi 5280if test "x$LIBTOOL" = x; then 5281 if test -f ../../libtool; then 5282 coin_config_dir=../.. 5283 LIBTOOL='$(SHELL) $(top_builddir)/../../libtool' 5284 fi 5285fi 5286 5287if test "x$LIBTOOL" = x; then 5288# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).]) 5289 # Stuff for libtool 5290 # Check whether --enable-shared or --disable-shared was given. 5291if test "${enable_shared+set}" = set; then 5292 enableval="$enable_shared" 5293 p=${PACKAGE-default} 5294 case $enableval in 5295 yes) enable_shared=yes ;; 5296 no) enable_shared=no ;; 5297 *) 5298 enable_shared=no 5299 # Look at the argument we got. We use all the common list separators. 5300 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 5301 for pkg in $enableval; do 5302 IFS="$lt_save_ifs" 5303 if test "X$pkg" = "X$p"; then 5304 enable_shared=yes 5305 fi 5306 done 5307 IFS="$lt_save_ifs" 5308 ;; 5309 esac 5310else 5311 enable_shared=yes 5312fi; 5313 5314# Check whether --enable-fast-install or --disable-fast-install was given. 5315if test "${enable_fast_install+set}" = set; then 5316 enableval="$enable_fast_install" 5317 p=${PACKAGE-default} 5318 case $enableval in 5319 yes) enable_fast_install=yes ;; 5320 no) enable_fast_install=no ;; 5321 *) 5322 enable_fast_install=no 5323 # Look at the argument we got. We use all the common list separators. 5324 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 5325 for pkg in $enableval; do 5326 IFS="$lt_save_ifs" 5327 if test "X$pkg" = "X$p"; then 5328 enable_fast_install=yes 5329 fi 5330 done 5331 IFS="$lt_save_ifs" 5332 ;; 5333 esac 5334else 5335 enable_fast_install=yes 5336fi; 5337 5338echo "$as_me:$LINENO: checking host system type" >&5 5339echo $ECHO_N "checking host system type... $ECHO_C" >&6 5340if test "${ac_cv_host+set}" = set; then 5341 echo $ECHO_N "(cached) $ECHO_C" >&6 5342else 5343 ac_cv_host_alias=$host_alias 5344test -z "$ac_cv_host_alias" && 5345 ac_cv_host_alias=$ac_cv_build_alias 5346ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 5347 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 5348echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 5349 { (exit 1); exit 1; }; } 5350 5351fi 5352echo "$as_me:$LINENO: result: $ac_cv_host" >&5 5353echo "${ECHO_T}$ac_cv_host" >&6 5354host=$ac_cv_host 5355host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 5356host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 5357host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 5358 5359 5360echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 5361echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 5362if test "${lt_cv_path_SED+set}" = set; then 5363 echo $ECHO_N "(cached) $ECHO_C" >&6 5364else 5365 # Loop through the user's path and test for sed and gsed. 5366# Then use that list of sed's as ones to test for truncation. 5367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5368for as_dir in $PATH 5369do 5370 IFS=$as_save_IFS 5371 test -z "$as_dir" && as_dir=. 5372 for lt_ac_prog in sed gsed; do 5373 for ac_exec_ext in '' $ac_executable_extensions; do 5374 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 5375 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 5376 fi 5377 done 5378 done 5379done 5380lt_ac_max=0 5381lt_ac_count=0 5382# Add /usr/xpg4/bin/sed as it is typically found on Solaris 5383# along with /bin/sed that truncates output. 5384for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 5385 test ! -f $lt_ac_sed && continue 5386 cat /dev/null > conftest.in 5387 lt_ac_count=0 5388 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 5389 # Check for GNU sed and select it if it is found. 5390 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 5391 lt_cv_path_SED=$lt_ac_sed 5392 break 5393 fi 5394 while true; do 5395 cat conftest.in conftest.in >conftest.tmp 5396 mv conftest.tmp conftest.in 5397 cp conftest.in conftest.nl 5398 echo >>conftest.nl 5399 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 5400 cmp -s conftest.out conftest.nl || break 5401 # 10000 chars as input seems more than enough 5402 test $lt_ac_count -gt 10 && break 5403 lt_ac_count=`expr $lt_ac_count + 1` 5404 if test $lt_ac_count -gt $lt_ac_max; then 5405 lt_ac_max=$lt_ac_count 5406 lt_cv_path_SED=$lt_ac_sed 5407 fi 5408 done 5409done 5410 5411fi 5412 5413SED=$lt_cv_path_SED 5414echo "$as_me:$LINENO: result: $SED" >&5 5415echo "${ECHO_T}$SED" >&6 5416 5417 5418# Check whether --with-gnu-ld or --without-gnu-ld was given. 5419if test "${with_gnu_ld+set}" = set; then 5420 withval="$with_gnu_ld" 5421 test "$withval" = no || with_gnu_ld=yes 5422else 5423 with_gnu_ld=no 5424fi; 5425ac_prog=ld 5426if test "$GCC" = yes; then 5427 # Check if gcc -print-prog-name=ld gives a path. 5428 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 5429echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 5430 case $host in 5431 *-*-mingw*) 5432 # gcc leaves a trailing carriage return which upsets mingw 5433 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5434 *) 5435 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5436 esac 5437 case $ac_prog in 5438 # Accept absolute paths. 5439 [\\/]* | ?:[\\/]*) 5440 re_direlt='/[^/][^/]*/\.\./' 5441 # Canonicalize the pathname of ld 5442 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 5443 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 5444 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 5445 done 5446 test -z "$LD" && LD="$ac_prog" 5447 ;; 5448 "") 5449 # If it fails, then pretend we aren't using GCC. 5450 ac_prog=ld 5451 ;; 5452 *) 5453 # If it is relative, then search for the first ld in PATH. 5454 with_gnu_ld=unknown 5455 ;; 5456 esac 5457elif test "$with_gnu_ld" = yes; then 5458 echo "$as_me:$LINENO: checking for GNU ld" >&5 5459echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 5460else 5461 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 5462echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 5463fi 5464if test "${lt_cv_path_LD+set}" = set; then 5465 echo $ECHO_N "(cached) $ECHO_C" >&6 5466else 5467 if test -z "$LD"; then 5468 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5469 for ac_dir in $PATH; do 5470 IFS="$lt_save_ifs" 5471 test -z "$ac_dir" && ac_dir=. 5472 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5473 lt_cv_path_LD="$ac_dir/$ac_prog" 5474 # Check to see if the program is GNU ld. I'd rather use --version, 5475 # but apparently some variants of GNU ld only accept -v. 5476 # Break only if it was the GNU/non-GNU ld that we prefer. 5477 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5478 *GNU* | *'with BFD'*) 5479 test "$with_gnu_ld" != no && break 5480 ;; 5481 *) 5482 test "$with_gnu_ld" != yes && break 5483 ;; 5484 esac 5485 fi 5486 done 5487 IFS="$lt_save_ifs" 5488else 5489 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5490fi 5491fi 5492 5493LD="$lt_cv_path_LD" 5494if test -n "$LD"; then 5495 echo "$as_me:$LINENO: result: $LD" >&5 5496echo "${ECHO_T}$LD" >&6 5497else 5498 echo "$as_me:$LINENO: result: no" >&5 5499echo "${ECHO_T}no" >&6 5500fi 5501test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 5502echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 5503 { (exit 1); exit 1; }; } 5504echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 5505echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 5506if test "${lt_cv_prog_gnu_ld+set}" = set; then 5507 echo $ECHO_N "(cached) $ECHO_C" >&6 5508else 5509 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5510case `$LD -v 2>&1 </dev/null` in 5511*GNU* | *'with BFD'*) 5512 lt_cv_prog_gnu_ld=yes 5513 ;; 5514*) 5515 lt_cv_prog_gnu_ld=no 5516 ;; 5517esac 5518fi 5519echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 5520echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 5521with_gnu_ld=$lt_cv_prog_gnu_ld 5522 5523 5524echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 5525echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 5526if test "${lt_cv_ld_reload_flag+set}" = set; then 5527 echo $ECHO_N "(cached) $ECHO_C" >&6 5528else 5529 lt_cv_ld_reload_flag='-r' 5530fi 5531echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 5532echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 5533reload_flag=$lt_cv_ld_reload_flag 5534case $reload_flag in 5535"" | " "*) ;; 5536*) reload_flag=" $reload_flag" ;; 5537esac 5538reload_cmds='$LD$reload_flag -o $output$reload_objs' 5539case $host_os in 5540 darwin*) 5541 if test "$GCC" = yes; then 5542 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5543 else 5544 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5545 fi 5546 ;; 5547esac 5548 5549echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 5550echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 5551if test "${lt_cv_path_NM+set}" = set; then 5552 echo $ECHO_N "(cached) $ECHO_C" >&6 5553else 5554 if test -n "$NM"; then 5555 # Let the user override the test. 5556 lt_cv_path_NM="$NM" 5557else 5558 lt_nm_to_check="${ac_tool_prefix}nm" 5559 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5560 lt_nm_to_check="$lt_nm_to_check nm" 5561 fi 5562 for lt_tmp_nm in $lt_nm_to_check; do 5563 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5564 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5565 IFS="$lt_save_ifs" 5566 test -z "$ac_dir" && ac_dir=. 5567 tmp_nm="$ac_dir/$lt_tmp_nm" 5568 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5569 # Check to see if the nm accepts a BSD-compat flag. 5570 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5571 # nm: unknown option "B" ignored 5572 # Tru64's nm complains that /dev/null is an invalid object file 5573 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5574 */dev/null* | *'Invalid file or object type'*) 5575 lt_cv_path_NM="$tmp_nm -B" 5576 break 5577 ;; 5578 *) 5579 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5580 */dev/null*) 5581 lt_cv_path_NM="$tmp_nm -p" 5582 break 5583 ;; 5584 *) 5585 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5586 continue # so that we can try to find one that supports BSD flags 5587 ;; 5588 esac 5589 ;; 5590 esac 5591 fi 5592 done 5593 IFS="$lt_save_ifs" 5594 done 5595 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 5596fi 5597fi 5598echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 5599echo "${ECHO_T}$lt_cv_path_NM" >&6 5600NM="$lt_cv_path_NM" 5601 5602echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 5603echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 5604if test "${lt_cv_deplibs_check_method+set}" = set; then 5605 echo $ECHO_N "(cached) $ECHO_C" >&6 5606else 5607 lt_cv_file_magic_cmd='$MAGIC_CMD' 5608lt_cv_file_magic_test_file= 5609lt_cv_deplibs_check_method='unknown' 5610# Need to set the preceding variable on all platforms that support 5611# interlibrary dependencies. 5612# 'none' -- dependencies not supported. 5613# `unknown' -- same as none, but documents that we really don't know. 5614# 'pass_all' -- all dependencies passed with no checks. 5615# 'test_compile' -- check by making test program. 5616# 'file_magic [[regex]]' -- check by looking for files in library path 5617# which responds to the $file_magic_cmd with a given extended regex. 5618# If you have `file' or equivalent on your system and you're not sure 5619# whether `pass_all' will *always* work, you probably want this one. 5620 5621case $host_os in 5622aix4* | aix5*) 5623 lt_cv_deplibs_check_method=pass_all 5624 ;; 5625 5626beos*) 5627 lt_cv_deplibs_check_method=pass_all 5628 ;; 5629 5630bsdi[45]*) 5631 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5632 lt_cv_file_magic_cmd='/usr/bin/file -L' 5633 lt_cv_file_magic_test_file=/shlib/libc.so 5634 ;; 5635 5636cygwin*) 5637 # func_win32_libid is a shell function defined in ltmain.sh 5638 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5639 lt_cv_file_magic_cmd='func_win32_libid' 5640 ;; 5641 5642mingw* | pw32*) 5643 # Base MSYS/MinGW do not provide the 'file' command needed by 5644 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 5645 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 5646 lt_cv_file_magic_cmd='$OBJDUMP -f' 5647 ;; 5648 5649darwin* | rhapsody*) 5650 lt_cv_deplibs_check_method=pass_all 5651 ;; 5652 5653freebsd* | kfreebsd*-gnu | dragonfly*) 5654 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 5655 case $host_cpu in 5656 i*86 ) 5657 # Not sure whether the presence of OpenBSD here was a mistake. 5658 # Let's accept both of them until this is cleared up. 5659 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5660 lt_cv_file_magic_cmd=/usr/bin/file 5661 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5662 ;; 5663 esac 5664 else 5665 lt_cv_deplibs_check_method=pass_all 5666 fi 5667 ;; 5668 5669gnu*) 5670 lt_cv_deplibs_check_method=pass_all 5671 ;; 5672 5673hpux10.20* | hpux11*) 5674 lt_cv_file_magic_cmd=/usr/bin/file 5675 case $host_cpu in 5676 ia64*) 5677 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5678 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5679 ;; 5680 hppa*64*) 5681 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]' 5682 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5683 ;; 5684 *) 5685 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 5686 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5687 ;; 5688 esac 5689 ;; 5690 5691interix3*) 5692 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5693 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5694 ;; 5695 5696irix5* | irix6* | nonstopux*) 5697 case $LD in 5698 *-32|*"-32 ") libmagic=32-bit;; 5699 *-n32|*"-n32 ") libmagic=N32;; 5700 *-64|*"-64 ") libmagic=64-bit;; 5701 *) libmagic=never-match;; 5702 esac 5703 lt_cv_deplibs_check_method=pass_all 5704 ;; 5705 5706# This must be Linux ELF. 5707linux*) 5708 lt_cv_deplibs_check_method=pass_all 5709 ;; 5710 5711netbsd*) 5712 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 5713 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5714 else 5715 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5716 fi 5717 ;; 5718 5719newos6*) 5720 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5721 lt_cv_file_magic_cmd=/usr/bin/file 5722 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5723 ;; 5724 5725nto-qnx*) 5726 lt_cv_deplibs_check_method=unknown 5727 ;; 5728 5729openbsd*) 5730 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5731 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5732 else 5733 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5734 fi 5735 ;; 5736 5737osf3* | osf4* | osf5*) 5738 lt_cv_deplibs_check_method=pass_all 5739 ;; 5740 5741solaris*) 5742 lt_cv_deplibs_check_method=pass_all 5743 ;; 5744 5745sysv4 | sysv4.3*) 5746 case $host_vendor in 5747 motorola) 5748 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]' 5749 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5750 ;; 5751 ncr) 5752 lt_cv_deplibs_check_method=pass_all 5753 ;; 5754 sequent) 5755 lt_cv_file_magic_cmd='/bin/file' 5756 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5757 ;; 5758 sni) 5759 lt_cv_file_magic_cmd='/bin/file' 5760 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5761 lt_cv_file_magic_test_file=/lib/libc.so 5762 ;; 5763 siemens) 5764 lt_cv_deplibs_check_method=pass_all 5765 ;; 5766 pc) 5767 lt_cv_deplibs_check_method=pass_all 5768 ;; 5769 esac 5770 ;; 5771 5772sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5773 lt_cv_deplibs_check_method=pass_all 5774 ;; 5775esac 5776 5777fi 5778echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 5779echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 5780file_magic_cmd=$lt_cv_file_magic_cmd 5781deplibs_check_method=$lt_cv_deplibs_check_method 5782test -z "$deplibs_check_method" && deplibs_check_method=unknown 5783 5784 5785 5786 5787# If no C compiler was specified, use CC. 5788LTCC=${LTCC-"$CC"} 5789 5790# If no C compiler flags were specified, use CFLAGS. 5791LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5792 5793# Allow CC to be a program name with arguments. 5794compiler=$CC 5795 5796# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 5797if test "${enable_libtool_lock+set}" = set; then 5798 enableval="$enable_libtool_lock" 5799 5800fi; 5801test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5802 5803# Some flags need to be propagated to the compiler or linker for good 5804# libtool support. 5805case $host in 5806ia64-*-hpux*) 5807 # Find out which ABI we are using. 5808 echo 'int i;' > conftest.$ac_ext 5809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5810 (eval $ac_compile) 2>&5 5811 ac_status=$? 5812 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5813 (exit $ac_status); }; then 5814 case `/usr/bin/file conftest.$ac_objext` in 5815 *ELF-32*) 5816 HPUX_IA64_MODE="32" 5817 ;; 5818 *ELF-64*) 5819 HPUX_IA64_MODE="64" 5820 ;; 5821 esac 5822 fi 5823 rm -rf conftest* 5824 ;; 5825*-*-irix6*) 5826 # Find out which ABI we are using. 5827 echo '#line 5827 "configure"' > conftest.$ac_ext 5828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5829 (eval $ac_compile) 2>&5 5830 ac_status=$? 5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5832 (exit $ac_status); }; then 5833 if test "$lt_cv_prog_gnu_ld" = yes; then 5834 case `/usr/bin/file conftest.$ac_objext` in 5835 *32-bit*) 5836 LD="${LD-ld} -melf32bsmip" 5837 ;; 5838 *N32*) 5839 LD="${LD-ld} -melf32bmipn32" 5840 ;; 5841 *64-bit*) 5842 LD="${LD-ld} -melf64bmip" 5843 ;; 5844 esac 5845 else 5846 case `/usr/bin/file conftest.$ac_objext` in 5847 *32-bit*) 5848 LD="${LD-ld} -32" 5849 ;; 5850 *N32*) 5851 LD="${LD-ld} -n32" 5852 ;; 5853 *64-bit*) 5854 LD="${LD-ld} -64" 5855 ;; 5856 esac 5857 fi 5858 fi 5859 rm -rf conftest* 5860 ;; 5861 5862x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 5863 # Find out which ABI we are using. 5864 echo 'int i;' > conftest.$ac_ext 5865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5866 (eval $ac_compile) 2>&5 5867 ac_status=$? 5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5869 (exit $ac_status); }; then 5870 case `/usr/bin/file conftest.o` in 5871 *32-bit*) 5872 case $host in 5873 x86_64-*linux*) 5874 LD="${LD-ld} -m elf_i386" 5875 ;; 5876 ppc64-*linux*|powerpc64-*linux*) 5877 LD="${LD-ld} -m elf32ppclinux" 5878 ;; 5879 s390x-*linux*) 5880 LD="${LD-ld} -m elf_s390" 5881 ;; 5882 sparc64-*linux*) 5883 LD="${LD-ld} -m elf32_sparc" 5884 ;; 5885 esac 5886 ;; 5887 *64-bit*) 5888 case $host in 5889 x86_64-*linux*) 5890 LD="${LD-ld} -m elf_x86_64" 5891 ;; 5892 ppc*-*linux*|powerpc*-*linux*) 5893 LD="${LD-ld} -m elf64ppc" 5894 ;; 5895 s390*-*linux*) 5896 LD="${LD-ld} -m elf64_s390" 5897 ;; 5898 sparc*-*linux*) 5899 LD="${LD-ld} -m elf64_sparc" 5900 ;; 5901 esac 5902 ;; 5903 esac 5904 fi 5905 rm -rf conftest* 5906 ;; 5907 5908*-*-sco3.2v5*) 5909 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 5910 SAVE_CFLAGS="$CFLAGS" 5911 CFLAGS="$CFLAGS -belf" 5912 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 5913echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 5914if test "${lt_cv_cc_needs_belf+set}" = set; then 5915 echo $ECHO_N "(cached) $ECHO_C" >&6 5916else 5917 ac_ext=c 5918ac_cpp='$CPP $CPPFLAGS' 5919ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5920ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5921ac_compiler_gnu=$ac_cv_c_compiler_gnu 5922 5923 cat >conftest.$ac_ext <<_ACEOF 5924/* confdefs.h. */ 5925_ACEOF 5926cat confdefs.h >>conftest.$ac_ext 5927cat >>conftest.$ac_ext <<_ACEOF 5928/* end confdefs.h. */ 5929 5930int 5931main () 5932{ 5933 5934 ; 5935 return 0; 5936} 5937_ACEOF 5938rm -f conftest.$ac_objext conftest$ac_exeext 5939if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5940 (eval $ac_link) 2>conftest.er1 5941 ac_status=$? 5942 grep -v '^ *+' conftest.er1 >conftest.err 5943 rm -f conftest.er1 5944 cat conftest.err >&5 5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5946 (exit $ac_status); } && 5947 { ac_try='test -z "$ac_c_werror_flag" 5948 || test ! -s conftest.err' 5949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5950 (eval $ac_try) 2>&5 5951 ac_status=$? 5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5953 (exit $ac_status); }; } && 5954 { ac_try='test -s conftest$ac_exeext' 5955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5956 (eval $ac_try) 2>&5 5957 ac_status=$? 5958 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5959 (exit $ac_status); }; }; then 5960 lt_cv_cc_needs_belf=yes 5961else 5962 echo "$as_me: failed program was:" >&5 5963sed 's/^/| /' conftest.$ac_ext >&5 5964 5965lt_cv_cc_needs_belf=no 5966fi 5967rm -f conftest.err conftest.$ac_objext \ 5968 conftest$ac_exeext conftest.$ac_ext 5969 ac_ext=c 5970ac_cpp='$CPP $CPPFLAGS' 5971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5973ac_compiler_gnu=$ac_cv_c_compiler_gnu 5974 5975fi 5976echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 5977echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 5978 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 5979 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 5980 CFLAGS="$SAVE_CFLAGS" 5981 fi 5982 ;; 5983sparc*-*solaris*) 5984 # Find out which ABI we are using. 5985 echo 'int i;' > conftest.$ac_ext 5986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5987 (eval $ac_compile) 2>&5 5988 ac_status=$? 5989 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5990 (exit $ac_status); }; then 5991 case `/usr/bin/file conftest.o` in 5992 *64-bit*) 5993 case $lt_cv_prog_gnu_ld in 5994 yes*) LD="${LD-ld} -m elf64_sparc" ;; 5995 *) LD="${LD-ld} -64" ;; 5996 esac 5997 ;; 5998 esac 5999 fi 6000 rm -rf conftest* 6001 ;; 6002 6003 6004esac 6005 6006need_locks="$enable_libtool_lock" 6007 6008 6009ac_ext=c 6010ac_cpp='$CPP $CPPFLAGS' 6011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6013ac_compiler_gnu=$ac_cv_c_compiler_gnu 6014echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 6015echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 6016# On Suns, sometimes $CPP names a directory. 6017if test -n "$CPP" && test -d "$CPP"; then 6018 CPP= 6019fi 6020if test -z "$CPP"; then 6021 if test "${ac_cv_prog_CPP+set}" = set; then 6022 echo $ECHO_N "(cached) $ECHO_C" >&6 6023else 6024 # Double quotes because CPP needs to be expanded 6025 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 6026 do 6027 ac_preproc_ok=false 6028for ac_c_preproc_warn_flag in '' yes 6029do 6030 # Use a header file that comes with gcc, so configuring glibc 6031 # with a fresh cross-compiler works. 6032 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6033 # <limits.h> exists even on freestanding compilers. 6034 # On the NeXT, cc -E runs the code through the compiler's parser, 6035 # not just through cpp. "Syntax error" is here to catch this case. 6036 cat >conftest.$ac_ext <<_ACEOF 6037/* confdefs.h. */ 6038_ACEOF 6039cat confdefs.h >>conftest.$ac_ext 6040cat >>conftest.$ac_ext <<_ACEOF 6041/* end confdefs.h. */ 6042#ifdef __STDC__ 6043# include <limits.h> 6044#else 6045# include <assert.h> 6046#endif 6047 Syntax error 6048_ACEOF 6049if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6050 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6051 ac_status=$? 6052 grep -v '^ *+' conftest.er1 >conftest.err 6053 rm -f conftest.er1 6054 cat conftest.err >&5 6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6056 (exit $ac_status); } >/dev/null; then 6057 if test -s conftest.err; then 6058 ac_cpp_err=$ac_c_preproc_warn_flag 6059 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6060 else 6061 ac_cpp_err= 6062 fi 6063else 6064 ac_cpp_err=yes 6065fi 6066if test -z "$ac_cpp_err"; then 6067 : 6068else 6069 echo "$as_me: failed program was:" >&5 6070sed 's/^/| /' conftest.$ac_ext >&5 6071 6072 # Broken: fails on valid input. 6073continue 6074fi 6075rm -f conftest.err conftest.$ac_ext 6076 6077 # OK, works on sane cases. Now check whether non-existent headers 6078 # can be detected and how. 6079 cat >conftest.$ac_ext <<_ACEOF 6080/* confdefs.h. */ 6081_ACEOF 6082cat confdefs.h >>conftest.$ac_ext 6083cat >>conftest.$ac_ext <<_ACEOF 6084/* end confdefs.h. */ 6085#include <ac_nonexistent.h> 6086_ACEOF 6087if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6088 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6089 ac_status=$? 6090 grep -v '^ *+' conftest.er1 >conftest.err 6091 rm -f conftest.er1 6092 cat conftest.err >&5 6093 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6094 (exit $ac_status); } >/dev/null; then 6095 if test -s conftest.err; then 6096 ac_cpp_err=$ac_c_preproc_warn_flag 6097 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6098 else 6099 ac_cpp_err= 6100 fi 6101else 6102 ac_cpp_err=yes 6103fi 6104if test -z "$ac_cpp_err"; then 6105 # Broken: success on invalid input. 6106continue 6107else 6108 echo "$as_me: failed program was:" >&5 6109sed 's/^/| /' conftest.$ac_ext >&5 6110 6111 # Passes both tests. 6112ac_preproc_ok=: 6113break 6114fi 6115rm -f conftest.err conftest.$ac_ext 6116 6117done 6118# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6119rm -f conftest.err conftest.$ac_ext 6120if $ac_preproc_ok; then 6121 break 6122fi 6123 6124 done 6125 ac_cv_prog_CPP=$CPP 6126 6127fi 6128 CPP=$ac_cv_prog_CPP 6129else 6130 ac_cv_prog_CPP=$CPP 6131fi 6132echo "$as_me:$LINENO: result: $CPP" >&5 6133echo "${ECHO_T}$CPP" >&6 6134ac_preproc_ok=false 6135for ac_c_preproc_warn_flag in '' yes 6136do 6137 # Use a header file that comes with gcc, so configuring glibc 6138 # with a fresh cross-compiler works. 6139 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6140 # <limits.h> exists even on freestanding compilers. 6141 # On the NeXT, cc -E runs the code through the compiler's parser, 6142 # not just through cpp. "Syntax error" is here to catch this case. 6143 cat >conftest.$ac_ext <<_ACEOF 6144/* confdefs.h. */ 6145_ACEOF 6146cat confdefs.h >>conftest.$ac_ext 6147cat >>conftest.$ac_ext <<_ACEOF 6148/* end confdefs.h. */ 6149#ifdef __STDC__ 6150# include <limits.h> 6151#else 6152# include <assert.h> 6153#endif 6154 Syntax error 6155_ACEOF 6156if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6157 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6158 ac_status=$? 6159 grep -v '^ *+' conftest.er1 >conftest.err 6160 rm -f conftest.er1 6161 cat conftest.err >&5 6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6163 (exit $ac_status); } >/dev/null; then 6164 if test -s conftest.err; then 6165 ac_cpp_err=$ac_c_preproc_warn_flag 6166 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6167 else 6168 ac_cpp_err= 6169 fi 6170else 6171 ac_cpp_err=yes 6172fi 6173if test -z "$ac_cpp_err"; then 6174 : 6175else 6176 echo "$as_me: failed program was:" >&5 6177sed 's/^/| /' conftest.$ac_ext >&5 6178 6179 # Broken: fails on valid input. 6180continue 6181fi 6182rm -f conftest.err conftest.$ac_ext 6183 6184 # OK, works on sane cases. Now check whether non-existent headers 6185 # can be detected and how. 6186 cat >conftest.$ac_ext <<_ACEOF 6187/* confdefs.h. */ 6188_ACEOF 6189cat confdefs.h >>conftest.$ac_ext 6190cat >>conftest.$ac_ext <<_ACEOF 6191/* end confdefs.h. */ 6192#include <ac_nonexistent.h> 6193_ACEOF 6194if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6195 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6196 ac_status=$? 6197 grep -v '^ *+' conftest.er1 >conftest.err 6198 rm -f conftest.er1 6199 cat conftest.err >&5 6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6201 (exit $ac_status); } >/dev/null; then 6202 if test -s conftest.err; then 6203 ac_cpp_err=$ac_c_preproc_warn_flag 6204 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6205 else 6206 ac_cpp_err= 6207 fi 6208else 6209 ac_cpp_err=yes 6210fi 6211if test -z "$ac_cpp_err"; then 6212 # Broken: success on invalid input. 6213continue 6214else 6215 echo "$as_me: failed program was:" >&5 6216sed 's/^/| /' conftest.$ac_ext >&5 6217 6218 # Passes both tests. 6219ac_preproc_ok=: 6220break 6221fi 6222rm -f conftest.err conftest.$ac_ext 6223 6224done 6225# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6226rm -f conftest.err conftest.$ac_ext 6227if $ac_preproc_ok; then 6228 : 6229else 6230 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 6231See \`config.log' for more details." >&5 6232echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 6233See \`config.log' for more details." >&2;} 6234 { (exit 1); exit 1; }; } 6235fi 6236 6237ac_ext=c 6238ac_cpp='$CPP $CPPFLAGS' 6239ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6240ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6241ac_compiler_gnu=$ac_cv_c_compiler_gnu 6242 6243 6244echo "$as_me:$LINENO: checking for ANSI C header files" >&5 6245echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 6246if test "${ac_cv_header_stdc+set}" = set; then 6247 echo $ECHO_N "(cached) $ECHO_C" >&6 6248else 6249 cat >conftest.$ac_ext <<_ACEOF 6250/* confdefs.h. */ 6251_ACEOF 6252cat confdefs.h >>conftest.$ac_ext 6253cat >>conftest.$ac_ext <<_ACEOF 6254/* end confdefs.h. */ 6255#include <stdlib.h> 6256#include <stdarg.h> 6257#include <string.h> 6258#include <float.h> 6259 6260int 6261main () 6262{ 6263 6264 ; 6265 return 0; 6266} 6267_ACEOF 6268rm -f conftest.$ac_objext 6269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6270 (eval $ac_compile) 2>conftest.er1 6271 ac_status=$? 6272 grep -v '^ *+' conftest.er1 >conftest.err 6273 rm -f conftest.er1 6274 cat conftest.err >&5 6275 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6276 (exit $ac_status); } && 6277 { ac_try='test -z "$ac_c_werror_flag" 6278 || test ! -s conftest.err' 6279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6280 (eval $ac_try) 2>&5 6281 ac_status=$? 6282 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6283 (exit $ac_status); }; } && 6284 { ac_try='test -s conftest.$ac_objext' 6285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6286 (eval $ac_try) 2>&5 6287 ac_status=$? 6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6289 (exit $ac_status); }; }; then 6290 ac_cv_header_stdc=yes 6291else 6292 echo "$as_me: failed program was:" >&5 6293sed 's/^/| /' conftest.$ac_ext >&5 6294 6295ac_cv_header_stdc=no 6296fi 6297rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6298 6299if test $ac_cv_header_stdc = yes; then 6300 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6301 cat >conftest.$ac_ext <<_ACEOF 6302/* confdefs.h. */ 6303_ACEOF 6304cat confdefs.h >>conftest.$ac_ext 6305cat >>conftest.$ac_ext <<_ACEOF 6306/* end confdefs.h. */ 6307#include <string.h> 6308 6309_ACEOF 6310if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6311 $EGREP "memchr" >/dev/null 2>&1; then 6312 : 6313else 6314 ac_cv_header_stdc=no 6315fi 6316rm -f conftest* 6317 6318fi 6319 6320if test $ac_cv_header_stdc = yes; then 6321 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6322 cat >conftest.$ac_ext <<_ACEOF 6323/* confdefs.h. */ 6324_ACEOF 6325cat confdefs.h >>conftest.$ac_ext 6326cat >>conftest.$ac_ext <<_ACEOF 6327/* end confdefs.h. */ 6328#include <stdlib.h> 6329 6330_ACEOF 6331if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6332 $EGREP "free" >/dev/null 2>&1; then 6333 : 6334else 6335 ac_cv_header_stdc=no 6336fi 6337rm -f conftest* 6338 6339fi 6340 6341if test $ac_cv_header_stdc = yes; then 6342 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6343 if test "$cross_compiling" = yes; then 6344 : 6345else 6346 cat >conftest.$ac_ext <<_ACEOF 6347/* confdefs.h. */ 6348_ACEOF 6349cat confdefs.h >>conftest.$ac_ext 6350cat >>conftest.$ac_ext <<_ACEOF 6351/* end confdefs.h. */ 6352#include <ctype.h> 6353#if ((' ' & 0x0FF) == 0x020) 6354# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6355# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6356#else 6357# define ISLOWER(c) \ 6358 (('a' <= (c) && (c) <= 'i') \ 6359 || ('j' <= (c) && (c) <= 'r') \ 6360 || ('s' <= (c) && (c) <= 'z')) 6361# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6362#endif 6363 6364#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6365int 6366main () 6367{ 6368 int i; 6369 for (i = 0; i < 256; i++) 6370 if (XOR (islower (i), ISLOWER (i)) 6371 || toupper (i) != TOUPPER (i)) 6372 exit(2); 6373 exit (0); 6374} 6375_ACEOF 6376rm -f conftest$ac_exeext 6377if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6378 (eval $ac_link) 2>&5 6379 ac_status=$? 6380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6381 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6383 (eval $ac_try) 2>&5 6384 ac_status=$? 6385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6386 (exit $ac_status); }; }; then 6387 : 6388else 6389 echo "$as_me: program exited with status $ac_status" >&5 6390echo "$as_me: failed program was:" >&5 6391sed 's/^/| /' conftest.$ac_ext >&5 6392 6393( exit $ac_status ) 6394ac_cv_header_stdc=no 6395fi 6396rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6397fi 6398fi 6399fi 6400echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 6401echo "${ECHO_T}$ac_cv_header_stdc" >&6 6402if test $ac_cv_header_stdc = yes; then 6403 6404cat >>confdefs.h <<\_ACEOF 6405#define STDC_HEADERS 1 6406_ACEOF 6407 6408fi 6409 6410# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6421 inttypes.h stdint.h unistd.h 6422do 6423as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6424echo "$as_me:$LINENO: checking for $ac_header" >&5 6425echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6426if eval "test \"\${$as_ac_Header+set}\" = set"; then 6427 echo $ECHO_N "(cached) $ECHO_C" >&6 6428else 6429 cat >conftest.$ac_ext <<_ACEOF 6430/* confdefs.h. */ 6431_ACEOF 6432cat confdefs.h >>conftest.$ac_ext 6433cat >>conftest.$ac_ext <<_ACEOF 6434/* end confdefs.h. */ 6435$ac_includes_default 6436 6437#include <$ac_header> 6438_ACEOF 6439rm -f conftest.$ac_objext 6440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6441 (eval $ac_compile) 2>conftest.er1 6442 ac_status=$? 6443 grep -v '^ *+' conftest.er1 >conftest.err 6444 rm -f conftest.er1 6445 cat conftest.err >&5 6446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6447 (exit $ac_status); } && 6448 { ac_try='test -z "$ac_c_werror_flag" 6449 || test ! -s conftest.err' 6450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6451 (eval $ac_try) 2>&5 6452 ac_status=$? 6453 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6454 (exit $ac_status); }; } && 6455 { ac_try='test -s conftest.$ac_objext' 6456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6457 (eval $ac_try) 2>&5 6458 ac_status=$? 6459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6460 (exit $ac_status); }; }; then 6461 eval "$as_ac_Header=yes" 6462else 6463 echo "$as_me: failed program was:" >&5 6464sed 's/^/| /' conftest.$ac_ext >&5 6465 6466eval "$as_ac_Header=no" 6467fi 6468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6469fi 6470echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6471echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6472if test `eval echo '${'$as_ac_Header'}'` = yes; then 6473 cat >>confdefs.h <<_ACEOF 6474#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6475_ACEOF 6476 6477fi 6478 6479done 6480 6481 6482 6483for ac_header in dlfcn.h 6484do 6485as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6486if eval "test \"\${$as_ac_Header+set}\" = set"; then 6487 echo "$as_me:$LINENO: checking for $ac_header" >&5 6488echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6489if eval "test \"\${$as_ac_Header+set}\" = set"; then 6490 echo $ECHO_N "(cached) $ECHO_C" >&6 6491fi 6492echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6493echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6494else 6495 # Is the header compilable? 6496echo "$as_me:$LINENO: checking $ac_header usability" >&5 6497echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 6498cat >conftest.$ac_ext <<_ACEOF 6499/* confdefs.h. */ 6500_ACEOF 6501cat confdefs.h >>conftest.$ac_ext 6502cat >>conftest.$ac_ext <<_ACEOF 6503/* end confdefs.h. */ 6504$ac_includes_default 6505#include <$ac_header> 6506_ACEOF 6507rm -f conftest.$ac_objext 6508if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6509 (eval $ac_compile) 2>conftest.er1 6510 ac_status=$? 6511 grep -v '^ *+' conftest.er1 >conftest.err 6512 rm -f conftest.er1 6513 cat conftest.err >&5 6514 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6515 (exit $ac_status); } && 6516 { ac_try='test -z "$ac_c_werror_flag" 6517 || test ! -s conftest.err' 6518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6519 (eval $ac_try) 2>&5 6520 ac_status=$? 6521 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6522 (exit $ac_status); }; } && 6523 { ac_try='test -s conftest.$ac_objext' 6524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6525 (eval $ac_try) 2>&5 6526 ac_status=$? 6527 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6528 (exit $ac_status); }; }; then 6529 ac_header_compiler=yes 6530else 6531 echo "$as_me: failed program was:" >&5 6532sed 's/^/| /' conftest.$ac_ext >&5 6533 6534ac_header_compiler=no 6535fi 6536rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6537echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6538echo "${ECHO_T}$ac_header_compiler" >&6 6539 6540# Is the header present? 6541echo "$as_me:$LINENO: checking $ac_header presence" >&5 6542echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 6543cat >conftest.$ac_ext <<_ACEOF 6544/* confdefs.h. */ 6545_ACEOF 6546cat confdefs.h >>conftest.$ac_ext 6547cat >>conftest.$ac_ext <<_ACEOF 6548/* end confdefs.h. */ 6549#include <$ac_header> 6550_ACEOF 6551if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6552 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6553 ac_status=$? 6554 grep -v '^ *+' conftest.er1 >conftest.err 6555 rm -f conftest.er1 6556 cat conftest.err >&5 6557 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6558 (exit $ac_status); } >/dev/null; then 6559 if test -s conftest.err; then 6560 ac_cpp_err=$ac_c_preproc_warn_flag 6561 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6562 else 6563 ac_cpp_err= 6564 fi 6565else 6566 ac_cpp_err=yes 6567fi 6568if test -z "$ac_cpp_err"; then 6569 ac_header_preproc=yes 6570else 6571 echo "$as_me: failed program was:" >&5 6572sed 's/^/| /' conftest.$ac_ext >&5 6573 6574 ac_header_preproc=no 6575fi 6576rm -f conftest.err conftest.$ac_ext 6577echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6578echo "${ECHO_T}$ac_header_preproc" >&6 6579 6580# So? What about this header? 6581case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6582 yes:no: ) 6583 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6584echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6586echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6587 ac_header_preproc=yes 6588 ;; 6589 no:yes:* ) 6590 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6591echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6592 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6593echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6594 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6595echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6596 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6597echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6598 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6599echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6600 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6601echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6602 ( 6603 cat <<\_ASBOX 6604## ----------------------------------------------------------------- ## 6605## Report this to https://github.com/aykutbulut/OSI-CONIC/issues/new ## 6606## ----------------------------------------------------------------- ## 6607_ASBOX 6608 ) | 6609 sed "s/^/$as_me: WARNING: /" >&2 6610 ;; 6611esac 6612echo "$as_me:$LINENO: checking for $ac_header" >&5 6613echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6614if eval "test \"\${$as_ac_Header+set}\" = set"; then 6615 echo $ECHO_N "(cached) $ECHO_C" >&6 6616else 6617 eval "$as_ac_Header=\$ac_header_preproc" 6618fi 6619echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6620echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6621 6622fi 6623if test `eval echo '${'$as_ac_Header'}'` = yes; then 6624 cat >>confdefs.h <<_ACEOF 6625#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6626_ACEOF 6627 6628fi 6629 6630done 6631 6632 6633 6634if test -n "$CXX" && ( test "X$CXX" != "Xno" && 6635 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 6636 (test "X$CXX" != "Xg++"))) ; then 6637 ac_ext=cc 6638ac_cpp='$CXXCPP $CPPFLAGS' 6639ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6640ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6641ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6642echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 6643echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 6644if test -z "$CXXCPP"; then 6645 if test "${ac_cv_prog_CXXCPP+set}" = set; then 6646 echo $ECHO_N "(cached) $ECHO_C" >&6 6647else 6648 # Double quotes because CXXCPP needs to be expanded 6649 for CXXCPP in "$CXX -E" "/lib/cpp" 6650 do 6651 ac_preproc_ok=false 6652for ac_cxx_preproc_warn_flag in '' yes 6653do 6654 # Use a header file that comes with gcc, so configuring glibc 6655 # with a fresh cross-compiler works. 6656 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6657 # <limits.h> exists even on freestanding compilers. 6658 # On the NeXT, cc -E runs the code through the compiler's parser, 6659 # not just through cpp. "Syntax error" is here to catch this case. 6660 cat >conftest.$ac_ext <<_ACEOF 6661/* confdefs.h. */ 6662_ACEOF 6663cat confdefs.h >>conftest.$ac_ext 6664cat >>conftest.$ac_ext <<_ACEOF 6665/* end confdefs.h. */ 6666#ifdef __STDC__ 6667# include <limits.h> 6668#else 6669# include <assert.h> 6670#endif 6671 Syntax error 6672_ACEOF 6673if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6674 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6675 ac_status=$? 6676 grep -v '^ *+' conftest.er1 >conftest.err 6677 rm -f conftest.er1 6678 cat conftest.err >&5 6679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6680 (exit $ac_status); } >/dev/null; then 6681 if test -s conftest.err; then 6682 ac_cpp_err=$ac_cxx_preproc_warn_flag 6683 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 6684 else 6685 ac_cpp_err= 6686 fi 6687else 6688 ac_cpp_err=yes 6689fi 6690if test -z "$ac_cpp_err"; then 6691 : 6692else 6693 echo "$as_me: failed program was:" >&5 6694sed 's/^/| /' conftest.$ac_ext >&5 6695 6696 # Broken: fails on valid input. 6697continue 6698fi 6699rm -f conftest.err conftest.$ac_ext 6700 6701 # OK, works on sane cases. Now check whether non-existent headers 6702 # can be detected and how. 6703 cat >conftest.$ac_ext <<_ACEOF 6704/* confdefs.h. */ 6705_ACEOF 6706cat confdefs.h >>conftest.$ac_ext 6707cat >>conftest.$ac_ext <<_ACEOF 6708/* end confdefs.h. */ 6709#include <ac_nonexistent.h> 6710_ACEOF 6711if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6712 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6713 ac_status=$? 6714 grep -v '^ *+' conftest.er1 >conftest.err 6715 rm -f conftest.er1 6716 cat conftest.err >&5 6717 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6718 (exit $ac_status); } >/dev/null; then 6719 if test -s conftest.err; then 6720 ac_cpp_err=$ac_cxx_preproc_warn_flag 6721 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 6722 else 6723 ac_cpp_err= 6724 fi 6725else 6726 ac_cpp_err=yes 6727fi 6728if test -z "$ac_cpp_err"; then 6729 # Broken: success on invalid input. 6730continue 6731else 6732 echo "$as_me: failed program was:" >&5 6733sed 's/^/| /' conftest.$ac_ext >&5 6734 6735 # Passes both tests. 6736ac_preproc_ok=: 6737break 6738fi 6739rm -f conftest.err conftest.$ac_ext 6740 6741done 6742# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6743rm -f conftest.err conftest.$ac_ext 6744if $ac_preproc_ok; then 6745 break 6746fi 6747 6748 done 6749 ac_cv_prog_CXXCPP=$CXXCPP 6750 6751fi 6752 CXXCPP=$ac_cv_prog_CXXCPP 6753else 6754 ac_cv_prog_CXXCPP=$CXXCPP 6755fi 6756echo "$as_me:$LINENO: result: $CXXCPP" >&5 6757echo "${ECHO_T}$CXXCPP" >&6 6758ac_preproc_ok=false 6759for ac_cxx_preproc_warn_flag in '' yes 6760do 6761 # Use a header file that comes with gcc, so configuring glibc 6762 # with a fresh cross-compiler works. 6763 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6764 # <limits.h> exists even on freestanding compilers. 6765 # On the NeXT, cc -E runs the code through the compiler's parser, 6766 # not just through cpp. "Syntax error" is here to catch this case. 6767 cat >conftest.$ac_ext <<_ACEOF 6768/* confdefs.h. */ 6769_ACEOF 6770cat confdefs.h >>conftest.$ac_ext 6771cat >>conftest.$ac_ext <<_ACEOF 6772/* end confdefs.h. */ 6773#ifdef __STDC__ 6774# include <limits.h> 6775#else 6776# include <assert.h> 6777#endif 6778 Syntax error 6779_ACEOF 6780if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6781 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6782 ac_status=$? 6783 grep -v '^ *+' conftest.er1 >conftest.err 6784 rm -f conftest.er1 6785 cat conftest.err >&5 6786 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6787 (exit $ac_status); } >/dev/null; then 6788 if test -s conftest.err; then 6789 ac_cpp_err=$ac_cxx_preproc_warn_flag 6790 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 6791 else 6792 ac_cpp_err= 6793 fi 6794else 6795 ac_cpp_err=yes 6796fi 6797if test -z "$ac_cpp_err"; then 6798 : 6799else 6800 echo "$as_me: failed program was:" >&5 6801sed 's/^/| /' conftest.$ac_ext >&5 6802 6803 # Broken: fails on valid input. 6804continue 6805fi 6806rm -f conftest.err conftest.$ac_ext 6807 6808 # OK, works on sane cases. Now check whether non-existent headers 6809 # can be detected and how. 6810 cat >conftest.$ac_ext <<_ACEOF 6811/* confdefs.h. */ 6812_ACEOF 6813cat confdefs.h >>conftest.$ac_ext 6814cat >>conftest.$ac_ext <<_ACEOF 6815/* end confdefs.h. */ 6816#include <ac_nonexistent.h> 6817_ACEOF 6818if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6819 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6820 ac_status=$? 6821 grep -v '^ *+' conftest.er1 >conftest.err 6822 rm -f conftest.er1 6823 cat conftest.err >&5 6824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6825 (exit $ac_status); } >/dev/null; then 6826 if test -s conftest.err; then 6827 ac_cpp_err=$ac_cxx_preproc_warn_flag 6828 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 6829 else 6830 ac_cpp_err= 6831 fi 6832else 6833 ac_cpp_err=yes 6834fi 6835if test -z "$ac_cpp_err"; then 6836 # Broken: success on invalid input. 6837continue 6838else 6839 echo "$as_me: failed program was:" >&5 6840sed 's/^/| /' conftest.$ac_ext >&5 6841 6842 # Passes both tests. 6843ac_preproc_ok=: 6844break 6845fi 6846rm -f conftest.err conftest.$ac_ext 6847 6848done 6849# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6850rm -f conftest.err conftest.$ac_ext 6851if $ac_preproc_ok; then 6852 : 6853else 6854 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6855See \`config.log' for more details." >&5 6856echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6857See \`config.log' for more details." >&2;} 6858 { (exit 1); exit 1; }; } 6859fi 6860 6861ac_ext=cc 6862ac_cpp='$CXXCPP $CPPFLAGS' 6863ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6864ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6865ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6866 6867fi 6868 6869ac_ext=f 6870ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 6871ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6872ac_compiler_gnu=$ac_cv_f77_compiler_gnu 6873if test -n "$ac_tool_prefix"; then 6874 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 6875 do 6876 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6877set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6878echo "$as_me:$LINENO: checking for $ac_word" >&5 6879echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6880if test "${ac_cv_prog_F77+set}" = set; then 6881 echo $ECHO_N "(cached) $ECHO_C" >&6 6882else 6883 if test -n "$F77"; then 6884 ac_cv_prog_F77="$F77" # Let the user override the test. 6885else 6886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6887for as_dir in $PATH 6888do 6889 IFS=$as_save_IFS 6890 test -z "$as_dir" && as_dir=. 6891 for ac_exec_ext in '' $ac_executable_extensions; do 6892 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6893 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 6894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6895 break 2 6896 fi 6897done 6898done 6899 6900fi 6901fi 6902F77=$ac_cv_prog_F77 6903if test -n "$F77"; then 6904 echo "$as_me:$LINENO: result: $F77" >&5 6905echo "${ECHO_T}$F77" >&6 6906else 6907 echo "$as_me:$LINENO: result: no" >&5 6908echo "${ECHO_T}no" >&6 6909fi 6910 6911 test -n "$F77" && break 6912 done 6913fi 6914if test -z "$F77"; then 6915 ac_ct_F77=$F77 6916 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 6917do 6918 # Extract the first word of "$ac_prog", so it can be a program name with args. 6919set dummy $ac_prog; ac_word=$2 6920echo "$as_me:$LINENO: checking for $ac_word" >&5 6921echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6922if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 6923 echo $ECHO_N "(cached) $ECHO_C" >&6 6924else 6925 if test -n "$ac_ct_F77"; then 6926 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 6927else 6928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6929for as_dir in $PATH 6930do 6931 IFS=$as_save_IFS 6932 test -z "$as_dir" && as_dir=. 6933 for ac_exec_ext in '' $ac_executable_extensions; do 6934 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6935 ac_cv_prog_ac_ct_F77="$ac_prog" 6936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6937 break 2 6938 fi 6939done 6940done 6941 6942fi 6943fi 6944ac_ct_F77=$ac_cv_prog_ac_ct_F77 6945if test -n "$ac_ct_F77"; then 6946 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 6947echo "${ECHO_T}$ac_ct_F77" >&6 6948else 6949 echo "$as_me:$LINENO: result: no" >&5 6950echo "${ECHO_T}no" >&6 6951fi 6952 6953 test -n "$ac_ct_F77" && break 6954done 6955 6956 F77=$ac_ct_F77 6957fi 6958 6959 6960# Provide some information about the compiler. 6961echo "$as_me:6961:" \ 6962 "checking for Fortran 77 compiler version" >&5 6963ac_compiler=`set X $ac_compile; echo $2` 6964{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 6965 (eval $ac_compiler --version </dev/null >&5) 2>&5 6966 ac_status=$? 6967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6968 (exit $ac_status); } 6969{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 6970 (eval $ac_compiler -v </dev/null >&5) 2>&5 6971 ac_status=$? 6972 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6973 (exit $ac_status); } 6974{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 6975 (eval $ac_compiler -V </dev/null >&5) 2>&5 6976 ac_status=$? 6977 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6978 (exit $ac_status); } 6979rm -f a.out 6980 6981# If we don't use `.F' as extension, the preprocessor is not run on the 6982# input file. (Note that this only needs to work for GNU compilers.) 6983ac_save_ext=$ac_ext 6984ac_ext=F 6985echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 6986echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 6987if test "${ac_cv_f77_compiler_gnu+set}" = set; then 6988 echo $ECHO_N "(cached) $ECHO_C" >&6 6989else 6990 cat >conftest.$ac_ext <<_ACEOF 6991 program main 6992#ifndef __GNUC__ 6993 choke me 6994#endif 6995 6996 end 6997_ACEOF 6998rm -f conftest.$ac_objext 6999if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7000 (eval $ac_compile) 2>conftest.er1 7001 ac_status=$? 7002 grep -v '^ *+' conftest.er1 >conftest.err 7003 rm -f conftest.er1 7004 cat conftest.err >&5 7005 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7006 (exit $ac_status); } && 7007 { ac_try='test -z "$ac_f77_werror_flag" 7008 || test ! -s conftest.err' 7009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7010 (eval $ac_try) 2>&5 7011 ac_status=$? 7012 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7013 (exit $ac_status); }; } && 7014 { ac_try='test -s conftest.$ac_objext' 7015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7016 (eval $ac_try) 2>&5 7017 ac_status=$? 7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7019 (exit $ac_status); }; }; then 7020 ac_compiler_gnu=yes 7021else 7022 echo "$as_me: failed program was:" >&5 7023sed 's/^/| /' conftest.$ac_ext >&5 7024 7025ac_compiler_gnu=no 7026fi 7027rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7028ac_cv_f77_compiler_gnu=$ac_compiler_gnu 7029 7030fi 7031echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 7032echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 7033ac_ext=$ac_save_ext 7034ac_test_FFLAGS=${FFLAGS+set} 7035ac_save_FFLAGS=$FFLAGS 7036FFLAGS= 7037echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 7038echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 7039if test "${ac_cv_prog_f77_g+set}" = set; then 7040 echo $ECHO_N "(cached) $ECHO_C" >&6 7041else 7042 FFLAGS=-g 7043cat >conftest.$ac_ext <<_ACEOF 7044 program main 7045 7046 end 7047_ACEOF 7048rm -f conftest.$ac_objext 7049if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7050 (eval $ac_compile) 2>conftest.er1 7051 ac_status=$? 7052 grep -v '^ *+' conftest.er1 >conftest.err 7053 rm -f conftest.er1 7054 cat conftest.err >&5 7055 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7056 (exit $ac_status); } && 7057 { ac_try='test -z "$ac_f77_werror_flag" 7058 || test ! -s conftest.err' 7059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7060 (eval $ac_try) 2>&5 7061 ac_status=$? 7062 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7063 (exit $ac_status); }; } && 7064 { ac_try='test -s conftest.$ac_objext' 7065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7066 (eval $ac_try) 2>&5 7067 ac_status=$? 7068 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7069 (exit $ac_status); }; }; then 7070 ac_cv_prog_f77_g=yes 7071else 7072 echo "$as_me: failed program was:" >&5 7073sed 's/^/| /' conftest.$ac_ext >&5 7074 7075ac_cv_prog_f77_g=no 7076fi 7077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7078 7079fi 7080echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 7081echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 7082if test "$ac_test_FFLAGS" = set; then 7083 FFLAGS=$ac_save_FFLAGS 7084elif test $ac_cv_prog_f77_g = yes; then 7085 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 7086 FFLAGS="-g -O2" 7087 else 7088 FFLAGS="-g" 7089 fi 7090else 7091 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 7092 FFLAGS="-O2" 7093 else 7094 FFLAGS= 7095 fi 7096fi 7097 7098G77=`test $ac_compiler_gnu = yes && echo yes` 7099ac_ext=c 7100ac_cpp='$CPP $CPPFLAGS' 7101ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7102ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7103ac_compiler_gnu=$ac_cv_c_compiler_gnu 7104 7105 7106 7107# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 7108 7109# find the maximum length of command line arguments 7110echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 7111echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 7112if test "${lt_cv_sys_max_cmd_len+set}" = set; then 7113 echo $ECHO_N "(cached) $ECHO_C" >&6 7114else 7115 i=0 7116 teststring="ABCD" 7117 7118 case $build_os in 7119 msdosdjgpp*) 7120 # On DJGPP, this test can blow up pretty badly due to problems in libc 7121 # (any single argument exceeding 2000 bytes causes a buffer overrun 7122 # during glob expansion). Even if it were fixed, the result of this 7123 # check would be larger than it should be. 7124 lt_cv_sys_max_cmd_len=12288; # 12K is about right 7125 ;; 7126 7127 gnu*) 7128 # Under GNU Hurd, this test is not required because there is 7129 # no limit to the length of command line arguments. 7130 # Libtool will interpret -1 as no limit whatsoever 7131 lt_cv_sys_max_cmd_len=-1; 7132 ;; 7133 7134 cygwin* | mingw*) 7135 # On Win9x/ME, this test blows up -- it succeeds, but takes 7136 # about 5 minutes as the teststring grows exponentially. 7137 # Worse, since 9x/ME are not pre-emptively multitasking, 7138 # you end up with a "frozen" computer, even though with patience 7139 # the test eventually succeeds (with a max line length of 256k). 7140 # Instead, let's just punt: use the minimum linelength reported by 7141 # all of the supported platforms: 8192 (on NT/2K/XP). 7142 lt_cv_sys_max_cmd_len=8192; 7143 ;; 7144 7145 amigaos*) 7146 # On AmigaOS with pdksh, this test takes hours, literally. 7147 # So we just punt and use a minimum line length of 8192. 7148 lt_cv_sys_max_cmd_len=8192; 7149 ;; 7150 7151 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 7152 # This has been around since 386BSD, at least. Likely further. 7153 if test -x /sbin/sysctl; then 7154 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 7155 elif test -x /usr/sbin/sysctl; then 7156 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 7157 else 7158 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 7159 fi 7160 # And add a safety zone 7161 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7162 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7163 ;; 7164 7165 interix*) 7166 # We know the value 262144 and hardcode it with a safety zone (like BSD) 7167 lt_cv_sys_max_cmd_len=196608 7168 ;; 7169 7170 osf*) 7171 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 7172 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 7173 # nice to cause kernel panics so lets avoid the loop below. 7174 # First set a reasonable default. 7175 lt_cv_sys_max_cmd_len=16384 7176 # 7177 if test -x /sbin/sysconfig; then 7178 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 7179 *1*) lt_cv_sys_max_cmd_len=-1 ;; 7180 esac 7181 fi 7182 ;; 7183 sco3.2v5*) 7184 lt_cv_sys_max_cmd_len=102400 7185 ;; 7186 sysv5* | sco5v6* | sysv4.2uw2*) 7187 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 7188 if test -n "$kargmax"; then 7189 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 7190 else 7191 lt_cv_sys_max_cmd_len=32768 7192 fi 7193 ;; 7194 *) 7195 # If test is not a shell built-in, we'll probably end up computing a 7196 # maximum length that is only half of the actual maximum length, but 7197 # we can't tell. 7198 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 7199 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 7200 = "XX$teststring") >/dev/null 2>&1 && 7201 new_result=`expr "X$teststring" : ".*" 2>&1` && 7202 lt_cv_sys_max_cmd_len=$new_result && 7203 test $i != 17 # 1/2 MB should be enough 7204 do 7205 i=`expr $i + 1` 7206 teststring=$teststring$teststring 7207 done 7208 teststring= 7209 # Add a significant safety factor because C++ compilers can tack on massive 7210 # amounts of additional arguments before passing them to the linker. 7211 # It appears as though 1/2 is a usable value. 7212 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 7213 ;; 7214 esac 7215 7216fi 7217 7218if test -n $lt_cv_sys_max_cmd_len ; then 7219 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 7220echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 7221else 7222 echo "$as_me:$LINENO: result: none" >&5 7223echo "${ECHO_T}none" >&6 7224fi 7225 7226 7227 7228 7229# Check for command to grab the raw symbol name followed by C symbol from nm. 7230echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 7231echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 7232if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 7233 echo $ECHO_N "(cached) $ECHO_C" >&6 7234else 7235 7236# These are sane defaults that work on at least a few old systems. 7237# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7238 7239# Character class describing NM global symbol codes. 7240symcode='[BCDEGRST]' 7241 7242# Regexp to match symbols that can be accessed directly from C. 7243sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7244 7245# Transform an extracted symbol line into a proper C declaration 7246lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 7247 7248# Transform an extracted symbol line into symbol name and symbol address 7249lt_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'" 7250 7251# Define system-specific variables. 7252case $host_os in 7253aix*) 7254 symcode='[BCDT]' 7255 ;; 7256cygwin* | mingw* | pw32*) 7257 symcode='[ABCDGISTW]' 7258 ;; 7259hpux*) # Its linker distinguishes data from code symbols 7260 if test "$host_cpu" = ia64; then 7261 symcode='[ABCDEGRST]' 7262 fi 7263 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7264 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'" 7265 ;; 7266linux*) 7267 if test "$host_cpu" = ia64; then 7268 symcode='[ABCDGIRSTW]' 7269 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7270 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'" 7271 fi 7272 ;; 7273irix* | nonstopux*) 7274 symcode='[BCDEGRST]' 7275 ;; 7276osf*) 7277 symcode='[BCDEGQRST]' 7278 ;; 7279solaris*) 7280 symcode='[BDRT]' 7281 ;; 7282sco3.2v5*) 7283 symcode='[DT]' 7284 ;; 7285sysv4.2uw2*) 7286 symcode='[DT]' 7287 ;; 7288sysv5* | sco5v6* | unixware* | OpenUNIX*) 7289 symcode='[ABDT]' 7290 ;; 7291sysv4) 7292 symcode='[DFNSTU]' 7293 ;; 7294esac 7295 7296# Handle CRLF in mingw tool chain 7297opt_cr= 7298case $build_os in 7299mingw*) 7300 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7301 ;; 7302esac 7303 7304# If we're using GNU nm, then use its standard symbol codes. 7305case `$NM -V 2>&1` in 7306*GNU* | *'with BFD'*) 7307 symcode='[ABCDGIRSTW]' ;; 7308esac 7309 7310# Try without a prefix undercore, then with it. 7311for ac_symprfx in "" "_"; do 7312 7313 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7314 symxfrm="\\1 $ac_symprfx\\2 \\2" 7315 7316 # Write the raw and C identifiers. 7317 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7318 7319 # Check to see that the pipe works correctly. 7320 pipe_works=no 7321 7322 rm -f conftest* 7323 cat > conftest.$ac_ext <<EOF 7324#ifdef __cplusplus 7325extern "C" { 7326#endif 7327char nm_test_var; 7328void nm_test_func(){} 7329#ifdef __cplusplus 7330} 7331#endif 7332int main(){nm_test_var='a';nm_test_func();return(0);} 7333EOF 7334 7335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7336 (eval $ac_compile) 2>&5 7337 ac_status=$? 7338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7339 (exit $ac_status); }; then 7340 # Now try to grab the symbols. 7341 nlist=conftest.nm 7342 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 7343 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 7344 ac_status=$? 7345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7346 (exit $ac_status); } && test -s "$nlist"; then 7347 # Try sorting and uniquifying the output. 7348 if sort "$nlist" | uniq > "$nlist"T; then 7349 mv -f "$nlist"T "$nlist" 7350 else 7351 rm -f "$nlist"T 7352 fi 7353 7354 # Make sure that we snagged all the symbols we need. 7355 if grep ' nm_test_var$' "$nlist" >/dev/null; then 7356 if grep ' nm_test_func$' "$nlist" >/dev/null; then 7357 cat <<EOF > conftest.$ac_ext 7358#ifdef __cplusplus 7359extern "C" { 7360#endif 7361 7362EOF 7363 # Now generate the symbol file. 7364 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 7365 7366 cat <<EOF >> conftest.$ac_ext 7367#if defined (__STDC__) && __STDC__ 7368# define lt_ptr_t void * 7369#else 7370# define lt_ptr_t char * 7371# define const 7372#endif 7373 7374/* The mapping between symbol names and symbols. */ 7375const struct { 7376 const char *name; 7377 lt_ptr_t address; 7378} 7379lt_preloaded_symbols[] = 7380{ 7381EOF 7382 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 7383 cat <<\EOF >> conftest.$ac_ext 7384 {0, (lt_ptr_t) 0} 7385}; 7386 7387#ifdef __cplusplus 7388} 7389#endif 7390EOF 7391 # Now try linking the two files. 7392 mv conftest.$ac_objext conftstm.$ac_objext 7393 lt_save_LIBS="$LIBS" 7394 lt_save_CFLAGS="$CFLAGS" 7395 LIBS="conftstm.$ac_objext" 7396 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7398 (eval $ac_link) 2>&5 7399 ac_status=$? 7400 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7401 (exit $ac_status); } && test -s conftest${ac_exeext}; then 7402 pipe_works=yes 7403 fi 7404 LIBS="$lt_save_LIBS" 7405 CFLAGS="$lt_save_CFLAGS" 7406 else 7407 echo "cannot find nm_test_func in $nlist" >&5 7408 fi 7409 else 7410 echo "cannot find nm_test_var in $nlist" >&5 7411 fi 7412 else 7413 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7414 fi 7415 else 7416 echo "$progname: failed program was:" >&5 7417 cat conftest.$ac_ext >&5 7418 fi 7419 rm -f conftest* conftst* 7420 7421 # Do not use the global_symbol_pipe unless it works. 7422 if test "$pipe_works" = yes; then 7423 break 7424 else 7425 lt_cv_sys_global_symbol_pipe= 7426 fi 7427done 7428 7429fi 7430 7431if test -z "$lt_cv_sys_global_symbol_pipe"; then 7432 lt_cv_sys_global_symbol_to_cdecl= 7433fi 7434if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7435 echo "$as_me:$LINENO: result: failed" >&5 7436echo "${ECHO_T}failed" >&6 7437else 7438 echo "$as_me:$LINENO: result: ok" >&5 7439echo "${ECHO_T}ok" >&6 7440fi 7441 7442echo "$as_me:$LINENO: checking for objdir" >&5 7443echo $ECHO_N "checking for objdir... $ECHO_C" >&6 7444if test "${lt_cv_objdir+set}" = set; then 7445 echo $ECHO_N "(cached) $ECHO_C" >&6 7446else 7447 rm -f .libs 2>/dev/null 7448mkdir .libs 2>/dev/null 7449if test -d .libs; then 7450 lt_cv_objdir=.libs 7451else 7452 # MS-DOS does not allow filenames that begin with a dot. 7453 lt_cv_objdir=_libs 7454fi 7455rmdir .libs 2>/dev/null 7456fi 7457echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 7458echo "${ECHO_T}$lt_cv_objdir" >&6 7459objdir=$lt_cv_objdir 7460 7461 7462 7463 7464 7465case $host_os in 7466aix3*) 7467 # AIX sometimes has problems with the GCC collect2 program. For some 7468 # reason, if we set the COLLECT_NAMES environment variable, the problems 7469 # vanish in a puff of smoke. 7470 if test "X${COLLECT_NAMES+set}" != Xset; then 7471 COLLECT_NAMES= 7472 export COLLECT_NAMES 7473 fi 7474 ;; 7475esac 7476 7477# Sed substitution that helps us do robust quoting. It backslashifies 7478# metacharacters that are still active within double-quoted strings. 7479Xsed='sed -e 1s/^X//' 7480sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 7481 7482# Same as above, but do not quote variable references. 7483double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 7484 7485# Sed substitution to delay expansion of an escaped shell variable in a 7486# double_quote_subst'ed string. 7487delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7488 7489# Sed substitution to avoid accidental globbing in evaled expressions 7490no_glob_subst='s/\*/\\\*/g' 7491 7492# Constants: 7493rm="rm -f" 7494 7495# Global variables: 7496default_ofile=libtool 7497can_build_shared=yes 7498 7499# All known linkers require a `.a' archive for static linking (except MSVC, 7500# which needs '.lib'). 7501libext=a 7502ltmain="$ac_aux_dir/ltmain.sh" 7503ofile="$default_ofile" 7504with_gnu_ld="$lt_cv_prog_gnu_ld" 7505 7506if test -n "$ac_tool_prefix"; then 7507 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 7508set dummy ${ac_tool_prefix}ar; ac_word=$2 7509echo "$as_me:$LINENO: checking for $ac_word" >&5 7510echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7511if test "${ac_cv_prog_AR+set}" = set; then 7512 echo $ECHO_N "(cached) $ECHO_C" >&6 7513else 7514 if test -n "$AR"; then 7515 ac_cv_prog_AR="$AR" # Let the user override the test. 7516else 7517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7518for as_dir in $PATH 7519do 7520 IFS=$as_save_IFS 7521 test -z "$as_dir" && as_dir=. 7522 for ac_exec_ext in '' $ac_executable_extensions; do 7523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7524 ac_cv_prog_AR="${ac_tool_prefix}ar" 7525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7526 break 2 7527 fi 7528done 7529done 7530 7531fi 7532fi 7533AR=$ac_cv_prog_AR 7534if test -n "$AR"; then 7535 echo "$as_me:$LINENO: result: $AR" >&5 7536echo "${ECHO_T}$AR" >&6 7537else 7538 echo "$as_me:$LINENO: result: no" >&5 7539echo "${ECHO_T}no" >&6 7540fi 7541 7542fi 7543if test -z "$ac_cv_prog_AR"; then 7544 ac_ct_AR=$AR 7545 # Extract the first word of "ar", so it can be a program name with args. 7546set dummy ar; ac_word=$2 7547echo "$as_me:$LINENO: checking for $ac_word" >&5 7548echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7549if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 7550 echo $ECHO_N "(cached) $ECHO_C" >&6 7551else 7552 if test -n "$ac_ct_AR"; then 7553 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7554else 7555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7556for as_dir in $PATH 7557do 7558 IFS=$as_save_IFS 7559 test -z "$as_dir" && as_dir=. 7560 for ac_exec_ext in '' $ac_executable_extensions; do 7561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7562 ac_cv_prog_ac_ct_AR="ar" 7563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7564 break 2 7565 fi 7566done 7567done 7568 7569 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" 7570fi 7571fi 7572ac_ct_AR=$ac_cv_prog_ac_ct_AR 7573if test -n "$ac_ct_AR"; then 7574 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 7575echo "${ECHO_T}$ac_ct_AR" >&6 7576else 7577 echo "$as_me:$LINENO: result: no" >&5 7578echo "${ECHO_T}no" >&6 7579fi 7580 7581 AR=$ac_ct_AR 7582else 7583 AR="$ac_cv_prog_AR" 7584fi 7585 7586if test -n "$ac_tool_prefix"; then 7587 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7588set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7589echo "$as_me:$LINENO: checking for $ac_word" >&5 7590echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7591if test "${ac_cv_prog_RANLIB+set}" = set; then 7592 echo $ECHO_N "(cached) $ECHO_C" >&6 7593else 7594 if test -n "$RANLIB"; then 7595 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7596else 7597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7598for as_dir in $PATH 7599do 7600 IFS=$as_save_IFS 7601 test -z "$as_dir" && as_dir=. 7602 for ac_exec_ext in '' $ac_executable_extensions; do 7603 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7604 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7606 break 2 7607 fi 7608done 7609done 7610 7611fi 7612fi 7613RANLIB=$ac_cv_prog_RANLIB 7614if test -n "$RANLIB"; then 7615 echo "$as_me:$LINENO: result: $RANLIB" >&5 7616echo "${ECHO_T}$RANLIB" >&6 7617else 7618 echo "$as_me:$LINENO: result: no" >&5 7619echo "${ECHO_T}no" >&6 7620fi 7621 7622fi 7623if test -z "$ac_cv_prog_RANLIB"; then 7624 ac_ct_RANLIB=$RANLIB 7625 # Extract the first word of "ranlib", so it can be a program name with args. 7626set dummy ranlib; ac_word=$2 7627echo "$as_me:$LINENO: checking for $ac_word" >&5 7628echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7629if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 7630 echo $ECHO_N "(cached) $ECHO_C" >&6 7631else 7632 if test -n "$ac_ct_RANLIB"; then 7633 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7634else 7635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7636for as_dir in $PATH 7637do 7638 IFS=$as_save_IFS 7639 test -z "$as_dir" && as_dir=. 7640 for ac_exec_ext in '' $ac_executable_extensions; do 7641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7642 ac_cv_prog_ac_ct_RANLIB="ranlib" 7643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7644 break 2 7645 fi 7646done 7647done 7648 7649 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 7650fi 7651fi 7652ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7653if test -n "$ac_ct_RANLIB"; then 7654 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 7655echo "${ECHO_T}$ac_ct_RANLIB" >&6 7656else 7657 echo "$as_me:$LINENO: result: no" >&5 7658echo "${ECHO_T}no" >&6 7659fi 7660 7661 RANLIB=$ac_ct_RANLIB 7662else 7663 RANLIB="$ac_cv_prog_RANLIB" 7664fi 7665 7666if test -n "$ac_tool_prefix"; then 7667 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7668set dummy ${ac_tool_prefix}strip; ac_word=$2 7669echo "$as_me:$LINENO: checking for $ac_word" >&5 7670echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7671if test "${ac_cv_prog_STRIP+set}" = set; then 7672 echo $ECHO_N "(cached) $ECHO_C" >&6 7673else 7674 if test -n "$STRIP"; then 7675 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7676else 7677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7678for as_dir in $PATH 7679do 7680 IFS=$as_save_IFS 7681 test -z "$as_dir" && as_dir=. 7682 for ac_exec_ext in '' $ac_executable_extensions; do 7683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7684 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7686 break 2 7687 fi 7688done 7689done 7690 7691fi 7692fi 7693STRIP=$ac_cv_prog_STRIP 7694if test -n "$STRIP"; then 7695 echo "$as_me:$LINENO: result: $STRIP" >&5 7696echo "${ECHO_T}$STRIP" >&6 7697else 7698 echo "$as_me:$LINENO: result: no" >&5 7699echo "${ECHO_T}no" >&6 7700fi 7701 7702fi 7703if test -z "$ac_cv_prog_STRIP"; then 7704 ac_ct_STRIP=$STRIP 7705 # Extract the first word of "strip", so it can be a program name with args. 7706set dummy strip; ac_word=$2 7707echo "$as_me:$LINENO: checking for $ac_word" >&5 7708echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7709if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 7710 echo $ECHO_N "(cached) $ECHO_C" >&6 7711else 7712 if test -n "$ac_ct_STRIP"; then 7713 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7714else 7715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7716for as_dir in $PATH 7717do 7718 IFS=$as_save_IFS 7719 test -z "$as_dir" && as_dir=. 7720 for ac_exec_ext in '' $ac_executable_extensions; do 7721 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7722 ac_cv_prog_ac_ct_STRIP="strip" 7723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7724 break 2 7725 fi 7726done 7727done 7728 7729 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 7730fi 7731fi 7732ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7733if test -n "$ac_ct_STRIP"; then 7734 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 7735echo "${ECHO_T}$ac_ct_STRIP" >&6 7736else 7737 echo "$as_me:$LINENO: result: no" >&5 7738echo "${ECHO_T}no" >&6 7739fi 7740 7741 STRIP=$ac_ct_STRIP 7742else 7743 STRIP="$ac_cv_prog_STRIP" 7744fi 7745 7746 7747old_CC="$CC" 7748old_CFLAGS="$CFLAGS" 7749 7750# Set sane defaults for various variables 7751test -z "$AR" && AR=ar 7752test -z "$AR_FLAGS" && AR_FLAGS=cru 7753test -z "$AS" && AS=as 7754test -z "$CC" && CC=cc 7755test -z "$LTCC" && LTCC=$CC 7756test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7757test -z "$DLLTOOL" && DLLTOOL=dlltool 7758test -z "$LD" && LD=ld 7759test -z "$LN_S" && LN_S="ln -s" 7760test -z "$MAGIC_CMD" && MAGIC_CMD=file 7761test -z "$NM" && NM=nm 7762test -z "$SED" && SED=sed 7763test -z "$OBJDUMP" && OBJDUMP=objdump 7764test -z "$RANLIB" && RANLIB=: 7765test -z "$STRIP" && STRIP=: 7766test -z "$ac_objext" && ac_objext=o 7767 7768# Determine commands to create old-style static archives. 7769old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 7770old_postinstall_cmds='chmod 644 $oldlib' 7771old_postuninstall_cmds= 7772 7773if test -n "$RANLIB"; then 7774 case $host_os in 7775 openbsd*) 7776 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 7777 ;; 7778 *) 7779 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 7780 ;; 7781 esac 7782 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 7783fi 7784 7785for cc_temp in $compiler""; do 7786 case $cc_temp in 7787 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7788 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7789 \-*) ;; 7790 *) break;; 7791 esac 7792done 7793cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7794 7795 7796# Only perform the check for file, if the check method requires it 7797case $deplibs_check_method in 7798file_magic*) 7799 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7800 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 7801echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 7802if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7803 echo $ECHO_N "(cached) $ECHO_C" >&6 7804else 7805 case $MAGIC_CMD in 7806[\\/*] | ?:[\\/]*) 7807 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7808 ;; 7809*) 7810 lt_save_MAGIC_CMD="$MAGIC_CMD" 7811 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7812 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7813 for ac_dir in $ac_dummy; do 7814 IFS="$lt_save_ifs" 7815 test -z "$ac_dir" && ac_dir=. 7816 if test -f $ac_dir/${ac_tool_prefix}file; then 7817 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7818 if test -n "$file_magic_test_file"; then 7819 case $deplibs_check_method in 7820 "file_magic "*) 7821 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7822 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7823 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7824 $EGREP "$file_magic_regex" > /dev/null; then 7825 : 7826 else 7827 cat <<EOF 1>&2 7828 7829*** Warning: the command libtool uses to detect shared libraries, 7830*** $file_magic_cmd, produces output that libtool cannot recognize. 7831*** The result is that libtool may fail to recognize shared libraries 7832*** as such. This will affect the creation of libtool libraries that 7833*** depend on shared libraries, but programs linked with such libtool 7834*** libraries will work regardless of this problem. Nevertheless, you 7835*** may want to report the problem to your system manager and/or to 7836*** bug-libtool@gnu.org 7837 7838EOF 7839 fi ;; 7840 esac 7841 fi 7842 break 7843 fi 7844 done 7845 IFS="$lt_save_ifs" 7846 MAGIC_CMD="$lt_save_MAGIC_CMD" 7847 ;; 7848esac 7849fi 7850 7851MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7852if test -n "$MAGIC_CMD"; then 7853 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7854echo "${ECHO_T}$MAGIC_CMD" >&6 7855else 7856 echo "$as_me:$LINENO: result: no" >&5 7857echo "${ECHO_T}no" >&6 7858fi 7859 7860if test -z "$lt_cv_path_MAGIC_CMD"; then 7861 if test -n "$ac_tool_prefix"; then 7862 echo "$as_me:$LINENO: checking for file" >&5 7863echo $ECHO_N "checking for file... $ECHO_C" >&6 7864if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7865 echo $ECHO_N "(cached) $ECHO_C" >&6 7866else 7867 case $MAGIC_CMD in 7868[\\/*] | ?:[\\/]*) 7869 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7870 ;; 7871*) 7872 lt_save_MAGIC_CMD="$MAGIC_CMD" 7873 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7874 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7875 for ac_dir in $ac_dummy; do 7876 IFS="$lt_save_ifs" 7877 test -z "$ac_dir" && ac_dir=. 7878 if test -f $ac_dir/file; then 7879 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7880 if test -n "$file_magic_test_file"; then 7881 case $deplibs_check_method in 7882 "file_magic "*) 7883 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7884 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7885 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7886 $EGREP "$file_magic_regex" > /dev/null; then 7887 : 7888 else 7889 cat <<EOF 1>&2 7890 7891*** Warning: the command libtool uses to detect shared libraries, 7892*** $file_magic_cmd, produces output that libtool cannot recognize. 7893*** The result is that libtool may fail to recognize shared libraries 7894*** as such. This will affect the creation of libtool libraries that 7895*** depend on shared libraries, but programs linked with such libtool 7896*** libraries will work regardless of this problem. Nevertheless, you 7897*** may want to report the problem to your system manager and/or to 7898*** bug-libtool@gnu.org 7899 7900EOF 7901 fi ;; 7902 esac 7903 fi 7904 break 7905 fi 7906 done 7907 IFS="$lt_save_ifs" 7908 MAGIC_CMD="$lt_save_MAGIC_CMD" 7909 ;; 7910esac 7911fi 7912 7913MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7914if test -n "$MAGIC_CMD"; then 7915 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7916echo "${ECHO_T}$MAGIC_CMD" >&6 7917else 7918 echo "$as_me:$LINENO: result: no" >&5 7919echo "${ECHO_T}no" >&6 7920fi 7921 7922 else 7923 MAGIC_CMD=: 7924 fi 7925fi 7926 7927 fi 7928 ;; 7929esac 7930 7931enable_dlopen=no 7932enable_win32_dll=no 7933 7934# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 7935if test "${enable_libtool_lock+set}" = set; then 7936 enableval="$enable_libtool_lock" 7937 7938fi; 7939test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7940 7941 7942# Check whether --with-pic or --without-pic was given. 7943if test "${with_pic+set}" = set; then 7944 withval="$with_pic" 7945 pic_mode="$withval" 7946else 7947 pic_mode=default 7948fi; 7949test -z "$pic_mode" && pic_mode=default 7950 7951# Use C for the default configuration in the libtool script 7952tagname= 7953lt_save_CC="$CC" 7954ac_ext=c 7955ac_cpp='$CPP $CPPFLAGS' 7956ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7957ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7958ac_compiler_gnu=$ac_cv_c_compiler_gnu 7959 7960 7961# Source file extension for C test sources. 7962ac_ext=c 7963 7964# Object file extension for compiled C test sources. 7965objext=o 7966objext=$objext 7967 7968# Code to be used in simple compile tests 7969lt_simple_compile_test_code="int some_variable = 0;\n" 7970 7971# Code to be used in simple link tests 7972lt_simple_link_test_code='int main(){return(0);}\n' 7973 7974 7975# If no C compiler was specified, use CC. 7976LTCC=${LTCC-"$CC"} 7977 7978# If no C compiler flags were specified, use CFLAGS. 7979LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7980 7981# Allow CC to be a program name with arguments. 7982compiler=$CC 7983 7984 7985# save warnings/boilerplate of simple test code 7986ac_outfile=conftest.$ac_objext 7987printf "$lt_simple_compile_test_code" >conftest.$ac_ext 7988eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7989_lt_compiler_boilerplate=`cat conftest.err` 7990$rm conftest* 7991 7992ac_outfile=conftest.$ac_objext 7993printf "$lt_simple_link_test_code" >conftest.$ac_ext 7994eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7995_lt_linker_boilerplate=`cat conftest.err` 7996$rm conftest* 7997 7998 7999## CAVEAT EMPTOR: 8000## There is no encapsulation within the following macros, do not change 8001## the running order or otherwise move them around unless you know exactly 8002## what you are doing... 8003 8004lt_prog_compiler_no_builtin_flag= 8005 8006if test "$GCC" = yes; then 8007 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 8008 8009 8010echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8011echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 8012if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 8013 echo $ECHO_N "(cached) $ECHO_C" >&6 8014else 8015 lt_cv_prog_compiler_rtti_exceptions=no 8016 ac_outfile=conftest.$ac_objext 8017 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8018 lt_compiler_flag="-fno-rtti -fno-exceptions" 8019 # Insert the option either (1) after the last *FLAGS variable, or 8020 # (2) before a word containing "conftest.", or (3) at the end. 8021 # Note that $ac_compile itself does not contain backslashes and begins 8022 # with a dollar sign (not a hyphen), so the echo should work correctly. 8023 # The option is referenced via a variable to avoid confusing sed. 8024 lt_compile=`echo "$ac_compile" | $SED \ 8025 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8026 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8027 -e 's:$: $lt_compiler_flag:'` 8028 (eval echo "\"\$as_me:8028: $lt_compile\"" >&5) 8029 (eval "$lt_compile" 2>conftest.err) 8030 ac_status=$? 8031 cat conftest.err >&5 8032 echo "$as_me:8032: \$? = $ac_status" >&5 8033 if (exit $ac_status) && test -s "$ac_outfile"; then 8034 # The compiler can only warn and ignore the option if not recognized 8035 # So say no if there are warnings other than the usual output. 8036 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8037 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8038 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8039 lt_cv_prog_compiler_rtti_exceptions=yes 8040 fi 8041 fi 8042 $rm conftest* 8043 8044fi 8045echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8046echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 8047 8048if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8049 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8050else 8051 : 8052fi 8053 8054fi 8055 8056lt_prog_compiler_wl= 8057lt_prog_compiler_pic= 8058lt_prog_compiler_static= 8059 8060echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 8061echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 8062 8063 if test "$GCC" = yes; then 8064 lt_prog_compiler_wl='-Wl,' 8065 lt_prog_compiler_static='-static' 8066 8067 case $host_os in 8068 aix*) 8069 # All AIX code is PIC. 8070 if test "$host_cpu" = ia64; then 8071 # AIX 5 now supports IA64 processor 8072 lt_prog_compiler_static='-Bstatic' 8073 fi 8074 ;; 8075 8076 amigaos*) 8077 # FIXME: we need at least 68020 code to build shared libraries, but 8078 # adding the `-m68020' flag to GCC prevents building anything better, 8079 # like `-m68040'. 8080 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8081 ;; 8082 8083 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8084 # PIC is the default for these OSes. 8085 ;; 8086 8087 mingw* | pw32* | os2*) 8088 # This hack is so that the source file can tell whether it is being 8089 # built for inclusion in a dll (and should export symbols for example). 8090 lt_prog_compiler_pic='-DDLL_EXPORT' 8091 ;; 8092 8093 darwin* | rhapsody*) 8094 # PIC is the default on this platform 8095 # Common symbols not allowed in MH_DYLIB files 8096 lt_prog_compiler_pic='-fno-common' 8097 ;; 8098 8099 interix3*) 8100 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8101 # Instead, we relocate shared libraries at runtime. 8102 ;; 8103 8104 msdosdjgpp*) 8105 # Just because we use GCC doesn't mean we suddenly get shared libraries 8106 # on systems that don't support them. 8107 lt_prog_compiler_can_build_shared=no 8108 enable_shared=no 8109 ;; 8110 8111 sysv4*MP*) 8112 if test -d /usr/nec; then 8113 lt_prog_compiler_pic=-Kconform_pic 8114 fi 8115 ;; 8116 8117 hpux*) 8118 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8119 # not for PA HP-UX. 8120 case $host_cpu in 8121 hppa*64*|ia64*) 8122 # +Z the default 8123 ;; 8124 *) 8125 lt_prog_compiler_pic='-fPIC' 8126 ;; 8127 esac 8128 ;; 8129 8130 *) 8131 lt_prog_compiler_pic='-fPIC' 8132 ;; 8133 esac 8134 else 8135 # PORTME Check for flag to pass linker flags through the system compiler. 8136 case $host_os in 8137 aix*) 8138 lt_prog_compiler_wl='-Wl,' 8139 if test "$host_cpu" = ia64; then 8140 # AIX 5 now supports IA64 processor 8141 lt_prog_compiler_static='-Bstatic' 8142 else 8143 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8144 fi 8145 ;; 8146 darwin*) 8147 # PIC is the default on this platform 8148 # Common symbols not allowed in MH_DYLIB files 8149 case $cc_basename in 8150 xlc*) 8151 lt_prog_compiler_pic='-qnocommon' 8152 lt_prog_compiler_wl='-Wl,' 8153 ;; 8154 esac 8155 ;; 8156 8157 mingw* | pw32* | os2*) 8158 # This hack is so that the source file can tell whether it is being 8159 # built for inclusion in a dll (and should export symbols for example). 8160 lt_prog_compiler_pic='-DDLL_EXPORT' 8161 ;; 8162 8163 hpux9* | hpux10* | hpux11*) 8164 lt_prog_compiler_wl='-Wl,' 8165 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8166 # not for PA HP-UX. 8167 case $host_cpu in 8168 hppa*64*|ia64*) 8169 # +Z the default 8170 ;; 8171 *) 8172 lt_prog_compiler_pic='+Z' 8173 ;; 8174 esac 8175 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8176 lt_prog_compiler_static='${wl}-a ${wl}archive' 8177 ;; 8178 8179 irix5* | irix6* | nonstopux*) 8180 lt_prog_compiler_wl='-Wl,' 8181 # PIC (with -KPIC) is the default. 8182 lt_prog_compiler_static='-non_shared' 8183 ;; 8184 8185 newsos6) 8186 lt_prog_compiler_pic='-KPIC' 8187 lt_prog_compiler_static='-Bstatic' 8188 ;; 8189 8190 linux*) 8191 case $cc_basename in 8192 icc* | ecc*) 8193 lt_prog_compiler_wl='-Wl,' 8194 lt_prog_compiler_pic='-KPIC' 8195 lt_prog_compiler_static='-static' 8196 ;; 8197 pgcc* | pgf77* | pgf90* | pgf95*) 8198 # Portland Group compilers (*not* the Pentium gcc compiler, 8199 # which looks to be a dead project) 8200 lt_prog_compiler_wl='-Wl,' 8201 lt_prog_compiler_pic='-fpic' 8202 lt_prog_compiler_static='-Bstatic' 8203 ;; 8204 ccc*) 8205 lt_prog_compiler_wl='-Wl,' 8206 # All Alpha code is PIC. 8207 lt_prog_compiler_static='-non_shared' 8208 ;; 8209 esac 8210 ;; 8211 8212 osf3* | osf4* | osf5*) 8213 lt_prog_compiler_wl='-Wl,' 8214 # All OSF/1 code is PIC. 8215 lt_prog_compiler_static='-non_shared' 8216 ;; 8217 8218 solaris*) 8219 lt_prog_compiler_pic='-KPIC' 8220 lt_prog_compiler_static='-Bstatic' 8221 case $cc_basename in 8222 f77* | f90* | f95*) 8223 lt_prog_compiler_wl='-Qoption ld ';; 8224 *) 8225 lt_prog_compiler_wl='-Wl,';; 8226 esac 8227 ;; 8228 8229 sunos4*) 8230 lt_prog_compiler_wl='-Qoption ld ' 8231 lt_prog_compiler_pic='-PIC' 8232 lt_prog_compiler_static='-Bstatic' 8233 ;; 8234 8235 sysv4 | sysv4.2uw2* | sysv4.3*) 8236 lt_prog_compiler_wl='-Wl,' 8237 lt_prog_compiler_pic='-KPIC' 8238 lt_prog_compiler_static='-Bstatic' 8239 ;; 8240 8241 sysv4*MP*) 8242 if test -d /usr/nec ;then 8243 lt_prog_compiler_pic='-Kconform_pic' 8244 lt_prog_compiler_static='-Bstatic' 8245 fi 8246 ;; 8247 8248 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8249 lt_prog_compiler_wl='-Wl,' 8250 lt_prog_compiler_pic='-KPIC' 8251 lt_prog_compiler_static='-Bstatic' 8252 ;; 8253 8254 unicos*) 8255 lt_prog_compiler_wl='-Wl,' 8256 lt_prog_compiler_can_build_shared=no 8257 ;; 8258 8259 uts4*) 8260 lt_prog_compiler_pic='-pic' 8261 lt_prog_compiler_static='-Bstatic' 8262 ;; 8263 8264 *) 8265 lt_prog_compiler_can_build_shared=no 8266 ;; 8267 esac 8268 fi 8269 8270echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 8271echo "${ECHO_T}$lt_prog_compiler_pic" >&6 8272 8273# 8274# Check to make sure the PIC flag actually works. 8275# 8276if test -n "$lt_prog_compiler_pic"; then 8277 8278echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8279echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 8280if test "${lt_prog_compiler_pic_works+set}" = set; then 8281 echo $ECHO_N "(cached) $ECHO_C" >&6 8282else 8283 lt_prog_compiler_pic_works=no 8284 ac_outfile=conftest.$ac_objext 8285 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8286 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8287 # Insert the option either (1) after the last *FLAGS variable, or 8288 # (2) before a word containing "conftest.", or (3) at the end. 8289 # Note that $ac_compile itself does not contain backslashes and begins 8290 # with a dollar sign (not a hyphen), so the echo should work correctly. 8291 # The option is referenced via a variable to avoid confusing sed. 8292 lt_compile=`echo "$ac_compile" | $SED \ 8293 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8294 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8295 -e 's:$: $lt_compiler_flag:'` 8296 (eval echo "\"\$as_me:8296: $lt_compile\"" >&5) 8297 (eval "$lt_compile" 2>conftest.err) 8298 ac_status=$? 8299 cat conftest.err >&5 8300 echo "$as_me:8300: \$? = $ac_status" >&5 8301 if (exit $ac_status) && test -s "$ac_outfile"; then 8302 # The compiler can only warn and ignore the option if not recognized 8303 # So say no if there are warnings other than the usual output. 8304 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8305 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8306 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8307 lt_prog_compiler_pic_works=yes 8308 fi 8309 fi 8310 $rm conftest* 8311 8312fi 8313echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 8314echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 8315 8316if test x"$lt_prog_compiler_pic_works" = xyes; then 8317 case $lt_prog_compiler_pic in 8318 "" | " "*) ;; 8319 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8320 esac 8321else 8322 lt_prog_compiler_pic= 8323 lt_prog_compiler_can_build_shared=no 8324fi 8325 8326fi 8327case $host_os in 8328 # For platforms which do not support PIC, -DPIC is meaningless: 8329 *djgpp*) 8330 lt_prog_compiler_pic= 8331 ;; 8332 *) 8333 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8334 ;; 8335esac 8336 8337# 8338# Check to make sure the static flag actually works. 8339# 8340wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8341echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8342echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 8343if test "${lt_prog_compiler_static_works+set}" = set; then 8344 echo $ECHO_N "(cached) $ECHO_C" >&6 8345else 8346 lt_prog_compiler_static_works=no 8347 save_LDFLAGS="$LDFLAGS" 8348 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8349 printf "$lt_simple_link_test_code" > conftest.$ac_ext 8350 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8351 # The linker can only warn and ignore the option if not recognized 8352 # So say no if there are warnings 8353 if test -s conftest.err; then 8354 # Append any errors to the config.log. 8355 cat conftest.err 1>&5 8356 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 8357 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8358 if diff conftest.exp conftest.er2 >/dev/null; then 8359 lt_prog_compiler_static_works=yes 8360 fi 8361 else 8362 lt_prog_compiler_static_works=yes 8363 fi 8364 fi 8365 $rm conftest* 8366 LDFLAGS="$save_LDFLAGS" 8367 8368fi 8369echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 8370echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 8371 8372if test x"$lt_prog_compiler_static_works" = xyes; then 8373 : 8374else 8375 lt_prog_compiler_static= 8376fi 8377 8378 8379echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 8380echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 8381if test "${lt_cv_prog_compiler_c_o+set}" = set; then 8382 echo $ECHO_N "(cached) $ECHO_C" >&6 8383else 8384 lt_cv_prog_compiler_c_o=no 8385 $rm -r conftest 2>/dev/null 8386 mkdir conftest 8387 cd conftest 8388 mkdir out 8389 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8390 8391 lt_compiler_flag="-o out/conftest2.$ac_objext" 8392 # Insert the option either (1) after the last *FLAGS variable, or 8393 # (2) before a word containing "conftest.", or (3) at the end. 8394 # Note that $ac_compile itself does not contain backslashes and begins 8395 # with a dollar sign (not a hyphen), so the echo should work correctly. 8396 lt_compile=`echo "$ac_compile" | $SED \ 8397 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8398 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8399 -e 's:$: $lt_compiler_flag:'` 8400 (eval echo "\"\$as_me:8400: $lt_compile\"" >&5) 8401 (eval "$lt_compile" 2>out/conftest.err) 8402 ac_status=$? 8403 cat out/conftest.err >&5 8404 echo "$as_me:8404: \$? = $ac_status" >&5 8405 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8406 then 8407 # The compiler can only warn and ignore the option if not recognized 8408 # So say no if there are warnings 8409 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8410 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8411 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8412 lt_cv_prog_compiler_c_o=yes 8413 fi 8414 fi 8415 chmod u+w . 2>&5 8416 $rm conftest* 8417 # SGI C++ compiler will create directory out/ii_files/ for 8418 # template instantiation 8419 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 8420 $rm out/* && rmdir out 8421 cd .. 8422 rmdir conftest 8423 $rm conftest* 8424 8425fi 8426echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 8427echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 8428 8429 8430hard_links="nottested" 8431if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8432 # do not overwrite the value of need_locks provided by the user 8433 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 8434echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 8435 hard_links=yes 8436 $rm conftest* 8437 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8438 touch conftest.a 8439 ln conftest.a conftest.b 2>&5 || hard_links=no 8440 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8441 echo "$as_me:$LINENO: result: $hard_links" >&5 8442echo "${ECHO_T}$hard_links" >&6 8443 if test "$hard_links" = no; then 8444 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8445echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8446 need_locks=warn 8447 fi 8448else 8449 need_locks=no 8450fi 8451 8452echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8453echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 8454 8455 runpath_var= 8456 allow_undefined_flag= 8457 enable_shared_with_static_runtimes=no 8458 archive_cmds= 8459 archive_expsym_cmds= 8460 old_archive_From_new_cmds= 8461 old_archive_from_expsyms_cmds= 8462 export_dynamic_flag_spec= 8463 whole_archive_flag_spec= 8464 thread_safe_flag_spec= 8465 hardcode_libdir_flag_spec= 8466 hardcode_libdir_flag_spec_ld= 8467 hardcode_libdir_separator= 8468 hardcode_direct=no 8469 hardcode_minus_L=no 8470 hardcode_shlibpath_var=unsupported 8471 link_all_deplibs=unknown 8472 hardcode_automatic=no 8473 module_cmds= 8474 module_expsym_cmds= 8475 always_export_symbols=no 8476 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8477 # include_expsyms should be a list of space-separated symbols to be *always* 8478 # included in the symbol list 8479 include_expsyms= 8480 # exclude_expsyms can be an extended regexp of symbols to exclude 8481 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8482 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8483 # as well as any symbol that contains `d'. 8484 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 8485 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8486 # platforms (ab)use it in PIC code, but their linkers get confused if 8487 # the symbol is explicitly referenced. Since portable code cannot 8488 # rely on this symbol name, it's probably fine to never include it in 8489 # preloaded symbol tables. 8490 extract_expsyms_cmds= 8491 # Just being paranoid about ensuring that cc_basename is set. 8492 for cc_temp in $compiler""; do 8493 case $cc_temp in 8494 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8495 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8496 \-*) ;; 8497 *) break;; 8498 esac 8499done 8500cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8501 8502 case $host_os in 8503 cygwin* | mingw* | pw32*) 8504 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8505 # When not using gcc, we currently assume that we are using 8506 # Microsoft Visual C++. 8507 if test "$GCC" != yes; then 8508 with_gnu_ld=no 8509 fi 8510 ;; 8511 interix*) 8512 # we just hope/assume this is gcc and not c89 (= MSVC++) 8513 with_gnu_ld=yes 8514 ;; 8515 openbsd*) 8516 with_gnu_ld=no 8517 ;; 8518 esac 8519 8520 ld_shlibs=yes 8521 if test "$with_gnu_ld" = yes; then 8522 # If archive_cmds runs LD, not CC, wlarc should be empty 8523 wlarc='${wl}' 8524 8525 # Set some defaults for GNU ld with shared library support. These 8526 # are reset later if shared libraries are not supported. Putting them 8527 # here allows them to be overridden if necessary. 8528 runpath_var=LD_RUN_PATH 8529 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 8530 export_dynamic_flag_spec='${wl}--export-dynamic' 8531 # ancient GNU ld didn't support --whole-archive et. al. 8532 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 8533 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8534 else 8535 whole_archive_flag_spec= 8536 fi 8537 supports_anon_versioning=no 8538 case `$LD -v 2>/dev/null` in 8539 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8540 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8541 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8542 *\ 2.11.*) ;; # other 2.11 versions 8543 *) supports_anon_versioning=yes ;; 8544 esac 8545 8546 # See if GNU ld supports shared libraries. 8547 case $host_os in 8548 aix3* | aix4* | aix5*) 8549 # On AIX/PPC, the GNU linker is very broken 8550 if test "$host_cpu" != ia64; then 8551 ld_shlibs=no 8552 cat <<EOF 1>&2 8553 8554*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8555*** to be unable to reliably create shared libraries on AIX. 8556*** Therefore, libtool is disabling shared libraries support. If you 8557*** really care for shared libraries, you may want to modify your PATH 8558*** so that a non-GNU linker is found, and then restart. 8559 8560EOF 8561 fi 8562 ;; 8563 8564 amigaos*) 8565 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)' 8566 hardcode_libdir_flag_spec='-L$libdir' 8567 hardcode_minus_L=yes 8568 8569 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 8570 # that the semantics of dynamic libraries on AmigaOS, at least up 8571 # to version 4, is to share data among multiple programs linked 8572 # with the same dynamic library. Since this doesn't match the 8573 # behavior of shared libraries on other platforms, we can't use 8574 # them. 8575 ld_shlibs=no 8576 ;; 8577 8578 beos*) 8579 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8580 allow_undefined_flag=unsupported 8581 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8582 # support --undefined. This deserves some investigation. FIXME 8583 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8584 else 8585 ld_shlibs=no 8586 fi 8587 ;; 8588 8589 cygwin* | mingw* | pw32*) 8590 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8591 # as there is no search path for DLLs. 8592 hardcode_libdir_flag_spec='-L$libdir' 8593 allow_undefined_flag=unsupported 8594 always_export_symbols=no 8595 enable_shared_with_static_runtimes=yes 8596 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 8597 8598 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 8599 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8600 # If the export-symbols file already is a .def file (1st line 8601 # is EXPORTS), use it as is; otherwise, prepend... 8602 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8603 cp $export_symbols $output_objdir/$soname.def; 8604 else 8605 echo EXPORTS > $output_objdir/$soname.def; 8606 cat $export_symbols >> $output_objdir/$soname.def; 8607 fi~ 8608 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8609 else 8610 ld_shlibs=no 8611 fi 8612 ;; 8613 8614 interix3*) 8615 hardcode_direct=no 8616 hardcode_shlibpath_var=no 8617 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8618 export_dynamic_flag_spec='${wl}-E' 8619 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8620 # Instead, shared libraries are loaded at an image base (0x10000000 by 8621 # default) and relocated if they conflict, which is a slow very memory 8622 # consuming and fragmenting process. To avoid this, we pick a random, 8623 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8624 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8625 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8626 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' 8627 ;; 8628 8629 linux*) 8630 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8631 tmp_addflag= 8632 case $cc_basename,$host_cpu in 8633 pgcc*) # Portland Group C compiler 8634 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' 8635 tmp_addflag=' $pic_flag' 8636 ;; 8637 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8638 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' 8639 tmp_addflag=' $pic_flag -Mnomain' ;; 8640 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8641 tmp_addflag=' -i_dynamic' ;; 8642 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8643 tmp_addflag=' -i_dynamic -nofor_main' ;; 8644 ifc* | ifort*) # Intel Fortran compiler 8645 tmp_addflag=' -nofor_main' ;; 8646 esac 8647 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8648 8649 if test $supports_anon_versioning = yes; then 8650 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 8651 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8652 $echo "local: *; };" >> $output_objdir/$libname.ver~ 8653 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8654 fi 8655 else 8656 ld_shlibs=no 8657 fi 8658 ;; 8659 8660 netbsd*) 8661 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8662 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8663 wlarc= 8664 else 8665 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8666 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8667 fi 8668 ;; 8669 8670 solaris*) 8671 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 8672 ld_shlibs=no 8673 cat <<EOF 1>&2 8674 8675*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8676*** create shared libraries on Solaris systems. Therefore, libtool 8677*** is disabling shared libraries support. We urge you to upgrade GNU 8678*** binutils to release 2.9.1 or newer. Another option is to modify 8679*** your PATH or compiler configuration so that the native linker is 8680*** used, and then restart. 8681 8682EOF 8683 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8684 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8685 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8686 else 8687 ld_shlibs=no 8688 fi 8689 ;; 8690 8691 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8692 case `$LD -v 2>&1` in 8693 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8694 ld_shlibs=no 8695 cat <<_LT_EOF 1>&2 8696 8697*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8698*** reliably create shared libraries on SCO systems. Therefore, libtool 8699*** is disabling shared libraries support. We urge you to upgrade GNU 8700*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8701*** your PATH or compiler configuration so that the native linker is 8702*** used, and then restart. 8703 8704_LT_EOF 8705 ;; 8706 *) 8707 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8708 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 8709 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 8710 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 8711 else 8712 ld_shlibs=no 8713 fi 8714 ;; 8715 esac 8716 ;; 8717 8718 sunos4*) 8719 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8720 wlarc= 8721 hardcode_direct=yes 8722 hardcode_shlibpath_var=no 8723 ;; 8724 8725 *) 8726 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8727 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8728 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8729 else 8730 ld_shlibs=no 8731 fi 8732 ;; 8733 esac 8734 8735 if test "$ld_shlibs" = no; then 8736 runpath_var= 8737 hardcode_libdir_flag_spec= 8738 export_dynamic_flag_spec= 8739 whole_archive_flag_spec= 8740 fi 8741 else 8742 # PORTME fill in a description of your system's linker (not GNU ld) 8743 case $host_os in 8744 aix3*) 8745 allow_undefined_flag=unsupported 8746 always_export_symbols=yes 8747 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' 8748 # Note: this linker hardcodes the directories in LIBPATH if there 8749 # are no directories specified by -L. 8750 hardcode_minus_L=yes 8751 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8752 # Neither direct hardcoding nor static linking is supported with a 8753 # broken collect2. 8754 hardcode_direct=unsupported 8755 fi 8756 ;; 8757 8758 aix4* | aix5*) 8759 if test "$host_cpu" = ia64; then 8760 # On IA64, the linker does run time linking by default, so we don't 8761 # have to do anything special. 8762 aix_use_runtimelinking=no 8763 exp_sym_flag='-Bexport' 8764 no_entry_flag="" 8765 else 8766 # If we're using GNU nm, then we don't want the "-C" option. 8767 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8768 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 8769 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' 8770 else 8771 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' 8772 fi 8773 aix_use_runtimelinking=no 8774 8775 # Test if we are trying to use run time linking or normal 8776 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8777 # need to do runtime linking. 8778 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 8779 for ld_flag in $LDFLAGS; do 8780 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8781 aix_use_runtimelinking=yes 8782 break 8783 fi 8784 done 8785 ;; 8786 esac 8787 8788 exp_sym_flag='-bexport' 8789 no_entry_flag='-bnoentry' 8790 fi 8791 8792 # When large executables or shared objects are built, AIX ld can 8793 # have problems creating the table of contents. If linking a library 8794 # or program results in "error TOC overflow" add -mminimal-toc to 8795 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8796 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8797 8798 archive_cmds='' 8799 hardcode_direct=yes 8800 hardcode_libdir_separator=':' 8801 link_all_deplibs=yes 8802 8803 if test "$GCC" = yes; then 8804 case $host_os in aix4.[012]|aix4.[012].*) 8805 # We only want to do this on AIX 4.2 and lower, the check 8806 # below for broken collect2 doesn't work under 4.3+ 8807 collect2name=`${CC} -print-prog-name=collect2` 8808 if test -f "$collect2name" && \ 8809 strings "$collect2name" | grep resolve_lib_name >/dev/null 8810 then 8811 # We have reworked collect2 8812 hardcode_direct=yes 8813 else 8814 # We have old collect2 8815 hardcode_direct=unsupported 8816 # It fails to find uninstalled libraries when the uninstalled 8817 # path is not listed in the libpath. Setting hardcode_minus_L 8818 # to unsupported forces relinking 8819 hardcode_minus_L=yes 8820 hardcode_libdir_flag_spec='-L$libdir' 8821 hardcode_libdir_separator= 8822 fi 8823 ;; 8824 esac 8825 shared_flag='-shared' 8826 if test "$aix_use_runtimelinking" = yes; then 8827 shared_flag="$shared_flag "'${wl}-G' 8828 fi 8829 else 8830 # not using gcc 8831 if test "$host_cpu" = ia64; then 8832 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8833 # chokes on -Wl,-G. The following line is correct: 8834 shared_flag='-G' 8835 else 8836 if test "$aix_use_runtimelinking" = yes; then 8837 shared_flag='${wl}-G' 8838 else 8839 shared_flag='${wl}-bM:SRE' 8840 fi 8841 fi 8842 fi 8843 8844 # It seems that -bexpall does not export symbols beginning with 8845 # underscore (_), so it is better to generate a list of symbols to export. 8846 always_export_symbols=yes 8847 if test "$aix_use_runtimelinking" = yes; then 8848 # Warning - without using the other runtime loading flags (-brtl), 8849 # -berok will link without error, but may produce a broken library. 8850 allow_undefined_flag='-berok' 8851 # Determine the default libpath from the value encoded in an empty executable. 8852 cat >conftest.$ac_ext <<_ACEOF 8853/* confdefs.h. */ 8854_ACEOF 8855cat confdefs.h >>conftest.$ac_ext 8856cat >>conftest.$ac_ext <<_ACEOF 8857/* end confdefs.h. */ 8858 8859int 8860main () 8861{ 8862 8863 ; 8864 return 0; 8865} 8866_ACEOF 8867rm -f conftest.$ac_objext conftest$ac_exeext 8868if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8869 (eval $ac_link) 2>conftest.er1 8870 ac_status=$? 8871 grep -v '^ *+' conftest.er1 >conftest.err 8872 rm -f conftest.er1 8873 cat conftest.err >&5 8874 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8875 (exit $ac_status); } && 8876 { ac_try='test -z "$ac_c_werror_flag" 8877 || test ! -s conftest.err' 8878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8879 (eval $ac_try) 2>&5 8880 ac_status=$? 8881 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8882 (exit $ac_status); }; } && 8883 { ac_try='test -s conftest$ac_exeext' 8884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8885 (eval $ac_try) 2>&5 8886 ac_status=$? 8887 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8888 (exit $ac_status); }; }; then 8889 8890aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8891}'` 8892# Check for a 64-bit object if we didn't find anything. 8893if 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; } 8894}'`; fi 8895else 8896 echo "$as_me: failed program was:" >&5 8897sed 's/^/| /' conftest.$ac_ext >&5 8898 8899fi 8900rm -f conftest.err conftest.$ac_objext \ 8901 conftest$ac_exeext conftest.$ac_ext 8902if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8903 8904 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8905 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" 8906 else 8907 if test "$host_cpu" = ia64; then 8908 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8909 allow_undefined_flag="-z nodefs" 8910 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" 8911 else 8912 # Determine the default libpath from the value encoded in an empty executable. 8913 cat >conftest.$ac_ext <<_ACEOF 8914/* confdefs.h. */ 8915_ACEOF 8916cat confdefs.h >>conftest.$ac_ext 8917cat >>conftest.$ac_ext <<_ACEOF 8918/* end confdefs.h. */ 8919 8920int 8921main () 8922{ 8923 8924 ; 8925 return 0; 8926} 8927_ACEOF 8928rm -f conftest.$ac_objext conftest$ac_exeext 8929if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8930 (eval $ac_link) 2>conftest.er1 8931 ac_status=$? 8932 grep -v '^ *+' conftest.er1 >conftest.err 8933 rm -f conftest.er1 8934 cat conftest.err >&5 8935 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8936 (exit $ac_status); } && 8937 { ac_try='test -z "$ac_c_werror_flag" 8938 || test ! -s conftest.err' 8939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8940 (eval $ac_try) 2>&5 8941 ac_status=$? 8942 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8943 (exit $ac_status); }; } && 8944 { ac_try='test -s conftest$ac_exeext' 8945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8946 (eval $ac_try) 2>&5 8947 ac_status=$? 8948 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8949 (exit $ac_status); }; }; then 8950 8951aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8952}'` 8953# Check for a 64-bit object if we didn't find anything. 8954if 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; } 8955}'`; fi 8956else 8957 echo "$as_me: failed program was:" >&5 8958sed 's/^/| /' conftest.$ac_ext >&5 8959 8960fi 8961rm -f conftest.err conftest.$ac_objext \ 8962 conftest$ac_exeext conftest.$ac_ext 8963if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8964 8965 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8966 # Warning - without using the other run time loading flags, 8967 # -berok will link without error, but may produce a broken library. 8968 no_undefined_flag=' ${wl}-bernotok' 8969 allow_undefined_flag=' ${wl}-berok' 8970 # Exported symbols can be pulled into shared objects from archives 8971 whole_archive_flag_spec='$convenience' 8972 archive_cmds_need_lc=yes 8973 # This is similar to how AIX traditionally builds its shared libraries. 8974 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' 8975 fi 8976 fi 8977 ;; 8978 8979 amigaos*) 8980 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)' 8981 hardcode_libdir_flag_spec='-L$libdir' 8982 hardcode_minus_L=yes 8983 # see comment about different semantics on the GNU ld section 8984 ld_shlibs=no 8985 ;; 8986 8987 bsdi[45]*) 8988 export_dynamic_flag_spec=-rdynamic 8989 ;; 8990 8991 cygwin* | mingw* | pw32*) 8992 # When not using gcc, we currently assume that we are using 8993 # Microsoft Visual C++. 8994 # hardcode_libdir_flag_spec is actually meaningless, as there is 8995 # no search path for DLLs. 8996 hardcode_libdir_flag_spec=' ' 8997 allow_undefined_flag=unsupported 8998 # Tell ltmain to make .lib files, not .a files. 8999 libext=lib 9000 # Tell ltmain to make .dll files, not .so files. 9001 shrext_cmds=".dll" 9002 # FIXME: Setting linknames here is a bad hack. 9003 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 9004 # The linker will automatically build a .lib file if we build a DLL. 9005 old_archive_From_new_cmds='true' 9006 # FIXME: Should let the user specify the lib program. 9007 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 9008 fix_srcfile_path='`cygpath -w "$srcfile"`' 9009 enable_shared_with_static_runtimes=yes 9010 ;; 9011 9012 darwin* | rhapsody*) 9013 case $host_os in 9014 rhapsody* | darwin1.[012]) 9015 allow_undefined_flag='${wl}-undefined ${wl}suppress' 9016 ;; 9017 *) # Darwin 1.3 on 9018 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 9019 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 9020 else 9021 case ${MACOSX_DEPLOYMENT_TARGET} in 9022 10.[012]) 9023 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 9024 ;; 9025 10.*) 9026 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 9027 ;; 9028 esac 9029 fi 9030 ;; 9031 esac 9032 archive_cmds_need_lc=no 9033 hardcode_direct=no 9034 hardcode_automatic=yes 9035 hardcode_shlibpath_var=unsupported 9036 whole_archive_flag_spec='' 9037 link_all_deplibs=yes 9038 if test "$GCC" = yes ; then 9039 output_verbose_link_cmd='echo' 9040 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 9041 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 9042 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 9043 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}' 9044 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}' 9045 else 9046 case $cc_basename in 9047 xlc*) 9048 output_verbose_link_cmd='echo' 9049 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 9050 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 9051 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 9052 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}' 9053 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}' 9054 ;; 9055 *) 9056 ld_shlibs=no 9057 ;; 9058 esac 9059 fi 9060 ;; 9061 9062 dgux*) 9063 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9064 hardcode_libdir_flag_spec='-L$libdir' 9065 hardcode_shlibpath_var=no 9066 ;; 9067 9068 freebsd1*) 9069 ld_shlibs=no 9070 ;; 9071 9072 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9073 # support. Future versions do this automatically, but an explicit c++rt0.o 9074 # does not break anything, and helps significantly (at the cost of a little 9075 # extra space). 9076 freebsd2.2*) 9077 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9078 hardcode_libdir_flag_spec='-R$libdir' 9079 hardcode_direct=yes 9080 hardcode_shlibpath_var=no 9081 ;; 9082 9083 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9084 freebsd2*) 9085 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9086 hardcode_direct=yes 9087 hardcode_minus_L=yes 9088 hardcode_shlibpath_var=no 9089 ;; 9090 9091 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9092 freebsd* | kfreebsd*-gnu | dragonfly*) 9093 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9094 hardcode_libdir_flag_spec='-R$libdir' 9095 hardcode_direct=yes 9096 hardcode_shlibpath_var=no 9097 ;; 9098 9099 hpux9*) 9100 if test "$GCC" = yes; then 9101 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' 9102 else 9103 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' 9104 fi 9105 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9106 hardcode_libdir_separator=: 9107 hardcode_direct=yes 9108 9109 # hardcode_minus_L: Not really in the search PATH, 9110 # but as the default location of the library. 9111 hardcode_minus_L=yes 9112 export_dynamic_flag_spec='${wl}-E' 9113 ;; 9114 9115 hpux10*) 9116 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9117 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9118 else 9119 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9120 fi 9121 if test "$with_gnu_ld" = no; then 9122 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9123 hardcode_libdir_separator=: 9124 9125 hardcode_direct=yes 9126 export_dynamic_flag_spec='${wl}-E' 9127 9128 # hardcode_minus_L: Not really in the search PATH, 9129 # but as the default location of the library. 9130 hardcode_minus_L=yes 9131 fi 9132 ;; 9133 9134 hpux11*) 9135 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9136 case $host_cpu in 9137 hppa*64*) 9138 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9139 ;; 9140 ia64*) 9141 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9142 ;; 9143 *) 9144 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9145 ;; 9146 esac 9147 else 9148 case $host_cpu in 9149 hppa*64*) 9150 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9151 ;; 9152 ia64*) 9153 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9154 ;; 9155 *) 9156 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9157 ;; 9158 esac 9159 fi 9160 if test "$with_gnu_ld" = no; then 9161 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9162 hardcode_libdir_separator=: 9163 9164 case $host_cpu in 9165 hppa*64*|ia64*) 9166 hardcode_libdir_flag_spec_ld='+b $libdir' 9167 hardcode_direct=no 9168 hardcode_shlibpath_var=no 9169 ;; 9170 *) 9171 hardcode_direct=yes 9172 export_dynamic_flag_spec='${wl}-E' 9173 9174 # hardcode_minus_L: Not really in the search PATH, 9175 # but as the default location of the library. 9176 hardcode_minus_L=yes 9177 ;; 9178 esac 9179 fi 9180 ;; 9181 9182 irix5* | irix6* | nonstopux*) 9183 if test "$GCC" = yes; then 9184 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' 9185 else 9186 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' 9187 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9188 fi 9189 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9190 hardcode_libdir_separator=: 9191 link_all_deplibs=yes 9192 ;; 9193 9194 netbsd*) 9195 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9196 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9197 else 9198 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9199 fi 9200 hardcode_libdir_flag_spec='-R$libdir' 9201 hardcode_direct=yes 9202 hardcode_shlibpath_var=no 9203 ;; 9204 9205 newsos6) 9206 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9207 hardcode_direct=yes 9208 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9209 hardcode_libdir_separator=: 9210 hardcode_shlibpath_var=no 9211 ;; 9212 9213 openbsd*) 9214 hardcode_direct=yes 9215 hardcode_shlibpath_var=no 9216 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9217 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9218 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9219 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9220 export_dynamic_flag_spec='${wl}-E' 9221 else 9222 case $host_os in 9223 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9224 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9225 hardcode_libdir_flag_spec='-R$libdir' 9226 ;; 9227 *) 9228 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9229 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9230 ;; 9231 esac 9232 fi 9233 ;; 9234 9235 os2*) 9236 hardcode_libdir_flag_spec='-L$libdir' 9237 hardcode_minus_L=yes 9238 allow_undefined_flag=unsupported 9239 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' 9240 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9241 ;; 9242 9243 osf3*) 9244 if test "$GCC" = yes; then 9245 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9246 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' 9247 else 9248 allow_undefined_flag=' -expect_unresolved \*' 9249 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' 9250 fi 9251 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9252 hardcode_libdir_separator=: 9253 ;; 9254 9255 osf4* | osf5*) # as osf3* with the addition of -msym flag 9256 if test "$GCC" = yes; then 9257 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9258 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' 9259 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9260 else 9261 allow_undefined_flag=' -expect_unresolved \*' 9262 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' 9263 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 9264 $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' 9265 9266 # Both c and cxx compiler support -rpath directly 9267 hardcode_libdir_flag_spec='-rpath $libdir' 9268 fi 9269 hardcode_libdir_separator=: 9270 ;; 9271 9272 solaris*) 9273 no_undefined_flag=' -z text' 9274 if test "$GCC" = yes; then 9275 wlarc='${wl}' 9276 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9277 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 9278 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 9279 else 9280 wlarc='' 9281 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9282 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 9283 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 9284 fi 9285 hardcode_libdir_flag_spec='-R$libdir' 9286 hardcode_shlibpath_var=no 9287 case $host_os in 9288 solaris2.[0-5] | solaris2.[0-5].*) ;; 9289 *) 9290 # The compiler driver will combine linker options so we 9291 # cannot just pass the convience library names through 9292 # without $wl, iff we do not link with $LD. 9293 # Luckily, gcc supports the same syntax we need for Sun Studio. 9294 # Supported since Solaris 2.6 (maybe 2.5.1?) 9295 case $wlarc in 9296 '') 9297 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 9298 *) 9299 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' ;; 9300 esac ;; 9301 esac 9302 link_all_deplibs=yes 9303 ;; 9304 9305 sunos4*) 9306 if test "x$host_vendor" = xsequent; then 9307 # Use $CC to link under sequent, because it throws in some extra .o 9308 # files that make .init and .fini sections work. 9309 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9310 else 9311 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9312 fi 9313 hardcode_libdir_flag_spec='-L$libdir' 9314 hardcode_direct=yes 9315 hardcode_minus_L=yes 9316 hardcode_shlibpath_var=no 9317 ;; 9318 9319 sysv4) 9320 case $host_vendor in 9321 sni) 9322 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9323 hardcode_direct=yes # is this really true??? 9324 ;; 9325 siemens) 9326 ## LD is ld it makes a PLAMLIB 9327 ## CC just makes a GrossModule. 9328 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9329 reload_cmds='$CC -r -o $output$reload_objs' 9330 hardcode_direct=no 9331 ;; 9332 motorola) 9333 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9334 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9335 ;; 9336 esac 9337 runpath_var='LD_RUN_PATH' 9338 hardcode_shlibpath_var=no 9339 ;; 9340 9341 sysv4.3*) 9342 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9343 hardcode_shlibpath_var=no 9344 export_dynamic_flag_spec='-Bexport' 9345 ;; 9346 9347 sysv4*MP*) 9348 if test -d /usr/nec; then 9349 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9350 hardcode_shlibpath_var=no 9351 runpath_var=LD_RUN_PATH 9352 hardcode_runpath_var=yes 9353 ld_shlibs=yes 9354 fi 9355 ;; 9356 9357 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 9358 no_undefined_flag='${wl}-z,text' 9359 archive_cmds_need_lc=no 9360 hardcode_shlibpath_var=no 9361 runpath_var='LD_RUN_PATH' 9362 9363 if test "$GCC" = yes; then 9364 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9365 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9366 else 9367 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9368 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9369 fi 9370 ;; 9371 9372 sysv5* | sco3.2v5* | sco5v6*) 9373 # Note: We can NOT use -z defs as we might desire, because we do not 9374 # link with -lc, and that would cause any symbols used from libc to 9375 # always be unresolved, which means just about no library would 9376 # ever link correctly. If we're not using GNU ld we use -z text 9377 # though, which does catch some bad symbols but isn't as heavy-handed 9378 # as -z defs. 9379 no_undefined_flag='${wl}-z,text' 9380 allow_undefined_flag='${wl}-z,nodefs' 9381 archive_cmds_need_lc=no 9382 hardcode_shlibpath_var=no 9383 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 9384 hardcode_libdir_separator=':' 9385 link_all_deplibs=yes 9386 export_dynamic_flag_spec='${wl}-Bexport' 9387 runpath_var='LD_RUN_PATH' 9388 9389 if test "$GCC" = yes; then 9390 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9391 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9392 else 9393 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9394 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9395 fi 9396 ;; 9397 9398 uts4*) 9399 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9400 hardcode_libdir_flag_spec='-L$libdir' 9401 hardcode_shlibpath_var=no 9402 ;; 9403 9404 *) 9405 ld_shlibs=no 9406 ;; 9407 esac 9408 fi 9409 9410echo "$as_me:$LINENO: result: $ld_shlibs" >&5 9411echo "${ECHO_T}$ld_shlibs" >&6 9412test "$ld_shlibs" = no && can_build_shared=no 9413 9414# 9415# Do we need to explicitly link libc? 9416# 9417case "x$archive_cmds_need_lc" in 9418x|xyes) 9419 # Assume -lc should be added 9420 archive_cmds_need_lc=yes 9421 9422 if test "$enable_shared" = yes && test "$GCC" = yes; then 9423 case $archive_cmds in 9424 *'~'*) 9425 # FIXME: we may have to deal with multi-command sequences. 9426 ;; 9427 '$CC '*) 9428 # Test whether the compiler implicitly links with -lc since on some 9429 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9430 # to ld, don't add -lc before -lgcc. 9431 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 9432echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 9433 $rm conftest* 9434 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 9435 9436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9437 (eval $ac_compile) 2>&5 9438 ac_status=$? 9439 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9440 (exit $ac_status); } 2>conftest.err; then 9441 soname=conftest 9442 lib=conftest 9443 libobjs=conftest.$ac_objext 9444 deplibs= 9445 wl=$lt_prog_compiler_wl 9446 pic_flag=$lt_prog_compiler_pic 9447 compiler_flags=-v 9448 linker_flags=-v 9449 verstring= 9450 output_objdir=. 9451 libname=conftest 9452 lt_save_allow_undefined_flag=$allow_undefined_flag 9453 allow_undefined_flag= 9454 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 9455 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 9456 ac_status=$? 9457 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9458 (exit $ac_status); } 9459 then 9460 archive_cmds_need_lc=no 9461 else 9462 archive_cmds_need_lc=yes 9463 fi 9464 allow_undefined_flag=$lt_save_allow_undefined_flag 9465 else 9466 cat conftest.err 1>&5 9467 fi 9468 $rm conftest* 9469 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 9470echo "${ECHO_T}$archive_cmds_need_lc" >&6 9471 ;; 9472 esac 9473 fi 9474 ;; 9475esac 9476 9477echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 9478echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 9479library_names_spec= 9480libname_spec='lib$name' 9481soname_spec= 9482shrext_cmds=".so" 9483postinstall_cmds= 9484postuninstall_cmds= 9485finish_cmds= 9486finish_eval= 9487shlibpath_var= 9488shlibpath_overrides_runpath=unknown 9489version_type=none 9490dynamic_linker="$host_os ld.so" 9491sys_lib_dlsearch_path_spec="/lib /usr/lib" 9492if test "$GCC" = yes; then 9493 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9494 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 9495 # if the path contains ";" then we assume it to be the separator 9496 # otherwise default to the standard path separator (i.e. ":") - it is 9497 # assumed that no part of a normal pathname contains ";" but that should 9498 # okay in the real world where ";" in dirpaths is itself problematic. 9499 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9500 else 9501 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9502 fi 9503else 9504 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9505fi 9506need_lib_prefix=unknown 9507hardcode_into_libs=no 9508 9509# when you set need_version to no, make sure it does not cause -set_version 9510# flags to be left without arguments 9511need_version=unknown 9512 9513case $host_os in 9514aix3*) 9515 version_type=linux 9516 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9517 shlibpath_var=LIBPATH 9518 9519 # AIX 3 has no versioning support, so we append a major version to the name. 9520 soname_spec='${libname}${release}${shared_ext}$major' 9521 ;; 9522 9523aix4* | aix5*) 9524 version_type=linux 9525 need_lib_prefix=no 9526 need_version=no 9527 hardcode_into_libs=yes 9528 if test "$host_cpu" = ia64; then 9529 # AIX 5 supports IA64 9530 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9531 shlibpath_var=LD_LIBRARY_PATH 9532 else 9533 # With GCC up to 2.95.x, collect2 would create an import file 9534 # for dependence libraries. The import file would start with 9535 # the line `#! .'. This would cause the generated library to 9536 # depend on `.', always an invalid library. This was fixed in 9537 # development snapshots of GCC prior to 3.0. 9538 case $host_os in 9539 aix4 | aix4.[01] | aix4.[01].*) 9540 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9541 echo ' yes ' 9542 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 9543 : 9544 else 9545 can_build_shared=no 9546 fi 9547 ;; 9548 esac 9549 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9550 # soname into executable. Probably we can add versioning support to 9551 # collect2, so additional links can be useful in future. 9552 if test "$aix_use_runtimelinking" = yes; then 9553 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9554 # instead of lib<name>.a to let people know that these are not 9555 # typical AIX shared libraries. 9556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9557 else 9558 # We preserve .a as extension for shared libraries through AIX4.2 9559 # and later when we are not doing run time linking. 9560 library_names_spec='${libname}${release}.a $libname.a' 9561 soname_spec='${libname}${release}${shared_ext}$major' 9562 fi 9563 shlibpath_var=LIBPATH 9564 fi 9565 ;; 9566 9567amigaos*) 9568 library_names_spec='$libname.ixlibrary $libname.a' 9569 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9570 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' 9571 ;; 9572 9573beos*) 9574 library_names_spec='${libname}${shared_ext}' 9575 dynamic_linker="$host_os ld.so" 9576 shlibpath_var=LIBRARY_PATH 9577 ;; 9578 9579bsdi[45]*) 9580 version_type=linux 9581 need_version=no 9582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9583 soname_spec='${libname}${release}${shared_ext}$major' 9584 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9585 shlibpath_var=LD_LIBRARY_PATH 9586 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9587 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9588 # the default ld.so.conf also contains /usr/contrib/lib and 9589 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9590 # libtool to hard-code these into programs 9591 ;; 9592 9593cygwin* | mingw* | pw32*) 9594 version_type=windows 9595 shrext_cmds=".dll" 9596 need_version=no 9597 need_lib_prefix=no 9598 9599 case $GCC,$host_os in 9600 yes,cygwin* | yes,mingw* | yes,pw32*) 9601 library_names_spec='$libname.dll.a' 9602 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9603 postinstall_cmds='base_file=`basename \${file}`~ 9604 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 9605 dldir=$destdir/`dirname \$dlpath`~ 9606 test -d \$dldir || mkdir -p \$dldir~ 9607 $install_prog $dir/$dlname \$dldir/$dlname~ 9608 chmod a+x \$dldir/$dlname' 9609 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9610 dlpath=$dir/\$dldll~ 9611 $rm \$dlpath' 9612 shlibpath_overrides_runpath=yes 9613 9614 case $host_os in 9615 cygwin*) 9616 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9617 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9618 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9619 ;; 9620 mingw*) 9621 # MinGW DLLs use traditional 'lib' prefix 9622 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9623 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9624 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 9625 # It is most probably a Windows format PATH printed by 9626 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9627 # path with ; separators, and with drive letters. We can handle the 9628 # drive letters (cygwin fileutils understands them), so leave them, 9629 # especially as we might pass files found there to a mingw objdump, 9630 # which wouldn't understand a cygwinified path. Ahh. 9631 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9632 else 9633 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9634 fi 9635 ;; 9636 pw32*) 9637 # pw32 DLLs use 'pw' prefix rather than 'lib' 9638 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9639 ;; 9640 esac 9641 ;; 9642 9643 *) 9644 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9645 ;; 9646 esac 9647 dynamic_linker='Win32 ld.exe' 9648 # FIXME: first we should search . and the directory the executable is in 9649 shlibpath_var=PATH 9650 ;; 9651 9652darwin* | rhapsody*) 9653 dynamic_linker="$host_os dyld" 9654 version_type=darwin 9655 need_lib_prefix=no 9656 need_version=no 9657 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9658 soname_spec='${libname}${release}${major}$shared_ext' 9659 shlibpath_overrides_runpath=yes 9660 shlibpath_var=DYLD_LIBRARY_PATH 9661 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9662 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 9663 if test "$GCC" = yes; then 9664 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"` 9665 else 9666 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 9667 fi 9668 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9669 ;; 9670 9671dgux*) 9672 version_type=linux 9673 need_lib_prefix=no 9674 need_version=no 9675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9676 soname_spec='${libname}${release}${shared_ext}$major' 9677 shlibpath_var=LD_LIBRARY_PATH 9678 ;; 9679 9680freebsd1*) 9681 dynamic_linker=no 9682 ;; 9683 9684kfreebsd*-gnu) 9685 version_type=linux 9686 need_lib_prefix=no 9687 need_version=no 9688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9689 soname_spec='${libname}${release}${shared_ext}$major' 9690 shlibpath_var=LD_LIBRARY_PATH 9691 shlibpath_overrides_runpath=no 9692 hardcode_into_libs=yes 9693 dynamic_linker='GNU ld.so' 9694 ;; 9695 9696freebsd* | dragonfly*) 9697 # DragonFly does not have aout. When/if they implement a new 9698 # versioning mechanism, adjust this. 9699 if test -x /usr/bin/objformat; then 9700 objformat=`/usr/bin/objformat` 9701 else 9702 case $host_os in 9703 freebsd[123]*) objformat=aout ;; 9704 *) objformat=elf ;; 9705 esac 9706 fi 9707 version_type=freebsd-$objformat 9708 case $version_type in 9709 freebsd-elf*) 9710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9711 need_version=no 9712 need_lib_prefix=no 9713 ;; 9714 freebsd-*) 9715 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9716 need_version=yes 9717 ;; 9718 esac 9719 shlibpath_var=LD_LIBRARY_PATH 9720 case $host_os in 9721 freebsd2*) 9722 shlibpath_overrides_runpath=yes 9723 ;; 9724 freebsd3.[01]* | freebsdelf3.[01]*) 9725 shlibpath_overrides_runpath=yes 9726 hardcode_into_libs=yes 9727 ;; 9728 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9729 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9730 shlibpath_overrides_runpath=no 9731 hardcode_into_libs=yes 9732 ;; 9733 freebsd*) # from 4.6 on 9734 shlibpath_overrides_runpath=yes 9735 hardcode_into_libs=yes 9736 ;; 9737 esac 9738 ;; 9739 9740gnu*) 9741 version_type=linux 9742 need_lib_prefix=no 9743 need_version=no 9744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9745 soname_spec='${libname}${release}${shared_ext}$major' 9746 shlibpath_var=LD_LIBRARY_PATH 9747 hardcode_into_libs=yes 9748 ;; 9749 9750hpux9* | hpux10* | hpux11*) 9751 # Give a soname corresponding to the major version so that dld.sl refuses to 9752 # link against other versions. 9753 version_type=sunos 9754 need_lib_prefix=no 9755 need_version=no 9756 case $host_cpu in 9757 ia64*) 9758 shrext_cmds='.so' 9759 hardcode_into_libs=yes 9760 dynamic_linker="$host_os dld.so" 9761 shlibpath_var=LD_LIBRARY_PATH 9762 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9764 soname_spec='${libname}${release}${shared_ext}$major' 9765 if test "X$HPUX_IA64_MODE" = X32; then 9766 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9767 else 9768 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9769 fi 9770 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9771 ;; 9772 hppa*64*) 9773 shrext_cmds='.sl' 9774 hardcode_into_libs=yes 9775 dynamic_linker="$host_os dld.sl" 9776 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9777 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9779 soname_spec='${libname}${release}${shared_ext}$major' 9780 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9781 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9782 ;; 9783 *) 9784 shrext_cmds='.sl' 9785 dynamic_linker="$host_os dld.sl" 9786 shlibpath_var=SHLIB_PATH 9787 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9789 soname_spec='${libname}${release}${shared_ext}$major' 9790 ;; 9791 esac 9792 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9793 postinstall_cmds='chmod 555 $lib' 9794 ;; 9795 9796interix3*) 9797 version_type=linux 9798 need_lib_prefix=no 9799 need_version=no 9800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9801 soname_spec='${libname}${release}${shared_ext}$major' 9802 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9803 shlibpath_var=LD_LIBRARY_PATH 9804 shlibpath_overrides_runpath=no 9805 hardcode_into_libs=yes 9806 ;; 9807 9808irix5* | irix6* | nonstopux*) 9809 case $host_os in 9810 nonstopux*) version_type=nonstopux ;; 9811 *) 9812 if test "$lt_cv_prog_gnu_ld" = yes; then 9813 version_type=linux 9814 else 9815 version_type=irix 9816 fi ;; 9817 esac 9818 need_lib_prefix=no 9819 need_version=no 9820 soname_spec='${libname}${release}${shared_ext}$major' 9821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9822 case $host_os in 9823 irix5* | nonstopux*) 9824 libsuff= shlibsuff= 9825 ;; 9826 *) 9827 case $LD in # libtool.m4 will add one of these switches to LD 9828 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9829 libsuff= shlibsuff= libmagic=32-bit;; 9830 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9831 libsuff=32 shlibsuff=N32 libmagic=N32;; 9832 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9833 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9834 *) libsuff= shlibsuff= libmagic=never-match;; 9835 esac 9836 ;; 9837 esac 9838 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9839 shlibpath_overrides_runpath=no 9840 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9841 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9842 hardcode_into_libs=yes 9843 ;; 9844 9845# No shared lib support for Linux oldld, aout, or coff. 9846linux*oldld* | linux*aout* | linux*coff*) 9847 dynamic_linker=no 9848 ;; 9849 9850# This must be Linux ELF. 9851linux*) 9852 version_type=linux 9853 need_lib_prefix=no 9854 need_version=no 9855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9856 soname_spec='${libname}${release}${shared_ext}$major' 9857 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9858 shlibpath_var=LD_LIBRARY_PATH 9859 shlibpath_overrides_runpath=no 9860 # This implies no fast_install, which is unacceptable. 9861 # Some rework will be needed to allow for fast_install 9862 # before this can be enabled. 9863 hardcode_into_libs=yes 9864 9865 # Append ld.so.conf contents to the search path 9866 if test -f /etc/ld.so.conf; then 9867 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' ' '` 9868 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9869 fi 9870 9871 # We used to test for /lib/ld.so.1 and disable shared libraries on 9872 # powerpc, because MkLinux only supported shared libraries with the 9873 # GNU dynamic linker. Since this was broken with cross compilers, 9874 # most powerpc-linux boxes support dynamic linking these days and 9875 # people can always --disable-shared, the test was removed, and we 9876 # assume the GNU/Linux dynamic linker is in use. 9877 dynamic_linker='GNU/Linux ld.so' 9878 ;; 9879 9880knetbsd*-gnu) 9881 version_type=linux 9882 need_lib_prefix=no 9883 need_version=no 9884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9885 soname_spec='${libname}${release}${shared_ext}$major' 9886 shlibpath_var=LD_LIBRARY_PATH 9887 shlibpath_overrides_runpath=no 9888 hardcode_into_libs=yes 9889 dynamic_linker='GNU ld.so' 9890 ;; 9891 9892netbsd*) 9893 version_type=sunos 9894 need_lib_prefix=no 9895 need_version=no 9896 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9898 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9899 dynamic_linker='NetBSD (a.out) ld.so' 9900 else 9901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9902 soname_spec='${libname}${release}${shared_ext}$major' 9903 dynamic_linker='NetBSD ld.elf_so' 9904 fi 9905 shlibpath_var=LD_LIBRARY_PATH 9906 shlibpath_overrides_runpath=yes 9907 hardcode_into_libs=yes 9908 ;; 9909 9910newsos6) 9911 version_type=linux 9912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9913 shlibpath_var=LD_LIBRARY_PATH 9914 shlibpath_overrides_runpath=yes 9915 ;; 9916 9917nto-qnx*) 9918 version_type=linux 9919 need_lib_prefix=no 9920 need_version=no 9921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9922 soname_spec='${libname}${release}${shared_ext}$major' 9923 shlibpath_var=LD_LIBRARY_PATH 9924 shlibpath_overrides_runpath=yes 9925 ;; 9926 9927openbsd*) 9928 version_type=sunos 9929 sys_lib_dlsearch_path_spec="/usr/lib" 9930 need_lib_prefix=no 9931 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9932 case $host_os in 9933 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9934 *) need_version=no ;; 9935 esac 9936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9937 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9938 shlibpath_var=LD_LIBRARY_PATH 9939 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9940 case $host_os in 9941 openbsd2.[89] | openbsd2.[89].*) 9942 shlibpath_overrides_runpath=no 9943 ;; 9944 *) 9945 shlibpath_overrides_runpath=yes 9946 ;; 9947 esac 9948 else 9949 shlibpath_overrides_runpath=yes 9950 fi 9951 ;; 9952 9953os2*) 9954 libname_spec='$name' 9955 shrext_cmds=".dll" 9956 need_lib_prefix=no 9957 library_names_spec='$libname${shared_ext} $libname.a' 9958 dynamic_linker='OS/2 ld.exe' 9959 shlibpath_var=LIBPATH 9960 ;; 9961 9962osf3* | osf4* | osf5*) 9963 version_type=osf 9964 need_lib_prefix=no 9965 need_version=no 9966 soname_spec='${libname}${release}${shared_ext}$major' 9967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9968 shlibpath_var=LD_LIBRARY_PATH 9969 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9970 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9971 ;; 9972 9973solaris*) 9974 version_type=linux 9975 need_lib_prefix=no 9976 need_version=no 9977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9978 soname_spec='${libname}${release}${shared_ext}$major' 9979 shlibpath_var=LD_LIBRARY_PATH 9980 shlibpath_overrides_runpath=yes 9981 hardcode_into_libs=yes 9982 # ldd complains unless libraries are executable 9983 postinstall_cmds='chmod +x $lib' 9984 ;; 9985 9986sunos4*) 9987 version_type=sunos 9988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9989 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9990 shlibpath_var=LD_LIBRARY_PATH 9991 shlibpath_overrides_runpath=yes 9992 if test "$with_gnu_ld" = yes; then 9993 need_lib_prefix=no 9994 fi 9995 need_version=yes 9996 ;; 9997 9998sysv4 | sysv4.3*) 9999 version_type=linux 10000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10001 soname_spec='${libname}${release}${shared_ext}$major' 10002 shlibpath_var=LD_LIBRARY_PATH 10003 case $host_vendor in 10004 sni) 10005 shlibpath_overrides_runpath=no 10006 need_lib_prefix=no 10007 export_dynamic_flag_spec='${wl}-Blargedynsym' 10008 runpath_var=LD_RUN_PATH 10009 ;; 10010 siemens) 10011 need_lib_prefix=no 10012 ;; 10013 motorola) 10014 need_lib_prefix=no 10015 need_version=no 10016 shlibpath_overrides_runpath=no 10017 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10018 ;; 10019 esac 10020 ;; 10021 10022sysv4*MP*) 10023 if test -d /usr/nec ;then 10024 version_type=linux 10025 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10026 soname_spec='$libname${shared_ext}.$major' 10027 shlibpath_var=LD_LIBRARY_PATH 10028 fi 10029 ;; 10030 10031sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10032 version_type=freebsd-elf 10033 need_lib_prefix=no 10034 need_version=no 10035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10036 soname_spec='${libname}${release}${shared_ext}$major' 10037 shlibpath_var=LD_LIBRARY_PATH 10038 hardcode_into_libs=yes 10039 if test "$with_gnu_ld" = yes; then 10040 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10041 shlibpath_overrides_runpath=no 10042 else 10043 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10044 shlibpath_overrides_runpath=yes 10045 case $host_os in 10046 sco3.2v5*) 10047 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10048 ;; 10049 esac 10050 fi 10051 sys_lib_dlsearch_path_spec='/usr/lib' 10052 ;; 10053 10054uts4*) 10055 version_type=linux 10056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10057 soname_spec='${libname}${release}${shared_ext}$major' 10058 shlibpath_var=LD_LIBRARY_PATH 10059 ;; 10060 10061*) 10062 dynamic_linker=no 10063 ;; 10064esac 10065echo "$as_me:$LINENO: result: $dynamic_linker" >&5 10066echo "${ECHO_T}$dynamic_linker" >&6 10067test "$dynamic_linker" = no && can_build_shared=no 10068 10069variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10070if test "$GCC" = yes; then 10071 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10072fi 10073 10074echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 10075echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 10076hardcode_action= 10077if test -n "$hardcode_libdir_flag_spec" || \ 10078 test -n "$runpath_var" || \ 10079 test "X$hardcode_automatic" = "Xyes" ; then 10080 10081 # We can hardcode non-existant directories. 10082 if test "$hardcode_direct" != no && 10083 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10084 # have to relink, otherwise we might link with an installed library 10085 # when we should be linking with a yet-to-be-installed one 10086 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 10087 test "$hardcode_minus_L" != no; then 10088 # Linking always hardcodes the temporary library directory. 10089 hardcode_action=relink 10090 else 10091 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10092 hardcode_action=immediate 10093 fi 10094else 10095 # We cannot hardcode anything, or else we can only hardcode existing 10096 # directories. 10097 hardcode_action=unsupported 10098fi 10099echo "$as_me:$LINENO: result: $hardcode_action" >&5 10100echo "${ECHO_T}$hardcode_action" >&6 10101 10102if test "$hardcode_action" = relink; then 10103 # Fast installation is not supported 10104 enable_fast_install=no 10105elif test "$shlibpath_overrides_runpath" = yes || 10106 test "$enable_shared" = no; then 10107 # Fast installation is not necessary 10108 enable_fast_install=needless 10109fi 10110 10111striplib= 10112old_striplib= 10113echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 10114echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 10115if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 10116 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 10117 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 10118 echo "$as_me:$LINENO: result: yes" >&5 10119echo "${ECHO_T}yes" >&6 10120else 10121# FIXME - insert some real tests, host_os isn't really good enough 10122 case $host_os in 10123 darwin*) 10124 if test -n "$STRIP" ; then 10125 striplib="$STRIP -x" 10126 echo "$as_me:$LINENO: result: yes" >&5 10127echo "${ECHO_T}yes" >&6 10128 else 10129 echo "$as_me:$LINENO: result: no" >&5 10130echo "${ECHO_T}no" >&6 10131fi 10132 ;; 10133 *) 10134 echo "$as_me:$LINENO: result: no" >&5 10135echo "${ECHO_T}no" >&6 10136 ;; 10137 esac 10138fi 10139 10140if test "x$enable_dlopen" != xyes; then 10141 enable_dlopen=unknown 10142 enable_dlopen_self=unknown 10143 enable_dlopen_self_static=unknown 10144else 10145 lt_cv_dlopen=no 10146 lt_cv_dlopen_libs= 10147 10148 case $host_os in 10149 beos*) 10150 lt_cv_dlopen="load_add_on" 10151 lt_cv_dlopen_libs= 10152 lt_cv_dlopen_self=yes 10153 ;; 10154 10155 mingw* | pw32*) 10156 lt_cv_dlopen="LoadLibrary" 10157 lt_cv_dlopen_libs= 10158 ;; 10159 10160 cygwin*) 10161 lt_cv_dlopen="dlopen" 10162 lt_cv_dlopen_libs= 10163 ;; 10164 10165 darwin*) 10166 # if libdl is installed we need to link against it 10167 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10168echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 10169if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10170 echo $ECHO_N "(cached) $ECHO_C" >&6 10171else 10172 ac_check_lib_save_LIBS=$LIBS 10173LIBS="-ldl $LIBS" 10174cat >conftest.$ac_ext <<_ACEOF 10175/* confdefs.h. */ 10176_ACEOF 10177cat confdefs.h >>conftest.$ac_ext 10178cat >>conftest.$ac_ext <<_ACEOF 10179/* end confdefs.h. */ 10180 10181/* Override any gcc2 internal prototype to avoid an error. */ 10182#ifdef __cplusplus 10183extern "C" 10184#endif 10185/* We use char because int might match the return type of a gcc2 10186 builtin and then its argument prototype would still apply. */ 10187char dlopen (); 10188int 10189main () 10190{ 10191dlopen (); 10192 ; 10193 return 0; 10194} 10195_ACEOF 10196rm -f conftest.$ac_objext conftest$ac_exeext 10197if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10198 (eval $ac_link) 2>conftest.er1 10199 ac_status=$? 10200 grep -v '^ *+' conftest.er1 >conftest.err 10201 rm -f conftest.er1 10202 cat conftest.err >&5 10203 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10204 (exit $ac_status); } && 10205 { ac_try='test -z "$ac_c_werror_flag" 10206 || test ! -s conftest.err' 10207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10208 (eval $ac_try) 2>&5 10209 ac_status=$? 10210 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10211 (exit $ac_status); }; } && 10212 { ac_try='test -s conftest$ac_exeext' 10213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10214 (eval $ac_try) 2>&5 10215 ac_status=$? 10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10217 (exit $ac_status); }; }; then 10218 ac_cv_lib_dl_dlopen=yes 10219else 10220 echo "$as_me: failed program was:" >&5 10221sed 's/^/| /' conftest.$ac_ext >&5 10222 10223ac_cv_lib_dl_dlopen=no 10224fi 10225rm -f conftest.err conftest.$ac_objext \ 10226 conftest$ac_exeext conftest.$ac_ext 10227LIBS=$ac_check_lib_save_LIBS 10228fi 10229echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10230echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 10231if test $ac_cv_lib_dl_dlopen = yes; then 10232 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10233else 10234 10235 lt_cv_dlopen="dyld" 10236 lt_cv_dlopen_libs= 10237 lt_cv_dlopen_self=yes 10238 10239fi 10240 10241 ;; 10242 10243 *) 10244 echo "$as_me:$LINENO: checking for shl_load" >&5 10245echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 10246if test "${ac_cv_func_shl_load+set}" = set; then 10247 echo $ECHO_N "(cached) $ECHO_C" >&6 10248else 10249 cat >conftest.$ac_ext <<_ACEOF 10250/* confdefs.h. */ 10251_ACEOF 10252cat confdefs.h >>conftest.$ac_ext 10253cat >>conftest.$ac_ext <<_ACEOF 10254/* end confdefs.h. */ 10255/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 10256 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10257#define shl_load innocuous_shl_load 10258 10259/* System header to define __stub macros and hopefully few prototypes, 10260 which can conflict with char shl_load (); below. 10261 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10262 <limits.h> exists even on freestanding compilers. */ 10263 10264#ifdef __STDC__ 10265# include <limits.h> 10266#else 10267# include <assert.h> 10268#endif 10269 10270#undef shl_load 10271 10272/* Override any gcc2 internal prototype to avoid an error. */ 10273#ifdef __cplusplus 10274extern "C" 10275{ 10276#endif 10277/* We use char because int might match the return type of a gcc2 10278 builtin and then its argument prototype would still apply. */ 10279char shl_load (); 10280/* The GNU C library defines this for functions which it implements 10281 to always fail with ENOSYS. Some functions are actually named 10282 something starting with __ and the normal name is an alias. */ 10283#if defined (__stub_shl_load) || defined (__stub___shl_load) 10284choke me 10285#else 10286char (*f) () = shl_load; 10287#endif 10288#ifdef __cplusplus 10289} 10290#endif 10291 10292int 10293main () 10294{ 10295return f != shl_load; 10296 ; 10297 return 0; 10298} 10299_ACEOF 10300rm -f conftest.$ac_objext conftest$ac_exeext 10301if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10302 (eval $ac_link) 2>conftest.er1 10303 ac_status=$? 10304 grep -v '^ *+' conftest.er1 >conftest.err 10305 rm -f conftest.er1 10306 cat conftest.err >&5 10307 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10308 (exit $ac_status); } && 10309 { ac_try='test -z "$ac_c_werror_flag" 10310 || test ! -s conftest.err' 10311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10312 (eval $ac_try) 2>&5 10313 ac_status=$? 10314 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10315 (exit $ac_status); }; } && 10316 { ac_try='test -s conftest$ac_exeext' 10317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10318 (eval $ac_try) 2>&5 10319 ac_status=$? 10320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10321 (exit $ac_status); }; }; then 10322 ac_cv_func_shl_load=yes 10323else 10324 echo "$as_me: failed program was:" >&5 10325sed 's/^/| /' conftest.$ac_ext >&5 10326 10327ac_cv_func_shl_load=no 10328fi 10329rm -f conftest.err conftest.$ac_objext \ 10330 conftest$ac_exeext conftest.$ac_ext 10331fi 10332echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 10333echo "${ECHO_T}$ac_cv_func_shl_load" >&6 10334if test $ac_cv_func_shl_load = yes; then 10335 lt_cv_dlopen="shl_load" 10336else 10337 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 10338echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 10339if test "${ac_cv_lib_dld_shl_load+set}" = set; then 10340 echo $ECHO_N "(cached) $ECHO_C" >&6 10341else 10342 ac_check_lib_save_LIBS=$LIBS 10343LIBS="-ldld $LIBS" 10344cat >conftest.$ac_ext <<_ACEOF 10345/* confdefs.h. */ 10346_ACEOF 10347cat confdefs.h >>conftest.$ac_ext 10348cat >>conftest.$ac_ext <<_ACEOF 10349/* end confdefs.h. */ 10350 10351/* Override any gcc2 internal prototype to avoid an error. */ 10352#ifdef __cplusplus 10353extern "C" 10354#endif 10355/* We use char because int might match the return type of a gcc2 10356 builtin and then its argument prototype would still apply. */ 10357char shl_load (); 10358int 10359main () 10360{ 10361shl_load (); 10362 ; 10363 return 0; 10364} 10365_ACEOF 10366rm -f conftest.$ac_objext conftest$ac_exeext 10367if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10368 (eval $ac_link) 2>conftest.er1 10369 ac_status=$? 10370 grep -v '^ *+' conftest.er1 >conftest.err 10371 rm -f conftest.er1 10372 cat conftest.err >&5 10373 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10374 (exit $ac_status); } && 10375 { ac_try='test -z "$ac_c_werror_flag" 10376 || test ! -s conftest.err' 10377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10378 (eval $ac_try) 2>&5 10379 ac_status=$? 10380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10381 (exit $ac_status); }; } && 10382 { ac_try='test -s conftest$ac_exeext' 10383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10384 (eval $ac_try) 2>&5 10385 ac_status=$? 10386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10387 (exit $ac_status); }; }; then 10388 ac_cv_lib_dld_shl_load=yes 10389else 10390 echo "$as_me: failed program was:" >&5 10391sed 's/^/| /' conftest.$ac_ext >&5 10392 10393ac_cv_lib_dld_shl_load=no 10394fi 10395rm -f conftest.err conftest.$ac_objext \ 10396 conftest$ac_exeext conftest.$ac_ext 10397LIBS=$ac_check_lib_save_LIBS 10398fi 10399echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 10400echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 10401if test $ac_cv_lib_dld_shl_load = yes; then 10402 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 10403else 10404 echo "$as_me:$LINENO: checking for dlopen" >&5 10405echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 10406if test "${ac_cv_func_dlopen+set}" = set; then 10407 echo $ECHO_N "(cached) $ECHO_C" >&6 10408else 10409 cat >conftest.$ac_ext <<_ACEOF 10410/* confdefs.h. */ 10411_ACEOF 10412cat confdefs.h >>conftest.$ac_ext 10413cat >>conftest.$ac_ext <<_ACEOF 10414/* end confdefs.h. */ 10415/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 10416 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10417#define dlopen innocuous_dlopen 10418 10419/* System header to define __stub macros and hopefully few prototypes, 10420 which can conflict with char dlopen (); below. 10421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10422 <limits.h> exists even on freestanding compilers. */ 10423 10424#ifdef __STDC__ 10425# include <limits.h> 10426#else 10427# include <assert.h> 10428#endif 10429 10430#undef dlopen 10431 10432/* Override any gcc2 internal prototype to avoid an error. */ 10433#ifdef __cplusplus 10434extern "C" 10435{ 10436#endif 10437/* We use char because int might match the return type of a gcc2 10438 builtin and then its argument prototype would still apply. */ 10439char dlopen (); 10440/* The GNU C library defines this for functions which it implements 10441 to always fail with ENOSYS. Some functions are actually named 10442 something starting with __ and the normal name is an alias. */ 10443#if defined (__stub_dlopen) || defined (__stub___dlopen) 10444choke me 10445#else 10446char (*f) () = dlopen; 10447#endif 10448#ifdef __cplusplus 10449} 10450#endif 10451 10452int 10453main () 10454{ 10455return f != dlopen; 10456 ; 10457 return 0; 10458} 10459_ACEOF 10460rm -f conftest.$ac_objext conftest$ac_exeext 10461if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10462 (eval $ac_link) 2>conftest.er1 10463 ac_status=$? 10464 grep -v '^ *+' conftest.er1 >conftest.err 10465 rm -f conftest.er1 10466 cat conftest.err >&5 10467 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10468 (exit $ac_status); } && 10469 { ac_try='test -z "$ac_c_werror_flag" 10470 || test ! -s conftest.err' 10471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10472 (eval $ac_try) 2>&5 10473 ac_status=$? 10474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10475 (exit $ac_status); }; } && 10476 { ac_try='test -s conftest$ac_exeext' 10477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10478 (eval $ac_try) 2>&5 10479 ac_status=$? 10480 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10481 (exit $ac_status); }; }; then 10482 ac_cv_func_dlopen=yes 10483else 10484 echo "$as_me: failed program was:" >&5 10485sed 's/^/| /' conftest.$ac_ext >&5 10486 10487ac_cv_func_dlopen=no 10488fi 10489rm -f conftest.err conftest.$ac_objext \ 10490 conftest$ac_exeext conftest.$ac_ext 10491fi 10492echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 10493echo "${ECHO_T}$ac_cv_func_dlopen" >&6 10494if test $ac_cv_func_dlopen = yes; then 10495 lt_cv_dlopen="dlopen" 10496else 10497 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10498echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 10499if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10500 echo $ECHO_N "(cached) $ECHO_C" >&6 10501else 10502 ac_check_lib_save_LIBS=$LIBS 10503LIBS="-ldl $LIBS" 10504cat >conftest.$ac_ext <<_ACEOF 10505/* confdefs.h. */ 10506_ACEOF 10507cat confdefs.h >>conftest.$ac_ext 10508cat >>conftest.$ac_ext <<_ACEOF 10509/* end confdefs.h. */ 10510 10511/* Override any gcc2 internal prototype to avoid an error. */ 10512#ifdef __cplusplus 10513extern "C" 10514#endif 10515/* We use char because int might match the return type of a gcc2 10516 builtin and then its argument prototype would still apply. */ 10517char dlopen (); 10518int 10519main () 10520{ 10521dlopen (); 10522 ; 10523 return 0; 10524} 10525_ACEOF 10526rm -f conftest.$ac_objext conftest$ac_exeext 10527if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10528 (eval $ac_link) 2>conftest.er1 10529 ac_status=$? 10530 grep -v '^ *+' conftest.er1 >conftest.err 10531 rm -f conftest.er1 10532 cat conftest.err >&5 10533 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10534 (exit $ac_status); } && 10535 { ac_try='test -z "$ac_c_werror_flag" 10536 || test ! -s conftest.err' 10537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10538 (eval $ac_try) 2>&5 10539 ac_status=$? 10540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10541 (exit $ac_status); }; } && 10542 { ac_try='test -s conftest$ac_exeext' 10543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10544 (eval $ac_try) 2>&5 10545 ac_status=$? 10546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10547 (exit $ac_status); }; }; then 10548 ac_cv_lib_dl_dlopen=yes 10549else 10550 echo "$as_me: failed program was:" >&5 10551sed 's/^/| /' conftest.$ac_ext >&5 10552 10553ac_cv_lib_dl_dlopen=no 10554fi 10555rm -f conftest.err conftest.$ac_objext \ 10556 conftest$ac_exeext conftest.$ac_ext 10557LIBS=$ac_check_lib_save_LIBS 10558fi 10559echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10560echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 10561if test $ac_cv_lib_dl_dlopen = yes; then 10562 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10563else 10564 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10565echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 10566if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10567 echo $ECHO_N "(cached) $ECHO_C" >&6 10568else 10569 ac_check_lib_save_LIBS=$LIBS 10570LIBS="-lsvld $LIBS" 10571cat >conftest.$ac_ext <<_ACEOF 10572/* confdefs.h. */ 10573_ACEOF 10574cat confdefs.h >>conftest.$ac_ext 10575cat >>conftest.$ac_ext <<_ACEOF 10576/* end confdefs.h. */ 10577 10578/* Override any gcc2 internal prototype to avoid an error. */ 10579#ifdef __cplusplus 10580extern "C" 10581#endif 10582/* We use char because int might match the return type of a gcc2 10583 builtin and then its argument prototype would still apply. */ 10584char dlopen (); 10585int 10586main () 10587{ 10588dlopen (); 10589 ; 10590 return 0; 10591} 10592_ACEOF 10593rm -f conftest.$ac_objext conftest$ac_exeext 10594if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10595 (eval $ac_link) 2>conftest.er1 10596 ac_status=$? 10597 grep -v '^ *+' conftest.er1 >conftest.err 10598 rm -f conftest.er1 10599 cat conftest.err >&5 10600 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10601 (exit $ac_status); } && 10602 { ac_try='test -z "$ac_c_werror_flag" 10603 || test ! -s conftest.err' 10604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10605 (eval $ac_try) 2>&5 10606 ac_status=$? 10607 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10608 (exit $ac_status); }; } && 10609 { ac_try='test -s conftest$ac_exeext' 10610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10611 (eval $ac_try) 2>&5 10612 ac_status=$? 10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10614 (exit $ac_status); }; }; then 10615 ac_cv_lib_svld_dlopen=yes 10616else 10617 echo "$as_me: failed program was:" >&5 10618sed 's/^/| /' conftest.$ac_ext >&5 10619 10620ac_cv_lib_svld_dlopen=no 10621fi 10622rm -f conftest.err conftest.$ac_objext \ 10623 conftest$ac_exeext conftest.$ac_ext 10624LIBS=$ac_check_lib_save_LIBS 10625fi 10626echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10627echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 10628if test $ac_cv_lib_svld_dlopen = yes; then 10629 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10630else 10631 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10632echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 10633if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10634 echo $ECHO_N "(cached) $ECHO_C" >&6 10635else 10636 ac_check_lib_save_LIBS=$LIBS 10637LIBS="-ldld $LIBS" 10638cat >conftest.$ac_ext <<_ACEOF 10639/* confdefs.h. */ 10640_ACEOF 10641cat confdefs.h >>conftest.$ac_ext 10642cat >>conftest.$ac_ext <<_ACEOF 10643/* end confdefs.h. */ 10644 10645/* Override any gcc2 internal prototype to avoid an error. */ 10646#ifdef __cplusplus 10647extern "C" 10648#endif 10649/* We use char because int might match the return type of a gcc2 10650 builtin and then its argument prototype would still apply. */ 10651char dld_link (); 10652int 10653main () 10654{ 10655dld_link (); 10656 ; 10657 return 0; 10658} 10659_ACEOF 10660rm -f conftest.$ac_objext conftest$ac_exeext 10661if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10662 (eval $ac_link) 2>conftest.er1 10663 ac_status=$? 10664 grep -v '^ *+' conftest.er1 >conftest.err 10665 rm -f conftest.er1 10666 cat conftest.err >&5 10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10668 (exit $ac_status); } && 10669 { ac_try='test -z "$ac_c_werror_flag" 10670 || test ! -s conftest.err' 10671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10672 (eval $ac_try) 2>&5 10673 ac_status=$? 10674 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10675 (exit $ac_status); }; } && 10676 { ac_try='test -s conftest$ac_exeext' 10677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10678 (eval $ac_try) 2>&5 10679 ac_status=$? 10680 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10681 (exit $ac_status); }; }; then 10682 ac_cv_lib_dld_dld_link=yes 10683else 10684 echo "$as_me: failed program was:" >&5 10685sed 's/^/| /' conftest.$ac_ext >&5 10686 10687ac_cv_lib_dld_dld_link=no 10688fi 10689rm -f conftest.err conftest.$ac_objext \ 10690 conftest$ac_exeext conftest.$ac_ext 10691LIBS=$ac_check_lib_save_LIBS 10692fi 10693echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10694echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 10695if test $ac_cv_lib_dld_dld_link = yes; then 10696 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 10697fi 10698 10699 10700fi 10701 10702 10703fi 10704 10705 10706fi 10707 10708 10709fi 10710 10711 10712fi 10713 10714 ;; 10715 esac 10716 10717 if test "x$lt_cv_dlopen" != xno; then 10718 enable_dlopen=yes 10719 else 10720 enable_dlopen=no 10721 fi 10722 10723 case $lt_cv_dlopen in 10724 dlopen) 10725 save_CPPFLAGS="$CPPFLAGS" 10726 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10727 10728 save_LDFLAGS="$LDFLAGS" 10729 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10730 10731 save_LIBS="$LIBS" 10732 LIBS="$lt_cv_dlopen_libs $LIBS" 10733 10734 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10735echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 10736if test "${lt_cv_dlopen_self+set}" = set; then 10737 echo $ECHO_N "(cached) $ECHO_C" >&6 10738else 10739 if test "$cross_compiling" = yes; then : 10740 lt_cv_dlopen_self=cross 10741else 10742 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10743 lt_status=$lt_dlunknown 10744 cat > conftest.$ac_ext <<EOF 10745#line 10745 "configure" 10746#include "confdefs.h" 10747 10748#if HAVE_DLFCN_H 10749#include <dlfcn.h> 10750#endif 10751 10752#include <stdio.h> 10753 10754#ifdef RTLD_GLOBAL 10755# define LT_DLGLOBAL RTLD_GLOBAL 10756#else 10757# ifdef DL_GLOBAL 10758# define LT_DLGLOBAL DL_GLOBAL 10759# else 10760# define LT_DLGLOBAL 0 10761# endif 10762#endif 10763 10764/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10765 find out it does not work in some platform. */ 10766#ifndef LT_DLLAZY_OR_NOW 10767# ifdef RTLD_LAZY 10768# define LT_DLLAZY_OR_NOW RTLD_LAZY 10769# else 10770# ifdef DL_LAZY 10771# define LT_DLLAZY_OR_NOW DL_LAZY 10772# else 10773# ifdef RTLD_NOW 10774# define LT_DLLAZY_OR_NOW RTLD_NOW 10775# else 10776# ifdef DL_NOW 10777# define LT_DLLAZY_OR_NOW DL_NOW 10778# else 10779# define LT_DLLAZY_OR_NOW 0 10780# endif 10781# endif 10782# endif 10783# endif 10784#endif 10785 10786#ifdef __cplusplus 10787extern "C" void exit (int); 10788#endif 10789 10790void fnord() { int i=42;} 10791int main () 10792{ 10793 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10794 int status = $lt_dlunknown; 10795 10796 if (self) 10797 { 10798 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10799 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10800 /* dlclose (self); */ 10801 } 10802 else 10803 puts (dlerror ()); 10804 10805 exit (status); 10806} 10807EOF 10808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10809 (eval $ac_link) 2>&5 10810 ac_status=$? 10811 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10812 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10813 (./conftest; exit; ) >&5 2>/dev/null 10814 lt_status=$? 10815 case x$lt_status in 10816 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10817 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10818 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10819 esac 10820 else : 10821 # compilation failed 10822 lt_cv_dlopen_self=no 10823 fi 10824fi 10825rm -fr conftest* 10826 10827 10828fi 10829echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10830echo "${ECHO_T}$lt_cv_dlopen_self" >&6 10831 10832 if test "x$lt_cv_dlopen_self" = xyes; then 10833 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10834 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10835echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 10836if test "${lt_cv_dlopen_self_static+set}" = set; then 10837 echo $ECHO_N "(cached) $ECHO_C" >&6 10838else 10839 if test "$cross_compiling" = yes; then : 10840 lt_cv_dlopen_self_static=cross 10841else 10842 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10843 lt_status=$lt_dlunknown 10844 cat > conftest.$ac_ext <<EOF 10845#line 10845 "configure" 10846#include "confdefs.h" 10847 10848#if HAVE_DLFCN_H 10849#include <dlfcn.h> 10850#endif 10851 10852#include <stdio.h> 10853 10854#ifdef RTLD_GLOBAL 10855# define LT_DLGLOBAL RTLD_GLOBAL 10856#else 10857# ifdef DL_GLOBAL 10858# define LT_DLGLOBAL DL_GLOBAL 10859# else 10860# define LT_DLGLOBAL 0 10861# endif 10862#endif 10863 10864/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10865 find out it does not work in some platform. */ 10866#ifndef LT_DLLAZY_OR_NOW 10867# ifdef RTLD_LAZY 10868# define LT_DLLAZY_OR_NOW RTLD_LAZY 10869# else 10870# ifdef DL_LAZY 10871# define LT_DLLAZY_OR_NOW DL_LAZY 10872# else 10873# ifdef RTLD_NOW 10874# define LT_DLLAZY_OR_NOW RTLD_NOW 10875# else 10876# ifdef DL_NOW 10877# define LT_DLLAZY_OR_NOW DL_NOW 10878# else 10879# define LT_DLLAZY_OR_NOW 0 10880# endif 10881# endif 10882# endif 10883# endif 10884#endif 10885 10886#ifdef __cplusplus 10887extern "C" void exit (int); 10888#endif 10889 10890void fnord() { int i=42;} 10891int main () 10892{ 10893 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10894 int status = $lt_dlunknown; 10895 10896 if (self) 10897 { 10898 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10899 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10900 /* dlclose (self); */ 10901 } 10902 else 10903 puts (dlerror ()); 10904 10905 exit (status); 10906} 10907EOF 10908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10909 (eval $ac_link) 2>&5 10910 ac_status=$? 10911 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10912 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10913 (./conftest; exit; ) >&5 2>/dev/null 10914 lt_status=$? 10915 case x$lt_status in 10916 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10917 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10918 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10919 esac 10920 else : 10921 # compilation failed 10922 lt_cv_dlopen_self_static=no 10923 fi 10924fi 10925rm -fr conftest* 10926 10927 10928fi 10929echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 10930echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 10931 fi 10932 10933 CPPFLAGS="$save_CPPFLAGS" 10934 LDFLAGS="$save_LDFLAGS" 10935 LIBS="$save_LIBS" 10936 ;; 10937 esac 10938 10939 case $lt_cv_dlopen_self in 10940 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10941 *) enable_dlopen_self=unknown ;; 10942 esac 10943 10944 case $lt_cv_dlopen_self_static in 10945 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10946 *) enable_dlopen_self_static=unknown ;; 10947 esac 10948fi 10949 10950 10951# Report which library types will actually be built 10952echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 10953echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 10954echo "$as_me:$LINENO: result: $can_build_shared" >&5 10955echo "${ECHO_T}$can_build_shared" >&6 10956 10957echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 10958echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 10959test "$can_build_shared" = "no" && enable_shared=no 10960 10961# On AIX, shared libraries and static libraries use the same namespace, and 10962# are all built from PIC. 10963case $host_os in 10964aix3*) 10965 test "$enable_shared" = yes && enable_static=no 10966 if test -n "$RANLIB"; then 10967 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10968 postinstall_cmds='$RANLIB $lib' 10969 fi 10970 ;; 10971 10972aix4* | aix5*) 10973 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10974 test "$enable_shared" = yes && enable_static=no 10975 fi 10976 ;; 10977esac 10978echo "$as_me:$LINENO: result: $enable_shared" >&5 10979echo "${ECHO_T}$enable_shared" >&6 10980 10981echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10982echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 10983# Make sure either enable_shared or enable_static is yes. 10984test "$enable_shared" = yes || enable_static=yes 10985echo "$as_me:$LINENO: result: $enable_static" >&5 10986echo "${ECHO_T}$enable_static" >&6 10987 10988# The else clause should only fire when bootstrapping the 10989# libtool distribution, otherwise you forgot to ship ltmain.sh 10990# with your package, and you will get complaints that there are 10991# no rules to generate ltmain.sh. 10992if test -f "$ltmain"; then 10993 # See if we are running on zsh, and set the options which allow our commands through 10994 # without removal of \ escapes. 10995 if test -n "${ZSH_VERSION+set}" ; then 10996 setopt NO_GLOB_SUBST 10997 fi 10998 # Now quote all the things that may contain metacharacters while being 10999 # careful not to overquote the AC_SUBSTed values. We take copies of the 11000 # variables and quote the copies for generation of the libtool script. 11001 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 11002 SED SHELL STRIP \ 11003 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 11004 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 11005 deplibs_check_method reload_flag reload_cmds need_locks \ 11006 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 11007 lt_cv_sys_global_symbol_to_c_name_address \ 11008 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 11009 old_postinstall_cmds old_postuninstall_cmds \ 11010 compiler \ 11011 CC \ 11012 LD \ 11013 lt_prog_compiler_wl \ 11014 lt_prog_compiler_pic \ 11015 lt_prog_compiler_static \ 11016 lt_prog_compiler_no_builtin_flag \ 11017 export_dynamic_flag_spec \ 11018 thread_safe_flag_spec \ 11019 whole_archive_flag_spec \ 11020 enable_shared_with_static_runtimes \ 11021 old_archive_cmds \ 11022 old_archive_from_new_cmds \ 11023 predep_objects \ 11024 postdep_objects \ 11025 predeps \ 11026 postdeps \ 11027 compiler_lib_search_path \ 11028 archive_cmds \ 11029 archive_expsym_cmds \ 11030 postinstall_cmds \ 11031 postuninstall_cmds \ 11032 old_archive_from_expsyms_cmds \ 11033 allow_undefined_flag \ 11034 no_undefined_flag \ 11035 export_symbols_cmds \ 11036 hardcode_libdir_flag_spec \ 11037 hardcode_libdir_flag_spec_ld \ 11038 hardcode_libdir_separator \ 11039 hardcode_automatic \ 11040 module_cmds \ 11041 module_expsym_cmds \ 11042 lt_cv_prog_compiler_c_o \ 11043 exclude_expsyms \ 11044 include_expsyms; do 11045 11046 case $var in 11047 old_archive_cmds | \ 11048 old_archive_from_new_cmds | \ 11049 archive_cmds | \ 11050 archive_expsym_cmds | \ 11051 module_cmds | \ 11052 module_expsym_cmds | \ 11053 old_archive_from_expsyms_cmds | \ 11054 export_symbols_cmds | \ 11055 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 11056 postinstall_cmds | postuninstall_cmds | \ 11057 old_postinstall_cmds | old_postuninstall_cmds | \ 11058 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 11059 # Double-quote double-evaled strings. 11060 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 11061 ;; 11062 *) 11063 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 11064 ;; 11065 esac 11066 done 11067 11068 case $lt_echo in 11069 *'\$0 --fallback-echo"') 11070 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 11071 ;; 11072 esac 11073 11074cfgfile="${ofile}T" 11075 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 11076 $rm -f "$cfgfile" 11077 { echo "$as_me:$LINENO: creating $ofile" >&5 11078echo "$as_me: creating $ofile" >&6;} 11079 11080 cat <<__EOF__ >> "$cfgfile" 11081#! $SHELL 11082 11083# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 11084# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 11085# NOTE: Changes made to this file will be lost: look at ltmain.sh. 11086# 11087# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 11088# Free Software Foundation, Inc. 11089# 11090# This file is part of GNU Libtool: 11091# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 11092# 11093# This program is free software; you can redistribute it and/or modify 11094# it under the terms of the GNU General Public License as published by 11095# the Free Software Foundation; either version 2 of the License, or 11096# (at your option) any later version. 11097# 11098# This program is distributed in the hope that it will be useful, but 11099# WITHOUT ANY WARRANTY; without even the implied warranty of 11100# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 11101# General Public License for more details. 11102# 11103# You should have received a copy of the GNU General Public License 11104# along with this program; if not, write to the Free Software 11105# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 11106# 11107# As a special exception to the GNU General Public License, if you 11108# distribute this file as part of a program that contains a 11109# configuration script generated by Autoconf, you may include it under 11110# the same distribution terms that you use for the rest of that program. 11111 11112# A sed program that does not truncate output. 11113SED=$lt_SED 11114 11115# Sed that helps us avoid accidentally triggering echo(1) options like -n. 11116Xsed="$SED -e 1s/^X//" 11117 11118# The HP-UX ksh and POSIX shell print the target directory to stdout 11119# if CDPATH is set. 11120(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11121 11122# The names of the tagged configurations supported by this script. 11123available_tags= 11124 11125# ### BEGIN LIBTOOL CONFIG 11126 11127# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 11128 11129# Shell to use when invoking shell scripts. 11130SHELL=$lt_SHELL 11131 11132# Whether or not to build shared libraries. 11133build_libtool_libs=$enable_shared 11134 11135# Whether or not to build static libraries. 11136build_old_libs=$enable_static 11137 11138# Whether or not to add -lc for building shared libraries. 11139build_libtool_need_lc=$archive_cmds_need_lc 11140 11141# Whether or not to disallow shared libs when runtime libs are static 11142allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 11143 11144# Whether or not to optimize for fast installation. 11145fast_install=$enable_fast_install 11146 11147# The host system. 11148host_alias=$host_alias 11149host=$host 11150host_os=$host_os 11151 11152# The build system. 11153build_alias=$build_alias 11154build=$build 11155build_os=$build_os 11156 11157# An echo program that does not interpret backslashes. 11158echo=$lt_echo 11159 11160# The archiver. 11161AR=$lt_AR 11162AR_FLAGS=$lt_AR_FLAGS 11163 11164# A C compiler. 11165LTCC=$lt_LTCC 11166 11167# LTCC compiler flags. 11168LTCFLAGS=$lt_LTCFLAGS 11169 11170# A language-specific compiler. 11171CC=$lt_compiler 11172 11173# Is the compiler the GNU C compiler? 11174with_gcc=$GCC 11175 11176# An ERE matcher. 11177EGREP=$lt_EGREP 11178 11179# The linker used to build libraries. 11180LD=$lt_LD 11181 11182# Whether we need hard or soft links. 11183LN_S=$lt_LN_S 11184 11185# A BSD-compatible nm program. 11186NM=$lt_NM 11187 11188# A symbol stripping program 11189STRIP=$lt_STRIP 11190 11191# Used to examine libraries when file_magic_cmd begins "file" 11192MAGIC_CMD=$MAGIC_CMD 11193 11194# Used on cygwin: DLL creation program. 11195DLLTOOL="$DLLTOOL" 11196 11197# Used on cygwin: object dumper. 11198OBJDUMP="$OBJDUMP" 11199 11200# Used on cygwin: assembler. 11201AS="$AS" 11202 11203# The name of the directory that contains temporary libtool files. 11204objdir=$objdir 11205 11206# How to create reloadable object files. 11207reload_flag=$lt_reload_flag 11208reload_cmds=$lt_reload_cmds 11209 11210# How to pass a linker flag through the compiler. 11211wl=$lt_lt_prog_compiler_wl 11212 11213# Object file suffix (normally "o"). 11214objext="$ac_objext" 11215 11216# Old archive suffix (normally "a"). 11217libext="$libext" 11218 11219# Shared library suffix (normally ".so"). 11220shrext_cmds='$shrext_cmds' 11221 11222# Executable file suffix (normally ""). 11223exeext="$exeext" 11224 11225# Additional compiler flags for building library objects. 11226pic_flag=$lt_lt_prog_compiler_pic 11227pic_mode=$pic_mode 11228 11229# What is the maximum length of a command? 11230max_cmd_len=$lt_cv_sys_max_cmd_len 11231 11232# Does compiler simultaneously support -c and -o options? 11233compiler_c_o=$lt_lt_cv_prog_compiler_c_o 11234 11235# Must we lock files when doing compilation? 11236need_locks=$lt_need_locks 11237 11238# Do we need the lib prefix for modules? 11239need_lib_prefix=$need_lib_prefix 11240 11241# Do we need a version for libraries? 11242need_version=$need_version 11243 11244# Whether dlopen is supported. 11245dlopen_support=$enable_dlopen 11246 11247# Whether dlopen of programs is supported. 11248dlopen_self=$enable_dlopen_self 11249 11250# Whether dlopen of statically linked programs is supported. 11251dlopen_self_static=$enable_dlopen_self_static 11252 11253# Compiler flag to prevent dynamic linking. 11254link_static_flag=$lt_lt_prog_compiler_static 11255 11256# Compiler flag to turn off builtin functions. 11257no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 11258 11259# Compiler flag to allow reflexive dlopens. 11260export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 11261 11262# Compiler flag to generate shared objects directly from archives. 11263whole_archive_flag_spec=$lt_whole_archive_flag_spec 11264 11265# Compiler flag to generate thread-safe objects. 11266thread_safe_flag_spec=$lt_thread_safe_flag_spec 11267 11268# Library versioning type. 11269version_type=$version_type 11270 11271# Format of library name prefix. 11272libname_spec=$lt_libname_spec 11273 11274# List of archive names. First name is the real one, the rest are links. 11275# The last name is the one that the linker finds with -lNAME. 11276library_names_spec=$lt_library_names_spec 11277 11278# The coded name of the library, if different from the real name. 11279soname_spec=$lt_soname_spec 11280 11281# Commands used to build and install an old-style archive. 11282RANLIB=$lt_RANLIB 11283old_archive_cmds=$lt_old_archive_cmds 11284old_postinstall_cmds=$lt_old_postinstall_cmds 11285old_postuninstall_cmds=$lt_old_postuninstall_cmds 11286 11287# Create an old-style archive from a shared archive. 11288old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 11289 11290# Create a temporary old-style archive to link instead of a shared archive. 11291old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 11292 11293# Commands used to build and install a shared archive. 11294archive_cmds=$lt_archive_cmds 11295archive_expsym_cmds=$lt_archive_expsym_cmds 11296postinstall_cmds=$lt_postinstall_cmds 11297postuninstall_cmds=$lt_postuninstall_cmds 11298 11299# Commands used to build a loadable module (assumed same as above if empty) 11300module_cmds=$lt_module_cmds 11301module_expsym_cmds=$lt_module_expsym_cmds 11302 11303# Commands to strip libraries. 11304old_striplib=$lt_old_striplib 11305striplib=$lt_striplib 11306 11307# Dependencies to place before the objects being linked to create a 11308# shared library. 11309predep_objects=$lt_predep_objects 11310 11311# Dependencies to place after the objects being linked to create a 11312# shared library. 11313postdep_objects=$lt_postdep_objects 11314 11315# Dependencies to place before the objects being linked to create a 11316# shared library. 11317predeps=$lt_predeps 11318 11319# Dependencies to place after the objects being linked to create a 11320# shared library. 11321postdeps=$lt_postdeps 11322 11323# The library search path used internally by the compiler when linking 11324# a shared library. 11325compiler_lib_search_path=$lt_compiler_lib_search_path 11326 11327# Method to check whether dependent libraries are shared objects. 11328deplibs_check_method=$lt_deplibs_check_method 11329 11330# Command to use when deplibs_check_method == file_magic. 11331file_magic_cmd=$lt_file_magic_cmd 11332 11333# Flag that allows shared libraries with undefined symbols to be built. 11334allow_undefined_flag=$lt_allow_undefined_flag 11335 11336# Flag that forces no undefined symbols. 11337no_undefined_flag=$lt_no_undefined_flag 11338 11339# Commands used to finish a libtool library installation in a directory. 11340finish_cmds=$lt_finish_cmds 11341 11342# Same as above, but a single script fragment to be evaled but not shown. 11343finish_eval=$lt_finish_eval 11344 11345# Take the output of nm and produce a listing of raw symbols and C names. 11346global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 11347 11348# Transform the output of nm in a proper C declaration 11349global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 11350 11351# Transform the output of nm in a C name address pair 11352global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 11353 11354# This is the shared library runtime path variable. 11355runpath_var=$runpath_var 11356 11357# This is the shared library path variable. 11358shlibpath_var=$shlibpath_var 11359 11360# Is shlibpath searched before the hard-coded library search path? 11361shlibpath_overrides_runpath=$shlibpath_overrides_runpath 11362 11363# How to hardcode a shared library path into an executable. 11364hardcode_action=$hardcode_action 11365 11366# Whether we should hardcode library paths into libraries. 11367hardcode_into_libs=$hardcode_into_libs 11368 11369# Flag to hardcode \$libdir into a binary during linking. 11370# This must work even if \$libdir does not exist. 11371hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 11372 11373# If ld is used when linking, flag to hardcode \$libdir into 11374# a binary during linking. This must work even if \$libdir does 11375# not exist. 11376hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 11377 11378# Whether we need a single -rpath flag with a separated argument. 11379hardcode_libdir_separator=$lt_hardcode_libdir_separator 11380 11381# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 11382# resulting binary. 11383hardcode_direct=$hardcode_direct 11384 11385# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 11386# resulting binary. 11387hardcode_minus_L=$hardcode_minus_L 11388 11389# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 11390# the resulting binary. 11391hardcode_shlibpath_var=$hardcode_shlibpath_var 11392 11393# Set to yes if building a shared library automatically hardcodes DIR into the library 11394# and all subsequent libraries and executables linked against it. 11395hardcode_automatic=$hardcode_automatic 11396 11397# Variables whose values should be saved in libtool wrapper scripts and 11398# restored at relink time. 11399variables_saved_for_relink="$variables_saved_for_relink" 11400 11401# Whether libtool must link a program against all its dependency libraries. 11402link_all_deplibs=$link_all_deplibs 11403 11404# Compile-time system search path for libraries 11405sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 11406 11407# Run-time system search path for libraries 11408sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 11409 11410# Fix the shell variable \$srcfile for the compiler. 11411fix_srcfile_path="$fix_srcfile_path" 11412 11413# Set to yes if exported symbols are required. 11414always_export_symbols=$always_export_symbols 11415 11416# The commands to list exported symbols. 11417export_symbols_cmds=$lt_export_symbols_cmds 11418 11419# The commands to extract the exported symbol list from a shared archive. 11420extract_expsyms_cmds=$lt_extract_expsyms_cmds 11421 11422# Symbols that should not be listed in the preloaded symbols. 11423exclude_expsyms=$lt_exclude_expsyms 11424 11425# Symbols that must always be exported. 11426include_expsyms=$lt_include_expsyms 11427 11428# ### END LIBTOOL CONFIG 11429 11430__EOF__ 11431 11432 11433 case $host_os in 11434 aix3*) 11435 cat <<\EOF >> "$cfgfile" 11436 11437# AIX sometimes has problems with the GCC collect2 program. For some 11438# reason, if we set the COLLECT_NAMES environment variable, the problems 11439# vanish in a puff of smoke. 11440if test "X${COLLECT_NAMES+set}" != Xset; then 11441 COLLECT_NAMES= 11442 export COLLECT_NAMES 11443fi 11444EOF 11445 ;; 11446 esac 11447 11448 # We use sed instead of cat because bash on DJGPP gets confused if 11449 # if finds mixed CR/LF and LF-only lines. Since sed operates in 11450 # text mode, it properly converts lines to CR/LF. This bash problem 11451 # is reportedly fixed, but why not run on old versions too? 11452 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 11453 11454 mv -f "$cfgfile" "$ofile" || \ 11455 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 11456 chmod +x "$ofile" 11457 11458else 11459 # If there is no Makefile yet, we rely on a make rule to execute 11460 # `config.status --recheck' to rerun these tests and create the 11461 # libtool script then. 11462 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 11463 if test -f "$ltmain_in"; then 11464 test -f Makefile && make "$ltmain" 11465 fi 11466fi 11467 11468 11469ac_ext=c 11470ac_cpp='$CPP $CPPFLAGS' 11471ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11472ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11473ac_compiler_gnu=$ac_cv_c_compiler_gnu 11474 11475CC="$lt_save_CC" 11476 11477 11478# Check whether --with-tags or --without-tags was given. 11479if test "${with_tags+set}" = set; then 11480 withval="$with_tags" 11481 tagnames="$withval" 11482fi; 11483 11484if test -f "$ltmain" && test -n "$tagnames"; then 11485 if test ! -f "${ofile}"; then 11486 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 11487echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 11488 fi 11489 11490 if test -z "$LTCC"; then 11491 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 11492 if test -z "$LTCC"; then 11493 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 11494echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 11495 else 11496 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 11497echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 11498 fi 11499 fi 11500 if test -z "$LTCFLAGS"; then 11501 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 11502 fi 11503 11504 # Extract list of available tagged configurations in $ofile. 11505 # Note that this assumes the entire list is on one line. 11506 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 11507 11508 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 11509 for tagname in $tagnames; do 11510 IFS="$lt_save_ifs" 11511 # Check whether tagname contains only valid characters 11512 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 11513 "") ;; 11514 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 11515echo "$as_me: error: invalid tag name: $tagname" >&2;} 11516 { (exit 1); exit 1; }; } 11517 ;; 11518 esac 11519 11520 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 11521 then 11522 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 11523echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 11524 { (exit 1); exit 1; }; } 11525 fi 11526 11527 # Update the list of available tags. 11528 if test -n "$tagname"; then 11529 echo appending configuration tag \"$tagname\" to $ofile 11530 11531 case $tagname in 11532 CXX) 11533 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 11534 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 11535 (test "X$CXX" != "Xg++"))) ; then 11536 ac_ext=cc 11537ac_cpp='$CXXCPP $CPPFLAGS' 11538ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11539ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11540ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11541 11542 11543 11544 11545archive_cmds_need_lc_CXX=no 11546allow_undefined_flag_CXX= 11547always_export_symbols_CXX=no 11548archive_expsym_cmds_CXX= 11549export_dynamic_flag_spec_CXX= 11550hardcode_direct_CXX=no 11551hardcode_libdir_flag_spec_CXX= 11552hardcode_libdir_flag_spec_ld_CXX= 11553hardcode_libdir_separator_CXX= 11554hardcode_minus_L_CXX=no 11555hardcode_shlibpath_var_CXX=unsupported 11556hardcode_automatic_CXX=no 11557module_cmds_CXX= 11558module_expsym_cmds_CXX= 11559link_all_deplibs_CXX=unknown 11560old_archive_cmds_CXX=$old_archive_cmds 11561no_undefined_flag_CXX= 11562whole_archive_flag_spec_CXX= 11563enable_shared_with_static_runtimes_CXX=no 11564 11565# Dependencies to place before and after the object being linked: 11566predep_objects_CXX= 11567postdep_objects_CXX= 11568predeps_CXX= 11569postdeps_CXX= 11570compiler_lib_search_path_CXX= 11571 11572# Source file extension for C++ test sources. 11573ac_ext=cpp 11574 11575# Object file extension for compiled C++ test sources. 11576objext=o 11577objext_CXX=$objext 11578 11579# Code to be used in simple compile tests 11580lt_simple_compile_test_code="int some_variable = 0;\n" 11581 11582# Code to be used in simple link tests 11583lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' 11584 11585# ltmain only uses $CC for tagged configurations so make sure $CC is set. 11586 11587# If no C compiler was specified, use CC. 11588LTCC=${LTCC-"$CC"} 11589 11590# If no C compiler flags were specified, use CFLAGS. 11591LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11592 11593# Allow CC to be a program name with arguments. 11594compiler=$CC 11595 11596 11597# save warnings/boilerplate of simple test code 11598ac_outfile=conftest.$ac_objext 11599printf "$lt_simple_compile_test_code" >conftest.$ac_ext 11600eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11601_lt_compiler_boilerplate=`cat conftest.err` 11602$rm conftest* 11603 11604ac_outfile=conftest.$ac_objext 11605printf "$lt_simple_link_test_code" >conftest.$ac_ext 11606eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11607_lt_linker_boilerplate=`cat conftest.err` 11608$rm conftest* 11609 11610 11611# Allow CC to be a program name with arguments. 11612lt_save_CC=$CC 11613lt_save_LD=$LD 11614lt_save_GCC=$GCC 11615GCC=$GXX 11616lt_save_with_gnu_ld=$with_gnu_ld 11617lt_save_path_LD=$lt_cv_path_LD 11618if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 11619 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 11620else 11621 $as_unset lt_cv_prog_gnu_ld 11622fi 11623if test -n "${lt_cv_path_LDCXX+set}"; then 11624 lt_cv_path_LD=$lt_cv_path_LDCXX 11625else 11626 $as_unset lt_cv_path_LD 11627fi 11628test -z "${LDCXX+set}" || LD=$LDCXX 11629CC=${CXX-"c++"} 11630compiler=$CC 11631compiler_CXX=$CC 11632for cc_temp in $compiler""; do 11633 case $cc_temp in 11634 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11635 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11636 \-*) ;; 11637 *) break;; 11638 esac 11639done 11640cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 11641 11642 11643# We don't want -fno-exception wen compiling C++ code, so set the 11644# no_builtin_flag separately 11645if test "$GXX" = yes; then 11646 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 11647else 11648 lt_prog_compiler_no_builtin_flag_CXX= 11649fi 11650 11651if test "$GXX" = yes; then 11652 # Set up default GNU C++ configuration 11653 11654 11655# Check whether --with-gnu-ld or --without-gnu-ld was given. 11656if test "${with_gnu_ld+set}" = set; then 11657 withval="$with_gnu_ld" 11658 test "$withval" = no || with_gnu_ld=yes 11659else 11660 with_gnu_ld=no 11661fi; 11662ac_prog=ld 11663if test "$GCC" = yes; then 11664 # Check if gcc -print-prog-name=ld gives a path. 11665 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 11666echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 11667 case $host in 11668 *-*-mingw*) 11669 # gcc leaves a trailing carriage return which upsets mingw 11670 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11671 *) 11672 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11673 esac 11674 case $ac_prog in 11675 # Accept absolute paths. 11676 [\\/]* | ?:[\\/]*) 11677 re_direlt='/[^/][^/]*/\.\./' 11678 # Canonicalize the pathname of ld 11679 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 11680 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 11681 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 11682 done 11683 test -z "$LD" && LD="$ac_prog" 11684 ;; 11685 "") 11686 # If it fails, then pretend we aren't using GCC. 11687 ac_prog=ld 11688 ;; 11689 *) 11690 # If it is relative, then search for the first ld in PATH. 11691 with_gnu_ld=unknown 11692 ;; 11693 esac 11694elif test "$with_gnu_ld" = yes; then 11695 echo "$as_me:$LINENO: checking for GNU ld" >&5 11696echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 11697else 11698 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 11699echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 11700fi 11701if test "${lt_cv_path_LD+set}" = set; then 11702 echo $ECHO_N "(cached) $ECHO_C" >&6 11703else 11704 if test -z "$LD"; then 11705 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11706 for ac_dir in $PATH; do 11707 IFS="$lt_save_ifs" 11708 test -z "$ac_dir" && ac_dir=. 11709 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11710 lt_cv_path_LD="$ac_dir/$ac_prog" 11711 # Check to see if the program is GNU ld. I'd rather use --version, 11712 # but apparently some variants of GNU ld only accept -v. 11713 # Break only if it was the GNU/non-GNU ld that we prefer. 11714 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11715 *GNU* | *'with BFD'*) 11716 test "$with_gnu_ld" != no && break 11717 ;; 11718 *) 11719 test "$with_gnu_ld" != yes && break 11720 ;; 11721 esac 11722 fi 11723 done 11724 IFS="$lt_save_ifs" 11725else 11726 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11727fi 11728fi 11729 11730LD="$lt_cv_path_LD" 11731if test -n "$LD"; then 11732 echo "$as_me:$LINENO: result: $LD" >&5 11733echo "${ECHO_T}$LD" >&6 11734else 11735 echo "$as_me:$LINENO: result: no" >&5 11736echo "${ECHO_T}no" >&6 11737fi 11738test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 11739echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 11740 { (exit 1); exit 1; }; } 11741echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 11742echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 11743if test "${lt_cv_prog_gnu_ld+set}" = set; then 11744 echo $ECHO_N "(cached) $ECHO_C" >&6 11745else 11746 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11747case `$LD -v 2>&1 </dev/null` in 11748*GNU* | *'with BFD'*) 11749 lt_cv_prog_gnu_ld=yes 11750 ;; 11751*) 11752 lt_cv_prog_gnu_ld=no 11753 ;; 11754esac 11755fi 11756echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 11757echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 11758with_gnu_ld=$lt_cv_prog_gnu_ld 11759 11760 11761 11762 # Check if GNU C++ uses GNU ld as the underlying linker, since the 11763 # archiving commands below assume that GNU ld is being used. 11764 if test "$with_gnu_ld" = yes; then 11765 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11766 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' 11767 11768 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11769 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11770 11771 # If archive_cmds runs LD, not CC, wlarc should be empty 11772 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 11773 # investigate it a little bit more. (MM) 11774 wlarc='${wl}' 11775 11776 # ancient GNU ld didn't support --whole-archive et. al. 11777 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 11778 grep 'no-whole-archive' > /dev/null; then 11779 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11780 else 11781 whole_archive_flag_spec_CXX= 11782 fi 11783 else 11784 with_gnu_ld=no 11785 wlarc= 11786 11787 # A generic and very simple default shared library creation 11788 # command for GNU C++ for the case where it uses the native 11789 # linker, instead of GNU ld. If possible, this setting should 11790 # overridden to take advantage of the native linker features on 11791 # the platform it is being used on. 11792 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11793 fi 11794 11795 # Commands to make compiler produce verbose output that lists 11796 # what "hidden" libraries, object files and flags are used when 11797 # linking a shared library. 11798 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11799 11800else 11801 GXX=no 11802 with_gnu_ld=no 11803 wlarc= 11804fi 11805 11806# PORTME: fill in a description of your system's C++ link characteristics 11807echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11808echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 11809ld_shlibs_CXX=yes 11810case $host_os in 11811 aix3*) 11812 # FIXME: insert proper C++ library support 11813 ld_shlibs_CXX=no 11814 ;; 11815 aix4* | aix5*) 11816 if test "$host_cpu" = ia64; then 11817 # On IA64, the linker does run time linking by default, so we don't 11818 # have to do anything special. 11819 aix_use_runtimelinking=no 11820 exp_sym_flag='-Bexport' 11821 no_entry_flag="" 11822 else 11823 aix_use_runtimelinking=no 11824 11825 # Test if we are trying to use run time linking or normal 11826 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11827 # need to do runtime linking. 11828 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 11829 for ld_flag in $LDFLAGS; do 11830 case $ld_flag in 11831 *-brtl*) 11832 aix_use_runtimelinking=yes 11833 break 11834 ;; 11835 esac 11836 done 11837 ;; 11838 esac 11839 11840 exp_sym_flag='-bexport' 11841 no_entry_flag='-bnoentry' 11842 fi 11843 11844 # When large executables or shared objects are built, AIX ld can 11845 # have problems creating the table of contents. If linking a library 11846 # or program results in "error TOC overflow" add -mminimal-toc to 11847 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11848 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11849 11850 archive_cmds_CXX='' 11851 hardcode_direct_CXX=yes 11852 hardcode_libdir_separator_CXX=':' 11853 link_all_deplibs_CXX=yes 11854 11855 if test "$GXX" = yes; then 11856 case $host_os in aix4.[012]|aix4.[012].*) 11857 # We only want to do this on AIX 4.2 and lower, the check 11858 # below for broken collect2 doesn't work under 4.3+ 11859 collect2name=`${CC} -print-prog-name=collect2` 11860 if test -f "$collect2name" && \ 11861 strings "$collect2name" | grep resolve_lib_name >/dev/null 11862 then 11863 # We have reworked collect2 11864 hardcode_direct_CXX=yes 11865 else 11866 # We have old collect2 11867 hardcode_direct_CXX=unsupported 11868 # It fails to find uninstalled libraries when the uninstalled 11869 # path is not listed in the libpath. Setting hardcode_minus_L 11870 # to unsupported forces relinking 11871 hardcode_minus_L_CXX=yes 11872 hardcode_libdir_flag_spec_CXX='-L$libdir' 11873 hardcode_libdir_separator_CXX= 11874 fi 11875 ;; 11876 esac 11877 shared_flag='-shared' 11878 if test "$aix_use_runtimelinking" = yes; then 11879 shared_flag="$shared_flag "'${wl}-G' 11880 fi 11881 else 11882 # not using gcc 11883 if test "$host_cpu" = ia64; then 11884 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11885 # chokes on -Wl,-G. The following line is correct: 11886 shared_flag='-G' 11887 else 11888 if test "$aix_use_runtimelinking" = yes; then 11889 shared_flag='${wl}-G' 11890 else 11891 shared_flag='${wl}-bM:SRE' 11892 fi 11893 fi 11894 fi 11895 11896 # It seems that -bexpall does not export symbols beginning with 11897 # underscore (_), so it is better to generate a list of symbols to export. 11898 always_export_symbols_CXX=yes 11899 if test "$aix_use_runtimelinking" = yes; then 11900 # Warning - without using the other runtime loading flags (-brtl), 11901 # -berok will link without error, but may produce a broken library. 11902 allow_undefined_flag_CXX='-berok' 11903 # Determine the default libpath from the value encoded in an empty executable. 11904 cat >conftest.$ac_ext <<_ACEOF 11905/* confdefs.h. */ 11906_ACEOF 11907cat confdefs.h >>conftest.$ac_ext 11908cat >>conftest.$ac_ext <<_ACEOF 11909/* end confdefs.h. */ 11910 11911int 11912main () 11913{ 11914 11915 ; 11916 return 0; 11917} 11918_ACEOF 11919rm -f conftest.$ac_objext conftest$ac_exeext 11920if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11921 (eval $ac_link) 2>conftest.er1 11922 ac_status=$? 11923 grep -v '^ *+' conftest.er1 >conftest.err 11924 rm -f conftest.er1 11925 cat conftest.err >&5 11926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11927 (exit $ac_status); } && 11928 { ac_try='test -z "$ac_cxx_werror_flag" 11929 || test ! -s conftest.err' 11930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11931 (eval $ac_try) 2>&5 11932 ac_status=$? 11933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11934 (exit $ac_status); }; } && 11935 { ac_try='test -s conftest$ac_exeext' 11936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11937 (eval $ac_try) 2>&5 11938 ac_status=$? 11939 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11940 (exit $ac_status); }; }; then 11941 11942aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11943}'` 11944# Check for a 64-bit object if we didn't find anything. 11945if 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; } 11946}'`; fi 11947else 11948 echo "$as_me: failed program was:" >&5 11949sed 's/^/| /' conftest.$ac_ext >&5 11950 11951fi 11952rm -f conftest.err conftest.$ac_objext \ 11953 conftest$ac_exeext conftest.$ac_ext 11954if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11955 11956 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11957 11958 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" 11959 else 11960 if test "$host_cpu" = ia64; then 11961 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11962 allow_undefined_flag_CXX="-z nodefs" 11963 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" 11964 else 11965 # Determine the default libpath from the value encoded in an empty executable. 11966 cat >conftest.$ac_ext <<_ACEOF 11967/* confdefs.h. */ 11968_ACEOF 11969cat confdefs.h >>conftest.$ac_ext 11970cat >>conftest.$ac_ext <<_ACEOF 11971/* end confdefs.h. */ 11972 11973int 11974main () 11975{ 11976 11977 ; 11978 return 0; 11979} 11980_ACEOF 11981rm -f conftest.$ac_objext conftest$ac_exeext 11982if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11983 (eval $ac_link) 2>conftest.er1 11984 ac_status=$? 11985 grep -v '^ *+' conftest.er1 >conftest.err 11986 rm -f conftest.er1 11987 cat conftest.err >&5 11988 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11989 (exit $ac_status); } && 11990 { ac_try='test -z "$ac_cxx_werror_flag" 11991 || test ! -s conftest.err' 11992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11993 (eval $ac_try) 2>&5 11994 ac_status=$? 11995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11996 (exit $ac_status); }; } && 11997 { ac_try='test -s conftest$ac_exeext' 11998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11999 (eval $ac_try) 2>&5 12000 ac_status=$? 12001 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12002 (exit $ac_status); }; }; then 12003 12004aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 12005}'` 12006# Check for a 64-bit object if we didn't find anything. 12007if 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; } 12008}'`; fi 12009else 12010 echo "$as_me: failed program was:" >&5 12011sed 's/^/| /' conftest.$ac_ext >&5 12012 12013fi 12014rm -f conftest.err conftest.$ac_objext \ 12015 conftest$ac_exeext conftest.$ac_ext 12016if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 12017 12018 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12019 # Warning - without using the other run time loading flags, 12020 # -berok will link without error, but may produce a broken library. 12021 no_undefined_flag_CXX=' ${wl}-bernotok' 12022 allow_undefined_flag_CXX=' ${wl}-berok' 12023 # Exported symbols can be pulled into shared objects from archives 12024 whole_archive_flag_spec_CXX='$convenience' 12025 archive_cmds_need_lc_CXX=yes 12026 # This is similar to how AIX traditionally builds its shared libraries. 12027 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' 12028 fi 12029 fi 12030 ;; 12031 12032 beos*) 12033 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 12034 allow_undefined_flag_CXX=unsupported 12035 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 12036 # support --undefined. This deserves some investigation. FIXME 12037 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12038 else 12039 ld_shlibs_CXX=no 12040 fi 12041 ;; 12042 12043 chorus*) 12044 case $cc_basename in 12045 *) 12046 # FIXME: insert proper C++ library support 12047 ld_shlibs_CXX=no 12048 ;; 12049 esac 12050 ;; 12051 12052 cygwin* | mingw* | pw32*) 12053 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 12054 # as there is no search path for DLLs. 12055 hardcode_libdir_flag_spec_CXX='-L$libdir' 12056 allow_undefined_flag_CXX=unsupported 12057 always_export_symbols_CXX=no 12058 enable_shared_with_static_runtimes_CXX=yes 12059 12060 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 12061 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' 12062 # If the export-symbols file already is a .def file (1st line 12063 # is EXPORTS), use it as is; otherwise, prepend... 12064 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12065 cp $export_symbols $output_objdir/$soname.def; 12066 else 12067 echo EXPORTS > $output_objdir/$soname.def; 12068 cat $export_symbols >> $output_objdir/$soname.def; 12069 fi~ 12070 $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' 12071 else 12072 ld_shlibs_CXX=no 12073 fi 12074 ;; 12075 darwin* | rhapsody*) 12076 case $host_os in 12077 rhapsody* | darwin1.[012]) 12078 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 12079 ;; 12080 *) # Darwin 1.3 on 12081 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 12082 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 12083 else 12084 case ${MACOSX_DEPLOYMENT_TARGET} in 12085 10.[012]) 12086 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 12087 ;; 12088 10.*) 12089 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 12090 ;; 12091 esac 12092 fi 12093 ;; 12094 esac 12095 archive_cmds_need_lc_CXX=no 12096 hardcode_direct_CXX=no 12097 hardcode_automatic_CXX=yes 12098 hardcode_shlibpath_var_CXX=unsupported 12099 whole_archive_flag_spec_CXX='' 12100 link_all_deplibs_CXX=yes 12101 12102 if test "$GXX" = yes ; then 12103 lt_int_apple_cc_single_mod=no 12104 output_verbose_link_cmd='echo' 12105 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 12106 lt_int_apple_cc_single_mod=yes 12107 fi 12108 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 12109 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 12110 else 12111 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' 12112 fi 12113 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 12114 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 12115 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 12116 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}' 12117 else 12118 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}' 12119 fi 12120 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}' 12121 else 12122 case $cc_basename in 12123 xlc*) 12124 output_verbose_link_cmd='echo' 12125 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' 12126 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 12127 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 12128 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}' 12129 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}' 12130 ;; 12131 *) 12132 ld_shlibs_CXX=no 12133 ;; 12134 esac 12135 fi 12136 ;; 12137 12138 dgux*) 12139 case $cc_basename in 12140 ec++*) 12141 # FIXME: insert proper C++ library support 12142 ld_shlibs_CXX=no 12143 ;; 12144 ghcx*) 12145 # Green Hills C++ Compiler 12146 # FIXME: insert proper C++ library support 12147 ld_shlibs_CXX=no 12148 ;; 12149 *) 12150 # FIXME: insert proper C++ library support 12151 ld_shlibs_CXX=no 12152 ;; 12153 esac 12154 ;; 12155 freebsd[12]*) 12156 # C++ shared libraries reported to be fairly broken before switch to ELF 12157 ld_shlibs_CXX=no 12158 ;; 12159 freebsd-elf*) 12160 archive_cmds_need_lc_CXX=no 12161 ;; 12162 freebsd* | kfreebsd*-gnu | dragonfly*) 12163 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 12164 # conventions 12165 ld_shlibs_CXX=yes 12166 ;; 12167 gnu*) 12168 ;; 12169 hpux9*) 12170 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12171 hardcode_libdir_separator_CXX=: 12172 export_dynamic_flag_spec_CXX='${wl}-E' 12173 hardcode_direct_CXX=yes 12174 hardcode_minus_L_CXX=yes # Not in the search PATH, 12175 # but as the default 12176 # location of the library. 12177 12178 case $cc_basename in 12179 CC*) 12180 # FIXME: insert proper C++ library support 12181 ld_shlibs_CXX=no 12182 ;; 12183 aCC*) 12184 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' 12185 # Commands to make compiler produce verbose output that lists 12186 # what "hidden" libraries, object files and flags are used when 12187 # linking a shared library. 12188 # 12189 # There doesn't appear to be a way to prevent this compiler from 12190 # explicitly linking system object files so we need to strip them 12191 # from the output so that they don't get included in the library 12192 # dependencies. 12193 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' 12194 ;; 12195 *) 12196 if test "$GXX" = yes; then 12197 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' 12198 else 12199 # FIXME: insert proper C++ library support 12200 ld_shlibs_CXX=no 12201 fi 12202 ;; 12203 esac 12204 ;; 12205 hpux10*|hpux11*) 12206 if test $with_gnu_ld = no; then 12207 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12208 hardcode_libdir_separator_CXX=: 12209 12210 case $host_cpu in 12211 hppa*64*|ia64*) 12212 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 12213 ;; 12214 *) 12215 export_dynamic_flag_spec_CXX='${wl}-E' 12216 ;; 12217 esac 12218 fi 12219 case $host_cpu in 12220 hppa*64*|ia64*) 12221 hardcode_direct_CXX=no 12222 hardcode_shlibpath_var_CXX=no 12223 ;; 12224 *) 12225 hardcode_direct_CXX=yes 12226 hardcode_minus_L_CXX=yes # Not in the search PATH, 12227 # but as the default 12228 # location of the library. 12229 ;; 12230 esac 12231 12232 case $cc_basename in 12233 CC*) 12234 # FIXME: insert proper C++ library support 12235 ld_shlibs_CXX=no 12236 ;; 12237 aCC*) 12238 case $host_cpu in 12239 hppa*64*) 12240 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12241 ;; 12242 ia64*) 12243 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12244 ;; 12245 *) 12246 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12247 ;; 12248 esac 12249 # Commands to make compiler produce verbose output that lists 12250 # what "hidden" libraries, object files and flags are used when 12251 # linking a shared library. 12252 # 12253 # There doesn't appear to be a way to prevent this compiler from 12254 # explicitly linking system object files so we need to strip them 12255 # from the output so that they don't get included in the library 12256 # dependencies. 12257 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' 12258 ;; 12259 *) 12260 if test "$GXX" = yes; then 12261 if test $with_gnu_ld = no; then 12262 case $host_cpu in 12263 hppa*64*) 12264 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12265 ;; 12266 ia64*) 12267 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12268 ;; 12269 *) 12270 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' 12271 ;; 12272 esac 12273 fi 12274 else 12275 # FIXME: insert proper C++ library support 12276 ld_shlibs_CXX=no 12277 fi 12278 ;; 12279 esac 12280 ;; 12281 interix3*) 12282 hardcode_direct_CXX=no 12283 hardcode_shlibpath_var_CXX=no 12284 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12285 export_dynamic_flag_spec_CXX='${wl}-E' 12286 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 12287 # Instead, shared libraries are loaded at an image base (0x10000000 by 12288 # default) and relocated if they conflict, which is a slow very memory 12289 # consuming and fragmenting process. To avoid this, we pick a random, 12290 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 12291 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 12292 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' 12293 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' 12294 ;; 12295 irix5* | irix6*) 12296 case $cc_basename in 12297 CC*) 12298 # SGI C++ 12299 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' 12300 12301 # Archives containing C++ object files must be created using 12302 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 12303 # necessary to make sure instantiated templates are included 12304 # in the archive. 12305 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 12306 ;; 12307 *) 12308 if test "$GXX" = yes; then 12309 if test "$with_gnu_ld" = no; then 12310 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' 12311 else 12312 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' 12313 fi 12314 fi 12315 link_all_deplibs_CXX=yes 12316 ;; 12317 esac 12318 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12319 hardcode_libdir_separator_CXX=: 12320 ;; 12321 linux*) 12322 case $cc_basename in 12323 KCC*) 12324 # Kuck and Associates, Inc. (KAI) C++ Compiler 12325 12326 # KCC will only create a shared library if the output file 12327 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12328 # to its proper name (with version) after linking. 12329 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' 12330 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' 12331 # Commands to make compiler produce verbose output that lists 12332 # what "hidden" libraries, object files and flags are used when 12333 # linking a shared library. 12334 # 12335 # There doesn't appear to be a way to prevent this compiler from 12336 # explicitly linking system object files so we need to strip them 12337 # from the output so that they don't get included in the library 12338 # dependencies. 12339 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' 12340 12341 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 12342 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12343 12344 # Archives containing C++ object files must be created using 12345 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12346 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12347 ;; 12348 icpc*) 12349 # Intel C++ 12350 with_gnu_ld=yes 12351 # version 8.0 and above of icpc choke on multiply defined symbols 12352 # if we add $predep_objects and $postdep_objects, however 7.1 and 12353 # earlier do not add the objects themselves. 12354 case `$CC -V 2>&1` in 12355 *"Version 7."*) 12356 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12357 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' 12358 ;; 12359 *) # Version 8.0 or newer 12360 tmp_idyn= 12361 case $host_cpu in 12362 ia64*) tmp_idyn=' -i_dynamic';; 12363 esac 12364 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12365 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' 12366 ;; 12367 esac 12368 archive_cmds_need_lc_CXX=no 12369 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12370 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12371 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12372 ;; 12373 pgCC*) 12374 # Portland Group C++ compiler 12375 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12376 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' 12377 12378 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 12379 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12380 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' 12381 ;; 12382 cxx*) 12383 # Compaq C++ 12384 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12385 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' 12386 12387 runpath_var=LD_RUN_PATH 12388 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12389 hardcode_libdir_separator_CXX=: 12390 12391 # Commands to make compiler produce verbose output that lists 12392 # what "hidden" libraries, object files and flags are used when 12393 # linking a shared library. 12394 # 12395 # There doesn't appear to be a way to prevent this compiler from 12396 # explicitly linking system object files so we need to strip them 12397 # from the output so that they don't get included in the library 12398 # dependencies. 12399 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' 12400 ;; 12401 esac 12402 ;; 12403 lynxos*) 12404 # FIXME: insert proper C++ library support 12405 ld_shlibs_CXX=no 12406 ;; 12407 m88k*) 12408 # FIXME: insert proper C++ library support 12409 ld_shlibs_CXX=no 12410 ;; 12411 mvs*) 12412 case $cc_basename in 12413 cxx*) 12414 # FIXME: insert proper C++ library support 12415 ld_shlibs_CXX=no 12416 ;; 12417 *) 12418 # FIXME: insert proper C++ library support 12419 ld_shlibs_CXX=no 12420 ;; 12421 esac 12422 ;; 12423 netbsd*) 12424 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12425 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 12426 wlarc= 12427 hardcode_libdir_flag_spec_CXX='-R$libdir' 12428 hardcode_direct_CXX=yes 12429 hardcode_shlibpath_var_CXX=no 12430 fi 12431 # Workaround some broken pre-1.5 toolchains 12432 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 12433 ;; 12434 openbsd2*) 12435 # C++ shared libraries are fairly broken 12436 ld_shlibs_CXX=no 12437 ;; 12438 openbsd*) 12439 hardcode_direct_CXX=yes 12440 hardcode_shlibpath_var_CXX=no 12441 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12442 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12443 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12444 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 12445 export_dynamic_flag_spec_CXX='${wl}-E' 12446 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12447 fi 12448 output_verbose_link_cmd='echo' 12449 ;; 12450 osf3*) 12451 case $cc_basename in 12452 KCC*) 12453 # Kuck and Associates, Inc. (KAI) C++ Compiler 12454 12455 # KCC will only create a shared library if the output file 12456 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12457 # to its proper name (with version) after linking. 12458 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' 12459 12460 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12461 hardcode_libdir_separator_CXX=: 12462 12463 # Archives containing C++ object files must be created using 12464 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12465 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12466 12467 ;; 12468 RCC*) 12469 # Rational C++ 2.4.1 12470 # FIXME: insert proper C++ library support 12471 ld_shlibs_CXX=no 12472 ;; 12473 cxx*) 12474 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12475 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' 12476 12477 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12478 hardcode_libdir_separator_CXX=: 12479 12480 # Commands to make compiler produce verbose output that lists 12481 # what "hidden" libraries, object files and flags are used when 12482 # linking a shared library. 12483 # 12484 # There doesn't appear to be a way to prevent this compiler from 12485 # explicitly linking system object files so we need to strip them 12486 # from the output so that they don't get included in the library 12487 # dependencies. 12488 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' 12489 ;; 12490 *) 12491 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12492 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12493 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' 12494 12495 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12496 hardcode_libdir_separator_CXX=: 12497 12498 # Commands to make compiler produce verbose output that lists 12499 # what "hidden" libraries, object files and flags are used when 12500 # linking a shared library. 12501 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12502 12503 else 12504 # FIXME: insert proper C++ library support 12505 ld_shlibs_CXX=no 12506 fi 12507 ;; 12508 esac 12509 ;; 12510 osf4* | osf5*) 12511 case $cc_basename in 12512 KCC*) 12513 # Kuck and Associates, Inc. (KAI) C++ Compiler 12514 12515 # KCC will only create a shared library if the output file 12516 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12517 # to its proper name (with version) after linking. 12518 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' 12519 12520 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12521 hardcode_libdir_separator_CXX=: 12522 12523 # Archives containing C++ object files must be created using 12524 # the KAI C++ compiler. 12525 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 12526 ;; 12527 RCC*) 12528 # Rational C++ 2.4.1 12529 # FIXME: insert proper C++ library support 12530 ld_shlibs_CXX=no 12531 ;; 12532 cxx*) 12533 allow_undefined_flag_CXX=' -expect_unresolved \*' 12534 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' 12535 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 12536 echo "-hidden">> $lib.exp~ 12537 $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~ 12538 $rm $lib.exp' 12539 12540 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12541 hardcode_libdir_separator_CXX=: 12542 12543 # Commands to make compiler produce verbose output that lists 12544 # what "hidden" libraries, object files and flags are used when 12545 # linking a shared library. 12546 # 12547 # There doesn't appear to be a way to prevent this compiler from 12548 # explicitly linking system object files so we need to strip them 12549 # from the output so that they don't get included in the library 12550 # dependencies. 12551 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' 12552 ;; 12553 *) 12554 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12555 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12556 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' 12557 12558 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12559 hardcode_libdir_separator_CXX=: 12560 12561 # Commands to make compiler produce verbose output that lists 12562 # what "hidden" libraries, object files and flags are used when 12563 # linking a shared library. 12564 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12565 12566 else 12567 # FIXME: insert proper C++ library support 12568 ld_shlibs_CXX=no 12569 fi 12570 ;; 12571 esac 12572 ;; 12573 psos*) 12574 # FIXME: insert proper C++ library support 12575 ld_shlibs_CXX=no 12576 ;; 12577 sunos4*) 12578 case $cc_basename in 12579 CC*) 12580 # Sun C++ 4.x 12581 # FIXME: insert proper C++ library support 12582 ld_shlibs_CXX=no 12583 ;; 12584 lcc*) 12585 # Lucid 12586 # FIXME: insert proper C++ library support 12587 ld_shlibs_CXX=no 12588 ;; 12589 *) 12590 # FIXME: insert proper C++ library support 12591 ld_shlibs_CXX=no 12592 ;; 12593 esac 12594 ;; 12595 solaris*) 12596 case $cc_basename in 12597 CC*) 12598 # Sun C++ 4.2, 5.x and Centerline C++ 12599 archive_cmds_need_lc_CXX=yes 12600 no_undefined_flag_CXX=' -zdefs' 12601 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12602 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12603 $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' 12604 12605 hardcode_libdir_flag_spec_CXX='-R$libdir' 12606 hardcode_shlibpath_var_CXX=no 12607 case $host_os in 12608 solaris2.[0-5] | solaris2.[0-5].*) ;; 12609 *) 12610 # The C++ compiler is used as linker so we must use $wl 12611 # flag to pass the commands to the underlying system 12612 # linker. We must also pass each convience library through 12613 # to the system linker between allextract/defaultextract. 12614 # The C++ compiler will combine linker options so we 12615 # cannot just pass the convience library names through 12616 # without $wl. 12617 # Supported since Solaris 2.6 (maybe 2.5.1?) 12618 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' 12619 ;; 12620 esac 12621 link_all_deplibs_CXX=yes 12622 12623 output_verbose_link_cmd='echo' 12624 12625 # Archives containing C++ object files must be created using 12626 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12627 # necessary to make sure instantiated templates are included 12628 # in the archive. 12629 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12630 ;; 12631 gcx*) 12632 # Green Hills C++ Compiler 12633 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12634 12635 # The C++ compiler must be used to create the archive. 12636 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 12637 ;; 12638 *) 12639 # GNU C++ compiler with Solaris linker 12640 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12641 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 12642 if $CC --version | grep -v '^2\.7' > /dev/null; then 12643 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12644 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12645 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12646 12647 # Commands to make compiler produce verbose output that lists 12648 # what "hidden" libraries, object files and flags are used when 12649 # linking a shared library. 12650 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12651 else 12652 # g++ 2.7 appears to require `-G' NOT `-shared' on this 12653 # platform. 12654 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12655 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12656 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12657 12658 # Commands to make compiler produce verbose output that lists 12659 # what "hidden" libraries, object files and flags are used when 12660 # linking a shared library. 12661 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12662 fi 12663 12664 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 12665 fi 12666 ;; 12667 esac 12668 ;; 12669 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12670 no_undefined_flag_CXX='${wl}-z,text' 12671 archive_cmds_need_lc_CXX=no 12672 hardcode_shlibpath_var_CXX=no 12673 runpath_var='LD_RUN_PATH' 12674 12675 case $cc_basename in 12676 CC*) 12677 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12678 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12679 ;; 12680 *) 12681 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12682 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12683 ;; 12684 esac 12685 ;; 12686 sysv5* | sco3.2v5* | sco5v6*) 12687 # Note: We can NOT use -z defs as we might desire, because we do not 12688 # link with -lc, and that would cause any symbols used from libc to 12689 # always be unresolved, which means just about no library would 12690 # ever link correctly. If we're not using GNU ld we use -z text 12691 # though, which does catch some bad symbols but isn't as heavy-handed 12692 # as -z defs. 12693 # For security reasons, it is highly recommended that you always 12694 # use absolute paths for naming shared libraries, and exclude the 12695 # DT_RUNPATH tag from executables and libraries. But doing so 12696 # requires that you compile everything twice, which is a pain. 12697 # So that behaviour is only enabled if SCOABSPATH is set to a 12698 # non-empty value in the environment. Most likely only useful for 12699 # creating official distributions of packages. 12700 # This is a hack until libtool officially supports absolute path 12701 # names for shared libraries. 12702 no_undefined_flag_CXX='${wl}-z,text' 12703 allow_undefined_flag_CXX='${wl}-z,nodefs' 12704 archive_cmds_need_lc_CXX=no 12705 hardcode_shlibpath_var_CXX=no 12706 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 12707 hardcode_libdir_separator_CXX=':' 12708 link_all_deplibs_CXX=yes 12709 export_dynamic_flag_spec_CXX='${wl}-Bexport' 12710 runpath_var='LD_RUN_PATH' 12711 12712 case $cc_basename in 12713 CC*) 12714 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12715 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12716 ;; 12717 *) 12718 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12719 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12720 ;; 12721 esac 12722 ;; 12723 tandem*) 12724 case $cc_basename in 12725 NCC*) 12726 # NonStop-UX NCC 3.20 12727 # FIXME: insert proper C++ library support 12728 ld_shlibs_CXX=no 12729 ;; 12730 *) 12731 # FIXME: insert proper C++ library support 12732 ld_shlibs_CXX=no 12733 ;; 12734 esac 12735 ;; 12736 vxworks*) 12737 # FIXME: insert proper C++ library support 12738 ld_shlibs_CXX=no 12739 ;; 12740 *) 12741 # FIXME: insert proper C++ library support 12742 ld_shlibs_CXX=no 12743 ;; 12744esac 12745echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12746echo "${ECHO_T}$ld_shlibs_CXX" >&6 12747test "$ld_shlibs_CXX" = no && can_build_shared=no 12748 12749GCC_CXX="$GXX" 12750LD_CXX="$LD" 12751 12752## CAVEAT EMPTOR: 12753## There is no encapsulation within the following macros, do not change 12754## the running order or otherwise move them around unless you know exactly 12755## what you are doing... 12756 12757cat > conftest.$ac_ext <<EOF 12758class Foo 12759{ 12760public: 12761 Foo (void) { a = 0; } 12762private: 12763 int a; 12764}; 12765EOF 12766 12767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12768 (eval $ac_compile) 2>&5 12769 ac_status=$? 12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12771 (exit $ac_status); }; then 12772 # Parse the compiler output and extract the necessary 12773 # objects, libraries and library flags. 12774 12775 # Sentinel used to keep track of whether or not we are before 12776 # the conftest object file. 12777 pre_test_object_deps_done=no 12778 12779 # The `*' in the case matches for architectures that use `case' in 12780 # $output_verbose_cmd can trigger glob expansion during the loop 12781 # eval without this substitution. 12782 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 12783 12784 for p in `eval $output_verbose_link_cmd`; do 12785 case $p in 12786 12787 -L* | -R* | -l*) 12788 # Some compilers place space between "-{L,R}" and the path. 12789 # Remove the space. 12790 if test $p = "-L" \ 12791 || test $p = "-R"; then 12792 prev=$p 12793 continue 12794 else 12795 prev= 12796 fi 12797 12798 if test "$pre_test_object_deps_done" = no; then 12799 case $p in 12800 -L* | -R*) 12801 # Internal compiler library paths should come after those 12802 # provided the user. The postdeps already come after the 12803 # user supplied libs so there is no need to process them. 12804 if test -z "$compiler_lib_search_path_CXX"; then 12805 compiler_lib_search_path_CXX="${prev}${p}" 12806 else 12807 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 12808 fi 12809 ;; 12810 # The "-l" case would never come before the object being 12811 # linked, so don't bother handling this case. 12812 esac 12813 else 12814 if test -z "$postdeps_CXX"; then 12815 postdeps_CXX="${prev}${p}" 12816 else 12817 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 12818 fi 12819 fi 12820 ;; 12821 12822 *.$objext) 12823 # This assumes that the test object file only shows up 12824 # once in the compiler output. 12825 if test "$p" = "conftest.$objext"; then 12826 pre_test_object_deps_done=yes 12827 continue 12828 fi 12829 12830 if test "$pre_test_object_deps_done" = no; then 12831 if test -z "$predep_objects_CXX"; then 12832 predep_objects_CXX="$p" 12833 else 12834 predep_objects_CXX="$predep_objects_CXX $p" 12835 fi 12836 else 12837 if test -z "$postdep_objects_CXX"; then 12838 postdep_objects_CXX="$p" 12839 else 12840 postdep_objects_CXX="$postdep_objects_CXX $p" 12841 fi 12842 fi 12843 ;; 12844 12845 *) ;; # Ignore the rest. 12846 12847 esac 12848 done 12849 12850 # Clean up. 12851 rm -f a.out a.exe 12852else 12853 echo "libtool.m4: error: problem compiling CXX test program" 12854fi 12855 12856$rm -f confest.$objext 12857 12858# PORTME: override above test on systems where it is broken 12859case $host_os in 12860interix3*) 12861 # Interix 3.5 installs completely hosed .la files for C++, so rather than 12862 # hack all around it, let's just trust "g++" to DTRT. 12863 predep_objects_CXX= 12864 postdep_objects_CXX= 12865 postdeps_CXX= 12866 ;; 12867 12868solaris*) 12869 case $cc_basename in 12870 CC*) 12871 # Adding this requires a known-good setup of shared libraries for 12872 # Sun compiler versions before 5.6, else PIC objects from an old 12873 # archive will be linked into the output, leading to subtle bugs. 12874 postdeps_CXX='-lCstd -lCrun' 12875 ;; 12876 esac 12877 ;; 12878esac 12879 12880 12881case " $postdeps_CXX " in 12882*" -lc "*) archive_cmds_need_lc_CXX=no ;; 12883esac 12884 12885lt_prog_compiler_wl_CXX= 12886lt_prog_compiler_pic_CXX= 12887lt_prog_compiler_static_CXX= 12888 12889echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 12890echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 12891 12892 # C++ specific cases for pic, static, wl, etc. 12893 if test "$GXX" = yes; then 12894 lt_prog_compiler_wl_CXX='-Wl,' 12895 lt_prog_compiler_static_CXX='-static' 12896 12897 case $host_os in 12898 aix*) 12899 # All AIX code is PIC. 12900 if test "$host_cpu" = ia64; then 12901 # AIX 5 now supports IA64 processor 12902 lt_prog_compiler_static_CXX='-Bstatic' 12903 fi 12904 ;; 12905 amigaos*) 12906 # FIXME: we need at least 68020 code to build shared libraries, but 12907 # adding the `-m68020' flag to GCC prevents building anything better, 12908 # like `-m68040'. 12909 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 12910 ;; 12911 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12912 # PIC is the default for these OSes. 12913 ;; 12914 mingw* | os2* | pw32*) 12915 # This hack is so that the source file can tell whether it is being 12916 # built for inclusion in a dll (and should export symbols for example). 12917 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 12918 ;; 12919 darwin* | rhapsody*) 12920 # PIC is the default on this platform 12921 # Common symbols not allowed in MH_DYLIB files 12922 lt_prog_compiler_pic_CXX='-fno-common' 12923 ;; 12924 *djgpp*) 12925 # DJGPP does not support shared libraries at all 12926 lt_prog_compiler_pic_CXX= 12927 ;; 12928 interix3*) 12929 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12930 # Instead, we relocate shared libraries at runtime. 12931 ;; 12932 sysv4*MP*) 12933 if test -d /usr/nec; then 12934 lt_prog_compiler_pic_CXX=-Kconform_pic 12935 fi 12936 ;; 12937 hpux*) 12938 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12939 # not for PA HP-UX. 12940 case $host_cpu in 12941 hppa*64*|ia64*) 12942 ;; 12943 *) 12944 lt_prog_compiler_pic_CXX='-fPIC' 12945 ;; 12946 esac 12947 ;; 12948 *) 12949 lt_prog_compiler_pic_CXX='-fPIC' 12950 ;; 12951 esac 12952 else 12953 case $host_os in 12954 aix4* | aix5*) 12955 # All AIX code is PIC. 12956 if test "$host_cpu" = ia64; then 12957 # AIX 5 now supports IA64 processor 12958 lt_prog_compiler_static_CXX='-Bstatic' 12959 else 12960 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 12961 fi 12962 ;; 12963 chorus*) 12964 case $cc_basename in 12965 cxch68*) 12966 # Green Hills C++ Compiler 12967 # _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" 12968 ;; 12969 esac 12970 ;; 12971 darwin*) 12972 # PIC is the default on this platform 12973 # Common symbols not allowed in MH_DYLIB files 12974 case $cc_basename in 12975 xlc*) 12976 lt_prog_compiler_pic_CXX='-qnocommon' 12977 lt_prog_compiler_wl_CXX='-Wl,' 12978 ;; 12979 esac 12980 ;; 12981 dgux*) 12982 case $cc_basename in 12983 ec++*) 12984 lt_prog_compiler_pic_CXX='-KPIC' 12985 ;; 12986 ghcx*) 12987 # Green Hills C++ Compiler 12988 lt_prog_compiler_pic_CXX='-pic' 12989 ;; 12990 *) 12991 ;; 12992 esac 12993 ;; 12994 freebsd* | kfreebsd*-gnu | dragonfly*) 12995 # FreeBSD uses GNU C++ 12996 ;; 12997 hpux9* | hpux10* | hpux11*) 12998 case $cc_basename in 12999 CC*) 13000 lt_prog_compiler_wl_CXX='-Wl,' 13001 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 13002 if test "$host_cpu" != ia64; then 13003 lt_prog_compiler_pic_CXX='+Z' 13004 fi 13005 ;; 13006 aCC*) 13007 lt_prog_compiler_wl_CXX='-Wl,' 13008 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 13009 case $host_cpu in 13010 hppa*64*|ia64*) 13011 # +Z the default 13012 ;; 13013 *) 13014 lt_prog_compiler_pic_CXX='+Z' 13015 ;; 13016 esac 13017 ;; 13018 *) 13019 ;; 13020 esac 13021 ;; 13022 interix*) 13023 # This is c89, which is MS Visual C++ (no shared libs) 13024 # Anyone wants to do a port? 13025 ;; 13026 irix5* | irix6* | nonstopux*) 13027 case $cc_basename in 13028 CC*) 13029 lt_prog_compiler_wl_CXX='-Wl,' 13030 lt_prog_compiler_static_CXX='-non_shared' 13031 # CC pic flag -KPIC is the default. 13032 ;; 13033 *) 13034 ;; 13035 esac 13036 ;; 13037 linux*) 13038 case $cc_basename in 13039 KCC*) 13040 # KAI C++ Compiler 13041 lt_prog_compiler_wl_CXX='--backend -Wl,' 13042 lt_prog_compiler_pic_CXX='-fPIC' 13043 ;; 13044 icpc* | ecpc*) 13045 # Intel C++ 13046 lt_prog_compiler_wl_CXX='-Wl,' 13047 lt_prog_compiler_pic_CXX='-KPIC' 13048 lt_prog_compiler_static_CXX='-static' 13049 ;; 13050 pgCC*) 13051 # Portland Group C++ compiler. 13052 lt_prog_compiler_wl_CXX='-Wl,' 13053 lt_prog_compiler_pic_CXX='-fpic' 13054 lt_prog_compiler_static_CXX='-Bstatic' 13055 ;; 13056 cxx*) 13057 # Compaq C++ 13058 # Make sure the PIC flag is empty. It appears that all Alpha 13059 # Linux and Compaq Tru64 Unix objects are PIC. 13060 lt_prog_compiler_pic_CXX= 13061 lt_prog_compiler_static_CXX='-non_shared' 13062 ;; 13063 *) 13064 ;; 13065 esac 13066 ;; 13067 lynxos*) 13068 ;; 13069 m88k*) 13070 ;; 13071 mvs*) 13072 case $cc_basename in 13073 cxx*) 13074 lt_prog_compiler_pic_CXX='-W c,exportall' 13075 ;; 13076 *) 13077 ;; 13078 esac 13079 ;; 13080 netbsd*) 13081 ;; 13082 osf3* | osf4* | osf5*) 13083 case $cc_basename in 13084 KCC*) 13085 lt_prog_compiler_wl_CXX='--backend -Wl,' 13086 ;; 13087 RCC*) 13088 # Rational C++ 2.4.1 13089 lt_prog_compiler_pic_CXX='-pic' 13090 ;; 13091 cxx*) 13092 # Digital/Compaq C++ 13093 lt_prog_compiler_wl_CXX='-Wl,' 13094 # Make sure the PIC flag is empty. It appears that all Alpha 13095 # Linux and Compaq Tru64 Unix objects are PIC. 13096 lt_prog_compiler_pic_CXX= 13097 lt_prog_compiler_static_CXX='-non_shared' 13098 ;; 13099 *) 13100 ;; 13101 esac 13102 ;; 13103 psos*) 13104 ;; 13105 solaris*) 13106 case $cc_basename in 13107 CC*) 13108 # Sun C++ 4.2, 5.x and Centerline C++ 13109 lt_prog_compiler_pic_CXX='-KPIC' 13110 lt_prog_compiler_static_CXX='-Bstatic' 13111 lt_prog_compiler_wl_CXX='-Qoption ld ' 13112 ;; 13113 gcx*) 13114 # Green Hills C++ Compiler 13115 lt_prog_compiler_pic_CXX='-PIC' 13116 ;; 13117 *) 13118 ;; 13119 esac 13120 ;; 13121 sunos4*) 13122 case $cc_basename in 13123 CC*) 13124 # Sun C++ 4.x 13125 lt_prog_compiler_pic_CXX='-pic' 13126 lt_prog_compiler_static_CXX='-Bstatic' 13127 ;; 13128 lcc*) 13129 # Lucid 13130 lt_prog_compiler_pic_CXX='-pic' 13131 ;; 13132 *) 13133 ;; 13134 esac 13135 ;; 13136 tandem*) 13137 case $cc_basename in 13138 NCC*) 13139 # NonStop-UX NCC 3.20 13140 lt_prog_compiler_pic_CXX='-KPIC' 13141 ;; 13142 *) 13143 ;; 13144 esac 13145 ;; 13146 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13147 case $cc_basename in 13148 CC*) 13149 lt_prog_compiler_wl_CXX='-Wl,' 13150 lt_prog_compiler_pic_CXX='-KPIC' 13151 lt_prog_compiler_static_CXX='-Bstatic' 13152 ;; 13153 esac 13154 ;; 13155 vxworks*) 13156 ;; 13157 *) 13158 lt_prog_compiler_can_build_shared_CXX=no 13159 ;; 13160 esac 13161 fi 13162 13163echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 13164echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 13165 13166# 13167# Check to make sure the PIC flag actually works. 13168# 13169if test -n "$lt_prog_compiler_pic_CXX"; then 13170 13171echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 13172echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 13173if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 13174 echo $ECHO_N "(cached) $ECHO_C" >&6 13175else 13176 lt_prog_compiler_pic_works_CXX=no 13177 ac_outfile=conftest.$ac_objext 13178 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13179 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 13180 # Insert the option either (1) after the last *FLAGS variable, or 13181 # (2) before a word containing "conftest.", or (3) at the end. 13182 # Note that $ac_compile itself does not contain backslashes and begins 13183 # with a dollar sign (not a hyphen), so the echo should work correctly. 13184 # The option is referenced via a variable to avoid confusing sed. 13185 lt_compile=`echo "$ac_compile" | $SED \ 13186 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13187 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13188 -e 's:$: $lt_compiler_flag:'` 13189 (eval echo "\"\$as_me:13189: $lt_compile\"" >&5) 13190 (eval "$lt_compile" 2>conftest.err) 13191 ac_status=$? 13192 cat conftest.err >&5 13193 echo "$as_me:13193: \$? = $ac_status" >&5 13194 if (exit $ac_status) && test -s "$ac_outfile"; then 13195 # The compiler can only warn and ignore the option if not recognized 13196 # So say no if there are warnings other than the usual output. 13197 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 13198 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13199 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13200 lt_prog_compiler_pic_works_CXX=yes 13201 fi 13202 fi 13203 $rm conftest* 13204 13205fi 13206echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 13207echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 13208 13209if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 13210 case $lt_prog_compiler_pic_CXX in 13211 "" | " "*) ;; 13212 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 13213 esac 13214else 13215 lt_prog_compiler_pic_CXX= 13216 lt_prog_compiler_can_build_shared_CXX=no 13217fi 13218 13219fi 13220case $host_os in 13221 # For platforms which do not support PIC, -DPIC is meaningless: 13222 *djgpp*) 13223 lt_prog_compiler_pic_CXX= 13224 ;; 13225 *) 13226 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 13227 ;; 13228esac 13229 13230# 13231# Check to make sure the static flag actually works. 13232# 13233wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 13234echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13235echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 13236if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 13237 echo $ECHO_N "(cached) $ECHO_C" >&6 13238else 13239 lt_prog_compiler_static_works_CXX=no 13240 save_LDFLAGS="$LDFLAGS" 13241 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13242 printf "$lt_simple_link_test_code" > conftest.$ac_ext 13243 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13244 # The linker can only warn and ignore the option if not recognized 13245 # So say no if there are warnings 13246 if test -s conftest.err; then 13247 # Append any errors to the config.log. 13248 cat conftest.err 1>&5 13249 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 13250 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13251 if diff conftest.exp conftest.er2 >/dev/null; then 13252 lt_prog_compiler_static_works_CXX=yes 13253 fi 13254 else 13255 lt_prog_compiler_static_works_CXX=yes 13256 fi 13257 fi 13258 $rm conftest* 13259 LDFLAGS="$save_LDFLAGS" 13260 13261fi 13262echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 13263echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6 13264 13265if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 13266 : 13267else 13268 lt_prog_compiler_static_CXX= 13269fi 13270 13271 13272echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 13273echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 13274if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 13275 echo $ECHO_N "(cached) $ECHO_C" >&6 13276else 13277 lt_cv_prog_compiler_c_o_CXX=no 13278 $rm -r conftest 2>/dev/null 13279 mkdir conftest 13280 cd conftest 13281 mkdir out 13282 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13283 13284 lt_compiler_flag="-o out/conftest2.$ac_objext" 13285 # Insert the option either (1) after the last *FLAGS variable, or 13286 # (2) before a word containing "conftest.", or (3) at the end. 13287 # Note that $ac_compile itself does not contain backslashes and begins 13288 # with a dollar sign (not a hyphen), so the echo should work correctly. 13289 lt_compile=`echo "$ac_compile" | $SED \ 13290 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13291 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13292 -e 's:$: $lt_compiler_flag:'` 13293 (eval echo "\"\$as_me:13293: $lt_compile\"" >&5) 13294 (eval "$lt_compile" 2>out/conftest.err) 13295 ac_status=$? 13296 cat out/conftest.err >&5 13297 echo "$as_me:13297: \$? = $ac_status" >&5 13298 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13299 then 13300 # The compiler can only warn and ignore the option if not recognized 13301 # So say no if there are warnings 13302 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 13303 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13304 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13305 lt_cv_prog_compiler_c_o_CXX=yes 13306 fi 13307 fi 13308 chmod u+w . 2>&5 13309 $rm conftest* 13310 # SGI C++ compiler will create directory out/ii_files/ for 13311 # template instantiation 13312 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 13313 $rm out/* && rmdir out 13314 cd .. 13315 rmdir conftest 13316 $rm conftest* 13317 13318fi 13319echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 13320echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 13321 13322 13323hard_links="nottested" 13324if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 13325 # do not overwrite the value of need_locks provided by the user 13326 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 13327echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 13328 hard_links=yes 13329 $rm conftest* 13330 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13331 touch conftest.a 13332 ln conftest.a conftest.b 2>&5 || hard_links=no 13333 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13334 echo "$as_me:$LINENO: result: $hard_links" >&5 13335echo "${ECHO_T}$hard_links" >&6 13336 if test "$hard_links" = no; then 13337 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13338echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13339 need_locks=warn 13340 fi 13341else 13342 need_locks=no 13343fi 13344 13345echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13346echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 13347 13348 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13349 case $host_os in 13350 aix4* | aix5*) 13351 # If we're using GNU nm, then we don't want the "-C" option. 13352 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13353 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 13354 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' 13355 else 13356 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' 13357 fi 13358 ;; 13359 pw32*) 13360 export_symbols_cmds_CXX="$ltdll_cmds" 13361 ;; 13362 cygwin* | mingw*) 13363 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' 13364 ;; 13365 *) 13366 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13367 ;; 13368 esac 13369 13370echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 13371echo "${ECHO_T}$ld_shlibs_CXX" >&6 13372test "$ld_shlibs_CXX" = no && can_build_shared=no 13373 13374# 13375# Do we need to explicitly link libc? 13376# 13377case "x$archive_cmds_need_lc_CXX" in 13378x|xyes) 13379 # Assume -lc should be added 13380 archive_cmds_need_lc_CXX=yes 13381 13382 if test "$enable_shared" = yes && test "$GCC" = yes; then 13383 case $archive_cmds_CXX in 13384 *'~'*) 13385 # FIXME: we may have to deal with multi-command sequences. 13386 ;; 13387 '$CC '*) 13388 # Test whether the compiler implicitly links with -lc since on some 13389 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13390 # to ld, don't add -lc before -lgcc. 13391 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 13392echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 13393 $rm conftest* 13394 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13395 13396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13397 (eval $ac_compile) 2>&5 13398 ac_status=$? 13399 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13400 (exit $ac_status); } 2>conftest.err; then 13401 soname=conftest 13402 lib=conftest 13403 libobjs=conftest.$ac_objext 13404 deplibs= 13405 wl=$lt_prog_compiler_wl_CXX 13406 pic_flag=$lt_prog_compiler_pic_CXX 13407 compiler_flags=-v 13408 linker_flags=-v 13409 verstring= 13410 output_objdir=. 13411 libname=conftest 13412 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 13413 allow_undefined_flag_CXX= 13414 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 13415 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 13416 ac_status=$? 13417 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13418 (exit $ac_status); } 13419 then 13420 archive_cmds_need_lc_CXX=no 13421 else 13422 archive_cmds_need_lc_CXX=yes 13423 fi 13424 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 13425 else 13426 cat conftest.err 1>&5 13427 fi 13428 $rm conftest* 13429 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 13430echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 13431 ;; 13432 esac 13433 fi 13434 ;; 13435esac 13436 13437echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 13438echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 13439library_names_spec= 13440libname_spec='lib$name' 13441soname_spec= 13442shrext_cmds=".so" 13443postinstall_cmds= 13444postuninstall_cmds= 13445finish_cmds= 13446finish_eval= 13447shlibpath_var= 13448shlibpath_overrides_runpath=unknown 13449version_type=none 13450dynamic_linker="$host_os ld.so" 13451sys_lib_dlsearch_path_spec="/lib /usr/lib" 13452if test "$GCC" = yes; then 13453 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13454 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 13455 # if the path contains ";" then we assume it to be the separator 13456 # otherwise default to the standard path separator (i.e. ":") - it is 13457 # assumed that no part of a normal pathname contains ";" but that should 13458 # okay in the real world where ";" in dirpaths is itself problematic. 13459 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13460 else 13461 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13462 fi 13463else 13464 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 13465fi 13466need_lib_prefix=unknown 13467hardcode_into_libs=no 13468 13469# when you set need_version to no, make sure it does not cause -set_version 13470# flags to be left without arguments 13471need_version=unknown 13472 13473case $host_os in 13474aix3*) 13475 version_type=linux 13476 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 13477 shlibpath_var=LIBPATH 13478 13479 # AIX 3 has no versioning support, so we append a major version to the name. 13480 soname_spec='${libname}${release}${shared_ext}$major' 13481 ;; 13482 13483aix4* | aix5*) 13484 version_type=linux 13485 need_lib_prefix=no 13486 need_version=no 13487 hardcode_into_libs=yes 13488 if test "$host_cpu" = ia64; then 13489 # AIX 5 supports IA64 13490 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 13491 shlibpath_var=LD_LIBRARY_PATH 13492 else 13493 # With GCC up to 2.95.x, collect2 would create an import file 13494 # for dependence libraries. The import file would start with 13495 # the line `#! .'. This would cause the generated library to 13496 # depend on `.', always an invalid library. This was fixed in 13497 # development snapshots of GCC prior to 3.0. 13498 case $host_os in 13499 aix4 | aix4.[01] | aix4.[01].*) 13500 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13501 echo ' yes ' 13502 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 13503 : 13504 else 13505 can_build_shared=no 13506 fi 13507 ;; 13508 esac 13509 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 13510 # soname into executable. Probably we can add versioning support to 13511 # collect2, so additional links can be useful in future. 13512 if test "$aix_use_runtimelinking" = yes; then 13513 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13514 # instead of lib<name>.a to let people know that these are not 13515 # typical AIX shared libraries. 13516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13517 else 13518 # We preserve .a as extension for shared libraries through AIX4.2 13519 # and later when we are not doing run time linking. 13520 library_names_spec='${libname}${release}.a $libname.a' 13521 soname_spec='${libname}${release}${shared_ext}$major' 13522 fi 13523 shlibpath_var=LIBPATH 13524 fi 13525 ;; 13526 13527amigaos*) 13528 library_names_spec='$libname.ixlibrary $libname.a' 13529 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13530 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' 13531 ;; 13532 13533beos*) 13534 library_names_spec='${libname}${shared_ext}' 13535 dynamic_linker="$host_os ld.so" 13536 shlibpath_var=LIBRARY_PATH 13537 ;; 13538 13539bsdi[45]*) 13540 version_type=linux 13541 need_version=no 13542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13543 soname_spec='${libname}${release}${shared_ext}$major' 13544 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13545 shlibpath_var=LD_LIBRARY_PATH 13546 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13547 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13548 # the default ld.so.conf also contains /usr/contrib/lib and 13549 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13550 # libtool to hard-code these into programs 13551 ;; 13552 13553cygwin* | mingw* | pw32*) 13554 version_type=windows 13555 shrext_cmds=".dll" 13556 need_version=no 13557 need_lib_prefix=no 13558 13559 case $GCC,$host_os in 13560 yes,cygwin* | yes,mingw* | yes,pw32*) 13561 library_names_spec='$libname.dll.a' 13562 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13563 postinstall_cmds='base_file=`basename \${file}`~ 13564 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 13565 dldir=$destdir/`dirname \$dlpath`~ 13566 test -d \$dldir || mkdir -p \$dldir~ 13567 $install_prog $dir/$dlname \$dldir/$dlname~ 13568 chmod a+x \$dldir/$dlname' 13569 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13570 dlpath=$dir/\$dldll~ 13571 $rm \$dlpath' 13572 shlibpath_overrides_runpath=yes 13573 13574 case $host_os in 13575 cygwin*) 13576 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13577 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13578 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 13579 ;; 13580 mingw*) 13581 # MinGW DLLs use traditional 'lib' prefix 13582 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13583 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13584 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 13585 # It is most probably a Windows format PATH printed by 13586 # mingw gcc, but we are running on Cygwin. Gcc prints its search 13587 # path with ; separators, and with drive letters. We can handle the 13588 # drive letters (cygwin fileutils understands them), so leave them, 13589 # especially as we might pass files found there to a mingw objdump, 13590 # which wouldn't understand a cygwinified path. Ahh. 13591 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13592 else 13593 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13594 fi 13595 ;; 13596 pw32*) 13597 # pw32 DLLs use 'pw' prefix rather than 'lib' 13598 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13599 ;; 13600 esac 13601 ;; 13602 13603 *) 13604 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13605 ;; 13606 esac 13607 dynamic_linker='Win32 ld.exe' 13608 # FIXME: first we should search . and the directory the executable is in 13609 shlibpath_var=PATH 13610 ;; 13611 13612darwin* | rhapsody*) 13613 dynamic_linker="$host_os dyld" 13614 version_type=darwin 13615 need_lib_prefix=no 13616 need_version=no 13617 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13618 soname_spec='${libname}${release}${major}$shared_ext' 13619 shlibpath_overrides_runpath=yes 13620 shlibpath_var=DYLD_LIBRARY_PATH 13621 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13622 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 13623 if test "$GCC" = yes; then 13624 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"` 13625 else 13626 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 13627 fi 13628 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13629 ;; 13630 13631dgux*) 13632 version_type=linux 13633 need_lib_prefix=no 13634 need_version=no 13635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13636 soname_spec='${libname}${release}${shared_ext}$major' 13637 shlibpath_var=LD_LIBRARY_PATH 13638 ;; 13639 13640freebsd1*) 13641 dynamic_linker=no 13642 ;; 13643 13644kfreebsd*-gnu) 13645 version_type=linux 13646 need_lib_prefix=no 13647 need_version=no 13648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13649 soname_spec='${libname}${release}${shared_ext}$major' 13650 shlibpath_var=LD_LIBRARY_PATH 13651 shlibpath_overrides_runpath=no 13652 hardcode_into_libs=yes 13653 dynamic_linker='GNU ld.so' 13654 ;; 13655 13656freebsd* | dragonfly*) 13657 # DragonFly does not have aout. When/if they implement a new 13658 # versioning mechanism, adjust this. 13659 if test -x /usr/bin/objformat; then 13660 objformat=`/usr/bin/objformat` 13661 else 13662 case $host_os in 13663 freebsd[123]*) objformat=aout ;; 13664 *) objformat=elf ;; 13665 esac 13666 fi 13667 version_type=freebsd-$objformat 13668 case $version_type in 13669 freebsd-elf*) 13670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13671 need_version=no 13672 need_lib_prefix=no 13673 ;; 13674 freebsd-*) 13675 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 13676 need_version=yes 13677 ;; 13678 esac 13679 shlibpath_var=LD_LIBRARY_PATH 13680 case $host_os in 13681 freebsd2*) 13682 shlibpath_overrides_runpath=yes 13683 ;; 13684 freebsd3.[01]* | freebsdelf3.[01]*) 13685 shlibpath_overrides_runpath=yes 13686 hardcode_into_libs=yes 13687 ;; 13688 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13689 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13690 shlibpath_overrides_runpath=no 13691 hardcode_into_libs=yes 13692 ;; 13693 freebsd*) # from 4.6 on 13694 shlibpath_overrides_runpath=yes 13695 hardcode_into_libs=yes 13696 ;; 13697 esac 13698 ;; 13699 13700gnu*) 13701 version_type=linux 13702 need_lib_prefix=no 13703 need_version=no 13704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13705 soname_spec='${libname}${release}${shared_ext}$major' 13706 shlibpath_var=LD_LIBRARY_PATH 13707 hardcode_into_libs=yes 13708 ;; 13709 13710hpux9* | hpux10* | hpux11*) 13711 # Give a soname corresponding to the major version so that dld.sl refuses to 13712 # link against other versions. 13713 version_type=sunos 13714 need_lib_prefix=no 13715 need_version=no 13716 case $host_cpu in 13717 ia64*) 13718 shrext_cmds='.so' 13719 hardcode_into_libs=yes 13720 dynamic_linker="$host_os dld.so" 13721 shlibpath_var=LD_LIBRARY_PATH 13722 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13724 soname_spec='${libname}${release}${shared_ext}$major' 13725 if test "X$HPUX_IA64_MODE" = X32; then 13726 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13727 else 13728 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13729 fi 13730 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13731 ;; 13732 hppa*64*) 13733 shrext_cmds='.sl' 13734 hardcode_into_libs=yes 13735 dynamic_linker="$host_os dld.sl" 13736 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13737 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13739 soname_spec='${libname}${release}${shared_ext}$major' 13740 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13741 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13742 ;; 13743 *) 13744 shrext_cmds='.sl' 13745 dynamic_linker="$host_os dld.sl" 13746 shlibpath_var=SHLIB_PATH 13747 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13749 soname_spec='${libname}${release}${shared_ext}$major' 13750 ;; 13751 esac 13752 # HP-UX runs *really* slowly unless shared libraries are mode 555. 13753 postinstall_cmds='chmod 555 $lib' 13754 ;; 13755 13756interix3*) 13757 version_type=linux 13758 need_lib_prefix=no 13759 need_version=no 13760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13761 soname_spec='${libname}${release}${shared_ext}$major' 13762 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13763 shlibpath_var=LD_LIBRARY_PATH 13764 shlibpath_overrides_runpath=no 13765 hardcode_into_libs=yes 13766 ;; 13767 13768irix5* | irix6* | nonstopux*) 13769 case $host_os in 13770 nonstopux*) version_type=nonstopux ;; 13771 *) 13772 if test "$lt_cv_prog_gnu_ld" = yes; then 13773 version_type=linux 13774 else 13775 version_type=irix 13776 fi ;; 13777 esac 13778 need_lib_prefix=no 13779 need_version=no 13780 soname_spec='${libname}${release}${shared_ext}$major' 13781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 13782 case $host_os in 13783 irix5* | nonstopux*) 13784 libsuff= shlibsuff= 13785 ;; 13786 *) 13787 case $LD in # libtool.m4 will add one of these switches to LD 13788 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13789 libsuff= shlibsuff= libmagic=32-bit;; 13790 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13791 libsuff=32 shlibsuff=N32 libmagic=N32;; 13792 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13793 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13794 *) libsuff= shlibsuff= libmagic=never-match;; 13795 esac 13796 ;; 13797 esac 13798 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13799 shlibpath_overrides_runpath=no 13800 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13801 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13802 hardcode_into_libs=yes 13803 ;; 13804 13805# No shared lib support for Linux oldld, aout, or coff. 13806linux*oldld* | linux*aout* | linux*coff*) 13807 dynamic_linker=no 13808 ;; 13809 13810# This must be Linux ELF. 13811linux*) 13812 version_type=linux 13813 need_lib_prefix=no 13814 need_version=no 13815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13816 soname_spec='${libname}${release}${shared_ext}$major' 13817 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13818 shlibpath_var=LD_LIBRARY_PATH 13819 shlibpath_overrides_runpath=no 13820 # This implies no fast_install, which is unacceptable. 13821 # Some rework will be needed to allow for fast_install 13822 # before this can be enabled. 13823 hardcode_into_libs=yes 13824 13825 # Append ld.so.conf contents to the search path 13826 if test -f /etc/ld.so.conf; then 13827 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' ' '` 13828 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 13829 fi 13830 13831 # We used to test for /lib/ld.so.1 and disable shared libraries on 13832 # powerpc, because MkLinux only supported shared libraries with the 13833 # GNU dynamic linker. Since this was broken with cross compilers, 13834 # most powerpc-linux boxes support dynamic linking these days and 13835 # people can always --disable-shared, the test was removed, and we 13836 # assume the GNU/Linux dynamic linker is in use. 13837 dynamic_linker='GNU/Linux ld.so' 13838 ;; 13839 13840knetbsd*-gnu) 13841 version_type=linux 13842 need_lib_prefix=no 13843 need_version=no 13844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13845 soname_spec='${libname}${release}${shared_ext}$major' 13846 shlibpath_var=LD_LIBRARY_PATH 13847 shlibpath_overrides_runpath=no 13848 hardcode_into_libs=yes 13849 dynamic_linker='GNU ld.so' 13850 ;; 13851 13852netbsd*) 13853 version_type=sunos 13854 need_lib_prefix=no 13855 need_version=no 13856 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13858 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13859 dynamic_linker='NetBSD (a.out) ld.so' 13860 else 13861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13862 soname_spec='${libname}${release}${shared_ext}$major' 13863 dynamic_linker='NetBSD ld.elf_so' 13864 fi 13865 shlibpath_var=LD_LIBRARY_PATH 13866 shlibpath_overrides_runpath=yes 13867 hardcode_into_libs=yes 13868 ;; 13869 13870newsos6) 13871 version_type=linux 13872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13873 shlibpath_var=LD_LIBRARY_PATH 13874 shlibpath_overrides_runpath=yes 13875 ;; 13876 13877nto-qnx*) 13878 version_type=linux 13879 need_lib_prefix=no 13880 need_version=no 13881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13882 soname_spec='${libname}${release}${shared_ext}$major' 13883 shlibpath_var=LD_LIBRARY_PATH 13884 shlibpath_overrides_runpath=yes 13885 ;; 13886 13887openbsd*) 13888 version_type=sunos 13889 sys_lib_dlsearch_path_spec="/usr/lib" 13890 need_lib_prefix=no 13891 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 13892 case $host_os in 13893 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 13894 *) need_version=no ;; 13895 esac 13896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13897 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13898 shlibpath_var=LD_LIBRARY_PATH 13899 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13900 case $host_os in 13901 openbsd2.[89] | openbsd2.[89].*) 13902 shlibpath_overrides_runpath=no 13903 ;; 13904 *) 13905 shlibpath_overrides_runpath=yes 13906 ;; 13907 esac 13908 else 13909 shlibpath_overrides_runpath=yes 13910 fi 13911 ;; 13912 13913os2*) 13914 libname_spec='$name' 13915 shrext_cmds=".dll" 13916 need_lib_prefix=no 13917 library_names_spec='$libname${shared_ext} $libname.a' 13918 dynamic_linker='OS/2 ld.exe' 13919 shlibpath_var=LIBPATH 13920 ;; 13921 13922osf3* | osf4* | osf5*) 13923 version_type=osf 13924 need_lib_prefix=no 13925 need_version=no 13926 soname_spec='${libname}${release}${shared_ext}$major' 13927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13928 shlibpath_var=LD_LIBRARY_PATH 13929 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13930 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13931 ;; 13932 13933solaris*) 13934 version_type=linux 13935 need_lib_prefix=no 13936 need_version=no 13937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13938 soname_spec='${libname}${release}${shared_ext}$major' 13939 shlibpath_var=LD_LIBRARY_PATH 13940 shlibpath_overrides_runpath=yes 13941 hardcode_into_libs=yes 13942 # ldd complains unless libraries are executable 13943 postinstall_cmds='chmod +x $lib' 13944 ;; 13945 13946sunos4*) 13947 version_type=sunos 13948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13949 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13950 shlibpath_var=LD_LIBRARY_PATH 13951 shlibpath_overrides_runpath=yes 13952 if test "$with_gnu_ld" = yes; then 13953 need_lib_prefix=no 13954 fi 13955 need_version=yes 13956 ;; 13957 13958sysv4 | sysv4.3*) 13959 version_type=linux 13960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13961 soname_spec='${libname}${release}${shared_ext}$major' 13962 shlibpath_var=LD_LIBRARY_PATH 13963 case $host_vendor in 13964 sni) 13965 shlibpath_overrides_runpath=no 13966 need_lib_prefix=no 13967 export_dynamic_flag_spec='${wl}-Blargedynsym' 13968 runpath_var=LD_RUN_PATH 13969 ;; 13970 siemens) 13971 need_lib_prefix=no 13972 ;; 13973 motorola) 13974 need_lib_prefix=no 13975 need_version=no 13976 shlibpath_overrides_runpath=no 13977 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13978 ;; 13979 esac 13980 ;; 13981 13982sysv4*MP*) 13983 if test -d /usr/nec ;then 13984 version_type=linux 13985 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13986 soname_spec='$libname${shared_ext}.$major' 13987 shlibpath_var=LD_LIBRARY_PATH 13988 fi 13989 ;; 13990 13991sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13992 version_type=freebsd-elf 13993 need_lib_prefix=no 13994 need_version=no 13995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13996 soname_spec='${libname}${release}${shared_ext}$major' 13997 shlibpath_var=LD_LIBRARY_PATH 13998 hardcode_into_libs=yes 13999 if test "$with_gnu_ld" = yes; then 14000 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 14001 shlibpath_overrides_runpath=no 14002 else 14003 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 14004 shlibpath_overrides_runpath=yes 14005 case $host_os in 14006 sco3.2v5*) 14007 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 14008 ;; 14009 esac 14010 fi 14011 sys_lib_dlsearch_path_spec='/usr/lib' 14012 ;; 14013 14014uts4*) 14015 version_type=linux 14016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14017 soname_spec='${libname}${release}${shared_ext}$major' 14018 shlibpath_var=LD_LIBRARY_PATH 14019 ;; 14020 14021*) 14022 dynamic_linker=no 14023 ;; 14024esac 14025echo "$as_me:$LINENO: result: $dynamic_linker" >&5 14026echo "${ECHO_T}$dynamic_linker" >&6 14027test "$dynamic_linker" = no && can_build_shared=no 14028 14029variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14030if test "$GCC" = yes; then 14031 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14032fi 14033 14034echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 14035echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 14036hardcode_action_CXX= 14037if test -n "$hardcode_libdir_flag_spec_CXX" || \ 14038 test -n "$runpath_var_CXX" || \ 14039 test "X$hardcode_automatic_CXX" = "Xyes" ; then 14040 14041 # We can hardcode non-existant directories. 14042 if test "$hardcode_direct_CXX" != no && 14043 # If the only mechanism to avoid hardcoding is shlibpath_var, we 14044 # have to relink, otherwise we might link with an installed library 14045 # when we should be linking with a yet-to-be-installed one 14046 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 14047 test "$hardcode_minus_L_CXX" != no; then 14048 # Linking always hardcodes the temporary library directory. 14049 hardcode_action_CXX=relink 14050 else 14051 # We can link without hardcoding, and we can hardcode nonexisting dirs. 14052 hardcode_action_CXX=immediate 14053 fi 14054else 14055 # We cannot hardcode anything, or else we can only hardcode existing 14056 # directories. 14057 hardcode_action_CXX=unsupported 14058fi 14059echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 14060echo "${ECHO_T}$hardcode_action_CXX" >&6 14061 14062if test "$hardcode_action_CXX" = relink; then 14063 # Fast installation is not supported 14064 enable_fast_install=no 14065elif test "$shlibpath_overrides_runpath" = yes || 14066 test "$enable_shared" = no; then 14067 # Fast installation is not necessary 14068 enable_fast_install=needless 14069fi 14070 14071 14072# The else clause should only fire when bootstrapping the 14073# libtool distribution, otherwise you forgot to ship ltmain.sh 14074# with your package, and you will get complaints that there are 14075# no rules to generate ltmain.sh. 14076if test -f "$ltmain"; then 14077 # See if we are running on zsh, and set the options which allow our commands through 14078 # without removal of \ escapes. 14079 if test -n "${ZSH_VERSION+set}" ; then 14080 setopt NO_GLOB_SUBST 14081 fi 14082 # Now quote all the things that may contain metacharacters while being 14083 # careful not to overquote the AC_SUBSTed values. We take copies of the 14084 # variables and quote the copies for generation of the libtool script. 14085 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 14086 SED SHELL STRIP \ 14087 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 14088 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 14089 deplibs_check_method reload_flag reload_cmds need_locks \ 14090 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 14091 lt_cv_sys_global_symbol_to_c_name_address \ 14092 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 14093 old_postinstall_cmds old_postuninstall_cmds \ 14094 compiler_CXX \ 14095 CC_CXX \ 14096 LD_CXX \ 14097 lt_prog_compiler_wl_CXX \ 14098 lt_prog_compiler_pic_CXX \ 14099 lt_prog_compiler_static_CXX \ 14100 lt_prog_compiler_no_builtin_flag_CXX \ 14101 export_dynamic_flag_spec_CXX \ 14102 thread_safe_flag_spec_CXX \ 14103 whole_archive_flag_spec_CXX \ 14104 enable_shared_with_static_runtimes_CXX \ 14105 old_archive_cmds_CXX \ 14106 old_archive_from_new_cmds_CXX \ 14107 predep_objects_CXX \ 14108 postdep_objects_CXX \ 14109 predeps_CXX \ 14110 postdeps_CXX \ 14111 compiler_lib_search_path_CXX \ 14112 archive_cmds_CXX \ 14113 archive_expsym_cmds_CXX \ 14114 postinstall_cmds_CXX \ 14115 postuninstall_cmds_CXX \ 14116 old_archive_from_expsyms_cmds_CXX \ 14117 allow_undefined_flag_CXX \ 14118 no_undefined_flag_CXX \ 14119 export_symbols_cmds_CXX \ 14120 hardcode_libdir_flag_spec_CXX \ 14121 hardcode_libdir_flag_spec_ld_CXX \ 14122 hardcode_libdir_separator_CXX \ 14123 hardcode_automatic_CXX \ 14124 module_cmds_CXX \ 14125 module_expsym_cmds_CXX \ 14126 lt_cv_prog_compiler_c_o_CXX \ 14127 exclude_expsyms_CXX \ 14128 include_expsyms_CXX; do 14129 14130 case $var in 14131 old_archive_cmds_CXX | \ 14132 old_archive_from_new_cmds_CXX | \ 14133 archive_cmds_CXX | \ 14134 archive_expsym_cmds_CXX | \ 14135 module_cmds_CXX | \ 14136 module_expsym_cmds_CXX | \ 14137 old_archive_from_expsyms_cmds_CXX | \ 14138 export_symbols_cmds_CXX | \ 14139 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 14140 postinstall_cmds | postuninstall_cmds | \ 14141 old_postinstall_cmds | old_postuninstall_cmds | \ 14142 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 14143 # Double-quote double-evaled strings. 14144 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 14145 ;; 14146 *) 14147 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 14148 ;; 14149 esac 14150 done 14151 14152 case $lt_echo in 14153 *'\$0 --fallback-echo"') 14154 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 14155 ;; 14156 esac 14157 14158cfgfile="$ofile" 14159 14160 cat <<__EOF__ >> "$cfgfile" 14161# ### BEGIN LIBTOOL TAG CONFIG: $tagname 14162 14163# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14164 14165# Shell to use when invoking shell scripts. 14166SHELL=$lt_SHELL 14167 14168# Whether or not to build shared libraries. 14169build_libtool_libs=$enable_shared 14170 14171# Whether or not to build static libraries. 14172build_old_libs=$enable_static 14173 14174# Whether or not to add -lc for building shared libraries. 14175build_libtool_need_lc=$archive_cmds_need_lc_CXX 14176 14177# Whether or not to disallow shared libs when runtime libs are static 14178allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 14179 14180# Whether or not to optimize for fast installation. 14181fast_install=$enable_fast_install 14182 14183# The host system. 14184host_alias=$host_alias 14185host=$host 14186host_os=$host_os 14187 14188# The build system. 14189build_alias=$build_alias 14190build=$build 14191build_os=$build_os 14192 14193# An echo program that does not interpret backslashes. 14194echo=$lt_echo 14195 14196# The archiver. 14197AR=$lt_AR 14198AR_FLAGS=$lt_AR_FLAGS 14199 14200# A C compiler. 14201LTCC=$lt_LTCC 14202 14203# LTCC compiler flags. 14204LTCFLAGS=$lt_LTCFLAGS 14205 14206# A language-specific compiler. 14207CC=$lt_compiler_CXX 14208 14209# Is the compiler the GNU C compiler? 14210with_gcc=$GCC_CXX 14211 14212# An ERE matcher. 14213EGREP=$lt_EGREP 14214 14215# The linker used to build libraries. 14216LD=$lt_LD_CXX 14217 14218# Whether we need hard or soft links. 14219LN_S=$lt_LN_S 14220 14221# A BSD-compatible nm program. 14222NM=$lt_NM 14223 14224# A symbol stripping program 14225STRIP=$lt_STRIP 14226 14227# Used to examine libraries when file_magic_cmd begins "file" 14228MAGIC_CMD=$MAGIC_CMD 14229 14230# Used on cygwin: DLL creation program. 14231DLLTOOL="$DLLTOOL" 14232 14233# Used on cygwin: object dumper. 14234OBJDUMP="$OBJDUMP" 14235 14236# Used on cygwin: assembler. 14237AS="$AS" 14238 14239# The name of the directory that contains temporary libtool files. 14240objdir=$objdir 14241 14242# How to create reloadable object files. 14243reload_flag=$lt_reload_flag 14244reload_cmds=$lt_reload_cmds 14245 14246# How to pass a linker flag through the compiler. 14247wl=$lt_lt_prog_compiler_wl_CXX 14248 14249# Object file suffix (normally "o"). 14250objext="$ac_objext" 14251 14252# Old archive suffix (normally "a"). 14253libext="$libext" 14254 14255# Shared library suffix (normally ".so"). 14256shrext_cmds='$shrext_cmds' 14257 14258# Executable file suffix (normally ""). 14259exeext="$exeext" 14260 14261# Additional compiler flags for building library objects. 14262pic_flag=$lt_lt_prog_compiler_pic_CXX 14263pic_mode=$pic_mode 14264 14265# What is the maximum length of a command? 14266max_cmd_len=$lt_cv_sys_max_cmd_len 14267 14268# Does compiler simultaneously support -c and -o options? 14269compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 14270 14271# Must we lock files when doing compilation? 14272need_locks=$lt_need_locks 14273 14274# Do we need the lib prefix for modules? 14275need_lib_prefix=$need_lib_prefix 14276 14277# Do we need a version for libraries? 14278need_version=$need_version 14279 14280# Whether dlopen is supported. 14281dlopen_support=$enable_dlopen 14282 14283# Whether dlopen of programs is supported. 14284dlopen_self=$enable_dlopen_self 14285 14286# Whether dlopen of statically linked programs is supported. 14287dlopen_self_static=$enable_dlopen_self_static 14288 14289# Compiler flag to prevent dynamic linking. 14290link_static_flag=$lt_lt_prog_compiler_static_CXX 14291 14292# Compiler flag to turn off builtin functions. 14293no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 14294 14295# Compiler flag to allow reflexive dlopens. 14296export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 14297 14298# Compiler flag to generate shared objects directly from archives. 14299whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 14300 14301# Compiler flag to generate thread-safe objects. 14302thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 14303 14304# Library versioning type. 14305version_type=$version_type 14306 14307# Format of library name prefix. 14308libname_spec=$lt_libname_spec 14309 14310# List of archive names. First name is the real one, the rest are links. 14311# The last name is the one that the linker finds with -lNAME. 14312library_names_spec=$lt_library_names_spec 14313 14314# The coded name of the library, if different from the real name. 14315soname_spec=$lt_soname_spec 14316 14317# Commands used to build and install an old-style archive. 14318RANLIB=$lt_RANLIB 14319old_archive_cmds=$lt_old_archive_cmds_CXX 14320old_postinstall_cmds=$lt_old_postinstall_cmds 14321old_postuninstall_cmds=$lt_old_postuninstall_cmds 14322 14323# Create an old-style archive from a shared archive. 14324old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 14325 14326# Create a temporary old-style archive to link instead of a shared archive. 14327old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 14328 14329# Commands used to build and install a shared archive. 14330archive_cmds=$lt_archive_cmds_CXX 14331archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 14332postinstall_cmds=$lt_postinstall_cmds 14333postuninstall_cmds=$lt_postuninstall_cmds 14334 14335# Commands used to build a loadable module (assumed same as above if empty) 14336module_cmds=$lt_module_cmds_CXX 14337module_expsym_cmds=$lt_module_expsym_cmds_CXX 14338 14339# Commands to strip libraries. 14340old_striplib=$lt_old_striplib 14341striplib=$lt_striplib 14342 14343# Dependencies to place before the objects being linked to create a 14344# shared library. 14345predep_objects=$lt_predep_objects_CXX 14346 14347# Dependencies to place after the objects being linked to create a 14348# shared library. 14349postdep_objects=$lt_postdep_objects_CXX 14350 14351# Dependencies to place before the objects being linked to create a 14352# shared library. 14353predeps=$lt_predeps_CXX 14354 14355# Dependencies to place after the objects being linked to create a 14356# shared library. 14357postdeps=$lt_postdeps_CXX 14358 14359# The library search path used internally by the compiler when linking 14360# a shared library. 14361compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 14362 14363# Method to check whether dependent libraries are shared objects. 14364deplibs_check_method=$lt_deplibs_check_method 14365 14366# Command to use when deplibs_check_method == file_magic. 14367file_magic_cmd=$lt_file_magic_cmd 14368 14369# Flag that allows shared libraries with undefined symbols to be built. 14370allow_undefined_flag=$lt_allow_undefined_flag_CXX 14371 14372# Flag that forces no undefined symbols. 14373no_undefined_flag=$lt_no_undefined_flag_CXX 14374 14375# Commands used to finish a libtool library installation in a directory. 14376finish_cmds=$lt_finish_cmds 14377 14378# Same as above, but a single script fragment to be evaled but not shown. 14379finish_eval=$lt_finish_eval 14380 14381# Take the output of nm and produce a listing of raw symbols and C names. 14382global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14383 14384# Transform the output of nm in a proper C declaration 14385global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14386 14387# Transform the output of nm in a C name address pair 14388global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14389 14390# This is the shared library runtime path variable. 14391runpath_var=$runpath_var 14392 14393# This is the shared library path variable. 14394shlibpath_var=$shlibpath_var 14395 14396# Is shlibpath searched before the hard-coded library search path? 14397shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14398 14399# How to hardcode a shared library path into an executable. 14400hardcode_action=$hardcode_action_CXX 14401 14402# Whether we should hardcode library paths into libraries. 14403hardcode_into_libs=$hardcode_into_libs 14404 14405# Flag to hardcode \$libdir into a binary during linking. 14406# This must work even if \$libdir does not exist. 14407hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 14408 14409# If ld is used when linking, flag to hardcode \$libdir into 14410# a binary during linking. This must work even if \$libdir does 14411# not exist. 14412hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 14413 14414# Whether we need a single -rpath flag with a separated argument. 14415hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 14416 14417# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 14418# resulting binary. 14419hardcode_direct=$hardcode_direct_CXX 14420 14421# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 14422# resulting binary. 14423hardcode_minus_L=$hardcode_minus_L_CXX 14424 14425# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 14426# the resulting binary. 14427hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 14428 14429# Set to yes if building a shared library automatically hardcodes DIR into the library 14430# and all subsequent libraries and executables linked against it. 14431hardcode_automatic=$hardcode_automatic_CXX 14432 14433# Variables whose values should be saved in libtool wrapper scripts and 14434# restored at relink time. 14435variables_saved_for_relink="$variables_saved_for_relink" 14436 14437# Whether libtool must link a program against all its dependency libraries. 14438link_all_deplibs=$link_all_deplibs_CXX 14439 14440# Compile-time system search path for libraries 14441sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14442 14443# Run-time system search path for libraries 14444sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14445 14446# Fix the shell variable \$srcfile for the compiler. 14447fix_srcfile_path="$fix_srcfile_path_CXX" 14448 14449# Set to yes if exported symbols are required. 14450always_export_symbols=$always_export_symbols_CXX 14451 14452# The commands to list exported symbols. 14453export_symbols_cmds=$lt_export_symbols_cmds_CXX 14454 14455# The commands to extract the exported symbol list from a shared archive. 14456extract_expsyms_cmds=$lt_extract_expsyms_cmds 14457 14458# Symbols that should not be listed in the preloaded symbols. 14459exclude_expsyms=$lt_exclude_expsyms_CXX 14460 14461# Symbols that must always be exported. 14462include_expsyms=$lt_include_expsyms_CXX 14463 14464# ### END LIBTOOL TAG CONFIG: $tagname 14465 14466__EOF__ 14467 14468 14469else 14470 # If there is no Makefile yet, we rely on a make rule to execute 14471 # `config.status --recheck' to rerun these tests and create the 14472 # libtool script then. 14473 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 14474 if test -f "$ltmain_in"; then 14475 test -f Makefile && make "$ltmain" 14476 fi 14477fi 14478 14479 14480ac_ext=c 14481ac_cpp='$CPP $CPPFLAGS' 14482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14484ac_compiler_gnu=$ac_cv_c_compiler_gnu 14485 14486CC=$lt_save_CC 14487LDCXX=$LD 14488LD=$lt_save_LD 14489GCC=$lt_save_GCC 14490with_gnu_ldcxx=$with_gnu_ld 14491with_gnu_ld=$lt_save_with_gnu_ld 14492lt_cv_path_LDCXX=$lt_cv_path_LD 14493lt_cv_path_LD=$lt_save_path_LD 14494lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 14495lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 14496 14497 else 14498 tagname="" 14499 fi 14500 ;; 14501 14502 F77) 14503 if test -n "$F77" && test "X$F77" != "Xno"; then 14504 14505ac_ext=f 14506ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 14507ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14508ac_compiler_gnu=$ac_cv_f77_compiler_gnu 14509 14510 14511archive_cmds_need_lc_F77=no 14512allow_undefined_flag_F77= 14513always_export_symbols_F77=no 14514archive_expsym_cmds_F77= 14515export_dynamic_flag_spec_F77= 14516hardcode_direct_F77=no 14517hardcode_libdir_flag_spec_F77= 14518hardcode_libdir_flag_spec_ld_F77= 14519hardcode_libdir_separator_F77= 14520hardcode_minus_L_F77=no 14521hardcode_automatic_F77=no 14522module_cmds_F77= 14523module_expsym_cmds_F77= 14524link_all_deplibs_F77=unknown 14525old_archive_cmds_F77=$old_archive_cmds 14526no_undefined_flag_F77= 14527whole_archive_flag_spec_F77= 14528enable_shared_with_static_runtimes_F77=no 14529 14530# Source file extension for f77 test sources. 14531ac_ext=f 14532 14533# Object file extension for compiled f77 test sources. 14534objext=o 14535objext_F77=$objext 14536 14537# Code to be used in simple compile tests 14538lt_simple_compile_test_code=" subroutine t\n return\n end\n" 14539 14540# Code to be used in simple link tests 14541lt_simple_link_test_code=" program t\n end\n" 14542 14543# ltmain only uses $CC for tagged configurations so make sure $CC is set. 14544 14545# If no C compiler was specified, use CC. 14546LTCC=${LTCC-"$CC"} 14547 14548# If no C compiler flags were specified, use CFLAGS. 14549LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14550 14551# Allow CC to be a program name with arguments. 14552compiler=$CC 14553 14554 14555# save warnings/boilerplate of simple test code 14556ac_outfile=conftest.$ac_objext 14557printf "$lt_simple_compile_test_code" >conftest.$ac_ext 14558eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14559_lt_compiler_boilerplate=`cat conftest.err` 14560$rm conftest* 14561 14562ac_outfile=conftest.$ac_objext 14563printf "$lt_simple_link_test_code" >conftest.$ac_ext 14564eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14565_lt_linker_boilerplate=`cat conftest.err` 14566$rm conftest* 14567 14568 14569# Allow CC to be a program name with arguments. 14570lt_save_CC="$CC" 14571CC=${F77-"f77"} 14572compiler=$CC 14573compiler_F77=$CC 14574for cc_temp in $compiler""; do 14575 case $cc_temp in 14576 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14577 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14578 \-*) ;; 14579 *) break;; 14580 esac 14581done 14582cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14583 14584 14585echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 14586echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 14587echo "$as_me:$LINENO: result: $can_build_shared" >&5 14588echo "${ECHO_T}$can_build_shared" >&6 14589 14590echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 14591echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 14592test "$can_build_shared" = "no" && enable_shared=no 14593 14594# On AIX, shared libraries and static libraries use the same namespace, and 14595# are all built from PIC. 14596case $host_os in 14597aix3*) 14598 test "$enable_shared" = yes && enable_static=no 14599 if test -n "$RANLIB"; then 14600 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14601 postinstall_cmds='$RANLIB $lib' 14602 fi 14603 ;; 14604aix4* | aix5*) 14605 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 14606 test "$enable_shared" = yes && enable_static=no 14607 fi 14608 ;; 14609esac 14610echo "$as_me:$LINENO: result: $enable_shared" >&5 14611echo "${ECHO_T}$enable_shared" >&6 14612 14613echo "$as_me:$LINENO: checking whether to build static libraries" >&5 14614echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 14615# Make sure either enable_shared or enable_static is yes. 14616test "$enable_shared" = yes || enable_static=yes 14617echo "$as_me:$LINENO: result: $enable_static" >&5 14618echo "${ECHO_T}$enable_static" >&6 14619 14620GCC_F77="$G77" 14621LD_F77="$LD" 14622 14623lt_prog_compiler_wl_F77= 14624lt_prog_compiler_pic_F77= 14625lt_prog_compiler_static_F77= 14626 14627echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 14628echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 14629 14630 if test "$GCC" = yes; then 14631 lt_prog_compiler_wl_F77='-Wl,' 14632 lt_prog_compiler_static_F77='-static' 14633 14634 case $host_os in 14635 aix*) 14636 # All AIX code is PIC. 14637 if test "$host_cpu" = ia64; then 14638 # AIX 5 now supports IA64 processor 14639 lt_prog_compiler_static_F77='-Bstatic' 14640 fi 14641 ;; 14642 14643 amigaos*) 14644 # FIXME: we need at least 68020 code to build shared libraries, but 14645 # adding the `-m68020' flag to GCC prevents building anything better, 14646 # like `-m68040'. 14647 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 14648 ;; 14649 14650 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14651 # PIC is the default for these OSes. 14652 ;; 14653 14654 mingw* | pw32* | os2*) 14655 # This hack is so that the source file can tell whether it is being 14656 # built for inclusion in a dll (and should export symbols for example). 14657 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14658 ;; 14659 14660 darwin* | rhapsody*) 14661 # PIC is the default on this platform 14662 # Common symbols not allowed in MH_DYLIB files 14663 lt_prog_compiler_pic_F77='-fno-common' 14664 ;; 14665 14666 interix3*) 14667 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14668 # Instead, we relocate shared libraries at runtime. 14669 ;; 14670 14671 msdosdjgpp*) 14672 # Just because we use GCC doesn't mean we suddenly get shared libraries 14673 # on systems that don't support them. 14674 lt_prog_compiler_can_build_shared_F77=no 14675 enable_shared=no 14676 ;; 14677 14678 sysv4*MP*) 14679 if test -d /usr/nec; then 14680 lt_prog_compiler_pic_F77=-Kconform_pic 14681 fi 14682 ;; 14683 14684 hpux*) 14685 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14686 # not for PA HP-UX. 14687 case $host_cpu in 14688 hppa*64*|ia64*) 14689 # +Z the default 14690 ;; 14691 *) 14692 lt_prog_compiler_pic_F77='-fPIC' 14693 ;; 14694 esac 14695 ;; 14696 14697 *) 14698 lt_prog_compiler_pic_F77='-fPIC' 14699 ;; 14700 esac 14701 else 14702 # PORTME Check for flag to pass linker flags through the system compiler. 14703 case $host_os in 14704 aix*) 14705 lt_prog_compiler_wl_F77='-Wl,' 14706 if test "$host_cpu" = ia64; then 14707 # AIX 5 now supports IA64 processor 14708 lt_prog_compiler_static_F77='-Bstatic' 14709 else 14710 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 14711 fi 14712 ;; 14713 darwin*) 14714 # PIC is the default on this platform 14715 # Common symbols not allowed in MH_DYLIB files 14716 case $cc_basename in 14717 xlc*) 14718 lt_prog_compiler_pic_F77='-qnocommon' 14719 lt_prog_compiler_wl_F77='-Wl,' 14720 ;; 14721 esac 14722 ;; 14723 14724 mingw* | pw32* | os2*) 14725 # This hack is so that the source file can tell whether it is being 14726 # built for inclusion in a dll (and should export symbols for example). 14727 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14728 ;; 14729 14730 hpux9* | hpux10* | hpux11*) 14731 lt_prog_compiler_wl_F77='-Wl,' 14732 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14733 # not for PA HP-UX. 14734 case $host_cpu in 14735 hppa*64*|ia64*) 14736 # +Z the default 14737 ;; 14738 *) 14739 lt_prog_compiler_pic_F77='+Z' 14740 ;; 14741 esac 14742 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14743 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 14744 ;; 14745 14746 irix5* | irix6* | nonstopux*) 14747 lt_prog_compiler_wl_F77='-Wl,' 14748 # PIC (with -KPIC) is the default. 14749 lt_prog_compiler_static_F77='-non_shared' 14750 ;; 14751 14752 newsos6) 14753 lt_prog_compiler_pic_F77='-KPIC' 14754 lt_prog_compiler_static_F77='-Bstatic' 14755 ;; 14756 14757 linux*) 14758 case $cc_basename in 14759 icc* | ecc*) 14760 lt_prog_compiler_wl_F77='-Wl,' 14761 lt_prog_compiler_pic_F77='-KPIC' 14762 lt_prog_compiler_static_F77='-static' 14763 ;; 14764 pgcc* | pgf77* | pgf90* | pgf95*) 14765 # Portland Group compilers (*not* the Pentium gcc compiler, 14766 # which looks to be a dead project) 14767 lt_prog_compiler_wl_F77='-Wl,' 14768 lt_prog_compiler_pic_F77='-fpic' 14769 lt_prog_compiler_static_F77='-Bstatic' 14770 ;; 14771 ccc*) 14772 lt_prog_compiler_wl_F77='-Wl,' 14773 # All Alpha code is PIC. 14774 lt_prog_compiler_static_F77='-non_shared' 14775 ;; 14776 esac 14777 ;; 14778 14779 osf3* | osf4* | osf5*) 14780 lt_prog_compiler_wl_F77='-Wl,' 14781 # All OSF/1 code is PIC. 14782 lt_prog_compiler_static_F77='-non_shared' 14783 ;; 14784 14785 solaris*) 14786 lt_prog_compiler_pic_F77='-KPIC' 14787 lt_prog_compiler_static_F77='-Bstatic' 14788 case $cc_basename in 14789 f77* | f90* | f95*) 14790 lt_prog_compiler_wl_F77='-Qoption ld ';; 14791 *) 14792 lt_prog_compiler_wl_F77='-Wl,';; 14793 esac 14794 ;; 14795 14796 sunos4*) 14797 lt_prog_compiler_wl_F77='-Qoption ld ' 14798 lt_prog_compiler_pic_F77='-PIC' 14799 lt_prog_compiler_static_F77='-Bstatic' 14800 ;; 14801 14802 sysv4 | sysv4.2uw2* | sysv4.3*) 14803 lt_prog_compiler_wl_F77='-Wl,' 14804 lt_prog_compiler_pic_F77='-KPIC' 14805 lt_prog_compiler_static_F77='-Bstatic' 14806 ;; 14807 14808 sysv4*MP*) 14809 if test -d /usr/nec ;then 14810 lt_prog_compiler_pic_F77='-Kconform_pic' 14811 lt_prog_compiler_static_F77='-Bstatic' 14812 fi 14813 ;; 14814 14815 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14816 lt_prog_compiler_wl_F77='-Wl,' 14817 lt_prog_compiler_pic_F77='-KPIC' 14818 lt_prog_compiler_static_F77='-Bstatic' 14819 ;; 14820 14821 unicos*) 14822 lt_prog_compiler_wl_F77='-Wl,' 14823 lt_prog_compiler_can_build_shared_F77=no 14824 ;; 14825 14826 uts4*) 14827 lt_prog_compiler_pic_F77='-pic' 14828 lt_prog_compiler_static_F77='-Bstatic' 14829 ;; 14830 14831 *) 14832 lt_prog_compiler_can_build_shared_F77=no 14833 ;; 14834 esac 14835 fi 14836 14837echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 14838echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 14839 14840# 14841# Check to make sure the PIC flag actually works. 14842# 14843if test -n "$lt_prog_compiler_pic_F77"; then 14844 14845echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 14846echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 14847if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 14848 echo $ECHO_N "(cached) $ECHO_C" >&6 14849else 14850 lt_prog_compiler_pic_works_F77=no 14851 ac_outfile=conftest.$ac_objext 14852 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14853 lt_compiler_flag="$lt_prog_compiler_pic_F77" 14854 # Insert the option either (1) after the last *FLAGS variable, or 14855 # (2) before a word containing "conftest.", or (3) at the end. 14856 # Note that $ac_compile itself does not contain backslashes and begins 14857 # with a dollar sign (not a hyphen), so the echo should work correctly. 14858 # The option is referenced via a variable to avoid confusing sed. 14859 lt_compile=`echo "$ac_compile" | $SED \ 14860 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14861 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14862 -e 's:$: $lt_compiler_flag:'` 14863 (eval echo "\"\$as_me:14863: $lt_compile\"" >&5) 14864 (eval "$lt_compile" 2>conftest.err) 14865 ac_status=$? 14866 cat conftest.err >&5 14867 echo "$as_me:14867: \$? = $ac_status" >&5 14868 if (exit $ac_status) && test -s "$ac_outfile"; then 14869 # The compiler can only warn and ignore the option if not recognized 14870 # So say no if there are warnings other than the usual output. 14871 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14872 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14873 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14874 lt_prog_compiler_pic_works_F77=yes 14875 fi 14876 fi 14877 $rm conftest* 14878 14879fi 14880echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 14881echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 14882 14883if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 14884 case $lt_prog_compiler_pic_F77 in 14885 "" | " "*) ;; 14886 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 14887 esac 14888else 14889 lt_prog_compiler_pic_F77= 14890 lt_prog_compiler_can_build_shared_F77=no 14891fi 14892 14893fi 14894case $host_os in 14895 # For platforms which do not support PIC, -DPIC is meaningless: 14896 *djgpp*) 14897 lt_prog_compiler_pic_F77= 14898 ;; 14899 *) 14900 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 14901 ;; 14902esac 14903 14904# 14905# Check to make sure the static flag actually works. 14906# 14907wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 14908echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14909echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 14910if test "${lt_prog_compiler_static_works_F77+set}" = set; then 14911 echo $ECHO_N "(cached) $ECHO_C" >&6 14912else 14913 lt_prog_compiler_static_works_F77=no 14914 save_LDFLAGS="$LDFLAGS" 14915 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14916 printf "$lt_simple_link_test_code" > conftest.$ac_ext 14917 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14918 # The linker can only warn and ignore the option if not recognized 14919 # So say no if there are warnings 14920 if test -s conftest.err; then 14921 # Append any errors to the config.log. 14922 cat conftest.err 1>&5 14923 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 14924 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14925 if diff conftest.exp conftest.er2 >/dev/null; then 14926 lt_prog_compiler_static_works_F77=yes 14927 fi 14928 else 14929 lt_prog_compiler_static_works_F77=yes 14930 fi 14931 fi 14932 $rm conftest* 14933 LDFLAGS="$save_LDFLAGS" 14934 14935fi 14936echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 14937echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6 14938 14939if test x"$lt_prog_compiler_static_works_F77" = xyes; then 14940 : 14941else 14942 lt_prog_compiler_static_F77= 14943fi 14944 14945 14946echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14947echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 14948if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 14949 echo $ECHO_N "(cached) $ECHO_C" >&6 14950else 14951 lt_cv_prog_compiler_c_o_F77=no 14952 $rm -r conftest 2>/dev/null 14953 mkdir conftest 14954 cd conftest 14955 mkdir out 14956 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14957 14958 lt_compiler_flag="-o out/conftest2.$ac_objext" 14959 # Insert the option either (1) after the last *FLAGS variable, or 14960 # (2) before a word containing "conftest.", or (3) at the end. 14961 # Note that $ac_compile itself does not contain backslashes and begins 14962 # with a dollar sign (not a hyphen), so the echo should work correctly. 14963 lt_compile=`echo "$ac_compile" | $SED \ 14964 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14965 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14966 -e 's:$: $lt_compiler_flag:'` 14967 (eval echo "\"\$as_me:14967: $lt_compile\"" >&5) 14968 (eval "$lt_compile" 2>out/conftest.err) 14969 ac_status=$? 14970 cat out/conftest.err >&5 14971 echo "$as_me:14971: \$? = $ac_status" >&5 14972 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14973 then 14974 # The compiler can only warn and ignore the option if not recognized 14975 # So say no if there are warnings 14976 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14977 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14978 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14979 lt_cv_prog_compiler_c_o_F77=yes 14980 fi 14981 fi 14982 chmod u+w . 2>&5 14983 $rm conftest* 14984 # SGI C++ compiler will create directory out/ii_files/ for 14985 # template instantiation 14986 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14987 $rm out/* && rmdir out 14988 cd .. 14989 rmdir conftest 14990 $rm conftest* 14991 14992fi 14993echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 14994echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 14995 14996 14997hard_links="nottested" 14998if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14999 # do not overwrite the value of need_locks provided by the user 15000 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 15001echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 15002 hard_links=yes 15003 $rm conftest* 15004 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15005 touch conftest.a 15006 ln conftest.a conftest.b 2>&5 || hard_links=no 15007 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15008 echo "$as_me:$LINENO: result: $hard_links" >&5 15009echo "${ECHO_T}$hard_links" >&6 15010 if test "$hard_links" = no; then 15011 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 15012echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 15013 need_locks=warn 15014 fi 15015else 15016 need_locks=no 15017fi 15018 15019echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15020echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 15021 15022 runpath_var= 15023 allow_undefined_flag_F77= 15024 enable_shared_with_static_runtimes_F77=no 15025 archive_cmds_F77= 15026 archive_expsym_cmds_F77= 15027 old_archive_From_new_cmds_F77= 15028 old_archive_from_expsyms_cmds_F77= 15029 export_dynamic_flag_spec_F77= 15030 whole_archive_flag_spec_F77= 15031 thread_safe_flag_spec_F77= 15032 hardcode_libdir_flag_spec_F77= 15033 hardcode_libdir_flag_spec_ld_F77= 15034 hardcode_libdir_separator_F77= 15035 hardcode_direct_F77=no 15036 hardcode_minus_L_F77=no 15037 hardcode_shlibpath_var_F77=unsupported 15038 link_all_deplibs_F77=unknown 15039 hardcode_automatic_F77=no 15040 module_cmds_F77= 15041 module_expsym_cmds_F77= 15042 always_export_symbols_F77=no 15043 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15044 # include_expsyms should be a list of space-separated symbols to be *always* 15045 # included in the symbol list 15046 include_expsyms_F77= 15047 # exclude_expsyms can be an extended regexp of symbols to exclude 15048 # it will be wrapped by ` (' and `)$', so one must not match beginning or 15049 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 15050 # as well as any symbol that contains `d'. 15051 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 15052 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 15053 # platforms (ab)use it in PIC code, but their linkers get confused if 15054 # the symbol is explicitly referenced. Since portable code cannot 15055 # rely on this symbol name, it's probably fine to never include it in 15056 # preloaded symbol tables. 15057 extract_expsyms_cmds= 15058 # Just being paranoid about ensuring that cc_basename is set. 15059 for cc_temp in $compiler""; do 15060 case $cc_temp in 15061 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15062 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15063 \-*) ;; 15064 *) break;; 15065 esac 15066done 15067cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 15068 15069 case $host_os in 15070 cygwin* | mingw* | pw32*) 15071 # FIXME: the MSVC++ port hasn't been tested in a loooong time 15072 # When not using gcc, we currently assume that we are using 15073 # Microsoft Visual C++. 15074 if test "$GCC" != yes; then 15075 with_gnu_ld=no 15076 fi 15077 ;; 15078 interix*) 15079 # we just hope/assume this is gcc and not c89 (= MSVC++) 15080 with_gnu_ld=yes 15081 ;; 15082 openbsd*) 15083 with_gnu_ld=no 15084 ;; 15085 esac 15086 15087 ld_shlibs_F77=yes 15088 if test "$with_gnu_ld" = yes; then 15089 # If archive_cmds runs LD, not CC, wlarc should be empty 15090 wlarc='${wl}' 15091 15092 # Set some defaults for GNU ld with shared library support. These 15093 # are reset later if shared libraries are not supported. Putting them 15094 # here allows them to be overridden if necessary. 15095 runpath_var=LD_RUN_PATH 15096 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 15097 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 15098 # ancient GNU ld didn't support --whole-archive et. al. 15099 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 15100 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 15101 else 15102 whole_archive_flag_spec_F77= 15103 fi 15104 supports_anon_versioning=no 15105 case `$LD -v 2>/dev/null` in 15106 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 15107 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 15108 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 15109 *\ 2.11.*) ;; # other 2.11 versions 15110 *) supports_anon_versioning=yes ;; 15111 esac 15112 15113 # See if GNU ld supports shared libraries. 15114 case $host_os in 15115 aix3* | aix4* | aix5*) 15116 # On AIX/PPC, the GNU linker is very broken 15117 if test "$host_cpu" != ia64; then 15118 ld_shlibs_F77=no 15119 cat <<EOF 1>&2 15120 15121*** Warning: the GNU linker, at least up to release 2.9.1, is reported 15122*** to be unable to reliably create shared libraries on AIX. 15123*** Therefore, libtool is disabling shared libraries support. If you 15124*** really care for shared libraries, you may want to modify your PATH 15125*** so that a non-GNU linker is found, and then restart. 15126 15127EOF 15128 fi 15129 ;; 15130 15131 amigaos*) 15132 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)' 15133 hardcode_libdir_flag_spec_F77='-L$libdir' 15134 hardcode_minus_L_F77=yes 15135 15136 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 15137 # that the semantics of dynamic libraries on AmigaOS, at least up 15138 # to version 4, is to share data among multiple programs linked 15139 # with the same dynamic library. Since this doesn't match the 15140 # behavior of shared libraries on other platforms, we can't use 15141 # them. 15142 ld_shlibs_F77=no 15143 ;; 15144 15145 beos*) 15146 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15147 allow_undefined_flag_F77=unsupported 15148 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 15149 # support --undefined. This deserves some investigation. FIXME 15150 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15151 else 15152 ld_shlibs_F77=no 15153 fi 15154 ;; 15155 15156 cygwin* | mingw* | pw32*) 15157 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 15158 # as there is no search path for DLLs. 15159 hardcode_libdir_flag_spec_F77='-L$libdir' 15160 allow_undefined_flag_F77=unsupported 15161 always_export_symbols_F77=no 15162 enable_shared_with_static_runtimes_F77=yes 15163 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 15164 15165 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 15166 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15167 # If the export-symbols file already is a .def file (1st line 15168 # is EXPORTS), use it as is; otherwise, prepend... 15169 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 15170 cp $export_symbols $output_objdir/$soname.def; 15171 else 15172 echo EXPORTS > $output_objdir/$soname.def; 15173 cat $export_symbols >> $output_objdir/$soname.def; 15174 fi~ 15175 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15176 else 15177 ld_shlibs_F77=no 15178 fi 15179 ;; 15180 15181 interix3*) 15182 hardcode_direct_F77=no 15183 hardcode_shlibpath_var_F77=no 15184 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15185 export_dynamic_flag_spec_F77='${wl}-E' 15186 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 15187 # Instead, shared libraries are loaded at an image base (0x10000000 by 15188 # default) and relocated if they conflict, which is a slow very memory 15189 # consuming and fragmenting process. To avoid this, we pick a random, 15190 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 15191 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 15192 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' 15193 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' 15194 ;; 15195 15196 linux*) 15197 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15198 tmp_addflag= 15199 case $cc_basename,$host_cpu in 15200 pgcc*) # Portland Group C compiler 15201 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' 15202 tmp_addflag=' $pic_flag' 15203 ;; 15204 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 15205 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' 15206 tmp_addflag=' $pic_flag -Mnomain' ;; 15207 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 15208 tmp_addflag=' -i_dynamic' ;; 15209 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 15210 tmp_addflag=' -i_dynamic -nofor_main' ;; 15211 ifc* | ifort*) # Intel Fortran compiler 15212 tmp_addflag=' -nofor_main' ;; 15213 esac 15214 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15215 15216 if test $supports_anon_versioning = yes; then 15217 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 15218 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15219 $echo "local: *; };" >> $output_objdir/$libname.ver~ 15220 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 15221 fi 15222 else 15223 ld_shlibs_F77=no 15224 fi 15225 ;; 15226 15227 netbsd*) 15228 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15229 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 15230 wlarc= 15231 else 15232 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15233 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15234 fi 15235 ;; 15236 15237 solaris*) 15238 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 15239 ld_shlibs_F77=no 15240 cat <<EOF 1>&2 15241 15242*** Warning: The releases 2.8.* of the GNU linker cannot reliably 15243*** create shared libraries on Solaris systems. Therefore, libtool 15244*** is disabling shared libraries support. We urge you to upgrade GNU 15245*** binutils to release 2.9.1 or newer. Another option is to modify 15246*** your PATH or compiler configuration so that the native linker is 15247*** used, and then restart. 15248 15249EOF 15250 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15251 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15252 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15253 else 15254 ld_shlibs_F77=no 15255 fi 15256 ;; 15257 15258 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 15259 case `$LD -v 2>&1` in 15260 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 15261 ld_shlibs_F77=no 15262 cat <<_LT_EOF 1>&2 15263 15264*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 15265*** reliably create shared libraries on SCO systems. Therefore, libtool 15266*** is disabling shared libraries support. We urge you to upgrade GNU 15267*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 15268*** your PATH or compiler configuration so that the native linker is 15269*** used, and then restart. 15270 15271_LT_EOF 15272 ;; 15273 *) 15274 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15275 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 15276 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 15277 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 15278 else 15279 ld_shlibs_F77=no 15280 fi 15281 ;; 15282 esac 15283 ;; 15284 15285 sunos4*) 15286 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15287 wlarc= 15288 hardcode_direct_F77=yes 15289 hardcode_shlibpath_var_F77=no 15290 ;; 15291 15292 *) 15293 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15294 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15295 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15296 else 15297 ld_shlibs_F77=no 15298 fi 15299 ;; 15300 esac 15301 15302 if test "$ld_shlibs_F77" = no; then 15303 runpath_var= 15304 hardcode_libdir_flag_spec_F77= 15305 export_dynamic_flag_spec_F77= 15306 whole_archive_flag_spec_F77= 15307 fi 15308 else 15309 # PORTME fill in a description of your system's linker (not GNU ld) 15310 case $host_os in 15311 aix3*) 15312 allow_undefined_flag_F77=unsupported 15313 always_export_symbols_F77=yes 15314 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' 15315 # Note: this linker hardcodes the directories in LIBPATH if there 15316 # are no directories specified by -L. 15317 hardcode_minus_L_F77=yes 15318 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 15319 # Neither direct hardcoding nor static linking is supported with a 15320 # broken collect2. 15321 hardcode_direct_F77=unsupported 15322 fi 15323 ;; 15324 15325 aix4* | aix5*) 15326 if test "$host_cpu" = ia64; then 15327 # On IA64, the linker does run time linking by default, so we don't 15328 # have to do anything special. 15329 aix_use_runtimelinking=no 15330 exp_sym_flag='-Bexport' 15331 no_entry_flag="" 15332 else 15333 # If we're using GNU nm, then we don't want the "-C" option. 15334 # -C means demangle to AIX nm, but means don't demangle with GNU nm 15335 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 15336 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' 15337 else 15338 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' 15339 fi 15340 aix_use_runtimelinking=no 15341 15342 # Test if we are trying to use run time linking or normal 15343 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15344 # need to do runtime linking. 15345 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 15346 for ld_flag in $LDFLAGS; do 15347 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 15348 aix_use_runtimelinking=yes 15349 break 15350 fi 15351 done 15352 ;; 15353 esac 15354 15355 exp_sym_flag='-bexport' 15356 no_entry_flag='-bnoentry' 15357 fi 15358 15359 # When large executables or shared objects are built, AIX ld can 15360 # have problems creating the table of contents. If linking a library 15361 # or program results in "error TOC overflow" add -mminimal-toc to 15362 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15363 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15364 15365 archive_cmds_F77='' 15366 hardcode_direct_F77=yes 15367 hardcode_libdir_separator_F77=':' 15368 link_all_deplibs_F77=yes 15369 15370 if test "$GCC" = yes; then 15371 case $host_os in aix4.[012]|aix4.[012].*) 15372 # We only want to do this on AIX 4.2 and lower, the check 15373 # below for broken collect2 doesn't work under 4.3+ 15374 collect2name=`${CC} -print-prog-name=collect2` 15375 if test -f "$collect2name" && \ 15376 strings "$collect2name" | grep resolve_lib_name >/dev/null 15377 then 15378 # We have reworked collect2 15379 hardcode_direct_F77=yes 15380 else 15381 # We have old collect2 15382 hardcode_direct_F77=unsupported 15383 # It fails to find uninstalled libraries when the uninstalled 15384 # path is not listed in the libpath. Setting hardcode_minus_L 15385 # to unsupported forces relinking 15386 hardcode_minus_L_F77=yes 15387 hardcode_libdir_flag_spec_F77='-L$libdir' 15388 hardcode_libdir_separator_F77= 15389 fi 15390 ;; 15391 esac 15392 shared_flag='-shared' 15393 if test "$aix_use_runtimelinking" = yes; then 15394 shared_flag="$shared_flag "'${wl}-G' 15395 fi 15396 else 15397 # not using gcc 15398 if test "$host_cpu" = ia64; then 15399 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15400 # chokes on -Wl,-G. The following line is correct: 15401 shared_flag='-G' 15402 else 15403 if test "$aix_use_runtimelinking" = yes; then 15404 shared_flag='${wl}-G' 15405 else 15406 shared_flag='${wl}-bM:SRE' 15407 fi 15408 fi 15409 fi 15410 15411 # It seems that -bexpall does not export symbols beginning with 15412 # underscore (_), so it is better to generate a list of symbols to export. 15413 always_export_symbols_F77=yes 15414 if test "$aix_use_runtimelinking" = yes; then 15415 # Warning - without using the other runtime loading flags (-brtl), 15416 # -berok will link without error, but may produce a broken library. 15417 allow_undefined_flag_F77='-berok' 15418 # Determine the default libpath from the value encoded in an empty executable. 15419 cat >conftest.$ac_ext <<_ACEOF 15420 program main 15421 15422 end 15423_ACEOF 15424rm -f conftest.$ac_objext conftest$ac_exeext 15425if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15426 (eval $ac_link) 2>conftest.er1 15427 ac_status=$? 15428 grep -v '^ *+' conftest.er1 >conftest.err 15429 rm -f conftest.er1 15430 cat conftest.err >&5 15431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15432 (exit $ac_status); } && 15433 { ac_try='test -z "$ac_f77_werror_flag" 15434 || test ! -s conftest.err' 15435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15436 (eval $ac_try) 2>&5 15437 ac_status=$? 15438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15439 (exit $ac_status); }; } && 15440 { ac_try='test -s conftest$ac_exeext' 15441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15442 (eval $ac_try) 2>&5 15443 ac_status=$? 15444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15445 (exit $ac_status); }; }; then 15446 15447aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15448}'` 15449# Check for a 64-bit object if we didn't find anything. 15450if 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; } 15451}'`; fi 15452else 15453 echo "$as_me: failed program was:" >&5 15454sed 's/^/| /' conftest.$ac_ext >&5 15455 15456fi 15457rm -f conftest.err conftest.$ac_objext \ 15458 conftest$ac_exeext conftest.$ac_ext 15459if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15460 15461 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15462 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" 15463 else 15464 if test "$host_cpu" = ia64; then 15465 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 15466 allow_undefined_flag_F77="-z nodefs" 15467 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" 15468 else 15469 # Determine the default libpath from the value encoded in an empty executable. 15470 cat >conftest.$ac_ext <<_ACEOF 15471 program main 15472 15473 end 15474_ACEOF 15475rm -f conftest.$ac_objext conftest$ac_exeext 15476if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15477 (eval $ac_link) 2>conftest.er1 15478 ac_status=$? 15479 grep -v '^ *+' conftest.er1 >conftest.err 15480 rm -f conftest.er1 15481 cat conftest.err >&5 15482 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15483 (exit $ac_status); } && 15484 { ac_try='test -z "$ac_f77_werror_flag" 15485 || test ! -s conftest.err' 15486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15487 (eval $ac_try) 2>&5 15488 ac_status=$? 15489 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15490 (exit $ac_status); }; } && 15491 { ac_try='test -s conftest$ac_exeext' 15492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15493 (eval $ac_try) 2>&5 15494 ac_status=$? 15495 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15496 (exit $ac_status); }; }; then 15497 15498aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15499}'` 15500# Check for a 64-bit object if we didn't find anything. 15501if 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; } 15502}'`; fi 15503else 15504 echo "$as_me: failed program was:" >&5 15505sed 's/^/| /' conftest.$ac_ext >&5 15506 15507fi 15508rm -f conftest.err conftest.$ac_objext \ 15509 conftest$ac_exeext conftest.$ac_ext 15510if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15511 15512 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15513 # Warning - without using the other run time loading flags, 15514 # -berok will link without error, but may produce a broken library. 15515 no_undefined_flag_F77=' ${wl}-bernotok' 15516 allow_undefined_flag_F77=' ${wl}-berok' 15517 # Exported symbols can be pulled into shared objects from archives 15518 whole_archive_flag_spec_F77='$convenience' 15519 archive_cmds_need_lc_F77=yes 15520 # This is similar to how AIX traditionally builds its shared libraries. 15521 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' 15522 fi 15523 fi 15524 ;; 15525 15526 amigaos*) 15527 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)' 15528 hardcode_libdir_flag_spec_F77='-L$libdir' 15529 hardcode_minus_L_F77=yes 15530 # see comment about different semantics on the GNU ld section 15531 ld_shlibs_F77=no 15532 ;; 15533 15534 bsdi[45]*) 15535 export_dynamic_flag_spec_F77=-rdynamic 15536 ;; 15537 15538 cygwin* | mingw* | pw32*) 15539 # When not using gcc, we currently assume that we are using 15540 # Microsoft Visual C++. 15541 # hardcode_libdir_flag_spec is actually meaningless, as there is 15542 # no search path for DLLs. 15543 hardcode_libdir_flag_spec_F77=' ' 15544 allow_undefined_flag_F77=unsupported 15545 # Tell ltmain to make .lib files, not .a files. 15546 libext=lib 15547 # Tell ltmain to make .dll files, not .so files. 15548 shrext_cmds=".dll" 15549 # FIXME: Setting linknames here is a bad hack. 15550 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 15551 # The linker will automatically build a .lib file if we build a DLL. 15552 old_archive_From_new_cmds_F77='true' 15553 # FIXME: Should let the user specify the lib program. 15554 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 15555 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 15556 enable_shared_with_static_runtimes_F77=yes 15557 ;; 15558 15559 darwin* | rhapsody*) 15560 case $host_os in 15561 rhapsody* | darwin1.[012]) 15562 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 15563 ;; 15564 *) # Darwin 1.3 on 15565 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 15566 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15567 else 15568 case ${MACOSX_DEPLOYMENT_TARGET} in 15569 10.[012]) 15570 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15571 ;; 15572 10.*) 15573 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 15574 ;; 15575 esac 15576 fi 15577 ;; 15578 esac 15579 archive_cmds_need_lc_F77=no 15580 hardcode_direct_F77=no 15581 hardcode_automatic_F77=yes 15582 hardcode_shlibpath_var_F77=unsupported 15583 whole_archive_flag_spec_F77='' 15584 link_all_deplibs_F77=yes 15585 if test "$GCC" = yes ; then 15586 output_verbose_link_cmd='echo' 15587 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 15588 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15589 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15590 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}' 15591 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}' 15592 else 15593 case $cc_basename in 15594 xlc*) 15595 output_verbose_link_cmd='echo' 15596 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 15597 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15598 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15599 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}' 15600 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}' 15601 ;; 15602 *) 15603 ld_shlibs_F77=no 15604 ;; 15605 esac 15606 fi 15607 ;; 15608 15609 dgux*) 15610 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15611 hardcode_libdir_flag_spec_F77='-L$libdir' 15612 hardcode_shlibpath_var_F77=no 15613 ;; 15614 15615 freebsd1*) 15616 ld_shlibs_F77=no 15617 ;; 15618 15619 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15620 # support. Future versions do this automatically, but an explicit c++rt0.o 15621 # does not break anything, and helps significantly (at the cost of a little 15622 # extra space). 15623 freebsd2.2*) 15624 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15625 hardcode_libdir_flag_spec_F77='-R$libdir' 15626 hardcode_direct_F77=yes 15627 hardcode_shlibpath_var_F77=no 15628 ;; 15629 15630 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15631 freebsd2*) 15632 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15633 hardcode_direct_F77=yes 15634 hardcode_minus_L_F77=yes 15635 hardcode_shlibpath_var_F77=no 15636 ;; 15637 15638 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15639 freebsd* | kfreebsd*-gnu | dragonfly*) 15640 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 15641 hardcode_libdir_flag_spec_F77='-R$libdir' 15642 hardcode_direct_F77=yes 15643 hardcode_shlibpath_var_F77=no 15644 ;; 15645 15646 hpux9*) 15647 if test "$GCC" = yes; then 15648 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' 15649 else 15650 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' 15651 fi 15652 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15653 hardcode_libdir_separator_F77=: 15654 hardcode_direct_F77=yes 15655 15656 # hardcode_minus_L: Not really in the search PATH, 15657 # but as the default location of the library. 15658 hardcode_minus_L_F77=yes 15659 export_dynamic_flag_spec_F77='${wl}-E' 15660 ;; 15661 15662 hpux10*) 15663 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15664 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15665 else 15666 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15667 fi 15668 if test "$with_gnu_ld" = no; then 15669 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15670 hardcode_libdir_separator_F77=: 15671 15672 hardcode_direct_F77=yes 15673 export_dynamic_flag_spec_F77='${wl}-E' 15674 15675 # hardcode_minus_L: Not really in the search PATH, 15676 # but as the default location of the library. 15677 hardcode_minus_L_F77=yes 15678 fi 15679 ;; 15680 15681 hpux11*) 15682 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15683 case $host_cpu in 15684 hppa*64*) 15685 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15686 ;; 15687 ia64*) 15688 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15689 ;; 15690 *) 15691 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15692 ;; 15693 esac 15694 else 15695 case $host_cpu in 15696 hppa*64*) 15697 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15698 ;; 15699 ia64*) 15700 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15701 ;; 15702 *) 15703 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15704 ;; 15705 esac 15706 fi 15707 if test "$with_gnu_ld" = no; then 15708 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15709 hardcode_libdir_separator_F77=: 15710 15711 case $host_cpu in 15712 hppa*64*|ia64*) 15713 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 15714 hardcode_direct_F77=no 15715 hardcode_shlibpath_var_F77=no 15716 ;; 15717 *) 15718 hardcode_direct_F77=yes 15719 export_dynamic_flag_spec_F77='${wl}-E' 15720 15721 # hardcode_minus_L: Not really in the search PATH, 15722 # but as the default location of the library. 15723 hardcode_minus_L_F77=yes 15724 ;; 15725 esac 15726 fi 15727 ;; 15728 15729 irix5* | irix6* | nonstopux*) 15730 if test "$GCC" = yes; then 15731 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' 15732 else 15733 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' 15734 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 15735 fi 15736 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15737 hardcode_libdir_separator_F77=: 15738 link_all_deplibs_F77=yes 15739 ;; 15740 15741 netbsd*) 15742 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15743 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15744 else 15745 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15746 fi 15747 hardcode_libdir_flag_spec_F77='-R$libdir' 15748 hardcode_direct_F77=yes 15749 hardcode_shlibpath_var_F77=no 15750 ;; 15751 15752 newsos6) 15753 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15754 hardcode_direct_F77=yes 15755 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15756 hardcode_libdir_separator_F77=: 15757 hardcode_shlibpath_var_F77=no 15758 ;; 15759 15760 openbsd*) 15761 hardcode_direct_F77=yes 15762 hardcode_shlibpath_var_F77=no 15763 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15764 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15765 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 15766 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15767 export_dynamic_flag_spec_F77='${wl}-E' 15768 else 15769 case $host_os in 15770 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15771 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15772 hardcode_libdir_flag_spec_F77='-R$libdir' 15773 ;; 15774 *) 15775 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15776 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15777 ;; 15778 esac 15779 fi 15780 ;; 15781 15782 os2*) 15783 hardcode_libdir_flag_spec_F77='-L$libdir' 15784 hardcode_minus_L_F77=yes 15785 allow_undefined_flag_F77=unsupported 15786 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' 15787 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15788 ;; 15789 15790 osf3*) 15791 if test "$GCC" = yes; then 15792 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15793 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' 15794 else 15795 allow_undefined_flag_F77=' -expect_unresolved \*' 15796 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' 15797 fi 15798 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15799 hardcode_libdir_separator_F77=: 15800 ;; 15801 15802 osf4* | osf5*) # as osf3* with the addition of -msym flag 15803 if test "$GCC" = yes; then 15804 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15805 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' 15806 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15807 else 15808 allow_undefined_flag_F77=' -expect_unresolved \*' 15809 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' 15810 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~ 15811 $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' 15812 15813 # Both c and cxx compiler support -rpath directly 15814 hardcode_libdir_flag_spec_F77='-rpath $libdir' 15815 fi 15816 hardcode_libdir_separator_F77=: 15817 ;; 15818 15819 solaris*) 15820 no_undefined_flag_F77=' -z text' 15821 if test "$GCC" = yes; then 15822 wlarc='${wl}' 15823 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15824 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15825 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 15826 else 15827 wlarc='' 15828 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15829 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15830 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15831 fi 15832 hardcode_libdir_flag_spec_F77='-R$libdir' 15833 hardcode_shlibpath_var_F77=no 15834 case $host_os in 15835 solaris2.[0-5] | solaris2.[0-5].*) ;; 15836 *) 15837 # The compiler driver will combine linker options so we 15838 # cannot just pass the convience library names through 15839 # without $wl, iff we do not link with $LD. 15840 # Luckily, gcc supports the same syntax we need for Sun Studio. 15841 # Supported since Solaris 2.6 (maybe 2.5.1?) 15842 case $wlarc in 15843 '') 15844 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 15845 *) 15846 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' ;; 15847 esac ;; 15848 esac 15849 link_all_deplibs_F77=yes 15850 ;; 15851 15852 sunos4*) 15853 if test "x$host_vendor" = xsequent; then 15854 # Use $CC to link under sequent, because it throws in some extra .o 15855 # files that make .init and .fini sections work. 15856 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15857 else 15858 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15859 fi 15860 hardcode_libdir_flag_spec_F77='-L$libdir' 15861 hardcode_direct_F77=yes 15862 hardcode_minus_L_F77=yes 15863 hardcode_shlibpath_var_F77=no 15864 ;; 15865 15866 sysv4) 15867 case $host_vendor in 15868 sni) 15869 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15870 hardcode_direct_F77=yes # is this really true??? 15871 ;; 15872 siemens) 15873 ## LD is ld it makes a PLAMLIB 15874 ## CC just makes a GrossModule. 15875 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15876 reload_cmds_F77='$CC -r -o $output$reload_objs' 15877 hardcode_direct_F77=no 15878 ;; 15879 motorola) 15880 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15881 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 15882 ;; 15883 esac 15884 runpath_var='LD_RUN_PATH' 15885 hardcode_shlibpath_var_F77=no 15886 ;; 15887 15888 sysv4.3*) 15889 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15890 hardcode_shlibpath_var_F77=no 15891 export_dynamic_flag_spec_F77='-Bexport' 15892 ;; 15893 15894 sysv4*MP*) 15895 if test -d /usr/nec; then 15896 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15897 hardcode_shlibpath_var_F77=no 15898 runpath_var=LD_RUN_PATH 15899 hardcode_runpath_var=yes 15900 ld_shlibs_F77=yes 15901 fi 15902 ;; 15903 15904 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 15905 no_undefined_flag_F77='${wl}-z,text' 15906 archive_cmds_need_lc_F77=no 15907 hardcode_shlibpath_var_F77=no 15908 runpath_var='LD_RUN_PATH' 15909 15910 if test "$GCC" = yes; then 15911 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15912 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15913 else 15914 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15915 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15916 fi 15917 ;; 15918 15919 sysv5* | sco3.2v5* | sco5v6*) 15920 # Note: We can NOT use -z defs as we might desire, because we do not 15921 # link with -lc, and that would cause any symbols used from libc to 15922 # always be unresolved, which means just about no library would 15923 # ever link correctly. If we're not using GNU ld we use -z text 15924 # though, which does catch some bad symbols but isn't as heavy-handed 15925 # as -z defs. 15926 no_undefined_flag_F77='${wl}-z,text' 15927 allow_undefined_flag_F77='${wl}-z,nodefs' 15928 archive_cmds_need_lc_F77=no 15929 hardcode_shlibpath_var_F77=no 15930 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 15931 hardcode_libdir_separator_F77=':' 15932 link_all_deplibs_F77=yes 15933 export_dynamic_flag_spec_F77='${wl}-Bexport' 15934 runpath_var='LD_RUN_PATH' 15935 15936 if test "$GCC" = yes; then 15937 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15938 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15939 else 15940 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15941 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15942 fi 15943 ;; 15944 15945 uts4*) 15946 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15947 hardcode_libdir_flag_spec_F77='-L$libdir' 15948 hardcode_shlibpath_var_F77=no 15949 ;; 15950 15951 *) 15952 ld_shlibs_F77=no 15953 ;; 15954 esac 15955 fi 15956 15957echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 15958echo "${ECHO_T}$ld_shlibs_F77" >&6 15959test "$ld_shlibs_F77" = no && can_build_shared=no 15960 15961# 15962# Do we need to explicitly link libc? 15963# 15964case "x$archive_cmds_need_lc_F77" in 15965x|xyes) 15966 # Assume -lc should be added 15967 archive_cmds_need_lc_F77=yes 15968 15969 if test "$enable_shared" = yes && test "$GCC" = yes; then 15970 case $archive_cmds_F77 in 15971 *'~'*) 15972 # FIXME: we may have to deal with multi-command sequences. 15973 ;; 15974 '$CC '*) 15975 # Test whether the compiler implicitly links with -lc since on some 15976 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15977 # to ld, don't add -lc before -lgcc. 15978 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15979echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 15980 $rm conftest* 15981 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15982 15983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15984 (eval $ac_compile) 2>&5 15985 ac_status=$? 15986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15987 (exit $ac_status); } 2>conftest.err; then 15988 soname=conftest 15989 lib=conftest 15990 libobjs=conftest.$ac_objext 15991 deplibs= 15992 wl=$lt_prog_compiler_wl_F77 15993 pic_flag=$lt_prog_compiler_pic_F77 15994 compiler_flags=-v 15995 linker_flags=-v 15996 verstring= 15997 output_objdir=. 15998 libname=conftest 15999 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 16000 allow_undefined_flag_F77= 16001 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 16002 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 16003 ac_status=$? 16004 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16005 (exit $ac_status); } 16006 then 16007 archive_cmds_need_lc_F77=no 16008 else 16009 archive_cmds_need_lc_F77=yes 16010 fi 16011 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 16012 else 16013 cat conftest.err 1>&5 16014 fi 16015 $rm conftest* 16016 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 16017echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 16018 ;; 16019 esac 16020 fi 16021 ;; 16022esac 16023 16024echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 16025echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 16026library_names_spec= 16027libname_spec='lib$name' 16028soname_spec= 16029shrext_cmds=".so" 16030postinstall_cmds= 16031postuninstall_cmds= 16032finish_cmds= 16033finish_eval= 16034shlibpath_var= 16035shlibpath_overrides_runpath=unknown 16036version_type=none 16037dynamic_linker="$host_os ld.so" 16038sys_lib_dlsearch_path_spec="/lib /usr/lib" 16039if test "$GCC" = yes; then 16040 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 16041 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 16042 # if the path contains ";" then we assume it to be the separator 16043 # otherwise default to the standard path separator (i.e. ":") - it is 16044 # assumed that no part of a normal pathname contains ";" but that should 16045 # okay in the real world where ";" in dirpaths is itself problematic. 16046 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16047 else 16048 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16049 fi 16050else 16051 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16052fi 16053need_lib_prefix=unknown 16054hardcode_into_libs=no 16055 16056# when you set need_version to no, make sure it does not cause -set_version 16057# flags to be left without arguments 16058need_version=unknown 16059 16060case $host_os in 16061aix3*) 16062 version_type=linux 16063 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 16064 shlibpath_var=LIBPATH 16065 16066 # AIX 3 has no versioning support, so we append a major version to the name. 16067 soname_spec='${libname}${release}${shared_ext}$major' 16068 ;; 16069 16070aix4* | aix5*) 16071 version_type=linux 16072 need_lib_prefix=no 16073 need_version=no 16074 hardcode_into_libs=yes 16075 if test "$host_cpu" = ia64; then 16076 # AIX 5 supports IA64 16077 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 16078 shlibpath_var=LD_LIBRARY_PATH 16079 else 16080 # With GCC up to 2.95.x, collect2 would create an import file 16081 # for dependence libraries. The import file would start with 16082 # the line `#! .'. This would cause the generated library to 16083 # depend on `.', always an invalid library. This was fixed in 16084 # development snapshots of GCC prior to 3.0. 16085 case $host_os in 16086 aix4 | aix4.[01] | aix4.[01].*) 16087 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16088 echo ' yes ' 16089 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 16090 : 16091 else 16092 can_build_shared=no 16093 fi 16094 ;; 16095 esac 16096 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 16097 # soname into executable. Probably we can add versioning support to 16098 # collect2, so additional links can be useful in future. 16099 if test "$aix_use_runtimelinking" = yes; then 16100 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16101 # instead of lib<name>.a to let people know that these are not 16102 # typical AIX shared libraries. 16103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16104 else 16105 # We preserve .a as extension for shared libraries through AIX4.2 16106 # and later when we are not doing run time linking. 16107 library_names_spec='${libname}${release}.a $libname.a' 16108 soname_spec='${libname}${release}${shared_ext}$major' 16109 fi 16110 shlibpath_var=LIBPATH 16111 fi 16112 ;; 16113 16114amigaos*) 16115 library_names_spec='$libname.ixlibrary $libname.a' 16116 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16117 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' 16118 ;; 16119 16120beos*) 16121 library_names_spec='${libname}${shared_ext}' 16122 dynamic_linker="$host_os ld.so" 16123 shlibpath_var=LIBRARY_PATH 16124 ;; 16125 16126bsdi[45]*) 16127 version_type=linux 16128 need_version=no 16129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16130 soname_spec='${libname}${release}${shared_ext}$major' 16131 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16132 shlibpath_var=LD_LIBRARY_PATH 16133 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16134 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16135 # the default ld.so.conf also contains /usr/contrib/lib and 16136 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16137 # libtool to hard-code these into programs 16138 ;; 16139 16140cygwin* | mingw* | pw32*) 16141 version_type=windows 16142 shrext_cmds=".dll" 16143 need_version=no 16144 need_lib_prefix=no 16145 16146 case $GCC,$host_os in 16147 yes,cygwin* | yes,mingw* | yes,pw32*) 16148 library_names_spec='$libname.dll.a' 16149 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16150 postinstall_cmds='base_file=`basename \${file}`~ 16151 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 16152 dldir=$destdir/`dirname \$dlpath`~ 16153 test -d \$dldir || mkdir -p \$dldir~ 16154 $install_prog $dir/$dlname \$dldir/$dlname~ 16155 chmod a+x \$dldir/$dlname' 16156 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16157 dlpath=$dir/\$dldll~ 16158 $rm \$dlpath' 16159 shlibpath_overrides_runpath=yes 16160 16161 case $host_os in 16162 cygwin*) 16163 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16164 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16165 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 16166 ;; 16167 mingw*) 16168 # MinGW DLLs use traditional 'lib' prefix 16169 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16170 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 16171 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 16172 # It is most probably a Windows format PATH printed by 16173 # mingw gcc, but we are running on Cygwin. Gcc prints its search 16174 # path with ; separators, and with drive letters. We can handle the 16175 # drive letters (cygwin fileutils understands them), so leave them, 16176 # especially as we might pass files found there to a mingw objdump, 16177 # which wouldn't understand a cygwinified path. Ahh. 16178 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16179 else 16180 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16181 fi 16182 ;; 16183 pw32*) 16184 # pw32 DLLs use 'pw' prefix rather than 'lib' 16185 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16186 ;; 16187 esac 16188 ;; 16189 16190 *) 16191 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 16192 ;; 16193 esac 16194 dynamic_linker='Win32 ld.exe' 16195 # FIXME: first we should search . and the directory the executable is in 16196 shlibpath_var=PATH 16197 ;; 16198 16199darwin* | rhapsody*) 16200 dynamic_linker="$host_os dyld" 16201 version_type=darwin 16202 need_lib_prefix=no 16203 need_version=no 16204 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 16205 soname_spec='${libname}${release}${major}$shared_ext' 16206 shlibpath_overrides_runpath=yes 16207 shlibpath_var=DYLD_LIBRARY_PATH 16208 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16209 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 16210 if test "$GCC" = yes; then 16211 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"` 16212 else 16213 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 16214 fi 16215 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16216 ;; 16217 16218dgux*) 16219 version_type=linux 16220 need_lib_prefix=no 16221 need_version=no 16222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 16223 soname_spec='${libname}${release}${shared_ext}$major' 16224 shlibpath_var=LD_LIBRARY_PATH 16225 ;; 16226 16227freebsd1*) 16228 dynamic_linker=no 16229 ;; 16230 16231kfreebsd*-gnu) 16232 version_type=linux 16233 need_lib_prefix=no 16234 need_version=no 16235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16236 soname_spec='${libname}${release}${shared_ext}$major' 16237 shlibpath_var=LD_LIBRARY_PATH 16238 shlibpath_overrides_runpath=no 16239 hardcode_into_libs=yes 16240 dynamic_linker='GNU ld.so' 16241 ;; 16242 16243freebsd* | dragonfly*) 16244 # DragonFly does not have aout. When/if they implement a new 16245 # versioning mechanism, adjust this. 16246 if test -x /usr/bin/objformat; then 16247 objformat=`/usr/bin/objformat` 16248 else 16249 case $host_os in 16250 freebsd[123]*) objformat=aout ;; 16251 *) objformat=elf ;; 16252 esac 16253 fi 16254 version_type=freebsd-$objformat 16255 case $version_type in 16256 freebsd-elf*) 16257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16258 need_version=no 16259 need_lib_prefix=no 16260 ;; 16261 freebsd-*) 16262 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 16263 need_version=yes 16264 ;; 16265 esac 16266 shlibpath_var=LD_LIBRARY_PATH 16267 case $host_os in 16268 freebsd2*) 16269 shlibpath_overrides_runpath=yes 16270 ;; 16271 freebsd3.[01]* | freebsdelf3.[01]*) 16272 shlibpath_overrides_runpath=yes 16273 hardcode_into_libs=yes 16274 ;; 16275 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16276 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16277 shlibpath_overrides_runpath=no 16278 hardcode_into_libs=yes 16279 ;; 16280 freebsd*) # from 4.6 on 16281 shlibpath_overrides_runpath=yes 16282 hardcode_into_libs=yes 16283 ;; 16284 esac 16285 ;; 16286 16287gnu*) 16288 version_type=linux 16289 need_lib_prefix=no 16290 need_version=no 16291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16292 soname_spec='${libname}${release}${shared_ext}$major' 16293 shlibpath_var=LD_LIBRARY_PATH 16294 hardcode_into_libs=yes 16295 ;; 16296 16297hpux9* | hpux10* | hpux11*) 16298 # Give a soname corresponding to the major version so that dld.sl refuses to 16299 # link against other versions. 16300 version_type=sunos 16301 need_lib_prefix=no 16302 need_version=no 16303 case $host_cpu in 16304 ia64*) 16305 shrext_cmds='.so' 16306 hardcode_into_libs=yes 16307 dynamic_linker="$host_os dld.so" 16308 shlibpath_var=LD_LIBRARY_PATH 16309 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16311 soname_spec='${libname}${release}${shared_ext}$major' 16312 if test "X$HPUX_IA64_MODE" = X32; then 16313 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16314 else 16315 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16316 fi 16317 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16318 ;; 16319 hppa*64*) 16320 shrext_cmds='.sl' 16321 hardcode_into_libs=yes 16322 dynamic_linker="$host_os dld.sl" 16323 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16324 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16326 soname_spec='${libname}${release}${shared_ext}$major' 16327 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16328 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16329 ;; 16330 *) 16331 shrext_cmds='.sl' 16332 dynamic_linker="$host_os dld.sl" 16333 shlibpath_var=SHLIB_PATH 16334 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16336 soname_spec='${libname}${release}${shared_ext}$major' 16337 ;; 16338 esac 16339 # HP-UX runs *really* slowly unless shared libraries are mode 555. 16340 postinstall_cmds='chmod 555 $lib' 16341 ;; 16342 16343interix3*) 16344 version_type=linux 16345 need_lib_prefix=no 16346 need_version=no 16347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16348 soname_spec='${libname}${release}${shared_ext}$major' 16349 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16350 shlibpath_var=LD_LIBRARY_PATH 16351 shlibpath_overrides_runpath=no 16352 hardcode_into_libs=yes 16353 ;; 16354 16355irix5* | irix6* | nonstopux*) 16356 case $host_os in 16357 nonstopux*) version_type=nonstopux ;; 16358 *) 16359 if test "$lt_cv_prog_gnu_ld" = yes; then 16360 version_type=linux 16361 else 16362 version_type=irix 16363 fi ;; 16364 esac 16365 need_lib_prefix=no 16366 need_version=no 16367 soname_spec='${libname}${release}${shared_ext}$major' 16368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 16369 case $host_os in 16370 irix5* | nonstopux*) 16371 libsuff= shlibsuff= 16372 ;; 16373 *) 16374 case $LD in # libtool.m4 will add one of these switches to LD 16375 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16376 libsuff= shlibsuff= libmagic=32-bit;; 16377 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16378 libsuff=32 shlibsuff=N32 libmagic=N32;; 16379 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16380 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16381 *) libsuff= shlibsuff= libmagic=never-match;; 16382 esac 16383 ;; 16384 esac 16385 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16386 shlibpath_overrides_runpath=no 16387 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16388 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16389 hardcode_into_libs=yes 16390 ;; 16391 16392# No shared lib support for Linux oldld, aout, or coff. 16393linux*oldld* | linux*aout* | linux*coff*) 16394 dynamic_linker=no 16395 ;; 16396 16397# This must be Linux ELF. 16398linux*) 16399 version_type=linux 16400 need_lib_prefix=no 16401 need_version=no 16402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16403 soname_spec='${libname}${release}${shared_ext}$major' 16404 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16405 shlibpath_var=LD_LIBRARY_PATH 16406 shlibpath_overrides_runpath=no 16407 # This implies no fast_install, which is unacceptable. 16408 # Some rework will be needed to allow for fast_install 16409 # before this can be enabled. 16410 hardcode_into_libs=yes 16411 16412 # Append ld.so.conf contents to the search path 16413 if test -f /etc/ld.so.conf; then 16414 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' ' '` 16415 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16416 fi 16417 16418 # We used to test for /lib/ld.so.1 and disable shared libraries on 16419 # powerpc, because MkLinux only supported shared libraries with the 16420 # GNU dynamic linker. Since this was broken with cross compilers, 16421 # most powerpc-linux boxes support dynamic linking these days and 16422 # people can always --disable-shared, the test was removed, and we 16423 # assume the GNU/Linux dynamic linker is in use. 16424 dynamic_linker='GNU/Linux ld.so' 16425 ;; 16426 16427knetbsd*-gnu) 16428 version_type=linux 16429 need_lib_prefix=no 16430 need_version=no 16431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16432 soname_spec='${libname}${release}${shared_ext}$major' 16433 shlibpath_var=LD_LIBRARY_PATH 16434 shlibpath_overrides_runpath=no 16435 hardcode_into_libs=yes 16436 dynamic_linker='GNU ld.so' 16437 ;; 16438 16439netbsd*) 16440 version_type=sunos 16441 need_lib_prefix=no 16442 need_version=no 16443 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16445 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16446 dynamic_linker='NetBSD (a.out) ld.so' 16447 else 16448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16449 soname_spec='${libname}${release}${shared_ext}$major' 16450 dynamic_linker='NetBSD ld.elf_so' 16451 fi 16452 shlibpath_var=LD_LIBRARY_PATH 16453 shlibpath_overrides_runpath=yes 16454 hardcode_into_libs=yes 16455 ;; 16456 16457newsos6) 16458 version_type=linux 16459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16460 shlibpath_var=LD_LIBRARY_PATH 16461 shlibpath_overrides_runpath=yes 16462 ;; 16463 16464nto-qnx*) 16465 version_type=linux 16466 need_lib_prefix=no 16467 need_version=no 16468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16469 soname_spec='${libname}${release}${shared_ext}$major' 16470 shlibpath_var=LD_LIBRARY_PATH 16471 shlibpath_overrides_runpath=yes 16472 ;; 16473 16474openbsd*) 16475 version_type=sunos 16476 sys_lib_dlsearch_path_spec="/usr/lib" 16477 need_lib_prefix=no 16478 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 16479 case $host_os in 16480 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 16481 *) need_version=no ;; 16482 esac 16483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16484 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16485 shlibpath_var=LD_LIBRARY_PATH 16486 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16487 case $host_os in 16488 openbsd2.[89] | openbsd2.[89].*) 16489 shlibpath_overrides_runpath=no 16490 ;; 16491 *) 16492 shlibpath_overrides_runpath=yes 16493 ;; 16494 esac 16495 else 16496 shlibpath_overrides_runpath=yes 16497 fi 16498 ;; 16499 16500os2*) 16501 libname_spec='$name' 16502 shrext_cmds=".dll" 16503 need_lib_prefix=no 16504 library_names_spec='$libname${shared_ext} $libname.a' 16505 dynamic_linker='OS/2 ld.exe' 16506 shlibpath_var=LIBPATH 16507 ;; 16508 16509osf3* | osf4* | osf5*) 16510 version_type=osf 16511 need_lib_prefix=no 16512 need_version=no 16513 soname_spec='${libname}${release}${shared_ext}$major' 16514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16515 shlibpath_var=LD_LIBRARY_PATH 16516 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16517 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16518 ;; 16519 16520solaris*) 16521 version_type=linux 16522 need_lib_prefix=no 16523 need_version=no 16524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16525 soname_spec='${libname}${release}${shared_ext}$major' 16526 shlibpath_var=LD_LIBRARY_PATH 16527 shlibpath_overrides_runpath=yes 16528 hardcode_into_libs=yes 16529 # ldd complains unless libraries are executable 16530 postinstall_cmds='chmod +x $lib' 16531 ;; 16532 16533sunos4*) 16534 version_type=sunos 16535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16536 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16537 shlibpath_var=LD_LIBRARY_PATH 16538 shlibpath_overrides_runpath=yes 16539 if test "$with_gnu_ld" = yes; then 16540 need_lib_prefix=no 16541 fi 16542 need_version=yes 16543 ;; 16544 16545sysv4 | sysv4.3*) 16546 version_type=linux 16547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16548 soname_spec='${libname}${release}${shared_ext}$major' 16549 shlibpath_var=LD_LIBRARY_PATH 16550 case $host_vendor in 16551 sni) 16552 shlibpath_overrides_runpath=no 16553 need_lib_prefix=no 16554 export_dynamic_flag_spec='${wl}-Blargedynsym' 16555 runpath_var=LD_RUN_PATH 16556 ;; 16557 siemens) 16558 need_lib_prefix=no 16559 ;; 16560 motorola) 16561 need_lib_prefix=no 16562 need_version=no 16563 shlibpath_overrides_runpath=no 16564 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16565 ;; 16566 esac 16567 ;; 16568 16569sysv4*MP*) 16570 if test -d /usr/nec ;then 16571 version_type=linux 16572 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16573 soname_spec='$libname${shared_ext}.$major' 16574 shlibpath_var=LD_LIBRARY_PATH 16575 fi 16576 ;; 16577 16578sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16579 version_type=freebsd-elf 16580 need_lib_prefix=no 16581 need_version=no 16582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16583 soname_spec='${libname}${release}${shared_ext}$major' 16584 shlibpath_var=LD_LIBRARY_PATH 16585 hardcode_into_libs=yes 16586 if test "$with_gnu_ld" = yes; then 16587 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16588 shlibpath_overrides_runpath=no 16589 else 16590 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16591 shlibpath_overrides_runpath=yes 16592 case $host_os in 16593 sco3.2v5*) 16594 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16595 ;; 16596 esac 16597 fi 16598 sys_lib_dlsearch_path_spec='/usr/lib' 16599 ;; 16600 16601uts4*) 16602 version_type=linux 16603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16604 soname_spec='${libname}${release}${shared_ext}$major' 16605 shlibpath_var=LD_LIBRARY_PATH 16606 ;; 16607 16608*) 16609 dynamic_linker=no 16610 ;; 16611esac 16612echo "$as_me:$LINENO: result: $dynamic_linker" >&5 16613echo "${ECHO_T}$dynamic_linker" >&6 16614test "$dynamic_linker" = no && can_build_shared=no 16615 16616variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16617if test "$GCC" = yes; then 16618 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16619fi 16620 16621echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 16622echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 16623hardcode_action_F77= 16624if test -n "$hardcode_libdir_flag_spec_F77" || \ 16625 test -n "$runpath_var_F77" || \ 16626 test "X$hardcode_automatic_F77" = "Xyes" ; then 16627 16628 # We can hardcode non-existant directories. 16629 if test "$hardcode_direct_F77" != no && 16630 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16631 # have to relink, otherwise we might link with an installed library 16632 # when we should be linking with a yet-to-be-installed one 16633 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 16634 test "$hardcode_minus_L_F77" != no; then 16635 # Linking always hardcodes the temporary library directory. 16636 hardcode_action_F77=relink 16637 else 16638 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16639 hardcode_action_F77=immediate 16640 fi 16641else 16642 # We cannot hardcode anything, or else we can only hardcode existing 16643 # directories. 16644 hardcode_action_F77=unsupported 16645fi 16646echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 16647echo "${ECHO_T}$hardcode_action_F77" >&6 16648 16649if test "$hardcode_action_F77" = relink; then 16650 # Fast installation is not supported 16651 enable_fast_install=no 16652elif test "$shlibpath_overrides_runpath" = yes || 16653 test "$enable_shared" = no; then 16654 # Fast installation is not necessary 16655 enable_fast_install=needless 16656fi 16657 16658 16659# The else clause should only fire when bootstrapping the 16660# libtool distribution, otherwise you forgot to ship ltmain.sh 16661# with your package, and you will get complaints that there are 16662# no rules to generate ltmain.sh. 16663if test -f "$ltmain"; then 16664 # See if we are running on zsh, and set the options which allow our commands through 16665 # without removal of \ escapes. 16666 if test -n "${ZSH_VERSION+set}" ; then 16667 setopt NO_GLOB_SUBST 16668 fi 16669 # Now quote all the things that may contain metacharacters while being 16670 # careful not to overquote the AC_SUBSTed values. We take copies of the 16671 # variables and quote the copies for generation of the libtool script. 16672 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 16673 SED SHELL STRIP \ 16674 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 16675 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 16676 deplibs_check_method reload_flag reload_cmds need_locks \ 16677 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 16678 lt_cv_sys_global_symbol_to_c_name_address \ 16679 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 16680 old_postinstall_cmds old_postuninstall_cmds \ 16681 compiler_F77 \ 16682 CC_F77 \ 16683 LD_F77 \ 16684 lt_prog_compiler_wl_F77 \ 16685 lt_prog_compiler_pic_F77 \ 16686 lt_prog_compiler_static_F77 \ 16687 lt_prog_compiler_no_builtin_flag_F77 \ 16688 export_dynamic_flag_spec_F77 \ 16689 thread_safe_flag_spec_F77 \ 16690 whole_archive_flag_spec_F77 \ 16691 enable_shared_with_static_runtimes_F77 \ 16692 old_archive_cmds_F77 \ 16693 old_archive_from_new_cmds_F77 \ 16694 predep_objects_F77 \ 16695 postdep_objects_F77 \ 16696 predeps_F77 \ 16697 postdeps_F77 \ 16698 compiler_lib_search_path_F77 \ 16699 archive_cmds_F77 \ 16700 archive_expsym_cmds_F77 \ 16701 postinstall_cmds_F77 \ 16702 postuninstall_cmds_F77 \ 16703 old_archive_from_expsyms_cmds_F77 \ 16704 allow_undefined_flag_F77 \ 16705 no_undefined_flag_F77 \ 16706 export_symbols_cmds_F77 \ 16707 hardcode_libdir_flag_spec_F77 \ 16708 hardcode_libdir_flag_spec_ld_F77 \ 16709 hardcode_libdir_separator_F77 \ 16710 hardcode_automatic_F77 \ 16711 module_cmds_F77 \ 16712 module_expsym_cmds_F77 \ 16713 lt_cv_prog_compiler_c_o_F77 \ 16714 exclude_expsyms_F77 \ 16715 include_expsyms_F77; do 16716 16717 case $var in 16718 old_archive_cmds_F77 | \ 16719 old_archive_from_new_cmds_F77 | \ 16720 archive_cmds_F77 | \ 16721 archive_expsym_cmds_F77 | \ 16722 module_cmds_F77 | \ 16723 module_expsym_cmds_F77 | \ 16724 old_archive_from_expsyms_cmds_F77 | \ 16725 export_symbols_cmds_F77 | \ 16726 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 16727 postinstall_cmds | postuninstall_cmds | \ 16728 old_postinstall_cmds | old_postuninstall_cmds | \ 16729 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 16730 # Double-quote double-evaled strings. 16731 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 16732 ;; 16733 *) 16734 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 16735 ;; 16736 esac 16737 done 16738 16739 case $lt_echo in 16740 *'\$0 --fallback-echo"') 16741 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 16742 ;; 16743 esac 16744 16745cfgfile="$ofile" 16746 16747 cat <<__EOF__ >> "$cfgfile" 16748# ### BEGIN LIBTOOL TAG CONFIG: $tagname 16749 16750# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16751 16752# Shell to use when invoking shell scripts. 16753SHELL=$lt_SHELL 16754 16755# Whether or not to build shared libraries. 16756build_libtool_libs=$enable_shared 16757 16758# Whether or not to build static libraries. 16759build_old_libs=$enable_static 16760 16761# Whether or not to add -lc for building shared libraries. 16762build_libtool_need_lc=$archive_cmds_need_lc_F77 16763 16764# Whether or not to disallow shared libs when runtime libs are static 16765allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 16766 16767# Whether or not to optimize for fast installation. 16768fast_install=$enable_fast_install 16769 16770# The host system. 16771host_alias=$host_alias 16772host=$host 16773host_os=$host_os 16774 16775# The build system. 16776build_alias=$build_alias 16777build=$build 16778build_os=$build_os 16779 16780# An echo program that does not interpret backslashes. 16781echo=$lt_echo 16782 16783# The archiver. 16784AR=$lt_AR 16785AR_FLAGS=$lt_AR_FLAGS 16786 16787# A C compiler. 16788LTCC=$lt_LTCC 16789 16790# LTCC compiler flags. 16791LTCFLAGS=$lt_LTCFLAGS 16792 16793# A language-specific compiler. 16794CC=$lt_compiler_F77 16795 16796# Is the compiler the GNU C compiler? 16797with_gcc=$GCC_F77 16798 16799# An ERE matcher. 16800EGREP=$lt_EGREP 16801 16802# The linker used to build libraries. 16803LD=$lt_LD_F77 16804 16805# Whether we need hard or soft links. 16806LN_S=$lt_LN_S 16807 16808# A BSD-compatible nm program. 16809NM=$lt_NM 16810 16811# A symbol stripping program 16812STRIP=$lt_STRIP 16813 16814# Used to examine libraries when file_magic_cmd begins "file" 16815MAGIC_CMD=$MAGIC_CMD 16816 16817# Used on cygwin: DLL creation program. 16818DLLTOOL="$DLLTOOL" 16819 16820# Used on cygwin: object dumper. 16821OBJDUMP="$OBJDUMP" 16822 16823# Used on cygwin: assembler. 16824AS="$AS" 16825 16826# The name of the directory that contains temporary libtool files. 16827objdir=$objdir 16828 16829# How to create reloadable object files. 16830reload_flag=$lt_reload_flag 16831reload_cmds=$lt_reload_cmds 16832 16833# How to pass a linker flag through the compiler. 16834wl=$lt_lt_prog_compiler_wl_F77 16835 16836# Object file suffix (normally "o"). 16837objext="$ac_objext" 16838 16839# Old archive suffix (normally "a"). 16840libext="$libext" 16841 16842# Shared library suffix (normally ".so"). 16843shrext_cmds='$shrext_cmds' 16844 16845# Executable file suffix (normally ""). 16846exeext="$exeext" 16847 16848# Additional compiler flags for building library objects. 16849pic_flag=$lt_lt_prog_compiler_pic_F77 16850pic_mode=$pic_mode 16851 16852# What is the maximum length of a command? 16853max_cmd_len=$lt_cv_sys_max_cmd_len 16854 16855# Does compiler simultaneously support -c and -o options? 16856compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 16857 16858# Must we lock files when doing compilation? 16859need_locks=$lt_need_locks 16860 16861# Do we need the lib prefix for modules? 16862need_lib_prefix=$need_lib_prefix 16863 16864# Do we need a version for libraries? 16865need_version=$need_version 16866 16867# Whether dlopen is supported. 16868dlopen_support=$enable_dlopen 16869 16870# Whether dlopen of programs is supported. 16871dlopen_self=$enable_dlopen_self 16872 16873# Whether dlopen of statically linked programs is supported. 16874dlopen_self_static=$enable_dlopen_self_static 16875 16876# Compiler flag to prevent dynamic linking. 16877link_static_flag=$lt_lt_prog_compiler_static_F77 16878 16879# Compiler flag to turn off builtin functions. 16880no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 16881 16882# Compiler flag to allow reflexive dlopens. 16883export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 16884 16885# Compiler flag to generate shared objects directly from archives. 16886whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 16887 16888# Compiler flag to generate thread-safe objects. 16889thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 16890 16891# Library versioning type. 16892version_type=$version_type 16893 16894# Format of library name prefix. 16895libname_spec=$lt_libname_spec 16896 16897# List of archive names. First name is the real one, the rest are links. 16898# The last name is the one that the linker finds with -lNAME. 16899library_names_spec=$lt_library_names_spec 16900 16901# The coded name of the library, if different from the real name. 16902soname_spec=$lt_soname_spec 16903 16904# Commands used to build and install an old-style archive. 16905RANLIB=$lt_RANLIB 16906old_archive_cmds=$lt_old_archive_cmds_F77 16907old_postinstall_cmds=$lt_old_postinstall_cmds 16908old_postuninstall_cmds=$lt_old_postuninstall_cmds 16909 16910# Create an old-style archive from a shared archive. 16911old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 16912 16913# Create a temporary old-style archive to link instead of a shared archive. 16914old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 16915 16916# Commands used to build and install a shared archive. 16917archive_cmds=$lt_archive_cmds_F77 16918archive_expsym_cmds=$lt_archive_expsym_cmds_F77 16919postinstall_cmds=$lt_postinstall_cmds 16920postuninstall_cmds=$lt_postuninstall_cmds 16921 16922# Commands used to build a loadable module (assumed same as above if empty) 16923module_cmds=$lt_module_cmds_F77 16924module_expsym_cmds=$lt_module_expsym_cmds_F77 16925 16926# Commands to strip libraries. 16927old_striplib=$lt_old_striplib 16928striplib=$lt_striplib 16929 16930# Dependencies to place before the objects being linked to create a 16931# shared library. 16932predep_objects=$lt_predep_objects_F77 16933 16934# Dependencies to place after the objects being linked to create a 16935# shared library. 16936postdep_objects=$lt_postdep_objects_F77 16937 16938# Dependencies to place before the objects being linked to create a 16939# shared library. 16940predeps=$lt_predeps_F77 16941 16942# Dependencies to place after the objects being linked to create a 16943# shared library. 16944postdeps=$lt_postdeps_F77 16945 16946# The library search path used internally by the compiler when linking 16947# a shared library. 16948compiler_lib_search_path=$lt_compiler_lib_search_path_F77 16949 16950# Method to check whether dependent libraries are shared objects. 16951deplibs_check_method=$lt_deplibs_check_method 16952 16953# Command to use when deplibs_check_method == file_magic. 16954file_magic_cmd=$lt_file_magic_cmd 16955 16956# Flag that allows shared libraries with undefined symbols to be built. 16957allow_undefined_flag=$lt_allow_undefined_flag_F77 16958 16959# Flag that forces no undefined symbols. 16960no_undefined_flag=$lt_no_undefined_flag_F77 16961 16962# Commands used to finish a libtool library installation in a directory. 16963finish_cmds=$lt_finish_cmds 16964 16965# Same as above, but a single script fragment to be evaled but not shown. 16966finish_eval=$lt_finish_eval 16967 16968# Take the output of nm and produce a listing of raw symbols and C names. 16969global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16970 16971# Transform the output of nm in a proper C declaration 16972global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16973 16974# Transform the output of nm in a C name address pair 16975global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16976 16977# This is the shared library runtime path variable. 16978runpath_var=$runpath_var 16979 16980# This is the shared library path variable. 16981shlibpath_var=$shlibpath_var 16982 16983# Is shlibpath searched before the hard-coded library search path? 16984shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16985 16986# How to hardcode a shared library path into an executable. 16987hardcode_action=$hardcode_action_F77 16988 16989# Whether we should hardcode library paths into libraries. 16990hardcode_into_libs=$hardcode_into_libs 16991 16992# Flag to hardcode \$libdir into a binary during linking. 16993# This must work even if \$libdir does not exist. 16994hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 16995 16996# If ld is used when linking, flag to hardcode \$libdir into 16997# a binary during linking. This must work even if \$libdir does 16998# not exist. 16999hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 17000 17001# Whether we need a single -rpath flag with a separated argument. 17002hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 17003 17004# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 17005# resulting binary. 17006hardcode_direct=$hardcode_direct_F77 17007 17008# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 17009# resulting binary. 17010hardcode_minus_L=$hardcode_minus_L_F77 17011 17012# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 17013# the resulting binary. 17014hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 17015 17016# Set to yes if building a shared library automatically hardcodes DIR into the library 17017# and all subsequent libraries and executables linked against it. 17018hardcode_automatic=$hardcode_automatic_F77 17019 17020# Variables whose values should be saved in libtool wrapper scripts and 17021# restored at relink time. 17022variables_saved_for_relink="$variables_saved_for_relink" 17023 17024# Whether libtool must link a program against all its dependency libraries. 17025link_all_deplibs=$link_all_deplibs_F77 17026 17027# Compile-time system search path for libraries 17028sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 17029 17030# Run-time system search path for libraries 17031sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 17032 17033# Fix the shell variable \$srcfile for the compiler. 17034fix_srcfile_path="$fix_srcfile_path_F77" 17035 17036# Set to yes if exported symbols are required. 17037always_export_symbols=$always_export_symbols_F77 17038 17039# The commands to list exported symbols. 17040export_symbols_cmds=$lt_export_symbols_cmds_F77 17041 17042# The commands to extract the exported symbol list from a shared archive. 17043extract_expsyms_cmds=$lt_extract_expsyms_cmds 17044 17045# Symbols that should not be listed in the preloaded symbols. 17046exclude_expsyms=$lt_exclude_expsyms_F77 17047 17048# Symbols that must always be exported. 17049include_expsyms=$lt_include_expsyms_F77 17050 17051# ### END LIBTOOL TAG CONFIG: $tagname 17052 17053__EOF__ 17054 17055 17056else 17057 # If there is no Makefile yet, we rely on a make rule to execute 17058 # `config.status --recheck' to rerun these tests and create the 17059 # libtool script then. 17060 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 17061 if test -f "$ltmain_in"; then 17062 test -f Makefile && make "$ltmain" 17063 fi 17064fi 17065 17066 17067ac_ext=c 17068ac_cpp='$CPP $CPPFLAGS' 17069ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17070ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17071ac_compiler_gnu=$ac_cv_c_compiler_gnu 17072 17073CC="$lt_save_CC" 17074 17075 else 17076 tagname="" 17077 fi 17078 ;; 17079 17080 GCJ) 17081 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 17082 17083 17084 17085# Source file extension for Java test sources. 17086ac_ext=java 17087 17088# Object file extension for compiled Java test sources. 17089objext=o 17090objext_GCJ=$objext 17091 17092# Code to be used in simple compile tests 17093lt_simple_compile_test_code="class foo {}\n" 17094 17095# Code to be used in simple link tests 17096lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 17097 17098# ltmain only uses $CC for tagged configurations so make sure $CC is set. 17099 17100# If no C compiler was specified, use CC. 17101LTCC=${LTCC-"$CC"} 17102 17103# If no C compiler flags were specified, use CFLAGS. 17104LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 17105 17106# Allow CC to be a program name with arguments. 17107compiler=$CC 17108 17109 17110# save warnings/boilerplate of simple test code 17111ac_outfile=conftest.$ac_objext 17112printf "$lt_simple_compile_test_code" >conftest.$ac_ext 17113eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 17114_lt_compiler_boilerplate=`cat conftest.err` 17115$rm conftest* 17116 17117ac_outfile=conftest.$ac_objext 17118printf "$lt_simple_link_test_code" >conftest.$ac_ext 17119eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 17120_lt_linker_boilerplate=`cat conftest.err` 17121$rm conftest* 17122 17123 17124# Allow CC to be a program name with arguments. 17125lt_save_CC="$CC" 17126CC=${GCJ-"gcj"} 17127compiler=$CC 17128compiler_GCJ=$CC 17129for cc_temp in $compiler""; do 17130 case $cc_temp in 17131 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17132 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17133 \-*) ;; 17134 *) break;; 17135 esac 17136done 17137cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17138 17139 17140# GCJ did not exist at the time GCC didn't implicitly link libc in. 17141archive_cmds_need_lc_GCJ=no 17142 17143old_archive_cmds_GCJ=$old_archive_cmds 17144 17145## CAVEAT EMPTOR: 17146## There is no encapsulation within the following macros, do not change 17147## the running order or otherwise move them around unless you know exactly 17148## what you are doing... 17149 17150lt_prog_compiler_no_builtin_flag_GCJ= 17151 17152if test "$GCC" = yes; then 17153 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 17154 17155 17156echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 17157echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 17158if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 17159 echo $ECHO_N "(cached) $ECHO_C" >&6 17160else 17161 lt_cv_prog_compiler_rtti_exceptions=no 17162 ac_outfile=conftest.$ac_objext 17163 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17164 lt_compiler_flag="-fno-rtti -fno-exceptions" 17165 # Insert the option either (1) after the last *FLAGS variable, or 17166 # (2) before a word containing "conftest.", or (3) at the end. 17167 # Note that $ac_compile itself does not contain backslashes and begins 17168 # with a dollar sign (not a hyphen), so the echo should work correctly. 17169 # The option is referenced via a variable to avoid confusing sed. 17170 lt_compile=`echo "$ac_compile" | $SED \ 17171 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17172 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17173 -e 's:$: $lt_compiler_flag:'` 17174 (eval echo "\"\$as_me:17174: $lt_compile\"" >&5) 17175 (eval "$lt_compile" 2>conftest.err) 17176 ac_status=$? 17177 cat conftest.err >&5 17178 echo "$as_me:17178: \$? = $ac_status" >&5 17179 if (exit $ac_status) && test -s "$ac_outfile"; then 17180 # The compiler can only warn and ignore the option if not recognized 17181 # So say no if there are warnings other than the usual output. 17182 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 17183 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17184 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17185 lt_cv_prog_compiler_rtti_exceptions=yes 17186 fi 17187 fi 17188 $rm conftest* 17189 17190fi 17191echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 17192echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 17193 17194if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 17195 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 17196else 17197 : 17198fi 17199 17200fi 17201 17202lt_prog_compiler_wl_GCJ= 17203lt_prog_compiler_pic_GCJ= 17204lt_prog_compiler_static_GCJ= 17205 17206echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 17207echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 17208 17209 if test "$GCC" = yes; then 17210 lt_prog_compiler_wl_GCJ='-Wl,' 17211 lt_prog_compiler_static_GCJ='-static' 17212 17213 case $host_os in 17214 aix*) 17215 # All AIX code is PIC. 17216 if test "$host_cpu" = ia64; then 17217 # AIX 5 now supports IA64 processor 17218 lt_prog_compiler_static_GCJ='-Bstatic' 17219 fi 17220 ;; 17221 17222 amigaos*) 17223 # FIXME: we need at least 68020 code to build shared libraries, but 17224 # adding the `-m68020' flag to GCC prevents building anything better, 17225 # like `-m68040'. 17226 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 17227 ;; 17228 17229 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 17230 # PIC is the default for these OSes. 17231 ;; 17232 17233 mingw* | pw32* | os2*) 17234 # This hack is so that the source file can tell whether it is being 17235 # built for inclusion in a dll (and should export symbols for example). 17236 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 17237 ;; 17238 17239 darwin* | rhapsody*) 17240 # PIC is the default on this platform 17241 # Common symbols not allowed in MH_DYLIB files 17242 lt_prog_compiler_pic_GCJ='-fno-common' 17243 ;; 17244 17245 interix3*) 17246 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 17247 # Instead, we relocate shared libraries at runtime. 17248 ;; 17249 17250 msdosdjgpp*) 17251 # Just because we use GCC doesn't mean we suddenly get shared libraries 17252 # on systems that don't support them. 17253 lt_prog_compiler_can_build_shared_GCJ=no 17254 enable_shared=no 17255 ;; 17256 17257 sysv4*MP*) 17258 if test -d /usr/nec; then 17259 lt_prog_compiler_pic_GCJ=-Kconform_pic 17260 fi 17261 ;; 17262 17263 hpux*) 17264 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 17265 # not for PA HP-UX. 17266 case $host_cpu in 17267 hppa*64*|ia64*) 17268 # +Z the default 17269 ;; 17270 *) 17271 lt_prog_compiler_pic_GCJ='-fPIC' 17272 ;; 17273 esac 17274 ;; 17275 17276 *) 17277 lt_prog_compiler_pic_GCJ='-fPIC' 17278 ;; 17279 esac 17280 else 17281 # PORTME Check for flag to pass linker flags through the system compiler. 17282 case $host_os in 17283 aix*) 17284 lt_prog_compiler_wl_GCJ='-Wl,' 17285 if test "$host_cpu" = ia64; then 17286 # AIX 5 now supports IA64 processor 17287 lt_prog_compiler_static_GCJ='-Bstatic' 17288 else 17289 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 17290 fi 17291 ;; 17292 darwin*) 17293 # PIC is the default on this platform 17294 # Common symbols not allowed in MH_DYLIB files 17295 case $cc_basename in 17296 xlc*) 17297 lt_prog_compiler_pic_GCJ='-qnocommon' 17298 lt_prog_compiler_wl_GCJ='-Wl,' 17299 ;; 17300 esac 17301 ;; 17302 17303 mingw* | pw32* | os2*) 17304 # This hack is so that the source file can tell whether it is being 17305 # built for inclusion in a dll (and should export symbols for example). 17306 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 17307 ;; 17308 17309 hpux9* | hpux10* | hpux11*) 17310 lt_prog_compiler_wl_GCJ='-Wl,' 17311 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 17312 # not for PA HP-UX. 17313 case $host_cpu in 17314 hppa*64*|ia64*) 17315 # +Z the default 17316 ;; 17317 *) 17318 lt_prog_compiler_pic_GCJ='+Z' 17319 ;; 17320 esac 17321 # Is there a better lt_prog_compiler_static that works with the bundled CC? 17322 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 17323 ;; 17324 17325 irix5* | irix6* | nonstopux*) 17326 lt_prog_compiler_wl_GCJ='-Wl,' 17327 # PIC (with -KPIC) is the default. 17328 lt_prog_compiler_static_GCJ='-non_shared' 17329 ;; 17330 17331 newsos6) 17332 lt_prog_compiler_pic_GCJ='-KPIC' 17333 lt_prog_compiler_static_GCJ='-Bstatic' 17334 ;; 17335 17336 linux*) 17337 case $cc_basename in 17338 icc* | ecc*) 17339 lt_prog_compiler_wl_GCJ='-Wl,' 17340 lt_prog_compiler_pic_GCJ='-KPIC' 17341 lt_prog_compiler_static_GCJ='-static' 17342 ;; 17343 pgcc* | pgf77* | pgf90* | pgf95*) 17344 # Portland Group compilers (*not* the Pentium gcc compiler, 17345 # which looks to be a dead project) 17346 lt_prog_compiler_wl_GCJ='-Wl,' 17347 lt_prog_compiler_pic_GCJ='-fpic' 17348 lt_prog_compiler_static_GCJ='-Bstatic' 17349 ;; 17350 ccc*) 17351 lt_prog_compiler_wl_GCJ='-Wl,' 17352 # All Alpha code is PIC. 17353 lt_prog_compiler_static_GCJ='-non_shared' 17354 ;; 17355 esac 17356 ;; 17357 17358 osf3* | osf4* | osf5*) 17359 lt_prog_compiler_wl_GCJ='-Wl,' 17360 # All OSF/1 code is PIC. 17361 lt_prog_compiler_static_GCJ='-non_shared' 17362 ;; 17363 17364 solaris*) 17365 lt_prog_compiler_pic_GCJ='-KPIC' 17366 lt_prog_compiler_static_GCJ='-Bstatic' 17367 case $cc_basename in 17368 f77* | f90* | f95*) 17369 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 17370 *) 17371 lt_prog_compiler_wl_GCJ='-Wl,';; 17372 esac 17373 ;; 17374 17375 sunos4*) 17376 lt_prog_compiler_wl_GCJ='-Qoption ld ' 17377 lt_prog_compiler_pic_GCJ='-PIC' 17378 lt_prog_compiler_static_GCJ='-Bstatic' 17379 ;; 17380 17381 sysv4 | sysv4.2uw2* | sysv4.3*) 17382 lt_prog_compiler_wl_GCJ='-Wl,' 17383 lt_prog_compiler_pic_GCJ='-KPIC' 17384 lt_prog_compiler_static_GCJ='-Bstatic' 17385 ;; 17386 17387 sysv4*MP*) 17388 if test -d /usr/nec ;then 17389 lt_prog_compiler_pic_GCJ='-Kconform_pic' 17390 lt_prog_compiler_static_GCJ='-Bstatic' 17391 fi 17392 ;; 17393 17394 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 17395 lt_prog_compiler_wl_GCJ='-Wl,' 17396 lt_prog_compiler_pic_GCJ='-KPIC' 17397 lt_prog_compiler_static_GCJ='-Bstatic' 17398 ;; 17399 17400 unicos*) 17401 lt_prog_compiler_wl_GCJ='-Wl,' 17402 lt_prog_compiler_can_build_shared_GCJ=no 17403 ;; 17404 17405 uts4*) 17406 lt_prog_compiler_pic_GCJ='-pic' 17407 lt_prog_compiler_static_GCJ='-Bstatic' 17408 ;; 17409 17410 *) 17411 lt_prog_compiler_can_build_shared_GCJ=no 17412 ;; 17413 esac 17414 fi 17415 17416echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 17417echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 17418 17419# 17420# Check to make sure the PIC flag actually works. 17421# 17422if test -n "$lt_prog_compiler_pic_GCJ"; then 17423 17424echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 17425echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 17426if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 17427 echo $ECHO_N "(cached) $ECHO_C" >&6 17428else 17429 lt_prog_compiler_pic_works_GCJ=no 17430 ac_outfile=conftest.$ac_objext 17431 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17432 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 17433 # Insert the option either (1) after the last *FLAGS variable, or 17434 # (2) before a word containing "conftest.", or (3) at the end. 17435 # Note that $ac_compile itself does not contain backslashes and begins 17436 # with a dollar sign (not a hyphen), so the echo should work correctly. 17437 # The option is referenced via a variable to avoid confusing sed. 17438 lt_compile=`echo "$ac_compile" | $SED \ 17439 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17440 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17441 -e 's:$: $lt_compiler_flag:'` 17442 (eval echo "\"\$as_me:17442: $lt_compile\"" >&5) 17443 (eval "$lt_compile" 2>conftest.err) 17444 ac_status=$? 17445 cat conftest.err >&5 17446 echo "$as_me:17446: \$? = $ac_status" >&5 17447 if (exit $ac_status) && test -s "$ac_outfile"; then 17448 # The compiler can only warn and ignore the option if not recognized 17449 # So say no if there are warnings other than the usual output. 17450 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 17451 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17452 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17453 lt_prog_compiler_pic_works_GCJ=yes 17454 fi 17455 fi 17456 $rm conftest* 17457 17458fi 17459echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 17460echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 17461 17462if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 17463 case $lt_prog_compiler_pic_GCJ in 17464 "" | " "*) ;; 17465 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 17466 esac 17467else 17468 lt_prog_compiler_pic_GCJ= 17469 lt_prog_compiler_can_build_shared_GCJ=no 17470fi 17471 17472fi 17473case $host_os in 17474 # For platforms which do not support PIC, -DPIC is meaningless: 17475 *djgpp*) 17476 lt_prog_compiler_pic_GCJ= 17477 ;; 17478 *) 17479 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 17480 ;; 17481esac 17482 17483# 17484# Check to make sure the static flag actually works. 17485# 17486wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 17487echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 17488echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 17489if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 17490 echo $ECHO_N "(cached) $ECHO_C" >&6 17491else 17492 lt_prog_compiler_static_works_GCJ=no 17493 save_LDFLAGS="$LDFLAGS" 17494 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 17495 printf "$lt_simple_link_test_code" > conftest.$ac_ext 17496 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17497 # The linker can only warn and ignore the option if not recognized 17498 # So say no if there are warnings 17499 if test -s conftest.err; then 17500 # Append any errors to the config.log. 17501 cat conftest.err 1>&5 17502 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 17503 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17504 if diff conftest.exp conftest.er2 >/dev/null; then 17505 lt_prog_compiler_static_works_GCJ=yes 17506 fi 17507 else 17508 lt_prog_compiler_static_works_GCJ=yes 17509 fi 17510 fi 17511 $rm conftest* 17512 LDFLAGS="$save_LDFLAGS" 17513 17514fi 17515echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 17516echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6 17517 17518if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 17519 : 17520else 17521 lt_prog_compiler_static_GCJ= 17522fi 17523 17524 17525echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 17526echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 17527if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 17528 echo $ECHO_N "(cached) $ECHO_C" >&6 17529else 17530 lt_cv_prog_compiler_c_o_GCJ=no 17531 $rm -r conftest 2>/dev/null 17532 mkdir conftest 17533 cd conftest 17534 mkdir out 17535 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17536 17537 lt_compiler_flag="-o out/conftest2.$ac_objext" 17538 # Insert the option either (1) after the last *FLAGS variable, or 17539 # (2) before a word containing "conftest.", or (3) at the end. 17540 # Note that $ac_compile itself does not contain backslashes and begins 17541 # with a dollar sign (not a hyphen), so the echo should work correctly. 17542 lt_compile=`echo "$ac_compile" | $SED \ 17543 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17544 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17545 -e 's:$: $lt_compiler_flag:'` 17546 (eval echo "\"\$as_me:17546: $lt_compile\"" >&5) 17547 (eval "$lt_compile" 2>out/conftest.err) 17548 ac_status=$? 17549 cat out/conftest.err >&5 17550 echo "$as_me:17550: \$? = $ac_status" >&5 17551 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17552 then 17553 # The compiler can only warn and ignore the option if not recognized 17554 # So say no if there are warnings 17555 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 17556 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17557 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17558 lt_cv_prog_compiler_c_o_GCJ=yes 17559 fi 17560 fi 17561 chmod u+w . 2>&5 17562 $rm conftest* 17563 # SGI C++ compiler will create directory out/ii_files/ for 17564 # template instantiation 17565 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 17566 $rm out/* && rmdir out 17567 cd .. 17568 rmdir conftest 17569 $rm conftest* 17570 17571fi 17572echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 17573echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 17574 17575 17576hard_links="nottested" 17577if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 17578 # do not overwrite the value of need_locks provided by the user 17579 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 17580echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 17581 hard_links=yes 17582 $rm conftest* 17583 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17584 touch conftest.a 17585 ln conftest.a conftest.b 2>&5 || hard_links=no 17586 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17587 echo "$as_me:$LINENO: result: $hard_links" >&5 17588echo "${ECHO_T}$hard_links" >&6 17589 if test "$hard_links" = no; then 17590 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 17591echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 17592 need_locks=warn 17593 fi 17594else 17595 need_locks=no 17596fi 17597 17598echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17599echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 17600 17601 runpath_var= 17602 allow_undefined_flag_GCJ= 17603 enable_shared_with_static_runtimes_GCJ=no 17604 archive_cmds_GCJ= 17605 archive_expsym_cmds_GCJ= 17606 old_archive_From_new_cmds_GCJ= 17607 old_archive_from_expsyms_cmds_GCJ= 17608 export_dynamic_flag_spec_GCJ= 17609 whole_archive_flag_spec_GCJ= 17610 thread_safe_flag_spec_GCJ= 17611 hardcode_libdir_flag_spec_GCJ= 17612 hardcode_libdir_flag_spec_ld_GCJ= 17613 hardcode_libdir_separator_GCJ= 17614 hardcode_direct_GCJ=no 17615 hardcode_minus_L_GCJ=no 17616 hardcode_shlibpath_var_GCJ=unsupported 17617 link_all_deplibs_GCJ=unknown 17618 hardcode_automatic_GCJ=no 17619 module_cmds_GCJ= 17620 module_expsym_cmds_GCJ= 17621 always_export_symbols_GCJ=no 17622 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17623 # include_expsyms should be a list of space-separated symbols to be *always* 17624 # included in the symbol list 17625 include_expsyms_GCJ= 17626 # exclude_expsyms can be an extended regexp of symbols to exclude 17627 # it will be wrapped by ` (' and `)$', so one must not match beginning or 17628 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 17629 # as well as any symbol that contains `d'. 17630 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 17631 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 17632 # platforms (ab)use it in PIC code, but their linkers get confused if 17633 # the symbol is explicitly referenced. Since portable code cannot 17634 # rely on this symbol name, it's probably fine to never include it in 17635 # preloaded symbol tables. 17636 extract_expsyms_cmds= 17637 # Just being paranoid about ensuring that cc_basename is set. 17638 for cc_temp in $compiler""; do 17639 case $cc_temp in 17640 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17641 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17642 \-*) ;; 17643 *) break;; 17644 esac 17645done 17646cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17647 17648 case $host_os in 17649 cygwin* | mingw* | pw32*) 17650 # FIXME: the MSVC++ port hasn't been tested in a loooong time 17651 # When not using gcc, we currently assume that we are using 17652 # Microsoft Visual C++. 17653 if test "$GCC" != yes; then 17654 with_gnu_ld=no 17655 fi 17656 ;; 17657 interix*) 17658 # we just hope/assume this is gcc and not c89 (= MSVC++) 17659 with_gnu_ld=yes 17660 ;; 17661 openbsd*) 17662 with_gnu_ld=no 17663 ;; 17664 esac 17665 17666 ld_shlibs_GCJ=yes 17667 if test "$with_gnu_ld" = yes; then 17668 # If archive_cmds runs LD, not CC, wlarc should be empty 17669 wlarc='${wl}' 17670 17671 # Set some defaults for GNU ld with shared library support. These 17672 # are reset later if shared libraries are not supported. Putting them 17673 # here allows them to be overridden if necessary. 17674 runpath_var=LD_RUN_PATH 17675 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 17676 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 17677 # ancient GNU ld didn't support --whole-archive et. al. 17678 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 17679 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 17680 else 17681 whole_archive_flag_spec_GCJ= 17682 fi 17683 supports_anon_versioning=no 17684 case `$LD -v 2>/dev/null` in 17685 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 17686 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 17687 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 17688 *\ 2.11.*) ;; # other 2.11 versions 17689 *) supports_anon_versioning=yes ;; 17690 esac 17691 17692 # See if GNU ld supports shared libraries. 17693 case $host_os in 17694 aix3* | aix4* | aix5*) 17695 # On AIX/PPC, the GNU linker is very broken 17696 if test "$host_cpu" != ia64; then 17697 ld_shlibs_GCJ=no 17698 cat <<EOF 1>&2 17699 17700*** Warning: the GNU linker, at least up to release 2.9.1, is reported 17701*** to be unable to reliably create shared libraries on AIX. 17702*** Therefore, libtool is disabling shared libraries support. If you 17703*** really care for shared libraries, you may want to modify your PATH 17704*** so that a non-GNU linker is found, and then restart. 17705 17706EOF 17707 fi 17708 ;; 17709 17710 amigaos*) 17711 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)' 17712 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17713 hardcode_minus_L_GCJ=yes 17714 17715 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 17716 # that the semantics of dynamic libraries on AmigaOS, at least up 17717 # to version 4, is to share data among multiple programs linked 17718 # with the same dynamic library. Since this doesn't match the 17719 # behavior of shared libraries on other platforms, we can't use 17720 # them. 17721 ld_shlibs_GCJ=no 17722 ;; 17723 17724 beos*) 17725 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17726 allow_undefined_flag_GCJ=unsupported 17727 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 17728 # support --undefined. This deserves some investigation. FIXME 17729 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17730 else 17731 ld_shlibs_GCJ=no 17732 fi 17733 ;; 17734 17735 cygwin* | mingw* | pw32*) 17736 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 17737 # as there is no search path for DLLs. 17738 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17739 allow_undefined_flag_GCJ=unsupported 17740 always_export_symbols_GCJ=no 17741 enable_shared_with_static_runtimes_GCJ=yes 17742 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 17743 17744 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 17745 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17746 # If the export-symbols file already is a .def file (1st line 17747 # is EXPORTS), use it as is; otherwise, prepend... 17748 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 17749 cp $export_symbols $output_objdir/$soname.def; 17750 else 17751 echo EXPORTS > $output_objdir/$soname.def; 17752 cat $export_symbols >> $output_objdir/$soname.def; 17753 fi~ 17754 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17755 else 17756 ld_shlibs_GCJ=no 17757 fi 17758 ;; 17759 17760 interix3*) 17761 hardcode_direct_GCJ=no 17762 hardcode_shlibpath_var_GCJ=no 17763 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17764 export_dynamic_flag_spec_GCJ='${wl}-E' 17765 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 17766 # Instead, shared libraries are loaded at an image base (0x10000000 by 17767 # default) and relocated if they conflict, which is a slow very memory 17768 # consuming and fragmenting process. To avoid this, we pick a random, 17769 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 17770 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 17771 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' 17772 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' 17773 ;; 17774 17775 linux*) 17776 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17777 tmp_addflag= 17778 case $cc_basename,$host_cpu in 17779 pgcc*) # Portland Group C compiler 17780 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' 17781 tmp_addflag=' $pic_flag' 17782 ;; 17783 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 17784 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' 17785 tmp_addflag=' $pic_flag -Mnomain' ;; 17786 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 17787 tmp_addflag=' -i_dynamic' ;; 17788 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 17789 tmp_addflag=' -i_dynamic -nofor_main' ;; 17790 ifc* | ifort*) # Intel Fortran compiler 17791 tmp_addflag=' -nofor_main' ;; 17792 esac 17793 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17794 17795 if test $supports_anon_versioning = yes; then 17796 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 17797 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17798 $echo "local: *; };" >> $output_objdir/$libname.ver~ 17799 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 17800 fi 17801 else 17802 ld_shlibs_GCJ=no 17803 fi 17804 ;; 17805 17806 netbsd*) 17807 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17808 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 17809 wlarc= 17810 else 17811 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17812 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17813 fi 17814 ;; 17815 17816 solaris*) 17817 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 17818 ld_shlibs_GCJ=no 17819 cat <<EOF 1>&2 17820 17821*** Warning: The releases 2.8.* of the GNU linker cannot reliably 17822*** create shared libraries on Solaris systems. Therefore, libtool 17823*** is disabling shared libraries support. We urge you to upgrade GNU 17824*** binutils to release 2.9.1 or newer. Another option is to modify 17825*** your PATH or compiler configuration so that the native linker is 17826*** used, and then restart. 17827 17828EOF 17829 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17830 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17831 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17832 else 17833 ld_shlibs_GCJ=no 17834 fi 17835 ;; 17836 17837 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 17838 case `$LD -v 2>&1` in 17839 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 17840 ld_shlibs_GCJ=no 17841 cat <<_LT_EOF 1>&2 17842 17843*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 17844*** reliably create shared libraries on SCO systems. Therefore, libtool 17845*** is disabling shared libraries support. We urge you to upgrade GNU 17846*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 17847*** your PATH or compiler configuration so that the native linker is 17848*** used, and then restart. 17849 17850_LT_EOF 17851 ;; 17852 *) 17853 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17854 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 17855 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 17856 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 17857 else 17858 ld_shlibs_GCJ=no 17859 fi 17860 ;; 17861 esac 17862 ;; 17863 17864 sunos4*) 17865 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17866 wlarc= 17867 hardcode_direct_GCJ=yes 17868 hardcode_shlibpath_var_GCJ=no 17869 ;; 17870 17871 *) 17872 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17873 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17874 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17875 else 17876 ld_shlibs_GCJ=no 17877 fi 17878 ;; 17879 esac 17880 17881 if test "$ld_shlibs_GCJ" = no; then 17882 runpath_var= 17883 hardcode_libdir_flag_spec_GCJ= 17884 export_dynamic_flag_spec_GCJ= 17885 whole_archive_flag_spec_GCJ= 17886 fi 17887 else 17888 # PORTME fill in a description of your system's linker (not GNU ld) 17889 case $host_os in 17890 aix3*) 17891 allow_undefined_flag_GCJ=unsupported 17892 always_export_symbols_GCJ=yes 17893 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' 17894 # Note: this linker hardcodes the directories in LIBPATH if there 17895 # are no directories specified by -L. 17896 hardcode_minus_L_GCJ=yes 17897 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 17898 # Neither direct hardcoding nor static linking is supported with a 17899 # broken collect2. 17900 hardcode_direct_GCJ=unsupported 17901 fi 17902 ;; 17903 17904 aix4* | aix5*) 17905 if test "$host_cpu" = ia64; then 17906 # On IA64, the linker does run time linking by default, so we don't 17907 # have to do anything special. 17908 aix_use_runtimelinking=no 17909 exp_sym_flag='-Bexport' 17910 no_entry_flag="" 17911 else 17912 # If we're using GNU nm, then we don't want the "-C" option. 17913 # -C means demangle to AIX nm, but means don't demangle with GNU nm 17914 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 17915 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' 17916 else 17917 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' 17918 fi 17919 aix_use_runtimelinking=no 17920 17921 # Test if we are trying to use run time linking or normal 17922 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17923 # need to do runtime linking. 17924 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 17925 for ld_flag in $LDFLAGS; do 17926 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 17927 aix_use_runtimelinking=yes 17928 break 17929 fi 17930 done 17931 ;; 17932 esac 17933 17934 exp_sym_flag='-bexport' 17935 no_entry_flag='-bnoentry' 17936 fi 17937 17938 # When large executables or shared objects are built, AIX ld can 17939 # have problems creating the table of contents. If linking a library 17940 # or program results in "error TOC overflow" add -mminimal-toc to 17941 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17942 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17943 17944 archive_cmds_GCJ='' 17945 hardcode_direct_GCJ=yes 17946 hardcode_libdir_separator_GCJ=':' 17947 link_all_deplibs_GCJ=yes 17948 17949 if test "$GCC" = yes; then 17950 case $host_os in aix4.[012]|aix4.[012].*) 17951 # We only want to do this on AIX 4.2 and lower, the check 17952 # below for broken collect2 doesn't work under 4.3+ 17953 collect2name=`${CC} -print-prog-name=collect2` 17954 if test -f "$collect2name" && \ 17955 strings "$collect2name" | grep resolve_lib_name >/dev/null 17956 then 17957 # We have reworked collect2 17958 hardcode_direct_GCJ=yes 17959 else 17960 # We have old collect2 17961 hardcode_direct_GCJ=unsupported 17962 # It fails to find uninstalled libraries when the uninstalled 17963 # path is not listed in the libpath. Setting hardcode_minus_L 17964 # to unsupported forces relinking 17965 hardcode_minus_L_GCJ=yes 17966 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17967 hardcode_libdir_separator_GCJ= 17968 fi 17969 ;; 17970 esac 17971 shared_flag='-shared' 17972 if test "$aix_use_runtimelinking" = yes; then 17973 shared_flag="$shared_flag "'${wl}-G' 17974 fi 17975 else 17976 # not using gcc 17977 if test "$host_cpu" = ia64; then 17978 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17979 # chokes on -Wl,-G. The following line is correct: 17980 shared_flag='-G' 17981 else 17982 if test "$aix_use_runtimelinking" = yes; then 17983 shared_flag='${wl}-G' 17984 else 17985 shared_flag='${wl}-bM:SRE' 17986 fi 17987 fi 17988 fi 17989 17990 # It seems that -bexpall does not export symbols beginning with 17991 # underscore (_), so it is better to generate a list of symbols to export. 17992 always_export_symbols_GCJ=yes 17993 if test "$aix_use_runtimelinking" = yes; then 17994 # Warning - without using the other runtime loading flags (-brtl), 17995 # -berok will link without error, but may produce a broken library. 17996 allow_undefined_flag_GCJ='-berok' 17997 # Determine the default libpath from the value encoded in an empty executable. 17998 cat >conftest.$ac_ext <<_ACEOF 17999/* confdefs.h. */ 18000_ACEOF 18001cat confdefs.h >>conftest.$ac_ext 18002cat >>conftest.$ac_ext <<_ACEOF 18003/* end confdefs.h. */ 18004 18005int 18006main () 18007{ 18008 18009 ; 18010 return 0; 18011} 18012_ACEOF 18013rm -f conftest.$ac_objext conftest$ac_exeext 18014if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18015 (eval $ac_link) 2>conftest.er1 18016 ac_status=$? 18017 grep -v '^ *+' conftest.er1 >conftest.err 18018 rm -f conftest.er1 18019 cat conftest.err >&5 18020 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18021 (exit $ac_status); } && 18022 { ac_try='test -z "$ac_c_werror_flag" 18023 || test ! -s conftest.err' 18024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18025 (eval $ac_try) 2>&5 18026 ac_status=$? 18027 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18028 (exit $ac_status); }; } && 18029 { ac_try='test -s conftest$ac_exeext' 18030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18031 (eval $ac_try) 2>&5 18032 ac_status=$? 18033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18034 (exit $ac_status); }; }; then 18035 18036aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 18037}'` 18038# Check for a 64-bit object if we didn't find anything. 18039if 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; } 18040}'`; fi 18041else 18042 echo "$as_me: failed program was:" >&5 18043sed 's/^/| /' conftest.$ac_ext >&5 18044 18045fi 18046rm -f conftest.err conftest.$ac_objext \ 18047 conftest$ac_exeext conftest.$ac_ext 18048if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 18049 18050 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 18051 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" 18052 else 18053 if test "$host_cpu" = ia64; then 18054 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 18055 allow_undefined_flag_GCJ="-z nodefs" 18056 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" 18057 else 18058 # Determine the default libpath from the value encoded in an empty executable. 18059 cat >conftest.$ac_ext <<_ACEOF 18060/* confdefs.h. */ 18061_ACEOF 18062cat confdefs.h >>conftest.$ac_ext 18063cat >>conftest.$ac_ext <<_ACEOF 18064/* end confdefs.h. */ 18065 18066int 18067main () 18068{ 18069 18070 ; 18071 return 0; 18072} 18073_ACEOF 18074rm -f conftest.$ac_objext conftest$ac_exeext 18075if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18076 (eval $ac_link) 2>conftest.er1 18077 ac_status=$? 18078 grep -v '^ *+' conftest.er1 >conftest.err 18079 rm -f conftest.er1 18080 cat conftest.err >&5 18081 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18082 (exit $ac_status); } && 18083 { ac_try='test -z "$ac_c_werror_flag" 18084 || test ! -s conftest.err' 18085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18086 (eval $ac_try) 2>&5 18087 ac_status=$? 18088 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18089 (exit $ac_status); }; } && 18090 { ac_try='test -s conftest$ac_exeext' 18091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18092 (eval $ac_try) 2>&5 18093 ac_status=$? 18094 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18095 (exit $ac_status); }; }; then 18096 18097aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 18098}'` 18099# Check for a 64-bit object if we didn't find anything. 18100if 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; } 18101}'`; fi 18102else 18103 echo "$as_me: failed program was:" >&5 18104sed 's/^/| /' conftest.$ac_ext >&5 18105 18106fi 18107rm -f conftest.err conftest.$ac_objext \ 18108 conftest$ac_exeext conftest.$ac_ext 18109if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 18110 18111 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 18112 # Warning - without using the other run time loading flags, 18113 # -berok will link without error, but may produce a broken library. 18114 no_undefined_flag_GCJ=' ${wl}-bernotok' 18115 allow_undefined_flag_GCJ=' ${wl}-berok' 18116 # Exported symbols can be pulled into shared objects from archives 18117 whole_archive_flag_spec_GCJ='$convenience' 18118 archive_cmds_need_lc_GCJ=yes 18119 # This is similar to how AIX traditionally builds its shared libraries. 18120 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' 18121 fi 18122 fi 18123 ;; 18124 18125 amigaos*) 18126 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)' 18127 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18128 hardcode_minus_L_GCJ=yes 18129 # see comment about different semantics on the GNU ld section 18130 ld_shlibs_GCJ=no 18131 ;; 18132 18133 bsdi[45]*) 18134 export_dynamic_flag_spec_GCJ=-rdynamic 18135 ;; 18136 18137 cygwin* | mingw* | pw32*) 18138 # When not using gcc, we currently assume that we are using 18139 # Microsoft Visual C++. 18140 # hardcode_libdir_flag_spec is actually meaningless, as there is 18141 # no search path for DLLs. 18142 hardcode_libdir_flag_spec_GCJ=' ' 18143 allow_undefined_flag_GCJ=unsupported 18144 # Tell ltmain to make .lib files, not .a files. 18145 libext=lib 18146 # Tell ltmain to make .dll files, not .so files. 18147 shrext_cmds=".dll" 18148 # FIXME: Setting linknames here is a bad hack. 18149 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 18150 # The linker will automatically build a .lib file if we build a DLL. 18151 old_archive_From_new_cmds_GCJ='true' 18152 # FIXME: Should let the user specify the lib program. 18153 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 18154 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 18155 enable_shared_with_static_runtimes_GCJ=yes 18156 ;; 18157 18158 darwin* | rhapsody*) 18159 case $host_os in 18160 rhapsody* | darwin1.[012]) 18161 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 18162 ;; 18163 *) # Darwin 1.3 on 18164 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 18165 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 18166 else 18167 case ${MACOSX_DEPLOYMENT_TARGET} in 18168 10.[012]) 18169 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 18170 ;; 18171 10.*) 18172 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 18173 ;; 18174 esac 18175 fi 18176 ;; 18177 esac 18178 archive_cmds_need_lc_GCJ=no 18179 hardcode_direct_GCJ=no 18180 hardcode_automatic_GCJ=yes 18181 hardcode_shlibpath_var_GCJ=unsupported 18182 whole_archive_flag_spec_GCJ='' 18183 link_all_deplibs_GCJ=yes 18184 if test "$GCC" = yes ; then 18185 output_verbose_link_cmd='echo' 18186 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 18187 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 18188 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 18189 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}' 18190 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}' 18191 else 18192 case $cc_basename in 18193 xlc*) 18194 output_verbose_link_cmd='echo' 18195 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 18196 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 18197 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 18198 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}' 18199 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}' 18200 ;; 18201 *) 18202 ld_shlibs_GCJ=no 18203 ;; 18204 esac 18205 fi 18206 ;; 18207 18208 dgux*) 18209 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18210 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18211 hardcode_shlibpath_var_GCJ=no 18212 ;; 18213 18214 freebsd1*) 18215 ld_shlibs_GCJ=no 18216 ;; 18217 18218 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 18219 # support. Future versions do this automatically, but an explicit c++rt0.o 18220 # does not break anything, and helps significantly (at the cost of a little 18221 # extra space). 18222 freebsd2.2*) 18223 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 18224 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18225 hardcode_direct_GCJ=yes 18226 hardcode_shlibpath_var_GCJ=no 18227 ;; 18228 18229 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 18230 freebsd2*) 18231 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18232 hardcode_direct_GCJ=yes 18233 hardcode_minus_L_GCJ=yes 18234 hardcode_shlibpath_var_GCJ=no 18235 ;; 18236 18237 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 18238 freebsd* | kfreebsd*-gnu | dragonfly*) 18239 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 18240 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18241 hardcode_direct_GCJ=yes 18242 hardcode_shlibpath_var_GCJ=no 18243 ;; 18244 18245 hpux9*) 18246 if test "$GCC" = yes; then 18247 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' 18248 else 18249 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' 18250 fi 18251 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18252 hardcode_libdir_separator_GCJ=: 18253 hardcode_direct_GCJ=yes 18254 18255 # hardcode_minus_L: Not really in the search PATH, 18256 # but as the default location of the library. 18257 hardcode_minus_L_GCJ=yes 18258 export_dynamic_flag_spec_GCJ='${wl}-E' 18259 ;; 18260 18261 hpux10*) 18262 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 18263 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18264 else 18265 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 18266 fi 18267 if test "$with_gnu_ld" = no; then 18268 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18269 hardcode_libdir_separator_GCJ=: 18270 18271 hardcode_direct_GCJ=yes 18272 export_dynamic_flag_spec_GCJ='${wl}-E' 18273 18274 # hardcode_minus_L: Not really in the search PATH, 18275 # but as the default location of the library. 18276 hardcode_minus_L_GCJ=yes 18277 fi 18278 ;; 18279 18280 hpux11*) 18281 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 18282 case $host_cpu in 18283 hppa*64*) 18284 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18285 ;; 18286 ia64*) 18287 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18288 ;; 18289 *) 18290 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18291 ;; 18292 esac 18293 else 18294 case $host_cpu in 18295 hppa*64*) 18296 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18297 ;; 18298 ia64*) 18299 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18300 ;; 18301 *) 18302 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18303 ;; 18304 esac 18305 fi 18306 if test "$with_gnu_ld" = no; then 18307 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18308 hardcode_libdir_separator_GCJ=: 18309 18310 case $host_cpu in 18311 hppa*64*|ia64*) 18312 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 18313 hardcode_direct_GCJ=no 18314 hardcode_shlibpath_var_GCJ=no 18315 ;; 18316 *) 18317 hardcode_direct_GCJ=yes 18318 export_dynamic_flag_spec_GCJ='${wl}-E' 18319 18320 # hardcode_minus_L: Not really in the search PATH, 18321 # but as the default location of the library. 18322 hardcode_minus_L_GCJ=yes 18323 ;; 18324 esac 18325 fi 18326 ;; 18327 18328 irix5* | irix6* | nonstopux*) 18329 if test "$GCC" = yes; then 18330 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' 18331 else 18332 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' 18333 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 18334 fi 18335 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18336 hardcode_libdir_separator_GCJ=: 18337 link_all_deplibs_GCJ=yes 18338 ;; 18339 18340 netbsd*) 18341 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18342 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 18343 else 18344 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 18345 fi 18346 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18347 hardcode_direct_GCJ=yes 18348 hardcode_shlibpath_var_GCJ=no 18349 ;; 18350 18351 newsos6) 18352 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18353 hardcode_direct_GCJ=yes 18354 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18355 hardcode_libdir_separator_GCJ=: 18356 hardcode_shlibpath_var_GCJ=no 18357 ;; 18358 18359 openbsd*) 18360 hardcode_direct_GCJ=yes 18361 hardcode_shlibpath_var_GCJ=no 18362 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18363 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18364 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 18365 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18366 export_dynamic_flag_spec_GCJ='${wl}-E' 18367 else 18368 case $host_os in 18369 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 18370 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18371 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18372 ;; 18373 *) 18374 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18375 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18376 ;; 18377 esac 18378 fi 18379 ;; 18380 18381 os2*) 18382 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18383 hardcode_minus_L_GCJ=yes 18384 allow_undefined_flag_GCJ=unsupported 18385 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' 18386 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 18387 ;; 18388 18389 osf3*) 18390 if test "$GCC" = yes; then 18391 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18392 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' 18393 else 18394 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18395 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' 18396 fi 18397 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18398 hardcode_libdir_separator_GCJ=: 18399 ;; 18400 18401 osf4* | osf5*) # as osf3* with the addition of -msym flag 18402 if test "$GCC" = yes; then 18403 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18404 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' 18405 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18406 else 18407 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18408 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' 18409 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~ 18410 $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' 18411 18412 # Both c and cxx compiler support -rpath directly 18413 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 18414 fi 18415 hardcode_libdir_separator_GCJ=: 18416 ;; 18417 18418 solaris*) 18419 no_undefined_flag_GCJ=' -z text' 18420 if test "$GCC" = yes; then 18421 wlarc='${wl}' 18422 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18423 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18424 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 18425 else 18426 wlarc='' 18427 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 18428 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18429 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 18430 fi 18431 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18432 hardcode_shlibpath_var_GCJ=no 18433 case $host_os in 18434 solaris2.[0-5] | solaris2.[0-5].*) ;; 18435 *) 18436 # The compiler driver will combine linker options so we 18437 # cannot just pass the convience library names through 18438 # without $wl, iff we do not link with $LD. 18439 # Luckily, gcc supports the same syntax we need for Sun Studio. 18440 # Supported since Solaris 2.6 (maybe 2.5.1?) 18441 case $wlarc in 18442 '') 18443 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 18444 *) 18445 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' ;; 18446 esac ;; 18447 esac 18448 link_all_deplibs_GCJ=yes 18449 ;; 18450 18451 sunos4*) 18452 if test "x$host_vendor" = xsequent; then 18453 # Use $CC to link under sequent, because it throws in some extra .o 18454 # files that make .init and .fini sections work. 18455 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 18456 else 18457 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 18458 fi 18459 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18460 hardcode_direct_GCJ=yes 18461 hardcode_minus_L_GCJ=yes 18462 hardcode_shlibpath_var_GCJ=no 18463 ;; 18464 18465 sysv4) 18466 case $host_vendor in 18467 sni) 18468 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18469 hardcode_direct_GCJ=yes # is this really true??? 18470 ;; 18471 siemens) 18472 ## LD is ld it makes a PLAMLIB 18473 ## CC just makes a GrossModule. 18474 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 18475 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 18476 hardcode_direct_GCJ=no 18477 ;; 18478 motorola) 18479 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18480 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 18481 ;; 18482 esac 18483 runpath_var='LD_RUN_PATH' 18484 hardcode_shlibpath_var_GCJ=no 18485 ;; 18486 18487 sysv4.3*) 18488 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18489 hardcode_shlibpath_var_GCJ=no 18490 export_dynamic_flag_spec_GCJ='-Bexport' 18491 ;; 18492 18493 sysv4*MP*) 18494 if test -d /usr/nec; then 18495 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18496 hardcode_shlibpath_var_GCJ=no 18497 runpath_var=LD_RUN_PATH 18498 hardcode_runpath_var=yes 18499 ld_shlibs_GCJ=yes 18500 fi 18501 ;; 18502 18503 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 18504 no_undefined_flag_GCJ='${wl}-z,text' 18505 archive_cmds_need_lc_GCJ=no 18506 hardcode_shlibpath_var_GCJ=no 18507 runpath_var='LD_RUN_PATH' 18508 18509 if test "$GCC" = yes; then 18510 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18511 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18512 else 18513 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18514 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18515 fi 18516 ;; 18517 18518 sysv5* | sco3.2v5* | sco5v6*) 18519 # Note: We can NOT use -z defs as we might desire, because we do not 18520 # link with -lc, and that would cause any symbols used from libc to 18521 # always be unresolved, which means just about no library would 18522 # ever link correctly. If we're not using GNU ld we use -z text 18523 # though, which does catch some bad symbols but isn't as heavy-handed 18524 # as -z defs. 18525 no_undefined_flag_GCJ='${wl}-z,text' 18526 allow_undefined_flag_GCJ='${wl}-z,nodefs' 18527 archive_cmds_need_lc_GCJ=no 18528 hardcode_shlibpath_var_GCJ=no 18529 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 18530 hardcode_libdir_separator_GCJ=':' 18531 link_all_deplibs_GCJ=yes 18532 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 18533 runpath_var='LD_RUN_PATH' 18534 18535 if test "$GCC" = yes; then 18536 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18537 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18538 else 18539 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18540 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18541 fi 18542 ;; 18543 18544 uts4*) 18545 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18546 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18547 hardcode_shlibpath_var_GCJ=no 18548 ;; 18549 18550 *) 18551 ld_shlibs_GCJ=no 18552 ;; 18553 esac 18554 fi 18555 18556echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 18557echo "${ECHO_T}$ld_shlibs_GCJ" >&6 18558test "$ld_shlibs_GCJ" = no && can_build_shared=no 18559 18560# 18561# Do we need to explicitly link libc? 18562# 18563case "x$archive_cmds_need_lc_GCJ" in 18564x|xyes) 18565 # Assume -lc should be added 18566 archive_cmds_need_lc_GCJ=yes 18567 18568 if test "$enable_shared" = yes && test "$GCC" = yes; then 18569 case $archive_cmds_GCJ in 18570 *'~'*) 18571 # FIXME: we may have to deal with multi-command sequences. 18572 ;; 18573 '$CC '*) 18574 # Test whether the compiler implicitly links with -lc since on some 18575 # systems, -lgcc has to come before -lc. If gcc already passes -lc 18576 # to ld, don't add -lc before -lgcc. 18577 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 18578echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 18579 $rm conftest* 18580 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 18581 18582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18583 (eval $ac_compile) 2>&5 18584 ac_status=$? 18585 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18586 (exit $ac_status); } 2>conftest.err; then 18587 soname=conftest 18588 lib=conftest 18589 libobjs=conftest.$ac_objext 18590 deplibs= 18591 wl=$lt_prog_compiler_wl_GCJ 18592 pic_flag=$lt_prog_compiler_pic_GCJ 18593 compiler_flags=-v 18594 linker_flags=-v 18595 verstring= 18596 output_objdir=. 18597 libname=conftest 18598 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 18599 allow_undefined_flag_GCJ= 18600 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 18601 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 18602 ac_status=$? 18603 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18604 (exit $ac_status); } 18605 then 18606 archive_cmds_need_lc_GCJ=no 18607 else 18608 archive_cmds_need_lc_GCJ=yes 18609 fi 18610 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 18611 else 18612 cat conftest.err 1>&5 18613 fi 18614 $rm conftest* 18615 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 18616echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 18617 ;; 18618 esac 18619 fi 18620 ;; 18621esac 18622 18623echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 18624echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 18625library_names_spec= 18626libname_spec='lib$name' 18627soname_spec= 18628shrext_cmds=".so" 18629postinstall_cmds= 18630postuninstall_cmds= 18631finish_cmds= 18632finish_eval= 18633shlibpath_var= 18634shlibpath_overrides_runpath=unknown 18635version_type=none 18636dynamic_linker="$host_os ld.so" 18637sys_lib_dlsearch_path_spec="/lib /usr/lib" 18638if test "$GCC" = yes; then 18639 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18640 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 18641 # if the path contains ";" then we assume it to be the separator 18642 # otherwise default to the standard path separator (i.e. ":") - it is 18643 # assumed that no part of a normal pathname contains ";" but that should 18644 # okay in the real world where ";" in dirpaths is itself problematic. 18645 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18646 else 18647 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18648 fi 18649else 18650 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18651fi 18652need_lib_prefix=unknown 18653hardcode_into_libs=no 18654 18655# when you set need_version to no, make sure it does not cause -set_version 18656# flags to be left without arguments 18657need_version=unknown 18658 18659case $host_os in 18660aix3*) 18661 version_type=linux 18662 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 18663 shlibpath_var=LIBPATH 18664 18665 # AIX 3 has no versioning support, so we append a major version to the name. 18666 soname_spec='${libname}${release}${shared_ext}$major' 18667 ;; 18668 18669aix4* | aix5*) 18670 version_type=linux 18671 need_lib_prefix=no 18672 need_version=no 18673 hardcode_into_libs=yes 18674 if test "$host_cpu" = ia64; then 18675 # AIX 5 supports IA64 18676 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 18677 shlibpath_var=LD_LIBRARY_PATH 18678 else 18679 # With GCC up to 2.95.x, collect2 would create an import file 18680 # for dependence libraries. The import file would start with 18681 # the line `#! .'. This would cause the generated library to 18682 # depend on `.', always an invalid library. This was fixed in 18683 # development snapshots of GCC prior to 3.0. 18684 case $host_os in 18685 aix4 | aix4.[01] | aix4.[01].*) 18686 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18687 echo ' yes ' 18688 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 18689 : 18690 else 18691 can_build_shared=no 18692 fi 18693 ;; 18694 esac 18695 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 18696 # soname into executable. Probably we can add versioning support to 18697 # collect2, so additional links can be useful in future. 18698 if test "$aix_use_runtimelinking" = yes; then 18699 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18700 # instead of lib<name>.a to let people know that these are not 18701 # typical AIX shared libraries. 18702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18703 else 18704 # We preserve .a as extension for shared libraries through AIX4.2 18705 # and later when we are not doing run time linking. 18706 library_names_spec='${libname}${release}.a $libname.a' 18707 soname_spec='${libname}${release}${shared_ext}$major' 18708 fi 18709 shlibpath_var=LIBPATH 18710 fi 18711 ;; 18712 18713amigaos*) 18714 library_names_spec='$libname.ixlibrary $libname.a' 18715 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18716 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' 18717 ;; 18718 18719beos*) 18720 library_names_spec='${libname}${shared_ext}' 18721 dynamic_linker="$host_os ld.so" 18722 shlibpath_var=LIBRARY_PATH 18723 ;; 18724 18725bsdi[45]*) 18726 version_type=linux 18727 need_version=no 18728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18729 soname_spec='${libname}${release}${shared_ext}$major' 18730 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18731 shlibpath_var=LD_LIBRARY_PATH 18732 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18733 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18734 # the default ld.so.conf also contains /usr/contrib/lib and 18735 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18736 # libtool to hard-code these into programs 18737 ;; 18738 18739cygwin* | mingw* | pw32*) 18740 version_type=windows 18741 shrext_cmds=".dll" 18742 need_version=no 18743 need_lib_prefix=no 18744 18745 case $GCC,$host_os in 18746 yes,cygwin* | yes,mingw* | yes,pw32*) 18747 library_names_spec='$libname.dll.a' 18748 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18749 postinstall_cmds='base_file=`basename \${file}`~ 18750 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 18751 dldir=$destdir/`dirname \$dlpath`~ 18752 test -d \$dldir || mkdir -p \$dldir~ 18753 $install_prog $dir/$dlname \$dldir/$dlname~ 18754 chmod a+x \$dldir/$dlname' 18755 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18756 dlpath=$dir/\$dldll~ 18757 $rm \$dlpath' 18758 shlibpath_overrides_runpath=yes 18759 18760 case $host_os in 18761 cygwin*) 18762 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18763 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18764 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 18765 ;; 18766 mingw*) 18767 # MinGW DLLs use traditional 'lib' prefix 18768 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18769 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18770 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 18771 # It is most probably a Windows format PATH printed by 18772 # mingw gcc, but we are running on Cygwin. Gcc prints its search 18773 # path with ; separators, and with drive letters. We can handle the 18774 # drive letters (cygwin fileutils understands them), so leave them, 18775 # especially as we might pass files found there to a mingw objdump, 18776 # which wouldn't understand a cygwinified path. Ahh. 18777 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18778 else 18779 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18780 fi 18781 ;; 18782 pw32*) 18783 # pw32 DLLs use 'pw' prefix rather than 'lib' 18784 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18785 ;; 18786 esac 18787 ;; 18788 18789 *) 18790 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 18791 ;; 18792 esac 18793 dynamic_linker='Win32 ld.exe' 18794 # FIXME: first we should search . and the directory the executable is in 18795 shlibpath_var=PATH 18796 ;; 18797 18798darwin* | rhapsody*) 18799 dynamic_linker="$host_os dyld" 18800 version_type=darwin 18801 need_lib_prefix=no 18802 need_version=no 18803 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 18804 soname_spec='${libname}${release}${major}$shared_ext' 18805 shlibpath_overrides_runpath=yes 18806 shlibpath_var=DYLD_LIBRARY_PATH 18807 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18808 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 18809 if test "$GCC" = yes; then 18810 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"` 18811 else 18812 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 18813 fi 18814 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18815 ;; 18816 18817dgux*) 18818 version_type=linux 18819 need_lib_prefix=no 18820 need_version=no 18821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 18822 soname_spec='${libname}${release}${shared_ext}$major' 18823 shlibpath_var=LD_LIBRARY_PATH 18824 ;; 18825 18826freebsd1*) 18827 dynamic_linker=no 18828 ;; 18829 18830kfreebsd*-gnu) 18831 version_type=linux 18832 need_lib_prefix=no 18833 need_version=no 18834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18835 soname_spec='${libname}${release}${shared_ext}$major' 18836 shlibpath_var=LD_LIBRARY_PATH 18837 shlibpath_overrides_runpath=no 18838 hardcode_into_libs=yes 18839 dynamic_linker='GNU ld.so' 18840 ;; 18841 18842freebsd* | dragonfly*) 18843 # DragonFly does not have aout. When/if they implement a new 18844 # versioning mechanism, adjust this. 18845 if test -x /usr/bin/objformat; then 18846 objformat=`/usr/bin/objformat` 18847 else 18848 case $host_os in 18849 freebsd[123]*) objformat=aout ;; 18850 *) objformat=elf ;; 18851 esac 18852 fi 18853 version_type=freebsd-$objformat 18854 case $version_type in 18855 freebsd-elf*) 18856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18857 need_version=no 18858 need_lib_prefix=no 18859 ;; 18860 freebsd-*) 18861 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 18862 need_version=yes 18863 ;; 18864 esac 18865 shlibpath_var=LD_LIBRARY_PATH 18866 case $host_os in 18867 freebsd2*) 18868 shlibpath_overrides_runpath=yes 18869 ;; 18870 freebsd3.[01]* | freebsdelf3.[01]*) 18871 shlibpath_overrides_runpath=yes 18872 hardcode_into_libs=yes 18873 ;; 18874 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18875 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18876 shlibpath_overrides_runpath=no 18877 hardcode_into_libs=yes 18878 ;; 18879 freebsd*) # from 4.6 on 18880 shlibpath_overrides_runpath=yes 18881 hardcode_into_libs=yes 18882 ;; 18883 esac 18884 ;; 18885 18886gnu*) 18887 version_type=linux 18888 need_lib_prefix=no 18889 need_version=no 18890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 18891 soname_spec='${libname}${release}${shared_ext}$major' 18892 shlibpath_var=LD_LIBRARY_PATH 18893 hardcode_into_libs=yes 18894 ;; 18895 18896hpux9* | hpux10* | hpux11*) 18897 # Give a soname corresponding to the major version so that dld.sl refuses to 18898 # link against other versions. 18899 version_type=sunos 18900 need_lib_prefix=no 18901 need_version=no 18902 case $host_cpu in 18903 ia64*) 18904 shrext_cmds='.so' 18905 hardcode_into_libs=yes 18906 dynamic_linker="$host_os dld.so" 18907 shlibpath_var=LD_LIBRARY_PATH 18908 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18910 soname_spec='${libname}${release}${shared_ext}$major' 18911 if test "X$HPUX_IA64_MODE" = X32; then 18912 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18913 else 18914 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18915 fi 18916 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18917 ;; 18918 hppa*64*) 18919 shrext_cmds='.sl' 18920 hardcode_into_libs=yes 18921 dynamic_linker="$host_os dld.sl" 18922 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18923 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18925 soname_spec='${libname}${release}${shared_ext}$major' 18926 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18927 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18928 ;; 18929 *) 18930 shrext_cmds='.sl' 18931 dynamic_linker="$host_os dld.sl" 18932 shlibpath_var=SHLIB_PATH 18933 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18935 soname_spec='${libname}${release}${shared_ext}$major' 18936 ;; 18937 esac 18938 # HP-UX runs *really* slowly unless shared libraries are mode 555. 18939 postinstall_cmds='chmod 555 $lib' 18940 ;; 18941 18942interix3*) 18943 version_type=linux 18944 need_lib_prefix=no 18945 need_version=no 18946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18947 soname_spec='${libname}${release}${shared_ext}$major' 18948 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18949 shlibpath_var=LD_LIBRARY_PATH 18950 shlibpath_overrides_runpath=no 18951 hardcode_into_libs=yes 18952 ;; 18953 18954irix5* | irix6* | nonstopux*) 18955 case $host_os in 18956 nonstopux*) version_type=nonstopux ;; 18957 *) 18958 if test "$lt_cv_prog_gnu_ld" = yes; then 18959 version_type=linux 18960 else 18961 version_type=irix 18962 fi ;; 18963 esac 18964 need_lib_prefix=no 18965 need_version=no 18966 soname_spec='${libname}${release}${shared_ext}$major' 18967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18968 case $host_os in 18969 irix5* | nonstopux*) 18970 libsuff= shlibsuff= 18971 ;; 18972 *) 18973 case $LD in # libtool.m4 will add one of these switches to LD 18974 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18975 libsuff= shlibsuff= libmagic=32-bit;; 18976 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18977 libsuff=32 shlibsuff=N32 libmagic=N32;; 18978 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18979 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18980 *) libsuff= shlibsuff= libmagic=never-match;; 18981 esac 18982 ;; 18983 esac 18984 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18985 shlibpath_overrides_runpath=no 18986 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18987 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18988 hardcode_into_libs=yes 18989 ;; 18990 18991# No shared lib support for Linux oldld, aout, or coff. 18992linux*oldld* | linux*aout* | linux*coff*) 18993 dynamic_linker=no 18994 ;; 18995 18996# This must be Linux ELF. 18997linux*) 18998 version_type=linux 18999 need_lib_prefix=no 19000 need_version=no 19001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19002 soname_spec='${libname}${release}${shared_ext}$major' 19003 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 19004 shlibpath_var=LD_LIBRARY_PATH 19005 shlibpath_overrides_runpath=no 19006 # This implies no fast_install, which is unacceptable. 19007 # Some rework will be needed to allow for fast_install 19008 # before this can be enabled. 19009 hardcode_into_libs=yes 19010 19011 # Append ld.so.conf contents to the search path 19012 if test -f /etc/ld.so.conf; then 19013 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' ' '` 19014 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 19015 fi 19016 19017 # We used to test for /lib/ld.so.1 and disable shared libraries on 19018 # powerpc, because MkLinux only supported shared libraries with the 19019 # GNU dynamic linker. Since this was broken with cross compilers, 19020 # most powerpc-linux boxes support dynamic linking these days and 19021 # people can always --disable-shared, the test was removed, and we 19022 # assume the GNU/Linux dynamic linker is in use. 19023 dynamic_linker='GNU/Linux ld.so' 19024 ;; 19025 19026knetbsd*-gnu) 19027 version_type=linux 19028 need_lib_prefix=no 19029 need_version=no 19030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 19031 soname_spec='${libname}${release}${shared_ext}$major' 19032 shlibpath_var=LD_LIBRARY_PATH 19033 shlibpath_overrides_runpath=no 19034 hardcode_into_libs=yes 19035 dynamic_linker='GNU ld.so' 19036 ;; 19037 19038netbsd*) 19039 version_type=sunos 19040 need_lib_prefix=no 19041 need_version=no 19042 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 19043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 19044 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 19045 dynamic_linker='NetBSD (a.out) ld.so' 19046 else 19047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 19048 soname_spec='${libname}${release}${shared_ext}$major' 19049 dynamic_linker='NetBSD ld.elf_so' 19050 fi 19051 shlibpath_var=LD_LIBRARY_PATH 19052 shlibpath_overrides_runpath=yes 19053 hardcode_into_libs=yes 19054 ;; 19055 19056newsos6) 19057 version_type=linux 19058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19059 shlibpath_var=LD_LIBRARY_PATH 19060 shlibpath_overrides_runpath=yes 19061 ;; 19062 19063nto-qnx*) 19064 version_type=linux 19065 need_lib_prefix=no 19066 need_version=no 19067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19068 soname_spec='${libname}${release}${shared_ext}$major' 19069 shlibpath_var=LD_LIBRARY_PATH 19070 shlibpath_overrides_runpath=yes 19071 ;; 19072 19073openbsd*) 19074 version_type=sunos 19075 sys_lib_dlsearch_path_spec="/usr/lib" 19076 need_lib_prefix=no 19077 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 19078 case $host_os in 19079 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 19080 *) need_version=no ;; 19081 esac 19082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 19083 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 19084 shlibpath_var=LD_LIBRARY_PATH 19085 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 19086 case $host_os in 19087 openbsd2.[89] | openbsd2.[89].*) 19088 shlibpath_overrides_runpath=no 19089 ;; 19090 *) 19091 shlibpath_overrides_runpath=yes 19092 ;; 19093 esac 19094 else 19095 shlibpath_overrides_runpath=yes 19096 fi 19097 ;; 19098 19099os2*) 19100 libname_spec='$name' 19101 shrext_cmds=".dll" 19102 need_lib_prefix=no 19103 library_names_spec='$libname${shared_ext} $libname.a' 19104 dynamic_linker='OS/2 ld.exe' 19105 shlibpath_var=LIBPATH 19106 ;; 19107 19108osf3* | osf4* | osf5*) 19109 version_type=osf 19110 need_lib_prefix=no 19111 need_version=no 19112 soname_spec='${libname}${release}${shared_ext}$major' 19113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19114 shlibpath_var=LD_LIBRARY_PATH 19115 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 19116 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 19117 ;; 19118 19119solaris*) 19120 version_type=linux 19121 need_lib_prefix=no 19122 need_version=no 19123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19124 soname_spec='${libname}${release}${shared_ext}$major' 19125 shlibpath_var=LD_LIBRARY_PATH 19126 shlibpath_overrides_runpath=yes 19127 hardcode_into_libs=yes 19128 # ldd complains unless libraries are executable 19129 postinstall_cmds='chmod +x $lib' 19130 ;; 19131 19132sunos4*) 19133 version_type=sunos 19134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 19135 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 19136 shlibpath_var=LD_LIBRARY_PATH 19137 shlibpath_overrides_runpath=yes 19138 if test "$with_gnu_ld" = yes; then 19139 need_lib_prefix=no 19140 fi 19141 need_version=yes 19142 ;; 19143 19144sysv4 | sysv4.3*) 19145 version_type=linux 19146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19147 soname_spec='${libname}${release}${shared_ext}$major' 19148 shlibpath_var=LD_LIBRARY_PATH 19149 case $host_vendor in 19150 sni) 19151 shlibpath_overrides_runpath=no 19152 need_lib_prefix=no 19153 export_dynamic_flag_spec='${wl}-Blargedynsym' 19154 runpath_var=LD_RUN_PATH 19155 ;; 19156 siemens) 19157 need_lib_prefix=no 19158 ;; 19159 motorola) 19160 need_lib_prefix=no 19161 need_version=no 19162 shlibpath_overrides_runpath=no 19163 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 19164 ;; 19165 esac 19166 ;; 19167 19168sysv4*MP*) 19169 if test -d /usr/nec ;then 19170 version_type=linux 19171 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 19172 soname_spec='$libname${shared_ext}.$major' 19173 shlibpath_var=LD_LIBRARY_PATH 19174 fi 19175 ;; 19176 19177sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 19178 version_type=freebsd-elf 19179 need_lib_prefix=no 19180 need_version=no 19181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 19182 soname_spec='${libname}${release}${shared_ext}$major' 19183 shlibpath_var=LD_LIBRARY_PATH 19184 hardcode_into_libs=yes 19185 if test "$with_gnu_ld" = yes; then 19186 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 19187 shlibpath_overrides_runpath=no 19188 else 19189 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 19190 shlibpath_overrides_runpath=yes 19191 case $host_os in 19192 sco3.2v5*) 19193 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 19194 ;; 19195 esac 19196 fi 19197 sys_lib_dlsearch_path_spec='/usr/lib' 19198 ;; 19199 19200uts4*) 19201 version_type=linux 19202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19203 soname_spec='${libname}${release}${shared_ext}$major' 19204 shlibpath_var=LD_LIBRARY_PATH 19205 ;; 19206 19207*) 19208 dynamic_linker=no 19209 ;; 19210esac 19211echo "$as_me:$LINENO: result: $dynamic_linker" >&5 19212echo "${ECHO_T}$dynamic_linker" >&6 19213test "$dynamic_linker" = no && can_build_shared=no 19214 19215variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 19216if test "$GCC" = yes; then 19217 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 19218fi 19219 19220echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 19221echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 19222hardcode_action_GCJ= 19223if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 19224 test -n "$runpath_var_GCJ" || \ 19225 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 19226 19227 # We can hardcode non-existant directories. 19228 if test "$hardcode_direct_GCJ" != no && 19229 # If the only mechanism to avoid hardcoding is shlibpath_var, we 19230 # have to relink, otherwise we might link with an installed library 19231 # when we should be linking with a yet-to-be-installed one 19232 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 19233 test "$hardcode_minus_L_GCJ" != no; then 19234 # Linking always hardcodes the temporary library directory. 19235 hardcode_action_GCJ=relink 19236 else 19237 # We can link without hardcoding, and we can hardcode nonexisting dirs. 19238 hardcode_action_GCJ=immediate 19239 fi 19240else 19241 # We cannot hardcode anything, or else we can only hardcode existing 19242 # directories. 19243 hardcode_action_GCJ=unsupported 19244fi 19245echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 19246echo "${ECHO_T}$hardcode_action_GCJ" >&6 19247 19248if test "$hardcode_action_GCJ" = relink; then 19249 # Fast installation is not supported 19250 enable_fast_install=no 19251elif test "$shlibpath_overrides_runpath" = yes || 19252 test "$enable_shared" = no; then 19253 # Fast installation is not necessary 19254 enable_fast_install=needless 19255fi 19256 19257 19258# The else clause should only fire when bootstrapping the 19259# libtool distribution, otherwise you forgot to ship ltmain.sh 19260# with your package, and you will get complaints that there are 19261# no rules to generate ltmain.sh. 19262if test -f "$ltmain"; then 19263 # See if we are running on zsh, and set the options which allow our commands through 19264 # without removal of \ escapes. 19265 if test -n "${ZSH_VERSION+set}" ; then 19266 setopt NO_GLOB_SUBST 19267 fi 19268 # Now quote all the things that may contain metacharacters while being 19269 # careful not to overquote the AC_SUBSTed values. We take copies of the 19270 # variables and quote the copies for generation of the libtool script. 19271 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19272 SED SHELL STRIP \ 19273 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19274 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19275 deplibs_check_method reload_flag reload_cmds need_locks \ 19276 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19277 lt_cv_sys_global_symbol_to_c_name_address \ 19278 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19279 old_postinstall_cmds old_postuninstall_cmds \ 19280 compiler_GCJ \ 19281 CC_GCJ \ 19282 LD_GCJ \ 19283 lt_prog_compiler_wl_GCJ \ 19284 lt_prog_compiler_pic_GCJ \ 19285 lt_prog_compiler_static_GCJ \ 19286 lt_prog_compiler_no_builtin_flag_GCJ \ 19287 export_dynamic_flag_spec_GCJ \ 19288 thread_safe_flag_spec_GCJ \ 19289 whole_archive_flag_spec_GCJ \ 19290 enable_shared_with_static_runtimes_GCJ \ 19291 old_archive_cmds_GCJ \ 19292 old_archive_from_new_cmds_GCJ \ 19293 predep_objects_GCJ \ 19294 postdep_objects_GCJ \ 19295 predeps_GCJ \ 19296 postdeps_GCJ \ 19297 compiler_lib_search_path_GCJ \ 19298 archive_cmds_GCJ \ 19299 archive_expsym_cmds_GCJ \ 19300 postinstall_cmds_GCJ \ 19301 postuninstall_cmds_GCJ \ 19302 old_archive_from_expsyms_cmds_GCJ \ 19303 allow_undefined_flag_GCJ \ 19304 no_undefined_flag_GCJ \ 19305 export_symbols_cmds_GCJ \ 19306 hardcode_libdir_flag_spec_GCJ \ 19307 hardcode_libdir_flag_spec_ld_GCJ \ 19308 hardcode_libdir_separator_GCJ \ 19309 hardcode_automatic_GCJ \ 19310 module_cmds_GCJ \ 19311 module_expsym_cmds_GCJ \ 19312 lt_cv_prog_compiler_c_o_GCJ \ 19313 exclude_expsyms_GCJ \ 19314 include_expsyms_GCJ; do 19315 19316 case $var in 19317 old_archive_cmds_GCJ | \ 19318 old_archive_from_new_cmds_GCJ | \ 19319 archive_cmds_GCJ | \ 19320 archive_expsym_cmds_GCJ | \ 19321 module_cmds_GCJ | \ 19322 module_expsym_cmds_GCJ | \ 19323 old_archive_from_expsyms_cmds_GCJ | \ 19324 export_symbols_cmds_GCJ | \ 19325 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19326 postinstall_cmds | postuninstall_cmds | \ 19327 old_postinstall_cmds | old_postuninstall_cmds | \ 19328 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19329 # Double-quote double-evaled strings. 19330 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19331 ;; 19332 *) 19333 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19334 ;; 19335 esac 19336 done 19337 19338 case $lt_echo in 19339 *'\$0 --fallback-echo"') 19340 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19341 ;; 19342 esac 19343 19344cfgfile="$ofile" 19345 19346 cat <<__EOF__ >> "$cfgfile" 19347# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19348 19349# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19350 19351# Shell to use when invoking shell scripts. 19352SHELL=$lt_SHELL 19353 19354# Whether or not to build shared libraries. 19355build_libtool_libs=$enable_shared 19356 19357# Whether or not to build static libraries. 19358build_old_libs=$enable_static 19359 19360# Whether or not to add -lc for building shared libraries. 19361build_libtool_need_lc=$archive_cmds_need_lc_GCJ 19362 19363# Whether or not to disallow shared libs when runtime libs are static 19364allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 19365 19366# Whether or not to optimize for fast installation. 19367fast_install=$enable_fast_install 19368 19369# The host system. 19370host_alias=$host_alias 19371host=$host 19372host_os=$host_os 19373 19374# The build system. 19375build_alias=$build_alias 19376build=$build 19377build_os=$build_os 19378 19379# An echo program that does not interpret backslashes. 19380echo=$lt_echo 19381 19382# The archiver. 19383AR=$lt_AR 19384AR_FLAGS=$lt_AR_FLAGS 19385 19386# A C compiler. 19387LTCC=$lt_LTCC 19388 19389# LTCC compiler flags. 19390LTCFLAGS=$lt_LTCFLAGS 19391 19392# A language-specific compiler. 19393CC=$lt_compiler_GCJ 19394 19395# Is the compiler the GNU C compiler? 19396with_gcc=$GCC_GCJ 19397 19398# An ERE matcher. 19399EGREP=$lt_EGREP 19400 19401# The linker used to build libraries. 19402LD=$lt_LD_GCJ 19403 19404# Whether we need hard or soft links. 19405LN_S=$lt_LN_S 19406 19407# A BSD-compatible nm program. 19408NM=$lt_NM 19409 19410# A symbol stripping program 19411STRIP=$lt_STRIP 19412 19413# Used to examine libraries when file_magic_cmd begins "file" 19414MAGIC_CMD=$MAGIC_CMD 19415 19416# Used on cygwin: DLL creation program. 19417DLLTOOL="$DLLTOOL" 19418 19419# Used on cygwin: object dumper. 19420OBJDUMP="$OBJDUMP" 19421 19422# Used on cygwin: assembler. 19423AS="$AS" 19424 19425# The name of the directory that contains temporary libtool files. 19426objdir=$objdir 19427 19428# How to create reloadable object files. 19429reload_flag=$lt_reload_flag 19430reload_cmds=$lt_reload_cmds 19431 19432# How to pass a linker flag through the compiler. 19433wl=$lt_lt_prog_compiler_wl_GCJ 19434 19435# Object file suffix (normally "o"). 19436objext="$ac_objext" 19437 19438# Old archive suffix (normally "a"). 19439libext="$libext" 19440 19441# Shared library suffix (normally ".so"). 19442shrext_cmds='$shrext_cmds' 19443 19444# Executable file suffix (normally ""). 19445exeext="$exeext" 19446 19447# Additional compiler flags for building library objects. 19448pic_flag=$lt_lt_prog_compiler_pic_GCJ 19449pic_mode=$pic_mode 19450 19451# What is the maximum length of a command? 19452max_cmd_len=$lt_cv_sys_max_cmd_len 19453 19454# Does compiler simultaneously support -c and -o options? 19455compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 19456 19457# Must we lock files when doing compilation? 19458need_locks=$lt_need_locks 19459 19460# Do we need the lib prefix for modules? 19461need_lib_prefix=$need_lib_prefix 19462 19463# Do we need a version for libraries? 19464need_version=$need_version 19465 19466# Whether dlopen is supported. 19467dlopen_support=$enable_dlopen 19468 19469# Whether dlopen of programs is supported. 19470dlopen_self=$enable_dlopen_self 19471 19472# Whether dlopen of statically linked programs is supported. 19473dlopen_self_static=$enable_dlopen_self_static 19474 19475# Compiler flag to prevent dynamic linking. 19476link_static_flag=$lt_lt_prog_compiler_static_GCJ 19477 19478# Compiler flag to turn off builtin functions. 19479no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 19480 19481# Compiler flag to allow reflexive dlopens. 19482export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 19483 19484# Compiler flag to generate shared objects directly from archives. 19485whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 19486 19487# Compiler flag to generate thread-safe objects. 19488thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 19489 19490# Library versioning type. 19491version_type=$version_type 19492 19493# Format of library name prefix. 19494libname_spec=$lt_libname_spec 19495 19496# List of archive names. First name is the real one, the rest are links. 19497# The last name is the one that the linker finds with -lNAME. 19498library_names_spec=$lt_library_names_spec 19499 19500# The coded name of the library, if different from the real name. 19501soname_spec=$lt_soname_spec 19502 19503# Commands used to build and install an old-style archive. 19504RANLIB=$lt_RANLIB 19505old_archive_cmds=$lt_old_archive_cmds_GCJ 19506old_postinstall_cmds=$lt_old_postinstall_cmds 19507old_postuninstall_cmds=$lt_old_postuninstall_cmds 19508 19509# Create an old-style archive from a shared archive. 19510old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 19511 19512# Create a temporary old-style archive to link instead of a shared archive. 19513old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 19514 19515# Commands used to build and install a shared archive. 19516archive_cmds=$lt_archive_cmds_GCJ 19517archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 19518postinstall_cmds=$lt_postinstall_cmds 19519postuninstall_cmds=$lt_postuninstall_cmds 19520 19521# Commands used to build a loadable module (assumed same as above if empty) 19522module_cmds=$lt_module_cmds_GCJ 19523module_expsym_cmds=$lt_module_expsym_cmds_GCJ 19524 19525# Commands to strip libraries. 19526old_striplib=$lt_old_striplib 19527striplib=$lt_striplib 19528 19529# Dependencies to place before the objects being linked to create a 19530# shared library. 19531predep_objects=$lt_predep_objects_GCJ 19532 19533# Dependencies to place after the objects being linked to create a 19534# shared library. 19535postdep_objects=$lt_postdep_objects_GCJ 19536 19537# Dependencies to place before the objects being linked to create a 19538# shared library. 19539predeps=$lt_predeps_GCJ 19540 19541# Dependencies to place after the objects being linked to create a 19542# shared library. 19543postdeps=$lt_postdeps_GCJ 19544 19545# The library search path used internally by the compiler when linking 19546# a shared library. 19547compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 19548 19549# Method to check whether dependent libraries are shared objects. 19550deplibs_check_method=$lt_deplibs_check_method 19551 19552# Command to use when deplibs_check_method == file_magic. 19553file_magic_cmd=$lt_file_magic_cmd 19554 19555# Flag that allows shared libraries with undefined symbols to be built. 19556allow_undefined_flag=$lt_allow_undefined_flag_GCJ 19557 19558# Flag that forces no undefined symbols. 19559no_undefined_flag=$lt_no_undefined_flag_GCJ 19560 19561# Commands used to finish a libtool library installation in a directory. 19562finish_cmds=$lt_finish_cmds 19563 19564# Same as above, but a single script fragment to be evaled but not shown. 19565finish_eval=$lt_finish_eval 19566 19567# Take the output of nm and produce a listing of raw symbols and C names. 19568global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19569 19570# Transform the output of nm in a proper C declaration 19571global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19572 19573# Transform the output of nm in a C name address pair 19574global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19575 19576# This is the shared library runtime path variable. 19577runpath_var=$runpath_var 19578 19579# This is the shared library path variable. 19580shlibpath_var=$shlibpath_var 19581 19582# Is shlibpath searched before the hard-coded library search path? 19583shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19584 19585# How to hardcode a shared library path into an executable. 19586hardcode_action=$hardcode_action_GCJ 19587 19588# Whether we should hardcode library paths into libraries. 19589hardcode_into_libs=$hardcode_into_libs 19590 19591# Flag to hardcode \$libdir into a binary during linking. 19592# This must work even if \$libdir does not exist. 19593hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 19594 19595# If ld is used when linking, flag to hardcode \$libdir into 19596# a binary during linking. This must work even if \$libdir does 19597# not exist. 19598hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 19599 19600# Whether we need a single -rpath flag with a separated argument. 19601hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 19602 19603# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19604# resulting binary. 19605hardcode_direct=$hardcode_direct_GCJ 19606 19607# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19608# resulting binary. 19609hardcode_minus_L=$hardcode_minus_L_GCJ 19610 19611# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19612# the resulting binary. 19613hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 19614 19615# Set to yes if building a shared library automatically hardcodes DIR into the library 19616# and all subsequent libraries and executables linked against it. 19617hardcode_automatic=$hardcode_automatic_GCJ 19618 19619# Variables whose values should be saved in libtool wrapper scripts and 19620# restored at relink time. 19621variables_saved_for_relink="$variables_saved_for_relink" 19622 19623# Whether libtool must link a program against all its dependency libraries. 19624link_all_deplibs=$link_all_deplibs_GCJ 19625 19626# Compile-time system search path for libraries 19627sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19628 19629# Run-time system search path for libraries 19630sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19631 19632# Fix the shell variable \$srcfile for the compiler. 19633fix_srcfile_path="$fix_srcfile_path_GCJ" 19634 19635# Set to yes if exported symbols are required. 19636always_export_symbols=$always_export_symbols_GCJ 19637 19638# The commands to list exported symbols. 19639export_symbols_cmds=$lt_export_symbols_cmds_GCJ 19640 19641# The commands to extract the exported symbol list from a shared archive. 19642extract_expsyms_cmds=$lt_extract_expsyms_cmds 19643 19644# Symbols that should not be listed in the preloaded symbols. 19645exclude_expsyms=$lt_exclude_expsyms_GCJ 19646 19647# Symbols that must always be exported. 19648include_expsyms=$lt_include_expsyms_GCJ 19649 19650# ### END LIBTOOL TAG CONFIG: $tagname 19651 19652__EOF__ 19653 19654 19655else 19656 # If there is no Makefile yet, we rely on a make rule to execute 19657 # `config.status --recheck' to rerun these tests and create the 19658 # libtool script then. 19659 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19660 if test -f "$ltmain_in"; then 19661 test -f Makefile && make "$ltmain" 19662 fi 19663fi 19664 19665 19666ac_ext=c 19667ac_cpp='$CPP $CPPFLAGS' 19668ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19669ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19670ac_compiler_gnu=$ac_cv_c_compiler_gnu 19671 19672CC="$lt_save_CC" 19673 19674 else 19675 tagname="" 19676 fi 19677 ;; 19678 19679 RC) 19680 19681 19682 19683# Source file extension for RC test sources. 19684ac_ext=rc 19685 19686# Object file extension for compiled RC test sources. 19687objext=o 19688objext_RC=$objext 19689 19690# Code to be used in simple compile tests 19691lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 19692 19693# Code to be used in simple link tests 19694lt_simple_link_test_code="$lt_simple_compile_test_code" 19695 19696# ltmain only uses $CC for tagged configurations so make sure $CC is set. 19697 19698# If no C compiler was specified, use CC. 19699LTCC=${LTCC-"$CC"} 19700 19701# If no C compiler flags were specified, use CFLAGS. 19702LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 19703 19704# Allow CC to be a program name with arguments. 19705compiler=$CC 19706 19707 19708# save warnings/boilerplate of simple test code 19709ac_outfile=conftest.$ac_objext 19710printf "$lt_simple_compile_test_code" >conftest.$ac_ext 19711eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19712_lt_compiler_boilerplate=`cat conftest.err` 19713$rm conftest* 19714 19715ac_outfile=conftest.$ac_objext 19716printf "$lt_simple_link_test_code" >conftest.$ac_ext 19717eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19718_lt_linker_boilerplate=`cat conftest.err` 19719$rm conftest* 19720 19721 19722# Allow CC to be a program name with arguments. 19723lt_save_CC="$CC" 19724CC=${RC-"windres"} 19725compiler=$CC 19726compiler_RC=$CC 19727for cc_temp in $compiler""; do 19728 case $cc_temp in 19729 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19730 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19731 \-*) ;; 19732 *) break;; 19733 esac 19734done 19735cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 19736 19737lt_cv_prog_compiler_c_o_RC=yes 19738 19739# The else clause should only fire when bootstrapping the 19740# libtool distribution, otherwise you forgot to ship ltmain.sh 19741# with your package, and you will get complaints that there are 19742# no rules to generate ltmain.sh. 19743if test -f "$ltmain"; then 19744 # See if we are running on zsh, and set the options which allow our commands through 19745 # without removal of \ escapes. 19746 if test -n "${ZSH_VERSION+set}" ; then 19747 setopt NO_GLOB_SUBST 19748 fi 19749 # Now quote all the things that may contain metacharacters while being 19750 # careful not to overquote the AC_SUBSTed values. We take copies of the 19751 # variables and quote the copies for generation of the libtool script. 19752 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19753 SED SHELL STRIP \ 19754 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19755 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19756 deplibs_check_method reload_flag reload_cmds need_locks \ 19757 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19758 lt_cv_sys_global_symbol_to_c_name_address \ 19759 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19760 old_postinstall_cmds old_postuninstall_cmds \ 19761 compiler_RC \ 19762 CC_RC \ 19763 LD_RC \ 19764 lt_prog_compiler_wl_RC \ 19765 lt_prog_compiler_pic_RC \ 19766 lt_prog_compiler_static_RC \ 19767 lt_prog_compiler_no_builtin_flag_RC \ 19768 export_dynamic_flag_spec_RC \ 19769 thread_safe_flag_spec_RC \ 19770 whole_archive_flag_spec_RC \ 19771 enable_shared_with_static_runtimes_RC \ 19772 old_archive_cmds_RC \ 19773 old_archive_from_new_cmds_RC \ 19774 predep_objects_RC \ 19775 postdep_objects_RC \ 19776 predeps_RC \ 19777 postdeps_RC \ 19778 compiler_lib_search_path_RC \ 19779 archive_cmds_RC \ 19780 archive_expsym_cmds_RC \ 19781 postinstall_cmds_RC \ 19782 postuninstall_cmds_RC \ 19783 old_archive_from_expsyms_cmds_RC \ 19784 allow_undefined_flag_RC \ 19785 no_undefined_flag_RC \ 19786 export_symbols_cmds_RC \ 19787 hardcode_libdir_flag_spec_RC \ 19788 hardcode_libdir_flag_spec_ld_RC \ 19789 hardcode_libdir_separator_RC \ 19790 hardcode_automatic_RC \ 19791 module_cmds_RC \ 19792 module_expsym_cmds_RC \ 19793 lt_cv_prog_compiler_c_o_RC \ 19794 exclude_expsyms_RC \ 19795 include_expsyms_RC; do 19796 19797 case $var in 19798 old_archive_cmds_RC | \ 19799 old_archive_from_new_cmds_RC | \ 19800 archive_cmds_RC | \ 19801 archive_expsym_cmds_RC | \ 19802 module_cmds_RC | \ 19803 module_expsym_cmds_RC | \ 19804 old_archive_from_expsyms_cmds_RC | \ 19805 export_symbols_cmds_RC | \ 19806 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19807 postinstall_cmds | postuninstall_cmds | \ 19808 old_postinstall_cmds | old_postuninstall_cmds | \ 19809 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19810 # Double-quote double-evaled strings. 19811 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19812 ;; 19813 *) 19814 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19815 ;; 19816 esac 19817 done 19818 19819 case $lt_echo in 19820 *'\$0 --fallback-echo"') 19821 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19822 ;; 19823 esac 19824 19825cfgfile="$ofile" 19826 19827 cat <<__EOF__ >> "$cfgfile" 19828# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19829 19830# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19831 19832# Shell to use when invoking shell scripts. 19833SHELL=$lt_SHELL 19834 19835# Whether or not to build shared libraries. 19836build_libtool_libs=$enable_shared 19837 19838# Whether or not to build static libraries. 19839build_old_libs=$enable_static 19840 19841# Whether or not to add -lc for building shared libraries. 19842build_libtool_need_lc=$archive_cmds_need_lc_RC 19843 19844# Whether or not to disallow shared libs when runtime libs are static 19845allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 19846 19847# Whether or not to optimize for fast installation. 19848fast_install=$enable_fast_install 19849 19850# The host system. 19851host_alias=$host_alias 19852host=$host 19853host_os=$host_os 19854 19855# The build system. 19856build_alias=$build_alias 19857build=$build 19858build_os=$build_os 19859 19860# An echo program that does not interpret backslashes. 19861echo=$lt_echo 19862 19863# The archiver. 19864AR=$lt_AR 19865AR_FLAGS=$lt_AR_FLAGS 19866 19867# A C compiler. 19868LTCC=$lt_LTCC 19869 19870# LTCC compiler flags. 19871LTCFLAGS=$lt_LTCFLAGS 19872 19873# A language-specific compiler. 19874CC=$lt_compiler_RC 19875 19876# Is the compiler the GNU C compiler? 19877with_gcc=$GCC_RC 19878 19879# An ERE matcher. 19880EGREP=$lt_EGREP 19881 19882# The linker used to build libraries. 19883LD=$lt_LD_RC 19884 19885# Whether we need hard or soft links. 19886LN_S=$lt_LN_S 19887 19888# A BSD-compatible nm program. 19889NM=$lt_NM 19890 19891# A symbol stripping program 19892STRIP=$lt_STRIP 19893 19894# Used to examine libraries when file_magic_cmd begins "file" 19895MAGIC_CMD=$MAGIC_CMD 19896 19897# Used on cygwin: DLL creation program. 19898DLLTOOL="$DLLTOOL" 19899 19900# Used on cygwin: object dumper. 19901OBJDUMP="$OBJDUMP" 19902 19903# Used on cygwin: assembler. 19904AS="$AS" 19905 19906# The name of the directory that contains temporary libtool files. 19907objdir=$objdir 19908 19909# How to create reloadable object files. 19910reload_flag=$lt_reload_flag 19911reload_cmds=$lt_reload_cmds 19912 19913# How to pass a linker flag through the compiler. 19914wl=$lt_lt_prog_compiler_wl_RC 19915 19916# Object file suffix (normally "o"). 19917objext="$ac_objext" 19918 19919# Old archive suffix (normally "a"). 19920libext="$libext" 19921 19922# Shared library suffix (normally ".so"). 19923shrext_cmds='$shrext_cmds' 19924 19925# Executable file suffix (normally ""). 19926exeext="$exeext" 19927 19928# Additional compiler flags for building library objects. 19929pic_flag=$lt_lt_prog_compiler_pic_RC 19930pic_mode=$pic_mode 19931 19932# What is the maximum length of a command? 19933max_cmd_len=$lt_cv_sys_max_cmd_len 19934 19935# Does compiler simultaneously support -c and -o options? 19936compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19937 19938# Must we lock files when doing compilation? 19939need_locks=$lt_need_locks 19940 19941# Do we need the lib prefix for modules? 19942need_lib_prefix=$need_lib_prefix 19943 19944# Do we need a version for libraries? 19945need_version=$need_version 19946 19947# Whether dlopen is supported. 19948dlopen_support=$enable_dlopen 19949 19950# Whether dlopen of programs is supported. 19951dlopen_self=$enable_dlopen_self 19952 19953# Whether dlopen of statically linked programs is supported. 19954dlopen_self_static=$enable_dlopen_self_static 19955 19956# Compiler flag to prevent dynamic linking. 19957link_static_flag=$lt_lt_prog_compiler_static_RC 19958 19959# Compiler flag to turn off builtin functions. 19960no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19961 19962# Compiler flag to allow reflexive dlopens. 19963export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19964 19965# Compiler flag to generate shared objects directly from archives. 19966whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19967 19968# Compiler flag to generate thread-safe objects. 19969thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19970 19971# Library versioning type. 19972version_type=$version_type 19973 19974# Format of library name prefix. 19975libname_spec=$lt_libname_spec 19976 19977# List of archive names. First name is the real one, the rest are links. 19978# The last name is the one that the linker finds with -lNAME. 19979library_names_spec=$lt_library_names_spec 19980 19981# The coded name of the library, if different from the real name. 19982soname_spec=$lt_soname_spec 19983 19984# Commands used to build and install an old-style archive. 19985RANLIB=$lt_RANLIB 19986old_archive_cmds=$lt_old_archive_cmds_RC 19987old_postinstall_cmds=$lt_old_postinstall_cmds 19988old_postuninstall_cmds=$lt_old_postuninstall_cmds 19989 19990# Create an old-style archive from a shared archive. 19991old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19992 19993# Create a temporary old-style archive to link instead of a shared archive. 19994old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19995 19996# Commands used to build and install a shared archive. 19997archive_cmds=$lt_archive_cmds_RC 19998archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19999postinstall_cmds=$lt_postinstall_cmds 20000postuninstall_cmds=$lt_postuninstall_cmds 20001 20002# Commands used to build a loadable module (assumed same as above if empty) 20003module_cmds=$lt_module_cmds_RC 20004module_expsym_cmds=$lt_module_expsym_cmds_RC 20005 20006# Commands to strip libraries. 20007old_striplib=$lt_old_striplib 20008striplib=$lt_striplib 20009 20010# Dependencies to place before the objects being linked to create a 20011# shared library. 20012predep_objects=$lt_predep_objects_RC 20013 20014# Dependencies to place after the objects being linked to create a 20015# shared library. 20016postdep_objects=$lt_postdep_objects_RC 20017 20018# Dependencies to place before the objects being linked to create a 20019# shared library. 20020predeps=$lt_predeps_RC 20021 20022# Dependencies to place after the objects being linked to create a 20023# shared library. 20024postdeps=$lt_postdeps_RC 20025 20026# The library search path used internally by the compiler when linking 20027# a shared library. 20028compiler_lib_search_path=$lt_compiler_lib_search_path_RC 20029 20030# Method to check whether dependent libraries are shared objects. 20031deplibs_check_method=$lt_deplibs_check_method 20032 20033# Command to use when deplibs_check_method == file_magic. 20034file_magic_cmd=$lt_file_magic_cmd 20035 20036# Flag that allows shared libraries with undefined symbols to be built. 20037allow_undefined_flag=$lt_allow_undefined_flag_RC 20038 20039# Flag that forces no undefined symbols. 20040no_undefined_flag=$lt_no_undefined_flag_RC 20041 20042# Commands used to finish a libtool library installation in a directory. 20043finish_cmds=$lt_finish_cmds 20044 20045# Same as above, but a single script fragment to be evaled but not shown. 20046finish_eval=$lt_finish_eval 20047 20048# Take the output of nm and produce a listing of raw symbols and C names. 20049global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20050 20051# Transform the output of nm in a proper C declaration 20052global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20053 20054# Transform the output of nm in a C name address pair 20055global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20056 20057# This is the shared library runtime path variable. 20058runpath_var=$runpath_var 20059 20060# This is the shared library path variable. 20061shlibpath_var=$shlibpath_var 20062 20063# Is shlibpath searched before the hard-coded library search path? 20064shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20065 20066# How to hardcode a shared library path into an executable. 20067hardcode_action=$hardcode_action_RC 20068 20069# Whether we should hardcode library paths into libraries. 20070hardcode_into_libs=$hardcode_into_libs 20071 20072# Flag to hardcode \$libdir into a binary during linking. 20073# This must work even if \$libdir does not exist. 20074hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 20075 20076# If ld is used when linking, flag to hardcode \$libdir into 20077# a binary during linking. This must work even if \$libdir does 20078# not exist. 20079hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 20080 20081# Whether we need a single -rpath flag with a separated argument. 20082hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 20083 20084# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 20085# resulting binary. 20086hardcode_direct=$hardcode_direct_RC 20087 20088# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 20089# resulting binary. 20090hardcode_minus_L=$hardcode_minus_L_RC 20091 20092# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 20093# the resulting binary. 20094hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 20095 20096# Set to yes if building a shared library automatically hardcodes DIR into the library 20097# and all subsequent libraries and executables linked against it. 20098hardcode_automatic=$hardcode_automatic_RC 20099 20100# Variables whose values should be saved in libtool wrapper scripts and 20101# restored at relink time. 20102variables_saved_for_relink="$variables_saved_for_relink" 20103 20104# Whether libtool must link a program against all its dependency libraries. 20105link_all_deplibs=$link_all_deplibs_RC 20106 20107# Compile-time system search path for libraries 20108sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20109 20110# Run-time system search path for libraries 20111sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 20112 20113# Fix the shell variable \$srcfile for the compiler. 20114fix_srcfile_path="$fix_srcfile_path_RC" 20115 20116# Set to yes if exported symbols are required. 20117always_export_symbols=$always_export_symbols_RC 20118 20119# The commands to list exported symbols. 20120export_symbols_cmds=$lt_export_symbols_cmds_RC 20121 20122# The commands to extract the exported symbol list from a shared archive. 20123extract_expsyms_cmds=$lt_extract_expsyms_cmds 20124 20125# Symbols that should not be listed in the preloaded symbols. 20126exclude_expsyms=$lt_exclude_expsyms_RC 20127 20128# Symbols that must always be exported. 20129include_expsyms=$lt_include_expsyms_RC 20130 20131# ### END LIBTOOL TAG CONFIG: $tagname 20132 20133__EOF__ 20134 20135 20136else 20137 # If there is no Makefile yet, we rely on a make rule to execute 20138 # `config.status --recheck' to rerun these tests and create the 20139 # libtool script then. 20140 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 20141 if test -f "$ltmain_in"; then 20142 test -f Makefile && make "$ltmain" 20143 fi 20144fi 20145 20146 20147ac_ext=c 20148ac_cpp='$CPP $CPPFLAGS' 20149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20151ac_compiler_gnu=$ac_cv_c_compiler_gnu 20152 20153CC="$lt_save_CC" 20154 20155 ;; 20156 20157 *) 20158 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 20159echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 20160 { (exit 1); exit 1; }; } 20161 ;; 20162 esac 20163 20164 # Append the new tag name to the list of available tags. 20165 if test -n "$tagname" ; then 20166 available_tags="$available_tags $tagname" 20167 fi 20168 fi 20169 done 20170 IFS="$lt_save_ifs" 20171 20172 # Now substitute the updated list of available tags. 20173 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 20174 mv "${ofile}T" "$ofile" 20175 chmod +x "$ofile" 20176 else 20177 rm -f "${ofile}T" 20178 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 20179echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 20180 { (exit 1); exit 1; }; } 20181 fi 20182fi 20183 20184 20185 20186# This can be used to rebuild libtool when needed 20187LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 20188 20189# Always use our own libtool. 20190LIBTOOL='$(SHELL) $(top_builddir)/libtool' 20191 20192# Prevent multiple expansion 20193 20194 20195 20196 20197 20198 20199 20200 20201 20202 20203 20204# No longer needed now that CPPFLAGS is correctly set -- lh, 061214 -- 20205 # AC_REQUIRE([AC_COIN_DLFCN_H]) 20206 20207# NEW: If libtool exists in the directory higher up, we use that one 20208# instead of creating a new one 20209 20210# It turns out that the code for AC_PROG_LIBTOOL is somehow AC_REQUIRED 20211# out in front of this macro body. You'll notice that LIBTOOL is already 20212# defined here. We'll have to count on this macro not being called if libtool 20213# already exists, or at least move the libtool fixes outside the conditional. 20214# AC_MSG_NOTICE([Entering coin_prog_libtool, LIBTOOL = "$LIBTOOL".]) 20215# This test is therefore removed. -- lh, 061214 -- 20216# if test "x$LIBTOOL" = x; then 20217 20218# AC_MSG_NOTICE([Calling PROG_LIBTOOL.]) 20219 20220 20221 20222 20223 20224 20225 20226 20227 20228# AC_MSG_NOTICE([Finished PROG_LIBTOOL.]) 20229 20230 20231 20232 { echo "$as_me:$LINENO: Build is \"$build\"." >&5 20233echo "$as_me: Build is \"$build\"." >&6;} 20234 mydos2unix='| dos2unix' 20235 case $build in 20236 *-mingw*) 20237 CYGPATH_W=echo 20238 ;; 20239 esac 20240 20241 case $build in 20242 # Here we need to check if -m32 is specified. If so, we need to correct 20243 # sys_lib_search_path_spec 20244 *-cygwin* | *-mingw*) 20245 case "$CXX" in 20246 clang* ) 20247 # we assume that libtool patches for CLANG are the same as for GNU compiler - correct??? 20248 { echo "$as_me:$LINENO: Applying patches to libtool for CLANG compiler" >&5 20249echo "$as_me: Applying patches to libtool for CLANG compiler" >&6;} 20250 sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \ 20251 -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \ 20252 -e 's|libext="lib"|libext="a"|' \ 20253 libtool > conftest.bla 20254 ;; 20255 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 20256 { echo "$as_me:$LINENO: Applying patches to libtool for cl compiler" >&5 20257echo "$as_me: Applying patches to libtool for cl compiler" >&6;} 20258 sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \ 20259 -e 's|fix_srcfile_path=\"\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \ 20260 -e 's%compile_deplibs=\"\$dir/\$old_library \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$old_library | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \ 20261 -e 's%compile_deplibs=\"\$dir/\$linklib \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$linklib | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \ 20262 -e 's%lib /OUT:%lib -OUT:%' \ 20263 -e "s%cygpath -w%$CYGPATH_W%" \ 20264 -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%' \ 20265 -e 's%$AR t "$f_ex_an_ar_oldlib"%lib -nologo -list \$('"$CYGPATH_W \$1"') '"$mydos2unix"'%' \ 20266 -e 's%f_ex_an_ar_oldlib="\($?*1*\)"%f_ex_an_ar_oldlib='\`"$CYGPATH_W"' \1`%' \ 20267 -e 's%^archive_cmds=.*%archive_cmds="\\$CC -o \\$lib \\$libobjs \\$compiler_flags \\\\\\`echo \\\\\\"\\$deplibs\\\\\\" | \\$SED -e '"\'"'s/ -lc\\$//'"\'"'\\\\\\` -link -dll~linknames="%' \ 20268 -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"%' \ 20269 libtool > conftest.bla 20270 ;; 20271 *) 20272 { echo "$as_me:$LINENO: Applying patches to libtool for GNU compiler" >&5 20273echo "$as_me: Applying patches to libtool for GNU compiler" >&6;} 20274 sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \ 20275 -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \ 20276 -e 's|libext="lib"|libext="a"|' \ 20277 libtool > conftest.bla 20278 ;; 20279 esac 20280 mv conftest.bla libtool 20281 chmod 755 libtool 20282 20283 ;; 20284 *x86_64-*) 20285 if test "$GCC" = yes && (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm32' >& /dev/null); then 20286 { echo "$as_me:$LINENO: Applying patches to libtool for 32bit compilation" >&5 20287echo "$as_me: Applying patches to libtool for 32bit compilation" >&6;} 20288 sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="/lib /usr/lib"|' libtool > conftest.bla 20289 mv conftest.bla libtool 20290 chmod 755 libtool 20291 fi 20292 ;; 20293 20294 *-solaris*) 20295 if test "$GCC" = yes && \ 20296 (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm64' >/dev/null 2>&1) ; then 20297 hdwisa=`isainfo | sed -e 's/\([^ ]*\) .*$/\1/'` 20298 if `$EGREP 'sys_lib_search_path_spec=' libtool | $EGREP -v $hdwisa >/dev/null 2>&1` ; then 20299 { echo "$as_me:$LINENO: Applying patches to libtool for 64-bit GCC compilation" >&5 20300echo "$as_me: Applying patches to libtool for 64-bit GCC compilation" >&6;} 20301 fixlibtmp=`$CC -m64 -print-search-dirs | $EGREP '^libraries:'` 20302 fixlibtmp=`echo $fixlibtmp | sed -e 's/libraries: =//' -e 's/:/ /g'` 20303 if `echo "$fixlibtmp" | $EGREP -v $hdwisa >/dev/null 2>&1` ; then 20304 # AC_MSG_NOTICE(Compensating for broken gcc) 20305 for lib in $fixlibtmp ; do 20306 if test -d "${lib}${hdwisa}" ; then 20307 syslibpath64="$syslibpath64 ${lib}${hdwisa}/" 20308 fi 20309 done 20310 syslibpath64="${syslibpath64} ${fixlibtmp}" 20311 else 20312 syslibpath64="$fixlibtmp" 20313 fi 20314 sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="'"$syslibpath64"'"|' libtool > conftest.bla 20315 mv conftest.bla libtool 20316 chmod 755 libtool 20317 fi 20318 # AC_MSG_NOTICE(Result is ) 20319 # $EGREP 'sys_lib_search_path_spec=' libtool 20320 fi 20321 ;; 20322 # Cygwin. Ah, cygwin. Too big and ugly to inline; see the macro. 20323 *-darwin*) 20324 { echo "$as_me:$LINENO: Applying patches to libtool for Darwin" >&5 20325echo "$as_me: Applying patches to libtool for Darwin" >&6;} 20326 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"/' \ 20327 -e 's/ -dynamiclib / -dynamiclib -single_module /g' \ 20328 libtool > conftest.bla 20329 20330 mv conftest.bla libtool 20331 chmod 755 libtool 20332 ;; 20333 esac 20334# This fi matches the commented `if test "x$LIBTOOL" = x;' up at the head of 20335# the macro. -- lh, 061214 -- 20336# fi 20337 20338# AC_MSG_NOTICE([End libtool initialisation.]) 20339 20340# AC_MSG_NOTICE([Finished COIN_PROG_LIBTOOL.]) 20341 # set RPATH_FLAGS to the compiler link flags required to hardcode location 20342 # of the shared objects 20343 RPATH_FLAGS= 20344 20345if test $enable_shared = yes; then 20346 case $build in 20347 *-linux-*) 20348 if test "$GXX" = "yes"; then 20349 RPATH_FLAGS= 20350 for dir in $abs_lib_dir; do 20351 RPATH_FLAGS="$RPATH_FLAGS -Wl,--rpath -Wl,$dir" 20352 done 20353 fi ;; 20354 *-darwin*) 20355 RPATH_FLAGS=nothing ;; 20356 *-ibm-*) 20357 case "$CXX" in 20358 xlC* | */xlC* | mpxlC* | */mpxlC*) 20359 RPATH_FLAGS=nothing ;; 20360 esac ;; 20361 *-hp-*) 20362 RPATH_FLAGS=nothing ;; 20363 *-mingw32) 20364 RPATH_FLAGS=nothing ;; 20365 *-*-solaris*) 20366 RPATH_FLAGS= 20367 for dir in $abs_lib_dir; do 20368 RPATH_FLAGS="$RPATH_FLAGS -R$dir" 20369 done 20370 esac 20371 20372 if test "$RPATH_FLAGS" = ""; then 20373 { 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 20374echo "$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;} 20375 fi 20376 if test "$RPATH_FLAGS" = "nothing"; then 20377 RPATH_FLAGS= 20378 fi 20379fi 20380 20381 20382 20383 20384else 20385 20386 { echo "$as_me:$LINENO: Using libtool script in directory $coin_config_dir" >&5 20387echo "$as_me: Using libtool script in directory $coin_config_dir" >&6;} 20388 # get all missing information from the config.log file 20389 20390 # output variables and defines 20391 as_save_IFS=$IFS 20392 IFS=' 20393' 20394 for oneline in `cat $coin_config_dir/config.status`; do 20395 case "$oneline" in 20396 # First some automake conditionals 20397 s,@am__fastdep* | s,@AR@* | s,@CPP@* | s,@CPPFLAGS@* | s,@CXXCPP@* | \ 20398 s,@RANLIB@* | s,@STRIP@* | s,@ac_ct_AR@* | s,@ac_ct_RANLIB@* | \ 20399 s,@ac_ct_STRIP@* | s,@host* | s,@LN_S@* | s,@RPATH_FLAGS@* | \ 20400 s,@ac_c_preproc_warn_flag@* | s,@ac_cxx_preproc_warn_flag@* ) 20401 command=`echo $oneline | sed -e 's/^s,@//' -e 's/@,/="/' -e 's/,;t t/"/'` 20402# echo "$command" 20403 eval "$command" 20404 ;; 20405 s,@DEFS@* ) 20406 command=`echo $oneline | sed -e 's/^s,@DEFS@,/defsline="/' -e 's/,;t t/"/'` 20407# echo "$command" 20408 eval "$command" 20409 ;; 20410 esac 20411 done 20412 IFS=$as_save_IFS 20413 20414 # And some defines (assuming here that the packages base dir 20415 # doesn't have a config.h file 20416 for word in $defsline; do 20417# echo word $word 20418 case $word in 20419 -DHAVE_[A-Z_]*_H=1 | -DSTDC_HEADERS=1 ) 20420 i=`echo $word | sed -e 's/-D/#define /' -e 's/=/ /'` 20421# echo dd $i 20422 echo $i >>confdefs.h 20423 ;; 20424 esac 20425 done 20426fi 20427 20428# AC_MSG_NOTICE([End of INIT_AUTO_TOOLS.]) 20429 20430# Check whether --enable-dependency-linking or --disable-dependency-linking was given. 20431if test "${enable_dependency_linking+set}" = set; then 20432 enableval="$enable_dependency_linking" 20433 dependency_linking="$enableval" 20434else 20435 dependency_linking=auto 20436fi; 20437 20438if test "$dependency_linking" = auto; then 20439 # On Cygwin and AIX, building DLLs doesn't work 20440 dependency_linking=no 20441 if test x"$coin_disable_shared" = xno; then 20442 case $build in 20443 *-cygwin* | *-mingw*) 20444 case "$CC" in 20445 clang* ) 20446 dependency_linking=yes 20447 ;; 20448 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 20449 dependency_linking=no 20450 ;; 20451 *gcc*) 20452 dependency_linking=yes 20453 ;; 20454 *) 20455 dependency_linking=yes 20456 ;; 20457 esac 20458 ;; 20459 *) 20460 dependency_linking=yes 20461 ;; 20462 esac 20463 fi 20464fi 20465 20466if test "$dependency_linking" = yes ; 20467then 20468 LT_LDFLAGS="-no-undefined" 20469else 20470 LT_LDFLAGS= 20471fi 20472 20473 20474 20475if test "$dependency_linking" = yes; then 20476 DEPENDENCY_LINKING_TRUE= 20477 DEPENDENCY_LINKING_FALSE='#' 20478else 20479 DEPENDENCY_LINKING_TRUE='#' 20480 DEPENDENCY_LINKING_FALSE= 20481fi 20482 20483 20484# Check if we want to set the library version 20485echo "$as_me:$LINENO: checking if library version is set" >&5 20486echo $ECHO_N "checking if library version is set... $ECHO_C" >&6 20487if test x"$coin_libversion" != x; then 20488 LT_LDFLAGS="$LT_LDFLAGS -version-info $coin_libversion" 20489 echo "$as_me:$LINENO: result: $coin_libversion" >&5 20490echo "${ECHO_T}$coin_libversion" >&6 20491else 20492 echo "$as_me:$LINENO: result: no" >&5 20493echo "${ECHO_T}no" >&6 20494fi 20495 20496 20497 20498#END 20499} 20500 20501############################################################################# 20502# COIN-OR components # 20503############################################################################# 20504 20505 20506# Check whether --enable-pkg-config or --disable-pkg-config was given. 20507if test "${enable_pkg_config+set}" = set; then 20508 enableval="$enable_pkg_config" 20509 use_pkgconfig="$enableval" 20510else 20511 if test x$coin_cc_is_cl = xtrue; then 20512 use_pkgconfig=no 20513 else 20514 use_pkgconfig=yes 20515 fi 20516fi; 20517 20518if test $use_pkgconfig = yes ; then 20519 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 20520 if test -n "$ac_tool_prefix"; then 20521 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 20522set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 20523echo "$as_me:$LINENO: checking for $ac_word" >&5 20524echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 20525if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then 20526 echo $ECHO_N "(cached) $ECHO_C" >&6 20527else 20528 if test -n "$PKG_CONFIG"; then 20529 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test. 20530else 20531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20532for as_dir in $PATH 20533do 20534 IFS=$as_save_IFS 20535 test -z "$as_dir" && as_dir=. 20536 for ac_exec_ext in '' $ac_executable_extensions; do 20537 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20538 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config" 20539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20540 break 2 20541 fi 20542done 20543done 20544 20545fi 20546fi 20547PKG_CONFIG=$ac_cv_prog_PKG_CONFIG 20548if test -n "$PKG_CONFIG"; then 20549 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 20550echo "${ECHO_T}$PKG_CONFIG" >&6 20551else 20552 echo "$as_me:$LINENO: result: no" >&5 20553echo "${ECHO_T}no" >&6 20554fi 20555 20556fi 20557if test -z "$ac_cv_prog_PKG_CONFIG"; then 20558 ac_ct_PKG_CONFIG=$PKG_CONFIG 20559 # Extract the first word of "pkg-config", so it can be a program name with args. 20560set dummy pkg-config; ac_word=$2 20561echo "$as_me:$LINENO: checking for $ac_word" >&5 20562echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 20563if test "${ac_cv_prog_ac_ct_PKG_CONFIG+set}" = set; then 20564 echo $ECHO_N "(cached) $ECHO_C" >&6 20565else 20566 if test -n "$ac_ct_PKG_CONFIG"; then 20567 ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test. 20568else 20569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20570for as_dir in $PATH 20571do 20572 IFS=$as_save_IFS 20573 test -z "$as_dir" && as_dir=. 20574 for ac_exec_ext in '' $ac_executable_extensions; do 20575 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20576 ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config" 20577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20578 break 2 20579 fi 20580done 20581done 20582 20583fi 20584fi 20585ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG 20586if test -n "$ac_ct_PKG_CONFIG"; then 20587 echo "$as_me:$LINENO: result: $ac_ct_PKG_CONFIG" >&5 20588echo "${ECHO_T}$ac_ct_PKG_CONFIG" >&6 20589else 20590 echo "$as_me:$LINENO: result: no" >&5 20591echo "${ECHO_T}no" >&6 20592fi 20593 20594 PKG_CONFIG=$ac_ct_PKG_CONFIG 20595else 20596 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG" 20597fi 20598 20599 fi 20600 if test -n "$PKG_CONFIG"; then 20601 _pkg_min_version=0.16.0 20602 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 20603echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6 20604 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 20605 echo "$as_me:$LINENO: result: yes" >&5 20606echo "${ECHO_T}yes" >&6 20607 else 20608 echo "$as_me:$LINENO: result: no" >&5 20609echo "${ECHO_T}no" >&6 20610 PKG_CONFIG="" 20611 fi 20612 fi 20613 20614 # check if pkg-config supports the short-errors flag 20615 if test -n "$PKG_CONFIG" && \ 20616 $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20617 pkg_short_errors=" --short-errors " 20618 else 20619 pkg_short_errors="" 20620 fi 20621fi 20622 20623 20624 20625if test -n "$PKG_CONFIG"; then 20626 COIN_HAS_PKGCONFIG_TRUE= 20627 COIN_HAS_PKGCONFIG_FALSE='#' 20628else 20629 COIN_HAS_PKGCONFIG_TRUE='#' 20630 COIN_HAS_PKGCONFIG_FALSE= 20631fi 20632 20633 20634 20635# assemble pkg-config search path for installed projects 20636COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH" 20637 20638# 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 20639# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig, 20640# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}... 20641if test "x${prefix}" = xNONE ; then 20642 COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib64/pkgconfig:${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}" 20643else 20644 COIN_PKG_CONFIG_PATH="${prefix}/lib64/pkgconfig:${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}" 20645fi 20646 20647 20648# Check whether --with-coin-instdir or --without-coin-instdir was given. 20649if test "${with_coin_instdir+set}" = set; then 20650 withval="$with_coin_instdir" 20651 if test -d "$withval"; then : ; else 20652 { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5 20653echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;} 20654 { (exit 1); exit 1; }; } 20655 fi 20656 COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}" 20657 20658fi; 20659 20660 20661 20662# assemble additional pkg-config search paths for uninstalled projects 20663if test x$coin_projectdir = xyes ; then 20664 # if we are in a project setup, then in a classic setup, we want to find uninstalled projects 20665 # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory 20666 # unfortunately, if the user set prefix, then we do not know where the project base directory is located 20667 # 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) 20668 COIN_PKG_CONFIG_PATH_UNINSTALLED= 20669 if test -f ../coin_subdirs.txt ; then 20670 for i in `cat ../coin_subdirs.txt` ; do 20671 if test -d ../$i ; then 20672 COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}" 20673 fi 20674 if test -d ../$i/pkgconfig ; then 20675 COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}" 20676 fi 20677 done 20678 fi 20679 20680 if test -f ../../coin_subdirs.txt ; then 20681 for i in `cat ../../coin_subdirs.txt` ; do 20682 if test -d ../../$i ; then 20683 COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}" 20684 fi 20685 if test -d ../../$i/pkgconfig ; then 20686 COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}" 20687 fi 20688 done 20689 fi 20690 20691 20692fi 20693 20694if test -n "$PKG_CONFIG" && test x$coin_cc_is_cl = xtrue; then 20695 { 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 20696echo "$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;} 20697fi 20698 20699 20700 20701echo "$as_me:$LINENO: checking for COIN-OR package CoinUtils" >&5 20702echo $ECHO_N "checking for COIN-OR package CoinUtils... $ECHO_C" >&6 20703 20704coin_has_coinutils=notGiven 20705 20706# check if user wants to skip package in any case 20707if test x"$COIN_SKIP_PROJECTS" != x; then 20708 for dir in $COIN_SKIP_PROJECTS; do 20709 if test $dir = "CoinUtils"; then 20710 coin_has_coinutils=skipping 20711 fi 20712 done 20713fi 20714 20715if test "$coin_has_coinutils" != skipping; then 20716 20717# Check whether --with-m4_tolower(CoinUtils) or --without-m4_tolower(CoinUtils) was given. 20718if test "${with_coinutils+set}" = set; then 20719 withval="$with_coinutils" 20720 if test "$withval" = no ; then 20721 coin_has_coinutils=skipping 20722 fi 20723 20724fi; 20725fi 20726 20727COINUTILS_LIBS= 20728COINUTILS_CFLAGS= 20729COINUTILS_DATA= 20730COINUTILS_DEPENDENCIES= 20731COINUTILS_PCLIBS= 20732COINUTILS_PCREQUIRES= 20733 20734 20735 20736 20737 20738 20739 20740 20741 20742 20743 20744 20745 20746 20747 20748 20749 20750#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package 20751if test $coin_has_coinutils != skipping; then 20752 20753# Check whether --with-m4_tolower(CoinUtils)-lib or --without-m4_tolower(CoinUtils)-lib was given. 20754if test "${with_coinutils_lib+set}" = set; then 20755 withval="$with_coinutils_lib" 20756 if test "$withval" = no ; then 20757 coin_has_coinutils=skipping 20758 else 20759 coin_has_coinutils=yes 20760 COINUTILS_LIBS="$withval" 20761 COINUTILS_PCLIBS="$withval" 20762 20763 OSICONICLIB_PCLIBS="$withval $OSICONICLIB_PCLIBS" 20764 OSICONICLIB_LIBS="$withval $OSICONICLIB_LIBS" 20765 20766 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables 20767 if test -z "$PKG_CONFIG" ; then 20768 COINUTILS_LIBS_INSTALLED="$withval" 20769 OSICONICLIB_LIBS_INSTALLED="$withval $OSICONICLIB_LIBS_INSTALLED" 20770 fi 20771 fi 20772 20773fi; 20774fi 20775 20776if test $coin_has_coinutils != skipping; then 20777 20778# Check whether --with-m4_tolower(CoinUtils)-incdir or --without-m4_tolower(CoinUtils)-incdir was given. 20779if test "${with_coinutils_incdir+set}" = set; then 20780 withval="$with_coinutils_incdir" 20781 if test "$withval" = no ; then 20782 coin_has_coinutils=skipping 20783 else 20784 coin_has_coinutils=yes 20785 COINUTILS_CFLAGS="-I`${CYGPATH_W} $withval`" 20786 OSICONICLIB_CFLAGS="-I`${CYGPATH_W} $withval` $OSICONICLIB_CFLAGS" 20787 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables 20788 if test -z "$PKG_CONFIG" ; then 20789 COINUTILS_CFLAGS_INSTALLED="$COINUTILS_CFLAGS" 20790 OSICONICLIB_CFLAGS_INSTALLED="$COINUTILS_CFLAGS $OSICONICLIB_CFLAGS_INSTALLED" 20791 fi 20792 fi 20793 20794fi; 20795fi 20796 20797if test $coin_has_coinutils != skipping; then 20798 20799# Check whether --with-m4_tolower(CoinUtils)-datadir or --without-m4_tolower(CoinUtils)-datadir was given. 20800if test "${with_coinutils_datadir+set}" = set; then 20801 withval="$with_coinutils_datadir" 20802 if test "$withval" = no ; then 20803 coin_has_coinutils=skipping 20804 else 20805 coin_has_coinutils=yes 20806 COINUTILS_DATA="$withval" 20807 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables 20808 if test -z "$PKG_CONFIG" ; then 20809 COINUTILS_DATA_INSTALLED="$withval" 20810 fi 20811 fi 20812 20813fi; 20814fi 20815 20816if test $coin_has_coinutils = notGiven; then 20817 if test -n "$PKG_CONFIG" ; then 20818 # set search path for pkg-config 20819 # need to export variable to be sure that the following pkg-config gets these values 20820 coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH" 20821 PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED" 20822 export PKG_CONFIG_PATH 20823 20824 # let pkg-config do it's magic 20825 20826 20827 20828if test -n "$PKG_CONFIG" ; then 20829 if $PKG_CONFIG --exists "coinutils"; then 20830 COINUTILS_VERSIONS=`$PKG_CONFIG --modversion "coinutils" 2>/dev/null | tr '\n' ' '` 20831 cflags=`$PKG_CONFIG --cflags "coinutils" 2>/dev/null` 20832 # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files 20833 # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's 20834 # but only do this if is not trivial 20835 if test "$CYGPATH_W" != "echo" ; then 20836 # need to put into brackets since otherwise autoconf replaces the brackets in the sed command 20837 cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` 20838 fi 20839 COINUTILS_CFLAGS="$cflags" 20840 COINUTILS_LIBS=`$PKG_CONFIG --libs "coinutils" 2>/dev/null` 20841 COINUTILS_DATA=`$PKG_CONFIG --variable=datadir "coinutils" 2>/dev/null` 20842 coin_has_coinutils=yes 20843 echo "$as_me:$LINENO: result: yes: $COINUTILS_VERSIONS" >&5 20844echo "${ECHO_T}yes: $COINUTILS_VERSIONS" >&6 20845 20846 # adjust linker flags for (i)cl compiler 20847 # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl) 20848 if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ; 20849 then 20850 COINUTILS_LIBS=`echo " $COINUTILS_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'` 20851 fi 20852 COINUTILS_PCREQUIRES="coinutils" 20853 20854 # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in OsiConicLib 20855 20856 OSICONICLIB_PCREQUIRES="coinutils $OSICONICLIB_PCREQUIRES" 20857 OSICONICLIB_CFLAGS="$COINUTILS_CFLAGS $OSICONICLIB_CFLAGS" 20858 OSICONICLIB_LIBS="$COINUTILS_LIBS $OSICONICLIB_LIBS" 20859 20860 20861 20862 else 20863 COINUTILS_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "coinutils"` 20864 coin_has_coinutils=notGiven 20865 echo "$as_me:$LINENO: result: not given: $COINUTILS_PKG_ERRORS" >&5 20866echo "${ECHO_T}not given: $COINUTILS_PKG_ERRORS" >&6 20867 20868 fi 20869else 20870 { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module CoinUtils without pkg-config\"" >&5 20871echo "$as_me: error: \"Cannot check for existance of module CoinUtils without pkg-config\"" >&2;} 20872 { (exit 1); exit 1; }; } 20873fi 20874 20875 20876 20877 20878 # reset PKG_CONFIG_PATH variable 20879 PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH" 20880 export PKG_CONFIG_PATH 20881 20882 else 20883 echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5 20884echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6 20885 20886echo "$as_me:$LINENO: checking for COIN-OR package CoinUtils (fallback)" >&5 20887echo $ECHO_N "checking for COIN-OR package CoinUtils (fallback)... $ECHO_C" >&6 20888 20889coin_has_coinutils=notGiven 20890COINUTILS_LIBS= 20891COINUTILS_LIBS_INSTALLED= 20892COINUTILS_CFLAGS= 20893COINUTILS_CFLAGS_INSTALLED= 20894COINUTILS_DATA= 20895COINUTILS_DATA_INSTALLED= 20896COINUTILS_PCLIBS= 20897COINUTILS_PCREQUIRES= 20898 20899# initial list of dependencies is "coinutils", but we need to filter out version number specifications (= x, <= x, >= x, != x) 20900projtoprocess="coinutils" 20901 20902# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it 20903# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards 20904# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples 20905# also, we setup the DATA variable 20906allproj="" 20907allpcfiles="" 20908allpcifiles="" 20909while test "x$projtoprocess" != x ; do 20910 20911 for proj in $projtoprocess ; do 20912 # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it 20913 pcfile="" 20914 save_IFS="$IFS" 20915 IFS=":" 20916 for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do 20917 # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again 20918 if test -r "$dir/${proj}-uninstalled.pc" ; then 20919 pcfile="$dir/$proj-uninstalled.pc" 20920 if test -r "$dir/${proj}.pc" ; then 20921 pcifile="$dir/${proj}.pc" 20922 else 20923 { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5 20924echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;} 20925 pcifile= 20926 fi 20927 break 20928 fi 20929 done 20930 IFS="$save_IFS" 20931 20932 if test "x$pcfile" != x ; then 20933 # read dependencies from $pcfile and filter it 20934 projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ ]\{0,\}[^ ]\{1,\}//g'` 20935 20936 # add projrequires to the front of the list of projects that have to be processed next 20937 # at the same time, remove $proj from this list 20938 projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"` 20939 20940 # read DATA from $pcfile, if _DATA is still empty 20941 if test "x$COINUTILS_DATA" = x ; then 20942 projdatadir= 20943 pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile` 20944 eval `sh -c "$pcfilemod"` 20945 COINUTILS_DATA="$projdatadir" 20946 fi 20947 20948 allproj="$allproj $proj" 20949 allpcfiles="$pcfile:$allpcfiles" 20950 20951 else 20952 echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5 20953echo "${ECHO_T}no, dependency $proj not available" >&6 20954 allproj=fail 20955 break 2 20956 fi 20957 20958 if test "x$pcifile" != x ; then 20959 allpcifiles="$pcifile:$allpcifiles" 20960 20961 # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty 20962 if test "x$COINUTILS_DATA_INSTALLED" = x ; then 20963 projdatadir= 20964 pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile` 20965 eval `sh -c "$pcifilemod"` 20966 if test "${CYGPATH_W}" != "echo"; then 20967 projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`" 20968 fi 20969 COINUTILS_DATA_INSTALLED="$projdatadir" 20970 fi 20971 20972 fi 20973 20974 break 20975 done 20976 20977 # remove spaces on begin of $projtoprocess 20978 projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'` 20979 20980done 20981 20982if test "$allproj" != fail ; then 20983 20984 # now go through the list of .pc files and assemble compiler and linker flags 20985 # important is here to obey the reverse order that has been setup before, 20986 # since then libraries that are required by several others should be after these other libraries 20987 pcfilesprocessed="" 20988 20989 save_IFS="$IFS" 20990 IFS=":" 20991 for pcfile in $allpcfiles ; do 20992 20993 # if $pcfile has been processed already, skip this round 20994 if test "x$pcfilesprocessed" != x ; then 20995 for pcfiledone in $pcfilesprocessed ; do 20996 if test "$pcfiledone" = "$pcfile" ; then 20997 continue 2 20998 fi 20999 done 21000 fi 21001 21002 # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags: 21003 # replace "Libs:" by "echo projlibs=" 21004 # replace "Cflags:" by "echo projcflags=" 21005 # remove every line starting with <some word>: 21006 pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile` 21007 21008 # set projcflags and projlibs variables by running $pcfilemod 21009 # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default 21010 projcflags= 21011 projlibs= 21012 IFS="$save_IFS" 21013 eval `sh -c "$pcfilemod"` 21014 IFS=":" 21015 21016 # add CYGPATH_W cludge into include flags and set CFLAGS variable 21017 if test "${CYGPATH_W}" != "echo"; then 21018 projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` 21019 fi 21020 COINUTILS_CFLAGS="$projcflags $COINUTILS_CFLAGS" 21021 21022 # set LIBS variable 21023 COINUTILS_LIBS="$projlibs $COINUTILS_LIBS" 21024 21025 # remember that we have processed $pcfile 21026 pcfilesprocessed="$pcfilesprocessed:$pcfile" 21027 21028 done 21029 IFS="$save_IFS" 21030 21031 21032 # now go through the list of .pc files for installed projects and assemble compiler and linker flags 21033 # important is here again to obey the reverse order that has been setup before, 21034 # since then libraries that are required by several others should be after these other libraries 21035 pcfilesprocessed="" 21036 21037 save_IFS="$IFS" 21038 IFS=":" 21039 for pcfile in $allpcifiles ; do 21040 21041 # if $pcfile has been processed already, skip this round 21042 if test "x$pcfilesprocessed" != x ; then 21043 for pcfiledone in $pcfilesprocessed ; do 21044 if test "$pcfiledone" = "$pcfile" ; then 21045 continue 2 21046 fi 21047 done 21048 fi 21049 21050 # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags: 21051 # replace "Libs:" by "echo projlibs=" 21052 # replace "Cflags:" by "echo projcflags=" 21053 # remove every line starting with <some word>: 21054 pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile` 21055 21056 # set projcflags and projlibs variables by running $pcfilemod 21057 # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default 21058 projcflags= 21059 projlibs= 21060 IFS="$save_IFS" 21061 eval `sh -c "$pcfilemod"` 21062 IFS=":" 21063 21064 # add CYGPATH_W cludge into include flags and set CFLAGS variable 21065 if test "${CYGPATH_W}" != "echo"; then 21066 projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` 21067 fi 21068 COINUTILS_CFLAGS_INSTALLED="$projcflags $COINUTILS_CFLAGS_INSTALLED" 21069 21070 # set LIBS variable 21071 COINUTILS_LIBS_INSTALLED="$projlibs $COINUTILS_LIBS_INSTALLED" 21072 21073 # remember that we have processed $pcfile 21074 pcfilesprocessed="$pcfilesprocessed:$pcfile" 21075 21076 done 21077 IFS="$save_IFS" 21078 21079 21080 # finish up 21081 coin_has_coinutils=yes 21082 echo "$as_me:$LINENO: result: yes" >&5 21083echo "${ECHO_T}yes" >&6 21084 21085cat >>confdefs.h <<\_ACEOF 21086#define COIN_HAS_COINUTILS 1 21087_ACEOF 21088 21089 21090 # adjust linker flags for (i)cl compiler 21091 # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl), 21092 # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`", 21093 # everything of the form "-lname" by "libname.lib", and 21094 # everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path` 21095 if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ; 21096 then 21097 COINUTILS_LIBS=`echo " $COINUTILS_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'` 21098 COINUTILS_LIBS_INSTALLED=`echo " $COINUTILS_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'` 21099 fi 21100 21101 COINUTILS_PCREQUIRES="coinutils" 21102 21103 OSICONICLIB_PCREQUIRES="coinutils $OSICONICLIB_PCREQUIRES" 21104 OSICONICLIB_CFLAGS="$COINUTILS_CFLAGS $OSICONICLIB_CFLAGS" 21105 OSICONICLIB_LIBS="$COINUTILS_LIBS $OSICONICLIB_LIBS" 21106 OSICONICLIB_CFLAGS_INSTALLED="$COINUTILS_CFLAGS_INSTALLED $OSICONICLIB_CFLAGS_INSTALLED" 21107 OSICONICLIB_LIBS_INSTALLED="$COINUTILS_LIBS_INSTALLED $OSICONICLIB_LIBS_INSTALLED" 21108 21109 21110fi 21111 21112 21113 21114if test $coin_has_coinutils != notGiven && 21115 test $coin_has_coinutils != skipping; then 21116 COIN_HAS_COINUTILS_TRUE= 21117 COIN_HAS_COINUTILS_FALSE='#' 21118else 21119 COIN_HAS_COINUTILS_TRUE='#' 21120 COIN_HAS_COINUTILS_FALSE= 21121fi 21122 21123 21124 21125 fi 21126 21127else 21128 echo "$as_me:$LINENO: result: $coin_has_coinutils" >&5 21129echo "${ECHO_T}$coin_has_coinutils" >&6 21130fi 21131 21132if test $coin_has_coinutils != skipping && 21133 test $coin_has_coinutils != notGiven ; then 21134 21135cat >>confdefs.h <<\_ACEOF 21136#define COIN_HAS_COINUTILS 1 21137_ACEOF 21138 21139 21140 # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given. 21141if test "${enable_interpackage_dependencies+set}" = set; then 21142 enableval="$enable_interpackage_dependencies" 21143 21144else 21145 enable_interpackage_dependencies=yes 21146fi; 21147 21148 if test $enable_interpackage_dependencies = yes ; then 21149 # construct dependencies variables from LIBS variables 21150 # we add an extra space in LIBS so we can substitute out everything starting with " -" 21151 # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows 21152 # then remove everything of the form -xxx 21153 # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl) 21154 COINUTILS_DEPENDENCIES=`echo " $COINUTILS_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'` 21155 21156 OSICONICLIB_DEPENDENCIES=`echo " $OSICONICLIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'` 21157 21158 fi 21159 21160 if test 1 = 0 ; then #change this test to enable a bit of debugging output 21161 if test -n "$COINUTILS_CFLAGS" ; then 21162 { echo "$as_me:$LINENO: CoinUtils CFLAGS are $COINUTILS_CFLAGS" >&5 21163echo "$as_me: CoinUtils CFLAGS are $COINUTILS_CFLAGS" >&6;} 21164 fi 21165 if test -n "$COINUTILS_LIBS" ; then 21166 { echo "$as_me:$LINENO: CoinUtils LIBS are $COINUTILS_LIBS" >&5 21167echo "$as_me: CoinUtils LIBS are $COINUTILS_LIBS" >&6;} 21168 fi 21169 if test -n "$COINUTILS_DEPENDENCIES" ; then 21170 { echo "$as_me:$LINENO: CoinUtils DEPENDENCIES are $COINUTILS_DEPENDENCIES" >&5 21171echo "$as_me: CoinUtils DEPENDENCIES are $COINUTILS_DEPENDENCIES" >&6;} 21172 fi 21173 if test -n "$COINUTILS_DATA" ; then 21174 { echo "$as_me:$LINENO: CoinUtils DATA is $COINUTILS_DATA" >&5 21175echo "$as_me: CoinUtils DATA is $COINUTILS_DATA" >&6;} 21176 fi 21177 if test -n "$COINUTILS_PCLIBS" ; then 21178 { echo "$as_me:$LINENO: CoinUtils PCLIBS are $COINUTILS_PCLIBS" >&5 21179echo "$as_me: CoinUtils PCLIBS are $COINUTILS_PCLIBS" >&6;} 21180 fi 21181 if test -n "$COINUTILS_PCREQUIRES" ; then 21182 { echo "$as_me:$LINENO: CoinUtils PCREQUIRES are $COINUTILS_PCREQUIRES" >&5 21183echo "$as_me: CoinUtils PCREQUIRES are $COINUTILS_PCREQUIRES" >&6;} 21184 fi 21185 21186 { echo "$as_me:$LINENO: OsiConicLib CFLAGS are $OSICONICLIB_CFLAGS" >&5 21187echo "$as_me: OsiConicLib CFLAGS are $OSICONICLIB_CFLAGS" >&6;} 21188 { echo "$as_me:$LINENO: OsiConicLib LIBS are $OSICONICLIB_LIBS" >&5 21189echo "$as_me: OsiConicLib LIBS are $OSICONICLIB_LIBS" >&6;} 21190 { echo "$as_me:$LINENO: OsiConicLib DEPENDENCIES are $OSICONICLIB_DEPENDENCIES" >&5 21191echo "$as_me: OsiConicLib DEPENDENCIES are $OSICONICLIB_DEPENDENCIES" >&6;} 21192 21193 fi 21194fi 21195 21196# Define the Makefile conditional 21197 21198 21199if test $coin_has_coinutils != notGiven && 21200 test $coin_has_coinutils != skipping; then 21201 COIN_HAS_COINUTILS_TRUE= 21202 COIN_HAS_COINUTILS_FALSE='#' 21203else 21204 COIN_HAS_COINUTILS_TRUE='#' 21205 COIN_HAS_COINUTILS_FALSE= 21206fi 21207 21208 21209 21210if test $coin_has_coinutils != yes ; then 21211 { { echo "$as_me:$LINENO: error: Required package CoinUtils not available." >&5 21212echo "$as_me: error: Required package CoinUtils not available." >&2;} 21213 { (exit 1); exit 1; }; } 21214fi 21215 21216echo "$as_me:$LINENO: checking for COIN-OR package Osi" >&5 21217echo $ECHO_N "checking for COIN-OR package Osi... $ECHO_C" >&6 21218 21219coin_has_osi=notGiven 21220 21221# check if user wants to skip package in any case 21222if test x"$COIN_SKIP_PROJECTS" != x; then 21223 for dir in $COIN_SKIP_PROJECTS; do 21224 if test $dir = "Osi"; then 21225 coin_has_osi=skipping 21226 fi 21227 done 21228fi 21229 21230if test "$coin_has_osi" != skipping; then 21231 21232# Check whether --with-m4_tolower(Osi) or --without-m4_tolower(Osi) was given. 21233if test "${with_osi+set}" = set; then 21234 withval="$with_osi" 21235 if test "$withval" = no ; then 21236 coin_has_osi=skipping 21237 fi 21238 21239fi; 21240fi 21241 21242OSI_LIBS= 21243OSI_CFLAGS= 21244OSI_DATA= 21245OSI_DEPENDENCIES= 21246OSI_PCLIBS= 21247OSI_PCREQUIRES= 21248 21249 21250 21251 21252 21253 21254 21255 21256 21257 21258 21259 21260 21261 21262 21263 21264 21265#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package 21266if test $coin_has_osi != skipping; then 21267 21268# Check whether --with-m4_tolower(Osi)-lib or --without-m4_tolower(Osi)-lib was given. 21269if test "${with_osi_lib+set}" = set; then 21270 withval="$with_osi_lib" 21271 if test "$withval" = no ; then 21272 coin_has_osi=skipping 21273 else 21274 coin_has_osi=yes 21275 OSI_LIBS="$withval" 21276 OSI_PCLIBS="$withval" 21277 21278 OSICONICLIB_PCLIBS="$withval $OSICONICLIB_PCLIBS" 21279 OSICONICLIB_LIBS="$withval $OSICONICLIB_LIBS" 21280 21281 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables 21282 if test -z "$PKG_CONFIG" ; then 21283 OSI_LIBS_INSTALLED="$withval" 21284 OSICONICLIB_LIBS_INSTALLED="$withval $OSICONICLIB_LIBS_INSTALLED" 21285 fi 21286 fi 21287 21288fi; 21289fi 21290 21291if test $coin_has_osi != skipping; then 21292 21293# Check whether --with-m4_tolower(Osi)-incdir or --without-m4_tolower(Osi)-incdir was given. 21294if test "${with_osi_incdir+set}" = set; then 21295 withval="$with_osi_incdir" 21296 if test "$withval" = no ; then 21297 coin_has_osi=skipping 21298 else 21299 coin_has_osi=yes 21300 OSI_CFLAGS="-I`${CYGPATH_W} $withval`" 21301 OSICONICLIB_CFLAGS="-I`${CYGPATH_W} $withval` $OSICONICLIB_CFLAGS" 21302 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables 21303 if test -z "$PKG_CONFIG" ; then 21304 OSI_CFLAGS_INSTALLED="$OSI_CFLAGS" 21305 OSICONICLIB_CFLAGS_INSTALLED="$OSI_CFLAGS $OSICONICLIB_CFLAGS_INSTALLED" 21306 fi 21307 fi 21308 21309fi; 21310fi 21311 21312if test $coin_has_osi != skipping; then 21313 21314# Check whether --with-m4_tolower(Osi)-datadir or --without-m4_tolower(Osi)-datadir was given. 21315if test "${with_osi_datadir+set}" = set; then 21316 withval="$with_osi_datadir" 21317 if test "$withval" = no ; then 21318 coin_has_osi=skipping 21319 else 21320 coin_has_osi=yes 21321 OSI_DATA="$withval" 21322 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables 21323 if test -z "$PKG_CONFIG" ; then 21324 OSI_DATA_INSTALLED="$withval" 21325 fi 21326 fi 21327 21328fi; 21329fi 21330 21331if test $coin_has_osi = notGiven; then 21332 if test -n "$PKG_CONFIG" ; then 21333 # set search path for pkg-config 21334 # need to export variable to be sure that the following pkg-config gets these values 21335 coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH" 21336 PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED" 21337 export PKG_CONFIG_PATH 21338 21339 # let pkg-config do it's magic 21340 21341 21342 21343if test -n "$PKG_CONFIG" ; then 21344 if $PKG_CONFIG --exists "osi"; then 21345 OSI_VERSIONS=`$PKG_CONFIG --modversion "osi" 2>/dev/null | tr '\n' ' '` 21346 cflags=`$PKG_CONFIG --cflags "osi" 2>/dev/null` 21347 # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files 21348 # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's 21349 # but only do this if is not trivial 21350 if test "$CYGPATH_W" != "echo" ; then 21351 # need to put into brackets since otherwise autoconf replaces the brackets in the sed command 21352 cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` 21353 fi 21354 OSI_CFLAGS="$cflags" 21355 OSI_LIBS=`$PKG_CONFIG --libs "osi" 2>/dev/null` 21356 OSI_DATA=`$PKG_CONFIG --variable=datadir "osi" 2>/dev/null` 21357 coin_has_osi=yes 21358 echo "$as_me:$LINENO: result: yes: $OSI_VERSIONS" >&5 21359echo "${ECHO_T}yes: $OSI_VERSIONS" >&6 21360 21361 # adjust linker flags for (i)cl compiler 21362 # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl) 21363 if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ; 21364 then 21365 OSI_LIBS=`echo " $OSI_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'` 21366 fi 21367 OSI_PCREQUIRES="osi" 21368 21369 # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in OsiConicLib 21370 21371 OSICONICLIB_PCREQUIRES="osi $OSICONICLIB_PCREQUIRES" 21372 OSICONICLIB_CFLAGS="$OSI_CFLAGS $OSICONICLIB_CFLAGS" 21373 OSICONICLIB_LIBS="$OSI_LIBS $OSICONICLIB_LIBS" 21374 21375 21376 21377 else 21378 OSI_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi"` 21379 coin_has_osi=notGiven 21380 echo "$as_me:$LINENO: result: not given: $OSI_PKG_ERRORS" >&5 21381echo "${ECHO_T}not given: $OSI_PKG_ERRORS" >&6 21382 21383 fi 21384else 21385 { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Osi without pkg-config\"" >&5 21386echo "$as_me: error: \"Cannot check for existance of module Osi without pkg-config\"" >&2;} 21387 { (exit 1); exit 1; }; } 21388fi 21389 21390 21391 21392 21393 # reset PKG_CONFIG_PATH variable 21394 PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH" 21395 export PKG_CONFIG_PATH 21396 21397 else 21398 echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5 21399echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6 21400 21401echo "$as_me:$LINENO: checking for COIN-OR package Osi (fallback)" >&5 21402echo $ECHO_N "checking for COIN-OR package Osi (fallback)... $ECHO_C" >&6 21403 21404coin_has_osi=notGiven 21405OSI_LIBS= 21406OSI_LIBS_INSTALLED= 21407OSI_CFLAGS= 21408OSI_CFLAGS_INSTALLED= 21409OSI_DATA= 21410OSI_DATA_INSTALLED= 21411OSI_PCLIBS= 21412OSI_PCREQUIRES= 21413 21414# initial list of dependencies is "osi", but we need to filter out version number specifications (= x, <= x, >= x, != x) 21415projtoprocess="osi" 21416 21417# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it 21418# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards 21419# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples 21420# also, we setup the DATA variable 21421allproj="" 21422allpcfiles="" 21423allpcifiles="" 21424while test "x$projtoprocess" != x ; do 21425 21426 for proj in $projtoprocess ; do 21427 # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it 21428 pcfile="" 21429 save_IFS="$IFS" 21430 IFS=":" 21431 for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do 21432 # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again 21433 if test -r "$dir/${proj}-uninstalled.pc" ; then 21434 pcfile="$dir/$proj-uninstalled.pc" 21435 if test -r "$dir/${proj}.pc" ; then 21436 pcifile="$dir/${proj}.pc" 21437 else 21438 { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5 21439echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;} 21440 pcifile= 21441 fi 21442 break 21443 fi 21444 done 21445 IFS="$save_IFS" 21446 21447 if test "x$pcfile" != x ; then 21448 # read dependencies from $pcfile and filter it 21449 projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ ]\{0,\}[^ ]\{1,\}//g'` 21450 21451 # add projrequires to the front of the list of projects that have to be processed next 21452 # at the same time, remove $proj from this list 21453 projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"` 21454 21455 # read DATA from $pcfile, if _DATA is still empty 21456 if test "x$OSI_DATA" = x ; then 21457 projdatadir= 21458 pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile` 21459 eval `sh -c "$pcfilemod"` 21460 OSI_DATA="$projdatadir" 21461 fi 21462 21463 allproj="$allproj $proj" 21464 allpcfiles="$pcfile:$allpcfiles" 21465 21466 else 21467 echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5 21468echo "${ECHO_T}no, dependency $proj not available" >&6 21469 allproj=fail 21470 break 2 21471 fi 21472 21473 if test "x$pcifile" != x ; then 21474 allpcifiles="$pcifile:$allpcifiles" 21475 21476 # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty 21477 if test "x$OSI_DATA_INSTALLED" = x ; then 21478 projdatadir= 21479 pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile` 21480 eval `sh -c "$pcifilemod"` 21481 if test "${CYGPATH_W}" != "echo"; then 21482 projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`" 21483 fi 21484 OSI_DATA_INSTALLED="$projdatadir" 21485 fi 21486 21487 fi 21488 21489 break 21490 done 21491 21492 # remove spaces on begin of $projtoprocess 21493 projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'` 21494 21495done 21496 21497if test "$allproj" != fail ; then 21498 21499 # now go through the list of .pc files and assemble compiler and linker flags 21500 # important is here to obey the reverse order that has been setup before, 21501 # since then libraries that are required by several others should be after these other libraries 21502 pcfilesprocessed="" 21503 21504 save_IFS="$IFS" 21505 IFS=":" 21506 for pcfile in $allpcfiles ; do 21507 21508 # if $pcfile has been processed already, skip this round 21509 if test "x$pcfilesprocessed" != x ; then 21510 for pcfiledone in $pcfilesprocessed ; do 21511 if test "$pcfiledone" = "$pcfile" ; then 21512 continue 2 21513 fi 21514 done 21515 fi 21516 21517 # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags: 21518 # replace "Libs:" by "echo projlibs=" 21519 # replace "Cflags:" by "echo projcflags=" 21520 # remove every line starting with <some word>: 21521 pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile` 21522 21523 # set projcflags and projlibs variables by running $pcfilemod 21524 # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default 21525 projcflags= 21526 projlibs= 21527 IFS="$save_IFS" 21528 eval `sh -c "$pcfilemod"` 21529 IFS=":" 21530 21531 # add CYGPATH_W cludge into include flags and set CFLAGS variable 21532 if test "${CYGPATH_W}" != "echo"; then 21533 projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` 21534 fi 21535 OSI_CFLAGS="$projcflags $OSI_CFLAGS" 21536 21537 # set LIBS variable 21538 OSI_LIBS="$projlibs $OSI_LIBS" 21539 21540 # remember that we have processed $pcfile 21541 pcfilesprocessed="$pcfilesprocessed:$pcfile" 21542 21543 done 21544 IFS="$save_IFS" 21545 21546 21547 # now go through the list of .pc files for installed projects and assemble compiler and linker flags 21548 # important is here again to obey the reverse order that has been setup before, 21549 # since then libraries that are required by several others should be after these other libraries 21550 pcfilesprocessed="" 21551 21552 save_IFS="$IFS" 21553 IFS=":" 21554 for pcfile in $allpcifiles ; do 21555 21556 # if $pcfile has been processed already, skip this round 21557 if test "x$pcfilesprocessed" != x ; then 21558 for pcfiledone in $pcfilesprocessed ; do 21559 if test "$pcfiledone" = "$pcfile" ; then 21560 continue 2 21561 fi 21562 done 21563 fi 21564 21565 # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags: 21566 # replace "Libs:" by "echo projlibs=" 21567 # replace "Cflags:" by "echo projcflags=" 21568 # remove every line starting with <some word>: 21569 pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile` 21570 21571 # set projcflags and projlibs variables by running $pcfilemod 21572 # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default 21573 projcflags= 21574 projlibs= 21575 IFS="$save_IFS" 21576 eval `sh -c "$pcfilemod"` 21577 IFS=":" 21578 21579 # add CYGPATH_W cludge into include flags and set CFLAGS variable 21580 if test "${CYGPATH_W}" != "echo"; then 21581 projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` 21582 fi 21583 OSI_CFLAGS_INSTALLED="$projcflags $OSI_CFLAGS_INSTALLED" 21584 21585 # set LIBS variable 21586 OSI_LIBS_INSTALLED="$projlibs $OSI_LIBS_INSTALLED" 21587 21588 # remember that we have processed $pcfile 21589 pcfilesprocessed="$pcfilesprocessed:$pcfile" 21590 21591 done 21592 IFS="$save_IFS" 21593 21594 21595 # finish up 21596 coin_has_osi=yes 21597 echo "$as_me:$LINENO: result: yes" >&5 21598echo "${ECHO_T}yes" >&6 21599 21600cat >>confdefs.h <<\_ACEOF 21601#define COIN_HAS_OSI 1 21602_ACEOF 21603 21604 21605 # adjust linker flags for (i)cl compiler 21606 # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl), 21607 # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`", 21608 # everything of the form "-lname" by "libname.lib", and 21609 # everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path` 21610 if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ; 21611 then 21612 OSI_LIBS=`echo " $OSI_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'` 21613 OSI_LIBS_INSTALLED=`echo " $OSI_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'` 21614 fi 21615 21616 OSI_PCREQUIRES="osi" 21617 21618 OSICONICLIB_PCREQUIRES="osi $OSICONICLIB_PCREQUIRES" 21619 OSICONICLIB_CFLAGS="$OSI_CFLAGS $OSICONICLIB_CFLAGS" 21620 OSICONICLIB_LIBS="$OSI_LIBS $OSICONICLIB_LIBS" 21621 OSICONICLIB_CFLAGS_INSTALLED="$OSI_CFLAGS_INSTALLED $OSICONICLIB_CFLAGS_INSTALLED" 21622 OSICONICLIB_LIBS_INSTALLED="$OSI_LIBS_INSTALLED $OSICONICLIB_LIBS_INSTALLED" 21623 21624 21625fi 21626 21627 21628 21629if test $coin_has_osi != notGiven && 21630 test $coin_has_osi != skipping; then 21631 COIN_HAS_OSI_TRUE= 21632 COIN_HAS_OSI_FALSE='#' 21633else 21634 COIN_HAS_OSI_TRUE='#' 21635 COIN_HAS_OSI_FALSE= 21636fi 21637 21638 21639 21640 fi 21641 21642else 21643 echo "$as_me:$LINENO: result: $coin_has_osi" >&5 21644echo "${ECHO_T}$coin_has_osi" >&6 21645fi 21646 21647if test $coin_has_osi != skipping && 21648 test $coin_has_osi != notGiven ; then 21649 21650cat >>confdefs.h <<\_ACEOF 21651#define COIN_HAS_OSI 1 21652_ACEOF 21653 21654 21655 # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given. 21656if test "${enable_interpackage_dependencies+set}" = set; then 21657 enableval="$enable_interpackage_dependencies" 21658 21659else 21660 enable_interpackage_dependencies=yes 21661fi; 21662 21663 if test $enable_interpackage_dependencies = yes ; then 21664 # construct dependencies variables from LIBS variables 21665 # we add an extra space in LIBS so we can substitute out everything starting with " -" 21666 # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows 21667 # then remove everything of the form -xxx 21668 # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl) 21669 OSI_DEPENDENCIES=`echo " $OSI_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'` 21670 21671 OSICONICLIB_DEPENDENCIES=`echo " $OSICONICLIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'` 21672 21673 fi 21674 21675 if test 1 = 0 ; then #change this test to enable a bit of debugging output 21676 if test -n "$OSI_CFLAGS" ; then 21677 { echo "$as_me:$LINENO: Osi CFLAGS are $OSI_CFLAGS" >&5 21678echo "$as_me: Osi CFLAGS are $OSI_CFLAGS" >&6;} 21679 fi 21680 if test -n "$OSI_LIBS" ; then 21681 { echo "$as_me:$LINENO: Osi LIBS are $OSI_LIBS" >&5 21682echo "$as_me: Osi LIBS are $OSI_LIBS" >&6;} 21683 fi 21684 if test -n "$OSI_DEPENDENCIES" ; then 21685 { echo "$as_me:$LINENO: Osi DEPENDENCIES are $OSI_DEPENDENCIES" >&5 21686echo "$as_me: Osi DEPENDENCIES are $OSI_DEPENDENCIES" >&6;} 21687 fi 21688 if test -n "$OSI_DATA" ; then 21689 { echo "$as_me:$LINENO: Osi DATA is $OSI_DATA" >&5 21690echo "$as_me: Osi DATA is $OSI_DATA" >&6;} 21691 fi 21692 if test -n "$OSI_PCLIBS" ; then 21693 { echo "$as_me:$LINENO: Osi PCLIBS are $OSI_PCLIBS" >&5 21694echo "$as_me: Osi PCLIBS are $OSI_PCLIBS" >&6;} 21695 fi 21696 if test -n "$OSI_PCREQUIRES" ; then 21697 { echo "$as_me:$LINENO: Osi PCREQUIRES are $OSI_PCREQUIRES" >&5 21698echo "$as_me: Osi PCREQUIRES are $OSI_PCREQUIRES" >&6;} 21699 fi 21700 21701 { echo "$as_me:$LINENO: OsiConicLib CFLAGS are $OSICONICLIB_CFLAGS" >&5 21702echo "$as_me: OsiConicLib CFLAGS are $OSICONICLIB_CFLAGS" >&6;} 21703 { echo "$as_me:$LINENO: OsiConicLib LIBS are $OSICONICLIB_LIBS" >&5 21704echo "$as_me: OsiConicLib LIBS are $OSICONICLIB_LIBS" >&6;} 21705 { echo "$as_me:$LINENO: OsiConicLib DEPENDENCIES are $OSICONICLIB_DEPENDENCIES" >&5 21706echo "$as_me: OsiConicLib DEPENDENCIES are $OSICONICLIB_DEPENDENCIES" >&6;} 21707 21708 fi 21709fi 21710 21711# Define the Makefile conditional 21712 21713 21714if test $coin_has_osi != notGiven && 21715 test $coin_has_osi != skipping; then 21716 COIN_HAS_OSI_TRUE= 21717 COIN_HAS_OSI_FALSE='#' 21718else 21719 COIN_HAS_OSI_TRUE='#' 21720 COIN_HAS_OSI_FALSE= 21721fi 21722 21723 21724 21725if test $coin_has_osi != yes ; then 21726 { { echo "$as_me:$LINENO: error: Required package Osi not available." >&5 21727echo "$as_me: error: Required package Osi not available." >&2;} 21728 { (exit 1); exit 1; }; } 21729fi 21730 21731############################################################################# 21732# Other dependencies # 21733############################################################################# 21734 21735ac_ext=cc 21736ac_cpp='$CXXCPP $CPPFLAGS' 21737ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21738ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21739ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21740 21741#if test x"" = x; then 21742# hdr="#include <cmath>" 21743#else 21744# hdr="" 21745#fi 21746#AC_CHECK_HEADERS([cmath],[],[],[$hdr]) 21747 21748for ac_header in cmath 21749do 21750as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 21751if eval "test \"\${$as_ac_Header+set}\" = set"; then 21752 echo "$as_me:$LINENO: checking for $ac_header" >&5 21753echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 21754if eval "test \"\${$as_ac_Header+set}\" = set"; then 21755 echo $ECHO_N "(cached) $ECHO_C" >&6 21756fi 21757echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 21758echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 21759else 21760 # Is the header compilable? 21761echo "$as_me:$LINENO: checking $ac_header usability" >&5 21762echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 21763cat >conftest.$ac_ext <<_ACEOF 21764/* confdefs.h. */ 21765_ACEOF 21766cat confdefs.h >>conftest.$ac_ext 21767cat >>conftest.$ac_ext <<_ACEOF 21768/* end confdefs.h. */ 21769$ac_includes_default 21770#include <$ac_header> 21771_ACEOF 21772rm -f conftest.$ac_objext 21773if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21774 (eval $ac_compile) 2>conftest.er1 21775 ac_status=$? 21776 grep -v '^ *+' conftest.er1 >conftest.err 21777 rm -f conftest.er1 21778 cat conftest.err >&5 21779 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21780 (exit $ac_status); } && 21781 { ac_try='test -z "$ac_cxx_werror_flag" 21782 || test ! -s conftest.err' 21783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21784 (eval $ac_try) 2>&5 21785 ac_status=$? 21786 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21787 (exit $ac_status); }; } && 21788 { ac_try='test -s conftest.$ac_objext' 21789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21790 (eval $ac_try) 2>&5 21791 ac_status=$? 21792 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21793 (exit $ac_status); }; }; then 21794 ac_header_compiler=yes 21795else 21796 echo "$as_me: failed program was:" >&5 21797sed 's/^/| /' conftest.$ac_ext >&5 21798 21799ac_header_compiler=no 21800fi 21801rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21802echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21803echo "${ECHO_T}$ac_header_compiler" >&6 21804 21805# Is the header present? 21806echo "$as_me:$LINENO: checking $ac_header presence" >&5 21807echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 21808cat >conftest.$ac_ext <<_ACEOF 21809/* confdefs.h. */ 21810_ACEOF 21811cat confdefs.h >>conftest.$ac_ext 21812cat >>conftest.$ac_ext <<_ACEOF 21813/* end confdefs.h. */ 21814#include <$ac_header> 21815_ACEOF 21816if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 21817 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 21818 ac_status=$? 21819 grep -v '^ *+' conftest.er1 >conftest.err 21820 rm -f conftest.er1 21821 cat conftest.err >&5 21822 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21823 (exit $ac_status); } >/dev/null; then 21824 if test -s conftest.err; then 21825 ac_cpp_err=$ac_cxx_preproc_warn_flag 21826 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 21827 else 21828 ac_cpp_err= 21829 fi 21830else 21831 ac_cpp_err=yes 21832fi 21833if test -z "$ac_cpp_err"; then 21834 ac_header_preproc=yes 21835else 21836 echo "$as_me: failed program was:" >&5 21837sed 's/^/| /' conftest.$ac_ext >&5 21838 21839 ac_header_preproc=no 21840fi 21841rm -f conftest.err conftest.$ac_ext 21842echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21843echo "${ECHO_T}$ac_header_preproc" >&6 21844 21845# So? What about this header? 21846case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in 21847 yes:no: ) 21848 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 21849echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 21850 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 21851echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 21852 ac_header_preproc=yes 21853 ;; 21854 no:yes:* ) 21855 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 21856echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 21857 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 21858echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 21859 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 21860echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 21861 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 21862echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 21863 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 21864echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 21865 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 21866echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 21867 ( 21868 cat <<\_ASBOX 21869## ----------------------------------------------------------------- ## 21870## Report this to https://github.com/aykutbulut/OSI-CONIC/issues/new ## 21871## ----------------------------------------------------------------- ## 21872_ASBOX 21873 ) | 21874 sed "s/^/$as_me: WARNING: /" >&2 21875 ;; 21876esac 21877echo "$as_me:$LINENO: checking for $ac_header" >&5 21878echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 21879if eval "test \"\${$as_ac_Header+set}\" = set"; then 21880 echo $ECHO_N "(cached) $ECHO_C" >&6 21881else 21882 eval "$as_ac_Header=\$ac_header_preproc" 21883fi 21884echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 21885echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 21886 21887fi 21888if test `eval echo '${'$as_ac_Header'}'` = yes; then 21889 cat >>confdefs.h <<_ACEOF 21890#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 21891_ACEOF 21892 21893fi 21894 21895done 21896 21897 21898if test "$ac_cv_header_cmath" != "yes"; then 21899 #if test x"" = x; then 21900# hdr="#include <math.h>" 21901#else 21902# hdr="" 21903#fi 21904#AC_CHECK_HEADERS([math.h],[],[],[$hdr]) 21905 21906for ac_header in math.h 21907do 21908as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 21909if eval "test \"\${$as_ac_Header+set}\" = set"; then 21910 echo "$as_me:$LINENO: checking for $ac_header" >&5 21911echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 21912if eval "test \"\${$as_ac_Header+set}\" = set"; then 21913 echo $ECHO_N "(cached) $ECHO_C" >&6 21914fi 21915echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 21916echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 21917else 21918 # Is the header compilable? 21919echo "$as_me:$LINENO: checking $ac_header usability" >&5 21920echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 21921cat >conftest.$ac_ext <<_ACEOF 21922/* confdefs.h. */ 21923_ACEOF 21924cat confdefs.h >>conftest.$ac_ext 21925cat >>conftest.$ac_ext <<_ACEOF 21926/* end confdefs.h. */ 21927$ac_includes_default 21928#include <$ac_header> 21929_ACEOF 21930rm -f conftest.$ac_objext 21931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21932 (eval $ac_compile) 2>conftest.er1 21933 ac_status=$? 21934 grep -v '^ *+' conftest.er1 >conftest.err 21935 rm -f conftest.er1 21936 cat conftest.err >&5 21937 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21938 (exit $ac_status); } && 21939 { ac_try='test -z "$ac_cxx_werror_flag" 21940 || test ! -s conftest.err' 21941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21942 (eval $ac_try) 2>&5 21943 ac_status=$? 21944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21945 (exit $ac_status); }; } && 21946 { ac_try='test -s conftest.$ac_objext' 21947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21948 (eval $ac_try) 2>&5 21949 ac_status=$? 21950 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21951 (exit $ac_status); }; }; then 21952 ac_header_compiler=yes 21953else 21954 echo "$as_me: failed program was:" >&5 21955sed 's/^/| /' conftest.$ac_ext >&5 21956 21957ac_header_compiler=no 21958fi 21959rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21960echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21961echo "${ECHO_T}$ac_header_compiler" >&6 21962 21963# Is the header present? 21964echo "$as_me:$LINENO: checking $ac_header presence" >&5 21965echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 21966cat >conftest.$ac_ext <<_ACEOF 21967/* confdefs.h. */ 21968_ACEOF 21969cat confdefs.h >>conftest.$ac_ext 21970cat >>conftest.$ac_ext <<_ACEOF 21971/* end confdefs.h. */ 21972#include <$ac_header> 21973_ACEOF 21974if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 21975 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 21976 ac_status=$? 21977 grep -v '^ *+' conftest.er1 >conftest.err 21978 rm -f conftest.er1 21979 cat conftest.err >&5 21980 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21981 (exit $ac_status); } >/dev/null; then 21982 if test -s conftest.err; then 21983 ac_cpp_err=$ac_cxx_preproc_warn_flag 21984 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 21985 else 21986 ac_cpp_err= 21987 fi 21988else 21989 ac_cpp_err=yes 21990fi 21991if test -z "$ac_cpp_err"; then 21992 ac_header_preproc=yes 21993else 21994 echo "$as_me: failed program was:" >&5 21995sed 's/^/| /' conftest.$ac_ext >&5 21996 21997 ac_header_preproc=no 21998fi 21999rm -f conftest.err conftest.$ac_ext 22000echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 22001echo "${ECHO_T}$ac_header_preproc" >&6 22002 22003# So? What about this header? 22004case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in 22005 yes:no: ) 22006 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 22007echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 22008 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 22009echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 22010 ac_header_preproc=yes 22011 ;; 22012 no:yes:* ) 22013 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 22014echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 22015 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 22016echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 22017 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 22018echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 22019 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 22020echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 22021 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 22022echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 22023 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 22024echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 22025 ( 22026 cat <<\_ASBOX 22027## ----------------------------------------------------------------- ## 22028## Report this to https://github.com/aykutbulut/OSI-CONIC/issues/new ## 22029## ----------------------------------------------------------------- ## 22030_ASBOX 22031 ) | 22032 sed "s/^/$as_me: WARNING: /" >&2 22033 ;; 22034esac 22035echo "$as_me:$LINENO: checking for $ac_header" >&5 22036echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 22037if eval "test \"\${$as_ac_Header+set}\" = set"; then 22038 echo $ECHO_N "(cached) $ECHO_C" >&6 22039else 22040 eval "$as_ac_Header=\$ac_header_preproc" 22041fi 22042echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 22043echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 22044 22045fi 22046if test `eval echo '${'$as_ac_Header'}'` = yes; then 22047 cat >>confdefs.h <<_ACEOF 22048#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 22049_ACEOF 22050 22051fi 22052 22053done 22054 22055 22056fi 22057ac_ext=c 22058ac_cpp='$CPP $CPPFLAGS' 22059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22061ac_compiler_gnu=$ac_cv_c_compiler_gnu 22062 22063 22064 22065############################################################################## 22066# VPATH links for example input files # 22067############################################################################## 22068# In case this is a VPATH configuration we need to make sure that the 22069# input files for the examples are available in the VPATH directory. 22070 22071############################################################################# 22072# Check for doxygen # 22073############################################################################# 22074 22075 22076{ echo "$as_me:$LINENO: configuring doxygen documentation options" >&5 22077echo "$as_me: configuring doxygen documentation options" >&6;} 22078 22079# Check to see if doxygen is available. 22080 22081# Extract the first word of "doxygen", so it can be a program name with args. 22082set dummy doxygen; ac_word=$2 22083echo "$as_me:$LINENO: checking for $ac_word" >&5 22084echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 22085if test "${ac_cv_prog_coin_have_doxygen+set}" = set; then 22086 echo $ECHO_N "(cached) $ECHO_C" >&6 22087else 22088 if test -n "$coin_have_doxygen"; then 22089 ac_cv_prog_coin_have_doxygen="$coin_have_doxygen" # Let the user override the test. 22090else 22091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22092for as_dir in $PATH 22093do 22094 IFS=$as_save_IFS 22095 test -z "$as_dir" && as_dir=. 22096 for ac_exec_ext in '' $ac_executable_extensions; do 22097 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22098 ac_cv_prog_coin_have_doxygen="yes" 22099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 22100 break 2 22101 fi 22102done 22103done 22104 22105 test -z "$ac_cv_prog_coin_have_doxygen" && ac_cv_prog_coin_have_doxygen="no" 22106fi 22107fi 22108coin_have_doxygen=$ac_cv_prog_coin_have_doxygen 22109if test -n "$coin_have_doxygen"; then 22110 echo "$as_me:$LINENO: result: $coin_have_doxygen" >&5 22111echo "${ECHO_T}$coin_have_doxygen" >&6 22112else 22113 echo "$as_me:$LINENO: result: no" >&5 22114echo "${ECHO_T}no" >&6 22115fi 22116 22117# Extract the first word of "latex", so it can be a program name with args. 22118set dummy latex; ac_word=$2 22119echo "$as_me:$LINENO: checking for $ac_word" >&5 22120echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 22121if test "${ac_cv_prog_coin_have_latex+set}" = set; then 22122 echo $ECHO_N "(cached) $ECHO_C" >&6 22123else 22124 if test -n "$coin_have_latex"; then 22125 ac_cv_prog_coin_have_latex="$coin_have_latex" # Let the user override the test. 22126else 22127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22128for as_dir in $PATH 22129do 22130 IFS=$as_save_IFS 22131 test -z "$as_dir" && as_dir=. 22132 for ac_exec_ext in '' $ac_executable_extensions; do 22133 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22134 ac_cv_prog_coin_have_latex="yes" 22135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 22136 break 2 22137 fi 22138done 22139done 22140 22141 test -z "$ac_cv_prog_coin_have_latex" && ac_cv_prog_coin_have_latex="no" 22142fi 22143fi 22144coin_have_latex=$ac_cv_prog_coin_have_latex 22145if test -n "$coin_have_latex"; then 22146 echo "$as_me:$LINENO: result: $coin_have_latex" >&5 22147echo "${ECHO_T}$coin_have_latex" >&6 22148else 22149 echo "$as_me:$LINENO: result: no" >&5 22150echo "${ECHO_T}no" >&6 22151fi 22152 22153 22154# Look for the dot tool from the graphviz package, unless the user has 22155# disabled it. 22156 22157 22158# Check whether --with-dot or --without-dot was given. 22159if test "${with_dot+set}" = set; then 22160 withval="$with_dot" 22161 22162else 22163 withval=yes 22164fi; 22165if test x"$withval" = xno ; then 22166 coin_doxy_usedot=NO 22167 echo "$as_me:$LINENO: checking for dot " >&5 22168echo $ECHO_N "checking for dot ... $ECHO_C" >&6 22169 echo "$as_me:$LINENO: result: disabled" >&5 22170echo "${ECHO_T}disabled" >&6 22171else 22172 # Extract the first word of "dot", so it can be a program name with args. 22173set dummy dot; ac_word=$2 22174echo "$as_me:$LINENO: checking for $ac_word" >&5 22175echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 22176if test "${ac_cv_prog_coin_doxy_usedot+set}" = set; then 22177 echo $ECHO_N "(cached) $ECHO_C" >&6 22178else 22179 if test -n "$coin_doxy_usedot"; then 22180 ac_cv_prog_coin_doxy_usedot="$coin_doxy_usedot" # Let the user override the test. 22181else 22182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22183for as_dir in $PATH 22184do 22185 IFS=$as_save_IFS 22186 test -z "$as_dir" && as_dir=. 22187 for ac_exec_ext in '' $ac_executable_extensions; do 22188 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22189 ac_cv_prog_coin_doxy_usedot="YES" 22190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 22191 break 2 22192 fi 22193done 22194done 22195 22196 test -z "$ac_cv_prog_coin_doxy_usedot" && ac_cv_prog_coin_doxy_usedot="NO" 22197fi 22198fi 22199coin_doxy_usedot=$ac_cv_prog_coin_doxy_usedot 22200if test -n "$coin_doxy_usedot"; then 22201 echo "$as_me:$LINENO: result: $coin_doxy_usedot" >&5 22202echo "${ECHO_T}$coin_doxy_usedot" >&6 22203else 22204 echo "$as_me:$LINENO: result: no" >&5 22205echo "${ECHO_T}no" >&6 22206fi 22207 22208fi 22209 22210# Generate a tag file name and a log file name 22211 22212coin_doxy_tagname=doxydoc/${PACKAGE}_doxy.tag 22213 22214coin_doxy_logname=doxydoc/${PACKAGE}_doxy.log 22215 22216 22217 22218if test $coin_have_doxygen = yes; then 22219 COIN_HAS_DOXYGEN_TRUE= 22220 COIN_HAS_DOXYGEN_FALSE='#' 22221else 22222 COIN_HAS_DOXYGEN_TRUE='#' 22223 COIN_HAS_DOXYGEN_FALSE= 22224fi 22225 22226 22227 22228if test $coin_have_latex = yes; then 22229 COIN_HAS_LATEX_TRUE= 22230 COIN_HAS_LATEX_FALSE='#' 22231else 22232 COIN_HAS_LATEX_TRUE='#' 22233 COIN_HAS_LATEX_FALSE= 22234fi 22235 22236 22237# Process the list of project names and massage them into possible doxygen 22238# doc'n directories. Prefer 1) classic external, source processed using 22239# a project-specific doxygen.conf, we use the tag file; 2) classic 22240# external, source processed using package doxygen.conf; 3) installed 22241# doxydoc. Alternatives 1) and 2) are only possible if the directory will be 22242# configured, which we can't know unless this is the package base configure, 22243# since coin_subdirs is only set there. Hence it's sufficient to check for 22244# membership. If we use a tag file from a classic external, exclude the 22245# source from doxygen processing when doxygen runs in the base directory. 22246 22247coin_doxy_tagfiles= 22248coin_doxy_excludes= 22249tmp="CoinUtils Osi" 22250for proj in $tmp ; do 22251 lc_proj=`echo $proj | tr [A-Z] [a-z]` 22252 echo "$as_me:$LINENO: checking for doxygen doc'n for $proj " >&5 22253echo $ECHO_N "checking for doxygen doc'n for $proj ... $ECHO_C" >&6 22254 doxytag=${lc_proj}_doxy.tag 22255 doxyfound=no 22256 # proj will be configured, hence doxydoc present in build tree 22257 doxysrcdir="${srcdir}/../${proj}" 22258 # AC_MSG_NOTICE([Considering $doxysrcdir (base)]) 22259 if test -d "$doxysrcdir" ; then 22260 # with a doxydoc directory? 22261 doxydir="$doxysrcdir/doxydoc" 22262 # AC_MSG_NOTICE([Considering $doxydir (base)]) 22263 # AC_MSG_NOTICE([Subdirs: $coin_subdirs)]) 22264 if test -d "$doxydir" ; then 22265 # use tag file; don't process source 22266 doxydir="../${proj}/doxydoc" 22267 coin_doxy_tagfiles="$coin_doxy_tagfiles $doxydir/$doxytag=../../$doxydir/html" 22268 echo "$as_me:$LINENO: result: $doxydir (tag)" >&5 22269echo "${ECHO_T}$doxydir (tag)" >&6 22270 coin_doxy_excludes="$coin_doxy_excludes */${proj}" 22271 else 22272 # will process the source -- nothing further to be done here 22273 echo "$as_me:$LINENO: result: $doxysrcdir (src)" >&5 22274echo "${ECHO_T}$doxysrcdir (src)" >&6 22275 fi 22276 doxyfound=yes 22277 fi 22278 # Not built, fall back to installed tag file 22279 if test $doxyfound = no ; then 22280 eval doxydir="${datadir}/coin/doc/${proj}/doxydoc" 22281 # AC_MSG_NOTICE([Considering $doxydir (install)]) 22282 # AC_MSG_NOTICE([Subdirs: $coin_subdirs)]) 22283 coin_doxy_tagfiles="$coin_doxy_tagfiles $doxydir/$doxytag=$doxydir/html" 22284 echo "$as_me:$LINENO: result: $doxydir (tag)" >&5 22285echo "${ECHO_T}$doxydir (tag)" >&6 22286 fi 22287done 22288 22289 22290 22291 22292 22293############################################################################## 22294# Finishing up by writing all the output # 22295############################################################################## 22296# Here list all the files that configure should create (except for the 22297# configuration header file) 22298 ac_config_files="$ac_config_files Makefile src/Makefile osiconic.pc osiconic-uninstalled.pc" 22299 22300 22301 ac_config_files="$ac_config_files doxydoc/doxygen.conf" 22302 22303 22304# Here put the location and name of the configuration header file 22305 ac_config_headers="$ac_config_headers src/config.h src/config_osiconic.h" 22306 22307 22308# Finally, we let configure write all the output... 22309 22310 22311 22312 22313echo "$as_me:$LINENO: checking which command should be used to link input files" >&5 22314echo $ECHO_N "checking which command should be used to link input files... $ECHO_C" >&6 22315coin_link_input_cmd="$LN_S" 22316case "$CC" in 22317 clang* ) ;; 22318 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 22319 coin_link_input_cmd=cp ;; 22320esac 22321echo "$as_me:$LINENO: result: $coin_link_input_cmd" >&5 22322echo "${ECHO_T}$coin_link_input_cmd" >&6 22323 22324 22325 22326if test x$coin_skip_ac_output != xyes; then 22327 22328 # library extension 22329 22330 case "$CC" in 22331 clang* ) 22332 LIBEXT=a ;; 22333 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 22334 LIBEXT=lib ;; 22335 *) LIBEXT=a ;; 22336 esac 22337 22338 # Define VPATH_DISTCLEANFILES to be everything that needs to be 22339 # cleaned for distclean in a vpath configuration 22340 22341 VPATH_DISTCLEANFILES="$coin_vpath_link_files" 22342 22343 # Take out subdirectories if their configuration concluded that they 22344 # don't need to be compiled 22345 if test x"$coin_ac_skip_subdirs" != x; then 22346 new_subdirs= 22347 for i in $subdirs; do 22348 skipme=no 22349 for j in $coin_ac_skip_subdirs; do 22350 if test $i = $j; then 22351 skipme=yes; 22352 fi 22353 done 22354 if test $skipme = no; then 22355 new_subdirs="$new_subdirs $i" 22356 fi 22357 done 22358 subdirs="$new_subdirs" 22359 fi 22360 22361 # need to come before AC_OUTPUT 22362 if test x$coin_projectdir != xyes; then 22363 # write coin_subdirs to a file so that project configuration knows where to find uninstalled projects 22364 echo $coin_subdirs > coin_subdirs.txt 22365 else 22366 # substitute for OBJDIR, needed to setup .pc file for uninstalled project 22367 ABSBUILDDIR="`pwd`" 22368 22369 fi 22370 22371 cat >confcache <<\_ACEOF 22372# This file is a shell script that caches the results of configure 22373# tests run on this system so they can be shared between configure 22374# scripts and configure runs, see configure's option --config-cache. 22375# It is not useful on other systems. If it contains results you don't 22376# want to keep, you may remove or edit it. 22377# 22378# config.status only pays attention to the cache file if you give it 22379# the --recheck option to rerun configure. 22380# 22381# `ac_cv_env_foo' variables (set or unset) will be overridden when 22382# loading this file, other *unset* `ac_cv_foo' will be assigned the 22383# following values. 22384 22385_ACEOF 22386 22387# The following way of writing the cache mishandles newlines in values, 22388# but we know of no workaround that is simple, portable, and efficient. 22389# So, don't put newlines in cache variables' values. 22390# Ultrix sh set writes to stderr and can't be redirected directly, 22391# and sets the high bit in the cache file unless we assign to the vars. 22392{ 22393 (set) 2>&1 | 22394 case `(ac_space=' '; set | grep ac_space) 2>&1` in 22395 *ac_space=\ *) 22396 # `set' does not quote correctly, so add quotes (double-quote 22397 # substitution turns \\\\ into \\, and sed turns \\ into \). 22398 sed -n \ 22399 "s/'/'\\\\''/g; 22400 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 22401 ;; 22402 *) 22403 # `set' quotes correctly as required by POSIX, so do not add quotes. 22404 sed -n \ 22405 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 22406 ;; 22407 esac; 22408} | 22409 sed ' 22410 t clear 22411 : clear 22412 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 22413 t end 22414 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 22415 : end' >>confcache 22416if diff $cache_file confcache >/dev/null 2>&1; then :; else 22417 if test -w $cache_file; then 22418 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 22419 cat confcache >$cache_file 22420 else 22421 echo "not updating unwritable cache $cache_file" 22422 fi 22423fi 22424rm -f confcache 22425 22426test "x$prefix" = xNONE && prefix=$ac_default_prefix 22427# Let make expand exec_prefix. 22428test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 22429 22430# VPATH may cause trouble with some makes, so we remove $(srcdir), 22431# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 22432# trailing colons and then remove the whole line if VPATH becomes empty 22433# (actually we leave an empty line to preserve line numbers). 22434if test "x$srcdir" = x.; then 22435 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 22436s/:*\$(srcdir):*/:/; 22437s/:*\${srcdir}:*/:/; 22438s/:*@srcdir@:*/:/; 22439s/^\([^=]*=[ ]*\):*/\1/; 22440s/:*$//; 22441s/^[^=]*=[ ]*$//; 22442}' 22443fi 22444 22445DEFS=-DHAVE_CONFIG_H 22446 22447ac_libobjs= 22448ac_ltlibobjs= 22449for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 22450 # 1. Remove the extension, and $U if already installed. 22451 ac_i=`echo "$ac_i" | 22452 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 22453 # 2. Add them. 22454 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 22455 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 22456done 22457LIBOBJS=$ac_libobjs 22458 22459LTLIBOBJS=$ac_ltlibobjs 22460 22461 22462if test -z "${ALWAYS_FALSE_TRUE}" && test -z "${ALWAYS_FALSE_FALSE}"; then 22463 { { echo "$as_me:$LINENO: error: conditional \"ALWAYS_FALSE\" was never defined. 22464Usually this means the macro was only invoked conditionally." >&5 22465echo "$as_me: error: conditional \"ALWAYS_FALSE\" was never defined. 22466Usually this means the macro was only invoked conditionally." >&2;} 22467 { (exit 1); exit 1; }; } 22468fi 22469if test -z "${COIN_CC_IS_CL_TRUE}" && test -z "${COIN_CC_IS_CL_FALSE}"; then 22470 { { echo "$as_me:$LINENO: error: conditional \"COIN_CC_IS_CL\" was never defined. 22471Usually this means the macro was only invoked conditionally." >&5 22472echo "$as_me: error: conditional \"COIN_CC_IS_CL\" was never defined. 22473Usually this means the macro was only invoked conditionally." >&2;} 22474 { (exit 1); exit 1; }; } 22475fi 22476if test -z "${COIN_CXX_IS_CL_TRUE}" && test -z "${COIN_CXX_IS_CL_FALSE}"; then 22477 { { echo "$as_me:$LINENO: error: conditional \"COIN_CXX_IS_CL\" was never defined. 22478Usually this means the macro was only invoked conditionally." >&5 22479echo "$as_me: error: conditional \"COIN_CXX_IS_CL\" was never defined. 22480Usually this means the macro was only invoked conditionally." >&2;} 22481 { (exit 1); exit 1; }; } 22482fi 22483if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 22484 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 22485Usually this means the macro was only invoked conditionally." >&5 22486echo "$as_me: error: conditional \"AMDEP\" was never defined. 22487Usually this means the macro was only invoked conditionally." >&2;} 22488 { (exit 1); exit 1; }; } 22489fi 22490if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 22491 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 22492Usually this means the macro was only invoked conditionally." >&5 22493echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 22494Usually this means the macro was only invoked conditionally." >&2;} 22495 { (exit 1); exit 1; }; } 22496fi 22497if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 22498 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 22499Usually this means the macro was only invoked conditionally." >&5 22500echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 22501Usually this means the macro was only invoked conditionally." >&2;} 22502 { (exit 1); exit 1; }; } 22503fi 22504if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 22505 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 22506Usually this means the macro was only invoked conditionally." >&5 22507echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 22508Usually this means the macro was only invoked conditionally." >&2;} 22509 { (exit 1); exit 1; }; } 22510fi 22511if test -z "${HAVE_EXTERNALS_TRUE}" && test -z "${HAVE_EXTERNALS_FALSE}"; then 22512 { { echo "$as_me:$LINENO: error: conditional \"HAVE_EXTERNALS\" was never defined. 22513Usually this means the macro was only invoked conditionally." >&5 22514echo "$as_me: error: conditional \"HAVE_EXTERNALS\" was never defined. 22515Usually this means the macro was only invoked conditionally." >&2;} 22516 { (exit 1); exit 1; }; } 22517fi 22518if test -z "${DEPENDENCY_LINKING_TRUE}" && test -z "${DEPENDENCY_LINKING_FALSE}"; then 22519 { { echo "$as_me:$LINENO: error: conditional \"DEPENDENCY_LINKING\" was never defined. 22520Usually this means the macro was only invoked conditionally." >&5 22521echo "$as_me: error: conditional \"DEPENDENCY_LINKING\" was never defined. 22522Usually this means the macro was only invoked conditionally." >&2;} 22523 { (exit 1); exit 1; }; } 22524fi 22525if test -z "${COIN_HAS_PKGCONFIG_TRUE}" && test -z "${COIN_HAS_PKGCONFIG_FALSE}"; then 22526 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_PKGCONFIG\" was never defined. 22527Usually this means the macro was only invoked conditionally." >&5 22528echo "$as_me: error: conditional \"COIN_HAS_PKGCONFIG\" was never defined. 22529Usually this means the macro was only invoked conditionally." >&2;} 22530 { (exit 1); exit 1; }; } 22531fi 22532if test -z "${COIN_HAS_COINUTILS_TRUE}" && test -z "${COIN_HAS_COINUTILS_FALSE}"; then 22533 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_COINUTILS\" was never defined. 22534Usually this means the macro was only invoked conditionally." >&5 22535echo "$as_me: error: conditional \"COIN_HAS_COINUTILS\" was never defined. 22536Usually this means the macro was only invoked conditionally." >&2;} 22537 { (exit 1); exit 1; }; } 22538fi 22539if test -z "${COIN_HAS_COINUTILS_TRUE}" && test -z "${COIN_HAS_COINUTILS_FALSE}"; then 22540 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_COINUTILS\" was never defined. 22541Usually this means the macro was only invoked conditionally." >&5 22542echo "$as_me: error: conditional \"COIN_HAS_COINUTILS\" was never defined. 22543Usually this means the macro was only invoked conditionally." >&2;} 22544 { (exit 1); exit 1; }; } 22545fi 22546if test -z "${COIN_HAS_OSI_TRUE}" && test -z "${COIN_HAS_OSI_FALSE}"; then 22547 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_OSI\" was never defined. 22548Usually this means the macro was only invoked conditionally." >&5 22549echo "$as_me: error: conditional \"COIN_HAS_OSI\" was never defined. 22550Usually this means the macro was only invoked conditionally." >&2;} 22551 { (exit 1); exit 1; }; } 22552fi 22553if test -z "${COIN_HAS_OSI_TRUE}" && test -z "${COIN_HAS_OSI_FALSE}"; then 22554 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_OSI\" was never defined. 22555Usually this means the macro was only invoked conditionally." >&5 22556echo "$as_me: error: conditional \"COIN_HAS_OSI\" was never defined. 22557Usually this means the macro was only invoked conditionally." >&2;} 22558 { (exit 1); exit 1; }; } 22559fi 22560if test -z "${COIN_HAS_DOXYGEN_TRUE}" && test -z "${COIN_HAS_DOXYGEN_FALSE}"; then 22561 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_DOXYGEN\" was never defined. 22562Usually this means the macro was only invoked conditionally." >&5 22563echo "$as_me: error: conditional \"COIN_HAS_DOXYGEN\" was never defined. 22564Usually this means the macro was only invoked conditionally." >&2;} 22565 { (exit 1); exit 1; }; } 22566fi 22567if test -z "${COIN_HAS_LATEX_TRUE}" && test -z "${COIN_HAS_LATEX_FALSE}"; then 22568 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_LATEX\" was never defined. 22569Usually this means the macro was only invoked conditionally." >&5 22570echo "$as_me: error: conditional \"COIN_HAS_LATEX\" was never defined. 22571Usually this means the macro was only invoked conditionally." >&2;} 22572 { (exit 1); exit 1; }; } 22573fi 22574 22575: ${CONFIG_STATUS=./config.status} 22576ac_clean_files_save=$ac_clean_files 22577ac_clean_files="$ac_clean_files $CONFIG_STATUS" 22578{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 22579echo "$as_me: creating $CONFIG_STATUS" >&6;} 22580cat >$CONFIG_STATUS <<_ACEOF 22581#! $SHELL 22582# Generated by $as_me. 22583# Run this file to recreate the current configuration. 22584# Compiler output produced by configure, useful for debugging 22585# configure, is in config.log if it exists. 22586 22587debug=false 22588ac_cs_recheck=false 22589ac_cs_silent=false 22590SHELL=\${CONFIG_SHELL-$SHELL} 22591_ACEOF 22592 22593cat >>$CONFIG_STATUS <<\_ACEOF 22594## --------------------- ## 22595## M4sh Initialization. ## 22596## --------------------- ## 22597 22598# Be Bourne compatible 22599if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 22600 emulate sh 22601 NULLCMD=: 22602 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 22603 # is contrary to our usage. Disable this feature. 22604 alias -g '${1+"$@"}'='"$@"' 22605elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 22606 set -o posix 22607fi 22608DUALCASE=1; export DUALCASE # for MKS sh 22609 22610# Support unset when possible. 22611if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 22612 as_unset=unset 22613else 22614 as_unset=false 22615fi 22616 22617 22618# Work around bugs in pre-3.0 UWIN ksh. 22619$as_unset ENV MAIL MAILPATH 22620PS1='$ ' 22621PS2='> ' 22622PS4='+ ' 22623 22624# NLS nuisances. 22625for as_var in \ 22626 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 22627 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 22628 LC_TELEPHONE LC_TIME 22629do 22630 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 22631 eval $as_var=C; export $as_var 22632 else 22633 $as_unset $as_var 22634 fi 22635done 22636 22637# Required to use basename. 22638if expr a : '\(a\)' >/dev/null 2>&1; then 22639 as_expr=expr 22640else 22641 as_expr=false 22642fi 22643 22644if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 22645 as_basename=basename 22646else 22647 as_basename=false 22648fi 22649 22650 22651# Name of the executable. 22652as_me=`$as_basename "$0" || 22653$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 22654 X"$0" : 'X\(//\)$' \| \ 22655 X"$0" : 'X\(/\)$' \| \ 22656 . : '\(.\)' 2>/dev/null || 22657echo X/"$0" | 22658 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 22659 /^X\/\(\/\/\)$/{ s//\1/; q; } 22660 /^X\/\(\/\).*/{ s//\1/; q; } 22661 s/.*/./; q'` 22662 22663 22664# PATH needs CR, and LINENO needs CR and PATH. 22665# Avoid depending upon Character Ranges. 22666as_cr_letters='abcdefghijklmnopqrstuvwxyz' 22667as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 22668as_cr_Letters=$as_cr_letters$as_cr_LETTERS 22669as_cr_digits='0123456789' 22670as_cr_alnum=$as_cr_Letters$as_cr_digits 22671 22672# The user is always right. 22673if test "${PATH_SEPARATOR+set}" != set; then 22674 echo "#! /bin/sh" >conf$$.sh 22675 echo "exit 0" >>conf$$.sh 22676 chmod +x conf$$.sh 22677 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 22678 PATH_SEPARATOR=';' 22679 else 22680 PATH_SEPARATOR=: 22681 fi 22682 rm -f conf$$.sh 22683fi 22684 22685 22686 as_lineno_1=$LINENO 22687 as_lineno_2=$LINENO 22688 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 22689 test "x$as_lineno_1" != "x$as_lineno_2" && 22690 test "x$as_lineno_3" = "x$as_lineno_2" || { 22691 # Find who we are. Look in the path if we contain no path at all 22692 # relative or not. 22693 case $0 in 22694 *[\\/]* ) as_myself=$0 ;; 22695 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22696for as_dir in $PATH 22697do 22698 IFS=$as_save_IFS 22699 test -z "$as_dir" && as_dir=. 22700 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 22701done 22702 22703 ;; 22704 esac 22705 # We did not find ourselves, most probably we were run as `sh COMMAND' 22706 # in which case we are not to be found in the path. 22707 if test "x$as_myself" = x; then 22708 as_myself=$0 22709 fi 22710 if test ! -f "$as_myself"; then 22711 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 22712echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 22713 { (exit 1); exit 1; }; } 22714 fi 22715 case $CONFIG_SHELL in 22716 '') 22717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22718for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 22719do 22720 IFS=$as_save_IFS 22721 test -z "$as_dir" && as_dir=. 22722 for as_base in sh bash ksh sh5; do 22723 case $as_dir in 22724 /*) 22725 if ("$as_dir/$as_base" -c ' 22726 as_lineno_1=$LINENO 22727 as_lineno_2=$LINENO 22728 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 22729 test "x$as_lineno_1" != "x$as_lineno_2" && 22730 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 22731 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 22732 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 22733 CONFIG_SHELL=$as_dir/$as_base 22734 export CONFIG_SHELL 22735 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 22736 fi;; 22737 esac 22738 done 22739done 22740;; 22741 esac 22742 22743 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 22744 # uniformly replaced by the line number. The first 'sed' inserts a 22745 # line-number line before each line; the second 'sed' does the real 22746 # work. The second script uses 'N' to pair each line-number line 22747 # with the numbered line, and appends trailing '-' during 22748 # substitution so that $LINENO is not a special case at line end. 22749 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 22750 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 22751 sed '=' <$as_myself | 22752 sed ' 22753 N 22754 s,$,-, 22755 : loop 22756 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 22757 t loop 22758 s,-$,, 22759 s,^['$as_cr_digits']*\n,, 22760 ' >$as_me.lineno && 22761 chmod +x $as_me.lineno || 22762 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 22763echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 22764 { (exit 1); exit 1; }; } 22765 22766 # Don't try to exec as it changes $[0], causing all sort of problems 22767 # (the dirname of $[0] is not the place where we might find the 22768 # original and so on. Autoconf is especially sensible to this). 22769 . ./$as_me.lineno 22770 # Exit status is that of the last command. 22771 exit 22772} 22773 22774 22775case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 22776 *c*,-n*) ECHO_N= ECHO_C=' 22777' ECHO_T=' ' ;; 22778 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 22779 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 22780esac 22781 22782if expr a : '\(a\)' >/dev/null 2>&1; then 22783 as_expr=expr 22784else 22785 as_expr=false 22786fi 22787 22788rm -f conf$$ conf$$.exe conf$$.file 22789echo >conf$$.file 22790if ln -s conf$$.file conf$$ 2>/dev/null; then 22791 # We could just check for DJGPP; but this test a) works b) is more generic 22792 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 22793 if test -f conf$$.exe; then 22794 # Don't use ln at all; we don't have any links 22795 as_ln_s='cp -p' 22796 else 22797 as_ln_s='ln -s' 22798 fi 22799elif ln conf$$.file conf$$ 2>/dev/null; then 22800 as_ln_s=ln 22801else 22802 as_ln_s='cp -p' 22803fi 22804rm -f conf$$ conf$$.exe conf$$.file 22805 22806if mkdir -p . 2>/dev/null; then 22807 as_mkdir_p=: 22808else 22809 test -d ./-p && rmdir ./-p 22810 as_mkdir_p=false 22811fi 22812 22813as_executable_p="test -f" 22814 22815# Sed expression to map a string onto a valid CPP name. 22816as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 22817 22818# Sed expression to map a string onto a valid variable name. 22819as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 22820 22821 22822# IFS 22823# We need space, tab and new line, in precisely that order. 22824as_nl=' 22825' 22826IFS=" $as_nl" 22827 22828# CDPATH. 22829$as_unset CDPATH 22830 22831exec 6>&1 22832 22833# Open the log real soon, to keep \$[0] and so on meaningful, and to 22834# report actual input values of CONFIG_FILES etc. instead of their 22835# values after options handling. Logging --version etc. is OK. 22836exec 5>>config.log 22837{ 22838 echo 22839 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 22840## Running $as_me. ## 22841_ASBOX 22842} >&5 22843cat >&5 <<_CSEOF 22844 22845This file was extended by OsiConic $as_me 1.0.0, which was 22846generated by GNU Autoconf 2.59. Invocation command line was 22847 22848 CONFIG_FILES = $CONFIG_FILES 22849 CONFIG_HEADERS = $CONFIG_HEADERS 22850 CONFIG_LINKS = $CONFIG_LINKS 22851 CONFIG_COMMANDS = $CONFIG_COMMANDS 22852 $ $0 $@ 22853 22854_CSEOF 22855echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 22856echo >&5 22857_ACEOF 22858 22859# Files that config.status was made for. 22860if test -n "$ac_config_files"; then 22861 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 22862fi 22863 22864if test -n "$ac_config_headers"; then 22865 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 22866fi 22867 22868if test -n "$ac_config_links"; then 22869 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 22870fi 22871 22872if test -n "$ac_config_commands"; then 22873 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 22874fi 22875 22876cat >>$CONFIG_STATUS <<\_ACEOF 22877 22878ac_cs_usage="\ 22879\`$as_me' instantiates files from templates according to the 22880current configuration. 22881 22882Usage: $0 [OPTIONS] [FILE]... 22883 22884 -h, --help print this help, then exit 22885 -V, --version print version number, then exit 22886 -q, --quiet do not print progress messages 22887 -d, --debug don't remove temporary files 22888 --recheck update $as_me by reconfiguring in the same conditions 22889 --file=FILE[:TEMPLATE] 22890 instantiate the configuration file FILE 22891 --header=FILE[:TEMPLATE] 22892 instantiate the configuration header FILE 22893 22894Configuration files: 22895$config_files 22896 22897Configuration headers: 22898$config_headers 22899 22900Configuration commands: 22901$config_commands 22902 22903Report bugs to <bug-autoconf@gnu.org>." 22904_ACEOF 22905 22906cat >>$CONFIG_STATUS <<_ACEOF 22907ac_cs_version="\\ 22908OsiConic config.status 1.0.0 22909configured by $0, generated by GNU Autoconf 2.59, 22910 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 22911 22912Copyright (C) 2003 Free Software Foundation, Inc. 22913This config.status script is free software; the Free Software Foundation 22914gives unlimited permission to copy, distribute and modify it." 22915srcdir=$srcdir 22916INSTALL="$INSTALL" 22917_ACEOF 22918 22919cat >>$CONFIG_STATUS <<\_ACEOF 22920# If no file are specified by the user, then we need to provide default 22921# value. By we need to know if files were specified by the user. 22922ac_need_defaults=: 22923while test $# != 0 22924do 22925 case $1 in 22926 --*=*) 22927 ac_option=`expr "x$1" : 'x\([^=]*\)='` 22928 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 22929 ac_shift=: 22930 ;; 22931 -*) 22932 ac_option=$1 22933 ac_optarg=$2 22934 ac_shift=shift 22935 ;; 22936 *) # This is not an option, so the user has probably given explicit 22937 # arguments. 22938 ac_option=$1 22939 ac_need_defaults=false;; 22940 esac 22941 22942 case $ac_option in 22943 # Handling of the options. 22944_ACEOF 22945cat >>$CONFIG_STATUS <<\_ACEOF 22946 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 22947 ac_cs_recheck=: ;; 22948 --version | --vers* | -V ) 22949 echo "$ac_cs_version"; exit 0 ;; 22950 --he | --h) 22951 # Conflict between --help and --header 22952 { { echo "$as_me:$LINENO: error: ambiguous option: $1 22953Try \`$0 --help' for more information." >&5 22954echo "$as_me: error: ambiguous option: $1 22955Try \`$0 --help' for more information." >&2;} 22956 { (exit 1); exit 1; }; };; 22957 --help | --hel | -h ) 22958 echo "$ac_cs_usage"; exit 0 ;; 22959 --debug | --d* | -d ) 22960 debug=: ;; 22961 --file | --fil | --fi | --f ) 22962 $ac_shift 22963 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 22964 ac_need_defaults=false;; 22965 --header | --heade | --head | --hea ) 22966 $ac_shift 22967 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 22968 ac_need_defaults=false;; 22969 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 22970 | -silent | --silent | --silen | --sile | --sil | --si | --s) 22971 ac_cs_silent=: ;; 22972 22973 # This is an error. 22974 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 22975Try \`$0 --help' for more information." >&5 22976echo "$as_me: error: unrecognized option: $1 22977Try \`$0 --help' for more information." >&2;} 22978 { (exit 1); exit 1; }; } ;; 22979 22980 *) ac_config_targets="$ac_config_targets $1" ;; 22981 22982 esac 22983 shift 22984done 22985 22986ac_configure_extra_args= 22987 22988if $ac_cs_silent; then 22989 exec 6>/dev/null 22990 ac_configure_extra_args="$ac_configure_extra_args --silent" 22991fi 22992 22993_ACEOF 22994cat >>$CONFIG_STATUS <<_ACEOF 22995if \$ac_cs_recheck; then 22996 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 22997 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 22998fi 22999 23000_ACEOF 23001 23002cat >>$CONFIG_STATUS <<_ACEOF 23003# 23004# INIT-COMMANDS section. 23005# 23006 23007AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 23008 23009_ACEOF 23010 23011 23012 23013cat >>$CONFIG_STATUS <<\_ACEOF 23014for ac_config_target in $ac_config_targets 23015do 23016 case "$ac_config_target" in 23017 # Handling of arguments. 23018 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 23019 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 23020 "osiconic.pc" ) CONFIG_FILES="$CONFIG_FILES osiconic.pc" ;; 23021 "osiconic-uninstalled.pc" ) CONFIG_FILES="$CONFIG_FILES osiconic-uninstalled.pc" ;; 23022 "doxydoc/doxygen.conf" ) CONFIG_FILES="$CONFIG_FILES doxydoc/doxygen.conf" ;; 23023 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 23024 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; 23025 "src/config_osiconic.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config_osiconic.h" ;; 23026 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 23027echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 23028 { (exit 1); exit 1; }; };; 23029 esac 23030done 23031 23032# If the user did not use the arguments to specify the items to instantiate, 23033# then the envvar interface is used. Set only those that are not. 23034# We use the long form for the default assignment because of an extremely 23035# bizarre bug on SunOS 4.1.3. 23036if $ac_need_defaults; then 23037 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 23038 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 23039 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 23040fi 23041 23042# Have a temporary directory for convenience. Make it in the build tree 23043# simply because there is no reason to put it here, and in addition, 23044# creating and moving files from /tmp can sometimes cause problems. 23045# Create a temporary directory, and hook for its removal unless debugging. 23046$debug || 23047{ 23048 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 23049 trap '{ (exit 1); exit 1; }' 1 2 13 15 23050} 23051 23052# Create a (secure) tmp directory for tmp files. 23053 23054{ 23055 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 23056 test -n "$tmp" && test -d "$tmp" 23057} || 23058{ 23059 tmp=./confstat$$-$RANDOM 23060 (umask 077 && mkdir $tmp) 23061} || 23062{ 23063 echo "$me: cannot create a temporary directory in ." >&2 23064 { (exit 1); exit 1; } 23065} 23066 23067_ACEOF 23068 23069cat >>$CONFIG_STATUS <<_ACEOF 23070 23071# 23072# CONFIG_FILES section. 23073# 23074 23075# No need to generate the scripts if there are no CONFIG_FILES. 23076# This happens for instance when ./config.status config.h 23077if test -n "\$CONFIG_FILES"; then 23078 # Protect against being on the right side of a sed subst in config.status. 23079 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 23080 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 23081s,@SHELL@,$SHELL,;t t 23082s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 23083s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 23084s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 23085s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 23086s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 23087s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 23088s,@exec_prefix@,$exec_prefix,;t t 23089s,@prefix@,$prefix,;t t 23090s,@program_transform_name@,$program_transform_name,;t t 23091s,@bindir@,$bindir,;t t 23092s,@sbindir@,$sbindir,;t t 23093s,@libexecdir@,$libexecdir,;t t 23094s,@datadir@,$datadir,;t t 23095s,@sysconfdir@,$sysconfdir,;t t 23096s,@sharedstatedir@,$sharedstatedir,;t t 23097s,@localstatedir@,$localstatedir,;t t 23098s,@libdir@,$libdir,;t t 23099s,@includedir@,$includedir,;t t 23100s,@oldincludedir@,$oldincludedir,;t t 23101s,@infodir@,$infodir,;t t 23102s,@mandir@,$mandir,;t t 23103s,@build_alias@,$build_alias,;t t 23104s,@host_alias@,$host_alias,;t t 23105s,@target_alias@,$target_alias,;t t 23106s,@DEFS@,$DEFS,;t t 23107s,@ECHO_C@,$ECHO_C,;t t 23108s,@ECHO_N@,$ECHO_N,;t t 23109s,@ECHO_T@,$ECHO_T,;t t 23110s,@LIBS@,$LIBS,;t t 23111s,@build@,$build,;t t 23112s,@build_cpu@,$build_cpu,;t t 23113s,@build_vendor@,$build_vendor,;t t 23114s,@build_os@,$build_os,;t t 23115s,@ALWAYS_FALSE_TRUE@,$ALWAYS_FALSE_TRUE,;t t 23116s,@ALWAYS_FALSE_FALSE@,$ALWAYS_FALSE_FALSE,;t t 23117s,@have_svnversion@,$have_svnversion,;t t 23118s,@OSICONIC_SVN_REV@,$OSICONIC_SVN_REV,;t t 23119s,@CDEFS@,$CDEFS,;t t 23120s,@ADD_CFLAGS@,$ADD_CFLAGS,;t t 23121s,@DBG_CFLAGS@,$DBG_CFLAGS,;t t 23122s,@OPT_CFLAGS@,$OPT_CFLAGS,;t t 23123s,@sol_cc_compiler@,$sol_cc_compiler,;t t 23124s,@CC@,$CC,;t t 23125s,@CFLAGS@,$CFLAGS,;t t 23126s,@LDFLAGS@,$LDFLAGS,;t t 23127s,@CPPFLAGS@,$CPPFLAGS,;t t 23128s,@ac_ct_CC@,$ac_ct_CC,;t t 23129s,@EXEEXT@,$EXEEXT,;t t 23130s,@OBJEXT@,$OBJEXT,;t t 23131s,@COIN_CC_IS_CL_TRUE@,$COIN_CC_IS_CL_TRUE,;t t 23132s,@COIN_CC_IS_CL_FALSE@,$COIN_CC_IS_CL_FALSE,;t t 23133s,@MPICC@,$MPICC,;t t 23134s,@CXXDEFS@,$CXXDEFS,;t t 23135s,@ADD_CXXFLAGS@,$ADD_CXXFLAGS,;t t 23136s,@DBG_CXXFLAGS@,$DBG_CXXFLAGS,;t t 23137s,@OPT_CXXFLAGS@,$OPT_CXXFLAGS,;t t 23138s,@CXX@,$CXX,;t t 23139s,@CXXFLAGS@,$CXXFLAGS,;t t 23140s,@ac_ct_CXX@,$ac_ct_CXX,;t t 23141s,@COIN_CXX_IS_CL_TRUE@,$COIN_CXX_IS_CL_TRUE,;t t 23142s,@COIN_CXX_IS_CL_FALSE@,$COIN_CXX_IS_CL_FALSE,;t t 23143s,@MPICXX@,$MPICXX,;t t 23144s,@EGREP@,$EGREP,;t t 23145s,@LN_S@,$LN_S,;t t 23146s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 23147s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 23148s,@INSTALL_DATA@,$INSTALL_DATA,;t t 23149s,@CYGPATH_W@,$CYGPATH_W,;t t 23150s,@PACKAGE@,$PACKAGE,;t t 23151s,@VERSION@,$VERSION,;t t 23152s,@ACLOCAL@,$ACLOCAL,;t t 23153s,@AUTOCONF@,$AUTOCONF,;t t 23154s,@AUTOMAKE@,$AUTOMAKE,;t t 23155s,@AUTOHEADER@,$AUTOHEADER,;t t 23156s,@MAKEINFO@,$MAKEINFO,;t t 23157s,@install_sh@,$install_sh,;t t 23158s,@STRIP@,$STRIP,;t t 23159s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 23160s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 23161s,@mkdir_p@,$mkdir_p,;t t 23162s,@AWK@,$AWK,;t t 23163s,@SET_MAKE@,$SET_MAKE,;t t 23164s,@am__leading_dot@,$am__leading_dot,;t t 23165s,@AMTAR@,$AMTAR,;t t 23166s,@am__tar@,$am__tar,;t t 23167s,@am__untar@,$am__untar,;t t 23168s,@DEPDIR@,$DEPDIR,;t t 23169s,@am__include@,$am__include,;t t 23170s,@am__quote@,$am__quote,;t t 23171s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 23172s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 23173s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 23174s,@CCDEPMODE@,$CCDEPMODE,;t t 23175s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t 23176s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t 23177s,@CXXDEPMODE@,$CXXDEPMODE,;t t 23178s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t 23179s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t 23180s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t 23181s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t 23182s,@MAINT@,$MAINT,;t t 23183s,@LIBTOOLM4@,$LIBTOOLM4,;t t 23184s,@have_autoconf@,$have_autoconf,;t t 23185s,@have_automake@,$have_automake,;t t 23186s,@have_svn@,$have_svn,;t t 23187s,@BUILDTOOLSDIR@,$BUILDTOOLSDIR,;t t 23188s,@AUX_DIR@,$AUX_DIR,;t t 23189s,@abs_source_dir@,$abs_source_dir,;t t 23190s,@abs_lib_dir@,$abs_lib_dir,;t t 23191s,@abs_include_dir@,$abs_include_dir,;t t 23192s,@abs_bin_dir@,$abs_bin_dir,;t t 23193s,@HAVE_EXTERNALS_TRUE@,$HAVE_EXTERNALS_TRUE,;t t 23194s,@HAVE_EXTERNALS_FALSE@,$HAVE_EXTERNALS_FALSE,;t t 23195s,@host@,$host,;t t 23196s,@host_cpu@,$host_cpu,;t t 23197s,@host_vendor@,$host_vendor,;t t 23198s,@host_os@,$host_os,;t t 23199s,@ECHO@,$ECHO,;t t 23200s,@AR@,$AR,;t t 23201s,@ac_ct_AR@,$ac_ct_AR,;t t 23202s,@RANLIB@,$RANLIB,;t t 23203s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 23204s,@CPP@,$CPP,;t t 23205s,@CXXCPP@,$CXXCPP,;t t 23206s,@F77@,$F77,;t t 23207s,@FFLAGS@,$FFLAGS,;t t 23208s,@ac_ct_F77@,$ac_ct_F77,;t t 23209s,@LIBTOOL@,$LIBTOOL,;t t 23210s,@ac_c_preproc_warn_flag@,$ac_c_preproc_warn_flag,;t t 23211s,@ac_cxx_preproc_warn_flag@,$ac_cxx_preproc_warn_flag,;t t 23212s,@RPATH_FLAGS@,$RPATH_FLAGS,;t t 23213s,@DEPENDENCY_LINKING_TRUE@,$DEPENDENCY_LINKING_TRUE,;t t 23214s,@DEPENDENCY_LINKING_FALSE@,$DEPENDENCY_LINKING_FALSE,;t t 23215s,@LT_LDFLAGS@,$LT_LDFLAGS,;t t 23216s,@PKG_CONFIG@,$PKG_CONFIG,;t t 23217s,@ac_ct_PKG_CONFIG@,$ac_ct_PKG_CONFIG,;t t 23218s,@COIN_HAS_PKGCONFIG_TRUE@,$COIN_HAS_PKGCONFIG_TRUE,;t t 23219s,@COIN_HAS_PKGCONFIG_FALSE@,$COIN_HAS_PKGCONFIG_FALSE,;t t 23220s,@COIN_PKG_CONFIG_PATH@,$COIN_PKG_CONFIG_PATH,;t t 23221s,@COIN_PKG_CONFIG_PATH_UNINSTALLED@,$COIN_PKG_CONFIG_PATH_UNINSTALLED,;t t 23222s,@COINUTILS_LIBS@,$COINUTILS_LIBS,;t t 23223s,@COINUTILS_CFLAGS@,$COINUTILS_CFLAGS,;t t 23224s,@COINUTILS_DATA@,$COINUTILS_DATA,;t t 23225s,@COINUTILS_DEPENDENCIES@,$COINUTILS_DEPENDENCIES,;t t 23226s,@COINUTILS_LIBS_INSTALLED@,$COINUTILS_LIBS_INSTALLED,;t t 23227s,@COINUTILS_CFLAGS_INSTALLED@,$COINUTILS_CFLAGS_INSTALLED,;t t 23228s,@COINUTILS_DATA_INSTALLED@,$COINUTILS_DATA_INSTALLED,;t t 23229s,@OSICONICLIB_CFLAGS@,$OSICONICLIB_CFLAGS,;t t 23230s,@OSICONICLIB_LIBS@,$OSICONICLIB_LIBS,;t t 23231s,@OSICONICLIB_PCLIBS@,$OSICONICLIB_PCLIBS,;t t 23232s,@OSICONICLIB_PCREQUIRES@,$OSICONICLIB_PCREQUIRES,;t t 23233s,@OSICONICLIB_DEPENDENCIES@,$OSICONICLIB_DEPENDENCIES,;t t 23234s,@OSICONICLIB_CFLAGS_INSTALLED@,$OSICONICLIB_CFLAGS_INSTALLED,;t t 23235s,@OSICONICLIB_LIBS_INSTALLED@,$OSICONICLIB_LIBS_INSTALLED,;t t 23236s,@COIN_HAS_COINUTILS_TRUE@,$COIN_HAS_COINUTILS_TRUE,;t t 23237s,@COIN_HAS_COINUTILS_FALSE@,$COIN_HAS_COINUTILS_FALSE,;t t 23238s,@OSI_LIBS@,$OSI_LIBS,;t t 23239s,@OSI_CFLAGS@,$OSI_CFLAGS,;t t 23240s,@OSI_DATA@,$OSI_DATA,;t t 23241s,@OSI_DEPENDENCIES@,$OSI_DEPENDENCIES,;t t 23242s,@OSI_LIBS_INSTALLED@,$OSI_LIBS_INSTALLED,;t t 23243s,@OSI_CFLAGS_INSTALLED@,$OSI_CFLAGS_INSTALLED,;t t 23244s,@OSI_DATA_INSTALLED@,$OSI_DATA_INSTALLED,;t t 23245s,@COIN_HAS_OSI_TRUE@,$COIN_HAS_OSI_TRUE,;t t 23246s,@COIN_HAS_OSI_FALSE@,$COIN_HAS_OSI_FALSE,;t t 23247s,@coin_have_doxygen@,$coin_have_doxygen,;t t 23248s,@coin_have_latex@,$coin_have_latex,;t t 23249s,@coin_doxy_usedot@,$coin_doxy_usedot,;t t 23250s,@coin_doxy_tagname@,$coin_doxy_tagname,;t t 23251s,@coin_doxy_logname@,$coin_doxy_logname,;t t 23252s,@COIN_HAS_DOXYGEN_TRUE@,$COIN_HAS_DOXYGEN_TRUE,;t t 23253s,@COIN_HAS_DOXYGEN_FALSE@,$COIN_HAS_DOXYGEN_FALSE,;t t 23254s,@COIN_HAS_LATEX_TRUE@,$COIN_HAS_LATEX_TRUE,;t t 23255s,@COIN_HAS_LATEX_FALSE@,$COIN_HAS_LATEX_FALSE,;t t 23256s,@coin_doxy_tagfiles@,$coin_doxy_tagfiles,;t t 23257s,@coin_doxy_excludes@,$coin_doxy_excludes,;t t 23258s,@LIBEXT@,$LIBEXT,;t t 23259s,@VPATH_DISTCLEANFILES@,$VPATH_DISTCLEANFILES,;t t 23260s,@ABSBUILDDIR@,$ABSBUILDDIR,;t t 23261s,@LIBOBJS@,$LIBOBJS,;t t 23262s,@LTLIBOBJS@,$LTLIBOBJS,;t t 23263CEOF 23264 23265_ACEOF 23266 23267 cat >>$CONFIG_STATUS <<\_ACEOF 23268 # Split the substitutions into bite-sized pieces for seds with 23269 # small command number limits, like on Digital OSF/1 and HP-UX. 23270 ac_max_sed_lines=48 23271 ac_sed_frag=1 # Number of current file. 23272 ac_beg=1 # First line for current file. 23273 ac_end=$ac_max_sed_lines # Line after last line for current file. 23274 ac_more_lines=: 23275 ac_sed_cmds= 23276 while $ac_more_lines; do 23277 if test $ac_beg -gt 1; then 23278 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 23279 else 23280 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 23281 fi 23282 if test ! -s $tmp/subs.frag; then 23283 ac_more_lines=false 23284 else 23285 # The purpose of the label and of the branching condition is to 23286 # speed up the sed processing (if there are no `@' at all, there 23287 # is no need to browse any of the substitutions). 23288 # These are the two extra sed commands mentioned above. 23289 (echo ':t 23290 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 23291 if test -z "$ac_sed_cmds"; then 23292 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 23293 else 23294 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 23295 fi 23296 ac_sed_frag=`expr $ac_sed_frag + 1` 23297 ac_beg=$ac_end 23298 ac_end=`expr $ac_end + $ac_max_sed_lines` 23299 fi 23300 done 23301 if test -z "$ac_sed_cmds"; then 23302 ac_sed_cmds=cat 23303 fi 23304fi # test -n "$CONFIG_FILES" 23305 23306_ACEOF 23307cat >>$CONFIG_STATUS <<\_ACEOF 23308for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 23309 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 23310 case $ac_file in 23311 - | *:- | *:-:* ) # input from stdin 23312 cat >$tmp/stdin 23313 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 23314 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 23315 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 23316 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 23317 * ) ac_file_in=$ac_file.in ;; 23318 esac 23319 23320 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 23321 ac_dir=`(dirname "$ac_file") 2>/dev/null || 23322$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23323 X"$ac_file" : 'X\(//\)[^/]' \| \ 23324 X"$ac_file" : 'X\(//\)$' \| \ 23325 X"$ac_file" : 'X\(/\)' \| \ 23326 . : '\(.\)' 2>/dev/null || 23327echo X"$ac_file" | 23328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23329 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23330 /^X\(\/\/\)$/{ s//\1/; q; } 23331 /^X\(\/\).*/{ s//\1/; q; } 23332 s/.*/./; q'` 23333 { if $as_mkdir_p; then 23334 mkdir -p "$ac_dir" 23335 else 23336 as_dir="$ac_dir" 23337 as_dirs= 23338 while test ! -d "$as_dir"; do 23339 as_dirs="$as_dir $as_dirs" 23340 as_dir=`(dirname "$as_dir") 2>/dev/null || 23341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23342 X"$as_dir" : 'X\(//\)[^/]' \| \ 23343 X"$as_dir" : 'X\(//\)$' \| \ 23344 X"$as_dir" : 'X\(/\)' \| \ 23345 . : '\(.\)' 2>/dev/null || 23346echo X"$as_dir" | 23347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23348 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23349 /^X\(\/\/\)$/{ s//\1/; q; } 23350 /^X\(\/\).*/{ s//\1/; q; } 23351 s/.*/./; q'` 23352 done 23353 test ! -n "$as_dirs" || mkdir $as_dirs 23354 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 23355echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 23356 { (exit 1); exit 1; }; }; } 23357 23358 ac_builddir=. 23359 23360if test "$ac_dir" != .; then 23361 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 23362 # A "../" for each directory in $ac_dir_suffix. 23363 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 23364else 23365 ac_dir_suffix= ac_top_builddir= 23366fi 23367 23368case $srcdir in 23369 .) # No --srcdir option. We are building in place. 23370 ac_srcdir=. 23371 if test -z "$ac_top_builddir"; then 23372 ac_top_srcdir=. 23373 else 23374 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 23375 fi ;; 23376 [\\/]* | ?:[\\/]* ) # Absolute path. 23377 ac_srcdir=$srcdir$ac_dir_suffix; 23378 ac_top_srcdir=$srcdir ;; 23379 *) # Relative path. 23380 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 23381 ac_top_srcdir=$ac_top_builddir$srcdir ;; 23382esac 23383 23384# Do not use `cd foo && pwd` to compute absolute paths, because 23385# the directories may not exist. 23386case `pwd` in 23387.) ac_abs_builddir="$ac_dir";; 23388*) 23389 case "$ac_dir" in 23390 .) ac_abs_builddir=`pwd`;; 23391 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 23392 *) ac_abs_builddir=`pwd`/"$ac_dir";; 23393 esac;; 23394esac 23395case $ac_abs_builddir in 23396.) ac_abs_top_builddir=${ac_top_builddir}.;; 23397*) 23398 case ${ac_top_builddir}. in 23399 .) ac_abs_top_builddir=$ac_abs_builddir;; 23400 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 23401 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 23402 esac;; 23403esac 23404case $ac_abs_builddir in 23405.) ac_abs_srcdir=$ac_srcdir;; 23406*) 23407 case $ac_srcdir in 23408 .) ac_abs_srcdir=$ac_abs_builddir;; 23409 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 23410 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 23411 esac;; 23412esac 23413case $ac_abs_builddir in 23414.) ac_abs_top_srcdir=$ac_top_srcdir;; 23415*) 23416 case $ac_top_srcdir in 23417 .) ac_abs_top_srcdir=$ac_abs_builddir;; 23418 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 23419 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 23420 esac;; 23421esac 23422 23423 23424 case $INSTALL in 23425 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 23426 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 23427 esac 23428 23429 if test x"$ac_file" != x-; then 23430 { echo "$as_me:$LINENO: creating $ac_file" >&5 23431echo "$as_me: creating $ac_file" >&6;} 23432 rm -f "$ac_file" 23433 fi 23434 # Let's still pretend it is `configure' which instantiates (i.e., don't 23435 # use $as_me), people would be surprised to read: 23436 # /* config.h. Generated by config.status. */ 23437 if test x"$ac_file" = x-; then 23438 configure_input= 23439 else 23440 configure_input="$ac_file. " 23441 fi 23442 configure_input=$configure_input"Generated from `echo $ac_file_in | 23443 sed 's,.*/,,'` by configure." 23444 23445 # First look for the input files in the build tree, otherwise in the 23446 # src tree. 23447 ac_file_inputs=`IFS=: 23448 for f in $ac_file_in; do 23449 case $f in 23450 -) echo $tmp/stdin ;; 23451 [\\/$]*) 23452 # Absolute (can't be DOS-style, as IFS=:) 23453 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 23454echo "$as_me: error: cannot find input file: $f" >&2;} 23455 { (exit 1); exit 1; }; } 23456 echo "$f";; 23457 *) # Relative 23458 if test -f "$f"; then 23459 # Build tree 23460 echo "$f" 23461 elif test -f "$srcdir/$f"; then 23462 # Source tree 23463 echo "$srcdir/$f" 23464 else 23465 # /dev/null tree 23466 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 23467echo "$as_me: error: cannot find input file: $f" >&2;} 23468 { (exit 1); exit 1; }; } 23469 fi;; 23470 esac 23471 done` || { (exit 1); exit 1; } 23472_ACEOF 23473cat >>$CONFIG_STATUS <<_ACEOF 23474 sed "$ac_vpsub 23475$extrasub 23476_ACEOF 23477cat >>$CONFIG_STATUS <<\_ACEOF 23478:t 23479/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23480s,@configure_input@,$configure_input,;t t 23481s,@srcdir@,$ac_srcdir,;t t 23482s,@abs_srcdir@,$ac_abs_srcdir,;t t 23483s,@top_srcdir@,$ac_top_srcdir,;t t 23484s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 23485s,@builddir@,$ac_builddir,;t t 23486s,@abs_builddir@,$ac_abs_builddir,;t t 23487s,@top_builddir@,$ac_top_builddir,;t t 23488s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 23489s,@INSTALL@,$ac_INSTALL,;t t 23490" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 23491 rm -f $tmp/stdin 23492 if test x"$ac_file" != x-; then 23493 mv $tmp/out $ac_file 23494 else 23495 cat $tmp/out 23496 rm -f $tmp/out 23497 fi 23498 23499done 23500_ACEOF 23501cat >>$CONFIG_STATUS <<\_ACEOF 23502 23503# 23504# CONFIG_HEADER section. 23505# 23506 23507# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 23508# NAME is the cpp macro being defined and VALUE is the value it is being given. 23509# 23510# ac_d sets the value in "#define NAME VALUE" lines. 23511ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 23512ac_dB='[ ].*$,\1#\2' 23513ac_dC=' ' 23514ac_dD=',;t' 23515# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 23516ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 23517ac_uB='$,\1#\2define\3' 23518ac_uC=' ' 23519ac_uD=',;t' 23520 23521for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 23522 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 23523 case $ac_file in 23524 - | *:- | *:-:* ) # input from stdin 23525 cat >$tmp/stdin 23526 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 23527 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 23528 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 23529 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 23530 * ) ac_file_in=$ac_file.in ;; 23531 esac 23532 23533 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 23534echo "$as_me: creating $ac_file" >&6;} 23535 23536 # First look for the input files in the build tree, otherwise in the 23537 # src tree. 23538 ac_file_inputs=`IFS=: 23539 for f in $ac_file_in; do 23540 case $f in 23541 -) echo $tmp/stdin ;; 23542 [\\/$]*) 23543 # Absolute (can't be DOS-style, as IFS=:) 23544 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 23545echo "$as_me: error: cannot find input file: $f" >&2;} 23546 { (exit 1); exit 1; }; } 23547 # Do quote $f, to prevent DOS paths from being IFS'd. 23548 echo "$f";; 23549 *) # Relative 23550 if test -f "$f"; then 23551 # Build tree 23552 echo "$f" 23553 elif test -f "$srcdir/$f"; then 23554 # Source tree 23555 echo "$srcdir/$f" 23556 else 23557 # /dev/null tree 23558 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 23559echo "$as_me: error: cannot find input file: $f" >&2;} 23560 { (exit 1); exit 1; }; } 23561 fi;; 23562 esac 23563 done` || { (exit 1); exit 1; } 23564 # Remove the trailing spaces. 23565 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 23566 23567_ACEOF 23568 23569# Transform confdefs.h into two sed scripts, `conftest.defines' and 23570# `conftest.undefs', that substitutes the proper values into 23571# config.h.in to produce config.h. The first handles `#define' 23572# templates, and the second `#undef' templates. 23573# And first: Protect against being on the right side of a sed subst in 23574# config.status. Protect against being in an unquoted here document 23575# in config.status. 23576rm -f conftest.defines conftest.undefs 23577# Using a here document instead of a string reduces the quoting nightmare. 23578# Putting comments in sed scripts is not portable. 23579# 23580# `end' is used to avoid that the second main sed command (meant for 23581# 0-ary CPP macros) applies to n-ary macro definitions. 23582# See the Autoconf documentation for `clear'. 23583cat >confdef2sed.sed <<\_ACEOF 23584s/[\\&,]/\\&/g 23585s,[\\$`],\\&,g 23586t clear 23587: clear 23588s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 23589t end 23590s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 23591: end 23592_ACEOF 23593# If some macros were called several times there might be several times 23594# the same #defines, which is useless. Nevertheless, we may not want to 23595# sort them, since we want the *last* AC-DEFINE to be honored. 23596uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 23597sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 23598rm -f confdef2sed.sed 23599 23600# This sed command replaces #undef with comments. This is necessary, for 23601# example, in the case of _POSIX_SOURCE, which is predefined and required 23602# on some systems where configure will not decide to define it. 23603cat >>conftest.undefs <<\_ACEOF 23604s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 23605_ACEOF 23606 23607# Break up conftest.defines because some shells have a limit on the size 23608# of here documents, and old seds have small limits too (100 cmds). 23609echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 23610echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 23611echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 23612echo ' :' >>$CONFIG_STATUS 23613rm -f conftest.tail 23614while grep . conftest.defines >/dev/null 23615do 23616 # Write a limited-size here document to $tmp/defines.sed. 23617 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 23618 # Speed up: don't consider the non `#define' lines. 23619 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 23620 # Work around the forget-to-reset-the-flag bug. 23621 echo 't clr' >>$CONFIG_STATUS 23622 echo ': clr' >>$CONFIG_STATUS 23623 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 23624 echo 'CEOF 23625 sed -f $tmp/defines.sed $tmp/in >$tmp/out 23626 rm -f $tmp/in 23627 mv $tmp/out $tmp/in 23628' >>$CONFIG_STATUS 23629 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 23630 rm -f conftest.defines 23631 mv conftest.tail conftest.defines 23632done 23633rm -f conftest.defines 23634echo ' fi # grep' >>$CONFIG_STATUS 23635echo >>$CONFIG_STATUS 23636 23637# Break up conftest.undefs because some shells have a limit on the size 23638# of here documents, and old seds have small limits too (100 cmds). 23639echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 23640rm -f conftest.tail 23641while grep . conftest.undefs >/dev/null 23642do 23643 # Write a limited-size here document to $tmp/undefs.sed. 23644 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 23645 # Speed up: don't consider the non `#undef' 23646 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 23647 # Work around the forget-to-reset-the-flag bug. 23648 echo 't clr' >>$CONFIG_STATUS 23649 echo ': clr' >>$CONFIG_STATUS 23650 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 23651 echo 'CEOF 23652 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 23653 rm -f $tmp/in 23654 mv $tmp/out $tmp/in 23655' >>$CONFIG_STATUS 23656 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 23657 rm -f conftest.undefs 23658 mv conftest.tail conftest.undefs 23659done 23660rm -f conftest.undefs 23661 23662cat >>$CONFIG_STATUS <<\_ACEOF 23663 # Let's still pretend it is `configure' which instantiates (i.e., don't 23664 # use $as_me), people would be surprised to read: 23665 # /* config.h. Generated by config.status. */ 23666 if test x"$ac_file" = x-; then 23667 echo "/* Generated by configure. */" >$tmp/config.h 23668 else 23669 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 23670 fi 23671 cat $tmp/in >>$tmp/config.h 23672 rm -f $tmp/in 23673 if test x"$ac_file" != x-; then 23674 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 23675 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 23676echo "$as_me: $ac_file is unchanged" >&6;} 23677 else 23678 ac_dir=`(dirname "$ac_file") 2>/dev/null || 23679$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23680 X"$ac_file" : 'X\(//\)[^/]' \| \ 23681 X"$ac_file" : 'X\(//\)$' \| \ 23682 X"$ac_file" : 'X\(/\)' \| \ 23683 . : '\(.\)' 2>/dev/null || 23684echo X"$ac_file" | 23685 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23686 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23687 /^X\(\/\/\)$/{ s//\1/; q; } 23688 /^X\(\/\).*/{ s//\1/; q; } 23689 s/.*/./; q'` 23690 { if $as_mkdir_p; then 23691 mkdir -p "$ac_dir" 23692 else 23693 as_dir="$ac_dir" 23694 as_dirs= 23695 while test ! -d "$as_dir"; do 23696 as_dirs="$as_dir $as_dirs" 23697 as_dir=`(dirname "$as_dir") 2>/dev/null || 23698$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23699 X"$as_dir" : 'X\(//\)[^/]' \| \ 23700 X"$as_dir" : 'X\(//\)$' \| \ 23701 X"$as_dir" : 'X\(/\)' \| \ 23702 . : '\(.\)' 2>/dev/null || 23703echo X"$as_dir" | 23704 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23705 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23706 /^X\(\/\/\)$/{ s//\1/; q; } 23707 /^X\(\/\).*/{ s//\1/; q; } 23708 s/.*/./; q'` 23709 done 23710 test ! -n "$as_dirs" || mkdir $as_dirs 23711 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 23712echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 23713 { (exit 1); exit 1; }; }; } 23714 23715 rm -f $ac_file 23716 mv $tmp/config.h $ac_file 23717 fi 23718 else 23719 cat $tmp/config.h 23720 rm -f $tmp/config.h 23721 fi 23722# Compute $ac_file's index in $config_headers. 23723_am_stamp_count=1 23724for _am_header in $config_headers :; do 23725 case $_am_header in 23726 $ac_file | $ac_file:* ) 23727 break ;; 23728 * ) 23729 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 23730 esac 23731done 23732echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || 23733$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23734 X$ac_file : 'X\(//\)[^/]' \| \ 23735 X$ac_file : 'X\(//\)$' \| \ 23736 X$ac_file : 'X\(/\)' \| \ 23737 . : '\(.\)' 2>/dev/null || 23738echo X$ac_file | 23739 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23740 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23741 /^X\(\/\/\)$/{ s//\1/; q; } 23742 /^X\(\/\).*/{ s//\1/; q; } 23743 s/.*/./; q'`/stamp-h$_am_stamp_count 23744done 23745_ACEOF 23746cat >>$CONFIG_STATUS <<\_ACEOF 23747 23748# 23749# CONFIG_COMMANDS section. 23750# 23751for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 23752 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 23753 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 23754 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 23755$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23756 X"$ac_dest" : 'X\(//\)[^/]' \| \ 23757 X"$ac_dest" : 'X\(//\)$' \| \ 23758 X"$ac_dest" : 'X\(/\)' \| \ 23759 . : '\(.\)' 2>/dev/null || 23760echo X"$ac_dest" | 23761 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23762 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23763 /^X\(\/\/\)$/{ s//\1/; q; } 23764 /^X\(\/\).*/{ s//\1/; q; } 23765 s/.*/./; q'` 23766 { if $as_mkdir_p; then 23767 mkdir -p "$ac_dir" 23768 else 23769 as_dir="$ac_dir" 23770 as_dirs= 23771 while test ! -d "$as_dir"; do 23772 as_dirs="$as_dir $as_dirs" 23773 as_dir=`(dirname "$as_dir") 2>/dev/null || 23774$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23775 X"$as_dir" : 'X\(//\)[^/]' \| \ 23776 X"$as_dir" : 'X\(//\)$' \| \ 23777 X"$as_dir" : 'X\(/\)' \| \ 23778 . : '\(.\)' 2>/dev/null || 23779echo X"$as_dir" | 23780 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23781 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23782 /^X\(\/\/\)$/{ s//\1/; q; } 23783 /^X\(\/\).*/{ s//\1/; q; } 23784 s/.*/./; q'` 23785 done 23786 test ! -n "$as_dirs" || mkdir $as_dirs 23787 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 23788echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 23789 { (exit 1); exit 1; }; }; } 23790 23791 ac_builddir=. 23792 23793if test "$ac_dir" != .; then 23794 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 23795 # A "../" for each directory in $ac_dir_suffix. 23796 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 23797else 23798 ac_dir_suffix= ac_top_builddir= 23799fi 23800 23801case $srcdir in 23802 .) # No --srcdir option. We are building in place. 23803 ac_srcdir=. 23804 if test -z "$ac_top_builddir"; then 23805 ac_top_srcdir=. 23806 else 23807 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 23808 fi ;; 23809 [\\/]* | ?:[\\/]* ) # Absolute path. 23810 ac_srcdir=$srcdir$ac_dir_suffix; 23811 ac_top_srcdir=$srcdir ;; 23812 *) # Relative path. 23813 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 23814 ac_top_srcdir=$ac_top_builddir$srcdir ;; 23815esac 23816 23817# Do not use `cd foo && pwd` to compute absolute paths, because 23818# the directories may not exist. 23819case `pwd` in 23820.) ac_abs_builddir="$ac_dir";; 23821*) 23822 case "$ac_dir" in 23823 .) ac_abs_builddir=`pwd`;; 23824 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 23825 *) ac_abs_builddir=`pwd`/"$ac_dir";; 23826 esac;; 23827esac 23828case $ac_abs_builddir in 23829.) ac_abs_top_builddir=${ac_top_builddir}.;; 23830*) 23831 case ${ac_top_builddir}. in 23832 .) ac_abs_top_builddir=$ac_abs_builddir;; 23833 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 23834 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 23835 esac;; 23836esac 23837case $ac_abs_builddir in 23838.) ac_abs_srcdir=$ac_srcdir;; 23839*) 23840 case $ac_srcdir in 23841 .) ac_abs_srcdir=$ac_abs_builddir;; 23842 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 23843 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 23844 esac;; 23845esac 23846case $ac_abs_builddir in 23847.) ac_abs_top_srcdir=$ac_top_srcdir;; 23848*) 23849 case $ac_top_srcdir in 23850 .) ac_abs_top_srcdir=$ac_abs_builddir;; 23851 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 23852 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 23853 esac;; 23854esac 23855 23856 23857 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 23858echo "$as_me: executing $ac_dest commands" >&6;} 23859 case $ac_dest in 23860 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 23861 # Strip MF so we end up with the name of the file. 23862 mf=`echo "$mf" | sed -e 's/:.*$//'` 23863 # Check whether this is an Automake generated Makefile or not. 23864 # We used to match only the files named `Makefile.in', but 23865 # some people rename them; so instead we look at the file content. 23866 # Grep'ing the first line is not enough: some people post-process 23867 # each Makefile.in and add a new line on top of each file to say so. 23868 # So let's grep whole file. 23869 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 23870 dirpart=`(dirname "$mf") 2>/dev/null || 23871$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23872 X"$mf" : 'X\(//\)[^/]' \| \ 23873 X"$mf" : 'X\(//\)$' \| \ 23874 X"$mf" : 'X\(/\)' \| \ 23875 . : '\(.\)' 2>/dev/null || 23876echo X"$mf" | 23877 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23878 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23879 /^X\(\/\/\)$/{ s//\1/; q; } 23880 /^X\(\/\).*/{ s//\1/; q; } 23881 s/.*/./; q'` 23882 else 23883 continue 23884 fi 23885 # Extract the definition of DEPDIR, am__include, and am__quote 23886 # from the Makefile without running `make'. 23887 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 23888 test -z "$DEPDIR" && continue 23889 am__include=`sed -n 's/^am__include = //p' < "$mf"` 23890 test -z "am__include" && continue 23891 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 23892 # When using ansi2knr, U may be empty or an underscore; expand it 23893 U=`sed -n 's/^U = //p' < "$mf"` 23894 # Find all dependency output files, they are included files with 23895 # $(DEPDIR) in their names. We invoke sed twice because it is the 23896 # simplest approach to changing $(DEPDIR) to its actual value in the 23897 # expansion. 23898 for file in `sed -n " 23899 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 23900 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 23901 # Make sure the directory exists. 23902 test -f "$dirpart/$file" && continue 23903 fdir=`(dirname "$file") 2>/dev/null || 23904$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23905 X"$file" : 'X\(//\)[^/]' \| \ 23906 X"$file" : 'X\(//\)$' \| \ 23907 X"$file" : 'X\(/\)' \| \ 23908 . : '\(.\)' 2>/dev/null || 23909echo X"$file" | 23910 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23911 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23912 /^X\(\/\/\)$/{ s//\1/; q; } 23913 /^X\(\/\).*/{ s//\1/; q; } 23914 s/.*/./; q'` 23915 { if $as_mkdir_p; then 23916 mkdir -p $dirpart/$fdir 23917 else 23918 as_dir=$dirpart/$fdir 23919 as_dirs= 23920 while test ! -d "$as_dir"; do 23921 as_dirs="$as_dir $as_dirs" 23922 as_dir=`(dirname "$as_dir") 2>/dev/null || 23923$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23924 X"$as_dir" : 'X\(//\)[^/]' \| \ 23925 X"$as_dir" : 'X\(//\)$' \| \ 23926 X"$as_dir" : 'X\(/\)' \| \ 23927 . : '\(.\)' 2>/dev/null || 23928echo X"$as_dir" | 23929 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23930 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23931 /^X\(\/\/\)$/{ s//\1/; q; } 23932 /^X\(\/\).*/{ s//\1/; q; } 23933 s/.*/./; q'` 23934 done 23935 test ! -n "$as_dirs" || mkdir $as_dirs 23936 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 23937echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} 23938 { (exit 1); exit 1; }; }; } 23939 23940 # echo "creating $dirpart/$file" 23941 echo '# dummy' > "$dirpart/$file" 23942 done 23943done 23944 ;; 23945 esac 23946done 23947_ACEOF 23948 23949cat >>$CONFIG_STATUS <<\_ACEOF 23950 23951{ (exit 0); exit 0; } 23952_ACEOF 23953chmod +x $CONFIG_STATUS 23954ac_clean_files=$ac_clean_files_save 23955 23956 23957# configure is writing to config.log, and then calls config.status. 23958# config.status does its own redirection, appending to config.log. 23959# Unfortunately, on DOS this fails, as config.log is still kept open 23960# by configure, so config.status won't be able to write to it; its 23961# output is simply discarded. So we exec the FD to /dev/null, 23962# effectively closing config.log, so it can be properly (re)opened and 23963# appended to by config.status. When coming back to configure, we 23964# need to make the FD available again. 23965if test "$no_create" != yes; then 23966 ac_cs_success=: 23967 ac_config_status_args= 23968 test "$silent" = yes && 23969 ac_config_status_args="$ac_config_status_args --quiet" 23970 exec 5>/dev/null 23971 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23972 exec 5>>config.log 23973 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23974 # would make configure fail if this is the last instruction. 23975 $ac_cs_success || { (exit 1); exit 1; } 23976fi 23977 23978 23979 if test x"$coin_vpath_link_files" = x; then : ; else 23980 lnkcmd="$coin_link_input_cmd" 23981 if test "$lnkcmd" = cp; then 23982 { echo "$as_me:$LINENO: Copying data files for VPATH configuration" >&5 23983echo "$as_me: Copying data files for VPATH configuration" >&6;} 23984 else 23985 { echo "$as_me:$LINENO: Creating VPATH links for data files" >&5 23986echo "$as_me: Creating VPATH links for data files" >&6;} 23987 fi 23988 for file in $coin_vpath_link_files; do 23989 dir=`(dirname "./$file") 2>/dev/null || 23990$as_expr X"./$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23991 X"./$file" : 'X\(//\)[^/]' \| \ 23992 X"./$file" : 'X\(//\)$' \| \ 23993 X"./$file" : 'X\(/\)' \| \ 23994 . : '\(.\)' 2>/dev/null || 23995echo X"./$file" | 23996 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23997 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23998 /^X\(\/\/\)$/{ s//\1/; q; } 23999 /^X\(\/\).*/{ s//\1/; q; } 24000 s/.*/./; q'` 24001 if test -d $dir; then : ; else 24002 { if $as_mkdir_p; then 24003 mkdir -p $dir 24004 else 24005 as_dir=$dir 24006 as_dirs= 24007 while test ! -d "$as_dir"; do 24008 as_dirs="$as_dir $as_dirs" 24009 as_dir=`(dirname "$as_dir") 2>/dev/null || 24010$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24011 X"$as_dir" : 'X\(//\)[^/]' \| \ 24012 X"$as_dir" : 'X\(//\)$' \| \ 24013 X"$as_dir" : 'X\(/\)' \| \ 24014 . : '\(.\)' 2>/dev/null || 24015echo X"$as_dir" | 24016 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 24017 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 24018 /^X\(\/\/\)$/{ s//\1/; q; } 24019 /^X\(\/\).*/{ s//\1/; q; } 24020 s/.*/./; q'` 24021 done 24022 test ! -n "$as_dirs" || mkdir $as_dirs 24023 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dir" >&5 24024echo "$as_me: error: cannot create directory $dir" >&2;} 24025 { (exit 1); exit 1; }; }; } 24026 24027 fi 24028 rm -f $file 24029 $lnkcmd $abs_source_dir/$file $file 24030 done 24031 fi 24032 24033 { echo "$as_me:$LINENO: In case of trouble, first consult the troubleshooting page at https://projects.coin-or.org/BuildTools/wiki/user-troubleshooting" >&5 24034echo "$as_me: In case of trouble, first consult the troubleshooting page at https://projects.coin-or.org/BuildTools/wiki/user-troubleshooting" >&6;} 24035 if test x$coin_projectdir = xyes; then 24036 { echo "$as_me:$LINENO: Configuration of $PACKAGE_NAME successful" >&5 24037echo "$as_me: Configuration of $PACKAGE_NAME successful" >&6;} 24038 else 24039 { echo "$as_me:$LINENO: Main configuration of $PACKAGE_NAME successful" >&5 24040echo "$as_me: Main configuration of $PACKAGE_NAME successful" >&6;} 24041 fi 24042else 24043 { echo "$as_me:$LINENO: No configuration of $PACKAGE_NAME necessary" >&5 24044echo "$as_me: No configuration of $PACKAGE_NAME necessary" >&6;} 24045fi 24046 24047 24048