1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.59 for harminv 1.3.1. 4# 5# Report bugs to <stevenj@alum.mit.edu>. 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## M4sh Initialization. ## 12## --------------------- ## 13 14# Be Bourne compatible 15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 16 emulate sh 17 NULLCMD=: 18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 19 # is contrary to our usage. Disable this feature. 20 alias -g '${1+"$@"}'='"$@"' 21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 22 set -o posix 23fi 24DUALCASE=1; export DUALCASE # for MKS sh 25 26# Support unset when possible. 27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 28 as_unset=unset 29else 30 as_unset=false 31fi 32 33 34# Work around bugs in pre-3.0 UWIN ksh. 35$as_unset ENV MAIL MAILPATH 36PS1='$ ' 37PS2='> ' 38PS4='+ ' 39 40# NLS nuisances. 41for as_var in \ 42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 44 LC_TELEPHONE LC_TIME 45do 46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 47 eval $as_var=C; export $as_var 48 else 49 $as_unset $as_var 50 fi 51done 52 53# Required to use basename. 54if expr a : '\(a\)' >/dev/null 2>&1; then 55 as_expr=expr 56else 57 as_expr=false 58fi 59 60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 61 as_basename=basename 62else 63 as_basename=false 64fi 65 66 67# Name of the executable. 68as_me=`$as_basename "$0" || 69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 70 X"$0" : 'X\(//\)$' \| \ 71 X"$0" : 'X\(/\)$' \| \ 72 . : '\(.\)' 2>/dev/null || 73echo X/"$0" | 74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 75 /^X\/\(\/\/\)$/{ s//\1/; q; } 76 /^X\/\(\/\).*/{ s//\1/; q; } 77 s/.*/./; q'` 78 79 80# PATH needs CR, and LINENO needs CR and PATH. 81# Avoid depending upon Character Ranges. 82as_cr_letters='abcdefghijklmnopqrstuvwxyz' 83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 84as_cr_Letters=$as_cr_letters$as_cr_LETTERS 85as_cr_digits='0123456789' 86as_cr_alnum=$as_cr_Letters$as_cr_digits 87 88# The user is always right. 89if test "${PATH_SEPARATOR+set}" != set; then 90 echo "#! /bin/sh" >conf$$.sh 91 echo "exit 0" >>conf$$.sh 92 chmod +x conf$$.sh 93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 94 PATH_SEPARATOR=';' 95 else 96 PATH_SEPARATOR=: 97 fi 98 rm -f conf$$.sh 99fi 100 101 102 as_lineno_1=$LINENO 103 as_lineno_2=$LINENO 104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 105 test "x$as_lineno_1" != "x$as_lineno_2" && 106 test "x$as_lineno_3" = "x$as_lineno_2" || { 107 # Find who we are. Look in the path if we contain no path at all 108 # relative or not. 109 case $0 in 110 *[\\/]* ) as_myself=$0 ;; 111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 112for as_dir in $PATH 113do 114 IFS=$as_save_IFS 115 test -z "$as_dir" && as_dir=. 116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 117done 118 119 ;; 120 esac 121 # We did not find ourselves, most probably we were run as `sh COMMAND' 122 # in which case we are not to be found in the path. 123 if test "x$as_myself" = x; then 124 as_myself=$0 125 fi 126 if test ! -f "$as_myself"; then 127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 128 { (exit 1); exit 1; }; } 129 fi 130 case $CONFIG_SHELL in 131 '') 132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 134do 135 IFS=$as_save_IFS 136 test -z "$as_dir" && as_dir=. 137 for as_base in sh bash ksh sh5; do 138 case $as_dir in 139 /*) 140 if ("$as_dir/$as_base" -c ' 141 as_lineno_1=$LINENO 142 as_lineno_2=$LINENO 143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 144 test "x$as_lineno_1" != "x$as_lineno_2" && 145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 148 CONFIG_SHELL=$as_dir/$as_base 149 export CONFIG_SHELL 150 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 151 fi;; 152 esac 153 done 154done 155;; 156 esac 157 158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 159 # uniformly replaced by the line number. The first 'sed' inserts a 160 # line-number line before each line; the second 'sed' does the real 161 # work. The second script uses 'N' to pair each line-number line 162 # with the numbered line, and appends trailing '-' during 163 # substitution so that $LINENO is not a special case at line end. 164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 166 sed '=' <$as_myself | 167 sed ' 168 N 169 s,$,-, 170 : loop 171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 172 t loop 173 s,-$,, 174 s,^['$as_cr_digits']*\n,, 175 ' >$as_me.lineno && 176 chmod +x $as_me.lineno || 177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 178 { (exit 1); exit 1; }; } 179 180 # Don't try to exec as it changes $[0], causing all sort of problems 181 # (the dirname of $[0] is not the place where we might find the 182 # original and so on. Autoconf is especially sensible to this). 183 . ./$as_me.lineno 184 # Exit status is that of the last command. 185 exit 186} 187 188 189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 190 *c*,-n*) ECHO_N= ECHO_C=' 191' ECHO_T=' ' ;; 192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 194esac 195 196if expr a : '\(a\)' >/dev/null 2>&1; then 197 as_expr=expr 198else 199 as_expr=false 200fi 201 202rm -f conf$$ conf$$.exe conf$$.file 203echo >conf$$.file 204if ln -s conf$$.file conf$$ 2>/dev/null; then 205 # We could just check for DJGPP; but this test a) works b) is more generic 206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 207 if test -f conf$$.exe; then 208 # Don't use ln at all; we don't have any links 209 as_ln_s='cp -p' 210 else 211 as_ln_s='ln -s' 212 fi 213elif ln conf$$.file conf$$ 2>/dev/null; then 214 as_ln_s=ln 215else 216 as_ln_s='cp -p' 217fi 218rm -f conf$$ conf$$.exe conf$$.file 219 220if mkdir -p . 2>/dev/null; then 221 as_mkdir_p=: 222else 223 test -d ./-p && rmdir ./-p 224 as_mkdir_p=false 225fi 226 227as_executable_p="test -f" 228 229# Sed expression to map a string onto a valid CPP name. 230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 231 232# Sed expression to map a string onto a valid variable name. 233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 234 235 236# IFS 237# We need space, tab and new line, in precisely that order. 238as_nl=' 239' 240IFS=" $as_nl" 241 242# CDPATH. 243$as_unset CDPATH 244 245 246 247# Check that we are running under the correct shell. 248SHELL=${CONFIG_SHELL-/bin/sh} 249 250case X$ECHO in 251X*--fallback-echo) 252 # Remove one level of quotation (which was required for Make). 253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 254 ;; 255esac 256 257echo=${ECHO-echo} 258if test "X$1" = X--no-reexec; then 259 # Discard the --no-reexec flag, and continue. 260 shift 261elif test "X$1" = X--fallback-echo; then 262 # Avoid inline document here, it may be left over 263 : 264elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 265 # Yippee, $echo works! 266 : 267else 268 # Restart under the correct shell. 269 exec $SHELL "$0" --no-reexec ${1+"$@"} 270fi 271 272if test "X$1" = X--fallback-echo; then 273 # used as fallback echo 274 shift 275 cat <<EOF 276$* 277EOF 278 exit 0 279fi 280 281# The HP-UX ksh and POSIX shell print the target directory to stdout 282# if CDPATH is set. 283if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 284 285if test -z "$ECHO"; then 286if test "X${echo_test_string+set}" != Xset; then 287# find a string as large as possible, as long as the shell can cope with it 288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 290 if (echo_test_string="`eval $cmd`") 2>/dev/null && 291 echo_test_string="`eval $cmd`" && 292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 293 then 294 break 295 fi 296 done 297fi 298 299if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 301 test "X$echo_testing_string" = "X$echo_test_string"; then 302 : 303else 304 # The Solaris, AIX, and Digital Unix default echo programs unquote 305 # backslashes. This makes it impossible to quote backslashes using 306 # echo "$something" | sed 's/\\/\\\\/g' 307 # 308 # So, first we look for a working echo in the user's PATH. 309 310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 311 for dir in $PATH /usr/ucb; do 312 IFS="$lt_save_ifs" 313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 316 test "X$echo_testing_string" = "X$echo_test_string"; then 317 echo="$dir/echo" 318 break 319 fi 320 done 321 IFS="$lt_save_ifs" 322 323 if test "X$echo" = Xecho; then 324 # We didn't find a better echo, so look for alternatives. 325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 327 test "X$echo_testing_string" = "X$echo_test_string"; then 328 # This shell has a builtin print -r that does the trick. 329 echo='print -r' 330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 331 test "X$CONFIG_SHELL" != X/bin/ksh; then 332 # If we have ksh, try running configure again with it. 333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 334 export ORIGINAL_CONFIG_SHELL 335 CONFIG_SHELL=/bin/ksh 336 export CONFIG_SHELL 337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 338 else 339 # Try using printf. 340 echo='printf %s\n' 341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 343 test "X$echo_testing_string" = "X$echo_test_string"; then 344 # Cool, printf works 345 : 346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 347 test "X$echo_testing_string" = 'X\t' && 348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 349 test "X$echo_testing_string" = "X$echo_test_string"; then 350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 351 export CONFIG_SHELL 352 SHELL="$CONFIG_SHELL" 353 export SHELL 354 echo="$CONFIG_SHELL $0 --fallback-echo" 355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 356 test "X$echo_testing_string" = 'X\t' && 357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 358 test "X$echo_testing_string" = "X$echo_test_string"; then 359 echo="$CONFIG_SHELL $0 --fallback-echo" 360 else 361 # maybe with a smaller string... 362 prev=: 363 364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 366 then 367 break 368 fi 369 prev="$cmd" 370 done 371 372 if test "$prev" != 'sed 50q "$0"'; then 373 echo_test_string=`eval $prev` 374 export echo_test_string 375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 376 else 377 # Oops. We lost completely, so just stick with echo. 378 echo=echo 379 fi 380 fi 381 fi 382 fi 383fi 384fi 385 386# Copy echo and quote the copy suitably for passing to libtool from 387# the Makefile, instead of quoting the original, which is used later. 388ECHO=$echo 389if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 391fi 392 393 394 395 396tagnames=${tagnames+${tagnames},}CXX 397 398tagnames=${tagnames+${tagnames},}F77 399 400# Name of the host. 401# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 402# so uname gets run too. 403ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 404 405exec 6>&1 406 407# 408# Initializations. 409# 410ac_default_prefix=/usr/local 411ac_config_libobj_dir=. 412cross_compiling=no 413subdirs= 414MFLAGS= 415MAKEFLAGS= 416SHELL=${CONFIG_SHELL-/bin/sh} 417 418# Maximum number of lines to put in a shell here document. 419# This variable seems obsolete. It should probably be removed, and 420# only ac_max_sed_lines should be used. 421: ${ac_max_here_lines=38} 422 423# Identity of this package. 424PACKAGE_NAME='harminv' 425PACKAGE_TARNAME='harminv' 426PACKAGE_VERSION='1.3.1' 427PACKAGE_STRING='harminv 1.3.1' 428PACKAGE_BUGREPORT='stevenj@alum.mit.edu' 429 430ac_unique_file="harminv.c" 431# Factoring default headers for most tests. 432ac_includes_default="\ 433#include <stdio.h> 434#if HAVE_SYS_TYPES_H 435# include <sys/types.h> 436#endif 437#if HAVE_SYS_STAT_H 438# include <sys/stat.h> 439#endif 440#if STDC_HEADERS 441# include <stdlib.h> 442# include <stddef.h> 443#else 444# if HAVE_STDLIB_H 445# include <stdlib.h> 446# endif 447#endif 448#if HAVE_STRING_H 449# if !STDC_HEADERS && HAVE_MEMORY_H 450# include <memory.h> 451# endif 452# include <string.h> 453#endif 454#if HAVE_STRINGS_H 455# include <strings.h> 456#endif 457#if HAVE_INTTYPES_H 458# include <inttypes.h> 459#else 460# if HAVE_STDINT_H 461# include <stdint.h> 462# endif 463#endif 464#if HAVE_UNISTD_H 465# include <unistd.h> 466#endif" 467 468ac_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 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 MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT SHARED_VERSION_INFO CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE F77 FFLAGS ac_ct_F77 FLIBS CPP EGREP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXXCPP LIBTOOL BLAS_LIBS LAPACK_LIBS LIBOBJS LTLIBOBJS' 469ac_subst_files='' 470 471# Initialize some variables set by options. 472ac_init_help= 473ac_init_version=false 474# The variables have the same names as the options, with 475# dashes changed to underlines. 476cache_file=/dev/null 477exec_prefix=NONE 478no_create= 479no_recursion= 480prefix=NONE 481program_prefix=NONE 482program_suffix=NONE 483program_transform_name=s,x,x, 484silent= 485site= 486srcdir= 487verbose= 488x_includes=NONE 489x_libraries=NONE 490 491# Installation directory options. 492# These are left unexpanded so users can "make install exec_prefix=/foo" 493# and all the variables that are supposed to be based on exec_prefix 494# by default will actually change. 495# Use braces instead of parens because sh, perl, etc. also accept them. 496bindir='${exec_prefix}/bin' 497sbindir='${exec_prefix}/sbin' 498libexecdir='${exec_prefix}/libexec' 499datadir='${prefix}/share' 500sysconfdir='${prefix}/etc' 501sharedstatedir='${prefix}/com' 502localstatedir='${prefix}/var' 503libdir='${exec_prefix}/lib' 504includedir='${prefix}/include' 505oldincludedir='/usr/include' 506infodir='${prefix}/info' 507mandir='${prefix}/man' 508 509ac_prev= 510for ac_option 511do 512 # If the previous option needs an argument, assign it. 513 if test -n "$ac_prev"; then 514 eval "$ac_prev=\$ac_option" 515 ac_prev= 516 continue 517 fi 518 519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 520 521 # Accept the important Cygnus configure options, so we can diagnose typos. 522 523 case $ac_option in 524 525 -bindir | --bindir | --bindi | --bind | --bin | --bi) 526 ac_prev=bindir ;; 527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 528 bindir=$ac_optarg ;; 529 530 -build | --build | --buil | --bui | --bu) 531 ac_prev=build_alias ;; 532 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 533 build_alias=$ac_optarg ;; 534 535 -cache-file | --cache-file | --cache-fil | --cache-fi \ 536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 537 ac_prev=cache_file ;; 538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 540 cache_file=$ac_optarg ;; 541 542 --config-cache | -C) 543 cache_file=config.cache ;; 544 545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 546 ac_prev=datadir ;; 547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 548 | --da=*) 549 datadir=$ac_optarg ;; 550 551 -disable-* | --disable-*) 552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 553 # Reject names that are not valid shell variable names. 554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 556 { (exit 1); exit 1; }; } 557 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 558 eval "enable_$ac_feature=no" ;; 559 560 -enable-* | --enable-*) 561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 562 # Reject names that are not valid shell variable names. 563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 565 { (exit 1); exit 1; }; } 566 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 567 case $ac_option in 568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 569 *) ac_optarg=yes ;; 570 esac 571 eval "enable_$ac_feature='$ac_optarg'" ;; 572 573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 575 | --exec | --exe | --ex) 576 ac_prev=exec_prefix ;; 577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 579 | --exec=* | --exe=* | --ex=*) 580 exec_prefix=$ac_optarg ;; 581 582 -gas | --gas | --ga | --g) 583 # Obsolete; use --with-gas. 584 with_gas=yes ;; 585 586 -help | --help | --hel | --he | -h) 587 ac_init_help=long ;; 588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 589 ac_init_help=recursive ;; 590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 591 ac_init_help=short ;; 592 593 -host | --host | --hos | --ho) 594 ac_prev=host_alias ;; 595 -host=* | --host=* | --hos=* | --ho=*) 596 host_alias=$ac_optarg ;; 597 598 -includedir | --includedir | --includedi | --included | --include \ 599 | --includ | --inclu | --incl | --inc) 600 ac_prev=includedir ;; 601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 602 | --includ=* | --inclu=* | --incl=* | --inc=*) 603 includedir=$ac_optarg ;; 604 605 -infodir | --infodir | --infodi | --infod | --info | --inf) 606 ac_prev=infodir ;; 607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 608 infodir=$ac_optarg ;; 609 610 -libdir | --libdir | --libdi | --libd) 611 ac_prev=libdir ;; 612 -libdir=* | --libdir=* | --libdi=* | --libd=*) 613 libdir=$ac_optarg ;; 614 615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 616 | --libexe | --libex | --libe) 617 ac_prev=libexecdir ;; 618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 619 | --libexe=* | --libex=* | --libe=*) 620 libexecdir=$ac_optarg ;; 621 622 -localstatedir | --localstatedir | --localstatedi | --localstated \ 623 | --localstate | --localstat | --localsta | --localst \ 624 | --locals | --local | --loca | --loc | --lo) 625 ac_prev=localstatedir ;; 626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 629 localstatedir=$ac_optarg ;; 630 631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 632 ac_prev=mandir ;; 633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 634 mandir=$ac_optarg ;; 635 636 -nfp | --nfp | --nf) 637 # Obsolete; use --without-fp. 638 with_fp=no ;; 639 640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 641 | --no-cr | --no-c | -n) 642 no_create=yes ;; 643 644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 646 no_recursion=yes ;; 647 648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 650 | --oldin | --oldi | --old | --ol | --o) 651 ac_prev=oldincludedir ;; 652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 655 oldincludedir=$ac_optarg ;; 656 657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 658 ac_prev=prefix ;; 659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 660 prefix=$ac_optarg ;; 661 662 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 663 | --program-pre | --program-pr | --program-p) 664 ac_prev=program_prefix ;; 665 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 667 program_prefix=$ac_optarg ;; 668 669 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 670 | --program-suf | --program-su | --program-s) 671 ac_prev=program_suffix ;; 672 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 674 program_suffix=$ac_optarg ;; 675 676 -program-transform-name | --program-transform-name \ 677 | --program-transform-nam | --program-transform-na \ 678 | --program-transform-n | --program-transform- \ 679 | --program-transform | --program-transfor \ 680 | --program-transfo | --program-transf \ 681 | --program-trans | --program-tran \ 682 | --progr-tra | --program-tr | --program-t) 683 ac_prev=program_transform_name ;; 684 -program-transform-name=* | --program-transform-name=* \ 685 | --program-transform-nam=* | --program-transform-na=* \ 686 | --program-transform-n=* | --program-transform-=* \ 687 | --program-transform=* | --program-transfor=* \ 688 | --program-transfo=* | --program-transf=* \ 689 | --program-trans=* | --program-tran=* \ 690 | --progr-tra=* | --program-tr=* | --program-t=*) 691 program_transform_name=$ac_optarg ;; 692 693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 694 | -silent | --silent | --silen | --sile | --sil) 695 silent=yes ;; 696 697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 698 ac_prev=sbindir ;; 699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 700 | --sbi=* | --sb=*) 701 sbindir=$ac_optarg ;; 702 703 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 705 | --sharedst | --shareds | --shared | --share | --shar \ 706 | --sha | --sh) 707 ac_prev=sharedstatedir ;; 708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 711 | --sha=* | --sh=*) 712 sharedstatedir=$ac_optarg ;; 713 714 -site | --site | --sit) 715 ac_prev=site ;; 716 -site=* | --site=* | --sit=*) 717 site=$ac_optarg ;; 718 719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 720 ac_prev=srcdir ;; 721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 722 srcdir=$ac_optarg ;; 723 724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 725 | --syscon | --sysco | --sysc | --sys | --sy) 726 ac_prev=sysconfdir ;; 727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 729 sysconfdir=$ac_optarg ;; 730 731 -target | --target | --targe | --targ | --tar | --ta | --t) 732 ac_prev=target_alias ;; 733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 734 target_alias=$ac_optarg ;; 735 736 -v | -verbose | --verbose | --verbos | --verbo | --verb) 737 verbose=yes ;; 738 739 -version | --version | --versio | --versi | --vers | -V) 740 ac_init_version=: ;; 741 742 -with-* | --with-*) 743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 744 # Reject names that are not valid shell variable names. 745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 746 { echo "$as_me: error: invalid package name: $ac_package" >&2 747 { (exit 1); exit 1; }; } 748 ac_package=`echo $ac_package| sed 's/-/_/g'` 749 case $ac_option in 750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 751 *) ac_optarg=yes ;; 752 esac 753 eval "with_$ac_package='$ac_optarg'" ;; 754 755 -without-* | --without-*) 756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 757 # Reject names that are not valid shell variable names. 758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 759 { echo "$as_me: error: invalid package name: $ac_package" >&2 760 { (exit 1); exit 1; }; } 761 ac_package=`echo $ac_package | sed 's/-/_/g'` 762 eval "with_$ac_package=no" ;; 763 764 --x) 765 # Obsolete; use --with-x. 766 with_x=yes ;; 767 768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 769 | --x-incl | --x-inc | --x-in | --x-i) 770 ac_prev=x_includes ;; 771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 773 x_includes=$ac_optarg ;; 774 775 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 777 ac_prev=x_libraries ;; 778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 780 x_libraries=$ac_optarg ;; 781 782 -*) { echo "$as_me: error: unrecognized option: $ac_option 783Try \`$0 --help' for more information." >&2 784 { (exit 1); exit 1; }; } 785 ;; 786 787 *=*) 788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 789 # Reject names that are not valid shell variable names. 790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 792 { (exit 1); exit 1; }; } 793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 794 eval "$ac_envvar='$ac_optarg'" 795 export $ac_envvar ;; 796 797 *) 798 # FIXME: should be removed in autoconf 3.0. 799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 803 ;; 804 805 esac 806done 807 808if test -n "$ac_prev"; then 809 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 810 { echo "$as_me: error: missing argument to $ac_option" >&2 811 { (exit 1); exit 1; }; } 812fi 813 814# Be sure to have absolute paths. 815for ac_var in exec_prefix prefix 816do 817 eval ac_val=$`echo $ac_var` 818 case $ac_val in 819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 821 { (exit 1); exit 1; }; };; 822 esac 823done 824 825# Be sure to have absolute paths. 826for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 827 localstatedir libdir includedir oldincludedir infodir mandir 828do 829 eval ac_val=$`echo $ac_var` 830 case $ac_val in 831 [\\/$]* | ?:[\\/]* ) ;; 832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 833 { (exit 1); exit 1; }; };; 834 esac 835done 836 837# There might be people who depend on the old broken behavior: `$host' 838# used to hold the argument of --host etc. 839# FIXME: To remove some day. 840build=$build_alias 841host=$host_alias 842target=$target_alias 843 844# FIXME: To remove some day. 845if test "x$host_alias" != x; then 846 if test "x$build_alias" = x; then 847 cross_compiling=maybe 848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 849 If a cross compiler is detected then cross compile mode will be used." >&2 850 elif test "x$build_alias" != "x$host_alias"; then 851 cross_compiling=yes 852 fi 853fi 854 855ac_tool_prefix= 856test -n "$host_alias" && ac_tool_prefix=$host_alias- 857 858test "$silent" = yes && exec 6>/dev/null 859 860 861# Find the source files, if location was not specified. 862if test -z "$srcdir"; then 863 ac_srcdir_defaulted=yes 864 # Try the directory containing this script, then its parent. 865 ac_confdir=`(dirname "$0") 2>/dev/null || 866$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 867 X"$0" : 'X\(//\)[^/]' \| \ 868 X"$0" : 'X\(//\)$' \| \ 869 X"$0" : 'X\(/\)' \| \ 870 . : '\(.\)' 2>/dev/null || 871echo X"$0" | 872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 873 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 874 /^X\(\/\/\)$/{ s//\1/; q; } 875 /^X\(\/\).*/{ s//\1/; q; } 876 s/.*/./; q'` 877 srcdir=$ac_confdir 878 if test ! -r $srcdir/$ac_unique_file; then 879 srcdir=.. 880 fi 881else 882 ac_srcdir_defaulted=no 883fi 884if test ! -r $srcdir/$ac_unique_file; then 885 if test "$ac_srcdir_defaulted" = yes; then 886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 887 { (exit 1); exit 1; }; } 888 else 889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 890 { (exit 1); exit 1; }; } 891 fi 892fi 893(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 895 { (exit 1); exit 1; }; } 896srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 897ac_env_build_alias_set=${build_alias+set} 898ac_env_build_alias_value=$build_alias 899ac_cv_env_build_alias_set=${build_alias+set} 900ac_cv_env_build_alias_value=$build_alias 901ac_env_host_alias_set=${host_alias+set} 902ac_env_host_alias_value=$host_alias 903ac_cv_env_host_alias_set=${host_alias+set} 904ac_cv_env_host_alias_value=$host_alias 905ac_env_target_alias_set=${target_alias+set} 906ac_env_target_alias_value=$target_alias 907ac_cv_env_target_alias_set=${target_alias+set} 908ac_cv_env_target_alias_value=$target_alias 909ac_env_CC_set=${CC+set} 910ac_env_CC_value=$CC 911ac_cv_env_CC_set=${CC+set} 912ac_cv_env_CC_value=$CC 913ac_env_CFLAGS_set=${CFLAGS+set} 914ac_env_CFLAGS_value=$CFLAGS 915ac_cv_env_CFLAGS_set=${CFLAGS+set} 916ac_cv_env_CFLAGS_value=$CFLAGS 917ac_env_LDFLAGS_set=${LDFLAGS+set} 918ac_env_LDFLAGS_value=$LDFLAGS 919ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 920ac_cv_env_LDFLAGS_value=$LDFLAGS 921ac_env_CPPFLAGS_set=${CPPFLAGS+set} 922ac_env_CPPFLAGS_value=$CPPFLAGS 923ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 924ac_cv_env_CPPFLAGS_value=$CPPFLAGS 925ac_env_F77_set=${F77+set} 926ac_env_F77_value=$F77 927ac_cv_env_F77_set=${F77+set} 928ac_cv_env_F77_value=$F77 929ac_env_FFLAGS_set=${FFLAGS+set} 930ac_env_FFLAGS_value=$FFLAGS 931ac_cv_env_FFLAGS_set=${FFLAGS+set} 932ac_cv_env_FFLAGS_value=$FFLAGS 933ac_env_CPP_set=${CPP+set} 934ac_env_CPP_value=$CPP 935ac_cv_env_CPP_set=${CPP+set} 936ac_cv_env_CPP_value=$CPP 937ac_env_CXX_set=${CXX+set} 938ac_env_CXX_value=$CXX 939ac_cv_env_CXX_set=${CXX+set} 940ac_cv_env_CXX_value=$CXX 941ac_env_CXXFLAGS_set=${CXXFLAGS+set} 942ac_env_CXXFLAGS_value=$CXXFLAGS 943ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 944ac_cv_env_CXXFLAGS_value=$CXXFLAGS 945ac_env_CXXCPP_set=${CXXCPP+set} 946ac_env_CXXCPP_value=$CXXCPP 947ac_cv_env_CXXCPP_set=${CXXCPP+set} 948ac_cv_env_CXXCPP_value=$CXXCPP 949 950# 951# Report the --help message. 952# 953if test "$ac_init_help" = "long"; then 954 # Omit some internal or obsolete options to make the list less imposing. 955 # This message is too long to be a string in the A/UX 3.1 sh. 956 cat <<_ACEOF 957\`configure' configures harminv 1.3.1 to adapt to many kinds of systems. 958 959Usage: $0 [OPTION]... [VAR=VALUE]... 960 961To assign environment variables (e.g., CC, CFLAGS...), specify them as 962VAR=VALUE. See below for descriptions of some of the useful variables. 963 964Defaults for the options are specified in brackets. 965 966Configuration: 967 -h, --help display this help and exit 968 --help=short display options specific to this package 969 --help=recursive display the short help of all the included packages 970 -V, --version display version information and exit 971 -q, --quiet, --silent do not print \`checking...' messages 972 --cache-file=FILE cache test results in FILE [disabled] 973 -C, --config-cache alias for \`--cache-file=config.cache' 974 -n, --no-create do not create output files 975 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 976 977_ACEOF 978 979 cat <<_ACEOF 980Installation directories: 981 --prefix=PREFIX install architecture-independent files in PREFIX 982 [$ac_default_prefix] 983 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 984 [PREFIX] 985 986By default, \`make install' will install all the files in 987\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 988an installation prefix other than \`$ac_default_prefix' using \`--prefix', 989for instance \`--prefix=\$HOME'. 990 991For better control, use the options below. 992 993Fine tuning of the installation directories: 994 --bindir=DIR user executables [EPREFIX/bin] 995 --sbindir=DIR system admin executables [EPREFIX/sbin] 996 --libexecdir=DIR program executables [EPREFIX/libexec] 997 --datadir=DIR read-only architecture-independent data [PREFIX/share] 998 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 999 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1000 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1001 --libdir=DIR object code libraries [EPREFIX/lib] 1002 --includedir=DIR C header files [PREFIX/include] 1003 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1004 --infodir=DIR info documentation [PREFIX/info] 1005 --mandir=DIR man documentation [PREFIX/man] 1006_ACEOF 1007 1008 cat <<\_ACEOF 1009 1010Program names: 1011 --program-prefix=PREFIX prepend PREFIX to installed program names 1012 --program-suffix=SUFFIX append SUFFIX to installed program names 1013 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1014 1015System types: 1016 --build=BUILD configure for building on BUILD [guessed] 1017 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1018_ACEOF 1019fi 1020 1021if test -n "$ac_init_help"; then 1022 case $ac_init_help in 1023 short | recursive ) echo "Configuration of harminv 1.3.1:";; 1024 esac 1025 cat <<\_ACEOF 1026 1027Optional Features: 1028 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1029 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1030 --enable-maintainer-mode enable make rules and dependencies not useful 1031 (and sometimes confusing) to the casual installer 1032 --enable-shared[=PKGS] 1033 build shared libraries [default=no] 1034 --enable-debug 1035 --disable-dependency-tracking speeds up one-time build 1036 --enable-dependency-tracking do not reject slow dependency extractors 1037 --enable-static[=PKGS] 1038 build static libraries [default=yes] 1039 --enable-fast-install[=PKGS] 1040 optimize for fast installation [default=yes] 1041 --disable-libtool-lock avoid locking (might break parallel builds) 1042 1043Optional Packages: 1044 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1045 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1046 --with-cxx=<dir> force use of C++ and complex<double> 1047 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1048 --with-pic try to use only PIC/non-PIC objects [default=use 1049 both] 1050 --with-tags[=TAGS] 1051 include additional configurations [automatic] 1052 --with-blas=<lib> use BLAS library <lib> 1053 --with-lapack=<lib> use LAPACK library <lib> 1054 1055Some influential environment variables: 1056 CC C compiler command 1057 CFLAGS C compiler flags 1058 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1059 nonstandard directory <lib dir> 1060 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1061 headers in a nonstandard directory <include dir> 1062 F77 Fortran 77 compiler command 1063 FFLAGS Fortran 77 compiler flags 1064 CPP C preprocessor 1065 CXX C++ compiler command 1066 CXXFLAGS C++ compiler flags 1067 CXXCPP C++ preprocessor 1068 1069Use these variables to override the choices made by `configure' or to help 1070it to find libraries and programs with nonstandard names/locations. 1071 1072Report bugs to <stevenj@alum.mit.edu>. 1073_ACEOF 1074fi 1075 1076if test "$ac_init_help" = "recursive"; then 1077 # If there are subdirs, report their specific --help. 1078 ac_popdir=`pwd` 1079 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1080 test -d $ac_dir || continue 1081 ac_builddir=. 1082 1083if test "$ac_dir" != .; then 1084 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1085 # A "../" for each directory in $ac_dir_suffix. 1086 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 1087else 1088 ac_dir_suffix= ac_top_builddir= 1089fi 1090 1091case $srcdir in 1092 .) # No --srcdir option. We are building in place. 1093 ac_srcdir=. 1094 if test -z "$ac_top_builddir"; then 1095 ac_top_srcdir=. 1096 else 1097 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 1098 fi ;; 1099 [\\/]* | ?:[\\/]* ) # Absolute path. 1100 ac_srcdir=$srcdir$ac_dir_suffix; 1101 ac_top_srcdir=$srcdir ;; 1102 *) # Relative path. 1103 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 1104 ac_top_srcdir=$ac_top_builddir$srcdir ;; 1105esac 1106 1107# Do not use `cd foo && pwd` to compute absolute paths, because 1108# the directories may not exist. 1109case `pwd` in 1110.) ac_abs_builddir="$ac_dir";; 1111*) 1112 case "$ac_dir" in 1113 .) ac_abs_builddir=`pwd`;; 1114 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 1115 *) ac_abs_builddir=`pwd`/"$ac_dir";; 1116 esac;; 1117esac 1118case $ac_abs_builddir in 1119.) ac_abs_top_builddir=${ac_top_builddir}.;; 1120*) 1121 case ${ac_top_builddir}. in 1122 .) ac_abs_top_builddir=$ac_abs_builddir;; 1123 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 1124 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 1125 esac;; 1126esac 1127case $ac_abs_builddir in 1128.) ac_abs_srcdir=$ac_srcdir;; 1129*) 1130 case $ac_srcdir in 1131 .) ac_abs_srcdir=$ac_abs_builddir;; 1132 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 1133 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 1134 esac;; 1135esac 1136case $ac_abs_builddir in 1137.) ac_abs_top_srcdir=$ac_top_srcdir;; 1138*) 1139 case $ac_top_srcdir in 1140 .) ac_abs_top_srcdir=$ac_abs_builddir;; 1141 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 1142 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 1143 esac;; 1144esac 1145 1146 cd $ac_dir 1147 # Check for guested configure; otherwise get Cygnus style configure. 1148 if test -f $ac_srcdir/configure.gnu; then 1149 echo 1150 $SHELL $ac_srcdir/configure.gnu --help=recursive 1151 elif test -f $ac_srcdir/configure; then 1152 echo 1153 $SHELL $ac_srcdir/configure --help=recursive 1154 elif test -f $ac_srcdir/configure.ac || 1155 test -f $ac_srcdir/configure.in; then 1156 echo 1157 $ac_configure --help 1158 else 1159 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1160 fi 1161 cd "$ac_popdir" 1162 done 1163fi 1164 1165test -n "$ac_init_help" && exit 0 1166if $ac_init_version; then 1167 cat <<\_ACEOF 1168harminv configure 1.3.1 1169generated by GNU Autoconf 2.59 1170 1171Copyright (C) 2003 Free Software Foundation, Inc. 1172This configure script is free software; the Free Software Foundation 1173gives unlimited permission to copy, distribute and modify it. 1174_ACEOF 1175 exit 0 1176fi 1177exec 5>config.log 1178cat >&5 <<_ACEOF 1179This file contains any messages produced by compilers while 1180running configure, to aid debugging if configure makes a mistake. 1181 1182It was created by harminv $as_me 1.3.1, which was 1183generated by GNU Autoconf 2.59. Invocation command line was 1184 1185 $ $0 $@ 1186 1187_ACEOF 1188{ 1189cat <<_ASUNAME 1190## --------- ## 1191## Platform. ## 1192## --------- ## 1193 1194hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1195uname -m = `(uname -m) 2>/dev/null || echo unknown` 1196uname -r = `(uname -r) 2>/dev/null || echo unknown` 1197uname -s = `(uname -s) 2>/dev/null || echo unknown` 1198uname -v = `(uname -v) 2>/dev/null || echo unknown` 1199 1200/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1201/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1202 1203/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1204/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1205/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1206hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1207/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1208/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1209/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1210 1211_ASUNAME 1212 1213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1214for as_dir in $PATH 1215do 1216 IFS=$as_save_IFS 1217 test -z "$as_dir" && as_dir=. 1218 echo "PATH: $as_dir" 1219done 1220 1221} >&5 1222 1223cat >&5 <<_ACEOF 1224 1225 1226## ----------- ## 1227## Core tests. ## 1228## ----------- ## 1229 1230_ACEOF 1231 1232 1233# Keep a trace of the command line. 1234# Strip out --no-create and --no-recursion so they do not pile up. 1235# Strip out --silent because we don't want to record it for future runs. 1236# Also quote any args containing shell meta-characters. 1237# Make two passes to allow for proper duplicate-argument suppression. 1238ac_configure_args= 1239ac_configure_args0= 1240ac_configure_args1= 1241ac_sep= 1242ac_must_keep_next=false 1243for ac_pass in 1 2 1244do 1245 for ac_arg 1246 do 1247 case $ac_arg in 1248 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1249 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1250 | -silent | --silent | --silen | --sile | --sil) 1251 continue ;; 1252 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1253 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1254 esac 1255 case $ac_pass in 1256 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1257 2) 1258 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1259 if test $ac_must_keep_next = true; then 1260 ac_must_keep_next=false # Got value, back to normal. 1261 else 1262 case $ac_arg in 1263 *=* | --config-cache | -C | -disable-* | --disable-* \ 1264 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1265 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1266 | -with-* | --with-* | -without-* | --without-* | --x) 1267 case "$ac_configure_args0 " in 1268 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1269 esac 1270 ;; 1271 -* ) ac_must_keep_next=true ;; 1272 esac 1273 fi 1274 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1275 # Get rid of the leading space. 1276 ac_sep=" " 1277 ;; 1278 esac 1279 done 1280done 1281$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1282$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1283 1284# When interrupted or exit'd, cleanup temporary files, and complete 1285# config.log. We remove comments because anyway the quotes in there 1286# would cause problems or look ugly. 1287# WARNING: Be sure not to use single quotes in there, as some shells, 1288# such as our DU 5.0 friend, will then `close' the trap. 1289trap 'exit_status=$? 1290 # Save into config.log some information that might help in debugging. 1291 { 1292 echo 1293 1294 cat <<\_ASBOX 1295## ---------------- ## 1296## Cache variables. ## 1297## ---------------- ## 1298_ASBOX 1299 echo 1300 # The following way of writing the cache mishandles newlines in values, 1301{ 1302 (set) 2>&1 | 1303 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1304 *ac_space=\ *) 1305 sed -n \ 1306 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1307 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1308 ;; 1309 *) 1310 sed -n \ 1311 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1312 ;; 1313 esac; 1314} 1315 echo 1316 1317 cat <<\_ASBOX 1318## ----------------- ## 1319## Output variables. ## 1320## ----------------- ## 1321_ASBOX 1322 echo 1323 for ac_var in $ac_subst_vars 1324 do 1325 eval ac_val=$`echo $ac_var` 1326 echo "$ac_var='"'"'$ac_val'"'"'" 1327 done | sort 1328 echo 1329 1330 if test -n "$ac_subst_files"; then 1331 cat <<\_ASBOX 1332## ------------- ## 1333## Output files. ## 1334## ------------- ## 1335_ASBOX 1336 echo 1337 for ac_var in $ac_subst_files 1338 do 1339 eval ac_val=$`echo $ac_var` 1340 echo "$ac_var='"'"'$ac_val'"'"'" 1341 done | sort 1342 echo 1343 fi 1344 1345 if test -s confdefs.h; then 1346 cat <<\_ASBOX 1347## ----------- ## 1348## confdefs.h. ## 1349## ----------- ## 1350_ASBOX 1351 echo 1352 sed "/^$/d" confdefs.h | sort 1353 echo 1354 fi 1355 test "$ac_signal" != 0 && 1356 echo "$as_me: caught signal $ac_signal" 1357 echo "$as_me: exit $exit_status" 1358 } >&5 1359 rm -f core *.core && 1360 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1361 exit $exit_status 1362 ' 0 1363for ac_signal in 1 2 13 15; do 1364 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1365done 1366ac_signal=0 1367 1368# confdefs.h avoids OS command line length limits that DEFS can exceed. 1369rm -rf conftest* confdefs.h 1370# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1371echo >confdefs.h 1372 1373# Predefined preprocessor variables. 1374 1375cat >>confdefs.h <<_ACEOF 1376#define PACKAGE_NAME "$PACKAGE_NAME" 1377_ACEOF 1378 1379 1380cat >>confdefs.h <<_ACEOF 1381#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1382_ACEOF 1383 1384 1385cat >>confdefs.h <<_ACEOF 1386#define PACKAGE_VERSION "$PACKAGE_VERSION" 1387_ACEOF 1388 1389 1390cat >>confdefs.h <<_ACEOF 1391#define PACKAGE_STRING "$PACKAGE_STRING" 1392_ACEOF 1393 1394 1395cat >>confdefs.h <<_ACEOF 1396#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1397_ACEOF 1398 1399 1400# Let the site file select an alternate cache file if it wants to. 1401# Prefer explicitly selected file to automatically selected ones. 1402if test -z "$CONFIG_SITE"; then 1403 if test "x$prefix" != xNONE; then 1404 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1405 else 1406 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1407 fi 1408fi 1409for ac_site_file in $CONFIG_SITE; do 1410 if test -r "$ac_site_file"; then 1411 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1412echo "$as_me: loading site script $ac_site_file" >&6;} 1413 sed 's/^/| /' "$ac_site_file" >&5 1414 . "$ac_site_file" 1415 fi 1416done 1417 1418if test -r "$cache_file"; then 1419 # Some versions of bash will fail to source /dev/null (special 1420 # files actually), so we avoid doing that. 1421 if test -f "$cache_file"; then 1422 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1423echo "$as_me: loading cache $cache_file" >&6;} 1424 case $cache_file in 1425 [\\/]* | ?:[\\/]* ) . $cache_file;; 1426 *) . ./$cache_file;; 1427 esac 1428 fi 1429else 1430 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1431echo "$as_me: creating cache $cache_file" >&6;} 1432 >$cache_file 1433fi 1434 1435# Check that the precious variables saved in the cache have kept the same 1436# value. 1437ac_cache_corrupted=false 1438for ac_var in `(set) 2>&1 | 1439 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1440 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1441 eval ac_new_set=\$ac_env_${ac_var}_set 1442 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1443 eval ac_new_val="\$ac_env_${ac_var}_value" 1444 case $ac_old_set,$ac_new_set in 1445 set,) 1446 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1447echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1448 ac_cache_corrupted=: ;; 1449 ,set) 1450 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1451echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1452 ac_cache_corrupted=: ;; 1453 ,);; 1454 *) 1455 if test "x$ac_old_val" != "x$ac_new_val"; then 1456 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1457echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1458 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1459echo "$as_me: former value: $ac_old_val" >&2;} 1460 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1461echo "$as_me: current value: $ac_new_val" >&2;} 1462 ac_cache_corrupted=: 1463 fi;; 1464 esac 1465 # Pass precious variables to config.status. 1466 if test "$ac_new_set" = set; then 1467 case $ac_new_val in 1468 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1469 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1470 *) ac_arg=$ac_var=$ac_new_val ;; 1471 esac 1472 case " $ac_configure_args " in 1473 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1474 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1475 esac 1476 fi 1477done 1478if $ac_cache_corrupted; then 1479 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1480echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1481 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1482echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1483 { (exit 1); exit 1; }; } 1484fi 1485 1486ac_ext=c 1487ac_cpp='$CPP $CPPFLAGS' 1488ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1489ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1490ac_compiler_gnu=$ac_cv_c_compiler_gnu 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518am__api_version="1.9" 1519ac_aux_dir= 1520for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1521 if test -f $ac_dir/install-sh; then 1522 ac_aux_dir=$ac_dir 1523 ac_install_sh="$ac_aux_dir/install-sh -c" 1524 break 1525 elif test -f $ac_dir/install.sh; then 1526 ac_aux_dir=$ac_dir 1527 ac_install_sh="$ac_aux_dir/install.sh -c" 1528 break 1529 elif test -f $ac_dir/shtool; then 1530 ac_aux_dir=$ac_dir 1531 ac_install_sh="$ac_aux_dir/shtool install -c" 1532 break 1533 fi 1534done 1535if test -z "$ac_aux_dir"; then 1536 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1537echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1538 { (exit 1); exit 1; }; } 1539fi 1540ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1541ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1542ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1543 1544# Find a good install program. We prefer a C program (faster), 1545# so one script is as good as another. But avoid the broken or 1546# incompatible versions: 1547# SysV /etc/install, /usr/sbin/install 1548# SunOS /usr/etc/install 1549# IRIX /sbin/install 1550# AIX /bin/install 1551# AmigaOS /C/install, which installs bootblocks on floppy discs 1552# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1553# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1554# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1555# OS/2's system install, which has a completely different semantic 1556# ./install, which can be erroneously created by make from ./install.sh. 1557echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1558echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 1559if test -z "$INSTALL"; then 1560if test "${ac_cv_path_install+set}" = set; then 1561 echo $ECHO_N "(cached) $ECHO_C" >&6 1562else 1563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1564for as_dir in $PATH 1565do 1566 IFS=$as_save_IFS 1567 test -z "$as_dir" && as_dir=. 1568 # Account for people who put trailing slashes in PATH elements. 1569case $as_dir/ in 1570 ./ | .// | /cC/* | \ 1571 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1572 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1573 /usr/ucb/* ) ;; 1574 *) 1575 # OSF1 and SCO ODT 3.0 have their own names for install. 1576 # Don't use installbsd from OSF since it installs stuff as root 1577 # by default. 1578 for ac_prog in ginstall scoinst install; do 1579 for ac_exec_ext in '' $ac_executable_extensions; do 1580 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 1581 if test $ac_prog = install && 1582 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1583 # AIX install. It has an incompatible calling convention. 1584 : 1585 elif test $ac_prog = install && 1586 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1587 # program-specific install script used by HP pwplus--don't use. 1588 : 1589 else 1590 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1591 break 3 1592 fi 1593 fi 1594 done 1595 done 1596 ;; 1597esac 1598done 1599 1600 1601fi 1602 if test "${ac_cv_path_install+set}" = set; then 1603 INSTALL=$ac_cv_path_install 1604 else 1605 # As a last resort, use the slow shell script. We don't cache a 1606 # path for INSTALL within a source directory, because that will 1607 # break other packages using the cache if that directory is 1608 # removed, or if the path is relative. 1609 INSTALL=$ac_install_sh 1610 fi 1611fi 1612echo "$as_me:$LINENO: result: $INSTALL" >&5 1613echo "${ECHO_T}$INSTALL" >&6 1614 1615# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1616# It thinks the first close brace ends the variable substitution. 1617test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1618 1619test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1620 1621test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1622 1623echo "$as_me:$LINENO: checking whether build environment is sane" >&5 1624echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 1625# Just in case 1626sleep 1 1627echo timestamp > conftest.file 1628# Do `set' in a subshell so we don't clobber the current shell's 1629# arguments. Must try -L first in case configure is actually a 1630# symlink; some systems play weird games with the mod time of symlinks 1631# (eg FreeBSD returns the mod time of the symlink's containing 1632# directory). 1633if ( 1634 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 1635 if test "$*" = "X"; then 1636 # -L didn't work. 1637 set X `ls -t $srcdir/configure conftest.file` 1638 fi 1639 rm -f conftest.file 1640 if test "$*" != "X $srcdir/configure conftest.file" \ 1641 && test "$*" != "X conftest.file $srcdir/configure"; then 1642 1643 # If neither matched, then we have a broken ls. This can happen 1644 # if, for instance, CONFIG_SHELL is bash and it inherits a 1645 # broken ls alias from the environment. This has actually 1646 # happened. Such a system could not be considered "sane". 1647 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 1648alias in your environment" >&5 1649echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1650alias in your environment" >&2;} 1651 { (exit 1); exit 1; }; } 1652 fi 1653 1654 test "$2" = conftest.file 1655 ) 1656then 1657 # Ok. 1658 : 1659else 1660 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 1661Check your system clock" >&5 1662echo "$as_me: error: newly created file is older than distributed files! 1663Check your system clock" >&2;} 1664 { (exit 1); exit 1; }; } 1665fi 1666echo "$as_me:$LINENO: result: yes" >&5 1667echo "${ECHO_T}yes" >&6 1668test "$program_prefix" != NONE && 1669 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1670# Use a double $ so make ignores it. 1671test "$program_suffix" != NONE && 1672 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1673# Double any \ or $. echo might interpret backslashes. 1674# By default was `s,x,x', remove it if useless. 1675cat <<\_ACEOF >conftest.sed 1676s/[\\$]/&&/g;s/;s,x,x,$// 1677_ACEOF 1678program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1679rm conftest.sed 1680 1681# expand $ac_aux_dir to an absolute path 1682am_aux_dir=`cd $ac_aux_dir && pwd` 1683 1684test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 1685# Use eval to expand $SHELL 1686if eval "$MISSING --run true"; then 1687 am_missing_run="$MISSING --run " 1688else 1689 am_missing_run= 1690 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 1691echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 1692fi 1693 1694if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 1695 # We used to keeping the `.' as first argument, in order to 1696 # allow $(mkdir_p) to be used without argument. As in 1697 # $(mkdir_p) $(somedir) 1698 # where $(somedir) is conditionally defined. However this is wrong 1699 # for two reasons: 1700 # 1. if the package is installed by a user who cannot write `.' 1701 # make install will fail, 1702 # 2. the above comment should most certainly read 1703 # $(mkdir_p) $(DESTDIR)$(somedir) 1704 # so it does not work when $(somedir) is undefined and 1705 # $(DESTDIR) is not. 1706 # To support the latter case, we have to write 1707 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 1708 # so the `.' trick is pointless. 1709 mkdir_p='mkdir -p --' 1710else 1711 # On NextStep and OpenStep, the `mkdir' command does not 1712 # recognize any option. It will interpret all options as 1713 # directories to create, and then abort because `.' already 1714 # exists. 1715 for d in ./-p ./--version; 1716 do 1717 test -d $d && rmdir $d 1718 done 1719 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 1720 if test -f "$ac_aux_dir/mkinstalldirs"; then 1721 mkdir_p='$(mkinstalldirs)' 1722 else 1723 mkdir_p='$(install_sh) -d' 1724 fi 1725fi 1726 1727for ac_prog in gawk mawk nawk awk 1728do 1729 # Extract the first word of "$ac_prog", so it can be a program name with args. 1730set dummy $ac_prog; ac_word=$2 1731echo "$as_me:$LINENO: checking for $ac_word" >&5 1732echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1733if test "${ac_cv_prog_AWK+set}" = set; then 1734 echo $ECHO_N "(cached) $ECHO_C" >&6 1735else 1736 if test -n "$AWK"; then 1737 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1738else 1739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1740for as_dir in $PATH 1741do 1742 IFS=$as_save_IFS 1743 test -z "$as_dir" && as_dir=. 1744 for ac_exec_ext in '' $ac_executable_extensions; do 1745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1746 ac_cv_prog_AWK="$ac_prog" 1747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1748 break 2 1749 fi 1750done 1751done 1752 1753fi 1754fi 1755AWK=$ac_cv_prog_AWK 1756if test -n "$AWK"; then 1757 echo "$as_me:$LINENO: result: $AWK" >&5 1758echo "${ECHO_T}$AWK" >&6 1759else 1760 echo "$as_me:$LINENO: result: no" >&5 1761echo "${ECHO_T}no" >&6 1762fi 1763 1764 test -n "$AWK" && break 1765done 1766 1767echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 1768echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 1769set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 1770if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1771 echo $ECHO_N "(cached) $ECHO_C" >&6 1772else 1773 cat >conftest.make <<\_ACEOF 1774all: 1775 @echo 'ac_maketemp="$(MAKE)"' 1776_ACEOF 1777# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1778eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1779if test -n "$ac_maketemp"; then 1780 eval ac_cv_prog_make_${ac_make}_set=yes 1781else 1782 eval ac_cv_prog_make_${ac_make}_set=no 1783fi 1784rm -f conftest.make 1785fi 1786if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1787 echo "$as_me:$LINENO: result: yes" >&5 1788echo "${ECHO_T}yes" >&6 1789 SET_MAKE= 1790else 1791 echo "$as_me:$LINENO: result: no" >&5 1792echo "${ECHO_T}no" >&6 1793 SET_MAKE="MAKE=${MAKE-make}" 1794fi 1795 1796rm -rf .tst 2>/dev/null 1797mkdir .tst 2>/dev/null 1798if test -d .tst; then 1799 am__leading_dot=. 1800else 1801 am__leading_dot=_ 1802fi 1803rmdir .tst 2>/dev/null 1804 1805# test to see if srcdir already configured 1806if test "`cd $srcdir && pwd`" != "`pwd`" && 1807 test -f $srcdir/config.status; then 1808 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 1809echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 1810 { (exit 1); exit 1; }; } 1811fi 1812 1813# test whether we have cygpath 1814if test -z "$CYGPATH_W"; then 1815 if (cygpath --version) >/dev/null 2>/dev/null; then 1816 CYGPATH_W='cygpath -w' 1817 else 1818 CYGPATH_W=echo 1819 fi 1820fi 1821 1822 1823# Define the identity of the package. 1824 PACKAGE='harminv' 1825 VERSION='1.3.1' 1826 1827 1828cat >>confdefs.h <<_ACEOF 1829#define PACKAGE "$PACKAGE" 1830_ACEOF 1831 1832 1833cat >>confdefs.h <<_ACEOF 1834#define VERSION "$VERSION" 1835_ACEOF 1836 1837# Some tools Automake needs. 1838 1839ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 1840 1841 1842AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 1843 1844 1845AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 1846 1847 1848AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 1849 1850 1851MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 1852 1853install_sh=${install_sh-"$am_aux_dir/install-sh"} 1854 1855# Installed binaries are usually stripped using `strip' when the user 1856# run `make install-strip'. However `strip' might not be the right 1857# tool to use in cross-compilation environments, therefore Automake 1858# will honor the `STRIP' environment variable to overrule this program. 1859if test "$cross_compiling" != no; then 1860 if test -n "$ac_tool_prefix"; then 1861 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 1862set dummy ${ac_tool_prefix}strip; ac_word=$2 1863echo "$as_me:$LINENO: checking for $ac_word" >&5 1864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1865if test "${ac_cv_prog_STRIP+set}" = set; then 1866 echo $ECHO_N "(cached) $ECHO_C" >&6 1867else 1868 if test -n "$STRIP"; then 1869 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 1870else 1871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1872for as_dir in $PATH 1873do 1874 IFS=$as_save_IFS 1875 test -z "$as_dir" && as_dir=. 1876 for ac_exec_ext in '' $ac_executable_extensions; do 1877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1878 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 1879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1880 break 2 1881 fi 1882done 1883done 1884 1885fi 1886fi 1887STRIP=$ac_cv_prog_STRIP 1888if test -n "$STRIP"; then 1889 echo "$as_me:$LINENO: result: $STRIP" >&5 1890echo "${ECHO_T}$STRIP" >&6 1891else 1892 echo "$as_me:$LINENO: result: no" >&5 1893echo "${ECHO_T}no" >&6 1894fi 1895 1896fi 1897if test -z "$ac_cv_prog_STRIP"; then 1898 ac_ct_STRIP=$STRIP 1899 # Extract the first word of "strip", so it can be a program name with args. 1900set dummy strip; ac_word=$2 1901echo "$as_me:$LINENO: checking for $ac_word" >&5 1902echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1903if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 1904 echo $ECHO_N "(cached) $ECHO_C" >&6 1905else 1906 if test -n "$ac_ct_STRIP"; then 1907 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 1908else 1909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1910for as_dir in $PATH 1911do 1912 IFS=$as_save_IFS 1913 test -z "$as_dir" && as_dir=. 1914 for ac_exec_ext in '' $ac_executable_extensions; do 1915 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1916 ac_cv_prog_ac_ct_STRIP="strip" 1917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1918 break 2 1919 fi 1920done 1921done 1922 1923 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 1924fi 1925fi 1926ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 1927if test -n "$ac_ct_STRIP"; then 1928 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 1929echo "${ECHO_T}$ac_ct_STRIP" >&6 1930else 1931 echo "$as_me:$LINENO: result: no" >&5 1932echo "${ECHO_T}no" >&6 1933fi 1934 1935 STRIP=$ac_ct_STRIP 1936else 1937 STRIP="$ac_cv_prog_STRIP" 1938fi 1939 1940fi 1941INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 1942 1943# We need awk for the "check" target. The system "awk" is bad on 1944# some platforms. 1945# Always define AMTAR for backward compatibility. 1946 1947AMTAR=${AMTAR-"${am_missing_run}tar"} 1948 1949am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 1950 1951 1952 1953 1954 1955 1956 ac_config_headers="$ac_config_headers config.h" 1957 1958echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 1959echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 1960 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 1961if test "${enable_maintainer_mode+set}" = set; then 1962 enableval="$enable_maintainer_mode" 1963 USE_MAINTAINER_MODE=$enableval 1964else 1965 USE_MAINTAINER_MODE=no 1966fi; 1967 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 1968echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 1969 1970 1971if test $USE_MAINTAINER_MODE = yes; then 1972 MAINTAINER_MODE_TRUE= 1973 MAINTAINER_MODE_FALSE='#' 1974else 1975 MAINTAINER_MODE_TRUE='#' 1976 MAINTAINER_MODE_FALSE= 1977fi 1978 1979 MAINT=$MAINTAINER_MODE_TRUE 1980 1981 1982 1983# Shared-library version number; indicates api compatibility, and is 1984# *not* the same as the "public" version number. CURRENT:REVISION:AGE 1985SHARED_VERSION_INFO="2:4:0" 1986 1987# Check whether --enable-shared or --disable-shared was given. 1988if test "${enable_shared+set}" = set; then 1989 enableval="$enable_shared" 1990 p=${PACKAGE-default} 1991 case $enableval in 1992 yes) enable_shared=yes ;; 1993 no) enable_shared=no ;; 1994 *) 1995 enable_shared=no 1996 # Look at the argument we got. We use all the common list separators. 1997 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 1998 for pkg in $enableval; do 1999 IFS="$lt_save_ifs" 2000 if test "X$pkg" = "X$p"; then 2001 enable_shared=yes 2002 fi 2003 done 2004 IFS="$lt_save_ifs" 2005 ;; 2006 esac 2007else 2008 enable_shared=no 2009fi; 2010 2011############################################################################## 2012 2013# Check whether --enable-debug or --disable-debug was given. 2014if test "${enable_debug+set}" = set; then 2015 enableval="$enable_debug" 2016 enable_debug=$enableval 2017else 2018 enable_debug=no 2019fi; 2020if test "$enable_debug" = "yes"; then 2021 CFLAGS="-g" 2022 CXXFLAGS="-g" 2023 FFLAGS="-g" 2024 2025cat >>confdefs.h <<\_ACEOF 2026#define DEBUG 1 2027_ACEOF 2028 2029fi 2030 2031############################################################################## 2032 2033# Checks for programs. 2034ac_ext=c 2035ac_cpp='$CPP $CPPFLAGS' 2036ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2037ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2038ac_compiler_gnu=$ac_cv_c_compiler_gnu 2039if test -n "$ac_tool_prefix"; then 2040 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2041set dummy ${ac_tool_prefix}gcc; ac_word=$2 2042echo "$as_me:$LINENO: checking for $ac_word" >&5 2043echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2044if test "${ac_cv_prog_CC+set}" = set; then 2045 echo $ECHO_N "(cached) $ECHO_C" >&6 2046else 2047 if test -n "$CC"; then 2048 ac_cv_prog_CC="$CC" # Let the user override the test. 2049else 2050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2051for as_dir in $PATH 2052do 2053 IFS=$as_save_IFS 2054 test -z "$as_dir" && as_dir=. 2055 for ac_exec_ext in '' $ac_executable_extensions; do 2056 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2057 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2059 break 2 2060 fi 2061done 2062done 2063 2064fi 2065fi 2066CC=$ac_cv_prog_CC 2067if test -n "$CC"; then 2068 echo "$as_me:$LINENO: result: $CC" >&5 2069echo "${ECHO_T}$CC" >&6 2070else 2071 echo "$as_me:$LINENO: result: no" >&5 2072echo "${ECHO_T}no" >&6 2073fi 2074 2075fi 2076if test -z "$ac_cv_prog_CC"; then 2077 ac_ct_CC=$CC 2078 # Extract the first word of "gcc", so it can be a program name with args. 2079set dummy gcc; ac_word=$2 2080echo "$as_me:$LINENO: checking for $ac_word" >&5 2081echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2082if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2083 echo $ECHO_N "(cached) $ECHO_C" >&6 2084else 2085 if test -n "$ac_ct_CC"; then 2086 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2087else 2088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2089for as_dir in $PATH 2090do 2091 IFS=$as_save_IFS 2092 test -z "$as_dir" && as_dir=. 2093 for ac_exec_ext in '' $ac_executable_extensions; do 2094 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2095 ac_cv_prog_ac_ct_CC="gcc" 2096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2097 break 2 2098 fi 2099done 2100done 2101 2102fi 2103fi 2104ac_ct_CC=$ac_cv_prog_ac_ct_CC 2105if test -n "$ac_ct_CC"; then 2106 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2107echo "${ECHO_T}$ac_ct_CC" >&6 2108else 2109 echo "$as_me:$LINENO: result: no" >&5 2110echo "${ECHO_T}no" >&6 2111fi 2112 2113 CC=$ac_ct_CC 2114else 2115 CC="$ac_cv_prog_CC" 2116fi 2117 2118if test -z "$CC"; then 2119 if test -n "$ac_tool_prefix"; then 2120 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2121set dummy ${ac_tool_prefix}cc; ac_word=$2 2122echo "$as_me:$LINENO: checking for $ac_word" >&5 2123echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2124if test "${ac_cv_prog_CC+set}" = set; then 2125 echo $ECHO_N "(cached) $ECHO_C" >&6 2126else 2127 if test -n "$CC"; then 2128 ac_cv_prog_CC="$CC" # Let the user override the test. 2129else 2130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2131for as_dir in $PATH 2132do 2133 IFS=$as_save_IFS 2134 test -z "$as_dir" && as_dir=. 2135 for ac_exec_ext in '' $ac_executable_extensions; do 2136 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2137 ac_cv_prog_CC="${ac_tool_prefix}cc" 2138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2139 break 2 2140 fi 2141done 2142done 2143 2144fi 2145fi 2146CC=$ac_cv_prog_CC 2147if test -n "$CC"; then 2148 echo "$as_me:$LINENO: result: $CC" >&5 2149echo "${ECHO_T}$CC" >&6 2150else 2151 echo "$as_me:$LINENO: result: no" >&5 2152echo "${ECHO_T}no" >&6 2153fi 2154 2155fi 2156if test -z "$ac_cv_prog_CC"; then 2157 ac_ct_CC=$CC 2158 # Extract the first word of "cc", so it can be a program name with args. 2159set dummy cc; ac_word=$2 2160echo "$as_me:$LINENO: checking for $ac_word" >&5 2161echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2162if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2163 echo $ECHO_N "(cached) $ECHO_C" >&6 2164else 2165 if test -n "$ac_ct_CC"; then 2166 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2167else 2168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2169for as_dir in $PATH 2170do 2171 IFS=$as_save_IFS 2172 test -z "$as_dir" && as_dir=. 2173 for ac_exec_ext in '' $ac_executable_extensions; do 2174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2175 ac_cv_prog_ac_ct_CC="cc" 2176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2177 break 2 2178 fi 2179done 2180done 2181 2182fi 2183fi 2184ac_ct_CC=$ac_cv_prog_ac_ct_CC 2185if test -n "$ac_ct_CC"; then 2186 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2187echo "${ECHO_T}$ac_ct_CC" >&6 2188else 2189 echo "$as_me:$LINENO: result: no" >&5 2190echo "${ECHO_T}no" >&6 2191fi 2192 2193 CC=$ac_ct_CC 2194else 2195 CC="$ac_cv_prog_CC" 2196fi 2197 2198fi 2199if test -z "$CC"; then 2200 # Extract the first word of "cc", so it can be a program name with args. 2201set dummy cc; ac_word=$2 2202echo "$as_me:$LINENO: checking for $ac_word" >&5 2203echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2204if test "${ac_cv_prog_CC+set}" = set; then 2205 echo $ECHO_N "(cached) $ECHO_C" >&6 2206else 2207 if test -n "$CC"; then 2208 ac_cv_prog_CC="$CC" # Let the user override the test. 2209else 2210 ac_prog_rejected=no 2211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2212for as_dir in $PATH 2213do 2214 IFS=$as_save_IFS 2215 test -z "$as_dir" && as_dir=. 2216 for ac_exec_ext in '' $ac_executable_extensions; do 2217 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2218 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2219 ac_prog_rejected=yes 2220 continue 2221 fi 2222 ac_cv_prog_CC="cc" 2223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2224 break 2 2225 fi 2226done 2227done 2228 2229if test $ac_prog_rejected = yes; then 2230 # We found a bogon in the path, so make sure we never use it. 2231 set dummy $ac_cv_prog_CC 2232 shift 2233 if test $# != 0; then 2234 # We chose a different compiler from the bogus one. 2235 # However, it has the same basename, so the bogon will be chosen 2236 # first if we set CC to just the basename; use the full file name. 2237 shift 2238 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2239 fi 2240fi 2241fi 2242fi 2243CC=$ac_cv_prog_CC 2244if test -n "$CC"; then 2245 echo "$as_me:$LINENO: result: $CC" >&5 2246echo "${ECHO_T}$CC" >&6 2247else 2248 echo "$as_me:$LINENO: result: no" >&5 2249echo "${ECHO_T}no" >&6 2250fi 2251 2252fi 2253if test -z "$CC"; then 2254 if test -n "$ac_tool_prefix"; then 2255 for ac_prog in cl 2256 do 2257 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2258set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2259echo "$as_me:$LINENO: checking for $ac_word" >&5 2260echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2261if test "${ac_cv_prog_CC+set}" = set; then 2262 echo $ECHO_N "(cached) $ECHO_C" >&6 2263else 2264 if test -n "$CC"; then 2265 ac_cv_prog_CC="$CC" # Let the user override the test. 2266else 2267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2268for as_dir in $PATH 2269do 2270 IFS=$as_save_IFS 2271 test -z "$as_dir" && as_dir=. 2272 for ac_exec_ext in '' $ac_executable_extensions; do 2273 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2274 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2276 break 2 2277 fi 2278done 2279done 2280 2281fi 2282fi 2283CC=$ac_cv_prog_CC 2284if test -n "$CC"; then 2285 echo "$as_me:$LINENO: result: $CC" >&5 2286echo "${ECHO_T}$CC" >&6 2287else 2288 echo "$as_me:$LINENO: result: no" >&5 2289echo "${ECHO_T}no" >&6 2290fi 2291 2292 test -n "$CC" && break 2293 done 2294fi 2295if test -z "$CC"; then 2296 ac_ct_CC=$CC 2297 for ac_prog in cl 2298do 2299 # Extract the first word of "$ac_prog", so it can be a program name with args. 2300set dummy $ac_prog; ac_word=$2 2301echo "$as_me:$LINENO: checking for $ac_word" >&5 2302echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2303if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2304 echo $ECHO_N "(cached) $ECHO_C" >&6 2305else 2306 if test -n "$ac_ct_CC"; then 2307 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2308else 2309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2310for as_dir in $PATH 2311do 2312 IFS=$as_save_IFS 2313 test -z "$as_dir" && as_dir=. 2314 for ac_exec_ext in '' $ac_executable_extensions; do 2315 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2316 ac_cv_prog_ac_ct_CC="$ac_prog" 2317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2318 break 2 2319 fi 2320done 2321done 2322 2323fi 2324fi 2325ac_ct_CC=$ac_cv_prog_ac_ct_CC 2326if test -n "$ac_ct_CC"; then 2327 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2328echo "${ECHO_T}$ac_ct_CC" >&6 2329else 2330 echo "$as_me:$LINENO: result: no" >&5 2331echo "${ECHO_T}no" >&6 2332fi 2333 2334 test -n "$ac_ct_CC" && break 2335done 2336 2337 CC=$ac_ct_CC 2338fi 2339 2340fi 2341 2342 2343test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2344See \`config.log' for more details." >&5 2345echo "$as_me: error: no acceptable C compiler found in \$PATH 2346See \`config.log' for more details." >&2;} 2347 { (exit 1); exit 1; }; } 2348 2349# Provide some information about the compiler. 2350echo "$as_me:$LINENO:" \ 2351 "checking for C compiler version" >&5 2352ac_compiler=`set X $ac_compile; echo $2` 2353{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2354 (eval $ac_compiler --version </dev/null >&5) 2>&5 2355 ac_status=$? 2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2357 (exit $ac_status); } 2358{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2359 (eval $ac_compiler -v </dev/null >&5) 2>&5 2360 ac_status=$? 2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2362 (exit $ac_status); } 2363{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2364 (eval $ac_compiler -V </dev/null >&5) 2>&5 2365 ac_status=$? 2366 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2367 (exit $ac_status); } 2368 2369cat >conftest.$ac_ext <<_ACEOF 2370/* confdefs.h. */ 2371_ACEOF 2372cat confdefs.h >>conftest.$ac_ext 2373cat >>conftest.$ac_ext <<_ACEOF 2374/* end confdefs.h. */ 2375 2376int 2377main () 2378{ 2379 2380 ; 2381 return 0; 2382} 2383_ACEOF 2384ac_clean_files_save=$ac_clean_files 2385ac_clean_files="$ac_clean_files a.out a.exe b.out" 2386# Try to create an executable without -o first, disregard a.out. 2387# It will help us diagnose broken compilers, and finding out an intuition 2388# of exeext. 2389echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2390echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2391ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2392if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2393 (eval $ac_link_default) 2>&5 2394 ac_status=$? 2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2396 (exit $ac_status); }; then 2397 # Find the output, starting from the most likely. This scheme is 2398# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2399# resort. 2400 2401# Be careful to initialize this variable, since it used to be cached. 2402# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2403ac_cv_exeext= 2404# b.out is created by i960 compilers. 2405for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2406do 2407 test -f "$ac_file" || continue 2408 case $ac_file in 2409 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2410 ;; 2411 conftest.$ac_ext ) 2412 # This is the source file. 2413 ;; 2414 [ab].out ) 2415 # We found the default executable, but exeext='' is most 2416 # certainly right. 2417 break;; 2418 *.* ) 2419 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2420 # FIXME: I believe we export ac_cv_exeext for Libtool, 2421 # but it would be cool to find out if it's true. Does anybody 2422 # maintain Libtool? --akim. 2423 export ac_cv_exeext 2424 break;; 2425 * ) 2426 break;; 2427 esac 2428done 2429else 2430 echo "$as_me: failed program was:" >&5 2431sed 's/^/| /' conftest.$ac_ext >&5 2432 2433{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2434See \`config.log' for more details." >&5 2435echo "$as_me: error: C compiler cannot create executables 2436See \`config.log' for more details." >&2;} 2437 { (exit 77); exit 77; }; } 2438fi 2439 2440ac_exeext=$ac_cv_exeext 2441echo "$as_me:$LINENO: result: $ac_file" >&5 2442echo "${ECHO_T}$ac_file" >&6 2443 2444# Check the compiler produces executables we can run. If not, either 2445# the compiler is broken, or we cross compile. 2446echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2447echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2448# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2449# If not cross compiling, check that we can run a simple program. 2450if test "$cross_compiling" != yes; then 2451 if { ac_try='./$ac_file' 2452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2453 (eval $ac_try) 2>&5 2454 ac_status=$? 2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2456 (exit $ac_status); }; }; then 2457 cross_compiling=no 2458 else 2459 if test "$cross_compiling" = maybe; then 2460 cross_compiling=yes 2461 else 2462 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2463If you meant to cross compile, use \`--host'. 2464See \`config.log' for more details." >&5 2465echo "$as_me: error: cannot run C compiled programs. 2466If you meant to cross compile, use \`--host'. 2467See \`config.log' for more details." >&2;} 2468 { (exit 1); exit 1; }; } 2469 fi 2470 fi 2471fi 2472echo "$as_me:$LINENO: result: yes" >&5 2473echo "${ECHO_T}yes" >&6 2474 2475rm -f a.out a.exe conftest$ac_cv_exeext b.out 2476ac_clean_files=$ac_clean_files_save 2477# Check the compiler produces executables we can run. If not, either 2478# the compiler is broken, or we cross compile. 2479echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2480echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2481echo "$as_me:$LINENO: result: $cross_compiling" >&5 2482echo "${ECHO_T}$cross_compiling" >&6 2483 2484echo "$as_me:$LINENO: checking for suffix of executables" >&5 2485echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2486if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2487 (eval $ac_link) 2>&5 2488 ac_status=$? 2489 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2490 (exit $ac_status); }; then 2491 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2492# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2493# work properly (i.e., refer to `conftest.exe'), while it won't with 2494# `rm'. 2495for ac_file in conftest.exe conftest conftest.*; do 2496 test -f "$ac_file" || continue 2497 case $ac_file in 2498 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2499 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2500 export ac_cv_exeext 2501 break;; 2502 * ) break;; 2503 esac 2504done 2505else 2506 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2507See \`config.log' for more details." >&5 2508echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2509See \`config.log' for more details." >&2;} 2510 { (exit 1); exit 1; }; } 2511fi 2512 2513rm -f conftest$ac_cv_exeext 2514echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2515echo "${ECHO_T}$ac_cv_exeext" >&6 2516 2517rm -f conftest.$ac_ext 2518EXEEXT=$ac_cv_exeext 2519ac_exeext=$EXEEXT 2520echo "$as_me:$LINENO: checking for suffix of object files" >&5 2521echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2522if test "${ac_cv_objext+set}" = set; then 2523 echo $ECHO_N "(cached) $ECHO_C" >&6 2524else 2525 cat >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 2532int 2533main () 2534{ 2535 2536 ; 2537 return 0; 2538} 2539_ACEOF 2540rm -f conftest.o conftest.obj 2541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2542 (eval $ac_compile) 2>&5 2543 ac_status=$? 2544 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2545 (exit $ac_status); }; then 2546 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2547 case $ac_file in 2548 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2549 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2550 break;; 2551 esac 2552done 2553else 2554 echo "$as_me: failed program was:" >&5 2555sed 's/^/| /' conftest.$ac_ext >&5 2556 2557{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2558See \`config.log' for more details." >&5 2559echo "$as_me: error: cannot compute suffix of object files: cannot compile 2560See \`config.log' for more details." >&2;} 2561 { (exit 1); exit 1; }; } 2562fi 2563 2564rm -f conftest.$ac_cv_objext conftest.$ac_ext 2565fi 2566echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2567echo "${ECHO_T}$ac_cv_objext" >&6 2568OBJEXT=$ac_cv_objext 2569ac_objext=$OBJEXT 2570echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2571echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2572if test "${ac_cv_c_compiler_gnu+set}" = set; then 2573 echo $ECHO_N "(cached) $ECHO_C" >&6 2574else 2575 cat >conftest.$ac_ext <<_ACEOF 2576/* confdefs.h. */ 2577_ACEOF 2578cat confdefs.h >>conftest.$ac_ext 2579cat >>conftest.$ac_ext <<_ACEOF 2580/* end confdefs.h. */ 2581 2582int 2583main () 2584{ 2585#ifndef __GNUC__ 2586 choke me 2587#endif 2588 2589 ; 2590 return 0; 2591} 2592_ACEOF 2593rm -f conftest.$ac_objext 2594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2595 (eval $ac_compile) 2>conftest.er1 2596 ac_status=$? 2597 grep -v '^ *+' conftest.er1 >conftest.err 2598 rm -f conftest.er1 2599 cat conftest.err >&5 2600 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2601 (exit $ac_status); } && 2602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2604 (eval $ac_try) 2>&5 2605 ac_status=$? 2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2607 (exit $ac_status); }; } && 2608 { ac_try='test -s conftest.$ac_objext' 2609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2610 (eval $ac_try) 2>&5 2611 ac_status=$? 2612 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2613 (exit $ac_status); }; }; then 2614 ac_compiler_gnu=yes 2615else 2616 echo "$as_me: failed program was:" >&5 2617sed 's/^/| /' conftest.$ac_ext >&5 2618 2619ac_compiler_gnu=no 2620fi 2621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2622ac_cv_c_compiler_gnu=$ac_compiler_gnu 2623 2624fi 2625echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2626echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2627GCC=`test $ac_compiler_gnu = yes && echo yes` 2628ac_test_CFLAGS=${CFLAGS+set} 2629ac_save_CFLAGS=$CFLAGS 2630CFLAGS="-g" 2631echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2632echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2633if test "${ac_cv_prog_cc_g+set}" = set; then 2634 echo $ECHO_N "(cached) $ECHO_C" >&6 2635else 2636 cat >conftest.$ac_ext <<_ACEOF 2637/* confdefs.h. */ 2638_ACEOF 2639cat confdefs.h >>conftest.$ac_ext 2640cat >>conftest.$ac_ext <<_ACEOF 2641/* end confdefs.h. */ 2642 2643int 2644main () 2645{ 2646 2647 ; 2648 return 0; 2649} 2650_ACEOF 2651rm -f conftest.$ac_objext 2652if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2653 (eval $ac_compile) 2>conftest.er1 2654 ac_status=$? 2655 grep -v '^ *+' conftest.er1 >conftest.err 2656 rm -f conftest.er1 2657 cat conftest.err >&5 2658 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2659 (exit $ac_status); } && 2660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2662 (eval $ac_try) 2>&5 2663 ac_status=$? 2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2665 (exit $ac_status); }; } && 2666 { ac_try='test -s conftest.$ac_objext' 2667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2668 (eval $ac_try) 2>&5 2669 ac_status=$? 2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2671 (exit $ac_status); }; }; then 2672 ac_cv_prog_cc_g=yes 2673else 2674 echo "$as_me: failed program was:" >&5 2675sed 's/^/| /' conftest.$ac_ext >&5 2676 2677ac_cv_prog_cc_g=no 2678fi 2679rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2680fi 2681echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2682echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2683if test "$ac_test_CFLAGS" = set; then 2684 CFLAGS=$ac_save_CFLAGS 2685elif test $ac_cv_prog_cc_g = yes; then 2686 if test "$GCC" = yes; then 2687 CFLAGS="-g -O2" 2688 else 2689 CFLAGS="-g" 2690 fi 2691else 2692 if test "$GCC" = yes; then 2693 CFLAGS="-O2" 2694 else 2695 CFLAGS= 2696 fi 2697fi 2698echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2699echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2700if test "${ac_cv_prog_cc_stdc+set}" = set; then 2701 echo $ECHO_N "(cached) $ECHO_C" >&6 2702else 2703 ac_cv_prog_cc_stdc=no 2704ac_save_CC=$CC 2705cat >conftest.$ac_ext <<_ACEOF 2706/* confdefs.h. */ 2707_ACEOF 2708cat confdefs.h >>conftest.$ac_ext 2709cat >>conftest.$ac_ext <<_ACEOF 2710/* end confdefs.h. */ 2711#include <stdarg.h> 2712#include <stdio.h> 2713#include <sys/types.h> 2714#include <sys/stat.h> 2715/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2716struct buf { int x; }; 2717FILE * (*rcsopen) (struct buf *, struct stat *, int); 2718static char *e (p, i) 2719 char **p; 2720 int i; 2721{ 2722 return p[i]; 2723} 2724static char *f (char * (*g) (char **, int), char **p, ...) 2725{ 2726 char *s; 2727 va_list v; 2728 va_start (v,p); 2729 s = g (p, va_arg (v,int)); 2730 va_end (v); 2731 return s; 2732} 2733 2734/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2735 function prototypes and stuff, but not '\xHH' hex character constants. 2736 These don't provoke an error unfortunately, instead are silently treated 2737 as 'x'. The following induces an error, until -std1 is added to get 2738 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2739 array size at least. It's necessary to write '\x00'==0 to get something 2740 that's true only with -std1. */ 2741int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2742 2743int test (int i, double x); 2744struct s1 {int (*f) (int a);}; 2745struct s2 {int (*f) (double a);}; 2746int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2747int argc; 2748char **argv; 2749int 2750main () 2751{ 2752return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2753 ; 2754 return 0; 2755} 2756_ACEOF 2757# Don't try gcc -ansi; that turns off useful extensions and 2758# breaks some systems' header files. 2759# AIX -qlanglvl=ansi 2760# Ultrix and OSF/1 -std1 2761# HP-UX 10.20 and later -Ae 2762# HP-UX older versions -Aa -D_HPUX_SOURCE 2763# SVR4 -Xc -D__EXTENSIONS__ 2764for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2765do 2766 CC="$ac_save_CC $ac_arg" 2767 rm -f conftest.$ac_objext 2768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2769 (eval $ac_compile) 2>conftest.er1 2770 ac_status=$? 2771 grep -v '^ *+' conftest.er1 >conftest.err 2772 rm -f conftest.er1 2773 cat conftest.err >&5 2774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2775 (exit $ac_status); } && 2776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2778 (eval $ac_try) 2>&5 2779 ac_status=$? 2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2781 (exit $ac_status); }; } && 2782 { ac_try='test -s conftest.$ac_objext' 2783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2784 (eval $ac_try) 2>&5 2785 ac_status=$? 2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2787 (exit $ac_status); }; }; then 2788 ac_cv_prog_cc_stdc=$ac_arg 2789break 2790else 2791 echo "$as_me: failed program was:" >&5 2792sed 's/^/| /' conftest.$ac_ext >&5 2793 2794fi 2795rm -f conftest.err conftest.$ac_objext 2796done 2797rm -f conftest.$ac_ext conftest.$ac_objext 2798CC=$ac_save_CC 2799 2800fi 2801 2802case "x$ac_cv_prog_cc_stdc" in 2803 x|xno) 2804 echo "$as_me:$LINENO: result: none needed" >&5 2805echo "${ECHO_T}none needed" >&6 ;; 2806 *) 2807 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2808echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2809 CC="$CC $ac_cv_prog_cc_stdc" ;; 2810esac 2811 2812# Some people use a C++ compiler to compile C. Since we use `exit', 2813# in C++ we need to declare it. In case someone uses the same compiler 2814# for both compiling C and C++ we need to have the C++ compiler decide 2815# the declaration of exit, since it's the most demanding environment. 2816cat >conftest.$ac_ext <<_ACEOF 2817#ifndef __cplusplus 2818 choke me 2819#endif 2820_ACEOF 2821rm -f conftest.$ac_objext 2822if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2823 (eval $ac_compile) 2>conftest.er1 2824 ac_status=$? 2825 grep -v '^ *+' conftest.er1 >conftest.err 2826 rm -f conftest.er1 2827 cat conftest.err >&5 2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2829 (exit $ac_status); } && 2830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2832 (eval $ac_try) 2>&5 2833 ac_status=$? 2834 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2835 (exit $ac_status); }; } && 2836 { ac_try='test -s conftest.$ac_objext' 2837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2838 (eval $ac_try) 2>&5 2839 ac_status=$? 2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2841 (exit $ac_status); }; }; then 2842 for ac_declaration in \ 2843 '' \ 2844 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2845 'extern "C" void std::exit (int); using std::exit;' \ 2846 'extern "C" void exit (int) throw ();' \ 2847 'extern "C" void exit (int);' \ 2848 'void exit (int);' 2849do 2850 cat >conftest.$ac_ext <<_ACEOF 2851/* confdefs.h. */ 2852_ACEOF 2853cat confdefs.h >>conftest.$ac_ext 2854cat >>conftest.$ac_ext <<_ACEOF 2855/* end confdefs.h. */ 2856$ac_declaration 2857#include <stdlib.h> 2858int 2859main () 2860{ 2861exit (42); 2862 ; 2863 return 0; 2864} 2865_ACEOF 2866rm -f conftest.$ac_objext 2867if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2868 (eval $ac_compile) 2>conftest.er1 2869 ac_status=$? 2870 grep -v '^ *+' conftest.er1 >conftest.err 2871 rm -f conftest.er1 2872 cat conftest.err >&5 2873 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2874 (exit $ac_status); } && 2875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2877 (eval $ac_try) 2>&5 2878 ac_status=$? 2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2880 (exit $ac_status); }; } && 2881 { ac_try='test -s conftest.$ac_objext' 2882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2883 (eval $ac_try) 2>&5 2884 ac_status=$? 2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2886 (exit $ac_status); }; }; then 2887 : 2888else 2889 echo "$as_me: failed program was:" >&5 2890sed 's/^/| /' conftest.$ac_ext >&5 2891 2892continue 2893fi 2894rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2895 cat >conftest.$ac_ext <<_ACEOF 2896/* confdefs.h. */ 2897_ACEOF 2898cat confdefs.h >>conftest.$ac_ext 2899cat >>conftest.$ac_ext <<_ACEOF 2900/* end confdefs.h. */ 2901$ac_declaration 2902int 2903main () 2904{ 2905exit (42); 2906 ; 2907 return 0; 2908} 2909_ACEOF 2910rm -f conftest.$ac_objext 2911if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2912 (eval $ac_compile) 2>conftest.er1 2913 ac_status=$? 2914 grep -v '^ *+' conftest.er1 >conftest.err 2915 rm -f conftest.er1 2916 cat conftest.err >&5 2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2918 (exit $ac_status); } && 2919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2921 (eval $ac_try) 2>&5 2922 ac_status=$? 2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2924 (exit $ac_status); }; } && 2925 { ac_try='test -s conftest.$ac_objext' 2926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2927 (eval $ac_try) 2>&5 2928 ac_status=$? 2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2930 (exit $ac_status); }; }; then 2931 break 2932else 2933 echo "$as_me: failed program was:" >&5 2934sed 's/^/| /' conftest.$ac_ext >&5 2935 2936fi 2937rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2938done 2939rm -f conftest* 2940if test -n "$ac_declaration"; then 2941 echo '#ifdef __cplusplus' >>confdefs.h 2942 echo $ac_declaration >>confdefs.h 2943 echo '#endif' >>confdefs.h 2944fi 2945 2946else 2947 echo "$as_me: failed program was:" >&5 2948sed 's/^/| /' conftest.$ac_ext >&5 2949 2950fi 2951rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2952ac_ext=c 2953ac_cpp='$CPP $CPPFLAGS' 2954ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2955ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2956ac_compiler_gnu=$ac_cv_c_compiler_gnu 2957DEPDIR="${am__leading_dot}deps" 2958 2959 ac_config_commands="$ac_config_commands depfiles" 2960 2961 2962am_make=${MAKE-make} 2963cat > confinc << 'END' 2964am__doit: 2965 @echo done 2966.PHONY: am__doit 2967END 2968# If we don't find an include directive, just comment out the code. 2969echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2970echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 2971am__include="#" 2972am__quote= 2973_am_result=none 2974# First try GNU make style include. 2975echo "include confinc" > confmf 2976# We grep out `Entering directory' and `Leaving directory' 2977# messages which can occur if `w' ends up in MAKEFLAGS. 2978# In particular we don't look at `^make:' because GNU make might 2979# be invoked under some other name (usually "gmake"), in which 2980# case it prints its new name instead of `make'. 2981if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2982 am__include=include 2983 am__quote= 2984 _am_result=GNU 2985fi 2986# Now try BSD make style include. 2987if test "$am__include" = "#"; then 2988 echo '.include "confinc"' > confmf 2989 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2990 am__include=.include 2991 am__quote="\"" 2992 _am_result=BSD 2993 fi 2994fi 2995 2996 2997echo "$as_me:$LINENO: result: $_am_result" >&5 2998echo "${ECHO_T}$_am_result" >&6 2999rm -f confinc confmf 3000 3001# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 3002if test "${enable_dependency_tracking+set}" = set; then 3003 enableval="$enable_dependency_tracking" 3004 3005fi; 3006if test "x$enable_dependency_tracking" != xno; then 3007 am_depcomp="$ac_aux_dir/depcomp" 3008 AMDEPBACKSLASH='\' 3009fi 3010 3011 3012if test "x$enable_dependency_tracking" != xno; then 3013 AMDEP_TRUE= 3014 AMDEP_FALSE='#' 3015else 3016 AMDEP_TRUE='#' 3017 AMDEP_FALSE= 3018fi 3019 3020 3021 3022 3023depcc="$CC" am_compiler_list= 3024 3025echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3026echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 3027if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3028 echo $ECHO_N "(cached) $ECHO_C" >&6 3029else 3030 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3031 # We make a subdir and do the tests there. Otherwise we can end up 3032 # making bogus files that we don't know about and never remove. For 3033 # instance it was reported that on HP-UX the gcc test will end up 3034 # making a dummy file named `D' -- because `-MD' means `put the output 3035 # in D'. 3036 mkdir conftest.dir 3037 # Copy depcomp to subdir because otherwise we won't find it if we're 3038 # using a relative directory. 3039 cp "$am_depcomp" conftest.dir 3040 cd conftest.dir 3041 # We will build objects and dependencies in a subdirectory because 3042 # it helps to detect inapplicable dependency modes. For instance 3043 # both Tru64's cc and ICC support -MD to output dependencies as a 3044 # side effect of compilation, but ICC will put the dependencies in 3045 # the current directory while Tru64 will put them in the object 3046 # directory. 3047 mkdir sub 3048 3049 am_cv_CC_dependencies_compiler_type=none 3050 if test "$am_compiler_list" = ""; then 3051 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3052 fi 3053 for depmode in $am_compiler_list; do 3054 # Setup a source with many dependencies, because some compilers 3055 # like to wrap large dependency lists on column 80 (with \), and 3056 # we should not choose a depcomp mode which is confused by this. 3057 # 3058 # We need to recreate these files for each test, as the compiler may 3059 # overwrite some of them when testing with obscure command lines. 3060 # This happens at least with the AIX C compiler. 3061 : > sub/conftest.c 3062 for i in 1 2 3 4 5 6; do 3063 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3064 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3065 # Solaris 8's {/usr,}/bin/sh. 3066 touch sub/conftst$i.h 3067 done 3068 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3069 3070 case $depmode in 3071 nosideeffect) 3072 # after this tag, mechanisms are not by side-effect, so they'll 3073 # only be used when explicitly requested 3074 if test "x$enable_dependency_tracking" = xyes; then 3075 continue 3076 else 3077 break 3078 fi 3079 ;; 3080 none) break ;; 3081 esac 3082 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3083 # mode. It turns out that the SunPro C++ compiler does not properly 3084 # handle `-M -o', and we need to detect this. 3085 if depmode=$depmode \ 3086 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3087 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3088 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3089 >/dev/null 2>conftest.err && 3090 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3091 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3092 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3093 # icc doesn't choke on unknown options, it will just issue warnings 3094 # or remarks (even with -Werror). So we grep stderr for any message 3095 # that says an option was ignored or not supported. 3096 # When given -MP, icc 7.0 and 7.1 complain thusly: 3097 # icc: Command line warning: ignoring option '-M'; no argument required 3098 # The diagnosis changed in icc 8.0: 3099 # icc: Command line remark: option '-MP' not supported 3100 if (grep 'ignoring option' conftest.err || 3101 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3102 am_cv_CC_dependencies_compiler_type=$depmode 3103 break 3104 fi 3105 fi 3106 done 3107 3108 cd .. 3109 rm -rf conftest.dir 3110else 3111 am_cv_CC_dependencies_compiler_type=none 3112fi 3113 3114fi 3115echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3116echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 3117CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3118 3119 3120 3121if 3122 test "x$enable_dependency_tracking" != xno \ 3123 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3124 am__fastdepCC_TRUE= 3125 am__fastdepCC_FALSE='#' 3126else 3127 am__fastdepCC_TRUE='#' 3128 am__fastdepCC_FALSE= 3129fi 3130 3131 3132echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3133echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 3134set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 3135if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 3136 echo $ECHO_N "(cached) $ECHO_C" >&6 3137else 3138 cat >conftest.make <<\_ACEOF 3139all: 3140 @echo 'ac_maketemp="$(MAKE)"' 3141_ACEOF 3142# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3143eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 3144if test -n "$ac_maketemp"; then 3145 eval ac_cv_prog_make_${ac_make}_set=yes 3146else 3147 eval ac_cv_prog_make_${ac_make}_set=no 3148fi 3149rm -f conftest.make 3150fi 3151if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 3152 echo "$as_me:$LINENO: result: yes" >&5 3153echo "${ECHO_T}yes" >&6 3154 SET_MAKE= 3155else 3156 echo "$as_me:$LINENO: result: no" >&5 3157echo "${ECHO_T}no" >&6 3158 SET_MAKE="MAKE=${MAKE-make}" 3159fi 3160 3161# Find a good install program. We prefer a C program (faster), 3162# so one script is as good as another. But avoid the broken or 3163# incompatible versions: 3164# SysV /etc/install, /usr/sbin/install 3165# SunOS /usr/etc/install 3166# IRIX /sbin/install 3167# AIX /bin/install 3168# AmigaOS /C/install, which installs bootblocks on floppy discs 3169# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3170# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3171# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3172# OS/2's system install, which has a completely different semantic 3173# ./install, which can be erroneously created by make from ./install.sh. 3174echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3175echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 3176if test -z "$INSTALL"; then 3177if test "${ac_cv_path_install+set}" = set; then 3178 echo $ECHO_N "(cached) $ECHO_C" >&6 3179else 3180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3181for as_dir in $PATH 3182do 3183 IFS=$as_save_IFS 3184 test -z "$as_dir" && as_dir=. 3185 # Account for people who put trailing slashes in PATH elements. 3186case $as_dir/ in 3187 ./ | .// | /cC/* | \ 3188 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3189 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3190 /usr/ucb/* ) ;; 3191 *) 3192 # OSF1 and SCO ODT 3.0 have their own names for install. 3193 # Don't use installbsd from OSF since it installs stuff as root 3194 # by default. 3195 for ac_prog in ginstall scoinst install; do 3196 for ac_exec_ext in '' $ac_executable_extensions; do 3197 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3198 if test $ac_prog = install && 3199 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3200 # AIX install. It has an incompatible calling convention. 3201 : 3202 elif test $ac_prog = install && 3203 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3204 # program-specific install script used by HP pwplus--don't use. 3205 : 3206 else 3207 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3208 break 3 3209 fi 3210 fi 3211 done 3212 done 3213 ;; 3214esac 3215done 3216 3217 3218fi 3219 if test "${ac_cv_path_install+set}" = set; then 3220 INSTALL=$ac_cv_path_install 3221 else 3222 # As a last resort, use the slow shell script. We don't cache a 3223 # path for INSTALL within a source directory, because that will 3224 # break other packages using the cache if that directory is 3225 # removed, or if the path is relative. 3226 INSTALL=$ac_install_sh 3227 fi 3228fi 3229echo "$as_me:$LINENO: result: $INSTALL" >&5 3230echo "${ECHO_T}$INSTALL" >&6 3231 3232# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3233# It thinks the first close brace ends the variable substitution. 3234test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3235 3236test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3237 3238test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3239 3240 3241# Fortran libraries are (probably) required for BLAS and LAPACK: 3242ac_ext=f 3243ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 3244ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3245ac_compiler_gnu=$ac_cv_f77_compiler_gnu 3246if test -n "$ac_tool_prefix"; then 3247 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 3248 do 3249 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3250set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3251echo "$as_me:$LINENO: checking for $ac_word" >&5 3252echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3253if test "${ac_cv_prog_F77+set}" = set; then 3254 echo $ECHO_N "(cached) $ECHO_C" >&6 3255else 3256 if test -n "$F77"; then 3257 ac_cv_prog_F77="$F77" # Let the user override the test. 3258else 3259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3260for as_dir in $PATH 3261do 3262 IFS=$as_save_IFS 3263 test -z "$as_dir" && as_dir=. 3264 for ac_exec_ext in '' $ac_executable_extensions; do 3265 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3266 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 3267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3268 break 2 3269 fi 3270done 3271done 3272 3273fi 3274fi 3275F77=$ac_cv_prog_F77 3276if test -n "$F77"; then 3277 echo "$as_me:$LINENO: result: $F77" >&5 3278echo "${ECHO_T}$F77" >&6 3279else 3280 echo "$as_me:$LINENO: result: no" >&5 3281echo "${ECHO_T}no" >&6 3282fi 3283 3284 test -n "$F77" && break 3285 done 3286fi 3287if test -z "$F77"; then 3288 ac_ct_F77=$F77 3289 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 3290do 3291 # Extract the first word of "$ac_prog", so it can be a program name with args. 3292set dummy $ac_prog; ac_word=$2 3293echo "$as_me:$LINENO: checking for $ac_word" >&5 3294echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3295if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 3296 echo $ECHO_N "(cached) $ECHO_C" >&6 3297else 3298 if test -n "$ac_ct_F77"; then 3299 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 3300else 3301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3302for as_dir in $PATH 3303do 3304 IFS=$as_save_IFS 3305 test -z "$as_dir" && as_dir=. 3306 for ac_exec_ext in '' $ac_executable_extensions; do 3307 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3308 ac_cv_prog_ac_ct_F77="$ac_prog" 3309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3310 break 2 3311 fi 3312done 3313done 3314 3315fi 3316fi 3317ac_ct_F77=$ac_cv_prog_ac_ct_F77 3318if test -n "$ac_ct_F77"; then 3319 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 3320echo "${ECHO_T}$ac_ct_F77" >&6 3321else 3322 echo "$as_me:$LINENO: result: no" >&5 3323echo "${ECHO_T}no" >&6 3324fi 3325 3326 test -n "$ac_ct_F77" && break 3327done 3328 3329 F77=$ac_ct_F77 3330fi 3331 3332 3333# Provide some information about the compiler. 3334echo "$as_me:3334:" \ 3335 "checking for Fortran 77 compiler version" >&5 3336ac_compiler=`set X $ac_compile; echo $2` 3337{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 3338 (eval $ac_compiler --version </dev/null >&5) 2>&5 3339 ac_status=$? 3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3341 (exit $ac_status); } 3342{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 3343 (eval $ac_compiler -v </dev/null >&5) 2>&5 3344 ac_status=$? 3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3346 (exit $ac_status); } 3347{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 3348 (eval $ac_compiler -V </dev/null >&5) 2>&5 3349 ac_status=$? 3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3351 (exit $ac_status); } 3352rm -f a.out 3353 3354# If we don't use `.F' as extension, the preprocessor is not run on the 3355# input file. (Note that this only needs to work for GNU compilers.) 3356ac_save_ext=$ac_ext 3357ac_ext=F 3358echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 3359echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 3360if test "${ac_cv_f77_compiler_gnu+set}" = set; then 3361 echo $ECHO_N "(cached) $ECHO_C" >&6 3362else 3363 cat >conftest.$ac_ext <<_ACEOF 3364 program main 3365#ifndef __GNUC__ 3366 choke me 3367#endif 3368 3369 end 3370_ACEOF 3371rm -f conftest.$ac_objext 3372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3373 (eval $ac_compile) 2>conftest.er1 3374 ac_status=$? 3375 grep -v '^ *+' conftest.er1 >conftest.err 3376 rm -f conftest.er1 3377 cat conftest.err >&5 3378 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3379 (exit $ac_status); } && 3380 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 3381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3382 (eval $ac_try) 2>&5 3383 ac_status=$? 3384 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3385 (exit $ac_status); }; } && 3386 { ac_try='test -s conftest.$ac_objext' 3387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3388 (eval $ac_try) 2>&5 3389 ac_status=$? 3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3391 (exit $ac_status); }; }; then 3392 ac_compiler_gnu=yes 3393else 3394 echo "$as_me: failed program was:" >&5 3395sed 's/^/| /' conftest.$ac_ext >&5 3396 3397ac_compiler_gnu=no 3398fi 3399rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3400ac_cv_f77_compiler_gnu=$ac_compiler_gnu 3401 3402fi 3403echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 3404echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 3405ac_ext=$ac_save_ext 3406ac_test_FFLAGS=${FFLAGS+set} 3407ac_save_FFLAGS=$FFLAGS 3408FFLAGS= 3409echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 3410echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 3411if test "${ac_cv_prog_f77_g+set}" = set; then 3412 echo $ECHO_N "(cached) $ECHO_C" >&6 3413else 3414 FFLAGS=-g 3415cat >conftest.$ac_ext <<_ACEOF 3416 program main 3417 3418 end 3419_ACEOF 3420rm -f conftest.$ac_objext 3421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3422 (eval $ac_compile) 2>conftest.er1 3423 ac_status=$? 3424 grep -v '^ *+' conftest.er1 >conftest.err 3425 rm -f conftest.er1 3426 cat conftest.err >&5 3427 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3428 (exit $ac_status); } && 3429 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 3430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3431 (eval $ac_try) 2>&5 3432 ac_status=$? 3433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3434 (exit $ac_status); }; } && 3435 { ac_try='test -s conftest.$ac_objext' 3436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3437 (eval $ac_try) 2>&5 3438 ac_status=$? 3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3440 (exit $ac_status); }; }; then 3441 ac_cv_prog_f77_g=yes 3442else 3443 echo "$as_me: failed program was:" >&5 3444sed 's/^/| /' conftest.$ac_ext >&5 3445 3446ac_cv_prog_f77_g=no 3447fi 3448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3449 3450fi 3451echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 3452echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 3453if test "$ac_test_FFLAGS" = set; then 3454 FFLAGS=$ac_save_FFLAGS 3455elif test $ac_cv_prog_f77_g = yes; then 3456 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 3457 FFLAGS="-g -O2" 3458 else 3459 FFLAGS="-g" 3460 fi 3461else 3462 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 3463 FFLAGS="-O2" 3464 else 3465 FFLAGS= 3466 fi 3467fi 3468 3469G77=`test $ac_compiler_gnu = yes && echo yes` 3470ac_ext=c 3471ac_cpp='$CPP $CPPFLAGS' 3472ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3473ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3474ac_compiler_gnu=$ac_cv_c_compiler_gnu 3475 3476 3477ac_ext=f 3478ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 3479ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3480ac_compiler_gnu=$ac_cv_f77_compiler_gnu 3481echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5 3482echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6 3483if test "${ac_cv_prog_f77_v+set}" = set; then 3484 echo $ECHO_N "(cached) $ECHO_C" >&6 3485else 3486 cat >conftest.$ac_ext <<_ACEOF 3487 program main 3488 3489 end 3490_ACEOF 3491rm -f conftest.$ac_objext 3492if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3493 (eval $ac_compile) 2>conftest.er1 3494 ac_status=$? 3495 grep -v '^ *+' conftest.er1 >conftest.err 3496 rm -f conftest.er1 3497 cat conftest.err >&5 3498 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3499 (exit $ac_status); } && 3500 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 3501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3502 (eval $ac_try) 2>&5 3503 ac_status=$? 3504 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3505 (exit $ac_status); }; } && 3506 { ac_try='test -s conftest.$ac_objext' 3507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3508 (eval $ac_try) 2>&5 3509 ac_status=$? 3510 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3511 (exit $ac_status); }; }; then 3512 ac_cv_prog_f77_v= 3513# Try some options frequently used verbose output 3514for ac_verb in -v -verbose --verbose -V -\#\#\#; do 3515 cat >conftest.$ac_ext <<_ACEOF 3516 program main 3517 3518 end 3519_ACEOF 3520 3521# Compile and link our simple test program by passing a flag (argument 3522# 1 to this macro) to the Fortran compiler in order to get 3523# "verbose" output that we can then parse for the Fortran linker 3524# flags. 3525ac_save_FFLAGS=$FFLAGS 3526FFLAGS="$FFLAGS $ac_verb" 3527(eval echo $as_me:3527: \"$ac_link\") >&5 3528ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` 3529echo "$ac_f77_v_output" >&5 3530FFLAGS=$ac_save_FFLAGS 3531 3532rm -f conftest* 3533 3534# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where 3535# /foo, /bar, and /baz are search directories for the Fortran linker. 3536# Here, we change these into -L/foo -L/bar -L/baz (and put it first): 3537ac_f77_v_output="`echo $ac_f77_v_output | 3538 grep 'LPATH is:' | 3539 sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output" 3540 3541case $ac_f77_v_output in 3542 # If we are using xlf then replace all the commas with spaces. 3543 *xlfentry*) 3544 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;; 3545 3546 # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted 3547 # $LIBS confuse us, and the libraries appear later in the output anyway). 3548 *mGLOB_options_string*) 3549 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;; 3550 3551 # If we are using Cray Fortran then delete quotes. 3552 # Use "\"" instead of '"' for font-lock-mode. 3553 # FIXME: a more general fix for quoted arguments with spaces? 3554 *cft90*) 3555 ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;; 3556esac 3557 3558 3559 # look for -l* and *.a constructs in the output 3560 for ac_arg in $ac_f77_v_output; do 3561 case $ac_arg in 3562 [\\/]*.a | ?:[\\/]*.a | -[lLRu]*) 3563 ac_cv_prog_f77_v=$ac_verb 3564 break 2 ;; 3565 esac 3566 done 3567done 3568if test -z "$ac_cv_prog_f77_v"; then 3569 { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5 3570echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;} 3571fi 3572else 3573 echo "$as_me: failed program was:" >&5 3574sed 's/^/| /' conftest.$ac_ext >&5 3575 3576{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5 3577echo "$as_me: WARNING: compilation failed" >&2;} 3578fi 3579rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3580 3581fi 3582echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5 3583echo "${ECHO_T}$ac_cv_prog_f77_v" >&6 3584echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5 3585echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6 3586if test "${ac_cv_f77_libs+set}" = set; then 3587 echo $ECHO_N "(cached) $ECHO_C" >&6 3588else 3589 if test "x$FLIBS" != "x"; then 3590 ac_cv_f77_libs="$FLIBS" # Let the user override the test. 3591else 3592 3593cat >conftest.$ac_ext <<_ACEOF 3594 program main 3595 3596 end 3597_ACEOF 3598 3599# Compile and link our simple test program by passing a flag (argument 3600# 1 to this macro) to the Fortran compiler in order to get 3601# "verbose" output that we can then parse for the Fortran linker 3602# flags. 3603ac_save_FFLAGS=$FFLAGS 3604FFLAGS="$FFLAGS $ac_cv_prog_f77_v" 3605(eval echo $as_me:3605: \"$ac_link\") >&5 3606ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` 3607echo "$ac_f77_v_output" >&5 3608FFLAGS=$ac_save_FFLAGS 3609 3610rm -f conftest* 3611 3612# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where 3613# /foo, /bar, and /baz are search directories for the Fortran linker. 3614# Here, we change these into -L/foo -L/bar -L/baz (and put it first): 3615ac_f77_v_output="`echo $ac_f77_v_output | 3616 grep 'LPATH is:' | 3617 sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output" 3618 3619case $ac_f77_v_output in 3620 # If we are using xlf then replace all the commas with spaces. 3621 *xlfentry*) 3622 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;; 3623 3624 # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted 3625 # $LIBS confuse us, and the libraries appear later in the output anyway). 3626 *mGLOB_options_string*) 3627 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;; 3628 3629 # If we are using Cray Fortran then delete quotes. 3630 # Use "\"" instead of '"' for font-lock-mode. 3631 # FIXME: a more general fix for quoted arguments with spaces? 3632 *cft90*) 3633 ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;; 3634esac 3635 3636 3637 3638ac_cv_f77_libs= 3639 3640# Save positional arguments (if any) 3641ac_save_positional="$@" 3642 3643set X $ac_f77_v_output 3644while test $# != 1; do 3645 shift 3646 ac_arg=$1 3647 case $ac_arg in 3648 [\\/]*.a | ?:[\\/]*.a) 3649 ac_exists=false 3650 for ac_i in $ac_cv_f77_libs; do 3651 if test x"$ac_arg" = x"$ac_i"; then 3652 ac_exists=true 3653 break 3654 fi 3655 done 3656 3657 if test x"$ac_exists" = xtrue; then 3658 : 3659else 3660 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" 3661fi 3662 3663 ;; 3664 -bI:*) 3665 ac_exists=false 3666 for ac_i in $ac_cv_f77_libs; do 3667 if test x"$ac_arg" = x"$ac_i"; then 3668 ac_exists=true 3669 break 3670 fi 3671 done 3672 3673 if test x"$ac_exists" = xtrue; then 3674 : 3675else 3676 if test "$ac_compiler_gnu" = yes; then 3677 for ac_link_opt in $ac_arg; do 3678 ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt" 3679 done 3680else 3681 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" 3682fi 3683fi 3684 3685 ;; 3686 # Ignore these flags. 3687 -lang* | -lcrt*.o | -lc | -lgcc | -libmil | -LANG:=*) 3688 ;; 3689 -lkernel32) 3690 test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" 3691 ;; 3692 -[LRuY]) 3693 # These flags, when seen by themselves, take an argument. 3694 # We remove the space between option and argument and re-iterate 3695 # unless we find an empty arg or a new option (starting with -) 3696 case $2 in 3697 "" | -*);; 3698 *) 3699 ac_arg="$ac_arg$2" 3700 shift; shift 3701 set X $ac_arg "$@" 3702 ;; 3703 esac 3704 ;; 3705 -YP,*) 3706 for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do 3707 ac_exists=false 3708 for ac_i in $ac_cv_f77_libs; do 3709 if test x"$ac_j" = x"$ac_i"; then 3710 ac_exists=true 3711 break 3712 fi 3713 done 3714 3715 if test x"$ac_exists" = xtrue; then 3716 : 3717else 3718 ac_arg="$ac_arg $ac_j" 3719 ac_cv_f77_libs="$ac_cv_f77_libs $ac_j" 3720fi 3721 3722 done 3723 ;; 3724 -[lLR]*) 3725 ac_exists=false 3726 for ac_i in $ac_cv_f77_libs; do 3727 if test x"$ac_arg" = x"$ac_i"; then 3728 ac_exists=true 3729 break 3730 fi 3731 done 3732 3733 if test x"$ac_exists" = xtrue; then 3734 : 3735else 3736 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" 3737fi 3738 3739 ;; 3740 # Ignore everything else. 3741 esac 3742done 3743# restore positional arguments 3744set X $ac_save_positional; shift 3745 3746# We only consider "LD_RUN_PATH" on Solaris systems. If this is seen, 3747# then we insist that the "run path" must be an absolute path (i.e. it 3748# must begin with a "/"). 3749case `(uname -sr) 2>/dev/null` in 3750 "SunOS 5"*) 3751 ac_ld_run_path=`echo $ac_f77_v_output | 3752 sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'` 3753 test "x$ac_ld_run_path" != x && 3754 if test "$ac_compiler_gnu" = yes; then 3755 for ac_link_opt in $ac_ld_run_path; do 3756 ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt" 3757 done 3758else 3759 ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path" 3760fi 3761 ;; 3762esac 3763fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x" 3764 3765fi 3766echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5 3767echo "${ECHO_T}$ac_cv_f77_libs" >&6 3768FLIBS="$ac_cv_f77_libs" 3769 3770 3771ac_ext=c 3772ac_cpp='$CPP $CPPFLAGS' 3773ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3774ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3775ac_compiler_gnu=$ac_cv_c_compiler_gnu 3776 3777 3778ac_ext=f 3779ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 3780ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3781ac_compiler_gnu=$ac_cv_f77_compiler_gnu 3782 3783echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5 3784echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6 3785if test "${ac_cv_f77_dummy_main+set}" = set; then 3786 echo $ECHO_N "(cached) $ECHO_C" >&6 3787else 3788 ac_f77_dm_save_LIBS=$LIBS 3789 LIBS="$LIBS $FLIBS" 3790 ac_fortran_dm_var=F77_DUMMY_MAIN 3791 ac_ext=c 3792ac_cpp='$CPP $CPPFLAGS' 3793ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3794ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3795ac_compiler_gnu=$ac_cv_c_compiler_gnu 3796 3797 # First, try linking without a dummy main: 3798 cat >conftest.$ac_ext <<_ACEOF 3799/* confdefs.h. */ 3800_ACEOF 3801cat confdefs.h >>conftest.$ac_ext 3802cat >>conftest.$ac_ext <<_ACEOF 3803/* end confdefs.h. */ 3804 3805#ifdef F77_DUMMY_MAIN 3806 3807# ifdef __cplusplus 3808 extern "C" 3809# endif 3810 int F77_DUMMY_MAIN() { return 1; } 3811 3812#endif 3813int 3814main () 3815{ 3816 3817 ; 3818 return 0; 3819} 3820_ACEOF 3821rm -f conftest.$ac_objext conftest$ac_exeext 3822if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3823 (eval $ac_link) 2>conftest.er1 3824 ac_status=$? 3825 grep -v '^ *+' conftest.er1 >conftest.err 3826 rm -f conftest.er1 3827 cat conftest.err >&5 3828 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3829 (exit $ac_status); } && 3830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3832 (eval $ac_try) 2>&5 3833 ac_status=$? 3834 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3835 (exit $ac_status); }; } && 3836 { ac_try='test -s conftest$ac_exeext' 3837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3838 (eval $ac_try) 2>&5 3839 ac_status=$? 3840 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3841 (exit $ac_status); }; }; then 3842 ac_cv_fortran_dummy_main=none 3843else 3844 echo "$as_me: failed program was:" >&5 3845sed 's/^/| /' conftest.$ac_ext >&5 3846 3847ac_cv_fortran_dummy_main=unknown 3848fi 3849rm -f conftest.err conftest.$ac_objext \ 3850 conftest$ac_exeext conftest.$ac_ext 3851 3852 if test $ac_cv_fortran_dummy_main = unknown; then 3853 for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do 3854 cat >conftest.$ac_ext <<_ACEOF 3855/* confdefs.h. */ 3856_ACEOF 3857cat confdefs.h >>conftest.$ac_ext 3858cat >>conftest.$ac_ext <<_ACEOF 3859/* end confdefs.h. */ 3860#define $ac_fortran_dm_var $ac_func 3861#ifdef F77_DUMMY_MAIN 3862 3863# ifdef __cplusplus 3864 extern "C" 3865# endif 3866 int F77_DUMMY_MAIN() { return 1; } 3867 3868#endif 3869int 3870main () 3871{ 3872 3873 ; 3874 return 0; 3875} 3876_ACEOF 3877rm -f conftest.$ac_objext conftest$ac_exeext 3878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3879 (eval $ac_link) 2>conftest.er1 3880 ac_status=$? 3881 grep -v '^ *+' conftest.er1 >conftest.err 3882 rm -f conftest.er1 3883 cat conftest.err >&5 3884 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3885 (exit $ac_status); } && 3886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3888 (eval $ac_try) 2>&5 3889 ac_status=$? 3890 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3891 (exit $ac_status); }; } && 3892 { ac_try='test -s conftest$ac_exeext' 3893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3894 (eval $ac_try) 2>&5 3895 ac_status=$? 3896 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3897 (exit $ac_status); }; }; then 3898 ac_cv_fortran_dummy_main=$ac_func; break 3899else 3900 echo "$as_me: failed program was:" >&5 3901sed 's/^/| /' conftest.$ac_ext >&5 3902 3903fi 3904rm -f conftest.err conftest.$ac_objext \ 3905 conftest$ac_exeext conftest.$ac_ext 3906 done 3907 fi 3908 ac_ext=f 3909ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 3910ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3911ac_compiler_gnu=$ac_cv_f77_compiler_gnu 3912 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main 3913 rm -f conftest* 3914 LIBS=$ac_f77_dm_save_LIBS 3915 3916fi 3917echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5 3918echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6 3919F77_DUMMY_MAIN=$ac_cv_f77_dummy_main 3920if test "$F77_DUMMY_MAIN" != unknown; then 3921 if test $F77_DUMMY_MAIN != none; then 3922 3923cat >>confdefs.h <<_ACEOF 3924#define F77_DUMMY_MAIN $F77_DUMMY_MAIN 3925_ACEOF 3926 3927 if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then 3928 3929cat >>confdefs.h <<\_ACEOF 3930#define FC_DUMMY_MAIN_EQ_F77 1 3931_ACEOF 3932 3933 fi 3934fi 3935else 3936 { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails 3937See \`config.log' for more details." >&5 3938echo "$as_me: error: linking to Fortran libraries from C fails 3939See \`config.log' for more details." >&2;} 3940 { (exit 1); exit 1; }; } 3941fi 3942 3943 3944ac_ext=c 3945ac_cpp='$CPP $CPPFLAGS' 3946ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3947ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3948ac_compiler_gnu=$ac_cv_c_compiler_gnu 3949 3950ac_ext=f 3951ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 3952ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3953ac_compiler_gnu=$ac_cv_f77_compiler_gnu 3954echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5 3955echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6 3956if test "${ac_cv_f77_mangling+set}" = set; then 3957 echo $ECHO_N "(cached) $ECHO_C" >&6 3958else 3959 cat >conftest.$ac_ext <<_ACEOF 3960 subroutine foobar() 3961 return 3962 end 3963 subroutine foo_bar() 3964 return 3965 end 3966_ACEOF 3967rm -f conftest.$ac_objext 3968if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3969 (eval $ac_compile) 2>conftest.er1 3970 ac_status=$? 3971 grep -v '^ *+' conftest.er1 >conftest.err 3972 rm -f conftest.er1 3973 cat conftest.err >&5 3974 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3975 (exit $ac_status); } && 3976 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 3977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3978 (eval $ac_try) 2>&5 3979 ac_status=$? 3980 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3981 (exit $ac_status); }; } && 3982 { ac_try='test -s conftest.$ac_objext' 3983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3984 (eval $ac_try) 2>&5 3985 ac_status=$? 3986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3987 (exit $ac_status); }; }; then 3988 mv conftest.$ac_objext cfortran_test.$ac_objext 3989 3990 ac_save_LIBS=$LIBS 3991 LIBS="cfortran_test.$ac_objext $LIBS $FLIBS" 3992 3993 ac_ext=c 3994ac_cpp='$CPP $CPPFLAGS' 3995ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3996ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3997ac_compiler_gnu=$ac_cv_c_compiler_gnu 3998 ac_success=no 3999 for ac_foobar in foobar FOOBAR; do 4000 for ac_underscore in "" "_"; do 4001 ac_func="$ac_foobar$ac_underscore" 4002 cat >conftest.$ac_ext <<_ACEOF 4003/* confdefs.h. */ 4004_ACEOF 4005cat confdefs.h >>conftest.$ac_ext 4006cat >>conftest.$ac_ext <<_ACEOF 4007/* end confdefs.h. */ 4008 4009/* Override any gcc2 internal prototype to avoid an error. */ 4010#ifdef __cplusplus 4011extern "C" 4012#endif 4013/* We use char because int might match the return type of a gcc2 4014 builtin and then its argument prototype would still apply. */ 4015char $ac_func (); 4016#ifdef F77_DUMMY_MAIN 4017 4018# ifdef __cplusplus 4019 extern "C" 4020# endif 4021 int F77_DUMMY_MAIN() { return 1; } 4022 4023#endif 4024int 4025main () 4026{ 4027$ac_func (); 4028 ; 4029 return 0; 4030} 4031_ACEOF 4032rm -f conftest.$ac_objext conftest$ac_exeext 4033if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4034 (eval $ac_link) 2>conftest.er1 4035 ac_status=$? 4036 grep -v '^ *+' conftest.er1 >conftest.err 4037 rm -f conftest.er1 4038 cat conftest.err >&5 4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4040 (exit $ac_status); } && 4041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4043 (eval $ac_try) 2>&5 4044 ac_status=$? 4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4046 (exit $ac_status); }; } && 4047 { ac_try='test -s conftest$ac_exeext' 4048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4049 (eval $ac_try) 2>&5 4050 ac_status=$? 4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4052 (exit $ac_status); }; }; then 4053 ac_success=yes; break 2 4054else 4055 echo "$as_me: failed program was:" >&5 4056sed 's/^/| /' conftest.$ac_ext >&5 4057 4058fi 4059rm -f conftest.err conftest.$ac_objext \ 4060 conftest$ac_exeext conftest.$ac_ext 4061 done 4062 done 4063 ac_ext=f 4064ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 4065ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4066ac_compiler_gnu=$ac_cv_f77_compiler_gnu 4067 4068 if test "$ac_success" = "yes"; then 4069 case $ac_foobar in 4070 foobar) 4071 ac_case=lower 4072 ac_foo_bar=foo_bar 4073 ;; 4074 FOOBAR) 4075 ac_case=upper 4076 ac_foo_bar=FOO_BAR 4077 ;; 4078 esac 4079 4080 ac_ext=c 4081ac_cpp='$CPP $CPPFLAGS' 4082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4084ac_compiler_gnu=$ac_cv_c_compiler_gnu 4085 ac_success_extra=no 4086 for ac_extra in "" "_"; do 4087 ac_func="$ac_foo_bar$ac_underscore$ac_extra" 4088 cat >conftest.$ac_ext <<_ACEOF 4089/* confdefs.h. */ 4090_ACEOF 4091cat confdefs.h >>conftest.$ac_ext 4092cat >>conftest.$ac_ext <<_ACEOF 4093/* end confdefs.h. */ 4094 4095/* Override any gcc2 internal prototype to avoid an error. */ 4096#ifdef __cplusplus 4097extern "C" 4098#endif 4099/* We use char because int might match the return type of a gcc2 4100 builtin and then its argument prototype would still apply. */ 4101char $ac_func (); 4102#ifdef F77_DUMMY_MAIN 4103 4104# ifdef __cplusplus 4105 extern "C" 4106# endif 4107 int F77_DUMMY_MAIN() { return 1; } 4108 4109#endif 4110int 4111main () 4112{ 4113$ac_func (); 4114 ; 4115 return 0; 4116} 4117_ACEOF 4118rm -f conftest.$ac_objext conftest$ac_exeext 4119if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4120 (eval $ac_link) 2>conftest.er1 4121 ac_status=$? 4122 grep -v '^ *+' conftest.er1 >conftest.err 4123 rm -f conftest.er1 4124 cat conftest.err >&5 4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4126 (exit $ac_status); } && 4127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4129 (eval $ac_try) 2>&5 4130 ac_status=$? 4131 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4132 (exit $ac_status); }; } && 4133 { ac_try='test -s conftest$ac_exeext' 4134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4135 (eval $ac_try) 2>&5 4136 ac_status=$? 4137 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4138 (exit $ac_status); }; }; then 4139 ac_success_extra=yes; break 4140else 4141 echo "$as_me: failed program was:" >&5 4142sed 's/^/| /' conftest.$ac_ext >&5 4143 4144fi 4145rm -f conftest.err conftest.$ac_objext \ 4146 conftest$ac_exeext conftest.$ac_ext 4147 done 4148 ac_ext=f 4149ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 4150ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4151ac_compiler_gnu=$ac_cv_f77_compiler_gnu 4152 4153 if test "$ac_success_extra" = "yes"; then 4154 ac_cv_f77_mangling="$ac_case case" 4155 if test -z "$ac_underscore"; then 4156 ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore" 4157 else 4158 ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore" 4159 fi 4160 if test -z "$ac_extra"; then 4161 ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore" 4162 else 4163 ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore" 4164 fi 4165 else 4166 ac_cv_f77_mangling="unknown" 4167 fi 4168 else 4169 ac_cv_f77_mangling="unknown" 4170 fi 4171 4172 LIBS=$ac_save_LIBS 4173 rm -f cfortran_test* conftest* 4174else 4175 echo "$as_me: failed program was:" >&5 4176sed 's/^/| /' conftest.$ac_ext >&5 4177 4178{ { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program 4179See \`config.log' for more details." >&5 4180echo "$as_me: error: cannot compile a simple Fortran program 4181See \`config.log' for more details." >&2;} 4182 { (exit 1); exit 1; }; } 4183fi 4184rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4185 4186fi 4187echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5 4188echo "${ECHO_T}$ac_cv_f77_mangling" >&6 4189 4190ac_ext=c 4191ac_cpp='$CPP $CPPFLAGS' 4192ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4193ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4194ac_compiler_gnu=$ac_cv_c_compiler_gnu 4195 4196ac_ext=f 4197ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 4198ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4199ac_compiler_gnu=$ac_cv_f77_compiler_gnu 4200 4201 4202case $ac_cv_f77_mangling in 4203 "lower case, no underscore, no extra underscore") 4204 cat >>confdefs.h <<\_ACEOF 4205#define F77_FUNC(name,NAME) name 4206_ACEOF 4207 4208 cat >>confdefs.h <<\_ACEOF 4209#define F77_FUNC_(name,NAME) name 4210_ACEOF 4211 ;; 4212 "lower case, no underscore, extra underscore") 4213 cat >>confdefs.h <<\_ACEOF 4214#define F77_FUNC(name,NAME) name 4215_ACEOF 4216 4217 cat >>confdefs.h <<\_ACEOF 4218#define F77_FUNC_(name,NAME) name ## _ 4219_ACEOF 4220 ;; 4221 "lower case, underscore, no extra underscore") 4222 cat >>confdefs.h <<\_ACEOF 4223#define F77_FUNC(name,NAME) name ## _ 4224_ACEOF 4225 4226 cat >>confdefs.h <<\_ACEOF 4227#define F77_FUNC_(name,NAME) name ## _ 4228_ACEOF 4229 ;; 4230 "lower case, underscore, extra underscore") 4231 cat >>confdefs.h <<\_ACEOF 4232#define F77_FUNC(name,NAME) name ## _ 4233_ACEOF 4234 4235 cat >>confdefs.h <<\_ACEOF 4236#define F77_FUNC_(name,NAME) name ## __ 4237_ACEOF 4238 ;; 4239 "upper case, no underscore, no extra underscore") 4240 cat >>confdefs.h <<\_ACEOF 4241#define F77_FUNC(name,NAME) NAME 4242_ACEOF 4243 4244 cat >>confdefs.h <<\_ACEOF 4245#define F77_FUNC_(name,NAME) NAME 4246_ACEOF 4247 ;; 4248 "upper case, no underscore, extra underscore") 4249 cat >>confdefs.h <<\_ACEOF 4250#define F77_FUNC(name,NAME) NAME 4251_ACEOF 4252 4253 cat >>confdefs.h <<\_ACEOF 4254#define F77_FUNC_(name,NAME) NAME ## _ 4255_ACEOF 4256 ;; 4257 "upper case, underscore, no extra underscore") 4258 cat >>confdefs.h <<\_ACEOF 4259#define F77_FUNC(name,NAME) NAME ## _ 4260_ACEOF 4261 4262 cat >>confdefs.h <<\_ACEOF 4263#define F77_FUNC_(name,NAME) NAME ## _ 4264_ACEOF 4265 ;; 4266 "upper case, underscore, extra underscore") 4267 cat >>confdefs.h <<\_ACEOF 4268#define F77_FUNC(name,NAME) NAME ## _ 4269_ACEOF 4270 4271 cat >>confdefs.h <<\_ACEOF 4272#define F77_FUNC_(name,NAME) NAME ## __ 4273_ACEOF 4274 ;; 4275 *) 4276 { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5 4277echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;} 4278 ;; 4279esac 4280 4281ac_ext=c 4282ac_cpp='$CPP $CPPFLAGS' 4283ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4284ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4285ac_compiler_gnu=$ac_cv_c_compiler_gnu 4286 4287 4288# Add lots of compiler warnings to check for if we are using gcc: 4289# (The variable $GCC is set to "yes" by AC_PROG_CC if we are using gcc.) 4290if test "$GCC" = "yes" && test "$USE_MAINTAINER_MODE" = yes; then 4291 CFLAGS="$CFLAGS -Wall -W -Wbad-function-cast -Wcast-qual -Wpointer-arith -Wcast-align -pedantic" 4292fi 4293 4294# Checks for header files. 4295ac_ext=c 4296ac_cpp='$CPP $CPPFLAGS' 4297ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4298ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4299ac_compiler_gnu=$ac_cv_c_compiler_gnu 4300echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4301echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 4302# On Suns, sometimes $CPP names a directory. 4303if test -n "$CPP" && test -d "$CPP"; then 4304 CPP= 4305fi 4306if test -z "$CPP"; then 4307 if test "${ac_cv_prog_CPP+set}" = set; then 4308 echo $ECHO_N "(cached) $ECHO_C" >&6 4309else 4310 # Double quotes because CPP needs to be expanded 4311 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4312 do 4313 ac_preproc_ok=false 4314for ac_c_preproc_warn_flag in '' yes 4315do 4316 # Use a header file that comes with gcc, so configuring glibc 4317 # with a fresh cross-compiler works. 4318 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4319 # <limits.h> exists even on freestanding compilers. 4320 # On the NeXT, cc -E runs the code through the compiler's parser, 4321 # not just through cpp. "Syntax error" is here to catch this case. 4322 cat >conftest.$ac_ext <<_ACEOF 4323/* confdefs.h. */ 4324_ACEOF 4325cat confdefs.h >>conftest.$ac_ext 4326cat >>conftest.$ac_ext <<_ACEOF 4327/* end confdefs.h. */ 4328#ifdef __STDC__ 4329# include <limits.h> 4330#else 4331# include <assert.h> 4332#endif 4333 Syntax error 4334_ACEOF 4335if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4336 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4337 ac_status=$? 4338 grep -v '^ *+' conftest.er1 >conftest.err 4339 rm -f conftest.er1 4340 cat conftest.err >&5 4341 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4342 (exit $ac_status); } >/dev/null; then 4343 if test -s conftest.err; then 4344 ac_cpp_err=$ac_c_preproc_warn_flag 4345 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4346 else 4347 ac_cpp_err= 4348 fi 4349else 4350 ac_cpp_err=yes 4351fi 4352if test -z "$ac_cpp_err"; then 4353 : 4354else 4355 echo "$as_me: failed program was:" >&5 4356sed 's/^/| /' conftest.$ac_ext >&5 4357 4358 # Broken: fails on valid input. 4359continue 4360fi 4361rm -f conftest.err conftest.$ac_ext 4362 4363 # OK, works on sane cases. Now check whether non-existent headers 4364 # can be detected and how. 4365 cat >conftest.$ac_ext <<_ACEOF 4366/* confdefs.h. */ 4367_ACEOF 4368cat confdefs.h >>conftest.$ac_ext 4369cat >>conftest.$ac_ext <<_ACEOF 4370/* end confdefs.h. */ 4371#include <ac_nonexistent.h> 4372_ACEOF 4373if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4374 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4375 ac_status=$? 4376 grep -v '^ *+' conftest.er1 >conftest.err 4377 rm -f conftest.er1 4378 cat conftest.err >&5 4379 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4380 (exit $ac_status); } >/dev/null; then 4381 if test -s conftest.err; then 4382 ac_cpp_err=$ac_c_preproc_warn_flag 4383 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4384 else 4385 ac_cpp_err= 4386 fi 4387else 4388 ac_cpp_err=yes 4389fi 4390if test -z "$ac_cpp_err"; then 4391 # Broken: success on invalid input. 4392continue 4393else 4394 echo "$as_me: failed program was:" >&5 4395sed 's/^/| /' conftest.$ac_ext >&5 4396 4397 # Passes both tests. 4398ac_preproc_ok=: 4399break 4400fi 4401rm -f conftest.err conftest.$ac_ext 4402 4403done 4404# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4405rm -f conftest.err conftest.$ac_ext 4406if $ac_preproc_ok; then 4407 break 4408fi 4409 4410 done 4411 ac_cv_prog_CPP=$CPP 4412 4413fi 4414 CPP=$ac_cv_prog_CPP 4415else 4416 ac_cv_prog_CPP=$CPP 4417fi 4418echo "$as_me:$LINENO: result: $CPP" >&5 4419echo "${ECHO_T}$CPP" >&6 4420ac_preproc_ok=false 4421for ac_c_preproc_warn_flag in '' yes 4422do 4423 # Use a header file that comes with gcc, so configuring glibc 4424 # with a fresh cross-compiler works. 4425 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4426 # <limits.h> exists even on freestanding compilers. 4427 # On the NeXT, cc -E runs the code through the compiler's parser, 4428 # not just through cpp. "Syntax error" is here to catch this case. 4429 cat >conftest.$ac_ext <<_ACEOF 4430/* confdefs.h. */ 4431_ACEOF 4432cat confdefs.h >>conftest.$ac_ext 4433cat >>conftest.$ac_ext <<_ACEOF 4434/* end confdefs.h. */ 4435#ifdef __STDC__ 4436# include <limits.h> 4437#else 4438# include <assert.h> 4439#endif 4440 Syntax error 4441_ACEOF 4442if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4443 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4444 ac_status=$? 4445 grep -v '^ *+' conftest.er1 >conftest.err 4446 rm -f conftest.er1 4447 cat conftest.err >&5 4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4449 (exit $ac_status); } >/dev/null; then 4450 if test -s conftest.err; then 4451 ac_cpp_err=$ac_c_preproc_warn_flag 4452 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4453 else 4454 ac_cpp_err= 4455 fi 4456else 4457 ac_cpp_err=yes 4458fi 4459if test -z "$ac_cpp_err"; then 4460 : 4461else 4462 echo "$as_me: failed program was:" >&5 4463sed 's/^/| /' conftest.$ac_ext >&5 4464 4465 # Broken: fails on valid input. 4466continue 4467fi 4468rm -f conftest.err conftest.$ac_ext 4469 4470 # OK, works on sane cases. Now check whether non-existent headers 4471 # can be detected and how. 4472 cat >conftest.$ac_ext <<_ACEOF 4473/* confdefs.h. */ 4474_ACEOF 4475cat confdefs.h >>conftest.$ac_ext 4476cat >>conftest.$ac_ext <<_ACEOF 4477/* end confdefs.h. */ 4478#include <ac_nonexistent.h> 4479_ACEOF 4480if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4481 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4482 ac_status=$? 4483 grep -v '^ *+' conftest.er1 >conftest.err 4484 rm -f conftest.er1 4485 cat conftest.err >&5 4486 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4487 (exit $ac_status); } >/dev/null; then 4488 if test -s conftest.err; then 4489 ac_cpp_err=$ac_c_preproc_warn_flag 4490 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4491 else 4492 ac_cpp_err= 4493 fi 4494else 4495 ac_cpp_err=yes 4496fi 4497if test -z "$ac_cpp_err"; then 4498 # Broken: success on invalid input. 4499continue 4500else 4501 echo "$as_me: failed program was:" >&5 4502sed 's/^/| /' conftest.$ac_ext >&5 4503 4504 # Passes both tests. 4505ac_preproc_ok=: 4506break 4507fi 4508rm -f conftest.err conftest.$ac_ext 4509 4510done 4511# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4512rm -f conftest.err conftest.$ac_ext 4513if $ac_preproc_ok; then 4514 : 4515else 4516 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4517See \`config.log' for more details." >&5 4518echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4519See \`config.log' for more details." >&2;} 4520 { (exit 1); exit 1; }; } 4521fi 4522 4523ac_ext=c 4524ac_cpp='$CPP $CPPFLAGS' 4525ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4526ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4527ac_compiler_gnu=$ac_cv_c_compiler_gnu 4528 4529 4530echo "$as_me:$LINENO: checking for egrep" >&5 4531echo $ECHO_N "checking for egrep... $ECHO_C" >&6 4532if test "${ac_cv_prog_egrep+set}" = set; then 4533 echo $ECHO_N "(cached) $ECHO_C" >&6 4534else 4535 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 4536 then ac_cv_prog_egrep='grep -E' 4537 else ac_cv_prog_egrep='egrep' 4538 fi 4539fi 4540echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 4541echo "${ECHO_T}$ac_cv_prog_egrep" >&6 4542 EGREP=$ac_cv_prog_egrep 4543 4544 4545echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4546echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 4547if test "${ac_cv_header_stdc+set}" = set; then 4548 echo $ECHO_N "(cached) $ECHO_C" >&6 4549else 4550 cat >conftest.$ac_ext <<_ACEOF 4551/* confdefs.h. */ 4552_ACEOF 4553cat confdefs.h >>conftest.$ac_ext 4554cat >>conftest.$ac_ext <<_ACEOF 4555/* end confdefs.h. */ 4556#include <stdlib.h> 4557#include <stdarg.h> 4558#include <string.h> 4559#include <float.h> 4560 4561#ifdef F77_DUMMY_MAIN 4562 4563# ifdef __cplusplus 4564 extern "C" 4565# endif 4566 int F77_DUMMY_MAIN() { return 1; } 4567 4568#endif 4569int 4570main () 4571{ 4572 4573 ; 4574 return 0; 4575} 4576_ACEOF 4577rm -f conftest.$ac_objext 4578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4579 (eval $ac_compile) 2>conftest.er1 4580 ac_status=$? 4581 grep -v '^ *+' conftest.er1 >conftest.err 4582 rm -f conftest.er1 4583 cat conftest.err >&5 4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4585 (exit $ac_status); } && 4586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4588 (eval $ac_try) 2>&5 4589 ac_status=$? 4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4591 (exit $ac_status); }; } && 4592 { ac_try='test -s conftest.$ac_objext' 4593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4594 (eval $ac_try) 2>&5 4595 ac_status=$? 4596 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4597 (exit $ac_status); }; }; then 4598 ac_cv_header_stdc=yes 4599else 4600 echo "$as_me: failed program was:" >&5 4601sed 's/^/| /' conftest.$ac_ext >&5 4602 4603ac_cv_header_stdc=no 4604fi 4605rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4606 4607if test $ac_cv_header_stdc = yes; then 4608 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4609 cat >conftest.$ac_ext <<_ACEOF 4610/* confdefs.h. */ 4611_ACEOF 4612cat confdefs.h >>conftest.$ac_ext 4613cat >>conftest.$ac_ext <<_ACEOF 4614/* end confdefs.h. */ 4615#include <string.h> 4616 4617_ACEOF 4618if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4619 $EGREP "memchr" >/dev/null 2>&1; then 4620 : 4621else 4622 ac_cv_header_stdc=no 4623fi 4624rm -f conftest* 4625 4626fi 4627 4628if test $ac_cv_header_stdc = yes; then 4629 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4630 cat >conftest.$ac_ext <<_ACEOF 4631/* confdefs.h. */ 4632_ACEOF 4633cat confdefs.h >>conftest.$ac_ext 4634cat >>conftest.$ac_ext <<_ACEOF 4635/* end confdefs.h. */ 4636#include <stdlib.h> 4637 4638_ACEOF 4639if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4640 $EGREP "free" >/dev/null 2>&1; then 4641 : 4642else 4643 ac_cv_header_stdc=no 4644fi 4645rm -f conftest* 4646 4647fi 4648 4649if test $ac_cv_header_stdc = yes; then 4650 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4651 if test "$cross_compiling" = yes; then 4652 : 4653else 4654 cat >conftest.$ac_ext <<_ACEOF 4655/* confdefs.h. */ 4656_ACEOF 4657cat confdefs.h >>conftest.$ac_ext 4658cat >>conftest.$ac_ext <<_ACEOF 4659/* end confdefs.h. */ 4660#include <ctype.h> 4661#if ((' ' & 0x0FF) == 0x020) 4662# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4663# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4664#else 4665# define ISLOWER(c) \ 4666 (('a' <= (c) && (c) <= 'i') \ 4667 || ('j' <= (c) && (c) <= 'r') \ 4668 || ('s' <= (c) && (c) <= 'z')) 4669# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4670#endif 4671 4672#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4673int 4674main () 4675{ 4676 int i; 4677 for (i = 0; i < 256; i++) 4678 if (XOR (islower (i), ISLOWER (i)) 4679 || toupper (i) != TOUPPER (i)) 4680 exit(2); 4681 exit (0); 4682} 4683_ACEOF 4684rm -f conftest$ac_exeext 4685if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4686 (eval $ac_link) 2>&5 4687 ac_status=$? 4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4689 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4691 (eval $ac_try) 2>&5 4692 ac_status=$? 4693 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4694 (exit $ac_status); }; }; then 4695 : 4696else 4697 echo "$as_me: program exited with status $ac_status" >&5 4698echo "$as_me: failed program was:" >&5 4699sed 's/^/| /' conftest.$ac_ext >&5 4700 4701( exit $ac_status ) 4702ac_cv_header_stdc=no 4703fi 4704rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4705fi 4706fi 4707fi 4708echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4709echo "${ECHO_T}$ac_cv_header_stdc" >&6 4710if test $ac_cv_header_stdc = yes; then 4711 4712cat >>confdefs.h <<\_ACEOF 4713#define STDC_HEADERS 1 4714_ACEOF 4715 4716fi 4717 4718# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4729 inttypes.h stdint.h unistd.h 4730do 4731as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4732echo "$as_me:$LINENO: checking for $ac_header" >&5 4733echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4734if eval "test \"\${$as_ac_Header+set}\" = set"; then 4735 echo $ECHO_N "(cached) $ECHO_C" >&6 4736else 4737 cat >conftest.$ac_ext <<_ACEOF 4738/* confdefs.h. */ 4739_ACEOF 4740cat confdefs.h >>conftest.$ac_ext 4741cat >>conftest.$ac_ext <<_ACEOF 4742/* end confdefs.h. */ 4743$ac_includes_default 4744 4745#include <$ac_header> 4746_ACEOF 4747rm -f conftest.$ac_objext 4748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4749 (eval $ac_compile) 2>conftest.er1 4750 ac_status=$? 4751 grep -v '^ *+' conftest.er1 >conftest.err 4752 rm -f conftest.er1 4753 cat conftest.err >&5 4754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4755 (exit $ac_status); } && 4756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4758 (eval $ac_try) 2>&5 4759 ac_status=$? 4760 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4761 (exit $ac_status); }; } && 4762 { ac_try='test -s conftest.$ac_objext' 4763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4764 (eval $ac_try) 2>&5 4765 ac_status=$? 4766 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4767 (exit $ac_status); }; }; then 4768 eval "$as_ac_Header=yes" 4769else 4770 echo "$as_me: failed program was:" >&5 4771sed 's/^/| /' conftest.$ac_ext >&5 4772 4773eval "$as_ac_Header=no" 4774fi 4775rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4776fi 4777echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4778echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4779if test `eval echo '${'$as_ac_Header'}'` = yes; then 4780 cat >>confdefs.h <<_ACEOF 4781#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4782_ACEOF 4783 4784fi 4785 4786done 4787 4788 4789 4790 4791for ac_header in unistd.h getopt.h 4792do 4793as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4794if eval "test \"\${$as_ac_Header+set}\" = set"; then 4795 echo "$as_me:$LINENO: checking for $ac_header" >&5 4796echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4797if eval "test \"\${$as_ac_Header+set}\" = set"; then 4798 echo $ECHO_N "(cached) $ECHO_C" >&6 4799fi 4800echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4801echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4802else 4803 # Is the header compilable? 4804echo "$as_me:$LINENO: checking $ac_header usability" >&5 4805echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4806cat >conftest.$ac_ext <<_ACEOF 4807/* confdefs.h. */ 4808_ACEOF 4809cat confdefs.h >>conftest.$ac_ext 4810cat >>conftest.$ac_ext <<_ACEOF 4811/* end confdefs.h. */ 4812$ac_includes_default 4813#include <$ac_header> 4814_ACEOF 4815rm -f conftest.$ac_objext 4816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4817 (eval $ac_compile) 2>conftest.er1 4818 ac_status=$? 4819 grep -v '^ *+' conftest.er1 >conftest.err 4820 rm -f conftest.er1 4821 cat conftest.err >&5 4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4823 (exit $ac_status); } && 4824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4826 (eval $ac_try) 2>&5 4827 ac_status=$? 4828 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4829 (exit $ac_status); }; } && 4830 { ac_try='test -s conftest.$ac_objext' 4831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4832 (eval $ac_try) 2>&5 4833 ac_status=$? 4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4835 (exit $ac_status); }; }; then 4836 ac_header_compiler=yes 4837else 4838 echo "$as_me: failed program was:" >&5 4839sed 's/^/| /' conftest.$ac_ext >&5 4840 4841ac_header_compiler=no 4842fi 4843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4844echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4845echo "${ECHO_T}$ac_header_compiler" >&6 4846 4847# Is the header present? 4848echo "$as_me:$LINENO: checking $ac_header presence" >&5 4849echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4850cat >conftest.$ac_ext <<_ACEOF 4851/* confdefs.h. */ 4852_ACEOF 4853cat confdefs.h >>conftest.$ac_ext 4854cat >>conftest.$ac_ext <<_ACEOF 4855/* end confdefs.h. */ 4856#include <$ac_header> 4857_ACEOF 4858if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4859 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4860 ac_status=$? 4861 grep -v '^ *+' conftest.er1 >conftest.err 4862 rm -f conftest.er1 4863 cat conftest.err >&5 4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4865 (exit $ac_status); } >/dev/null; then 4866 if test -s conftest.err; then 4867 ac_cpp_err=$ac_c_preproc_warn_flag 4868 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4869 else 4870 ac_cpp_err= 4871 fi 4872else 4873 ac_cpp_err=yes 4874fi 4875if test -z "$ac_cpp_err"; then 4876 ac_header_preproc=yes 4877else 4878 echo "$as_me: failed program was:" >&5 4879sed 's/^/| /' conftest.$ac_ext >&5 4880 4881 ac_header_preproc=no 4882fi 4883rm -f conftest.err conftest.$ac_ext 4884echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4885echo "${ECHO_T}$ac_header_preproc" >&6 4886 4887# So? What about this header? 4888case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4889 yes:no: ) 4890 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4891echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4892 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4893echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4894 ac_header_preproc=yes 4895 ;; 4896 no:yes:* ) 4897 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4898echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4899 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4900echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4901 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4902echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4903 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4904echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4906echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4907 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4908echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4909 ( 4910 cat <<\_ASBOX 4911## ----------------------------------- ## 4912## Report this to stevenj@alum.mit.edu ## 4913## ----------------------------------- ## 4914_ASBOX 4915 ) | 4916 sed "s/^/$as_me: WARNING: /" >&2 4917 ;; 4918esac 4919echo "$as_me:$LINENO: checking for $ac_header" >&5 4920echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4921if eval "test \"\${$as_ac_Header+set}\" = set"; then 4922 echo $ECHO_N "(cached) $ECHO_C" >&6 4923else 4924 eval "$as_ac_Header=\$ac_header_preproc" 4925fi 4926echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4927echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4928 4929fi 4930if test `eval echo '${'$as_ac_Header'}'` = yes; then 4931 cat >>confdefs.h <<_ACEOF 4932#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4933_ACEOF 4934 4935fi 4936 4937done 4938 4939 4940########################################################################### 4941 4942 4943# Check whether --with-cxx or --without-cxx was given. 4944if test "${with_cxx+set}" = set; then 4945 withval="$with_cxx" 4946 with_cxx=$withval 4947else 4948 with_cxx=no 4949fi; 4950 4951if test "x$with_cxx" = "xno"; then 4952 4953have_c_complex=yes 4954 4955for ac_header in complex.h 4956do 4957as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4958if eval "test \"\${$as_ac_Header+set}\" = set"; then 4959 echo "$as_me:$LINENO: checking for $ac_header" >&5 4960echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4961if eval "test \"\${$as_ac_Header+set}\" = set"; then 4962 echo $ECHO_N "(cached) $ECHO_C" >&6 4963fi 4964echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4965echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4966else 4967 # Is the header compilable? 4968echo "$as_me:$LINENO: checking $ac_header usability" >&5 4969echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4970cat >conftest.$ac_ext <<_ACEOF 4971/* confdefs.h. */ 4972_ACEOF 4973cat confdefs.h >>conftest.$ac_ext 4974cat >>conftest.$ac_ext <<_ACEOF 4975/* end confdefs.h. */ 4976$ac_includes_default 4977#include <$ac_header> 4978_ACEOF 4979rm -f conftest.$ac_objext 4980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4981 (eval $ac_compile) 2>conftest.er1 4982 ac_status=$? 4983 grep -v '^ *+' conftest.er1 >conftest.err 4984 rm -f conftest.er1 4985 cat conftest.err >&5 4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4987 (exit $ac_status); } && 4988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4990 (eval $ac_try) 2>&5 4991 ac_status=$? 4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4993 (exit $ac_status); }; } && 4994 { ac_try='test -s conftest.$ac_objext' 4995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4996 (eval $ac_try) 2>&5 4997 ac_status=$? 4998 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4999 (exit $ac_status); }; }; then 5000 ac_header_compiler=yes 5001else 5002 echo "$as_me: failed program was:" >&5 5003sed 's/^/| /' conftest.$ac_ext >&5 5004 5005ac_header_compiler=no 5006fi 5007rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5008echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5009echo "${ECHO_T}$ac_header_compiler" >&6 5010 5011# Is the header present? 5012echo "$as_me:$LINENO: checking $ac_header presence" >&5 5013echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 5014cat >conftest.$ac_ext <<_ACEOF 5015/* confdefs.h. */ 5016_ACEOF 5017cat confdefs.h >>conftest.$ac_ext 5018cat >>conftest.$ac_ext <<_ACEOF 5019/* end confdefs.h. */ 5020#include <$ac_header> 5021_ACEOF 5022if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5023 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5024 ac_status=$? 5025 grep -v '^ *+' conftest.er1 >conftest.err 5026 rm -f conftest.er1 5027 cat conftest.err >&5 5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5029 (exit $ac_status); } >/dev/null; then 5030 if test -s conftest.err; then 5031 ac_cpp_err=$ac_c_preproc_warn_flag 5032 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5033 else 5034 ac_cpp_err= 5035 fi 5036else 5037 ac_cpp_err=yes 5038fi 5039if test -z "$ac_cpp_err"; then 5040 ac_header_preproc=yes 5041else 5042 echo "$as_me: failed program was:" >&5 5043sed 's/^/| /' conftest.$ac_ext >&5 5044 5045 ac_header_preproc=no 5046fi 5047rm -f conftest.err conftest.$ac_ext 5048echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5049echo "${ECHO_T}$ac_header_preproc" >&6 5050 5051# So? What about this header? 5052case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5053 yes:no: ) 5054 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5055echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5056 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5057echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5058 ac_header_preproc=yes 5059 ;; 5060 no:yes:* ) 5061 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5062echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5063 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5064echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5065 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5066echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5067 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5068echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5069 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5070echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5071 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5072echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5073 ( 5074 cat <<\_ASBOX 5075## ----------------------------------- ## 5076## Report this to stevenj@alum.mit.edu ## 5077## ----------------------------------- ## 5078_ASBOX 5079 ) | 5080 sed "s/^/$as_me: WARNING: /" >&2 5081 ;; 5082esac 5083echo "$as_me:$LINENO: checking for $ac_header" >&5 5084echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5085if eval "test \"\${$as_ac_Header+set}\" = set"; then 5086 echo $ECHO_N "(cached) $ECHO_C" >&6 5087else 5088 eval "$as_ac_Header=\$ac_header_preproc" 5089fi 5090echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5091echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5092 5093fi 5094if test `eval echo '${'$as_ac_Header'}'` = yes; then 5095 cat >>confdefs.h <<_ACEOF 5096#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5097_ACEOF 5098 5099fi 5100 5101done 5102 5103echo "$as_me:$LINENO: checking for C complex keyword" >&5 5104echo $ECHO_N "checking for C complex keyword... $ECHO_C" >&6 5105if test "${acx_cv_c_complex+set}" = set; then 5106 echo $ECHO_N "(cached) $ECHO_C" >&6 5107else 5108 acx_cv_c_complex=unsupported 5109 for acx_kw in complex _Complex __complex__; do 5110 cat >conftest.$ac_ext <<_ACEOF 5111/* confdefs.h. */ 5112_ACEOF 5113cat confdefs.h >>conftest.$ac_ext 5114cat >>conftest.$ac_ext <<_ACEOF 5115/* end confdefs.h. */ 5116#include <complex.h> 5117#ifdef F77_DUMMY_MAIN 5118 5119# ifdef __cplusplus 5120 extern "C" 5121# endif 5122 int F77_DUMMY_MAIN() { return 1; } 5123 5124#endif 5125int 5126main () 5127{ 5128float $acx_kw foo; 5129 ; 5130 return 0; 5131} 5132_ACEOF 5133rm -f conftest.$ac_objext 5134if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5135 (eval $ac_compile) 2>conftest.er1 5136 ac_status=$? 5137 grep -v '^ *+' conftest.er1 >conftest.err 5138 rm -f conftest.er1 5139 cat conftest.err >&5 5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5141 (exit $ac_status); } && 5142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5144 (eval $ac_try) 2>&5 5145 ac_status=$? 5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5147 (exit $ac_status); }; } && 5148 { ac_try='test -s conftest.$ac_objext' 5149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5150 (eval $ac_try) 2>&5 5151 ac_status=$? 5152 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5153 (exit $ac_status); }; }; then 5154 acx_cv_c_complex=$acx_kw; break 5155else 5156 echo "$as_me: failed program was:" >&5 5157sed 's/^/| /' conftest.$ac_ext >&5 5158 5159fi 5160rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5161 done 5162 5163fi 5164echo "$as_me:$LINENO: result: $acx_cv_c_complex" >&5 5165echo "${ECHO_T}$acx_cv_c_complex" >&6 5166 5167if test "$acx_cv_c_complex" = "unsupported"; then 5168 { echo "$as_me:$LINENO: WARNING: C doesn't support complex numbers; switching to C++." >&5 5169echo "$as_me: WARNING: C doesn't support complex numbers; switching to C++." >&2;} 5170 have_c_complex=no 5171else 5172 if test "$acx_cv_c_complex" != "complex"; then 5173 5174cat >>confdefs.h <<_ACEOF 5175#define complex $acx_cv_c_complex 5176_ACEOF 5177 5178 fi 5179 5180 echo "$as_me:$LINENO: checking for C complex I constant" >&5 5181echo $ECHO_N "checking for C complex I constant... $ECHO_C" >&6 5182if test "${acx_cv_c_complex_I+set}" = set; then 5183 echo $ECHO_N "(cached) $ECHO_C" >&6 5184else 5185 acx_cv_c_complex_I=unsupported 5186 for acx_kw in I "(1.0i)"; do 5187 cat >conftest.$ac_ext <<_ACEOF 5188/* confdefs.h. */ 5189_ACEOF 5190cat confdefs.h >>conftest.$ac_ext 5191cat >>conftest.$ac_ext <<_ACEOF 5192/* end confdefs.h. */ 5193#include <complex.h> 5194#ifdef F77_DUMMY_MAIN 5195 5196# ifdef __cplusplus 5197 extern "C" 5198# endif 5199 int F77_DUMMY_MAIN() { return 1; } 5200 5201#endif 5202int 5203main () 5204{ 5205float $acx_cv_c_complex foo = $acx_kw; 5206 ; 5207 return 0; 5208} 5209_ACEOF 5210rm -f conftest.$ac_objext 5211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5212 (eval $ac_compile) 2>conftest.er1 5213 ac_status=$? 5214 grep -v '^ *+' conftest.er1 >conftest.err 5215 rm -f conftest.er1 5216 cat conftest.err >&5 5217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5218 (exit $ac_status); } && 5219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5221 (eval $ac_try) 2>&5 5222 ac_status=$? 5223 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5224 (exit $ac_status); }; } && 5225 { ac_try='test -s conftest.$ac_objext' 5226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5227 (eval $ac_try) 2>&5 5228 ac_status=$? 5229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5230 (exit $ac_status); }; }; then 5231 acx_cv_c_complex_I=$acx_kw; break 5232else 5233 echo "$as_me: failed program was:" >&5 5234sed 's/^/| /' conftest.$ac_ext >&5 5235 5236fi 5237rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5238 done 5239 5240fi 5241echo "$as_me:$LINENO: result: $acx_cv_c_complex_I" >&5 5242echo "${ECHO_T}$acx_cv_c_complex_I" >&6 5243 5244 if test "$acx_cv_c_complex_I" = "unsupported"; then 5245 { { echo "$as_me:$LINENO: error: C doesn't support complex numbers." >&5 5246echo "$as_me: error: C doesn't support complex numbers." >&2;} 5247 { (exit 1); exit 1; }; } 5248 have_c_complex=no 5249 else 5250 if test "$acx_cv_c_complex_I" != "I"; then 5251 5252cat >>confdefs.h <<_ACEOF 5253#define I $acx_cv_c_complex_I 5254_ACEOF 5255 5256 fi 5257 fi 5258 5259 echo "$as_me:$LINENO: checking for CX_LIMITED_RANGE_ON macro" >&5 5260echo $ECHO_N "checking for CX_LIMITED_RANGE_ON macro... $ECHO_C" >&6 5261if test "${acx_cv_c_cx_limited_range_on+set}" = set; then 5262 echo $ECHO_N "(cached) $ECHO_C" >&6 5263else 5264 acx_cv_c_cx_limited_range_on=no 5265 cat >conftest.$ac_ext <<_ACEOF 5266/* confdefs.h. */ 5267_ACEOF 5268cat confdefs.h >>conftest.$ac_ext 5269cat >>conftest.$ac_ext <<_ACEOF 5270/* end confdefs.h. */ 5271#include <complex.h> 5272#ifdef F77_DUMMY_MAIN 5273 5274# ifdef __cplusplus 5275 extern "C" 5276# endif 5277 int F77_DUMMY_MAIN() { return 1; } 5278 5279#endif 5280int 5281main () 5282{ 5283CX_LIMITED_RANGE_ON; 5284 ; 5285 return 0; 5286} 5287_ACEOF 5288rm -f conftest.$ac_objext 5289if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5290 (eval $ac_compile) 2>conftest.er1 5291 ac_status=$? 5292 grep -v '^ *+' conftest.er1 >conftest.err 5293 rm -f conftest.er1 5294 cat conftest.err >&5 5295 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5296 (exit $ac_status); } && 5297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5299 (eval $ac_try) 2>&5 5300 ac_status=$? 5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5302 (exit $ac_status); }; } && 5303 { ac_try='test -s conftest.$ac_objext' 5304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5305 (eval $ac_try) 2>&5 5306 ac_status=$? 5307 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5308 (exit $ac_status); }; }; then 5309 acx_cv_c_cx_limited_range_on=yes 5310else 5311 echo "$as_me: failed program was:" >&5 5312sed 's/^/| /' conftest.$ac_ext >&5 5313 5314fi 5315rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5316fi 5317echo "$as_me:$LINENO: result: $acx_cv_c_cx_limited_range_on" >&5 5318echo "${ECHO_T}$acx_cv_c_cx_limited_range_on" >&6 5319 if test "$acx_cv_c_cx_limited_range_on" = "no"; then 5320 5321cat >>confdefs.h <<\_ACEOF 5322#define CX_LIMITED_RANGE_ON 0 5323_ACEOF 5324 5325 fi 5326 5327fi # C has complex keyword 5328 5329fi # $with_cxx = no 5330 5331if test "$have_c_complex" = "yes"; then 5332 5333for ac_func in carg 5334do 5335as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5336echo "$as_me:$LINENO: checking for $ac_func" >&5 5337echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 5338if eval "test \"\${$as_ac_var+set}\" = set"; then 5339 echo $ECHO_N "(cached) $ECHO_C" >&6 5340else 5341 cat >conftest.$ac_ext <<_ACEOF 5342/* confdefs.h. */ 5343_ACEOF 5344cat confdefs.h >>conftest.$ac_ext 5345cat >>conftest.$ac_ext <<_ACEOF 5346/* end confdefs.h. */ 5347/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5348 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5349#define $ac_func innocuous_$ac_func 5350 5351/* System header to define __stub macros and hopefully few prototypes, 5352 which can conflict with char $ac_func (); below. 5353 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5354 <limits.h> exists even on freestanding compilers. */ 5355 5356#ifdef __STDC__ 5357# include <limits.h> 5358#else 5359# include <assert.h> 5360#endif 5361 5362#undef $ac_func 5363 5364/* Override any gcc2 internal prototype to avoid an error. */ 5365#ifdef __cplusplus 5366extern "C" 5367{ 5368#endif 5369/* We use char because int might match the return type of a gcc2 5370 builtin and then its argument prototype would still apply. */ 5371char $ac_func (); 5372/* The GNU C library defines this for functions which it implements 5373 to always fail with ENOSYS. Some functions are actually named 5374 something starting with __ and the normal name is an alias. */ 5375#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5376choke me 5377#else 5378char (*f) () = $ac_func; 5379#endif 5380#ifdef __cplusplus 5381} 5382#endif 5383 5384#ifdef F77_DUMMY_MAIN 5385 5386# ifdef __cplusplus 5387 extern "C" 5388# endif 5389 int F77_DUMMY_MAIN() { return 1; } 5390 5391#endif 5392int 5393main () 5394{ 5395return f != $ac_func; 5396 ; 5397 return 0; 5398} 5399_ACEOF 5400rm -f conftest.$ac_objext conftest$ac_exeext 5401if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5402 (eval $ac_link) 2>conftest.er1 5403 ac_status=$? 5404 grep -v '^ *+' conftest.er1 >conftest.err 5405 rm -f conftest.er1 5406 cat conftest.err >&5 5407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5408 (exit $ac_status); } && 5409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5411 (eval $ac_try) 2>&5 5412 ac_status=$? 5413 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5414 (exit $ac_status); }; } && 5415 { ac_try='test -s conftest$ac_exeext' 5416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5417 (eval $ac_try) 2>&5 5418 ac_status=$? 5419 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5420 (exit $ac_status); }; }; then 5421 eval "$as_ac_var=yes" 5422else 5423 echo "$as_me: failed program was:" >&5 5424sed 's/^/| /' conftest.$ac_ext >&5 5425 5426eval "$as_ac_var=no" 5427fi 5428rm -f conftest.err conftest.$ac_objext \ 5429 conftest$ac_exeext conftest.$ac_ext 5430fi 5431echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 5432echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 5433if test `eval echo '${'$as_ac_var'}'` = yes; then 5434 cat >>confdefs.h <<_ACEOF 5435#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5436_ACEOF 5437 5438fi 5439done 5440 5441fi 5442 5443########################################################################### 5444 5445ac_ext=cc 5446ac_cpp='$CXXCPP $CPPFLAGS' 5447ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5448ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5449ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5450if test -n "$ac_tool_prefix"; then 5451 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 5452 do 5453 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5454set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5455echo "$as_me:$LINENO: checking for $ac_word" >&5 5456echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5457if test "${ac_cv_prog_CXX+set}" = set; then 5458 echo $ECHO_N "(cached) $ECHO_C" >&6 5459else 5460 if test -n "$CXX"; then 5461 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5462else 5463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5464for as_dir in $PATH 5465do 5466 IFS=$as_save_IFS 5467 test -z "$as_dir" && as_dir=. 5468 for ac_exec_ext in '' $ac_executable_extensions; do 5469 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5470 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5472 break 2 5473 fi 5474done 5475done 5476 5477fi 5478fi 5479CXX=$ac_cv_prog_CXX 5480if test -n "$CXX"; then 5481 echo "$as_me:$LINENO: result: $CXX" >&5 5482echo "${ECHO_T}$CXX" >&6 5483else 5484 echo "$as_me:$LINENO: result: no" >&5 5485echo "${ECHO_T}no" >&6 5486fi 5487 5488 test -n "$CXX" && break 5489 done 5490fi 5491if test -z "$CXX"; then 5492 ac_ct_CXX=$CXX 5493 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 5494do 5495 # Extract the first word of "$ac_prog", so it can be a program name with args. 5496set dummy $ac_prog; ac_word=$2 5497echo "$as_me:$LINENO: checking for $ac_word" >&5 5498echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5499if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 5500 echo $ECHO_N "(cached) $ECHO_C" >&6 5501else 5502 if test -n "$ac_ct_CXX"; then 5503 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5504else 5505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5506for as_dir in $PATH 5507do 5508 IFS=$as_save_IFS 5509 test -z "$as_dir" && as_dir=. 5510 for ac_exec_ext in '' $ac_executable_extensions; do 5511 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5512 ac_cv_prog_ac_ct_CXX="$ac_prog" 5513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5514 break 2 5515 fi 5516done 5517done 5518 5519fi 5520fi 5521ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5522if test -n "$ac_ct_CXX"; then 5523 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 5524echo "${ECHO_T}$ac_ct_CXX" >&6 5525else 5526 echo "$as_me:$LINENO: result: no" >&5 5527echo "${ECHO_T}no" >&6 5528fi 5529 5530 test -n "$ac_ct_CXX" && break 5531done 5532test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 5533 5534 CXX=$ac_ct_CXX 5535fi 5536 5537 5538# Provide some information about the compiler. 5539echo "$as_me:$LINENO:" \ 5540 "checking for C++ compiler version" >&5 5541ac_compiler=`set X $ac_compile; echo $2` 5542{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 5543 (eval $ac_compiler --version </dev/null >&5) 2>&5 5544 ac_status=$? 5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5546 (exit $ac_status); } 5547{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 5548 (eval $ac_compiler -v </dev/null >&5) 2>&5 5549 ac_status=$? 5550 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5551 (exit $ac_status); } 5552{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 5553 (eval $ac_compiler -V </dev/null >&5) 2>&5 5554 ac_status=$? 5555 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5556 (exit $ac_status); } 5557 5558echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 5559echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 5560if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 5561 echo $ECHO_N "(cached) $ECHO_C" >&6 5562else 5563 cat >conftest.$ac_ext <<_ACEOF 5564/* confdefs.h. */ 5565_ACEOF 5566cat confdefs.h >>conftest.$ac_ext 5567cat >>conftest.$ac_ext <<_ACEOF 5568/* end confdefs.h. */ 5569 5570#ifdef F77_DUMMY_MAIN 5571 5572# ifdef __cplusplus 5573 extern "C" 5574# endif 5575 int F77_DUMMY_MAIN() { return 1; } 5576 5577#endif 5578int 5579main () 5580{ 5581#ifndef __GNUC__ 5582 choke me 5583#endif 5584 5585 ; 5586 return 0; 5587} 5588_ACEOF 5589rm -f conftest.$ac_objext 5590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5591 (eval $ac_compile) 2>conftest.er1 5592 ac_status=$? 5593 grep -v '^ *+' conftest.er1 >conftest.err 5594 rm -f conftest.er1 5595 cat conftest.err >&5 5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5597 (exit $ac_status); } && 5598 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5600 (eval $ac_try) 2>&5 5601 ac_status=$? 5602 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5603 (exit $ac_status); }; } && 5604 { ac_try='test -s conftest.$ac_objext' 5605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5606 (eval $ac_try) 2>&5 5607 ac_status=$? 5608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5609 (exit $ac_status); }; }; then 5610 ac_compiler_gnu=yes 5611else 5612 echo "$as_me: failed program was:" >&5 5613sed 's/^/| /' conftest.$ac_ext >&5 5614 5615ac_compiler_gnu=no 5616fi 5617rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5618ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5619 5620fi 5621echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 5622echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 5623GXX=`test $ac_compiler_gnu = yes && echo yes` 5624ac_test_CXXFLAGS=${CXXFLAGS+set} 5625ac_save_CXXFLAGS=$CXXFLAGS 5626CXXFLAGS="-g" 5627echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 5628echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 5629if test "${ac_cv_prog_cxx_g+set}" = set; then 5630 echo $ECHO_N "(cached) $ECHO_C" >&6 5631else 5632 cat >conftest.$ac_ext <<_ACEOF 5633/* confdefs.h. */ 5634_ACEOF 5635cat confdefs.h >>conftest.$ac_ext 5636cat >>conftest.$ac_ext <<_ACEOF 5637/* end confdefs.h. */ 5638 5639#ifdef F77_DUMMY_MAIN 5640 5641# ifdef __cplusplus 5642 extern "C" 5643# endif 5644 int F77_DUMMY_MAIN() { return 1; } 5645 5646#endif 5647int 5648main () 5649{ 5650 5651 ; 5652 return 0; 5653} 5654_ACEOF 5655rm -f conftest.$ac_objext 5656if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5657 (eval $ac_compile) 2>conftest.er1 5658 ac_status=$? 5659 grep -v '^ *+' conftest.er1 >conftest.err 5660 rm -f conftest.er1 5661 cat conftest.err >&5 5662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5663 (exit $ac_status); } && 5664 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5666 (eval $ac_try) 2>&5 5667 ac_status=$? 5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5669 (exit $ac_status); }; } && 5670 { ac_try='test -s conftest.$ac_objext' 5671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5672 (eval $ac_try) 2>&5 5673 ac_status=$? 5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5675 (exit $ac_status); }; }; then 5676 ac_cv_prog_cxx_g=yes 5677else 5678 echo "$as_me: failed program was:" >&5 5679sed 's/^/| /' conftest.$ac_ext >&5 5680 5681ac_cv_prog_cxx_g=no 5682fi 5683rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5684fi 5685echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 5686echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 5687if test "$ac_test_CXXFLAGS" = set; then 5688 CXXFLAGS=$ac_save_CXXFLAGS 5689elif test $ac_cv_prog_cxx_g = yes; then 5690 if test "$GXX" = yes; then 5691 CXXFLAGS="-g -O2" 5692 else 5693 CXXFLAGS="-g" 5694 fi 5695else 5696 if test "$GXX" = yes; then 5697 CXXFLAGS="-O2" 5698 else 5699 CXXFLAGS= 5700 fi 5701fi 5702for ac_declaration in \ 5703 '' \ 5704 'extern "C" void std::exit (int) throw (); using std::exit;' \ 5705 'extern "C" void std::exit (int); using std::exit;' \ 5706 'extern "C" void exit (int) throw ();' \ 5707 'extern "C" void exit (int);' \ 5708 'void exit (int);' 5709do 5710 cat >conftest.$ac_ext <<_ACEOF 5711/* confdefs.h. */ 5712_ACEOF 5713cat confdefs.h >>conftest.$ac_ext 5714cat >>conftest.$ac_ext <<_ACEOF 5715/* end confdefs.h. */ 5716$ac_declaration 5717#include <stdlib.h> 5718#ifdef F77_DUMMY_MAIN 5719 5720# ifdef __cplusplus 5721 extern "C" 5722# endif 5723 int F77_DUMMY_MAIN() { return 1; } 5724 5725#endif 5726int 5727main () 5728{ 5729exit (42); 5730 ; 5731 return 0; 5732} 5733_ACEOF 5734rm -f conftest.$ac_objext 5735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5736 (eval $ac_compile) 2>conftest.er1 5737 ac_status=$? 5738 grep -v '^ *+' conftest.er1 >conftest.err 5739 rm -f conftest.er1 5740 cat conftest.err >&5 5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5742 (exit $ac_status); } && 5743 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5745 (eval $ac_try) 2>&5 5746 ac_status=$? 5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5748 (exit $ac_status); }; } && 5749 { ac_try='test -s conftest.$ac_objext' 5750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5751 (eval $ac_try) 2>&5 5752 ac_status=$? 5753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5754 (exit $ac_status); }; }; then 5755 : 5756else 5757 echo "$as_me: failed program was:" >&5 5758sed 's/^/| /' conftest.$ac_ext >&5 5759 5760continue 5761fi 5762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5763 cat >conftest.$ac_ext <<_ACEOF 5764/* confdefs.h. */ 5765_ACEOF 5766cat confdefs.h >>conftest.$ac_ext 5767cat >>conftest.$ac_ext <<_ACEOF 5768/* end confdefs.h. */ 5769$ac_declaration 5770#ifdef F77_DUMMY_MAIN 5771 5772# ifdef __cplusplus 5773 extern "C" 5774# endif 5775 int F77_DUMMY_MAIN() { return 1; } 5776 5777#endif 5778int 5779main () 5780{ 5781exit (42); 5782 ; 5783 return 0; 5784} 5785_ACEOF 5786rm -f conftest.$ac_objext 5787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5788 (eval $ac_compile) 2>conftest.er1 5789 ac_status=$? 5790 grep -v '^ *+' conftest.er1 >conftest.err 5791 rm -f conftest.er1 5792 cat conftest.err >&5 5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5794 (exit $ac_status); } && 5795 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5797 (eval $ac_try) 2>&5 5798 ac_status=$? 5799 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5800 (exit $ac_status); }; } && 5801 { ac_try='test -s conftest.$ac_objext' 5802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5803 (eval $ac_try) 2>&5 5804 ac_status=$? 5805 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5806 (exit $ac_status); }; }; then 5807 break 5808else 5809 echo "$as_me: failed program was:" >&5 5810sed 's/^/| /' conftest.$ac_ext >&5 5811 5812fi 5813rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5814done 5815rm -f conftest* 5816if test -n "$ac_declaration"; then 5817 echo '#ifdef __cplusplus' >>confdefs.h 5818 echo $ac_declaration >>confdefs.h 5819 echo '#endif' >>confdefs.h 5820fi 5821 5822ac_ext=c 5823ac_cpp='$CPP $CPPFLAGS' 5824ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5825ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5826ac_compiler_gnu=$ac_cv_c_compiler_gnu 5827 5828depcc="$CXX" am_compiler_list= 5829 5830echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5831echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 5832if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 5833 echo $ECHO_N "(cached) $ECHO_C" >&6 5834else 5835 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5836 # We make a subdir and do the tests there. Otherwise we can end up 5837 # making bogus files that we don't know about and never remove. For 5838 # instance it was reported that on HP-UX the gcc test will end up 5839 # making a dummy file named `D' -- because `-MD' means `put the output 5840 # in D'. 5841 mkdir conftest.dir 5842 # Copy depcomp to subdir because otherwise we won't find it if we're 5843 # using a relative directory. 5844 cp "$am_depcomp" conftest.dir 5845 cd conftest.dir 5846 # We will build objects and dependencies in a subdirectory because 5847 # it helps to detect inapplicable dependency modes. For instance 5848 # both Tru64's cc and ICC support -MD to output dependencies as a 5849 # side effect of compilation, but ICC will put the dependencies in 5850 # the current directory while Tru64 will put them in the object 5851 # directory. 5852 mkdir sub 5853 5854 am_cv_CXX_dependencies_compiler_type=none 5855 if test "$am_compiler_list" = ""; then 5856 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5857 fi 5858 for depmode in $am_compiler_list; do 5859 # Setup a source with many dependencies, because some compilers 5860 # like to wrap large dependency lists on column 80 (with \), and 5861 # we should not choose a depcomp mode which is confused by this. 5862 # 5863 # We need to recreate these files for each test, as the compiler may 5864 # overwrite some of them when testing with obscure command lines. 5865 # This happens at least with the AIX C compiler. 5866 : > sub/conftest.c 5867 for i in 1 2 3 4 5 6; do 5868 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5869 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5870 # Solaris 8's {/usr,}/bin/sh. 5871 touch sub/conftst$i.h 5872 done 5873 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5874 5875 case $depmode in 5876 nosideeffect) 5877 # after this tag, mechanisms are not by side-effect, so they'll 5878 # only be used when explicitly requested 5879 if test "x$enable_dependency_tracking" = xyes; then 5880 continue 5881 else 5882 break 5883 fi 5884 ;; 5885 none) break ;; 5886 esac 5887 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5888 # mode. It turns out that the SunPro C++ compiler does not properly 5889 # handle `-M -o', and we need to detect this. 5890 if depmode=$depmode \ 5891 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 5892 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5893 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 5894 >/dev/null 2>conftest.err && 5895 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5896 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 5897 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5898 # icc doesn't choke on unknown options, it will just issue warnings 5899 # or remarks (even with -Werror). So we grep stderr for any message 5900 # that says an option was ignored or not supported. 5901 # When given -MP, icc 7.0 and 7.1 complain thusly: 5902 # icc: Command line warning: ignoring option '-M'; no argument required 5903 # The diagnosis changed in icc 8.0: 5904 # icc: Command line remark: option '-MP' not supported 5905 if (grep 'ignoring option' conftest.err || 5906 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5907 am_cv_CXX_dependencies_compiler_type=$depmode 5908 break 5909 fi 5910 fi 5911 done 5912 5913 cd .. 5914 rm -rf conftest.dir 5915else 5916 am_cv_CXX_dependencies_compiler_type=none 5917fi 5918 5919fi 5920echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 5921echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 5922CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5923 5924 5925 5926if 5927 test "x$enable_dependency_tracking" != xno \ 5928 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5929 am__fastdepCXX_TRUE= 5930 am__fastdepCXX_FALSE='#' 5931else 5932 am__fastdepCXX_TRUE='#' 5933 am__fastdepCXX_FALSE= 5934fi 5935 5936 5937if test "$with_cxx" = "yes" -o "$have_c_complex" = "no"; then 5938 CC="$CXX" 5939 CFLAGS="$CXXFLAGS" 5940fi 5941 5942########################################################################### 5943 5944echo "$as_me:$LINENO: checking for long double" >&5 5945echo $ECHO_N "checking for long double... $ECHO_C" >&6 5946if test "${ac_cv_type_long_double+set}" = set; then 5947 echo $ECHO_N "(cached) $ECHO_C" >&6 5948else 5949 cat >conftest.$ac_ext <<_ACEOF 5950/* confdefs.h. */ 5951_ACEOF 5952cat confdefs.h >>conftest.$ac_ext 5953cat >>conftest.$ac_ext <<_ACEOF 5954/* end confdefs.h. */ 5955$ac_includes_default 5956#ifdef F77_DUMMY_MAIN 5957 5958# ifdef __cplusplus 5959 extern "C" 5960# endif 5961 int F77_DUMMY_MAIN() { return 1; } 5962 5963#endif 5964int 5965main () 5966{ 5967if ((long double *) 0) 5968 return 0; 5969if (sizeof (long double)) 5970 return 0; 5971 ; 5972 return 0; 5973} 5974_ACEOF 5975rm -f conftest.$ac_objext 5976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5977 (eval $ac_compile) 2>conftest.er1 5978 ac_status=$? 5979 grep -v '^ *+' conftest.er1 >conftest.err 5980 rm -f conftest.er1 5981 cat conftest.err >&5 5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5983 (exit $ac_status); } && 5984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5986 (eval $ac_try) 2>&5 5987 ac_status=$? 5988 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5989 (exit $ac_status); }; } && 5990 { ac_try='test -s conftest.$ac_objext' 5991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5992 (eval $ac_try) 2>&5 5993 ac_status=$? 5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5995 (exit $ac_status); }; }; then 5996 ac_cv_type_long_double=yes 5997else 5998 echo "$as_me: failed program was:" >&5 5999sed 's/^/| /' conftest.$ac_ext >&5 6000 6001ac_cv_type_long_double=no 6002fi 6003rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6004fi 6005echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5 6006echo "${ECHO_T}$ac_cv_type_long_double" >&6 6007if test $ac_cv_type_long_double = yes; then 6008 6009cat >>confdefs.h <<_ACEOF 6010#define HAVE_LONG_DOUBLE 1 6011_ACEOF 6012 6013 6014fi 6015 6016 6017########################################################################### 6018 6019# Check whether --enable-static or --disable-static was given. 6020if test "${enable_static+set}" = set; then 6021 enableval="$enable_static" 6022 p=${PACKAGE-default} 6023 case $enableval in 6024 yes) enable_static=yes ;; 6025 no) enable_static=no ;; 6026 *) 6027 enable_static=no 6028 # Look at the argument we got. We use all the common list separators. 6029 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6030 for pkg in $enableval; do 6031 IFS="$lt_save_ifs" 6032 if test "X$pkg" = "X$p"; then 6033 enable_static=yes 6034 fi 6035 done 6036 IFS="$lt_save_ifs" 6037 ;; 6038 esac 6039else 6040 enable_static=yes 6041fi; 6042 6043# Check whether --enable-fast-install or --disable-fast-install was given. 6044if test "${enable_fast_install+set}" = set; then 6045 enableval="$enable_fast_install" 6046 p=${PACKAGE-default} 6047 case $enableval in 6048 yes) enable_fast_install=yes ;; 6049 no) enable_fast_install=no ;; 6050 *) 6051 enable_fast_install=no 6052 # Look at the argument we got. We use all the common list separators. 6053 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6054 for pkg in $enableval; do 6055 IFS="$lt_save_ifs" 6056 if test "X$pkg" = "X$p"; then 6057 enable_fast_install=yes 6058 fi 6059 done 6060 IFS="$lt_save_ifs" 6061 ;; 6062 esac 6063else 6064 enable_fast_install=yes 6065fi; 6066 6067# Make sure we can run config.sub. 6068$ac_config_sub sun4 >/dev/null 2>&1 || 6069 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 6070echo "$as_me: error: cannot run $ac_config_sub" >&2;} 6071 { (exit 1); exit 1; }; } 6072 6073echo "$as_me:$LINENO: checking build system type" >&5 6074echo $ECHO_N "checking build system type... $ECHO_C" >&6 6075if test "${ac_cv_build+set}" = set; then 6076 echo $ECHO_N "(cached) $ECHO_C" >&6 6077else 6078 ac_cv_build_alias=$build_alias 6079test -z "$ac_cv_build_alias" && 6080 ac_cv_build_alias=`$ac_config_guess` 6081test -z "$ac_cv_build_alias" && 6082 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 6083echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 6084 { (exit 1); exit 1; }; } 6085ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 6086 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 6087echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 6088 { (exit 1); exit 1; }; } 6089 6090fi 6091echo "$as_me:$LINENO: result: $ac_cv_build" >&5 6092echo "${ECHO_T}$ac_cv_build" >&6 6093build=$ac_cv_build 6094build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 6095build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 6096build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 6097 6098 6099echo "$as_me:$LINENO: checking host system type" >&5 6100echo $ECHO_N "checking host system type... $ECHO_C" >&6 6101if test "${ac_cv_host+set}" = set; then 6102 echo $ECHO_N "(cached) $ECHO_C" >&6 6103else 6104 ac_cv_host_alias=$host_alias 6105test -z "$ac_cv_host_alias" && 6106 ac_cv_host_alias=$ac_cv_build_alias 6107ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 6108 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 6109echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 6110 { (exit 1); exit 1; }; } 6111 6112fi 6113echo "$as_me:$LINENO: result: $ac_cv_host" >&5 6114echo "${ECHO_T}$ac_cv_host" >&6 6115host=$ac_cv_host 6116host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 6117host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 6118host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 6119 6120 6121echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 6122echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 6123if test "${lt_cv_path_SED+set}" = set; then 6124 echo $ECHO_N "(cached) $ECHO_C" >&6 6125else 6126 # Loop through the user's path and test for sed and gsed. 6127# Then use that list of sed's as ones to test for truncation. 6128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6129for as_dir in $PATH 6130do 6131 IFS=$as_save_IFS 6132 test -z "$as_dir" && as_dir=. 6133 for lt_ac_prog in sed gsed; do 6134 for ac_exec_ext in '' $ac_executable_extensions; do 6135 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 6136 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 6137 fi 6138 done 6139 done 6140done 6141lt_ac_max=0 6142lt_ac_count=0 6143# Add /usr/xpg4/bin/sed as it is typically found on Solaris 6144# along with /bin/sed that truncates output. 6145for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 6146 test ! -f $lt_ac_sed && break 6147 cat /dev/null > conftest.in 6148 lt_ac_count=0 6149 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 6150 # Check for GNU sed and select it if it is found. 6151 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 6152 lt_cv_path_SED=$lt_ac_sed 6153 break 6154 fi 6155 while true; do 6156 cat conftest.in conftest.in >conftest.tmp 6157 mv conftest.tmp conftest.in 6158 cp conftest.in conftest.nl 6159 echo >>conftest.nl 6160 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 6161 cmp -s conftest.out conftest.nl || break 6162 # 10000 chars as input seems more than enough 6163 test $lt_ac_count -gt 10 && break 6164 lt_ac_count=`expr $lt_ac_count + 1` 6165 if test $lt_ac_count -gt $lt_ac_max; then 6166 lt_ac_max=$lt_ac_count 6167 lt_cv_path_SED=$lt_ac_sed 6168 fi 6169 done 6170done 6171SED=$lt_cv_path_SED 6172 6173fi 6174 6175echo "$as_me:$LINENO: result: $SED" >&5 6176echo "${ECHO_T}$SED" >&6 6177 6178 6179# Check whether --with-gnu-ld or --without-gnu-ld was given. 6180if test "${with_gnu_ld+set}" = set; then 6181 withval="$with_gnu_ld" 6182 test "$withval" = no || with_gnu_ld=yes 6183else 6184 with_gnu_ld=no 6185fi; 6186ac_prog=ld 6187if test "$GCC" = yes; then 6188 # Check if gcc -print-prog-name=ld gives a path. 6189 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 6190echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 6191 case $host in 6192 *-*-mingw*) 6193 # gcc leaves a trailing carriage return which upsets mingw 6194 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 6195 *) 6196 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 6197 esac 6198 case $ac_prog in 6199 # Accept absolute paths. 6200 [\\/]* | ?:[\\/]*) 6201 re_direlt='/[^/][^/]*/\.\./' 6202 # Canonicalize the pathname of ld 6203 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 6204 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 6205 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 6206 done 6207 test -z "$LD" && LD="$ac_prog" 6208 ;; 6209 "") 6210 # If it fails, then pretend we aren't using GCC. 6211 ac_prog=ld 6212 ;; 6213 *) 6214 # If it is relative, then search for the first ld in PATH. 6215 with_gnu_ld=unknown 6216 ;; 6217 esac 6218elif test "$with_gnu_ld" = yes; then 6219 echo "$as_me:$LINENO: checking for GNU ld" >&5 6220echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 6221else 6222 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 6223echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 6224fi 6225if test "${lt_cv_path_LD+set}" = set; then 6226 echo $ECHO_N "(cached) $ECHO_C" >&6 6227else 6228 if test -z "$LD"; then 6229 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6230 for ac_dir in $PATH; do 6231 IFS="$lt_save_ifs" 6232 test -z "$ac_dir" && ac_dir=. 6233 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 6234 lt_cv_path_LD="$ac_dir/$ac_prog" 6235 # Check to see if the program is GNU ld. I'd rather use --version, 6236 # but apparently some GNU ld's only accept -v. 6237 # Break only if it was the GNU/non-GNU ld that we prefer. 6238 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 6239 *GNU* | *'with BFD'*) 6240 test "$with_gnu_ld" != no && break 6241 ;; 6242 *) 6243 test "$with_gnu_ld" != yes && break 6244 ;; 6245 esac 6246 fi 6247 done 6248 IFS="$lt_save_ifs" 6249else 6250 lt_cv_path_LD="$LD" # Let the user override the test with a path. 6251fi 6252fi 6253 6254LD="$lt_cv_path_LD" 6255if test -n "$LD"; then 6256 echo "$as_me:$LINENO: result: $LD" >&5 6257echo "${ECHO_T}$LD" >&6 6258else 6259 echo "$as_me:$LINENO: result: no" >&5 6260echo "${ECHO_T}no" >&6 6261fi 6262test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 6263echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 6264 { (exit 1); exit 1; }; } 6265echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 6266echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 6267if test "${lt_cv_prog_gnu_ld+set}" = set; then 6268 echo $ECHO_N "(cached) $ECHO_C" >&6 6269else 6270 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 6271case `$LD -v 2>&1 </dev/null` in 6272*GNU* | *'with BFD'*) 6273 lt_cv_prog_gnu_ld=yes 6274 ;; 6275*) 6276 lt_cv_prog_gnu_ld=no 6277 ;; 6278esac 6279fi 6280echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 6281echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 6282with_gnu_ld=$lt_cv_prog_gnu_ld 6283 6284 6285echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 6286echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 6287if test "${lt_cv_ld_reload_flag+set}" = set; then 6288 echo $ECHO_N "(cached) $ECHO_C" >&6 6289else 6290 lt_cv_ld_reload_flag='-r' 6291fi 6292echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 6293echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 6294reload_flag=$lt_cv_ld_reload_flag 6295case $reload_flag in 6296"" | " "*) ;; 6297*) reload_flag=" $reload_flag" ;; 6298esac 6299reload_cmds='$LD$reload_flag -o $output$reload_objs' 6300 6301echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 6302echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 6303if test "${lt_cv_path_NM+set}" = set; then 6304 echo $ECHO_N "(cached) $ECHO_C" >&6 6305else 6306 if test -n "$NM"; then 6307 # Let the user override the test. 6308 lt_cv_path_NM="$NM" 6309else 6310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6311 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 6312 IFS="$lt_save_ifs" 6313 test -z "$ac_dir" && ac_dir=. 6314 tmp_nm="$ac_dir/${ac_tool_prefix}nm" 6315 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 6316 # Check to see if the nm accepts a BSD-compat flag. 6317 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 6318 # nm: unknown option "B" ignored 6319 # Tru64's nm complains that /dev/null is an invalid object file 6320 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 6321 */dev/null* | *'Invalid file or object type'*) 6322 lt_cv_path_NM="$tmp_nm -B" 6323 break 6324 ;; 6325 *) 6326 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 6327 */dev/null*) 6328 lt_cv_path_NM="$tmp_nm -p" 6329 break 6330 ;; 6331 *) 6332 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6333 continue # so that we can try to find one that supports BSD flags 6334 ;; 6335 esac 6336 esac 6337 fi 6338 done 6339 IFS="$lt_save_ifs" 6340 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 6341fi 6342fi 6343echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 6344echo "${ECHO_T}$lt_cv_path_NM" >&6 6345NM="$lt_cv_path_NM" 6346 6347echo "$as_me:$LINENO: checking whether ln -s works" >&5 6348echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 6349LN_S=$as_ln_s 6350if test "$LN_S" = "ln -s"; then 6351 echo "$as_me:$LINENO: result: yes" >&5 6352echo "${ECHO_T}yes" >&6 6353else 6354 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 6355echo "${ECHO_T}no, using $LN_S" >&6 6356fi 6357 6358echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 6359echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 6360if test "${lt_cv_deplibs_check_method+set}" = set; then 6361 echo $ECHO_N "(cached) $ECHO_C" >&6 6362else 6363 lt_cv_file_magic_cmd='$MAGIC_CMD' 6364lt_cv_file_magic_test_file= 6365lt_cv_deplibs_check_method='unknown' 6366# Need to set the preceding variable on all platforms that support 6367# interlibrary dependencies. 6368# 'none' -- dependencies not supported. 6369# `unknown' -- same as none, but documents that we really don't know. 6370# 'pass_all' -- all dependencies passed with no checks. 6371# 'test_compile' -- check by making test program. 6372# 'file_magic [[regex]]' -- check by looking for files in library path 6373# which responds to the $file_magic_cmd with a given extended regex. 6374# If you have `file' or equivalent on your system and you're not sure 6375# whether `pass_all' will *always* work, you probably want this one. 6376 6377case $host_os in 6378aix4* | aix5*) 6379 lt_cv_deplibs_check_method=pass_all 6380 ;; 6381 6382beos*) 6383 lt_cv_deplibs_check_method=pass_all 6384 ;; 6385 6386bsdi4*) 6387 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6388 lt_cv_file_magic_cmd='/usr/bin/file -L' 6389 lt_cv_file_magic_test_file=/shlib/libc.so 6390 ;; 6391 6392cygwin*) 6393 # func_win32_libid is a shell function defined in ltmain.sh 6394 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6395 lt_cv_file_magic_cmd='func_win32_libid' 6396 ;; 6397 6398mingw* | pw32*) 6399 # Base MSYS/MinGW do not provide the 'file' command needed by 6400 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 6401 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 6402 lt_cv_file_magic_cmd='$OBJDUMP -f' 6403 ;; 6404 6405darwin* | rhapsody*) 6406 lt_cv_deplibs_check_method=pass_all 6407 ;; 6408 6409freebsd* | kfreebsd*-gnu) 6410 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 6411 case $host_cpu in 6412 i*86 ) 6413 # Not sure whether the presence of OpenBSD here was a mistake. 6414 # Let's accept both of them until this is cleared up. 6415 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' 6416 lt_cv_file_magic_cmd=/usr/bin/file 6417 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6418 ;; 6419 esac 6420 else 6421 lt_cv_deplibs_check_method=pass_all 6422 fi 6423 ;; 6424 6425gnu*) 6426 lt_cv_deplibs_check_method=pass_all 6427 ;; 6428 6429hpux10.20* | hpux11*) 6430 lt_cv_file_magic_cmd=/usr/bin/file 6431 case "$host_cpu" in 6432 ia64*) 6433 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6434 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6435 ;; 6436 hppa*64*) 6437 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]' 6438 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6439 ;; 6440 *) 6441 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 6442 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6443 ;; 6444 esac 6445 ;; 6446 6447irix5* | irix6* | nonstopux*) 6448 case $LD in 6449 *-32|*"-32 ") libmagic=32-bit;; 6450 *-n32|*"-n32 ") libmagic=N32;; 6451 *-64|*"-64 ") libmagic=64-bit;; 6452 *) libmagic=never-match;; 6453 esac 6454 lt_cv_deplibs_check_method=pass_all 6455 ;; 6456 6457# This must be Linux ELF. 6458linux*) 6459 lt_cv_deplibs_check_method=pass_all 6460 ;; 6461 6462netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 6463 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 6464 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6465 else 6466 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6467 fi 6468 ;; 6469 6470newos6*) 6471 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6472 lt_cv_file_magic_cmd=/usr/bin/file 6473 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6474 ;; 6475 6476nto-qnx*) 6477 lt_cv_deplibs_check_method=unknown 6478 ;; 6479 6480openbsd*) 6481 lt_cv_file_magic_cmd=/usr/bin/file 6482 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6483 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6484 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' 6485 else 6486 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' 6487 fi 6488 ;; 6489 6490osf3* | osf4* | osf5*) 6491 lt_cv_deplibs_check_method=pass_all 6492 ;; 6493 6494sco3.2v5*) 6495 lt_cv_deplibs_check_method=pass_all 6496 ;; 6497 6498solaris*) 6499 lt_cv_deplibs_check_method=pass_all 6500 ;; 6501 6502sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 6503 case $host_vendor in 6504 motorola) 6505 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]' 6506 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6507 ;; 6508 ncr) 6509 lt_cv_deplibs_check_method=pass_all 6510 ;; 6511 sequent) 6512 lt_cv_file_magic_cmd='/bin/file' 6513 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6514 ;; 6515 sni) 6516 lt_cv_file_magic_cmd='/bin/file' 6517 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6518 lt_cv_file_magic_test_file=/lib/libc.so 6519 ;; 6520 siemens) 6521 lt_cv_deplibs_check_method=pass_all 6522 ;; 6523 esac 6524 ;; 6525 6526sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) 6527 lt_cv_deplibs_check_method=pass_all 6528 ;; 6529esac 6530 6531fi 6532echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 6533echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 6534file_magic_cmd=$lt_cv_file_magic_cmd 6535deplibs_check_method=$lt_cv_deplibs_check_method 6536test -z "$deplibs_check_method" && deplibs_check_method=unknown 6537 6538 6539 6540 6541# If no C compiler was specified, use CC. 6542LTCC=${LTCC-"$CC"} 6543 6544# Allow CC to be a program name with arguments. 6545compiler=$CC 6546 6547# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 6548if test "${enable_libtool_lock+set}" = set; then 6549 enableval="$enable_libtool_lock" 6550 6551fi; 6552test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6553 6554# Some flags need to be propagated to the compiler or linker for good 6555# libtool support. 6556case $host in 6557ia64-*-hpux*) 6558 # Find out which ABI we are using. 6559 echo 'int i;' > conftest.$ac_ext 6560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6561 (eval $ac_compile) 2>&5 6562 ac_status=$? 6563 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6564 (exit $ac_status); }; then 6565 case `/usr/bin/file conftest.$ac_objext` in 6566 *ELF-32*) 6567 HPUX_IA64_MODE="32" 6568 ;; 6569 *ELF-64*) 6570 HPUX_IA64_MODE="64" 6571 ;; 6572 esac 6573 fi 6574 rm -rf conftest* 6575 ;; 6576*-*-irix6*) 6577 # Find out which ABI we are using. 6578 echo '#line 6578 "configure"' > conftest.$ac_ext 6579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6580 (eval $ac_compile) 2>&5 6581 ac_status=$? 6582 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6583 (exit $ac_status); }; then 6584 if test "$lt_cv_prog_gnu_ld" = yes; then 6585 case `/usr/bin/file conftest.$ac_objext` in 6586 *32-bit*) 6587 LD="${LD-ld} -melf32bsmip" 6588 ;; 6589 *N32*) 6590 LD="${LD-ld} -melf32bmipn32" 6591 ;; 6592 *64-bit*) 6593 LD="${LD-ld} -melf64bmip" 6594 ;; 6595 esac 6596 else 6597 case `/usr/bin/file conftest.$ac_objext` in 6598 *32-bit*) 6599 LD="${LD-ld} -32" 6600 ;; 6601 *N32*) 6602 LD="${LD-ld} -n32" 6603 ;; 6604 *64-bit*) 6605 LD="${LD-ld} -64" 6606 ;; 6607 esac 6608 fi 6609 fi 6610 rm -rf conftest* 6611 ;; 6612 6613x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 6614 # Find out which ABI we are using. 6615 echo 'int i;' > conftest.$ac_ext 6616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6617 (eval $ac_compile) 2>&5 6618 ac_status=$? 6619 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6620 (exit $ac_status); }; then 6621 case "`/usr/bin/file conftest.o`" in 6622 *32-bit*) 6623 case $host in 6624 x86_64-*linux*) 6625 LD="${LD-ld} -m elf_i386" 6626 ;; 6627 ppc64-*linux*|powerpc64-*linux*) 6628 LD="${LD-ld} -m elf32ppclinux" 6629 ;; 6630 s390x-*linux*) 6631 LD="${LD-ld} -m elf_s390" 6632 ;; 6633 sparc64-*linux*) 6634 LD="${LD-ld} -m elf32_sparc" 6635 ;; 6636 esac 6637 ;; 6638 *64-bit*) 6639 case $host in 6640 x86_64-*linux*) 6641 LD="${LD-ld} -m elf_x86_64" 6642 ;; 6643 ppc*-*linux*|powerpc*-*linux*) 6644 LD="${LD-ld} -m elf64ppc" 6645 ;; 6646 s390*-*linux*) 6647 LD="${LD-ld} -m elf64_s390" 6648 ;; 6649 sparc*-*linux*) 6650 LD="${LD-ld} -m elf64_sparc" 6651 ;; 6652 esac 6653 ;; 6654 esac 6655 fi 6656 rm -rf conftest* 6657 ;; 6658 6659*-*-sco3.2v5*) 6660 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6661 SAVE_CFLAGS="$CFLAGS" 6662 CFLAGS="$CFLAGS -belf" 6663 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 6664echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 6665if test "${lt_cv_cc_needs_belf+set}" = set; then 6666 echo $ECHO_N "(cached) $ECHO_C" >&6 6667else 6668 ac_ext=c 6669ac_cpp='$CPP $CPPFLAGS' 6670ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6671ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6672ac_compiler_gnu=$ac_cv_c_compiler_gnu 6673 6674 cat >conftest.$ac_ext <<_ACEOF 6675/* confdefs.h. */ 6676_ACEOF 6677cat confdefs.h >>conftest.$ac_ext 6678cat >>conftest.$ac_ext <<_ACEOF 6679/* end confdefs.h. */ 6680 6681#ifdef F77_DUMMY_MAIN 6682 6683# ifdef __cplusplus 6684 extern "C" 6685# endif 6686 int F77_DUMMY_MAIN() { return 1; } 6687 6688#endif 6689int 6690main () 6691{ 6692 6693 ; 6694 return 0; 6695} 6696_ACEOF 6697rm -f conftest.$ac_objext conftest$ac_exeext 6698if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6699 (eval $ac_link) 2>conftest.er1 6700 ac_status=$? 6701 grep -v '^ *+' conftest.er1 >conftest.err 6702 rm -f conftest.er1 6703 cat conftest.err >&5 6704 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6705 (exit $ac_status); } && 6706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6708 (eval $ac_try) 2>&5 6709 ac_status=$? 6710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6711 (exit $ac_status); }; } && 6712 { ac_try='test -s conftest$ac_exeext' 6713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6714 (eval $ac_try) 2>&5 6715 ac_status=$? 6716 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6717 (exit $ac_status); }; }; then 6718 lt_cv_cc_needs_belf=yes 6719else 6720 echo "$as_me: failed program was:" >&5 6721sed 's/^/| /' conftest.$ac_ext >&5 6722 6723lt_cv_cc_needs_belf=no 6724fi 6725rm -f conftest.err conftest.$ac_objext \ 6726 conftest$ac_exeext conftest.$ac_ext 6727 ac_ext=c 6728ac_cpp='$CPP $CPPFLAGS' 6729ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6730ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6731ac_compiler_gnu=$ac_cv_c_compiler_gnu 6732 6733fi 6734echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 6735echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 6736 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6737 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6738 CFLAGS="$SAVE_CFLAGS" 6739 fi 6740 ;; 6741 6742esac 6743 6744need_locks="$enable_libtool_lock" 6745 6746 6747 6748for ac_header in dlfcn.h 6749do 6750as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6751if eval "test \"\${$as_ac_Header+set}\" = set"; then 6752 echo "$as_me:$LINENO: checking for $ac_header" >&5 6753echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6754if eval "test \"\${$as_ac_Header+set}\" = set"; then 6755 echo $ECHO_N "(cached) $ECHO_C" >&6 6756fi 6757echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6758echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6759else 6760 # Is the header compilable? 6761echo "$as_me:$LINENO: checking $ac_header usability" >&5 6762echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 6763cat >conftest.$ac_ext <<_ACEOF 6764/* confdefs.h. */ 6765_ACEOF 6766cat confdefs.h >>conftest.$ac_ext 6767cat >>conftest.$ac_ext <<_ACEOF 6768/* end confdefs.h. */ 6769$ac_includes_default 6770#include <$ac_header> 6771_ACEOF 6772rm -f conftest.$ac_objext 6773if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6774 (eval $ac_compile) 2>conftest.er1 6775 ac_status=$? 6776 grep -v '^ *+' conftest.er1 >conftest.err 6777 rm -f conftest.er1 6778 cat conftest.err >&5 6779 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6780 (exit $ac_status); } && 6781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6783 (eval $ac_try) 2>&5 6784 ac_status=$? 6785 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6786 (exit $ac_status); }; } && 6787 { ac_try='test -s conftest.$ac_objext' 6788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6789 (eval $ac_try) 2>&5 6790 ac_status=$? 6791 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6792 (exit $ac_status); }; }; then 6793 ac_header_compiler=yes 6794else 6795 echo "$as_me: failed program was:" >&5 6796sed 's/^/| /' conftest.$ac_ext >&5 6797 6798ac_header_compiler=no 6799fi 6800rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6801echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6802echo "${ECHO_T}$ac_header_compiler" >&6 6803 6804# Is the header present? 6805echo "$as_me:$LINENO: checking $ac_header presence" >&5 6806echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 6807cat >conftest.$ac_ext <<_ACEOF 6808/* confdefs.h. */ 6809_ACEOF 6810cat confdefs.h >>conftest.$ac_ext 6811cat >>conftest.$ac_ext <<_ACEOF 6812/* end confdefs.h. */ 6813#include <$ac_header> 6814_ACEOF 6815if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6816 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6817 ac_status=$? 6818 grep -v '^ *+' conftest.er1 >conftest.err 6819 rm -f conftest.er1 6820 cat conftest.err >&5 6821 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6822 (exit $ac_status); } >/dev/null; then 6823 if test -s conftest.err; then 6824 ac_cpp_err=$ac_c_preproc_warn_flag 6825 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6826 else 6827 ac_cpp_err= 6828 fi 6829else 6830 ac_cpp_err=yes 6831fi 6832if test -z "$ac_cpp_err"; then 6833 ac_header_preproc=yes 6834else 6835 echo "$as_me: failed program was:" >&5 6836sed 's/^/| /' conftest.$ac_ext >&5 6837 6838 ac_header_preproc=no 6839fi 6840rm -f conftest.err conftest.$ac_ext 6841echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6842echo "${ECHO_T}$ac_header_preproc" >&6 6843 6844# So? What about this header? 6845case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6846 yes:no: ) 6847 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6848echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6849 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6850echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6851 ac_header_preproc=yes 6852 ;; 6853 no:yes:* ) 6854 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6855echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6856 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6857echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6858 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6859echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6860 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6861echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6862 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6863echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6864 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6865echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6866 ( 6867 cat <<\_ASBOX 6868## ----------------------------------- ## 6869## Report this to stevenj@alum.mit.edu ## 6870## ----------------------------------- ## 6871_ASBOX 6872 ) | 6873 sed "s/^/$as_me: WARNING: /" >&2 6874 ;; 6875esac 6876echo "$as_me:$LINENO: checking for $ac_header" >&5 6877echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6878if eval "test \"\${$as_ac_Header+set}\" = set"; then 6879 echo $ECHO_N "(cached) $ECHO_C" >&6 6880else 6881 eval "$as_ac_Header=\$ac_header_preproc" 6882fi 6883echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6884echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6885 6886fi 6887if test `eval echo '${'$as_ac_Header'}'` = yes; then 6888 cat >>confdefs.h <<_ACEOF 6889#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6890_ACEOF 6891 6892fi 6893 6894done 6895 6896ac_ext=cc 6897ac_cpp='$CXXCPP $CPPFLAGS' 6898ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6899ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6900ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6901echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 6902echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 6903if test -z "$CXXCPP"; then 6904 if test "${ac_cv_prog_CXXCPP+set}" = set; then 6905 echo $ECHO_N "(cached) $ECHO_C" >&6 6906else 6907 # Double quotes because CXXCPP needs to be expanded 6908 for CXXCPP in "$CXX -E" "/lib/cpp" 6909 do 6910 ac_preproc_ok=false 6911for ac_cxx_preproc_warn_flag in '' yes 6912do 6913 # Use a header file that comes with gcc, so configuring glibc 6914 # with a fresh cross-compiler works. 6915 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6916 # <limits.h> exists even on freestanding compilers. 6917 # On the NeXT, cc -E runs the code through the compiler's parser, 6918 # not just through cpp. "Syntax error" is here to catch this case. 6919 cat >conftest.$ac_ext <<_ACEOF 6920/* confdefs.h. */ 6921_ACEOF 6922cat confdefs.h >>conftest.$ac_ext 6923cat >>conftest.$ac_ext <<_ACEOF 6924/* end confdefs.h. */ 6925#ifdef __STDC__ 6926# include <limits.h> 6927#else 6928# include <assert.h> 6929#endif 6930 Syntax error 6931_ACEOF 6932if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6933 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6934 ac_status=$? 6935 grep -v '^ *+' conftest.er1 >conftest.err 6936 rm -f conftest.er1 6937 cat conftest.err >&5 6938 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6939 (exit $ac_status); } >/dev/null; then 6940 if test -s conftest.err; then 6941 ac_cpp_err=$ac_cxx_preproc_warn_flag 6942 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 6943 else 6944 ac_cpp_err= 6945 fi 6946else 6947 ac_cpp_err=yes 6948fi 6949if test -z "$ac_cpp_err"; then 6950 : 6951else 6952 echo "$as_me: failed program was:" >&5 6953sed 's/^/| /' conftest.$ac_ext >&5 6954 6955 # Broken: fails on valid input. 6956continue 6957fi 6958rm -f conftest.err conftest.$ac_ext 6959 6960 # OK, works on sane cases. Now check whether non-existent headers 6961 # can be detected and how. 6962 cat >conftest.$ac_ext <<_ACEOF 6963/* confdefs.h. */ 6964_ACEOF 6965cat confdefs.h >>conftest.$ac_ext 6966cat >>conftest.$ac_ext <<_ACEOF 6967/* end confdefs.h. */ 6968#include <ac_nonexistent.h> 6969_ACEOF 6970if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6971 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6972 ac_status=$? 6973 grep -v '^ *+' conftest.er1 >conftest.err 6974 rm -f conftest.er1 6975 cat conftest.err >&5 6976 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6977 (exit $ac_status); } >/dev/null; then 6978 if test -s conftest.err; then 6979 ac_cpp_err=$ac_cxx_preproc_warn_flag 6980 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 6981 else 6982 ac_cpp_err= 6983 fi 6984else 6985 ac_cpp_err=yes 6986fi 6987if test -z "$ac_cpp_err"; then 6988 # Broken: success on invalid input. 6989continue 6990else 6991 echo "$as_me: failed program was:" >&5 6992sed 's/^/| /' conftest.$ac_ext >&5 6993 6994 # Passes both tests. 6995ac_preproc_ok=: 6996break 6997fi 6998rm -f conftest.err conftest.$ac_ext 6999 7000done 7001# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7002rm -f conftest.err conftest.$ac_ext 7003if $ac_preproc_ok; then 7004 break 7005fi 7006 7007 done 7008 ac_cv_prog_CXXCPP=$CXXCPP 7009 7010fi 7011 CXXCPP=$ac_cv_prog_CXXCPP 7012else 7013 ac_cv_prog_CXXCPP=$CXXCPP 7014fi 7015echo "$as_me:$LINENO: result: $CXXCPP" >&5 7016echo "${ECHO_T}$CXXCPP" >&6 7017ac_preproc_ok=false 7018for ac_cxx_preproc_warn_flag in '' yes 7019do 7020 # Use a header file that comes with gcc, so configuring glibc 7021 # with a fresh cross-compiler works. 7022 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7023 # <limits.h> exists even on freestanding compilers. 7024 # On the NeXT, cc -E runs the code through the compiler's parser, 7025 # not just through cpp. "Syntax error" is here to catch this case. 7026 cat >conftest.$ac_ext <<_ACEOF 7027/* confdefs.h. */ 7028_ACEOF 7029cat confdefs.h >>conftest.$ac_ext 7030cat >>conftest.$ac_ext <<_ACEOF 7031/* end confdefs.h. */ 7032#ifdef __STDC__ 7033# include <limits.h> 7034#else 7035# include <assert.h> 7036#endif 7037 Syntax error 7038_ACEOF 7039if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 7040 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7041 ac_status=$? 7042 grep -v '^ *+' conftest.er1 >conftest.err 7043 rm -f conftest.er1 7044 cat conftest.err >&5 7045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7046 (exit $ac_status); } >/dev/null; then 7047 if test -s conftest.err; then 7048 ac_cpp_err=$ac_cxx_preproc_warn_flag 7049 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 7050 else 7051 ac_cpp_err= 7052 fi 7053else 7054 ac_cpp_err=yes 7055fi 7056if test -z "$ac_cpp_err"; then 7057 : 7058else 7059 echo "$as_me: failed program was:" >&5 7060sed 's/^/| /' conftest.$ac_ext >&5 7061 7062 # Broken: fails on valid input. 7063continue 7064fi 7065rm -f conftest.err conftest.$ac_ext 7066 7067 # OK, works on sane cases. Now check whether non-existent headers 7068 # can be detected and how. 7069 cat >conftest.$ac_ext <<_ACEOF 7070/* confdefs.h. */ 7071_ACEOF 7072cat confdefs.h >>conftest.$ac_ext 7073cat >>conftest.$ac_ext <<_ACEOF 7074/* end confdefs.h. */ 7075#include <ac_nonexistent.h> 7076_ACEOF 7077if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 7078 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7079 ac_status=$? 7080 grep -v '^ *+' conftest.er1 >conftest.err 7081 rm -f conftest.er1 7082 cat conftest.err >&5 7083 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7084 (exit $ac_status); } >/dev/null; then 7085 if test -s conftest.err; then 7086 ac_cpp_err=$ac_cxx_preproc_warn_flag 7087 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 7088 else 7089 ac_cpp_err= 7090 fi 7091else 7092 ac_cpp_err=yes 7093fi 7094if test -z "$ac_cpp_err"; then 7095 # Broken: success on invalid input. 7096continue 7097else 7098 echo "$as_me: failed program was:" >&5 7099sed 's/^/| /' conftest.$ac_ext >&5 7100 7101 # Passes both tests. 7102ac_preproc_ok=: 7103break 7104fi 7105rm -f conftest.err conftest.$ac_ext 7106 7107done 7108# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7109rm -f conftest.err conftest.$ac_ext 7110if $ac_preproc_ok; then 7111 : 7112else 7113 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 7114See \`config.log' for more details." >&5 7115echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 7116See \`config.log' for more details." >&2;} 7117 { (exit 1); exit 1; }; } 7118fi 7119 7120ac_ext=cc 7121ac_cpp='$CXXCPP $CPPFLAGS' 7122ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7123ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7124ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7125 7126 7127 7128# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 7129 7130# find the maximum length of command line arguments 7131echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 7132echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 7133if test "${lt_cv_sys_max_cmd_len+set}" = set; then 7134 echo $ECHO_N "(cached) $ECHO_C" >&6 7135else 7136 i=0 7137 teststring="ABCD" 7138 7139 case $build_os in 7140 msdosdjgpp*) 7141 # On DJGPP, this test can blow up pretty badly due to problems in libc 7142 # (any single argument exceeding 2000 bytes causes a buffer overrun 7143 # during glob expansion). Even if it were fixed, the result of this 7144 # check would be larger than it should be. 7145 lt_cv_sys_max_cmd_len=12288; # 12K is about right 7146 ;; 7147 7148 gnu*) 7149 # Under GNU Hurd, this test is not required because there is 7150 # no limit to the length of command line arguments. 7151 # Libtool will interpret -1 as no limit whatsoever 7152 lt_cv_sys_max_cmd_len=-1; 7153 ;; 7154 7155 cygwin* | mingw*) 7156 # On Win9x/ME, this test blows up -- it succeeds, but takes 7157 # about 5 minutes as the teststring grows exponentially. 7158 # Worse, since 9x/ME are not pre-emptively multitasking, 7159 # you end up with a "frozen" computer, even though with patience 7160 # the test eventually succeeds (with a max line length of 256k). 7161 # Instead, let's just punt: use the minimum linelength reported by 7162 # all of the supported platforms: 8192 (on NT/2K/XP). 7163 lt_cv_sys_max_cmd_len=8192; 7164 ;; 7165 7166 amigaos*) 7167 # On AmigaOS with pdksh, this test takes hours, literally. 7168 # So we just punt and use a minimum line length of 8192. 7169 lt_cv_sys_max_cmd_len=8192; 7170 ;; 7171 7172 *) 7173 # If test is not a shell built-in, we'll probably end up computing a 7174 # maximum length that is only half of the actual maximum length, but 7175 # we can't tell. 7176 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 7177 = "XX$teststring") >/dev/null 2>&1 && 7178 new_result=`expr "X$teststring" : ".*" 2>&1` && 7179 lt_cv_sys_max_cmd_len=$new_result && 7180 test $i != 17 # 1/2 MB should be enough 7181 do 7182 i=`expr $i + 1` 7183 teststring=$teststring$teststring 7184 done 7185 teststring= 7186 # Add a significant safety factor because C++ compilers can tack on massive 7187 # amounts of additional arguments before passing them to the linker. 7188 # It appears as though 1/2 is a usable value. 7189 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 7190 ;; 7191 esac 7192 7193fi 7194 7195if test -n $lt_cv_sys_max_cmd_len ; then 7196 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 7197echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 7198else 7199 echo "$as_me:$LINENO: result: none" >&5 7200echo "${ECHO_T}none" >&6 7201fi 7202 7203 7204 7205 7206# Check for command to grab the raw symbol name followed by C symbol from nm. 7207echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 7208echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 7209if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 7210 echo $ECHO_N "(cached) $ECHO_C" >&6 7211else 7212 7213# These are sane defaults that work on at least a few old systems. 7214# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7215 7216# Character class describing NM global symbol codes. 7217symcode='[BCDEGRST]' 7218 7219# Regexp to match symbols that can be accessed directly from C. 7220sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7221 7222# Transform the above into a raw symbol and a C symbol. 7223symxfrm='\1 \2\3 \3' 7224 7225# Transform an extracted symbol line into a proper C declaration 7226lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 7227 7228# Transform an extracted symbol line into symbol name and symbol address 7229lt_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'" 7230 7231# Define system-specific variables. 7232case $host_os in 7233aix*) 7234 symcode='[BCDT]' 7235 ;; 7236cygwin* | mingw* | pw32*) 7237 symcode='[ABCDGISTW]' 7238 ;; 7239hpux*) # Its linker distinguishes data from code symbols 7240 if test "$host_cpu" = ia64; then 7241 symcode='[ABCDEGRST]' 7242 fi 7243 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7244 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'" 7245 ;; 7246irix* | nonstopux*) 7247 symcode='[BCDEGRST]' 7248 ;; 7249osf*) 7250 symcode='[BCDEGQRST]' 7251 ;; 7252solaris* | sysv5*) 7253 symcode='[BDRT]' 7254 ;; 7255sysv4) 7256 symcode='[DFNSTU]' 7257 ;; 7258esac 7259 7260# Handle CRLF in mingw tool chain 7261opt_cr= 7262case $build_os in 7263mingw*) 7264 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7265 ;; 7266esac 7267 7268# If we're using GNU nm, then use its standard symbol codes. 7269case `$NM -V 2>&1` in 7270*GNU* | *'with BFD'*) 7271 symcode='[ABCDGIRSTW]' ;; 7272esac 7273 7274# Try without a prefix undercore, then with it. 7275for ac_symprfx in "" "_"; do 7276 7277 # Write the raw and C identifiers. 7278 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" 7279 7280 # Check to see that the pipe works correctly. 7281 pipe_works=no 7282 7283 rm -f conftest* 7284 cat > conftest.$ac_ext <<EOF 7285#ifdef __cplusplus 7286extern "C" { 7287#endif 7288char nm_test_var; 7289void nm_test_func(){} 7290#ifdef __cplusplus 7291} 7292#endif 7293int main(){nm_test_var='a';nm_test_func();return(0);} 7294EOF 7295 7296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7297 (eval $ac_compile) 2>&5 7298 ac_status=$? 7299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7300 (exit $ac_status); }; then 7301 # Now try to grab the symbols. 7302 nlist=conftest.nm 7303 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 7304 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 7305 ac_status=$? 7306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7307 (exit $ac_status); } && test -s "$nlist"; then 7308 # Try sorting and uniquifying the output. 7309 if sort "$nlist" | uniq > "$nlist"T; then 7310 mv -f "$nlist"T "$nlist" 7311 else 7312 rm -f "$nlist"T 7313 fi 7314 7315 # Make sure that we snagged all the symbols we need. 7316 if grep ' nm_test_var$' "$nlist" >/dev/null; then 7317 if grep ' nm_test_func$' "$nlist" >/dev/null; then 7318 cat <<EOF > conftest.$ac_ext 7319#ifdef __cplusplus 7320extern "C" { 7321#endif 7322 7323EOF 7324 # Now generate the symbol file. 7325 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 7326 7327 cat <<EOF >> conftest.$ac_ext 7328#if defined (__STDC__) && __STDC__ 7329# define lt_ptr_t void * 7330#else 7331# define lt_ptr_t char * 7332# define const 7333#endif 7334 7335/* The mapping between symbol names and symbols. */ 7336const struct { 7337 const char *name; 7338 lt_ptr_t address; 7339} 7340lt_preloaded_symbols[] = 7341{ 7342EOF 7343 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 7344 cat <<\EOF >> conftest.$ac_ext 7345 {0, (lt_ptr_t) 0} 7346}; 7347 7348#ifdef __cplusplus 7349} 7350#endif 7351EOF 7352 # Now try linking the two files. 7353 mv conftest.$ac_objext conftstm.$ac_objext 7354 lt_save_LIBS="$LIBS" 7355 lt_save_CFLAGS="$CFLAGS" 7356 LIBS="conftstm.$ac_objext" 7357 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7359 (eval $ac_link) 2>&5 7360 ac_status=$? 7361 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7362 (exit $ac_status); } && test -s conftest${ac_exeext}; then 7363 pipe_works=yes 7364 fi 7365 LIBS="$lt_save_LIBS" 7366 CFLAGS="$lt_save_CFLAGS" 7367 else 7368 echo "cannot find nm_test_func in $nlist" >&5 7369 fi 7370 else 7371 echo "cannot find nm_test_var in $nlist" >&5 7372 fi 7373 else 7374 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7375 fi 7376 else 7377 echo "$progname: failed program was:" >&5 7378 cat conftest.$ac_ext >&5 7379 fi 7380 rm -f conftest* conftst* 7381 7382 # Do not use the global_symbol_pipe unless it works. 7383 if test "$pipe_works" = yes; then 7384 break 7385 else 7386 lt_cv_sys_global_symbol_pipe= 7387 fi 7388done 7389 7390fi 7391 7392if test -z "$lt_cv_sys_global_symbol_pipe"; then 7393 lt_cv_sys_global_symbol_to_cdecl= 7394fi 7395if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7396 echo "$as_me:$LINENO: result: failed" >&5 7397echo "${ECHO_T}failed" >&6 7398else 7399 echo "$as_me:$LINENO: result: ok" >&5 7400echo "${ECHO_T}ok" >&6 7401fi 7402 7403echo "$as_me:$LINENO: checking for objdir" >&5 7404echo $ECHO_N "checking for objdir... $ECHO_C" >&6 7405if test "${lt_cv_objdir+set}" = set; then 7406 echo $ECHO_N "(cached) $ECHO_C" >&6 7407else 7408 rm -f .libs 2>/dev/null 7409mkdir .libs 2>/dev/null 7410if test -d .libs; then 7411 lt_cv_objdir=.libs 7412else 7413 # MS-DOS does not allow filenames that begin with a dot. 7414 lt_cv_objdir=_libs 7415fi 7416rmdir .libs 2>/dev/null 7417fi 7418echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 7419echo "${ECHO_T}$lt_cv_objdir" >&6 7420objdir=$lt_cv_objdir 7421 7422 7423 7424 7425 7426case $host_os in 7427aix3*) 7428 # AIX sometimes has problems with the GCC collect2 program. For some 7429 # reason, if we set the COLLECT_NAMES environment variable, the problems 7430 # vanish in a puff of smoke. 7431 if test "X${COLLECT_NAMES+set}" != Xset; then 7432 COLLECT_NAMES= 7433 export COLLECT_NAMES 7434 fi 7435 ;; 7436esac 7437 7438# Sed substitution that helps us do robust quoting. It backslashifies 7439# metacharacters that are still active within double-quoted strings. 7440Xsed='sed -e s/^X//' 7441sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 7442 7443# Same as above, but do not quote variable references. 7444double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 7445 7446# Sed substitution to delay expansion of an escaped shell variable in a 7447# double_quote_subst'ed string. 7448delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7449 7450# Sed substitution to avoid accidental globbing in evaled expressions 7451no_glob_subst='s/\*/\\\*/g' 7452 7453# Constants: 7454rm="rm -f" 7455 7456# Global variables: 7457default_ofile=libtool 7458can_build_shared=yes 7459 7460# All known linkers require a `.a' archive for static linking (except M$VC, 7461# which needs '.lib'). 7462libext=a 7463ltmain="$ac_aux_dir/ltmain.sh" 7464ofile="$default_ofile" 7465with_gnu_ld="$lt_cv_prog_gnu_ld" 7466 7467if test -n "$ac_tool_prefix"; then 7468 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 7469set dummy ${ac_tool_prefix}ar; ac_word=$2 7470echo "$as_me:$LINENO: checking for $ac_word" >&5 7471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7472if test "${ac_cv_prog_AR+set}" = set; then 7473 echo $ECHO_N "(cached) $ECHO_C" >&6 7474else 7475 if test -n "$AR"; then 7476 ac_cv_prog_AR="$AR" # Let the user override the test. 7477else 7478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7479for as_dir in $PATH 7480do 7481 IFS=$as_save_IFS 7482 test -z "$as_dir" && as_dir=. 7483 for ac_exec_ext in '' $ac_executable_extensions; do 7484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7485 ac_cv_prog_AR="${ac_tool_prefix}ar" 7486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7487 break 2 7488 fi 7489done 7490done 7491 7492fi 7493fi 7494AR=$ac_cv_prog_AR 7495if test -n "$AR"; then 7496 echo "$as_me:$LINENO: result: $AR" >&5 7497echo "${ECHO_T}$AR" >&6 7498else 7499 echo "$as_me:$LINENO: result: no" >&5 7500echo "${ECHO_T}no" >&6 7501fi 7502 7503fi 7504if test -z "$ac_cv_prog_AR"; then 7505 ac_ct_AR=$AR 7506 # Extract the first word of "ar", so it can be a program name with args. 7507set dummy ar; ac_word=$2 7508echo "$as_me:$LINENO: checking for $ac_word" >&5 7509echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7510if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 7511 echo $ECHO_N "(cached) $ECHO_C" >&6 7512else 7513 if test -n "$ac_ct_AR"; then 7514 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7515else 7516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7517for as_dir in $PATH 7518do 7519 IFS=$as_save_IFS 7520 test -z "$as_dir" && as_dir=. 7521 for ac_exec_ext in '' $ac_executable_extensions; do 7522 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7523 ac_cv_prog_ac_ct_AR="ar" 7524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7525 break 2 7526 fi 7527done 7528done 7529 7530 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" 7531fi 7532fi 7533ac_ct_AR=$ac_cv_prog_ac_ct_AR 7534if test -n "$ac_ct_AR"; then 7535 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 7536echo "${ECHO_T}$ac_ct_AR" >&6 7537else 7538 echo "$as_me:$LINENO: result: no" >&5 7539echo "${ECHO_T}no" >&6 7540fi 7541 7542 AR=$ac_ct_AR 7543else 7544 AR="$ac_cv_prog_AR" 7545fi 7546 7547if test -n "$ac_tool_prefix"; then 7548 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7549set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7550echo "$as_me:$LINENO: checking for $ac_word" >&5 7551echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7552if test "${ac_cv_prog_RANLIB+set}" = set; then 7553 echo $ECHO_N "(cached) $ECHO_C" >&6 7554else 7555 if test -n "$RANLIB"; then 7556 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7557else 7558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7559for as_dir in $PATH 7560do 7561 IFS=$as_save_IFS 7562 test -z "$as_dir" && as_dir=. 7563 for ac_exec_ext in '' $ac_executable_extensions; do 7564 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7565 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7567 break 2 7568 fi 7569done 7570done 7571 7572fi 7573fi 7574RANLIB=$ac_cv_prog_RANLIB 7575if test -n "$RANLIB"; then 7576 echo "$as_me:$LINENO: result: $RANLIB" >&5 7577echo "${ECHO_T}$RANLIB" >&6 7578else 7579 echo "$as_me:$LINENO: result: no" >&5 7580echo "${ECHO_T}no" >&6 7581fi 7582 7583fi 7584if test -z "$ac_cv_prog_RANLIB"; then 7585 ac_ct_RANLIB=$RANLIB 7586 # Extract the first word of "ranlib", so it can be a program name with args. 7587set dummy ranlib; ac_word=$2 7588echo "$as_me:$LINENO: checking for $ac_word" >&5 7589echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7590if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 7591 echo $ECHO_N "(cached) $ECHO_C" >&6 7592else 7593 if test -n "$ac_ct_RANLIB"; then 7594 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7595else 7596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7597for as_dir in $PATH 7598do 7599 IFS=$as_save_IFS 7600 test -z "$as_dir" && as_dir=. 7601 for ac_exec_ext in '' $ac_executable_extensions; do 7602 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7603 ac_cv_prog_ac_ct_RANLIB="ranlib" 7604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7605 break 2 7606 fi 7607done 7608done 7609 7610 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 7611fi 7612fi 7613ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7614if test -n "$ac_ct_RANLIB"; then 7615 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 7616echo "${ECHO_T}$ac_ct_RANLIB" >&6 7617else 7618 echo "$as_me:$LINENO: result: no" >&5 7619echo "${ECHO_T}no" >&6 7620fi 7621 7622 RANLIB=$ac_ct_RANLIB 7623else 7624 RANLIB="$ac_cv_prog_RANLIB" 7625fi 7626 7627if test -n "$ac_tool_prefix"; then 7628 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7629set dummy ${ac_tool_prefix}strip; ac_word=$2 7630echo "$as_me:$LINENO: checking for $ac_word" >&5 7631echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7632if test "${ac_cv_prog_STRIP+set}" = set; then 7633 echo $ECHO_N "(cached) $ECHO_C" >&6 7634else 7635 if test -n "$STRIP"; then 7636 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7637else 7638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7639for as_dir in $PATH 7640do 7641 IFS=$as_save_IFS 7642 test -z "$as_dir" && as_dir=. 7643 for ac_exec_ext in '' $ac_executable_extensions; do 7644 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7645 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7647 break 2 7648 fi 7649done 7650done 7651 7652fi 7653fi 7654STRIP=$ac_cv_prog_STRIP 7655if test -n "$STRIP"; then 7656 echo "$as_me:$LINENO: result: $STRIP" >&5 7657echo "${ECHO_T}$STRIP" >&6 7658else 7659 echo "$as_me:$LINENO: result: no" >&5 7660echo "${ECHO_T}no" >&6 7661fi 7662 7663fi 7664if test -z "$ac_cv_prog_STRIP"; then 7665 ac_ct_STRIP=$STRIP 7666 # Extract the first word of "strip", so it can be a program name with args. 7667set dummy strip; ac_word=$2 7668echo "$as_me:$LINENO: checking for $ac_word" >&5 7669echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7670if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 7671 echo $ECHO_N "(cached) $ECHO_C" >&6 7672else 7673 if test -n "$ac_ct_STRIP"; then 7674 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7675else 7676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7677for as_dir in $PATH 7678do 7679 IFS=$as_save_IFS 7680 test -z "$as_dir" && as_dir=. 7681 for ac_exec_ext in '' $ac_executable_extensions; do 7682 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7683 ac_cv_prog_ac_ct_STRIP="strip" 7684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7685 break 2 7686 fi 7687done 7688done 7689 7690 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 7691fi 7692fi 7693ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7694if test -n "$ac_ct_STRIP"; then 7695 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 7696echo "${ECHO_T}$ac_ct_STRIP" >&6 7697else 7698 echo "$as_me:$LINENO: result: no" >&5 7699echo "${ECHO_T}no" >&6 7700fi 7701 7702 STRIP=$ac_ct_STRIP 7703else 7704 STRIP="$ac_cv_prog_STRIP" 7705fi 7706 7707 7708old_CC="$CC" 7709old_CFLAGS="$CFLAGS" 7710 7711# Set sane defaults for various variables 7712test -z "$AR" && AR=ar 7713test -z "$AR_FLAGS" && AR_FLAGS=cru 7714test -z "$AS" && AS=as 7715test -z "$CC" && CC=cc 7716test -z "$LTCC" && LTCC=$CC 7717test -z "$DLLTOOL" && DLLTOOL=dlltool 7718test -z "$LD" && LD=ld 7719test -z "$LN_S" && LN_S="ln -s" 7720test -z "$MAGIC_CMD" && MAGIC_CMD=file 7721test -z "$NM" && NM=nm 7722test -z "$SED" && SED=sed 7723test -z "$OBJDUMP" && OBJDUMP=objdump 7724test -z "$RANLIB" && RANLIB=: 7725test -z "$STRIP" && STRIP=: 7726test -z "$ac_objext" && ac_objext=o 7727 7728# Determine commands to create old-style static archives. 7729old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 7730old_postinstall_cmds='chmod 644 $oldlib' 7731old_postuninstall_cmds= 7732 7733if test -n "$RANLIB"; then 7734 case $host_os in 7735 openbsd*) 7736 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" 7737 ;; 7738 *) 7739 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" 7740 ;; 7741 esac 7742 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 7743fi 7744 7745# Only perform the check for file, if the check method requires it 7746case $deplibs_check_method in 7747file_magic*) 7748 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7749 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 7750echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 7751if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7752 echo $ECHO_N "(cached) $ECHO_C" >&6 7753else 7754 case $MAGIC_CMD in 7755[\\/*] | ?:[\\/]*) 7756 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7757 ;; 7758*) 7759 lt_save_MAGIC_CMD="$MAGIC_CMD" 7760 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7761 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7762 for ac_dir in $ac_dummy; do 7763 IFS="$lt_save_ifs" 7764 test -z "$ac_dir" && ac_dir=. 7765 if test -f $ac_dir/${ac_tool_prefix}file; then 7766 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7767 if test -n "$file_magic_test_file"; then 7768 case $deplibs_check_method in 7769 "file_magic "*) 7770 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 7771 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7772 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7773 $EGREP "$file_magic_regex" > /dev/null; then 7774 : 7775 else 7776 cat <<EOF 1>&2 7777 7778*** Warning: the command libtool uses to detect shared libraries, 7779*** $file_magic_cmd, produces output that libtool cannot recognize. 7780*** The result is that libtool may fail to recognize shared libraries 7781*** as such. This will affect the creation of libtool libraries that 7782*** depend on shared libraries, but programs linked with such libtool 7783*** libraries will work regardless of this problem. Nevertheless, you 7784*** may want to report the problem to your system manager and/or to 7785*** bug-libtool@gnu.org 7786 7787EOF 7788 fi ;; 7789 esac 7790 fi 7791 break 7792 fi 7793 done 7794 IFS="$lt_save_ifs" 7795 MAGIC_CMD="$lt_save_MAGIC_CMD" 7796 ;; 7797esac 7798fi 7799 7800MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7801if test -n "$MAGIC_CMD"; then 7802 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7803echo "${ECHO_T}$MAGIC_CMD" >&6 7804else 7805 echo "$as_me:$LINENO: result: no" >&5 7806echo "${ECHO_T}no" >&6 7807fi 7808 7809if test -z "$lt_cv_path_MAGIC_CMD"; then 7810 if test -n "$ac_tool_prefix"; then 7811 echo "$as_me:$LINENO: checking for file" >&5 7812echo $ECHO_N "checking for file... $ECHO_C" >&6 7813if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7814 echo $ECHO_N "(cached) $ECHO_C" >&6 7815else 7816 case $MAGIC_CMD in 7817[\\/*] | ?:[\\/]*) 7818 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7819 ;; 7820*) 7821 lt_save_MAGIC_CMD="$MAGIC_CMD" 7822 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7823 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7824 for ac_dir in $ac_dummy; do 7825 IFS="$lt_save_ifs" 7826 test -z "$ac_dir" && ac_dir=. 7827 if test -f $ac_dir/file; then 7828 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7829 if test -n "$file_magic_test_file"; then 7830 case $deplibs_check_method in 7831 "file_magic "*) 7832 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 7833 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7834 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7835 $EGREP "$file_magic_regex" > /dev/null; then 7836 : 7837 else 7838 cat <<EOF 1>&2 7839 7840*** Warning: the command libtool uses to detect shared libraries, 7841*** $file_magic_cmd, produces output that libtool cannot recognize. 7842*** The result is that libtool may fail to recognize shared libraries 7843*** as such. This will affect the creation of libtool libraries that 7844*** depend on shared libraries, but programs linked with such libtool 7845*** libraries will work regardless of this problem. Nevertheless, you 7846*** may want to report the problem to your system manager and/or to 7847*** bug-libtool@gnu.org 7848 7849EOF 7850 fi ;; 7851 esac 7852 fi 7853 break 7854 fi 7855 done 7856 IFS="$lt_save_ifs" 7857 MAGIC_CMD="$lt_save_MAGIC_CMD" 7858 ;; 7859esac 7860fi 7861 7862MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7863if test -n "$MAGIC_CMD"; then 7864 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7865echo "${ECHO_T}$MAGIC_CMD" >&6 7866else 7867 echo "$as_me:$LINENO: result: no" >&5 7868echo "${ECHO_T}no" >&6 7869fi 7870 7871 else 7872 MAGIC_CMD=: 7873 fi 7874fi 7875 7876 fi 7877 ;; 7878esac 7879 7880enable_dlopen=no 7881enable_win32_dll=no 7882 7883# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 7884if test "${enable_libtool_lock+set}" = set; then 7885 enableval="$enable_libtool_lock" 7886 7887fi; 7888test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7889 7890 7891# Check whether --with-pic or --without-pic was given. 7892if test "${with_pic+set}" = set; then 7893 withval="$with_pic" 7894 pic_mode="$withval" 7895else 7896 pic_mode=default 7897fi; 7898test -z "$pic_mode" && pic_mode=default 7899 7900# Use C for the default configuration in the libtool script 7901tagname= 7902lt_save_CC="$CC" 7903ac_ext=c 7904ac_cpp='$CPP $CPPFLAGS' 7905ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7906ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7907ac_compiler_gnu=$ac_cv_c_compiler_gnu 7908 7909 7910# Source file extension for C test sources. 7911ac_ext=c 7912 7913# Object file extension for compiled C test sources. 7914objext=o 7915objext=$objext 7916 7917# Code to be used in simple compile tests 7918lt_simple_compile_test_code="int some_variable = 0;\n" 7919 7920# Code to be used in simple link tests 7921lt_simple_link_test_code='int main(){return(0);}\n' 7922 7923 7924# If no C compiler was specified, use CC. 7925LTCC=${LTCC-"$CC"} 7926 7927# Allow CC to be a program name with arguments. 7928compiler=$CC 7929 7930 7931# 7932# Check for any special shared library compilation flags. 7933# 7934lt_prog_cc_shlib= 7935if test "$GCC" = no; then 7936 case $host_os in 7937 sco3.2v5*) 7938 lt_prog_cc_shlib='-belf' 7939 ;; 7940 esac 7941fi 7942if test -n "$lt_prog_cc_shlib"; then 7943 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 7944echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} 7945 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : 7946 else 7947 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 7948echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} 7949 lt_cv_prog_cc_can_build_shared=no 7950 fi 7951fi 7952 7953 7954# 7955# Check to make sure the static flag actually works. 7956# 7957echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 7958echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 7959if test "${lt_prog_compiler_static_works+set}" = set; then 7960 echo $ECHO_N "(cached) $ECHO_C" >&6 7961else 7962 lt_prog_compiler_static_works=no 7963 save_LDFLAGS="$LDFLAGS" 7964 LDFLAGS="$LDFLAGS $lt_prog_compiler_static" 7965 printf "$lt_simple_link_test_code" > conftest.$ac_ext 7966 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7967 # The compiler can only warn and ignore the option if not recognized 7968 # So say no if there are warnings 7969 if test -s conftest.err; then 7970 # Append any errors to the config.log. 7971 cat conftest.err 1>&5 7972 else 7973 lt_prog_compiler_static_works=yes 7974 fi 7975 fi 7976 $rm conftest* 7977 LDFLAGS="$save_LDFLAGS" 7978 7979fi 7980echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 7981echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 7982 7983if test x"$lt_prog_compiler_static_works" = xyes; then 7984 : 7985else 7986 lt_prog_compiler_static= 7987fi 7988 7989 7990 7991 7992lt_prog_compiler_no_builtin_flag= 7993 7994if test "$GCC" = yes; then 7995 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7996 7997 7998echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7999echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 8000if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 8001 echo $ECHO_N "(cached) $ECHO_C" >&6 8002else 8003 lt_cv_prog_compiler_rtti_exceptions=no 8004 ac_outfile=conftest.$ac_objext 8005 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8006 lt_compiler_flag="-fno-rtti -fno-exceptions" 8007 # Insert the option either (1) after the last *FLAGS variable, or 8008 # (2) before a word containing "conftest.", or (3) at the end. 8009 # Note that $ac_compile itself does not contain backslashes and begins 8010 # with a dollar sign (not a hyphen), so the echo should work correctly. 8011 # The option is referenced via a variable to avoid confusing sed. 8012 lt_compile=`echo "$ac_compile" | $SED \ 8013 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 8014 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8015 -e 's:$: $lt_compiler_flag:'` 8016 (eval echo "\"\$as_me:8016: $lt_compile\"" >&5) 8017 (eval "$lt_compile" 2>conftest.err) 8018 ac_status=$? 8019 cat conftest.err >&5 8020 echo "$as_me:8020: \$? = $ac_status" >&5 8021 if (exit $ac_status) && test -s "$ac_outfile"; then 8022 # The compiler can only warn and ignore the option if not recognized 8023 # So say no if there are warnings 8024 if test ! -s conftest.err; then 8025 lt_cv_prog_compiler_rtti_exceptions=yes 8026 fi 8027 fi 8028 $rm conftest* 8029 8030fi 8031echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8032echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 8033 8034if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8035 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8036else 8037 : 8038fi 8039 8040fi 8041 8042lt_prog_compiler_wl= 8043lt_prog_compiler_pic= 8044lt_prog_compiler_static= 8045 8046echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 8047echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 8048 8049 if test "$GCC" = yes; then 8050 lt_prog_compiler_wl='-Wl,' 8051 lt_prog_compiler_static='-static' 8052 8053 case $host_os in 8054 aix*) 8055 # All AIX code is PIC. 8056 if test "$host_cpu" = ia64; then 8057 # AIX 5 now supports IA64 processor 8058 lt_prog_compiler_static='-Bstatic' 8059 fi 8060 ;; 8061 8062 amigaos*) 8063 # FIXME: we need at least 68020 code to build shared libraries, but 8064 # adding the `-m68020' flag to GCC prevents building anything better, 8065 # like `-m68040'. 8066 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8067 ;; 8068 8069 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8070 # PIC is the default for these OSes. 8071 ;; 8072 8073 mingw* | pw32* | os2*) 8074 # This hack is so that the source file can tell whether it is being 8075 # built for inclusion in a dll (and should export symbols for example). 8076 lt_prog_compiler_pic='-DDLL_EXPORT' 8077 ;; 8078 8079 darwin* | rhapsody*) 8080 # PIC is the default on this platform 8081 # Common symbols not allowed in MH_DYLIB files 8082 lt_prog_compiler_pic='-fno-common' 8083 ;; 8084 8085 msdosdjgpp*) 8086 # Just because we use GCC doesn't mean we suddenly get shared libraries 8087 # on systems that don't support them. 8088 lt_prog_compiler_can_build_shared=no 8089 enable_shared=no 8090 ;; 8091 8092 sysv4*MP*) 8093 if test -d /usr/nec; then 8094 lt_prog_compiler_pic=-Kconform_pic 8095 fi 8096 ;; 8097 8098 hpux*) 8099 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8100 # not for PA HP-UX. 8101 case "$host_cpu" in 8102 hppa*64*|ia64*) 8103 # +Z the default 8104 ;; 8105 *) 8106 lt_prog_compiler_pic='-fPIC' 8107 ;; 8108 esac 8109 ;; 8110 8111 *) 8112 lt_prog_compiler_pic='-fPIC' 8113 ;; 8114 esac 8115 else 8116 # PORTME Check for flag to pass linker flags through the system compiler. 8117 case $host_os in 8118 aix*) 8119 lt_prog_compiler_wl='-Wl,' 8120 if test "$host_cpu" = ia64; then 8121 # AIX 5 now supports IA64 processor 8122 lt_prog_compiler_static='-Bstatic' 8123 else 8124 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8125 fi 8126 ;; 8127 8128 mingw* | pw32* | os2*) 8129 # This hack is so that the source file can tell whether it is being 8130 # built for inclusion in a dll (and should export symbols for example). 8131 lt_prog_compiler_pic='-DDLL_EXPORT' 8132 ;; 8133 8134 hpux9* | hpux10* | hpux11*) 8135 lt_prog_compiler_wl='-Wl,' 8136 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8137 # not for PA HP-UX. 8138 case "$host_cpu" in 8139 hppa*64*|ia64*) 8140 # +Z the default 8141 ;; 8142 *) 8143 lt_prog_compiler_pic='+Z' 8144 ;; 8145 esac 8146 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8147 lt_prog_compiler_static='${wl}-a ${wl}archive' 8148 ;; 8149 8150 irix5* | irix6* | nonstopux*) 8151 lt_prog_compiler_wl='-Wl,' 8152 # PIC (with -KPIC) is the default. 8153 lt_prog_compiler_static='-non_shared' 8154 ;; 8155 8156 newsos6) 8157 lt_prog_compiler_pic='-KPIC' 8158 lt_prog_compiler_static='-Bstatic' 8159 ;; 8160 8161 linux*) 8162 case $CC in 8163 icc* | ecc*) 8164 lt_prog_compiler_wl='-Wl,' 8165 lt_prog_compiler_pic='-KPIC' 8166 lt_prog_compiler_static='-static' 8167 ;; 8168 ccc*) 8169 lt_prog_compiler_wl='-Wl,' 8170 # All Alpha code is PIC. 8171 lt_prog_compiler_static='-non_shared' 8172 ;; 8173 esac 8174 ;; 8175 8176 osf3* | osf4* | osf5*) 8177 lt_prog_compiler_wl='-Wl,' 8178 # All OSF/1 code is PIC. 8179 lt_prog_compiler_static='-non_shared' 8180 ;; 8181 8182 sco3.2v5*) 8183 lt_prog_compiler_pic='-Kpic' 8184 lt_prog_compiler_static='-dn' 8185 ;; 8186 8187 solaris*) 8188 lt_prog_compiler_wl='-Wl,' 8189 lt_prog_compiler_pic='-KPIC' 8190 lt_prog_compiler_static='-Bstatic' 8191 ;; 8192 8193 sunos4*) 8194 lt_prog_compiler_wl='-Qoption ld ' 8195 lt_prog_compiler_pic='-PIC' 8196 lt_prog_compiler_static='-Bstatic' 8197 ;; 8198 8199 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 8200 lt_prog_compiler_wl='-Wl,' 8201 lt_prog_compiler_pic='-KPIC' 8202 lt_prog_compiler_static='-Bstatic' 8203 ;; 8204 8205 sysv4*MP*) 8206 if test -d /usr/nec ;then 8207 lt_prog_compiler_pic='-Kconform_pic' 8208 lt_prog_compiler_static='-Bstatic' 8209 fi 8210 ;; 8211 8212 uts4*) 8213 lt_prog_compiler_pic='-pic' 8214 lt_prog_compiler_static='-Bstatic' 8215 ;; 8216 8217 *) 8218 lt_prog_compiler_can_build_shared=no 8219 ;; 8220 esac 8221 fi 8222 8223echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 8224echo "${ECHO_T}$lt_prog_compiler_pic" >&6 8225 8226# 8227# Check to make sure the PIC flag actually works. 8228# 8229if test -n "$lt_prog_compiler_pic"; then 8230 8231echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8232echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 8233if test "${lt_prog_compiler_pic_works+set}" = set; then 8234 echo $ECHO_N "(cached) $ECHO_C" >&6 8235else 8236 lt_prog_compiler_pic_works=no 8237 ac_outfile=conftest.$ac_objext 8238 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8239 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8240 # Insert the option either (1) after the last *FLAGS variable, or 8241 # (2) before a word containing "conftest.", or (3) at the end. 8242 # Note that $ac_compile itself does not contain backslashes and begins 8243 # with a dollar sign (not a hyphen), so the echo should work correctly. 8244 # The option is referenced via a variable to avoid confusing sed. 8245 lt_compile=`echo "$ac_compile" | $SED \ 8246 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 8247 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8248 -e 's:$: $lt_compiler_flag:'` 8249 (eval echo "\"\$as_me:8249: $lt_compile\"" >&5) 8250 (eval "$lt_compile" 2>conftest.err) 8251 ac_status=$? 8252 cat conftest.err >&5 8253 echo "$as_me:8253: \$? = $ac_status" >&5 8254 if (exit $ac_status) && test -s "$ac_outfile"; then 8255 # The compiler can only warn and ignore the option if not recognized 8256 # So say no if there are warnings 8257 if test ! -s conftest.err; then 8258 lt_prog_compiler_pic_works=yes 8259 fi 8260 fi 8261 $rm conftest* 8262 8263fi 8264echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 8265echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 8266 8267if test x"$lt_prog_compiler_pic_works" = xyes; then 8268 case $lt_prog_compiler_pic in 8269 "" | " "*) ;; 8270 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8271 esac 8272else 8273 lt_prog_compiler_pic= 8274 lt_prog_compiler_can_build_shared=no 8275fi 8276 8277fi 8278case "$host_os" in 8279 # For platforms which do not support PIC, -DPIC is meaningless: 8280 *djgpp*) 8281 lt_prog_compiler_pic= 8282 ;; 8283 *) 8284 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8285 ;; 8286esac 8287 8288echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 8289echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 8290if test "${lt_cv_prog_compiler_c_o+set}" = set; then 8291 echo $ECHO_N "(cached) $ECHO_C" >&6 8292else 8293 lt_cv_prog_compiler_c_o=no 8294 $rm -r conftest 2>/dev/null 8295 mkdir conftest 8296 cd conftest 8297 mkdir out 8298 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8299 8300 lt_compiler_flag="-o out/conftest2.$ac_objext" 8301 # Insert the option either (1) after the last *FLAGS variable, or 8302 # (2) before a word containing "conftest.", or (3) at the end. 8303 # Note that $ac_compile itself does not contain backslashes and begins 8304 # with a dollar sign (not a hyphen), so the echo should work correctly. 8305 lt_compile=`echo "$ac_compile" | $SED \ 8306 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 8307 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8308 -e 's:$: $lt_compiler_flag:'` 8309 (eval echo "\"\$as_me:8309: $lt_compile\"" >&5) 8310 (eval "$lt_compile" 2>out/conftest.err) 8311 ac_status=$? 8312 cat out/conftest.err >&5 8313 echo "$as_me:8313: \$? = $ac_status" >&5 8314 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8315 then 8316 # The compiler can only warn and ignore the option if not recognized 8317 # So say no if there are warnings 8318 if test ! -s out/conftest.err; then 8319 lt_cv_prog_compiler_c_o=yes 8320 fi 8321 fi 8322 chmod u+w . 8323 $rm conftest* 8324 # SGI C++ compiler will create directory out/ii_files/ for 8325 # template instantiation 8326 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 8327 $rm out/* && rmdir out 8328 cd .. 8329 rmdir conftest 8330 $rm conftest* 8331 8332fi 8333echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 8334echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 8335 8336 8337hard_links="nottested" 8338if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8339 # do not overwrite the value of need_locks provided by the user 8340 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 8341echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 8342 hard_links=yes 8343 $rm conftest* 8344 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8345 touch conftest.a 8346 ln conftest.a conftest.b 2>&5 || hard_links=no 8347 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8348 echo "$as_me:$LINENO: result: $hard_links" >&5 8349echo "${ECHO_T}$hard_links" >&6 8350 if test "$hard_links" = no; then 8351 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8352echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8353 need_locks=warn 8354 fi 8355else 8356 need_locks=no 8357fi 8358 8359echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8360echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 8361 8362 runpath_var= 8363 allow_undefined_flag= 8364 enable_shared_with_static_runtimes=no 8365 archive_cmds= 8366 archive_expsym_cmds= 8367 old_archive_From_new_cmds= 8368 old_archive_from_expsyms_cmds= 8369 export_dynamic_flag_spec= 8370 whole_archive_flag_spec= 8371 thread_safe_flag_spec= 8372 hardcode_libdir_flag_spec= 8373 hardcode_libdir_flag_spec_ld= 8374 hardcode_libdir_separator= 8375 hardcode_direct=no 8376 hardcode_minus_L=no 8377 hardcode_shlibpath_var=unsupported 8378 link_all_deplibs=unknown 8379 hardcode_automatic=no 8380 module_cmds= 8381 module_expsym_cmds= 8382 always_export_symbols=no 8383 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8384 # include_expsyms should be a list of space-separated symbols to be *always* 8385 # included in the symbol list 8386 include_expsyms= 8387 # exclude_expsyms can be an extended regexp of symbols to exclude 8388 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8389 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8390 # as well as any symbol that contains `d'. 8391 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 8392 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8393 # platforms (ab)use it in PIC code, but their linkers get confused if 8394 # the symbol is explicitly referenced. Since portable code cannot 8395 # rely on this symbol name, it's probably fine to never include it in 8396 # preloaded symbol tables. 8397 extract_expsyms_cmds= 8398 8399 case $host_os in 8400 cygwin* | mingw* | pw32*) 8401 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8402 # When not using gcc, we currently assume that we are using 8403 # Microsoft Visual C++. 8404 if test "$GCC" != yes; then 8405 with_gnu_ld=no 8406 fi 8407 ;; 8408 openbsd*) 8409 with_gnu_ld=no 8410 ;; 8411 esac 8412 8413 ld_shlibs=yes 8414 if test "$with_gnu_ld" = yes; then 8415 # If archive_cmds runs LD, not CC, wlarc should be empty 8416 wlarc='${wl}' 8417 8418 # See if GNU ld supports shared libraries. 8419 case $host_os in 8420 aix3* | aix4* | aix5*) 8421 # On AIX/PPC, the GNU linker is very broken 8422 if test "$host_cpu" != ia64; then 8423 ld_shlibs=no 8424 cat <<EOF 1>&2 8425 8426*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8427*** to be unable to reliably create shared libraries on AIX. 8428*** Therefore, libtool is disabling shared libraries support. If you 8429*** really care for shared libraries, you may want to modify your PATH 8430*** so that a non-GNU linker is found, and then restart. 8431 8432EOF 8433 fi 8434 ;; 8435 8436 amigaos*) 8437 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)' 8438 hardcode_libdir_flag_spec='-L$libdir' 8439 hardcode_minus_L=yes 8440 8441 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 8442 # that the semantics of dynamic libraries on AmigaOS, at least up 8443 # to version 4, is to share data among multiple programs linked 8444 # with the same dynamic library. Since this doesn't match the 8445 # behavior of shared libraries on other platforms, we can't use 8446 # them. 8447 ld_shlibs=no 8448 ;; 8449 8450 beos*) 8451 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8452 allow_undefined_flag=unsupported 8453 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8454 # support --undefined. This deserves some investigation. FIXME 8455 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8456 else 8457 ld_shlibs=no 8458 fi 8459 ;; 8460 8461 cygwin* | mingw* | pw32*) 8462 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8463 # as there is no search path for DLLs. 8464 hardcode_libdir_flag_spec='-L$libdir' 8465 allow_undefined_flag=unsupported 8466 always_export_symbols=no 8467 enable_shared_with_static_runtimes=yes 8468 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 8469 8470 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 8471 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 8472 # If the export-symbols file already is a .def file (1st line 8473 # is EXPORTS), use it as is; otherwise, prepend... 8474 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8475 cp $export_symbols $output_objdir/$soname.def; 8476 else 8477 echo EXPORTS > $output_objdir/$soname.def; 8478 cat $export_symbols >> $output_objdir/$soname.def; 8479 fi~ 8480 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 8481 else 8482 ld_shlibs=no 8483 fi 8484 ;; 8485 8486 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 8487 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8488 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8489 wlarc= 8490 else 8491 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8492 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8493 fi 8494 ;; 8495 8496 solaris* | sysv5*) 8497 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 8498 ld_shlibs=no 8499 cat <<EOF 1>&2 8500 8501*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8502*** create shared libraries on Solaris systems. Therefore, libtool 8503*** is disabling shared libraries support. We urge you to upgrade GNU 8504*** binutils to release 2.9.1 or newer. Another option is to modify 8505*** your PATH or compiler configuration so that the native linker is 8506*** used, and then restart. 8507 8508EOF 8509 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8510 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8511 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8512 else 8513 ld_shlibs=no 8514 fi 8515 ;; 8516 8517 sunos4*) 8518 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8519 wlarc= 8520 hardcode_direct=yes 8521 hardcode_shlibpath_var=no 8522 ;; 8523 8524 linux*) 8525 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8526 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8527 archive_cmds="$tmp_archive_cmds" 8528 supports_anon_versioning=no 8529 case `$LD -v 2>/dev/null` in 8530 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8531 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8532 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8533 *\ 2.11.*) ;; # other 2.11 versions 8534 *) supports_anon_versioning=yes ;; 8535 esac 8536 if test $supports_anon_versioning = yes; then 8537 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 8538cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8539$echo "local: *; };" >> $output_objdir/$libname.ver~ 8540 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8541 else 8542 archive_expsym_cmds="$tmp_archive_cmds" 8543 fi 8544 link_all_deplibs=no 8545 else 8546 ld_shlibs=no 8547 fi 8548 ;; 8549 8550 *) 8551 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8552 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8553 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8554 else 8555 ld_shlibs=no 8556 fi 8557 ;; 8558 esac 8559 8560 if test "$ld_shlibs" = yes; then 8561 runpath_var=LD_RUN_PATH 8562 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 8563 export_dynamic_flag_spec='${wl}--export-dynamic' 8564 # ancient GNU ld didn't support --whole-archive et. al. 8565 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 8566 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8567 else 8568 whole_archive_flag_spec= 8569 fi 8570 fi 8571 else 8572 # PORTME fill in a description of your system's linker (not GNU ld) 8573 case $host_os in 8574 aix3*) 8575 allow_undefined_flag=unsupported 8576 always_export_symbols=yes 8577 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' 8578 # Note: this linker hardcodes the directories in LIBPATH if there 8579 # are no directories specified by -L. 8580 hardcode_minus_L=yes 8581 if test "$GCC" = yes && test -z "$link_static_flag"; then 8582 # Neither direct hardcoding nor static linking is supported with a 8583 # broken collect2. 8584 hardcode_direct=unsupported 8585 fi 8586 ;; 8587 8588 aix4* | aix5*) 8589 if test "$host_cpu" = ia64; then 8590 # On IA64, the linker does run time linking by default, so we don't 8591 # have to do anything special. 8592 aix_use_runtimelinking=no 8593 exp_sym_flag='-Bexport' 8594 no_entry_flag="" 8595 else 8596 # If we're using GNU nm, then we don't want the "-C" option. 8597 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8598 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 8599 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' 8600 else 8601 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' 8602 fi 8603 aix_use_runtimelinking=no 8604 8605 # Test if we are trying to use run time linking or normal 8606 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8607 # need to do runtime linking. 8608 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 8609 for ld_flag in $LDFLAGS; do 8610 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8611 aix_use_runtimelinking=yes 8612 break 8613 fi 8614 done 8615 esac 8616 8617 exp_sym_flag='-bexport' 8618 no_entry_flag='-bnoentry' 8619 fi 8620 8621 # When large executables or shared objects are built, AIX ld can 8622 # have problems creating the table of contents. If linking a library 8623 # or program results in "error TOC overflow" add -mminimal-toc to 8624 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8625 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8626 8627 archive_cmds='' 8628 hardcode_direct=yes 8629 hardcode_libdir_separator=':' 8630 link_all_deplibs=yes 8631 8632 if test "$GCC" = yes; then 8633 case $host_os in aix4.012|aix4.012.*) 8634 # We only want to do this on AIX 4.2 and lower, the check 8635 # below for broken collect2 doesn't work under 4.3+ 8636 collect2name=`${CC} -print-prog-name=collect2` 8637 if test -f "$collect2name" && \ 8638 strings "$collect2name" | grep resolve_lib_name >/dev/null 8639 then 8640 # We have reworked collect2 8641 hardcode_direct=yes 8642 else 8643 # We have old collect2 8644 hardcode_direct=unsupported 8645 # It fails to find uninstalled libraries when the uninstalled 8646 # path is not listed in the libpath. Setting hardcode_minus_L 8647 # to unsupported forces relinking 8648 hardcode_minus_L=yes 8649 hardcode_libdir_flag_spec='-L$libdir' 8650 hardcode_libdir_separator= 8651 fi 8652 esac 8653 shared_flag='-shared' 8654 else 8655 # not using gcc 8656 if test "$host_cpu" = ia64; then 8657 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8658 # chokes on -Wl,-G. The following line is correct: 8659 shared_flag='-G' 8660 else 8661 if test "$aix_use_runtimelinking" = yes; then 8662 shared_flag='${wl}-G' 8663 else 8664 shared_flag='${wl}-bM:SRE' 8665 fi 8666 fi 8667 fi 8668 8669 # It seems that -bexpall does not export symbols beginning with 8670 # underscore (_), so it is better to generate a list of symbols to export. 8671 always_export_symbols=yes 8672 if test "$aix_use_runtimelinking" = yes; then 8673 # Warning - without using the other runtime loading flags (-brtl), 8674 # -berok will link without error, but may produce a broken library. 8675 allow_undefined_flag='-berok' 8676 # Determine the default libpath from the value encoded in an empty executable. 8677 cat >conftest.$ac_ext <<_ACEOF 8678/* confdefs.h. */ 8679_ACEOF 8680cat confdefs.h >>conftest.$ac_ext 8681cat >>conftest.$ac_ext <<_ACEOF 8682/* end confdefs.h. */ 8683 8684#ifdef F77_DUMMY_MAIN 8685 8686# ifdef __cplusplus 8687 extern "C" 8688# endif 8689 int F77_DUMMY_MAIN() { return 1; } 8690 8691#endif 8692int 8693main () 8694{ 8695 8696 ; 8697 return 0; 8698} 8699_ACEOF 8700rm -f conftest.$ac_objext conftest$ac_exeext 8701if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8702 (eval $ac_link) 2>conftest.er1 8703 ac_status=$? 8704 grep -v '^ *+' conftest.er1 >conftest.err 8705 rm -f conftest.er1 8706 cat conftest.err >&5 8707 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8708 (exit $ac_status); } && 8709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8711 (eval $ac_try) 2>&5 8712 ac_status=$? 8713 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8714 (exit $ac_status); }; } && 8715 { ac_try='test -s conftest$ac_exeext' 8716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8717 (eval $ac_try) 2>&5 8718 ac_status=$? 8719 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8720 (exit $ac_status); }; }; then 8721 8722aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8723}'` 8724# Check for a 64-bit object if we didn't find anything. 8725if 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; } 8726}'`; fi 8727else 8728 echo "$as_me: failed program was:" >&5 8729sed 's/^/| /' conftest.$ac_ext >&5 8730 8731fi 8732rm -f conftest.err conftest.$ac_objext \ 8733 conftest$ac_exeext conftest.$ac_ext 8734if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8735 8736 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8737 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 8738 else 8739 if test "$host_cpu" = ia64; then 8740 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8741 allow_undefined_flag="-z nodefs" 8742 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 8743 else 8744 # Determine the default libpath from the value encoded in an empty executable. 8745 cat >conftest.$ac_ext <<_ACEOF 8746/* confdefs.h. */ 8747_ACEOF 8748cat confdefs.h >>conftest.$ac_ext 8749cat >>conftest.$ac_ext <<_ACEOF 8750/* end confdefs.h. */ 8751 8752#ifdef F77_DUMMY_MAIN 8753 8754# ifdef __cplusplus 8755 extern "C" 8756# endif 8757 int F77_DUMMY_MAIN() { return 1; } 8758 8759#endif 8760int 8761main () 8762{ 8763 8764 ; 8765 return 0; 8766} 8767_ACEOF 8768rm -f conftest.$ac_objext conftest$ac_exeext 8769if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8770 (eval $ac_link) 2>conftest.er1 8771 ac_status=$? 8772 grep -v '^ *+' conftest.er1 >conftest.err 8773 rm -f conftest.er1 8774 cat conftest.err >&5 8775 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8776 (exit $ac_status); } && 8777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8779 (eval $ac_try) 2>&5 8780 ac_status=$? 8781 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8782 (exit $ac_status); }; } && 8783 { ac_try='test -s conftest$ac_exeext' 8784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8785 (eval $ac_try) 2>&5 8786 ac_status=$? 8787 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8788 (exit $ac_status); }; }; then 8789 8790aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8791}'` 8792# Check for a 64-bit object if we didn't find anything. 8793if 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; } 8794}'`; fi 8795else 8796 echo "$as_me: failed program was:" >&5 8797sed 's/^/| /' conftest.$ac_ext >&5 8798 8799fi 8800rm -f conftest.err conftest.$ac_objext \ 8801 conftest$ac_exeext conftest.$ac_ext 8802if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8803 8804 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8805 # Warning - without using the other run time loading flags, 8806 # -berok will link without error, but may produce a broken library. 8807 no_undefined_flag=' ${wl}-bernotok' 8808 allow_undefined_flag=' ${wl}-berok' 8809 # -bexpall does not export symbols beginning with underscore (_) 8810 always_export_symbols=yes 8811 # Exported symbols can be pulled into shared objects from archives 8812 whole_archive_flag_spec=' ' 8813 archive_cmds_need_lc=yes 8814 # This is similar to how AIX traditionally builds it's shared libraries. 8815 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 8816 fi 8817 fi 8818 ;; 8819 8820 amigaos*) 8821 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)' 8822 hardcode_libdir_flag_spec='-L$libdir' 8823 hardcode_minus_L=yes 8824 # see comment about different semantics on the GNU ld section 8825 ld_shlibs=no 8826 ;; 8827 8828 bsdi4*) 8829 export_dynamic_flag_spec=-rdynamic 8830 ;; 8831 8832 cygwin* | mingw* | pw32*) 8833 # When not using gcc, we currently assume that we are using 8834 # Microsoft Visual C++. 8835 # hardcode_libdir_flag_spec is actually meaningless, as there is 8836 # no search path for DLLs. 8837 hardcode_libdir_flag_spec=' ' 8838 allow_undefined_flag=unsupported 8839 # Tell ltmain to make .lib files, not .a files. 8840 libext=lib 8841 # Tell ltmain to make .dll files, not .so files. 8842 shrext_cmds=".dll" 8843 # FIXME: Setting linknames here is a bad hack. 8844 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8845 # The linker will automatically build a .lib file if we build a DLL. 8846 old_archive_From_new_cmds='true' 8847 # FIXME: Should let the user specify the lib program. 8848 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 8849 fix_srcfile_path='`cygpath -w "$srcfile"`' 8850 enable_shared_with_static_runtimes=yes 8851 ;; 8852 8853 darwin* | rhapsody*) 8854 if test "$GXX" = yes ; then 8855 archive_cmds_need_lc=no 8856 case "$host_os" in 8857 rhapsody* | darwin1.[012]) 8858 allow_undefined_flag='-undefined suppress' 8859 ;; 8860 *) # Darwin 1.3 on 8861 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8862 allow_undefined_flag='-flat_namespace -undefined suppress' 8863 else 8864 case ${MACOSX_DEPLOYMENT_TARGET} in 8865 10.[012]) 8866 allow_undefined_flag='-flat_namespace -undefined suppress' 8867 ;; 8868 10.*) 8869 allow_undefined_flag='-undefined dynamic_lookup' 8870 ;; 8871 esac 8872 fi 8873 ;; 8874 esac 8875 lt_int_apple_cc_single_mod=no 8876 output_verbose_link_cmd='echo' 8877 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 8878 lt_int_apple_cc_single_mod=yes 8879 fi 8880 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 8881 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 8882 else 8883 archive_cmds='$CC -r ${wl}-bind_at_load -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' 8884 fi 8885 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8886 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 8887 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 8888 archive_expsym_cmds='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}' 8889 else 8890 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}' 8891 fi 8892 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}' 8893 hardcode_direct=no 8894 hardcode_automatic=yes 8895 hardcode_shlibpath_var=unsupported 8896 whole_archive_flag_spec='-all_load $convenience' 8897 link_all_deplibs=yes 8898 else 8899 ld_shlibs=no 8900 fi 8901 ;; 8902 8903 dgux*) 8904 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8905 hardcode_libdir_flag_spec='-L$libdir' 8906 hardcode_shlibpath_var=no 8907 ;; 8908 8909 freebsd1*) 8910 ld_shlibs=no 8911 ;; 8912 8913 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8914 # support. Future versions do this automatically, but an explicit c++rt0.o 8915 # does not break anything, and helps significantly (at the cost of a little 8916 # extra space). 8917 freebsd2.2*) 8918 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8919 hardcode_libdir_flag_spec='-R$libdir' 8920 hardcode_direct=yes 8921 hardcode_shlibpath_var=no 8922 ;; 8923 8924 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8925 freebsd2*) 8926 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8927 hardcode_direct=yes 8928 hardcode_minus_L=yes 8929 hardcode_shlibpath_var=no 8930 ;; 8931 8932 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8933 freebsd* | kfreebsd*-gnu) 8934 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8935 hardcode_libdir_flag_spec='-R$libdir' 8936 hardcode_direct=yes 8937 hardcode_shlibpath_var=no 8938 ;; 8939 8940 hpux9*) 8941 if test "$GCC" = yes; then 8942 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' 8943 else 8944 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' 8945 fi 8946 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8947 hardcode_libdir_separator=: 8948 hardcode_direct=yes 8949 8950 # hardcode_minus_L: Not really in the search PATH, 8951 # but as the default location of the library. 8952 hardcode_minus_L=yes 8953 export_dynamic_flag_spec='${wl}-E' 8954 ;; 8955 8956 hpux10* | hpux11*) 8957 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8958 case "$host_cpu" in 8959 hppa*64*|ia64*) 8960 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8961 ;; 8962 *) 8963 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8964 ;; 8965 esac 8966 else 8967 case "$host_cpu" in 8968 hppa*64*|ia64*) 8969 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 8970 ;; 8971 *) 8972 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8973 ;; 8974 esac 8975 fi 8976 if test "$with_gnu_ld" = no; then 8977 case "$host_cpu" in 8978 hppa*64*) 8979 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8980 hardcode_libdir_flag_spec_ld='+b $libdir' 8981 hardcode_libdir_separator=: 8982 hardcode_direct=no 8983 hardcode_shlibpath_var=no 8984 ;; 8985 ia64*) 8986 hardcode_libdir_flag_spec='-L$libdir' 8987 hardcode_direct=no 8988 hardcode_shlibpath_var=no 8989 8990 # hardcode_minus_L: Not really in the search PATH, 8991 # but as the default location of the library. 8992 hardcode_minus_L=yes 8993 ;; 8994 *) 8995 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8996 hardcode_libdir_separator=: 8997 hardcode_direct=yes 8998 export_dynamic_flag_spec='${wl}-E' 8999 9000 # hardcode_minus_L: Not really in the search PATH, 9001 # but as the default location of the library. 9002 hardcode_minus_L=yes 9003 ;; 9004 esac 9005 fi 9006 ;; 9007 9008 irix5* | irix6* | nonstopux*) 9009 if test "$GCC" = yes; then 9010 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' 9011 else 9012 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' 9013 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9014 fi 9015 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9016 hardcode_libdir_separator=: 9017 link_all_deplibs=yes 9018 ;; 9019 9020 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 9021 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9022 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9023 else 9024 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9025 fi 9026 hardcode_libdir_flag_spec='-R$libdir' 9027 hardcode_direct=yes 9028 hardcode_shlibpath_var=no 9029 ;; 9030 9031 newsos6) 9032 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9033 hardcode_direct=yes 9034 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9035 hardcode_libdir_separator=: 9036 hardcode_shlibpath_var=no 9037 ;; 9038 9039 openbsd*) 9040 hardcode_direct=yes 9041 hardcode_shlibpath_var=no 9042 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9043 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9044 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9045 export_dynamic_flag_spec='${wl}-E' 9046 else 9047 case $host_os in 9048 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9049 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9050 hardcode_libdir_flag_spec='-R$libdir' 9051 ;; 9052 *) 9053 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9054 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9055 ;; 9056 esac 9057 fi 9058 ;; 9059 9060 os2*) 9061 hardcode_libdir_flag_spec='-L$libdir' 9062 hardcode_minus_L=yes 9063 allow_undefined_flag=unsupported 9064 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' 9065 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9066 ;; 9067 9068 osf3*) 9069 if test "$GCC" = yes; then 9070 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9071 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' 9072 else 9073 allow_undefined_flag=' -expect_unresolved \*' 9074 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' 9075 fi 9076 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9077 hardcode_libdir_separator=: 9078 ;; 9079 9080 osf4* | osf5*) # as osf3* with the addition of -msym flag 9081 if test "$GCC" = yes; then 9082 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9083 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' 9084 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9085 else 9086 allow_undefined_flag=' -expect_unresolved \*' 9087 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' 9088 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 9089 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' 9090 9091 # Both c and cxx compiler support -rpath directly 9092 hardcode_libdir_flag_spec='-rpath $libdir' 9093 fi 9094 hardcode_libdir_separator=: 9095 ;; 9096 9097 sco3.2v5*) 9098 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9099 hardcode_shlibpath_var=no 9100 export_dynamic_flag_spec='${wl}-Bexport' 9101 runpath_var=LD_RUN_PATH 9102 hardcode_runpath_var=yes 9103 ;; 9104 9105 solaris*) 9106 no_undefined_flag=' -z text' 9107 if test "$GCC" = yes; then 9108 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9109 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 9110 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 9111 else 9112 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9113 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 9114 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 9115 fi 9116 hardcode_libdir_flag_spec='-R$libdir' 9117 hardcode_shlibpath_var=no 9118 case $host_os in 9119 solaris2.[0-5] | solaris2.[0-5].*) ;; 9120 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 9121 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 9122 esac 9123 link_all_deplibs=yes 9124 ;; 9125 9126 sunos4*) 9127 if test "x$host_vendor" = xsequent; then 9128 # Use $CC to link under sequent, because it throws in some extra .o 9129 # files that make .init and .fini sections work. 9130 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9131 else 9132 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9133 fi 9134 hardcode_libdir_flag_spec='-L$libdir' 9135 hardcode_direct=yes 9136 hardcode_minus_L=yes 9137 hardcode_shlibpath_var=no 9138 ;; 9139 9140 sysv4) 9141 case $host_vendor in 9142 sni) 9143 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9144 hardcode_direct=yes # is this really true??? 9145 ;; 9146 siemens) 9147 ## LD is ld it makes a PLAMLIB 9148 ## CC just makes a GrossModule. 9149 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9150 reload_cmds='$CC -r -o $output$reload_objs' 9151 hardcode_direct=no 9152 ;; 9153 motorola) 9154 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9155 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9156 ;; 9157 esac 9158 runpath_var='LD_RUN_PATH' 9159 hardcode_shlibpath_var=no 9160 ;; 9161 9162 sysv4.3*) 9163 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9164 hardcode_shlibpath_var=no 9165 export_dynamic_flag_spec='-Bexport' 9166 ;; 9167 9168 sysv4*MP*) 9169 if test -d /usr/nec; then 9170 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9171 hardcode_shlibpath_var=no 9172 runpath_var=LD_RUN_PATH 9173 hardcode_runpath_var=yes 9174 ld_shlibs=yes 9175 fi 9176 ;; 9177 9178 sysv4.2uw2*) 9179 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9180 hardcode_direct=yes 9181 hardcode_minus_L=no 9182 hardcode_shlibpath_var=no 9183 hardcode_runpath_var=yes 9184 runpath_var=LD_RUN_PATH 9185 ;; 9186 9187 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 9188 no_undefined_flag='${wl}-z ${wl}text' 9189 if test "$GCC" = yes; then 9190 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9191 else 9192 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9193 fi 9194 runpath_var='LD_RUN_PATH' 9195 hardcode_shlibpath_var=no 9196 ;; 9197 9198 sysv5*) 9199 no_undefined_flag=' -z text' 9200 # $CC -shared without GNU ld will not create a library from C++ 9201 # object files and a static libstdc++, better avoid it by now 9202 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9203 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 9204 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 9205 hardcode_libdir_flag_spec= 9206 hardcode_shlibpath_var=no 9207 runpath_var='LD_RUN_PATH' 9208 ;; 9209 9210 uts4*) 9211 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9212 hardcode_libdir_flag_spec='-L$libdir' 9213 hardcode_shlibpath_var=no 9214 ;; 9215 9216 *) 9217 ld_shlibs=no 9218 ;; 9219 esac 9220 fi 9221 9222echo "$as_me:$LINENO: result: $ld_shlibs" >&5 9223echo "${ECHO_T}$ld_shlibs" >&6 9224test "$ld_shlibs" = no && can_build_shared=no 9225 9226variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9227if test "$GCC" = yes; then 9228 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9229fi 9230 9231# 9232# Do we need to explicitly link libc? 9233# 9234case "x$archive_cmds_need_lc" in 9235x|xyes) 9236 # Assume -lc should be added 9237 archive_cmds_need_lc=yes 9238 9239 if test "$enable_shared" = yes && test "$GCC" = yes; then 9240 case $archive_cmds in 9241 *'~'*) 9242 # FIXME: we may have to deal with multi-command sequences. 9243 ;; 9244 '$CC '*) 9245 # Test whether the compiler implicitly links with -lc since on some 9246 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9247 # to ld, don't add -lc before -lgcc. 9248 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 9249echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 9250 $rm conftest* 9251 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 9252 9253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9254 (eval $ac_compile) 2>&5 9255 ac_status=$? 9256 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9257 (exit $ac_status); } 2>conftest.err; then 9258 soname=conftest 9259 lib=conftest 9260 libobjs=conftest.$ac_objext 9261 deplibs= 9262 wl=$lt_prog_compiler_wl 9263 compiler_flags=-v 9264 linker_flags=-v 9265 verstring= 9266 output_objdir=. 9267 libname=conftest 9268 lt_save_allow_undefined_flag=$allow_undefined_flag 9269 allow_undefined_flag= 9270 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 9271 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 9272 ac_status=$? 9273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9274 (exit $ac_status); } 9275 then 9276 archive_cmds_need_lc=no 9277 else 9278 archive_cmds_need_lc=yes 9279 fi 9280 allow_undefined_flag=$lt_save_allow_undefined_flag 9281 else 9282 cat conftest.err 1>&5 9283 fi 9284 $rm conftest* 9285 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 9286echo "${ECHO_T}$archive_cmds_need_lc" >&6 9287 ;; 9288 esac 9289 fi 9290 ;; 9291esac 9292 9293echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 9294echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 9295library_names_spec= 9296libname_spec='lib$name' 9297soname_spec= 9298shrext_cmds=".so" 9299postinstall_cmds= 9300postuninstall_cmds= 9301finish_cmds= 9302finish_eval= 9303shlibpath_var= 9304shlibpath_overrides_runpath=unknown 9305version_type=none 9306dynamic_linker="$host_os ld.so" 9307sys_lib_dlsearch_path_spec="/lib /usr/lib" 9308if test "$GCC" = yes; then 9309 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9310 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 9311 # if the path contains ";" then we assume it to be the separator 9312 # otherwise default to the standard path separator (i.e. ":") - it is 9313 # assumed that no part of a normal pathname contains ";" but that should 9314 # okay in the real world where ";" in dirpaths is itself problematic. 9315 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9316 else 9317 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9318 fi 9319else 9320 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9321fi 9322need_lib_prefix=unknown 9323hardcode_into_libs=no 9324 9325# when you set need_version to no, make sure it does not cause -set_version 9326# flags to be left without arguments 9327need_version=unknown 9328 9329case $host_os in 9330aix3*) 9331 version_type=linux 9332 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9333 shlibpath_var=LIBPATH 9334 9335 # AIX 3 has no versioning support, so we append a major version to the name. 9336 soname_spec='${libname}${release}${shared_ext}$major' 9337 ;; 9338 9339aix4* | aix5*) 9340 version_type=linux 9341 need_lib_prefix=no 9342 need_version=no 9343 hardcode_into_libs=yes 9344 if test "$host_cpu" = ia64; then 9345 # AIX 5 supports IA64 9346 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9347 shlibpath_var=LD_LIBRARY_PATH 9348 else 9349 # With GCC up to 2.95.x, collect2 would create an import file 9350 # for dependence libraries. The import file would start with 9351 # the line `#! .'. This would cause the generated library to 9352 # depend on `.', always an invalid library. This was fixed in 9353 # development snapshots of GCC prior to 3.0. 9354 case $host_os in 9355 aix4 | aix4.[01] | aix4.[01].*) 9356 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9357 echo ' yes ' 9358 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 9359 : 9360 else 9361 can_build_shared=no 9362 fi 9363 ;; 9364 esac 9365 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9366 # soname into executable. Probably we can add versioning support to 9367 # collect2, so additional links can be useful in future. 9368 if test "$aix_use_runtimelinking" = yes; then 9369 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9370 # instead of lib<name>.a to let people know that these are not 9371 # typical AIX shared libraries. 9372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9373 else 9374 # We preserve .a as extension for shared libraries through AIX4.2 9375 # and later when we are not doing run time linking. 9376 library_names_spec='${libname}${release}.a $libname.a' 9377 soname_spec='${libname}${release}${shared_ext}$major' 9378 fi 9379 shlibpath_var=LIBPATH 9380 fi 9381 ;; 9382 9383amigaos*) 9384 library_names_spec='$libname.ixlibrary $libname.a' 9385 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9386 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' 9387 ;; 9388 9389beos*) 9390 library_names_spec='${libname}${shared_ext}' 9391 dynamic_linker="$host_os ld.so" 9392 shlibpath_var=LIBRARY_PATH 9393 ;; 9394 9395bsdi4*) 9396 version_type=linux 9397 need_version=no 9398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9399 soname_spec='${libname}${release}${shared_ext}$major' 9400 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9401 shlibpath_var=LD_LIBRARY_PATH 9402 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9403 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9404 # the default ld.so.conf also contains /usr/contrib/lib and 9405 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9406 # libtool to hard-code these into programs 9407 ;; 9408 9409cygwin* | mingw* | pw32*) 9410 version_type=windows 9411 shrext_cmds=".dll" 9412 need_version=no 9413 need_lib_prefix=no 9414 9415 case $GCC,$host_os in 9416 yes,cygwin* | yes,mingw* | yes,pw32*) 9417 library_names_spec='$libname.dll.a' 9418 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9419 postinstall_cmds='base_file=`basename \${file}`~ 9420 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 9421 dldir=$destdir/`dirname \$dlpath`~ 9422 test -d \$dldir || mkdir -p \$dldir~ 9423 $install_prog $dir/$dlname \$dldir/$dlname' 9424 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9425 dlpath=$dir/\$dldll~ 9426 $rm \$dlpath' 9427 shlibpath_overrides_runpath=yes 9428 9429 case $host_os in 9430 cygwin*) 9431 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9432 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9433 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9434 ;; 9435 mingw*) 9436 # MinGW DLLs use traditional 'lib' prefix 9437 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9438 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9439 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 9440 # It is most probably a Windows format PATH printed by 9441 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9442 # path with ; separators, and with drive letters. We can handle the 9443 # drive letters (cygwin fileutils understands them), so leave them, 9444 # especially as we might pass files found there to a mingw objdump, 9445 # which wouldn't understand a cygwinified path. Ahh. 9446 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9447 else 9448 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9449 fi 9450 ;; 9451 pw32*) 9452 # pw32 DLLs use 'pw' prefix rather than 'lib' 9453 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 9454 ;; 9455 esac 9456 ;; 9457 9458 *) 9459 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9460 ;; 9461 esac 9462 dynamic_linker='Win32 ld.exe' 9463 # FIXME: first we should search . and the directory the executable is in 9464 shlibpath_var=PATH 9465 ;; 9466 9467darwin* | rhapsody*) 9468 dynamic_linker="$host_os dyld" 9469 version_type=darwin 9470 need_lib_prefix=no 9471 need_version=no 9472 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9473 soname_spec='${libname}${release}${major}$shared_ext' 9474 shlibpath_overrides_runpath=yes 9475 shlibpath_var=DYLD_LIBRARY_PATH 9476 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 9477 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 9478 if test "$GCC" = yes; then 9479 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"` 9480 else 9481 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 9482 fi 9483 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9484 ;; 9485 9486dgux*) 9487 version_type=linux 9488 need_lib_prefix=no 9489 need_version=no 9490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9491 soname_spec='${libname}${release}${shared_ext}$major' 9492 shlibpath_var=LD_LIBRARY_PATH 9493 ;; 9494 9495freebsd1*) 9496 dynamic_linker=no 9497 ;; 9498 9499kfreebsd*-gnu) 9500 version_type=linux 9501 need_lib_prefix=no 9502 need_version=no 9503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9504 soname_spec='${libname}${release}${shared_ext}$major' 9505 shlibpath_var=LD_LIBRARY_PATH 9506 shlibpath_overrides_runpath=no 9507 hardcode_into_libs=yes 9508 dynamic_linker='GNU ld.so' 9509 ;; 9510 9511freebsd*) 9512 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 9513 version_type=freebsd-$objformat 9514 case $version_type in 9515 freebsd-elf*) 9516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9517 need_version=no 9518 need_lib_prefix=no 9519 ;; 9520 freebsd-*) 9521 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9522 need_version=yes 9523 ;; 9524 esac 9525 shlibpath_var=LD_LIBRARY_PATH 9526 case $host_os in 9527 freebsd2*) 9528 shlibpath_overrides_runpath=yes 9529 ;; 9530 freebsd3.01* | freebsdelf3.01*) 9531 shlibpath_overrides_runpath=yes 9532 hardcode_into_libs=yes 9533 ;; 9534 *) # from 3.2 on 9535 shlibpath_overrides_runpath=no 9536 hardcode_into_libs=yes 9537 ;; 9538 esac 9539 ;; 9540 9541gnu*) 9542 version_type=linux 9543 need_lib_prefix=no 9544 need_version=no 9545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9546 soname_spec='${libname}${release}${shared_ext}$major' 9547 shlibpath_var=LD_LIBRARY_PATH 9548 hardcode_into_libs=yes 9549 ;; 9550 9551hpux9* | hpux10* | hpux11*) 9552 # Give a soname corresponding to the major version so that dld.sl refuses to 9553 # link against other versions. 9554 version_type=sunos 9555 need_lib_prefix=no 9556 need_version=no 9557 case "$host_cpu" in 9558 ia64*) 9559 shrext_cmds='.so' 9560 hardcode_into_libs=yes 9561 dynamic_linker="$host_os dld.so" 9562 shlibpath_var=LD_LIBRARY_PATH 9563 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9565 soname_spec='${libname}${release}${shared_ext}$major' 9566 if test "X$HPUX_IA64_MODE" = X32; then 9567 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9568 else 9569 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9570 fi 9571 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9572 ;; 9573 hppa*64*) 9574 shrext_cmds='.sl' 9575 hardcode_into_libs=yes 9576 dynamic_linker="$host_os dld.sl" 9577 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9578 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9580 soname_spec='${libname}${release}${shared_ext}$major' 9581 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9582 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9583 ;; 9584 *) 9585 shrext_cmds='.sl' 9586 dynamic_linker="$host_os dld.sl" 9587 shlibpath_var=SHLIB_PATH 9588 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9590 soname_spec='${libname}${release}${shared_ext}$major' 9591 ;; 9592 esac 9593 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9594 postinstall_cmds='chmod 555 $lib' 9595 ;; 9596 9597irix5* | irix6* | nonstopux*) 9598 case $host_os in 9599 nonstopux*) version_type=nonstopux ;; 9600 *) 9601 if test "$lt_cv_prog_gnu_ld" = yes; then 9602 version_type=linux 9603 else 9604 version_type=irix 9605 fi ;; 9606 esac 9607 need_lib_prefix=no 9608 need_version=no 9609 soname_spec='${libname}${release}${shared_ext}$major' 9610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9611 case $host_os in 9612 irix5* | nonstopux*) 9613 libsuff= shlibsuff= 9614 ;; 9615 *) 9616 case $LD in # libtool.m4 will add one of these switches to LD 9617 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9618 libsuff= shlibsuff= libmagic=32-bit;; 9619 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9620 libsuff=32 shlibsuff=N32 libmagic=N32;; 9621 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9622 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9623 *) libsuff= shlibsuff= libmagic=never-match;; 9624 esac 9625 ;; 9626 esac 9627 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9628 shlibpath_overrides_runpath=no 9629 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9630 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9631 hardcode_into_libs=yes 9632 ;; 9633 9634# No shared lib support for Linux oldld, aout, or coff. 9635linux*oldld* | linux*aout* | linux*coff*) 9636 dynamic_linker=no 9637 ;; 9638 9639# This must be Linux ELF. 9640linux*) 9641 version_type=linux 9642 need_lib_prefix=no 9643 need_version=no 9644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9645 soname_spec='${libname}${release}${shared_ext}$major' 9646 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9647 shlibpath_var=LD_LIBRARY_PATH 9648 shlibpath_overrides_runpath=no 9649 # This implies no fast_install, which is unacceptable. 9650 # Some rework will be needed to allow for fast_install 9651 # before this can be enabled. 9652 hardcode_into_libs=yes 9653 9654 # Append ld.so.conf contents to the search path 9655 if test -f /etc/ld.so.conf; then 9656 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` 9657 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9658 fi 9659 9660 # We used to test for /lib/ld.so.1 and disable shared libraries on 9661 # powerpc, because MkLinux only supported shared libraries with the 9662 # GNU dynamic linker. Since this was broken with cross compilers, 9663 # most powerpc-linux boxes support dynamic linking these days and 9664 # people can always --disable-shared, the test was removed, and we 9665 # assume the GNU/Linux dynamic linker is in use. 9666 dynamic_linker='GNU/Linux ld.so' 9667 ;; 9668 9669netbsdelf*-gnu) 9670 version_type=linux 9671 need_lib_prefix=no 9672 need_version=no 9673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9674 soname_spec='${libname}${release}${shared_ext}$major' 9675 shlibpath_var=LD_LIBRARY_PATH 9676 shlibpath_overrides_runpath=no 9677 hardcode_into_libs=yes 9678 dynamic_linker='NetBSD ld.elf_so' 9679 ;; 9680 9681knetbsd*-gnu) 9682 version_type=linux 9683 need_lib_prefix=no 9684 need_version=no 9685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9686 soname_spec='${libname}${release}${shared_ext}$major' 9687 shlibpath_var=LD_LIBRARY_PATH 9688 shlibpath_overrides_runpath=no 9689 hardcode_into_libs=yes 9690 dynamic_linker='GNU ld.so' 9691 ;; 9692 9693netbsd*) 9694 version_type=sunos 9695 need_lib_prefix=no 9696 need_version=no 9697 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9699 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9700 dynamic_linker='NetBSD (a.out) ld.so' 9701 else 9702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9703 soname_spec='${libname}${release}${shared_ext}$major' 9704 dynamic_linker='NetBSD ld.elf_so' 9705 fi 9706 shlibpath_var=LD_LIBRARY_PATH 9707 shlibpath_overrides_runpath=yes 9708 hardcode_into_libs=yes 9709 ;; 9710 9711newsos6) 9712 version_type=linux 9713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9714 shlibpath_var=LD_LIBRARY_PATH 9715 shlibpath_overrides_runpath=yes 9716 ;; 9717 9718nto-qnx*) 9719 version_type=linux 9720 need_lib_prefix=no 9721 need_version=no 9722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9723 soname_spec='${libname}${release}${shared_ext}$major' 9724 shlibpath_var=LD_LIBRARY_PATH 9725 shlibpath_overrides_runpath=yes 9726 ;; 9727 9728openbsd*) 9729 version_type=sunos 9730 need_lib_prefix=no 9731 need_version=yes 9732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9733 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9734 shlibpath_var=LD_LIBRARY_PATH 9735 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9736 case $host_os in 9737 openbsd2.[89] | openbsd2.[89].*) 9738 shlibpath_overrides_runpath=no 9739 ;; 9740 *) 9741 shlibpath_overrides_runpath=yes 9742 ;; 9743 esac 9744 else 9745 shlibpath_overrides_runpath=yes 9746 fi 9747 ;; 9748 9749os2*) 9750 libname_spec='$name' 9751 shrext_cmds=".dll" 9752 need_lib_prefix=no 9753 library_names_spec='$libname${shared_ext} $libname.a' 9754 dynamic_linker='OS/2 ld.exe' 9755 shlibpath_var=LIBPATH 9756 ;; 9757 9758osf3* | osf4* | osf5*) 9759 version_type=osf 9760 need_lib_prefix=no 9761 need_version=no 9762 soname_spec='${libname}${release}${shared_ext}$major' 9763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9764 shlibpath_var=LD_LIBRARY_PATH 9765 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9766 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9767 ;; 9768 9769sco3.2v5*) 9770 version_type=osf 9771 soname_spec='${libname}${release}${shared_ext}$major' 9772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9773 shlibpath_var=LD_LIBRARY_PATH 9774 ;; 9775 9776solaris*) 9777 version_type=linux 9778 need_lib_prefix=no 9779 need_version=no 9780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9781 soname_spec='${libname}${release}${shared_ext}$major' 9782 shlibpath_var=LD_LIBRARY_PATH 9783 shlibpath_overrides_runpath=yes 9784 hardcode_into_libs=yes 9785 # ldd complains unless libraries are executable 9786 postinstall_cmds='chmod +x $lib' 9787 ;; 9788 9789sunos4*) 9790 version_type=sunos 9791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9792 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9793 shlibpath_var=LD_LIBRARY_PATH 9794 shlibpath_overrides_runpath=yes 9795 if test "$with_gnu_ld" = yes; then 9796 need_lib_prefix=no 9797 fi 9798 need_version=yes 9799 ;; 9800 9801sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9802 version_type=linux 9803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9804 soname_spec='${libname}${release}${shared_ext}$major' 9805 shlibpath_var=LD_LIBRARY_PATH 9806 case $host_vendor in 9807 sni) 9808 shlibpath_overrides_runpath=no 9809 need_lib_prefix=no 9810 export_dynamic_flag_spec='${wl}-Blargedynsym' 9811 runpath_var=LD_RUN_PATH 9812 ;; 9813 siemens) 9814 need_lib_prefix=no 9815 ;; 9816 motorola) 9817 need_lib_prefix=no 9818 need_version=no 9819 shlibpath_overrides_runpath=no 9820 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9821 ;; 9822 esac 9823 ;; 9824 9825sysv4*MP*) 9826 if test -d /usr/nec ;then 9827 version_type=linux 9828 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9829 soname_spec='$libname${shared_ext}.$major' 9830 shlibpath_var=LD_LIBRARY_PATH 9831 fi 9832 ;; 9833 9834uts4*) 9835 version_type=linux 9836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9837 soname_spec='${libname}${release}${shared_ext}$major' 9838 shlibpath_var=LD_LIBRARY_PATH 9839 ;; 9840 9841*) 9842 dynamic_linker=no 9843 ;; 9844esac 9845echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9846echo "${ECHO_T}$dynamic_linker" >&6 9847test "$dynamic_linker" = no && can_build_shared=no 9848 9849echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9850echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 9851hardcode_action= 9852if test -n "$hardcode_libdir_flag_spec" || \ 9853 test -n "$runpath_var " || \ 9854 test "X$hardcode_automatic"="Xyes" ; then 9855 9856 # We can hardcode non-existant directories. 9857 if test "$hardcode_direct" != no && 9858 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9859 # have to relink, otherwise we might link with an installed library 9860 # when we should be linking with a yet-to-be-installed one 9861 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 9862 test "$hardcode_minus_L" != no; then 9863 # Linking always hardcodes the temporary library directory. 9864 hardcode_action=relink 9865 else 9866 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9867 hardcode_action=immediate 9868 fi 9869else 9870 # We cannot hardcode anything, or else we can only hardcode existing 9871 # directories. 9872 hardcode_action=unsupported 9873fi 9874echo "$as_me:$LINENO: result: $hardcode_action" >&5 9875echo "${ECHO_T}$hardcode_action" >&6 9876 9877if test "$hardcode_action" = relink; then 9878 # Fast installation is not supported 9879 enable_fast_install=no 9880elif test "$shlibpath_overrides_runpath" = yes || 9881 test "$enable_shared" = no; then 9882 # Fast installation is not necessary 9883 enable_fast_install=needless 9884fi 9885 9886striplib= 9887old_striplib= 9888echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9889echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 9890if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9891 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9892 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9893 echo "$as_me:$LINENO: result: yes" >&5 9894echo "${ECHO_T}yes" >&6 9895else 9896# FIXME - insert some real tests, host_os isn't really good enough 9897 case $host_os in 9898 darwin*) 9899 if test -n "$STRIP" ; then 9900 striplib="$STRIP -x" 9901 echo "$as_me:$LINENO: result: yes" >&5 9902echo "${ECHO_T}yes" >&6 9903 else 9904 echo "$as_me:$LINENO: result: no" >&5 9905echo "${ECHO_T}no" >&6 9906fi 9907 ;; 9908 *) 9909 echo "$as_me:$LINENO: result: no" >&5 9910echo "${ECHO_T}no" >&6 9911 ;; 9912 esac 9913fi 9914 9915if test "x$enable_dlopen" != xyes; then 9916 enable_dlopen=unknown 9917 enable_dlopen_self=unknown 9918 enable_dlopen_self_static=unknown 9919else 9920 lt_cv_dlopen=no 9921 lt_cv_dlopen_libs= 9922 9923 case $host_os in 9924 beos*) 9925 lt_cv_dlopen="load_add_on" 9926 lt_cv_dlopen_libs= 9927 lt_cv_dlopen_self=yes 9928 ;; 9929 9930 mingw* | pw32*) 9931 lt_cv_dlopen="LoadLibrary" 9932 lt_cv_dlopen_libs= 9933 ;; 9934 9935 cygwin*) 9936 lt_cv_dlopen="dlopen" 9937 lt_cv_dlopen_libs= 9938 ;; 9939 9940 darwin*) 9941 # if libdl is installed we need to link against it 9942 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9943echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 9944if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9945 echo $ECHO_N "(cached) $ECHO_C" >&6 9946else 9947 ac_check_lib_save_LIBS=$LIBS 9948LIBS="-ldl $LIBS" 9949cat >conftest.$ac_ext <<_ACEOF 9950/* confdefs.h. */ 9951_ACEOF 9952cat confdefs.h >>conftest.$ac_ext 9953cat >>conftest.$ac_ext <<_ACEOF 9954/* end confdefs.h. */ 9955 9956/* Override any gcc2 internal prototype to avoid an error. */ 9957#ifdef __cplusplus 9958extern "C" 9959#endif 9960/* We use char because int might match the return type of a gcc2 9961 builtin and then its argument prototype would still apply. */ 9962char dlopen (); 9963#ifdef F77_DUMMY_MAIN 9964 9965# ifdef __cplusplus 9966 extern "C" 9967# endif 9968 int F77_DUMMY_MAIN() { return 1; } 9969 9970#endif 9971int 9972main () 9973{ 9974dlopen (); 9975 ; 9976 return 0; 9977} 9978_ACEOF 9979rm -f conftest.$ac_objext conftest$ac_exeext 9980if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9981 (eval $ac_link) 2>conftest.er1 9982 ac_status=$? 9983 grep -v '^ *+' conftest.er1 >conftest.err 9984 rm -f conftest.er1 9985 cat conftest.err >&5 9986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9987 (exit $ac_status); } && 9988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9990 (eval $ac_try) 2>&5 9991 ac_status=$? 9992 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9993 (exit $ac_status); }; } && 9994 { ac_try='test -s conftest$ac_exeext' 9995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9996 (eval $ac_try) 2>&5 9997 ac_status=$? 9998 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9999 (exit $ac_status); }; }; then 10000 ac_cv_lib_dl_dlopen=yes 10001else 10002 echo "$as_me: failed program was:" >&5 10003sed 's/^/| /' conftest.$ac_ext >&5 10004 10005ac_cv_lib_dl_dlopen=no 10006fi 10007rm -f conftest.err conftest.$ac_objext \ 10008 conftest$ac_exeext conftest.$ac_ext 10009LIBS=$ac_check_lib_save_LIBS 10010fi 10011echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10012echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 10013if test $ac_cv_lib_dl_dlopen = yes; then 10014 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10015else 10016 10017 lt_cv_dlopen="dyld" 10018 lt_cv_dlopen_libs= 10019 lt_cv_dlopen_self=yes 10020 10021fi 10022 10023 ;; 10024 10025 *) 10026 echo "$as_me:$LINENO: checking for shl_load" >&5 10027echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 10028if test "${ac_cv_func_shl_load+set}" = set; then 10029 echo $ECHO_N "(cached) $ECHO_C" >&6 10030else 10031 cat >conftest.$ac_ext <<_ACEOF 10032/* confdefs.h. */ 10033_ACEOF 10034cat confdefs.h >>conftest.$ac_ext 10035cat >>conftest.$ac_ext <<_ACEOF 10036/* end confdefs.h. */ 10037/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 10038 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10039#define shl_load innocuous_shl_load 10040 10041/* System header to define __stub macros and hopefully few prototypes, 10042 which can conflict with char shl_load (); below. 10043 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10044 <limits.h> exists even on freestanding compilers. */ 10045 10046#ifdef __STDC__ 10047# include <limits.h> 10048#else 10049# include <assert.h> 10050#endif 10051 10052#undef shl_load 10053 10054/* Override any gcc2 internal prototype to avoid an error. */ 10055#ifdef __cplusplus 10056extern "C" 10057{ 10058#endif 10059/* We use char because int might match the return type of a gcc2 10060 builtin and then its argument prototype would still apply. */ 10061char shl_load (); 10062/* The GNU C library defines this for functions which it implements 10063 to always fail with ENOSYS. Some functions are actually named 10064 something starting with __ and the normal name is an alias. */ 10065#if defined (__stub_shl_load) || defined (__stub___shl_load) 10066choke me 10067#else 10068char (*f) () = shl_load; 10069#endif 10070#ifdef __cplusplus 10071} 10072#endif 10073 10074#ifdef F77_DUMMY_MAIN 10075 10076# ifdef __cplusplus 10077 extern "C" 10078# endif 10079 int F77_DUMMY_MAIN() { return 1; } 10080 10081#endif 10082int 10083main () 10084{ 10085return f != shl_load; 10086 ; 10087 return 0; 10088} 10089_ACEOF 10090rm -f conftest.$ac_objext conftest$ac_exeext 10091if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10092 (eval $ac_link) 2>conftest.er1 10093 ac_status=$? 10094 grep -v '^ *+' conftest.er1 >conftest.err 10095 rm -f conftest.er1 10096 cat conftest.err >&5 10097 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10098 (exit $ac_status); } && 10099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10101 (eval $ac_try) 2>&5 10102 ac_status=$? 10103 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10104 (exit $ac_status); }; } && 10105 { ac_try='test -s conftest$ac_exeext' 10106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10107 (eval $ac_try) 2>&5 10108 ac_status=$? 10109 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10110 (exit $ac_status); }; }; then 10111 ac_cv_func_shl_load=yes 10112else 10113 echo "$as_me: failed program was:" >&5 10114sed 's/^/| /' conftest.$ac_ext >&5 10115 10116ac_cv_func_shl_load=no 10117fi 10118rm -f conftest.err conftest.$ac_objext \ 10119 conftest$ac_exeext conftest.$ac_ext 10120fi 10121echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 10122echo "${ECHO_T}$ac_cv_func_shl_load" >&6 10123if test $ac_cv_func_shl_load = yes; then 10124 lt_cv_dlopen="shl_load" 10125else 10126 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 10127echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 10128if test "${ac_cv_lib_dld_shl_load+set}" = set; then 10129 echo $ECHO_N "(cached) $ECHO_C" >&6 10130else 10131 ac_check_lib_save_LIBS=$LIBS 10132LIBS="-ldld $LIBS" 10133cat >conftest.$ac_ext <<_ACEOF 10134/* confdefs.h. */ 10135_ACEOF 10136cat confdefs.h >>conftest.$ac_ext 10137cat >>conftest.$ac_ext <<_ACEOF 10138/* end confdefs.h. */ 10139 10140/* Override any gcc2 internal prototype to avoid an error. */ 10141#ifdef __cplusplus 10142extern "C" 10143#endif 10144/* We use char because int might match the return type of a gcc2 10145 builtin and then its argument prototype would still apply. */ 10146char shl_load (); 10147#ifdef F77_DUMMY_MAIN 10148 10149# ifdef __cplusplus 10150 extern "C" 10151# endif 10152 int F77_DUMMY_MAIN() { return 1; } 10153 10154#endif 10155int 10156main () 10157{ 10158shl_load (); 10159 ; 10160 return 0; 10161} 10162_ACEOF 10163rm -f conftest.$ac_objext conftest$ac_exeext 10164if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10165 (eval $ac_link) 2>conftest.er1 10166 ac_status=$? 10167 grep -v '^ *+' conftest.er1 >conftest.err 10168 rm -f conftest.er1 10169 cat conftest.err >&5 10170 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10171 (exit $ac_status); } && 10172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10174 (eval $ac_try) 2>&5 10175 ac_status=$? 10176 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10177 (exit $ac_status); }; } && 10178 { ac_try='test -s conftest$ac_exeext' 10179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10180 (eval $ac_try) 2>&5 10181 ac_status=$? 10182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10183 (exit $ac_status); }; }; then 10184 ac_cv_lib_dld_shl_load=yes 10185else 10186 echo "$as_me: failed program was:" >&5 10187sed 's/^/| /' conftest.$ac_ext >&5 10188 10189ac_cv_lib_dld_shl_load=no 10190fi 10191rm -f conftest.err conftest.$ac_objext \ 10192 conftest$ac_exeext conftest.$ac_ext 10193LIBS=$ac_check_lib_save_LIBS 10194fi 10195echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 10196echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 10197if test $ac_cv_lib_dld_shl_load = yes; then 10198 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 10199else 10200 echo "$as_me:$LINENO: checking for dlopen" >&5 10201echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 10202if test "${ac_cv_func_dlopen+set}" = set; then 10203 echo $ECHO_N "(cached) $ECHO_C" >&6 10204else 10205 cat >conftest.$ac_ext <<_ACEOF 10206/* confdefs.h. */ 10207_ACEOF 10208cat confdefs.h >>conftest.$ac_ext 10209cat >>conftest.$ac_ext <<_ACEOF 10210/* end confdefs.h. */ 10211/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 10212 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10213#define dlopen innocuous_dlopen 10214 10215/* System header to define __stub macros and hopefully few prototypes, 10216 which can conflict with char dlopen (); below. 10217 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10218 <limits.h> exists even on freestanding compilers. */ 10219 10220#ifdef __STDC__ 10221# include <limits.h> 10222#else 10223# include <assert.h> 10224#endif 10225 10226#undef dlopen 10227 10228/* Override any gcc2 internal prototype to avoid an error. */ 10229#ifdef __cplusplus 10230extern "C" 10231{ 10232#endif 10233/* We use char because int might match the return type of a gcc2 10234 builtin and then its argument prototype would still apply. */ 10235char dlopen (); 10236/* The GNU C library defines this for functions which it implements 10237 to always fail with ENOSYS. Some functions are actually named 10238 something starting with __ and the normal name is an alias. */ 10239#if defined (__stub_dlopen) || defined (__stub___dlopen) 10240choke me 10241#else 10242char (*f) () = dlopen; 10243#endif 10244#ifdef __cplusplus 10245} 10246#endif 10247 10248#ifdef F77_DUMMY_MAIN 10249 10250# ifdef __cplusplus 10251 extern "C" 10252# endif 10253 int F77_DUMMY_MAIN() { return 1; } 10254 10255#endif 10256int 10257main () 10258{ 10259return f != dlopen; 10260 ; 10261 return 0; 10262} 10263_ACEOF 10264rm -f conftest.$ac_objext conftest$ac_exeext 10265if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10266 (eval $ac_link) 2>conftest.er1 10267 ac_status=$? 10268 grep -v '^ *+' conftest.er1 >conftest.err 10269 rm -f conftest.er1 10270 cat conftest.err >&5 10271 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10272 (exit $ac_status); } && 10273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10275 (eval $ac_try) 2>&5 10276 ac_status=$? 10277 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10278 (exit $ac_status); }; } && 10279 { ac_try='test -s conftest$ac_exeext' 10280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10281 (eval $ac_try) 2>&5 10282 ac_status=$? 10283 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10284 (exit $ac_status); }; }; then 10285 ac_cv_func_dlopen=yes 10286else 10287 echo "$as_me: failed program was:" >&5 10288sed 's/^/| /' conftest.$ac_ext >&5 10289 10290ac_cv_func_dlopen=no 10291fi 10292rm -f conftest.err conftest.$ac_objext \ 10293 conftest$ac_exeext conftest.$ac_ext 10294fi 10295echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 10296echo "${ECHO_T}$ac_cv_func_dlopen" >&6 10297if test $ac_cv_func_dlopen = yes; then 10298 lt_cv_dlopen="dlopen" 10299else 10300 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10301echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 10302if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10303 echo $ECHO_N "(cached) $ECHO_C" >&6 10304else 10305 ac_check_lib_save_LIBS=$LIBS 10306LIBS="-ldl $LIBS" 10307cat >conftest.$ac_ext <<_ACEOF 10308/* confdefs.h. */ 10309_ACEOF 10310cat confdefs.h >>conftest.$ac_ext 10311cat >>conftest.$ac_ext <<_ACEOF 10312/* end confdefs.h. */ 10313 10314/* Override any gcc2 internal prototype to avoid an error. */ 10315#ifdef __cplusplus 10316extern "C" 10317#endif 10318/* We use char because int might match the return type of a gcc2 10319 builtin and then its argument prototype would still apply. */ 10320char dlopen (); 10321#ifdef F77_DUMMY_MAIN 10322 10323# ifdef __cplusplus 10324 extern "C" 10325# endif 10326 int F77_DUMMY_MAIN() { return 1; } 10327 10328#endif 10329int 10330main () 10331{ 10332dlopen (); 10333 ; 10334 return 0; 10335} 10336_ACEOF 10337rm -f conftest.$ac_objext conftest$ac_exeext 10338if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10339 (eval $ac_link) 2>conftest.er1 10340 ac_status=$? 10341 grep -v '^ *+' conftest.er1 >conftest.err 10342 rm -f conftest.er1 10343 cat conftest.err >&5 10344 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10345 (exit $ac_status); } && 10346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10348 (eval $ac_try) 2>&5 10349 ac_status=$? 10350 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10351 (exit $ac_status); }; } && 10352 { ac_try='test -s conftest$ac_exeext' 10353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10354 (eval $ac_try) 2>&5 10355 ac_status=$? 10356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10357 (exit $ac_status); }; }; then 10358 ac_cv_lib_dl_dlopen=yes 10359else 10360 echo "$as_me: failed program was:" >&5 10361sed 's/^/| /' conftest.$ac_ext >&5 10362 10363ac_cv_lib_dl_dlopen=no 10364fi 10365rm -f conftest.err conftest.$ac_objext \ 10366 conftest$ac_exeext conftest.$ac_ext 10367LIBS=$ac_check_lib_save_LIBS 10368fi 10369echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10370echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 10371if test $ac_cv_lib_dl_dlopen = yes; then 10372 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10373else 10374 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10375echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 10376if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10377 echo $ECHO_N "(cached) $ECHO_C" >&6 10378else 10379 ac_check_lib_save_LIBS=$LIBS 10380LIBS="-lsvld $LIBS" 10381cat >conftest.$ac_ext <<_ACEOF 10382/* confdefs.h. */ 10383_ACEOF 10384cat confdefs.h >>conftest.$ac_ext 10385cat >>conftest.$ac_ext <<_ACEOF 10386/* end confdefs.h. */ 10387 10388/* Override any gcc2 internal prototype to avoid an error. */ 10389#ifdef __cplusplus 10390extern "C" 10391#endif 10392/* We use char because int might match the return type of a gcc2 10393 builtin and then its argument prototype would still apply. */ 10394char dlopen (); 10395#ifdef F77_DUMMY_MAIN 10396 10397# ifdef __cplusplus 10398 extern "C" 10399# endif 10400 int F77_DUMMY_MAIN() { return 1; } 10401 10402#endif 10403int 10404main () 10405{ 10406dlopen (); 10407 ; 10408 return 0; 10409} 10410_ACEOF 10411rm -f conftest.$ac_objext conftest$ac_exeext 10412if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10413 (eval $ac_link) 2>conftest.er1 10414 ac_status=$? 10415 grep -v '^ *+' conftest.er1 >conftest.err 10416 rm -f conftest.er1 10417 cat conftest.err >&5 10418 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10419 (exit $ac_status); } && 10420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10422 (eval $ac_try) 2>&5 10423 ac_status=$? 10424 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10425 (exit $ac_status); }; } && 10426 { ac_try='test -s conftest$ac_exeext' 10427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10428 (eval $ac_try) 2>&5 10429 ac_status=$? 10430 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10431 (exit $ac_status); }; }; then 10432 ac_cv_lib_svld_dlopen=yes 10433else 10434 echo "$as_me: failed program was:" >&5 10435sed 's/^/| /' conftest.$ac_ext >&5 10436 10437ac_cv_lib_svld_dlopen=no 10438fi 10439rm -f conftest.err conftest.$ac_objext \ 10440 conftest$ac_exeext conftest.$ac_ext 10441LIBS=$ac_check_lib_save_LIBS 10442fi 10443echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10444echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 10445if test $ac_cv_lib_svld_dlopen = yes; then 10446 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10447else 10448 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10449echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 10450if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10451 echo $ECHO_N "(cached) $ECHO_C" >&6 10452else 10453 ac_check_lib_save_LIBS=$LIBS 10454LIBS="-ldld $LIBS" 10455cat >conftest.$ac_ext <<_ACEOF 10456/* confdefs.h. */ 10457_ACEOF 10458cat confdefs.h >>conftest.$ac_ext 10459cat >>conftest.$ac_ext <<_ACEOF 10460/* end confdefs.h. */ 10461 10462/* Override any gcc2 internal prototype to avoid an error. */ 10463#ifdef __cplusplus 10464extern "C" 10465#endif 10466/* We use char because int might match the return type of a gcc2 10467 builtin and then its argument prototype would still apply. */ 10468char dld_link (); 10469#ifdef F77_DUMMY_MAIN 10470 10471# ifdef __cplusplus 10472 extern "C" 10473# endif 10474 int F77_DUMMY_MAIN() { return 1; } 10475 10476#endif 10477int 10478main () 10479{ 10480dld_link (); 10481 ; 10482 return 0; 10483} 10484_ACEOF 10485rm -f conftest.$ac_objext conftest$ac_exeext 10486if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10487 (eval $ac_link) 2>conftest.er1 10488 ac_status=$? 10489 grep -v '^ *+' conftest.er1 >conftest.err 10490 rm -f conftest.er1 10491 cat conftest.err >&5 10492 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10493 (exit $ac_status); } && 10494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10496 (eval $ac_try) 2>&5 10497 ac_status=$? 10498 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10499 (exit $ac_status); }; } && 10500 { ac_try='test -s conftest$ac_exeext' 10501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10502 (eval $ac_try) 2>&5 10503 ac_status=$? 10504 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10505 (exit $ac_status); }; }; then 10506 ac_cv_lib_dld_dld_link=yes 10507else 10508 echo "$as_me: failed program was:" >&5 10509sed 's/^/| /' conftest.$ac_ext >&5 10510 10511ac_cv_lib_dld_dld_link=no 10512fi 10513rm -f conftest.err conftest.$ac_objext \ 10514 conftest$ac_exeext conftest.$ac_ext 10515LIBS=$ac_check_lib_save_LIBS 10516fi 10517echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10518echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 10519if test $ac_cv_lib_dld_dld_link = yes; then 10520 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 10521fi 10522 10523 10524fi 10525 10526 10527fi 10528 10529 10530fi 10531 10532 10533fi 10534 10535 10536fi 10537 10538 ;; 10539 esac 10540 10541 if test "x$lt_cv_dlopen" != xno; then 10542 enable_dlopen=yes 10543 else 10544 enable_dlopen=no 10545 fi 10546 10547 case $lt_cv_dlopen in 10548 dlopen) 10549 save_CPPFLAGS="$CPPFLAGS" 10550 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10551 10552 save_LDFLAGS="$LDFLAGS" 10553 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10554 10555 save_LIBS="$LIBS" 10556 LIBS="$lt_cv_dlopen_libs $LIBS" 10557 10558 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10559echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 10560if test "${lt_cv_dlopen_self+set}" = set; then 10561 echo $ECHO_N "(cached) $ECHO_C" >&6 10562else 10563 if test "$cross_compiling" = yes; then : 10564 lt_cv_dlopen_self=cross 10565else 10566 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10567 lt_status=$lt_dlunknown 10568 cat > conftest.$ac_ext <<EOF 10569#line 10569 "configure" 10570#include "confdefs.h" 10571 10572#if HAVE_DLFCN_H 10573#include <dlfcn.h> 10574#endif 10575 10576#include <stdio.h> 10577 10578#ifdef RTLD_GLOBAL 10579# define LT_DLGLOBAL RTLD_GLOBAL 10580#else 10581# ifdef DL_GLOBAL 10582# define LT_DLGLOBAL DL_GLOBAL 10583# else 10584# define LT_DLGLOBAL 0 10585# endif 10586#endif 10587 10588/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10589 find out it does not work in some platform. */ 10590#ifndef LT_DLLAZY_OR_NOW 10591# ifdef RTLD_LAZY 10592# define LT_DLLAZY_OR_NOW RTLD_LAZY 10593# else 10594# ifdef DL_LAZY 10595# define LT_DLLAZY_OR_NOW DL_LAZY 10596# else 10597# ifdef RTLD_NOW 10598# define LT_DLLAZY_OR_NOW RTLD_NOW 10599# else 10600# ifdef DL_NOW 10601# define LT_DLLAZY_OR_NOW DL_NOW 10602# else 10603# define LT_DLLAZY_OR_NOW 0 10604# endif 10605# endif 10606# endif 10607# endif 10608#endif 10609 10610#ifdef __cplusplus 10611extern "C" void exit (int); 10612#endif 10613 10614void fnord() { int i=42;} 10615int main () 10616{ 10617 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10618 int status = $lt_dlunknown; 10619 10620 if (self) 10621 { 10622 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10623 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10624 /* dlclose (self); */ 10625 } 10626 10627 exit (status); 10628} 10629EOF 10630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10631 (eval $ac_link) 2>&5 10632 ac_status=$? 10633 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10634 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10635 (./conftest; exit; ) 2>/dev/null 10636 lt_status=$? 10637 case x$lt_status in 10638 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10639 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10640 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 10641 esac 10642 else : 10643 # compilation failed 10644 lt_cv_dlopen_self=no 10645 fi 10646fi 10647rm -fr conftest* 10648 10649 10650fi 10651echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10652echo "${ECHO_T}$lt_cv_dlopen_self" >&6 10653 10654 if test "x$lt_cv_dlopen_self" = xyes; then 10655 LDFLAGS="$LDFLAGS $link_static_flag" 10656 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10657echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 10658if test "${lt_cv_dlopen_self_static+set}" = set; then 10659 echo $ECHO_N "(cached) $ECHO_C" >&6 10660else 10661 if test "$cross_compiling" = yes; then : 10662 lt_cv_dlopen_self_static=cross 10663else 10664 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10665 lt_status=$lt_dlunknown 10666 cat > conftest.$ac_ext <<EOF 10667#line 10667 "configure" 10668#include "confdefs.h" 10669 10670#if HAVE_DLFCN_H 10671#include <dlfcn.h> 10672#endif 10673 10674#include <stdio.h> 10675 10676#ifdef RTLD_GLOBAL 10677# define LT_DLGLOBAL RTLD_GLOBAL 10678#else 10679# ifdef DL_GLOBAL 10680# define LT_DLGLOBAL DL_GLOBAL 10681# else 10682# define LT_DLGLOBAL 0 10683# endif 10684#endif 10685 10686/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10687 find out it does not work in some platform. */ 10688#ifndef LT_DLLAZY_OR_NOW 10689# ifdef RTLD_LAZY 10690# define LT_DLLAZY_OR_NOW RTLD_LAZY 10691# else 10692# ifdef DL_LAZY 10693# define LT_DLLAZY_OR_NOW DL_LAZY 10694# else 10695# ifdef RTLD_NOW 10696# define LT_DLLAZY_OR_NOW RTLD_NOW 10697# else 10698# ifdef DL_NOW 10699# define LT_DLLAZY_OR_NOW DL_NOW 10700# else 10701# define LT_DLLAZY_OR_NOW 0 10702# endif 10703# endif 10704# endif 10705# endif 10706#endif 10707 10708#ifdef __cplusplus 10709extern "C" void exit (int); 10710#endif 10711 10712void fnord() { int i=42;} 10713int main () 10714{ 10715 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10716 int status = $lt_dlunknown; 10717 10718 if (self) 10719 { 10720 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10721 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10722 /* dlclose (self); */ 10723 } 10724 10725 exit (status); 10726} 10727EOF 10728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10729 (eval $ac_link) 2>&5 10730 ac_status=$? 10731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10732 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10733 (./conftest; exit; ) 2>/dev/null 10734 lt_status=$? 10735 case x$lt_status in 10736 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10737 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10738 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 10739 esac 10740 else : 10741 # compilation failed 10742 lt_cv_dlopen_self_static=no 10743 fi 10744fi 10745rm -fr conftest* 10746 10747 10748fi 10749echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 10750echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 10751 fi 10752 10753 CPPFLAGS="$save_CPPFLAGS" 10754 LDFLAGS="$save_LDFLAGS" 10755 LIBS="$save_LIBS" 10756 ;; 10757 esac 10758 10759 case $lt_cv_dlopen_self in 10760 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10761 *) enable_dlopen_self=unknown ;; 10762 esac 10763 10764 case $lt_cv_dlopen_self_static in 10765 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10766 *) enable_dlopen_self_static=unknown ;; 10767 esac 10768fi 10769 10770 10771# Report which librarie types wil actually be built 10772echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 10773echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 10774echo "$as_me:$LINENO: result: $can_build_shared" >&5 10775echo "${ECHO_T}$can_build_shared" >&6 10776 10777echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 10778echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 10779test "$can_build_shared" = "no" && enable_shared=no 10780 10781# On AIX, shared libraries and static libraries use the same namespace, and 10782# are all built from PIC. 10783case "$host_os" in 10784aix3*) 10785 test "$enable_shared" = yes && enable_static=no 10786 if test -n "$RANLIB"; then 10787 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10788 postinstall_cmds='$RANLIB $lib' 10789 fi 10790 ;; 10791 10792aix4* | aix5*) 10793 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10794 test "$enable_shared" = yes && enable_static=no 10795 fi 10796 ;; 10797 darwin* | rhapsody*) 10798 if test "$GCC" = yes; then 10799 archive_cmds_need_lc=no 10800 case "$host_os" in 10801 rhapsody* | darwin1.[012]) 10802 allow_undefined_flag='-undefined suppress' 10803 ;; 10804 *) # Darwin 1.3 on 10805 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 10806 allow_undefined_flag='-flat_namespace -undefined suppress' 10807 else 10808 case ${MACOSX_DEPLOYMENT_TARGET} in 10809 10.[012]) 10810 allow_undefined_flag='-flat_namespace -undefined suppress' 10811 ;; 10812 10.*) 10813 allow_undefined_flag='-undefined dynamic_lookup' 10814 ;; 10815 esac 10816 fi 10817 ;; 10818 esac 10819 output_verbose_link_cmd='echo' 10820 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring' 10821 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 10822 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 10823 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}' 10824 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}' 10825 hardcode_direct=no 10826 hardcode_automatic=yes 10827 hardcode_shlibpath_var=unsupported 10828 whole_archive_flag_spec='-all_load $convenience' 10829 link_all_deplibs=yes 10830 else 10831 ld_shlibs=no 10832 fi 10833 ;; 10834esac 10835echo "$as_me:$LINENO: result: $enable_shared" >&5 10836echo "${ECHO_T}$enable_shared" >&6 10837 10838echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10839echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 10840# Make sure either enable_shared or enable_static is yes. 10841test "$enable_shared" = yes || enable_static=yes 10842echo "$as_me:$LINENO: result: $enable_static" >&5 10843echo "${ECHO_T}$enable_static" >&6 10844 10845# The else clause should only fire when bootstrapping the 10846# libtool distribution, otherwise you forgot to ship ltmain.sh 10847# with your package, and you will get complaints that there are 10848# no rules to generate ltmain.sh. 10849if test -f "$ltmain"; then 10850 # See if we are running on zsh, and set the options which allow our commands through 10851 # without removal of \ escapes. 10852 if test -n "${ZSH_VERSION+set}" ; then 10853 setopt NO_GLOB_SUBST 10854 fi 10855 # Now quote all the things that may contain metacharacters while being 10856 # careful not to overquote the AC_SUBSTed values. We take copies of the 10857 # variables and quote the copies for generation of the libtool script. 10858 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 10859 SED SHELL STRIP \ 10860 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 10861 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 10862 deplibs_check_method reload_flag reload_cmds need_locks \ 10863 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 10864 lt_cv_sys_global_symbol_to_c_name_address \ 10865 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 10866 old_postinstall_cmds old_postuninstall_cmds \ 10867 compiler \ 10868 CC \ 10869 LD \ 10870 lt_prog_compiler_wl \ 10871 lt_prog_compiler_pic \ 10872 lt_prog_compiler_static \ 10873 lt_prog_compiler_no_builtin_flag \ 10874 export_dynamic_flag_spec \ 10875 thread_safe_flag_spec \ 10876 whole_archive_flag_spec \ 10877 enable_shared_with_static_runtimes \ 10878 old_archive_cmds \ 10879 old_archive_from_new_cmds \ 10880 predep_objects \ 10881 postdep_objects \ 10882 predeps \ 10883 postdeps \ 10884 compiler_lib_search_path \ 10885 archive_cmds \ 10886 archive_expsym_cmds \ 10887 postinstall_cmds \ 10888 postuninstall_cmds \ 10889 old_archive_from_expsyms_cmds \ 10890 allow_undefined_flag \ 10891 no_undefined_flag \ 10892 export_symbols_cmds \ 10893 hardcode_libdir_flag_spec \ 10894 hardcode_libdir_flag_spec_ld \ 10895 hardcode_libdir_separator \ 10896 hardcode_automatic \ 10897 module_cmds \ 10898 module_expsym_cmds \ 10899 lt_cv_prog_compiler_c_o \ 10900 exclude_expsyms \ 10901 include_expsyms; do 10902 10903 case $var in 10904 old_archive_cmds | \ 10905 old_archive_from_new_cmds | \ 10906 archive_cmds | \ 10907 archive_expsym_cmds | \ 10908 module_cmds | \ 10909 module_expsym_cmds | \ 10910 old_archive_from_expsyms_cmds | \ 10911 export_symbols_cmds | \ 10912 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 10913 postinstall_cmds | postuninstall_cmds | \ 10914 old_postinstall_cmds | old_postuninstall_cmds | \ 10915 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10916 # Double-quote double-evaled strings. 10917 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10918 ;; 10919 *) 10920 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10921 ;; 10922 esac 10923 done 10924 10925 case $lt_echo in 10926 *'\$0 --fallback-echo"') 10927 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 10928 ;; 10929 esac 10930 10931cfgfile="${ofile}T" 10932 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10933 $rm -f "$cfgfile" 10934 { echo "$as_me:$LINENO: creating $ofile" >&5 10935echo "$as_me: creating $ofile" >&6;} 10936 10937 cat <<__EOF__ >> "$cfgfile" 10938#! $SHELL 10939 10940# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10941# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10942# NOTE: Changes made to this file will be lost: look at ltmain.sh. 10943# 10944# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 10945# Free Software Foundation, Inc. 10946# 10947# This file is part of GNU Libtool: 10948# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 10949# 10950# This program is free software; you can redistribute it and/or modify 10951# it under the terms of the GNU General Public License as published by 10952# the Free Software Foundation; either version 2 of the License, or 10953# (at your option) any later version. 10954# 10955# This program is distributed in the hope that it will be useful, but 10956# WITHOUT ANY WARRANTY; without even the implied warranty of 10957# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10958# General Public License for more details. 10959# 10960# You should have received a copy of the GNU General Public License 10961# along with this program; if not, write to the Free Software 10962# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 10963# 10964# As a special exception to the GNU General Public License, if you 10965# distribute this file as part of a program that contains a 10966# configuration script generated by Autoconf, you may include it under 10967# the same distribution terms that you use for the rest of that program. 10968 10969# A sed program that does not truncate output. 10970SED=$lt_SED 10971 10972# Sed that helps us avoid accidentally triggering echo(1) options like -n. 10973Xsed="$SED -e s/^X//" 10974 10975# The HP-UX ksh and POSIX shell print the target directory to stdout 10976# if CDPATH is set. 10977if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 10978 10979# The names of the tagged configurations supported by this script. 10980available_tags= 10981 10982# ### BEGIN LIBTOOL CONFIG 10983 10984# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10985 10986# Shell to use when invoking shell scripts. 10987SHELL=$lt_SHELL 10988 10989# Whether or not to build shared libraries. 10990build_libtool_libs=$enable_shared 10991 10992# Whether or not to build static libraries. 10993build_old_libs=$enable_static 10994 10995# Whether or not to add -lc for building shared libraries. 10996build_libtool_need_lc=$archive_cmds_need_lc 10997 10998# Whether or not to disallow shared libs when runtime libs are static 10999allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 11000 11001# Whether or not to optimize for fast installation. 11002fast_install=$enable_fast_install 11003 11004# The host system. 11005host_alias=$host_alias 11006host=$host 11007 11008# An echo program that does not interpret backslashes. 11009echo=$lt_echo 11010 11011# The archiver. 11012AR=$lt_AR 11013AR_FLAGS=$lt_AR_FLAGS 11014 11015# A C compiler. 11016LTCC=$lt_LTCC 11017 11018# A language-specific compiler. 11019CC=$lt_compiler 11020 11021# Is the compiler the GNU C compiler? 11022with_gcc=$GCC 11023 11024# An ERE matcher. 11025EGREP=$lt_EGREP 11026 11027# The linker used to build libraries. 11028LD=$lt_LD 11029 11030# Whether we need hard or soft links. 11031LN_S=$lt_LN_S 11032 11033# A BSD-compatible nm program. 11034NM=$lt_NM 11035 11036# A symbol stripping program 11037STRIP=$lt_STRIP 11038 11039# Used to examine libraries when file_magic_cmd begins "file" 11040MAGIC_CMD=$MAGIC_CMD 11041 11042# Used on cygwin: DLL creation program. 11043DLLTOOL="$DLLTOOL" 11044 11045# Used on cygwin: object dumper. 11046OBJDUMP="$OBJDUMP" 11047 11048# Used on cygwin: assembler. 11049AS="$AS" 11050 11051# The name of the directory that contains temporary libtool files. 11052objdir=$objdir 11053 11054# How to create reloadable object files. 11055reload_flag=$lt_reload_flag 11056reload_cmds=$lt_reload_cmds 11057 11058# How to pass a linker flag through the compiler. 11059wl=$lt_lt_prog_compiler_wl 11060 11061# Object file suffix (normally "o"). 11062objext="$ac_objext" 11063 11064# Old archive suffix (normally "a"). 11065libext="$libext" 11066 11067# Shared library suffix (normally ".so"). 11068shrext_cmds='$shrext_cmds' 11069 11070# Executable file suffix (normally ""). 11071exeext="$exeext" 11072 11073# Additional compiler flags for building library objects. 11074pic_flag=$lt_lt_prog_compiler_pic 11075pic_mode=$pic_mode 11076 11077# What is the maximum length of a command? 11078max_cmd_len=$lt_cv_sys_max_cmd_len 11079 11080# Does compiler simultaneously support -c and -o options? 11081compiler_c_o=$lt_lt_cv_prog_compiler_c_o 11082 11083# Must we lock files when doing compilation ? 11084need_locks=$lt_need_locks 11085 11086# Do we need the lib prefix for modules? 11087need_lib_prefix=$need_lib_prefix 11088 11089# Do we need a version for libraries? 11090need_version=$need_version 11091 11092# Whether dlopen is supported. 11093dlopen_support=$enable_dlopen 11094 11095# Whether dlopen of programs is supported. 11096dlopen_self=$enable_dlopen_self 11097 11098# Whether dlopen of statically linked programs is supported. 11099dlopen_self_static=$enable_dlopen_self_static 11100 11101# Compiler flag to prevent dynamic linking. 11102link_static_flag=$lt_lt_prog_compiler_static 11103 11104# Compiler flag to turn off builtin functions. 11105no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 11106 11107# Compiler flag to allow reflexive dlopens. 11108export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 11109 11110# Compiler flag to generate shared objects directly from archives. 11111whole_archive_flag_spec=$lt_whole_archive_flag_spec 11112 11113# Compiler flag to generate thread-safe objects. 11114thread_safe_flag_spec=$lt_thread_safe_flag_spec 11115 11116# Library versioning type. 11117version_type=$version_type 11118 11119# Format of library name prefix. 11120libname_spec=$lt_libname_spec 11121 11122# List of archive names. First name is the real one, the rest are links. 11123# The last name is the one that the linker finds with -lNAME. 11124library_names_spec=$lt_library_names_spec 11125 11126# The coded name of the library, if different from the real name. 11127soname_spec=$lt_soname_spec 11128 11129# Commands used to build and install an old-style archive. 11130RANLIB=$lt_RANLIB 11131old_archive_cmds=$lt_old_archive_cmds 11132old_postinstall_cmds=$lt_old_postinstall_cmds 11133old_postuninstall_cmds=$lt_old_postuninstall_cmds 11134 11135# Create an old-style archive from a shared archive. 11136old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 11137 11138# Create a temporary old-style archive to link instead of a shared archive. 11139old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 11140 11141# Commands used to build and install a shared archive. 11142archive_cmds=$lt_archive_cmds 11143archive_expsym_cmds=$lt_archive_expsym_cmds 11144postinstall_cmds=$lt_postinstall_cmds 11145postuninstall_cmds=$lt_postuninstall_cmds 11146 11147# Commands used to build a loadable module (assumed same as above if empty) 11148module_cmds=$lt_module_cmds 11149module_expsym_cmds=$lt_module_expsym_cmds 11150 11151# Commands to strip libraries. 11152old_striplib=$lt_old_striplib 11153striplib=$lt_striplib 11154 11155# Dependencies to place before the objects being linked to create a 11156# shared library. 11157predep_objects=$lt_predep_objects 11158 11159# Dependencies to place after the objects being linked to create a 11160# shared library. 11161postdep_objects=$lt_postdep_objects 11162 11163# Dependencies to place before the objects being linked to create a 11164# shared library. 11165predeps=$lt_predeps 11166 11167# Dependencies to place after the objects being linked to create a 11168# shared library. 11169postdeps=$lt_postdeps 11170 11171# The library search path used internally by the compiler when linking 11172# a shared library. 11173compiler_lib_search_path=$lt_compiler_lib_search_path 11174 11175# Method to check whether dependent libraries are shared objects. 11176deplibs_check_method=$lt_deplibs_check_method 11177 11178# Command to use when deplibs_check_method == file_magic. 11179file_magic_cmd=$lt_file_magic_cmd 11180 11181# Flag that allows shared libraries with undefined symbols to be built. 11182allow_undefined_flag=$lt_allow_undefined_flag 11183 11184# Flag that forces no undefined symbols. 11185no_undefined_flag=$lt_no_undefined_flag 11186 11187# Commands used to finish a libtool library installation in a directory. 11188finish_cmds=$lt_finish_cmds 11189 11190# Same as above, but a single script fragment to be evaled but not shown. 11191finish_eval=$lt_finish_eval 11192 11193# Take the output of nm and produce a listing of raw symbols and C names. 11194global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 11195 11196# Transform the output of nm in a proper C declaration 11197global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 11198 11199# Transform the output of nm in a C name address pair 11200global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 11201 11202# This is the shared library runtime path variable. 11203runpath_var=$runpath_var 11204 11205# This is the shared library path variable. 11206shlibpath_var=$shlibpath_var 11207 11208# Is shlibpath searched before the hard-coded library search path? 11209shlibpath_overrides_runpath=$shlibpath_overrides_runpath 11210 11211# How to hardcode a shared library path into an executable. 11212hardcode_action=$hardcode_action 11213 11214# Whether we should hardcode library paths into libraries. 11215hardcode_into_libs=$hardcode_into_libs 11216 11217# Flag to hardcode \$libdir into a binary during linking. 11218# This must work even if \$libdir does not exist. 11219hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 11220 11221# If ld is used when linking, flag to hardcode \$libdir into 11222# a binary during linking. This must work even if \$libdir does 11223# not exist. 11224hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 11225 11226# Whether we need a single -rpath flag with a separated argument. 11227hardcode_libdir_separator=$lt_hardcode_libdir_separator 11228 11229# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 11230# resulting binary. 11231hardcode_direct=$hardcode_direct 11232 11233# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 11234# resulting binary. 11235hardcode_minus_L=$hardcode_minus_L 11236 11237# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 11238# the resulting binary. 11239hardcode_shlibpath_var=$hardcode_shlibpath_var 11240 11241# Set to yes if building a shared library automatically hardcodes DIR into the library 11242# and all subsequent libraries and executables linked against it. 11243hardcode_automatic=$hardcode_automatic 11244 11245# Variables whose values should be saved in libtool wrapper scripts and 11246# restored at relink time. 11247variables_saved_for_relink="$variables_saved_for_relink" 11248 11249# Whether libtool must link a program against all its dependency libraries. 11250link_all_deplibs=$link_all_deplibs 11251 11252# Compile-time system search path for libraries 11253sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 11254 11255# Run-time system search path for libraries 11256sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 11257 11258# Fix the shell variable \$srcfile for the compiler. 11259fix_srcfile_path="$fix_srcfile_path" 11260 11261# Set to yes if exported symbols are required. 11262always_export_symbols=$always_export_symbols 11263 11264# The commands to list exported symbols. 11265export_symbols_cmds=$lt_export_symbols_cmds 11266 11267# The commands to extract the exported symbol list from a shared archive. 11268extract_expsyms_cmds=$lt_extract_expsyms_cmds 11269 11270# Symbols that should not be listed in the preloaded symbols. 11271exclude_expsyms=$lt_exclude_expsyms 11272 11273# Symbols that must always be exported. 11274include_expsyms=$lt_include_expsyms 11275 11276# ### END LIBTOOL CONFIG 11277 11278__EOF__ 11279 11280 11281 case $host_os in 11282 aix3*) 11283 cat <<\EOF >> "$cfgfile" 11284 11285# AIX sometimes has problems with the GCC collect2 program. For some 11286# reason, if we set the COLLECT_NAMES environment variable, the problems 11287# vanish in a puff of smoke. 11288if test "X${COLLECT_NAMES+set}" != Xset; then 11289 COLLECT_NAMES= 11290 export COLLECT_NAMES 11291fi 11292EOF 11293 ;; 11294 esac 11295 11296 # We use sed instead of cat because bash on DJGPP gets confused if 11297 # if finds mixed CR/LF and LF-only lines. Since sed operates in 11298 # text mode, it properly converts lines to CR/LF. This bash problem 11299 # is reportedly fixed, but why not run on old versions too? 11300 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 11301 11302 mv -f "$cfgfile" "$ofile" || \ 11303 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 11304 chmod +x "$ofile" 11305 11306else 11307 # If there is no Makefile yet, we rely on a make rule to execute 11308 # `config.status --recheck' to rerun these tests and create the 11309 # libtool script then. 11310 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 11311 if test -f "$ltmain_in"; then 11312 test -f Makefile && make "$ltmain" 11313 fi 11314fi 11315 11316 11317ac_ext=c 11318ac_cpp='$CPP $CPPFLAGS' 11319ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11320ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11321ac_compiler_gnu=$ac_cv_c_compiler_gnu 11322 11323CC="$lt_save_CC" 11324 11325 11326# Check whether --with-tags or --without-tags was given. 11327if test "${with_tags+set}" = set; then 11328 withval="$with_tags" 11329 tagnames="$withval" 11330fi; 11331 11332if test -f "$ltmain" && test -n "$tagnames"; then 11333 if test ! -f "${ofile}"; then 11334 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 11335echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 11336 fi 11337 11338 if test -z "$LTCC"; then 11339 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 11340 if test -z "$LTCC"; then 11341 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 11342echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 11343 else 11344 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 11345echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 11346 fi 11347 fi 11348 11349 # Extract list of available tagged configurations in $ofile. 11350 # Note that this assumes the entire list is on one line. 11351 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 11352 11353 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 11354 for tagname in $tagnames; do 11355 IFS="$lt_save_ifs" 11356 # Check whether tagname contains only valid characters 11357 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 11358 "") ;; 11359 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 11360echo "$as_me: error: invalid tag name: $tagname" >&2;} 11361 { (exit 1); exit 1; }; } 11362 ;; 11363 esac 11364 11365 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 11366 then 11367 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 11368echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 11369 { (exit 1); exit 1; }; } 11370 fi 11371 11372 # Update the list of available tags. 11373 if test -n "$tagname"; then 11374 echo appending configuration tag \"$tagname\" to $ofile 11375 11376 case $tagname in 11377 CXX) 11378 if test -n "$CXX" && test "X$CXX" != "Xno"; then 11379 ac_ext=cc 11380ac_cpp='$CXXCPP $CPPFLAGS' 11381ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11382ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11383ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11384 11385 11386 11387 11388archive_cmds_need_lc_CXX=no 11389allow_undefined_flag_CXX= 11390always_export_symbols_CXX=no 11391archive_expsym_cmds_CXX= 11392export_dynamic_flag_spec_CXX= 11393hardcode_direct_CXX=no 11394hardcode_libdir_flag_spec_CXX= 11395hardcode_libdir_flag_spec_ld_CXX= 11396hardcode_libdir_separator_CXX= 11397hardcode_minus_L_CXX=no 11398hardcode_automatic_CXX=no 11399module_cmds_CXX= 11400module_expsym_cmds_CXX= 11401link_all_deplibs_CXX=unknown 11402old_archive_cmds_CXX=$old_archive_cmds 11403no_undefined_flag_CXX= 11404whole_archive_flag_spec_CXX= 11405enable_shared_with_static_runtimes_CXX=no 11406 11407# Dependencies to place before and after the object being linked: 11408predep_objects_CXX= 11409postdep_objects_CXX= 11410predeps_CXX= 11411postdeps_CXX= 11412compiler_lib_search_path_CXX= 11413 11414# Source file extension for C++ test sources. 11415ac_ext=cc 11416 11417# Object file extension for compiled C++ test sources. 11418objext=o 11419objext_CXX=$objext 11420 11421# Code to be used in simple compile tests 11422lt_simple_compile_test_code="int some_variable = 0;\n" 11423 11424# Code to be used in simple link tests 11425lt_simple_link_test_code='int main(int, char *) { return(0); }\n' 11426 11427# ltmain only uses $CC for tagged configurations so make sure $CC is set. 11428 11429# If no C compiler was specified, use CC. 11430LTCC=${LTCC-"$CC"} 11431 11432# Allow CC to be a program name with arguments. 11433compiler=$CC 11434 11435 11436# Allow CC to be a program name with arguments. 11437lt_save_CC=$CC 11438lt_save_LD=$LD 11439lt_save_GCC=$GCC 11440GCC=$GXX 11441lt_save_with_gnu_ld=$with_gnu_ld 11442lt_save_path_LD=$lt_cv_path_LD 11443if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 11444 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 11445else 11446 unset lt_cv_prog_gnu_ld 11447fi 11448if test -n "${lt_cv_path_LDCXX+set}"; then 11449 lt_cv_path_LD=$lt_cv_path_LDCXX 11450else 11451 unset lt_cv_path_LD 11452fi 11453test -z "${LDCXX+set}" || LD=$LDCXX 11454CC=${CXX-"c++"} 11455compiler=$CC 11456compiler_CXX=$CC 11457cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` 11458 11459# We don't want -fno-exception wen compiling C++ code, so set the 11460# no_builtin_flag separately 11461if test "$GXX" = yes; then 11462 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 11463else 11464 lt_prog_compiler_no_builtin_flag_CXX= 11465fi 11466 11467if test "$GXX" = yes; then 11468 # Set up default GNU C++ configuration 11469 11470 11471# Check whether --with-gnu-ld or --without-gnu-ld was given. 11472if test "${with_gnu_ld+set}" = set; then 11473 withval="$with_gnu_ld" 11474 test "$withval" = no || with_gnu_ld=yes 11475else 11476 with_gnu_ld=no 11477fi; 11478ac_prog=ld 11479if test "$GCC" = yes; then 11480 # Check if gcc -print-prog-name=ld gives a path. 11481 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 11482echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 11483 case $host in 11484 *-*-mingw*) 11485 # gcc leaves a trailing carriage return which upsets mingw 11486 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11487 *) 11488 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11489 esac 11490 case $ac_prog in 11491 # Accept absolute paths. 11492 [\\/]* | ?:[\\/]*) 11493 re_direlt='/[^/][^/]*/\.\./' 11494 # Canonicalize the pathname of ld 11495 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 11496 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 11497 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 11498 done 11499 test -z "$LD" && LD="$ac_prog" 11500 ;; 11501 "") 11502 # If it fails, then pretend we aren't using GCC. 11503 ac_prog=ld 11504 ;; 11505 *) 11506 # If it is relative, then search for the first ld in PATH. 11507 with_gnu_ld=unknown 11508 ;; 11509 esac 11510elif test "$with_gnu_ld" = yes; then 11511 echo "$as_me:$LINENO: checking for GNU ld" >&5 11512echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 11513else 11514 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 11515echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 11516fi 11517if test "${lt_cv_path_LD+set}" = set; then 11518 echo $ECHO_N "(cached) $ECHO_C" >&6 11519else 11520 if test -z "$LD"; then 11521 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11522 for ac_dir in $PATH; do 11523 IFS="$lt_save_ifs" 11524 test -z "$ac_dir" && ac_dir=. 11525 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11526 lt_cv_path_LD="$ac_dir/$ac_prog" 11527 # Check to see if the program is GNU ld. I'd rather use --version, 11528 # but apparently some GNU ld's only accept -v. 11529 # Break only if it was the GNU/non-GNU ld that we prefer. 11530 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11531 *GNU* | *'with BFD'*) 11532 test "$with_gnu_ld" != no && break 11533 ;; 11534 *) 11535 test "$with_gnu_ld" != yes && break 11536 ;; 11537 esac 11538 fi 11539 done 11540 IFS="$lt_save_ifs" 11541else 11542 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11543fi 11544fi 11545 11546LD="$lt_cv_path_LD" 11547if test -n "$LD"; then 11548 echo "$as_me:$LINENO: result: $LD" >&5 11549echo "${ECHO_T}$LD" >&6 11550else 11551 echo "$as_me:$LINENO: result: no" >&5 11552echo "${ECHO_T}no" >&6 11553fi 11554test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 11555echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 11556 { (exit 1); exit 1; }; } 11557echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 11558echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 11559if test "${lt_cv_prog_gnu_ld+set}" = set; then 11560 echo $ECHO_N "(cached) $ECHO_C" >&6 11561else 11562 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 11563case `$LD -v 2>&1 </dev/null` in 11564*GNU* | *'with BFD'*) 11565 lt_cv_prog_gnu_ld=yes 11566 ;; 11567*) 11568 lt_cv_prog_gnu_ld=no 11569 ;; 11570esac 11571fi 11572echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 11573echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 11574with_gnu_ld=$lt_cv_prog_gnu_ld 11575 11576 11577 11578 # Check if GNU C++ uses GNU ld as the underlying linker, since the 11579 # archiving commands below assume that GNU ld is being used. 11580 if test "$with_gnu_ld" = yes; then 11581 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11582 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' 11583 11584 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11585 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11586 11587 # If archive_cmds runs LD, not CC, wlarc should be empty 11588 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 11589 # investigate it a little bit more. (MM) 11590 wlarc='${wl}' 11591 11592 # ancient GNU ld didn't support --whole-archive et. al. 11593 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 11594 grep 'no-whole-archive' > /dev/null; then 11595 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11596 else 11597 whole_archive_flag_spec_CXX= 11598 fi 11599 else 11600 with_gnu_ld=no 11601 wlarc= 11602 11603 # A generic and very simple default shared library creation 11604 # command for GNU C++ for the case where it uses the native 11605 # linker, instead of GNU ld. If possible, this setting should 11606 # overridden to take advantage of the native linker features on 11607 # the platform it is being used on. 11608 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11609 fi 11610 11611 # Commands to make compiler produce verbose output that lists 11612 # what "hidden" libraries, object files and flags are used when 11613 # linking a shared library. 11614 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11615 11616else 11617 GXX=no 11618 with_gnu_ld=no 11619 wlarc= 11620fi 11621 11622# PORTME: fill in a description of your system's C++ link characteristics 11623echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11624echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 11625ld_shlibs_CXX=yes 11626case $host_os in 11627 aix3*) 11628 # FIXME: insert proper C++ library support 11629 ld_shlibs_CXX=no 11630 ;; 11631 aix4* | aix5*) 11632 if test "$host_cpu" = ia64; then 11633 # On IA64, the linker does run time linking by default, so we don't 11634 # have to do anything special. 11635 aix_use_runtimelinking=no 11636 exp_sym_flag='-Bexport' 11637 no_entry_flag="" 11638 else 11639 aix_use_runtimelinking=no 11640 11641 # Test if we are trying to use run time linking or normal 11642 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11643 # need to do runtime linking. 11644 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 11645 for ld_flag in $LDFLAGS; do 11646 case $ld_flag in 11647 *-brtl*) 11648 aix_use_runtimelinking=yes 11649 break 11650 ;; 11651 esac 11652 done 11653 esac 11654 11655 exp_sym_flag='-bexport' 11656 no_entry_flag='-bnoentry' 11657 fi 11658 11659 # When large executables or shared objects are built, AIX ld can 11660 # have problems creating the table of contents. If linking a library 11661 # or program results in "error TOC overflow" add -mminimal-toc to 11662 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11663 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11664 11665 archive_cmds_CXX='' 11666 hardcode_direct_CXX=yes 11667 hardcode_libdir_separator_CXX=':' 11668 link_all_deplibs_CXX=yes 11669 11670 if test "$GXX" = yes; then 11671 case $host_os in aix4.012|aix4.012.*) 11672 # We only want to do this on AIX 4.2 and lower, the check 11673 # below for broken collect2 doesn't work under 4.3+ 11674 collect2name=`${CC} -print-prog-name=collect2` 11675 if test -f "$collect2name" && \ 11676 strings "$collect2name" | grep resolve_lib_name >/dev/null 11677 then 11678 # We have reworked collect2 11679 hardcode_direct_CXX=yes 11680 else 11681 # We have old collect2 11682 hardcode_direct_CXX=unsupported 11683 # It fails to find uninstalled libraries when the uninstalled 11684 # path is not listed in the libpath. Setting hardcode_minus_L 11685 # to unsupported forces relinking 11686 hardcode_minus_L_CXX=yes 11687 hardcode_libdir_flag_spec_CXX='-L$libdir' 11688 hardcode_libdir_separator_CXX= 11689 fi 11690 esac 11691 shared_flag='-shared' 11692 else 11693 # not using gcc 11694 if test "$host_cpu" = ia64; then 11695 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11696 # chokes on -Wl,-G. The following line is correct: 11697 shared_flag='-G' 11698 else 11699 if test "$aix_use_runtimelinking" = yes; then 11700 shared_flag='${wl}-G' 11701 else 11702 shared_flag='${wl}-bM:SRE' 11703 fi 11704 fi 11705 fi 11706 11707 # It seems that -bexpall does not export symbols beginning with 11708 # underscore (_), so it is better to generate a list of symbols to export. 11709 always_export_symbols_CXX=yes 11710 if test "$aix_use_runtimelinking" = yes; then 11711 # Warning - without using the other runtime loading flags (-brtl), 11712 # -berok will link without error, but may produce a broken library. 11713 allow_undefined_flag_CXX='-berok' 11714 # Determine the default libpath from the value encoded in an empty executable. 11715 cat >conftest.$ac_ext <<_ACEOF 11716/* confdefs.h. */ 11717_ACEOF 11718cat confdefs.h >>conftest.$ac_ext 11719cat >>conftest.$ac_ext <<_ACEOF 11720/* end confdefs.h. */ 11721 11722#ifdef F77_DUMMY_MAIN 11723 11724# ifdef __cplusplus 11725 extern "C" 11726# endif 11727 int F77_DUMMY_MAIN() { return 1; } 11728 11729#endif 11730int 11731main () 11732{ 11733 11734 ; 11735 return 0; 11736} 11737_ACEOF 11738rm -f conftest.$ac_objext conftest$ac_exeext 11739if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11740 (eval $ac_link) 2>conftest.er1 11741 ac_status=$? 11742 grep -v '^ *+' conftest.er1 >conftest.err 11743 rm -f conftest.er1 11744 cat conftest.err >&5 11745 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11746 (exit $ac_status); } && 11747 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11749 (eval $ac_try) 2>&5 11750 ac_status=$? 11751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11752 (exit $ac_status); }; } && 11753 { ac_try='test -s conftest$ac_exeext' 11754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11755 (eval $ac_try) 2>&5 11756 ac_status=$? 11757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11758 (exit $ac_status); }; }; then 11759 11760aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11761}'` 11762# Check for a 64-bit object if we didn't find anything. 11763if 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; } 11764}'`; fi 11765else 11766 echo "$as_me: failed program was:" >&5 11767sed 's/^/| /' conftest.$ac_ext >&5 11768 11769fi 11770rm -f conftest.err conftest.$ac_objext \ 11771 conftest$ac_exeext conftest.$ac_ext 11772if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11773 11774 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11775 11776 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 11777 else 11778 if test "$host_cpu" = ia64; then 11779 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11780 allow_undefined_flag_CXX="-z nodefs" 11781 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 11782 else 11783 # Determine the default libpath from the value encoded in an empty executable. 11784 cat >conftest.$ac_ext <<_ACEOF 11785/* confdefs.h. */ 11786_ACEOF 11787cat confdefs.h >>conftest.$ac_ext 11788cat >>conftest.$ac_ext <<_ACEOF 11789/* end confdefs.h. */ 11790 11791#ifdef F77_DUMMY_MAIN 11792 11793# ifdef __cplusplus 11794 extern "C" 11795# endif 11796 int F77_DUMMY_MAIN() { return 1; } 11797 11798#endif 11799int 11800main () 11801{ 11802 11803 ; 11804 return 0; 11805} 11806_ACEOF 11807rm -f conftest.$ac_objext conftest$ac_exeext 11808if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11809 (eval $ac_link) 2>conftest.er1 11810 ac_status=$? 11811 grep -v '^ *+' conftest.er1 >conftest.err 11812 rm -f conftest.er1 11813 cat conftest.err >&5 11814 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11815 (exit $ac_status); } && 11816 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11818 (eval $ac_try) 2>&5 11819 ac_status=$? 11820 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11821 (exit $ac_status); }; } && 11822 { ac_try='test -s conftest$ac_exeext' 11823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11824 (eval $ac_try) 2>&5 11825 ac_status=$? 11826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11827 (exit $ac_status); }; }; then 11828 11829aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11830}'` 11831# Check for a 64-bit object if we didn't find anything. 11832if 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; } 11833}'`; fi 11834else 11835 echo "$as_me: failed program was:" >&5 11836sed 's/^/| /' conftest.$ac_ext >&5 11837 11838fi 11839rm -f conftest.err conftest.$ac_objext \ 11840 conftest$ac_exeext conftest.$ac_ext 11841if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11842 11843 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11844 # Warning - without using the other run time loading flags, 11845 # -berok will link without error, but may produce a broken library. 11846 no_undefined_flag_CXX=' ${wl}-bernotok' 11847 allow_undefined_flag_CXX=' ${wl}-berok' 11848 # -bexpall does not export symbols beginning with underscore (_) 11849 always_export_symbols_CXX=yes 11850 # Exported symbols can be pulled into shared objects from archives 11851 whole_archive_flag_spec_CXX=' ' 11852 archive_cmds_need_lc_CXX=yes 11853 # This is similar to how AIX traditionally builds it's shared libraries. 11854 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 11855 fi 11856 fi 11857 ;; 11858 chorus*) 11859 case $cc_basename in 11860 *) 11861 # FIXME: insert proper C++ library support 11862 ld_shlibs_CXX=no 11863 ;; 11864 esac 11865 ;; 11866 11867 cygwin* | mingw* | pw32*) 11868 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11869 # as there is no search path for DLLs. 11870 hardcode_libdir_flag_spec_CXX='-L$libdir' 11871 allow_undefined_flag_CXX=unsupported 11872 always_export_symbols_CXX=no 11873 enable_shared_with_static_runtimes_CXX=yes 11874 11875 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11876 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 11877 # If the export-symbols file already is a .def file (1st line 11878 # is EXPORTS), use it as is; otherwise, prepend... 11879 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11880 cp $export_symbols $output_objdir/$soname.def; 11881 else 11882 echo EXPORTS > $output_objdir/$soname.def; 11883 cat $export_symbols >> $output_objdir/$soname.def; 11884 fi~ 11885 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 11886 else 11887 ld_shlibs_CXX=no 11888 fi 11889 ;; 11890 11891 darwin* | rhapsody*) 11892 if test "$GXX" = yes; then 11893 archive_cmds_need_lc_CXX=no 11894 case "$host_os" in 11895 rhapsody* | darwin1.[012]) 11896 allow_undefined_flag_CXX='-undefined suppress' 11897 ;; 11898 *) # Darwin 1.3 on 11899 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 11900 allow_undefined_flag_CXX='-flat_namespace -undefined suppress' 11901 else 11902 case ${MACOSX_DEPLOYMENT_TARGET} in 11903 10.[012]) 11904 allow_undefined_flag_CXX='-flat_namespace -undefined suppress' 11905 ;; 11906 10.*) 11907 allow_undefined_flag_CXX='-undefined dynamic_lookup' 11908 ;; 11909 esac 11910 fi 11911 ;; 11912 esac 11913 lt_int_apple_cc_single_mod=no 11914 output_verbose_link_cmd='echo' 11915 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 11916 lt_int_apple_cc_single_mod=yes 11917 fi 11918 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11919 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 11920 else 11921 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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' 11922 fi 11923 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11924 11925 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 11926 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11927 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}' 11928 else 11929 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}' 11930 fi 11931 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}' 11932 hardcode_direct_CXX=no 11933 hardcode_automatic_CXX=yes 11934 hardcode_shlibpath_var_CXX=unsupported 11935 whole_archive_flag_spec_CXX='-all_load $convenience' 11936 link_all_deplibs_CXX=yes 11937 else 11938 ld_shlibs_CXX=no 11939 fi 11940 ;; 11941 11942 dgux*) 11943 case $cc_basename in 11944 ec++) 11945 # FIXME: insert proper C++ library support 11946 ld_shlibs_CXX=no 11947 ;; 11948 ghcx) 11949 # Green Hills C++ Compiler 11950 # FIXME: insert proper C++ library support 11951 ld_shlibs_CXX=no 11952 ;; 11953 *) 11954 # FIXME: insert proper C++ library support 11955 ld_shlibs_CXX=no 11956 ;; 11957 esac 11958 ;; 11959 freebsd12*) 11960 # C++ shared libraries reported to be fairly broken before switch to ELF 11961 ld_shlibs_CXX=no 11962 ;; 11963 freebsd-elf*) 11964 archive_cmds_need_lc_CXX=no 11965 ;; 11966 freebsd* | kfreebsd*-gnu) 11967 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11968 # conventions 11969 ld_shlibs_CXX=yes 11970 ;; 11971 gnu*) 11972 ;; 11973 hpux9*) 11974 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11975 hardcode_libdir_separator_CXX=: 11976 export_dynamic_flag_spec_CXX='${wl}-E' 11977 hardcode_direct_CXX=yes 11978 hardcode_minus_L_CXX=yes # Not in the search PATH, 11979 # but as the default 11980 # location of the library. 11981 11982 case $cc_basename in 11983 CC) 11984 # FIXME: insert proper C++ library support 11985 ld_shlibs_CXX=no 11986 ;; 11987 aCC) 11988 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' 11989 # Commands to make compiler produce verbose output that lists 11990 # what "hidden" libraries, object files and flags are used when 11991 # linking a shared library. 11992 # 11993 # There doesn't appear to be a way to prevent this compiler from 11994 # explicitly linking system object files so we need to strip them 11995 # from the output so that they don't get included in the library 11996 # dependencies. 11997 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' 11998 ;; 11999 *) 12000 if test "$GXX" = yes; then 12001 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' 12002 else 12003 # FIXME: insert proper C++ library support 12004 ld_shlibs_CXX=no 12005 fi 12006 ;; 12007 esac 12008 ;; 12009 hpux10*|hpux11*) 12010 if test $with_gnu_ld = no; then 12011 case "$host_cpu" in 12012 hppa*64*) 12013 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12014 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 12015 hardcode_libdir_separator_CXX=: 12016 ;; 12017 ia64*) 12018 hardcode_libdir_flag_spec_CXX='-L$libdir' 12019 ;; 12020 *) 12021 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12022 hardcode_libdir_separator_CXX=: 12023 export_dynamic_flag_spec_CXX='${wl}-E' 12024 ;; 12025 esac 12026 fi 12027 case "$host_cpu" in 12028 hppa*64*) 12029 hardcode_direct_CXX=no 12030 hardcode_shlibpath_var_CXX=no 12031 ;; 12032 ia64*) 12033 hardcode_direct_CXX=no 12034 hardcode_shlibpath_var_CXX=no 12035 hardcode_minus_L_CXX=yes # Not in the search PATH, 12036 # but as the default 12037 # location of the library. 12038 ;; 12039 *) 12040 hardcode_direct_CXX=yes 12041 hardcode_minus_L_CXX=yes # Not in the search PATH, 12042 # but as the default 12043 # location of the library. 12044 ;; 12045 esac 12046 12047 case $cc_basename in 12048 CC) 12049 # FIXME: insert proper C++ library support 12050 ld_shlibs_CXX=no 12051 ;; 12052 aCC) 12053 case "$host_cpu" in 12054 hppa*64*|ia64*) 12055 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 12056 ;; 12057 *) 12058 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12059 ;; 12060 esac 12061 # Commands to make compiler produce verbose output that lists 12062 # what "hidden" libraries, object files and flags are used when 12063 # linking a shared library. 12064 # 12065 # There doesn't appear to be a way to prevent this compiler from 12066 # explicitly linking system object files so we need to strip them 12067 # from the output so that they don't get included in the library 12068 # dependencies. 12069 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' 12070 ;; 12071 *) 12072 if test "$GXX" = yes; then 12073 if test $with_gnu_ld = no; then 12074 case "$host_cpu" in 12075 ia64*|hppa*64*) 12076 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 12077 ;; 12078 *) 12079 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' 12080 ;; 12081 esac 12082 fi 12083 else 12084 # FIXME: insert proper C++ library support 12085 ld_shlibs_CXX=no 12086 fi 12087 ;; 12088 esac 12089 ;; 12090 irix5* | irix6*) 12091 case $cc_basename in 12092 CC) 12093 # SGI C++ 12094 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 ${objdir}/so_locations -o $lib' 12095 12096 # Archives containing C++ object files must be created using 12097 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 12098 # necessary to make sure instantiated templates are included 12099 # in the archive. 12100 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 12101 ;; 12102 *) 12103 if test "$GXX" = yes; then 12104 if test "$with_gnu_ld" = no; then 12105 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}${objdir}/so_locations -o $lib' 12106 else 12107 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' 12108 fi 12109 fi 12110 link_all_deplibs_CXX=yes 12111 ;; 12112 esac 12113 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12114 hardcode_libdir_separator_CXX=: 12115 ;; 12116 linux*) 12117 case $cc_basename in 12118 KCC) 12119 # Kuck and Associates, Inc. (KAI) C++ Compiler 12120 12121 # KCC will only create a shared library if the output file 12122 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12123 # to its proper name (with version) after linking. 12124 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' 12125 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' 12126 # Commands to make compiler produce verbose output that lists 12127 # what "hidden" libraries, object files and flags are used when 12128 # linking a shared library. 12129 # 12130 # There doesn't appear to be a way to prevent this compiler from 12131 # explicitly linking system object files so we need to strip them 12132 # from the output so that they don't get included in the library 12133 # dependencies. 12134 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' 12135 12136 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 12137 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12138 12139 # Archives containing C++ object files must be created using 12140 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12141 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12142 ;; 12143 icpc) 12144 # Intel C++ 12145 with_gnu_ld=yes 12146 archive_cmds_need_lc_CXX=no 12147 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12148 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' 12149 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12150 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12151 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12152 ;; 12153 cxx) 12154 # Compaq C++ 12155 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12156 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' 12157 12158 runpath_var=LD_RUN_PATH 12159 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12160 hardcode_libdir_separator_CXX=: 12161 12162 # Commands to make compiler produce verbose output that lists 12163 # what "hidden" libraries, object files and flags are used when 12164 # linking a shared library. 12165 # 12166 # There doesn't appear to be a way to prevent this compiler from 12167 # explicitly linking system object files so we need to strip them 12168 # from the output so that they don't get included in the library 12169 # dependencies. 12170 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' 12171 ;; 12172 esac 12173 ;; 12174 lynxos*) 12175 # FIXME: insert proper C++ library support 12176 ld_shlibs_CXX=no 12177 ;; 12178 m88k*) 12179 # FIXME: insert proper C++ library support 12180 ld_shlibs_CXX=no 12181 ;; 12182 mvs*) 12183 case $cc_basename in 12184 cxx) 12185 # FIXME: insert proper C++ library support 12186 ld_shlibs_CXX=no 12187 ;; 12188 *) 12189 # FIXME: insert proper C++ library support 12190 ld_shlibs_CXX=no 12191 ;; 12192 esac 12193 ;; 12194 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 12195 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12196 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 12197 wlarc= 12198 hardcode_libdir_flag_spec_CXX='-R$libdir' 12199 hardcode_direct_CXX=yes 12200 hardcode_shlibpath_var_CXX=no 12201 fi 12202 # Workaround some broken pre-1.5 toolchains 12203 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 12204 ;; 12205 osf3*) 12206 case $cc_basename in 12207 KCC) 12208 # Kuck and Associates, Inc. (KAI) C++ Compiler 12209 12210 # KCC will only create a shared library if the output file 12211 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12212 # to its proper name (with version) after linking. 12213 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' 12214 12215 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12216 hardcode_libdir_separator_CXX=: 12217 12218 # Archives containing C++ object files must be created using 12219 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12220 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12221 12222 ;; 12223 RCC) 12224 # Rational C++ 2.4.1 12225 # FIXME: insert proper C++ library support 12226 ld_shlibs_CXX=no 12227 ;; 12228 cxx) 12229 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12230 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 ${objdir}/so_locations -o $lib' 12231 12232 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12233 hardcode_libdir_separator_CXX=: 12234 12235 # Commands to make compiler produce verbose output that lists 12236 # what "hidden" libraries, object files and flags are used when 12237 # linking a shared library. 12238 # 12239 # There doesn't appear to be a way to prevent this compiler from 12240 # explicitly linking system object files so we need to strip them 12241 # from the output so that they don't get included in the library 12242 # dependencies. 12243 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' 12244 ;; 12245 *) 12246 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12247 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12248 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}${objdir}/so_locations -o $lib' 12249 12250 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12251 hardcode_libdir_separator_CXX=: 12252 12253 # Commands to make compiler produce verbose output that lists 12254 # what "hidden" libraries, object files and flags are used when 12255 # linking a shared library. 12256 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12257 12258 else 12259 # FIXME: insert proper C++ library support 12260 ld_shlibs_CXX=no 12261 fi 12262 ;; 12263 esac 12264 ;; 12265 osf4* | osf5*) 12266 case $cc_basename in 12267 KCC) 12268 # Kuck and Associates, Inc. (KAI) C++ Compiler 12269 12270 # KCC will only create a shared library if the output file 12271 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12272 # to its proper name (with version) after linking. 12273 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' 12274 12275 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12276 hardcode_libdir_separator_CXX=: 12277 12278 # Archives containing C++ object files must be created using 12279 # the KAI C++ compiler. 12280 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 12281 ;; 12282 RCC) 12283 # Rational C++ 2.4.1 12284 # FIXME: insert proper C++ library support 12285 ld_shlibs_CXX=no 12286 ;; 12287 cxx) 12288 allow_undefined_flag_CXX=' -expect_unresolved \*' 12289 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 ${objdir}/so_locations -o $lib' 12290 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 12291 echo "-hidden">> $lib.exp~ 12292 $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 $objdir/so_locations -o $lib~ 12293 $rm $lib.exp' 12294 12295 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12296 hardcode_libdir_separator_CXX=: 12297 12298 # Commands to make compiler produce verbose output that lists 12299 # what "hidden" libraries, object files and flags are used when 12300 # linking a shared library. 12301 # 12302 # There doesn't appear to be a way to prevent this compiler from 12303 # explicitly linking system object files so we need to strip them 12304 # from the output so that they don't get included in the library 12305 # dependencies. 12306 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' 12307 ;; 12308 *) 12309 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12310 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12311 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}${objdir}/so_locations -o $lib' 12312 12313 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12314 hardcode_libdir_separator_CXX=: 12315 12316 # Commands to make compiler produce verbose output that lists 12317 # what "hidden" libraries, object files and flags are used when 12318 # linking a shared library. 12319 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12320 12321 else 12322 # FIXME: insert proper C++ library support 12323 ld_shlibs_CXX=no 12324 fi 12325 ;; 12326 esac 12327 ;; 12328 psos*) 12329 # FIXME: insert proper C++ library support 12330 ld_shlibs_CXX=no 12331 ;; 12332 sco*) 12333 archive_cmds_need_lc_CXX=no 12334 case $cc_basename in 12335 CC) 12336 # FIXME: insert proper C++ library support 12337 ld_shlibs_CXX=no 12338 ;; 12339 *) 12340 # FIXME: insert proper C++ library support 12341 ld_shlibs_CXX=no 12342 ;; 12343 esac 12344 ;; 12345 sunos4*) 12346 case $cc_basename in 12347 CC) 12348 # Sun C++ 4.x 12349 # FIXME: insert proper C++ library support 12350 ld_shlibs_CXX=no 12351 ;; 12352 lcc) 12353 # Lucid 12354 # FIXME: insert proper C++ library support 12355 ld_shlibs_CXX=no 12356 ;; 12357 *) 12358 # FIXME: insert proper C++ library support 12359 ld_shlibs_CXX=no 12360 ;; 12361 esac 12362 ;; 12363 solaris*) 12364 case $cc_basename in 12365 CC) 12366 # Sun C++ 4.2, 5.x and Centerline C++ 12367 no_undefined_flag_CXX=' -zdefs' 12368 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12369 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12370 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12371 12372 hardcode_libdir_flag_spec_CXX='-R$libdir' 12373 hardcode_shlibpath_var_CXX=no 12374 case $host_os in 12375 solaris2.0-5 | solaris2.0-5.*) ;; 12376 *) 12377 # The C++ compiler is used as linker so we must use $wl 12378 # flag to pass the commands to the underlying system 12379 # linker. 12380 # Supported since Solaris 2.6 (maybe 2.5.1?) 12381 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 12382 ;; 12383 esac 12384 link_all_deplibs_CXX=yes 12385 12386 # Commands to make compiler produce verbose output that lists 12387 # what "hidden" libraries, object files and flags are used when 12388 # linking a shared library. 12389 # 12390 # There doesn't appear to be a way to prevent this compiler from 12391 # explicitly linking system object files so we need to strip them 12392 # from the output so that they don't get included in the library 12393 # dependencies. 12394 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 12395 12396 # Archives containing C++ object files must be created using 12397 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12398 # necessary to make sure instantiated templates are included 12399 # in the archive. 12400 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12401 ;; 12402 gcx) 12403 # Green Hills C++ Compiler 12404 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12405 12406 # The C++ compiler must be used to create the archive. 12407 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 12408 ;; 12409 *) 12410 # GNU C++ compiler with Solaris linker 12411 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12412 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 12413 if $CC --version | grep -v '^2\.7' > /dev/null; then 12414 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12415 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12416 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12417 12418 # Commands to make compiler produce verbose output that lists 12419 # what "hidden" libraries, object files and flags are used when 12420 # linking a shared library. 12421 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12422 else 12423 # g++ 2.7 appears to require `-G' NOT `-shared' on this 12424 # platform. 12425 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12426 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12427 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12428 12429 # Commands to make compiler produce verbose output that lists 12430 # what "hidden" libraries, object files and flags are used when 12431 # linking a shared library. 12432 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12433 fi 12434 12435 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 12436 fi 12437 ;; 12438 esac 12439 ;; 12440 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 12441 archive_cmds_need_lc_CXX=no 12442 ;; 12443 tandem*) 12444 case $cc_basename in 12445 NCC) 12446 # NonStop-UX NCC 3.20 12447 # FIXME: insert proper C++ library support 12448 ld_shlibs_CXX=no 12449 ;; 12450 *) 12451 # FIXME: insert proper C++ library support 12452 ld_shlibs_CXX=no 12453 ;; 12454 esac 12455 ;; 12456 vxworks*) 12457 # FIXME: insert proper C++ library support 12458 ld_shlibs_CXX=no 12459 ;; 12460 *) 12461 # FIXME: insert proper C++ library support 12462 ld_shlibs_CXX=no 12463 ;; 12464esac 12465echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12466echo "${ECHO_T}$ld_shlibs_CXX" >&6 12467test "$ld_shlibs_CXX" = no && can_build_shared=no 12468 12469GCC_CXX="$GXX" 12470LD_CXX="$LD" 12471 12472 12473cat > conftest.$ac_ext <<EOF 12474class Foo 12475{ 12476public: 12477 Foo (void) { a = 0; } 12478private: 12479 int a; 12480}; 12481EOF 12482 12483if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12484 (eval $ac_compile) 2>&5 12485 ac_status=$? 12486 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12487 (exit $ac_status); }; then 12488 # Parse the compiler output and extract the necessary 12489 # objects, libraries and library flags. 12490 12491 # Sentinel used to keep track of whether or not we are before 12492 # the conftest object file. 12493 pre_test_object_deps_done=no 12494 12495 # The `*' in the case matches for architectures that use `case' in 12496 # $output_verbose_cmd can trigger glob expansion during the loop 12497 # eval without this substitution. 12498 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" 12499 12500 for p in `eval $output_verbose_link_cmd`; do 12501 case $p in 12502 12503 -L* | -R* | -l*) 12504 # Some compilers place space between "-{L,R}" and the path. 12505 # Remove the space. 12506 if test $p = "-L" \ 12507 || test $p = "-R"; then 12508 prev=$p 12509 continue 12510 else 12511 prev= 12512 fi 12513 12514 if test "$pre_test_object_deps_done" = no; then 12515 case $p in 12516 -L* | -R*) 12517 # Internal compiler library paths should come after those 12518 # provided the user. The postdeps already come after the 12519 # user supplied libs so there is no need to process them. 12520 if test -z "$compiler_lib_search_path_CXX"; then 12521 compiler_lib_search_path_CXX="${prev}${p}" 12522 else 12523 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 12524 fi 12525 ;; 12526 # The "-l" case would never come before the object being 12527 # linked, so don't bother handling this case. 12528 esac 12529 else 12530 if test -z "$postdeps_CXX"; then 12531 postdeps_CXX="${prev}${p}" 12532 else 12533 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 12534 fi 12535 fi 12536 ;; 12537 12538 *.$objext) 12539 # This assumes that the test object file only shows up 12540 # once in the compiler output. 12541 if test "$p" = "conftest.$objext"; then 12542 pre_test_object_deps_done=yes 12543 continue 12544 fi 12545 12546 if test "$pre_test_object_deps_done" = no; then 12547 if test -z "$predep_objects_CXX"; then 12548 predep_objects_CXX="$p" 12549 else 12550 predep_objects_CXX="$predep_objects_CXX $p" 12551 fi 12552 else 12553 if test -z "$postdep_objects_CXX"; then 12554 postdep_objects_CXX="$p" 12555 else 12556 postdep_objects_CXX="$postdep_objects_CXX $p" 12557 fi 12558 fi 12559 ;; 12560 12561 *) ;; # Ignore the rest. 12562 12563 esac 12564 done 12565 12566 # Clean up. 12567 rm -f a.out a.exe 12568else 12569 echo "libtool.m4: error: problem compiling CXX test program" 12570fi 12571 12572$rm -f confest.$objext 12573 12574case " $postdeps_CXX " in 12575*" -lc "*) archive_cmds_need_lc_CXX=no ;; 12576esac 12577 12578lt_prog_compiler_wl_CXX= 12579lt_prog_compiler_pic_CXX= 12580lt_prog_compiler_static_CXX= 12581 12582echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 12583echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 12584 12585 # C++ specific cases for pic, static, wl, etc. 12586 if test "$GXX" = yes; then 12587 lt_prog_compiler_wl_CXX='-Wl,' 12588 lt_prog_compiler_static_CXX='-static' 12589 12590 case $host_os in 12591 aix*) 12592 # All AIX code is PIC. 12593 if test "$host_cpu" = ia64; then 12594 # AIX 5 now supports IA64 processor 12595 lt_prog_compiler_static_CXX='-Bstatic' 12596 fi 12597 ;; 12598 amigaos*) 12599 # FIXME: we need at least 68020 code to build shared libraries, but 12600 # adding the `-m68020' flag to GCC prevents building anything better, 12601 # like `-m68040'. 12602 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 12603 ;; 12604 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12605 # PIC is the default for these OSes. 12606 ;; 12607 mingw* | os2* | pw32*) 12608 # This hack is so that the source file can tell whether it is being 12609 # built for inclusion in a dll (and should export symbols for example). 12610 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 12611 ;; 12612 darwin* | rhapsody*) 12613 # PIC is the default on this platform 12614 # Common symbols not allowed in MH_DYLIB files 12615 lt_prog_compiler_pic_CXX='-fno-common' 12616 ;; 12617 *djgpp*) 12618 # DJGPP does not support shared libraries at all 12619 lt_prog_compiler_pic_CXX= 12620 ;; 12621 sysv4*MP*) 12622 if test -d /usr/nec; then 12623 lt_prog_compiler_pic_CXX=-Kconform_pic 12624 fi 12625 ;; 12626 hpux*) 12627 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12628 # not for PA HP-UX. 12629 case "$host_cpu" in 12630 hppa*64*|ia64*) 12631 ;; 12632 *) 12633 lt_prog_compiler_pic_CXX='-fPIC' 12634 ;; 12635 esac 12636 ;; 12637 *) 12638 lt_prog_compiler_pic_CXX='-fPIC' 12639 ;; 12640 esac 12641 else 12642 case $host_os in 12643 aix4* | aix5*) 12644 # All AIX code is PIC. 12645 if test "$host_cpu" = ia64; then 12646 # AIX 5 now supports IA64 processor 12647 lt_prog_compiler_static_CXX='-Bstatic' 12648 else 12649 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 12650 fi 12651 ;; 12652 chorus*) 12653 case $cc_basename in 12654 cxch68) 12655 # Green Hills C++ Compiler 12656 # _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" 12657 ;; 12658 esac 12659 ;; 12660 dgux*) 12661 case $cc_basename in 12662 ec++) 12663 lt_prog_compiler_pic_CXX='-KPIC' 12664 ;; 12665 ghcx) 12666 # Green Hills C++ Compiler 12667 lt_prog_compiler_pic_CXX='-pic' 12668 ;; 12669 *) 12670 ;; 12671 esac 12672 ;; 12673 freebsd* | kfreebsd*-gnu) 12674 # FreeBSD uses GNU C++ 12675 ;; 12676 hpux9* | hpux10* | hpux11*) 12677 case $cc_basename in 12678 CC) 12679 lt_prog_compiler_wl_CXX='-Wl,' 12680 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 12681 if test "$host_cpu" != ia64; then 12682 lt_prog_compiler_pic_CXX='+Z' 12683 fi 12684 ;; 12685 aCC) 12686 lt_prog_compiler_wl_CXX='-Wl,' 12687 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 12688 case "$host_cpu" in 12689 hppa*64*|ia64*) 12690 # +Z the default 12691 ;; 12692 *) 12693 lt_prog_compiler_pic_CXX='+Z' 12694 ;; 12695 esac 12696 ;; 12697 *) 12698 ;; 12699 esac 12700 ;; 12701 irix5* | irix6* | nonstopux*) 12702 case $cc_basename in 12703 CC) 12704 lt_prog_compiler_wl_CXX='-Wl,' 12705 lt_prog_compiler_static_CXX='-non_shared' 12706 # CC pic flag -KPIC is the default. 12707 ;; 12708 *) 12709 ;; 12710 esac 12711 ;; 12712 linux*) 12713 case $cc_basename in 12714 KCC) 12715 # KAI C++ Compiler 12716 lt_prog_compiler_wl_CXX='--backend -Wl,' 12717 lt_prog_compiler_pic_CXX='-fPIC' 12718 ;; 12719 icpc) 12720 # Intel C++ 12721 lt_prog_compiler_wl_CXX='-Wl,' 12722 lt_prog_compiler_pic_CXX='-KPIC' 12723 lt_prog_compiler_static_CXX='-static' 12724 ;; 12725 cxx) 12726 # Compaq C++ 12727 # Make sure the PIC flag is empty. It appears that all Alpha 12728 # Linux and Compaq Tru64 Unix objects are PIC. 12729 lt_prog_compiler_pic_CXX= 12730 lt_prog_compiler_static_CXX='-non_shared' 12731 ;; 12732 *) 12733 ;; 12734 esac 12735 ;; 12736 lynxos*) 12737 ;; 12738 m88k*) 12739 ;; 12740 mvs*) 12741 case $cc_basename in 12742 cxx) 12743 lt_prog_compiler_pic_CXX='-W c,exportall' 12744 ;; 12745 *) 12746 ;; 12747 esac 12748 ;; 12749 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 12750 ;; 12751 osf3* | osf4* | osf5*) 12752 case $cc_basename in 12753 KCC) 12754 lt_prog_compiler_wl_CXX='--backend -Wl,' 12755 ;; 12756 RCC) 12757 # Rational C++ 2.4.1 12758 lt_prog_compiler_pic_CXX='-pic' 12759 ;; 12760 cxx) 12761 # Digital/Compaq C++ 12762 lt_prog_compiler_wl_CXX='-Wl,' 12763 # Make sure the PIC flag is empty. It appears that all Alpha 12764 # Linux and Compaq Tru64 Unix objects are PIC. 12765 lt_prog_compiler_pic_CXX= 12766 lt_prog_compiler_static_CXX='-non_shared' 12767 ;; 12768 *) 12769 ;; 12770 esac 12771 ;; 12772 psos*) 12773 ;; 12774 sco*) 12775 case $cc_basename in 12776 CC) 12777 lt_prog_compiler_pic_CXX='-fPIC' 12778 ;; 12779 *) 12780 ;; 12781 esac 12782 ;; 12783 solaris*) 12784 case $cc_basename in 12785 CC) 12786 # Sun C++ 4.2, 5.x and Centerline C++ 12787 lt_prog_compiler_pic_CXX='-KPIC' 12788 lt_prog_compiler_static_CXX='-Bstatic' 12789 lt_prog_compiler_wl_CXX='-Qoption ld ' 12790 ;; 12791 gcx) 12792 # Green Hills C++ Compiler 12793 lt_prog_compiler_pic_CXX='-PIC' 12794 ;; 12795 *) 12796 ;; 12797 esac 12798 ;; 12799 sunos4*) 12800 case $cc_basename in 12801 CC) 12802 # Sun C++ 4.x 12803 lt_prog_compiler_pic_CXX='-pic' 12804 lt_prog_compiler_static_CXX='-Bstatic' 12805 ;; 12806 lcc) 12807 # Lucid 12808 lt_prog_compiler_pic_CXX='-pic' 12809 ;; 12810 *) 12811 ;; 12812 esac 12813 ;; 12814 tandem*) 12815 case $cc_basename in 12816 NCC) 12817 # NonStop-UX NCC 3.20 12818 lt_prog_compiler_pic_CXX='-KPIC' 12819 ;; 12820 *) 12821 ;; 12822 esac 12823 ;; 12824 unixware*) 12825 ;; 12826 vxworks*) 12827 ;; 12828 *) 12829 lt_prog_compiler_can_build_shared_CXX=no 12830 ;; 12831 esac 12832 fi 12833 12834echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 12835echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 12836 12837# 12838# Check to make sure the PIC flag actually works. 12839# 12840if test -n "$lt_prog_compiler_pic_CXX"; then 12841 12842echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12843echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 12844if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 12845 echo $ECHO_N "(cached) $ECHO_C" >&6 12846else 12847 lt_prog_compiler_pic_works_CXX=no 12848 ac_outfile=conftest.$ac_objext 12849 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12850 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12851 # Insert the option either (1) after the last *FLAGS variable, or 12852 # (2) before a word containing "conftest.", or (3) at the end. 12853 # Note that $ac_compile itself does not contain backslashes and begins 12854 # with a dollar sign (not a hyphen), so the echo should work correctly. 12855 # The option is referenced via a variable to avoid confusing sed. 12856 lt_compile=`echo "$ac_compile" | $SED \ 12857 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 12858 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12859 -e 's:$: $lt_compiler_flag:'` 12860 (eval echo "\"\$as_me:12860: $lt_compile\"" >&5) 12861 (eval "$lt_compile" 2>conftest.err) 12862 ac_status=$? 12863 cat conftest.err >&5 12864 echo "$as_me:12864: \$? = $ac_status" >&5 12865 if (exit $ac_status) && test -s "$ac_outfile"; then 12866 # The compiler can only warn and ignore the option if not recognized 12867 # So say no if there are warnings 12868 if test ! -s conftest.err; then 12869 lt_prog_compiler_pic_works_CXX=yes 12870 fi 12871 fi 12872 $rm conftest* 12873 12874fi 12875echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 12876echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 12877 12878if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 12879 case $lt_prog_compiler_pic_CXX in 12880 "" | " "*) ;; 12881 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 12882 esac 12883else 12884 lt_prog_compiler_pic_CXX= 12885 lt_prog_compiler_can_build_shared_CXX=no 12886fi 12887 12888fi 12889case "$host_os" in 12890 # For platforms which do not support PIC, -DPIC is meaningless: 12891 *djgpp*) 12892 lt_prog_compiler_pic_CXX= 12893 ;; 12894 *) 12895 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 12896 ;; 12897esac 12898 12899echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12900echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 12901if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 12902 echo $ECHO_N "(cached) $ECHO_C" >&6 12903else 12904 lt_cv_prog_compiler_c_o_CXX=no 12905 $rm -r conftest 2>/dev/null 12906 mkdir conftest 12907 cd conftest 12908 mkdir out 12909 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12910 12911 lt_compiler_flag="-o out/conftest2.$ac_objext" 12912 # Insert the option either (1) after the last *FLAGS variable, or 12913 # (2) before a word containing "conftest.", or (3) at the end. 12914 # Note that $ac_compile itself does not contain backslashes and begins 12915 # with a dollar sign (not a hyphen), so the echo should work correctly. 12916 lt_compile=`echo "$ac_compile" | $SED \ 12917 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 12918 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12919 -e 's:$: $lt_compiler_flag:'` 12920 (eval echo "\"\$as_me:12920: $lt_compile\"" >&5) 12921 (eval "$lt_compile" 2>out/conftest.err) 12922 ac_status=$? 12923 cat out/conftest.err >&5 12924 echo "$as_me:12924: \$? = $ac_status" >&5 12925 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12926 then 12927 # The compiler can only warn and ignore the option if not recognized 12928 # So say no if there are warnings 12929 if test ! -s out/conftest.err; then 12930 lt_cv_prog_compiler_c_o_CXX=yes 12931 fi 12932 fi 12933 chmod u+w . 12934 $rm conftest* 12935 # SGI C++ compiler will create directory out/ii_files/ for 12936 # template instantiation 12937 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 12938 $rm out/* && rmdir out 12939 cd .. 12940 rmdir conftest 12941 $rm conftest* 12942 12943fi 12944echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 12945echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 12946 12947 12948hard_links="nottested" 12949if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 12950 # do not overwrite the value of need_locks provided by the user 12951 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 12952echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 12953 hard_links=yes 12954 $rm conftest* 12955 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12956 touch conftest.a 12957 ln conftest.a conftest.b 2>&5 || hard_links=no 12958 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12959 echo "$as_me:$LINENO: result: $hard_links" >&5 12960echo "${ECHO_T}$hard_links" >&6 12961 if test "$hard_links" = no; then 12962 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 12963echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 12964 need_locks=warn 12965 fi 12966else 12967 need_locks=no 12968fi 12969 12970echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12971echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 12972 12973 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12974 case $host_os in 12975 aix4* | aix5*) 12976 # If we're using GNU nm, then we don't want the "-C" option. 12977 # -C means demangle to AIX nm, but means don't demangle with GNU nm 12978 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 12979 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' 12980 else 12981 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' 12982 fi 12983 ;; 12984 pw32*) 12985 export_symbols_cmds_CXX="$ltdll_cmds" 12986 ;; 12987 cygwin* | mingw*) 12988 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 12989 ;; 12990 linux*) 12991 link_all_deplibs_CXX=no 12992 ;; 12993 *) 12994 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12995 ;; 12996 esac 12997 12998echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12999echo "${ECHO_T}$ld_shlibs_CXX" >&6 13000test "$ld_shlibs_CXX" = no && can_build_shared=no 13001 13002variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13003if test "$GCC" = yes; then 13004 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13005fi 13006 13007# 13008# Do we need to explicitly link libc? 13009# 13010case "x$archive_cmds_need_lc_CXX" in 13011x|xyes) 13012 # Assume -lc should be added 13013 archive_cmds_need_lc_CXX=yes 13014 13015 if test "$enable_shared" = yes && test "$GCC" = yes; then 13016 case $archive_cmds_CXX in 13017 *'~'*) 13018 # FIXME: we may have to deal with multi-command sequences. 13019 ;; 13020 '$CC '*) 13021 # Test whether the compiler implicitly links with -lc since on some 13022 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13023 # to ld, don't add -lc before -lgcc. 13024 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 13025echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 13026 $rm conftest* 13027 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13028 13029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13030 (eval $ac_compile) 2>&5 13031 ac_status=$? 13032 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13033 (exit $ac_status); } 2>conftest.err; then 13034 soname=conftest 13035 lib=conftest 13036 libobjs=conftest.$ac_objext 13037 deplibs= 13038 wl=$lt_prog_compiler_wl_CXX 13039 compiler_flags=-v 13040 linker_flags=-v 13041 verstring= 13042 output_objdir=. 13043 libname=conftest 13044 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 13045 allow_undefined_flag_CXX= 13046 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 13047 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 13048 ac_status=$? 13049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13050 (exit $ac_status); } 13051 then 13052 archive_cmds_need_lc_CXX=no 13053 else 13054 archive_cmds_need_lc_CXX=yes 13055 fi 13056 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 13057 else 13058 cat conftest.err 1>&5 13059 fi 13060 $rm conftest* 13061 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 13062echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 13063 ;; 13064 esac 13065 fi 13066 ;; 13067esac 13068 13069echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 13070echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 13071library_names_spec= 13072libname_spec='lib$name' 13073soname_spec= 13074shrext_cmds=".so" 13075postinstall_cmds= 13076postuninstall_cmds= 13077finish_cmds= 13078finish_eval= 13079shlibpath_var= 13080shlibpath_overrides_runpath=unknown 13081version_type=none 13082dynamic_linker="$host_os ld.so" 13083sys_lib_dlsearch_path_spec="/lib /usr/lib" 13084if test "$GCC" = yes; then 13085 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13086 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 13087 # if the path contains ";" then we assume it to be the separator 13088 # otherwise default to the standard path separator (i.e. ":") - it is 13089 # assumed that no part of a normal pathname contains ";" but that should 13090 # okay in the real world where ";" in dirpaths is itself problematic. 13091 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13092 else 13093 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13094 fi 13095else 13096 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 13097fi 13098need_lib_prefix=unknown 13099hardcode_into_libs=no 13100 13101# when you set need_version to no, make sure it does not cause -set_version 13102# flags to be left without arguments 13103need_version=unknown 13104 13105case $host_os in 13106aix3*) 13107 version_type=linux 13108 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 13109 shlibpath_var=LIBPATH 13110 13111 # AIX 3 has no versioning support, so we append a major version to the name. 13112 soname_spec='${libname}${release}${shared_ext}$major' 13113 ;; 13114 13115aix4* | aix5*) 13116 version_type=linux 13117 need_lib_prefix=no 13118 need_version=no 13119 hardcode_into_libs=yes 13120 if test "$host_cpu" = ia64; then 13121 # AIX 5 supports IA64 13122 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 13123 shlibpath_var=LD_LIBRARY_PATH 13124 else 13125 # With GCC up to 2.95.x, collect2 would create an import file 13126 # for dependence libraries. The import file would start with 13127 # the line `#! .'. This would cause the generated library to 13128 # depend on `.', always an invalid library. This was fixed in 13129 # development snapshots of GCC prior to 3.0. 13130 case $host_os in 13131 aix4 | aix4.[01] | aix4.[01].*) 13132 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13133 echo ' yes ' 13134 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 13135 : 13136 else 13137 can_build_shared=no 13138 fi 13139 ;; 13140 esac 13141 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 13142 # soname into executable. Probably we can add versioning support to 13143 # collect2, so additional links can be useful in future. 13144 if test "$aix_use_runtimelinking" = yes; then 13145 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13146 # instead of lib<name>.a to let people know that these are not 13147 # typical AIX shared libraries. 13148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13149 else 13150 # We preserve .a as extension for shared libraries through AIX4.2 13151 # and later when we are not doing run time linking. 13152 library_names_spec='${libname}${release}.a $libname.a' 13153 soname_spec='${libname}${release}${shared_ext}$major' 13154 fi 13155 shlibpath_var=LIBPATH 13156 fi 13157 ;; 13158 13159amigaos*) 13160 library_names_spec='$libname.ixlibrary $libname.a' 13161 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13162 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' 13163 ;; 13164 13165beos*) 13166 library_names_spec='${libname}${shared_ext}' 13167 dynamic_linker="$host_os ld.so" 13168 shlibpath_var=LIBRARY_PATH 13169 ;; 13170 13171bsdi4*) 13172 version_type=linux 13173 need_version=no 13174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13175 soname_spec='${libname}${release}${shared_ext}$major' 13176 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13177 shlibpath_var=LD_LIBRARY_PATH 13178 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13179 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13180 # the default ld.so.conf also contains /usr/contrib/lib and 13181 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13182 # libtool to hard-code these into programs 13183 ;; 13184 13185cygwin* | mingw* | pw32*) 13186 version_type=windows 13187 shrext_cmds=".dll" 13188 need_version=no 13189 need_lib_prefix=no 13190 13191 case $GCC,$host_os in 13192 yes,cygwin* | yes,mingw* | yes,pw32*) 13193 library_names_spec='$libname.dll.a' 13194 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13195 postinstall_cmds='base_file=`basename \${file}`~ 13196 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 13197 dldir=$destdir/`dirname \$dlpath`~ 13198 test -d \$dldir || mkdir -p \$dldir~ 13199 $install_prog $dir/$dlname \$dldir/$dlname' 13200 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13201 dlpath=$dir/\$dldll~ 13202 $rm \$dlpath' 13203 shlibpath_overrides_runpath=yes 13204 13205 case $host_os in 13206 cygwin*) 13207 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13208 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13209 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 13210 ;; 13211 mingw*) 13212 # MinGW DLLs use traditional 'lib' prefix 13213 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13214 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13215 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 13216 # It is most probably a Windows format PATH printed by 13217 # mingw gcc, but we are running on Cygwin. Gcc prints its search 13218 # path with ; separators, and with drive letters. We can handle the 13219 # drive letters (cygwin fileutils understands them), so leave them, 13220 # especially as we might pass files found there to a mingw objdump, 13221 # which wouldn't understand a cygwinified path. Ahh. 13222 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13223 else 13224 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13225 fi 13226 ;; 13227 pw32*) 13228 # pw32 DLLs use 'pw' prefix rather than 'lib' 13229 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 13230 ;; 13231 esac 13232 ;; 13233 13234 *) 13235 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13236 ;; 13237 esac 13238 dynamic_linker='Win32 ld.exe' 13239 # FIXME: first we should search . and the directory the executable is in 13240 shlibpath_var=PATH 13241 ;; 13242 13243darwin* | rhapsody*) 13244 dynamic_linker="$host_os dyld" 13245 version_type=darwin 13246 need_lib_prefix=no 13247 need_version=no 13248 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13249 soname_spec='${libname}${release}${major}$shared_ext' 13250 shlibpath_overrides_runpath=yes 13251 shlibpath_var=DYLD_LIBRARY_PATH 13252 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 13253 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 13254 if test "$GCC" = yes; then 13255 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"` 13256 else 13257 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 13258 fi 13259 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13260 ;; 13261 13262dgux*) 13263 version_type=linux 13264 need_lib_prefix=no 13265 need_version=no 13266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13267 soname_spec='${libname}${release}${shared_ext}$major' 13268 shlibpath_var=LD_LIBRARY_PATH 13269 ;; 13270 13271freebsd1*) 13272 dynamic_linker=no 13273 ;; 13274 13275kfreebsd*-gnu) 13276 version_type=linux 13277 need_lib_prefix=no 13278 need_version=no 13279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13280 soname_spec='${libname}${release}${shared_ext}$major' 13281 shlibpath_var=LD_LIBRARY_PATH 13282 shlibpath_overrides_runpath=no 13283 hardcode_into_libs=yes 13284 dynamic_linker='GNU ld.so' 13285 ;; 13286 13287freebsd*) 13288 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 13289 version_type=freebsd-$objformat 13290 case $version_type in 13291 freebsd-elf*) 13292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13293 need_version=no 13294 need_lib_prefix=no 13295 ;; 13296 freebsd-*) 13297 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 13298 need_version=yes 13299 ;; 13300 esac 13301 shlibpath_var=LD_LIBRARY_PATH 13302 case $host_os in 13303 freebsd2*) 13304 shlibpath_overrides_runpath=yes 13305 ;; 13306 freebsd3.01* | freebsdelf3.01*) 13307 shlibpath_overrides_runpath=yes 13308 hardcode_into_libs=yes 13309 ;; 13310 *) # from 3.2 on 13311 shlibpath_overrides_runpath=no 13312 hardcode_into_libs=yes 13313 ;; 13314 esac 13315 ;; 13316 13317gnu*) 13318 version_type=linux 13319 need_lib_prefix=no 13320 need_version=no 13321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13322 soname_spec='${libname}${release}${shared_ext}$major' 13323 shlibpath_var=LD_LIBRARY_PATH 13324 hardcode_into_libs=yes 13325 ;; 13326 13327hpux9* | hpux10* | hpux11*) 13328 # Give a soname corresponding to the major version so that dld.sl refuses to 13329 # link against other versions. 13330 version_type=sunos 13331 need_lib_prefix=no 13332 need_version=no 13333 case "$host_cpu" in 13334 ia64*) 13335 shrext_cmds='.so' 13336 hardcode_into_libs=yes 13337 dynamic_linker="$host_os dld.so" 13338 shlibpath_var=LD_LIBRARY_PATH 13339 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13341 soname_spec='${libname}${release}${shared_ext}$major' 13342 if test "X$HPUX_IA64_MODE" = X32; then 13343 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13344 else 13345 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13346 fi 13347 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13348 ;; 13349 hppa*64*) 13350 shrext_cmds='.sl' 13351 hardcode_into_libs=yes 13352 dynamic_linker="$host_os dld.sl" 13353 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13354 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13356 soname_spec='${libname}${release}${shared_ext}$major' 13357 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13358 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13359 ;; 13360 *) 13361 shrext_cmds='.sl' 13362 dynamic_linker="$host_os dld.sl" 13363 shlibpath_var=SHLIB_PATH 13364 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13366 soname_spec='${libname}${release}${shared_ext}$major' 13367 ;; 13368 esac 13369 # HP-UX runs *really* slowly unless shared libraries are mode 555. 13370 postinstall_cmds='chmod 555 $lib' 13371 ;; 13372 13373irix5* | irix6* | nonstopux*) 13374 case $host_os in 13375 nonstopux*) version_type=nonstopux ;; 13376 *) 13377 if test "$lt_cv_prog_gnu_ld" = yes; then 13378 version_type=linux 13379 else 13380 version_type=irix 13381 fi ;; 13382 esac 13383 need_lib_prefix=no 13384 need_version=no 13385 soname_spec='${libname}${release}${shared_ext}$major' 13386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 13387 case $host_os in 13388 irix5* | nonstopux*) 13389 libsuff= shlibsuff= 13390 ;; 13391 *) 13392 case $LD in # libtool.m4 will add one of these switches to LD 13393 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13394 libsuff= shlibsuff= libmagic=32-bit;; 13395 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13396 libsuff=32 shlibsuff=N32 libmagic=N32;; 13397 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13398 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13399 *) libsuff= shlibsuff= libmagic=never-match;; 13400 esac 13401 ;; 13402 esac 13403 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13404 shlibpath_overrides_runpath=no 13405 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13406 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13407 hardcode_into_libs=yes 13408 ;; 13409 13410# No shared lib support for Linux oldld, aout, or coff. 13411linux*oldld* | linux*aout* | linux*coff*) 13412 dynamic_linker=no 13413 ;; 13414 13415# This must be Linux ELF. 13416linux*) 13417 version_type=linux 13418 need_lib_prefix=no 13419 need_version=no 13420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13421 soname_spec='${libname}${release}${shared_ext}$major' 13422 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13423 shlibpath_var=LD_LIBRARY_PATH 13424 shlibpath_overrides_runpath=no 13425 # This implies no fast_install, which is unacceptable. 13426 # Some rework will be needed to allow for fast_install 13427 # before this can be enabled. 13428 hardcode_into_libs=yes 13429 13430 # Append ld.so.conf contents to the search path 13431 if test -f /etc/ld.so.conf; then 13432 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` 13433 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 13434 fi 13435 13436 # We used to test for /lib/ld.so.1 and disable shared libraries on 13437 # powerpc, because MkLinux only supported shared libraries with the 13438 # GNU dynamic linker. Since this was broken with cross compilers, 13439 # most powerpc-linux boxes support dynamic linking these days and 13440 # people can always --disable-shared, the test was removed, and we 13441 # assume the GNU/Linux dynamic linker is in use. 13442 dynamic_linker='GNU/Linux ld.so' 13443 ;; 13444 13445netbsdelf*-gnu) 13446 version_type=linux 13447 need_lib_prefix=no 13448 need_version=no 13449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13450 soname_spec='${libname}${release}${shared_ext}$major' 13451 shlibpath_var=LD_LIBRARY_PATH 13452 shlibpath_overrides_runpath=no 13453 hardcode_into_libs=yes 13454 dynamic_linker='NetBSD ld.elf_so' 13455 ;; 13456 13457knetbsd*-gnu) 13458 version_type=linux 13459 need_lib_prefix=no 13460 need_version=no 13461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13462 soname_spec='${libname}${release}${shared_ext}$major' 13463 shlibpath_var=LD_LIBRARY_PATH 13464 shlibpath_overrides_runpath=no 13465 hardcode_into_libs=yes 13466 dynamic_linker='GNU ld.so' 13467 ;; 13468 13469netbsd*) 13470 version_type=sunos 13471 need_lib_prefix=no 13472 need_version=no 13473 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13475 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13476 dynamic_linker='NetBSD (a.out) ld.so' 13477 else 13478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13479 soname_spec='${libname}${release}${shared_ext}$major' 13480 dynamic_linker='NetBSD ld.elf_so' 13481 fi 13482 shlibpath_var=LD_LIBRARY_PATH 13483 shlibpath_overrides_runpath=yes 13484 hardcode_into_libs=yes 13485 ;; 13486 13487newsos6) 13488 version_type=linux 13489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13490 shlibpath_var=LD_LIBRARY_PATH 13491 shlibpath_overrides_runpath=yes 13492 ;; 13493 13494nto-qnx*) 13495 version_type=linux 13496 need_lib_prefix=no 13497 need_version=no 13498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13499 soname_spec='${libname}${release}${shared_ext}$major' 13500 shlibpath_var=LD_LIBRARY_PATH 13501 shlibpath_overrides_runpath=yes 13502 ;; 13503 13504openbsd*) 13505 version_type=sunos 13506 need_lib_prefix=no 13507 need_version=yes 13508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13509 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13510 shlibpath_var=LD_LIBRARY_PATH 13511 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13512 case $host_os in 13513 openbsd2.[89] | openbsd2.[89].*) 13514 shlibpath_overrides_runpath=no 13515 ;; 13516 *) 13517 shlibpath_overrides_runpath=yes 13518 ;; 13519 esac 13520 else 13521 shlibpath_overrides_runpath=yes 13522 fi 13523 ;; 13524 13525os2*) 13526 libname_spec='$name' 13527 shrext_cmds=".dll" 13528 need_lib_prefix=no 13529 library_names_spec='$libname${shared_ext} $libname.a' 13530 dynamic_linker='OS/2 ld.exe' 13531 shlibpath_var=LIBPATH 13532 ;; 13533 13534osf3* | osf4* | osf5*) 13535 version_type=osf 13536 need_lib_prefix=no 13537 need_version=no 13538 soname_spec='${libname}${release}${shared_ext}$major' 13539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13540 shlibpath_var=LD_LIBRARY_PATH 13541 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13542 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13543 ;; 13544 13545sco3.2v5*) 13546 version_type=osf 13547 soname_spec='${libname}${release}${shared_ext}$major' 13548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13549 shlibpath_var=LD_LIBRARY_PATH 13550 ;; 13551 13552solaris*) 13553 version_type=linux 13554 need_lib_prefix=no 13555 need_version=no 13556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13557 soname_spec='${libname}${release}${shared_ext}$major' 13558 shlibpath_var=LD_LIBRARY_PATH 13559 shlibpath_overrides_runpath=yes 13560 hardcode_into_libs=yes 13561 # ldd complains unless libraries are executable 13562 postinstall_cmds='chmod +x $lib' 13563 ;; 13564 13565sunos4*) 13566 version_type=sunos 13567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13568 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13569 shlibpath_var=LD_LIBRARY_PATH 13570 shlibpath_overrides_runpath=yes 13571 if test "$with_gnu_ld" = yes; then 13572 need_lib_prefix=no 13573 fi 13574 need_version=yes 13575 ;; 13576 13577sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 13578 version_type=linux 13579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13580 soname_spec='${libname}${release}${shared_ext}$major' 13581 shlibpath_var=LD_LIBRARY_PATH 13582 case $host_vendor in 13583 sni) 13584 shlibpath_overrides_runpath=no 13585 need_lib_prefix=no 13586 export_dynamic_flag_spec='${wl}-Blargedynsym' 13587 runpath_var=LD_RUN_PATH 13588 ;; 13589 siemens) 13590 need_lib_prefix=no 13591 ;; 13592 motorola) 13593 need_lib_prefix=no 13594 need_version=no 13595 shlibpath_overrides_runpath=no 13596 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13597 ;; 13598 esac 13599 ;; 13600 13601sysv4*MP*) 13602 if test -d /usr/nec ;then 13603 version_type=linux 13604 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13605 soname_spec='$libname${shared_ext}.$major' 13606 shlibpath_var=LD_LIBRARY_PATH 13607 fi 13608 ;; 13609 13610uts4*) 13611 version_type=linux 13612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13613 soname_spec='${libname}${release}${shared_ext}$major' 13614 shlibpath_var=LD_LIBRARY_PATH 13615 ;; 13616 13617*) 13618 dynamic_linker=no 13619 ;; 13620esac 13621echo "$as_me:$LINENO: result: $dynamic_linker" >&5 13622echo "${ECHO_T}$dynamic_linker" >&6 13623test "$dynamic_linker" = no && can_build_shared=no 13624 13625echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 13626echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 13627hardcode_action_CXX= 13628if test -n "$hardcode_libdir_flag_spec_CXX" || \ 13629 test -n "$runpath_var CXX" || \ 13630 test "X$hardcode_automatic_CXX"="Xyes" ; then 13631 13632 # We can hardcode non-existant directories. 13633 if test "$hardcode_direct_CXX" != no && 13634 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13635 # have to relink, otherwise we might link with an installed library 13636 # when we should be linking with a yet-to-be-installed one 13637 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 13638 test "$hardcode_minus_L_CXX" != no; then 13639 # Linking always hardcodes the temporary library directory. 13640 hardcode_action_CXX=relink 13641 else 13642 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13643 hardcode_action_CXX=immediate 13644 fi 13645else 13646 # We cannot hardcode anything, or else we can only hardcode existing 13647 # directories. 13648 hardcode_action_CXX=unsupported 13649fi 13650echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 13651echo "${ECHO_T}$hardcode_action_CXX" >&6 13652 13653if test "$hardcode_action_CXX" = relink; then 13654 # Fast installation is not supported 13655 enable_fast_install=no 13656elif test "$shlibpath_overrides_runpath" = yes || 13657 test "$enable_shared" = no; then 13658 # Fast installation is not necessary 13659 enable_fast_install=needless 13660fi 13661 13662striplib= 13663old_striplib= 13664echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 13665echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 13666if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 13667 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 13668 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 13669 echo "$as_me:$LINENO: result: yes" >&5 13670echo "${ECHO_T}yes" >&6 13671else 13672# FIXME - insert some real tests, host_os isn't really good enough 13673 case $host_os in 13674 darwin*) 13675 if test -n "$STRIP" ; then 13676 striplib="$STRIP -x" 13677 echo "$as_me:$LINENO: result: yes" >&5 13678echo "${ECHO_T}yes" >&6 13679 else 13680 echo "$as_me:$LINENO: result: no" >&5 13681echo "${ECHO_T}no" >&6 13682fi 13683 ;; 13684 *) 13685 echo "$as_me:$LINENO: result: no" >&5 13686echo "${ECHO_T}no" >&6 13687 ;; 13688 esac 13689fi 13690 13691if test "x$enable_dlopen" != xyes; then 13692 enable_dlopen=unknown 13693 enable_dlopen_self=unknown 13694 enable_dlopen_self_static=unknown 13695else 13696 lt_cv_dlopen=no 13697 lt_cv_dlopen_libs= 13698 13699 case $host_os in 13700 beos*) 13701 lt_cv_dlopen="load_add_on" 13702 lt_cv_dlopen_libs= 13703 lt_cv_dlopen_self=yes 13704 ;; 13705 13706 mingw* | pw32*) 13707 lt_cv_dlopen="LoadLibrary" 13708 lt_cv_dlopen_libs= 13709 ;; 13710 13711 cygwin*) 13712 lt_cv_dlopen="dlopen" 13713 lt_cv_dlopen_libs= 13714 ;; 13715 13716 darwin*) 13717 # if libdl is installed we need to link against it 13718 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 13719echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 13720if test "${ac_cv_lib_dl_dlopen+set}" = set; then 13721 echo $ECHO_N "(cached) $ECHO_C" >&6 13722else 13723 ac_check_lib_save_LIBS=$LIBS 13724LIBS="-ldl $LIBS" 13725cat >conftest.$ac_ext <<_ACEOF 13726/* confdefs.h. */ 13727_ACEOF 13728cat confdefs.h >>conftest.$ac_ext 13729cat >>conftest.$ac_ext <<_ACEOF 13730/* end confdefs.h. */ 13731 13732/* Override any gcc2 internal prototype to avoid an error. */ 13733#ifdef __cplusplus 13734extern "C" 13735#endif 13736/* We use char because int might match the return type of a gcc2 13737 builtin and then its argument prototype would still apply. */ 13738char dlopen (); 13739#ifdef F77_DUMMY_MAIN 13740 13741# ifdef __cplusplus 13742 extern "C" 13743# endif 13744 int F77_DUMMY_MAIN() { return 1; } 13745 13746#endif 13747int 13748main () 13749{ 13750dlopen (); 13751 ; 13752 return 0; 13753} 13754_ACEOF 13755rm -f conftest.$ac_objext conftest$ac_exeext 13756if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13757 (eval $ac_link) 2>conftest.er1 13758 ac_status=$? 13759 grep -v '^ *+' conftest.er1 >conftest.err 13760 rm -f conftest.er1 13761 cat conftest.err >&5 13762 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13763 (exit $ac_status); } && 13764 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 13765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13766 (eval $ac_try) 2>&5 13767 ac_status=$? 13768 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13769 (exit $ac_status); }; } && 13770 { ac_try='test -s conftest$ac_exeext' 13771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13772 (eval $ac_try) 2>&5 13773 ac_status=$? 13774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13775 (exit $ac_status); }; }; then 13776 ac_cv_lib_dl_dlopen=yes 13777else 13778 echo "$as_me: failed program was:" >&5 13779sed 's/^/| /' conftest.$ac_ext >&5 13780 13781ac_cv_lib_dl_dlopen=no 13782fi 13783rm -f conftest.err conftest.$ac_objext \ 13784 conftest$ac_exeext conftest.$ac_ext 13785LIBS=$ac_check_lib_save_LIBS 13786fi 13787echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 13788echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 13789if test $ac_cv_lib_dl_dlopen = yes; then 13790 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 13791else 13792 13793 lt_cv_dlopen="dyld" 13794 lt_cv_dlopen_libs= 13795 lt_cv_dlopen_self=yes 13796 13797fi 13798 13799 ;; 13800 13801 *) 13802 echo "$as_me:$LINENO: checking for shl_load" >&5 13803echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 13804if test "${ac_cv_func_shl_load+set}" = set; then 13805 echo $ECHO_N "(cached) $ECHO_C" >&6 13806else 13807 cat >conftest.$ac_ext <<_ACEOF 13808/* confdefs.h. */ 13809_ACEOF 13810cat confdefs.h >>conftest.$ac_ext 13811cat >>conftest.$ac_ext <<_ACEOF 13812/* end confdefs.h. */ 13813/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 13814 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13815#define shl_load innocuous_shl_load 13816 13817/* System header to define __stub macros and hopefully few prototypes, 13818 which can conflict with char shl_load (); below. 13819 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13820 <limits.h> exists even on freestanding compilers. */ 13821 13822#ifdef __STDC__ 13823# include <limits.h> 13824#else 13825# include <assert.h> 13826#endif 13827 13828#undef shl_load 13829 13830/* Override any gcc2 internal prototype to avoid an error. */ 13831#ifdef __cplusplus 13832extern "C" 13833{ 13834#endif 13835/* We use char because int might match the return type of a gcc2 13836 builtin and then its argument prototype would still apply. */ 13837char shl_load (); 13838/* The GNU C library defines this for functions which it implements 13839 to always fail with ENOSYS. Some functions are actually named 13840 something starting with __ and the normal name is an alias. */ 13841#if defined (__stub_shl_load) || defined (__stub___shl_load) 13842choke me 13843#else 13844char (*f) () = shl_load; 13845#endif 13846#ifdef __cplusplus 13847} 13848#endif 13849 13850#ifdef F77_DUMMY_MAIN 13851 13852# ifdef __cplusplus 13853 extern "C" 13854# endif 13855 int F77_DUMMY_MAIN() { return 1; } 13856 13857#endif 13858int 13859main () 13860{ 13861return f != shl_load; 13862 ; 13863 return 0; 13864} 13865_ACEOF 13866rm -f conftest.$ac_objext conftest$ac_exeext 13867if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13868 (eval $ac_link) 2>conftest.er1 13869 ac_status=$? 13870 grep -v '^ *+' conftest.er1 >conftest.err 13871 rm -f conftest.er1 13872 cat conftest.err >&5 13873 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13874 (exit $ac_status); } && 13875 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 13876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13877 (eval $ac_try) 2>&5 13878 ac_status=$? 13879 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13880 (exit $ac_status); }; } && 13881 { ac_try='test -s conftest$ac_exeext' 13882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13883 (eval $ac_try) 2>&5 13884 ac_status=$? 13885 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13886 (exit $ac_status); }; }; then 13887 ac_cv_func_shl_load=yes 13888else 13889 echo "$as_me: failed program was:" >&5 13890sed 's/^/| /' conftest.$ac_ext >&5 13891 13892ac_cv_func_shl_load=no 13893fi 13894rm -f conftest.err conftest.$ac_objext \ 13895 conftest$ac_exeext conftest.$ac_ext 13896fi 13897echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 13898echo "${ECHO_T}$ac_cv_func_shl_load" >&6 13899if test $ac_cv_func_shl_load = yes; then 13900 lt_cv_dlopen="shl_load" 13901else 13902 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 13903echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 13904if test "${ac_cv_lib_dld_shl_load+set}" = set; then 13905 echo $ECHO_N "(cached) $ECHO_C" >&6 13906else 13907 ac_check_lib_save_LIBS=$LIBS 13908LIBS="-ldld $LIBS" 13909cat >conftest.$ac_ext <<_ACEOF 13910/* confdefs.h. */ 13911_ACEOF 13912cat confdefs.h >>conftest.$ac_ext 13913cat >>conftest.$ac_ext <<_ACEOF 13914/* end confdefs.h. */ 13915 13916/* Override any gcc2 internal prototype to avoid an error. */ 13917#ifdef __cplusplus 13918extern "C" 13919#endif 13920/* We use char because int might match the return type of a gcc2 13921 builtin and then its argument prototype would still apply. */ 13922char shl_load (); 13923#ifdef F77_DUMMY_MAIN 13924 13925# ifdef __cplusplus 13926 extern "C" 13927# endif 13928 int F77_DUMMY_MAIN() { return 1; } 13929 13930#endif 13931int 13932main () 13933{ 13934shl_load (); 13935 ; 13936 return 0; 13937} 13938_ACEOF 13939rm -f conftest.$ac_objext conftest$ac_exeext 13940if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13941 (eval $ac_link) 2>conftest.er1 13942 ac_status=$? 13943 grep -v '^ *+' conftest.er1 >conftest.err 13944 rm -f conftest.er1 13945 cat conftest.err >&5 13946 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13947 (exit $ac_status); } && 13948 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 13949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13950 (eval $ac_try) 2>&5 13951 ac_status=$? 13952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13953 (exit $ac_status); }; } && 13954 { ac_try='test -s conftest$ac_exeext' 13955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13956 (eval $ac_try) 2>&5 13957 ac_status=$? 13958 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13959 (exit $ac_status); }; }; then 13960 ac_cv_lib_dld_shl_load=yes 13961else 13962 echo "$as_me: failed program was:" >&5 13963sed 's/^/| /' conftest.$ac_ext >&5 13964 13965ac_cv_lib_dld_shl_load=no 13966fi 13967rm -f conftest.err conftest.$ac_objext \ 13968 conftest$ac_exeext conftest.$ac_ext 13969LIBS=$ac_check_lib_save_LIBS 13970fi 13971echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 13972echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 13973if test $ac_cv_lib_dld_shl_load = yes; then 13974 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 13975else 13976 echo "$as_me:$LINENO: checking for dlopen" >&5 13977echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 13978if test "${ac_cv_func_dlopen+set}" = set; then 13979 echo $ECHO_N "(cached) $ECHO_C" >&6 13980else 13981 cat >conftest.$ac_ext <<_ACEOF 13982/* confdefs.h. */ 13983_ACEOF 13984cat confdefs.h >>conftest.$ac_ext 13985cat >>conftest.$ac_ext <<_ACEOF 13986/* end confdefs.h. */ 13987/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 13988 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13989#define dlopen innocuous_dlopen 13990 13991/* System header to define __stub macros and hopefully few prototypes, 13992 which can conflict with char dlopen (); below. 13993 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13994 <limits.h> exists even on freestanding compilers. */ 13995 13996#ifdef __STDC__ 13997# include <limits.h> 13998#else 13999# include <assert.h> 14000#endif 14001 14002#undef dlopen 14003 14004/* Override any gcc2 internal prototype to avoid an error. */ 14005#ifdef __cplusplus 14006extern "C" 14007{ 14008#endif 14009/* We use char because int might match the return type of a gcc2 14010 builtin and then its argument prototype would still apply. */ 14011char dlopen (); 14012/* The GNU C library defines this for functions which it implements 14013 to always fail with ENOSYS. Some functions are actually named 14014 something starting with __ and the normal name is an alias. */ 14015#if defined (__stub_dlopen) || defined (__stub___dlopen) 14016choke me 14017#else 14018char (*f) () = dlopen; 14019#endif 14020#ifdef __cplusplus 14021} 14022#endif 14023 14024#ifdef F77_DUMMY_MAIN 14025 14026# ifdef __cplusplus 14027 extern "C" 14028# endif 14029 int F77_DUMMY_MAIN() { return 1; } 14030 14031#endif 14032int 14033main () 14034{ 14035return f != dlopen; 14036 ; 14037 return 0; 14038} 14039_ACEOF 14040rm -f conftest.$ac_objext conftest$ac_exeext 14041if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14042 (eval $ac_link) 2>conftest.er1 14043 ac_status=$? 14044 grep -v '^ *+' conftest.er1 >conftest.err 14045 rm -f conftest.er1 14046 cat conftest.err >&5 14047 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14048 (exit $ac_status); } && 14049 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 14050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14051 (eval $ac_try) 2>&5 14052 ac_status=$? 14053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14054 (exit $ac_status); }; } && 14055 { ac_try='test -s conftest$ac_exeext' 14056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14057 (eval $ac_try) 2>&5 14058 ac_status=$? 14059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14060 (exit $ac_status); }; }; then 14061 ac_cv_func_dlopen=yes 14062else 14063 echo "$as_me: failed program was:" >&5 14064sed 's/^/| /' conftest.$ac_ext >&5 14065 14066ac_cv_func_dlopen=no 14067fi 14068rm -f conftest.err conftest.$ac_objext \ 14069 conftest$ac_exeext conftest.$ac_ext 14070fi 14071echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 14072echo "${ECHO_T}$ac_cv_func_dlopen" >&6 14073if test $ac_cv_func_dlopen = yes; then 14074 lt_cv_dlopen="dlopen" 14075else 14076 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 14077echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 14078if test "${ac_cv_lib_dl_dlopen+set}" = set; then 14079 echo $ECHO_N "(cached) $ECHO_C" >&6 14080else 14081 ac_check_lib_save_LIBS=$LIBS 14082LIBS="-ldl $LIBS" 14083cat >conftest.$ac_ext <<_ACEOF 14084/* confdefs.h. */ 14085_ACEOF 14086cat confdefs.h >>conftest.$ac_ext 14087cat >>conftest.$ac_ext <<_ACEOF 14088/* end confdefs.h. */ 14089 14090/* Override any gcc2 internal prototype to avoid an error. */ 14091#ifdef __cplusplus 14092extern "C" 14093#endif 14094/* We use char because int might match the return type of a gcc2 14095 builtin and then its argument prototype would still apply. */ 14096char dlopen (); 14097#ifdef F77_DUMMY_MAIN 14098 14099# ifdef __cplusplus 14100 extern "C" 14101# endif 14102 int F77_DUMMY_MAIN() { return 1; } 14103 14104#endif 14105int 14106main () 14107{ 14108dlopen (); 14109 ; 14110 return 0; 14111} 14112_ACEOF 14113rm -f conftest.$ac_objext conftest$ac_exeext 14114if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14115 (eval $ac_link) 2>conftest.er1 14116 ac_status=$? 14117 grep -v '^ *+' conftest.er1 >conftest.err 14118 rm -f conftest.er1 14119 cat conftest.err >&5 14120 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14121 (exit $ac_status); } && 14122 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 14123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14124 (eval $ac_try) 2>&5 14125 ac_status=$? 14126 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14127 (exit $ac_status); }; } && 14128 { ac_try='test -s conftest$ac_exeext' 14129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14130 (eval $ac_try) 2>&5 14131 ac_status=$? 14132 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14133 (exit $ac_status); }; }; then 14134 ac_cv_lib_dl_dlopen=yes 14135else 14136 echo "$as_me: failed program was:" >&5 14137sed 's/^/| /' conftest.$ac_ext >&5 14138 14139ac_cv_lib_dl_dlopen=no 14140fi 14141rm -f conftest.err conftest.$ac_objext \ 14142 conftest$ac_exeext conftest.$ac_ext 14143LIBS=$ac_check_lib_save_LIBS 14144fi 14145echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 14146echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 14147if test $ac_cv_lib_dl_dlopen = yes; then 14148 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 14149else 14150 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 14151echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 14152if test "${ac_cv_lib_svld_dlopen+set}" = set; then 14153 echo $ECHO_N "(cached) $ECHO_C" >&6 14154else 14155 ac_check_lib_save_LIBS=$LIBS 14156LIBS="-lsvld $LIBS" 14157cat >conftest.$ac_ext <<_ACEOF 14158/* confdefs.h. */ 14159_ACEOF 14160cat confdefs.h >>conftest.$ac_ext 14161cat >>conftest.$ac_ext <<_ACEOF 14162/* end confdefs.h. */ 14163 14164/* Override any gcc2 internal prototype to avoid an error. */ 14165#ifdef __cplusplus 14166extern "C" 14167#endif 14168/* We use char because int might match the return type of a gcc2 14169 builtin and then its argument prototype would still apply. */ 14170char dlopen (); 14171#ifdef F77_DUMMY_MAIN 14172 14173# ifdef __cplusplus 14174 extern "C" 14175# endif 14176 int F77_DUMMY_MAIN() { return 1; } 14177 14178#endif 14179int 14180main () 14181{ 14182dlopen (); 14183 ; 14184 return 0; 14185} 14186_ACEOF 14187rm -f conftest.$ac_objext conftest$ac_exeext 14188if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14189 (eval $ac_link) 2>conftest.er1 14190 ac_status=$? 14191 grep -v '^ *+' conftest.er1 >conftest.err 14192 rm -f conftest.er1 14193 cat conftest.err >&5 14194 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14195 (exit $ac_status); } && 14196 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 14197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14198 (eval $ac_try) 2>&5 14199 ac_status=$? 14200 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14201 (exit $ac_status); }; } && 14202 { ac_try='test -s conftest$ac_exeext' 14203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14204 (eval $ac_try) 2>&5 14205 ac_status=$? 14206 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14207 (exit $ac_status); }; }; then 14208 ac_cv_lib_svld_dlopen=yes 14209else 14210 echo "$as_me: failed program was:" >&5 14211sed 's/^/| /' conftest.$ac_ext >&5 14212 14213ac_cv_lib_svld_dlopen=no 14214fi 14215rm -f conftest.err conftest.$ac_objext \ 14216 conftest$ac_exeext conftest.$ac_ext 14217LIBS=$ac_check_lib_save_LIBS 14218fi 14219echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 14220echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 14221if test $ac_cv_lib_svld_dlopen = yes; then 14222 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 14223else 14224 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 14225echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 14226if test "${ac_cv_lib_dld_dld_link+set}" = set; then 14227 echo $ECHO_N "(cached) $ECHO_C" >&6 14228else 14229 ac_check_lib_save_LIBS=$LIBS 14230LIBS="-ldld $LIBS" 14231cat >conftest.$ac_ext <<_ACEOF 14232/* confdefs.h. */ 14233_ACEOF 14234cat confdefs.h >>conftest.$ac_ext 14235cat >>conftest.$ac_ext <<_ACEOF 14236/* end confdefs.h. */ 14237 14238/* Override any gcc2 internal prototype to avoid an error. */ 14239#ifdef __cplusplus 14240extern "C" 14241#endif 14242/* We use char because int might match the return type of a gcc2 14243 builtin and then its argument prototype would still apply. */ 14244char dld_link (); 14245#ifdef F77_DUMMY_MAIN 14246 14247# ifdef __cplusplus 14248 extern "C" 14249# endif 14250 int F77_DUMMY_MAIN() { return 1; } 14251 14252#endif 14253int 14254main () 14255{ 14256dld_link (); 14257 ; 14258 return 0; 14259} 14260_ACEOF 14261rm -f conftest.$ac_objext conftest$ac_exeext 14262if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14263 (eval $ac_link) 2>conftest.er1 14264 ac_status=$? 14265 grep -v '^ *+' conftest.er1 >conftest.err 14266 rm -f conftest.er1 14267 cat conftest.err >&5 14268 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14269 (exit $ac_status); } && 14270 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 14271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14272 (eval $ac_try) 2>&5 14273 ac_status=$? 14274 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14275 (exit $ac_status); }; } && 14276 { ac_try='test -s conftest$ac_exeext' 14277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14278 (eval $ac_try) 2>&5 14279 ac_status=$? 14280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14281 (exit $ac_status); }; }; then 14282 ac_cv_lib_dld_dld_link=yes 14283else 14284 echo "$as_me: failed program was:" >&5 14285sed 's/^/| /' conftest.$ac_ext >&5 14286 14287ac_cv_lib_dld_dld_link=no 14288fi 14289rm -f conftest.err conftest.$ac_objext \ 14290 conftest$ac_exeext conftest.$ac_ext 14291LIBS=$ac_check_lib_save_LIBS 14292fi 14293echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 14294echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 14295if test $ac_cv_lib_dld_dld_link = yes; then 14296 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 14297fi 14298 14299 14300fi 14301 14302 14303fi 14304 14305 14306fi 14307 14308 14309fi 14310 14311 14312fi 14313 14314 ;; 14315 esac 14316 14317 if test "x$lt_cv_dlopen" != xno; then 14318 enable_dlopen=yes 14319 else 14320 enable_dlopen=no 14321 fi 14322 14323 case $lt_cv_dlopen in 14324 dlopen) 14325 save_CPPFLAGS="$CPPFLAGS" 14326 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 14327 14328 save_LDFLAGS="$LDFLAGS" 14329 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 14330 14331 save_LIBS="$LIBS" 14332 LIBS="$lt_cv_dlopen_libs $LIBS" 14333 14334 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 14335echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 14336if test "${lt_cv_dlopen_self+set}" = set; then 14337 echo $ECHO_N "(cached) $ECHO_C" >&6 14338else 14339 if test "$cross_compiling" = yes; then : 14340 lt_cv_dlopen_self=cross 14341else 14342 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 14343 lt_status=$lt_dlunknown 14344 cat > conftest.$ac_ext <<EOF 14345#line 14345 "configure" 14346#include "confdefs.h" 14347 14348#if HAVE_DLFCN_H 14349#include <dlfcn.h> 14350#endif 14351 14352#include <stdio.h> 14353 14354#ifdef RTLD_GLOBAL 14355# define LT_DLGLOBAL RTLD_GLOBAL 14356#else 14357# ifdef DL_GLOBAL 14358# define LT_DLGLOBAL DL_GLOBAL 14359# else 14360# define LT_DLGLOBAL 0 14361# endif 14362#endif 14363 14364/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 14365 find out it does not work in some platform. */ 14366#ifndef LT_DLLAZY_OR_NOW 14367# ifdef RTLD_LAZY 14368# define LT_DLLAZY_OR_NOW RTLD_LAZY 14369# else 14370# ifdef DL_LAZY 14371# define LT_DLLAZY_OR_NOW DL_LAZY 14372# else 14373# ifdef RTLD_NOW 14374# define LT_DLLAZY_OR_NOW RTLD_NOW 14375# else 14376# ifdef DL_NOW 14377# define LT_DLLAZY_OR_NOW DL_NOW 14378# else 14379# define LT_DLLAZY_OR_NOW 0 14380# endif 14381# endif 14382# endif 14383# endif 14384#endif 14385 14386#ifdef __cplusplus 14387extern "C" void exit (int); 14388#endif 14389 14390void fnord() { int i=42;} 14391int main () 14392{ 14393 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 14394 int status = $lt_dlunknown; 14395 14396 if (self) 14397 { 14398 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 14399 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 14400 /* dlclose (self); */ 14401 } 14402 14403 exit (status); 14404} 14405EOF 14406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14407 (eval $ac_link) 2>&5 14408 ac_status=$? 14409 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14410 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 14411 (./conftest; exit; ) 2>/dev/null 14412 lt_status=$? 14413 case x$lt_status in 14414 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 14415 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 14416 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 14417 esac 14418 else : 14419 # compilation failed 14420 lt_cv_dlopen_self=no 14421 fi 14422fi 14423rm -fr conftest* 14424 14425 14426fi 14427echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 14428echo "${ECHO_T}$lt_cv_dlopen_self" >&6 14429 14430 if test "x$lt_cv_dlopen_self" = xyes; then 14431 LDFLAGS="$LDFLAGS $link_static_flag" 14432 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 14433echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 14434if test "${lt_cv_dlopen_self_static+set}" = set; then 14435 echo $ECHO_N "(cached) $ECHO_C" >&6 14436else 14437 if test "$cross_compiling" = yes; then : 14438 lt_cv_dlopen_self_static=cross 14439else 14440 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 14441 lt_status=$lt_dlunknown 14442 cat > conftest.$ac_ext <<EOF 14443#line 14443 "configure" 14444#include "confdefs.h" 14445 14446#if HAVE_DLFCN_H 14447#include <dlfcn.h> 14448#endif 14449 14450#include <stdio.h> 14451 14452#ifdef RTLD_GLOBAL 14453# define LT_DLGLOBAL RTLD_GLOBAL 14454#else 14455# ifdef DL_GLOBAL 14456# define LT_DLGLOBAL DL_GLOBAL 14457# else 14458# define LT_DLGLOBAL 0 14459# endif 14460#endif 14461 14462/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 14463 find out it does not work in some platform. */ 14464#ifndef LT_DLLAZY_OR_NOW 14465# ifdef RTLD_LAZY 14466# define LT_DLLAZY_OR_NOW RTLD_LAZY 14467# else 14468# ifdef DL_LAZY 14469# define LT_DLLAZY_OR_NOW DL_LAZY 14470# else 14471# ifdef RTLD_NOW 14472# define LT_DLLAZY_OR_NOW RTLD_NOW 14473# else 14474# ifdef DL_NOW 14475# define LT_DLLAZY_OR_NOW DL_NOW 14476# else 14477# define LT_DLLAZY_OR_NOW 0 14478# endif 14479# endif 14480# endif 14481# endif 14482#endif 14483 14484#ifdef __cplusplus 14485extern "C" void exit (int); 14486#endif 14487 14488void fnord() { int i=42;} 14489int main () 14490{ 14491 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 14492 int status = $lt_dlunknown; 14493 14494 if (self) 14495 { 14496 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 14497 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 14498 /* dlclose (self); */ 14499 } 14500 14501 exit (status); 14502} 14503EOF 14504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14505 (eval $ac_link) 2>&5 14506 ac_status=$? 14507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14508 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 14509 (./conftest; exit; ) 2>/dev/null 14510 lt_status=$? 14511 case x$lt_status in 14512 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 14513 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 14514 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 14515 esac 14516 else : 14517 # compilation failed 14518 lt_cv_dlopen_self_static=no 14519 fi 14520fi 14521rm -fr conftest* 14522 14523 14524fi 14525echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 14526echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 14527 fi 14528 14529 CPPFLAGS="$save_CPPFLAGS" 14530 LDFLAGS="$save_LDFLAGS" 14531 LIBS="$save_LIBS" 14532 ;; 14533 esac 14534 14535 case $lt_cv_dlopen_self in 14536 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 14537 *) enable_dlopen_self=unknown ;; 14538 esac 14539 14540 case $lt_cv_dlopen_self_static in 14541 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 14542 *) enable_dlopen_self_static=unknown ;; 14543 esac 14544fi 14545 14546 14547# The else clause should only fire when bootstrapping the 14548# libtool distribution, otherwise you forgot to ship ltmain.sh 14549# with your package, and you will get complaints that there are 14550# no rules to generate ltmain.sh. 14551if test -f "$ltmain"; then 14552 # See if we are running on zsh, and set the options which allow our commands through 14553 # without removal of \ escapes. 14554 if test -n "${ZSH_VERSION+set}" ; then 14555 setopt NO_GLOB_SUBST 14556 fi 14557 # Now quote all the things that may contain metacharacters while being 14558 # careful not to overquote the AC_SUBSTed values. We take copies of the 14559 # variables and quote the copies for generation of the libtool script. 14560 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 14561 SED SHELL STRIP \ 14562 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 14563 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 14564 deplibs_check_method reload_flag reload_cmds need_locks \ 14565 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 14566 lt_cv_sys_global_symbol_to_c_name_address \ 14567 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 14568 old_postinstall_cmds old_postuninstall_cmds \ 14569 compiler_CXX \ 14570 CC_CXX \ 14571 LD_CXX \ 14572 lt_prog_compiler_wl_CXX \ 14573 lt_prog_compiler_pic_CXX \ 14574 lt_prog_compiler_static_CXX \ 14575 lt_prog_compiler_no_builtin_flag_CXX \ 14576 export_dynamic_flag_spec_CXX \ 14577 thread_safe_flag_spec_CXX \ 14578 whole_archive_flag_spec_CXX \ 14579 enable_shared_with_static_runtimes_CXX \ 14580 old_archive_cmds_CXX \ 14581 old_archive_from_new_cmds_CXX \ 14582 predep_objects_CXX \ 14583 postdep_objects_CXX \ 14584 predeps_CXX \ 14585 postdeps_CXX \ 14586 compiler_lib_search_path_CXX \ 14587 archive_cmds_CXX \ 14588 archive_expsym_cmds_CXX \ 14589 postinstall_cmds_CXX \ 14590 postuninstall_cmds_CXX \ 14591 old_archive_from_expsyms_cmds_CXX \ 14592 allow_undefined_flag_CXX \ 14593 no_undefined_flag_CXX \ 14594 export_symbols_cmds_CXX \ 14595 hardcode_libdir_flag_spec_CXX \ 14596 hardcode_libdir_flag_spec_ld_CXX \ 14597 hardcode_libdir_separator_CXX \ 14598 hardcode_automatic_CXX \ 14599 module_cmds_CXX \ 14600 module_expsym_cmds_CXX \ 14601 lt_cv_prog_compiler_c_o_CXX \ 14602 exclude_expsyms_CXX \ 14603 include_expsyms_CXX; do 14604 14605 case $var in 14606 old_archive_cmds_CXX | \ 14607 old_archive_from_new_cmds_CXX | \ 14608 archive_cmds_CXX | \ 14609 archive_expsym_cmds_CXX | \ 14610 module_cmds_CXX | \ 14611 module_expsym_cmds_CXX | \ 14612 old_archive_from_expsyms_cmds_CXX | \ 14613 export_symbols_cmds_CXX | \ 14614 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 14615 postinstall_cmds | postuninstall_cmds | \ 14616 old_postinstall_cmds | old_postuninstall_cmds | \ 14617 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 14618 # Double-quote double-evaled strings. 14619 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 14620 ;; 14621 *) 14622 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 14623 ;; 14624 esac 14625 done 14626 14627 case $lt_echo in 14628 *'\$0 --fallback-echo"') 14629 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 14630 ;; 14631 esac 14632 14633cfgfile="$ofile" 14634 14635 cat <<__EOF__ >> "$cfgfile" 14636# ### BEGIN LIBTOOL TAG CONFIG: $tagname 14637 14638# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14639 14640# Shell to use when invoking shell scripts. 14641SHELL=$lt_SHELL 14642 14643# Whether or not to build shared libraries. 14644build_libtool_libs=$enable_shared 14645 14646# Whether or not to build static libraries. 14647build_old_libs=$enable_static 14648 14649# Whether or not to add -lc for building shared libraries. 14650build_libtool_need_lc=$archive_cmds_need_lc_CXX 14651 14652# Whether or not to disallow shared libs when runtime libs are static 14653allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 14654 14655# Whether or not to optimize for fast installation. 14656fast_install=$enable_fast_install 14657 14658# The host system. 14659host_alias=$host_alias 14660host=$host 14661 14662# An echo program that does not interpret backslashes. 14663echo=$lt_echo 14664 14665# The archiver. 14666AR=$lt_AR 14667AR_FLAGS=$lt_AR_FLAGS 14668 14669# A C compiler. 14670LTCC=$lt_LTCC 14671 14672# A language-specific compiler. 14673CC=$lt_compiler_CXX 14674 14675# Is the compiler the GNU C compiler? 14676with_gcc=$GCC_CXX 14677 14678# An ERE matcher. 14679EGREP=$lt_EGREP 14680 14681# The linker used to build libraries. 14682LD=$lt_LD_CXX 14683 14684# Whether we need hard or soft links. 14685LN_S=$lt_LN_S 14686 14687# A BSD-compatible nm program. 14688NM=$lt_NM 14689 14690# A symbol stripping program 14691STRIP=$lt_STRIP 14692 14693# Used to examine libraries when file_magic_cmd begins "file" 14694MAGIC_CMD=$MAGIC_CMD 14695 14696# Used on cygwin: DLL creation program. 14697DLLTOOL="$DLLTOOL" 14698 14699# Used on cygwin: object dumper. 14700OBJDUMP="$OBJDUMP" 14701 14702# Used on cygwin: assembler. 14703AS="$AS" 14704 14705# The name of the directory that contains temporary libtool files. 14706objdir=$objdir 14707 14708# How to create reloadable object files. 14709reload_flag=$lt_reload_flag 14710reload_cmds=$lt_reload_cmds 14711 14712# How to pass a linker flag through the compiler. 14713wl=$lt_lt_prog_compiler_wl_CXX 14714 14715# Object file suffix (normally "o"). 14716objext="$ac_objext" 14717 14718# Old archive suffix (normally "a"). 14719libext="$libext" 14720 14721# Shared library suffix (normally ".so"). 14722shrext_cmds='$shrext_cmds' 14723 14724# Executable file suffix (normally ""). 14725exeext="$exeext" 14726 14727# Additional compiler flags for building library objects. 14728pic_flag=$lt_lt_prog_compiler_pic_CXX 14729pic_mode=$pic_mode 14730 14731# What is the maximum length of a command? 14732max_cmd_len=$lt_cv_sys_max_cmd_len 14733 14734# Does compiler simultaneously support -c and -o options? 14735compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 14736 14737# Must we lock files when doing compilation ? 14738need_locks=$lt_need_locks 14739 14740# Do we need the lib prefix for modules? 14741need_lib_prefix=$need_lib_prefix 14742 14743# Do we need a version for libraries? 14744need_version=$need_version 14745 14746# Whether dlopen is supported. 14747dlopen_support=$enable_dlopen 14748 14749# Whether dlopen of programs is supported. 14750dlopen_self=$enable_dlopen_self 14751 14752# Whether dlopen of statically linked programs is supported. 14753dlopen_self_static=$enable_dlopen_self_static 14754 14755# Compiler flag to prevent dynamic linking. 14756link_static_flag=$lt_lt_prog_compiler_static_CXX 14757 14758# Compiler flag to turn off builtin functions. 14759no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 14760 14761# Compiler flag to allow reflexive dlopens. 14762export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 14763 14764# Compiler flag to generate shared objects directly from archives. 14765whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 14766 14767# Compiler flag to generate thread-safe objects. 14768thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 14769 14770# Library versioning type. 14771version_type=$version_type 14772 14773# Format of library name prefix. 14774libname_spec=$lt_libname_spec 14775 14776# List of archive names. First name is the real one, the rest are links. 14777# The last name is the one that the linker finds with -lNAME. 14778library_names_spec=$lt_library_names_spec 14779 14780# The coded name of the library, if different from the real name. 14781soname_spec=$lt_soname_spec 14782 14783# Commands used to build and install an old-style archive. 14784RANLIB=$lt_RANLIB 14785old_archive_cmds=$lt_old_archive_cmds_CXX 14786old_postinstall_cmds=$lt_old_postinstall_cmds 14787old_postuninstall_cmds=$lt_old_postuninstall_cmds 14788 14789# Create an old-style archive from a shared archive. 14790old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 14791 14792# Create a temporary old-style archive to link instead of a shared archive. 14793old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 14794 14795# Commands used to build and install a shared archive. 14796archive_cmds=$lt_archive_cmds_CXX 14797archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 14798postinstall_cmds=$lt_postinstall_cmds 14799postuninstall_cmds=$lt_postuninstall_cmds 14800 14801# Commands used to build a loadable module (assumed same as above if empty) 14802module_cmds=$lt_module_cmds_CXX 14803module_expsym_cmds=$lt_module_expsym_cmds_CXX 14804 14805# Commands to strip libraries. 14806old_striplib=$lt_old_striplib 14807striplib=$lt_striplib 14808 14809# Dependencies to place before the objects being linked to create a 14810# shared library. 14811predep_objects=$lt_predep_objects_CXX 14812 14813# Dependencies to place after the objects being linked to create a 14814# shared library. 14815postdep_objects=$lt_postdep_objects_CXX 14816 14817# Dependencies to place before the objects being linked to create a 14818# shared library. 14819predeps=$lt_predeps_CXX 14820 14821# Dependencies to place after the objects being linked to create a 14822# shared library. 14823postdeps=$lt_postdeps_CXX 14824 14825# The library search path used internally by the compiler when linking 14826# a shared library. 14827compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 14828 14829# Method to check whether dependent libraries are shared objects. 14830deplibs_check_method=$lt_deplibs_check_method 14831 14832# Command to use when deplibs_check_method == file_magic. 14833file_magic_cmd=$lt_file_magic_cmd 14834 14835# Flag that allows shared libraries with undefined symbols to be built. 14836allow_undefined_flag=$lt_allow_undefined_flag_CXX 14837 14838# Flag that forces no undefined symbols. 14839no_undefined_flag=$lt_no_undefined_flag_CXX 14840 14841# Commands used to finish a libtool library installation in a directory. 14842finish_cmds=$lt_finish_cmds 14843 14844# Same as above, but a single script fragment to be evaled but not shown. 14845finish_eval=$lt_finish_eval 14846 14847# Take the output of nm and produce a listing of raw symbols and C names. 14848global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14849 14850# Transform the output of nm in a proper C declaration 14851global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14852 14853# Transform the output of nm in a C name address pair 14854global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14855 14856# This is the shared library runtime path variable. 14857runpath_var=$runpath_var 14858 14859# This is the shared library path variable. 14860shlibpath_var=$shlibpath_var 14861 14862# Is shlibpath searched before the hard-coded library search path? 14863shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14864 14865# How to hardcode a shared library path into an executable. 14866hardcode_action=$hardcode_action_CXX 14867 14868# Whether we should hardcode library paths into libraries. 14869hardcode_into_libs=$hardcode_into_libs 14870 14871# Flag to hardcode \$libdir into a binary during linking. 14872# This must work even if \$libdir does not exist. 14873hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 14874 14875# If ld is used when linking, flag to hardcode \$libdir into 14876# a binary during linking. This must work even if \$libdir does 14877# not exist. 14878hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 14879 14880# Whether we need a single -rpath flag with a separated argument. 14881hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 14882 14883# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 14884# resulting binary. 14885hardcode_direct=$hardcode_direct_CXX 14886 14887# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 14888# resulting binary. 14889hardcode_minus_L=$hardcode_minus_L_CXX 14890 14891# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 14892# the resulting binary. 14893hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 14894 14895# Set to yes if building a shared library automatically hardcodes DIR into the library 14896# and all subsequent libraries and executables linked against it. 14897hardcode_automatic=$hardcode_automatic_CXX 14898 14899# Variables whose values should be saved in libtool wrapper scripts and 14900# restored at relink time. 14901variables_saved_for_relink="$variables_saved_for_relink" 14902 14903# Whether libtool must link a program against all its dependency libraries. 14904link_all_deplibs=$link_all_deplibs_CXX 14905 14906# Compile-time system search path for libraries 14907sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14908 14909# Run-time system search path for libraries 14910sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14911 14912# Fix the shell variable \$srcfile for the compiler. 14913fix_srcfile_path="$fix_srcfile_path_CXX" 14914 14915# Set to yes if exported symbols are required. 14916always_export_symbols=$always_export_symbols_CXX 14917 14918# The commands to list exported symbols. 14919export_symbols_cmds=$lt_export_symbols_cmds_CXX 14920 14921# The commands to extract the exported symbol list from a shared archive. 14922extract_expsyms_cmds=$lt_extract_expsyms_cmds 14923 14924# Symbols that should not be listed in the preloaded symbols. 14925exclude_expsyms=$lt_exclude_expsyms_CXX 14926 14927# Symbols that must always be exported. 14928include_expsyms=$lt_include_expsyms_CXX 14929 14930# ### END LIBTOOL TAG CONFIG: $tagname 14931 14932__EOF__ 14933 14934 14935else 14936 # If there is no Makefile yet, we rely on a make rule to execute 14937 # `config.status --recheck' to rerun these tests and create the 14938 # libtool script then. 14939 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 14940 if test -f "$ltmain_in"; then 14941 test -f Makefile && make "$ltmain" 14942 fi 14943fi 14944 14945 14946ac_ext=c 14947ac_cpp='$CPP $CPPFLAGS' 14948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14950ac_compiler_gnu=$ac_cv_c_compiler_gnu 14951 14952CC=$lt_save_CC 14953LDCXX=$LD 14954LD=$lt_save_LD 14955GCC=$lt_save_GCC 14956with_gnu_ldcxx=$with_gnu_ld 14957with_gnu_ld=$lt_save_with_gnu_ld 14958lt_cv_path_LDCXX=$lt_cv_path_LD 14959lt_cv_path_LD=$lt_save_path_LD 14960lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 14961lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 14962 14963 else 14964 tagname="" 14965 fi 14966 ;; 14967 14968 F77) 14969 if test -n "$F77" && test "X$F77" != "Xno"; then 14970 14971ac_ext=f 14972ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 14973ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14974ac_compiler_gnu=$ac_cv_f77_compiler_gnu 14975 14976 14977archive_cmds_need_lc_F77=no 14978allow_undefined_flag_F77= 14979always_export_symbols_F77=no 14980archive_expsym_cmds_F77= 14981export_dynamic_flag_spec_F77= 14982hardcode_direct_F77=no 14983hardcode_libdir_flag_spec_F77= 14984hardcode_libdir_flag_spec_ld_F77= 14985hardcode_libdir_separator_F77= 14986hardcode_minus_L_F77=no 14987hardcode_automatic_F77=no 14988module_cmds_F77= 14989module_expsym_cmds_F77= 14990link_all_deplibs_F77=unknown 14991old_archive_cmds_F77=$old_archive_cmds 14992no_undefined_flag_F77= 14993whole_archive_flag_spec_F77= 14994enable_shared_with_static_runtimes_F77=no 14995 14996# Source file extension for f77 test sources. 14997ac_ext=f 14998 14999# Object file extension for compiled f77 test sources. 15000objext=o 15001objext_F77=$objext 15002 15003# Code to be used in simple compile tests 15004lt_simple_compile_test_code=" subroutine t\n return\n end\n" 15005 15006# Code to be used in simple link tests 15007lt_simple_link_test_code=" program t\n end\n" 15008 15009# ltmain only uses $CC for tagged configurations so make sure $CC is set. 15010 15011# If no C compiler was specified, use CC. 15012LTCC=${LTCC-"$CC"} 15013 15014# Allow CC to be a program name with arguments. 15015compiler=$CC 15016 15017 15018# Allow CC to be a program name with arguments. 15019lt_save_CC="$CC" 15020CC=${F77-"f77"} 15021compiler=$CC 15022compiler_F77=$CC 15023cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` 15024 15025echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 15026echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 15027echo "$as_me:$LINENO: result: $can_build_shared" >&5 15028echo "${ECHO_T}$can_build_shared" >&6 15029 15030echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 15031echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 15032test "$can_build_shared" = "no" && enable_shared=no 15033 15034# On AIX, shared libraries and static libraries use the same namespace, and 15035# are all built from PIC. 15036case "$host_os" in 15037aix3*) 15038 test "$enable_shared" = yes && enable_static=no 15039 if test -n "$RANLIB"; then 15040 archive_cmds="$archive_cmds~\$RANLIB \$lib" 15041 postinstall_cmds='$RANLIB $lib' 15042 fi 15043 ;; 15044aix4* | aix5*) 15045 test "$enable_shared" = yes && enable_static=no 15046 ;; 15047esac 15048echo "$as_me:$LINENO: result: $enable_shared" >&5 15049echo "${ECHO_T}$enable_shared" >&6 15050 15051echo "$as_me:$LINENO: checking whether to build static libraries" >&5 15052echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 15053# Make sure either enable_shared or enable_static is yes. 15054test "$enable_shared" = yes || enable_static=yes 15055echo "$as_me:$LINENO: result: $enable_static" >&5 15056echo "${ECHO_T}$enable_static" >&6 15057 15058test "$ld_shlibs_F77" = no && can_build_shared=no 15059 15060GCC_F77="$G77" 15061LD_F77="$LD" 15062 15063lt_prog_compiler_wl_F77= 15064lt_prog_compiler_pic_F77= 15065lt_prog_compiler_static_F77= 15066 15067echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 15068echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 15069 15070 if test "$GCC" = yes; then 15071 lt_prog_compiler_wl_F77='-Wl,' 15072 lt_prog_compiler_static_F77='-static' 15073 15074 case $host_os in 15075 aix*) 15076 # All AIX code is PIC. 15077 if test "$host_cpu" = ia64; then 15078 # AIX 5 now supports IA64 processor 15079 lt_prog_compiler_static_F77='-Bstatic' 15080 fi 15081 ;; 15082 15083 amigaos*) 15084 # FIXME: we need at least 68020 code to build shared libraries, but 15085 # adding the `-m68020' flag to GCC prevents building anything better, 15086 # like `-m68040'. 15087 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 15088 ;; 15089 15090 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15091 # PIC is the default for these OSes. 15092 ;; 15093 15094 mingw* | pw32* | os2*) 15095 # This hack is so that the source file can tell whether it is being 15096 # built for inclusion in a dll (and should export symbols for example). 15097 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 15098 ;; 15099 15100 darwin* | rhapsody*) 15101 # PIC is the default on this platform 15102 # Common symbols not allowed in MH_DYLIB files 15103 lt_prog_compiler_pic_F77='-fno-common' 15104 ;; 15105 15106 msdosdjgpp*) 15107 # Just because we use GCC doesn't mean we suddenly get shared libraries 15108 # on systems that don't support them. 15109 lt_prog_compiler_can_build_shared_F77=no 15110 enable_shared=no 15111 ;; 15112 15113 sysv4*MP*) 15114 if test -d /usr/nec; then 15115 lt_prog_compiler_pic_F77=-Kconform_pic 15116 fi 15117 ;; 15118 15119 hpux*) 15120 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15121 # not for PA HP-UX. 15122 case "$host_cpu" in 15123 hppa*64*|ia64*) 15124 # +Z the default 15125 ;; 15126 *) 15127 lt_prog_compiler_pic_F77='-fPIC' 15128 ;; 15129 esac 15130 ;; 15131 15132 *) 15133 lt_prog_compiler_pic_F77='-fPIC' 15134 ;; 15135 esac 15136 else 15137 # PORTME Check for flag to pass linker flags through the system compiler. 15138 case $host_os in 15139 aix*) 15140 lt_prog_compiler_wl_F77='-Wl,' 15141 if test "$host_cpu" = ia64; then 15142 # AIX 5 now supports IA64 processor 15143 lt_prog_compiler_static_F77='-Bstatic' 15144 else 15145 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 15146 fi 15147 ;; 15148 15149 mingw* | pw32* | os2*) 15150 # This hack is so that the source file can tell whether it is being 15151 # built for inclusion in a dll (and should export symbols for example). 15152 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 15153 ;; 15154 15155 hpux9* | hpux10* | hpux11*) 15156 lt_prog_compiler_wl_F77='-Wl,' 15157 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15158 # not for PA HP-UX. 15159 case "$host_cpu" in 15160 hppa*64*|ia64*) 15161 # +Z the default 15162 ;; 15163 *) 15164 lt_prog_compiler_pic_F77='+Z' 15165 ;; 15166 esac 15167 # Is there a better lt_prog_compiler_static that works with the bundled CC? 15168 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 15169 ;; 15170 15171 irix5* | irix6* | nonstopux*) 15172 lt_prog_compiler_wl_F77='-Wl,' 15173 # PIC (with -KPIC) is the default. 15174 lt_prog_compiler_static_F77='-non_shared' 15175 ;; 15176 15177 newsos6) 15178 lt_prog_compiler_pic_F77='-KPIC' 15179 lt_prog_compiler_static_F77='-Bstatic' 15180 ;; 15181 15182 linux*) 15183 case $CC in 15184 icc* | ecc*) 15185 lt_prog_compiler_wl_F77='-Wl,' 15186 lt_prog_compiler_pic_F77='-KPIC' 15187 lt_prog_compiler_static_F77='-static' 15188 ;; 15189 ccc*) 15190 lt_prog_compiler_wl_F77='-Wl,' 15191 # All Alpha code is PIC. 15192 lt_prog_compiler_static_F77='-non_shared' 15193 ;; 15194 esac 15195 ;; 15196 15197 osf3* | osf4* | osf5*) 15198 lt_prog_compiler_wl_F77='-Wl,' 15199 # All OSF/1 code is PIC. 15200 lt_prog_compiler_static_F77='-non_shared' 15201 ;; 15202 15203 sco3.2v5*) 15204 lt_prog_compiler_pic_F77='-Kpic' 15205 lt_prog_compiler_static_F77='-dn' 15206 ;; 15207 15208 solaris*) 15209 lt_prog_compiler_wl_F77='-Wl,' 15210 lt_prog_compiler_pic_F77='-KPIC' 15211 lt_prog_compiler_static_F77='-Bstatic' 15212 ;; 15213 15214 sunos4*) 15215 lt_prog_compiler_wl_F77='-Qoption ld ' 15216 lt_prog_compiler_pic_F77='-PIC' 15217 lt_prog_compiler_static_F77='-Bstatic' 15218 ;; 15219 15220 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 15221 lt_prog_compiler_wl_F77='-Wl,' 15222 lt_prog_compiler_pic_F77='-KPIC' 15223 lt_prog_compiler_static_F77='-Bstatic' 15224 ;; 15225 15226 sysv4*MP*) 15227 if test -d /usr/nec ;then 15228 lt_prog_compiler_pic_F77='-Kconform_pic' 15229 lt_prog_compiler_static_F77='-Bstatic' 15230 fi 15231 ;; 15232 15233 uts4*) 15234 lt_prog_compiler_pic_F77='-pic' 15235 lt_prog_compiler_static_F77='-Bstatic' 15236 ;; 15237 15238 *) 15239 lt_prog_compiler_can_build_shared_F77=no 15240 ;; 15241 esac 15242 fi 15243 15244echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 15245echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 15246 15247# 15248# Check to make sure the PIC flag actually works. 15249# 15250if test -n "$lt_prog_compiler_pic_F77"; then 15251 15252echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 15253echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 15254if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 15255 echo $ECHO_N "(cached) $ECHO_C" >&6 15256else 15257 lt_prog_compiler_pic_works_F77=no 15258 ac_outfile=conftest.$ac_objext 15259 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15260 lt_compiler_flag="$lt_prog_compiler_pic_F77" 15261 # Insert the option either (1) after the last *FLAGS variable, or 15262 # (2) before a word containing "conftest.", or (3) at the end. 15263 # Note that $ac_compile itself does not contain backslashes and begins 15264 # with a dollar sign (not a hyphen), so the echo should work correctly. 15265 # The option is referenced via a variable to avoid confusing sed. 15266 lt_compile=`echo "$ac_compile" | $SED \ 15267 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 15268 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15269 -e 's:$: $lt_compiler_flag:'` 15270 (eval echo "\"\$as_me:15270: $lt_compile\"" >&5) 15271 (eval "$lt_compile" 2>conftest.err) 15272 ac_status=$? 15273 cat conftest.err >&5 15274 echo "$as_me:15274: \$? = $ac_status" >&5 15275 if (exit $ac_status) && test -s "$ac_outfile"; then 15276 # The compiler can only warn and ignore the option if not recognized 15277 # So say no if there are warnings 15278 if test ! -s conftest.err; then 15279 lt_prog_compiler_pic_works_F77=yes 15280 fi 15281 fi 15282 $rm conftest* 15283 15284fi 15285echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 15286echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 15287 15288if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 15289 case $lt_prog_compiler_pic_F77 in 15290 "" | " "*) ;; 15291 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 15292 esac 15293else 15294 lt_prog_compiler_pic_F77= 15295 lt_prog_compiler_can_build_shared_F77=no 15296fi 15297 15298fi 15299case "$host_os" in 15300 # For platforms which do not support PIC, -DPIC is meaningless: 15301 *djgpp*) 15302 lt_prog_compiler_pic_F77= 15303 ;; 15304 *) 15305 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 15306 ;; 15307esac 15308 15309echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 15310echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 15311if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 15312 echo $ECHO_N "(cached) $ECHO_C" >&6 15313else 15314 lt_cv_prog_compiler_c_o_F77=no 15315 $rm -r conftest 2>/dev/null 15316 mkdir conftest 15317 cd conftest 15318 mkdir out 15319 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15320 15321 lt_compiler_flag="-o out/conftest2.$ac_objext" 15322 # Insert the option either (1) after the last *FLAGS variable, or 15323 # (2) before a word containing "conftest.", or (3) at the end. 15324 # Note that $ac_compile itself does not contain backslashes and begins 15325 # with a dollar sign (not a hyphen), so the echo should work correctly. 15326 lt_compile=`echo "$ac_compile" | $SED \ 15327 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 15328 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15329 -e 's:$: $lt_compiler_flag:'` 15330 (eval echo "\"\$as_me:15330: $lt_compile\"" >&5) 15331 (eval "$lt_compile" 2>out/conftest.err) 15332 ac_status=$? 15333 cat out/conftest.err >&5 15334 echo "$as_me:15334: \$? = $ac_status" >&5 15335 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15336 then 15337 # The compiler can only warn and ignore the option if not recognized 15338 # So say no if there are warnings 15339 if test ! -s out/conftest.err; then 15340 lt_cv_prog_compiler_c_o_F77=yes 15341 fi 15342 fi 15343 chmod u+w . 15344 $rm conftest* 15345 # SGI C++ compiler will create directory out/ii_files/ for 15346 # template instantiation 15347 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 15348 $rm out/* && rmdir out 15349 cd .. 15350 rmdir conftest 15351 $rm conftest* 15352 15353fi 15354echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 15355echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 15356 15357 15358hard_links="nottested" 15359if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 15360 # do not overwrite the value of need_locks provided by the user 15361 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 15362echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 15363 hard_links=yes 15364 $rm conftest* 15365 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15366 touch conftest.a 15367 ln conftest.a conftest.b 2>&5 || hard_links=no 15368 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15369 echo "$as_me:$LINENO: result: $hard_links" >&5 15370echo "${ECHO_T}$hard_links" >&6 15371 if test "$hard_links" = no; then 15372 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 15373echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 15374 need_locks=warn 15375 fi 15376else 15377 need_locks=no 15378fi 15379 15380echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15381echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 15382 15383 runpath_var= 15384 allow_undefined_flag_F77= 15385 enable_shared_with_static_runtimes_F77=no 15386 archive_cmds_F77= 15387 archive_expsym_cmds_F77= 15388 old_archive_From_new_cmds_F77= 15389 old_archive_from_expsyms_cmds_F77= 15390 export_dynamic_flag_spec_F77= 15391 whole_archive_flag_spec_F77= 15392 thread_safe_flag_spec_F77= 15393 hardcode_libdir_flag_spec_F77= 15394 hardcode_libdir_flag_spec_ld_F77= 15395 hardcode_libdir_separator_F77= 15396 hardcode_direct_F77=no 15397 hardcode_minus_L_F77=no 15398 hardcode_shlibpath_var_F77=unsupported 15399 link_all_deplibs_F77=unknown 15400 hardcode_automatic_F77=no 15401 module_cmds_F77= 15402 module_expsym_cmds_F77= 15403 always_export_symbols_F77=no 15404 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15405 # include_expsyms should be a list of space-separated symbols to be *always* 15406 # included in the symbol list 15407 include_expsyms_F77= 15408 # exclude_expsyms can be an extended regexp of symbols to exclude 15409 # it will be wrapped by ` (' and `)$', so one must not match beginning or 15410 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 15411 # as well as any symbol that contains `d'. 15412 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 15413 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 15414 # platforms (ab)use it in PIC code, but their linkers get confused if 15415 # the symbol is explicitly referenced. Since portable code cannot 15416 # rely on this symbol name, it's probably fine to never include it in 15417 # preloaded symbol tables. 15418 extract_expsyms_cmds= 15419 15420 case $host_os in 15421 cygwin* | mingw* | pw32*) 15422 # FIXME: the MSVC++ port hasn't been tested in a loooong time 15423 # When not using gcc, we currently assume that we are using 15424 # Microsoft Visual C++. 15425 if test "$GCC" != yes; then 15426 with_gnu_ld=no 15427 fi 15428 ;; 15429 openbsd*) 15430 with_gnu_ld=no 15431 ;; 15432 esac 15433 15434 ld_shlibs_F77=yes 15435 if test "$with_gnu_ld" = yes; then 15436 # If archive_cmds runs LD, not CC, wlarc should be empty 15437 wlarc='${wl}' 15438 15439 # See if GNU ld supports shared libraries. 15440 case $host_os in 15441 aix3* | aix4* | aix5*) 15442 # On AIX/PPC, the GNU linker is very broken 15443 if test "$host_cpu" != ia64; then 15444 ld_shlibs_F77=no 15445 cat <<EOF 1>&2 15446 15447*** Warning: the GNU linker, at least up to release 2.9.1, is reported 15448*** to be unable to reliably create shared libraries on AIX. 15449*** Therefore, libtool is disabling shared libraries support. If you 15450*** really care for shared libraries, you may want to modify your PATH 15451*** so that a non-GNU linker is found, and then restart. 15452 15453EOF 15454 fi 15455 ;; 15456 15457 amigaos*) 15458 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)' 15459 hardcode_libdir_flag_spec_F77='-L$libdir' 15460 hardcode_minus_L_F77=yes 15461 15462 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 15463 # that the semantics of dynamic libraries on AmigaOS, at least up 15464 # to version 4, is to share data among multiple programs linked 15465 # with the same dynamic library. Since this doesn't match the 15466 # behavior of shared libraries on other platforms, we can't use 15467 # them. 15468 ld_shlibs_F77=no 15469 ;; 15470 15471 beos*) 15472 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15473 allow_undefined_flag_F77=unsupported 15474 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 15475 # support --undefined. This deserves some investigation. FIXME 15476 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15477 else 15478 ld_shlibs_F77=no 15479 fi 15480 ;; 15481 15482 cygwin* | mingw* | pw32*) 15483 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 15484 # as there is no search path for DLLs. 15485 hardcode_libdir_flag_spec_F77='-L$libdir' 15486 allow_undefined_flag_F77=unsupported 15487 always_export_symbols_F77=no 15488 enable_shared_with_static_runtimes_F77=yes 15489 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 15490 15491 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 15492 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 15493 # If the export-symbols file already is a .def file (1st line 15494 # is EXPORTS), use it as is; otherwise, prepend... 15495 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 15496 cp $export_symbols $output_objdir/$soname.def; 15497 else 15498 echo EXPORTS > $output_objdir/$soname.def; 15499 cat $export_symbols >> $output_objdir/$soname.def; 15500 fi~ 15501 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 15502 else 15503 ld_shlibs=no 15504 fi 15505 ;; 15506 15507 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 15508 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15509 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 15510 wlarc= 15511 else 15512 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15513 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15514 fi 15515 ;; 15516 15517 solaris* | sysv5*) 15518 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 15519 ld_shlibs_F77=no 15520 cat <<EOF 1>&2 15521 15522*** Warning: The releases 2.8.* of the GNU linker cannot reliably 15523*** create shared libraries on Solaris systems. Therefore, libtool 15524*** is disabling shared libraries support. We urge you to upgrade GNU 15525*** binutils to release 2.9.1 or newer. Another option is to modify 15526*** your PATH or compiler configuration so that the native linker is 15527*** used, and then restart. 15528 15529EOF 15530 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15531 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15532 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15533 else 15534 ld_shlibs_F77=no 15535 fi 15536 ;; 15537 15538 sunos4*) 15539 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15540 wlarc= 15541 hardcode_direct_F77=yes 15542 hardcode_shlibpath_var_F77=no 15543 ;; 15544 15545 linux*) 15546 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15547 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15548 archive_cmds_F77="$tmp_archive_cmds" 15549 supports_anon_versioning=no 15550 case `$LD -v 2>/dev/null` in 15551 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 15552 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 15553 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 15554 *\ 2.11.*) ;; # other 2.11 versions 15555 *) supports_anon_versioning=yes ;; 15556 esac 15557 if test $supports_anon_versioning = yes; then 15558 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 15559cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15560$echo "local: *; };" >> $output_objdir/$libname.ver~ 15561 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 15562 else 15563 archive_expsym_cmds_F77="$tmp_archive_cmds" 15564 fi 15565 link_all_deplibs_F77=no 15566 else 15567 ld_shlibs_F77=no 15568 fi 15569 ;; 15570 15571 *) 15572 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15573 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15574 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15575 else 15576 ld_shlibs_F77=no 15577 fi 15578 ;; 15579 esac 15580 15581 if test "$ld_shlibs_F77" = yes; then 15582 runpath_var=LD_RUN_PATH 15583 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 15584 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 15585 # ancient GNU ld didn't support --whole-archive et. al. 15586 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 15587 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 15588 else 15589 whole_archive_flag_spec_F77= 15590 fi 15591 fi 15592 else 15593 # PORTME fill in a description of your system's linker (not GNU ld) 15594 case $host_os in 15595 aix3*) 15596 allow_undefined_flag_F77=unsupported 15597 always_export_symbols_F77=yes 15598 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' 15599 # Note: this linker hardcodes the directories in LIBPATH if there 15600 # are no directories specified by -L. 15601 hardcode_minus_L_F77=yes 15602 if test "$GCC" = yes && test -z "$link_static_flag"; then 15603 # Neither direct hardcoding nor static linking is supported with a 15604 # broken collect2. 15605 hardcode_direct_F77=unsupported 15606 fi 15607 ;; 15608 15609 aix4* | aix5*) 15610 if test "$host_cpu" = ia64; then 15611 # On IA64, the linker does run time linking by default, so we don't 15612 # have to do anything special. 15613 aix_use_runtimelinking=no 15614 exp_sym_flag='-Bexport' 15615 no_entry_flag="" 15616 else 15617 # If we're using GNU nm, then we don't want the "-C" option. 15618 # -C means demangle to AIX nm, but means don't demangle with GNU nm 15619 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 15620 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' 15621 else 15622 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' 15623 fi 15624 aix_use_runtimelinking=no 15625 15626 # Test if we are trying to use run time linking or normal 15627 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15628 # need to do runtime linking. 15629 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 15630 for ld_flag in $LDFLAGS; do 15631 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 15632 aix_use_runtimelinking=yes 15633 break 15634 fi 15635 done 15636 esac 15637 15638 exp_sym_flag='-bexport' 15639 no_entry_flag='-bnoentry' 15640 fi 15641 15642 # When large executables or shared objects are built, AIX ld can 15643 # have problems creating the table of contents. If linking a library 15644 # or program results in "error TOC overflow" add -mminimal-toc to 15645 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15646 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15647 15648 archive_cmds_F77='' 15649 hardcode_direct_F77=yes 15650 hardcode_libdir_separator_F77=':' 15651 link_all_deplibs_F77=yes 15652 15653 if test "$GCC" = yes; then 15654 case $host_os in aix4.012|aix4.012.*) 15655 # We only want to do this on AIX 4.2 and lower, the check 15656 # below for broken collect2 doesn't work under 4.3+ 15657 collect2name=`${CC} -print-prog-name=collect2` 15658 if test -f "$collect2name" && \ 15659 strings "$collect2name" | grep resolve_lib_name >/dev/null 15660 then 15661 # We have reworked collect2 15662 hardcode_direct_F77=yes 15663 else 15664 # We have old collect2 15665 hardcode_direct_F77=unsupported 15666 # It fails to find uninstalled libraries when the uninstalled 15667 # path is not listed in the libpath. Setting hardcode_minus_L 15668 # to unsupported forces relinking 15669 hardcode_minus_L_F77=yes 15670 hardcode_libdir_flag_spec_F77='-L$libdir' 15671 hardcode_libdir_separator_F77= 15672 fi 15673 esac 15674 shared_flag='-shared' 15675 else 15676 # not using gcc 15677 if test "$host_cpu" = ia64; then 15678 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15679 # chokes on -Wl,-G. The following line is correct: 15680 shared_flag='-G' 15681 else 15682 if test "$aix_use_runtimelinking" = yes; then 15683 shared_flag='${wl}-G' 15684 else 15685 shared_flag='${wl}-bM:SRE' 15686 fi 15687 fi 15688 fi 15689 15690 # It seems that -bexpall does not export symbols beginning with 15691 # underscore (_), so it is better to generate a list of symbols to export. 15692 always_export_symbols_F77=yes 15693 if test "$aix_use_runtimelinking" = yes; then 15694 # Warning - without using the other runtime loading flags (-brtl), 15695 # -berok will link without error, but may produce a broken library. 15696 allow_undefined_flag_F77='-berok' 15697 # Determine the default libpath from the value encoded in an empty executable. 15698 cat >conftest.$ac_ext <<_ACEOF 15699 program main 15700 15701 end 15702_ACEOF 15703rm -f conftest.$ac_objext conftest$ac_exeext 15704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15705 (eval $ac_link) 2>conftest.er1 15706 ac_status=$? 15707 grep -v '^ *+' conftest.er1 >conftest.err 15708 rm -f conftest.er1 15709 cat conftest.err >&5 15710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15711 (exit $ac_status); } && 15712 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 15713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15714 (eval $ac_try) 2>&5 15715 ac_status=$? 15716 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15717 (exit $ac_status); }; } && 15718 { ac_try='test -s conftest$ac_exeext' 15719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15720 (eval $ac_try) 2>&5 15721 ac_status=$? 15722 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15723 (exit $ac_status); }; }; then 15724 15725aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15726}'` 15727# Check for a 64-bit object if we didn't find anything. 15728if 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; } 15729}'`; fi 15730else 15731 echo "$as_me: failed program was:" >&5 15732sed 's/^/| /' conftest.$ac_ext >&5 15733 15734fi 15735rm -f conftest.err conftest.$ac_objext \ 15736 conftest$ac_exeext conftest.$ac_ext 15737if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15738 15739 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15740 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 15741 else 15742 if test "$host_cpu" = ia64; then 15743 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 15744 allow_undefined_flag_F77="-z nodefs" 15745 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 15746 else 15747 # Determine the default libpath from the value encoded in an empty executable. 15748 cat >conftest.$ac_ext <<_ACEOF 15749 program main 15750 15751 end 15752_ACEOF 15753rm -f conftest.$ac_objext conftest$ac_exeext 15754if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15755 (eval $ac_link) 2>conftest.er1 15756 ac_status=$? 15757 grep -v '^ *+' conftest.er1 >conftest.err 15758 rm -f conftest.er1 15759 cat conftest.err >&5 15760 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15761 (exit $ac_status); } && 15762 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 15763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15764 (eval $ac_try) 2>&5 15765 ac_status=$? 15766 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15767 (exit $ac_status); }; } && 15768 { ac_try='test -s conftest$ac_exeext' 15769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15770 (eval $ac_try) 2>&5 15771 ac_status=$? 15772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15773 (exit $ac_status); }; }; then 15774 15775aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15776}'` 15777# Check for a 64-bit object if we didn't find anything. 15778if 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; } 15779}'`; fi 15780else 15781 echo "$as_me: failed program was:" >&5 15782sed 's/^/| /' conftest.$ac_ext >&5 15783 15784fi 15785rm -f conftest.err conftest.$ac_objext \ 15786 conftest$ac_exeext conftest.$ac_ext 15787if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15788 15789 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15790 # Warning - without using the other run time loading flags, 15791 # -berok will link without error, but may produce a broken library. 15792 no_undefined_flag_F77=' ${wl}-bernotok' 15793 allow_undefined_flag_F77=' ${wl}-berok' 15794 # -bexpall does not export symbols beginning with underscore (_) 15795 always_export_symbols_F77=yes 15796 # Exported symbols can be pulled into shared objects from archives 15797 whole_archive_flag_spec_F77=' ' 15798 archive_cmds_need_lc_F77=yes 15799 # This is similar to how AIX traditionally builds it's shared libraries. 15800 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 15801 fi 15802 fi 15803 ;; 15804 15805 amigaos*) 15806 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)' 15807 hardcode_libdir_flag_spec_F77='-L$libdir' 15808 hardcode_minus_L_F77=yes 15809 # see comment about different semantics on the GNU ld section 15810 ld_shlibs_F77=no 15811 ;; 15812 15813 bsdi4*) 15814 export_dynamic_flag_spec_F77=-rdynamic 15815 ;; 15816 15817 cygwin* | mingw* | pw32*) 15818 # When not using gcc, we currently assume that we are using 15819 # Microsoft Visual C++. 15820 # hardcode_libdir_flag_spec is actually meaningless, as there is 15821 # no search path for DLLs. 15822 hardcode_libdir_flag_spec_F77=' ' 15823 allow_undefined_flag_F77=unsupported 15824 # Tell ltmain to make .lib files, not .a files. 15825 libext=lib 15826 # Tell ltmain to make .dll files, not .so files. 15827 shrext_cmds=".dll" 15828 # FIXME: Setting linknames here is a bad hack. 15829 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 15830 # The linker will automatically build a .lib file if we build a DLL. 15831 old_archive_From_new_cmds_F77='true' 15832 # FIXME: Should let the user specify the lib program. 15833 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 15834 fix_srcfile_path='`cygpath -w "$srcfile"`' 15835 enable_shared_with_static_runtimes_F77=yes 15836 ;; 15837 15838 darwin* | rhapsody*) 15839 if test "$GXX" = yes ; then 15840 archive_cmds_need_lc_F77=no 15841 case "$host_os" in 15842 rhapsody* | darwin1.[012]) 15843 allow_undefined_flag_F77='-undefined suppress' 15844 ;; 15845 *) # Darwin 1.3 on 15846 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 15847 allow_undefined_flag_F77='-flat_namespace -undefined suppress' 15848 else 15849 case ${MACOSX_DEPLOYMENT_TARGET} in 15850 10.[012]) 15851 allow_undefined_flag_F77='-flat_namespace -undefined suppress' 15852 ;; 15853 10.*) 15854 allow_undefined_flag_F77='-undefined dynamic_lookup' 15855 ;; 15856 esac 15857 fi 15858 ;; 15859 esac 15860 lt_int_apple_cc_single_mod=no 15861 output_verbose_link_cmd='echo' 15862 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 15863 lt_int_apple_cc_single_mod=yes 15864 fi 15865 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 15866 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 15867 else 15868 archive_cmds_F77='$CC -r ${wl}-bind_at_load -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' 15869 fi 15870 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15871 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 15872 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 15873 archive_expsym_cmds_F77='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}' 15874 else 15875 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}' 15876 fi 15877 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}' 15878 hardcode_direct_F77=no 15879 hardcode_automatic_F77=yes 15880 hardcode_shlibpath_var_F77=unsupported 15881 whole_archive_flag_spec_F77='-all_load $convenience' 15882 link_all_deplibs_F77=yes 15883 else 15884 ld_shlibs_F77=no 15885 fi 15886 ;; 15887 15888 dgux*) 15889 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15890 hardcode_libdir_flag_spec_F77='-L$libdir' 15891 hardcode_shlibpath_var_F77=no 15892 ;; 15893 15894 freebsd1*) 15895 ld_shlibs_F77=no 15896 ;; 15897 15898 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15899 # support. Future versions do this automatically, but an explicit c++rt0.o 15900 # does not break anything, and helps significantly (at the cost of a little 15901 # extra space). 15902 freebsd2.2*) 15903 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15904 hardcode_libdir_flag_spec_F77='-R$libdir' 15905 hardcode_direct_F77=yes 15906 hardcode_shlibpath_var_F77=no 15907 ;; 15908 15909 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15910 freebsd2*) 15911 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15912 hardcode_direct_F77=yes 15913 hardcode_minus_L_F77=yes 15914 hardcode_shlibpath_var_F77=no 15915 ;; 15916 15917 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15918 freebsd* | kfreebsd*-gnu) 15919 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 15920 hardcode_libdir_flag_spec_F77='-R$libdir' 15921 hardcode_direct_F77=yes 15922 hardcode_shlibpath_var_F77=no 15923 ;; 15924 15925 hpux9*) 15926 if test "$GCC" = yes; then 15927 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' 15928 else 15929 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' 15930 fi 15931 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15932 hardcode_libdir_separator_F77=: 15933 hardcode_direct_F77=yes 15934 15935 # hardcode_minus_L: Not really in the search PATH, 15936 # but as the default location of the library. 15937 hardcode_minus_L_F77=yes 15938 export_dynamic_flag_spec_F77='${wl}-E' 15939 ;; 15940 15941 hpux10* | hpux11*) 15942 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15943 case "$host_cpu" in 15944 hppa*64*|ia64*) 15945 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15946 ;; 15947 *) 15948 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15949 ;; 15950 esac 15951 else 15952 case "$host_cpu" in 15953 hppa*64*|ia64*) 15954 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 15955 ;; 15956 *) 15957 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15958 ;; 15959 esac 15960 fi 15961 if test "$with_gnu_ld" = no; then 15962 case "$host_cpu" in 15963 hppa*64*) 15964 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15965 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 15966 hardcode_libdir_separator_F77=: 15967 hardcode_direct_F77=no 15968 hardcode_shlibpath_var_F77=no 15969 ;; 15970 ia64*) 15971 hardcode_libdir_flag_spec_F77='-L$libdir' 15972 hardcode_direct_F77=no 15973 hardcode_shlibpath_var_F77=no 15974 15975 # hardcode_minus_L: Not really in the search PATH, 15976 # but as the default location of the library. 15977 hardcode_minus_L_F77=yes 15978 ;; 15979 *) 15980 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15981 hardcode_libdir_separator_F77=: 15982 hardcode_direct_F77=yes 15983 export_dynamic_flag_spec_F77='${wl}-E' 15984 15985 # hardcode_minus_L: Not really in the search PATH, 15986 # but as the default location of the library. 15987 hardcode_minus_L_F77=yes 15988 ;; 15989 esac 15990 fi 15991 ;; 15992 15993 irix5* | irix6* | nonstopux*) 15994 if test "$GCC" = yes; then 15995 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' 15996 else 15997 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' 15998 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 15999 fi 16000 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 16001 hardcode_libdir_separator_F77=: 16002 link_all_deplibs_F77=yes 16003 ;; 16004 16005 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 16006 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16007 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 16008 else 16009 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 16010 fi 16011 hardcode_libdir_flag_spec_F77='-R$libdir' 16012 hardcode_direct_F77=yes 16013 hardcode_shlibpath_var_F77=no 16014 ;; 16015 16016 newsos6) 16017 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16018 hardcode_direct_F77=yes 16019 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 16020 hardcode_libdir_separator_F77=: 16021 hardcode_shlibpath_var_F77=no 16022 ;; 16023 16024 openbsd*) 16025 hardcode_direct_F77=yes 16026 hardcode_shlibpath_var_F77=no 16027 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16028 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16029 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 16030 export_dynamic_flag_spec_F77='${wl}-E' 16031 else 16032 case $host_os in 16033 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 16034 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16035 hardcode_libdir_flag_spec_F77='-R$libdir' 16036 ;; 16037 *) 16038 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16039 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 16040 ;; 16041 esac 16042 fi 16043 ;; 16044 16045 os2*) 16046 hardcode_libdir_flag_spec_F77='-L$libdir' 16047 hardcode_minus_L_F77=yes 16048 allow_undefined_flag_F77=unsupported 16049 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' 16050 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 16051 ;; 16052 16053 osf3*) 16054 if test "$GCC" = yes; then 16055 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 16056 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' 16057 else 16058 allow_undefined_flag_F77=' -expect_unresolved \*' 16059 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' 16060 fi 16061 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 16062 hardcode_libdir_separator_F77=: 16063 ;; 16064 16065 osf4* | osf5*) # as osf3* with the addition of -msym flag 16066 if test "$GCC" = yes; then 16067 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 16068 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' 16069 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 16070 else 16071 allow_undefined_flag_F77=' -expect_unresolved \*' 16072 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' 16073 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~ 16074 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' 16075 16076 # Both c and cxx compiler support -rpath directly 16077 hardcode_libdir_flag_spec_F77='-rpath $libdir' 16078 fi 16079 hardcode_libdir_separator_F77=: 16080 ;; 16081 16082 sco3.2v5*) 16083 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16084 hardcode_shlibpath_var_F77=no 16085 export_dynamic_flag_spec_F77='${wl}-Bexport' 16086 runpath_var=LD_RUN_PATH 16087 hardcode_runpath_var=yes 16088 ;; 16089 16090 solaris*) 16091 no_undefined_flag_F77=' -z text' 16092 if test "$GCC" = yes; then 16093 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16094 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16095 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 16096 else 16097 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 16098 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16099 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 16100 fi 16101 hardcode_libdir_flag_spec_F77='-R$libdir' 16102 hardcode_shlibpath_var_F77=no 16103 case $host_os in 16104 solaris2.[0-5] | solaris2.[0-5].*) ;; 16105 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 16106 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 16107 esac 16108 link_all_deplibs_F77=yes 16109 ;; 16110 16111 sunos4*) 16112 if test "x$host_vendor" = xsequent; then 16113 # Use $CC to link under sequent, because it throws in some extra .o 16114 # files that make .init and .fini sections work. 16115 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 16116 else 16117 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 16118 fi 16119 hardcode_libdir_flag_spec_F77='-L$libdir' 16120 hardcode_direct_F77=yes 16121 hardcode_minus_L_F77=yes 16122 hardcode_shlibpath_var_F77=no 16123 ;; 16124 16125 sysv4) 16126 case $host_vendor in 16127 sni) 16128 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16129 hardcode_direct_F77=yes # is this really true??? 16130 ;; 16131 siemens) 16132 ## LD is ld it makes a PLAMLIB 16133 ## CC just makes a GrossModule. 16134 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16135 reload_cmds_F77='$CC -r -o $output$reload_objs' 16136 hardcode_direct_F77=no 16137 ;; 16138 motorola) 16139 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16140 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 16141 ;; 16142 esac 16143 runpath_var='LD_RUN_PATH' 16144 hardcode_shlibpath_var_F77=no 16145 ;; 16146 16147 sysv4.3*) 16148 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16149 hardcode_shlibpath_var_F77=no 16150 export_dynamic_flag_spec_F77='-Bexport' 16151 ;; 16152 16153 sysv4*MP*) 16154 if test -d /usr/nec; then 16155 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16156 hardcode_shlibpath_var_F77=no 16157 runpath_var=LD_RUN_PATH 16158 hardcode_runpath_var=yes 16159 ld_shlibs_F77=yes 16160 fi 16161 ;; 16162 16163 sysv4.2uw2*) 16164 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16165 hardcode_direct_F77=yes 16166 hardcode_minus_L_F77=no 16167 hardcode_shlibpath_var_F77=no 16168 hardcode_runpath_var=yes 16169 runpath_var=LD_RUN_PATH 16170 ;; 16171 16172 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 16173 no_undefined_flag_F77='${wl}-z ${wl}text' 16174 if test "$GCC" = yes; then 16175 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16176 else 16177 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16178 fi 16179 runpath_var='LD_RUN_PATH' 16180 hardcode_shlibpath_var_F77=no 16181 ;; 16182 16183 sysv5*) 16184 no_undefined_flag_F77=' -z text' 16185 # $CC -shared without GNU ld will not create a library from C++ 16186 # object files and a static libstdc++, better avoid it by now 16187 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 16188 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16189 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 16190 hardcode_libdir_flag_spec_F77= 16191 hardcode_shlibpath_var_F77=no 16192 runpath_var='LD_RUN_PATH' 16193 ;; 16194 16195 uts4*) 16196 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16197 hardcode_libdir_flag_spec_F77='-L$libdir' 16198 hardcode_shlibpath_var_F77=no 16199 ;; 16200 16201 *) 16202 ld_shlibs_F77=no 16203 ;; 16204 esac 16205 fi 16206 16207echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 16208echo "${ECHO_T}$ld_shlibs_F77" >&6 16209test "$ld_shlibs_F77" = no && can_build_shared=no 16210 16211variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16212if test "$GCC" = yes; then 16213 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16214fi 16215 16216# 16217# Do we need to explicitly link libc? 16218# 16219case "x$archive_cmds_need_lc_F77" in 16220x|xyes) 16221 # Assume -lc should be added 16222 archive_cmds_need_lc_F77=yes 16223 16224 if test "$enable_shared" = yes && test "$GCC" = yes; then 16225 case $archive_cmds_F77 in 16226 *'~'*) 16227 # FIXME: we may have to deal with multi-command sequences. 16228 ;; 16229 '$CC '*) 16230 # Test whether the compiler implicitly links with -lc since on some 16231 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16232 # to ld, don't add -lc before -lgcc. 16233 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 16234echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 16235 $rm conftest* 16236 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16237 16238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16239 (eval $ac_compile) 2>&5 16240 ac_status=$? 16241 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16242 (exit $ac_status); } 2>conftest.err; then 16243 soname=conftest 16244 lib=conftest 16245 libobjs=conftest.$ac_objext 16246 deplibs= 16247 wl=$lt_prog_compiler_wl_F77 16248 compiler_flags=-v 16249 linker_flags=-v 16250 verstring= 16251 output_objdir=. 16252 libname=conftest 16253 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 16254 allow_undefined_flag_F77= 16255 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 16256 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 16257 ac_status=$? 16258 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16259 (exit $ac_status); } 16260 then 16261 archive_cmds_need_lc_F77=no 16262 else 16263 archive_cmds_need_lc_F77=yes 16264 fi 16265 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 16266 else 16267 cat conftest.err 1>&5 16268 fi 16269 $rm conftest* 16270 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 16271echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 16272 ;; 16273 esac 16274 fi 16275 ;; 16276esac 16277 16278echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 16279echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 16280library_names_spec= 16281libname_spec='lib$name' 16282soname_spec= 16283shrext_cmds=".so" 16284postinstall_cmds= 16285postuninstall_cmds= 16286finish_cmds= 16287finish_eval= 16288shlibpath_var= 16289shlibpath_overrides_runpath=unknown 16290version_type=none 16291dynamic_linker="$host_os ld.so" 16292sys_lib_dlsearch_path_spec="/lib /usr/lib" 16293if test "$GCC" = yes; then 16294 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 16295 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 16296 # if the path contains ";" then we assume it to be the separator 16297 # otherwise default to the standard path separator (i.e. ":") - it is 16298 # assumed that no part of a normal pathname contains ";" but that should 16299 # okay in the real world where ";" in dirpaths is itself problematic. 16300 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16301 else 16302 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16303 fi 16304else 16305 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16306fi 16307need_lib_prefix=unknown 16308hardcode_into_libs=no 16309 16310# when you set need_version to no, make sure it does not cause -set_version 16311# flags to be left without arguments 16312need_version=unknown 16313 16314case $host_os in 16315aix3*) 16316 version_type=linux 16317 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 16318 shlibpath_var=LIBPATH 16319 16320 # AIX 3 has no versioning support, so we append a major version to the name. 16321 soname_spec='${libname}${release}${shared_ext}$major' 16322 ;; 16323 16324aix4* | aix5*) 16325 version_type=linux 16326 need_lib_prefix=no 16327 need_version=no 16328 hardcode_into_libs=yes 16329 if test "$host_cpu" = ia64; then 16330 # AIX 5 supports IA64 16331 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 16332 shlibpath_var=LD_LIBRARY_PATH 16333 else 16334 # With GCC up to 2.95.x, collect2 would create an import file 16335 # for dependence libraries. The import file would start with 16336 # the line `#! .'. This would cause the generated library to 16337 # depend on `.', always an invalid library. This was fixed in 16338 # development snapshots of GCC prior to 3.0. 16339 case $host_os in 16340 aix4 | aix4.[01] | aix4.[01].*) 16341 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16342 echo ' yes ' 16343 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 16344 : 16345 else 16346 can_build_shared=no 16347 fi 16348 ;; 16349 esac 16350 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 16351 # soname into executable. Probably we can add versioning support to 16352 # collect2, so additional links can be useful in future. 16353 if test "$aix_use_runtimelinking" = yes; then 16354 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16355 # instead of lib<name>.a to let people know that these are not 16356 # typical AIX shared libraries. 16357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16358 else 16359 # We preserve .a as extension for shared libraries through AIX4.2 16360 # and later when we are not doing run time linking. 16361 library_names_spec='${libname}${release}.a $libname.a' 16362 soname_spec='${libname}${release}${shared_ext}$major' 16363 fi 16364 shlibpath_var=LIBPATH 16365 fi 16366 ;; 16367 16368amigaos*) 16369 library_names_spec='$libname.ixlibrary $libname.a' 16370 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16371 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' 16372 ;; 16373 16374beos*) 16375 library_names_spec='${libname}${shared_ext}' 16376 dynamic_linker="$host_os ld.so" 16377 shlibpath_var=LIBRARY_PATH 16378 ;; 16379 16380bsdi4*) 16381 version_type=linux 16382 need_version=no 16383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16384 soname_spec='${libname}${release}${shared_ext}$major' 16385 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16386 shlibpath_var=LD_LIBRARY_PATH 16387 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16388 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16389 # the default ld.so.conf also contains /usr/contrib/lib and 16390 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16391 # libtool to hard-code these into programs 16392 ;; 16393 16394cygwin* | mingw* | pw32*) 16395 version_type=windows 16396 shrext_cmds=".dll" 16397 need_version=no 16398 need_lib_prefix=no 16399 16400 case $GCC,$host_os in 16401 yes,cygwin* | yes,mingw* | yes,pw32*) 16402 library_names_spec='$libname.dll.a' 16403 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16404 postinstall_cmds='base_file=`basename \${file}`~ 16405 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 16406 dldir=$destdir/`dirname \$dlpath`~ 16407 test -d \$dldir || mkdir -p \$dldir~ 16408 $install_prog $dir/$dlname \$dldir/$dlname' 16409 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16410 dlpath=$dir/\$dldll~ 16411 $rm \$dlpath' 16412 shlibpath_overrides_runpath=yes 16413 16414 case $host_os in 16415 cygwin*) 16416 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16417 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16418 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 16419 ;; 16420 mingw*) 16421 # MinGW DLLs use traditional 'lib' prefix 16422 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16423 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 16424 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 16425 # It is most probably a Windows format PATH printed by 16426 # mingw gcc, but we are running on Cygwin. Gcc prints its search 16427 # path with ; separators, and with drive letters. We can handle the 16428 # drive letters (cygwin fileutils understands them), so leave them, 16429 # especially as we might pass files found there to a mingw objdump, 16430 # which wouldn't understand a cygwinified path. Ahh. 16431 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16432 else 16433 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16434 fi 16435 ;; 16436 pw32*) 16437 # pw32 DLLs use 'pw' prefix rather than 'lib' 16438 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 16439 ;; 16440 esac 16441 ;; 16442 16443 *) 16444 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 16445 ;; 16446 esac 16447 dynamic_linker='Win32 ld.exe' 16448 # FIXME: first we should search . and the directory the executable is in 16449 shlibpath_var=PATH 16450 ;; 16451 16452darwin* | rhapsody*) 16453 dynamic_linker="$host_os dyld" 16454 version_type=darwin 16455 need_lib_prefix=no 16456 need_version=no 16457 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 16458 soname_spec='${libname}${release}${major}$shared_ext' 16459 shlibpath_overrides_runpath=yes 16460 shlibpath_var=DYLD_LIBRARY_PATH 16461 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 16462 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 16463 if test "$GCC" = yes; then 16464 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"` 16465 else 16466 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 16467 fi 16468 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16469 ;; 16470 16471dgux*) 16472 version_type=linux 16473 need_lib_prefix=no 16474 need_version=no 16475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 16476 soname_spec='${libname}${release}${shared_ext}$major' 16477 shlibpath_var=LD_LIBRARY_PATH 16478 ;; 16479 16480freebsd1*) 16481 dynamic_linker=no 16482 ;; 16483 16484kfreebsd*-gnu) 16485 version_type=linux 16486 need_lib_prefix=no 16487 need_version=no 16488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16489 soname_spec='${libname}${release}${shared_ext}$major' 16490 shlibpath_var=LD_LIBRARY_PATH 16491 shlibpath_overrides_runpath=no 16492 hardcode_into_libs=yes 16493 dynamic_linker='GNU ld.so' 16494 ;; 16495 16496freebsd*) 16497 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 16498 version_type=freebsd-$objformat 16499 case $version_type in 16500 freebsd-elf*) 16501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16502 need_version=no 16503 need_lib_prefix=no 16504 ;; 16505 freebsd-*) 16506 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 16507 need_version=yes 16508 ;; 16509 esac 16510 shlibpath_var=LD_LIBRARY_PATH 16511 case $host_os in 16512 freebsd2*) 16513 shlibpath_overrides_runpath=yes 16514 ;; 16515 freebsd3.01* | freebsdelf3.01*) 16516 shlibpath_overrides_runpath=yes 16517 hardcode_into_libs=yes 16518 ;; 16519 *) # from 3.2 on 16520 shlibpath_overrides_runpath=no 16521 hardcode_into_libs=yes 16522 ;; 16523 esac 16524 ;; 16525 16526gnu*) 16527 version_type=linux 16528 need_lib_prefix=no 16529 need_version=no 16530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16531 soname_spec='${libname}${release}${shared_ext}$major' 16532 shlibpath_var=LD_LIBRARY_PATH 16533 hardcode_into_libs=yes 16534 ;; 16535 16536hpux9* | hpux10* | hpux11*) 16537 # Give a soname corresponding to the major version so that dld.sl refuses to 16538 # link against other versions. 16539 version_type=sunos 16540 need_lib_prefix=no 16541 need_version=no 16542 case "$host_cpu" in 16543 ia64*) 16544 shrext_cmds='.so' 16545 hardcode_into_libs=yes 16546 dynamic_linker="$host_os dld.so" 16547 shlibpath_var=LD_LIBRARY_PATH 16548 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16550 soname_spec='${libname}${release}${shared_ext}$major' 16551 if test "X$HPUX_IA64_MODE" = X32; then 16552 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16553 else 16554 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16555 fi 16556 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16557 ;; 16558 hppa*64*) 16559 shrext_cmds='.sl' 16560 hardcode_into_libs=yes 16561 dynamic_linker="$host_os dld.sl" 16562 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16563 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16565 soname_spec='${libname}${release}${shared_ext}$major' 16566 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16567 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16568 ;; 16569 *) 16570 shrext_cmds='.sl' 16571 dynamic_linker="$host_os dld.sl" 16572 shlibpath_var=SHLIB_PATH 16573 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16575 soname_spec='${libname}${release}${shared_ext}$major' 16576 ;; 16577 esac 16578 # HP-UX runs *really* slowly unless shared libraries are mode 555. 16579 postinstall_cmds='chmod 555 $lib' 16580 ;; 16581 16582irix5* | irix6* | nonstopux*) 16583 case $host_os in 16584 nonstopux*) version_type=nonstopux ;; 16585 *) 16586 if test "$lt_cv_prog_gnu_ld" = yes; then 16587 version_type=linux 16588 else 16589 version_type=irix 16590 fi ;; 16591 esac 16592 need_lib_prefix=no 16593 need_version=no 16594 soname_spec='${libname}${release}${shared_ext}$major' 16595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 16596 case $host_os in 16597 irix5* | nonstopux*) 16598 libsuff= shlibsuff= 16599 ;; 16600 *) 16601 case $LD in # libtool.m4 will add one of these switches to LD 16602 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16603 libsuff= shlibsuff= libmagic=32-bit;; 16604 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16605 libsuff=32 shlibsuff=N32 libmagic=N32;; 16606 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16607 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16608 *) libsuff= shlibsuff= libmagic=never-match;; 16609 esac 16610 ;; 16611 esac 16612 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16613 shlibpath_overrides_runpath=no 16614 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16615 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16616 hardcode_into_libs=yes 16617 ;; 16618 16619# No shared lib support for Linux oldld, aout, or coff. 16620linux*oldld* | linux*aout* | linux*coff*) 16621 dynamic_linker=no 16622 ;; 16623 16624# This must be Linux ELF. 16625linux*) 16626 version_type=linux 16627 need_lib_prefix=no 16628 need_version=no 16629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16630 soname_spec='${libname}${release}${shared_ext}$major' 16631 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16632 shlibpath_var=LD_LIBRARY_PATH 16633 shlibpath_overrides_runpath=no 16634 # This implies no fast_install, which is unacceptable. 16635 # Some rework will be needed to allow for fast_install 16636 # before this can be enabled. 16637 hardcode_into_libs=yes 16638 16639 # Append ld.so.conf contents to the search path 16640 if test -f /etc/ld.so.conf; then 16641 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` 16642 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16643 fi 16644 16645 # We used to test for /lib/ld.so.1 and disable shared libraries on 16646 # powerpc, because MkLinux only supported shared libraries with the 16647 # GNU dynamic linker. Since this was broken with cross compilers, 16648 # most powerpc-linux boxes support dynamic linking these days and 16649 # people can always --disable-shared, the test was removed, and we 16650 # assume the GNU/Linux dynamic linker is in use. 16651 dynamic_linker='GNU/Linux ld.so' 16652 ;; 16653 16654netbsdelf*-gnu) 16655 version_type=linux 16656 need_lib_prefix=no 16657 need_version=no 16658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16659 soname_spec='${libname}${release}${shared_ext}$major' 16660 shlibpath_var=LD_LIBRARY_PATH 16661 shlibpath_overrides_runpath=no 16662 hardcode_into_libs=yes 16663 dynamic_linker='NetBSD ld.elf_so' 16664 ;; 16665 16666knetbsd*-gnu) 16667 version_type=linux 16668 need_lib_prefix=no 16669 need_version=no 16670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16671 soname_spec='${libname}${release}${shared_ext}$major' 16672 shlibpath_var=LD_LIBRARY_PATH 16673 shlibpath_overrides_runpath=no 16674 hardcode_into_libs=yes 16675 dynamic_linker='GNU ld.so' 16676 ;; 16677 16678netbsd*) 16679 version_type=sunos 16680 need_lib_prefix=no 16681 need_version=no 16682 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16684 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16685 dynamic_linker='NetBSD (a.out) ld.so' 16686 else 16687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16688 soname_spec='${libname}${release}${shared_ext}$major' 16689 dynamic_linker='NetBSD ld.elf_so' 16690 fi 16691 shlibpath_var=LD_LIBRARY_PATH 16692 shlibpath_overrides_runpath=yes 16693 hardcode_into_libs=yes 16694 ;; 16695 16696newsos6) 16697 version_type=linux 16698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16699 shlibpath_var=LD_LIBRARY_PATH 16700 shlibpath_overrides_runpath=yes 16701 ;; 16702 16703nto-qnx*) 16704 version_type=linux 16705 need_lib_prefix=no 16706 need_version=no 16707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16708 soname_spec='${libname}${release}${shared_ext}$major' 16709 shlibpath_var=LD_LIBRARY_PATH 16710 shlibpath_overrides_runpath=yes 16711 ;; 16712 16713openbsd*) 16714 version_type=sunos 16715 need_lib_prefix=no 16716 need_version=yes 16717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16718 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16719 shlibpath_var=LD_LIBRARY_PATH 16720 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16721 case $host_os in 16722 openbsd2.[89] | openbsd2.[89].*) 16723 shlibpath_overrides_runpath=no 16724 ;; 16725 *) 16726 shlibpath_overrides_runpath=yes 16727 ;; 16728 esac 16729 else 16730 shlibpath_overrides_runpath=yes 16731 fi 16732 ;; 16733 16734os2*) 16735 libname_spec='$name' 16736 shrext_cmds=".dll" 16737 need_lib_prefix=no 16738 library_names_spec='$libname${shared_ext} $libname.a' 16739 dynamic_linker='OS/2 ld.exe' 16740 shlibpath_var=LIBPATH 16741 ;; 16742 16743osf3* | osf4* | osf5*) 16744 version_type=osf 16745 need_lib_prefix=no 16746 need_version=no 16747 soname_spec='${libname}${release}${shared_ext}$major' 16748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16749 shlibpath_var=LD_LIBRARY_PATH 16750 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16751 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16752 ;; 16753 16754sco3.2v5*) 16755 version_type=osf 16756 soname_spec='${libname}${release}${shared_ext}$major' 16757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16758 shlibpath_var=LD_LIBRARY_PATH 16759 ;; 16760 16761solaris*) 16762 version_type=linux 16763 need_lib_prefix=no 16764 need_version=no 16765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16766 soname_spec='${libname}${release}${shared_ext}$major' 16767 shlibpath_var=LD_LIBRARY_PATH 16768 shlibpath_overrides_runpath=yes 16769 hardcode_into_libs=yes 16770 # ldd complains unless libraries are executable 16771 postinstall_cmds='chmod +x $lib' 16772 ;; 16773 16774sunos4*) 16775 version_type=sunos 16776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16777 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16778 shlibpath_var=LD_LIBRARY_PATH 16779 shlibpath_overrides_runpath=yes 16780 if test "$with_gnu_ld" = yes; then 16781 need_lib_prefix=no 16782 fi 16783 need_version=yes 16784 ;; 16785 16786sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 16787 version_type=linux 16788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16789 soname_spec='${libname}${release}${shared_ext}$major' 16790 shlibpath_var=LD_LIBRARY_PATH 16791 case $host_vendor in 16792 sni) 16793 shlibpath_overrides_runpath=no 16794 need_lib_prefix=no 16795 export_dynamic_flag_spec='${wl}-Blargedynsym' 16796 runpath_var=LD_RUN_PATH 16797 ;; 16798 siemens) 16799 need_lib_prefix=no 16800 ;; 16801 motorola) 16802 need_lib_prefix=no 16803 need_version=no 16804 shlibpath_overrides_runpath=no 16805 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16806 ;; 16807 esac 16808 ;; 16809 16810sysv4*MP*) 16811 if test -d /usr/nec ;then 16812 version_type=linux 16813 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16814 soname_spec='$libname${shared_ext}.$major' 16815 shlibpath_var=LD_LIBRARY_PATH 16816 fi 16817 ;; 16818 16819uts4*) 16820 version_type=linux 16821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16822 soname_spec='${libname}${release}${shared_ext}$major' 16823 shlibpath_var=LD_LIBRARY_PATH 16824 ;; 16825 16826*) 16827 dynamic_linker=no 16828 ;; 16829esac 16830echo "$as_me:$LINENO: result: $dynamic_linker" >&5 16831echo "${ECHO_T}$dynamic_linker" >&6 16832test "$dynamic_linker" = no && can_build_shared=no 16833 16834echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 16835echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 16836hardcode_action_F77= 16837if test -n "$hardcode_libdir_flag_spec_F77" || \ 16838 test -n "$runpath_var F77" || \ 16839 test "X$hardcode_automatic_F77"="Xyes" ; then 16840 16841 # We can hardcode non-existant directories. 16842 if test "$hardcode_direct_F77" != no && 16843 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16844 # have to relink, otherwise we might link with an installed library 16845 # when we should be linking with a yet-to-be-installed one 16846 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 16847 test "$hardcode_minus_L_F77" != no; then 16848 # Linking always hardcodes the temporary library directory. 16849 hardcode_action_F77=relink 16850 else 16851 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16852 hardcode_action_F77=immediate 16853 fi 16854else 16855 # We cannot hardcode anything, or else we can only hardcode existing 16856 # directories. 16857 hardcode_action_F77=unsupported 16858fi 16859echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 16860echo "${ECHO_T}$hardcode_action_F77" >&6 16861 16862if test "$hardcode_action_F77" = relink; then 16863 # Fast installation is not supported 16864 enable_fast_install=no 16865elif test "$shlibpath_overrides_runpath" = yes || 16866 test "$enable_shared" = no; then 16867 # Fast installation is not necessary 16868 enable_fast_install=needless 16869fi 16870 16871striplib= 16872old_striplib= 16873echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 16874echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 16875if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 16876 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 16877 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 16878 echo "$as_me:$LINENO: result: yes" >&5 16879echo "${ECHO_T}yes" >&6 16880else 16881# FIXME - insert some real tests, host_os isn't really good enough 16882 case $host_os in 16883 darwin*) 16884 if test -n "$STRIP" ; then 16885 striplib="$STRIP -x" 16886 echo "$as_me:$LINENO: result: yes" >&5 16887echo "${ECHO_T}yes" >&6 16888 else 16889 echo "$as_me:$LINENO: result: no" >&5 16890echo "${ECHO_T}no" >&6 16891fi 16892 ;; 16893 *) 16894 echo "$as_me:$LINENO: result: no" >&5 16895echo "${ECHO_T}no" >&6 16896 ;; 16897 esac 16898fi 16899 16900 16901 16902# The else clause should only fire when bootstrapping the 16903# libtool distribution, otherwise you forgot to ship ltmain.sh 16904# with your package, and you will get complaints that there are 16905# no rules to generate ltmain.sh. 16906if test -f "$ltmain"; then 16907 # See if we are running on zsh, and set the options which allow our commands through 16908 # without removal of \ escapes. 16909 if test -n "${ZSH_VERSION+set}" ; then 16910 setopt NO_GLOB_SUBST 16911 fi 16912 # Now quote all the things that may contain metacharacters while being 16913 # careful not to overquote the AC_SUBSTed values. We take copies of the 16914 # variables and quote the copies for generation of the libtool script. 16915 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 16916 SED SHELL STRIP \ 16917 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 16918 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 16919 deplibs_check_method reload_flag reload_cmds need_locks \ 16920 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 16921 lt_cv_sys_global_symbol_to_c_name_address \ 16922 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 16923 old_postinstall_cmds old_postuninstall_cmds \ 16924 compiler_F77 \ 16925 CC_F77 \ 16926 LD_F77 \ 16927 lt_prog_compiler_wl_F77 \ 16928 lt_prog_compiler_pic_F77 \ 16929 lt_prog_compiler_static_F77 \ 16930 lt_prog_compiler_no_builtin_flag_F77 \ 16931 export_dynamic_flag_spec_F77 \ 16932 thread_safe_flag_spec_F77 \ 16933 whole_archive_flag_spec_F77 \ 16934 enable_shared_with_static_runtimes_F77 \ 16935 old_archive_cmds_F77 \ 16936 old_archive_from_new_cmds_F77 \ 16937 predep_objects_F77 \ 16938 postdep_objects_F77 \ 16939 predeps_F77 \ 16940 postdeps_F77 \ 16941 compiler_lib_search_path_F77 \ 16942 archive_cmds_F77 \ 16943 archive_expsym_cmds_F77 \ 16944 postinstall_cmds_F77 \ 16945 postuninstall_cmds_F77 \ 16946 old_archive_from_expsyms_cmds_F77 \ 16947 allow_undefined_flag_F77 \ 16948 no_undefined_flag_F77 \ 16949 export_symbols_cmds_F77 \ 16950 hardcode_libdir_flag_spec_F77 \ 16951 hardcode_libdir_flag_spec_ld_F77 \ 16952 hardcode_libdir_separator_F77 \ 16953 hardcode_automatic_F77 \ 16954 module_cmds_F77 \ 16955 module_expsym_cmds_F77 \ 16956 lt_cv_prog_compiler_c_o_F77 \ 16957 exclude_expsyms_F77 \ 16958 include_expsyms_F77; do 16959 16960 case $var in 16961 old_archive_cmds_F77 | \ 16962 old_archive_from_new_cmds_F77 | \ 16963 archive_cmds_F77 | \ 16964 archive_expsym_cmds_F77 | \ 16965 module_cmds_F77 | \ 16966 module_expsym_cmds_F77 | \ 16967 old_archive_from_expsyms_cmds_F77 | \ 16968 export_symbols_cmds_F77 | \ 16969 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 16970 postinstall_cmds | postuninstall_cmds | \ 16971 old_postinstall_cmds | old_postuninstall_cmds | \ 16972 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 16973 # Double-quote double-evaled strings. 16974 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 16975 ;; 16976 *) 16977 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 16978 ;; 16979 esac 16980 done 16981 16982 case $lt_echo in 16983 *'\$0 --fallback-echo"') 16984 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 16985 ;; 16986 esac 16987 16988cfgfile="$ofile" 16989 16990 cat <<__EOF__ >> "$cfgfile" 16991# ### BEGIN LIBTOOL TAG CONFIG: $tagname 16992 16993# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16994 16995# Shell to use when invoking shell scripts. 16996SHELL=$lt_SHELL 16997 16998# Whether or not to build shared libraries. 16999build_libtool_libs=$enable_shared 17000 17001# Whether or not to build static libraries. 17002build_old_libs=$enable_static 17003 17004# Whether or not to add -lc for building shared libraries. 17005build_libtool_need_lc=$archive_cmds_need_lc_F77 17006 17007# Whether or not to disallow shared libs when runtime libs are static 17008allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 17009 17010# Whether or not to optimize for fast installation. 17011fast_install=$enable_fast_install 17012 17013# The host system. 17014host_alias=$host_alias 17015host=$host 17016 17017# An echo program that does not interpret backslashes. 17018echo=$lt_echo 17019 17020# The archiver. 17021AR=$lt_AR 17022AR_FLAGS=$lt_AR_FLAGS 17023 17024# A C compiler. 17025LTCC=$lt_LTCC 17026 17027# A language-specific compiler. 17028CC=$lt_compiler_F77 17029 17030# Is the compiler the GNU C compiler? 17031with_gcc=$GCC_F77 17032 17033# An ERE matcher. 17034EGREP=$lt_EGREP 17035 17036# The linker used to build libraries. 17037LD=$lt_LD_F77 17038 17039# Whether we need hard or soft links. 17040LN_S=$lt_LN_S 17041 17042# A BSD-compatible nm program. 17043NM=$lt_NM 17044 17045# A symbol stripping program 17046STRIP=$lt_STRIP 17047 17048# Used to examine libraries when file_magic_cmd begins "file" 17049MAGIC_CMD=$MAGIC_CMD 17050 17051# Used on cygwin: DLL creation program. 17052DLLTOOL="$DLLTOOL" 17053 17054# Used on cygwin: object dumper. 17055OBJDUMP="$OBJDUMP" 17056 17057# Used on cygwin: assembler. 17058AS="$AS" 17059 17060# The name of the directory that contains temporary libtool files. 17061objdir=$objdir 17062 17063# How to create reloadable object files. 17064reload_flag=$lt_reload_flag 17065reload_cmds=$lt_reload_cmds 17066 17067# How to pass a linker flag through the compiler. 17068wl=$lt_lt_prog_compiler_wl_F77 17069 17070# Object file suffix (normally "o"). 17071objext="$ac_objext" 17072 17073# Old archive suffix (normally "a"). 17074libext="$libext" 17075 17076# Shared library suffix (normally ".so"). 17077shrext_cmds='$shrext_cmds' 17078 17079# Executable file suffix (normally ""). 17080exeext="$exeext" 17081 17082# Additional compiler flags for building library objects. 17083pic_flag=$lt_lt_prog_compiler_pic_F77 17084pic_mode=$pic_mode 17085 17086# What is the maximum length of a command? 17087max_cmd_len=$lt_cv_sys_max_cmd_len 17088 17089# Does compiler simultaneously support -c and -o options? 17090compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 17091 17092# Must we lock files when doing compilation ? 17093need_locks=$lt_need_locks 17094 17095# Do we need the lib prefix for modules? 17096need_lib_prefix=$need_lib_prefix 17097 17098# Do we need a version for libraries? 17099need_version=$need_version 17100 17101# Whether dlopen is supported. 17102dlopen_support=$enable_dlopen 17103 17104# Whether dlopen of programs is supported. 17105dlopen_self=$enable_dlopen_self 17106 17107# Whether dlopen of statically linked programs is supported. 17108dlopen_self_static=$enable_dlopen_self_static 17109 17110# Compiler flag to prevent dynamic linking. 17111link_static_flag=$lt_lt_prog_compiler_static_F77 17112 17113# Compiler flag to turn off builtin functions. 17114no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 17115 17116# Compiler flag to allow reflexive dlopens. 17117export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 17118 17119# Compiler flag to generate shared objects directly from archives. 17120whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 17121 17122# Compiler flag to generate thread-safe objects. 17123thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 17124 17125# Library versioning type. 17126version_type=$version_type 17127 17128# Format of library name prefix. 17129libname_spec=$lt_libname_spec 17130 17131# List of archive names. First name is the real one, the rest are links. 17132# The last name is the one that the linker finds with -lNAME. 17133library_names_spec=$lt_library_names_spec 17134 17135# The coded name of the library, if different from the real name. 17136soname_spec=$lt_soname_spec 17137 17138# Commands used to build and install an old-style archive. 17139RANLIB=$lt_RANLIB 17140old_archive_cmds=$lt_old_archive_cmds_F77 17141old_postinstall_cmds=$lt_old_postinstall_cmds 17142old_postuninstall_cmds=$lt_old_postuninstall_cmds 17143 17144# Create an old-style archive from a shared archive. 17145old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 17146 17147# Create a temporary old-style archive to link instead of a shared archive. 17148old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 17149 17150# Commands used to build and install a shared archive. 17151archive_cmds=$lt_archive_cmds_F77 17152archive_expsym_cmds=$lt_archive_expsym_cmds_F77 17153postinstall_cmds=$lt_postinstall_cmds 17154postuninstall_cmds=$lt_postuninstall_cmds 17155 17156# Commands used to build a loadable module (assumed same as above if empty) 17157module_cmds=$lt_module_cmds_F77 17158module_expsym_cmds=$lt_module_expsym_cmds_F77 17159 17160# Commands to strip libraries. 17161old_striplib=$lt_old_striplib 17162striplib=$lt_striplib 17163 17164# Dependencies to place before the objects being linked to create a 17165# shared library. 17166predep_objects=$lt_predep_objects_F77 17167 17168# Dependencies to place after the objects being linked to create a 17169# shared library. 17170postdep_objects=$lt_postdep_objects_F77 17171 17172# Dependencies to place before the objects being linked to create a 17173# shared library. 17174predeps=$lt_predeps_F77 17175 17176# Dependencies to place after the objects being linked to create a 17177# shared library. 17178postdeps=$lt_postdeps_F77 17179 17180# The library search path used internally by the compiler when linking 17181# a shared library. 17182compiler_lib_search_path=$lt_compiler_lib_search_path_F77 17183 17184# Method to check whether dependent libraries are shared objects. 17185deplibs_check_method=$lt_deplibs_check_method 17186 17187# Command to use when deplibs_check_method == file_magic. 17188file_magic_cmd=$lt_file_magic_cmd 17189 17190# Flag that allows shared libraries with undefined symbols to be built. 17191allow_undefined_flag=$lt_allow_undefined_flag_F77 17192 17193# Flag that forces no undefined symbols. 17194no_undefined_flag=$lt_no_undefined_flag_F77 17195 17196# Commands used to finish a libtool library installation in a directory. 17197finish_cmds=$lt_finish_cmds 17198 17199# Same as above, but a single script fragment to be evaled but not shown. 17200finish_eval=$lt_finish_eval 17201 17202# Take the output of nm and produce a listing of raw symbols and C names. 17203global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17204 17205# Transform the output of nm in a proper C declaration 17206global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17207 17208# Transform the output of nm in a C name address pair 17209global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 17210 17211# This is the shared library runtime path variable. 17212runpath_var=$runpath_var 17213 17214# This is the shared library path variable. 17215shlibpath_var=$shlibpath_var 17216 17217# Is shlibpath searched before the hard-coded library search path? 17218shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17219 17220# How to hardcode a shared library path into an executable. 17221hardcode_action=$hardcode_action_F77 17222 17223# Whether we should hardcode library paths into libraries. 17224hardcode_into_libs=$hardcode_into_libs 17225 17226# Flag to hardcode \$libdir into a binary during linking. 17227# This must work even if \$libdir does not exist. 17228hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 17229 17230# If ld is used when linking, flag to hardcode \$libdir into 17231# a binary during linking. This must work even if \$libdir does 17232# not exist. 17233hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 17234 17235# Whether we need a single -rpath flag with a separated argument. 17236hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 17237 17238# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 17239# resulting binary. 17240hardcode_direct=$hardcode_direct_F77 17241 17242# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 17243# resulting binary. 17244hardcode_minus_L=$hardcode_minus_L_F77 17245 17246# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 17247# the resulting binary. 17248hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 17249 17250# Set to yes if building a shared library automatically hardcodes DIR into the library 17251# and all subsequent libraries and executables linked against it. 17252hardcode_automatic=$hardcode_automatic_F77 17253 17254# Variables whose values should be saved in libtool wrapper scripts and 17255# restored at relink time. 17256variables_saved_for_relink="$variables_saved_for_relink" 17257 17258# Whether libtool must link a program against all its dependency libraries. 17259link_all_deplibs=$link_all_deplibs_F77 17260 17261# Compile-time system search path for libraries 17262sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 17263 17264# Run-time system search path for libraries 17265sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 17266 17267# Fix the shell variable \$srcfile for the compiler. 17268fix_srcfile_path="$fix_srcfile_path_F77" 17269 17270# Set to yes if exported symbols are required. 17271always_export_symbols=$always_export_symbols_F77 17272 17273# The commands to list exported symbols. 17274export_symbols_cmds=$lt_export_symbols_cmds_F77 17275 17276# The commands to extract the exported symbol list from a shared archive. 17277extract_expsyms_cmds=$lt_extract_expsyms_cmds 17278 17279# Symbols that should not be listed in the preloaded symbols. 17280exclude_expsyms=$lt_exclude_expsyms_F77 17281 17282# Symbols that must always be exported. 17283include_expsyms=$lt_include_expsyms_F77 17284 17285# ### END LIBTOOL TAG CONFIG: $tagname 17286 17287__EOF__ 17288 17289 17290else 17291 # If there is no Makefile yet, we rely on a make rule to execute 17292 # `config.status --recheck' to rerun these tests and create the 17293 # libtool script then. 17294 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 17295 if test -f "$ltmain_in"; then 17296 test -f Makefile && make "$ltmain" 17297 fi 17298fi 17299 17300 17301ac_ext=c 17302ac_cpp='$CPP $CPPFLAGS' 17303ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17304ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17305ac_compiler_gnu=$ac_cv_c_compiler_gnu 17306 17307CC="$lt_save_CC" 17308 17309 else 17310 tagname="" 17311 fi 17312 ;; 17313 17314 GCJ) 17315 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 17316 17317 17318 17319# Source file extension for Java test sources. 17320ac_ext=java 17321 17322# Object file extension for compiled Java test sources. 17323objext=o 17324objext_GCJ=$objext 17325 17326# Code to be used in simple compile tests 17327lt_simple_compile_test_code="class foo {}\n" 17328 17329# Code to be used in simple link tests 17330lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n' 17331 17332# ltmain only uses $CC for tagged configurations so make sure $CC is set. 17333 17334# If no C compiler was specified, use CC. 17335LTCC=${LTCC-"$CC"} 17336 17337# Allow CC to be a program name with arguments. 17338compiler=$CC 17339 17340 17341# Allow CC to be a program name with arguments. 17342lt_save_CC="$CC" 17343CC=${GCJ-"gcj"} 17344compiler=$CC 17345compiler_GCJ=$CC 17346 17347# GCJ did not exist at the time GCC didn't implicitly link libc in. 17348archive_cmds_need_lc_GCJ=no 17349 17350 17351lt_prog_compiler_no_builtin_flag_GCJ= 17352 17353if test "$GCC" = yes; then 17354 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 17355 17356 17357echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 17358echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 17359if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 17360 echo $ECHO_N "(cached) $ECHO_C" >&6 17361else 17362 lt_cv_prog_compiler_rtti_exceptions=no 17363 ac_outfile=conftest.$ac_objext 17364 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17365 lt_compiler_flag="-fno-rtti -fno-exceptions" 17366 # Insert the option either (1) after the last *FLAGS variable, or 17367 # (2) before a word containing "conftest.", or (3) at the end. 17368 # Note that $ac_compile itself does not contain backslashes and begins 17369 # with a dollar sign (not a hyphen), so the echo should work correctly. 17370 # The option is referenced via a variable to avoid confusing sed. 17371 lt_compile=`echo "$ac_compile" | $SED \ 17372 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 17373 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17374 -e 's:$: $lt_compiler_flag:'` 17375 (eval echo "\"\$as_me:17375: $lt_compile\"" >&5) 17376 (eval "$lt_compile" 2>conftest.err) 17377 ac_status=$? 17378 cat conftest.err >&5 17379 echo "$as_me:17379: \$? = $ac_status" >&5 17380 if (exit $ac_status) && test -s "$ac_outfile"; then 17381 # The compiler can only warn and ignore the option if not recognized 17382 # So say no if there are warnings 17383 if test ! -s conftest.err; then 17384 lt_cv_prog_compiler_rtti_exceptions=yes 17385 fi 17386 fi 17387 $rm conftest* 17388 17389fi 17390echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 17391echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 17392 17393if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 17394 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 17395else 17396 : 17397fi 17398 17399fi 17400 17401lt_prog_compiler_wl_GCJ= 17402lt_prog_compiler_pic_GCJ= 17403lt_prog_compiler_static_GCJ= 17404 17405echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 17406echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 17407 17408 if test "$GCC" = yes; then 17409 lt_prog_compiler_wl_GCJ='-Wl,' 17410 lt_prog_compiler_static_GCJ='-static' 17411 17412 case $host_os in 17413 aix*) 17414 # All AIX code is PIC. 17415 if test "$host_cpu" = ia64; then 17416 # AIX 5 now supports IA64 processor 17417 lt_prog_compiler_static_GCJ='-Bstatic' 17418 fi 17419 ;; 17420 17421 amigaos*) 17422 # FIXME: we need at least 68020 code to build shared libraries, but 17423 # adding the `-m68020' flag to GCC prevents building anything better, 17424 # like `-m68040'. 17425 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 17426 ;; 17427 17428 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 17429 # PIC is the default for these OSes. 17430 ;; 17431 17432 mingw* | pw32* | os2*) 17433 # This hack is so that the source file can tell whether it is being 17434 # built for inclusion in a dll (and should export symbols for example). 17435 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 17436 ;; 17437 17438 darwin* | rhapsody*) 17439 # PIC is the default on this platform 17440 # Common symbols not allowed in MH_DYLIB files 17441 lt_prog_compiler_pic_GCJ='-fno-common' 17442 ;; 17443 17444 msdosdjgpp*) 17445 # Just because we use GCC doesn't mean we suddenly get shared libraries 17446 # on systems that don't support them. 17447 lt_prog_compiler_can_build_shared_GCJ=no 17448 enable_shared=no 17449 ;; 17450 17451 sysv4*MP*) 17452 if test -d /usr/nec; then 17453 lt_prog_compiler_pic_GCJ=-Kconform_pic 17454 fi 17455 ;; 17456 17457 hpux*) 17458 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 17459 # not for PA HP-UX. 17460 case "$host_cpu" in 17461 hppa*64*|ia64*) 17462 # +Z the default 17463 ;; 17464 *) 17465 lt_prog_compiler_pic_GCJ='-fPIC' 17466 ;; 17467 esac 17468 ;; 17469 17470 *) 17471 lt_prog_compiler_pic_GCJ='-fPIC' 17472 ;; 17473 esac 17474 else 17475 # PORTME Check for flag to pass linker flags through the system compiler. 17476 case $host_os in 17477 aix*) 17478 lt_prog_compiler_wl_GCJ='-Wl,' 17479 if test "$host_cpu" = ia64; then 17480 # AIX 5 now supports IA64 processor 17481 lt_prog_compiler_static_GCJ='-Bstatic' 17482 else 17483 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 17484 fi 17485 ;; 17486 17487 mingw* | pw32* | os2*) 17488 # This hack is so that the source file can tell whether it is being 17489 # built for inclusion in a dll (and should export symbols for example). 17490 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 17491 ;; 17492 17493 hpux9* | hpux10* | hpux11*) 17494 lt_prog_compiler_wl_GCJ='-Wl,' 17495 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 17496 # not for PA HP-UX. 17497 case "$host_cpu" in 17498 hppa*64*|ia64*) 17499 # +Z the default 17500 ;; 17501 *) 17502 lt_prog_compiler_pic_GCJ='+Z' 17503 ;; 17504 esac 17505 # Is there a better lt_prog_compiler_static that works with the bundled CC? 17506 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 17507 ;; 17508 17509 irix5* | irix6* | nonstopux*) 17510 lt_prog_compiler_wl_GCJ='-Wl,' 17511 # PIC (with -KPIC) is the default. 17512 lt_prog_compiler_static_GCJ='-non_shared' 17513 ;; 17514 17515 newsos6) 17516 lt_prog_compiler_pic_GCJ='-KPIC' 17517 lt_prog_compiler_static_GCJ='-Bstatic' 17518 ;; 17519 17520 linux*) 17521 case $CC in 17522 icc* | ecc*) 17523 lt_prog_compiler_wl_GCJ='-Wl,' 17524 lt_prog_compiler_pic_GCJ='-KPIC' 17525 lt_prog_compiler_static_GCJ='-static' 17526 ;; 17527 ccc*) 17528 lt_prog_compiler_wl_GCJ='-Wl,' 17529 # All Alpha code is PIC. 17530 lt_prog_compiler_static_GCJ='-non_shared' 17531 ;; 17532 esac 17533 ;; 17534 17535 osf3* | osf4* | osf5*) 17536 lt_prog_compiler_wl_GCJ='-Wl,' 17537 # All OSF/1 code is PIC. 17538 lt_prog_compiler_static_GCJ='-non_shared' 17539 ;; 17540 17541 sco3.2v5*) 17542 lt_prog_compiler_pic_GCJ='-Kpic' 17543 lt_prog_compiler_static_GCJ='-dn' 17544 ;; 17545 17546 solaris*) 17547 lt_prog_compiler_wl_GCJ='-Wl,' 17548 lt_prog_compiler_pic_GCJ='-KPIC' 17549 lt_prog_compiler_static_GCJ='-Bstatic' 17550 ;; 17551 17552 sunos4*) 17553 lt_prog_compiler_wl_GCJ='-Qoption ld ' 17554 lt_prog_compiler_pic_GCJ='-PIC' 17555 lt_prog_compiler_static_GCJ='-Bstatic' 17556 ;; 17557 17558 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 17559 lt_prog_compiler_wl_GCJ='-Wl,' 17560 lt_prog_compiler_pic_GCJ='-KPIC' 17561 lt_prog_compiler_static_GCJ='-Bstatic' 17562 ;; 17563 17564 sysv4*MP*) 17565 if test -d /usr/nec ;then 17566 lt_prog_compiler_pic_GCJ='-Kconform_pic' 17567 lt_prog_compiler_static_GCJ='-Bstatic' 17568 fi 17569 ;; 17570 17571 uts4*) 17572 lt_prog_compiler_pic_GCJ='-pic' 17573 lt_prog_compiler_static_GCJ='-Bstatic' 17574 ;; 17575 17576 *) 17577 lt_prog_compiler_can_build_shared_GCJ=no 17578 ;; 17579 esac 17580 fi 17581 17582echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 17583echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 17584 17585# 17586# Check to make sure the PIC flag actually works. 17587# 17588if test -n "$lt_prog_compiler_pic_GCJ"; then 17589 17590echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 17591echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 17592if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 17593 echo $ECHO_N "(cached) $ECHO_C" >&6 17594else 17595 lt_prog_compiler_pic_works_GCJ=no 17596 ac_outfile=conftest.$ac_objext 17597 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17598 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 17599 # Insert the option either (1) after the last *FLAGS variable, or 17600 # (2) before a word containing "conftest.", or (3) at the end. 17601 # Note that $ac_compile itself does not contain backslashes and begins 17602 # with a dollar sign (not a hyphen), so the echo should work correctly. 17603 # The option is referenced via a variable to avoid confusing sed. 17604 lt_compile=`echo "$ac_compile" | $SED \ 17605 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 17606 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17607 -e 's:$: $lt_compiler_flag:'` 17608 (eval echo "\"\$as_me:17608: $lt_compile\"" >&5) 17609 (eval "$lt_compile" 2>conftest.err) 17610 ac_status=$? 17611 cat conftest.err >&5 17612 echo "$as_me:17612: \$? = $ac_status" >&5 17613 if (exit $ac_status) && test -s "$ac_outfile"; then 17614 # The compiler can only warn and ignore the option if not recognized 17615 # So say no if there are warnings 17616 if test ! -s conftest.err; then 17617 lt_prog_compiler_pic_works_GCJ=yes 17618 fi 17619 fi 17620 $rm conftest* 17621 17622fi 17623echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 17624echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 17625 17626if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 17627 case $lt_prog_compiler_pic_GCJ in 17628 "" | " "*) ;; 17629 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 17630 esac 17631else 17632 lt_prog_compiler_pic_GCJ= 17633 lt_prog_compiler_can_build_shared_GCJ=no 17634fi 17635 17636fi 17637case "$host_os" in 17638 # For platforms which do not support PIC, -DPIC is meaningless: 17639 *djgpp*) 17640 lt_prog_compiler_pic_GCJ= 17641 ;; 17642 *) 17643 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 17644 ;; 17645esac 17646 17647echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 17648echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 17649if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 17650 echo $ECHO_N "(cached) $ECHO_C" >&6 17651else 17652 lt_cv_prog_compiler_c_o_GCJ=no 17653 $rm -r conftest 2>/dev/null 17654 mkdir conftest 17655 cd conftest 17656 mkdir out 17657 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17658 17659 lt_compiler_flag="-o out/conftest2.$ac_objext" 17660 # Insert the option either (1) after the last *FLAGS variable, or 17661 # (2) before a word containing "conftest.", or (3) at the end. 17662 # Note that $ac_compile itself does not contain backslashes and begins 17663 # with a dollar sign (not a hyphen), so the echo should work correctly. 17664 lt_compile=`echo "$ac_compile" | $SED \ 17665 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 17666 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17667 -e 's:$: $lt_compiler_flag:'` 17668 (eval echo "\"\$as_me:17668: $lt_compile\"" >&5) 17669 (eval "$lt_compile" 2>out/conftest.err) 17670 ac_status=$? 17671 cat out/conftest.err >&5 17672 echo "$as_me:17672: \$? = $ac_status" >&5 17673 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17674 then 17675 # The compiler can only warn and ignore the option if not recognized 17676 # So say no if there are warnings 17677 if test ! -s out/conftest.err; then 17678 lt_cv_prog_compiler_c_o_GCJ=yes 17679 fi 17680 fi 17681 chmod u+w . 17682 $rm conftest* 17683 # SGI C++ compiler will create directory out/ii_files/ for 17684 # template instantiation 17685 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 17686 $rm out/* && rmdir out 17687 cd .. 17688 rmdir conftest 17689 $rm conftest* 17690 17691fi 17692echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 17693echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 17694 17695 17696hard_links="nottested" 17697if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 17698 # do not overwrite the value of need_locks provided by the user 17699 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 17700echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 17701 hard_links=yes 17702 $rm conftest* 17703 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17704 touch conftest.a 17705 ln conftest.a conftest.b 2>&5 || hard_links=no 17706 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17707 echo "$as_me:$LINENO: result: $hard_links" >&5 17708echo "${ECHO_T}$hard_links" >&6 17709 if test "$hard_links" = no; then 17710 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 17711echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 17712 need_locks=warn 17713 fi 17714else 17715 need_locks=no 17716fi 17717 17718echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17719echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 17720 17721 runpath_var= 17722 allow_undefined_flag_GCJ= 17723 enable_shared_with_static_runtimes_GCJ=no 17724 archive_cmds_GCJ= 17725 archive_expsym_cmds_GCJ= 17726 old_archive_From_new_cmds_GCJ= 17727 old_archive_from_expsyms_cmds_GCJ= 17728 export_dynamic_flag_spec_GCJ= 17729 whole_archive_flag_spec_GCJ= 17730 thread_safe_flag_spec_GCJ= 17731 hardcode_libdir_flag_spec_GCJ= 17732 hardcode_libdir_flag_spec_ld_GCJ= 17733 hardcode_libdir_separator_GCJ= 17734 hardcode_direct_GCJ=no 17735 hardcode_minus_L_GCJ=no 17736 hardcode_shlibpath_var_GCJ=unsupported 17737 link_all_deplibs_GCJ=unknown 17738 hardcode_automatic_GCJ=no 17739 module_cmds_GCJ= 17740 module_expsym_cmds_GCJ= 17741 always_export_symbols_GCJ=no 17742 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17743 # include_expsyms should be a list of space-separated symbols to be *always* 17744 # included in the symbol list 17745 include_expsyms_GCJ= 17746 # exclude_expsyms can be an extended regexp of symbols to exclude 17747 # it will be wrapped by ` (' and `)$', so one must not match beginning or 17748 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 17749 # as well as any symbol that contains `d'. 17750 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 17751 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 17752 # platforms (ab)use it in PIC code, but their linkers get confused if 17753 # the symbol is explicitly referenced. Since portable code cannot 17754 # rely on this symbol name, it's probably fine to never include it in 17755 # preloaded symbol tables. 17756 extract_expsyms_cmds= 17757 17758 case $host_os in 17759 cygwin* | mingw* | pw32*) 17760 # FIXME: the MSVC++ port hasn't been tested in a loooong time 17761 # When not using gcc, we currently assume that we are using 17762 # Microsoft Visual C++. 17763 if test "$GCC" != yes; then 17764 with_gnu_ld=no 17765 fi 17766 ;; 17767 openbsd*) 17768 with_gnu_ld=no 17769 ;; 17770 esac 17771 17772 ld_shlibs_GCJ=yes 17773 if test "$with_gnu_ld" = yes; then 17774 # If archive_cmds runs LD, not CC, wlarc should be empty 17775 wlarc='${wl}' 17776 17777 # See if GNU ld supports shared libraries. 17778 case $host_os in 17779 aix3* | aix4* | aix5*) 17780 # On AIX/PPC, the GNU linker is very broken 17781 if test "$host_cpu" != ia64; then 17782 ld_shlibs_GCJ=no 17783 cat <<EOF 1>&2 17784 17785*** Warning: the GNU linker, at least up to release 2.9.1, is reported 17786*** to be unable to reliably create shared libraries on AIX. 17787*** Therefore, libtool is disabling shared libraries support. If you 17788*** really care for shared libraries, you may want to modify your PATH 17789*** so that a non-GNU linker is found, and then restart. 17790 17791EOF 17792 fi 17793 ;; 17794 17795 amigaos*) 17796 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)' 17797 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17798 hardcode_minus_L_GCJ=yes 17799 17800 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 17801 # that the semantics of dynamic libraries on AmigaOS, at least up 17802 # to version 4, is to share data among multiple programs linked 17803 # with the same dynamic library. Since this doesn't match the 17804 # behavior of shared libraries on other platforms, we can't use 17805 # them. 17806 ld_shlibs_GCJ=no 17807 ;; 17808 17809 beos*) 17810 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17811 allow_undefined_flag_GCJ=unsupported 17812 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 17813 # support --undefined. This deserves some investigation. FIXME 17814 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17815 else 17816 ld_shlibs_GCJ=no 17817 fi 17818 ;; 17819 17820 cygwin* | mingw* | pw32*) 17821 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 17822 # as there is no search path for DLLs. 17823 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17824 allow_undefined_flag_GCJ=unsupported 17825 always_export_symbols_GCJ=no 17826 enable_shared_with_static_runtimes_GCJ=yes 17827 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 17828 17829 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 17830 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 17831 # If the export-symbols file already is a .def file (1st line 17832 # is EXPORTS), use it as is; otherwise, prepend... 17833 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 17834 cp $export_symbols $output_objdir/$soname.def; 17835 else 17836 echo EXPORTS > $output_objdir/$soname.def; 17837 cat $export_symbols >> $output_objdir/$soname.def; 17838 fi~ 17839 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 17840 else 17841 ld_shlibs=no 17842 fi 17843 ;; 17844 17845 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 17846 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17847 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 17848 wlarc= 17849 else 17850 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17851 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17852 fi 17853 ;; 17854 17855 solaris* | sysv5*) 17856 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 17857 ld_shlibs_GCJ=no 17858 cat <<EOF 1>&2 17859 17860*** Warning: The releases 2.8.* of the GNU linker cannot reliably 17861*** create shared libraries on Solaris systems. Therefore, libtool 17862*** is disabling shared libraries support. We urge you to upgrade GNU 17863*** binutils to release 2.9.1 or newer. Another option is to modify 17864*** your PATH or compiler configuration so that the native linker is 17865*** used, and then restart. 17866 17867EOF 17868 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17869 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17870 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17871 else 17872 ld_shlibs_GCJ=no 17873 fi 17874 ;; 17875 17876 sunos4*) 17877 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17878 wlarc= 17879 hardcode_direct_GCJ=yes 17880 hardcode_shlibpath_var_GCJ=no 17881 ;; 17882 17883 linux*) 17884 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17885 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17886 archive_cmds_GCJ="$tmp_archive_cmds" 17887 supports_anon_versioning=no 17888 case `$LD -v 2>/dev/null` in 17889 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 17890 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 17891 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 17892 *\ 2.11.*) ;; # other 2.11 versions 17893 *) supports_anon_versioning=yes ;; 17894 esac 17895 if test $supports_anon_versioning = yes; then 17896 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 17897cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17898$echo "local: *; };" >> $output_objdir/$libname.ver~ 17899 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 17900 else 17901 archive_expsym_cmds_GCJ="$tmp_archive_cmds" 17902 fi 17903 link_all_deplibs_GCJ=no 17904 else 17905 ld_shlibs_GCJ=no 17906 fi 17907 ;; 17908 17909 *) 17910 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17911 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17912 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17913 else 17914 ld_shlibs_GCJ=no 17915 fi 17916 ;; 17917 esac 17918 17919 if test "$ld_shlibs_GCJ" = yes; then 17920 runpath_var=LD_RUN_PATH 17921 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 17922 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 17923 # ancient GNU ld didn't support --whole-archive et. al. 17924 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 17925 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 17926 else 17927 whole_archive_flag_spec_GCJ= 17928 fi 17929 fi 17930 else 17931 # PORTME fill in a description of your system's linker (not GNU ld) 17932 case $host_os in 17933 aix3*) 17934 allow_undefined_flag_GCJ=unsupported 17935 always_export_symbols_GCJ=yes 17936 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' 17937 # Note: this linker hardcodes the directories in LIBPATH if there 17938 # are no directories specified by -L. 17939 hardcode_minus_L_GCJ=yes 17940 if test "$GCC" = yes && test -z "$link_static_flag"; then 17941 # Neither direct hardcoding nor static linking is supported with a 17942 # broken collect2. 17943 hardcode_direct_GCJ=unsupported 17944 fi 17945 ;; 17946 17947 aix4* | aix5*) 17948 if test "$host_cpu" = ia64; then 17949 # On IA64, the linker does run time linking by default, so we don't 17950 # have to do anything special. 17951 aix_use_runtimelinking=no 17952 exp_sym_flag='-Bexport' 17953 no_entry_flag="" 17954 else 17955 # If we're using GNU nm, then we don't want the "-C" option. 17956 # -C means demangle to AIX nm, but means don't demangle with GNU nm 17957 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 17958 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' 17959 else 17960 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' 17961 fi 17962 aix_use_runtimelinking=no 17963 17964 # Test if we are trying to use run time linking or normal 17965 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17966 # need to do runtime linking. 17967 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 17968 for ld_flag in $LDFLAGS; do 17969 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 17970 aix_use_runtimelinking=yes 17971 break 17972 fi 17973 done 17974 esac 17975 17976 exp_sym_flag='-bexport' 17977 no_entry_flag='-bnoentry' 17978 fi 17979 17980 # When large executables or shared objects are built, AIX ld can 17981 # have problems creating the table of contents. If linking a library 17982 # or program results in "error TOC overflow" add -mminimal-toc to 17983 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17984 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17985 17986 archive_cmds_GCJ='' 17987 hardcode_direct_GCJ=yes 17988 hardcode_libdir_separator_GCJ=':' 17989 link_all_deplibs_GCJ=yes 17990 17991 if test "$GCC" = yes; then 17992 case $host_os in aix4.012|aix4.012.*) 17993 # We only want to do this on AIX 4.2 and lower, the check 17994 # below for broken collect2 doesn't work under 4.3+ 17995 collect2name=`${CC} -print-prog-name=collect2` 17996 if test -f "$collect2name" && \ 17997 strings "$collect2name" | grep resolve_lib_name >/dev/null 17998 then 17999 # We have reworked collect2 18000 hardcode_direct_GCJ=yes 18001 else 18002 # We have old collect2 18003 hardcode_direct_GCJ=unsupported 18004 # It fails to find uninstalled libraries when the uninstalled 18005 # path is not listed in the libpath. Setting hardcode_minus_L 18006 # to unsupported forces relinking 18007 hardcode_minus_L_GCJ=yes 18008 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18009 hardcode_libdir_separator_GCJ= 18010 fi 18011 esac 18012 shared_flag='-shared' 18013 else 18014 # not using gcc 18015 if test "$host_cpu" = ia64; then 18016 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 18017 # chokes on -Wl,-G. The following line is correct: 18018 shared_flag='-G' 18019 else 18020 if test "$aix_use_runtimelinking" = yes; then 18021 shared_flag='${wl}-G' 18022 else 18023 shared_flag='${wl}-bM:SRE' 18024 fi 18025 fi 18026 fi 18027 18028 # It seems that -bexpall does not export symbols beginning with 18029 # underscore (_), so it is better to generate a list of symbols to export. 18030 always_export_symbols_GCJ=yes 18031 if test "$aix_use_runtimelinking" = yes; then 18032 # Warning - without using the other runtime loading flags (-brtl), 18033 # -berok will link without error, but may produce a broken library. 18034 allow_undefined_flag_GCJ='-berok' 18035 # Determine the default libpath from the value encoded in an empty executable. 18036 cat >conftest.$ac_ext <<_ACEOF 18037/* confdefs.h. */ 18038_ACEOF 18039cat confdefs.h >>conftest.$ac_ext 18040cat >>conftest.$ac_ext <<_ACEOF 18041/* end confdefs.h. */ 18042 18043#ifdef F77_DUMMY_MAIN 18044 18045# ifdef __cplusplus 18046 extern "C" 18047# endif 18048 int F77_DUMMY_MAIN() { return 1; } 18049 18050#endif 18051int 18052main () 18053{ 18054 18055 ; 18056 return 0; 18057} 18058_ACEOF 18059rm -f conftest.$ac_objext conftest$ac_exeext 18060if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18061 (eval $ac_link) 2>conftest.er1 18062 ac_status=$? 18063 grep -v '^ *+' conftest.er1 >conftest.err 18064 rm -f conftest.er1 18065 cat conftest.err >&5 18066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18067 (exit $ac_status); } && 18068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18070 (eval $ac_try) 2>&5 18071 ac_status=$? 18072 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18073 (exit $ac_status); }; } && 18074 { ac_try='test -s conftest$ac_exeext' 18075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18076 (eval $ac_try) 2>&5 18077 ac_status=$? 18078 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18079 (exit $ac_status); }; }; then 18080 18081aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 18082}'` 18083# Check for a 64-bit object if we didn't find anything. 18084if 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; } 18085}'`; fi 18086else 18087 echo "$as_me: failed program was:" >&5 18088sed 's/^/| /' conftest.$ac_ext >&5 18089 18090fi 18091rm -f conftest.err conftest.$ac_objext \ 18092 conftest$ac_exeext conftest.$ac_ext 18093if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 18094 18095 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 18096 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 18097 else 18098 if test "$host_cpu" = ia64; then 18099 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 18100 allow_undefined_flag_GCJ="-z nodefs" 18101 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 18102 else 18103 # Determine the default libpath from the value encoded in an empty executable. 18104 cat >conftest.$ac_ext <<_ACEOF 18105/* confdefs.h. */ 18106_ACEOF 18107cat confdefs.h >>conftest.$ac_ext 18108cat >>conftest.$ac_ext <<_ACEOF 18109/* end confdefs.h. */ 18110 18111#ifdef F77_DUMMY_MAIN 18112 18113# ifdef __cplusplus 18114 extern "C" 18115# endif 18116 int F77_DUMMY_MAIN() { return 1; } 18117 18118#endif 18119int 18120main () 18121{ 18122 18123 ; 18124 return 0; 18125} 18126_ACEOF 18127rm -f conftest.$ac_objext conftest$ac_exeext 18128if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18129 (eval $ac_link) 2>conftest.er1 18130 ac_status=$? 18131 grep -v '^ *+' conftest.er1 >conftest.err 18132 rm -f conftest.er1 18133 cat conftest.err >&5 18134 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18135 (exit $ac_status); } && 18136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18138 (eval $ac_try) 2>&5 18139 ac_status=$? 18140 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18141 (exit $ac_status); }; } && 18142 { ac_try='test -s conftest$ac_exeext' 18143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18144 (eval $ac_try) 2>&5 18145 ac_status=$? 18146 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18147 (exit $ac_status); }; }; then 18148 18149aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 18150}'` 18151# Check for a 64-bit object if we didn't find anything. 18152if 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; } 18153}'`; fi 18154else 18155 echo "$as_me: failed program was:" >&5 18156sed 's/^/| /' conftest.$ac_ext >&5 18157 18158fi 18159rm -f conftest.err conftest.$ac_objext \ 18160 conftest$ac_exeext conftest.$ac_ext 18161if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 18162 18163 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 18164 # Warning - without using the other run time loading flags, 18165 # -berok will link without error, but may produce a broken library. 18166 no_undefined_flag_GCJ=' ${wl}-bernotok' 18167 allow_undefined_flag_GCJ=' ${wl}-berok' 18168 # -bexpall does not export symbols beginning with underscore (_) 18169 always_export_symbols_GCJ=yes 18170 # Exported symbols can be pulled into shared objects from archives 18171 whole_archive_flag_spec_GCJ=' ' 18172 archive_cmds_need_lc_GCJ=yes 18173 # This is similar to how AIX traditionally builds it's shared libraries. 18174 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 18175 fi 18176 fi 18177 ;; 18178 18179 amigaos*) 18180 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)' 18181 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18182 hardcode_minus_L_GCJ=yes 18183 # see comment about different semantics on the GNU ld section 18184 ld_shlibs_GCJ=no 18185 ;; 18186 18187 bsdi4*) 18188 export_dynamic_flag_spec_GCJ=-rdynamic 18189 ;; 18190 18191 cygwin* | mingw* | pw32*) 18192 # When not using gcc, we currently assume that we are using 18193 # Microsoft Visual C++. 18194 # hardcode_libdir_flag_spec is actually meaningless, as there is 18195 # no search path for DLLs. 18196 hardcode_libdir_flag_spec_GCJ=' ' 18197 allow_undefined_flag_GCJ=unsupported 18198 # Tell ltmain to make .lib files, not .a files. 18199 libext=lib 18200 # Tell ltmain to make .dll files, not .so files. 18201 shrext_cmds=".dll" 18202 # FIXME: Setting linknames here is a bad hack. 18203 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 18204 # The linker will automatically build a .lib file if we build a DLL. 18205 old_archive_From_new_cmds_GCJ='true' 18206 # FIXME: Should let the user specify the lib program. 18207 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 18208 fix_srcfile_path='`cygpath -w "$srcfile"`' 18209 enable_shared_with_static_runtimes_GCJ=yes 18210 ;; 18211 18212 darwin* | rhapsody*) 18213 if test "$GXX" = yes ; then 18214 archive_cmds_need_lc_GCJ=no 18215 case "$host_os" in 18216 rhapsody* | darwin1.[012]) 18217 allow_undefined_flag_GCJ='-undefined suppress' 18218 ;; 18219 *) # Darwin 1.3 on 18220 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 18221 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' 18222 else 18223 case ${MACOSX_DEPLOYMENT_TARGET} in 18224 10.[012]) 18225 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' 18226 ;; 18227 10.*) 18228 allow_undefined_flag_GCJ='-undefined dynamic_lookup' 18229 ;; 18230 esac 18231 fi 18232 ;; 18233 esac 18234 lt_int_apple_cc_single_mod=no 18235 output_verbose_link_cmd='echo' 18236 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 18237 lt_int_apple_cc_single_mod=yes 18238 fi 18239 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 18240 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 18241 else 18242 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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' 18243 fi 18244 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 18245 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 18246 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 18247 archive_expsym_cmds_GCJ='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}' 18248 else 18249 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}' 18250 fi 18251 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}' 18252 hardcode_direct_GCJ=no 18253 hardcode_automatic_GCJ=yes 18254 hardcode_shlibpath_var_GCJ=unsupported 18255 whole_archive_flag_spec_GCJ='-all_load $convenience' 18256 link_all_deplibs_GCJ=yes 18257 else 18258 ld_shlibs_GCJ=no 18259 fi 18260 ;; 18261 18262 dgux*) 18263 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18264 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18265 hardcode_shlibpath_var_GCJ=no 18266 ;; 18267 18268 freebsd1*) 18269 ld_shlibs_GCJ=no 18270 ;; 18271 18272 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 18273 # support. Future versions do this automatically, but an explicit c++rt0.o 18274 # does not break anything, and helps significantly (at the cost of a little 18275 # extra space). 18276 freebsd2.2*) 18277 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 18278 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18279 hardcode_direct_GCJ=yes 18280 hardcode_shlibpath_var_GCJ=no 18281 ;; 18282 18283 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 18284 freebsd2*) 18285 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18286 hardcode_direct_GCJ=yes 18287 hardcode_minus_L_GCJ=yes 18288 hardcode_shlibpath_var_GCJ=no 18289 ;; 18290 18291 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 18292 freebsd* | kfreebsd*-gnu) 18293 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 18294 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18295 hardcode_direct_GCJ=yes 18296 hardcode_shlibpath_var_GCJ=no 18297 ;; 18298 18299 hpux9*) 18300 if test "$GCC" = yes; then 18301 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' 18302 else 18303 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' 18304 fi 18305 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18306 hardcode_libdir_separator_GCJ=: 18307 hardcode_direct_GCJ=yes 18308 18309 # hardcode_minus_L: Not really in the search PATH, 18310 # but as the default location of the library. 18311 hardcode_minus_L_GCJ=yes 18312 export_dynamic_flag_spec_GCJ='${wl}-E' 18313 ;; 18314 18315 hpux10* | hpux11*) 18316 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 18317 case "$host_cpu" in 18318 hppa*64*|ia64*) 18319 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18320 ;; 18321 *) 18322 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18323 ;; 18324 esac 18325 else 18326 case "$host_cpu" in 18327 hppa*64*|ia64*) 18328 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 18329 ;; 18330 *) 18331 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 18332 ;; 18333 esac 18334 fi 18335 if test "$with_gnu_ld" = no; then 18336 case "$host_cpu" in 18337 hppa*64*) 18338 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18339 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 18340 hardcode_libdir_separator_GCJ=: 18341 hardcode_direct_GCJ=no 18342 hardcode_shlibpath_var_GCJ=no 18343 ;; 18344 ia64*) 18345 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18346 hardcode_direct_GCJ=no 18347 hardcode_shlibpath_var_GCJ=no 18348 18349 # hardcode_minus_L: Not really in the search PATH, 18350 # but as the default location of the library. 18351 hardcode_minus_L_GCJ=yes 18352 ;; 18353 *) 18354 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18355 hardcode_libdir_separator_GCJ=: 18356 hardcode_direct_GCJ=yes 18357 export_dynamic_flag_spec_GCJ='${wl}-E' 18358 18359 # hardcode_minus_L: Not really in the search PATH, 18360 # but as the default location of the library. 18361 hardcode_minus_L_GCJ=yes 18362 ;; 18363 esac 18364 fi 18365 ;; 18366 18367 irix5* | irix6* | nonstopux*) 18368 if test "$GCC" = yes; then 18369 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' 18370 else 18371 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' 18372 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 18373 fi 18374 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18375 hardcode_libdir_separator_GCJ=: 18376 link_all_deplibs_GCJ=yes 18377 ;; 18378 18379 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 18380 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18381 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 18382 else 18383 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 18384 fi 18385 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18386 hardcode_direct_GCJ=yes 18387 hardcode_shlibpath_var_GCJ=no 18388 ;; 18389 18390 newsos6) 18391 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18392 hardcode_direct_GCJ=yes 18393 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18394 hardcode_libdir_separator_GCJ=: 18395 hardcode_shlibpath_var_GCJ=no 18396 ;; 18397 18398 openbsd*) 18399 hardcode_direct_GCJ=yes 18400 hardcode_shlibpath_var_GCJ=no 18401 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18402 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18403 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18404 export_dynamic_flag_spec_GCJ='${wl}-E' 18405 else 18406 case $host_os in 18407 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 18408 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18409 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18410 ;; 18411 *) 18412 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18413 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18414 ;; 18415 esac 18416 fi 18417 ;; 18418 18419 os2*) 18420 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18421 hardcode_minus_L_GCJ=yes 18422 allow_undefined_flag_GCJ=unsupported 18423 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' 18424 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 18425 ;; 18426 18427 osf3*) 18428 if test "$GCC" = yes; then 18429 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18430 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' 18431 else 18432 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18433 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' 18434 fi 18435 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18436 hardcode_libdir_separator_GCJ=: 18437 ;; 18438 18439 osf4* | osf5*) # as osf3* with the addition of -msym flag 18440 if test "$GCC" = yes; then 18441 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18442 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' 18443 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18444 else 18445 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18446 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' 18447 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~ 18448 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' 18449 18450 # Both c and cxx compiler support -rpath directly 18451 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 18452 fi 18453 hardcode_libdir_separator_GCJ=: 18454 ;; 18455 18456 sco3.2v5*) 18457 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18458 hardcode_shlibpath_var_GCJ=no 18459 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 18460 runpath_var=LD_RUN_PATH 18461 hardcode_runpath_var=yes 18462 ;; 18463 18464 solaris*) 18465 no_undefined_flag_GCJ=' -z text' 18466 if test "$GCC" = yes; then 18467 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18468 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18469 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 18470 else 18471 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 18472 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18473 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 18474 fi 18475 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18476 hardcode_shlibpath_var_GCJ=no 18477 case $host_os in 18478 solaris2.[0-5] | solaris2.[0-5].*) ;; 18479 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 18480 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 18481 esac 18482 link_all_deplibs_GCJ=yes 18483 ;; 18484 18485 sunos4*) 18486 if test "x$host_vendor" = xsequent; then 18487 # Use $CC to link under sequent, because it throws in some extra .o 18488 # files that make .init and .fini sections work. 18489 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 18490 else 18491 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 18492 fi 18493 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18494 hardcode_direct_GCJ=yes 18495 hardcode_minus_L_GCJ=yes 18496 hardcode_shlibpath_var_GCJ=no 18497 ;; 18498 18499 sysv4) 18500 case $host_vendor in 18501 sni) 18502 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18503 hardcode_direct_GCJ=yes # is this really true??? 18504 ;; 18505 siemens) 18506 ## LD is ld it makes a PLAMLIB 18507 ## CC just makes a GrossModule. 18508 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 18509 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 18510 hardcode_direct_GCJ=no 18511 ;; 18512 motorola) 18513 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18514 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 18515 ;; 18516 esac 18517 runpath_var='LD_RUN_PATH' 18518 hardcode_shlibpath_var_GCJ=no 18519 ;; 18520 18521 sysv4.3*) 18522 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18523 hardcode_shlibpath_var_GCJ=no 18524 export_dynamic_flag_spec_GCJ='-Bexport' 18525 ;; 18526 18527 sysv4*MP*) 18528 if test -d /usr/nec; then 18529 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18530 hardcode_shlibpath_var_GCJ=no 18531 runpath_var=LD_RUN_PATH 18532 hardcode_runpath_var=yes 18533 ld_shlibs_GCJ=yes 18534 fi 18535 ;; 18536 18537 sysv4.2uw2*) 18538 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 18539 hardcode_direct_GCJ=yes 18540 hardcode_minus_L_GCJ=no 18541 hardcode_shlibpath_var_GCJ=no 18542 hardcode_runpath_var=yes 18543 runpath_var=LD_RUN_PATH 18544 ;; 18545 18546 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 18547 no_undefined_flag_GCJ='${wl}-z ${wl}text' 18548 if test "$GCC" = yes; then 18549 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18550 else 18551 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18552 fi 18553 runpath_var='LD_RUN_PATH' 18554 hardcode_shlibpath_var_GCJ=no 18555 ;; 18556 18557 sysv5*) 18558 no_undefined_flag_GCJ=' -z text' 18559 # $CC -shared without GNU ld will not create a library from C++ 18560 # object files and a static libstdc++, better avoid it by now 18561 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 18562 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18563 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 18564 hardcode_libdir_flag_spec_GCJ= 18565 hardcode_shlibpath_var_GCJ=no 18566 runpath_var='LD_RUN_PATH' 18567 ;; 18568 18569 uts4*) 18570 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18571 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18572 hardcode_shlibpath_var_GCJ=no 18573 ;; 18574 18575 *) 18576 ld_shlibs_GCJ=no 18577 ;; 18578 esac 18579 fi 18580 18581echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 18582echo "${ECHO_T}$ld_shlibs_GCJ" >&6 18583test "$ld_shlibs_GCJ" = no && can_build_shared=no 18584 18585variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18586if test "$GCC" = yes; then 18587 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18588fi 18589 18590# 18591# Do we need to explicitly link libc? 18592# 18593case "x$archive_cmds_need_lc_GCJ" in 18594x|xyes) 18595 # Assume -lc should be added 18596 archive_cmds_need_lc_GCJ=yes 18597 18598 if test "$enable_shared" = yes && test "$GCC" = yes; then 18599 case $archive_cmds_GCJ in 18600 *'~'*) 18601 # FIXME: we may have to deal with multi-command sequences. 18602 ;; 18603 '$CC '*) 18604 # Test whether the compiler implicitly links with -lc since on some 18605 # systems, -lgcc has to come before -lc. If gcc already passes -lc 18606 # to ld, don't add -lc before -lgcc. 18607 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 18608echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 18609 $rm conftest* 18610 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 18611 18612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18613 (eval $ac_compile) 2>&5 18614 ac_status=$? 18615 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18616 (exit $ac_status); } 2>conftest.err; then 18617 soname=conftest 18618 lib=conftest 18619 libobjs=conftest.$ac_objext 18620 deplibs= 18621 wl=$lt_prog_compiler_wl_GCJ 18622 compiler_flags=-v 18623 linker_flags=-v 18624 verstring= 18625 output_objdir=. 18626 libname=conftest 18627 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 18628 allow_undefined_flag_GCJ= 18629 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 18630 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 18631 ac_status=$? 18632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18633 (exit $ac_status); } 18634 then 18635 archive_cmds_need_lc_GCJ=no 18636 else 18637 archive_cmds_need_lc_GCJ=yes 18638 fi 18639 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 18640 else 18641 cat conftest.err 1>&5 18642 fi 18643 $rm conftest* 18644 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 18645echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 18646 ;; 18647 esac 18648 fi 18649 ;; 18650esac 18651 18652echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 18653echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 18654library_names_spec= 18655libname_spec='lib$name' 18656soname_spec= 18657shrext_cmds=".so" 18658postinstall_cmds= 18659postuninstall_cmds= 18660finish_cmds= 18661finish_eval= 18662shlibpath_var= 18663shlibpath_overrides_runpath=unknown 18664version_type=none 18665dynamic_linker="$host_os ld.so" 18666sys_lib_dlsearch_path_spec="/lib /usr/lib" 18667if test "$GCC" = yes; then 18668 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18669 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 18670 # if the path contains ";" then we assume it to be the separator 18671 # otherwise default to the standard path separator (i.e. ":") - it is 18672 # assumed that no part of a normal pathname contains ";" but that should 18673 # okay in the real world where ";" in dirpaths is itself problematic. 18674 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18675 else 18676 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18677 fi 18678else 18679 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18680fi 18681need_lib_prefix=unknown 18682hardcode_into_libs=no 18683 18684# when you set need_version to no, make sure it does not cause -set_version 18685# flags to be left without arguments 18686need_version=unknown 18687 18688case $host_os in 18689aix3*) 18690 version_type=linux 18691 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 18692 shlibpath_var=LIBPATH 18693 18694 # AIX 3 has no versioning support, so we append a major version to the name. 18695 soname_spec='${libname}${release}${shared_ext}$major' 18696 ;; 18697 18698aix4* | aix5*) 18699 version_type=linux 18700 need_lib_prefix=no 18701 need_version=no 18702 hardcode_into_libs=yes 18703 if test "$host_cpu" = ia64; then 18704 # AIX 5 supports IA64 18705 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 18706 shlibpath_var=LD_LIBRARY_PATH 18707 else 18708 # With GCC up to 2.95.x, collect2 would create an import file 18709 # for dependence libraries. The import file would start with 18710 # the line `#! .'. This would cause the generated library to 18711 # depend on `.', always an invalid library. This was fixed in 18712 # development snapshots of GCC prior to 3.0. 18713 case $host_os in 18714 aix4 | aix4.[01] | aix4.[01].*) 18715 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18716 echo ' yes ' 18717 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 18718 : 18719 else 18720 can_build_shared=no 18721 fi 18722 ;; 18723 esac 18724 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 18725 # soname into executable. Probably we can add versioning support to 18726 # collect2, so additional links can be useful in future. 18727 if test "$aix_use_runtimelinking" = yes; then 18728 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18729 # instead of lib<name>.a to let people know that these are not 18730 # typical AIX shared libraries. 18731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18732 else 18733 # We preserve .a as extension for shared libraries through AIX4.2 18734 # and later when we are not doing run time linking. 18735 library_names_spec='${libname}${release}.a $libname.a' 18736 soname_spec='${libname}${release}${shared_ext}$major' 18737 fi 18738 shlibpath_var=LIBPATH 18739 fi 18740 ;; 18741 18742amigaos*) 18743 library_names_spec='$libname.ixlibrary $libname.a' 18744 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18745 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' 18746 ;; 18747 18748beos*) 18749 library_names_spec='${libname}${shared_ext}' 18750 dynamic_linker="$host_os ld.so" 18751 shlibpath_var=LIBRARY_PATH 18752 ;; 18753 18754bsdi4*) 18755 version_type=linux 18756 need_version=no 18757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18758 soname_spec='${libname}${release}${shared_ext}$major' 18759 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18760 shlibpath_var=LD_LIBRARY_PATH 18761 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18762 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18763 # the default ld.so.conf also contains /usr/contrib/lib and 18764 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18765 # libtool to hard-code these into programs 18766 ;; 18767 18768cygwin* | mingw* | pw32*) 18769 version_type=windows 18770 shrext_cmds=".dll" 18771 need_version=no 18772 need_lib_prefix=no 18773 18774 case $GCC,$host_os in 18775 yes,cygwin* | yes,mingw* | yes,pw32*) 18776 library_names_spec='$libname.dll.a' 18777 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18778 postinstall_cmds='base_file=`basename \${file}`~ 18779 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 18780 dldir=$destdir/`dirname \$dlpath`~ 18781 test -d \$dldir || mkdir -p \$dldir~ 18782 $install_prog $dir/$dlname \$dldir/$dlname' 18783 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18784 dlpath=$dir/\$dldll~ 18785 $rm \$dlpath' 18786 shlibpath_overrides_runpath=yes 18787 18788 case $host_os in 18789 cygwin*) 18790 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18791 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18792 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 18793 ;; 18794 mingw*) 18795 # MinGW DLLs use traditional 'lib' prefix 18796 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18797 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18798 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 18799 # It is most probably a Windows format PATH printed by 18800 # mingw gcc, but we are running on Cygwin. Gcc prints its search 18801 # path with ; separators, and with drive letters. We can handle the 18802 # drive letters (cygwin fileutils understands them), so leave them, 18803 # especially as we might pass files found there to a mingw objdump, 18804 # which wouldn't understand a cygwinified path. Ahh. 18805 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18806 else 18807 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18808 fi 18809 ;; 18810 pw32*) 18811 # pw32 DLLs use 'pw' prefix rather than 'lib' 18812 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 18813 ;; 18814 esac 18815 ;; 18816 18817 *) 18818 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 18819 ;; 18820 esac 18821 dynamic_linker='Win32 ld.exe' 18822 # FIXME: first we should search . and the directory the executable is in 18823 shlibpath_var=PATH 18824 ;; 18825 18826darwin* | rhapsody*) 18827 dynamic_linker="$host_os dyld" 18828 version_type=darwin 18829 need_lib_prefix=no 18830 need_version=no 18831 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 18832 soname_spec='${libname}${release}${major}$shared_ext' 18833 shlibpath_overrides_runpath=yes 18834 shlibpath_var=DYLD_LIBRARY_PATH 18835 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 18836 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 18837 if test "$GCC" = yes; then 18838 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"` 18839 else 18840 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 18841 fi 18842 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18843 ;; 18844 18845dgux*) 18846 version_type=linux 18847 need_lib_prefix=no 18848 need_version=no 18849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 18850 soname_spec='${libname}${release}${shared_ext}$major' 18851 shlibpath_var=LD_LIBRARY_PATH 18852 ;; 18853 18854freebsd1*) 18855 dynamic_linker=no 18856 ;; 18857 18858kfreebsd*-gnu) 18859 version_type=linux 18860 need_lib_prefix=no 18861 need_version=no 18862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18863 soname_spec='${libname}${release}${shared_ext}$major' 18864 shlibpath_var=LD_LIBRARY_PATH 18865 shlibpath_overrides_runpath=no 18866 hardcode_into_libs=yes 18867 dynamic_linker='GNU ld.so' 18868 ;; 18869 18870freebsd*) 18871 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 18872 version_type=freebsd-$objformat 18873 case $version_type in 18874 freebsd-elf*) 18875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18876 need_version=no 18877 need_lib_prefix=no 18878 ;; 18879 freebsd-*) 18880 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 18881 need_version=yes 18882 ;; 18883 esac 18884 shlibpath_var=LD_LIBRARY_PATH 18885 case $host_os in 18886 freebsd2*) 18887 shlibpath_overrides_runpath=yes 18888 ;; 18889 freebsd3.01* | freebsdelf3.01*) 18890 shlibpath_overrides_runpath=yes 18891 hardcode_into_libs=yes 18892 ;; 18893 *) # from 3.2 on 18894 shlibpath_overrides_runpath=no 18895 hardcode_into_libs=yes 18896 ;; 18897 esac 18898 ;; 18899 18900gnu*) 18901 version_type=linux 18902 need_lib_prefix=no 18903 need_version=no 18904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 18905 soname_spec='${libname}${release}${shared_ext}$major' 18906 shlibpath_var=LD_LIBRARY_PATH 18907 hardcode_into_libs=yes 18908 ;; 18909 18910hpux9* | hpux10* | hpux11*) 18911 # Give a soname corresponding to the major version so that dld.sl refuses to 18912 # link against other versions. 18913 version_type=sunos 18914 need_lib_prefix=no 18915 need_version=no 18916 case "$host_cpu" in 18917 ia64*) 18918 shrext_cmds='.so' 18919 hardcode_into_libs=yes 18920 dynamic_linker="$host_os dld.so" 18921 shlibpath_var=LD_LIBRARY_PATH 18922 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18924 soname_spec='${libname}${release}${shared_ext}$major' 18925 if test "X$HPUX_IA64_MODE" = X32; then 18926 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18927 else 18928 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18929 fi 18930 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18931 ;; 18932 hppa*64*) 18933 shrext_cmds='.sl' 18934 hardcode_into_libs=yes 18935 dynamic_linker="$host_os dld.sl" 18936 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18937 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18939 soname_spec='${libname}${release}${shared_ext}$major' 18940 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18941 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18942 ;; 18943 *) 18944 shrext_cmds='.sl' 18945 dynamic_linker="$host_os dld.sl" 18946 shlibpath_var=SHLIB_PATH 18947 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18949 soname_spec='${libname}${release}${shared_ext}$major' 18950 ;; 18951 esac 18952 # HP-UX runs *really* slowly unless shared libraries are mode 555. 18953 postinstall_cmds='chmod 555 $lib' 18954 ;; 18955 18956irix5* | irix6* | nonstopux*) 18957 case $host_os in 18958 nonstopux*) version_type=nonstopux ;; 18959 *) 18960 if test "$lt_cv_prog_gnu_ld" = yes; then 18961 version_type=linux 18962 else 18963 version_type=irix 18964 fi ;; 18965 esac 18966 need_lib_prefix=no 18967 need_version=no 18968 soname_spec='${libname}${release}${shared_ext}$major' 18969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18970 case $host_os in 18971 irix5* | nonstopux*) 18972 libsuff= shlibsuff= 18973 ;; 18974 *) 18975 case $LD in # libtool.m4 will add one of these switches to LD 18976 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18977 libsuff= shlibsuff= libmagic=32-bit;; 18978 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18979 libsuff=32 shlibsuff=N32 libmagic=N32;; 18980 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18981 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18982 *) libsuff= shlibsuff= libmagic=never-match;; 18983 esac 18984 ;; 18985 esac 18986 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18987 shlibpath_overrides_runpath=no 18988 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18989 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18990 hardcode_into_libs=yes 18991 ;; 18992 18993# No shared lib support for Linux oldld, aout, or coff. 18994linux*oldld* | linux*aout* | linux*coff*) 18995 dynamic_linker=no 18996 ;; 18997 18998# This must be Linux ELF. 18999linux*) 19000 version_type=linux 19001 need_lib_prefix=no 19002 need_version=no 19003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19004 soname_spec='${libname}${release}${shared_ext}$major' 19005 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 19006 shlibpath_var=LD_LIBRARY_PATH 19007 shlibpath_overrides_runpath=no 19008 # This implies no fast_install, which is unacceptable. 19009 # Some rework will be needed to allow for fast_install 19010 # before this can be enabled. 19011 hardcode_into_libs=yes 19012 19013 # Append ld.so.conf contents to the search path 19014 if test -f /etc/ld.so.conf; then 19015 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` 19016 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 19017 fi 19018 19019 # We used to test for /lib/ld.so.1 and disable shared libraries on 19020 # powerpc, because MkLinux only supported shared libraries with the 19021 # GNU dynamic linker. Since this was broken with cross compilers, 19022 # most powerpc-linux boxes support dynamic linking these days and 19023 # people can always --disable-shared, the test was removed, and we 19024 # assume the GNU/Linux dynamic linker is in use. 19025 dynamic_linker='GNU/Linux ld.so' 19026 ;; 19027 19028netbsdelf*-gnu) 19029 version_type=linux 19030 need_lib_prefix=no 19031 need_version=no 19032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 19033 soname_spec='${libname}${release}${shared_ext}$major' 19034 shlibpath_var=LD_LIBRARY_PATH 19035 shlibpath_overrides_runpath=no 19036 hardcode_into_libs=yes 19037 dynamic_linker='NetBSD ld.elf_so' 19038 ;; 19039 19040knetbsd*-gnu) 19041 version_type=linux 19042 need_lib_prefix=no 19043 need_version=no 19044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 19045 soname_spec='${libname}${release}${shared_ext}$major' 19046 shlibpath_var=LD_LIBRARY_PATH 19047 shlibpath_overrides_runpath=no 19048 hardcode_into_libs=yes 19049 dynamic_linker='GNU ld.so' 19050 ;; 19051 19052netbsd*) 19053 version_type=sunos 19054 need_lib_prefix=no 19055 need_version=no 19056 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 19057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 19058 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 19059 dynamic_linker='NetBSD (a.out) ld.so' 19060 else 19061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 19062 soname_spec='${libname}${release}${shared_ext}$major' 19063 dynamic_linker='NetBSD ld.elf_so' 19064 fi 19065 shlibpath_var=LD_LIBRARY_PATH 19066 shlibpath_overrides_runpath=yes 19067 hardcode_into_libs=yes 19068 ;; 19069 19070newsos6) 19071 version_type=linux 19072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19073 shlibpath_var=LD_LIBRARY_PATH 19074 shlibpath_overrides_runpath=yes 19075 ;; 19076 19077nto-qnx*) 19078 version_type=linux 19079 need_lib_prefix=no 19080 need_version=no 19081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19082 soname_spec='${libname}${release}${shared_ext}$major' 19083 shlibpath_var=LD_LIBRARY_PATH 19084 shlibpath_overrides_runpath=yes 19085 ;; 19086 19087openbsd*) 19088 version_type=sunos 19089 need_lib_prefix=no 19090 need_version=yes 19091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 19092 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 19093 shlibpath_var=LD_LIBRARY_PATH 19094 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 19095 case $host_os in 19096 openbsd2.[89] | openbsd2.[89].*) 19097 shlibpath_overrides_runpath=no 19098 ;; 19099 *) 19100 shlibpath_overrides_runpath=yes 19101 ;; 19102 esac 19103 else 19104 shlibpath_overrides_runpath=yes 19105 fi 19106 ;; 19107 19108os2*) 19109 libname_spec='$name' 19110 shrext_cmds=".dll" 19111 need_lib_prefix=no 19112 library_names_spec='$libname${shared_ext} $libname.a' 19113 dynamic_linker='OS/2 ld.exe' 19114 shlibpath_var=LIBPATH 19115 ;; 19116 19117osf3* | osf4* | osf5*) 19118 version_type=osf 19119 need_lib_prefix=no 19120 need_version=no 19121 soname_spec='${libname}${release}${shared_ext}$major' 19122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19123 shlibpath_var=LD_LIBRARY_PATH 19124 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 19125 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 19126 ;; 19127 19128sco3.2v5*) 19129 version_type=osf 19130 soname_spec='${libname}${release}${shared_ext}$major' 19131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19132 shlibpath_var=LD_LIBRARY_PATH 19133 ;; 19134 19135solaris*) 19136 version_type=linux 19137 need_lib_prefix=no 19138 need_version=no 19139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19140 soname_spec='${libname}${release}${shared_ext}$major' 19141 shlibpath_var=LD_LIBRARY_PATH 19142 shlibpath_overrides_runpath=yes 19143 hardcode_into_libs=yes 19144 # ldd complains unless libraries are executable 19145 postinstall_cmds='chmod +x $lib' 19146 ;; 19147 19148sunos4*) 19149 version_type=sunos 19150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 19151 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 19152 shlibpath_var=LD_LIBRARY_PATH 19153 shlibpath_overrides_runpath=yes 19154 if test "$with_gnu_ld" = yes; then 19155 need_lib_prefix=no 19156 fi 19157 need_version=yes 19158 ;; 19159 19160sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 19161 version_type=linux 19162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19163 soname_spec='${libname}${release}${shared_ext}$major' 19164 shlibpath_var=LD_LIBRARY_PATH 19165 case $host_vendor in 19166 sni) 19167 shlibpath_overrides_runpath=no 19168 need_lib_prefix=no 19169 export_dynamic_flag_spec='${wl}-Blargedynsym' 19170 runpath_var=LD_RUN_PATH 19171 ;; 19172 siemens) 19173 need_lib_prefix=no 19174 ;; 19175 motorola) 19176 need_lib_prefix=no 19177 need_version=no 19178 shlibpath_overrides_runpath=no 19179 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 19180 ;; 19181 esac 19182 ;; 19183 19184sysv4*MP*) 19185 if test -d /usr/nec ;then 19186 version_type=linux 19187 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 19188 soname_spec='$libname${shared_ext}.$major' 19189 shlibpath_var=LD_LIBRARY_PATH 19190 fi 19191 ;; 19192 19193uts4*) 19194 version_type=linux 19195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19196 soname_spec='${libname}${release}${shared_ext}$major' 19197 shlibpath_var=LD_LIBRARY_PATH 19198 ;; 19199 19200*) 19201 dynamic_linker=no 19202 ;; 19203esac 19204echo "$as_me:$LINENO: result: $dynamic_linker" >&5 19205echo "${ECHO_T}$dynamic_linker" >&6 19206test "$dynamic_linker" = no && can_build_shared=no 19207 19208echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 19209echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 19210hardcode_action_GCJ= 19211if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 19212 test -n "$runpath_var GCJ" || \ 19213 test "X$hardcode_automatic_GCJ"="Xyes" ; then 19214 19215 # We can hardcode non-existant directories. 19216 if test "$hardcode_direct_GCJ" != no && 19217 # If the only mechanism to avoid hardcoding is shlibpath_var, we 19218 # have to relink, otherwise we might link with an installed library 19219 # when we should be linking with a yet-to-be-installed one 19220 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 19221 test "$hardcode_minus_L_GCJ" != no; then 19222 # Linking always hardcodes the temporary library directory. 19223 hardcode_action_GCJ=relink 19224 else 19225 # We can link without hardcoding, and we can hardcode nonexisting dirs. 19226 hardcode_action_GCJ=immediate 19227 fi 19228else 19229 # We cannot hardcode anything, or else we can only hardcode existing 19230 # directories. 19231 hardcode_action_GCJ=unsupported 19232fi 19233echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 19234echo "${ECHO_T}$hardcode_action_GCJ" >&6 19235 19236if test "$hardcode_action_GCJ" = relink; then 19237 # Fast installation is not supported 19238 enable_fast_install=no 19239elif test "$shlibpath_overrides_runpath" = yes || 19240 test "$enable_shared" = no; then 19241 # Fast installation is not necessary 19242 enable_fast_install=needless 19243fi 19244 19245striplib= 19246old_striplib= 19247echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 19248echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 19249if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 19250 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 19251 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 19252 echo "$as_me:$LINENO: result: yes" >&5 19253echo "${ECHO_T}yes" >&6 19254else 19255# FIXME - insert some real tests, host_os isn't really good enough 19256 case $host_os in 19257 darwin*) 19258 if test -n "$STRIP" ; then 19259 striplib="$STRIP -x" 19260 echo "$as_me:$LINENO: result: yes" >&5 19261echo "${ECHO_T}yes" >&6 19262 else 19263 echo "$as_me:$LINENO: result: no" >&5 19264echo "${ECHO_T}no" >&6 19265fi 19266 ;; 19267 *) 19268 echo "$as_me:$LINENO: result: no" >&5 19269echo "${ECHO_T}no" >&6 19270 ;; 19271 esac 19272fi 19273 19274if test "x$enable_dlopen" != xyes; then 19275 enable_dlopen=unknown 19276 enable_dlopen_self=unknown 19277 enable_dlopen_self_static=unknown 19278else 19279 lt_cv_dlopen=no 19280 lt_cv_dlopen_libs= 19281 19282 case $host_os in 19283 beos*) 19284 lt_cv_dlopen="load_add_on" 19285 lt_cv_dlopen_libs= 19286 lt_cv_dlopen_self=yes 19287 ;; 19288 19289 mingw* | pw32*) 19290 lt_cv_dlopen="LoadLibrary" 19291 lt_cv_dlopen_libs= 19292 ;; 19293 19294 cygwin*) 19295 lt_cv_dlopen="dlopen" 19296 lt_cv_dlopen_libs= 19297 ;; 19298 19299 darwin*) 19300 # if libdl is installed we need to link against it 19301 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 19302echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 19303if test "${ac_cv_lib_dl_dlopen+set}" = set; then 19304 echo $ECHO_N "(cached) $ECHO_C" >&6 19305else 19306 ac_check_lib_save_LIBS=$LIBS 19307LIBS="-ldl $LIBS" 19308cat >conftest.$ac_ext <<_ACEOF 19309/* confdefs.h. */ 19310_ACEOF 19311cat confdefs.h >>conftest.$ac_ext 19312cat >>conftest.$ac_ext <<_ACEOF 19313/* end confdefs.h. */ 19314 19315/* Override any gcc2 internal prototype to avoid an error. */ 19316#ifdef __cplusplus 19317extern "C" 19318#endif 19319/* We use char because int might match the return type of a gcc2 19320 builtin and then its argument prototype would still apply. */ 19321char dlopen (); 19322#ifdef F77_DUMMY_MAIN 19323 19324# ifdef __cplusplus 19325 extern "C" 19326# endif 19327 int F77_DUMMY_MAIN() { return 1; } 19328 19329#endif 19330int 19331main () 19332{ 19333dlopen (); 19334 ; 19335 return 0; 19336} 19337_ACEOF 19338rm -f conftest.$ac_objext conftest$ac_exeext 19339if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19340 (eval $ac_link) 2>conftest.er1 19341 ac_status=$? 19342 grep -v '^ *+' conftest.er1 >conftest.err 19343 rm -f conftest.er1 19344 cat conftest.err >&5 19345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19346 (exit $ac_status); } && 19347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19349 (eval $ac_try) 2>&5 19350 ac_status=$? 19351 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19352 (exit $ac_status); }; } && 19353 { ac_try='test -s conftest$ac_exeext' 19354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19355 (eval $ac_try) 2>&5 19356 ac_status=$? 19357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19358 (exit $ac_status); }; }; then 19359 ac_cv_lib_dl_dlopen=yes 19360else 19361 echo "$as_me: failed program was:" >&5 19362sed 's/^/| /' conftest.$ac_ext >&5 19363 19364ac_cv_lib_dl_dlopen=no 19365fi 19366rm -f conftest.err conftest.$ac_objext \ 19367 conftest$ac_exeext conftest.$ac_ext 19368LIBS=$ac_check_lib_save_LIBS 19369fi 19370echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 19371echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 19372if test $ac_cv_lib_dl_dlopen = yes; then 19373 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 19374else 19375 19376 lt_cv_dlopen="dyld" 19377 lt_cv_dlopen_libs= 19378 lt_cv_dlopen_self=yes 19379 19380fi 19381 19382 ;; 19383 19384 *) 19385 echo "$as_me:$LINENO: checking for shl_load" >&5 19386echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 19387if test "${ac_cv_func_shl_load+set}" = set; then 19388 echo $ECHO_N "(cached) $ECHO_C" >&6 19389else 19390 cat >conftest.$ac_ext <<_ACEOF 19391/* confdefs.h. */ 19392_ACEOF 19393cat confdefs.h >>conftest.$ac_ext 19394cat >>conftest.$ac_ext <<_ACEOF 19395/* end confdefs.h. */ 19396/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 19397 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 19398#define shl_load innocuous_shl_load 19399 19400/* System header to define __stub macros and hopefully few prototypes, 19401 which can conflict with char shl_load (); below. 19402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 19403 <limits.h> exists even on freestanding compilers. */ 19404 19405#ifdef __STDC__ 19406# include <limits.h> 19407#else 19408# include <assert.h> 19409#endif 19410 19411#undef shl_load 19412 19413/* Override any gcc2 internal prototype to avoid an error. */ 19414#ifdef __cplusplus 19415extern "C" 19416{ 19417#endif 19418/* We use char because int might match the return type of a gcc2 19419 builtin and then its argument prototype would still apply. */ 19420char shl_load (); 19421/* The GNU C library defines this for functions which it implements 19422 to always fail with ENOSYS. Some functions are actually named 19423 something starting with __ and the normal name is an alias. */ 19424#if defined (__stub_shl_load) || defined (__stub___shl_load) 19425choke me 19426#else 19427char (*f) () = shl_load; 19428#endif 19429#ifdef __cplusplus 19430} 19431#endif 19432 19433#ifdef F77_DUMMY_MAIN 19434 19435# ifdef __cplusplus 19436 extern "C" 19437# endif 19438 int F77_DUMMY_MAIN() { return 1; } 19439 19440#endif 19441int 19442main () 19443{ 19444return f != shl_load; 19445 ; 19446 return 0; 19447} 19448_ACEOF 19449rm -f conftest.$ac_objext conftest$ac_exeext 19450if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19451 (eval $ac_link) 2>conftest.er1 19452 ac_status=$? 19453 grep -v '^ *+' conftest.er1 >conftest.err 19454 rm -f conftest.er1 19455 cat conftest.err >&5 19456 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19457 (exit $ac_status); } && 19458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19460 (eval $ac_try) 2>&5 19461 ac_status=$? 19462 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19463 (exit $ac_status); }; } && 19464 { ac_try='test -s conftest$ac_exeext' 19465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19466 (eval $ac_try) 2>&5 19467 ac_status=$? 19468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19469 (exit $ac_status); }; }; then 19470 ac_cv_func_shl_load=yes 19471else 19472 echo "$as_me: failed program was:" >&5 19473sed 's/^/| /' conftest.$ac_ext >&5 19474 19475ac_cv_func_shl_load=no 19476fi 19477rm -f conftest.err conftest.$ac_objext \ 19478 conftest$ac_exeext conftest.$ac_ext 19479fi 19480echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 19481echo "${ECHO_T}$ac_cv_func_shl_load" >&6 19482if test $ac_cv_func_shl_load = yes; then 19483 lt_cv_dlopen="shl_load" 19484else 19485 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 19486echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 19487if test "${ac_cv_lib_dld_shl_load+set}" = set; then 19488 echo $ECHO_N "(cached) $ECHO_C" >&6 19489else 19490 ac_check_lib_save_LIBS=$LIBS 19491LIBS="-ldld $LIBS" 19492cat >conftest.$ac_ext <<_ACEOF 19493/* confdefs.h. */ 19494_ACEOF 19495cat confdefs.h >>conftest.$ac_ext 19496cat >>conftest.$ac_ext <<_ACEOF 19497/* end confdefs.h. */ 19498 19499/* Override any gcc2 internal prototype to avoid an error. */ 19500#ifdef __cplusplus 19501extern "C" 19502#endif 19503/* We use char because int might match the return type of a gcc2 19504 builtin and then its argument prototype would still apply. */ 19505char shl_load (); 19506#ifdef F77_DUMMY_MAIN 19507 19508# ifdef __cplusplus 19509 extern "C" 19510# endif 19511 int F77_DUMMY_MAIN() { return 1; } 19512 19513#endif 19514int 19515main () 19516{ 19517shl_load (); 19518 ; 19519 return 0; 19520} 19521_ACEOF 19522rm -f conftest.$ac_objext conftest$ac_exeext 19523if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19524 (eval $ac_link) 2>conftest.er1 19525 ac_status=$? 19526 grep -v '^ *+' conftest.er1 >conftest.err 19527 rm -f conftest.er1 19528 cat conftest.err >&5 19529 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19530 (exit $ac_status); } && 19531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19533 (eval $ac_try) 2>&5 19534 ac_status=$? 19535 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19536 (exit $ac_status); }; } && 19537 { ac_try='test -s conftest$ac_exeext' 19538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19539 (eval $ac_try) 2>&5 19540 ac_status=$? 19541 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19542 (exit $ac_status); }; }; then 19543 ac_cv_lib_dld_shl_load=yes 19544else 19545 echo "$as_me: failed program was:" >&5 19546sed 's/^/| /' conftest.$ac_ext >&5 19547 19548ac_cv_lib_dld_shl_load=no 19549fi 19550rm -f conftest.err conftest.$ac_objext \ 19551 conftest$ac_exeext conftest.$ac_ext 19552LIBS=$ac_check_lib_save_LIBS 19553fi 19554echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 19555echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 19556if test $ac_cv_lib_dld_shl_load = yes; then 19557 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 19558else 19559 echo "$as_me:$LINENO: checking for dlopen" >&5 19560echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 19561if test "${ac_cv_func_dlopen+set}" = set; then 19562 echo $ECHO_N "(cached) $ECHO_C" >&6 19563else 19564 cat >conftest.$ac_ext <<_ACEOF 19565/* confdefs.h. */ 19566_ACEOF 19567cat confdefs.h >>conftest.$ac_ext 19568cat >>conftest.$ac_ext <<_ACEOF 19569/* end confdefs.h. */ 19570/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 19571 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 19572#define dlopen innocuous_dlopen 19573 19574/* System header to define __stub macros and hopefully few prototypes, 19575 which can conflict with char dlopen (); below. 19576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 19577 <limits.h> exists even on freestanding compilers. */ 19578 19579#ifdef __STDC__ 19580# include <limits.h> 19581#else 19582# include <assert.h> 19583#endif 19584 19585#undef dlopen 19586 19587/* Override any gcc2 internal prototype to avoid an error. */ 19588#ifdef __cplusplus 19589extern "C" 19590{ 19591#endif 19592/* We use char because int might match the return type of a gcc2 19593 builtin and then its argument prototype would still apply. */ 19594char dlopen (); 19595/* The GNU C library defines this for functions which it implements 19596 to always fail with ENOSYS. Some functions are actually named 19597 something starting with __ and the normal name is an alias. */ 19598#if defined (__stub_dlopen) || defined (__stub___dlopen) 19599choke me 19600#else 19601char (*f) () = dlopen; 19602#endif 19603#ifdef __cplusplus 19604} 19605#endif 19606 19607#ifdef F77_DUMMY_MAIN 19608 19609# ifdef __cplusplus 19610 extern "C" 19611# endif 19612 int F77_DUMMY_MAIN() { return 1; } 19613 19614#endif 19615int 19616main () 19617{ 19618return f != dlopen; 19619 ; 19620 return 0; 19621} 19622_ACEOF 19623rm -f conftest.$ac_objext conftest$ac_exeext 19624if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19625 (eval $ac_link) 2>conftest.er1 19626 ac_status=$? 19627 grep -v '^ *+' conftest.er1 >conftest.err 19628 rm -f conftest.er1 19629 cat conftest.err >&5 19630 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19631 (exit $ac_status); } && 19632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19634 (eval $ac_try) 2>&5 19635 ac_status=$? 19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19637 (exit $ac_status); }; } && 19638 { ac_try='test -s conftest$ac_exeext' 19639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19640 (eval $ac_try) 2>&5 19641 ac_status=$? 19642 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19643 (exit $ac_status); }; }; then 19644 ac_cv_func_dlopen=yes 19645else 19646 echo "$as_me: failed program was:" >&5 19647sed 's/^/| /' conftest.$ac_ext >&5 19648 19649ac_cv_func_dlopen=no 19650fi 19651rm -f conftest.err conftest.$ac_objext \ 19652 conftest$ac_exeext conftest.$ac_ext 19653fi 19654echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 19655echo "${ECHO_T}$ac_cv_func_dlopen" >&6 19656if test $ac_cv_func_dlopen = yes; then 19657 lt_cv_dlopen="dlopen" 19658else 19659 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 19660echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 19661if test "${ac_cv_lib_dl_dlopen+set}" = set; then 19662 echo $ECHO_N "(cached) $ECHO_C" >&6 19663else 19664 ac_check_lib_save_LIBS=$LIBS 19665LIBS="-ldl $LIBS" 19666cat >conftest.$ac_ext <<_ACEOF 19667/* confdefs.h. */ 19668_ACEOF 19669cat confdefs.h >>conftest.$ac_ext 19670cat >>conftest.$ac_ext <<_ACEOF 19671/* end confdefs.h. */ 19672 19673/* Override any gcc2 internal prototype to avoid an error. */ 19674#ifdef __cplusplus 19675extern "C" 19676#endif 19677/* We use char because int might match the return type of a gcc2 19678 builtin and then its argument prototype would still apply. */ 19679char dlopen (); 19680#ifdef F77_DUMMY_MAIN 19681 19682# ifdef __cplusplus 19683 extern "C" 19684# endif 19685 int F77_DUMMY_MAIN() { return 1; } 19686 19687#endif 19688int 19689main () 19690{ 19691dlopen (); 19692 ; 19693 return 0; 19694} 19695_ACEOF 19696rm -f conftest.$ac_objext conftest$ac_exeext 19697if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19698 (eval $ac_link) 2>conftest.er1 19699 ac_status=$? 19700 grep -v '^ *+' conftest.er1 >conftest.err 19701 rm -f conftest.er1 19702 cat conftest.err >&5 19703 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19704 (exit $ac_status); } && 19705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19707 (eval $ac_try) 2>&5 19708 ac_status=$? 19709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19710 (exit $ac_status); }; } && 19711 { ac_try='test -s conftest$ac_exeext' 19712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19713 (eval $ac_try) 2>&5 19714 ac_status=$? 19715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19716 (exit $ac_status); }; }; then 19717 ac_cv_lib_dl_dlopen=yes 19718else 19719 echo "$as_me: failed program was:" >&5 19720sed 's/^/| /' conftest.$ac_ext >&5 19721 19722ac_cv_lib_dl_dlopen=no 19723fi 19724rm -f conftest.err conftest.$ac_objext \ 19725 conftest$ac_exeext conftest.$ac_ext 19726LIBS=$ac_check_lib_save_LIBS 19727fi 19728echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 19729echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 19730if test $ac_cv_lib_dl_dlopen = yes; then 19731 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 19732else 19733 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 19734echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 19735if test "${ac_cv_lib_svld_dlopen+set}" = set; then 19736 echo $ECHO_N "(cached) $ECHO_C" >&6 19737else 19738 ac_check_lib_save_LIBS=$LIBS 19739LIBS="-lsvld $LIBS" 19740cat >conftest.$ac_ext <<_ACEOF 19741/* confdefs.h. */ 19742_ACEOF 19743cat confdefs.h >>conftest.$ac_ext 19744cat >>conftest.$ac_ext <<_ACEOF 19745/* end confdefs.h. */ 19746 19747/* Override any gcc2 internal prototype to avoid an error. */ 19748#ifdef __cplusplus 19749extern "C" 19750#endif 19751/* We use char because int might match the return type of a gcc2 19752 builtin and then its argument prototype would still apply. */ 19753char dlopen (); 19754#ifdef F77_DUMMY_MAIN 19755 19756# ifdef __cplusplus 19757 extern "C" 19758# endif 19759 int F77_DUMMY_MAIN() { return 1; } 19760 19761#endif 19762int 19763main () 19764{ 19765dlopen (); 19766 ; 19767 return 0; 19768} 19769_ACEOF 19770rm -f conftest.$ac_objext conftest$ac_exeext 19771if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19772 (eval $ac_link) 2>conftest.er1 19773 ac_status=$? 19774 grep -v '^ *+' conftest.er1 >conftest.err 19775 rm -f conftest.er1 19776 cat conftest.err >&5 19777 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19778 (exit $ac_status); } && 19779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19781 (eval $ac_try) 2>&5 19782 ac_status=$? 19783 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19784 (exit $ac_status); }; } && 19785 { ac_try='test -s conftest$ac_exeext' 19786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19787 (eval $ac_try) 2>&5 19788 ac_status=$? 19789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19790 (exit $ac_status); }; }; then 19791 ac_cv_lib_svld_dlopen=yes 19792else 19793 echo "$as_me: failed program was:" >&5 19794sed 's/^/| /' conftest.$ac_ext >&5 19795 19796ac_cv_lib_svld_dlopen=no 19797fi 19798rm -f conftest.err conftest.$ac_objext \ 19799 conftest$ac_exeext conftest.$ac_ext 19800LIBS=$ac_check_lib_save_LIBS 19801fi 19802echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 19803echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 19804if test $ac_cv_lib_svld_dlopen = yes; then 19805 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 19806else 19807 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 19808echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 19809if test "${ac_cv_lib_dld_dld_link+set}" = set; then 19810 echo $ECHO_N "(cached) $ECHO_C" >&6 19811else 19812 ac_check_lib_save_LIBS=$LIBS 19813LIBS="-ldld $LIBS" 19814cat >conftest.$ac_ext <<_ACEOF 19815/* confdefs.h. */ 19816_ACEOF 19817cat confdefs.h >>conftest.$ac_ext 19818cat >>conftest.$ac_ext <<_ACEOF 19819/* end confdefs.h. */ 19820 19821/* Override any gcc2 internal prototype to avoid an error. */ 19822#ifdef __cplusplus 19823extern "C" 19824#endif 19825/* We use char because int might match the return type of a gcc2 19826 builtin and then its argument prototype would still apply. */ 19827char dld_link (); 19828#ifdef F77_DUMMY_MAIN 19829 19830# ifdef __cplusplus 19831 extern "C" 19832# endif 19833 int F77_DUMMY_MAIN() { return 1; } 19834 19835#endif 19836int 19837main () 19838{ 19839dld_link (); 19840 ; 19841 return 0; 19842} 19843_ACEOF 19844rm -f conftest.$ac_objext conftest$ac_exeext 19845if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19846 (eval $ac_link) 2>conftest.er1 19847 ac_status=$? 19848 grep -v '^ *+' conftest.er1 >conftest.err 19849 rm -f conftest.er1 19850 cat conftest.err >&5 19851 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19852 (exit $ac_status); } && 19853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19855 (eval $ac_try) 2>&5 19856 ac_status=$? 19857 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19858 (exit $ac_status); }; } && 19859 { ac_try='test -s conftest$ac_exeext' 19860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19861 (eval $ac_try) 2>&5 19862 ac_status=$? 19863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19864 (exit $ac_status); }; }; then 19865 ac_cv_lib_dld_dld_link=yes 19866else 19867 echo "$as_me: failed program was:" >&5 19868sed 's/^/| /' conftest.$ac_ext >&5 19869 19870ac_cv_lib_dld_dld_link=no 19871fi 19872rm -f conftest.err conftest.$ac_objext \ 19873 conftest$ac_exeext conftest.$ac_ext 19874LIBS=$ac_check_lib_save_LIBS 19875fi 19876echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 19877echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 19878if test $ac_cv_lib_dld_dld_link = yes; then 19879 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 19880fi 19881 19882 19883fi 19884 19885 19886fi 19887 19888 19889fi 19890 19891 19892fi 19893 19894 19895fi 19896 19897 ;; 19898 esac 19899 19900 if test "x$lt_cv_dlopen" != xno; then 19901 enable_dlopen=yes 19902 else 19903 enable_dlopen=no 19904 fi 19905 19906 case $lt_cv_dlopen in 19907 dlopen) 19908 save_CPPFLAGS="$CPPFLAGS" 19909 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 19910 19911 save_LDFLAGS="$LDFLAGS" 19912 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 19913 19914 save_LIBS="$LIBS" 19915 LIBS="$lt_cv_dlopen_libs $LIBS" 19916 19917 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 19918echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 19919if test "${lt_cv_dlopen_self+set}" = set; then 19920 echo $ECHO_N "(cached) $ECHO_C" >&6 19921else 19922 if test "$cross_compiling" = yes; then : 19923 lt_cv_dlopen_self=cross 19924else 19925 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 19926 lt_status=$lt_dlunknown 19927 cat > conftest.$ac_ext <<EOF 19928#line 19928 "configure" 19929#include "confdefs.h" 19930 19931#if HAVE_DLFCN_H 19932#include <dlfcn.h> 19933#endif 19934 19935#include <stdio.h> 19936 19937#ifdef RTLD_GLOBAL 19938# define LT_DLGLOBAL RTLD_GLOBAL 19939#else 19940# ifdef DL_GLOBAL 19941# define LT_DLGLOBAL DL_GLOBAL 19942# else 19943# define LT_DLGLOBAL 0 19944# endif 19945#endif 19946 19947/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 19948 find out it does not work in some platform. */ 19949#ifndef LT_DLLAZY_OR_NOW 19950# ifdef RTLD_LAZY 19951# define LT_DLLAZY_OR_NOW RTLD_LAZY 19952# else 19953# ifdef DL_LAZY 19954# define LT_DLLAZY_OR_NOW DL_LAZY 19955# else 19956# ifdef RTLD_NOW 19957# define LT_DLLAZY_OR_NOW RTLD_NOW 19958# else 19959# ifdef DL_NOW 19960# define LT_DLLAZY_OR_NOW DL_NOW 19961# else 19962# define LT_DLLAZY_OR_NOW 0 19963# endif 19964# endif 19965# endif 19966# endif 19967#endif 19968 19969#ifdef __cplusplus 19970extern "C" void exit (int); 19971#endif 19972 19973void fnord() { int i=42;} 19974int main () 19975{ 19976 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 19977 int status = $lt_dlunknown; 19978 19979 if (self) 19980 { 19981 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 19982 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 19983 /* dlclose (self); */ 19984 } 19985 19986 exit (status); 19987} 19988EOF 19989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19990 (eval $ac_link) 2>&5 19991 ac_status=$? 19992 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19993 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 19994 (./conftest; exit; ) 2>/dev/null 19995 lt_status=$? 19996 case x$lt_status in 19997 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 19998 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 19999 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 20000 esac 20001 else : 20002 # compilation failed 20003 lt_cv_dlopen_self=no 20004 fi 20005fi 20006rm -fr conftest* 20007 20008 20009fi 20010echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 20011echo "${ECHO_T}$lt_cv_dlopen_self" >&6 20012 20013 if test "x$lt_cv_dlopen_self" = xyes; then 20014 LDFLAGS="$LDFLAGS $link_static_flag" 20015 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 20016echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 20017if test "${lt_cv_dlopen_self_static+set}" = set; then 20018 echo $ECHO_N "(cached) $ECHO_C" >&6 20019else 20020 if test "$cross_compiling" = yes; then : 20021 lt_cv_dlopen_self_static=cross 20022else 20023 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 20024 lt_status=$lt_dlunknown 20025 cat > conftest.$ac_ext <<EOF 20026#line 20026 "configure" 20027#include "confdefs.h" 20028 20029#if HAVE_DLFCN_H 20030#include <dlfcn.h> 20031#endif 20032 20033#include <stdio.h> 20034 20035#ifdef RTLD_GLOBAL 20036# define LT_DLGLOBAL RTLD_GLOBAL 20037#else 20038# ifdef DL_GLOBAL 20039# define LT_DLGLOBAL DL_GLOBAL 20040# else 20041# define LT_DLGLOBAL 0 20042# endif 20043#endif 20044 20045/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 20046 find out it does not work in some platform. */ 20047#ifndef LT_DLLAZY_OR_NOW 20048# ifdef RTLD_LAZY 20049# define LT_DLLAZY_OR_NOW RTLD_LAZY 20050# else 20051# ifdef DL_LAZY 20052# define LT_DLLAZY_OR_NOW DL_LAZY 20053# else 20054# ifdef RTLD_NOW 20055# define LT_DLLAZY_OR_NOW RTLD_NOW 20056# else 20057# ifdef DL_NOW 20058# define LT_DLLAZY_OR_NOW DL_NOW 20059# else 20060# define LT_DLLAZY_OR_NOW 0 20061# endif 20062# endif 20063# endif 20064# endif 20065#endif 20066 20067#ifdef __cplusplus 20068extern "C" void exit (int); 20069#endif 20070 20071void fnord() { int i=42;} 20072int main () 20073{ 20074 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 20075 int status = $lt_dlunknown; 20076 20077 if (self) 20078 { 20079 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 20080 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 20081 /* dlclose (self); */ 20082 } 20083 20084 exit (status); 20085} 20086EOF 20087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20088 (eval $ac_link) 2>&5 20089 ac_status=$? 20090 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20091 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 20092 (./conftest; exit; ) 2>/dev/null 20093 lt_status=$? 20094 case x$lt_status in 20095 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 20096 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 20097 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 20098 esac 20099 else : 20100 # compilation failed 20101 lt_cv_dlopen_self_static=no 20102 fi 20103fi 20104rm -fr conftest* 20105 20106 20107fi 20108echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 20109echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 20110 fi 20111 20112 CPPFLAGS="$save_CPPFLAGS" 20113 LDFLAGS="$save_LDFLAGS" 20114 LIBS="$save_LIBS" 20115 ;; 20116 esac 20117 20118 case $lt_cv_dlopen_self in 20119 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 20120 *) enable_dlopen_self=unknown ;; 20121 esac 20122 20123 case $lt_cv_dlopen_self_static in 20124 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 20125 *) enable_dlopen_self_static=unknown ;; 20126 esac 20127fi 20128 20129 20130# The else clause should only fire when bootstrapping the 20131# libtool distribution, otherwise you forgot to ship ltmain.sh 20132# with your package, and you will get complaints that there are 20133# no rules to generate ltmain.sh. 20134if test -f "$ltmain"; then 20135 # See if we are running on zsh, and set the options which allow our commands through 20136 # without removal of \ escapes. 20137 if test -n "${ZSH_VERSION+set}" ; then 20138 setopt NO_GLOB_SUBST 20139 fi 20140 # Now quote all the things that may contain metacharacters while being 20141 # careful not to overquote the AC_SUBSTed values. We take copies of the 20142 # variables and quote the copies for generation of the libtool script. 20143 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 20144 SED SHELL STRIP \ 20145 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 20146 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 20147 deplibs_check_method reload_flag reload_cmds need_locks \ 20148 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 20149 lt_cv_sys_global_symbol_to_c_name_address \ 20150 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 20151 old_postinstall_cmds old_postuninstall_cmds \ 20152 compiler_GCJ \ 20153 CC_GCJ \ 20154 LD_GCJ \ 20155 lt_prog_compiler_wl_GCJ \ 20156 lt_prog_compiler_pic_GCJ \ 20157 lt_prog_compiler_static_GCJ \ 20158 lt_prog_compiler_no_builtin_flag_GCJ \ 20159 export_dynamic_flag_spec_GCJ \ 20160 thread_safe_flag_spec_GCJ \ 20161 whole_archive_flag_spec_GCJ \ 20162 enable_shared_with_static_runtimes_GCJ \ 20163 old_archive_cmds_GCJ \ 20164 old_archive_from_new_cmds_GCJ \ 20165 predep_objects_GCJ \ 20166 postdep_objects_GCJ \ 20167 predeps_GCJ \ 20168 postdeps_GCJ \ 20169 compiler_lib_search_path_GCJ \ 20170 archive_cmds_GCJ \ 20171 archive_expsym_cmds_GCJ \ 20172 postinstall_cmds_GCJ \ 20173 postuninstall_cmds_GCJ \ 20174 old_archive_from_expsyms_cmds_GCJ \ 20175 allow_undefined_flag_GCJ \ 20176 no_undefined_flag_GCJ \ 20177 export_symbols_cmds_GCJ \ 20178 hardcode_libdir_flag_spec_GCJ \ 20179 hardcode_libdir_flag_spec_ld_GCJ \ 20180 hardcode_libdir_separator_GCJ \ 20181 hardcode_automatic_GCJ \ 20182 module_cmds_GCJ \ 20183 module_expsym_cmds_GCJ \ 20184 lt_cv_prog_compiler_c_o_GCJ \ 20185 exclude_expsyms_GCJ \ 20186 include_expsyms_GCJ; do 20187 20188 case $var in 20189 old_archive_cmds_GCJ | \ 20190 old_archive_from_new_cmds_GCJ | \ 20191 archive_cmds_GCJ | \ 20192 archive_expsym_cmds_GCJ | \ 20193 module_cmds_GCJ | \ 20194 module_expsym_cmds_GCJ | \ 20195 old_archive_from_expsyms_cmds_GCJ | \ 20196 export_symbols_cmds_GCJ | \ 20197 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 20198 postinstall_cmds | postuninstall_cmds | \ 20199 old_postinstall_cmds | old_postuninstall_cmds | \ 20200 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 20201 # Double-quote double-evaled strings. 20202 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 20203 ;; 20204 *) 20205 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 20206 ;; 20207 esac 20208 done 20209 20210 case $lt_echo in 20211 *'\$0 --fallback-echo"') 20212 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 20213 ;; 20214 esac 20215 20216cfgfile="$ofile" 20217 20218 cat <<__EOF__ >> "$cfgfile" 20219# ### BEGIN LIBTOOL TAG CONFIG: $tagname 20220 20221# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20222 20223# Shell to use when invoking shell scripts. 20224SHELL=$lt_SHELL 20225 20226# Whether or not to build shared libraries. 20227build_libtool_libs=$enable_shared 20228 20229# Whether or not to build static libraries. 20230build_old_libs=$enable_static 20231 20232# Whether or not to add -lc for building shared libraries. 20233build_libtool_need_lc=$archive_cmds_need_lc_GCJ 20234 20235# Whether or not to disallow shared libs when runtime libs are static 20236allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 20237 20238# Whether or not to optimize for fast installation. 20239fast_install=$enable_fast_install 20240 20241# The host system. 20242host_alias=$host_alias 20243host=$host 20244 20245# An echo program that does not interpret backslashes. 20246echo=$lt_echo 20247 20248# The archiver. 20249AR=$lt_AR 20250AR_FLAGS=$lt_AR_FLAGS 20251 20252# A C compiler. 20253LTCC=$lt_LTCC 20254 20255# A language-specific compiler. 20256CC=$lt_compiler_GCJ 20257 20258# Is the compiler the GNU C compiler? 20259with_gcc=$GCC_GCJ 20260 20261# An ERE matcher. 20262EGREP=$lt_EGREP 20263 20264# The linker used to build libraries. 20265LD=$lt_LD_GCJ 20266 20267# Whether we need hard or soft links. 20268LN_S=$lt_LN_S 20269 20270# A BSD-compatible nm program. 20271NM=$lt_NM 20272 20273# A symbol stripping program 20274STRIP=$lt_STRIP 20275 20276# Used to examine libraries when file_magic_cmd begins "file" 20277MAGIC_CMD=$MAGIC_CMD 20278 20279# Used on cygwin: DLL creation program. 20280DLLTOOL="$DLLTOOL" 20281 20282# Used on cygwin: object dumper. 20283OBJDUMP="$OBJDUMP" 20284 20285# Used on cygwin: assembler. 20286AS="$AS" 20287 20288# The name of the directory that contains temporary libtool files. 20289objdir=$objdir 20290 20291# How to create reloadable object files. 20292reload_flag=$lt_reload_flag 20293reload_cmds=$lt_reload_cmds 20294 20295# How to pass a linker flag through the compiler. 20296wl=$lt_lt_prog_compiler_wl_GCJ 20297 20298# Object file suffix (normally "o"). 20299objext="$ac_objext" 20300 20301# Old archive suffix (normally "a"). 20302libext="$libext" 20303 20304# Shared library suffix (normally ".so"). 20305shrext_cmds='$shrext_cmds' 20306 20307# Executable file suffix (normally ""). 20308exeext="$exeext" 20309 20310# Additional compiler flags for building library objects. 20311pic_flag=$lt_lt_prog_compiler_pic_GCJ 20312pic_mode=$pic_mode 20313 20314# What is the maximum length of a command? 20315max_cmd_len=$lt_cv_sys_max_cmd_len 20316 20317# Does compiler simultaneously support -c and -o options? 20318compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 20319 20320# Must we lock files when doing compilation ? 20321need_locks=$lt_need_locks 20322 20323# Do we need the lib prefix for modules? 20324need_lib_prefix=$need_lib_prefix 20325 20326# Do we need a version for libraries? 20327need_version=$need_version 20328 20329# Whether dlopen is supported. 20330dlopen_support=$enable_dlopen 20331 20332# Whether dlopen of programs is supported. 20333dlopen_self=$enable_dlopen_self 20334 20335# Whether dlopen of statically linked programs is supported. 20336dlopen_self_static=$enable_dlopen_self_static 20337 20338# Compiler flag to prevent dynamic linking. 20339link_static_flag=$lt_lt_prog_compiler_static_GCJ 20340 20341# Compiler flag to turn off builtin functions. 20342no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 20343 20344# Compiler flag to allow reflexive dlopens. 20345export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 20346 20347# Compiler flag to generate shared objects directly from archives. 20348whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 20349 20350# Compiler flag to generate thread-safe objects. 20351thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 20352 20353# Library versioning type. 20354version_type=$version_type 20355 20356# Format of library name prefix. 20357libname_spec=$lt_libname_spec 20358 20359# List of archive names. First name is the real one, the rest are links. 20360# The last name is the one that the linker finds with -lNAME. 20361library_names_spec=$lt_library_names_spec 20362 20363# The coded name of the library, if different from the real name. 20364soname_spec=$lt_soname_spec 20365 20366# Commands used to build and install an old-style archive. 20367RANLIB=$lt_RANLIB 20368old_archive_cmds=$lt_old_archive_cmds_GCJ 20369old_postinstall_cmds=$lt_old_postinstall_cmds 20370old_postuninstall_cmds=$lt_old_postuninstall_cmds 20371 20372# Create an old-style archive from a shared archive. 20373old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 20374 20375# Create a temporary old-style archive to link instead of a shared archive. 20376old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 20377 20378# Commands used to build and install a shared archive. 20379archive_cmds=$lt_archive_cmds_GCJ 20380archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 20381postinstall_cmds=$lt_postinstall_cmds 20382postuninstall_cmds=$lt_postuninstall_cmds 20383 20384# Commands used to build a loadable module (assumed same as above if empty) 20385module_cmds=$lt_module_cmds_GCJ 20386module_expsym_cmds=$lt_module_expsym_cmds_GCJ 20387 20388# Commands to strip libraries. 20389old_striplib=$lt_old_striplib 20390striplib=$lt_striplib 20391 20392# Dependencies to place before the objects being linked to create a 20393# shared library. 20394predep_objects=$lt_predep_objects_GCJ 20395 20396# Dependencies to place after the objects being linked to create a 20397# shared library. 20398postdep_objects=$lt_postdep_objects_GCJ 20399 20400# Dependencies to place before the objects being linked to create a 20401# shared library. 20402predeps=$lt_predeps_GCJ 20403 20404# Dependencies to place after the objects being linked to create a 20405# shared library. 20406postdeps=$lt_postdeps_GCJ 20407 20408# The library search path used internally by the compiler when linking 20409# a shared library. 20410compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 20411 20412# Method to check whether dependent libraries are shared objects. 20413deplibs_check_method=$lt_deplibs_check_method 20414 20415# Command to use when deplibs_check_method == file_magic. 20416file_magic_cmd=$lt_file_magic_cmd 20417 20418# Flag that allows shared libraries with undefined symbols to be built. 20419allow_undefined_flag=$lt_allow_undefined_flag_GCJ 20420 20421# Flag that forces no undefined symbols. 20422no_undefined_flag=$lt_no_undefined_flag_GCJ 20423 20424# Commands used to finish a libtool library installation in a directory. 20425finish_cmds=$lt_finish_cmds 20426 20427# Same as above, but a single script fragment to be evaled but not shown. 20428finish_eval=$lt_finish_eval 20429 20430# Take the output of nm and produce a listing of raw symbols and C names. 20431global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20432 20433# Transform the output of nm in a proper C declaration 20434global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20435 20436# Transform the output of nm in a C name address pair 20437global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20438 20439# This is the shared library runtime path variable. 20440runpath_var=$runpath_var 20441 20442# This is the shared library path variable. 20443shlibpath_var=$shlibpath_var 20444 20445# Is shlibpath searched before the hard-coded library search path? 20446shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20447 20448# How to hardcode a shared library path into an executable. 20449hardcode_action=$hardcode_action_GCJ 20450 20451# Whether we should hardcode library paths into libraries. 20452hardcode_into_libs=$hardcode_into_libs 20453 20454# Flag to hardcode \$libdir into a binary during linking. 20455# This must work even if \$libdir does not exist. 20456hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 20457 20458# If ld is used when linking, flag to hardcode \$libdir into 20459# a binary during linking. This must work even if \$libdir does 20460# not exist. 20461hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 20462 20463# Whether we need a single -rpath flag with a separated argument. 20464hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 20465 20466# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 20467# resulting binary. 20468hardcode_direct=$hardcode_direct_GCJ 20469 20470# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 20471# resulting binary. 20472hardcode_minus_L=$hardcode_minus_L_GCJ 20473 20474# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 20475# the resulting binary. 20476hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 20477 20478# Set to yes if building a shared library automatically hardcodes DIR into the library 20479# and all subsequent libraries and executables linked against it. 20480hardcode_automatic=$hardcode_automatic_GCJ 20481 20482# Variables whose values should be saved in libtool wrapper scripts and 20483# restored at relink time. 20484variables_saved_for_relink="$variables_saved_for_relink" 20485 20486# Whether libtool must link a program against all its dependency libraries. 20487link_all_deplibs=$link_all_deplibs_GCJ 20488 20489# Compile-time system search path for libraries 20490sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20491 20492# Run-time system search path for libraries 20493sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 20494 20495# Fix the shell variable \$srcfile for the compiler. 20496fix_srcfile_path="$fix_srcfile_path_GCJ" 20497 20498# Set to yes if exported symbols are required. 20499always_export_symbols=$always_export_symbols_GCJ 20500 20501# The commands to list exported symbols. 20502export_symbols_cmds=$lt_export_symbols_cmds_GCJ 20503 20504# The commands to extract the exported symbol list from a shared archive. 20505extract_expsyms_cmds=$lt_extract_expsyms_cmds 20506 20507# Symbols that should not be listed in the preloaded symbols. 20508exclude_expsyms=$lt_exclude_expsyms_GCJ 20509 20510# Symbols that must always be exported. 20511include_expsyms=$lt_include_expsyms_GCJ 20512 20513# ### END LIBTOOL TAG CONFIG: $tagname 20514 20515__EOF__ 20516 20517 20518else 20519 # If there is no Makefile yet, we rely on a make rule to execute 20520 # `config.status --recheck' to rerun these tests and create the 20521 # libtool script then. 20522 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 20523 if test -f "$ltmain_in"; then 20524 test -f Makefile && make "$ltmain" 20525 fi 20526fi 20527 20528 20529ac_ext=c 20530ac_cpp='$CPP $CPPFLAGS' 20531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20533ac_compiler_gnu=$ac_cv_c_compiler_gnu 20534 20535CC="$lt_save_CC" 20536 20537 else 20538 tagname="" 20539 fi 20540 ;; 20541 20542 RC) 20543 20544 20545 20546# Source file extension for RC test sources. 20547ac_ext=rc 20548 20549# Object file extension for compiled RC test sources. 20550objext=o 20551objext_RC=$objext 20552 20553# Code to be used in simple compile tests 20554lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 20555 20556# Code to be used in simple link tests 20557lt_simple_link_test_code="$lt_simple_compile_test_code" 20558 20559# ltmain only uses $CC for tagged configurations so make sure $CC is set. 20560 20561# If no C compiler was specified, use CC. 20562LTCC=${LTCC-"$CC"} 20563 20564# Allow CC to be a program name with arguments. 20565compiler=$CC 20566 20567 20568# Allow CC to be a program name with arguments. 20569lt_save_CC="$CC" 20570CC=${RC-"windres"} 20571compiler=$CC 20572compiler_RC=$CC 20573lt_cv_prog_compiler_c_o_RC=yes 20574 20575# The else clause should only fire when bootstrapping the 20576# libtool distribution, otherwise you forgot to ship ltmain.sh 20577# with your package, and you will get complaints that there are 20578# no rules to generate ltmain.sh. 20579if test -f "$ltmain"; then 20580 # See if we are running on zsh, and set the options which allow our commands through 20581 # without removal of \ escapes. 20582 if test -n "${ZSH_VERSION+set}" ; then 20583 setopt NO_GLOB_SUBST 20584 fi 20585 # Now quote all the things that may contain metacharacters while being 20586 # careful not to overquote the AC_SUBSTed values. We take copies of the 20587 # variables and quote the copies for generation of the libtool script. 20588 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 20589 SED SHELL STRIP \ 20590 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 20591 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 20592 deplibs_check_method reload_flag reload_cmds need_locks \ 20593 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 20594 lt_cv_sys_global_symbol_to_c_name_address \ 20595 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 20596 old_postinstall_cmds old_postuninstall_cmds \ 20597 compiler_RC \ 20598 CC_RC \ 20599 LD_RC \ 20600 lt_prog_compiler_wl_RC \ 20601 lt_prog_compiler_pic_RC \ 20602 lt_prog_compiler_static_RC \ 20603 lt_prog_compiler_no_builtin_flag_RC \ 20604 export_dynamic_flag_spec_RC \ 20605 thread_safe_flag_spec_RC \ 20606 whole_archive_flag_spec_RC \ 20607 enable_shared_with_static_runtimes_RC \ 20608 old_archive_cmds_RC \ 20609 old_archive_from_new_cmds_RC \ 20610 predep_objects_RC \ 20611 postdep_objects_RC \ 20612 predeps_RC \ 20613 postdeps_RC \ 20614 compiler_lib_search_path_RC \ 20615 archive_cmds_RC \ 20616 archive_expsym_cmds_RC \ 20617 postinstall_cmds_RC \ 20618 postuninstall_cmds_RC \ 20619 old_archive_from_expsyms_cmds_RC \ 20620 allow_undefined_flag_RC \ 20621 no_undefined_flag_RC \ 20622 export_symbols_cmds_RC \ 20623 hardcode_libdir_flag_spec_RC \ 20624 hardcode_libdir_flag_spec_ld_RC \ 20625 hardcode_libdir_separator_RC \ 20626 hardcode_automatic_RC \ 20627 module_cmds_RC \ 20628 module_expsym_cmds_RC \ 20629 lt_cv_prog_compiler_c_o_RC \ 20630 exclude_expsyms_RC \ 20631 include_expsyms_RC; do 20632 20633 case $var in 20634 old_archive_cmds_RC | \ 20635 old_archive_from_new_cmds_RC | \ 20636 archive_cmds_RC | \ 20637 archive_expsym_cmds_RC | \ 20638 module_cmds_RC | \ 20639 module_expsym_cmds_RC | \ 20640 old_archive_from_expsyms_cmds_RC | \ 20641 export_symbols_cmds_RC | \ 20642 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 20643 postinstall_cmds | postuninstall_cmds | \ 20644 old_postinstall_cmds | old_postuninstall_cmds | \ 20645 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 20646 # Double-quote double-evaled strings. 20647 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 20648 ;; 20649 *) 20650 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 20651 ;; 20652 esac 20653 done 20654 20655 case $lt_echo in 20656 *'\$0 --fallback-echo"') 20657 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 20658 ;; 20659 esac 20660 20661cfgfile="$ofile" 20662 20663 cat <<__EOF__ >> "$cfgfile" 20664# ### BEGIN LIBTOOL TAG CONFIG: $tagname 20665 20666# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20667 20668# Shell to use when invoking shell scripts. 20669SHELL=$lt_SHELL 20670 20671# Whether or not to build shared libraries. 20672build_libtool_libs=$enable_shared 20673 20674# Whether or not to build static libraries. 20675build_old_libs=$enable_static 20676 20677# Whether or not to add -lc for building shared libraries. 20678build_libtool_need_lc=$archive_cmds_need_lc_RC 20679 20680# Whether or not to disallow shared libs when runtime libs are static 20681allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 20682 20683# Whether or not to optimize for fast installation. 20684fast_install=$enable_fast_install 20685 20686# The host system. 20687host_alias=$host_alias 20688host=$host 20689 20690# An echo program that does not interpret backslashes. 20691echo=$lt_echo 20692 20693# The archiver. 20694AR=$lt_AR 20695AR_FLAGS=$lt_AR_FLAGS 20696 20697# A C compiler. 20698LTCC=$lt_LTCC 20699 20700# A language-specific compiler. 20701CC=$lt_compiler_RC 20702 20703# Is the compiler the GNU C compiler? 20704with_gcc=$GCC_RC 20705 20706# An ERE matcher. 20707EGREP=$lt_EGREP 20708 20709# The linker used to build libraries. 20710LD=$lt_LD_RC 20711 20712# Whether we need hard or soft links. 20713LN_S=$lt_LN_S 20714 20715# A BSD-compatible nm program. 20716NM=$lt_NM 20717 20718# A symbol stripping program 20719STRIP=$lt_STRIP 20720 20721# Used to examine libraries when file_magic_cmd begins "file" 20722MAGIC_CMD=$MAGIC_CMD 20723 20724# Used on cygwin: DLL creation program. 20725DLLTOOL="$DLLTOOL" 20726 20727# Used on cygwin: object dumper. 20728OBJDUMP="$OBJDUMP" 20729 20730# Used on cygwin: assembler. 20731AS="$AS" 20732 20733# The name of the directory that contains temporary libtool files. 20734objdir=$objdir 20735 20736# How to create reloadable object files. 20737reload_flag=$lt_reload_flag 20738reload_cmds=$lt_reload_cmds 20739 20740# How to pass a linker flag through the compiler. 20741wl=$lt_lt_prog_compiler_wl_RC 20742 20743# Object file suffix (normally "o"). 20744objext="$ac_objext" 20745 20746# Old archive suffix (normally "a"). 20747libext="$libext" 20748 20749# Shared library suffix (normally ".so"). 20750shrext_cmds='$shrext_cmds' 20751 20752# Executable file suffix (normally ""). 20753exeext="$exeext" 20754 20755# Additional compiler flags for building library objects. 20756pic_flag=$lt_lt_prog_compiler_pic_RC 20757pic_mode=$pic_mode 20758 20759# What is the maximum length of a command? 20760max_cmd_len=$lt_cv_sys_max_cmd_len 20761 20762# Does compiler simultaneously support -c and -o options? 20763compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 20764 20765# Must we lock files when doing compilation ? 20766need_locks=$lt_need_locks 20767 20768# Do we need the lib prefix for modules? 20769need_lib_prefix=$need_lib_prefix 20770 20771# Do we need a version for libraries? 20772need_version=$need_version 20773 20774# Whether dlopen is supported. 20775dlopen_support=$enable_dlopen 20776 20777# Whether dlopen of programs is supported. 20778dlopen_self=$enable_dlopen_self 20779 20780# Whether dlopen of statically linked programs is supported. 20781dlopen_self_static=$enable_dlopen_self_static 20782 20783# Compiler flag to prevent dynamic linking. 20784link_static_flag=$lt_lt_prog_compiler_static_RC 20785 20786# Compiler flag to turn off builtin functions. 20787no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 20788 20789# Compiler flag to allow reflexive dlopens. 20790export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 20791 20792# Compiler flag to generate shared objects directly from archives. 20793whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 20794 20795# Compiler flag to generate thread-safe objects. 20796thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 20797 20798# Library versioning type. 20799version_type=$version_type 20800 20801# Format of library name prefix. 20802libname_spec=$lt_libname_spec 20803 20804# List of archive names. First name is the real one, the rest are links. 20805# The last name is the one that the linker finds with -lNAME. 20806library_names_spec=$lt_library_names_spec 20807 20808# The coded name of the library, if different from the real name. 20809soname_spec=$lt_soname_spec 20810 20811# Commands used to build and install an old-style archive. 20812RANLIB=$lt_RANLIB 20813old_archive_cmds=$lt_old_archive_cmds_RC 20814old_postinstall_cmds=$lt_old_postinstall_cmds 20815old_postuninstall_cmds=$lt_old_postuninstall_cmds 20816 20817# Create an old-style archive from a shared archive. 20818old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 20819 20820# Create a temporary old-style archive to link instead of a shared archive. 20821old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 20822 20823# Commands used to build and install a shared archive. 20824archive_cmds=$lt_archive_cmds_RC 20825archive_expsym_cmds=$lt_archive_expsym_cmds_RC 20826postinstall_cmds=$lt_postinstall_cmds 20827postuninstall_cmds=$lt_postuninstall_cmds 20828 20829# Commands used to build a loadable module (assumed same as above if empty) 20830module_cmds=$lt_module_cmds_RC 20831module_expsym_cmds=$lt_module_expsym_cmds_RC 20832 20833# Commands to strip libraries. 20834old_striplib=$lt_old_striplib 20835striplib=$lt_striplib 20836 20837# Dependencies to place before the objects being linked to create a 20838# shared library. 20839predep_objects=$lt_predep_objects_RC 20840 20841# Dependencies to place after the objects being linked to create a 20842# shared library. 20843postdep_objects=$lt_postdep_objects_RC 20844 20845# Dependencies to place before the objects being linked to create a 20846# shared library. 20847predeps=$lt_predeps_RC 20848 20849# Dependencies to place after the objects being linked to create a 20850# shared library. 20851postdeps=$lt_postdeps_RC 20852 20853# The library search path used internally by the compiler when linking 20854# a shared library. 20855compiler_lib_search_path=$lt_compiler_lib_search_path_RC 20856 20857# Method to check whether dependent libraries are shared objects. 20858deplibs_check_method=$lt_deplibs_check_method 20859 20860# Command to use when deplibs_check_method == file_magic. 20861file_magic_cmd=$lt_file_magic_cmd 20862 20863# Flag that allows shared libraries with undefined symbols to be built. 20864allow_undefined_flag=$lt_allow_undefined_flag_RC 20865 20866# Flag that forces no undefined symbols. 20867no_undefined_flag=$lt_no_undefined_flag_RC 20868 20869# Commands used to finish a libtool library installation in a directory. 20870finish_cmds=$lt_finish_cmds 20871 20872# Same as above, but a single script fragment to be evaled but not shown. 20873finish_eval=$lt_finish_eval 20874 20875# Take the output of nm and produce a listing of raw symbols and C names. 20876global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20877 20878# Transform the output of nm in a proper C declaration 20879global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20880 20881# Transform the output of nm in a C name address pair 20882global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20883 20884# This is the shared library runtime path variable. 20885runpath_var=$runpath_var 20886 20887# This is the shared library path variable. 20888shlibpath_var=$shlibpath_var 20889 20890# Is shlibpath searched before the hard-coded library search path? 20891shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20892 20893# How to hardcode a shared library path into an executable. 20894hardcode_action=$hardcode_action_RC 20895 20896# Whether we should hardcode library paths into libraries. 20897hardcode_into_libs=$hardcode_into_libs 20898 20899# Flag to hardcode \$libdir into a binary during linking. 20900# This must work even if \$libdir does not exist. 20901hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 20902 20903# If ld is used when linking, flag to hardcode \$libdir into 20904# a binary during linking. This must work even if \$libdir does 20905# not exist. 20906hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 20907 20908# Whether we need a single -rpath flag with a separated argument. 20909hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 20910 20911# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 20912# resulting binary. 20913hardcode_direct=$hardcode_direct_RC 20914 20915# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 20916# resulting binary. 20917hardcode_minus_L=$hardcode_minus_L_RC 20918 20919# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 20920# the resulting binary. 20921hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 20922 20923# Set to yes if building a shared library automatically hardcodes DIR into the library 20924# and all subsequent libraries and executables linked against it. 20925hardcode_automatic=$hardcode_automatic_RC 20926 20927# Variables whose values should be saved in libtool wrapper scripts and 20928# restored at relink time. 20929variables_saved_for_relink="$variables_saved_for_relink" 20930 20931# Whether libtool must link a program against all its dependency libraries. 20932link_all_deplibs=$link_all_deplibs_RC 20933 20934# Compile-time system search path for libraries 20935sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20936 20937# Run-time system search path for libraries 20938sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 20939 20940# Fix the shell variable \$srcfile for the compiler. 20941fix_srcfile_path="$fix_srcfile_path_RC" 20942 20943# Set to yes if exported symbols are required. 20944always_export_symbols=$always_export_symbols_RC 20945 20946# The commands to list exported symbols. 20947export_symbols_cmds=$lt_export_symbols_cmds_RC 20948 20949# The commands to extract the exported symbol list from a shared archive. 20950extract_expsyms_cmds=$lt_extract_expsyms_cmds 20951 20952# Symbols that should not be listed in the preloaded symbols. 20953exclude_expsyms=$lt_exclude_expsyms_RC 20954 20955# Symbols that must always be exported. 20956include_expsyms=$lt_include_expsyms_RC 20957 20958# ### END LIBTOOL TAG CONFIG: $tagname 20959 20960__EOF__ 20961 20962 20963else 20964 # If there is no Makefile yet, we rely on a make rule to execute 20965 # `config.status --recheck' to rerun these tests and create the 20966 # libtool script then. 20967 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 20968 if test -f "$ltmain_in"; then 20969 test -f Makefile && make "$ltmain" 20970 fi 20971fi 20972 20973 20974ac_ext=c 20975ac_cpp='$CPP $CPPFLAGS' 20976ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20977ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20978ac_compiler_gnu=$ac_cv_c_compiler_gnu 20979 20980CC="$lt_save_CC" 20981 20982 ;; 20983 20984 *) 20985 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 20986echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 20987 { (exit 1); exit 1; }; } 20988 ;; 20989 esac 20990 20991 # Append the new tag name to the list of available tags. 20992 if test -n "$tagname" ; then 20993 available_tags="$available_tags $tagname" 20994 fi 20995 fi 20996 done 20997 IFS="$lt_save_ifs" 20998 20999 # Now substitute the updated list of available tags. 21000 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 21001 mv "${ofile}T" "$ofile" 21002 chmod +x "$ofile" 21003 else 21004 rm -f "${ofile}T" 21005 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 21006echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 21007 { (exit 1); exit 1; }; } 21008 fi 21009fi 21010 21011 21012 21013# This can be used to rebuild libtool when needed 21014LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 21015 21016# Always use our own libtool. 21017LIBTOOL='$(SHELL) $(top_builddir)/libtool' 21018 21019# Prevent multiple expansion 21020 21021 21022 21023 21024 21025 21026 21027 21028 21029 21030 21031 21032 21033 21034 21035 21036 21037 21038 21039 21040########################################################################### 21041 21042 21043echo "$as_me:$LINENO: checking for sqrt in -lm" >&5 21044echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6 21045if test "${ac_cv_lib_m_sqrt+set}" = set; then 21046 echo $ECHO_N "(cached) $ECHO_C" >&6 21047else 21048 ac_check_lib_save_LIBS=$LIBS 21049LIBS="-lm $LIBS" 21050cat >conftest.$ac_ext <<_ACEOF 21051/* confdefs.h. */ 21052_ACEOF 21053cat confdefs.h >>conftest.$ac_ext 21054cat >>conftest.$ac_ext <<_ACEOF 21055/* end confdefs.h. */ 21056 21057/* Override any gcc2 internal prototype to avoid an error. */ 21058#ifdef __cplusplus 21059extern "C" 21060#endif 21061/* We use char because int might match the return type of a gcc2 21062 builtin and then its argument prototype would still apply. */ 21063char sqrt (); 21064#ifdef F77_DUMMY_MAIN 21065 21066# ifdef __cplusplus 21067 extern "C" 21068# endif 21069 int F77_DUMMY_MAIN() { return 1; } 21070 21071#endif 21072int 21073main () 21074{ 21075sqrt (); 21076 ; 21077 return 0; 21078} 21079_ACEOF 21080rm -f conftest.$ac_objext conftest$ac_exeext 21081if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21082 (eval $ac_link) 2>conftest.er1 21083 ac_status=$? 21084 grep -v '^ *+' conftest.er1 >conftest.err 21085 rm -f conftest.er1 21086 cat conftest.err >&5 21087 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21088 (exit $ac_status); } && 21089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21091 (eval $ac_try) 2>&5 21092 ac_status=$? 21093 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21094 (exit $ac_status); }; } && 21095 { ac_try='test -s conftest$ac_exeext' 21096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21097 (eval $ac_try) 2>&5 21098 ac_status=$? 21099 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21100 (exit $ac_status); }; }; then 21101 ac_cv_lib_m_sqrt=yes 21102else 21103 echo "$as_me: failed program was:" >&5 21104sed 's/^/| /' conftest.$ac_ext >&5 21105 21106ac_cv_lib_m_sqrt=no 21107fi 21108rm -f conftest.err conftest.$ac_objext \ 21109 conftest$ac_exeext conftest.$ac_ext 21110LIBS=$ac_check_lib_save_LIBS 21111fi 21112echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5 21113echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6 21114if test $ac_cv_lib_m_sqrt = yes; then 21115 cat >>confdefs.h <<_ACEOF 21116#define HAVE_LIBM 1 21117_ACEOF 21118 21119 LIBS="-lm $LIBS" 21120 21121fi 21122 21123 21124########################################################################### 21125 21126# Checks for BLAS/LAPACK libraries: 21127 21128 21129 21130 21131acx_blas_ok=no 21132 21133 21134# Check whether --with-blas or --without-blas was given. 21135if test "${with_blas+set}" = set; then 21136 withval="$with_blas" 21137 21138fi; 21139case $with_blas in 21140 yes | "") ;; 21141 no) acx_blas_ok=disable ;; 21142 -* | */* | *.a | *.so | *.so.* | *.o) BLAS_LIBS="$with_blas" ;; 21143 *) BLAS_LIBS="-l$with_blas" ;; 21144esac 21145 21146# Get fortran linker names of BLAS functions to check for. 21147ac_ext=f 21148ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 21149ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21150ac_compiler_gnu=$ac_cv_f77_compiler_gnu 21151case $ac_cv_f77_mangling in 21152 upper*) ac_val="SGEMM" ;; 21153 lower*) ac_val="sgemm" ;; 21154 *) ac_val="unknown" ;; 21155esac 21156case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac 21157 21158sgemm="$ac_val" 21159 21160ac_ext=c 21161ac_cpp='$CPP $CPPFLAGS' 21162ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21163ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21164ac_compiler_gnu=$ac_cv_c_compiler_gnu 21165 21166ac_ext=f 21167ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 21168ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21169ac_compiler_gnu=$ac_cv_f77_compiler_gnu 21170case $ac_cv_f77_mangling in 21171 upper*) ac_val="DGEMM" ;; 21172 lower*) ac_val="dgemm" ;; 21173 *) ac_val="unknown" ;; 21174esac 21175case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac 21176 21177dgemm="$ac_val" 21178 21179ac_ext=c 21180ac_cpp='$CPP $CPPFLAGS' 21181ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21182ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21183ac_compiler_gnu=$ac_cv_c_compiler_gnu 21184 21185 21186acx_blas_save_LIBS="$LIBS" 21187LIBS="$LIBS $FLIBS" 21188 21189# First, check BLAS_LIBS environment variable 21190if test $acx_blas_ok = no; then 21191if test "x$BLAS_LIBS" != x; then 21192 save_LIBS="$LIBS"; LIBS="$BLAS_LIBS $LIBS" 21193 echo "$as_me:$LINENO: checking for $sgemm in $BLAS_LIBS" >&5 21194echo $ECHO_N "checking for $sgemm in $BLAS_LIBS... $ECHO_C" >&6 21195 cat >conftest.$ac_ext <<_ACEOF 21196/* confdefs.h. */ 21197_ACEOF 21198cat confdefs.h >>conftest.$ac_ext 21199cat >>conftest.$ac_ext <<_ACEOF 21200/* end confdefs.h. */ 21201 21202/* Override any gcc2 internal prototype to avoid an error. */ 21203#ifdef __cplusplus 21204extern "C" 21205#endif 21206/* We use char because int might match the return type of a gcc2 21207 builtin and then its argument prototype would still apply. */ 21208char $sgemm (); 21209#ifdef F77_DUMMY_MAIN 21210 21211# ifdef __cplusplus 21212 extern "C" 21213# endif 21214 int F77_DUMMY_MAIN() { return 1; } 21215 21216#endif 21217int 21218main () 21219{ 21220$sgemm (); 21221 ; 21222 return 0; 21223} 21224_ACEOF 21225rm -f conftest.$ac_objext conftest$ac_exeext 21226if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21227 (eval $ac_link) 2>conftest.er1 21228 ac_status=$? 21229 grep -v '^ *+' conftest.er1 >conftest.err 21230 rm -f conftest.er1 21231 cat conftest.err >&5 21232 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21233 (exit $ac_status); } && 21234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21236 (eval $ac_try) 2>&5 21237 ac_status=$? 21238 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21239 (exit $ac_status); }; } && 21240 { ac_try='test -s conftest$ac_exeext' 21241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21242 (eval $ac_try) 2>&5 21243 ac_status=$? 21244 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21245 (exit $ac_status); }; }; then 21246 acx_blas_ok=yes 21247else 21248 echo "$as_me: failed program was:" >&5 21249sed 's/^/| /' conftest.$ac_ext >&5 21250 21251BLAS_LIBS="" 21252fi 21253rm -f conftest.err conftest.$ac_objext \ 21254 conftest$ac_exeext conftest.$ac_ext 21255 echo "$as_me:$LINENO: result: $acx_blas_ok" >&5 21256echo "${ECHO_T}$acx_blas_ok" >&6 21257 LIBS="$save_LIBS" 21258fi 21259fi 21260 21261# BLAS linked to by default? (happens on some supercomputers) 21262if test $acx_blas_ok = no; then 21263 save_LIBS="$LIBS"; LIBS="$LIBS" 21264 as_ac_var=`echo "ac_cv_func_$sgemm" | $as_tr_sh` 21265echo "$as_me:$LINENO: checking for $sgemm" >&5 21266echo $ECHO_N "checking for $sgemm... $ECHO_C" >&6 21267if eval "test \"\${$as_ac_var+set}\" = set"; then 21268 echo $ECHO_N "(cached) $ECHO_C" >&6 21269else 21270 cat >conftest.$ac_ext <<_ACEOF 21271/* confdefs.h. */ 21272_ACEOF 21273cat confdefs.h >>conftest.$ac_ext 21274cat >>conftest.$ac_ext <<_ACEOF 21275/* end confdefs.h. */ 21276/* Define $sgemm to an innocuous variant, in case <limits.h> declares $sgemm. 21277 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 21278#define $sgemm innocuous_$sgemm 21279 21280/* System header to define __stub macros and hopefully few prototypes, 21281 which can conflict with char $sgemm (); below. 21282 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 21283 <limits.h> exists even on freestanding compilers. */ 21284 21285#ifdef __STDC__ 21286# include <limits.h> 21287#else 21288# include <assert.h> 21289#endif 21290 21291#undef $sgemm 21292 21293/* Override any gcc2 internal prototype to avoid an error. */ 21294#ifdef __cplusplus 21295extern "C" 21296{ 21297#endif 21298/* We use char because int might match the return type of a gcc2 21299 builtin and then its argument prototype would still apply. */ 21300char $sgemm (); 21301/* The GNU C library defines this for functions which it implements 21302 to always fail with ENOSYS. Some functions are actually named 21303 something starting with __ and the normal name is an alias. */ 21304#if defined (__stub_$sgemm) || defined (__stub___$sgemm) 21305choke me 21306#else 21307char (*f) () = $sgemm; 21308#endif 21309#ifdef __cplusplus 21310} 21311#endif 21312 21313#ifdef F77_DUMMY_MAIN 21314 21315# ifdef __cplusplus 21316 extern "C" 21317# endif 21318 int F77_DUMMY_MAIN() { return 1; } 21319 21320#endif 21321int 21322main () 21323{ 21324return f != $sgemm; 21325 ; 21326 return 0; 21327} 21328_ACEOF 21329rm -f conftest.$ac_objext conftest$ac_exeext 21330if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21331 (eval $ac_link) 2>conftest.er1 21332 ac_status=$? 21333 grep -v '^ *+' conftest.er1 >conftest.err 21334 rm -f conftest.er1 21335 cat conftest.err >&5 21336 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21337 (exit $ac_status); } && 21338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21340 (eval $ac_try) 2>&5 21341 ac_status=$? 21342 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21343 (exit $ac_status); }; } && 21344 { ac_try='test -s conftest$ac_exeext' 21345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21346 (eval $ac_try) 2>&5 21347 ac_status=$? 21348 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21349 (exit $ac_status); }; }; then 21350 eval "$as_ac_var=yes" 21351else 21352 echo "$as_me: failed program was:" >&5 21353sed 's/^/| /' conftest.$ac_ext >&5 21354 21355eval "$as_ac_var=no" 21356fi 21357rm -f conftest.err conftest.$ac_objext \ 21358 conftest$ac_exeext conftest.$ac_ext 21359fi 21360echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 21361echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 21362if test `eval echo '${'$as_ac_var'}'` = yes; then 21363 acx_blas_ok=yes 21364fi 21365 21366 LIBS="$save_LIBS" 21367fi 21368 21369# BLAS in ATLAS library? (http://math-atlas.sourceforge.net/) 21370if test $acx_blas_ok = no; then 21371 echo "$as_me:$LINENO: checking for ATL_xerbla in -latlas" >&5 21372echo $ECHO_N "checking for ATL_xerbla in -latlas... $ECHO_C" >&6 21373if test "${ac_cv_lib_atlas_ATL_xerbla+set}" = set; then 21374 echo $ECHO_N "(cached) $ECHO_C" >&6 21375else 21376 ac_check_lib_save_LIBS=$LIBS 21377LIBS="-latlas $LIBS" 21378cat >conftest.$ac_ext <<_ACEOF 21379/* confdefs.h. */ 21380_ACEOF 21381cat confdefs.h >>conftest.$ac_ext 21382cat >>conftest.$ac_ext <<_ACEOF 21383/* end confdefs.h. */ 21384 21385/* Override any gcc2 internal prototype to avoid an error. */ 21386#ifdef __cplusplus 21387extern "C" 21388#endif 21389/* We use char because int might match the return type of a gcc2 21390 builtin and then its argument prototype would still apply. */ 21391char ATL_xerbla (); 21392#ifdef F77_DUMMY_MAIN 21393 21394# ifdef __cplusplus 21395 extern "C" 21396# endif 21397 int F77_DUMMY_MAIN() { return 1; } 21398 21399#endif 21400int 21401main () 21402{ 21403ATL_xerbla (); 21404 ; 21405 return 0; 21406} 21407_ACEOF 21408rm -f conftest.$ac_objext conftest$ac_exeext 21409if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21410 (eval $ac_link) 2>conftest.er1 21411 ac_status=$? 21412 grep -v '^ *+' conftest.er1 >conftest.err 21413 rm -f conftest.er1 21414 cat conftest.err >&5 21415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21416 (exit $ac_status); } && 21417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21419 (eval $ac_try) 2>&5 21420 ac_status=$? 21421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21422 (exit $ac_status); }; } && 21423 { ac_try='test -s conftest$ac_exeext' 21424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21425 (eval $ac_try) 2>&5 21426 ac_status=$? 21427 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21428 (exit $ac_status); }; }; then 21429 ac_cv_lib_atlas_ATL_xerbla=yes 21430else 21431 echo "$as_me: failed program was:" >&5 21432sed 's/^/| /' conftest.$ac_ext >&5 21433 21434ac_cv_lib_atlas_ATL_xerbla=no 21435fi 21436rm -f conftest.err conftest.$ac_objext \ 21437 conftest$ac_exeext conftest.$ac_ext 21438LIBS=$ac_check_lib_save_LIBS 21439fi 21440echo "$as_me:$LINENO: result: $ac_cv_lib_atlas_ATL_xerbla" >&5 21441echo "${ECHO_T}$ac_cv_lib_atlas_ATL_xerbla" >&6 21442if test $ac_cv_lib_atlas_ATL_xerbla = yes; then 21443 as_ac_Lib=`echo "ac_cv_lib_f77blas_$sgemm" | $as_tr_sh` 21444echo "$as_me:$LINENO: checking for $sgemm in -lf77blas" >&5 21445echo $ECHO_N "checking for $sgemm in -lf77blas... $ECHO_C" >&6 21446if eval "test \"\${$as_ac_Lib+set}\" = set"; then 21447 echo $ECHO_N "(cached) $ECHO_C" >&6 21448else 21449 ac_check_lib_save_LIBS=$LIBS 21450LIBS="-lf77blas -latlas $LIBS" 21451cat >conftest.$ac_ext <<_ACEOF 21452/* confdefs.h. */ 21453_ACEOF 21454cat confdefs.h >>conftest.$ac_ext 21455cat >>conftest.$ac_ext <<_ACEOF 21456/* end confdefs.h. */ 21457 21458/* Override any gcc2 internal prototype to avoid an error. */ 21459#ifdef __cplusplus 21460extern "C" 21461#endif 21462/* We use char because int might match the return type of a gcc2 21463 builtin and then its argument prototype would still apply. */ 21464char $sgemm (); 21465#ifdef F77_DUMMY_MAIN 21466 21467# ifdef __cplusplus 21468 extern "C" 21469# endif 21470 int F77_DUMMY_MAIN() { return 1; } 21471 21472#endif 21473int 21474main () 21475{ 21476$sgemm (); 21477 ; 21478 return 0; 21479} 21480_ACEOF 21481rm -f conftest.$ac_objext conftest$ac_exeext 21482if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21483 (eval $ac_link) 2>conftest.er1 21484 ac_status=$? 21485 grep -v '^ *+' conftest.er1 >conftest.err 21486 rm -f conftest.er1 21487 cat conftest.err >&5 21488 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21489 (exit $ac_status); } && 21490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21492 (eval $ac_try) 2>&5 21493 ac_status=$? 21494 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21495 (exit $ac_status); }; } && 21496 { ac_try='test -s conftest$ac_exeext' 21497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21498 (eval $ac_try) 2>&5 21499 ac_status=$? 21500 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21501 (exit $ac_status); }; }; then 21502 eval "$as_ac_Lib=yes" 21503else 21504 echo "$as_me: failed program was:" >&5 21505sed 's/^/| /' conftest.$ac_ext >&5 21506 21507eval "$as_ac_Lib=no" 21508fi 21509rm -f conftest.err conftest.$ac_objext \ 21510 conftest$ac_exeext conftest.$ac_ext 21511LIBS=$ac_check_lib_save_LIBS 21512fi 21513echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 21514echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 21515if test `eval echo '${'$as_ac_Lib'}'` = yes; then 21516 echo "$as_me:$LINENO: checking for cblas_dgemm in -lcblas" >&5 21517echo $ECHO_N "checking for cblas_dgemm in -lcblas... $ECHO_C" >&6 21518if test "${ac_cv_lib_cblas_cblas_dgemm+set}" = set; then 21519 echo $ECHO_N "(cached) $ECHO_C" >&6 21520else 21521 ac_check_lib_save_LIBS=$LIBS 21522LIBS="-lcblas -lf77blas -latlas $LIBS" 21523cat >conftest.$ac_ext <<_ACEOF 21524/* confdefs.h. */ 21525_ACEOF 21526cat confdefs.h >>conftest.$ac_ext 21527cat >>conftest.$ac_ext <<_ACEOF 21528/* end confdefs.h. */ 21529 21530/* Override any gcc2 internal prototype to avoid an error. */ 21531#ifdef __cplusplus 21532extern "C" 21533#endif 21534/* We use char because int might match the return type of a gcc2 21535 builtin and then its argument prototype would still apply. */ 21536char cblas_dgemm (); 21537#ifdef F77_DUMMY_MAIN 21538 21539# ifdef __cplusplus 21540 extern "C" 21541# endif 21542 int F77_DUMMY_MAIN() { return 1; } 21543 21544#endif 21545int 21546main () 21547{ 21548cblas_dgemm (); 21549 ; 21550 return 0; 21551} 21552_ACEOF 21553rm -f conftest.$ac_objext conftest$ac_exeext 21554if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21555 (eval $ac_link) 2>conftest.er1 21556 ac_status=$? 21557 grep -v '^ *+' conftest.er1 >conftest.err 21558 rm -f conftest.er1 21559 cat conftest.err >&5 21560 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21561 (exit $ac_status); } && 21562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21564 (eval $ac_try) 2>&5 21565 ac_status=$? 21566 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21567 (exit $ac_status); }; } && 21568 { ac_try='test -s conftest$ac_exeext' 21569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21570 (eval $ac_try) 2>&5 21571 ac_status=$? 21572 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21573 (exit $ac_status); }; }; then 21574 ac_cv_lib_cblas_cblas_dgemm=yes 21575else 21576 echo "$as_me: failed program was:" >&5 21577sed 's/^/| /' conftest.$ac_ext >&5 21578 21579ac_cv_lib_cblas_cblas_dgemm=no 21580fi 21581rm -f conftest.err conftest.$ac_objext \ 21582 conftest$ac_exeext conftest.$ac_ext 21583LIBS=$ac_check_lib_save_LIBS 21584fi 21585echo "$as_me:$LINENO: result: $ac_cv_lib_cblas_cblas_dgemm" >&5 21586echo "${ECHO_T}$ac_cv_lib_cblas_cblas_dgemm" >&6 21587if test $ac_cv_lib_cblas_cblas_dgemm = yes; then 21588 acx_blas_ok=yes 21589 BLAS_LIBS="-lcblas -lf77blas -latlas" 21590fi 21591 21592fi 21593 21594fi 21595 21596fi 21597 21598# BLAS in PhiPACK libraries? (requires generic BLAS lib, too) 21599if test $acx_blas_ok = no; then 21600 as_ac_Lib=`echo "ac_cv_lib_blas_$sgemm" | $as_tr_sh` 21601echo "$as_me:$LINENO: checking for $sgemm in -lblas" >&5 21602echo $ECHO_N "checking for $sgemm in -lblas... $ECHO_C" >&6 21603if eval "test \"\${$as_ac_Lib+set}\" = set"; then 21604 echo $ECHO_N "(cached) $ECHO_C" >&6 21605else 21606 ac_check_lib_save_LIBS=$LIBS 21607LIBS="-lblas $LIBS" 21608cat >conftest.$ac_ext <<_ACEOF 21609/* confdefs.h. */ 21610_ACEOF 21611cat confdefs.h >>conftest.$ac_ext 21612cat >>conftest.$ac_ext <<_ACEOF 21613/* end confdefs.h. */ 21614 21615/* Override any gcc2 internal prototype to avoid an error. */ 21616#ifdef __cplusplus 21617extern "C" 21618#endif 21619/* We use char because int might match the return type of a gcc2 21620 builtin and then its argument prototype would still apply. */ 21621char $sgemm (); 21622#ifdef F77_DUMMY_MAIN 21623 21624# ifdef __cplusplus 21625 extern "C" 21626# endif 21627 int F77_DUMMY_MAIN() { return 1; } 21628 21629#endif 21630int 21631main () 21632{ 21633$sgemm (); 21634 ; 21635 return 0; 21636} 21637_ACEOF 21638rm -f conftest.$ac_objext conftest$ac_exeext 21639if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21640 (eval $ac_link) 2>conftest.er1 21641 ac_status=$? 21642 grep -v '^ *+' conftest.er1 >conftest.err 21643 rm -f conftest.er1 21644 cat conftest.err >&5 21645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21646 (exit $ac_status); } && 21647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21649 (eval $ac_try) 2>&5 21650 ac_status=$? 21651 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21652 (exit $ac_status); }; } && 21653 { ac_try='test -s conftest$ac_exeext' 21654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21655 (eval $ac_try) 2>&5 21656 ac_status=$? 21657 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21658 (exit $ac_status); }; }; then 21659 eval "$as_ac_Lib=yes" 21660else 21661 echo "$as_me: failed program was:" >&5 21662sed 's/^/| /' conftest.$ac_ext >&5 21663 21664eval "$as_ac_Lib=no" 21665fi 21666rm -f conftest.err conftest.$ac_objext \ 21667 conftest$ac_exeext conftest.$ac_ext 21668LIBS=$ac_check_lib_save_LIBS 21669fi 21670echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 21671echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 21672if test `eval echo '${'$as_ac_Lib'}'` = yes; then 21673 as_ac_Lib=`echo "ac_cv_lib_dgemm_$dgemm" | $as_tr_sh` 21674echo "$as_me:$LINENO: checking for $dgemm in -ldgemm" >&5 21675echo $ECHO_N "checking for $dgemm in -ldgemm... $ECHO_C" >&6 21676if eval "test \"\${$as_ac_Lib+set}\" = set"; then 21677 echo $ECHO_N "(cached) $ECHO_C" >&6 21678else 21679 ac_check_lib_save_LIBS=$LIBS 21680LIBS="-ldgemm -lblas $LIBS" 21681cat >conftest.$ac_ext <<_ACEOF 21682/* confdefs.h. */ 21683_ACEOF 21684cat confdefs.h >>conftest.$ac_ext 21685cat >>conftest.$ac_ext <<_ACEOF 21686/* end confdefs.h. */ 21687 21688/* Override any gcc2 internal prototype to avoid an error. */ 21689#ifdef __cplusplus 21690extern "C" 21691#endif 21692/* We use char because int might match the return type of a gcc2 21693 builtin and then its argument prototype would still apply. */ 21694char $dgemm (); 21695#ifdef F77_DUMMY_MAIN 21696 21697# ifdef __cplusplus 21698 extern "C" 21699# endif 21700 int F77_DUMMY_MAIN() { return 1; } 21701 21702#endif 21703int 21704main () 21705{ 21706$dgemm (); 21707 ; 21708 return 0; 21709} 21710_ACEOF 21711rm -f conftest.$ac_objext conftest$ac_exeext 21712if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21713 (eval $ac_link) 2>conftest.er1 21714 ac_status=$? 21715 grep -v '^ *+' conftest.er1 >conftest.err 21716 rm -f conftest.er1 21717 cat conftest.err >&5 21718 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21719 (exit $ac_status); } && 21720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21722 (eval $ac_try) 2>&5 21723 ac_status=$? 21724 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21725 (exit $ac_status); }; } && 21726 { ac_try='test -s conftest$ac_exeext' 21727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21728 (eval $ac_try) 2>&5 21729 ac_status=$? 21730 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21731 (exit $ac_status); }; }; then 21732 eval "$as_ac_Lib=yes" 21733else 21734 echo "$as_me: failed program was:" >&5 21735sed 's/^/| /' conftest.$ac_ext >&5 21736 21737eval "$as_ac_Lib=no" 21738fi 21739rm -f conftest.err conftest.$ac_objext \ 21740 conftest$ac_exeext conftest.$ac_ext 21741LIBS=$ac_check_lib_save_LIBS 21742fi 21743echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 21744echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 21745if test `eval echo '${'$as_ac_Lib'}'` = yes; then 21746 as_ac_Lib=`echo "ac_cv_lib_sgemm_$sgemm" | $as_tr_sh` 21747echo "$as_me:$LINENO: checking for $sgemm in -lsgemm" >&5 21748echo $ECHO_N "checking for $sgemm in -lsgemm... $ECHO_C" >&6 21749if eval "test \"\${$as_ac_Lib+set}\" = set"; then 21750 echo $ECHO_N "(cached) $ECHO_C" >&6 21751else 21752 ac_check_lib_save_LIBS=$LIBS 21753LIBS="-lsgemm -lblas $LIBS" 21754cat >conftest.$ac_ext <<_ACEOF 21755/* confdefs.h. */ 21756_ACEOF 21757cat confdefs.h >>conftest.$ac_ext 21758cat >>conftest.$ac_ext <<_ACEOF 21759/* end confdefs.h. */ 21760 21761/* Override any gcc2 internal prototype to avoid an error. */ 21762#ifdef __cplusplus 21763extern "C" 21764#endif 21765/* We use char because int might match the return type of a gcc2 21766 builtin and then its argument prototype would still apply. */ 21767char $sgemm (); 21768#ifdef F77_DUMMY_MAIN 21769 21770# ifdef __cplusplus 21771 extern "C" 21772# endif 21773 int F77_DUMMY_MAIN() { return 1; } 21774 21775#endif 21776int 21777main () 21778{ 21779$sgemm (); 21780 ; 21781 return 0; 21782} 21783_ACEOF 21784rm -f conftest.$ac_objext conftest$ac_exeext 21785if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21786 (eval $ac_link) 2>conftest.er1 21787 ac_status=$? 21788 grep -v '^ *+' conftest.er1 >conftest.err 21789 rm -f conftest.er1 21790 cat conftest.err >&5 21791 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21792 (exit $ac_status); } && 21793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21795 (eval $ac_try) 2>&5 21796 ac_status=$? 21797 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21798 (exit $ac_status); }; } && 21799 { ac_try='test -s conftest$ac_exeext' 21800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21801 (eval $ac_try) 2>&5 21802 ac_status=$? 21803 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21804 (exit $ac_status); }; }; then 21805 eval "$as_ac_Lib=yes" 21806else 21807 echo "$as_me: failed program was:" >&5 21808sed 's/^/| /' conftest.$ac_ext >&5 21809 21810eval "$as_ac_Lib=no" 21811fi 21812rm -f conftest.err conftest.$ac_objext \ 21813 conftest$ac_exeext conftest.$ac_ext 21814LIBS=$ac_check_lib_save_LIBS 21815fi 21816echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 21817echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 21818if test `eval echo '${'$as_ac_Lib'}'` = yes; then 21819 acx_blas_ok=yes; BLAS_LIBS="-lsgemm -ldgemm -lblas" 21820fi 21821 21822fi 21823 21824fi 21825 21826fi 21827 21828# BLAS in Alpha CXML library? 21829if test $acx_blas_ok = no; then 21830 as_ac_Lib=`echo "ac_cv_lib_cxml_$sgemm" | $as_tr_sh` 21831echo "$as_me:$LINENO: checking for $sgemm in -lcxml" >&5 21832echo $ECHO_N "checking for $sgemm in -lcxml... $ECHO_C" >&6 21833if eval "test \"\${$as_ac_Lib+set}\" = set"; then 21834 echo $ECHO_N "(cached) $ECHO_C" >&6 21835else 21836 ac_check_lib_save_LIBS=$LIBS 21837LIBS="-lcxml $LIBS" 21838cat >conftest.$ac_ext <<_ACEOF 21839/* confdefs.h. */ 21840_ACEOF 21841cat confdefs.h >>conftest.$ac_ext 21842cat >>conftest.$ac_ext <<_ACEOF 21843/* end confdefs.h. */ 21844 21845/* Override any gcc2 internal prototype to avoid an error. */ 21846#ifdef __cplusplus 21847extern "C" 21848#endif 21849/* We use char because int might match the return type of a gcc2 21850 builtin and then its argument prototype would still apply. */ 21851char $sgemm (); 21852#ifdef F77_DUMMY_MAIN 21853 21854# ifdef __cplusplus 21855 extern "C" 21856# endif 21857 int F77_DUMMY_MAIN() { return 1; } 21858 21859#endif 21860int 21861main () 21862{ 21863$sgemm (); 21864 ; 21865 return 0; 21866} 21867_ACEOF 21868rm -f conftest.$ac_objext conftest$ac_exeext 21869if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21870 (eval $ac_link) 2>conftest.er1 21871 ac_status=$? 21872 grep -v '^ *+' conftest.er1 >conftest.err 21873 rm -f conftest.er1 21874 cat conftest.err >&5 21875 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21876 (exit $ac_status); } && 21877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21879 (eval $ac_try) 2>&5 21880 ac_status=$? 21881 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21882 (exit $ac_status); }; } && 21883 { ac_try='test -s conftest$ac_exeext' 21884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21885 (eval $ac_try) 2>&5 21886 ac_status=$? 21887 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21888 (exit $ac_status); }; }; then 21889 eval "$as_ac_Lib=yes" 21890else 21891 echo "$as_me: failed program was:" >&5 21892sed 's/^/| /' conftest.$ac_ext >&5 21893 21894eval "$as_ac_Lib=no" 21895fi 21896rm -f conftest.err conftest.$ac_objext \ 21897 conftest$ac_exeext conftest.$ac_ext 21898LIBS=$ac_check_lib_save_LIBS 21899fi 21900echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 21901echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 21902if test `eval echo '${'$as_ac_Lib'}'` = yes; then 21903 acx_blas_ok=yes;BLAS_LIBS="-lcxml" 21904fi 21905 21906fi 21907 21908# BLAS in Alpha DXML library? (now called CXML, see above) 21909if test $acx_blas_ok = no; then 21910 as_ac_Lib=`echo "ac_cv_lib_dxml_$sgemm" | $as_tr_sh` 21911echo "$as_me:$LINENO: checking for $sgemm in -ldxml" >&5 21912echo $ECHO_N "checking for $sgemm in -ldxml... $ECHO_C" >&6 21913if eval "test \"\${$as_ac_Lib+set}\" = set"; then 21914 echo $ECHO_N "(cached) $ECHO_C" >&6 21915else 21916 ac_check_lib_save_LIBS=$LIBS 21917LIBS="-ldxml $LIBS" 21918cat >conftest.$ac_ext <<_ACEOF 21919/* confdefs.h. */ 21920_ACEOF 21921cat confdefs.h >>conftest.$ac_ext 21922cat >>conftest.$ac_ext <<_ACEOF 21923/* end confdefs.h. */ 21924 21925/* Override any gcc2 internal prototype to avoid an error. */ 21926#ifdef __cplusplus 21927extern "C" 21928#endif 21929/* We use char because int might match the return type of a gcc2 21930 builtin and then its argument prototype would still apply. */ 21931char $sgemm (); 21932#ifdef F77_DUMMY_MAIN 21933 21934# ifdef __cplusplus 21935 extern "C" 21936# endif 21937 int F77_DUMMY_MAIN() { return 1; } 21938 21939#endif 21940int 21941main () 21942{ 21943$sgemm (); 21944 ; 21945 return 0; 21946} 21947_ACEOF 21948rm -f conftest.$ac_objext conftest$ac_exeext 21949if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21950 (eval $ac_link) 2>conftest.er1 21951 ac_status=$? 21952 grep -v '^ *+' conftest.er1 >conftest.err 21953 rm -f conftest.er1 21954 cat conftest.err >&5 21955 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21956 (exit $ac_status); } && 21957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21959 (eval $ac_try) 2>&5 21960 ac_status=$? 21961 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21962 (exit $ac_status); }; } && 21963 { ac_try='test -s conftest$ac_exeext' 21964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21965 (eval $ac_try) 2>&5 21966 ac_status=$? 21967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21968 (exit $ac_status); }; }; then 21969 eval "$as_ac_Lib=yes" 21970else 21971 echo "$as_me: failed program was:" >&5 21972sed 's/^/| /' conftest.$ac_ext >&5 21973 21974eval "$as_ac_Lib=no" 21975fi 21976rm -f conftest.err conftest.$ac_objext \ 21977 conftest$ac_exeext conftest.$ac_ext 21978LIBS=$ac_check_lib_save_LIBS 21979fi 21980echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 21981echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 21982if test `eval echo '${'$as_ac_Lib'}'` = yes; then 21983 acx_blas_ok=yes;BLAS_LIBS="-ldxml" 21984fi 21985 21986fi 21987 21988# BLAS in Sun Performance library? 21989if test $acx_blas_ok = no; then 21990 if test "x$GCC" != xyes; then # only works with Sun CC 21991 echo "$as_me:$LINENO: checking for acosp in -lsunmath" >&5 21992echo $ECHO_N "checking for acosp in -lsunmath... $ECHO_C" >&6 21993if test "${ac_cv_lib_sunmath_acosp+set}" = set; then 21994 echo $ECHO_N "(cached) $ECHO_C" >&6 21995else 21996 ac_check_lib_save_LIBS=$LIBS 21997LIBS="-lsunmath $LIBS" 21998cat >conftest.$ac_ext <<_ACEOF 21999/* confdefs.h. */ 22000_ACEOF 22001cat confdefs.h >>conftest.$ac_ext 22002cat >>conftest.$ac_ext <<_ACEOF 22003/* end confdefs.h. */ 22004 22005/* Override any gcc2 internal prototype to avoid an error. */ 22006#ifdef __cplusplus 22007extern "C" 22008#endif 22009/* We use char because int might match the return type of a gcc2 22010 builtin and then its argument prototype would still apply. */ 22011char acosp (); 22012#ifdef F77_DUMMY_MAIN 22013 22014# ifdef __cplusplus 22015 extern "C" 22016# endif 22017 int F77_DUMMY_MAIN() { return 1; } 22018 22019#endif 22020int 22021main () 22022{ 22023acosp (); 22024 ; 22025 return 0; 22026} 22027_ACEOF 22028rm -f conftest.$ac_objext conftest$ac_exeext 22029if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22030 (eval $ac_link) 2>conftest.er1 22031 ac_status=$? 22032 grep -v '^ *+' conftest.er1 >conftest.err 22033 rm -f conftest.er1 22034 cat conftest.err >&5 22035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22036 (exit $ac_status); } && 22037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22039 (eval $ac_try) 2>&5 22040 ac_status=$? 22041 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22042 (exit $ac_status); }; } && 22043 { ac_try='test -s conftest$ac_exeext' 22044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22045 (eval $ac_try) 2>&5 22046 ac_status=$? 22047 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22048 (exit $ac_status); }; }; then 22049 ac_cv_lib_sunmath_acosp=yes 22050else 22051 echo "$as_me: failed program was:" >&5 22052sed 's/^/| /' conftest.$ac_ext >&5 22053 22054ac_cv_lib_sunmath_acosp=no 22055fi 22056rm -f conftest.err conftest.$ac_objext \ 22057 conftest$ac_exeext conftest.$ac_ext 22058LIBS=$ac_check_lib_save_LIBS 22059fi 22060echo "$as_me:$LINENO: result: $ac_cv_lib_sunmath_acosp" >&5 22061echo "${ECHO_T}$ac_cv_lib_sunmath_acosp" >&6 22062if test $ac_cv_lib_sunmath_acosp = yes; then 22063 as_ac_Lib=`echo "ac_cv_lib_sunperf_$sgemm" | $as_tr_sh` 22064echo "$as_me:$LINENO: checking for $sgemm in -lsunperf" >&5 22065echo $ECHO_N "checking for $sgemm in -lsunperf... $ECHO_C" >&6 22066if eval "test \"\${$as_ac_Lib+set}\" = set"; then 22067 echo $ECHO_N "(cached) $ECHO_C" >&6 22068else 22069 ac_check_lib_save_LIBS=$LIBS 22070LIBS="-lsunperf -lsunmath $LIBS" 22071cat >conftest.$ac_ext <<_ACEOF 22072/* confdefs.h. */ 22073_ACEOF 22074cat confdefs.h >>conftest.$ac_ext 22075cat >>conftest.$ac_ext <<_ACEOF 22076/* end confdefs.h. */ 22077 22078/* Override any gcc2 internal prototype to avoid an error. */ 22079#ifdef __cplusplus 22080extern "C" 22081#endif 22082/* We use char because int might match the return type of a gcc2 22083 builtin and then its argument prototype would still apply. */ 22084char $sgemm (); 22085#ifdef F77_DUMMY_MAIN 22086 22087# ifdef __cplusplus 22088 extern "C" 22089# endif 22090 int F77_DUMMY_MAIN() { return 1; } 22091 22092#endif 22093int 22094main () 22095{ 22096$sgemm (); 22097 ; 22098 return 0; 22099} 22100_ACEOF 22101rm -f conftest.$ac_objext conftest$ac_exeext 22102if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22103 (eval $ac_link) 2>conftest.er1 22104 ac_status=$? 22105 grep -v '^ *+' conftest.er1 >conftest.err 22106 rm -f conftest.er1 22107 cat conftest.err >&5 22108 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22109 (exit $ac_status); } && 22110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22112 (eval $ac_try) 2>&5 22113 ac_status=$? 22114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22115 (exit $ac_status); }; } && 22116 { ac_try='test -s conftest$ac_exeext' 22117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22118 (eval $ac_try) 2>&5 22119 ac_status=$? 22120 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22121 (exit $ac_status); }; }; then 22122 eval "$as_ac_Lib=yes" 22123else 22124 echo "$as_me: failed program was:" >&5 22125sed 's/^/| /' conftest.$ac_ext >&5 22126 22127eval "$as_ac_Lib=no" 22128fi 22129rm -f conftest.err conftest.$ac_objext \ 22130 conftest$ac_exeext conftest.$ac_ext 22131LIBS=$ac_check_lib_save_LIBS 22132fi 22133echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 22134echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 22135if test `eval echo '${'$as_ac_Lib'}'` = yes; then 22136 BLAS_LIBS="-xlic_lib=sunperf -lsunmath" 22137 acx_blas_ok=yes 22138fi 22139 22140fi 22141 22142 fi 22143fi 22144 22145# BLAS in SCSL library? (SGI/Cray Scientific Library) 22146if test $acx_blas_ok = no; then 22147 as_ac_Lib=`echo "ac_cv_lib_scs_$sgemm" | $as_tr_sh` 22148echo "$as_me:$LINENO: checking for $sgemm in -lscs" >&5 22149echo $ECHO_N "checking for $sgemm in -lscs... $ECHO_C" >&6 22150if eval "test \"\${$as_ac_Lib+set}\" = set"; then 22151 echo $ECHO_N "(cached) $ECHO_C" >&6 22152else 22153 ac_check_lib_save_LIBS=$LIBS 22154LIBS="-lscs $LIBS" 22155cat >conftest.$ac_ext <<_ACEOF 22156/* confdefs.h. */ 22157_ACEOF 22158cat confdefs.h >>conftest.$ac_ext 22159cat >>conftest.$ac_ext <<_ACEOF 22160/* end confdefs.h. */ 22161 22162/* Override any gcc2 internal prototype to avoid an error. */ 22163#ifdef __cplusplus 22164extern "C" 22165#endif 22166/* We use char because int might match the return type of a gcc2 22167 builtin and then its argument prototype would still apply. */ 22168char $sgemm (); 22169#ifdef F77_DUMMY_MAIN 22170 22171# ifdef __cplusplus 22172 extern "C" 22173# endif 22174 int F77_DUMMY_MAIN() { return 1; } 22175 22176#endif 22177int 22178main () 22179{ 22180$sgemm (); 22181 ; 22182 return 0; 22183} 22184_ACEOF 22185rm -f conftest.$ac_objext conftest$ac_exeext 22186if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22187 (eval $ac_link) 2>conftest.er1 22188 ac_status=$? 22189 grep -v '^ *+' conftest.er1 >conftest.err 22190 rm -f conftest.er1 22191 cat conftest.err >&5 22192 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22193 (exit $ac_status); } && 22194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22196 (eval $ac_try) 2>&5 22197 ac_status=$? 22198 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22199 (exit $ac_status); }; } && 22200 { ac_try='test -s conftest$ac_exeext' 22201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22202 (eval $ac_try) 2>&5 22203 ac_status=$? 22204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22205 (exit $ac_status); }; }; then 22206 eval "$as_ac_Lib=yes" 22207else 22208 echo "$as_me: failed program was:" >&5 22209sed 's/^/| /' conftest.$ac_ext >&5 22210 22211eval "$as_ac_Lib=no" 22212fi 22213rm -f conftest.err conftest.$ac_objext \ 22214 conftest$ac_exeext conftest.$ac_ext 22215LIBS=$ac_check_lib_save_LIBS 22216fi 22217echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 22218echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 22219if test `eval echo '${'$as_ac_Lib'}'` = yes; then 22220 acx_blas_ok=yes; BLAS_LIBS="-lscs" 22221fi 22222 22223fi 22224 22225# BLAS in SGIMATH library? 22226if test $acx_blas_ok = no; then 22227 as_ac_Lib=`echo "ac_cv_lib_complib.sgimath_$sgemm" | $as_tr_sh` 22228echo "$as_me:$LINENO: checking for $sgemm in -lcomplib.sgimath" >&5 22229echo $ECHO_N "checking for $sgemm in -lcomplib.sgimath... $ECHO_C" >&6 22230if eval "test \"\${$as_ac_Lib+set}\" = set"; then 22231 echo $ECHO_N "(cached) $ECHO_C" >&6 22232else 22233 ac_check_lib_save_LIBS=$LIBS 22234LIBS="-lcomplib.sgimath $LIBS" 22235cat >conftest.$ac_ext <<_ACEOF 22236/* confdefs.h. */ 22237_ACEOF 22238cat confdefs.h >>conftest.$ac_ext 22239cat >>conftest.$ac_ext <<_ACEOF 22240/* end confdefs.h. */ 22241 22242/* Override any gcc2 internal prototype to avoid an error. */ 22243#ifdef __cplusplus 22244extern "C" 22245#endif 22246/* We use char because int might match the return type of a gcc2 22247 builtin and then its argument prototype would still apply. */ 22248char $sgemm (); 22249#ifdef F77_DUMMY_MAIN 22250 22251# ifdef __cplusplus 22252 extern "C" 22253# endif 22254 int F77_DUMMY_MAIN() { return 1; } 22255 22256#endif 22257int 22258main () 22259{ 22260$sgemm (); 22261 ; 22262 return 0; 22263} 22264_ACEOF 22265rm -f conftest.$ac_objext conftest$ac_exeext 22266if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22267 (eval $ac_link) 2>conftest.er1 22268 ac_status=$? 22269 grep -v '^ *+' conftest.er1 >conftest.err 22270 rm -f conftest.er1 22271 cat conftest.err >&5 22272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22273 (exit $ac_status); } && 22274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22276 (eval $ac_try) 2>&5 22277 ac_status=$? 22278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22279 (exit $ac_status); }; } && 22280 { ac_try='test -s conftest$ac_exeext' 22281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22282 (eval $ac_try) 2>&5 22283 ac_status=$? 22284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22285 (exit $ac_status); }; }; then 22286 eval "$as_ac_Lib=yes" 22287else 22288 echo "$as_me: failed program was:" >&5 22289sed 's/^/| /' conftest.$ac_ext >&5 22290 22291eval "$as_ac_Lib=no" 22292fi 22293rm -f conftest.err conftest.$ac_objext \ 22294 conftest$ac_exeext conftest.$ac_ext 22295LIBS=$ac_check_lib_save_LIBS 22296fi 22297echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 22298echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 22299if test `eval echo '${'$as_ac_Lib'}'` = yes; then 22300 acx_blas_ok=yes; BLAS_LIBS="-lcomplib.sgimath" 22301fi 22302 22303fi 22304 22305# BLAS in IBM ESSL library? (requires generic BLAS lib, too) 22306if test $acx_blas_ok = no; then 22307 as_ac_Lib=`echo "ac_cv_lib_blas_$sgemm" | $as_tr_sh` 22308echo "$as_me:$LINENO: checking for $sgemm in -lblas" >&5 22309echo $ECHO_N "checking for $sgemm in -lblas... $ECHO_C" >&6 22310if eval "test \"\${$as_ac_Lib+set}\" = set"; then 22311 echo $ECHO_N "(cached) $ECHO_C" >&6 22312else 22313 ac_check_lib_save_LIBS=$LIBS 22314LIBS="-lblas $LIBS" 22315cat >conftest.$ac_ext <<_ACEOF 22316/* confdefs.h. */ 22317_ACEOF 22318cat confdefs.h >>conftest.$ac_ext 22319cat >>conftest.$ac_ext <<_ACEOF 22320/* end confdefs.h. */ 22321 22322/* Override any gcc2 internal prototype to avoid an error. */ 22323#ifdef __cplusplus 22324extern "C" 22325#endif 22326/* We use char because int might match the return type of a gcc2 22327 builtin and then its argument prototype would still apply. */ 22328char $sgemm (); 22329#ifdef F77_DUMMY_MAIN 22330 22331# ifdef __cplusplus 22332 extern "C" 22333# endif 22334 int F77_DUMMY_MAIN() { return 1; } 22335 22336#endif 22337int 22338main () 22339{ 22340$sgemm (); 22341 ; 22342 return 0; 22343} 22344_ACEOF 22345rm -f conftest.$ac_objext conftest$ac_exeext 22346if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22347 (eval $ac_link) 2>conftest.er1 22348 ac_status=$? 22349 grep -v '^ *+' conftest.er1 >conftest.err 22350 rm -f conftest.er1 22351 cat conftest.err >&5 22352 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22353 (exit $ac_status); } && 22354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22356 (eval $ac_try) 2>&5 22357 ac_status=$? 22358 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22359 (exit $ac_status); }; } && 22360 { ac_try='test -s conftest$ac_exeext' 22361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22362 (eval $ac_try) 2>&5 22363 ac_status=$? 22364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22365 (exit $ac_status); }; }; then 22366 eval "$as_ac_Lib=yes" 22367else 22368 echo "$as_me: failed program was:" >&5 22369sed 's/^/| /' conftest.$ac_ext >&5 22370 22371eval "$as_ac_Lib=no" 22372fi 22373rm -f conftest.err conftest.$ac_objext \ 22374 conftest$ac_exeext conftest.$ac_ext 22375LIBS=$ac_check_lib_save_LIBS 22376fi 22377echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 22378echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 22379if test `eval echo '${'$as_ac_Lib'}'` = yes; then 22380 as_ac_Lib=`echo "ac_cv_lib_essl_$sgemm" | $as_tr_sh` 22381echo "$as_me:$LINENO: checking for $sgemm in -lessl" >&5 22382echo $ECHO_N "checking for $sgemm in -lessl... $ECHO_C" >&6 22383if eval "test \"\${$as_ac_Lib+set}\" = set"; then 22384 echo $ECHO_N "(cached) $ECHO_C" >&6 22385else 22386 ac_check_lib_save_LIBS=$LIBS 22387LIBS="-lessl -lblas $FLIBS $LIBS" 22388cat >conftest.$ac_ext <<_ACEOF 22389/* confdefs.h. */ 22390_ACEOF 22391cat confdefs.h >>conftest.$ac_ext 22392cat >>conftest.$ac_ext <<_ACEOF 22393/* end confdefs.h. */ 22394 22395/* Override any gcc2 internal prototype to avoid an error. */ 22396#ifdef __cplusplus 22397extern "C" 22398#endif 22399/* We use char because int might match the return type of a gcc2 22400 builtin and then its argument prototype would still apply. */ 22401char $sgemm (); 22402#ifdef F77_DUMMY_MAIN 22403 22404# ifdef __cplusplus 22405 extern "C" 22406# endif 22407 int F77_DUMMY_MAIN() { return 1; } 22408 22409#endif 22410int 22411main () 22412{ 22413$sgemm (); 22414 ; 22415 return 0; 22416} 22417_ACEOF 22418rm -f conftest.$ac_objext conftest$ac_exeext 22419if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22420 (eval $ac_link) 2>conftest.er1 22421 ac_status=$? 22422 grep -v '^ *+' conftest.er1 >conftest.err 22423 rm -f conftest.er1 22424 cat conftest.err >&5 22425 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22426 (exit $ac_status); } && 22427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22429 (eval $ac_try) 2>&5 22430 ac_status=$? 22431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22432 (exit $ac_status); }; } && 22433 { ac_try='test -s conftest$ac_exeext' 22434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22435 (eval $ac_try) 2>&5 22436 ac_status=$? 22437 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22438 (exit $ac_status); }; }; then 22439 eval "$as_ac_Lib=yes" 22440else 22441 echo "$as_me: failed program was:" >&5 22442sed 's/^/| /' conftest.$ac_ext >&5 22443 22444eval "$as_ac_Lib=no" 22445fi 22446rm -f conftest.err conftest.$ac_objext \ 22447 conftest$ac_exeext conftest.$ac_ext 22448LIBS=$ac_check_lib_save_LIBS 22449fi 22450echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 22451echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 22452if test `eval echo '${'$as_ac_Lib'}'` = yes; then 22453 acx_blas_ok=yes; BLAS_LIBS="-lessl -lblas" 22454fi 22455 22456fi 22457 22458fi 22459 22460# Generic BLAS library? 22461if test $acx_blas_ok = no; then 22462 as_ac_Lib=`echo "ac_cv_lib_blas_$sgemm" | $as_tr_sh` 22463echo "$as_me:$LINENO: checking for $sgemm in -lblas" >&5 22464echo $ECHO_N "checking for $sgemm in -lblas... $ECHO_C" >&6 22465if eval "test \"\${$as_ac_Lib+set}\" = set"; then 22466 echo $ECHO_N "(cached) $ECHO_C" >&6 22467else 22468 ac_check_lib_save_LIBS=$LIBS 22469LIBS="-lblas $LIBS" 22470cat >conftest.$ac_ext <<_ACEOF 22471/* confdefs.h. */ 22472_ACEOF 22473cat confdefs.h >>conftest.$ac_ext 22474cat >>conftest.$ac_ext <<_ACEOF 22475/* end confdefs.h. */ 22476 22477/* Override any gcc2 internal prototype to avoid an error. */ 22478#ifdef __cplusplus 22479extern "C" 22480#endif 22481/* We use char because int might match the return type of a gcc2 22482 builtin and then its argument prototype would still apply. */ 22483char $sgemm (); 22484#ifdef F77_DUMMY_MAIN 22485 22486# ifdef __cplusplus 22487 extern "C" 22488# endif 22489 int F77_DUMMY_MAIN() { return 1; } 22490 22491#endif 22492int 22493main () 22494{ 22495$sgemm (); 22496 ; 22497 return 0; 22498} 22499_ACEOF 22500rm -f conftest.$ac_objext conftest$ac_exeext 22501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22502 (eval $ac_link) 2>conftest.er1 22503 ac_status=$? 22504 grep -v '^ *+' conftest.er1 >conftest.err 22505 rm -f conftest.er1 22506 cat conftest.err >&5 22507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22508 (exit $ac_status); } && 22509 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22511 (eval $ac_try) 2>&5 22512 ac_status=$? 22513 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22514 (exit $ac_status); }; } && 22515 { ac_try='test -s conftest$ac_exeext' 22516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22517 (eval $ac_try) 2>&5 22518 ac_status=$? 22519 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22520 (exit $ac_status); }; }; then 22521 eval "$as_ac_Lib=yes" 22522else 22523 echo "$as_me: failed program was:" >&5 22524sed 's/^/| /' conftest.$ac_ext >&5 22525 22526eval "$as_ac_Lib=no" 22527fi 22528rm -f conftest.err conftest.$ac_objext \ 22529 conftest$ac_exeext conftest.$ac_ext 22530LIBS=$ac_check_lib_save_LIBS 22531fi 22532echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 22533echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 22534if test `eval echo '${'$as_ac_Lib'}'` = yes; then 22535 acx_blas_ok=yes; BLAS_LIBS="-lblas" 22536fi 22537 22538fi 22539 22540 22541 22542LIBS="$acx_blas_save_LIBS" 22543 22544# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 22545if test x"$acx_blas_ok" = xyes; then 22546 22547cat >>confdefs.h <<\_ACEOF 22548#define HAVE_BLAS 1 22549_ACEOF 22550 22551 : 22552else 22553 acx_blas_ok=no 22554 { { echo "$as_me:$LINENO: error: BLAS library not found" >&5 22555echo "$as_me: error: BLAS library not found" >&2;} 22556 { (exit 1); exit 1; }; } 22557fi 22558 22559 22560 22561acx_lapack_ok=no 22562 22563 22564# Check whether --with-lapack or --without-lapack was given. 22565if test "${with_lapack+set}" = set; then 22566 withval="$with_lapack" 22567 22568fi; 22569case $with_lapack in 22570 yes | "") ;; 22571 no) acx_lapack_ok=disable ;; 22572 -* | */* | *.a | *.so | *.so.* | *.o) LAPACK_LIBS="$with_lapack" ;; 22573 *) LAPACK_LIBS="-l$with_lapack" ;; 22574esac 22575 22576# Get fortran linker name of LAPACK function to check for. 22577ac_ext=f 22578ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 22579ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22580ac_compiler_gnu=$ac_cv_f77_compiler_gnu 22581case $ac_cv_f77_mangling in 22582 upper*) ac_val="CHEEV" ;; 22583 lower*) ac_val="cheev" ;; 22584 *) ac_val="unknown" ;; 22585esac 22586case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac 22587 22588cheev="$ac_val" 22589 22590ac_ext=c 22591ac_cpp='$CPP $CPPFLAGS' 22592ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22593ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22594ac_compiler_gnu=$ac_cv_c_compiler_gnu 22595 22596 22597# We cannot use LAPACK if BLAS is not found 22598if test "x$acx_blas_ok" != xyes; then 22599 acx_lapack_ok=noblas 22600fi 22601 22602# First, check LAPACK_LIBS environment variable 22603if test "x$LAPACK_LIBS" != x; then 22604 save_LIBS="$LIBS"; LIBS="$LAPACK_LIBS $BLAS_LIBS $LIBS $FLIBS" 22605 echo "$as_me:$LINENO: checking for $cheev in $LAPACK_LIBS" >&5 22606echo $ECHO_N "checking for $cheev in $LAPACK_LIBS... $ECHO_C" >&6 22607 cat >conftest.$ac_ext <<_ACEOF 22608/* confdefs.h. */ 22609_ACEOF 22610cat confdefs.h >>conftest.$ac_ext 22611cat >>conftest.$ac_ext <<_ACEOF 22612/* end confdefs.h. */ 22613 22614/* Override any gcc2 internal prototype to avoid an error. */ 22615#ifdef __cplusplus 22616extern "C" 22617#endif 22618/* We use char because int might match the return type of a gcc2 22619 builtin and then its argument prototype would still apply. */ 22620char $cheev (); 22621#ifdef F77_DUMMY_MAIN 22622 22623# ifdef __cplusplus 22624 extern "C" 22625# endif 22626 int F77_DUMMY_MAIN() { return 1; } 22627 22628#endif 22629int 22630main () 22631{ 22632$cheev (); 22633 ; 22634 return 0; 22635} 22636_ACEOF 22637rm -f conftest.$ac_objext conftest$ac_exeext 22638if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22639 (eval $ac_link) 2>conftest.er1 22640 ac_status=$? 22641 grep -v '^ *+' conftest.er1 >conftest.err 22642 rm -f conftest.er1 22643 cat conftest.err >&5 22644 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22645 (exit $ac_status); } && 22646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22648 (eval $ac_try) 2>&5 22649 ac_status=$? 22650 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22651 (exit $ac_status); }; } && 22652 { ac_try='test -s conftest$ac_exeext' 22653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22654 (eval $ac_try) 2>&5 22655 ac_status=$? 22656 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22657 (exit $ac_status); }; }; then 22658 acx_lapack_ok=yes 22659else 22660 echo "$as_me: failed program was:" >&5 22661sed 's/^/| /' conftest.$ac_ext >&5 22662 22663LAPACK_LIBS="" 22664fi 22665rm -f conftest.err conftest.$ac_objext \ 22666 conftest$ac_exeext conftest.$ac_ext 22667 echo "$as_me:$LINENO: result: $acx_lapack_ok" >&5 22668echo "${ECHO_T}$acx_lapack_ok" >&6 22669 LIBS="$save_LIBS" 22670 if test acx_lapack_ok = no; then 22671 LAPACK_LIBS="" 22672 fi 22673fi 22674 22675# LAPACK linked to by default? (is sometimes included in BLAS lib) 22676if test $acx_lapack_ok = no; then 22677 save_LIBS="$LIBS"; LIBS="$LIBS $BLAS_LIBS $FLIBS" 22678 as_ac_var=`echo "ac_cv_func_$cheev" | $as_tr_sh` 22679echo "$as_me:$LINENO: checking for $cheev" >&5 22680echo $ECHO_N "checking for $cheev... $ECHO_C" >&6 22681if eval "test \"\${$as_ac_var+set}\" = set"; then 22682 echo $ECHO_N "(cached) $ECHO_C" >&6 22683else 22684 cat >conftest.$ac_ext <<_ACEOF 22685/* confdefs.h. */ 22686_ACEOF 22687cat confdefs.h >>conftest.$ac_ext 22688cat >>conftest.$ac_ext <<_ACEOF 22689/* end confdefs.h. */ 22690/* Define $cheev to an innocuous variant, in case <limits.h> declares $cheev. 22691 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 22692#define $cheev innocuous_$cheev 22693 22694/* System header to define __stub macros and hopefully few prototypes, 22695 which can conflict with char $cheev (); below. 22696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 22697 <limits.h> exists even on freestanding compilers. */ 22698 22699#ifdef __STDC__ 22700# include <limits.h> 22701#else 22702# include <assert.h> 22703#endif 22704 22705#undef $cheev 22706 22707/* Override any gcc2 internal prototype to avoid an error. */ 22708#ifdef __cplusplus 22709extern "C" 22710{ 22711#endif 22712/* We use char because int might match the return type of a gcc2 22713 builtin and then its argument prototype would still apply. */ 22714char $cheev (); 22715/* The GNU C library defines this for functions which it implements 22716 to always fail with ENOSYS. Some functions are actually named 22717 something starting with __ and the normal name is an alias. */ 22718#if defined (__stub_$cheev) || defined (__stub___$cheev) 22719choke me 22720#else 22721char (*f) () = $cheev; 22722#endif 22723#ifdef __cplusplus 22724} 22725#endif 22726 22727#ifdef F77_DUMMY_MAIN 22728 22729# ifdef __cplusplus 22730 extern "C" 22731# endif 22732 int F77_DUMMY_MAIN() { return 1; } 22733 22734#endif 22735int 22736main () 22737{ 22738return f != $cheev; 22739 ; 22740 return 0; 22741} 22742_ACEOF 22743rm -f conftest.$ac_objext conftest$ac_exeext 22744if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22745 (eval $ac_link) 2>conftest.er1 22746 ac_status=$? 22747 grep -v '^ *+' conftest.er1 >conftest.err 22748 rm -f conftest.er1 22749 cat conftest.err >&5 22750 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22751 (exit $ac_status); } && 22752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22754 (eval $ac_try) 2>&5 22755 ac_status=$? 22756 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22757 (exit $ac_status); }; } && 22758 { ac_try='test -s conftest$ac_exeext' 22759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22760 (eval $ac_try) 2>&5 22761 ac_status=$? 22762 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22763 (exit $ac_status); }; }; then 22764 eval "$as_ac_var=yes" 22765else 22766 echo "$as_me: failed program was:" >&5 22767sed 's/^/| /' conftest.$ac_ext >&5 22768 22769eval "$as_ac_var=no" 22770fi 22771rm -f conftest.err conftest.$ac_objext \ 22772 conftest$ac_exeext conftest.$ac_ext 22773fi 22774echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 22775echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 22776if test `eval echo '${'$as_ac_var'}'` = yes; then 22777 acx_lapack_ok=yes 22778fi 22779 22780 LIBS="$save_LIBS" 22781fi 22782 22783# Generic LAPACK library? 22784for lapack in lapack lapack_rs6k; do 22785 if test $acx_lapack_ok = no; then 22786 save_LIBS="$LIBS"; LIBS="$BLAS_LIBS $LIBS" 22787 as_ac_Lib=`echo "ac_cv_lib_$lapack''_$cheev" | $as_tr_sh` 22788echo "$as_me:$LINENO: checking for $cheev in -l$lapack" >&5 22789echo $ECHO_N "checking for $cheev in -l$lapack... $ECHO_C" >&6 22790if eval "test \"\${$as_ac_Lib+set}\" = set"; then 22791 echo $ECHO_N "(cached) $ECHO_C" >&6 22792else 22793 ac_check_lib_save_LIBS=$LIBS 22794LIBS="-l$lapack $FLIBS $LIBS" 22795cat >conftest.$ac_ext <<_ACEOF 22796/* confdefs.h. */ 22797_ACEOF 22798cat confdefs.h >>conftest.$ac_ext 22799cat >>conftest.$ac_ext <<_ACEOF 22800/* end confdefs.h. */ 22801 22802/* Override any gcc2 internal prototype to avoid an error. */ 22803#ifdef __cplusplus 22804extern "C" 22805#endif 22806/* We use char because int might match the return type of a gcc2 22807 builtin and then its argument prototype would still apply. */ 22808char $cheev (); 22809#ifdef F77_DUMMY_MAIN 22810 22811# ifdef __cplusplus 22812 extern "C" 22813# endif 22814 int F77_DUMMY_MAIN() { return 1; } 22815 22816#endif 22817int 22818main () 22819{ 22820$cheev (); 22821 ; 22822 return 0; 22823} 22824_ACEOF 22825rm -f conftest.$ac_objext conftest$ac_exeext 22826if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22827 (eval $ac_link) 2>conftest.er1 22828 ac_status=$? 22829 grep -v '^ *+' conftest.er1 >conftest.err 22830 rm -f conftest.er1 22831 cat conftest.err >&5 22832 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22833 (exit $ac_status); } && 22834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22836 (eval $ac_try) 2>&5 22837 ac_status=$? 22838 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22839 (exit $ac_status); }; } && 22840 { ac_try='test -s conftest$ac_exeext' 22841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22842 (eval $ac_try) 2>&5 22843 ac_status=$? 22844 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22845 (exit $ac_status); }; }; then 22846 eval "$as_ac_Lib=yes" 22847else 22848 echo "$as_me: failed program was:" >&5 22849sed 's/^/| /' conftest.$ac_ext >&5 22850 22851eval "$as_ac_Lib=no" 22852fi 22853rm -f conftest.err conftest.$ac_objext \ 22854 conftest$ac_exeext conftest.$ac_ext 22855LIBS=$ac_check_lib_save_LIBS 22856fi 22857echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 22858echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 22859if test `eval echo '${'$as_ac_Lib'}'` = yes; then 22860 acx_lapack_ok=yes; LAPACK_LIBS="-l$lapack" 22861fi 22862 22863 LIBS="$save_LIBS" 22864 fi 22865done 22866 22867 22868 22869# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 22870if test x"$acx_lapack_ok" = xyes; then 22871 22872cat >>confdefs.h <<\_ACEOF 22873#define HAVE_LAPACK 1 22874_ACEOF 22875 22876 : 22877else 22878 acx_lapack_ok=no 22879 { { echo "$as_me:$LINENO: error: LAPACK library not found" >&5 22880echo "$as_me: error: LAPACK library not found" >&2;} 22881 { (exit 1); exit 1; }; } 22882fi 22883 22884 22885LIBS="$LAPACK_LIBS $BLAS_LIBS $LIBS $FLIBS" 22886 22887########################################################################### 22888 22889 ac_config_files="$ac_config_files Makefile harminv.pc" 22890 22891cat >confcache <<\_ACEOF 22892# This file is a shell script that caches the results of configure 22893# tests run on this system so they can be shared between configure 22894# scripts and configure runs, see configure's option --config-cache. 22895# It is not useful on other systems. If it contains results you don't 22896# want to keep, you may remove or edit it. 22897# 22898# config.status only pays attention to the cache file if you give it 22899# the --recheck option to rerun configure. 22900# 22901# `ac_cv_env_foo' variables (set or unset) will be overridden when 22902# loading this file, other *unset* `ac_cv_foo' will be assigned the 22903# following values. 22904 22905_ACEOF 22906 22907# The following way of writing the cache mishandles newlines in values, 22908# but we know of no workaround that is simple, portable, and efficient. 22909# So, don't put newlines in cache variables' values. 22910# Ultrix sh set writes to stderr and can't be redirected directly, 22911# and sets the high bit in the cache file unless we assign to the vars. 22912{ 22913 (set) 2>&1 | 22914 case `(ac_space=' '; set | grep ac_space) 2>&1` in 22915 *ac_space=\ *) 22916 # `set' does not quote correctly, so add quotes (double-quote 22917 # substitution turns \\\\ into \\, and sed turns \\ into \). 22918 sed -n \ 22919 "s/'/'\\\\''/g; 22920 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 22921 ;; 22922 *) 22923 # `set' quotes correctly as required by POSIX, so do not add quotes. 22924 sed -n \ 22925 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 22926 ;; 22927 esac; 22928} | 22929 sed ' 22930 t clear 22931 : clear 22932 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 22933 t end 22934 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 22935 : end' >>confcache 22936if diff $cache_file confcache >/dev/null 2>&1; then :; else 22937 if test -w $cache_file; then 22938 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 22939 cat confcache >$cache_file 22940 else 22941 echo "not updating unwritable cache $cache_file" 22942 fi 22943fi 22944rm -f confcache 22945 22946test "x$prefix" = xNONE && prefix=$ac_default_prefix 22947# Let make expand exec_prefix. 22948test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 22949 22950# VPATH may cause trouble with some makes, so we remove $(srcdir), 22951# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 22952# trailing colons and then remove the whole line if VPATH becomes empty 22953# (actually we leave an empty line to preserve line numbers). 22954if test "x$srcdir" = x.; then 22955 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 22956s/:*\$(srcdir):*/:/; 22957s/:*\${srcdir}:*/:/; 22958s/:*@srcdir@:*/:/; 22959s/^\([^=]*=[ ]*\):*/\1/; 22960s/:*$//; 22961s/^[^=]*=[ ]*$//; 22962}' 22963fi 22964 22965DEFS=-DHAVE_CONFIG_H 22966 22967ac_libobjs= 22968ac_ltlibobjs= 22969for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 22970 # 1. Remove the extension, and $U if already installed. 22971 ac_i=`echo "$ac_i" | 22972 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 22973 # 2. Add them. 22974 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 22975 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 22976done 22977LIBOBJS=$ac_libobjs 22978 22979LTLIBOBJS=$ac_ltlibobjs 22980 22981 22982if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 22983 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 22984Usually this means the macro was only invoked conditionally." >&5 22985echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 22986Usually this means the macro was only invoked conditionally." >&2;} 22987 { (exit 1); exit 1; }; } 22988fi 22989if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 22990 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 22991Usually this means the macro was only invoked conditionally." >&5 22992echo "$as_me: error: conditional \"AMDEP\" was never defined. 22993Usually this means the macro was only invoked conditionally." >&2;} 22994 { (exit 1); exit 1; }; } 22995fi 22996if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 22997 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 22998Usually this means the macro was only invoked conditionally." >&5 22999echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 23000Usually this means the macro was only invoked conditionally." >&2;} 23001 { (exit 1); exit 1; }; } 23002fi 23003if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 23004 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 23005Usually this means the macro was only invoked conditionally." >&5 23006echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 23007Usually this means the macro was only invoked conditionally." >&2;} 23008 { (exit 1); exit 1; }; } 23009fi 23010 23011: ${CONFIG_STATUS=./config.status} 23012ac_clean_files_save=$ac_clean_files 23013ac_clean_files="$ac_clean_files $CONFIG_STATUS" 23014{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 23015echo "$as_me: creating $CONFIG_STATUS" >&6;} 23016cat >$CONFIG_STATUS <<_ACEOF 23017#! $SHELL 23018# Generated by $as_me. 23019# Run this file to recreate the current configuration. 23020# Compiler output produced by configure, useful for debugging 23021# configure, is in config.log if it exists. 23022 23023debug=false 23024ac_cs_recheck=false 23025ac_cs_silent=false 23026SHELL=\${CONFIG_SHELL-$SHELL} 23027_ACEOF 23028 23029cat >>$CONFIG_STATUS <<\_ACEOF 23030## --------------------- ## 23031## M4sh Initialization. ## 23032## --------------------- ## 23033 23034# Be Bourne compatible 23035if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 23036 emulate sh 23037 NULLCMD=: 23038 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 23039 # is contrary to our usage. Disable this feature. 23040 alias -g '${1+"$@"}'='"$@"' 23041elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 23042 set -o posix 23043fi 23044DUALCASE=1; export DUALCASE # for MKS sh 23045 23046# Support unset when possible. 23047if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 23048 as_unset=unset 23049else 23050 as_unset=false 23051fi 23052 23053 23054# Work around bugs in pre-3.0 UWIN ksh. 23055$as_unset ENV MAIL MAILPATH 23056PS1='$ ' 23057PS2='> ' 23058PS4='+ ' 23059 23060# NLS nuisances. 23061for as_var in \ 23062 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 23063 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 23064 LC_TELEPHONE LC_TIME 23065do 23066 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 23067 eval $as_var=C; export $as_var 23068 else 23069 $as_unset $as_var 23070 fi 23071done 23072 23073# Required to use basename. 23074if expr a : '\(a\)' >/dev/null 2>&1; then 23075 as_expr=expr 23076else 23077 as_expr=false 23078fi 23079 23080if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 23081 as_basename=basename 23082else 23083 as_basename=false 23084fi 23085 23086 23087# Name of the executable. 23088as_me=`$as_basename "$0" || 23089$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 23090 X"$0" : 'X\(//\)$' \| \ 23091 X"$0" : 'X\(/\)$' \| \ 23092 . : '\(.\)' 2>/dev/null || 23093echo X/"$0" | 23094 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 23095 /^X\/\(\/\/\)$/{ s//\1/; q; } 23096 /^X\/\(\/\).*/{ s//\1/; q; } 23097 s/.*/./; q'` 23098 23099 23100# PATH needs CR, and LINENO needs CR and PATH. 23101# Avoid depending upon Character Ranges. 23102as_cr_letters='abcdefghijklmnopqrstuvwxyz' 23103as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 23104as_cr_Letters=$as_cr_letters$as_cr_LETTERS 23105as_cr_digits='0123456789' 23106as_cr_alnum=$as_cr_Letters$as_cr_digits 23107 23108# The user is always right. 23109if test "${PATH_SEPARATOR+set}" != set; then 23110 echo "#! /bin/sh" >conf$$.sh 23111 echo "exit 0" >>conf$$.sh 23112 chmod +x conf$$.sh 23113 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 23114 PATH_SEPARATOR=';' 23115 else 23116 PATH_SEPARATOR=: 23117 fi 23118 rm -f conf$$.sh 23119fi 23120 23121 23122 as_lineno_1=$LINENO 23123 as_lineno_2=$LINENO 23124 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 23125 test "x$as_lineno_1" != "x$as_lineno_2" && 23126 test "x$as_lineno_3" = "x$as_lineno_2" || { 23127 # Find who we are. Look in the path if we contain no path at all 23128 # relative or not. 23129 case $0 in 23130 *[\\/]* ) as_myself=$0 ;; 23131 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23132for as_dir in $PATH 23133do 23134 IFS=$as_save_IFS 23135 test -z "$as_dir" && as_dir=. 23136 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 23137done 23138 23139 ;; 23140 esac 23141 # We did not find ourselves, most probably we were run as `sh COMMAND' 23142 # in which case we are not to be found in the path. 23143 if test "x$as_myself" = x; then 23144 as_myself=$0 23145 fi 23146 if test ! -f "$as_myself"; then 23147 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 23148echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 23149 { (exit 1); exit 1; }; } 23150 fi 23151 case $CONFIG_SHELL in 23152 '') 23153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23154for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 23155do 23156 IFS=$as_save_IFS 23157 test -z "$as_dir" && as_dir=. 23158 for as_base in sh bash ksh sh5; do 23159 case $as_dir in 23160 /*) 23161 if ("$as_dir/$as_base" -c ' 23162 as_lineno_1=$LINENO 23163 as_lineno_2=$LINENO 23164 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 23165 test "x$as_lineno_1" != "x$as_lineno_2" && 23166 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 23167 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 23168 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 23169 CONFIG_SHELL=$as_dir/$as_base 23170 export CONFIG_SHELL 23171 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 23172 fi;; 23173 esac 23174 done 23175done 23176;; 23177 esac 23178 23179 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 23180 # uniformly replaced by the line number. The first 'sed' inserts a 23181 # line-number line before each line; the second 'sed' does the real 23182 # work. The second script uses 'N' to pair each line-number line 23183 # with the numbered line, and appends trailing '-' during 23184 # substitution so that $LINENO is not a special case at line end. 23185 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 23186 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 23187 sed '=' <$as_myself | 23188 sed ' 23189 N 23190 s,$,-, 23191 : loop 23192 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 23193 t loop 23194 s,-$,, 23195 s,^['$as_cr_digits']*\n,, 23196 ' >$as_me.lineno && 23197 chmod +x $as_me.lineno || 23198 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 23199echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 23200 { (exit 1); exit 1; }; } 23201 23202 # Don't try to exec as it changes $[0], causing all sort of problems 23203 # (the dirname of $[0] is not the place where we might find the 23204 # original and so on. Autoconf is especially sensible to this). 23205 . ./$as_me.lineno 23206 # Exit status is that of the last command. 23207 exit 23208} 23209 23210 23211case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 23212 *c*,-n*) ECHO_N= ECHO_C=' 23213' ECHO_T=' ' ;; 23214 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 23215 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 23216esac 23217 23218if expr a : '\(a\)' >/dev/null 2>&1; then 23219 as_expr=expr 23220else 23221 as_expr=false 23222fi 23223 23224rm -f conf$$ conf$$.exe conf$$.file 23225echo >conf$$.file 23226if ln -s conf$$.file conf$$ 2>/dev/null; then 23227 # We could just check for DJGPP; but this test a) works b) is more generic 23228 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 23229 if test -f conf$$.exe; then 23230 # Don't use ln at all; we don't have any links 23231 as_ln_s='cp -p' 23232 else 23233 as_ln_s='ln -s' 23234 fi 23235elif ln conf$$.file conf$$ 2>/dev/null; then 23236 as_ln_s=ln 23237else 23238 as_ln_s='cp -p' 23239fi 23240rm -f conf$$ conf$$.exe conf$$.file 23241 23242if mkdir -p . 2>/dev/null; then 23243 as_mkdir_p=: 23244else 23245 test -d ./-p && rmdir ./-p 23246 as_mkdir_p=false 23247fi 23248 23249as_executable_p="test -f" 23250 23251# Sed expression to map a string onto a valid CPP name. 23252as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 23253 23254# Sed expression to map a string onto a valid variable name. 23255as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 23256 23257 23258# IFS 23259# We need space, tab and new line, in precisely that order. 23260as_nl=' 23261' 23262IFS=" $as_nl" 23263 23264# CDPATH. 23265$as_unset CDPATH 23266 23267exec 6>&1 23268 23269# Open the log real soon, to keep \$[0] and so on meaningful, and to 23270# report actual input values of CONFIG_FILES etc. instead of their 23271# values after options handling. Logging --version etc. is OK. 23272exec 5>>config.log 23273{ 23274 echo 23275 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 23276## Running $as_me. ## 23277_ASBOX 23278} >&5 23279cat >&5 <<_CSEOF 23280 23281This file was extended by harminv $as_me 1.3.1, which was 23282generated by GNU Autoconf 2.59. Invocation command line was 23283 23284 CONFIG_FILES = $CONFIG_FILES 23285 CONFIG_HEADERS = $CONFIG_HEADERS 23286 CONFIG_LINKS = $CONFIG_LINKS 23287 CONFIG_COMMANDS = $CONFIG_COMMANDS 23288 $ $0 $@ 23289 23290_CSEOF 23291echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 23292echo >&5 23293_ACEOF 23294 23295# Files that config.status was made for. 23296if test -n "$ac_config_files"; then 23297 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 23298fi 23299 23300if test -n "$ac_config_headers"; then 23301 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 23302fi 23303 23304if test -n "$ac_config_links"; then 23305 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 23306fi 23307 23308if test -n "$ac_config_commands"; then 23309 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 23310fi 23311 23312cat >>$CONFIG_STATUS <<\_ACEOF 23313 23314ac_cs_usage="\ 23315\`$as_me' instantiates files from templates according to the 23316current configuration. 23317 23318Usage: $0 [OPTIONS] [FILE]... 23319 23320 -h, --help print this help, then exit 23321 -V, --version print version number, then exit 23322 -q, --quiet do not print progress messages 23323 -d, --debug don't remove temporary files 23324 --recheck update $as_me by reconfiguring in the same conditions 23325 --file=FILE[:TEMPLATE] 23326 instantiate the configuration file FILE 23327 --header=FILE[:TEMPLATE] 23328 instantiate the configuration header FILE 23329 23330Configuration files: 23331$config_files 23332 23333Configuration headers: 23334$config_headers 23335 23336Configuration commands: 23337$config_commands 23338 23339Report bugs to <bug-autoconf@gnu.org>." 23340_ACEOF 23341 23342cat >>$CONFIG_STATUS <<_ACEOF 23343ac_cs_version="\\ 23344harminv config.status 1.3.1 23345configured by $0, generated by GNU Autoconf 2.59, 23346 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 23347 23348Copyright (C) 2003 Free Software Foundation, Inc. 23349This config.status script is free software; the Free Software Foundation 23350gives unlimited permission to copy, distribute and modify it." 23351srcdir=$srcdir 23352INSTALL="$INSTALL" 23353_ACEOF 23354 23355cat >>$CONFIG_STATUS <<\_ACEOF 23356# If no file are specified by the user, then we need to provide default 23357# value. By we need to know if files were specified by the user. 23358ac_need_defaults=: 23359while test $# != 0 23360do 23361 case $1 in 23362 --*=*) 23363 ac_option=`expr "x$1" : 'x\([^=]*\)='` 23364 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 23365 ac_shift=: 23366 ;; 23367 -*) 23368 ac_option=$1 23369 ac_optarg=$2 23370 ac_shift=shift 23371 ;; 23372 *) # This is not an option, so the user has probably given explicit 23373 # arguments. 23374 ac_option=$1 23375 ac_need_defaults=false;; 23376 esac 23377 23378 case $ac_option in 23379 # Handling of the options. 23380_ACEOF 23381cat >>$CONFIG_STATUS <<\_ACEOF 23382 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 23383 ac_cs_recheck=: ;; 23384 --version | --vers* | -V ) 23385 echo "$ac_cs_version"; exit 0 ;; 23386 --he | --h) 23387 # Conflict between --help and --header 23388 { { echo "$as_me:$LINENO: error: ambiguous option: $1 23389Try \`$0 --help' for more information." >&5 23390echo "$as_me: error: ambiguous option: $1 23391Try \`$0 --help' for more information." >&2;} 23392 { (exit 1); exit 1; }; };; 23393 --help | --hel | -h ) 23394 echo "$ac_cs_usage"; exit 0 ;; 23395 --debug | --d* | -d ) 23396 debug=: ;; 23397 --file | --fil | --fi | --f ) 23398 $ac_shift 23399 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 23400 ac_need_defaults=false;; 23401 --header | --heade | --head | --hea ) 23402 $ac_shift 23403 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 23404 ac_need_defaults=false;; 23405 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 23406 | -silent | --silent | --silen | --sile | --sil | --si | --s) 23407 ac_cs_silent=: ;; 23408 23409 # This is an error. 23410 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 23411Try \`$0 --help' for more information." >&5 23412echo "$as_me: error: unrecognized option: $1 23413Try \`$0 --help' for more information." >&2;} 23414 { (exit 1); exit 1; }; } ;; 23415 23416 *) ac_config_targets="$ac_config_targets $1" ;; 23417 23418 esac 23419 shift 23420done 23421 23422ac_configure_extra_args= 23423 23424if $ac_cs_silent; then 23425 exec 6>/dev/null 23426 ac_configure_extra_args="$ac_configure_extra_args --silent" 23427fi 23428 23429_ACEOF 23430cat >>$CONFIG_STATUS <<_ACEOF 23431if \$ac_cs_recheck; then 23432 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 23433 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 23434fi 23435 23436_ACEOF 23437 23438cat >>$CONFIG_STATUS <<_ACEOF 23439# 23440# INIT-COMMANDS section. 23441# 23442 23443AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 23444 23445_ACEOF 23446 23447 23448 23449cat >>$CONFIG_STATUS <<\_ACEOF 23450for ac_config_target in $ac_config_targets 23451do 23452 case "$ac_config_target" in 23453 # Handling of arguments. 23454 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 23455 "harminv.pc" ) CONFIG_FILES="$CONFIG_FILES harminv.pc" ;; 23456 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 23457 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 23458 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 23459echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 23460 { (exit 1); exit 1; }; };; 23461 esac 23462done 23463 23464# If the user did not use the arguments to specify the items to instantiate, 23465# then the envvar interface is used. Set only those that are not. 23466# We use the long form for the default assignment because of an extremely 23467# bizarre bug on SunOS 4.1.3. 23468if $ac_need_defaults; then 23469 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 23470 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 23471 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 23472fi 23473 23474# Have a temporary directory for convenience. Make it in the build tree 23475# simply because there is no reason to put it here, and in addition, 23476# creating and moving files from /tmp can sometimes cause problems. 23477# Create a temporary directory, and hook for its removal unless debugging. 23478$debug || 23479{ 23480 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 23481 trap '{ (exit 1); exit 1; }' 1 2 13 15 23482} 23483 23484# Create a (secure) tmp directory for tmp files. 23485 23486{ 23487 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 23488 test -n "$tmp" && test -d "$tmp" 23489} || 23490{ 23491 tmp=./confstat$$-$RANDOM 23492 (umask 077 && mkdir $tmp) 23493} || 23494{ 23495 echo "$me: cannot create a temporary directory in ." >&2 23496 { (exit 1); exit 1; } 23497} 23498 23499_ACEOF 23500 23501cat >>$CONFIG_STATUS <<_ACEOF 23502 23503# 23504# CONFIG_FILES section. 23505# 23506 23507# No need to generate the scripts if there are no CONFIG_FILES. 23508# This happens for instance when ./config.status config.h 23509if test -n "\$CONFIG_FILES"; then 23510 # Protect against being on the right side of a sed subst in config.status. 23511 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 23512 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 23513s,@SHELL@,$SHELL,;t t 23514s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 23515s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 23516s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 23517s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 23518s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 23519s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 23520s,@exec_prefix@,$exec_prefix,;t t 23521s,@prefix@,$prefix,;t t 23522s,@program_transform_name@,$program_transform_name,;t t 23523s,@bindir@,$bindir,;t t 23524s,@sbindir@,$sbindir,;t t 23525s,@libexecdir@,$libexecdir,;t t 23526s,@datadir@,$datadir,;t t 23527s,@sysconfdir@,$sysconfdir,;t t 23528s,@sharedstatedir@,$sharedstatedir,;t t 23529s,@localstatedir@,$localstatedir,;t t 23530s,@libdir@,$libdir,;t t 23531s,@includedir@,$includedir,;t t 23532s,@oldincludedir@,$oldincludedir,;t t 23533s,@infodir@,$infodir,;t t 23534s,@mandir@,$mandir,;t t 23535s,@build_alias@,$build_alias,;t t 23536s,@host_alias@,$host_alias,;t t 23537s,@target_alias@,$target_alias,;t t 23538s,@DEFS@,$DEFS,;t t 23539s,@ECHO_C@,$ECHO_C,;t t 23540s,@ECHO_N@,$ECHO_N,;t t 23541s,@ECHO_T@,$ECHO_T,;t t 23542s,@LIBS@,$LIBS,;t t 23543s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 23544s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 23545s,@INSTALL_DATA@,$INSTALL_DATA,;t t 23546s,@CYGPATH_W@,$CYGPATH_W,;t t 23547s,@PACKAGE@,$PACKAGE,;t t 23548s,@VERSION@,$VERSION,;t t 23549s,@ACLOCAL@,$ACLOCAL,;t t 23550s,@AUTOCONF@,$AUTOCONF,;t t 23551s,@AUTOMAKE@,$AUTOMAKE,;t t 23552s,@AUTOHEADER@,$AUTOHEADER,;t t 23553s,@MAKEINFO@,$MAKEINFO,;t t 23554s,@install_sh@,$install_sh,;t t 23555s,@STRIP@,$STRIP,;t t 23556s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 23557s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 23558s,@mkdir_p@,$mkdir_p,;t t 23559s,@AWK@,$AWK,;t t 23560s,@SET_MAKE@,$SET_MAKE,;t t 23561s,@am__leading_dot@,$am__leading_dot,;t t 23562s,@AMTAR@,$AMTAR,;t t 23563s,@am__tar@,$am__tar,;t t 23564s,@am__untar@,$am__untar,;t t 23565s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t 23566s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t 23567s,@MAINT@,$MAINT,;t t 23568s,@SHARED_VERSION_INFO@,$SHARED_VERSION_INFO,;t t 23569s,@CC@,$CC,;t t 23570s,@CFLAGS@,$CFLAGS,;t t 23571s,@LDFLAGS@,$LDFLAGS,;t t 23572s,@CPPFLAGS@,$CPPFLAGS,;t t 23573s,@ac_ct_CC@,$ac_ct_CC,;t t 23574s,@EXEEXT@,$EXEEXT,;t t 23575s,@OBJEXT@,$OBJEXT,;t t 23576s,@DEPDIR@,$DEPDIR,;t t 23577s,@am__include@,$am__include,;t t 23578s,@am__quote@,$am__quote,;t t 23579s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 23580s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 23581s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 23582s,@CCDEPMODE@,$CCDEPMODE,;t t 23583s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t 23584s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t 23585s,@F77@,$F77,;t t 23586s,@FFLAGS@,$FFLAGS,;t t 23587s,@ac_ct_F77@,$ac_ct_F77,;t t 23588s,@FLIBS@,$FLIBS,;t t 23589s,@CPP@,$CPP,;t t 23590s,@EGREP@,$EGREP,;t t 23591s,@CXX@,$CXX,;t t 23592s,@CXXFLAGS@,$CXXFLAGS,;t t 23593s,@ac_ct_CXX@,$ac_ct_CXX,;t t 23594s,@CXXDEPMODE@,$CXXDEPMODE,;t t 23595s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t 23596s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t 23597s,@build@,$build,;t t 23598s,@build_cpu@,$build_cpu,;t t 23599s,@build_vendor@,$build_vendor,;t t 23600s,@build_os@,$build_os,;t t 23601s,@host@,$host,;t t 23602s,@host_cpu@,$host_cpu,;t t 23603s,@host_vendor@,$host_vendor,;t t 23604s,@host_os@,$host_os,;t t 23605s,@LN_S@,$LN_S,;t t 23606s,@ECHO@,$ECHO,;t t 23607s,@AR@,$AR,;t t 23608s,@ac_ct_AR@,$ac_ct_AR,;t t 23609s,@RANLIB@,$RANLIB,;t t 23610s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 23611s,@CXXCPP@,$CXXCPP,;t t 23612s,@LIBTOOL@,$LIBTOOL,;t t 23613s,@BLAS_LIBS@,$BLAS_LIBS,;t t 23614s,@LAPACK_LIBS@,$LAPACK_LIBS,;t t 23615s,@LIBOBJS@,$LIBOBJS,;t t 23616s,@LTLIBOBJS@,$LTLIBOBJS,;t t 23617CEOF 23618 23619_ACEOF 23620 23621 cat >>$CONFIG_STATUS <<\_ACEOF 23622 # Split the substitutions into bite-sized pieces for seds with 23623 # small command number limits, like on Digital OSF/1 and HP-UX. 23624 ac_max_sed_lines=48 23625 ac_sed_frag=1 # Number of current file. 23626 ac_beg=1 # First line for current file. 23627 ac_end=$ac_max_sed_lines # Line after last line for current file. 23628 ac_more_lines=: 23629 ac_sed_cmds= 23630 while $ac_more_lines; do 23631 if test $ac_beg -gt 1; then 23632 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 23633 else 23634 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 23635 fi 23636 if test ! -s $tmp/subs.frag; then 23637 ac_more_lines=false 23638 else 23639 # The purpose of the label and of the branching condition is to 23640 # speed up the sed processing (if there are no `@' at all, there 23641 # is no need to browse any of the substitutions). 23642 # These are the two extra sed commands mentioned above. 23643 (echo ':t 23644 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 23645 if test -z "$ac_sed_cmds"; then 23646 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 23647 else 23648 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 23649 fi 23650 ac_sed_frag=`expr $ac_sed_frag + 1` 23651 ac_beg=$ac_end 23652 ac_end=`expr $ac_end + $ac_max_sed_lines` 23653 fi 23654 done 23655 if test -z "$ac_sed_cmds"; then 23656 ac_sed_cmds=cat 23657 fi 23658fi # test -n "$CONFIG_FILES" 23659 23660_ACEOF 23661cat >>$CONFIG_STATUS <<\_ACEOF 23662for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 23663 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 23664 case $ac_file in 23665 - | *:- | *:-:* ) # input from stdin 23666 cat >$tmp/stdin 23667 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 23668 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 23669 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 23670 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 23671 * ) ac_file_in=$ac_file.in ;; 23672 esac 23673 23674 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 23675 ac_dir=`(dirname "$ac_file") 2>/dev/null || 23676$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23677 X"$ac_file" : 'X\(//\)[^/]' \| \ 23678 X"$ac_file" : 'X\(//\)$' \| \ 23679 X"$ac_file" : 'X\(/\)' \| \ 23680 . : '\(.\)' 2>/dev/null || 23681echo X"$ac_file" | 23682 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23683 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23684 /^X\(\/\/\)$/{ s//\1/; q; } 23685 /^X\(\/\).*/{ s//\1/; q; } 23686 s/.*/./; q'` 23687 { if $as_mkdir_p; then 23688 mkdir -p "$ac_dir" 23689 else 23690 as_dir="$ac_dir" 23691 as_dirs= 23692 while test ! -d "$as_dir"; do 23693 as_dirs="$as_dir $as_dirs" 23694 as_dir=`(dirname "$as_dir") 2>/dev/null || 23695$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23696 X"$as_dir" : 'X\(//\)[^/]' \| \ 23697 X"$as_dir" : 'X\(//\)$' \| \ 23698 X"$as_dir" : 'X\(/\)' \| \ 23699 . : '\(.\)' 2>/dev/null || 23700echo X"$as_dir" | 23701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23702 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23703 /^X\(\/\/\)$/{ s//\1/; q; } 23704 /^X\(\/\).*/{ s//\1/; q; } 23705 s/.*/./; q'` 23706 done 23707 test ! -n "$as_dirs" || mkdir $as_dirs 23708 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 23709echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 23710 { (exit 1); exit 1; }; }; } 23711 23712 ac_builddir=. 23713 23714if test "$ac_dir" != .; then 23715 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 23716 # A "../" for each directory in $ac_dir_suffix. 23717 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 23718else 23719 ac_dir_suffix= ac_top_builddir= 23720fi 23721 23722case $srcdir in 23723 .) # No --srcdir option. We are building in place. 23724 ac_srcdir=. 23725 if test -z "$ac_top_builddir"; then 23726 ac_top_srcdir=. 23727 else 23728 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 23729 fi ;; 23730 [\\/]* | ?:[\\/]* ) # Absolute path. 23731 ac_srcdir=$srcdir$ac_dir_suffix; 23732 ac_top_srcdir=$srcdir ;; 23733 *) # Relative path. 23734 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 23735 ac_top_srcdir=$ac_top_builddir$srcdir ;; 23736esac 23737 23738# Do not use `cd foo && pwd` to compute absolute paths, because 23739# the directories may not exist. 23740case `pwd` in 23741.) ac_abs_builddir="$ac_dir";; 23742*) 23743 case "$ac_dir" in 23744 .) ac_abs_builddir=`pwd`;; 23745 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 23746 *) ac_abs_builddir=`pwd`/"$ac_dir";; 23747 esac;; 23748esac 23749case $ac_abs_builddir in 23750.) ac_abs_top_builddir=${ac_top_builddir}.;; 23751*) 23752 case ${ac_top_builddir}. in 23753 .) ac_abs_top_builddir=$ac_abs_builddir;; 23754 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 23755 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 23756 esac;; 23757esac 23758case $ac_abs_builddir in 23759.) ac_abs_srcdir=$ac_srcdir;; 23760*) 23761 case $ac_srcdir in 23762 .) ac_abs_srcdir=$ac_abs_builddir;; 23763 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 23764 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 23765 esac;; 23766esac 23767case $ac_abs_builddir in 23768.) ac_abs_top_srcdir=$ac_top_srcdir;; 23769*) 23770 case $ac_top_srcdir in 23771 .) ac_abs_top_srcdir=$ac_abs_builddir;; 23772 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 23773 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 23774 esac;; 23775esac 23776 23777 23778 case $INSTALL in 23779 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 23780 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 23781 esac 23782 23783 # Let's still pretend it is `configure' which instantiates (i.e., don't 23784 # use $as_me), people would be surprised to read: 23785 # /* config.h. Generated by config.status. */ 23786 if test x"$ac_file" = x-; then 23787 configure_input= 23788 else 23789 configure_input="$ac_file. " 23790 fi 23791 configure_input=$configure_input"Generated from `echo $ac_file_in | 23792 sed 's,.*/,,'` by configure." 23793 23794 # First look for the input files in the build tree, otherwise in the 23795 # src tree. 23796 ac_file_inputs=`IFS=: 23797 for f in $ac_file_in; do 23798 case $f in 23799 -) echo $tmp/stdin ;; 23800 [\\/$]*) 23801 # Absolute (can't be DOS-style, as IFS=:) 23802 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 23803echo "$as_me: error: cannot find input file: $f" >&2;} 23804 { (exit 1); exit 1; }; } 23805 echo "$f";; 23806 *) # Relative 23807 if test -f "$f"; then 23808 # Build tree 23809 echo "$f" 23810 elif test -f "$srcdir/$f"; then 23811 # Source tree 23812 echo "$srcdir/$f" 23813 else 23814 # /dev/null tree 23815 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 23816echo "$as_me: error: cannot find input file: $f" >&2;} 23817 { (exit 1); exit 1; }; } 23818 fi;; 23819 esac 23820 done` || { (exit 1); exit 1; } 23821 23822 if test x"$ac_file" != x-; then 23823 { echo "$as_me:$LINENO: creating $ac_file" >&5 23824echo "$as_me: creating $ac_file" >&6;} 23825 rm -f "$ac_file" 23826 fi 23827_ACEOF 23828cat >>$CONFIG_STATUS <<_ACEOF 23829 sed "$ac_vpsub 23830$extrasub 23831_ACEOF 23832cat >>$CONFIG_STATUS <<\_ACEOF 23833:t 23834/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23835s,@configure_input@,$configure_input,;t t 23836s,@srcdir@,$ac_srcdir,;t t 23837s,@abs_srcdir@,$ac_abs_srcdir,;t t 23838s,@top_srcdir@,$ac_top_srcdir,;t t 23839s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 23840s,@builddir@,$ac_builddir,;t t 23841s,@abs_builddir@,$ac_abs_builddir,;t t 23842s,@top_builddir@,$ac_top_builddir,;t t 23843s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 23844s,@INSTALL@,$ac_INSTALL,;t t 23845" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 23846 rm -f $tmp/stdin 23847 if test x"$ac_file" != x-; then 23848 mv $tmp/out $ac_file 23849 else 23850 cat $tmp/out 23851 rm -f $tmp/out 23852 fi 23853 23854done 23855_ACEOF 23856cat >>$CONFIG_STATUS <<\_ACEOF 23857 23858# 23859# CONFIG_HEADER section. 23860# 23861 23862# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 23863# NAME is the cpp macro being defined and VALUE is the value it is being given. 23864# 23865# ac_d sets the value in "#define NAME VALUE" lines. 23866ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 23867ac_dB='[ ].*$,\1#\2' 23868ac_dC=' ' 23869ac_dD=',;t' 23870# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 23871ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 23872ac_uB='$,\1#\2define\3' 23873ac_uC=' ' 23874ac_uD=',;t' 23875 23876for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 23877 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 23878 case $ac_file in 23879 - | *:- | *:-:* ) # input from stdin 23880 cat >$tmp/stdin 23881 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 23882 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 23883 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 23884 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 23885 * ) ac_file_in=$ac_file.in ;; 23886 esac 23887 23888 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 23889echo "$as_me: creating $ac_file" >&6;} 23890 23891 # First look for the input files in the build tree, otherwise in the 23892 # src tree. 23893 ac_file_inputs=`IFS=: 23894 for f in $ac_file_in; do 23895 case $f in 23896 -) echo $tmp/stdin ;; 23897 [\\/$]*) 23898 # Absolute (can't be DOS-style, as IFS=:) 23899 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 23900echo "$as_me: error: cannot find input file: $f" >&2;} 23901 { (exit 1); exit 1; }; } 23902 # Do quote $f, to prevent DOS paths from being IFS'd. 23903 echo "$f";; 23904 *) # Relative 23905 if test -f "$f"; then 23906 # Build tree 23907 echo "$f" 23908 elif test -f "$srcdir/$f"; then 23909 # Source tree 23910 echo "$srcdir/$f" 23911 else 23912 # /dev/null tree 23913 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 23914echo "$as_me: error: cannot find input file: $f" >&2;} 23915 { (exit 1); exit 1; }; } 23916 fi;; 23917 esac 23918 done` || { (exit 1); exit 1; } 23919 # Remove the trailing spaces. 23920 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 23921 23922_ACEOF 23923 23924# Transform confdefs.h into two sed scripts, `conftest.defines' and 23925# `conftest.undefs', that substitutes the proper values into 23926# config.h.in to produce config.h. The first handles `#define' 23927# templates, and the second `#undef' templates. 23928# And first: Protect against being on the right side of a sed subst in 23929# config.status. Protect against being in an unquoted here document 23930# in config.status. 23931rm -f conftest.defines conftest.undefs 23932# Using a here document instead of a string reduces the quoting nightmare. 23933# Putting comments in sed scripts is not portable. 23934# 23935# `end' is used to avoid that the second main sed command (meant for 23936# 0-ary CPP macros) applies to n-ary macro definitions. 23937# See the Autoconf documentation for `clear'. 23938cat >confdef2sed.sed <<\_ACEOF 23939s/[\\&,]/\\&/g 23940s,[\\$`],\\&,g 23941t clear 23942: clear 23943s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 23944t end 23945s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 23946: end 23947_ACEOF 23948# If some macros were called several times there might be several times 23949# the same #defines, which is useless. Nevertheless, we may not want to 23950# sort them, since we want the *last* AC-DEFINE to be honored. 23951uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 23952sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 23953rm -f confdef2sed.sed 23954 23955# This sed command replaces #undef with comments. This is necessary, for 23956# example, in the case of _POSIX_SOURCE, which is predefined and required 23957# on some systems where configure will not decide to define it. 23958cat >>conftest.undefs <<\_ACEOF 23959s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 23960_ACEOF 23961 23962# Break up conftest.defines because some shells have a limit on the size 23963# of here documents, and old seds have small limits too (100 cmds). 23964echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 23965echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 23966echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 23967echo ' :' >>$CONFIG_STATUS 23968rm -f conftest.tail 23969while grep . conftest.defines >/dev/null 23970do 23971 # Write a limited-size here document to $tmp/defines.sed. 23972 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 23973 # Speed up: don't consider the non `#define' lines. 23974 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 23975 # Work around the forget-to-reset-the-flag bug. 23976 echo 't clr' >>$CONFIG_STATUS 23977 echo ': clr' >>$CONFIG_STATUS 23978 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 23979 echo 'CEOF 23980 sed -f $tmp/defines.sed $tmp/in >$tmp/out 23981 rm -f $tmp/in 23982 mv $tmp/out $tmp/in 23983' >>$CONFIG_STATUS 23984 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 23985 rm -f conftest.defines 23986 mv conftest.tail conftest.defines 23987done 23988rm -f conftest.defines 23989echo ' fi # grep' >>$CONFIG_STATUS 23990echo >>$CONFIG_STATUS 23991 23992# Break up conftest.undefs because some shells have a limit on the size 23993# of here documents, and old seds have small limits too (100 cmds). 23994echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 23995rm -f conftest.tail 23996while grep . conftest.undefs >/dev/null 23997do 23998 # Write a limited-size here document to $tmp/undefs.sed. 23999 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 24000 # Speed up: don't consider the non `#undef' 24001 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 24002 # Work around the forget-to-reset-the-flag bug. 24003 echo 't clr' >>$CONFIG_STATUS 24004 echo ': clr' >>$CONFIG_STATUS 24005 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 24006 echo 'CEOF 24007 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 24008 rm -f $tmp/in 24009 mv $tmp/out $tmp/in 24010' >>$CONFIG_STATUS 24011 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 24012 rm -f conftest.undefs 24013 mv conftest.tail conftest.undefs 24014done 24015rm -f conftest.undefs 24016 24017cat >>$CONFIG_STATUS <<\_ACEOF 24018 # Let's still pretend it is `configure' which instantiates (i.e., don't 24019 # use $as_me), people would be surprised to read: 24020 # /* config.h. Generated by config.status. */ 24021 if test x"$ac_file" = x-; then 24022 echo "/* Generated by configure. */" >$tmp/config.h 24023 else 24024 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 24025 fi 24026 cat $tmp/in >>$tmp/config.h 24027 rm -f $tmp/in 24028 if test x"$ac_file" != x-; then 24029 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 24030 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 24031echo "$as_me: $ac_file is unchanged" >&6;} 24032 else 24033 ac_dir=`(dirname "$ac_file") 2>/dev/null || 24034$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24035 X"$ac_file" : 'X\(//\)[^/]' \| \ 24036 X"$ac_file" : 'X\(//\)$' \| \ 24037 X"$ac_file" : 'X\(/\)' \| \ 24038 . : '\(.\)' 2>/dev/null || 24039echo X"$ac_file" | 24040 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 24041 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 24042 /^X\(\/\/\)$/{ s//\1/; q; } 24043 /^X\(\/\).*/{ s//\1/; q; } 24044 s/.*/./; q'` 24045 { if $as_mkdir_p; then 24046 mkdir -p "$ac_dir" 24047 else 24048 as_dir="$ac_dir" 24049 as_dirs= 24050 while test ! -d "$as_dir"; do 24051 as_dirs="$as_dir $as_dirs" 24052 as_dir=`(dirname "$as_dir") 2>/dev/null || 24053$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24054 X"$as_dir" : 'X\(//\)[^/]' \| \ 24055 X"$as_dir" : 'X\(//\)$' \| \ 24056 X"$as_dir" : 'X\(/\)' \| \ 24057 . : '\(.\)' 2>/dev/null || 24058echo X"$as_dir" | 24059 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 24060 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 24061 /^X\(\/\/\)$/{ s//\1/; q; } 24062 /^X\(\/\).*/{ s//\1/; q; } 24063 s/.*/./; q'` 24064 done 24065 test ! -n "$as_dirs" || mkdir $as_dirs 24066 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 24067echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 24068 { (exit 1); exit 1; }; }; } 24069 24070 rm -f $ac_file 24071 mv $tmp/config.h $ac_file 24072 fi 24073 else 24074 cat $tmp/config.h 24075 rm -f $tmp/config.h 24076 fi 24077# Compute $ac_file's index in $config_headers. 24078_am_stamp_count=1 24079for _am_header in $config_headers :; do 24080 case $_am_header in 24081 $ac_file | $ac_file:* ) 24082 break ;; 24083 * ) 24084 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 24085 esac 24086done 24087echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || 24088$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24089 X$ac_file : 'X\(//\)[^/]' \| \ 24090 X$ac_file : 'X\(//\)$' \| \ 24091 X$ac_file : 'X\(/\)' \| \ 24092 . : '\(.\)' 2>/dev/null || 24093echo X$ac_file | 24094 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 24095 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 24096 /^X\(\/\/\)$/{ s//\1/; q; } 24097 /^X\(\/\).*/{ s//\1/; q; } 24098 s/.*/./; q'`/stamp-h$_am_stamp_count 24099done 24100_ACEOF 24101cat >>$CONFIG_STATUS <<\_ACEOF 24102 24103# 24104# CONFIG_COMMANDS section. 24105# 24106for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 24107 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 24108 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 24109 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 24110$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24111 X"$ac_dest" : 'X\(//\)[^/]' \| \ 24112 X"$ac_dest" : 'X\(//\)$' \| \ 24113 X"$ac_dest" : 'X\(/\)' \| \ 24114 . : '\(.\)' 2>/dev/null || 24115echo X"$ac_dest" | 24116 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 24117 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 24118 /^X\(\/\/\)$/{ s//\1/; q; } 24119 /^X\(\/\).*/{ s//\1/; q; } 24120 s/.*/./; q'` 24121 { if $as_mkdir_p; then 24122 mkdir -p "$ac_dir" 24123 else 24124 as_dir="$ac_dir" 24125 as_dirs= 24126 while test ! -d "$as_dir"; do 24127 as_dirs="$as_dir $as_dirs" 24128 as_dir=`(dirname "$as_dir") 2>/dev/null || 24129$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24130 X"$as_dir" : 'X\(//\)[^/]' \| \ 24131 X"$as_dir" : 'X\(//\)$' \| \ 24132 X"$as_dir" : 'X\(/\)' \| \ 24133 . : '\(.\)' 2>/dev/null || 24134echo X"$as_dir" | 24135 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 24136 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 24137 /^X\(\/\/\)$/{ s//\1/; q; } 24138 /^X\(\/\).*/{ s//\1/; q; } 24139 s/.*/./; q'` 24140 done 24141 test ! -n "$as_dirs" || mkdir $as_dirs 24142 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 24143echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 24144 { (exit 1); exit 1; }; }; } 24145 24146 ac_builddir=. 24147 24148if test "$ac_dir" != .; then 24149 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 24150 # A "../" for each directory in $ac_dir_suffix. 24151 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 24152else 24153 ac_dir_suffix= ac_top_builddir= 24154fi 24155 24156case $srcdir in 24157 .) # No --srcdir option. We are building in place. 24158 ac_srcdir=. 24159 if test -z "$ac_top_builddir"; then 24160 ac_top_srcdir=. 24161 else 24162 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 24163 fi ;; 24164 [\\/]* | ?:[\\/]* ) # Absolute path. 24165 ac_srcdir=$srcdir$ac_dir_suffix; 24166 ac_top_srcdir=$srcdir ;; 24167 *) # Relative path. 24168 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 24169 ac_top_srcdir=$ac_top_builddir$srcdir ;; 24170esac 24171 24172# Do not use `cd foo && pwd` to compute absolute paths, because 24173# the directories may not exist. 24174case `pwd` in 24175.) ac_abs_builddir="$ac_dir";; 24176*) 24177 case "$ac_dir" in 24178 .) ac_abs_builddir=`pwd`;; 24179 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 24180 *) ac_abs_builddir=`pwd`/"$ac_dir";; 24181 esac;; 24182esac 24183case $ac_abs_builddir in 24184.) ac_abs_top_builddir=${ac_top_builddir}.;; 24185*) 24186 case ${ac_top_builddir}. in 24187 .) ac_abs_top_builddir=$ac_abs_builddir;; 24188 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 24189 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 24190 esac;; 24191esac 24192case $ac_abs_builddir in 24193.) ac_abs_srcdir=$ac_srcdir;; 24194*) 24195 case $ac_srcdir in 24196 .) ac_abs_srcdir=$ac_abs_builddir;; 24197 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 24198 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 24199 esac;; 24200esac 24201case $ac_abs_builddir in 24202.) ac_abs_top_srcdir=$ac_top_srcdir;; 24203*) 24204 case $ac_top_srcdir in 24205 .) ac_abs_top_srcdir=$ac_abs_builddir;; 24206 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 24207 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 24208 esac;; 24209esac 24210 24211 24212 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 24213echo "$as_me: executing $ac_dest commands" >&6;} 24214 case $ac_dest in 24215 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 24216 # Strip MF so we end up with the name of the file. 24217 mf=`echo "$mf" | sed -e 's/:.*$//'` 24218 # Check whether this is an Automake generated Makefile or not. 24219 # We used to match only the files named `Makefile.in', but 24220 # some people rename them; so instead we look at the file content. 24221 # Grep'ing the first line is not enough: some people post-process 24222 # each Makefile.in and add a new line on top of each file to say so. 24223 # So let's grep whole file. 24224 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 24225 dirpart=`(dirname "$mf") 2>/dev/null || 24226$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24227 X"$mf" : 'X\(//\)[^/]' \| \ 24228 X"$mf" : 'X\(//\)$' \| \ 24229 X"$mf" : 'X\(/\)' \| \ 24230 . : '\(.\)' 2>/dev/null || 24231echo X"$mf" | 24232 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 24233 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 24234 /^X\(\/\/\)$/{ s//\1/; q; } 24235 /^X\(\/\).*/{ s//\1/; q; } 24236 s/.*/./; q'` 24237 else 24238 continue 24239 fi 24240 # Extract the definition of DEPDIR, am__include, and am__quote 24241 # from the Makefile without running `make'. 24242 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 24243 test -z "$DEPDIR" && continue 24244 am__include=`sed -n 's/^am__include = //p' < "$mf"` 24245 test -z "am__include" && continue 24246 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 24247 # When using ansi2knr, U may be empty or an underscore; expand it 24248 U=`sed -n 's/^U = //p' < "$mf"` 24249 # Find all dependency output files, they are included files with 24250 # $(DEPDIR) in their names. We invoke sed twice because it is the 24251 # simplest approach to changing $(DEPDIR) to its actual value in the 24252 # expansion. 24253 for file in `sed -n " 24254 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 24255 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 24256 # Make sure the directory exists. 24257 test -f "$dirpart/$file" && continue 24258 fdir=`(dirname "$file") 2>/dev/null || 24259$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24260 X"$file" : 'X\(//\)[^/]' \| \ 24261 X"$file" : 'X\(//\)$' \| \ 24262 X"$file" : 'X\(/\)' \| \ 24263 . : '\(.\)' 2>/dev/null || 24264echo X"$file" | 24265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 24266 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 24267 /^X\(\/\/\)$/{ s//\1/; q; } 24268 /^X\(\/\).*/{ s//\1/; q; } 24269 s/.*/./; q'` 24270 { if $as_mkdir_p; then 24271 mkdir -p $dirpart/$fdir 24272 else 24273 as_dir=$dirpart/$fdir 24274 as_dirs= 24275 while test ! -d "$as_dir"; do 24276 as_dirs="$as_dir $as_dirs" 24277 as_dir=`(dirname "$as_dir") 2>/dev/null || 24278$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24279 X"$as_dir" : 'X\(//\)[^/]' \| \ 24280 X"$as_dir" : 'X\(//\)$' \| \ 24281 X"$as_dir" : 'X\(/\)' \| \ 24282 . : '\(.\)' 2>/dev/null || 24283echo X"$as_dir" | 24284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 24285 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 24286 /^X\(\/\/\)$/{ s//\1/; q; } 24287 /^X\(\/\).*/{ s//\1/; q; } 24288 s/.*/./; q'` 24289 done 24290 test ! -n "$as_dirs" || mkdir $as_dirs 24291 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 24292echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} 24293 { (exit 1); exit 1; }; }; } 24294 24295 # echo "creating $dirpart/$file" 24296 echo '# dummy' > "$dirpart/$file" 24297 done 24298done 24299 ;; 24300 esac 24301done 24302_ACEOF 24303 24304cat >>$CONFIG_STATUS <<\_ACEOF 24305 24306{ (exit 0); exit 0; } 24307_ACEOF 24308chmod +x $CONFIG_STATUS 24309ac_clean_files=$ac_clean_files_save 24310 24311 24312# configure is writing to config.log, and then calls config.status. 24313# config.status does its own redirection, appending to config.log. 24314# Unfortunately, on DOS this fails, as config.log is still kept open 24315# by configure, so config.status won't be able to write to it; its 24316# output is simply discarded. So we exec the FD to /dev/null, 24317# effectively closing config.log, so it can be properly (re)opened and 24318# appended to by config.status. When coming back to configure, we 24319# need to make the FD available again. 24320if test "$no_create" != yes; then 24321 ac_cs_success=: 24322 ac_config_status_args= 24323 test "$silent" = yes && 24324 ac_config_status_args="$ac_config_status_args --quiet" 24325 exec 5>/dev/null 24326 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 24327 exec 5>>config.log 24328 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 24329 # would make configure fail if this is the last instruction. 24330 $ac_cs_success || { (exit 1); exit 1; } 24331fi 24332 24333