configure revision efbe40ada6e76cc265b3feab7ab57db870ce0f22
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.59 for llvm 1.4. 4# 5# Report bugs to <llvmbugs@cs.uiuc.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# $LLVM_COPYRIGHT 12## --------------------- ## 13## M4sh Initialization. ## 14## --------------------- ## 15 16# Be Bourne compatible 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 18 emulate sh 19 NULLCMD=: 20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 24 set -o posix 25fi 26DUALCASE=1; export DUALCASE # for MKS sh 27 28# Support unset when possible. 29if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 30 as_unset=unset 31else 32 as_unset=false 33fi 34 35 36# Work around bugs in pre-3.0 UWIN ksh. 37$as_unset ENV MAIL MAILPATH 38PS1='$ ' 39PS2='> ' 40PS4='+ ' 41 42# NLS nuisances. 43for as_var in \ 44 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 45 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 46 LC_TELEPHONE LC_TIME 47do 48 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 49 eval $as_var=C; export $as_var 50 else 51 $as_unset $as_var 52 fi 53done 54 55# Required to use basename. 56if expr a : '\(a\)' >/dev/null 2>&1; then 57 as_expr=expr 58else 59 as_expr=false 60fi 61 62if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 63 as_basename=basename 64else 65 as_basename=false 66fi 67 68 69# Name of the executable. 70as_me=`$as_basename "$0" || 71$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 72 X"$0" : 'X\(//\)$' \| \ 73 X"$0" : 'X\(/\)$' \| \ 74 . : '\(.\)' 2>/dev/null || 75echo X/"$0" | 76 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 77 /^X\/\(\/\/\)$/{ s//\1/; q; } 78 /^X\/\(\/\).*/{ s//\1/; q; } 79 s/.*/./; q'` 80 81 82# PATH needs CR, and LINENO needs CR and PATH. 83# Avoid depending upon Character Ranges. 84as_cr_letters='abcdefghijklmnopqrstuvwxyz' 85as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 86as_cr_Letters=$as_cr_letters$as_cr_LETTERS 87as_cr_digits='0123456789' 88as_cr_alnum=$as_cr_Letters$as_cr_digits 89 90# The user is always right. 91if test "${PATH_SEPARATOR+set}" != set; then 92 echo "#! /bin/sh" >conf$$.sh 93 echo "exit 0" >>conf$$.sh 94 chmod +x conf$$.sh 95 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 96 PATH_SEPARATOR=';' 97 else 98 PATH_SEPARATOR=: 99 fi 100 rm -f conf$$.sh 101fi 102 103 104 as_lineno_1=$LINENO 105 as_lineno_2=$LINENO 106 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 107 test "x$as_lineno_1" != "x$as_lineno_2" && 108 test "x$as_lineno_3" = "x$as_lineno_2" || { 109 # Find who we are. Look in the path if we contain no path at all 110 # relative or not. 111 case $0 in 112 *[\\/]* ) as_myself=$0 ;; 113 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 114for as_dir in $PATH 115do 116 IFS=$as_save_IFS 117 test -z "$as_dir" && as_dir=. 118 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 119done 120 121 ;; 122 esac 123 # We did not find ourselves, most probably we were run as `sh COMMAND' 124 # in which case we are not to be found in the path. 125 if test "x$as_myself" = x; then 126 as_myself=$0 127 fi 128 if test ! -f "$as_myself"; then 129 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 130 { (exit 1); exit 1; }; } 131 fi 132 case $CONFIG_SHELL in 133 '') 134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 135for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 136do 137 IFS=$as_save_IFS 138 test -z "$as_dir" && as_dir=. 139 for as_base in sh bash ksh sh5; do 140 case $as_dir in 141 /*) 142 if ("$as_dir/$as_base" -c ' 143 as_lineno_1=$LINENO 144 as_lineno_2=$LINENO 145 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 146 test "x$as_lineno_1" != "x$as_lineno_2" && 147 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 148 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 149 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 150 CONFIG_SHELL=$as_dir/$as_base 151 export CONFIG_SHELL 152 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 153 fi;; 154 esac 155 done 156done 157;; 158 esac 159 160 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 161 # uniformly replaced by the line number. The first 'sed' inserts a 162 # line-number line before each line; the second 'sed' does the real 163 # work. The second script uses 'N' to pair each line-number line 164 # with the numbered line, and appends trailing '-' during 165 # substitution so that $LINENO is not a special case at line end. 166 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 167 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 168 sed '=' <$as_myself | 169 sed ' 170 N 171 s,$,-, 172 : loop 173 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 174 t loop 175 s,-$,, 176 s,^['$as_cr_digits']*\n,, 177 ' >$as_me.lineno && 178 chmod +x $as_me.lineno || 179 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 180 { (exit 1); exit 1; }; } 181 182 # Don't try to exec as it changes $[0], causing all sort of problems 183 # (the dirname of $[0] is not the place where we might find the 184 # original and so on. Autoconf is especially sensible to this). 185 . ./$as_me.lineno 186 # Exit status is that of the last command. 187 exit 188} 189 190 191case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 192 *c*,-n*) ECHO_N= ECHO_C=' 193' ECHO_T=' ' ;; 194 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 195 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 196esac 197 198if expr a : '\(a\)' >/dev/null 2>&1; then 199 as_expr=expr 200else 201 as_expr=false 202fi 203 204rm -f conf$$ conf$$.exe conf$$.file 205echo >conf$$.file 206if ln -s conf$$.file conf$$ 2>/dev/null; then 207 # We could just check for DJGPP; but this test a) works b) is more generic 208 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 209 if test -f conf$$.exe; then 210 # Don't use ln at all; we don't have any links 211 as_ln_s='cp -p' 212 else 213 as_ln_s='ln -s' 214 fi 215elif ln conf$$.file conf$$ 2>/dev/null; then 216 as_ln_s=ln 217else 218 as_ln_s='cp -p' 219fi 220rm -f conf$$ conf$$.exe conf$$.file 221 222if mkdir -p . 2>/dev/null; then 223 as_mkdir_p=: 224else 225 test -d ./-p && rmdir ./-p 226 as_mkdir_p=false 227fi 228 229as_executable_p="test -f" 230 231# Sed expression to map a string onto a valid CPP name. 232as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 233 234# Sed expression to map a string onto a valid variable name. 235as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 236 237 238# IFS 239# We need space, tab and new line, in precisely that order. 240as_nl=' 241' 242IFS=" $as_nl" 243 244# CDPATH. 245$as_unset CDPATH 246 247 248 249# Check that we are running under the correct shell. 250SHELL=${CONFIG_SHELL-/bin/sh} 251 252case X$ECHO in 253X*--fallback-echo) 254 # Remove one level of quotation (which was required for Make). 255 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 256 ;; 257esac 258 259echo=${ECHO-echo} 260if test "X$1" = X--no-reexec; then 261 # Discard the --no-reexec flag, and continue. 262 shift 263elif test "X$1" = X--fallback-echo; then 264 # Avoid inline document here, it may be left over 265 : 266elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 267 # Yippee, $echo works! 268 : 269else 270 # Restart under the correct shell. 271 exec $SHELL "$0" --no-reexec ${1+"$@"} 272fi 273 274if test "X$1" = X--fallback-echo; then 275 # used as fallback echo 276 shift 277 cat <<EOF 278$* 279EOF 280 exit 0 281fi 282 283# The HP-UX ksh and POSIX shell print the target directory to stdout 284# if CDPATH is set. 285(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 286 287if test -z "$ECHO"; then 288if test "X${echo_test_string+set}" != Xset; then 289# find a string as large as possible, as long as the shell can cope with it 290 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 291 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 292 if (echo_test_string="`eval $cmd`") 2>/dev/null && 293 echo_test_string="`eval $cmd`" && 294 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 295 then 296 break 297 fi 298 done 299fi 300 301if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 302 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 303 test "X$echo_testing_string" = "X$echo_test_string"; then 304 : 305else 306 # The Solaris, AIX, and Digital Unix default echo programs unquote 307 # backslashes. This makes it impossible to quote backslashes using 308 # echo "$something" | sed 's/\\/\\\\/g' 309 # 310 # So, first we look for a working echo in the user's PATH. 311 312 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 313 for dir in $PATH /usr/ucb; do 314 IFS="$lt_save_ifs" 315 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 316 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 317 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 318 test "X$echo_testing_string" = "X$echo_test_string"; then 319 echo="$dir/echo" 320 break 321 fi 322 done 323 IFS="$lt_save_ifs" 324 325 if test "X$echo" = Xecho; then 326 # We didn't find a better echo, so look for alternatives. 327 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 328 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 329 test "X$echo_testing_string" = "X$echo_test_string"; then 330 # This shell has a builtin print -r that does the trick. 331 echo='print -r' 332 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 333 test "X$CONFIG_SHELL" != X/bin/ksh; then 334 # If we have ksh, try running configure again with it. 335 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 336 export ORIGINAL_CONFIG_SHELL 337 CONFIG_SHELL=/bin/ksh 338 export CONFIG_SHELL 339 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 340 else 341 # Try using printf. 342 echo='printf %s\n' 343 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 344 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 345 test "X$echo_testing_string" = "X$echo_test_string"; then 346 # Cool, printf works 347 : 348 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 349 test "X$echo_testing_string" = 'X\t' && 350 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 351 test "X$echo_testing_string" = "X$echo_test_string"; then 352 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 353 export CONFIG_SHELL 354 SHELL="$CONFIG_SHELL" 355 export SHELL 356 echo="$CONFIG_SHELL $0 --fallback-echo" 357 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 358 test "X$echo_testing_string" = 'X\t' && 359 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 360 test "X$echo_testing_string" = "X$echo_test_string"; then 361 echo="$CONFIG_SHELL $0 --fallback-echo" 362 else 363 # maybe with a smaller string... 364 prev=: 365 366 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 367 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 368 then 369 break 370 fi 371 prev="$cmd" 372 done 373 374 if test "$prev" != 'sed 50q "$0"'; then 375 echo_test_string=`eval $prev` 376 export echo_test_string 377 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 378 else 379 # Oops. We lost completely, so just stick with echo. 380 echo=echo 381 fi 382 fi 383 fi 384 fi 385fi 386fi 387 388# Copy echo and quote the copy suitably for passing to libtool from 389# the Makefile, instead of quoting the original, which is used later. 390ECHO=$echo 391if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 392 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 393fi 394 395 396 397 398tagnames=${tagnames+${tagnames},}CXX 399 400tagnames=${tagnames+${tagnames},}F77 401 402# Name of the host. 403# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 404# so uname gets run too. 405ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 406 407exec 6>&1 408 409# 410# Initializations. 411# 412ac_default_prefix=/usr/local 413ac_config_libobj_dir=. 414cross_compiling=no 415subdirs= 416MFLAGS= 417MAKEFLAGS= 418SHELL=${CONFIG_SHELL-/bin/sh} 419 420# Maximum number of lines to put in a shell here document. 421# This variable seems obsolete. It should probably be removed, and 422# only ac_max_sed_lines should be used. 423: ${ac_max_here_lines=38} 424 425# Identity of this package. 426PACKAGE_NAME='llvm' 427PACKAGE_TARNAME='-llvm-' 428PACKAGE_VERSION='1.4' 429PACKAGE_STRING='llvm 1.4' 430PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu' 431 432ac_unique_file="lib/VMCore/Module.cpp" 433ac_subdirs_all="$ac_subdirs_all projects/sample" 434ac_subdirs_all="$ac_subdirs_all projects/Stacker" 435ac_subdirs_all="$ac_subdirs_all projects/llvm-test" 436ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt" 437ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc" 438ac_subdirs_all="$ac_subdirs_all projects/Java" 439ac_subdirs_all="$ac_subdirs_all projects/llvm-tv" 440ac_subdirs_all="$ac_subdirs_all projects/llvm-fefw" 441ac_subdirs_all="$ac_subdirs_all projects/poolalloc" 442# Factoring default headers for most tests. 443ac_includes_default="\ 444#include <stdio.h> 445#if HAVE_SYS_TYPES_H 446# include <sys/types.h> 447#endif 448#if HAVE_SYS_STAT_H 449# include <sys/stat.h> 450#endif 451#if STDC_HEADERS 452# include <stdlib.h> 453# include <stddef.h> 454#else 455# if HAVE_STDLIB_H 456# include <stdlib.h> 457# endif 458#endif 459#if HAVE_STRING_H 460# if !STDC_HEADERS && HAVE_MEMORY_H 461# include <memory.h> 462# endif 463# include <string.h> 464#endif 465#if HAVE_STRINGS_H 466# include <strings.h> 467#endif 468#if HAVE_INTTYPES_H 469# include <inttypes.h> 470#else 471# if HAVE_STDINT_H 472# include <stdint.h> 473# endif 474#endif 475#if HAVE_UNISTD_H 476# include <unistd.h> 477#endif" 478 479ac_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 LLVM_COPYRIGHT subdirs build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT ENABLE_OPTIMIZED JIT LLVMGCCDIR CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ifGNUmake FIND GREP MKDIR MV RM SED TAR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA DOT ETAGS PYTHON QMTEST RUNTEST ETAGSFLAGS HAVE_ZLIB HAVE_BZIP2 ALLOCA MMAP_FILE LLVMGCC LLVMCC1 LLVMCC1PLUS SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS' 480ac_subst_files='' 481 482# Initialize some variables set by options. 483ac_init_help= 484ac_init_version=false 485# The variables have the same names as the options, with 486# dashes changed to underlines. 487cache_file=/dev/null 488exec_prefix=NONE 489no_create= 490no_recursion= 491prefix=NONE 492program_prefix=NONE 493program_suffix=NONE 494program_transform_name=s,x,x, 495silent= 496site= 497srcdir= 498verbose= 499x_includes=NONE 500x_libraries=NONE 501 502# Installation directory options. 503# These are left unexpanded so users can "make install exec_prefix=/foo" 504# and all the variables that are supposed to be based on exec_prefix 505# by default will actually change. 506# Use braces instead of parens because sh, perl, etc. also accept them. 507bindir='${exec_prefix}/bin' 508sbindir='${exec_prefix}/sbin' 509libexecdir='${exec_prefix}/libexec' 510datadir='${prefix}/share' 511sysconfdir='${prefix}/etc' 512sharedstatedir='${prefix}/com' 513localstatedir='${prefix}/var' 514libdir='${exec_prefix}/lib' 515includedir='${prefix}/include' 516oldincludedir='/usr/include' 517infodir='${prefix}/info' 518mandir='${prefix}/man' 519 520ac_prev= 521for ac_option 522do 523 # If the previous option needs an argument, assign it. 524 if test -n "$ac_prev"; then 525 eval "$ac_prev=\$ac_option" 526 ac_prev= 527 continue 528 fi 529 530 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 531 532 # Accept the important Cygnus configure options, so we can diagnose typos. 533 534 case $ac_option in 535 536 -bindir | --bindir | --bindi | --bind | --bin | --bi) 537 ac_prev=bindir ;; 538 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 539 bindir=$ac_optarg ;; 540 541 -build | --build | --buil | --bui | --bu) 542 ac_prev=build_alias ;; 543 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 544 build_alias=$ac_optarg ;; 545 546 -cache-file | --cache-file | --cache-fil | --cache-fi \ 547 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 548 ac_prev=cache_file ;; 549 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 550 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 551 cache_file=$ac_optarg ;; 552 553 --config-cache | -C) 554 cache_file=config.cache ;; 555 556 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 557 ac_prev=datadir ;; 558 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 559 | --da=*) 560 datadir=$ac_optarg ;; 561 562 -disable-* | --disable-*) 563 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 564 # Reject names that are not valid shell variable names. 565 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 566 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 567 { (exit 1); exit 1; }; } 568 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 569 eval "enable_$ac_feature=no" ;; 570 571 -enable-* | --enable-*) 572 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 573 # Reject names that are not valid shell variable names. 574 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 575 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 576 { (exit 1); exit 1; }; } 577 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 578 case $ac_option in 579 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 580 *) ac_optarg=yes ;; 581 esac 582 eval "enable_$ac_feature='$ac_optarg'" ;; 583 584 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 585 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 586 | --exec | --exe | --ex) 587 ac_prev=exec_prefix ;; 588 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 589 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 590 | --exec=* | --exe=* | --ex=*) 591 exec_prefix=$ac_optarg ;; 592 593 -gas | --gas | --ga | --g) 594 # Obsolete; use --with-gas. 595 with_gas=yes ;; 596 597 -help | --help | --hel | --he | -h) 598 ac_init_help=long ;; 599 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 600 ac_init_help=recursive ;; 601 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 602 ac_init_help=short ;; 603 604 -host | --host | --hos | --ho) 605 ac_prev=host_alias ;; 606 -host=* | --host=* | --hos=* | --ho=*) 607 host_alias=$ac_optarg ;; 608 609 -includedir | --includedir | --includedi | --included | --include \ 610 | --includ | --inclu | --incl | --inc) 611 ac_prev=includedir ;; 612 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 613 | --includ=* | --inclu=* | --incl=* | --inc=*) 614 includedir=$ac_optarg ;; 615 616 -infodir | --infodir | --infodi | --infod | --info | --inf) 617 ac_prev=infodir ;; 618 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 619 infodir=$ac_optarg ;; 620 621 -libdir | --libdir | --libdi | --libd) 622 ac_prev=libdir ;; 623 -libdir=* | --libdir=* | --libdi=* | --libd=*) 624 libdir=$ac_optarg ;; 625 626 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 627 | --libexe | --libex | --libe) 628 ac_prev=libexecdir ;; 629 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 630 | --libexe=* | --libex=* | --libe=*) 631 libexecdir=$ac_optarg ;; 632 633 -localstatedir | --localstatedir | --localstatedi | --localstated \ 634 | --localstate | --localstat | --localsta | --localst \ 635 | --locals | --local | --loca | --loc | --lo) 636 ac_prev=localstatedir ;; 637 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 638 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 639 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 640 localstatedir=$ac_optarg ;; 641 642 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 643 ac_prev=mandir ;; 644 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 645 mandir=$ac_optarg ;; 646 647 -nfp | --nfp | --nf) 648 # Obsolete; use --without-fp. 649 with_fp=no ;; 650 651 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 652 | --no-cr | --no-c | -n) 653 no_create=yes ;; 654 655 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 656 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 657 no_recursion=yes ;; 658 659 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 660 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 661 | --oldin | --oldi | --old | --ol | --o) 662 ac_prev=oldincludedir ;; 663 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 664 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 665 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 666 oldincludedir=$ac_optarg ;; 667 668 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 669 ac_prev=prefix ;; 670 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 671 prefix=$ac_optarg ;; 672 673 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 674 | --program-pre | --program-pr | --program-p) 675 ac_prev=program_prefix ;; 676 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 677 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 678 program_prefix=$ac_optarg ;; 679 680 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 681 | --program-suf | --program-su | --program-s) 682 ac_prev=program_suffix ;; 683 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 684 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 685 program_suffix=$ac_optarg ;; 686 687 -program-transform-name | --program-transform-name \ 688 | --program-transform-nam | --program-transform-na \ 689 | --program-transform-n | --program-transform- \ 690 | --program-transform | --program-transfor \ 691 | --program-transfo | --program-transf \ 692 | --program-trans | --program-tran \ 693 | --progr-tra | --program-tr | --program-t) 694 ac_prev=program_transform_name ;; 695 -program-transform-name=* | --program-transform-name=* \ 696 | --program-transform-nam=* | --program-transform-na=* \ 697 | --program-transform-n=* | --program-transform-=* \ 698 | --program-transform=* | --program-transfor=* \ 699 | --program-transfo=* | --program-transf=* \ 700 | --program-trans=* | --program-tran=* \ 701 | --progr-tra=* | --program-tr=* | --program-t=*) 702 program_transform_name=$ac_optarg ;; 703 704 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 705 | -silent | --silent | --silen | --sile | --sil) 706 silent=yes ;; 707 708 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 709 ac_prev=sbindir ;; 710 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 711 | --sbi=* | --sb=*) 712 sbindir=$ac_optarg ;; 713 714 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 715 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 716 | --sharedst | --shareds | --shared | --share | --shar \ 717 | --sha | --sh) 718 ac_prev=sharedstatedir ;; 719 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 720 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 721 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 722 | --sha=* | --sh=*) 723 sharedstatedir=$ac_optarg ;; 724 725 -site | --site | --sit) 726 ac_prev=site ;; 727 -site=* | --site=* | --sit=*) 728 site=$ac_optarg ;; 729 730 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 731 ac_prev=srcdir ;; 732 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 733 srcdir=$ac_optarg ;; 734 735 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 736 | --syscon | --sysco | --sysc | --sys | --sy) 737 ac_prev=sysconfdir ;; 738 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 739 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 740 sysconfdir=$ac_optarg ;; 741 742 -target | --target | --targe | --targ | --tar | --ta | --t) 743 ac_prev=target_alias ;; 744 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 745 target_alias=$ac_optarg ;; 746 747 -v | -verbose | --verbose | --verbos | --verbo | --verb) 748 verbose=yes ;; 749 750 -version | --version | --versio | --versi | --vers | -V) 751 ac_init_version=: ;; 752 753 -with-* | --with-*) 754 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 755 # Reject names that are not valid shell variable names. 756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 757 { echo "$as_me: error: invalid package name: $ac_package" >&2 758 { (exit 1); exit 1; }; } 759 ac_package=`echo $ac_package| sed 's/-/_/g'` 760 case $ac_option in 761 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 762 *) ac_optarg=yes ;; 763 esac 764 eval "with_$ac_package='$ac_optarg'" ;; 765 766 -without-* | --without-*) 767 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 768 # Reject names that are not valid shell variable names. 769 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 770 { echo "$as_me: error: invalid package name: $ac_package" >&2 771 { (exit 1); exit 1; }; } 772 ac_package=`echo $ac_package | sed 's/-/_/g'` 773 eval "with_$ac_package=no" ;; 774 775 --x) 776 # Obsolete; use --with-x. 777 with_x=yes ;; 778 779 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 780 | --x-incl | --x-inc | --x-in | --x-i) 781 ac_prev=x_includes ;; 782 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 783 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 784 x_includes=$ac_optarg ;; 785 786 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 787 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 788 ac_prev=x_libraries ;; 789 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 790 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 791 x_libraries=$ac_optarg ;; 792 793 -*) { echo "$as_me: error: unrecognized option: $ac_option 794Try \`$0 --help' for more information." >&2 795 { (exit 1); exit 1; }; } 796 ;; 797 798 *=*) 799 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 800 # Reject names that are not valid shell variable names. 801 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 802 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 803 { (exit 1); exit 1; }; } 804 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 805 eval "$ac_envvar='$ac_optarg'" 806 export $ac_envvar ;; 807 808 *) 809 # FIXME: should be removed in autoconf 3.0. 810 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 811 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 812 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 813 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 814 ;; 815 816 esac 817done 818 819if test -n "$ac_prev"; then 820 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 821 { echo "$as_me: error: missing argument to $ac_option" >&2 822 { (exit 1); exit 1; }; } 823fi 824 825# Be sure to have absolute paths. 826for ac_var in exec_prefix prefix 827do 828 eval ac_val=$`echo $ac_var` 829 case $ac_val in 830 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 832 { (exit 1); exit 1; }; };; 833 esac 834done 835 836# Be sure to have absolute paths. 837for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 838 localstatedir libdir includedir oldincludedir infodir mandir 839do 840 eval ac_val=$`echo $ac_var` 841 case $ac_val in 842 [\\/$]* | ?:[\\/]* ) ;; 843 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 844 { (exit 1); exit 1; }; };; 845 esac 846done 847 848# There might be people who depend on the old broken behavior: `$host' 849# used to hold the argument of --host etc. 850# FIXME: To remove some day. 851build=$build_alias 852host=$host_alias 853target=$target_alias 854 855# FIXME: To remove some day. 856if test "x$host_alias" != x; then 857 if test "x$build_alias" = x; then 858 cross_compiling=maybe 859 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 860 If a cross compiler is detected then cross compile mode will be used." >&2 861 elif test "x$build_alias" != "x$host_alias"; then 862 cross_compiling=yes 863 fi 864fi 865 866ac_tool_prefix= 867test -n "$host_alias" && ac_tool_prefix=$host_alias- 868 869test "$silent" = yes && exec 6>/dev/null 870 871 872# Find the source files, if location was not specified. 873if test -z "$srcdir"; then 874 ac_srcdir_defaulted=yes 875 # Try the directory containing this script, then its parent. 876 ac_confdir=`(dirname "$0") 2>/dev/null || 877$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 878 X"$0" : 'X\(//\)[^/]' \| \ 879 X"$0" : 'X\(//\)$' \| \ 880 X"$0" : 'X\(/\)' \| \ 881 . : '\(.\)' 2>/dev/null || 882echo X"$0" | 883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 884 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 885 /^X\(\/\/\)$/{ s//\1/; q; } 886 /^X\(\/\).*/{ s//\1/; q; } 887 s/.*/./; q'` 888 srcdir=$ac_confdir 889 if test ! -r $srcdir/$ac_unique_file; then 890 srcdir=.. 891 fi 892else 893 ac_srcdir_defaulted=no 894fi 895if test ! -r $srcdir/$ac_unique_file; then 896 if test "$ac_srcdir_defaulted" = yes; then 897 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 898 { (exit 1); exit 1; }; } 899 else 900 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 901 { (exit 1); exit 1; }; } 902 fi 903fi 904(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 905 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 906 { (exit 1); exit 1; }; } 907srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 908ac_env_build_alias_set=${build_alias+set} 909ac_env_build_alias_value=$build_alias 910ac_cv_env_build_alias_set=${build_alias+set} 911ac_cv_env_build_alias_value=$build_alias 912ac_env_host_alias_set=${host_alias+set} 913ac_env_host_alias_value=$host_alias 914ac_cv_env_host_alias_set=${host_alias+set} 915ac_cv_env_host_alias_value=$host_alias 916ac_env_target_alias_set=${target_alias+set} 917ac_env_target_alias_value=$target_alias 918ac_cv_env_target_alias_set=${target_alias+set} 919ac_cv_env_target_alias_value=$target_alias 920ac_env_CC_set=${CC+set} 921ac_env_CC_value=$CC 922ac_cv_env_CC_set=${CC+set} 923ac_cv_env_CC_value=$CC 924ac_env_CFLAGS_set=${CFLAGS+set} 925ac_env_CFLAGS_value=$CFLAGS 926ac_cv_env_CFLAGS_set=${CFLAGS+set} 927ac_cv_env_CFLAGS_value=$CFLAGS 928ac_env_LDFLAGS_set=${LDFLAGS+set} 929ac_env_LDFLAGS_value=$LDFLAGS 930ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 931ac_cv_env_LDFLAGS_value=$LDFLAGS 932ac_env_CPPFLAGS_set=${CPPFLAGS+set} 933ac_env_CPPFLAGS_value=$CPPFLAGS 934ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 935ac_cv_env_CPPFLAGS_value=$CPPFLAGS 936ac_env_CPP_set=${CPP+set} 937ac_env_CPP_value=$CPP 938ac_cv_env_CPP_set=${CPP+set} 939ac_cv_env_CPP_value=$CPP 940ac_env_CXX_set=${CXX+set} 941ac_env_CXX_value=$CXX 942ac_cv_env_CXX_set=${CXX+set} 943ac_cv_env_CXX_value=$CXX 944ac_env_CXXFLAGS_set=${CXXFLAGS+set} 945ac_env_CXXFLAGS_value=$CXXFLAGS 946ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 947ac_cv_env_CXXFLAGS_value=$CXXFLAGS 948ac_env_CXXCPP_set=${CXXCPP+set} 949ac_env_CXXCPP_value=$CXXCPP 950ac_cv_env_CXXCPP_set=${CXXCPP+set} 951ac_cv_env_CXXCPP_value=$CXXCPP 952ac_env_F77_set=${F77+set} 953ac_env_F77_value=$F77 954ac_cv_env_F77_set=${F77+set} 955ac_cv_env_F77_value=$F77 956ac_env_FFLAGS_set=${FFLAGS+set} 957ac_env_FFLAGS_value=$FFLAGS 958ac_cv_env_FFLAGS_set=${FFLAGS+set} 959ac_cv_env_FFLAGS_value=$FFLAGS 960 961# 962# Report the --help message. 963# 964if test "$ac_init_help" = "long"; then 965 # Omit some internal or obsolete options to make the list less imposing. 966 # This message is too long to be a string in the A/UX 3.1 sh. 967 cat <<_ACEOF 968\`configure' configures llvm 1.4 to adapt to many kinds of systems. 969 970Usage: $0 [OPTION]... [VAR=VALUE]... 971 972To assign environment variables (e.g., CC, CFLAGS...), specify them as 973VAR=VALUE. See below for descriptions of some of the useful variables. 974 975Defaults for the options are specified in brackets. 976 977Configuration: 978 -h, --help display this help and exit 979 --help=short display options specific to this package 980 --help=recursive display the short help of all the included packages 981 -V, --version display version information and exit 982 -q, --quiet, --silent do not print \`checking...' messages 983 --cache-file=FILE cache test results in FILE [disabled] 984 -C, --config-cache alias for \`--cache-file=config.cache' 985 -n, --no-create do not create output files 986 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 987 988_ACEOF 989 990 cat <<_ACEOF 991Installation directories: 992 --prefix=PREFIX install architecture-independent files in PREFIX 993 [$ac_default_prefix] 994 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 995 [PREFIX] 996 997By default, \`make install' will install all the files in 998\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 999an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1000for instance \`--prefix=\$HOME'. 1001 1002For better control, use the options below. 1003 1004Fine tuning of the installation directories: 1005 --bindir=DIR user executables [EPREFIX/bin] 1006 --sbindir=DIR system admin executables [EPREFIX/sbin] 1007 --libexecdir=DIR program executables [EPREFIX/libexec] 1008 --datadir=DIR read-only architecture-independent data [PREFIX/share] 1009 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1010 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1011 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1012 --libdir=DIR object code libraries [EPREFIX/lib] 1013 --includedir=DIR C header files [PREFIX/include] 1014 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1015 --infodir=DIR info documentation [PREFIX/info] 1016 --mandir=DIR man documentation [PREFIX/man] 1017_ACEOF 1018 1019 cat <<\_ACEOF 1020 1021System types: 1022 --build=BUILD configure for building on BUILD [guessed] 1023 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1024 --target=TARGET configure for building compilers for TARGET [HOST] 1025_ACEOF 1026fi 1027 1028if test -n "$ac_init_help"; then 1029 case $ac_init_help in 1030 short | recursive ) echo "Configuration of llvm 1.4:";; 1031 esac 1032 cat <<\_ACEOF 1033 1034Optional Features: 1035 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1036 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1037 --enable-optimized 1038 --enable-jit Enable Just In Time Compiling (default is YES) 1039 --enable-shared[=PKGS] 1040 build shared libraries [default=yes] 1041 --enable-static[=PKGS] 1042 build static libraries [default=yes] 1043 --enable-fast-install[=PKGS] 1044 optimize for fast installation [default=yes] 1045 --disable-libtool-lock avoid locking (might break parallel builds) 1046 1047Optional Packages: 1048 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1049 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1050 --with-llvmgccdir Location of LLVM GCC front-end 1051 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1052 --with-pic try to use only PIC/non-PIC objects [default=use 1053 both] 1054 --with-tags[=TAGS] 1055 include additional configurations [automatic] 1056 1057Some influential environment variables: 1058 CC C compiler command 1059 CFLAGS C compiler flags 1060 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1061 nonstandard directory <lib dir> 1062 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1063 headers in a nonstandard directory <include dir> 1064 CPP C preprocessor 1065 CXX C++ compiler command 1066 CXXFLAGS C++ compiler flags 1067 CXXCPP C++ preprocessor 1068 F77 Fortran 77 compiler command 1069 FFLAGS Fortran 77 compiler flags 1070 1071Use these variables to override the choices made by `configure' or to help 1072it to find libraries and programs with nonstandard names/locations. 1073 1074Report bugs to <llvmbugs@cs.uiuc.edu>. 1075_ACEOF 1076fi 1077 1078if test "$ac_init_help" = "recursive"; then 1079 # If there are subdirs, report their specific --help. 1080 ac_popdir=`pwd` 1081 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1082 test -d $ac_dir || continue 1083 ac_builddir=. 1084 1085if test "$ac_dir" != .; then 1086 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1087 # A "../" for each directory in $ac_dir_suffix. 1088 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 1089else 1090 ac_dir_suffix= ac_top_builddir= 1091fi 1092 1093case $srcdir in 1094 .) # No --srcdir option. We are building in place. 1095 ac_srcdir=. 1096 if test -z "$ac_top_builddir"; then 1097 ac_top_srcdir=. 1098 else 1099 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 1100 fi ;; 1101 [\\/]* | ?:[\\/]* ) # Absolute path. 1102 ac_srcdir=$srcdir$ac_dir_suffix; 1103 ac_top_srcdir=$srcdir ;; 1104 *) # Relative path. 1105 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 1106 ac_top_srcdir=$ac_top_builddir$srcdir ;; 1107esac 1108 1109# Do not use `cd foo && pwd` to compute absolute paths, because 1110# the directories may not exist. 1111case `pwd` in 1112.) ac_abs_builddir="$ac_dir";; 1113*) 1114 case "$ac_dir" in 1115 .) ac_abs_builddir=`pwd`;; 1116 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 1117 *) ac_abs_builddir=`pwd`/"$ac_dir";; 1118 esac;; 1119esac 1120case $ac_abs_builddir in 1121.) ac_abs_top_builddir=${ac_top_builddir}.;; 1122*) 1123 case ${ac_top_builddir}. in 1124 .) ac_abs_top_builddir=$ac_abs_builddir;; 1125 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 1126 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 1127 esac;; 1128esac 1129case $ac_abs_builddir in 1130.) ac_abs_srcdir=$ac_srcdir;; 1131*) 1132 case $ac_srcdir in 1133 .) ac_abs_srcdir=$ac_abs_builddir;; 1134 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 1135 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 1136 esac;; 1137esac 1138case $ac_abs_builddir in 1139.) ac_abs_top_srcdir=$ac_top_srcdir;; 1140*) 1141 case $ac_top_srcdir in 1142 .) ac_abs_top_srcdir=$ac_abs_builddir;; 1143 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 1144 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 1145 esac;; 1146esac 1147 1148 cd $ac_dir 1149 # Check for guested configure; otherwise get Cygnus style configure. 1150 if test -f $ac_srcdir/configure.gnu; then 1151 echo 1152 $SHELL $ac_srcdir/configure.gnu --help=recursive 1153 elif test -f $ac_srcdir/configure; then 1154 echo 1155 $SHELL $ac_srcdir/configure --help=recursive 1156 elif test -f $ac_srcdir/configure.ac || 1157 test -f $ac_srcdir/configure.in; then 1158 echo 1159 $ac_configure --help 1160 else 1161 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1162 fi 1163 cd $ac_popdir 1164 done 1165fi 1166 1167test -n "$ac_init_help" && exit 0 1168if $ac_init_version; then 1169 cat <<\_ACEOF 1170llvm configure 1.4 1171generated by GNU Autoconf 2.59 1172 1173Copyright (C) 2003 Free Software Foundation, Inc. 1174This configure script is free software; the Free Software Foundation 1175gives unlimited permission to copy, distribute and modify it. 1176 1177$LLVM_COPYRIGHT 1178_ACEOF 1179 exit 0 1180fi 1181exec 5>config.log 1182cat >&5 <<_ACEOF 1183This file contains any messages produced by compilers while 1184running configure, to aid debugging if configure makes a mistake. 1185 1186It was created by llvm $as_me 1.4, which was 1187generated by GNU Autoconf 2.59. Invocation command line was 1188 1189 $ $0 $@ 1190 1191_ACEOF 1192{ 1193cat <<_ASUNAME 1194## --------- ## 1195## Platform. ## 1196## --------- ## 1197 1198hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1199uname -m = `(uname -m) 2>/dev/null || echo unknown` 1200uname -r = `(uname -r) 2>/dev/null || echo unknown` 1201uname -s = `(uname -s) 2>/dev/null || echo unknown` 1202uname -v = `(uname -v) 2>/dev/null || echo unknown` 1203 1204/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1205/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1206 1207/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1208/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1209/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1210hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1211/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1212/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1213/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1214 1215_ASUNAME 1216 1217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1218for as_dir in $PATH 1219do 1220 IFS=$as_save_IFS 1221 test -z "$as_dir" && as_dir=. 1222 echo "PATH: $as_dir" 1223done 1224 1225} >&5 1226 1227cat >&5 <<_ACEOF 1228 1229 1230## ----------- ## 1231## Core tests. ## 1232## ----------- ## 1233 1234_ACEOF 1235 1236 1237# Keep a trace of the command line. 1238# Strip out --no-create and --no-recursion so they do not pile up. 1239# Strip out --silent because we don't want to record it for future runs. 1240# Also quote any args containing shell meta-characters. 1241# Make two passes to allow for proper duplicate-argument suppression. 1242ac_configure_args= 1243ac_configure_args0= 1244ac_configure_args1= 1245ac_sep= 1246ac_must_keep_next=false 1247for ac_pass in 1 2 1248do 1249 for ac_arg 1250 do 1251 case $ac_arg in 1252 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1253 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1254 | -silent | --silent | --silen | --sile | --sil) 1255 continue ;; 1256 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1257 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1258 esac 1259 case $ac_pass in 1260 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1261 2) 1262 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1263 if test $ac_must_keep_next = true; then 1264 ac_must_keep_next=false # Got value, back to normal. 1265 else 1266 case $ac_arg in 1267 *=* | --config-cache | -C | -disable-* | --disable-* \ 1268 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1269 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1270 | -with-* | --with-* | -without-* | --without-* | --x) 1271 case "$ac_configure_args0 " in 1272 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1273 esac 1274 ;; 1275 -* ) ac_must_keep_next=true ;; 1276 esac 1277 fi 1278 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1279 # Get rid of the leading space. 1280 ac_sep=" " 1281 ;; 1282 esac 1283 done 1284done 1285$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1286$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1287 1288# When interrupted or exit'd, cleanup temporary files, and complete 1289# config.log. We remove comments because anyway the quotes in there 1290# would cause problems or look ugly. 1291# WARNING: Be sure not to use single quotes in there, as some shells, 1292# such as our DU 5.0 friend, will then `close' the trap. 1293trap 'exit_status=$? 1294 # Save into config.log some information that might help in debugging. 1295 { 1296 echo 1297 1298 cat <<\_ASBOX 1299## ---------------- ## 1300## Cache variables. ## 1301## ---------------- ## 1302_ASBOX 1303 echo 1304 # The following way of writing the cache mishandles newlines in values, 1305{ 1306 (set) 2>&1 | 1307 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1308 *ac_space=\ *) 1309 sed -n \ 1310 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1311 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1312 ;; 1313 *) 1314 sed -n \ 1315 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1316 ;; 1317 esac; 1318} 1319 echo 1320 1321 cat <<\_ASBOX 1322## ----------------- ## 1323## Output variables. ## 1324## ----------------- ## 1325_ASBOX 1326 echo 1327 for ac_var in $ac_subst_vars 1328 do 1329 eval ac_val=$`echo $ac_var` 1330 echo "$ac_var='"'"'$ac_val'"'"'" 1331 done | sort 1332 echo 1333 1334 if test -n "$ac_subst_files"; then 1335 cat <<\_ASBOX 1336## ------------- ## 1337## Output files. ## 1338## ------------- ## 1339_ASBOX 1340 echo 1341 for ac_var in $ac_subst_files 1342 do 1343 eval ac_val=$`echo $ac_var` 1344 echo "$ac_var='"'"'$ac_val'"'"'" 1345 done | sort 1346 echo 1347 fi 1348 1349 if test -s confdefs.h; then 1350 cat <<\_ASBOX 1351## ----------- ## 1352## confdefs.h. ## 1353## ----------- ## 1354_ASBOX 1355 echo 1356 sed "/^$/d" confdefs.h | sort 1357 echo 1358 fi 1359 test "$ac_signal" != 0 && 1360 echo "$as_me: caught signal $ac_signal" 1361 echo "$as_me: exit $exit_status" 1362 } >&5 1363 rm -f core *.core && 1364 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1365 exit $exit_status 1366 ' 0 1367for ac_signal in 1 2 13 15; do 1368 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1369done 1370ac_signal=0 1371 1372# confdefs.h avoids OS command line length limits that DEFS can exceed. 1373rm -rf conftest* confdefs.h 1374# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1375echo >confdefs.h 1376 1377# Predefined preprocessor variables. 1378 1379cat >>confdefs.h <<_ACEOF 1380#define PACKAGE_NAME "$PACKAGE_NAME" 1381_ACEOF 1382 1383 1384cat >>confdefs.h <<_ACEOF 1385#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1386_ACEOF 1387 1388 1389cat >>confdefs.h <<_ACEOF 1390#define PACKAGE_VERSION "$PACKAGE_VERSION" 1391_ACEOF 1392 1393 1394cat >>confdefs.h <<_ACEOF 1395#define PACKAGE_STRING "$PACKAGE_STRING" 1396_ACEOF 1397 1398 1399cat >>confdefs.h <<_ACEOF 1400#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1401_ACEOF 1402 1403 1404# Let the site file select an alternate cache file if it wants to. 1405# Prefer explicitly selected file to automatically selected ones. 1406if test -z "$CONFIG_SITE"; then 1407 if test "x$prefix" != xNONE; then 1408 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1409 else 1410 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1411 fi 1412fi 1413for ac_site_file in $CONFIG_SITE; do 1414 if test -r "$ac_site_file"; then 1415 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1416echo "$as_me: loading site script $ac_site_file" >&6;} 1417 sed 's/^/| /' "$ac_site_file" >&5 1418 . "$ac_site_file" 1419 fi 1420done 1421 1422if test -r "$cache_file"; then 1423 # Some versions of bash will fail to source /dev/null (special 1424 # files actually), so we avoid doing that. 1425 if test -f "$cache_file"; then 1426 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1427echo "$as_me: loading cache $cache_file" >&6;} 1428 case $cache_file in 1429 [\\/]* | ?:[\\/]* ) . $cache_file;; 1430 *) . ./$cache_file;; 1431 esac 1432 fi 1433else 1434 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1435echo "$as_me: creating cache $cache_file" >&6;} 1436 >$cache_file 1437fi 1438 1439# Check that the precious variables saved in the cache have kept the same 1440# value. 1441ac_cache_corrupted=false 1442for ac_var in `(set) 2>&1 | 1443 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1444 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1445 eval ac_new_set=\$ac_env_${ac_var}_set 1446 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1447 eval ac_new_val="\$ac_env_${ac_var}_value" 1448 case $ac_old_set,$ac_new_set in 1449 set,) 1450 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1451echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1452 ac_cache_corrupted=: ;; 1453 ,set) 1454 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1455echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1456 ac_cache_corrupted=: ;; 1457 ,);; 1458 *) 1459 if test "x$ac_old_val" != "x$ac_new_val"; then 1460 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1461echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1462 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1463echo "$as_me: former value: $ac_old_val" >&2;} 1464 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1465echo "$as_me: current value: $ac_new_val" >&2;} 1466 ac_cache_corrupted=: 1467 fi;; 1468 esac 1469 # Pass precious variables to config.status. 1470 if test "$ac_new_set" = set; then 1471 case $ac_new_val in 1472 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1473 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1474 *) ac_arg=$ac_var=$ac_new_val ;; 1475 esac 1476 case " $ac_configure_args " in 1477 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1478 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1479 esac 1480 fi 1481done 1482if $ac_cache_corrupted; then 1483 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1484echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1485 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1486echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1487 { (exit 1); exit 1; }; } 1488fi 1489 1490ac_ext=c 1491ac_cpp='$CPP $CPPFLAGS' 1492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1494ac_compiler_gnu=$ac_cv_c_compiler_gnu 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523LLVM_COPYRIGHT="Copyright (c) 2003-2005 U University of Illinois at Urbana-Champaign." 1524 1525 1526 1527 1528 1529 1530 1531ac_aux_dir= 1532for ac_dir in autoconf $srcdir/autoconf; do 1533 if test -f $ac_dir/install-sh; then 1534 ac_aux_dir=$ac_dir 1535 ac_install_sh="$ac_aux_dir/install-sh -c" 1536 break 1537 elif test -f $ac_dir/install.sh; then 1538 ac_aux_dir=$ac_dir 1539 ac_install_sh="$ac_aux_dir/install.sh -c" 1540 break 1541 elif test -f $ac_dir/shtool; then 1542 ac_aux_dir=$ac_dir 1543 ac_install_sh="$ac_aux_dir/shtool install -c" 1544 break 1545 fi 1546done 1547if test -z "$ac_aux_dir"; then 1548 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5 1549echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;} 1550 { (exit 1); exit 1; }; } 1551fi 1552ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1553ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1554ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1555 1556 1557if test ${srcdir} != "." ; then 1558 if test -f ${srcdir}/include/llvm/Config/config.h ; then 1559 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5 1560echo "$as_me: error: Already configured in ${srcdir}" >&2;} 1561 { (exit 1); exit 1; }; } 1562 fi 1563fi 1564 1565for i in `ls ${srcdir}/projects` 1566do 1567 if test -d ${srcdir}/projects/${i} ; then 1568 case ${i} in 1569 "CVS") ;; 1570 "sample") 1571 1572subdirs="$subdirs projects/sample" 1573 ;; 1574 "Stacker") 1575 1576subdirs="$subdirs projects/Stacker" 1577 ;; 1578 "llvm-test") 1579 1580subdirs="$subdirs projects/llvm-test" 1581 ;; 1582 "llvm-reopt") 1583 1584subdirs="$subdirs projects/llvm-reopt" 1585;; 1586 "llvm-gcc") 1587 1588subdirs="$subdirs projects/llvm-gcc" 1589 ;; 1590 "Java") 1591 1592subdirs="$subdirs projects/Java" 1593 ;; 1594 "llvm-tv") 1595 1596subdirs="$subdirs projects/llvm-tv" 1597 ;; 1598 "llvm-fefw") 1599 1600subdirs="$subdirs projects/llvm-fefw" 1601 ;; 1602 "poolalloc") 1603 1604subdirs="$subdirs projects/poolalloc" 1605 ;; 1606 *) 1607 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5 1608echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;} 1609 ;; 1610 esac 1611 fi 1612done 1613 1614 1615# Make sure we can run config.sub. 1616$ac_config_sub sun4 >/dev/null 2>&1 || 1617 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 1618echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1619 { (exit 1); exit 1; }; } 1620 1621echo "$as_me:$LINENO: checking build system type" >&5 1622echo $ECHO_N "checking build system type... $ECHO_C" >&6 1623if test "${ac_cv_build+set}" = set; then 1624 echo $ECHO_N "(cached) $ECHO_C" >&6 1625else 1626 ac_cv_build_alias=$build_alias 1627test -z "$ac_cv_build_alias" && 1628 ac_cv_build_alias=`$ac_config_guess` 1629test -z "$ac_cv_build_alias" && 1630 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1631echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1632 { (exit 1); exit 1; }; } 1633ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 1634 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 1635echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 1636 { (exit 1); exit 1; }; } 1637 1638fi 1639echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1640echo "${ECHO_T}$ac_cv_build" >&6 1641build=$ac_cv_build 1642build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1643build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1644build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1645 1646 1647echo "$as_me:$LINENO: checking host system type" >&5 1648echo $ECHO_N "checking host system type... $ECHO_C" >&6 1649if test "${ac_cv_host+set}" = set; then 1650 echo $ECHO_N "(cached) $ECHO_C" >&6 1651else 1652 ac_cv_host_alias=$host_alias 1653test -z "$ac_cv_host_alias" && 1654 ac_cv_host_alias=$ac_cv_build_alias 1655ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 1656 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 1657echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 1658 { (exit 1); exit 1; }; } 1659 1660fi 1661echo "$as_me:$LINENO: result: $ac_cv_host" >&5 1662echo "${ECHO_T}$ac_cv_host" >&6 1663host=$ac_cv_host 1664host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1665host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1666host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1667 1668 1669echo "$as_me:$LINENO: checking target system type" >&5 1670echo $ECHO_N "checking target system type... $ECHO_C" >&6 1671if test "${ac_cv_target+set}" = set; then 1672 echo $ECHO_N "(cached) $ECHO_C" >&6 1673else 1674 ac_cv_target_alias=$target_alias 1675test "x$ac_cv_target_alias" = "x" && 1676 ac_cv_target_alias=$ac_cv_host_alias 1677ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || 1678 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 1679echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} 1680 { (exit 1); exit 1; }; } 1681 1682fi 1683echo "$as_me:$LINENO: result: $ac_cv_target" >&5 1684echo "${ECHO_T}$ac_cv_target" >&6 1685target=$ac_cv_target 1686target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1687target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1688target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1689 1690 1691# The aliases save the names the user supplied, while $host etc. 1692# will get canonicalized. 1693test -n "$target_alias" && 1694 test "$program_prefix$program_suffix$program_transform_name" = \ 1695 NONENONEs,x,x, && 1696 program_prefix=${target_alias}- 1697 1698echo "$as_me:$LINENO: checking support for generic build operating system" >&5 1699echo $ECHO_N "checking support for generic build operating system... $ECHO_C" >&6 1700if test "${llvm_cv_platform_type+set}" = set; then 1701 echo $ECHO_N "(cached) $ECHO_C" >&6 1702else 1703 case $build in 1704 *-*-aix*) llvm_cv_platform_type="AIX" ;; 1705 *-*-cygwin*) llvm_cv_platform_type="Cygwin" ;; 1706 *-*-darwin*) llvm_cv_platform_type="Darwin" ;; 1707 *-*-freebsd*) llvm_cv_platform_type="FreeBSD" ;; 1708 *-*-interix*) llvm_cv_platform_type="Interix" ;; 1709 *-*-linux*) llvm_cv_platform_type="Linux" ;; 1710 *-*-solaris*) llvm_cv_platform_type="SunOS" ;; 1711 *-*-win32*) llvm_cv_platform_type="Win32" ;; 1712 *-*-mingw*) llvm_cv_platform_type="Win32" ;; 1713 *) llvm_cv_platform_type="Unknown" ;; 1714esac 1715fi 1716echo "$as_me:$LINENO: result: $llvm_cv_platform_type" >&5 1717echo "${ECHO_T}$llvm_cv_platform_type" >&6 1718 1719if test "$llvm_cv_platform_type" = "Unknown" ; then 1720 { { echo "$as_me:$LINENO: error: Operating system platform is unknown, configure can't continue" >&5 1721echo "$as_me: error: Operating system platform is unknown, configure can't continue" >&2;} 1722 { (exit 1); exit 1; }; } 1723fi 1724 1725OS=$llvm_cv_platform_type 1726 1727 1728 ac_config_links="$ac_config_links lib/System/platform:lib/System/$llvm_cv_platform_type" 1729 1730 1731case $target in 1732 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8 1733 1734 ;; 1735esac 1736 1737echo "$as_me:$LINENO: checking target architecture" >&5 1738echo $ECHO_N "checking target architecture... $ECHO_C" >&6 1739if test "${llvm_cv_target_arch+set}" = set; then 1740 echo $ECHO_N "(cached) $ECHO_C" >&6 1741else 1742 case $target in 1743 i*86-*) llvm_cv_target_arch="x86" ;; 1744 sparc*-*) llvm_cv_target_arch="Sparc" ;; 1745 powerpc*-*) llvm_cv_target_arch="PowerPC" ;; 1746 *) llvm_cv_target_arch="Unknown" ;; 1747esac 1748fi 1749echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5 1750echo "${ECHO_T}$llvm_cv_target_arch" >&6 1751 1752if test "$llvm_cv_target_arch" = "Unknown" ; then 1753 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5 1754echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} 1755fi 1756 1757ARCH=$llvm_cv_target_arch 1758 1759 1760ac_ext=c 1761ac_cpp='$CPP $CPPFLAGS' 1762ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1763ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1764ac_compiler_gnu=$ac_cv_c_compiler_gnu 1765if test -n "$ac_tool_prefix"; then 1766 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1767set dummy ${ac_tool_prefix}gcc; ac_word=$2 1768echo "$as_me:$LINENO: checking for $ac_word" >&5 1769echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1770if test "${ac_cv_prog_CC+set}" = set; then 1771 echo $ECHO_N "(cached) $ECHO_C" >&6 1772else 1773 if test -n "$CC"; then 1774 ac_cv_prog_CC="$CC" # Let the user override the test. 1775else 1776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1777for as_dir in $PATH 1778do 1779 IFS=$as_save_IFS 1780 test -z "$as_dir" && as_dir=. 1781 for ac_exec_ext in '' $ac_executable_extensions; do 1782 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1783 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1785 break 2 1786 fi 1787done 1788done 1789 1790fi 1791fi 1792CC=$ac_cv_prog_CC 1793if test -n "$CC"; then 1794 echo "$as_me:$LINENO: result: $CC" >&5 1795echo "${ECHO_T}$CC" >&6 1796else 1797 echo "$as_me:$LINENO: result: no" >&5 1798echo "${ECHO_T}no" >&6 1799fi 1800 1801fi 1802if test -z "$ac_cv_prog_CC"; then 1803 ac_ct_CC=$CC 1804 # Extract the first word of "gcc", so it can be a program name with args. 1805set dummy gcc; ac_word=$2 1806echo "$as_me:$LINENO: checking for $ac_word" >&5 1807echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1808if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1809 echo $ECHO_N "(cached) $ECHO_C" >&6 1810else 1811 if test -n "$ac_ct_CC"; then 1812 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1813else 1814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1815for as_dir in $PATH 1816do 1817 IFS=$as_save_IFS 1818 test -z "$as_dir" && as_dir=. 1819 for ac_exec_ext in '' $ac_executable_extensions; do 1820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1821 ac_cv_prog_ac_ct_CC="gcc" 1822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1823 break 2 1824 fi 1825done 1826done 1827 1828fi 1829fi 1830ac_ct_CC=$ac_cv_prog_ac_ct_CC 1831if test -n "$ac_ct_CC"; then 1832 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1833echo "${ECHO_T}$ac_ct_CC" >&6 1834else 1835 echo "$as_me:$LINENO: result: no" >&5 1836echo "${ECHO_T}no" >&6 1837fi 1838 1839 CC=$ac_ct_CC 1840else 1841 CC="$ac_cv_prog_CC" 1842fi 1843 1844if test -z "$CC"; then 1845 if test -n "$ac_tool_prefix"; then 1846 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1847set dummy ${ac_tool_prefix}cc; ac_word=$2 1848echo "$as_me:$LINENO: checking for $ac_word" >&5 1849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1850if test "${ac_cv_prog_CC+set}" = set; then 1851 echo $ECHO_N "(cached) $ECHO_C" >&6 1852else 1853 if test -n "$CC"; then 1854 ac_cv_prog_CC="$CC" # Let the user override the test. 1855else 1856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1857for as_dir in $PATH 1858do 1859 IFS=$as_save_IFS 1860 test -z "$as_dir" && as_dir=. 1861 for ac_exec_ext in '' $ac_executable_extensions; do 1862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1863 ac_cv_prog_CC="${ac_tool_prefix}cc" 1864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1865 break 2 1866 fi 1867done 1868done 1869 1870fi 1871fi 1872CC=$ac_cv_prog_CC 1873if test -n "$CC"; then 1874 echo "$as_me:$LINENO: result: $CC" >&5 1875echo "${ECHO_T}$CC" >&6 1876else 1877 echo "$as_me:$LINENO: result: no" >&5 1878echo "${ECHO_T}no" >&6 1879fi 1880 1881fi 1882if test -z "$ac_cv_prog_CC"; then 1883 ac_ct_CC=$CC 1884 # Extract the first word of "cc", so it can be a program name with args. 1885set dummy cc; ac_word=$2 1886echo "$as_me:$LINENO: checking for $ac_word" >&5 1887echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1888if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1889 echo $ECHO_N "(cached) $ECHO_C" >&6 1890else 1891 if test -n "$ac_ct_CC"; then 1892 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1893else 1894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1895for as_dir in $PATH 1896do 1897 IFS=$as_save_IFS 1898 test -z "$as_dir" && as_dir=. 1899 for ac_exec_ext in '' $ac_executable_extensions; do 1900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1901 ac_cv_prog_ac_ct_CC="cc" 1902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1903 break 2 1904 fi 1905done 1906done 1907 1908fi 1909fi 1910ac_ct_CC=$ac_cv_prog_ac_ct_CC 1911if test -n "$ac_ct_CC"; then 1912 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1913echo "${ECHO_T}$ac_ct_CC" >&6 1914else 1915 echo "$as_me:$LINENO: result: no" >&5 1916echo "${ECHO_T}no" >&6 1917fi 1918 1919 CC=$ac_ct_CC 1920else 1921 CC="$ac_cv_prog_CC" 1922fi 1923 1924fi 1925if test -z "$CC"; then 1926 # Extract the first word of "cc", so it can be a program name with args. 1927set dummy cc; ac_word=$2 1928echo "$as_me:$LINENO: checking for $ac_word" >&5 1929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1930if test "${ac_cv_prog_CC+set}" = set; then 1931 echo $ECHO_N "(cached) $ECHO_C" >&6 1932else 1933 if test -n "$CC"; then 1934 ac_cv_prog_CC="$CC" # Let the user override the test. 1935else 1936 ac_prog_rejected=no 1937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1938for as_dir in $PATH 1939do 1940 IFS=$as_save_IFS 1941 test -z "$as_dir" && as_dir=. 1942 for ac_exec_ext in '' $ac_executable_extensions; do 1943 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1944 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1945 ac_prog_rejected=yes 1946 continue 1947 fi 1948 ac_cv_prog_CC="cc" 1949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1950 break 2 1951 fi 1952done 1953done 1954 1955if test $ac_prog_rejected = yes; then 1956 # We found a bogon in the path, so make sure we never use it. 1957 set dummy $ac_cv_prog_CC 1958 shift 1959 if test $# != 0; then 1960 # We chose a different compiler from the bogus one. 1961 # However, it has the same basename, so the bogon will be chosen 1962 # first if we set CC to just the basename; use the full file name. 1963 shift 1964 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 1965 fi 1966fi 1967fi 1968fi 1969CC=$ac_cv_prog_CC 1970if test -n "$CC"; then 1971 echo "$as_me:$LINENO: result: $CC" >&5 1972echo "${ECHO_T}$CC" >&6 1973else 1974 echo "$as_me:$LINENO: result: no" >&5 1975echo "${ECHO_T}no" >&6 1976fi 1977 1978fi 1979if test -z "$CC"; then 1980 if test -n "$ac_tool_prefix"; then 1981 for ac_prog in cl 1982 do 1983 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1984set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1985echo "$as_me:$LINENO: checking for $ac_word" >&5 1986echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1987if test "${ac_cv_prog_CC+set}" = set; then 1988 echo $ECHO_N "(cached) $ECHO_C" >&6 1989else 1990 if test -n "$CC"; then 1991 ac_cv_prog_CC="$CC" # Let the user override the test. 1992else 1993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1994for as_dir in $PATH 1995do 1996 IFS=$as_save_IFS 1997 test -z "$as_dir" && as_dir=. 1998 for ac_exec_ext in '' $ac_executable_extensions; do 1999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2000 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2002 break 2 2003 fi 2004done 2005done 2006 2007fi 2008fi 2009CC=$ac_cv_prog_CC 2010if test -n "$CC"; then 2011 echo "$as_me:$LINENO: result: $CC" >&5 2012echo "${ECHO_T}$CC" >&6 2013else 2014 echo "$as_me:$LINENO: result: no" >&5 2015echo "${ECHO_T}no" >&6 2016fi 2017 2018 test -n "$CC" && break 2019 done 2020fi 2021if test -z "$CC"; then 2022 ac_ct_CC=$CC 2023 for ac_prog in cl 2024do 2025 # Extract the first word of "$ac_prog", so it can be a program name with args. 2026set dummy $ac_prog; ac_word=$2 2027echo "$as_me:$LINENO: checking for $ac_word" >&5 2028echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2029if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2030 echo $ECHO_N "(cached) $ECHO_C" >&6 2031else 2032 if test -n "$ac_ct_CC"; then 2033 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2034else 2035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2036for as_dir in $PATH 2037do 2038 IFS=$as_save_IFS 2039 test -z "$as_dir" && as_dir=. 2040 for ac_exec_ext in '' $ac_executable_extensions; do 2041 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2042 ac_cv_prog_ac_ct_CC="$ac_prog" 2043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2044 break 2 2045 fi 2046done 2047done 2048 2049fi 2050fi 2051ac_ct_CC=$ac_cv_prog_ac_ct_CC 2052if test -n "$ac_ct_CC"; then 2053 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2054echo "${ECHO_T}$ac_ct_CC" >&6 2055else 2056 echo "$as_me:$LINENO: result: no" >&5 2057echo "${ECHO_T}no" >&6 2058fi 2059 2060 test -n "$ac_ct_CC" && break 2061done 2062 2063 CC=$ac_ct_CC 2064fi 2065 2066fi 2067 2068 2069test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2070See \`config.log' for more details." >&5 2071echo "$as_me: error: no acceptable C compiler found in \$PATH 2072See \`config.log' for more details." >&2;} 2073 { (exit 1); exit 1; }; } 2074 2075# Provide some information about the compiler. 2076echo "$as_me:$LINENO:" \ 2077 "checking for C compiler version" >&5 2078ac_compiler=`set X $ac_compile; echo $2` 2079{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2080 (eval $ac_compiler --version </dev/null >&5) 2>&5 2081 ac_status=$? 2082 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2083 (exit $ac_status); } 2084{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2085 (eval $ac_compiler -v </dev/null >&5) 2>&5 2086 ac_status=$? 2087 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2088 (exit $ac_status); } 2089{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2090 (eval $ac_compiler -V </dev/null >&5) 2>&5 2091 ac_status=$? 2092 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2093 (exit $ac_status); } 2094 2095cat >conftest.$ac_ext <<_ACEOF 2096/* confdefs.h. */ 2097_ACEOF 2098cat confdefs.h >>conftest.$ac_ext 2099cat >>conftest.$ac_ext <<_ACEOF 2100/* end confdefs.h. */ 2101 2102int 2103main () 2104{ 2105 2106 ; 2107 return 0; 2108} 2109_ACEOF 2110ac_clean_files_save=$ac_clean_files 2111ac_clean_files="$ac_clean_files a.out a.exe b.out" 2112# Try to create an executable without -o first, disregard a.out. 2113# It will help us diagnose broken compilers, and finding out an intuition 2114# of exeext. 2115echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2116echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2117ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2118if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2119 (eval $ac_link_default) 2>&5 2120 ac_status=$? 2121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2122 (exit $ac_status); }; then 2123 # Find the output, starting from the most likely. This scheme is 2124# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2125# resort. 2126 2127# Be careful to initialize this variable, since it used to be cached. 2128# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2129ac_cv_exeext= 2130# b.out is created by i960 compilers. 2131for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2132do 2133 test -f "$ac_file" || continue 2134 case $ac_file in 2135 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2136 ;; 2137 conftest.$ac_ext ) 2138 # This is the source file. 2139 ;; 2140 [ab].out ) 2141 # We found the default executable, but exeext='' is most 2142 # certainly right. 2143 break;; 2144 *.* ) 2145 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2146 # FIXME: I believe we export ac_cv_exeext for Libtool, 2147 # but it would be cool to find out if it's true. Does anybody 2148 # maintain Libtool? --akim. 2149 export ac_cv_exeext 2150 break;; 2151 * ) 2152 break;; 2153 esac 2154done 2155else 2156 echo "$as_me: failed program was:" >&5 2157sed 's/^/| /' conftest.$ac_ext >&5 2158 2159{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2160See \`config.log' for more details." >&5 2161echo "$as_me: error: C compiler cannot create executables 2162See \`config.log' for more details." >&2;} 2163 { (exit 77); exit 77; }; } 2164fi 2165 2166ac_exeext=$ac_cv_exeext 2167echo "$as_me:$LINENO: result: $ac_file" >&5 2168echo "${ECHO_T}$ac_file" >&6 2169 2170# Check the compiler produces executables we can run. If not, either 2171# the compiler is broken, or we cross compile. 2172echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2173echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2174# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2175# If not cross compiling, check that we can run a simple program. 2176if test "$cross_compiling" != yes; then 2177 if { ac_try='./$ac_file' 2178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2179 (eval $ac_try) 2>&5 2180 ac_status=$? 2181 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2182 (exit $ac_status); }; }; then 2183 cross_compiling=no 2184 else 2185 if test "$cross_compiling" = maybe; then 2186 cross_compiling=yes 2187 else 2188 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2189If you meant to cross compile, use \`--host'. 2190See \`config.log' for more details." >&5 2191echo "$as_me: error: cannot run C compiled programs. 2192If you meant to cross compile, use \`--host'. 2193See \`config.log' for more details." >&2;} 2194 { (exit 1); exit 1; }; } 2195 fi 2196 fi 2197fi 2198echo "$as_me:$LINENO: result: yes" >&5 2199echo "${ECHO_T}yes" >&6 2200 2201rm -f a.out a.exe conftest$ac_cv_exeext b.out 2202ac_clean_files=$ac_clean_files_save 2203# Check the compiler produces executables we can run. If not, either 2204# the compiler is broken, or we cross compile. 2205echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2206echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2207echo "$as_me:$LINENO: result: $cross_compiling" >&5 2208echo "${ECHO_T}$cross_compiling" >&6 2209 2210echo "$as_me:$LINENO: checking for suffix of executables" >&5 2211echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2212if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2213 (eval $ac_link) 2>&5 2214 ac_status=$? 2215 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2216 (exit $ac_status); }; then 2217 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2218# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2219# work properly (i.e., refer to `conftest.exe'), while it won't with 2220# `rm'. 2221for ac_file in conftest.exe conftest conftest.*; do 2222 test -f "$ac_file" || continue 2223 case $ac_file in 2224 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2225 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2226 export ac_cv_exeext 2227 break;; 2228 * ) break;; 2229 esac 2230done 2231else 2232 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2233See \`config.log' for more details." >&5 2234echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2235See \`config.log' for more details." >&2;} 2236 { (exit 1); exit 1; }; } 2237fi 2238 2239rm -f conftest$ac_cv_exeext 2240echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2241echo "${ECHO_T}$ac_cv_exeext" >&6 2242 2243rm -f conftest.$ac_ext 2244EXEEXT=$ac_cv_exeext 2245ac_exeext=$EXEEXT 2246echo "$as_me:$LINENO: checking for suffix of object files" >&5 2247echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2248if test "${ac_cv_objext+set}" = set; then 2249 echo $ECHO_N "(cached) $ECHO_C" >&6 2250else 2251 cat >conftest.$ac_ext <<_ACEOF 2252/* confdefs.h. */ 2253_ACEOF 2254cat confdefs.h >>conftest.$ac_ext 2255cat >>conftest.$ac_ext <<_ACEOF 2256/* end confdefs.h. */ 2257 2258int 2259main () 2260{ 2261 2262 ; 2263 return 0; 2264} 2265_ACEOF 2266rm -f conftest.o conftest.obj 2267if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2268 (eval $ac_compile) 2>&5 2269 ac_status=$? 2270 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2271 (exit $ac_status); }; then 2272 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2273 case $ac_file in 2274 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2275 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2276 break;; 2277 esac 2278done 2279else 2280 echo "$as_me: failed program was:" >&5 2281sed 's/^/| /' conftest.$ac_ext >&5 2282 2283{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2284See \`config.log' for more details." >&5 2285echo "$as_me: error: cannot compute suffix of object files: cannot compile 2286See \`config.log' for more details." >&2;} 2287 { (exit 1); exit 1; }; } 2288fi 2289 2290rm -f conftest.$ac_cv_objext conftest.$ac_ext 2291fi 2292echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2293echo "${ECHO_T}$ac_cv_objext" >&6 2294OBJEXT=$ac_cv_objext 2295ac_objext=$OBJEXT 2296echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2297echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2298if test "${ac_cv_c_compiler_gnu+set}" = set; then 2299 echo $ECHO_N "(cached) $ECHO_C" >&6 2300else 2301 cat >conftest.$ac_ext <<_ACEOF 2302/* confdefs.h. */ 2303_ACEOF 2304cat confdefs.h >>conftest.$ac_ext 2305cat >>conftest.$ac_ext <<_ACEOF 2306/* end confdefs.h. */ 2307 2308int 2309main () 2310{ 2311#ifndef __GNUC__ 2312 choke me 2313#endif 2314 2315 ; 2316 return 0; 2317} 2318_ACEOF 2319rm -f conftest.$ac_objext 2320if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2321 (eval $ac_compile) 2>conftest.er1 2322 ac_status=$? 2323 grep -v '^ *+' conftest.er1 >conftest.err 2324 rm -f conftest.er1 2325 cat conftest.err >&5 2326 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2327 (exit $ac_status); } && 2328 { ac_try='test -z "$ac_c_werror_flag" 2329 || test ! -s conftest.err' 2330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2331 (eval $ac_try) 2>&5 2332 ac_status=$? 2333 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2334 (exit $ac_status); }; } && 2335 { ac_try='test -s conftest.$ac_objext' 2336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2337 (eval $ac_try) 2>&5 2338 ac_status=$? 2339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2340 (exit $ac_status); }; }; then 2341 ac_compiler_gnu=yes 2342else 2343 echo "$as_me: failed program was:" >&5 2344sed 's/^/| /' conftest.$ac_ext >&5 2345 2346ac_compiler_gnu=no 2347fi 2348rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2349ac_cv_c_compiler_gnu=$ac_compiler_gnu 2350 2351fi 2352echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2353echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2354GCC=`test $ac_compiler_gnu = yes && echo yes` 2355ac_test_CFLAGS=${CFLAGS+set} 2356ac_save_CFLAGS=$CFLAGS 2357CFLAGS="-g" 2358echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2359echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2360if test "${ac_cv_prog_cc_g+set}" = set; then 2361 echo $ECHO_N "(cached) $ECHO_C" >&6 2362else 2363 cat >conftest.$ac_ext <<_ACEOF 2364/* confdefs.h. */ 2365_ACEOF 2366cat confdefs.h >>conftest.$ac_ext 2367cat >>conftest.$ac_ext <<_ACEOF 2368/* end confdefs.h. */ 2369 2370int 2371main () 2372{ 2373 2374 ; 2375 return 0; 2376} 2377_ACEOF 2378rm -f conftest.$ac_objext 2379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2380 (eval $ac_compile) 2>conftest.er1 2381 ac_status=$? 2382 grep -v '^ *+' conftest.er1 >conftest.err 2383 rm -f conftest.er1 2384 cat conftest.err >&5 2385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2386 (exit $ac_status); } && 2387 { ac_try='test -z "$ac_c_werror_flag" 2388 || test ! -s conftest.err' 2389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2390 (eval $ac_try) 2>&5 2391 ac_status=$? 2392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2393 (exit $ac_status); }; } && 2394 { ac_try='test -s conftest.$ac_objext' 2395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2396 (eval $ac_try) 2>&5 2397 ac_status=$? 2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2399 (exit $ac_status); }; }; then 2400 ac_cv_prog_cc_g=yes 2401else 2402 echo "$as_me: failed program was:" >&5 2403sed 's/^/| /' conftest.$ac_ext >&5 2404 2405ac_cv_prog_cc_g=no 2406fi 2407rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2408fi 2409echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2410echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2411if test "$ac_test_CFLAGS" = set; then 2412 CFLAGS=$ac_save_CFLAGS 2413elif test $ac_cv_prog_cc_g = yes; then 2414 if test "$GCC" = yes; then 2415 CFLAGS="-g -O2" 2416 else 2417 CFLAGS="-g" 2418 fi 2419else 2420 if test "$GCC" = yes; then 2421 CFLAGS="-O2" 2422 else 2423 CFLAGS= 2424 fi 2425fi 2426echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2427echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2428if test "${ac_cv_prog_cc_stdc+set}" = set; then 2429 echo $ECHO_N "(cached) $ECHO_C" >&6 2430else 2431 ac_cv_prog_cc_stdc=no 2432ac_save_CC=$CC 2433cat >conftest.$ac_ext <<_ACEOF 2434/* confdefs.h. */ 2435_ACEOF 2436cat confdefs.h >>conftest.$ac_ext 2437cat >>conftest.$ac_ext <<_ACEOF 2438/* end confdefs.h. */ 2439#include <stdarg.h> 2440#include <stdio.h> 2441#include <sys/types.h> 2442#include <sys/stat.h> 2443/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2444struct buf { int x; }; 2445FILE * (*rcsopen) (struct buf *, struct stat *, int); 2446static char *e (p, i) 2447 char **p; 2448 int i; 2449{ 2450 return p[i]; 2451} 2452static char *f (char * (*g) (char **, int), char **p, ...) 2453{ 2454 char *s; 2455 va_list v; 2456 va_start (v,p); 2457 s = g (p, va_arg (v,int)); 2458 va_end (v); 2459 return s; 2460} 2461 2462/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2463 function prototypes and stuff, but not '\xHH' hex character constants. 2464 These don't provoke an error unfortunately, instead are silently treated 2465 as 'x'. The following induces an error, until -std1 is added to get 2466 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2467 array size at least. It's necessary to write '\x00'==0 to get something 2468 that's true only with -std1. */ 2469int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2470 2471int test (int i, double x); 2472struct s1 {int (*f) (int a);}; 2473struct s2 {int (*f) (double a);}; 2474int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2475int argc; 2476char **argv; 2477int 2478main () 2479{ 2480return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2481 ; 2482 return 0; 2483} 2484_ACEOF 2485# Don't try gcc -ansi; that turns off useful extensions and 2486# breaks some systems' header files. 2487# AIX -qlanglvl=ansi 2488# Ultrix and OSF/1 -std1 2489# HP-UX 10.20 and later -Ae 2490# HP-UX older versions -Aa -D_HPUX_SOURCE 2491# SVR4 -Xc -D__EXTENSIONS__ 2492for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2493do 2494 CC="$ac_save_CC $ac_arg" 2495 rm -f conftest.$ac_objext 2496if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2497 (eval $ac_compile) 2>conftest.er1 2498 ac_status=$? 2499 grep -v '^ *+' conftest.er1 >conftest.err 2500 rm -f conftest.er1 2501 cat conftest.err >&5 2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2503 (exit $ac_status); } && 2504 { ac_try='test -z "$ac_c_werror_flag" 2505 || test ! -s conftest.err' 2506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2507 (eval $ac_try) 2>&5 2508 ac_status=$? 2509 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2510 (exit $ac_status); }; } && 2511 { ac_try='test -s conftest.$ac_objext' 2512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2513 (eval $ac_try) 2>&5 2514 ac_status=$? 2515 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2516 (exit $ac_status); }; }; then 2517 ac_cv_prog_cc_stdc=$ac_arg 2518break 2519else 2520 echo "$as_me: failed program was:" >&5 2521sed 's/^/| /' conftest.$ac_ext >&5 2522 2523fi 2524rm -f conftest.err conftest.$ac_objext 2525done 2526rm -f conftest.$ac_ext conftest.$ac_objext 2527CC=$ac_save_CC 2528 2529fi 2530 2531case "x$ac_cv_prog_cc_stdc" in 2532 x|xno) 2533 echo "$as_me:$LINENO: result: none needed" >&5 2534echo "${ECHO_T}none needed" >&6 ;; 2535 *) 2536 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2537echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2538 CC="$CC $ac_cv_prog_cc_stdc" ;; 2539esac 2540 2541# Some people use a C++ compiler to compile C. Since we use `exit', 2542# in C++ we need to declare it. In case someone uses the same compiler 2543# for both compiling C and C++ we need to have the C++ compiler decide 2544# the declaration of exit, since it's the most demanding environment. 2545cat >conftest.$ac_ext <<_ACEOF 2546#ifndef __cplusplus 2547 choke me 2548#endif 2549_ACEOF 2550rm -f conftest.$ac_objext 2551if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2552 (eval $ac_compile) 2>conftest.er1 2553 ac_status=$? 2554 grep -v '^ *+' conftest.er1 >conftest.err 2555 rm -f conftest.er1 2556 cat conftest.err >&5 2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2558 (exit $ac_status); } && 2559 { ac_try='test -z "$ac_c_werror_flag" 2560 || test ! -s conftest.err' 2561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2562 (eval $ac_try) 2>&5 2563 ac_status=$? 2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2565 (exit $ac_status); }; } && 2566 { ac_try='test -s conftest.$ac_objext' 2567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2568 (eval $ac_try) 2>&5 2569 ac_status=$? 2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2571 (exit $ac_status); }; }; then 2572 for ac_declaration in \ 2573 '' \ 2574 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2575 'extern "C" void std::exit (int); using std::exit;' \ 2576 'extern "C" void exit (int) throw ();' \ 2577 'extern "C" void exit (int);' \ 2578 'void exit (int);' 2579do 2580 cat >conftest.$ac_ext <<_ACEOF 2581/* confdefs.h. */ 2582_ACEOF 2583cat confdefs.h >>conftest.$ac_ext 2584cat >>conftest.$ac_ext <<_ACEOF 2585/* end confdefs.h. */ 2586$ac_declaration 2587#include <stdlib.h> 2588int 2589main () 2590{ 2591exit (42); 2592 ; 2593 return 0; 2594} 2595_ACEOF 2596rm -f conftest.$ac_objext 2597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2598 (eval $ac_compile) 2>conftest.er1 2599 ac_status=$? 2600 grep -v '^ *+' conftest.er1 >conftest.err 2601 rm -f conftest.er1 2602 cat conftest.err >&5 2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2604 (exit $ac_status); } && 2605 { ac_try='test -z "$ac_c_werror_flag" 2606 || test ! -s conftest.err' 2607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2608 (eval $ac_try) 2>&5 2609 ac_status=$? 2610 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2611 (exit $ac_status); }; } && 2612 { ac_try='test -s conftest.$ac_objext' 2613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2614 (eval $ac_try) 2>&5 2615 ac_status=$? 2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2617 (exit $ac_status); }; }; then 2618 : 2619else 2620 echo "$as_me: failed program was:" >&5 2621sed 's/^/| /' conftest.$ac_ext >&5 2622 2623continue 2624fi 2625rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2626 cat >conftest.$ac_ext <<_ACEOF 2627/* confdefs.h. */ 2628_ACEOF 2629cat confdefs.h >>conftest.$ac_ext 2630cat >>conftest.$ac_ext <<_ACEOF 2631/* end confdefs.h. */ 2632$ac_declaration 2633int 2634main () 2635{ 2636exit (42); 2637 ; 2638 return 0; 2639} 2640_ACEOF 2641rm -f conftest.$ac_objext 2642if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2643 (eval $ac_compile) 2>conftest.er1 2644 ac_status=$? 2645 grep -v '^ *+' conftest.er1 >conftest.err 2646 rm -f conftest.er1 2647 cat conftest.err >&5 2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2649 (exit $ac_status); } && 2650 { ac_try='test -z "$ac_c_werror_flag" 2651 || test ! -s conftest.err' 2652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2653 (eval $ac_try) 2>&5 2654 ac_status=$? 2655 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2656 (exit $ac_status); }; } && 2657 { ac_try='test -s conftest.$ac_objext' 2658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2659 (eval $ac_try) 2>&5 2660 ac_status=$? 2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2662 (exit $ac_status); }; }; then 2663 break 2664else 2665 echo "$as_me: failed program was:" >&5 2666sed 's/^/| /' conftest.$ac_ext >&5 2667 2668fi 2669rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2670done 2671rm -f conftest* 2672if test -n "$ac_declaration"; then 2673 echo '#ifdef __cplusplus' >>confdefs.h 2674 echo $ac_declaration >>confdefs.h 2675 echo '#endif' >>confdefs.h 2676fi 2677 2678else 2679 echo "$as_me: failed program was:" >&5 2680sed 's/^/| /' conftest.$ac_ext >&5 2681 2682fi 2683rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2684ac_ext=c 2685ac_cpp='$CPP $CPPFLAGS' 2686ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2687ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2688ac_compiler_gnu=$ac_cv_c_compiler_gnu 2689 2690 2691echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 2692echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 2693if test "${ac_cv_c_bigendian+set}" = set; then 2694 echo $ECHO_N "(cached) $ECHO_C" >&6 2695else 2696 # See if sys/param.h defines the BYTE_ORDER macro. 2697cat >conftest.$ac_ext <<_ACEOF 2698/* confdefs.h. */ 2699_ACEOF 2700cat confdefs.h >>conftest.$ac_ext 2701cat >>conftest.$ac_ext <<_ACEOF 2702/* end confdefs.h. */ 2703#include <sys/types.h> 2704#include <sys/param.h> 2705 2706int 2707main () 2708{ 2709#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 2710 bogus endian macros 2711#endif 2712 2713 ; 2714 return 0; 2715} 2716_ACEOF 2717rm -f conftest.$ac_objext 2718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2719 (eval $ac_compile) 2>conftest.er1 2720 ac_status=$? 2721 grep -v '^ *+' conftest.er1 >conftest.err 2722 rm -f conftest.er1 2723 cat conftest.err >&5 2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2725 (exit $ac_status); } && 2726 { ac_try='test -z "$ac_c_werror_flag" 2727 || test ! -s conftest.err' 2728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2729 (eval $ac_try) 2>&5 2730 ac_status=$? 2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2732 (exit $ac_status); }; } && 2733 { ac_try='test -s conftest.$ac_objext' 2734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2735 (eval $ac_try) 2>&5 2736 ac_status=$? 2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2738 (exit $ac_status); }; }; then 2739 # It does; now see whether it defined to BIG_ENDIAN or not. 2740cat >conftest.$ac_ext <<_ACEOF 2741/* confdefs.h. */ 2742_ACEOF 2743cat confdefs.h >>conftest.$ac_ext 2744cat >>conftest.$ac_ext <<_ACEOF 2745/* end confdefs.h. */ 2746#include <sys/types.h> 2747#include <sys/param.h> 2748 2749int 2750main () 2751{ 2752#if BYTE_ORDER != BIG_ENDIAN 2753 not big endian 2754#endif 2755 2756 ; 2757 return 0; 2758} 2759_ACEOF 2760rm -f conftest.$ac_objext 2761if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2762 (eval $ac_compile) 2>conftest.er1 2763 ac_status=$? 2764 grep -v '^ *+' conftest.er1 >conftest.err 2765 rm -f conftest.er1 2766 cat conftest.err >&5 2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2768 (exit $ac_status); } && 2769 { ac_try='test -z "$ac_c_werror_flag" 2770 || test ! -s conftest.err' 2771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2772 (eval $ac_try) 2>&5 2773 ac_status=$? 2774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2775 (exit $ac_status); }; } && 2776 { ac_try='test -s conftest.$ac_objext' 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); }; }; then 2782 ac_cv_c_bigendian=yes 2783else 2784 echo "$as_me: failed program was:" >&5 2785sed 's/^/| /' conftest.$ac_ext >&5 2786 2787ac_cv_c_bigendian=no 2788fi 2789rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2790else 2791 echo "$as_me: failed program was:" >&5 2792sed 's/^/| /' conftest.$ac_ext >&5 2793 2794# It does not; compile a test program. 2795if test "$cross_compiling" = yes; then 2796 # try to guess the endianness by grepping values into an object file 2797 ac_cv_c_bigendian=unknown 2798 cat >conftest.$ac_ext <<_ACEOF 2799/* confdefs.h. */ 2800_ACEOF 2801cat confdefs.h >>conftest.$ac_ext 2802cat >>conftest.$ac_ext <<_ACEOF 2803/* end confdefs.h. */ 2804short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 2805short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 2806void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 2807short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 2808short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 2809void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 2810int 2811main () 2812{ 2813 _ascii (); _ebcdic (); 2814 ; 2815 return 0; 2816} 2817_ACEOF 2818rm -f conftest.$ac_objext 2819if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2820 (eval $ac_compile) 2>conftest.er1 2821 ac_status=$? 2822 grep -v '^ *+' conftest.er1 >conftest.err 2823 rm -f conftest.er1 2824 cat conftest.err >&5 2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2826 (exit $ac_status); } && 2827 { ac_try='test -z "$ac_c_werror_flag" 2828 || test ! -s conftest.err' 2829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2830 (eval $ac_try) 2>&5 2831 ac_status=$? 2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2833 (exit $ac_status); }; } && 2834 { ac_try='test -s conftest.$ac_objext' 2835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2836 (eval $ac_try) 2>&5 2837 ac_status=$? 2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2839 (exit $ac_status); }; }; then 2840 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 2841 ac_cv_c_bigendian=yes 2842fi 2843if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 2844 if test "$ac_cv_c_bigendian" = unknown; then 2845 ac_cv_c_bigendian=no 2846 else 2847 # finding both strings is unlikely to happen, but who knows? 2848 ac_cv_c_bigendian=unknown 2849 fi 2850fi 2851else 2852 echo "$as_me: failed program was:" >&5 2853sed 's/^/| /' conftest.$ac_ext >&5 2854 2855fi 2856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2857else 2858 cat >conftest.$ac_ext <<_ACEOF 2859/* confdefs.h. */ 2860_ACEOF 2861cat confdefs.h >>conftest.$ac_ext 2862cat >>conftest.$ac_ext <<_ACEOF 2863/* end confdefs.h. */ 2864int 2865main () 2866{ 2867 /* Are we little or big endian? From Harbison&Steele. */ 2868 union 2869 { 2870 long l; 2871 char c[sizeof (long)]; 2872 } u; 2873 u.l = 1; 2874 exit (u.c[sizeof (long) - 1] == 1); 2875} 2876_ACEOF 2877rm -f conftest$ac_exeext 2878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2879 (eval $ac_link) 2>&5 2880 ac_status=$? 2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2882 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 2883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2884 (eval $ac_try) 2>&5 2885 ac_status=$? 2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2887 (exit $ac_status); }; }; then 2888 ac_cv_c_bigendian=no 2889else 2890 echo "$as_me: program exited with status $ac_status" >&5 2891echo "$as_me: failed program was:" >&5 2892sed 's/^/| /' conftest.$ac_ext >&5 2893 2894( exit $ac_status ) 2895ac_cv_c_bigendian=yes 2896fi 2897rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 2898fi 2899fi 2900rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2901fi 2902echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 2903echo "${ECHO_T}$ac_cv_c_bigendian" >&6 2904case $ac_cv_c_bigendian in 2905 yes) 2906 ENDIAN=big 2907 ;; 2908 no) 2909 ENDIAN=little 2910 ;; 2911 *) 2912 { { echo "$as_me:$LINENO: error: unknown endianness 2913presetting ac_cv_c_bigendian=no (or yes) will help" >&5 2914echo "$as_me: error: unknown endianness 2915presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 2916 { (exit 1); exit 1; }; } ;; 2917esac 2918 2919 2920 2921# Check whether --enable-optimized or --disable-optimized was given. 2922if test "${enable_optimized+set}" = set; then 2923 enableval="$enable_optimized" 2924 2925else 2926 enableval=no 2927fi; 2928if test ${enableval} = "no" ; then 2929 ENABLE_OPTIMIZED= 2930 2931else 2932 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 2933 2934fi 2935 2936# Check whether --enable-jit or --disable-jit was given. 2937if test "${enable_jit+set}" = set; then 2938 enableval="$enable_jit" 2939 2940else 2941 enableval=default 2942fi; 2943if test ${enableval} = "no" 2944then 2945 JIT= 2946 2947else 2948 case "$llvm_cv_target_arch" in 2949 x86) JIT=TARGET_HAS_JIT=1 2950 ;; 2951 Sparc) JIT=TARGET_HAS_JIT=1 2952 ;; 2953 PowerPC) JIT=TARGET_HAS_JIT=1 2954 ;; 2955 *) JIT= 2956 ;; 2957 esac 2958fi 2959 2960 2961# Check whether --with-llvmgccdir or --without-llvmgccdir was given. 2962if test "${with_llvmgccdir+set}" = set; then 2963 withval="$with_llvmgccdir" 2964 LLVMGCCDIR=$withval 2965 2966fi; 2967 2968if test "x$LLVMGCCDIR" = x ; then 2969 case "$llvm_cv_platform_type" in 2970 Linux) 2971 if test -d /home/vadve/lattner/local/x86/llvm-gcc ; then 2972 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/ 2973 2974 fi 2975 ;; 2976 SunOS) 2977 if test -d /home/vadve/lattner/local/sparc/llvm-gcc ; then 2978 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/ 2979 2980 fi 2981 ;; 2982 esac 2983fi 2984 2985 2986ac_ext=c 2987ac_cpp='$CPP $CPPFLAGS' 2988ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2989ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2990ac_compiler_gnu=$ac_cv_c_compiler_gnu 2991echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2992echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2993# On Suns, sometimes $CPP names a directory. 2994if test -n "$CPP" && test -d "$CPP"; then 2995 CPP= 2996fi 2997if test -z "$CPP"; then 2998 if test "${ac_cv_prog_CPP+set}" = set; then 2999 echo $ECHO_N "(cached) $ECHO_C" >&6 3000else 3001 # Double quotes because CPP needs to be expanded 3002 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3003 do 3004 ac_preproc_ok=false 3005for ac_c_preproc_warn_flag in '' yes 3006do 3007 # Use a header file that comes with gcc, so configuring glibc 3008 # with a fresh cross-compiler works. 3009 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3010 # <limits.h> exists even on freestanding compilers. 3011 # On the NeXT, cc -E runs the code through the compiler's parser, 3012 # not just through cpp. "Syntax error" is here to catch this case. 3013 cat >conftest.$ac_ext <<_ACEOF 3014/* confdefs.h. */ 3015_ACEOF 3016cat confdefs.h >>conftest.$ac_ext 3017cat >>conftest.$ac_ext <<_ACEOF 3018/* end confdefs.h. */ 3019#ifdef __STDC__ 3020# include <limits.h> 3021#else 3022# include <assert.h> 3023#endif 3024 Syntax error 3025_ACEOF 3026if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3027 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3028 ac_status=$? 3029 grep -v '^ *+' conftest.er1 >conftest.err 3030 rm -f conftest.er1 3031 cat conftest.err >&5 3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3033 (exit $ac_status); } >/dev/null; then 3034 if test -s conftest.err; then 3035 ac_cpp_err=$ac_c_preproc_warn_flag 3036 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3037 else 3038 ac_cpp_err= 3039 fi 3040else 3041 ac_cpp_err=yes 3042fi 3043if test -z "$ac_cpp_err"; then 3044 : 3045else 3046 echo "$as_me: failed program was:" >&5 3047sed 's/^/| /' conftest.$ac_ext >&5 3048 3049 # Broken: fails on valid input. 3050continue 3051fi 3052rm -f conftest.err conftest.$ac_ext 3053 3054 # OK, works on sane cases. Now check whether non-existent headers 3055 # can be detected and how. 3056 cat >conftest.$ac_ext <<_ACEOF 3057/* confdefs.h. */ 3058_ACEOF 3059cat confdefs.h >>conftest.$ac_ext 3060cat >>conftest.$ac_ext <<_ACEOF 3061/* end confdefs.h. */ 3062#include <ac_nonexistent.h> 3063_ACEOF 3064if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3065 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3066 ac_status=$? 3067 grep -v '^ *+' conftest.er1 >conftest.err 3068 rm -f conftest.er1 3069 cat conftest.err >&5 3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3071 (exit $ac_status); } >/dev/null; then 3072 if test -s conftest.err; then 3073 ac_cpp_err=$ac_c_preproc_warn_flag 3074 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3075 else 3076 ac_cpp_err= 3077 fi 3078else 3079 ac_cpp_err=yes 3080fi 3081if test -z "$ac_cpp_err"; then 3082 # Broken: success on invalid input. 3083continue 3084else 3085 echo "$as_me: failed program was:" >&5 3086sed 's/^/| /' conftest.$ac_ext >&5 3087 3088 # Passes both tests. 3089ac_preproc_ok=: 3090break 3091fi 3092rm -f conftest.err conftest.$ac_ext 3093 3094done 3095# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3096rm -f conftest.err conftest.$ac_ext 3097if $ac_preproc_ok; then 3098 break 3099fi 3100 3101 done 3102 ac_cv_prog_CPP=$CPP 3103 3104fi 3105 CPP=$ac_cv_prog_CPP 3106else 3107 ac_cv_prog_CPP=$CPP 3108fi 3109echo "$as_me:$LINENO: result: $CPP" >&5 3110echo "${ECHO_T}$CPP" >&6 3111ac_preproc_ok=false 3112for ac_c_preproc_warn_flag in '' yes 3113do 3114 # Use a header file that comes with gcc, so configuring glibc 3115 # with a fresh cross-compiler works. 3116 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3117 # <limits.h> exists even on freestanding compilers. 3118 # On the NeXT, cc -E runs the code through the compiler's parser, 3119 # not just through cpp. "Syntax error" is here to catch this case. 3120 cat >conftest.$ac_ext <<_ACEOF 3121/* confdefs.h. */ 3122_ACEOF 3123cat confdefs.h >>conftest.$ac_ext 3124cat >>conftest.$ac_ext <<_ACEOF 3125/* end confdefs.h. */ 3126#ifdef __STDC__ 3127# include <limits.h> 3128#else 3129# include <assert.h> 3130#endif 3131 Syntax error 3132_ACEOF 3133if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3134 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3135 ac_status=$? 3136 grep -v '^ *+' conftest.er1 >conftest.err 3137 rm -f conftest.er1 3138 cat conftest.err >&5 3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3140 (exit $ac_status); } >/dev/null; then 3141 if test -s conftest.err; then 3142 ac_cpp_err=$ac_c_preproc_warn_flag 3143 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3144 else 3145 ac_cpp_err= 3146 fi 3147else 3148 ac_cpp_err=yes 3149fi 3150if test -z "$ac_cpp_err"; then 3151 : 3152else 3153 echo "$as_me: failed program was:" >&5 3154sed 's/^/| /' conftest.$ac_ext >&5 3155 3156 # Broken: fails on valid input. 3157continue 3158fi 3159rm -f conftest.err conftest.$ac_ext 3160 3161 # OK, works on sane cases. Now check whether non-existent headers 3162 # can be detected and how. 3163 cat >conftest.$ac_ext <<_ACEOF 3164/* confdefs.h. */ 3165_ACEOF 3166cat confdefs.h >>conftest.$ac_ext 3167cat >>conftest.$ac_ext <<_ACEOF 3168/* end confdefs.h. */ 3169#include <ac_nonexistent.h> 3170_ACEOF 3171if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3172 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3173 ac_status=$? 3174 grep -v '^ *+' conftest.er1 >conftest.err 3175 rm -f conftest.er1 3176 cat conftest.err >&5 3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3178 (exit $ac_status); } >/dev/null; then 3179 if test -s conftest.err; then 3180 ac_cpp_err=$ac_c_preproc_warn_flag 3181 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3182 else 3183 ac_cpp_err= 3184 fi 3185else 3186 ac_cpp_err=yes 3187fi 3188if test -z "$ac_cpp_err"; then 3189 # Broken: success on invalid input. 3190continue 3191else 3192 echo "$as_me: failed program was:" >&5 3193sed 's/^/| /' conftest.$ac_ext >&5 3194 3195 # Passes both tests. 3196ac_preproc_ok=: 3197break 3198fi 3199rm -f conftest.err conftest.$ac_ext 3200 3201done 3202# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3203rm -f conftest.err conftest.$ac_ext 3204if $ac_preproc_ok; then 3205 : 3206else 3207 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3208See \`config.log' for more details." >&5 3209echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3210See \`config.log' for more details." >&2;} 3211 { (exit 1); exit 1; }; } 3212fi 3213 3214ac_ext=c 3215ac_cpp='$CPP $CPPFLAGS' 3216ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3217ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3218ac_compiler_gnu=$ac_cv_c_compiler_gnu 3219 3220ac_ext=c 3221ac_cpp='$CPP $CPPFLAGS' 3222ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3223ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3224ac_compiler_gnu=$ac_cv_c_compiler_gnu 3225if test -n "$ac_tool_prefix"; then 3226 for ac_prog in gcc 3227 do 3228 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3229set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3230echo "$as_me:$LINENO: checking for $ac_word" >&5 3231echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3232if test "${ac_cv_prog_CC+set}" = set; then 3233 echo $ECHO_N "(cached) $ECHO_C" >&6 3234else 3235 if test -n "$CC"; then 3236 ac_cv_prog_CC="$CC" # Let the user override the test. 3237else 3238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3239for as_dir in $PATH 3240do 3241 IFS=$as_save_IFS 3242 test -z "$as_dir" && as_dir=. 3243 for ac_exec_ext in '' $ac_executable_extensions; do 3244 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3245 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3247 break 2 3248 fi 3249done 3250done 3251 3252fi 3253fi 3254CC=$ac_cv_prog_CC 3255if test -n "$CC"; then 3256 echo "$as_me:$LINENO: result: $CC" >&5 3257echo "${ECHO_T}$CC" >&6 3258else 3259 echo "$as_me:$LINENO: result: no" >&5 3260echo "${ECHO_T}no" >&6 3261fi 3262 3263 test -n "$CC" && break 3264 done 3265fi 3266if test -z "$CC"; then 3267 ac_ct_CC=$CC 3268 for ac_prog in gcc 3269do 3270 # Extract the first word of "$ac_prog", so it can be a program name with args. 3271set dummy $ac_prog; ac_word=$2 3272echo "$as_me:$LINENO: checking for $ac_word" >&5 3273echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3274if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 3275 echo $ECHO_N "(cached) $ECHO_C" >&6 3276else 3277 if test -n "$ac_ct_CC"; then 3278 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3279else 3280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3281for as_dir in $PATH 3282do 3283 IFS=$as_save_IFS 3284 test -z "$as_dir" && as_dir=. 3285 for ac_exec_ext in '' $ac_executable_extensions; do 3286 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3287 ac_cv_prog_ac_ct_CC="$ac_prog" 3288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3289 break 2 3290 fi 3291done 3292done 3293 3294fi 3295fi 3296ac_ct_CC=$ac_cv_prog_ac_ct_CC 3297if test -n "$ac_ct_CC"; then 3298 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3299echo "${ECHO_T}$ac_ct_CC" >&6 3300else 3301 echo "$as_me:$LINENO: result: no" >&5 3302echo "${ECHO_T}no" >&6 3303fi 3304 3305 test -n "$ac_ct_CC" && break 3306done 3307 3308 CC=$ac_ct_CC 3309fi 3310 3311 3312test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 3313See \`config.log' for more details." >&5 3314echo "$as_me: error: no acceptable C compiler found in \$PATH 3315See \`config.log' for more details." >&2;} 3316 { (exit 1); exit 1; }; } 3317 3318# Provide some information about the compiler. 3319echo "$as_me:$LINENO:" \ 3320 "checking for C compiler version" >&5 3321ac_compiler=`set X $ac_compile; echo $2` 3322{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 3323 (eval $ac_compiler --version </dev/null >&5) 2>&5 3324 ac_status=$? 3325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3326 (exit $ac_status); } 3327{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 3328 (eval $ac_compiler -v </dev/null >&5) 2>&5 3329 ac_status=$? 3330 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3331 (exit $ac_status); } 3332{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 3333 (eval $ac_compiler -V </dev/null >&5) 2>&5 3334 ac_status=$? 3335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3336 (exit $ac_status); } 3337 3338echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3339echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 3340if test "${ac_cv_c_compiler_gnu+set}" = set; then 3341 echo $ECHO_N "(cached) $ECHO_C" >&6 3342else 3343 cat >conftest.$ac_ext <<_ACEOF 3344/* confdefs.h. */ 3345_ACEOF 3346cat confdefs.h >>conftest.$ac_ext 3347cat >>conftest.$ac_ext <<_ACEOF 3348/* end confdefs.h. */ 3349 3350int 3351main () 3352{ 3353#ifndef __GNUC__ 3354 choke me 3355#endif 3356 3357 ; 3358 return 0; 3359} 3360_ACEOF 3361rm -f conftest.$ac_objext 3362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3363 (eval $ac_compile) 2>conftest.er1 3364 ac_status=$? 3365 grep -v '^ *+' conftest.er1 >conftest.err 3366 rm -f conftest.er1 3367 cat conftest.err >&5 3368 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3369 (exit $ac_status); } && 3370 { ac_try='test -z "$ac_c_werror_flag" 3371 || test ! -s conftest.err' 3372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3373 (eval $ac_try) 2>&5 3374 ac_status=$? 3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3376 (exit $ac_status); }; } && 3377 { ac_try='test -s conftest.$ac_objext' 3378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3379 (eval $ac_try) 2>&5 3380 ac_status=$? 3381 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3382 (exit $ac_status); }; }; then 3383 ac_compiler_gnu=yes 3384else 3385 echo "$as_me: failed program was:" >&5 3386sed 's/^/| /' conftest.$ac_ext >&5 3387 3388ac_compiler_gnu=no 3389fi 3390rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3391ac_cv_c_compiler_gnu=$ac_compiler_gnu 3392 3393fi 3394echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3395echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 3396GCC=`test $ac_compiler_gnu = yes && echo yes` 3397ac_test_CFLAGS=${CFLAGS+set} 3398ac_save_CFLAGS=$CFLAGS 3399CFLAGS="-g" 3400echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3401echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 3402if test "${ac_cv_prog_cc_g+set}" = set; then 3403 echo $ECHO_N "(cached) $ECHO_C" >&6 3404else 3405 cat >conftest.$ac_ext <<_ACEOF 3406/* confdefs.h. */ 3407_ACEOF 3408cat confdefs.h >>conftest.$ac_ext 3409cat >>conftest.$ac_ext <<_ACEOF 3410/* end confdefs.h. */ 3411 3412int 3413main () 3414{ 3415 3416 ; 3417 return 0; 3418} 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_c_werror_flag" 3430 || test ! -s conftest.err' 3431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3432 (eval $ac_try) 2>&5 3433 ac_status=$? 3434 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3435 (exit $ac_status); }; } && 3436 { ac_try='test -s conftest.$ac_objext' 3437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3438 (eval $ac_try) 2>&5 3439 ac_status=$? 3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3441 (exit $ac_status); }; }; then 3442 ac_cv_prog_cc_g=yes 3443else 3444 echo "$as_me: failed program was:" >&5 3445sed 's/^/| /' conftest.$ac_ext >&5 3446 3447ac_cv_prog_cc_g=no 3448fi 3449rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3450fi 3451echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3452echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 3453if test "$ac_test_CFLAGS" = set; then 3454 CFLAGS=$ac_save_CFLAGS 3455elif test $ac_cv_prog_cc_g = yes; then 3456 if test "$GCC" = yes; then 3457 CFLAGS="-g -O2" 3458 else 3459 CFLAGS="-g" 3460 fi 3461else 3462 if test "$GCC" = yes; then 3463 CFLAGS="-O2" 3464 else 3465 CFLAGS= 3466 fi 3467fi 3468echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 3469echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 3470if test "${ac_cv_prog_cc_stdc+set}" = set; then 3471 echo $ECHO_N "(cached) $ECHO_C" >&6 3472else 3473 ac_cv_prog_cc_stdc=no 3474ac_save_CC=$CC 3475cat >conftest.$ac_ext <<_ACEOF 3476/* confdefs.h. */ 3477_ACEOF 3478cat confdefs.h >>conftest.$ac_ext 3479cat >>conftest.$ac_ext <<_ACEOF 3480/* end confdefs.h. */ 3481#include <stdarg.h> 3482#include <stdio.h> 3483#include <sys/types.h> 3484#include <sys/stat.h> 3485/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3486struct buf { int x; }; 3487FILE * (*rcsopen) (struct buf *, struct stat *, int); 3488static char *e (p, i) 3489 char **p; 3490 int i; 3491{ 3492 return p[i]; 3493} 3494static char *f (char * (*g) (char **, int), char **p, ...) 3495{ 3496 char *s; 3497 va_list v; 3498 va_start (v,p); 3499 s = g (p, va_arg (v,int)); 3500 va_end (v); 3501 return s; 3502} 3503 3504/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3505 function prototypes and stuff, but not '\xHH' hex character constants. 3506 These don't provoke an error unfortunately, instead are silently treated 3507 as 'x'. The following induces an error, until -std1 is added to get 3508 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3509 array size at least. It's necessary to write '\x00'==0 to get something 3510 that's true only with -std1. */ 3511int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3512 3513int test (int i, double x); 3514struct s1 {int (*f) (int a);}; 3515struct s2 {int (*f) (double a);}; 3516int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3517int argc; 3518char **argv; 3519int 3520main () 3521{ 3522return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3523 ; 3524 return 0; 3525} 3526_ACEOF 3527# Don't try gcc -ansi; that turns off useful extensions and 3528# breaks some systems' header files. 3529# AIX -qlanglvl=ansi 3530# Ultrix and OSF/1 -std1 3531# HP-UX 10.20 and later -Ae 3532# HP-UX older versions -Aa -D_HPUX_SOURCE 3533# SVR4 -Xc -D__EXTENSIONS__ 3534for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3535do 3536 CC="$ac_save_CC $ac_arg" 3537 rm -f conftest.$ac_objext 3538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3539 (eval $ac_compile) 2>conftest.er1 3540 ac_status=$? 3541 grep -v '^ *+' conftest.er1 >conftest.err 3542 rm -f conftest.er1 3543 cat conftest.err >&5 3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3545 (exit $ac_status); } && 3546 { ac_try='test -z "$ac_c_werror_flag" 3547 || test ! -s conftest.err' 3548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3549 (eval $ac_try) 2>&5 3550 ac_status=$? 3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3552 (exit $ac_status); }; } && 3553 { ac_try='test -s conftest.$ac_objext' 3554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3555 (eval $ac_try) 2>&5 3556 ac_status=$? 3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3558 (exit $ac_status); }; }; then 3559 ac_cv_prog_cc_stdc=$ac_arg 3560break 3561else 3562 echo "$as_me: failed program was:" >&5 3563sed 's/^/| /' conftest.$ac_ext >&5 3564 3565fi 3566rm -f conftest.err conftest.$ac_objext 3567done 3568rm -f conftest.$ac_ext conftest.$ac_objext 3569CC=$ac_save_CC 3570 3571fi 3572 3573case "x$ac_cv_prog_cc_stdc" in 3574 x|xno) 3575 echo "$as_me:$LINENO: result: none needed" >&5 3576echo "${ECHO_T}none needed" >&6 ;; 3577 *) 3578 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 3579echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 3580 CC="$CC $ac_cv_prog_cc_stdc" ;; 3581esac 3582 3583# Some people use a C++ compiler to compile C. Since we use `exit', 3584# in C++ we need to declare it. In case someone uses the same compiler 3585# for both compiling C and C++ we need to have the C++ compiler decide 3586# the declaration of exit, since it's the most demanding environment. 3587cat >conftest.$ac_ext <<_ACEOF 3588#ifndef __cplusplus 3589 choke me 3590#endif 3591_ACEOF 3592rm -f conftest.$ac_objext 3593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3594 (eval $ac_compile) 2>conftest.er1 3595 ac_status=$? 3596 grep -v '^ *+' conftest.er1 >conftest.err 3597 rm -f conftest.er1 3598 cat conftest.err >&5 3599 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3600 (exit $ac_status); } && 3601 { ac_try='test -z "$ac_c_werror_flag" 3602 || test ! -s conftest.err' 3603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3604 (eval $ac_try) 2>&5 3605 ac_status=$? 3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3607 (exit $ac_status); }; } && 3608 { ac_try='test -s conftest.$ac_objext' 3609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3610 (eval $ac_try) 2>&5 3611 ac_status=$? 3612 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3613 (exit $ac_status); }; }; then 3614 for ac_declaration in \ 3615 '' \ 3616 'extern "C" void std::exit (int) throw (); using std::exit;' \ 3617 'extern "C" void std::exit (int); using std::exit;' \ 3618 'extern "C" void exit (int) throw ();' \ 3619 'extern "C" void exit (int);' \ 3620 'void exit (int);' 3621do 3622 cat >conftest.$ac_ext <<_ACEOF 3623/* confdefs.h. */ 3624_ACEOF 3625cat confdefs.h >>conftest.$ac_ext 3626cat >>conftest.$ac_ext <<_ACEOF 3627/* end confdefs.h. */ 3628$ac_declaration 3629#include <stdlib.h> 3630int 3631main () 3632{ 3633exit (42); 3634 ; 3635 return 0; 3636} 3637_ACEOF 3638rm -f conftest.$ac_objext 3639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3640 (eval $ac_compile) 2>conftest.er1 3641 ac_status=$? 3642 grep -v '^ *+' conftest.er1 >conftest.err 3643 rm -f conftest.er1 3644 cat conftest.err >&5 3645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3646 (exit $ac_status); } && 3647 { ac_try='test -z "$ac_c_werror_flag" 3648 || test ! -s conftest.err' 3649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3650 (eval $ac_try) 2>&5 3651 ac_status=$? 3652 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3653 (exit $ac_status); }; } && 3654 { ac_try='test -s conftest.$ac_objext' 3655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3656 (eval $ac_try) 2>&5 3657 ac_status=$? 3658 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3659 (exit $ac_status); }; }; then 3660 : 3661else 3662 echo "$as_me: failed program was:" >&5 3663sed 's/^/| /' conftest.$ac_ext >&5 3664 3665continue 3666fi 3667rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3668 cat >conftest.$ac_ext <<_ACEOF 3669/* confdefs.h. */ 3670_ACEOF 3671cat confdefs.h >>conftest.$ac_ext 3672cat >>conftest.$ac_ext <<_ACEOF 3673/* end confdefs.h. */ 3674$ac_declaration 3675int 3676main () 3677{ 3678exit (42); 3679 ; 3680 return 0; 3681} 3682_ACEOF 3683rm -f conftest.$ac_objext 3684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3685 (eval $ac_compile) 2>conftest.er1 3686 ac_status=$? 3687 grep -v '^ *+' conftest.er1 >conftest.err 3688 rm -f conftest.er1 3689 cat conftest.err >&5 3690 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3691 (exit $ac_status); } && 3692 { ac_try='test -z "$ac_c_werror_flag" 3693 || test ! -s conftest.err' 3694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3695 (eval $ac_try) 2>&5 3696 ac_status=$? 3697 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3698 (exit $ac_status); }; } && 3699 { ac_try='test -s conftest.$ac_objext' 3700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3701 (eval $ac_try) 2>&5 3702 ac_status=$? 3703 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3704 (exit $ac_status); }; }; then 3705 break 3706else 3707 echo "$as_me: failed program was:" >&5 3708sed 's/^/| /' conftest.$ac_ext >&5 3709 3710fi 3711rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3712done 3713rm -f conftest* 3714if test -n "$ac_declaration"; then 3715 echo '#ifdef __cplusplus' >>confdefs.h 3716 echo $ac_declaration >>confdefs.h 3717 echo '#endif' >>confdefs.h 3718fi 3719 3720else 3721 echo "$as_me: failed program was:" >&5 3722sed 's/^/| /' conftest.$ac_ext >&5 3723 3724fi 3725rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3726ac_ext=c 3727ac_cpp='$CPP $CPPFLAGS' 3728ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3729ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3730ac_compiler_gnu=$ac_cv_c_compiler_gnu 3731 3732ac_ext=cc 3733ac_cpp='$CXXCPP $CPPFLAGS' 3734ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3735ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3736ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3737if test -n "$ac_tool_prefix"; then 3738 for ac_prog in $CCC g++ 3739 do 3740 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3741set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3742echo "$as_me:$LINENO: checking for $ac_word" >&5 3743echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3744if test "${ac_cv_prog_CXX+set}" = set; then 3745 echo $ECHO_N "(cached) $ECHO_C" >&6 3746else 3747 if test -n "$CXX"; then 3748 ac_cv_prog_CXX="$CXX" # Let the user override the test. 3749else 3750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3751for as_dir in $PATH 3752do 3753 IFS=$as_save_IFS 3754 test -z "$as_dir" && as_dir=. 3755 for ac_exec_ext in '' $ac_executable_extensions; do 3756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3757 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 3758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3759 break 2 3760 fi 3761done 3762done 3763 3764fi 3765fi 3766CXX=$ac_cv_prog_CXX 3767if test -n "$CXX"; then 3768 echo "$as_me:$LINENO: result: $CXX" >&5 3769echo "${ECHO_T}$CXX" >&6 3770else 3771 echo "$as_me:$LINENO: result: no" >&5 3772echo "${ECHO_T}no" >&6 3773fi 3774 3775 test -n "$CXX" && break 3776 done 3777fi 3778if test -z "$CXX"; then 3779 ac_ct_CXX=$CXX 3780 for ac_prog in $CCC g++ 3781do 3782 # Extract the first word of "$ac_prog", so it can be a program name with args. 3783set dummy $ac_prog; ac_word=$2 3784echo "$as_me:$LINENO: checking for $ac_word" >&5 3785echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3786if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 3787 echo $ECHO_N "(cached) $ECHO_C" >&6 3788else 3789 if test -n "$ac_ct_CXX"; then 3790 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 3791else 3792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3793for as_dir in $PATH 3794do 3795 IFS=$as_save_IFS 3796 test -z "$as_dir" && as_dir=. 3797 for ac_exec_ext in '' $ac_executable_extensions; do 3798 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3799 ac_cv_prog_ac_ct_CXX="$ac_prog" 3800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3801 break 2 3802 fi 3803done 3804done 3805 3806fi 3807fi 3808ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 3809if test -n "$ac_ct_CXX"; then 3810 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 3811echo "${ECHO_T}$ac_ct_CXX" >&6 3812else 3813 echo "$as_me:$LINENO: result: no" >&5 3814echo "${ECHO_T}no" >&6 3815fi 3816 3817 test -n "$ac_ct_CXX" && break 3818done 3819test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 3820 3821 CXX=$ac_ct_CXX 3822fi 3823 3824 3825# Provide some information about the compiler. 3826echo "$as_me:$LINENO:" \ 3827 "checking for C++ compiler version" >&5 3828ac_compiler=`set X $ac_compile; echo $2` 3829{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 3830 (eval $ac_compiler --version </dev/null >&5) 2>&5 3831 ac_status=$? 3832 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3833 (exit $ac_status); } 3834{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 3835 (eval $ac_compiler -v </dev/null >&5) 2>&5 3836 ac_status=$? 3837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3838 (exit $ac_status); } 3839{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 3840 (eval $ac_compiler -V </dev/null >&5) 2>&5 3841 ac_status=$? 3842 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3843 (exit $ac_status); } 3844 3845echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 3846echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 3847if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 3848 echo $ECHO_N "(cached) $ECHO_C" >&6 3849else 3850 cat >conftest.$ac_ext <<_ACEOF 3851/* confdefs.h. */ 3852_ACEOF 3853cat confdefs.h >>conftest.$ac_ext 3854cat >>conftest.$ac_ext <<_ACEOF 3855/* end confdefs.h. */ 3856 3857int 3858main () 3859{ 3860#ifndef __GNUC__ 3861 choke me 3862#endif 3863 3864 ; 3865 return 0; 3866} 3867_ACEOF 3868rm -f conftest.$ac_objext 3869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3870 (eval $ac_compile) 2>conftest.er1 3871 ac_status=$? 3872 grep -v '^ *+' conftest.er1 >conftest.err 3873 rm -f conftest.er1 3874 cat conftest.err >&5 3875 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3876 (exit $ac_status); } && 3877 { ac_try='test -z "$ac_cxx_werror_flag" 3878 || test ! -s conftest.err' 3879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3880 (eval $ac_try) 2>&5 3881 ac_status=$? 3882 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3883 (exit $ac_status); }; } && 3884 { ac_try='test -s conftest.$ac_objext' 3885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3886 (eval $ac_try) 2>&5 3887 ac_status=$? 3888 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3889 (exit $ac_status); }; }; then 3890 ac_compiler_gnu=yes 3891else 3892 echo "$as_me: failed program was:" >&5 3893sed 's/^/| /' conftest.$ac_ext >&5 3894 3895ac_compiler_gnu=no 3896fi 3897rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3898ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3899 3900fi 3901echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 3902echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 3903GXX=`test $ac_compiler_gnu = yes && echo yes` 3904ac_test_CXXFLAGS=${CXXFLAGS+set} 3905ac_save_CXXFLAGS=$CXXFLAGS 3906CXXFLAGS="-g" 3907echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 3908echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 3909if test "${ac_cv_prog_cxx_g+set}" = set; then 3910 echo $ECHO_N "(cached) $ECHO_C" >&6 3911else 3912 cat >conftest.$ac_ext <<_ACEOF 3913/* confdefs.h. */ 3914_ACEOF 3915cat confdefs.h >>conftest.$ac_ext 3916cat >>conftest.$ac_ext <<_ACEOF 3917/* end confdefs.h. */ 3918 3919int 3920main () 3921{ 3922 3923 ; 3924 return 0; 3925} 3926_ACEOF 3927rm -f conftest.$ac_objext 3928if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3929 (eval $ac_compile) 2>conftest.er1 3930 ac_status=$? 3931 grep -v '^ *+' conftest.er1 >conftest.err 3932 rm -f conftest.er1 3933 cat conftest.err >&5 3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3935 (exit $ac_status); } && 3936 { ac_try='test -z "$ac_cxx_werror_flag" 3937 || test ! -s conftest.err' 3938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3939 (eval $ac_try) 2>&5 3940 ac_status=$? 3941 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3942 (exit $ac_status); }; } && 3943 { ac_try='test -s conftest.$ac_objext' 3944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3945 (eval $ac_try) 2>&5 3946 ac_status=$? 3947 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3948 (exit $ac_status); }; }; then 3949 ac_cv_prog_cxx_g=yes 3950else 3951 echo "$as_me: failed program was:" >&5 3952sed 's/^/| /' conftest.$ac_ext >&5 3953 3954ac_cv_prog_cxx_g=no 3955fi 3956rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3957fi 3958echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 3959echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 3960if test "$ac_test_CXXFLAGS" = set; then 3961 CXXFLAGS=$ac_save_CXXFLAGS 3962elif test $ac_cv_prog_cxx_g = yes; then 3963 if test "$GXX" = yes; then 3964 CXXFLAGS="-g -O2" 3965 else 3966 CXXFLAGS="-g" 3967 fi 3968else 3969 if test "$GXX" = yes; then 3970 CXXFLAGS="-O2" 3971 else 3972 CXXFLAGS= 3973 fi 3974fi 3975for ac_declaration in \ 3976 '' \ 3977 'extern "C" void std::exit (int) throw (); using std::exit;' \ 3978 'extern "C" void std::exit (int); using std::exit;' \ 3979 'extern "C" void exit (int) throw ();' \ 3980 'extern "C" void exit (int);' \ 3981 'void exit (int);' 3982do 3983 cat >conftest.$ac_ext <<_ACEOF 3984/* confdefs.h. */ 3985_ACEOF 3986cat confdefs.h >>conftest.$ac_ext 3987cat >>conftest.$ac_ext <<_ACEOF 3988/* end confdefs.h. */ 3989$ac_declaration 3990#include <stdlib.h> 3991int 3992main () 3993{ 3994exit (42); 3995 ; 3996 return 0; 3997} 3998_ACEOF 3999rm -f conftest.$ac_objext 4000if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4001 (eval $ac_compile) 2>conftest.er1 4002 ac_status=$? 4003 grep -v '^ *+' conftest.er1 >conftest.err 4004 rm -f conftest.er1 4005 cat conftest.err >&5 4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4007 (exit $ac_status); } && 4008 { ac_try='test -z "$ac_cxx_werror_flag" 4009 || test ! -s conftest.err' 4010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4011 (eval $ac_try) 2>&5 4012 ac_status=$? 4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4014 (exit $ac_status); }; } && 4015 { ac_try='test -s conftest.$ac_objext' 4016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4017 (eval $ac_try) 2>&5 4018 ac_status=$? 4019 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4020 (exit $ac_status); }; }; then 4021 : 4022else 4023 echo "$as_me: failed program was:" >&5 4024sed 's/^/| /' conftest.$ac_ext >&5 4025 4026continue 4027fi 4028rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4029 cat >conftest.$ac_ext <<_ACEOF 4030/* confdefs.h. */ 4031_ACEOF 4032cat confdefs.h >>conftest.$ac_ext 4033cat >>conftest.$ac_ext <<_ACEOF 4034/* end confdefs.h. */ 4035$ac_declaration 4036int 4037main () 4038{ 4039exit (42); 4040 ; 4041 return 0; 4042} 4043_ACEOF 4044rm -f conftest.$ac_objext 4045if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4046 (eval $ac_compile) 2>conftest.er1 4047 ac_status=$? 4048 grep -v '^ *+' conftest.er1 >conftest.err 4049 rm -f conftest.er1 4050 cat conftest.err >&5 4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4052 (exit $ac_status); } && 4053 { ac_try='test -z "$ac_cxx_werror_flag" 4054 || test ! -s conftest.err' 4055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4056 (eval $ac_try) 2>&5 4057 ac_status=$? 4058 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4059 (exit $ac_status); }; } && 4060 { ac_try='test -s conftest.$ac_objext' 4061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4062 (eval $ac_try) 2>&5 4063 ac_status=$? 4064 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4065 (exit $ac_status); }; }; then 4066 break 4067else 4068 echo "$as_me: failed program was:" >&5 4069sed 's/^/| /' conftest.$ac_ext >&5 4070 4071fi 4072rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4073done 4074rm -f conftest* 4075if test -n "$ac_declaration"; then 4076 echo '#ifdef __cplusplus' >>confdefs.h 4077 echo $ac_declaration >>confdefs.h 4078 echo '#endif' >>confdefs.h 4079fi 4080 4081ac_ext=c 4082ac_cpp='$CPP $CPPFLAGS' 4083ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4084ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4085ac_compiler_gnu=$ac_cv_c_compiler_gnu 4086 4087echo "$as_me:$LINENO: checking " >&5 4088echo $ECHO_N "checking ... $ECHO_C" >&6 4089if test "${ac_cv_has_flex+set}" = set; then 4090 echo $ECHO_N "(cached) $ECHO_C" >&6 4091else 4092 for ac_prog in flex lex 4093do 4094 # Extract the first word of "$ac_prog", so it can be a program name with args. 4095set dummy $ac_prog; ac_word=$2 4096echo "$as_me:$LINENO: checking for $ac_word" >&5 4097echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4098if test "${ac_cv_prog_LEX+set}" = set; then 4099 echo $ECHO_N "(cached) $ECHO_C" >&6 4100else 4101 if test -n "$LEX"; then 4102 ac_cv_prog_LEX="$LEX" # Let the user override the test. 4103else 4104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4105for as_dir in $PATH 4106do 4107 IFS=$as_save_IFS 4108 test -z "$as_dir" && as_dir=. 4109 for ac_exec_ext in '' $ac_executable_extensions; do 4110 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4111 ac_cv_prog_LEX="$ac_prog" 4112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4113 break 2 4114 fi 4115done 4116done 4117 4118fi 4119fi 4120LEX=$ac_cv_prog_LEX 4121if test -n "$LEX"; then 4122 echo "$as_me:$LINENO: result: $LEX" >&5 4123echo "${ECHO_T}$LEX" >&6 4124else 4125 echo "$as_me:$LINENO: result: no" >&5 4126echo "${ECHO_T}no" >&6 4127fi 4128 4129 test -n "$LEX" && break 4130done 4131test -n "$LEX" || LEX=":" 4132 4133if test -z "$LEXLIB" 4134then 4135 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 4136echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 4137if test "${ac_cv_lib_fl_yywrap+set}" = set; then 4138 echo $ECHO_N "(cached) $ECHO_C" >&6 4139else 4140 ac_check_lib_save_LIBS=$LIBS 4141LIBS="-lfl $LIBS" 4142cat >conftest.$ac_ext <<_ACEOF 4143/* confdefs.h. */ 4144_ACEOF 4145cat confdefs.h >>conftest.$ac_ext 4146cat >>conftest.$ac_ext <<_ACEOF 4147/* end confdefs.h. */ 4148 4149/* Override any gcc2 internal prototype to avoid an error. */ 4150#ifdef __cplusplus 4151extern "C" 4152#endif 4153/* We use char because int might match the return type of a gcc2 4154 builtin and then its argument prototype would still apply. */ 4155char yywrap (); 4156int 4157main () 4158{ 4159yywrap (); 4160 ; 4161 return 0; 4162} 4163_ACEOF 4164rm -f conftest.$ac_objext conftest$ac_exeext 4165if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4166 (eval $ac_link) 2>conftest.er1 4167 ac_status=$? 4168 grep -v '^ *+' conftest.er1 >conftest.err 4169 rm -f conftest.er1 4170 cat conftest.err >&5 4171 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4172 (exit $ac_status); } && 4173 { ac_try='test -z "$ac_c_werror_flag" 4174 || test ! -s conftest.err' 4175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4176 (eval $ac_try) 2>&5 4177 ac_status=$? 4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4179 (exit $ac_status); }; } && 4180 { ac_try='test -s conftest$ac_exeext' 4181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4182 (eval $ac_try) 2>&5 4183 ac_status=$? 4184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4185 (exit $ac_status); }; }; then 4186 ac_cv_lib_fl_yywrap=yes 4187else 4188 echo "$as_me: failed program was:" >&5 4189sed 's/^/| /' conftest.$ac_ext >&5 4190 4191ac_cv_lib_fl_yywrap=no 4192fi 4193rm -f conftest.err conftest.$ac_objext \ 4194 conftest$ac_exeext conftest.$ac_ext 4195LIBS=$ac_check_lib_save_LIBS 4196fi 4197echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 4198echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 4199if test $ac_cv_lib_fl_yywrap = yes; then 4200 LEXLIB="-lfl" 4201else 4202 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 4203echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 4204if test "${ac_cv_lib_l_yywrap+set}" = set; then 4205 echo $ECHO_N "(cached) $ECHO_C" >&6 4206else 4207 ac_check_lib_save_LIBS=$LIBS 4208LIBS="-ll $LIBS" 4209cat >conftest.$ac_ext <<_ACEOF 4210/* confdefs.h. */ 4211_ACEOF 4212cat confdefs.h >>conftest.$ac_ext 4213cat >>conftest.$ac_ext <<_ACEOF 4214/* end confdefs.h. */ 4215 4216/* Override any gcc2 internal prototype to avoid an error. */ 4217#ifdef __cplusplus 4218extern "C" 4219#endif 4220/* We use char because int might match the return type of a gcc2 4221 builtin and then its argument prototype would still apply. */ 4222char yywrap (); 4223int 4224main () 4225{ 4226yywrap (); 4227 ; 4228 return 0; 4229} 4230_ACEOF 4231rm -f conftest.$ac_objext conftest$ac_exeext 4232if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4233 (eval $ac_link) 2>conftest.er1 4234 ac_status=$? 4235 grep -v '^ *+' conftest.er1 >conftest.err 4236 rm -f conftest.er1 4237 cat conftest.err >&5 4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4239 (exit $ac_status); } && 4240 { ac_try='test -z "$ac_c_werror_flag" 4241 || test ! -s conftest.err' 4242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4243 (eval $ac_try) 2>&5 4244 ac_status=$? 4245 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4246 (exit $ac_status); }; } && 4247 { ac_try='test -s conftest$ac_exeext' 4248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4249 (eval $ac_try) 2>&5 4250 ac_status=$? 4251 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4252 (exit $ac_status); }; }; then 4253 ac_cv_lib_l_yywrap=yes 4254else 4255 echo "$as_me: failed program was:" >&5 4256sed 's/^/| /' conftest.$ac_ext >&5 4257 4258ac_cv_lib_l_yywrap=no 4259fi 4260rm -f conftest.err conftest.$ac_objext \ 4261 conftest$ac_exeext conftest.$ac_ext 4262LIBS=$ac_check_lib_save_LIBS 4263fi 4264echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 4265echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 4266if test $ac_cv_lib_l_yywrap = yes; then 4267 LEXLIB="-ll" 4268fi 4269 4270fi 4271 4272fi 4273 4274if test "x$LEX" != "x:"; then 4275 echo "$as_me:$LINENO: checking lex output file root" >&5 4276echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 4277if test "${ac_cv_prog_lex_root+set}" = set; then 4278 echo $ECHO_N "(cached) $ECHO_C" >&6 4279else 4280 # The minimal lex program is just a single line: %%. But some broken lexes 4281# (Solaris, I think it was) want two %% lines, so accommodate them. 4282cat >conftest.l <<_ACEOF 4283%% 4284%% 4285_ACEOF 4286{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5 4287 (eval $LEX conftest.l) 2>&5 4288 ac_status=$? 4289 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4290 (exit $ac_status); } 4291if test -f lex.yy.c; then 4292 ac_cv_prog_lex_root=lex.yy 4293elif test -f lexyy.c; then 4294 ac_cv_prog_lex_root=lexyy 4295else 4296 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 4297echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} 4298 { (exit 1); exit 1; }; } 4299fi 4300fi 4301echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 4302echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 4303rm -f conftest.l 4304LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 4305 4306echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 4307echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 4308if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then 4309 echo $ECHO_N "(cached) $ECHO_C" >&6 4310else 4311 # POSIX says lex can declare yytext either as a pointer or an array; the 4312# default is implementation-dependent. Figure out which it is, since 4313# not all implementations provide the %pointer and %array declarations. 4314ac_cv_prog_lex_yytext_pointer=no 4315echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c 4316ac_save_LIBS=$LIBS 4317LIBS="$LIBS $LEXLIB" 4318cat >conftest.$ac_ext <<_ACEOF 4319`cat $LEX_OUTPUT_ROOT.c` 4320_ACEOF 4321rm -f conftest.$ac_objext conftest$ac_exeext 4322if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4323 (eval $ac_link) 2>conftest.er1 4324 ac_status=$? 4325 grep -v '^ *+' conftest.er1 >conftest.err 4326 rm -f conftest.er1 4327 cat conftest.err >&5 4328 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4329 (exit $ac_status); } && 4330 { ac_try='test -z "$ac_c_werror_flag" 4331 || test ! -s conftest.err' 4332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4333 (eval $ac_try) 2>&5 4334 ac_status=$? 4335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4336 (exit $ac_status); }; } && 4337 { ac_try='test -s conftest$ac_exeext' 4338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4339 (eval $ac_try) 2>&5 4340 ac_status=$? 4341 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4342 (exit $ac_status); }; }; then 4343 ac_cv_prog_lex_yytext_pointer=yes 4344else 4345 echo "$as_me: failed program was:" >&5 4346sed 's/^/| /' conftest.$ac_ext >&5 4347 4348fi 4349rm -f conftest.err conftest.$ac_objext \ 4350 conftest$ac_exeext conftest.$ac_ext 4351LIBS=$ac_save_LIBS 4352rm -f "${LEX_OUTPUT_ROOT}.c" 4353 4354fi 4355echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 4356echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 4357if test $ac_cv_prog_lex_yytext_pointer = yes; then 4358 4359cat >>confdefs.h <<\_ACEOF 4360#define YYTEXT_POINTER 1 4361_ACEOF 4362 4363fi 4364 4365fi 4366 4367fi 4368echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5 4369echo "${ECHO_T}$ac_cv_has_flex" >&6 4370if test "$LEX" != "flex"; then 4371 { { echo "$as_me:$LINENO: error: flex not found but required" >&5 4372echo "$as_me: error: flex not found but required" >&2;} 4373 { (exit 1); exit 1; }; } 4374else 4375 FLEX=flex 4376 4377fi 4378 4379echo "$as_me:$LINENO: checking " >&5 4380echo $ECHO_N "checking ... $ECHO_C" >&6 4381if test "${llvm_cv_has_bison+set}" = set; then 4382 echo $ECHO_N "(cached) $ECHO_C" >&6 4383else 4384 for ac_prog in 'bison -y' byacc 4385do 4386 # Extract the first word of "$ac_prog", so it can be a program name with args. 4387set dummy $ac_prog; ac_word=$2 4388echo "$as_me:$LINENO: checking for $ac_word" >&5 4389echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4390if test "${ac_cv_prog_YACC+set}" = set; then 4391 echo $ECHO_N "(cached) $ECHO_C" >&6 4392else 4393 if test -n "$YACC"; then 4394 ac_cv_prog_YACC="$YACC" # Let the user override the test. 4395else 4396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4397for as_dir in $PATH 4398do 4399 IFS=$as_save_IFS 4400 test -z "$as_dir" && as_dir=. 4401 for ac_exec_ext in '' $ac_executable_extensions; do 4402 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4403 ac_cv_prog_YACC="$ac_prog" 4404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4405 break 2 4406 fi 4407done 4408done 4409 4410fi 4411fi 4412YACC=$ac_cv_prog_YACC 4413if test -n "$YACC"; then 4414 echo "$as_me:$LINENO: result: $YACC" >&5 4415echo "${ECHO_T}$YACC" >&6 4416else 4417 echo "$as_me:$LINENO: result: no" >&5 4418echo "${ECHO_T}no" >&6 4419fi 4420 4421 test -n "$YACC" && break 4422done 4423test -n "$YACC" || YACC="yacc" 4424 4425 4426fi 4427echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5 4428echo "${ECHO_T}$llvm_cv_has_bison" >&6 4429if test "$YACC" != "bison -y"; then 4430 { { echo "$as_me:$LINENO: error: bison not found but required" >&5 4431echo "$as_me: error: bison not found but required" >&2;} 4432 { (exit 1); exit 1; }; } 4433else 4434 BISON=bison 4435 4436fi 4437 4438 4439 4440 4441# Check whether --enable-shared or --disable-shared was given. 4442if test "${enable_shared+set}" = set; then 4443 enableval="$enable_shared" 4444 p=${PACKAGE-default} 4445 case $enableval in 4446 yes) enable_shared=yes ;; 4447 no) enable_shared=no ;; 4448 *) 4449 enable_shared=no 4450 # Look at the argument we got. We use all the common list separators. 4451 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4452 for pkg in $enableval; do 4453 IFS="$lt_save_ifs" 4454 if test "X$pkg" = "X$p"; then 4455 enable_shared=yes 4456 fi 4457 done 4458 IFS="$lt_save_ifs" 4459 ;; 4460 esac 4461else 4462 enable_shared=yes 4463fi; 4464 4465# Check whether --enable-static or --disable-static was given. 4466if test "${enable_static+set}" = set; then 4467 enableval="$enable_static" 4468 p=${PACKAGE-default} 4469 case $enableval in 4470 yes) enable_static=yes ;; 4471 no) enable_static=no ;; 4472 *) 4473 enable_static=no 4474 # Look at the argument we got. We use all the common list separators. 4475 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4476 for pkg in $enableval; do 4477 IFS="$lt_save_ifs" 4478 if test "X$pkg" = "X$p"; then 4479 enable_static=yes 4480 fi 4481 done 4482 IFS="$lt_save_ifs" 4483 ;; 4484 esac 4485else 4486 enable_static=yes 4487fi; 4488 4489# Check whether --enable-fast-install or --disable-fast-install was given. 4490if test "${enable_fast_install+set}" = set; then 4491 enableval="$enable_fast_install" 4492 p=${PACKAGE-default} 4493 case $enableval in 4494 yes) enable_fast_install=yes ;; 4495 no) enable_fast_install=no ;; 4496 *) 4497 enable_fast_install=no 4498 # Look at the argument we got. We use all the common list separators. 4499 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4500 for pkg in $enableval; do 4501 IFS="$lt_save_ifs" 4502 if test "X$pkg" = "X$p"; then 4503 enable_fast_install=yes 4504 fi 4505 done 4506 IFS="$lt_save_ifs" 4507 ;; 4508 esac 4509else 4510 enable_fast_install=yes 4511fi; 4512 4513echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 4514echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 4515if test "${lt_cv_path_SED+set}" = set; then 4516 echo $ECHO_N "(cached) $ECHO_C" >&6 4517else 4518 # Loop through the user's path and test for sed and gsed. 4519# Then use that list of sed's as ones to test for truncation. 4520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4521for as_dir in $PATH 4522do 4523 IFS=$as_save_IFS 4524 test -z "$as_dir" && as_dir=. 4525 for lt_ac_prog in sed gsed; do 4526 for ac_exec_ext in '' $ac_executable_extensions; do 4527 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 4528 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 4529 fi 4530 done 4531 done 4532done 4533lt_ac_max=0 4534lt_ac_count=0 4535# Add /usr/xpg4/bin/sed as it is typically found on Solaris 4536# along with /bin/sed that truncates output. 4537for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 4538 test ! -f $lt_ac_sed && break 4539 cat /dev/null > conftest.in 4540 lt_ac_count=0 4541 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 4542 # Check for GNU sed and select it if it is found. 4543 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 4544 lt_cv_path_SED=$lt_ac_sed 4545 break 4546 fi 4547 while true; do 4548 cat conftest.in conftest.in >conftest.tmp 4549 mv conftest.tmp conftest.in 4550 cp conftest.in conftest.nl 4551 echo >>conftest.nl 4552 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 4553 cmp -s conftest.out conftest.nl || break 4554 # 10000 chars as input seems more than enough 4555 test $lt_ac_count -gt 10 && break 4556 lt_ac_count=`expr $lt_ac_count + 1` 4557 if test $lt_ac_count -gt $lt_ac_max; then 4558 lt_ac_max=$lt_ac_count 4559 lt_cv_path_SED=$lt_ac_sed 4560 fi 4561 done 4562done 4563 4564fi 4565 4566SED=$lt_cv_path_SED 4567echo "$as_me:$LINENO: result: $SED" >&5 4568echo "${ECHO_T}$SED" >&6 4569 4570echo "$as_me:$LINENO: checking for egrep" >&5 4571echo $ECHO_N "checking for egrep... $ECHO_C" >&6 4572if test "${ac_cv_prog_egrep+set}" = set; then 4573 echo $ECHO_N "(cached) $ECHO_C" >&6 4574else 4575 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 4576 then ac_cv_prog_egrep='grep -E' 4577 else ac_cv_prog_egrep='egrep' 4578 fi 4579fi 4580echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 4581echo "${ECHO_T}$ac_cv_prog_egrep" >&6 4582 EGREP=$ac_cv_prog_egrep 4583 4584 4585 4586# Check whether --with-gnu-ld or --without-gnu-ld was given. 4587if test "${with_gnu_ld+set}" = set; then 4588 withval="$with_gnu_ld" 4589 test "$withval" = no || with_gnu_ld=yes 4590else 4591 with_gnu_ld=no 4592fi; 4593ac_prog=ld 4594if test "$GCC" = yes; then 4595 # Check if gcc -print-prog-name=ld gives a path. 4596 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4597echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 4598 case $host in 4599 *-*-mingw*) 4600 # gcc leaves a trailing carriage return which upsets mingw 4601 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4602 *) 4603 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4604 esac 4605 case $ac_prog in 4606 # Accept absolute paths. 4607 [\\/]* | ?:[\\/]*) 4608 re_direlt='/[^/][^/]*/\.\./' 4609 # Canonicalize the pathname of ld 4610 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 4611 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 4612 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 4613 done 4614 test -z "$LD" && LD="$ac_prog" 4615 ;; 4616 "") 4617 # If it fails, then pretend we aren't using GCC. 4618 ac_prog=ld 4619 ;; 4620 *) 4621 # If it is relative, then search for the first ld in PATH. 4622 with_gnu_ld=unknown 4623 ;; 4624 esac 4625elif test "$with_gnu_ld" = yes; then 4626 echo "$as_me:$LINENO: checking for GNU ld" >&5 4627echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 4628else 4629 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4630echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 4631fi 4632if test "${lt_cv_path_LD+set}" = set; then 4633 echo $ECHO_N "(cached) $ECHO_C" >&6 4634else 4635 if test -z "$LD"; then 4636 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4637 for ac_dir in $PATH; do 4638 IFS="$lt_save_ifs" 4639 test -z "$ac_dir" && ac_dir=. 4640 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4641 lt_cv_path_LD="$ac_dir/$ac_prog" 4642 # Check to see if the program is GNU ld. I'd rather use --version, 4643 # but apparently some GNU ld's only accept -v. 4644 # Break only if it was the GNU/non-GNU ld that we prefer. 4645 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4646 *GNU* | *'with BFD'*) 4647 test "$with_gnu_ld" != no && break 4648 ;; 4649 *) 4650 test "$with_gnu_ld" != yes && break 4651 ;; 4652 esac 4653 fi 4654 done 4655 IFS="$lt_save_ifs" 4656else 4657 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4658fi 4659fi 4660 4661LD="$lt_cv_path_LD" 4662if test -n "$LD"; then 4663 echo "$as_me:$LINENO: result: $LD" >&5 4664echo "${ECHO_T}$LD" >&6 4665else 4666 echo "$as_me:$LINENO: result: no" >&5 4667echo "${ECHO_T}no" >&6 4668fi 4669test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4670echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4671 { (exit 1); exit 1; }; } 4672echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4673echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 4674if test "${lt_cv_prog_gnu_ld+set}" = set; then 4675 echo $ECHO_N "(cached) $ECHO_C" >&6 4676else 4677 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 4678case `$LD -v 2>&1 </dev/null` in 4679*GNU* | *'with BFD'*) 4680 lt_cv_prog_gnu_ld=yes 4681 ;; 4682*) 4683 lt_cv_prog_gnu_ld=no 4684 ;; 4685esac 4686fi 4687echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4688echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 4689with_gnu_ld=$lt_cv_prog_gnu_ld 4690 4691 4692echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4693echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 4694if test "${lt_cv_ld_reload_flag+set}" = set; then 4695 echo $ECHO_N "(cached) $ECHO_C" >&6 4696else 4697 lt_cv_ld_reload_flag='-r' 4698fi 4699echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4700echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 4701reload_flag=$lt_cv_ld_reload_flag 4702case $reload_flag in 4703"" | " "*) ;; 4704*) reload_flag=" $reload_flag" ;; 4705esac 4706reload_cmds='$LD$reload_flag -o $output$reload_objs' 4707case $host_os in 4708 darwin*) 4709 if test "$GCC" = yes; then 4710 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs' 4711 else 4712 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4713 fi 4714 ;; 4715esac 4716 4717echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4718echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 4719if test "${lt_cv_path_NM+set}" = set; then 4720 echo $ECHO_N "(cached) $ECHO_C" >&6 4721else 4722 if test -n "$NM"; then 4723 # Let the user override the test. 4724 lt_cv_path_NM="$NM" 4725else 4726 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4727 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 4728 IFS="$lt_save_ifs" 4729 test -z "$ac_dir" && ac_dir=. 4730 tmp_nm="$ac_dir/${ac_tool_prefix}nm" 4731 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4732 # Check to see if the nm accepts a BSD-compat flag. 4733 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4734 # nm: unknown option "B" ignored 4735 # Tru64's nm complains that /dev/null is an invalid object file 4736 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4737 */dev/null* | *'Invalid file or object type'*) 4738 lt_cv_path_NM="$tmp_nm -B" 4739 break 4740 ;; 4741 *) 4742 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4743 */dev/null*) 4744 lt_cv_path_NM="$tmp_nm -p" 4745 break 4746 ;; 4747 *) 4748 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4749 continue # so that we can try to find one that supports BSD flags 4750 ;; 4751 esac 4752 esac 4753 fi 4754 done 4755 IFS="$lt_save_ifs" 4756 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4757fi 4758fi 4759echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4760echo "${ECHO_T}$lt_cv_path_NM" >&6 4761NM="$lt_cv_path_NM" 4762 4763echo "$as_me:$LINENO: checking whether ln -s works" >&5 4764echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 4765LN_S=$as_ln_s 4766if test "$LN_S" = "ln -s"; then 4767 echo "$as_me:$LINENO: result: yes" >&5 4768echo "${ECHO_T}yes" >&6 4769else 4770 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4771echo "${ECHO_T}no, using $LN_S" >&6 4772fi 4773 4774echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 4775echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 4776if test "${lt_cv_deplibs_check_method+set}" = set; then 4777 echo $ECHO_N "(cached) $ECHO_C" >&6 4778else 4779 lt_cv_file_magic_cmd='$MAGIC_CMD' 4780lt_cv_file_magic_test_file= 4781lt_cv_deplibs_check_method='unknown' 4782# Need to set the preceding variable on all platforms that support 4783# interlibrary dependencies. 4784# 'none' -- dependencies not supported. 4785# `unknown' -- same as none, but documents that we really don't know. 4786# 'pass_all' -- all dependencies passed with no checks. 4787# 'test_compile' -- check by making test program. 4788# 'file_magic [[regex]]' -- check by looking for files in library path 4789# which responds to the $file_magic_cmd with a given extended regex. 4790# If you have `file' or equivalent on your system and you're not sure 4791# whether `pass_all' will *always* work, you probably want this one. 4792 4793case $host_os in 4794aix4* | aix5*) 4795 lt_cv_deplibs_check_method=pass_all 4796 ;; 4797 4798beos*) 4799 lt_cv_deplibs_check_method=pass_all 4800 ;; 4801 4802bsdi[45]*) 4803 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4804 lt_cv_file_magic_cmd='/usr/bin/file -L' 4805 lt_cv_file_magic_test_file=/shlib/libc.so 4806 ;; 4807 4808cygwin*) 4809 # func_win32_libid is a shell function defined in ltmain.sh 4810 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4811 lt_cv_file_magic_cmd='func_win32_libid' 4812 ;; 4813 4814mingw* | pw32*) 4815 # Base MSYS/MinGW do not provide the 'file' command needed by 4816 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 4817 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4818 lt_cv_file_magic_cmd='$OBJDUMP -f' 4819 ;; 4820 4821darwin* | rhapsody*) 4822 lt_cv_deplibs_check_method=pass_all 4823 ;; 4824 4825freebsd* | kfreebsd*-gnu) 4826 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4827 case $host_cpu in 4828 i*86 ) 4829 # Not sure whether the presence of OpenBSD here was a mistake. 4830 # Let's accept both of them until this is cleared up. 4831 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' 4832 lt_cv_file_magic_cmd=/usr/bin/file 4833 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4834 ;; 4835 esac 4836 else 4837 lt_cv_deplibs_check_method=pass_all 4838 fi 4839 ;; 4840 4841gnu*) 4842 lt_cv_deplibs_check_method=pass_all 4843 ;; 4844 4845hpux10.20* | hpux11*) 4846 lt_cv_file_magic_cmd=/usr/bin/file 4847 case "$host_cpu" in 4848 ia64*) 4849 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4850 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4851 ;; 4852 hppa*64*) 4853 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]' 4854 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4855 ;; 4856 *) 4857 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4858 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4859 ;; 4860 esac 4861 ;; 4862 4863irix5* | irix6* | nonstopux*) 4864 case $LD in 4865 *-32|*"-32 ") libmagic=32-bit;; 4866 *-n32|*"-n32 ") libmagic=N32;; 4867 *-64|*"-64 ") libmagic=64-bit;; 4868 *) libmagic=never-match;; 4869 esac 4870 lt_cv_deplibs_check_method=pass_all 4871 ;; 4872 4873# This must be Linux ELF. 4874linux*) 4875 lt_cv_deplibs_check_method=pass_all 4876 ;; 4877 4878netbsd*) 4879 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4880 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4881 else 4882 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4883 fi 4884 ;; 4885 4886newos6*) 4887 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4888 lt_cv_file_magic_cmd=/usr/bin/file 4889 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4890 ;; 4891 4892nto-qnx*) 4893 lt_cv_deplibs_check_method=unknown 4894 ;; 4895 4896openbsd*) 4897 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4898 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4899 else 4900 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4901 fi 4902 ;; 4903 4904osf3* | osf4* | osf5*) 4905 lt_cv_deplibs_check_method=pass_all 4906 ;; 4907 4908sco3.2v5*) 4909 lt_cv_deplibs_check_method=pass_all 4910 ;; 4911 4912solaris*) 4913 lt_cv_deplibs_check_method=pass_all 4914 ;; 4915 4916sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 4917 case $host_vendor in 4918 motorola) 4919 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]' 4920 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4921 ;; 4922 ncr) 4923 lt_cv_deplibs_check_method=pass_all 4924 ;; 4925 sequent) 4926 lt_cv_file_magic_cmd='/bin/file' 4927 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4928 ;; 4929 sni) 4930 lt_cv_file_magic_cmd='/bin/file' 4931 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4932 lt_cv_file_magic_test_file=/lib/libc.so 4933 ;; 4934 siemens) 4935 lt_cv_deplibs_check_method=pass_all 4936 ;; 4937 esac 4938 ;; 4939 4940sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) 4941 lt_cv_deplibs_check_method=pass_all 4942 ;; 4943esac 4944 4945fi 4946echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4947echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 4948file_magic_cmd=$lt_cv_file_magic_cmd 4949deplibs_check_method=$lt_cv_deplibs_check_method 4950test -z "$deplibs_check_method" && deplibs_check_method=unknown 4951 4952 4953 4954 4955# If no C compiler was specified, use CC. 4956LTCC=${LTCC-"$CC"} 4957 4958# Allow CC to be a program name with arguments. 4959compiler=$CC 4960 4961# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 4962if test "${enable_libtool_lock+set}" = set; then 4963 enableval="$enable_libtool_lock" 4964 4965fi; 4966test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4967 4968# Some flags need to be propagated to the compiler or linker for good 4969# libtool support. 4970case $host in 4971ia64-*-hpux*) 4972 # Find out which ABI we are using. 4973 echo 'int i;' > conftest.$ac_ext 4974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4975 (eval $ac_compile) 2>&5 4976 ac_status=$? 4977 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4978 (exit $ac_status); }; then 4979 case `/usr/bin/file conftest.$ac_objext` in 4980 *ELF-32*) 4981 HPUX_IA64_MODE="32" 4982 ;; 4983 *ELF-64*) 4984 HPUX_IA64_MODE="64" 4985 ;; 4986 esac 4987 fi 4988 rm -rf conftest* 4989 ;; 4990*-*-irix6*) 4991 # Find out which ABI we are using. 4992 echo '#line 4992 "configure"' > conftest.$ac_ext 4993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4994 (eval $ac_compile) 2>&5 4995 ac_status=$? 4996 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4997 (exit $ac_status); }; then 4998 if test "$lt_cv_prog_gnu_ld" = yes; then 4999 case `/usr/bin/file conftest.$ac_objext` in 5000 *32-bit*) 5001 LD="${LD-ld} -melf32bsmip" 5002 ;; 5003 *N32*) 5004 LD="${LD-ld} -melf32bmipn32" 5005 ;; 5006 *64-bit*) 5007 LD="${LD-ld} -melf64bmip" 5008 ;; 5009 esac 5010 else 5011 case `/usr/bin/file conftest.$ac_objext` in 5012 *32-bit*) 5013 LD="${LD-ld} -32" 5014 ;; 5015 *N32*) 5016 LD="${LD-ld} -n32" 5017 ;; 5018 *64-bit*) 5019 LD="${LD-ld} -64" 5020 ;; 5021 esac 5022 fi 5023 fi 5024 rm -rf conftest* 5025 ;; 5026 5027x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 5028 # Find out which ABI we are using. 5029 echo 'int i;' > conftest.$ac_ext 5030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5031 (eval $ac_compile) 2>&5 5032 ac_status=$? 5033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5034 (exit $ac_status); }; then 5035 case "`/usr/bin/file conftest.o`" in 5036 *32-bit*) 5037 case $host in 5038 x86_64-*linux*) 5039 LD="${LD-ld} -m elf_i386" 5040 ;; 5041 ppc64-*linux*|powerpc64-*linux*) 5042 LD="${LD-ld} -m elf32ppclinux" 5043 ;; 5044 s390x-*linux*) 5045 LD="${LD-ld} -m elf_s390" 5046 ;; 5047 sparc64-*linux*) 5048 LD="${LD-ld} -m elf32_sparc" 5049 ;; 5050 esac 5051 ;; 5052 *64-bit*) 5053 case $host in 5054 x86_64-*linux*) 5055 LD="${LD-ld} -m elf_x86_64" 5056 ;; 5057 ppc*-*linux*|powerpc*-*linux*) 5058 LD="${LD-ld} -m elf64ppc" 5059 ;; 5060 s390*-*linux*) 5061 LD="${LD-ld} -m elf64_s390" 5062 ;; 5063 sparc*-*linux*) 5064 LD="${LD-ld} -m elf64_sparc" 5065 ;; 5066 esac 5067 ;; 5068 esac 5069 fi 5070 rm -rf conftest* 5071 ;; 5072 5073*-*-sco3.2v5*) 5074 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 5075 SAVE_CFLAGS="$CFLAGS" 5076 CFLAGS="$CFLAGS -belf" 5077 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 5078echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 5079if test "${lt_cv_cc_needs_belf+set}" = set; then 5080 echo $ECHO_N "(cached) $ECHO_C" >&6 5081else 5082 ac_ext=c 5083ac_cpp='$CPP $CPPFLAGS' 5084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5086ac_compiler_gnu=$ac_cv_c_compiler_gnu 5087 5088 cat >conftest.$ac_ext <<_ACEOF 5089/* confdefs.h. */ 5090_ACEOF 5091cat confdefs.h >>conftest.$ac_ext 5092cat >>conftest.$ac_ext <<_ACEOF 5093/* end confdefs.h. */ 5094 5095_ACEOF 5096rm -f conftest.$ac_objext conftest$ac_exeext 5097if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5098 (eval $ac_link) 2>conftest.er1 5099 ac_status=$? 5100 grep -v '^ *+' conftest.er1 >conftest.err 5101 rm -f conftest.er1 5102 cat conftest.err >&5 5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5104 (exit $ac_status); } && 5105 { ac_try='test -z "$ac_c_werror_flag" 5106 || test ! -s conftest.err' 5107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5108 (eval $ac_try) 2>&5 5109 ac_status=$? 5110 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5111 (exit $ac_status); }; } && 5112 { ac_try='test -s conftest$ac_exeext' 5113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5114 (eval $ac_try) 2>&5 5115 ac_status=$? 5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5117 (exit $ac_status); }; }; then 5118 lt_cv_cc_needs_belf=yes 5119else 5120 echo "$as_me: failed program was:" >&5 5121sed 's/^/| /' conftest.$ac_ext >&5 5122 5123lt_cv_cc_needs_belf=no 5124fi 5125rm -f conftest.err conftest.$ac_objext \ 5126 conftest$ac_exeext conftest.$ac_ext 5127 ac_ext=c 5128ac_cpp='$CPP $CPPFLAGS' 5129ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5130ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5131ac_compiler_gnu=$ac_cv_c_compiler_gnu 5132 5133fi 5134echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 5135echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 5136 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 5137 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 5138 CFLAGS="$SAVE_CFLAGS" 5139 fi 5140 ;; 5141 5142esac 5143 5144need_locks="$enable_libtool_lock" 5145 5146 5147 5148echo "$as_me:$LINENO: checking for ANSI C header files" >&5 5149echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 5150if test "${ac_cv_header_stdc+set}" = set; then 5151 echo $ECHO_N "(cached) $ECHO_C" >&6 5152else 5153 cat >conftest.$ac_ext <<_ACEOF 5154/* confdefs.h. */ 5155_ACEOF 5156cat confdefs.h >>conftest.$ac_ext 5157cat >>conftest.$ac_ext <<_ACEOF 5158/* end confdefs.h. */ 5159#include <stdlib.h> 5160#include <stdarg.h> 5161#include <string.h> 5162#include <float.h> 5163 5164int 5165main () 5166{ 5167 5168 ; 5169 return 0; 5170} 5171_ACEOF 5172rm -f conftest.$ac_objext 5173if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5174 (eval $ac_compile) 2>conftest.er1 5175 ac_status=$? 5176 grep -v '^ *+' conftest.er1 >conftest.err 5177 rm -f conftest.er1 5178 cat conftest.err >&5 5179 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5180 (exit $ac_status); } && 5181 { ac_try='test -z "$ac_c_werror_flag" 5182 || test ! -s conftest.err' 5183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5184 (eval $ac_try) 2>&5 5185 ac_status=$? 5186 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5187 (exit $ac_status); }; } && 5188 { ac_try='test -s conftest.$ac_objext' 5189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5190 (eval $ac_try) 2>&5 5191 ac_status=$? 5192 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5193 (exit $ac_status); }; }; then 5194 ac_cv_header_stdc=yes 5195else 5196 echo "$as_me: failed program was:" >&5 5197sed 's/^/| /' conftest.$ac_ext >&5 5198 5199ac_cv_header_stdc=no 5200fi 5201rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5202 5203if test $ac_cv_header_stdc = yes; then 5204 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5205 cat >conftest.$ac_ext <<_ACEOF 5206/* confdefs.h. */ 5207_ACEOF 5208cat confdefs.h >>conftest.$ac_ext 5209cat >>conftest.$ac_ext <<_ACEOF 5210/* end confdefs.h. */ 5211#include <string.h> 5212 5213_ACEOF 5214if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5215 $EGREP "memchr" >/dev/null 2>&1; then 5216 : 5217else 5218 ac_cv_header_stdc=no 5219fi 5220rm -f conftest* 5221 5222fi 5223 5224if test $ac_cv_header_stdc = yes; then 5225 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5226 cat >conftest.$ac_ext <<_ACEOF 5227/* confdefs.h. */ 5228_ACEOF 5229cat confdefs.h >>conftest.$ac_ext 5230cat >>conftest.$ac_ext <<_ACEOF 5231/* end confdefs.h. */ 5232#include <stdlib.h> 5233 5234_ACEOF 5235if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5236 $EGREP "free" >/dev/null 2>&1; then 5237 : 5238else 5239 ac_cv_header_stdc=no 5240fi 5241rm -f conftest* 5242 5243fi 5244 5245if test $ac_cv_header_stdc = yes; then 5246 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5247 if test "$cross_compiling" = yes; then 5248 : 5249else 5250 cat >conftest.$ac_ext <<_ACEOF 5251/* confdefs.h. */ 5252_ACEOF 5253cat confdefs.h >>conftest.$ac_ext 5254cat >>conftest.$ac_ext <<_ACEOF 5255/* end confdefs.h. */ 5256#include <ctype.h> 5257#if ((' ' & 0x0FF) == 0x020) 5258# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5259# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5260#else 5261# define ISLOWER(c) \ 5262 (('a' <= (c) && (c) <= 'i') \ 5263 || ('j' <= (c) && (c) <= 'r') \ 5264 || ('s' <= (c) && (c) <= 'z')) 5265# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5266#endif 5267 5268#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5269int 5270main () 5271{ 5272 int i; 5273 for (i = 0; i < 256; i++) 5274 if (XOR (islower (i), ISLOWER (i)) 5275 || toupper (i) != TOUPPER (i)) 5276 exit(2); 5277 exit (0); 5278} 5279_ACEOF 5280rm -f conftest$ac_exeext 5281if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5282 (eval $ac_link) 2>&5 5283 ac_status=$? 5284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5285 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5287 (eval $ac_try) 2>&5 5288 ac_status=$? 5289 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5290 (exit $ac_status); }; }; then 5291 : 5292else 5293 echo "$as_me: program exited with status $ac_status" >&5 5294echo "$as_me: failed program was:" >&5 5295sed 's/^/| /' conftest.$ac_ext >&5 5296 5297( exit $ac_status ) 5298ac_cv_header_stdc=no 5299fi 5300rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5301fi 5302fi 5303fi 5304echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 5305echo "${ECHO_T}$ac_cv_header_stdc" >&6 5306if test $ac_cv_header_stdc = yes; then 5307 5308cat >>confdefs.h <<\_ACEOF 5309#define STDC_HEADERS 1 5310_ACEOF 5311 5312fi 5313 5314# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5325 inttypes.h stdint.h unistd.h 5326do 5327as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5328echo "$as_me:$LINENO: checking for $ac_header" >&5 5329echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5330if eval "test \"\${$as_ac_Header+set}\" = set"; then 5331 echo $ECHO_N "(cached) $ECHO_C" >&6 5332else 5333 cat >conftest.$ac_ext <<_ACEOF 5334/* confdefs.h. */ 5335_ACEOF 5336cat confdefs.h >>conftest.$ac_ext 5337cat >>conftest.$ac_ext <<_ACEOF 5338/* end confdefs.h. */ 5339$ac_includes_default 5340 5341#include <$ac_header> 5342_ACEOF 5343rm -f conftest.$ac_objext 5344if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5345 (eval $ac_compile) 2>conftest.er1 5346 ac_status=$? 5347 grep -v '^ *+' conftest.er1 >conftest.err 5348 rm -f conftest.er1 5349 cat conftest.err >&5 5350 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5351 (exit $ac_status); } && 5352 { ac_try='test -z "$ac_c_werror_flag" 5353 || test ! -s conftest.err' 5354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5355 (eval $ac_try) 2>&5 5356 ac_status=$? 5357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5358 (exit $ac_status); }; } && 5359 { ac_try='test -s conftest.$ac_objext' 5360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5361 (eval $ac_try) 2>&5 5362 ac_status=$? 5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5364 (exit $ac_status); }; }; then 5365 eval "$as_ac_Header=yes" 5366else 5367 echo "$as_me: failed program was:" >&5 5368sed 's/^/| /' conftest.$ac_ext >&5 5369 5370eval "$as_ac_Header=no" 5371fi 5372rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5373fi 5374echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5375echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5376if test `eval echo '${'$as_ac_Header'}'` = yes; then 5377 cat >>confdefs.h <<_ACEOF 5378#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5379_ACEOF 5380 5381fi 5382 5383done 5384 5385 5386 5387for ac_header in dlfcn.h 5388do 5389as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5390if eval "test \"\${$as_ac_Header+set}\" = set"; then 5391 echo "$as_me:$LINENO: checking for $ac_header" >&5 5392echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5393if eval "test \"\${$as_ac_Header+set}\" = set"; then 5394 echo $ECHO_N "(cached) $ECHO_C" >&6 5395fi 5396echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5397echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5398else 5399 # Is the header compilable? 5400echo "$as_me:$LINENO: checking $ac_header usability" >&5 5401echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 5402cat >conftest.$ac_ext <<_ACEOF 5403/* confdefs.h. */ 5404_ACEOF 5405cat confdefs.h >>conftest.$ac_ext 5406cat >>conftest.$ac_ext <<_ACEOF 5407/* end confdefs.h. */ 5408$ac_includes_default 5409#include <$ac_header> 5410_ACEOF 5411rm -f conftest.$ac_objext 5412if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5413 (eval $ac_compile) 2>conftest.er1 5414 ac_status=$? 5415 grep -v '^ *+' conftest.er1 >conftest.err 5416 rm -f conftest.er1 5417 cat conftest.err >&5 5418 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5419 (exit $ac_status); } && 5420 { ac_try='test -z "$ac_c_werror_flag" 5421 || test ! -s conftest.err' 5422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5423 (eval $ac_try) 2>&5 5424 ac_status=$? 5425 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5426 (exit $ac_status); }; } && 5427 { ac_try='test -s conftest.$ac_objext' 5428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5429 (eval $ac_try) 2>&5 5430 ac_status=$? 5431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5432 (exit $ac_status); }; }; then 5433 ac_header_compiler=yes 5434else 5435 echo "$as_me: failed program was:" >&5 5436sed 's/^/| /' conftest.$ac_ext >&5 5437 5438ac_header_compiler=no 5439fi 5440rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5441echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5442echo "${ECHO_T}$ac_header_compiler" >&6 5443 5444# Is the header present? 5445echo "$as_me:$LINENO: checking $ac_header presence" >&5 5446echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 5447cat >conftest.$ac_ext <<_ACEOF 5448/* confdefs.h. */ 5449_ACEOF 5450cat confdefs.h >>conftest.$ac_ext 5451cat >>conftest.$ac_ext <<_ACEOF 5452/* end confdefs.h. */ 5453#include <$ac_header> 5454_ACEOF 5455if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5456 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5457 ac_status=$? 5458 grep -v '^ *+' conftest.er1 >conftest.err 5459 rm -f conftest.er1 5460 cat conftest.err >&5 5461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5462 (exit $ac_status); } >/dev/null; then 5463 if test -s conftest.err; then 5464 ac_cpp_err=$ac_c_preproc_warn_flag 5465 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5466 else 5467 ac_cpp_err= 5468 fi 5469else 5470 ac_cpp_err=yes 5471fi 5472if test -z "$ac_cpp_err"; then 5473 ac_header_preproc=yes 5474else 5475 echo "$as_me: failed program was:" >&5 5476sed 's/^/| /' conftest.$ac_ext >&5 5477 5478 ac_header_preproc=no 5479fi 5480rm -f conftest.err conftest.$ac_ext 5481echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5482echo "${ECHO_T}$ac_header_preproc" >&6 5483 5484# So? What about this header? 5485case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5486 yes:no: ) 5487 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5488echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5489 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5490echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5491 ac_header_preproc=yes 5492 ;; 5493 no:yes:* ) 5494 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5495echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5496 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5497echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5498 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5499echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5500 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5501echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5502 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5503echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5504 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5505echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5506 ( 5507 cat <<\_ASBOX 5508## ----------------------------------- ## 5509## Report this to llvmbugs@cs.uiuc.edu ## 5510## ----------------------------------- ## 5511_ASBOX 5512 ) | 5513 sed "s/^/$as_me: WARNING: /" >&2 5514 ;; 5515esac 5516echo "$as_me:$LINENO: checking for $ac_header" >&5 5517echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5518if eval "test \"\${$as_ac_Header+set}\" = set"; then 5519 echo $ECHO_N "(cached) $ECHO_C" >&6 5520else 5521 eval "$as_ac_Header=\$ac_header_preproc" 5522fi 5523echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5524echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5525 5526fi 5527if test `eval echo '${'$as_ac_Header'}'` = yes; then 5528 cat >>confdefs.h <<_ACEOF 5529#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5530_ACEOF 5531 5532fi 5533 5534done 5535 5536 5537 5538if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5539 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5540 (test "X$CXX" != "Xg++"))) ; then 5541 ac_ext=cc 5542ac_cpp='$CXXCPP $CPPFLAGS' 5543ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5544ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5545ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5546echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5547echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 5548if test -z "$CXXCPP"; then 5549 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5550 echo $ECHO_N "(cached) $ECHO_C" >&6 5551else 5552 # Double quotes because CXXCPP needs to be expanded 5553 for CXXCPP in "$CXX -E" "/lib/cpp" 5554 do 5555 ac_preproc_ok=false 5556for ac_cxx_preproc_warn_flag in '' yes 5557do 5558 # Use a header file that comes with gcc, so configuring glibc 5559 # with a fresh cross-compiler works. 5560 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5561 # <limits.h> exists even on freestanding compilers. 5562 # On the NeXT, cc -E runs the code through the compiler's parser, 5563 # not just through cpp. "Syntax error" is here to catch this case. 5564 cat >conftest.$ac_ext <<_ACEOF 5565/* confdefs.h. */ 5566_ACEOF 5567cat confdefs.h >>conftest.$ac_ext 5568cat >>conftest.$ac_ext <<_ACEOF 5569/* end confdefs.h. */ 5570#ifdef __STDC__ 5571# include <limits.h> 5572#else 5573# include <assert.h> 5574#endif 5575 Syntax error 5576_ACEOF 5577if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5578 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5579 ac_status=$? 5580 grep -v '^ *+' conftest.er1 >conftest.err 5581 rm -f conftest.er1 5582 cat conftest.err >&5 5583 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5584 (exit $ac_status); } >/dev/null; then 5585 if test -s conftest.err; then 5586 ac_cpp_err=$ac_cxx_preproc_warn_flag 5587 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5588 else 5589 ac_cpp_err= 5590 fi 5591else 5592 ac_cpp_err=yes 5593fi 5594if test -z "$ac_cpp_err"; then 5595 : 5596else 5597 echo "$as_me: failed program was:" >&5 5598sed 's/^/| /' conftest.$ac_ext >&5 5599 5600 # Broken: fails on valid input. 5601continue 5602fi 5603rm -f conftest.err conftest.$ac_ext 5604 5605 # OK, works on sane cases. Now check whether non-existent headers 5606 # can be detected and how. 5607 cat >conftest.$ac_ext <<_ACEOF 5608/* confdefs.h. */ 5609_ACEOF 5610cat confdefs.h >>conftest.$ac_ext 5611cat >>conftest.$ac_ext <<_ACEOF 5612/* end confdefs.h. */ 5613#include <ac_nonexistent.h> 5614_ACEOF 5615if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5616 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5617 ac_status=$? 5618 grep -v '^ *+' conftest.er1 >conftest.err 5619 rm -f conftest.er1 5620 cat conftest.err >&5 5621 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5622 (exit $ac_status); } >/dev/null; then 5623 if test -s conftest.err; then 5624 ac_cpp_err=$ac_cxx_preproc_warn_flag 5625 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5626 else 5627 ac_cpp_err= 5628 fi 5629else 5630 ac_cpp_err=yes 5631fi 5632if test -z "$ac_cpp_err"; then 5633 # Broken: success on invalid input. 5634continue 5635else 5636 echo "$as_me: failed program was:" >&5 5637sed 's/^/| /' conftest.$ac_ext >&5 5638 5639 # Passes both tests. 5640ac_preproc_ok=: 5641break 5642fi 5643rm -f conftest.err conftest.$ac_ext 5644 5645done 5646# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5647rm -f conftest.err conftest.$ac_ext 5648if $ac_preproc_ok; then 5649 break 5650fi 5651 5652 done 5653 ac_cv_prog_CXXCPP=$CXXCPP 5654 5655fi 5656 CXXCPP=$ac_cv_prog_CXXCPP 5657else 5658 ac_cv_prog_CXXCPP=$CXXCPP 5659fi 5660echo "$as_me:$LINENO: result: $CXXCPP" >&5 5661echo "${ECHO_T}$CXXCPP" >&6 5662ac_preproc_ok=false 5663for ac_cxx_preproc_warn_flag in '' yes 5664do 5665 # Use a header file that comes with gcc, so configuring glibc 5666 # with a fresh cross-compiler works. 5667 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5668 # <limits.h> exists even on freestanding compilers. 5669 # On the NeXT, cc -E runs the code through the compiler's parser, 5670 # not just through cpp. "Syntax error" is here to catch this case. 5671 cat >conftest.$ac_ext <<_ACEOF 5672/* confdefs.h. */ 5673_ACEOF 5674cat confdefs.h >>conftest.$ac_ext 5675cat >>conftest.$ac_ext <<_ACEOF 5676/* end confdefs.h. */ 5677#ifdef __STDC__ 5678# include <limits.h> 5679#else 5680# include <assert.h> 5681#endif 5682 Syntax error 5683_ACEOF 5684if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5685 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5686 ac_status=$? 5687 grep -v '^ *+' conftest.er1 >conftest.err 5688 rm -f conftest.er1 5689 cat conftest.err >&5 5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5691 (exit $ac_status); } >/dev/null; then 5692 if test -s conftest.err; then 5693 ac_cpp_err=$ac_cxx_preproc_warn_flag 5694 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5695 else 5696 ac_cpp_err= 5697 fi 5698else 5699 ac_cpp_err=yes 5700fi 5701if test -z "$ac_cpp_err"; then 5702 : 5703else 5704 echo "$as_me: failed program was:" >&5 5705sed 's/^/| /' conftest.$ac_ext >&5 5706 5707 # Broken: fails on valid input. 5708continue 5709fi 5710rm -f conftest.err conftest.$ac_ext 5711 5712 # OK, works on sane cases. Now check whether non-existent headers 5713 # can be detected and how. 5714 cat >conftest.$ac_ext <<_ACEOF 5715/* confdefs.h. */ 5716_ACEOF 5717cat confdefs.h >>conftest.$ac_ext 5718cat >>conftest.$ac_ext <<_ACEOF 5719/* end confdefs.h. */ 5720#include <ac_nonexistent.h> 5721_ACEOF 5722if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5723 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5724 ac_status=$? 5725 grep -v '^ *+' conftest.er1 >conftest.err 5726 rm -f conftest.er1 5727 cat conftest.err >&5 5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5729 (exit $ac_status); } >/dev/null; then 5730 if test -s conftest.err; then 5731 ac_cpp_err=$ac_cxx_preproc_warn_flag 5732 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5733 else 5734 ac_cpp_err= 5735 fi 5736else 5737 ac_cpp_err=yes 5738fi 5739if test -z "$ac_cpp_err"; then 5740 # Broken: success on invalid input. 5741continue 5742else 5743 echo "$as_me: failed program was:" >&5 5744sed 's/^/| /' conftest.$ac_ext >&5 5745 5746 # Passes both tests. 5747ac_preproc_ok=: 5748break 5749fi 5750rm -f conftest.err conftest.$ac_ext 5751 5752done 5753# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5754rm -f conftest.err conftest.$ac_ext 5755if $ac_preproc_ok; then 5756 : 5757else 5758 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5759See \`config.log' for more details." >&5 5760echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5761See \`config.log' for more details." >&2;} 5762 { (exit 1); exit 1; }; } 5763fi 5764 5765ac_ext=cc 5766ac_cpp='$CXXCPP $CPPFLAGS' 5767ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5768ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5769ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5770 5771fi 5772 5773 5774ac_ext=f 5775ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 5776ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5777ac_compiler_gnu=$ac_cv_f77_compiler_gnu 5778if test -n "$ac_tool_prefix"; then 5779 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 5780 do 5781 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5782set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5783echo "$as_me:$LINENO: checking for $ac_word" >&5 5784echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5785if test "${ac_cv_prog_F77+set}" = set; then 5786 echo $ECHO_N "(cached) $ECHO_C" >&6 5787else 5788 if test -n "$F77"; then 5789 ac_cv_prog_F77="$F77" # Let the user override the test. 5790else 5791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5792for as_dir in $PATH 5793do 5794 IFS=$as_save_IFS 5795 test -z "$as_dir" && as_dir=. 5796 for ac_exec_ext in '' $ac_executable_extensions; do 5797 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5798 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 5799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5800 break 2 5801 fi 5802done 5803done 5804 5805fi 5806fi 5807F77=$ac_cv_prog_F77 5808if test -n "$F77"; then 5809 echo "$as_me:$LINENO: result: $F77" >&5 5810echo "${ECHO_T}$F77" >&6 5811else 5812 echo "$as_me:$LINENO: result: no" >&5 5813echo "${ECHO_T}no" >&6 5814fi 5815 5816 test -n "$F77" && break 5817 done 5818fi 5819if test -z "$F77"; then 5820 ac_ct_F77=$F77 5821 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 5822do 5823 # Extract the first word of "$ac_prog", so it can be a program name with args. 5824set dummy $ac_prog; ac_word=$2 5825echo "$as_me:$LINENO: checking for $ac_word" >&5 5826echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5827if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 5828 echo $ECHO_N "(cached) $ECHO_C" >&6 5829else 5830 if test -n "$ac_ct_F77"; then 5831 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 5832else 5833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5834for as_dir in $PATH 5835do 5836 IFS=$as_save_IFS 5837 test -z "$as_dir" && as_dir=. 5838 for ac_exec_ext in '' $ac_executable_extensions; do 5839 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5840 ac_cv_prog_ac_ct_F77="$ac_prog" 5841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5842 break 2 5843 fi 5844done 5845done 5846 5847fi 5848fi 5849ac_ct_F77=$ac_cv_prog_ac_ct_F77 5850if test -n "$ac_ct_F77"; then 5851 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 5852echo "${ECHO_T}$ac_ct_F77" >&6 5853else 5854 echo "$as_me:$LINENO: result: no" >&5 5855echo "${ECHO_T}no" >&6 5856fi 5857 5858 test -n "$ac_ct_F77" && break 5859done 5860 5861 F77=$ac_ct_F77 5862fi 5863 5864 5865# Provide some information about the compiler. 5866echo "$as_me:5866:" \ 5867 "checking for Fortran 77 compiler version" >&5 5868ac_compiler=`set X $ac_compile; echo $2` 5869{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 5870 (eval $ac_compiler --version </dev/null >&5) 2>&5 5871 ac_status=$? 5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5873 (exit $ac_status); } 5874{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 5875 (eval $ac_compiler -v </dev/null >&5) 2>&5 5876 ac_status=$? 5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5878 (exit $ac_status); } 5879{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 5880 (eval $ac_compiler -V </dev/null >&5) 2>&5 5881 ac_status=$? 5882 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5883 (exit $ac_status); } 5884rm -f a.out 5885 5886# If we don't use `.F' as extension, the preprocessor is not run on the 5887# input file. (Note that this only needs to work for GNU compilers.) 5888ac_save_ext=$ac_ext 5889ac_ext=F 5890echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 5891echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 5892if test "${ac_cv_f77_compiler_gnu+set}" = set; then 5893 echo $ECHO_N "(cached) $ECHO_C" >&6 5894else 5895 cat >conftest.$ac_ext <<_ACEOF 5896 program main 5897#ifndef __GNUC__ 5898 choke me 5899#endif 5900 5901 end 5902_ACEOF 5903rm -f conftest.$ac_objext 5904if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5905 (eval $ac_compile) 2>conftest.er1 5906 ac_status=$? 5907 grep -v '^ *+' conftest.er1 >conftest.err 5908 rm -f conftest.er1 5909 cat conftest.err >&5 5910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5911 (exit $ac_status); } && 5912 { ac_try='test -z "$ac_f77_werror_flag" 5913 || test ! -s conftest.err' 5914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5915 (eval $ac_try) 2>&5 5916 ac_status=$? 5917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5918 (exit $ac_status); }; } && 5919 { ac_try='test -s conftest.$ac_objext' 5920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5921 (eval $ac_try) 2>&5 5922 ac_status=$? 5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5924 (exit $ac_status); }; }; then 5925 ac_compiler_gnu=yes 5926else 5927 echo "$as_me: failed program was:" >&5 5928sed 's/^/| /' conftest.$ac_ext >&5 5929 5930ac_compiler_gnu=no 5931fi 5932rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5933ac_cv_f77_compiler_gnu=$ac_compiler_gnu 5934 5935fi 5936echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 5937echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 5938ac_ext=$ac_save_ext 5939ac_test_FFLAGS=${FFLAGS+set} 5940ac_save_FFLAGS=$FFLAGS 5941FFLAGS= 5942echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 5943echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 5944if test "${ac_cv_prog_f77_g+set}" = set; then 5945 echo $ECHO_N "(cached) $ECHO_C" >&6 5946else 5947 FFLAGS=-g 5948cat >conftest.$ac_ext <<_ACEOF 5949 program main 5950 5951 end 5952_ACEOF 5953rm -f conftest.$ac_objext 5954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5955 (eval $ac_compile) 2>conftest.er1 5956 ac_status=$? 5957 grep -v '^ *+' conftest.er1 >conftest.err 5958 rm -f conftest.er1 5959 cat conftest.err >&5 5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5961 (exit $ac_status); } && 5962 { ac_try='test -z "$ac_f77_werror_flag" 5963 || test ! -s conftest.err' 5964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5965 (eval $ac_try) 2>&5 5966 ac_status=$? 5967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5968 (exit $ac_status); }; } && 5969 { ac_try='test -s conftest.$ac_objext' 5970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5971 (eval $ac_try) 2>&5 5972 ac_status=$? 5973 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5974 (exit $ac_status); }; }; then 5975 ac_cv_prog_f77_g=yes 5976else 5977 echo "$as_me: failed program was:" >&5 5978sed 's/^/| /' conftest.$ac_ext >&5 5979 5980ac_cv_prog_f77_g=no 5981fi 5982rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5983 5984fi 5985echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 5986echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 5987if test "$ac_test_FFLAGS" = set; then 5988 FFLAGS=$ac_save_FFLAGS 5989elif test $ac_cv_prog_f77_g = yes; then 5990 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 5991 FFLAGS="-g -O2" 5992 else 5993 FFLAGS="-g" 5994 fi 5995else 5996 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 5997 FFLAGS="-O2" 5998 else 5999 FFLAGS= 6000 fi 6001fi 6002 6003G77=`test $ac_compiler_gnu = yes && echo yes` 6004ac_ext=c 6005ac_cpp='$CPP $CPPFLAGS' 6006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6008ac_compiler_gnu=$ac_cv_c_compiler_gnu 6009 6010 6011 6012# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6013 6014# find the maximum length of command line arguments 6015echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6016echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 6017if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6018 echo $ECHO_N "(cached) $ECHO_C" >&6 6019else 6020 i=0 6021 teststring="ABCD" 6022 6023 case $build_os in 6024 msdosdjgpp*) 6025 # On DJGPP, this test can blow up pretty badly due to problems in libc 6026 # (any single argument exceeding 2000 bytes causes a buffer overrun 6027 # during glob expansion). Even if it were fixed, the result of this 6028 # check would be larger than it should be. 6029 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6030 ;; 6031 6032 gnu*) 6033 # Under GNU Hurd, this test is not required because there is 6034 # no limit to the length of command line arguments. 6035 # Libtool will interpret -1 as no limit whatsoever 6036 lt_cv_sys_max_cmd_len=-1; 6037 ;; 6038 6039 cygwin* | mingw*) 6040 # On Win9x/ME, this test blows up -- it succeeds, but takes 6041 # about 5 minutes as the teststring grows exponentially. 6042 # Worse, since 9x/ME are not pre-emptively multitasking, 6043 # you end up with a "frozen" computer, even though with patience 6044 # the test eventually succeeds (with a max line length of 256k). 6045 # Instead, let's just punt: use the minimum linelength reported by 6046 # all of the supported platforms: 8192 (on NT/2K/XP). 6047 lt_cv_sys_max_cmd_len=8192; 6048 ;; 6049 6050 amigaos*) 6051 # On AmigaOS with pdksh, this test takes hours, literally. 6052 # So we just punt and use a minimum line length of 8192. 6053 lt_cv_sys_max_cmd_len=8192; 6054 ;; 6055 6056 netbsd* | freebsd* | openbsd* | darwin* ) 6057 # This has been around since 386BSD, at least. Likely further. 6058 if test -x /sbin/sysctl; then 6059 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6060 elif test -x /usr/sbin/sysctl; then 6061 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6062 else 6063 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD 6064 fi 6065 # And add a safety zone 6066 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6067 ;; 6068 6069 *) 6070 # If test is not a shell built-in, we'll probably end up computing a 6071 # maximum length that is only half of the actual maximum length, but 6072 # we can't tell. 6073 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6074 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6075 = "XX$teststring") >/dev/null 2>&1 && 6076 new_result=`expr "X$teststring" : ".*" 2>&1` && 6077 lt_cv_sys_max_cmd_len=$new_result && 6078 test $i != 17 # 1/2 MB should be enough 6079 do 6080 i=`expr $i + 1` 6081 teststring=$teststring$teststring 6082 done 6083 teststring= 6084 # Add a significant safety factor because C++ compilers can tack on massive 6085 # amounts of additional arguments before passing them to the linker. 6086 # It appears as though 1/2 is a usable value. 6087 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6088 ;; 6089 esac 6090 6091fi 6092 6093if test -n $lt_cv_sys_max_cmd_len ; then 6094 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6095echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 6096else 6097 echo "$as_me:$LINENO: result: none" >&5 6098echo "${ECHO_T}none" >&6 6099fi 6100 6101 6102 6103 6104# Check for command to grab the raw symbol name followed by C symbol from nm. 6105echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6106echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 6107if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6108 echo $ECHO_N "(cached) $ECHO_C" >&6 6109else 6110 6111# These are sane defaults that work on at least a few old systems. 6112# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6113 6114# Character class describing NM global symbol codes. 6115symcode='[BCDEGRST]' 6116 6117# Regexp to match symbols that can be accessed directly from C. 6118sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6119 6120# Transform the above into a raw symbol and a C symbol. 6121symxfrm='\1 \2\3 \3' 6122 6123# Transform an extracted symbol line into a proper C declaration 6124lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6125 6126# Transform an extracted symbol line into symbol name and symbol address 6127lt_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'" 6128 6129# Define system-specific variables. 6130case $host_os in 6131aix*) 6132 symcode='[BCDT]' 6133 ;; 6134cygwin* | mingw* | pw32*) 6135 symcode='[ABCDGISTW]' 6136 ;; 6137hpux*) # Its linker distinguishes data from code symbols 6138 if test "$host_cpu" = ia64; then 6139 symcode='[ABCDEGRST]' 6140 fi 6141 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6142 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'" 6143 ;; 6144linux*) 6145 if test "$host_cpu" = ia64; then 6146 symcode='[ABCDGIRSTW]' 6147 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6148 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'" 6149 fi 6150 ;; 6151irix* | nonstopux*) 6152 symcode='[BCDEGRST]' 6153 ;; 6154osf*) 6155 symcode='[BCDEGQRST]' 6156 ;; 6157solaris* | sysv5*) 6158 symcode='[BDRT]' 6159 ;; 6160sysv4) 6161 symcode='[DFNSTU]' 6162 ;; 6163esac 6164 6165# Handle CRLF in mingw tool chain 6166opt_cr= 6167case $build_os in 6168mingw*) 6169 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6170 ;; 6171esac 6172 6173# If we're using GNU nm, then use its standard symbol codes. 6174case `$NM -V 2>&1` in 6175*GNU* | *'with BFD'*) 6176 symcode='[ABCDGIRSTW]' ;; 6177esac 6178 6179# Try without a prefix undercore, then with it. 6180for ac_symprfx in "" "_"; do 6181 6182 # Write the raw and C identifiers. 6183 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" 6184 6185 # Check to see that the pipe works correctly. 6186 pipe_works=no 6187 6188 rm -f conftest* 6189 cat > conftest.$ac_ext <<EOF 6190#ifdef __cplusplus 6191extern "C" { 6192#endif 6193char nm_test_var; 6194void nm_test_func(){} 6195#ifdef __cplusplus 6196} 6197#endif 6198int main(){nm_test_var='a';nm_test_func();return(0);} 6199EOF 6200 6201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6202 (eval $ac_compile) 2>&5 6203 ac_status=$? 6204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6205 (exit $ac_status); }; then 6206 # Now try to grab the symbols. 6207 nlist=conftest.nm 6208 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6209 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6210 ac_status=$? 6211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6212 (exit $ac_status); } && test -s "$nlist"; then 6213 # Try sorting and uniquifying the output. 6214 if sort "$nlist" | uniq > "$nlist"T; then 6215 mv -f "$nlist"T "$nlist" 6216 else 6217 rm -f "$nlist"T 6218 fi 6219 6220 # Make sure that we snagged all the symbols we need. 6221 if grep ' nm_test_var$' "$nlist" >/dev/null; then 6222 if grep ' nm_test_func$' "$nlist" >/dev/null; then 6223 cat <<EOF > conftest.$ac_ext 6224#ifdef __cplusplus 6225extern "C" { 6226#endif 6227 6228EOF 6229 # Now generate the symbol file. 6230 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 6231 6232 cat <<EOF >> conftest.$ac_ext 6233#if defined (__STDC__) && __STDC__ 6234# define lt_ptr_t void * 6235#else 6236# define lt_ptr_t char * 6237# define const 6238#endif 6239 6240/* The mapping between symbol names and symbols. */ 6241const struct { 6242 const char *name; 6243 lt_ptr_t address; 6244} 6245lt_preloaded_symbols[] = 6246{ 6247EOF 6248 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 6249 cat <<\EOF >> conftest.$ac_ext 6250 {0, (lt_ptr_t) 0} 6251}; 6252 6253#ifdef __cplusplus 6254} 6255#endif 6256EOF 6257 # Now try linking the two files. 6258 mv conftest.$ac_objext conftstm.$ac_objext 6259 lt_save_LIBS="$LIBS" 6260 lt_save_CFLAGS="$CFLAGS" 6261 LIBS="conftstm.$ac_objext" 6262 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6264 (eval $ac_link) 2>&5 6265 ac_status=$? 6266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6267 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6268 pipe_works=yes 6269 fi 6270 LIBS="$lt_save_LIBS" 6271 CFLAGS="$lt_save_CFLAGS" 6272 else 6273 echo "cannot find nm_test_func in $nlist" >&5 6274 fi 6275 else 6276 echo "cannot find nm_test_var in $nlist" >&5 6277 fi 6278 else 6279 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6280 fi 6281 else 6282 echo "$progname: failed program was:" >&5 6283 cat conftest.$ac_ext >&5 6284 fi 6285 rm -f conftest* conftst* 6286 6287 # Do not use the global_symbol_pipe unless it works. 6288 if test "$pipe_works" = yes; then 6289 break 6290 else 6291 lt_cv_sys_global_symbol_pipe= 6292 fi 6293done 6294 6295fi 6296 6297if test -z "$lt_cv_sys_global_symbol_pipe"; then 6298 lt_cv_sys_global_symbol_to_cdecl= 6299fi 6300if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6301 echo "$as_me:$LINENO: result: failed" >&5 6302echo "${ECHO_T}failed" >&6 6303else 6304 echo "$as_me:$LINENO: result: ok" >&5 6305echo "${ECHO_T}ok" >&6 6306fi 6307 6308echo "$as_me:$LINENO: checking for objdir" >&5 6309echo $ECHO_N "checking for objdir... $ECHO_C" >&6 6310if test "${lt_cv_objdir+set}" = set; then 6311 echo $ECHO_N "(cached) $ECHO_C" >&6 6312else 6313 rm -f .libs 2>/dev/null 6314mkdir .libs 2>/dev/null 6315if test -d .libs; then 6316 lt_cv_objdir=.libs 6317else 6318 # MS-DOS does not allow filenames that begin with a dot. 6319 lt_cv_objdir=_libs 6320fi 6321rmdir .libs 2>/dev/null 6322fi 6323echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6324echo "${ECHO_T}$lt_cv_objdir" >&6 6325objdir=$lt_cv_objdir 6326 6327 6328 6329 6330 6331case $host_os in 6332aix3*) 6333 # AIX sometimes has problems with the GCC collect2 program. For some 6334 # reason, if we set the COLLECT_NAMES environment variable, the problems 6335 # vanish in a puff of smoke. 6336 if test "X${COLLECT_NAMES+set}" != Xset; then 6337 COLLECT_NAMES= 6338 export COLLECT_NAMES 6339 fi 6340 ;; 6341esac 6342 6343# Sed substitution that helps us do robust quoting. It backslashifies 6344# metacharacters that are still active within double-quoted strings. 6345Xsed='sed -e s/^X//' 6346sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 6347 6348# Same as above, but do not quote variable references. 6349double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 6350 6351# Sed substitution to delay expansion of an escaped shell variable in a 6352# double_quote_subst'ed string. 6353delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6354 6355# Sed substitution to avoid accidental globbing in evaled expressions 6356no_glob_subst='s/\*/\\\*/g' 6357 6358# Constants: 6359rm="rm -f" 6360 6361# Global variables: 6362default_ofile=mklib 6363can_build_shared=yes 6364 6365# All known linkers require a `.a' archive for static linking (except M$VC, 6366# which needs '.lib'). 6367libext=a 6368ltmain="$ac_aux_dir/ltmain.sh" 6369ofile="$default_ofile" 6370with_gnu_ld="$lt_cv_prog_gnu_ld" 6371 6372if test -n "$ac_tool_prefix"; then 6373 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6374set dummy ${ac_tool_prefix}ar; ac_word=$2 6375echo "$as_me:$LINENO: checking for $ac_word" >&5 6376echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6377if test "${ac_cv_prog_AR+set}" = set; then 6378 echo $ECHO_N "(cached) $ECHO_C" >&6 6379else 6380 if test -n "$AR"; then 6381 ac_cv_prog_AR="$AR" # Let the user override the test. 6382else 6383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6384for as_dir in $PATH 6385do 6386 IFS=$as_save_IFS 6387 test -z "$as_dir" && as_dir=. 6388 for ac_exec_ext in '' $ac_executable_extensions; do 6389 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6390 ac_cv_prog_AR="${ac_tool_prefix}ar" 6391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6392 break 2 6393 fi 6394done 6395done 6396 6397fi 6398fi 6399AR=$ac_cv_prog_AR 6400if test -n "$AR"; then 6401 echo "$as_me:$LINENO: result: $AR" >&5 6402echo "${ECHO_T}$AR" >&6 6403else 6404 echo "$as_me:$LINENO: result: no" >&5 6405echo "${ECHO_T}no" >&6 6406fi 6407 6408fi 6409if test -z "$ac_cv_prog_AR"; then 6410 ac_ct_AR=$AR 6411 # Extract the first word of "ar", so it can be a program name with args. 6412set dummy ar; ac_word=$2 6413echo "$as_me:$LINENO: checking for $ac_word" >&5 6414echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6415if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6416 echo $ECHO_N "(cached) $ECHO_C" >&6 6417else 6418 if test -n "$ac_ct_AR"; then 6419 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6420else 6421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6422for as_dir in $PATH 6423do 6424 IFS=$as_save_IFS 6425 test -z "$as_dir" && as_dir=. 6426 for ac_exec_ext in '' $ac_executable_extensions; do 6427 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6428 ac_cv_prog_ac_ct_AR="ar" 6429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6430 break 2 6431 fi 6432done 6433done 6434 6435 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" 6436fi 6437fi 6438ac_ct_AR=$ac_cv_prog_ac_ct_AR 6439if test -n "$ac_ct_AR"; then 6440 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6441echo "${ECHO_T}$ac_ct_AR" >&6 6442else 6443 echo "$as_me:$LINENO: result: no" >&5 6444echo "${ECHO_T}no" >&6 6445fi 6446 6447 AR=$ac_ct_AR 6448else 6449 AR="$ac_cv_prog_AR" 6450fi 6451 6452if test -n "$ac_tool_prefix"; then 6453 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6454set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6455echo "$as_me:$LINENO: checking for $ac_word" >&5 6456echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6457if test "${ac_cv_prog_RANLIB+set}" = set; then 6458 echo $ECHO_N "(cached) $ECHO_C" >&6 6459else 6460 if test -n "$RANLIB"; then 6461 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6462else 6463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6464for as_dir in $PATH 6465do 6466 IFS=$as_save_IFS 6467 test -z "$as_dir" && as_dir=. 6468 for ac_exec_ext in '' $ac_executable_extensions; do 6469 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6470 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6472 break 2 6473 fi 6474done 6475done 6476 6477fi 6478fi 6479RANLIB=$ac_cv_prog_RANLIB 6480if test -n "$RANLIB"; then 6481 echo "$as_me:$LINENO: result: $RANLIB" >&5 6482echo "${ECHO_T}$RANLIB" >&6 6483else 6484 echo "$as_me:$LINENO: result: no" >&5 6485echo "${ECHO_T}no" >&6 6486fi 6487 6488fi 6489if test -z "$ac_cv_prog_RANLIB"; then 6490 ac_ct_RANLIB=$RANLIB 6491 # Extract the first word of "ranlib", so it can be a program name with args. 6492set dummy ranlib; ac_word=$2 6493echo "$as_me:$LINENO: checking for $ac_word" >&5 6494echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6495if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6496 echo $ECHO_N "(cached) $ECHO_C" >&6 6497else 6498 if test -n "$ac_ct_RANLIB"; then 6499 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6500else 6501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6502for as_dir in $PATH 6503do 6504 IFS=$as_save_IFS 6505 test -z "$as_dir" && as_dir=. 6506 for ac_exec_ext in '' $ac_executable_extensions; do 6507 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6508 ac_cv_prog_ac_ct_RANLIB="ranlib" 6509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6510 break 2 6511 fi 6512done 6513done 6514 6515 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 6516fi 6517fi 6518ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6519if test -n "$ac_ct_RANLIB"; then 6520 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6521echo "${ECHO_T}$ac_ct_RANLIB" >&6 6522else 6523 echo "$as_me:$LINENO: result: no" >&5 6524echo "${ECHO_T}no" >&6 6525fi 6526 6527 RANLIB=$ac_ct_RANLIB 6528else 6529 RANLIB="$ac_cv_prog_RANLIB" 6530fi 6531 6532if test -n "$ac_tool_prefix"; then 6533 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6534set dummy ${ac_tool_prefix}strip; ac_word=$2 6535echo "$as_me:$LINENO: checking for $ac_word" >&5 6536echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6537if test "${ac_cv_prog_STRIP+set}" = set; then 6538 echo $ECHO_N "(cached) $ECHO_C" >&6 6539else 6540 if test -n "$STRIP"; then 6541 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6542else 6543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6544for as_dir in $PATH 6545do 6546 IFS=$as_save_IFS 6547 test -z "$as_dir" && as_dir=. 6548 for ac_exec_ext in '' $ac_executable_extensions; do 6549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6550 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6552 break 2 6553 fi 6554done 6555done 6556 6557fi 6558fi 6559STRIP=$ac_cv_prog_STRIP 6560if test -n "$STRIP"; then 6561 echo "$as_me:$LINENO: result: $STRIP" >&5 6562echo "${ECHO_T}$STRIP" >&6 6563else 6564 echo "$as_me:$LINENO: result: no" >&5 6565echo "${ECHO_T}no" >&6 6566fi 6567 6568fi 6569if test -z "$ac_cv_prog_STRIP"; then 6570 ac_ct_STRIP=$STRIP 6571 # Extract the first word of "strip", so it can be a program name with args. 6572set dummy strip; ac_word=$2 6573echo "$as_me:$LINENO: checking for $ac_word" >&5 6574echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6575if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6576 echo $ECHO_N "(cached) $ECHO_C" >&6 6577else 6578 if test -n "$ac_ct_STRIP"; then 6579 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6580else 6581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6582for as_dir in $PATH 6583do 6584 IFS=$as_save_IFS 6585 test -z "$as_dir" && as_dir=. 6586 for ac_exec_ext in '' $ac_executable_extensions; do 6587 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6588 ac_cv_prog_ac_ct_STRIP="strip" 6589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6590 break 2 6591 fi 6592done 6593done 6594 6595 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 6596fi 6597fi 6598ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6599if test -n "$ac_ct_STRIP"; then 6600 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 6601echo "${ECHO_T}$ac_ct_STRIP" >&6 6602else 6603 echo "$as_me:$LINENO: result: no" >&5 6604echo "${ECHO_T}no" >&6 6605fi 6606 6607 STRIP=$ac_ct_STRIP 6608else 6609 STRIP="$ac_cv_prog_STRIP" 6610fi 6611 6612 6613old_CC="$CC" 6614old_CFLAGS="$CFLAGS" 6615 6616# Set sane defaults for various variables 6617test -z "$AR" && AR=ar 6618test -z "$AR_FLAGS" && AR_FLAGS=cru 6619test -z "$AS" && AS=as 6620test -z "$CC" && CC=cc 6621test -z "$LTCC" && LTCC=$CC 6622test -z "$DLLTOOL" && DLLTOOL=dlltool 6623test -z "$LD" && LD=ld 6624test -z "$LN_S" && LN_S="ln -s" 6625test -z "$MAGIC_CMD" && MAGIC_CMD=file 6626test -z "$NM" && NM=nm 6627test -z "$SED" && SED=sed 6628test -z "$OBJDUMP" && OBJDUMP=objdump 6629test -z "$RANLIB" && RANLIB=: 6630test -z "$STRIP" && STRIP=: 6631test -z "$ac_objext" && ac_objext=o 6632 6633# Determine commands to create old-style static archives. 6634old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 6635old_postinstall_cmds='chmod 644 $oldlib' 6636old_postuninstall_cmds= 6637 6638if test -n "$RANLIB"; then 6639 case $host_os in 6640 openbsd*) 6641 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" 6642 ;; 6643 *) 6644 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" 6645 ;; 6646 esac 6647 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6648fi 6649 6650cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` 6651 6652# Only perform the check for file, if the check method requires it 6653case $deplibs_check_method in 6654file_magic*) 6655 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 6656 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 6657echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 6658if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6659 echo $ECHO_N "(cached) $ECHO_C" >&6 6660else 6661 case $MAGIC_CMD in 6662[\\/*] | ?:[\\/]*) 6663 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6664 ;; 6665*) 6666 lt_save_MAGIC_CMD="$MAGIC_CMD" 6667 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6668 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6669 for ac_dir in $ac_dummy; do 6670 IFS="$lt_save_ifs" 6671 test -z "$ac_dir" && ac_dir=. 6672 if test -f $ac_dir/${ac_tool_prefix}file; then 6673 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 6674 if test -n "$file_magic_test_file"; then 6675 case $deplibs_check_method in 6676 "file_magic "*) 6677 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 6678 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6679 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6680 $EGREP "$file_magic_regex" > /dev/null; then 6681 : 6682 else 6683 cat <<EOF 1>&2 6684 6685*** Warning: the command libtool uses to detect shared libraries, 6686*** $file_magic_cmd, produces output that libtool cannot recognize. 6687*** The result is that libtool may fail to recognize shared libraries 6688*** as such. This will affect the creation of libtool libraries that 6689*** depend on shared libraries, but programs linked with such libtool 6690*** libraries will work regardless of this problem. Nevertheless, you 6691*** may want to report the problem to your system manager and/or to 6692*** bug-libtool@gnu.org 6693 6694EOF 6695 fi ;; 6696 esac 6697 fi 6698 break 6699 fi 6700 done 6701 IFS="$lt_save_ifs" 6702 MAGIC_CMD="$lt_save_MAGIC_CMD" 6703 ;; 6704esac 6705fi 6706 6707MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6708if test -n "$MAGIC_CMD"; then 6709 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6710echo "${ECHO_T}$MAGIC_CMD" >&6 6711else 6712 echo "$as_me:$LINENO: result: no" >&5 6713echo "${ECHO_T}no" >&6 6714fi 6715 6716if test -z "$lt_cv_path_MAGIC_CMD"; then 6717 if test -n "$ac_tool_prefix"; then 6718 echo "$as_me:$LINENO: checking for file" >&5 6719echo $ECHO_N "checking for file... $ECHO_C" >&6 6720if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6721 echo $ECHO_N "(cached) $ECHO_C" >&6 6722else 6723 case $MAGIC_CMD in 6724[\\/*] | ?:[\\/]*) 6725 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6726 ;; 6727*) 6728 lt_save_MAGIC_CMD="$MAGIC_CMD" 6729 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6730 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6731 for ac_dir in $ac_dummy; do 6732 IFS="$lt_save_ifs" 6733 test -z "$ac_dir" && ac_dir=. 6734 if test -f $ac_dir/file; then 6735 lt_cv_path_MAGIC_CMD="$ac_dir/file" 6736 if test -n "$file_magic_test_file"; then 6737 case $deplibs_check_method in 6738 "file_magic "*) 6739 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 6740 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6741 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6742 $EGREP "$file_magic_regex" > /dev/null; then 6743 : 6744 else 6745 cat <<EOF 1>&2 6746 6747*** Warning: the command libtool uses to detect shared libraries, 6748*** $file_magic_cmd, produces output that libtool cannot recognize. 6749*** The result is that libtool may fail to recognize shared libraries 6750*** as such. This will affect the creation of libtool libraries that 6751*** depend on shared libraries, but programs linked with such libtool 6752*** libraries will work regardless of this problem. Nevertheless, you 6753*** may want to report the problem to your system manager and/or to 6754*** bug-libtool@gnu.org 6755 6756EOF 6757 fi ;; 6758 esac 6759 fi 6760 break 6761 fi 6762 done 6763 IFS="$lt_save_ifs" 6764 MAGIC_CMD="$lt_save_MAGIC_CMD" 6765 ;; 6766esac 6767fi 6768 6769MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6770if test -n "$MAGIC_CMD"; then 6771 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6772echo "${ECHO_T}$MAGIC_CMD" >&6 6773else 6774 echo "$as_me:$LINENO: result: no" >&5 6775echo "${ECHO_T}no" >&6 6776fi 6777 6778 else 6779 MAGIC_CMD=: 6780 fi 6781fi 6782 6783 fi 6784 ;; 6785esac 6786 6787enable_dlopen=yes 6788enable_win32_dll=no 6789 6790# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 6791if test "${enable_libtool_lock+set}" = set; then 6792 enableval="$enable_libtool_lock" 6793 6794fi; 6795test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6796 6797 6798# Check whether --with-pic or --without-pic was given. 6799if test "${with_pic+set}" = set; then 6800 withval="$with_pic" 6801 pic_mode="$withval" 6802else 6803 pic_mode=default 6804fi; 6805test -z "$pic_mode" && pic_mode=default 6806 6807# Use C for the default configuration in the libtool script 6808tagname= 6809lt_save_CC="$CC" 6810ac_ext=c 6811ac_cpp='$CPP $CPPFLAGS' 6812ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6813ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6814ac_compiler_gnu=$ac_cv_c_compiler_gnu 6815 6816 6817# Source file extension for C test sources. 6818ac_ext=c 6819 6820# Object file extension for compiled C test sources. 6821objext=o 6822objext=$objext 6823 6824# Code to be used in simple compile tests 6825lt_simple_compile_test_code="int some_variable = 0;\n" 6826 6827# Code to be used in simple link tests 6828lt_simple_link_test_code='int main(){return(0);}\n' 6829 6830 6831# If no C compiler was specified, use CC. 6832LTCC=${LTCC-"$CC"} 6833 6834# Allow CC to be a program name with arguments. 6835compiler=$CC 6836 6837 6838# 6839# Check for any special shared library compilation flags. 6840# 6841lt_prog_cc_shlib= 6842if test "$GCC" = no; then 6843 case $host_os in 6844 sco3.2v5*) 6845 lt_prog_cc_shlib='-belf' 6846 ;; 6847 esac 6848fi 6849if test -n "$lt_prog_cc_shlib"; then 6850 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 6851echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} 6852 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : 6853 else 6854 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 6855echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} 6856 lt_cv_prog_cc_can_build_shared=no 6857 fi 6858fi 6859 6860 6861# 6862# Check to make sure the static flag actually works. 6863# 6864echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 6865echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 6866if test "${lt_prog_compiler_static_works+set}" = set; then 6867 echo $ECHO_N "(cached) $ECHO_C" >&6 6868else 6869 lt_prog_compiler_static_works=no 6870 save_LDFLAGS="$LDFLAGS" 6871 LDFLAGS="$LDFLAGS $lt_prog_compiler_static" 6872 printf "$lt_simple_link_test_code" > conftest.$ac_ext 6873 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 6874 # The compiler can only warn and ignore the option if not recognized 6875 # So say no if there are warnings 6876 if test -s conftest.err; then 6877 # Append any errors to the config.log. 6878 cat conftest.err 1>&5 6879 else 6880 lt_prog_compiler_static_works=yes 6881 fi 6882 fi 6883 $rm conftest* 6884 LDFLAGS="$save_LDFLAGS" 6885 6886fi 6887echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 6888echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 6889 6890if test x"$lt_prog_compiler_static_works" = xyes; then 6891 : 6892else 6893 lt_prog_compiler_static= 6894fi 6895 6896 6897 6898 6899lt_prog_compiler_no_builtin_flag= 6900 6901if test "$GCC" = yes; then 6902 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 6903 6904 6905echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 6906echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 6907if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 6908 echo $ECHO_N "(cached) $ECHO_C" >&6 6909else 6910 lt_cv_prog_compiler_rtti_exceptions=no 6911 ac_outfile=conftest.$ac_objext 6912 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6913 lt_compiler_flag="-fno-rtti -fno-exceptions" 6914 # Insert the option either (1) after the last *FLAGS variable, or 6915 # (2) before a word containing "conftest.", or (3) at the end. 6916 # Note that $ac_compile itself does not contain backslashes and begins 6917 # with a dollar sign (not a hyphen), so the echo should work correctly. 6918 # The option is referenced via a variable to avoid confusing sed. 6919 lt_compile=`echo "$ac_compile" | $SED \ 6920 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 6921 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6922 -e 's:$: $lt_compiler_flag:'` 6923 (eval echo "\"\$as_me:6923: $lt_compile\"" >&5) 6924 (eval "$lt_compile" 2>conftest.err) 6925 ac_status=$? 6926 cat conftest.err >&5 6927 echo "$as_me:6927: \$? = $ac_status" >&5 6928 if (exit $ac_status) && test -s "$ac_outfile"; then 6929 # The compiler can only warn and ignore the option if not recognized 6930 # So say no if there are warnings 6931 if test ! -s conftest.err; then 6932 lt_cv_prog_compiler_rtti_exceptions=yes 6933 fi 6934 fi 6935 $rm conftest* 6936 6937fi 6938echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 6939echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 6940 6941if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 6942 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 6943else 6944 : 6945fi 6946 6947fi 6948 6949lt_prog_compiler_wl= 6950lt_prog_compiler_pic= 6951lt_prog_compiler_static= 6952 6953echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 6954echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 6955 6956 if test "$GCC" = yes; then 6957 lt_prog_compiler_wl='-Wl,' 6958 lt_prog_compiler_static='-static' 6959 6960 case $host_os in 6961 aix*) 6962 # All AIX code is PIC. 6963 if test "$host_cpu" = ia64; then 6964 # AIX 5 now supports IA64 processor 6965 lt_prog_compiler_static='-Bstatic' 6966 fi 6967 ;; 6968 6969 amigaos*) 6970 # FIXME: we need at least 68020 code to build shared libraries, but 6971 # adding the `-m68020' flag to GCC prevents building anything better, 6972 # like `-m68040'. 6973 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 6974 ;; 6975 6976 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 6977 # PIC is the default for these OSes. 6978 ;; 6979 6980 mingw* | pw32* | os2*) 6981 # This hack is so that the source file can tell whether it is being 6982 # built for inclusion in a dll (and should export symbols for example). 6983 lt_prog_compiler_pic='-DDLL_EXPORT' 6984 ;; 6985 6986 darwin* | rhapsody*) 6987 # PIC is the default on this platform 6988 # Common symbols not allowed in MH_DYLIB files 6989 lt_prog_compiler_pic='-fno-common' 6990 ;; 6991 6992 msdosdjgpp*) 6993 # Just because we use GCC doesn't mean we suddenly get shared libraries 6994 # on systems that don't support them. 6995 lt_prog_compiler_can_build_shared=no 6996 enable_shared=no 6997 ;; 6998 6999 sysv4*MP*) 7000 if test -d /usr/nec; then 7001 lt_prog_compiler_pic=-Kconform_pic 7002 fi 7003 ;; 7004 7005 hpux*) 7006 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7007 # not for PA HP-UX. 7008 case "$host_cpu" in 7009 hppa*64*|ia64*) 7010 # +Z the default 7011 ;; 7012 *) 7013 lt_prog_compiler_pic='-fPIC' 7014 ;; 7015 esac 7016 ;; 7017 7018 *) 7019 lt_prog_compiler_pic='-fPIC' 7020 ;; 7021 esac 7022 else 7023 # PORTME Check for flag to pass linker flags through the system compiler. 7024 case $host_os in 7025 aix*) 7026 lt_prog_compiler_wl='-Wl,' 7027 if test "$host_cpu" = ia64; then 7028 # AIX 5 now supports IA64 processor 7029 lt_prog_compiler_static='-Bstatic' 7030 else 7031 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7032 fi 7033 ;; 7034 darwin*) 7035 # PIC is the default on this platform 7036 # Common symbols not allowed in MH_DYLIB files 7037 case "$cc_basename" in 7038 xlc*) 7039 lt_prog_compiler_pic='-qnocommon' 7040 lt_prog_compiler_wl='-Wl,' 7041 ;; 7042 esac 7043 ;; 7044 7045 mingw* | pw32* | os2*) 7046 # This hack is so that the source file can tell whether it is being 7047 # built for inclusion in a dll (and should export symbols for example). 7048 lt_prog_compiler_pic='-DDLL_EXPORT' 7049 ;; 7050 7051 hpux9* | hpux10* | hpux11*) 7052 lt_prog_compiler_wl='-Wl,' 7053 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7054 # not for PA HP-UX. 7055 case "$host_cpu" in 7056 hppa*64*|ia64*) 7057 # +Z the default 7058 ;; 7059 *) 7060 lt_prog_compiler_pic='+Z' 7061 ;; 7062 esac 7063 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7064 lt_prog_compiler_static='${wl}-a ${wl}archive' 7065 ;; 7066 7067 irix5* | irix6* | nonstopux*) 7068 lt_prog_compiler_wl='-Wl,' 7069 # PIC (with -KPIC) is the default. 7070 lt_prog_compiler_static='-non_shared' 7071 ;; 7072 7073 newsos6) 7074 lt_prog_compiler_pic='-KPIC' 7075 lt_prog_compiler_static='-Bstatic' 7076 ;; 7077 7078 linux*) 7079 case $CC in 7080 icc* | ecc*) 7081 lt_prog_compiler_wl='-Wl,' 7082 lt_prog_compiler_pic='-KPIC' 7083 lt_prog_compiler_static='-static' 7084 ;; 7085 ccc*) 7086 lt_prog_compiler_wl='-Wl,' 7087 # All Alpha code is PIC. 7088 lt_prog_compiler_static='-non_shared' 7089 ;; 7090 esac 7091 ;; 7092 7093 osf3* | osf4* | osf5*) 7094 lt_prog_compiler_wl='-Wl,' 7095 # All OSF/1 code is PIC. 7096 lt_prog_compiler_static='-non_shared' 7097 ;; 7098 7099 sco3.2v5*) 7100 lt_prog_compiler_pic='-Kpic' 7101 lt_prog_compiler_static='-dn' 7102 ;; 7103 7104 solaris*) 7105 lt_prog_compiler_wl='-Wl,' 7106 lt_prog_compiler_pic='-KPIC' 7107 lt_prog_compiler_static='-Bstatic' 7108 ;; 7109 7110 sunos4*) 7111 lt_prog_compiler_wl='-Qoption ld ' 7112 lt_prog_compiler_pic='-PIC' 7113 lt_prog_compiler_static='-Bstatic' 7114 ;; 7115 7116 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 7117 lt_prog_compiler_wl='-Wl,' 7118 lt_prog_compiler_pic='-KPIC' 7119 lt_prog_compiler_static='-Bstatic' 7120 ;; 7121 7122 sysv4*MP*) 7123 if test -d /usr/nec ;then 7124 lt_prog_compiler_pic='-Kconform_pic' 7125 lt_prog_compiler_static='-Bstatic' 7126 fi 7127 ;; 7128 7129 uts4*) 7130 lt_prog_compiler_pic='-pic' 7131 lt_prog_compiler_static='-Bstatic' 7132 ;; 7133 7134 *) 7135 lt_prog_compiler_can_build_shared=no 7136 ;; 7137 esac 7138 fi 7139 7140echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7141echo "${ECHO_T}$lt_prog_compiler_pic" >&6 7142 7143# 7144# Check to make sure the PIC flag actually works. 7145# 7146if test -n "$lt_prog_compiler_pic"; then 7147 7148echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7149echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 7150if test "${lt_prog_compiler_pic_works+set}" = set; then 7151 echo $ECHO_N "(cached) $ECHO_C" >&6 7152else 7153 lt_prog_compiler_pic_works=no 7154 ac_outfile=conftest.$ac_objext 7155 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7156 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7157 # Insert the option either (1) after the last *FLAGS variable, or 7158 # (2) before a word containing "conftest.", or (3) at the end. 7159 # Note that $ac_compile itself does not contain backslashes and begins 7160 # with a dollar sign (not a hyphen), so the echo should work correctly. 7161 # The option is referenced via a variable to avoid confusing sed. 7162 lt_compile=`echo "$ac_compile" | $SED \ 7163 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 7164 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7165 -e 's:$: $lt_compiler_flag:'` 7166 (eval echo "\"\$as_me:7166: $lt_compile\"" >&5) 7167 (eval "$lt_compile" 2>conftest.err) 7168 ac_status=$? 7169 cat conftest.err >&5 7170 echo "$as_me:7170: \$? = $ac_status" >&5 7171 if (exit $ac_status) && test -s "$ac_outfile"; then 7172 # The compiler can only warn and ignore the option if not recognized 7173 # So say no if there are warnings 7174 if test ! -s conftest.err; then 7175 lt_prog_compiler_pic_works=yes 7176 fi 7177 fi 7178 $rm conftest* 7179 7180fi 7181echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 7182echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 7183 7184if test x"$lt_prog_compiler_pic_works" = xyes; then 7185 case $lt_prog_compiler_pic in 7186 "" | " "*) ;; 7187 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7188 esac 7189else 7190 lt_prog_compiler_pic= 7191 lt_prog_compiler_can_build_shared=no 7192fi 7193 7194fi 7195case "$host_os" in 7196 # For platforms which do not support PIC, -DPIC is meaningless: 7197 *djgpp*) 7198 lt_prog_compiler_pic= 7199 ;; 7200 *) 7201 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7202 ;; 7203esac 7204 7205echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7206echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 7207if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7208 echo $ECHO_N "(cached) $ECHO_C" >&6 7209else 7210 lt_cv_prog_compiler_c_o=no 7211 $rm -r conftest 2>/dev/null 7212 mkdir conftest 7213 cd conftest 7214 mkdir out 7215 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7216 7217 lt_compiler_flag="-o out/conftest2.$ac_objext" 7218 # Insert the option either (1) after the last *FLAGS variable, or 7219 # (2) before a word containing "conftest.", or (3) at the end. 7220 # Note that $ac_compile itself does not contain backslashes and begins 7221 # with a dollar sign (not a hyphen), so the echo should work correctly. 7222 lt_compile=`echo "$ac_compile" | $SED \ 7223 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 7224 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7225 -e 's:$: $lt_compiler_flag:'` 7226 (eval echo "\"\$as_me:7226: $lt_compile\"" >&5) 7227 (eval "$lt_compile" 2>out/conftest.err) 7228 ac_status=$? 7229 cat out/conftest.err >&5 7230 echo "$as_me:7230: \$? = $ac_status" >&5 7231 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7232 then 7233 # The compiler can only warn and ignore the option if not recognized 7234 # So say no if there are warnings 7235 if test ! -s out/conftest.err; then 7236 lt_cv_prog_compiler_c_o=yes 7237 fi 7238 fi 7239 chmod u+w . 7240 $rm conftest* 7241 # SGI C++ compiler will create directory out/ii_files/ for 7242 # template instantiation 7243 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 7244 $rm out/* && rmdir out 7245 cd .. 7246 rmdir conftest 7247 $rm conftest* 7248 7249fi 7250echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7251echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 7252 7253 7254hard_links="nottested" 7255if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7256 # do not overwrite the value of need_locks provided by the user 7257 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 7258echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 7259 hard_links=yes 7260 $rm conftest* 7261 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7262 touch conftest.a 7263 ln conftest.a conftest.b 2>&5 || hard_links=no 7264 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7265 echo "$as_me:$LINENO: result: $hard_links" >&5 7266echo "${ECHO_T}$hard_links" >&6 7267 if test "$hard_links" = no; then 7268 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7269echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7270 need_locks=warn 7271 fi 7272else 7273 need_locks=no 7274fi 7275 7276echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7277echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 7278 7279 runpath_var= 7280 allow_undefined_flag= 7281 enable_shared_with_static_runtimes=no 7282 archive_cmds= 7283 archive_expsym_cmds= 7284 old_archive_From_new_cmds= 7285 old_archive_from_expsyms_cmds= 7286 export_dynamic_flag_spec= 7287 whole_archive_flag_spec= 7288 thread_safe_flag_spec= 7289 hardcode_libdir_flag_spec= 7290 hardcode_libdir_flag_spec_ld= 7291 hardcode_libdir_separator= 7292 hardcode_direct=no 7293 hardcode_minus_L=no 7294 hardcode_shlibpath_var=unsupported 7295 link_all_deplibs=unknown 7296 hardcode_automatic=no 7297 module_cmds= 7298 module_expsym_cmds= 7299 always_export_symbols=no 7300 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7301 # include_expsyms should be a list of space-separated symbols to be *always* 7302 # included in the symbol list 7303 include_expsyms= 7304 # exclude_expsyms can be an extended regexp of symbols to exclude 7305 # it will be wrapped by ` (' and `)$', so one must not match beginning or 7306 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7307 # as well as any symbol that contains `d'. 7308 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 7309 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7310 # platforms (ab)use it in PIC code, but their linkers get confused if 7311 # the symbol is explicitly referenced. Since portable code cannot 7312 # rely on this symbol name, it's probably fine to never include it in 7313 # preloaded symbol tables. 7314 extract_expsyms_cmds= 7315 7316 case $host_os in 7317 cygwin* | mingw* | pw32*) 7318 # FIXME: the MSVC++ port hasn't been tested in a loooong time 7319 # When not using gcc, we currently assume that we are using 7320 # Microsoft Visual C++. 7321 if test "$GCC" != yes; then 7322 with_gnu_ld=no 7323 fi 7324 ;; 7325 openbsd*) 7326 with_gnu_ld=no 7327 ;; 7328 esac 7329 7330 ld_shlibs=yes 7331 if test "$with_gnu_ld" = yes; then 7332 # If archive_cmds runs LD, not CC, wlarc should be empty 7333 wlarc='${wl}' 7334 7335 # See if GNU ld supports shared libraries. 7336 case $host_os in 7337 aix3* | aix4* | aix5*) 7338 # On AIX/PPC, the GNU linker is very broken 7339 if test "$host_cpu" != ia64; then 7340 ld_shlibs=no 7341 cat <<EOF 1>&2 7342 7343*** Warning: the GNU linker, at least up to release 2.9.1, is reported 7344*** to be unable to reliably create shared libraries on AIX. 7345*** Therefore, libtool is disabling shared libraries support. If you 7346*** really care for shared libraries, you may want to modify your PATH 7347*** so that a non-GNU linker is found, and then restart. 7348 7349EOF 7350 fi 7351 ;; 7352 7353 amigaos*) 7354 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)' 7355 hardcode_libdir_flag_spec='-L$libdir' 7356 hardcode_minus_L=yes 7357 7358 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 7359 # that the semantics of dynamic libraries on AmigaOS, at least up 7360 # to version 4, is to share data among multiple programs linked 7361 # with the same dynamic library. Since this doesn't match the 7362 # behavior of shared libraries on other platforms, we can't use 7363 # them. 7364 ld_shlibs=no 7365 ;; 7366 7367 beos*) 7368 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7369 allow_undefined_flag=unsupported 7370 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 7371 # support --undefined. This deserves some investigation. FIXME 7372 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7373 else 7374 ld_shlibs=no 7375 fi 7376 ;; 7377 7378 cygwin* | mingw* | pw32*) 7379 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 7380 # as there is no search path for DLLs. 7381 hardcode_libdir_flag_spec='-L$libdir' 7382 allow_undefined_flag=unsupported 7383 always_export_symbols=no 7384 enable_shared_with_static_runtimes=yes 7385 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 7386 7387 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 7388 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 7389 # If the export-symbols file already is a .def file (1st line 7390 # is EXPORTS), use it as is; otherwise, prepend... 7391 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 7392 cp $export_symbols $output_objdir/$soname.def; 7393 else 7394 echo EXPORTS > $output_objdir/$soname.def; 7395 cat $export_symbols >> $output_objdir/$soname.def; 7396 fi~ 7397 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 7398 else 7399 ld_shlibs=no 7400 fi 7401 ;; 7402 7403 netbsd*) 7404 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7405 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 7406 wlarc= 7407 else 7408 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7409 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7410 fi 7411 ;; 7412 7413 solaris* | sysv5*) 7414 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 7415 ld_shlibs=no 7416 cat <<EOF 1>&2 7417 7418*** Warning: The releases 2.8.* of the GNU linker cannot reliably 7419*** create shared libraries on Solaris systems. Therefore, libtool 7420*** is disabling shared libraries support. We urge you to upgrade GNU 7421*** binutils to release 2.9.1 or newer. Another option is to modify 7422*** your PATH or compiler configuration so that the native linker is 7423*** used, and then restart. 7424 7425EOF 7426 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7427 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7428 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7429 else 7430 ld_shlibs=no 7431 fi 7432 ;; 7433 7434 sunos4*) 7435 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7436 wlarc= 7437 hardcode_direct=yes 7438 hardcode_shlibpath_var=no 7439 ;; 7440 7441 linux*) 7442 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7443 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7444 archive_cmds="$tmp_archive_cmds" 7445 supports_anon_versioning=no 7446 case `$LD -v 2>/dev/null` in 7447 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 7448 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7449 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7450 *\ 2.11.*) ;; # other 2.11 versions 7451 *) supports_anon_versioning=yes ;; 7452 esac 7453 if test $supports_anon_versioning = yes; then 7454 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 7455cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7456$echo "local: *; };" >> $output_objdir/$libname.ver~ 7457 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 7458 else 7459 archive_expsym_cmds="$tmp_archive_cmds" 7460 fi 7461 else 7462 ld_shlibs=no 7463 fi 7464 ;; 7465 7466 *) 7467 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7468 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7469 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7470 else 7471 ld_shlibs=no 7472 fi 7473 ;; 7474 esac 7475 7476 if test "$ld_shlibs" = yes; then 7477 runpath_var=LD_RUN_PATH 7478 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 7479 export_dynamic_flag_spec='${wl}--export-dynamic' 7480 # ancient GNU ld didn't support --whole-archive et. al. 7481 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 7482 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7483 else 7484 whole_archive_flag_spec= 7485 fi 7486 fi 7487 else 7488 # PORTME fill in a description of your system's linker (not GNU ld) 7489 case $host_os in 7490 aix3*) 7491 allow_undefined_flag=unsupported 7492 always_export_symbols=yes 7493 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' 7494 # Note: this linker hardcodes the directories in LIBPATH if there 7495 # are no directories specified by -L. 7496 hardcode_minus_L=yes 7497 if test "$GCC" = yes && test -z "$link_static_flag"; then 7498 # Neither direct hardcoding nor static linking is supported with a 7499 # broken collect2. 7500 hardcode_direct=unsupported 7501 fi 7502 ;; 7503 7504 aix4* | aix5*) 7505 if test "$host_cpu" = ia64; then 7506 # On IA64, the linker does run time linking by default, so we don't 7507 # have to do anything special. 7508 aix_use_runtimelinking=no 7509 exp_sym_flag='-Bexport' 7510 no_entry_flag="" 7511 else 7512 # If we're using GNU nm, then we don't want the "-C" option. 7513 # -C means demangle to AIX nm, but means don't demangle with GNU nm 7514 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 7515 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' 7516 else 7517 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' 7518 fi 7519 aix_use_runtimelinking=no 7520 7521 # Test if we are trying to use run time linking or normal 7522 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 7523 # need to do runtime linking. 7524 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 7525 for ld_flag in $LDFLAGS; do 7526 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 7527 aix_use_runtimelinking=yes 7528 break 7529 fi 7530 done 7531 esac 7532 7533 exp_sym_flag='-bexport' 7534 no_entry_flag='-bnoentry' 7535 fi 7536 7537 # When large executables or shared objects are built, AIX ld can 7538 # have problems creating the table of contents. If linking a library 7539 # or program results in "error TOC overflow" add -mminimal-toc to 7540 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7541 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7542 7543 archive_cmds='' 7544 hardcode_direct=yes 7545 hardcode_libdir_separator=':' 7546 link_all_deplibs=yes 7547 7548 if test "$GCC" = yes; then 7549 case $host_os in aix4.012|aix4.012.*) 7550 # We only want to do this on AIX 4.2 and lower, the check 7551 # below for broken collect2 doesn't work under 4.3+ 7552 collect2name=`${CC} -print-prog-name=collect2` 7553 if test -f "$collect2name" && \ 7554 strings "$collect2name" | grep resolve_lib_name >/dev/null 7555 then 7556 # We have reworked collect2 7557 hardcode_direct=yes 7558 else 7559 # We have old collect2 7560 hardcode_direct=unsupported 7561 # It fails to find uninstalled libraries when the uninstalled 7562 # path is not listed in the libpath. Setting hardcode_minus_L 7563 # to unsupported forces relinking 7564 hardcode_minus_L=yes 7565 hardcode_libdir_flag_spec='-L$libdir' 7566 hardcode_libdir_separator= 7567 fi 7568 esac 7569 shared_flag='-shared' 7570 else 7571 # not using gcc 7572 if test "$host_cpu" = ia64; then 7573 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 7574 # chokes on -Wl,-G. The following line is correct: 7575 shared_flag='-G' 7576 else 7577 if test "$aix_use_runtimelinking" = yes; then 7578 shared_flag='${wl}-G' 7579 else 7580 shared_flag='${wl}-bM:SRE' 7581 fi 7582 fi 7583 fi 7584 7585 # It seems that -bexpall does not export symbols beginning with 7586 # underscore (_), so it is better to generate a list of symbols to export. 7587 always_export_symbols=yes 7588 if test "$aix_use_runtimelinking" = yes; then 7589 # Warning - without using the other runtime loading flags (-brtl), 7590 # -berok will link without error, but may produce a broken library. 7591 allow_undefined_flag='-berok' 7592 # Determine the default libpath from the value encoded in an empty executable. 7593 cat >conftest.$ac_ext <<_ACEOF 7594/* confdefs.h. */ 7595_ACEOF 7596cat confdefs.h >>conftest.$ac_ext 7597cat >>conftest.$ac_ext <<_ACEOF 7598/* end confdefs.h. */ 7599 7600int 7601main () 7602{ 7603 7604 ; 7605 return 0; 7606} 7607_ACEOF 7608rm -f conftest.$ac_objext conftest$ac_exeext 7609if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7610 (eval $ac_link) 2>conftest.er1 7611 ac_status=$? 7612 grep -v '^ *+' conftest.er1 >conftest.err 7613 rm -f conftest.er1 7614 cat conftest.err >&5 7615 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7616 (exit $ac_status); } && 7617 { ac_try='test -z "$ac_c_werror_flag" 7618 || test ! -s conftest.err' 7619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7620 (eval $ac_try) 2>&5 7621 ac_status=$? 7622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7623 (exit $ac_status); }; } && 7624 { ac_try='test -s conftest$ac_exeext' 7625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7626 (eval $ac_try) 2>&5 7627 ac_status=$? 7628 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7629 (exit $ac_status); }; }; then 7630 7631aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7632}'` 7633# Check for a 64-bit object if we didn't find anything. 7634if 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; } 7635}'`; fi 7636else 7637 echo "$as_me: failed program was:" >&5 7638sed 's/^/| /' conftest.$ac_ext >&5 7639 7640fi 7641rm -f conftest.err conftest.$ac_objext \ 7642 conftest$ac_exeext conftest.$ac_ext 7643if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7644 7645 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7646 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" 7647 else 7648 if test "$host_cpu" = ia64; then 7649 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 7650 allow_undefined_flag="-z nodefs" 7651 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" 7652 else 7653 # Determine the default libpath from the value encoded in an empty executable. 7654 cat >conftest.$ac_ext <<_ACEOF 7655/* confdefs.h. */ 7656_ACEOF 7657cat confdefs.h >>conftest.$ac_ext 7658cat >>conftest.$ac_ext <<_ACEOF 7659/* end confdefs.h. */ 7660 7661int 7662main () 7663{ 7664 7665 ; 7666 return 0; 7667} 7668_ACEOF 7669rm -f conftest.$ac_objext conftest$ac_exeext 7670if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7671 (eval $ac_link) 2>conftest.er1 7672 ac_status=$? 7673 grep -v '^ *+' conftest.er1 >conftest.err 7674 rm -f conftest.er1 7675 cat conftest.err >&5 7676 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7677 (exit $ac_status); } && 7678 { ac_try='test -z "$ac_c_werror_flag" 7679 || test ! -s conftest.err' 7680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7681 (eval $ac_try) 2>&5 7682 ac_status=$? 7683 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7684 (exit $ac_status); }; } && 7685 { ac_try='test -s conftest$ac_exeext' 7686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7687 (eval $ac_try) 2>&5 7688 ac_status=$? 7689 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7690 (exit $ac_status); }; }; then 7691 7692aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7693}'` 7694# Check for a 64-bit object if we didn't find anything. 7695if 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; } 7696}'`; fi 7697else 7698 echo "$as_me: failed program was:" >&5 7699sed 's/^/| /' conftest.$ac_ext >&5 7700 7701fi 7702rm -f conftest.err conftest.$ac_objext \ 7703 conftest$ac_exeext conftest.$ac_ext 7704if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7705 7706 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7707 # Warning - without using the other run time loading flags, 7708 # -berok will link without error, but may produce a broken library. 7709 no_undefined_flag=' ${wl}-bernotok' 7710 allow_undefined_flag=' ${wl}-berok' 7711 # -bexpall does not export symbols beginning with underscore (_) 7712 always_export_symbols=yes 7713 # Exported symbols can be pulled into shared objects from archives 7714 whole_archive_flag_spec=' ' 7715 archive_cmds_need_lc=yes 7716 # This is similar to how AIX traditionally builds it's shared libraries. 7717 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' 7718 fi 7719 fi 7720 ;; 7721 7722 amigaos*) 7723 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)' 7724 hardcode_libdir_flag_spec='-L$libdir' 7725 hardcode_minus_L=yes 7726 # see comment about different semantics on the GNU ld section 7727 ld_shlibs=no 7728 ;; 7729 7730 bsdi[45]*) 7731 export_dynamic_flag_spec=-rdynamic 7732 ;; 7733 7734 cygwin* | mingw* | pw32*) 7735 # When not using gcc, we currently assume that we are using 7736 # Microsoft Visual C++. 7737 # hardcode_libdir_flag_spec is actually meaningless, as there is 7738 # no search path for DLLs. 7739 hardcode_libdir_flag_spec=' ' 7740 allow_undefined_flag=unsupported 7741 # Tell ltmain to make .lib files, not .a files. 7742 libext=lib 7743 # Tell ltmain to make .dll files, not .so files. 7744 shrext_cmds=".dll" 7745 # FIXME: Setting linknames here is a bad hack. 7746 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 7747 # The linker will automatically build a .lib file if we build a DLL. 7748 old_archive_From_new_cmds='true' 7749 # FIXME: Should let the user specify the lib program. 7750 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 7751 fix_srcfile_path='`cygpath -w "$srcfile"`' 7752 enable_shared_with_static_runtimes=yes 7753 ;; 7754 7755 darwin* | rhapsody*) 7756 case "$host_os" in 7757 rhapsody* | darwin1.[012]) 7758 allow_undefined_flag='${wl}-undefined ${wl}suppress' 7759 ;; 7760 *) # Darwin 1.3 on 7761 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 7762 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 7763 else 7764 case ${MACOSX_DEPLOYMENT_TARGET} in 7765 10.[012]) 7766 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 7767 ;; 7768 10.*) 7769 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 7770 ;; 7771 esac 7772 fi 7773 ;; 7774 esac 7775 archive_cmds_need_lc=no 7776 hardcode_direct=no 7777 hardcode_automatic=yes 7778 hardcode_shlibpath_var=unsupported 7779 whole_archive_flag_spec='' 7780 link_all_deplibs=yes 7781 if test "$GCC" = yes ; then 7782 output_verbose_link_cmd='echo' 7783 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 7784 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 7785 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 7786 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}' 7787 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}' 7788 else 7789 case "$cc_basename" in 7790 xlc*) 7791 output_verbose_link_cmd='echo' 7792 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 7793 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 7794 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 7795 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 7796 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}' 7797 ;; 7798 *) 7799 ld_shlibs=no 7800 ;; 7801 esac 7802 fi 7803 ;; 7804 7805 dgux*) 7806 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7807 hardcode_libdir_flag_spec='-L$libdir' 7808 hardcode_shlibpath_var=no 7809 ;; 7810 7811 freebsd1*) 7812 ld_shlibs=no 7813 ;; 7814 7815 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 7816 # support. Future versions do this automatically, but an explicit c++rt0.o 7817 # does not break anything, and helps significantly (at the cost of a little 7818 # extra space). 7819 freebsd2.2*) 7820 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 7821 hardcode_libdir_flag_spec='-R$libdir' 7822 hardcode_direct=yes 7823 hardcode_shlibpath_var=no 7824 ;; 7825 7826 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 7827 freebsd2*) 7828 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7829 hardcode_direct=yes 7830 hardcode_minus_L=yes 7831 hardcode_shlibpath_var=no 7832 ;; 7833 7834 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 7835 freebsd* | kfreebsd*-gnu) 7836 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 7837 hardcode_libdir_flag_spec='-R$libdir' 7838 hardcode_direct=yes 7839 hardcode_shlibpath_var=no 7840 ;; 7841 7842 hpux9*) 7843 if test "$GCC" = yes; then 7844 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' 7845 else 7846 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' 7847 fi 7848 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7849 hardcode_libdir_separator=: 7850 hardcode_direct=yes 7851 7852 # hardcode_minus_L: Not really in the search PATH, 7853 # but as the default location of the library. 7854 hardcode_minus_L=yes 7855 export_dynamic_flag_spec='${wl}-E' 7856 ;; 7857 7858 hpux10* | hpux11*) 7859 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 7860 case "$host_cpu" in 7861 hppa*64*|ia64*) 7862 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7863 ;; 7864 *) 7865 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7866 ;; 7867 esac 7868 else 7869 case "$host_cpu" in 7870 hppa*64*|ia64*) 7871 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 7872 ;; 7873 *) 7874 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 7875 ;; 7876 esac 7877 fi 7878 if test "$with_gnu_ld" = no; then 7879 case "$host_cpu" in 7880 hppa*64*) 7881 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7882 hardcode_libdir_flag_spec_ld='+b $libdir' 7883 hardcode_libdir_separator=: 7884 hardcode_direct=no 7885 hardcode_shlibpath_var=no 7886 ;; 7887 ia64*) 7888 hardcode_libdir_flag_spec='-L$libdir' 7889 hardcode_direct=no 7890 hardcode_shlibpath_var=no 7891 7892 # hardcode_minus_L: Not really in the search PATH, 7893 # but as the default location of the library. 7894 hardcode_minus_L=yes 7895 ;; 7896 *) 7897 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7898 hardcode_libdir_separator=: 7899 hardcode_direct=yes 7900 export_dynamic_flag_spec='${wl}-E' 7901 7902 # hardcode_minus_L: Not really in the search PATH, 7903 # but as the default location of the library. 7904 hardcode_minus_L=yes 7905 ;; 7906 esac 7907 fi 7908 ;; 7909 7910 irix5* | irix6* | nonstopux*) 7911 if test "$GCC" = yes; then 7912 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' 7913 else 7914 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' 7915 hardcode_libdir_flag_spec_ld='-rpath $libdir' 7916 fi 7917 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7918 hardcode_libdir_separator=: 7919 link_all_deplibs=yes 7920 ;; 7921 7922 netbsd*) 7923 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7924 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 7925 else 7926 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 7927 fi 7928 hardcode_libdir_flag_spec='-R$libdir' 7929 hardcode_direct=yes 7930 hardcode_shlibpath_var=no 7931 ;; 7932 7933 newsos6) 7934 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7935 hardcode_direct=yes 7936 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7937 hardcode_libdir_separator=: 7938 hardcode_shlibpath_var=no 7939 ;; 7940 7941 openbsd*) 7942 hardcode_direct=yes 7943 hardcode_shlibpath_var=no 7944 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7945 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7946 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 7947 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7948 export_dynamic_flag_spec='${wl}-E' 7949 else 7950 case $host_os in 7951 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 7952 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7953 hardcode_libdir_flag_spec='-R$libdir' 7954 ;; 7955 *) 7956 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7957 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7958 ;; 7959 esac 7960 fi 7961 ;; 7962 7963 os2*) 7964 hardcode_libdir_flag_spec='-L$libdir' 7965 hardcode_minus_L=yes 7966 allow_undefined_flag=unsupported 7967 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' 7968 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 7969 ;; 7970 7971 osf3*) 7972 if test "$GCC" = yes; then 7973 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7974 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' 7975 else 7976 allow_undefined_flag=' -expect_unresolved \*' 7977 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' 7978 fi 7979 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7980 hardcode_libdir_separator=: 7981 ;; 7982 7983 osf4* | osf5*) # as osf3* with the addition of -msym flag 7984 if test "$GCC" = yes; then 7985 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7986 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' 7987 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7988 else 7989 allow_undefined_flag=' -expect_unresolved \*' 7990 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' 7991 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 7992 $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' 7993 7994 # Both c and cxx compiler support -rpath directly 7995 hardcode_libdir_flag_spec='-rpath $libdir' 7996 fi 7997 hardcode_libdir_separator=: 7998 ;; 7999 8000 sco3.2v5*) 8001 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8002 hardcode_shlibpath_var=no 8003 export_dynamic_flag_spec='${wl}-Bexport' 8004 runpath_var=LD_RUN_PATH 8005 hardcode_runpath_var=yes 8006 ;; 8007 8008 solaris*) 8009 no_undefined_flag=' -z text' 8010 if test "$GCC" = yes; then 8011 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8012 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8013 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8014 else 8015 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8016 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8017 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8018 fi 8019 hardcode_libdir_flag_spec='-R$libdir' 8020 hardcode_shlibpath_var=no 8021 case $host_os in 8022 solaris2.[0-5] | solaris2.[0-5].*) ;; 8023 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 8024 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 8025 esac 8026 link_all_deplibs=yes 8027 ;; 8028 8029 sunos4*) 8030 if test "x$host_vendor" = xsequent; then 8031 # Use $CC to link under sequent, because it throws in some extra .o 8032 # files that make .init and .fini sections work. 8033 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8034 else 8035 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8036 fi 8037 hardcode_libdir_flag_spec='-L$libdir' 8038 hardcode_direct=yes 8039 hardcode_minus_L=yes 8040 hardcode_shlibpath_var=no 8041 ;; 8042 8043 sysv4) 8044 case $host_vendor in 8045 sni) 8046 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8047 hardcode_direct=yes # is this really true??? 8048 ;; 8049 siemens) 8050 ## LD is ld it makes a PLAMLIB 8051 ## CC just makes a GrossModule. 8052 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8053 reload_cmds='$CC -r -o $output$reload_objs' 8054 hardcode_direct=no 8055 ;; 8056 motorola) 8057 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8058 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8059 ;; 8060 esac 8061 runpath_var='LD_RUN_PATH' 8062 hardcode_shlibpath_var=no 8063 ;; 8064 8065 sysv4.3*) 8066 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8067 hardcode_shlibpath_var=no 8068 export_dynamic_flag_spec='-Bexport' 8069 ;; 8070 8071 sysv4*MP*) 8072 if test -d /usr/nec; then 8073 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8074 hardcode_shlibpath_var=no 8075 runpath_var=LD_RUN_PATH 8076 hardcode_runpath_var=yes 8077 ld_shlibs=yes 8078 fi 8079 ;; 8080 8081 sysv4.2uw2*) 8082 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8083 hardcode_direct=yes 8084 hardcode_minus_L=no 8085 hardcode_shlibpath_var=no 8086 hardcode_runpath_var=yes 8087 runpath_var=LD_RUN_PATH 8088 ;; 8089 8090 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 8091 no_undefined_flag='${wl}-z ${wl}text' 8092 if test "$GCC" = yes; then 8093 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8094 else 8095 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8096 fi 8097 runpath_var='LD_RUN_PATH' 8098 hardcode_shlibpath_var=no 8099 ;; 8100 8101 sysv5*) 8102 no_undefined_flag=' -z text' 8103 # $CC -shared without GNU ld will not create a library from C++ 8104 # object files and a static libstdc++, better avoid it by now 8105 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8106 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8107 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8108 hardcode_libdir_flag_spec= 8109 hardcode_shlibpath_var=no 8110 runpath_var='LD_RUN_PATH' 8111 ;; 8112 8113 uts4*) 8114 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8115 hardcode_libdir_flag_spec='-L$libdir' 8116 hardcode_shlibpath_var=no 8117 ;; 8118 8119 *) 8120 ld_shlibs=no 8121 ;; 8122 esac 8123 fi 8124 8125echo "$as_me:$LINENO: result: $ld_shlibs" >&5 8126echo "${ECHO_T}$ld_shlibs" >&6 8127test "$ld_shlibs" = no && can_build_shared=no 8128 8129variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 8130if test "$GCC" = yes; then 8131 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 8132fi 8133 8134# 8135# Do we need to explicitly link libc? 8136# 8137case "x$archive_cmds_need_lc" in 8138x|xyes) 8139 # Assume -lc should be added 8140 archive_cmds_need_lc=yes 8141 8142 if test "$enable_shared" = yes && test "$GCC" = yes; then 8143 case $archive_cmds in 8144 *'~'*) 8145 # FIXME: we may have to deal with multi-command sequences. 8146 ;; 8147 '$CC '*) 8148 # Test whether the compiler implicitly links with -lc since on some 8149 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8150 # to ld, don't add -lc before -lgcc. 8151 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 8152echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 8153 $rm conftest* 8154 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8155 8156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8157 (eval $ac_compile) 2>&5 8158 ac_status=$? 8159 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8160 (exit $ac_status); } 2>conftest.err; then 8161 soname=conftest 8162 lib=conftest 8163 libobjs=conftest.$ac_objext 8164 deplibs= 8165 wl=$lt_prog_compiler_wl 8166 compiler_flags=-v 8167 linker_flags=-v 8168 verstring= 8169 output_objdir=. 8170 libname=conftest 8171 lt_save_allow_undefined_flag=$allow_undefined_flag 8172 allow_undefined_flag= 8173 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 8174 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 8175 ac_status=$? 8176 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8177 (exit $ac_status); } 8178 then 8179 archive_cmds_need_lc=no 8180 else 8181 archive_cmds_need_lc=yes 8182 fi 8183 allow_undefined_flag=$lt_save_allow_undefined_flag 8184 else 8185 cat conftest.err 1>&5 8186 fi 8187 $rm conftest* 8188 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 8189echo "${ECHO_T}$archive_cmds_need_lc" >&6 8190 ;; 8191 esac 8192 fi 8193 ;; 8194esac 8195 8196echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 8197echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 8198library_names_spec= 8199libname_spec='lib$name' 8200soname_spec= 8201shrext_cmds=".so" 8202postinstall_cmds= 8203postuninstall_cmds= 8204finish_cmds= 8205finish_eval= 8206shlibpath_var= 8207shlibpath_overrides_runpath=unknown 8208version_type=none 8209dynamic_linker="$host_os ld.so" 8210sys_lib_dlsearch_path_spec="/lib /usr/lib" 8211if test "$GCC" = yes; then 8212 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8213 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 8214 # if the path contains ";" then we assume it to be the separator 8215 # otherwise default to the standard path separator (i.e. ":") - it is 8216 # assumed that no part of a normal pathname contains ";" but that should 8217 # okay in the real world where ";" in dirpaths is itself problematic. 8218 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8219 else 8220 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8221 fi 8222else 8223 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8224fi 8225need_lib_prefix=unknown 8226hardcode_into_libs=no 8227 8228# when you set need_version to no, make sure it does not cause -set_version 8229# flags to be left without arguments 8230need_version=unknown 8231 8232case $host_os in 8233aix3*) 8234 version_type=linux 8235 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 8236 shlibpath_var=LIBPATH 8237 8238 # AIX 3 has no versioning support, so we append a major version to the name. 8239 soname_spec='${libname}${release}${shared_ext}$major' 8240 ;; 8241 8242aix4* | aix5*) 8243 version_type=linux 8244 need_lib_prefix=no 8245 need_version=no 8246 hardcode_into_libs=yes 8247 if test "$host_cpu" = ia64; then 8248 # AIX 5 supports IA64 8249 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 8250 shlibpath_var=LD_LIBRARY_PATH 8251 else 8252 # With GCC up to 2.95.x, collect2 would create an import file 8253 # for dependence libraries. The import file would start with 8254 # the line `#! .'. This would cause the generated library to 8255 # depend on `.', always an invalid library. This was fixed in 8256 # development snapshots of GCC prior to 3.0. 8257 case $host_os in 8258 aix4 | aix4.[01] | aix4.[01].*) 8259 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 8260 echo ' yes ' 8261 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 8262 : 8263 else 8264 can_build_shared=no 8265 fi 8266 ;; 8267 esac 8268 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 8269 # soname into executable. Probably we can add versioning support to 8270 # collect2, so additional links can be useful in future. 8271 if test "$aix_use_runtimelinking" = yes; then 8272 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 8273 # instead of lib<name>.a to let people know that these are not 8274 # typical AIX shared libraries. 8275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8276 else 8277 # We preserve .a as extension for shared libraries through AIX4.2 8278 # and later when we are not doing run time linking. 8279 library_names_spec='${libname}${release}.a $libname.a' 8280 soname_spec='${libname}${release}${shared_ext}$major' 8281 fi 8282 shlibpath_var=LIBPATH 8283 fi 8284 ;; 8285 8286amigaos*) 8287 library_names_spec='$libname.ixlibrary $libname.a' 8288 # Create ${libname}_ixlibrary.a entries in /sys/libs. 8289 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' 8290 ;; 8291 8292beos*) 8293 library_names_spec='${libname}${shared_ext}' 8294 dynamic_linker="$host_os ld.so" 8295 shlibpath_var=LIBRARY_PATH 8296 ;; 8297 8298bsdi[45]*) 8299 version_type=linux 8300 need_version=no 8301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8302 soname_spec='${libname}${release}${shared_ext}$major' 8303 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 8304 shlibpath_var=LD_LIBRARY_PATH 8305 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 8306 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 8307 # the default ld.so.conf also contains /usr/contrib/lib and 8308 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 8309 # libtool to hard-code these into programs 8310 ;; 8311 8312cygwin* | mingw* | pw32*) 8313 version_type=windows 8314 shrext_cmds=".dll" 8315 need_version=no 8316 need_lib_prefix=no 8317 8318 case $GCC,$host_os in 8319 yes,cygwin* | yes,mingw* | yes,pw32*) 8320 library_names_spec='$libname.dll.a' 8321 # DLL is installed to $(libdir)/../bin by postinstall_cmds 8322 postinstall_cmds='base_file=`basename \${file}`~ 8323 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 8324 dldir=$destdir/`dirname \$dlpath`~ 8325 test -d \$dldir || mkdir -p \$dldir~ 8326 $install_prog $dir/$dlname \$dldir/$dlname' 8327 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 8328 dlpath=$dir/\$dldll~ 8329 $rm \$dlpath' 8330 shlibpath_overrides_runpath=yes 8331 8332 case $host_os in 8333 cygwin*) 8334 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 8335 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8336 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 8337 ;; 8338 mingw*) 8339 # MinGW DLLs use traditional 'lib' prefix 8340 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8341 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8342 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 8343 # It is most probably a Windows format PATH printed by 8344 # mingw gcc, but we are running on Cygwin. Gcc prints its search 8345 # path with ; separators, and with drive letters. We can handle the 8346 # drive letters (cygwin fileutils understands them), so leave them, 8347 # especially as we might pass files found there to a mingw objdump, 8348 # which wouldn't understand a cygwinified path. Ahh. 8349 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8350 else 8351 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8352 fi 8353 ;; 8354 pw32*) 8355 # pw32 DLLs use 'pw' prefix rather than 'lib' 8356 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 8357 ;; 8358 esac 8359 ;; 8360 8361 *) 8362 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 8363 ;; 8364 esac 8365 dynamic_linker='Win32 ld.exe' 8366 # FIXME: first we should search . and the directory the executable is in 8367 shlibpath_var=PATH 8368 ;; 8369 8370darwin* | rhapsody*) 8371 dynamic_linker="$host_os dyld" 8372 version_type=darwin 8373 need_lib_prefix=no 8374 need_version=no 8375 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 8376 soname_spec='${libname}${release}${major}$shared_ext' 8377 shlibpath_overrides_runpath=yes 8378 shlibpath_var=DYLD_LIBRARY_PATH 8379 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 8380 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 8381 if test "$GCC" = yes; then 8382 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"` 8383 else 8384 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 8385 fi 8386 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 8387 ;; 8388 8389dgux*) 8390 version_type=linux 8391 need_lib_prefix=no 8392 need_version=no 8393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 8394 soname_spec='${libname}${release}${shared_ext}$major' 8395 shlibpath_var=LD_LIBRARY_PATH 8396 ;; 8397 8398freebsd1*) 8399 dynamic_linker=no 8400 ;; 8401 8402kfreebsd*-gnu) 8403 version_type=linux 8404 need_lib_prefix=no 8405 need_version=no 8406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8407 soname_spec='${libname}${release}${shared_ext}$major' 8408 shlibpath_var=LD_LIBRARY_PATH 8409 shlibpath_overrides_runpath=no 8410 hardcode_into_libs=yes 8411 dynamic_linker='GNU ld.so' 8412 ;; 8413 8414freebsd*) 8415 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 8416 version_type=freebsd-$objformat 8417 case $version_type in 8418 freebsd-elf*) 8419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8420 need_version=no 8421 need_lib_prefix=no 8422 ;; 8423 freebsd-*) 8424 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 8425 need_version=yes 8426 ;; 8427 esac 8428 shlibpath_var=LD_LIBRARY_PATH 8429 case $host_os in 8430 freebsd2*) 8431 shlibpath_overrides_runpath=yes 8432 ;; 8433 freebsd3.01* | freebsdelf3.01*) 8434 shlibpath_overrides_runpath=yes 8435 hardcode_into_libs=yes 8436 ;; 8437 *) # from 3.2 on 8438 shlibpath_overrides_runpath=no 8439 hardcode_into_libs=yes 8440 ;; 8441 esac 8442 ;; 8443 8444gnu*) 8445 version_type=linux 8446 need_lib_prefix=no 8447 need_version=no 8448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 8449 soname_spec='${libname}${release}${shared_ext}$major' 8450 shlibpath_var=LD_LIBRARY_PATH 8451 hardcode_into_libs=yes 8452 ;; 8453 8454hpux9* | hpux10* | hpux11*) 8455 # Give a soname corresponding to the major version so that dld.sl refuses to 8456 # link against other versions. 8457 version_type=sunos 8458 need_lib_prefix=no 8459 need_version=no 8460 case "$host_cpu" in 8461 ia64*) 8462 shrext_cmds='.so' 8463 hardcode_into_libs=yes 8464 dynamic_linker="$host_os dld.so" 8465 shlibpath_var=LD_LIBRARY_PATH 8466 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8468 soname_spec='${libname}${release}${shared_ext}$major' 8469 if test "X$HPUX_IA64_MODE" = X32; then 8470 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 8471 else 8472 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 8473 fi 8474 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8475 ;; 8476 hppa*64*) 8477 shrext_cmds='.sl' 8478 hardcode_into_libs=yes 8479 dynamic_linker="$host_os dld.sl" 8480 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 8481 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8483 soname_spec='${libname}${release}${shared_ext}$major' 8484 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 8485 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8486 ;; 8487 *) 8488 shrext_cmds='.sl' 8489 dynamic_linker="$host_os dld.sl" 8490 shlibpath_var=SHLIB_PATH 8491 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 8492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8493 soname_spec='${libname}${release}${shared_ext}$major' 8494 ;; 8495 esac 8496 # HP-UX runs *really* slowly unless shared libraries are mode 555. 8497 postinstall_cmds='chmod 555 $lib' 8498 ;; 8499 8500irix5* | irix6* | nonstopux*) 8501 case $host_os in 8502 nonstopux*) version_type=nonstopux ;; 8503 *) 8504 if test "$lt_cv_prog_gnu_ld" = yes; then 8505 version_type=linux 8506 else 8507 version_type=irix 8508 fi ;; 8509 esac 8510 need_lib_prefix=no 8511 need_version=no 8512 soname_spec='${libname}${release}${shared_ext}$major' 8513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 8514 case $host_os in 8515 irix5* | nonstopux*) 8516 libsuff= shlibsuff= 8517 ;; 8518 *) 8519 case $LD in # libtool.m4 will add one of these switches to LD 8520 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 8521 libsuff= shlibsuff= libmagic=32-bit;; 8522 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 8523 libsuff=32 shlibsuff=N32 libmagic=N32;; 8524 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 8525 libsuff=64 shlibsuff=64 libmagic=64-bit;; 8526 *) libsuff= shlibsuff= libmagic=never-match;; 8527 esac 8528 ;; 8529 esac 8530 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 8531 shlibpath_overrides_runpath=no 8532 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 8533 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 8534 hardcode_into_libs=yes 8535 ;; 8536 8537# No shared lib support for Linux oldld, aout, or coff. 8538linux*oldld* | linux*aout* | linux*coff*) 8539 dynamic_linker=no 8540 ;; 8541 8542# This must be Linux ELF. 8543linux*) 8544 version_type=linux 8545 need_lib_prefix=no 8546 need_version=no 8547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8548 soname_spec='${libname}${release}${shared_ext}$major' 8549 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 8550 shlibpath_var=LD_LIBRARY_PATH 8551 shlibpath_overrides_runpath=no 8552 # This implies no fast_install, which is unacceptable. 8553 # Some rework will be needed to allow for fast_install 8554 # before this can be enabled. 8555 hardcode_into_libs=yes 8556 8557 # Append ld.so.conf contents to the search path 8558 if test -f /etc/ld.so.conf; then 8559 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` 8560 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 8561 fi 8562 8563 # We used to test for /lib/ld.so.1 and disable shared libraries on 8564 # powerpc, because MkLinux only supported shared libraries with the 8565 # GNU dynamic linker. Since this was broken with cross compilers, 8566 # most powerpc-linux boxes support dynamic linking these days and 8567 # people can always --disable-shared, the test was removed, and we 8568 # assume the GNU/Linux dynamic linker is in use. 8569 dynamic_linker='GNU/Linux ld.so' 8570 ;; 8571 8572knetbsd*-gnu) 8573 version_type=linux 8574 need_lib_prefix=no 8575 need_version=no 8576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8577 soname_spec='${libname}${release}${shared_ext}$major' 8578 shlibpath_var=LD_LIBRARY_PATH 8579 shlibpath_overrides_runpath=no 8580 hardcode_into_libs=yes 8581 dynamic_linker='GNU ld.so' 8582 ;; 8583 8584netbsd*) 8585 version_type=sunos 8586 need_lib_prefix=no 8587 need_version=no 8588 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8590 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8591 dynamic_linker='NetBSD (a.out) ld.so' 8592 else 8593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8594 soname_spec='${libname}${release}${shared_ext}$major' 8595 dynamic_linker='NetBSD ld.elf_so' 8596 fi 8597 shlibpath_var=LD_LIBRARY_PATH 8598 shlibpath_overrides_runpath=yes 8599 hardcode_into_libs=yes 8600 ;; 8601 8602newsos6) 8603 version_type=linux 8604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8605 shlibpath_var=LD_LIBRARY_PATH 8606 shlibpath_overrides_runpath=yes 8607 ;; 8608 8609nto-qnx*) 8610 version_type=linux 8611 need_lib_prefix=no 8612 need_version=no 8613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8614 soname_spec='${libname}${release}${shared_ext}$major' 8615 shlibpath_var=LD_LIBRARY_PATH 8616 shlibpath_overrides_runpath=yes 8617 ;; 8618 8619openbsd*) 8620 version_type=sunos 8621 need_lib_prefix=no 8622 need_version=no 8623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8624 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8625 shlibpath_var=LD_LIBRARY_PATH 8626 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8627 case $host_os in 8628 openbsd2.[89] | openbsd2.[89].*) 8629 shlibpath_overrides_runpath=no 8630 ;; 8631 *) 8632 shlibpath_overrides_runpath=yes 8633 ;; 8634 esac 8635 else 8636 shlibpath_overrides_runpath=yes 8637 fi 8638 ;; 8639 8640os2*) 8641 libname_spec='$name' 8642 shrext_cmds=".dll" 8643 need_lib_prefix=no 8644 library_names_spec='$libname${shared_ext} $libname.a' 8645 dynamic_linker='OS/2 ld.exe' 8646 shlibpath_var=LIBPATH 8647 ;; 8648 8649osf3* | osf4* | osf5*) 8650 version_type=osf 8651 need_lib_prefix=no 8652 need_version=no 8653 soname_spec='${libname}${release}${shared_ext}$major' 8654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8655 shlibpath_var=LD_LIBRARY_PATH 8656 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 8657 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 8658 ;; 8659 8660sco3.2v5*) 8661 version_type=osf 8662 soname_spec='${libname}${release}${shared_ext}$major' 8663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8664 shlibpath_var=LD_LIBRARY_PATH 8665 ;; 8666 8667solaris*) 8668 version_type=linux 8669 need_lib_prefix=no 8670 need_version=no 8671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8672 soname_spec='${libname}${release}${shared_ext}$major' 8673 shlibpath_var=LD_LIBRARY_PATH 8674 shlibpath_overrides_runpath=yes 8675 hardcode_into_libs=yes 8676 # ldd complains unless libraries are executable 8677 postinstall_cmds='chmod +x $lib' 8678 ;; 8679 8680sunos4*) 8681 version_type=sunos 8682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8683 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 8684 shlibpath_var=LD_LIBRARY_PATH 8685 shlibpath_overrides_runpath=yes 8686 if test "$with_gnu_ld" = yes; then 8687 need_lib_prefix=no 8688 fi 8689 need_version=yes 8690 ;; 8691 8692sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 8693 version_type=linux 8694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8695 soname_spec='${libname}${release}${shared_ext}$major' 8696 shlibpath_var=LD_LIBRARY_PATH 8697 case $host_vendor in 8698 sni) 8699 shlibpath_overrides_runpath=no 8700 need_lib_prefix=no 8701 export_dynamic_flag_spec='${wl}-Blargedynsym' 8702 runpath_var=LD_RUN_PATH 8703 ;; 8704 siemens) 8705 need_lib_prefix=no 8706 ;; 8707 motorola) 8708 need_lib_prefix=no 8709 need_version=no 8710 shlibpath_overrides_runpath=no 8711 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 8712 ;; 8713 esac 8714 ;; 8715 8716sysv4*MP*) 8717 if test -d /usr/nec ;then 8718 version_type=linux 8719 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 8720 soname_spec='$libname${shared_ext}.$major' 8721 shlibpath_var=LD_LIBRARY_PATH 8722 fi 8723 ;; 8724 8725uts4*) 8726 version_type=linux 8727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8728 soname_spec='${libname}${release}${shared_ext}$major' 8729 shlibpath_var=LD_LIBRARY_PATH 8730 ;; 8731 8732*) 8733 dynamic_linker=no 8734 ;; 8735esac 8736echo "$as_me:$LINENO: result: $dynamic_linker" >&5 8737echo "${ECHO_T}$dynamic_linker" >&6 8738test "$dynamic_linker" = no && can_build_shared=no 8739 8740echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 8741echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 8742hardcode_action= 8743if test -n "$hardcode_libdir_flag_spec" || \ 8744 test -n "$runpath_var" || \ 8745 test "X$hardcode_automatic" = "Xyes" ; then 8746 8747 # We can hardcode non-existant directories. 8748 if test "$hardcode_direct" != no && 8749 # If the only mechanism to avoid hardcoding is shlibpath_var, we 8750 # have to relink, otherwise we might link with an installed library 8751 # when we should be linking with a yet-to-be-installed one 8752 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 8753 test "$hardcode_minus_L" != no; then 8754 # Linking always hardcodes the temporary library directory. 8755 hardcode_action=relink 8756 else 8757 # We can link without hardcoding, and we can hardcode nonexisting dirs. 8758 hardcode_action=immediate 8759 fi 8760else 8761 # We cannot hardcode anything, or else we can only hardcode existing 8762 # directories. 8763 hardcode_action=unsupported 8764fi 8765echo "$as_me:$LINENO: result: $hardcode_action" >&5 8766echo "${ECHO_T}$hardcode_action" >&6 8767 8768if test "$hardcode_action" = relink; then 8769 # Fast installation is not supported 8770 enable_fast_install=no 8771elif test "$shlibpath_overrides_runpath" = yes || 8772 test "$enable_shared" = no; then 8773 # Fast installation is not necessary 8774 enable_fast_install=needless 8775fi 8776 8777striplib= 8778old_striplib= 8779echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 8780echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 8781if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 8782 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 8783 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 8784 echo "$as_me:$LINENO: result: yes" >&5 8785echo "${ECHO_T}yes" >&6 8786else 8787# FIXME - insert some real tests, host_os isn't really good enough 8788 case $host_os in 8789 darwin*) 8790 if test -n "$STRIP" ; then 8791 striplib="$STRIP -x" 8792 echo "$as_me:$LINENO: result: yes" >&5 8793echo "${ECHO_T}yes" >&6 8794 else 8795 echo "$as_me:$LINENO: result: no" >&5 8796echo "${ECHO_T}no" >&6 8797fi 8798 ;; 8799 *) 8800 echo "$as_me:$LINENO: result: no" >&5 8801echo "${ECHO_T}no" >&6 8802 ;; 8803 esac 8804fi 8805 8806if test "x$enable_dlopen" != xyes; then 8807 enable_dlopen=unknown 8808 enable_dlopen_self=unknown 8809 enable_dlopen_self_static=unknown 8810else 8811 lt_cv_dlopen=no 8812 lt_cv_dlopen_libs= 8813 8814 case $host_os in 8815 beos*) 8816 lt_cv_dlopen="load_add_on" 8817 lt_cv_dlopen_libs= 8818 lt_cv_dlopen_self=yes 8819 ;; 8820 8821 mingw* | pw32*) 8822 lt_cv_dlopen="LoadLibrary" 8823 lt_cv_dlopen_libs= 8824 ;; 8825 8826 cygwin*) 8827 lt_cv_dlopen="dlopen" 8828 lt_cv_dlopen_libs= 8829 ;; 8830 8831 darwin*) 8832 # if libdl is installed we need to link against it 8833 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 8834echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 8835if test "${ac_cv_lib_dl_dlopen+set}" = set; then 8836 echo $ECHO_N "(cached) $ECHO_C" >&6 8837else 8838 ac_check_lib_save_LIBS=$LIBS 8839LIBS="-ldl $LIBS" 8840cat >conftest.$ac_ext <<_ACEOF 8841/* confdefs.h. */ 8842_ACEOF 8843cat confdefs.h >>conftest.$ac_ext 8844cat >>conftest.$ac_ext <<_ACEOF 8845/* end confdefs.h. */ 8846 8847/* Override any gcc2 internal prototype to avoid an error. */ 8848#ifdef __cplusplus 8849extern "C" 8850#endif 8851/* We use char because int might match the return type of a gcc2 8852 builtin and then its argument prototype would still apply. */ 8853char dlopen (); 8854int 8855main () 8856{ 8857dlopen (); 8858 ; 8859 return 0; 8860} 8861_ACEOF 8862rm -f conftest.$ac_objext conftest$ac_exeext 8863if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8864 (eval $ac_link) 2>conftest.er1 8865 ac_status=$? 8866 grep -v '^ *+' conftest.er1 >conftest.err 8867 rm -f conftest.er1 8868 cat conftest.err >&5 8869 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8870 (exit $ac_status); } && 8871 { ac_try='test -z "$ac_c_werror_flag" 8872 || test ! -s conftest.err' 8873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8874 (eval $ac_try) 2>&5 8875 ac_status=$? 8876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8877 (exit $ac_status); }; } && 8878 { ac_try='test -s conftest$ac_exeext' 8879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8880 (eval $ac_try) 2>&5 8881 ac_status=$? 8882 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8883 (exit $ac_status); }; }; then 8884 ac_cv_lib_dl_dlopen=yes 8885else 8886 echo "$as_me: failed program was:" >&5 8887sed 's/^/| /' conftest.$ac_ext >&5 8888 8889ac_cv_lib_dl_dlopen=no 8890fi 8891rm -f conftest.err conftest.$ac_objext \ 8892 conftest$ac_exeext conftest.$ac_ext 8893LIBS=$ac_check_lib_save_LIBS 8894fi 8895echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 8896echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 8897if test $ac_cv_lib_dl_dlopen = yes; then 8898 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 8899else 8900 8901 lt_cv_dlopen="dyld" 8902 lt_cv_dlopen_libs= 8903 lt_cv_dlopen_self=yes 8904 8905fi 8906 8907 ;; 8908 8909 *) 8910 echo "$as_me:$LINENO: checking for shl_load" >&5 8911echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 8912if test "${ac_cv_func_shl_load+set}" = set; then 8913 echo $ECHO_N "(cached) $ECHO_C" >&6 8914else 8915 cat >conftest.$ac_ext <<_ACEOF 8916/* confdefs.h. */ 8917_ACEOF 8918cat confdefs.h >>conftest.$ac_ext 8919cat >>conftest.$ac_ext <<_ACEOF 8920/* end confdefs.h. */ 8921/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 8922 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8923#define shl_load innocuous_shl_load 8924 8925/* System header to define __stub macros and hopefully few prototypes, 8926 which can conflict with char shl_load (); below. 8927 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8928 <limits.h> exists even on freestanding compilers. */ 8929 8930#ifdef __STDC__ 8931# include <limits.h> 8932#else 8933# include <assert.h> 8934#endif 8935 8936#undef shl_load 8937 8938/* Override any gcc2 internal prototype to avoid an error. */ 8939#ifdef __cplusplus 8940extern "C" 8941{ 8942#endif 8943/* We use char because int might match the return type of a gcc2 8944 builtin and then its argument prototype would still apply. */ 8945char shl_load (); 8946/* The GNU C library defines this for functions which it implements 8947 to always fail with ENOSYS. Some functions are actually named 8948 something starting with __ and the normal name is an alias. */ 8949#if defined (__stub_shl_load) || defined (__stub___shl_load) 8950choke me 8951#else 8952char (*f) () = shl_load; 8953#endif 8954#ifdef __cplusplus 8955} 8956#endif 8957 8958int 8959main () 8960{ 8961return f != shl_load; 8962 ; 8963 return 0; 8964} 8965_ACEOF 8966rm -f conftest.$ac_objext conftest$ac_exeext 8967if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8968 (eval $ac_link) 2>conftest.er1 8969 ac_status=$? 8970 grep -v '^ *+' conftest.er1 >conftest.err 8971 rm -f conftest.er1 8972 cat conftest.err >&5 8973 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8974 (exit $ac_status); } && 8975 { ac_try='test -z "$ac_c_werror_flag" 8976 || test ! -s conftest.err' 8977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8978 (eval $ac_try) 2>&5 8979 ac_status=$? 8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8981 (exit $ac_status); }; } && 8982 { ac_try='test -s conftest$ac_exeext' 8983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8984 (eval $ac_try) 2>&5 8985 ac_status=$? 8986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8987 (exit $ac_status); }; }; then 8988 ac_cv_func_shl_load=yes 8989else 8990 echo "$as_me: failed program was:" >&5 8991sed 's/^/| /' conftest.$ac_ext >&5 8992 8993ac_cv_func_shl_load=no 8994fi 8995rm -f conftest.err conftest.$ac_objext \ 8996 conftest$ac_exeext conftest.$ac_ext 8997fi 8998echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 8999echo "${ECHO_T}$ac_cv_func_shl_load" >&6 9000if test $ac_cv_func_shl_load = yes; then 9001 lt_cv_dlopen="shl_load" 9002else 9003 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9004echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 9005if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9006 echo $ECHO_N "(cached) $ECHO_C" >&6 9007else 9008 ac_check_lib_save_LIBS=$LIBS 9009LIBS="-ldld $LIBS" 9010cat >conftest.$ac_ext <<_ACEOF 9011/* confdefs.h. */ 9012_ACEOF 9013cat confdefs.h >>conftest.$ac_ext 9014cat >>conftest.$ac_ext <<_ACEOF 9015/* end confdefs.h. */ 9016 9017/* Override any gcc2 internal prototype to avoid an error. */ 9018#ifdef __cplusplus 9019extern "C" 9020#endif 9021/* We use char because int might match the return type of a gcc2 9022 builtin and then its argument prototype would still apply. */ 9023char shl_load (); 9024int 9025main () 9026{ 9027shl_load (); 9028 ; 9029 return 0; 9030} 9031_ACEOF 9032rm -f conftest.$ac_objext conftest$ac_exeext 9033if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9034 (eval $ac_link) 2>conftest.er1 9035 ac_status=$? 9036 grep -v '^ *+' conftest.er1 >conftest.err 9037 rm -f conftest.er1 9038 cat conftest.err >&5 9039 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9040 (exit $ac_status); } && 9041 { ac_try='test -z "$ac_c_werror_flag" 9042 || test ! -s conftest.err' 9043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9044 (eval $ac_try) 2>&5 9045 ac_status=$? 9046 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9047 (exit $ac_status); }; } && 9048 { ac_try='test -s conftest$ac_exeext' 9049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9050 (eval $ac_try) 2>&5 9051 ac_status=$? 9052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9053 (exit $ac_status); }; }; then 9054 ac_cv_lib_dld_shl_load=yes 9055else 9056 echo "$as_me: failed program was:" >&5 9057sed 's/^/| /' conftest.$ac_ext >&5 9058 9059ac_cv_lib_dld_shl_load=no 9060fi 9061rm -f conftest.err conftest.$ac_objext \ 9062 conftest$ac_exeext conftest.$ac_ext 9063LIBS=$ac_check_lib_save_LIBS 9064fi 9065echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9066echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 9067if test $ac_cv_lib_dld_shl_load = yes; then 9068 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 9069else 9070 echo "$as_me:$LINENO: checking for dlopen" >&5 9071echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 9072if test "${ac_cv_func_dlopen+set}" = set; then 9073 echo $ECHO_N "(cached) $ECHO_C" >&6 9074else 9075 cat >conftest.$ac_ext <<_ACEOF 9076/* confdefs.h. */ 9077_ACEOF 9078cat confdefs.h >>conftest.$ac_ext 9079cat >>conftest.$ac_ext <<_ACEOF 9080/* end confdefs.h. */ 9081/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 9082 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9083#define dlopen innocuous_dlopen 9084 9085/* System header to define __stub macros and hopefully few prototypes, 9086 which can conflict with char dlopen (); below. 9087 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9088 <limits.h> exists even on freestanding compilers. */ 9089 9090#ifdef __STDC__ 9091# include <limits.h> 9092#else 9093# include <assert.h> 9094#endif 9095 9096#undef dlopen 9097 9098/* Override any gcc2 internal prototype to avoid an error. */ 9099#ifdef __cplusplus 9100extern "C" 9101{ 9102#endif 9103/* We use char because int might match the return type of a gcc2 9104 builtin and then its argument prototype would still apply. */ 9105char dlopen (); 9106/* The GNU C library defines this for functions which it implements 9107 to always fail with ENOSYS. Some functions are actually named 9108 something starting with __ and the normal name is an alias. */ 9109#if defined (__stub_dlopen) || defined (__stub___dlopen) 9110choke me 9111#else 9112char (*f) () = dlopen; 9113#endif 9114#ifdef __cplusplus 9115} 9116#endif 9117 9118int 9119main () 9120{ 9121return f != dlopen; 9122 ; 9123 return 0; 9124} 9125_ACEOF 9126rm -f conftest.$ac_objext conftest$ac_exeext 9127if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9128 (eval $ac_link) 2>conftest.er1 9129 ac_status=$? 9130 grep -v '^ *+' conftest.er1 >conftest.err 9131 rm -f conftest.er1 9132 cat conftest.err >&5 9133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9134 (exit $ac_status); } && 9135 { ac_try='test -z "$ac_c_werror_flag" 9136 || test ! -s conftest.err' 9137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9138 (eval $ac_try) 2>&5 9139 ac_status=$? 9140 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9141 (exit $ac_status); }; } && 9142 { ac_try='test -s conftest$ac_exeext' 9143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9144 (eval $ac_try) 2>&5 9145 ac_status=$? 9146 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9147 (exit $ac_status); }; }; then 9148 ac_cv_func_dlopen=yes 9149else 9150 echo "$as_me: failed program was:" >&5 9151sed 's/^/| /' conftest.$ac_ext >&5 9152 9153ac_cv_func_dlopen=no 9154fi 9155rm -f conftest.err conftest.$ac_objext \ 9156 conftest$ac_exeext conftest.$ac_ext 9157fi 9158echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 9159echo "${ECHO_T}$ac_cv_func_dlopen" >&6 9160if test $ac_cv_func_dlopen = yes; then 9161 lt_cv_dlopen="dlopen" 9162else 9163 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9164echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 9165if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9166 echo $ECHO_N "(cached) $ECHO_C" >&6 9167else 9168 ac_check_lib_save_LIBS=$LIBS 9169LIBS="-ldl $LIBS" 9170cat >conftest.$ac_ext <<_ACEOF 9171/* confdefs.h. */ 9172_ACEOF 9173cat confdefs.h >>conftest.$ac_ext 9174cat >>conftest.$ac_ext <<_ACEOF 9175/* end confdefs.h. */ 9176 9177/* Override any gcc2 internal prototype to avoid an error. */ 9178#ifdef __cplusplus 9179extern "C" 9180#endif 9181/* We use char because int might match the return type of a gcc2 9182 builtin and then its argument prototype would still apply. */ 9183char dlopen (); 9184int 9185main () 9186{ 9187dlopen (); 9188 ; 9189 return 0; 9190} 9191_ACEOF 9192rm -f conftest.$ac_objext conftest$ac_exeext 9193if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9194 (eval $ac_link) 2>conftest.er1 9195 ac_status=$? 9196 grep -v '^ *+' conftest.er1 >conftest.err 9197 rm -f conftest.er1 9198 cat conftest.err >&5 9199 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9200 (exit $ac_status); } && 9201 { ac_try='test -z "$ac_c_werror_flag" 9202 || test ! -s conftest.err' 9203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9204 (eval $ac_try) 2>&5 9205 ac_status=$? 9206 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9207 (exit $ac_status); }; } && 9208 { ac_try='test -s conftest$ac_exeext' 9209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9210 (eval $ac_try) 2>&5 9211 ac_status=$? 9212 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9213 (exit $ac_status); }; }; then 9214 ac_cv_lib_dl_dlopen=yes 9215else 9216 echo "$as_me: failed program was:" >&5 9217sed 's/^/| /' conftest.$ac_ext >&5 9218 9219ac_cv_lib_dl_dlopen=no 9220fi 9221rm -f conftest.err conftest.$ac_objext \ 9222 conftest$ac_exeext conftest.$ac_ext 9223LIBS=$ac_check_lib_save_LIBS 9224fi 9225echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9226echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 9227if test $ac_cv_lib_dl_dlopen = yes; then 9228 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9229else 9230 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 9231echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 9232if test "${ac_cv_lib_svld_dlopen+set}" = set; then 9233 echo $ECHO_N "(cached) $ECHO_C" >&6 9234else 9235 ac_check_lib_save_LIBS=$LIBS 9236LIBS="-lsvld $LIBS" 9237cat >conftest.$ac_ext <<_ACEOF 9238/* confdefs.h. */ 9239_ACEOF 9240cat confdefs.h >>conftest.$ac_ext 9241cat >>conftest.$ac_ext <<_ACEOF 9242/* end confdefs.h. */ 9243 9244/* Override any gcc2 internal prototype to avoid an error. */ 9245#ifdef __cplusplus 9246extern "C" 9247#endif 9248/* We use char because int might match the return type of a gcc2 9249 builtin and then its argument prototype would still apply. */ 9250char dlopen (); 9251int 9252main () 9253{ 9254dlopen (); 9255 ; 9256 return 0; 9257} 9258_ACEOF 9259rm -f conftest.$ac_objext conftest$ac_exeext 9260if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9261 (eval $ac_link) 2>conftest.er1 9262 ac_status=$? 9263 grep -v '^ *+' conftest.er1 >conftest.err 9264 rm -f conftest.er1 9265 cat conftest.err >&5 9266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9267 (exit $ac_status); } && 9268 { ac_try='test -z "$ac_c_werror_flag" 9269 || test ! -s conftest.err' 9270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9271 (eval $ac_try) 2>&5 9272 ac_status=$? 9273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9274 (exit $ac_status); }; } && 9275 { ac_try='test -s conftest$ac_exeext' 9276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9277 (eval $ac_try) 2>&5 9278 ac_status=$? 9279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9280 (exit $ac_status); }; }; then 9281 ac_cv_lib_svld_dlopen=yes 9282else 9283 echo "$as_me: failed program was:" >&5 9284sed 's/^/| /' conftest.$ac_ext >&5 9285 9286ac_cv_lib_svld_dlopen=no 9287fi 9288rm -f conftest.err conftest.$ac_objext \ 9289 conftest$ac_exeext conftest.$ac_ext 9290LIBS=$ac_check_lib_save_LIBS 9291fi 9292echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 9293echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 9294if test $ac_cv_lib_svld_dlopen = yes; then 9295 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 9296else 9297 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 9298echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 9299if test "${ac_cv_lib_dld_dld_link+set}" = set; then 9300 echo $ECHO_N "(cached) $ECHO_C" >&6 9301else 9302 ac_check_lib_save_LIBS=$LIBS 9303LIBS="-ldld $LIBS" 9304cat >conftest.$ac_ext <<_ACEOF 9305/* confdefs.h. */ 9306_ACEOF 9307cat confdefs.h >>conftest.$ac_ext 9308cat >>conftest.$ac_ext <<_ACEOF 9309/* end confdefs.h. */ 9310 9311/* Override any gcc2 internal prototype to avoid an error. */ 9312#ifdef __cplusplus 9313extern "C" 9314#endif 9315/* We use char because int might match the return type of a gcc2 9316 builtin and then its argument prototype would still apply. */ 9317char dld_link (); 9318int 9319main () 9320{ 9321dld_link (); 9322 ; 9323 return 0; 9324} 9325_ACEOF 9326rm -f conftest.$ac_objext conftest$ac_exeext 9327if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9328 (eval $ac_link) 2>conftest.er1 9329 ac_status=$? 9330 grep -v '^ *+' conftest.er1 >conftest.err 9331 rm -f conftest.er1 9332 cat conftest.err >&5 9333 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9334 (exit $ac_status); } && 9335 { ac_try='test -z "$ac_c_werror_flag" 9336 || test ! -s conftest.err' 9337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9338 (eval $ac_try) 2>&5 9339 ac_status=$? 9340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9341 (exit $ac_status); }; } && 9342 { ac_try='test -s conftest$ac_exeext' 9343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9344 (eval $ac_try) 2>&5 9345 ac_status=$? 9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9347 (exit $ac_status); }; }; then 9348 ac_cv_lib_dld_dld_link=yes 9349else 9350 echo "$as_me: failed program was:" >&5 9351sed 's/^/| /' conftest.$ac_ext >&5 9352 9353ac_cv_lib_dld_dld_link=no 9354fi 9355rm -f conftest.err conftest.$ac_objext \ 9356 conftest$ac_exeext conftest.$ac_ext 9357LIBS=$ac_check_lib_save_LIBS 9358fi 9359echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 9360echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 9361if test $ac_cv_lib_dld_dld_link = yes; then 9362 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 9363fi 9364 9365 9366fi 9367 9368 9369fi 9370 9371 9372fi 9373 9374 9375fi 9376 9377 9378fi 9379 9380 ;; 9381 esac 9382 9383 if test "x$lt_cv_dlopen" != xno; then 9384 enable_dlopen=yes 9385 else 9386 enable_dlopen=no 9387 fi 9388 9389 case $lt_cv_dlopen in 9390 dlopen) 9391 save_CPPFLAGS="$CPPFLAGS" 9392 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 9393 9394 save_LDFLAGS="$LDFLAGS" 9395 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 9396 9397 save_LIBS="$LIBS" 9398 LIBS="$lt_cv_dlopen_libs $LIBS" 9399 9400 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 9401echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 9402if test "${lt_cv_dlopen_self+set}" = set; then 9403 echo $ECHO_N "(cached) $ECHO_C" >&6 9404else 9405 if test "$cross_compiling" = yes; then : 9406 lt_cv_dlopen_self=cross 9407else 9408 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9409 lt_status=$lt_dlunknown 9410 cat > conftest.$ac_ext <<EOF 9411#line 9411 "configure" 9412#include "confdefs.h" 9413 9414#if HAVE_DLFCN_H 9415#include <dlfcn.h> 9416#endif 9417 9418#include <stdio.h> 9419 9420#ifdef RTLD_GLOBAL 9421# define LT_DLGLOBAL RTLD_GLOBAL 9422#else 9423# ifdef DL_GLOBAL 9424# define LT_DLGLOBAL DL_GLOBAL 9425# else 9426# define LT_DLGLOBAL 0 9427# endif 9428#endif 9429 9430/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9431 find out it does not work in some platform. */ 9432#ifndef LT_DLLAZY_OR_NOW 9433# ifdef RTLD_LAZY 9434# define LT_DLLAZY_OR_NOW RTLD_LAZY 9435# else 9436# ifdef DL_LAZY 9437# define LT_DLLAZY_OR_NOW DL_LAZY 9438# else 9439# ifdef RTLD_NOW 9440# define LT_DLLAZY_OR_NOW RTLD_NOW 9441# else 9442# ifdef DL_NOW 9443# define LT_DLLAZY_OR_NOW DL_NOW 9444# else 9445# define LT_DLLAZY_OR_NOW 0 9446# endif 9447# endif 9448# endif 9449# endif 9450#endif 9451 9452#ifdef __cplusplus 9453extern "C" void exit (int); 9454#endif 9455 9456void fnord() { int i=42;} 9457int main () 9458{ 9459 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9460 int status = $lt_dlunknown; 9461 9462 if (self) 9463 { 9464 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9465 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9466 /* dlclose (self); */ 9467 } 9468 9469 exit (status); 9470} 9471EOF 9472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9473 (eval $ac_link) 2>&5 9474 ac_status=$? 9475 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9476 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9477 (./conftest; exit; ) 2>/dev/null 9478 lt_status=$? 9479 case x$lt_status in 9480 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 9481 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 9482 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 9483 esac 9484 else : 9485 # compilation failed 9486 lt_cv_dlopen_self=no 9487 fi 9488fi 9489rm -fr conftest* 9490 9491 9492fi 9493echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 9494echo "${ECHO_T}$lt_cv_dlopen_self" >&6 9495 9496 if test "x$lt_cv_dlopen_self" = xyes; then 9497 LDFLAGS="$LDFLAGS $link_static_flag" 9498 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 9499echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 9500if test "${lt_cv_dlopen_self_static+set}" = set; then 9501 echo $ECHO_N "(cached) $ECHO_C" >&6 9502else 9503 if test "$cross_compiling" = yes; then : 9504 lt_cv_dlopen_self_static=cross 9505else 9506 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9507 lt_status=$lt_dlunknown 9508 cat > conftest.$ac_ext <<EOF 9509#line 9509 "configure" 9510#include "confdefs.h" 9511 9512#if HAVE_DLFCN_H 9513#include <dlfcn.h> 9514#endif 9515 9516#include <stdio.h> 9517 9518#ifdef RTLD_GLOBAL 9519# define LT_DLGLOBAL RTLD_GLOBAL 9520#else 9521# ifdef DL_GLOBAL 9522# define LT_DLGLOBAL DL_GLOBAL 9523# else 9524# define LT_DLGLOBAL 0 9525# endif 9526#endif 9527 9528/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9529 find out it does not work in some platform. */ 9530#ifndef LT_DLLAZY_OR_NOW 9531# ifdef RTLD_LAZY 9532# define LT_DLLAZY_OR_NOW RTLD_LAZY 9533# else 9534# ifdef DL_LAZY 9535# define LT_DLLAZY_OR_NOW DL_LAZY 9536# else 9537# ifdef RTLD_NOW 9538# define LT_DLLAZY_OR_NOW RTLD_NOW 9539# else 9540# ifdef DL_NOW 9541# define LT_DLLAZY_OR_NOW DL_NOW 9542# else 9543# define LT_DLLAZY_OR_NOW 0 9544# endif 9545# endif 9546# endif 9547# endif 9548#endif 9549 9550#ifdef __cplusplus 9551extern "C" void exit (int); 9552#endif 9553 9554void fnord() { int i=42;} 9555int main () 9556{ 9557 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9558 int status = $lt_dlunknown; 9559 9560 if (self) 9561 { 9562 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9563 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9564 /* dlclose (self); */ 9565 } 9566 9567 exit (status); 9568} 9569EOF 9570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9571 (eval $ac_link) 2>&5 9572 ac_status=$? 9573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9574 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9575 (./conftest; exit; ) 2>/dev/null 9576 lt_status=$? 9577 case x$lt_status in 9578 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 9579 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 9580 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 9581 esac 9582 else : 9583 # compilation failed 9584 lt_cv_dlopen_self_static=no 9585 fi 9586fi 9587rm -fr conftest* 9588 9589 9590fi 9591echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 9592echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 9593 fi 9594 9595 CPPFLAGS="$save_CPPFLAGS" 9596 LDFLAGS="$save_LDFLAGS" 9597 LIBS="$save_LIBS" 9598 ;; 9599 esac 9600 9601 case $lt_cv_dlopen_self in 9602 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 9603 *) enable_dlopen_self=unknown ;; 9604 esac 9605 9606 case $lt_cv_dlopen_self_static in 9607 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 9608 *) enable_dlopen_self_static=unknown ;; 9609 esac 9610fi 9611 9612 9613# Report which librarie types wil actually be built 9614echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 9615echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 9616echo "$as_me:$LINENO: result: $can_build_shared" >&5 9617echo "${ECHO_T}$can_build_shared" >&6 9618 9619echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 9620echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 9621test "$can_build_shared" = "no" && enable_shared=no 9622 9623# On AIX, shared libraries and static libraries use the same namespace, and 9624# are all built from PIC. 9625case "$host_os" in 9626aix3*) 9627 test "$enable_shared" = yes && enable_static=no 9628 if test -n "$RANLIB"; then 9629 archive_cmds="$archive_cmds~\$RANLIB \$lib" 9630 postinstall_cmds='$RANLIB $lib' 9631 fi 9632 ;; 9633 9634aix4* | aix5*) 9635 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 9636 test "$enable_shared" = yes && enable_static=no 9637 fi 9638 ;; 9639esac 9640echo "$as_me:$LINENO: result: $enable_shared" >&5 9641echo "${ECHO_T}$enable_shared" >&6 9642 9643echo "$as_me:$LINENO: checking whether to build static libraries" >&5 9644echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 9645# Make sure either enable_shared or enable_static is yes. 9646test "$enable_shared" = yes || enable_static=yes 9647echo "$as_me:$LINENO: result: $enable_static" >&5 9648echo "${ECHO_T}$enable_static" >&6 9649 9650# The else clause should only fire when bootstrapping the 9651# libtool distribution, otherwise you forgot to ship ltmain.sh 9652# with your package, and you will get complaints that there are 9653# no rules to generate ltmain.sh. 9654if test -f "$ltmain"; then 9655 # See if we are running on zsh, and set the options which allow our commands through 9656 # without removal of \ escapes. 9657 if test -n "${ZSH_VERSION+set}" ; then 9658 setopt NO_GLOB_SUBST 9659 fi 9660 # Now quote all the things that may contain metacharacters while being 9661 # careful not to overquote the AC_SUBSTed values. We take copies of the 9662 # variables and quote the copies for generation of the libtool script. 9663 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 9664 SED SHELL STRIP \ 9665 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 9666 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 9667 deplibs_check_method reload_flag reload_cmds need_locks \ 9668 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 9669 lt_cv_sys_global_symbol_to_c_name_address \ 9670 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 9671 old_postinstall_cmds old_postuninstall_cmds \ 9672 compiler \ 9673 CC \ 9674 LD \ 9675 lt_prog_compiler_wl \ 9676 lt_prog_compiler_pic \ 9677 lt_prog_compiler_static \ 9678 lt_prog_compiler_no_builtin_flag \ 9679 export_dynamic_flag_spec \ 9680 thread_safe_flag_spec \ 9681 whole_archive_flag_spec \ 9682 enable_shared_with_static_runtimes \ 9683 old_archive_cmds \ 9684 old_archive_from_new_cmds \ 9685 predep_objects \ 9686 postdep_objects \ 9687 predeps \ 9688 postdeps \ 9689 compiler_lib_search_path \ 9690 archive_cmds \ 9691 archive_expsym_cmds \ 9692 postinstall_cmds \ 9693 postuninstall_cmds \ 9694 old_archive_from_expsyms_cmds \ 9695 allow_undefined_flag \ 9696 no_undefined_flag \ 9697 export_symbols_cmds \ 9698 hardcode_libdir_flag_spec \ 9699 hardcode_libdir_flag_spec_ld \ 9700 hardcode_libdir_separator \ 9701 hardcode_automatic \ 9702 module_cmds \ 9703 module_expsym_cmds \ 9704 lt_cv_prog_compiler_c_o \ 9705 exclude_expsyms \ 9706 include_expsyms; do 9707 9708 case $var in 9709 old_archive_cmds | \ 9710 old_archive_from_new_cmds | \ 9711 archive_cmds | \ 9712 archive_expsym_cmds | \ 9713 module_cmds | \ 9714 module_expsym_cmds | \ 9715 old_archive_from_expsyms_cmds | \ 9716 export_symbols_cmds | \ 9717 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 9718 postinstall_cmds | postuninstall_cmds | \ 9719 old_postinstall_cmds | old_postuninstall_cmds | \ 9720 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 9721 # Double-quote double-evaled strings. 9722 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 9723 ;; 9724 *) 9725 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 9726 ;; 9727 esac 9728 done 9729 9730 case $lt_echo in 9731 *'\$0 --fallback-echo"') 9732 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 9733 ;; 9734 esac 9735 9736cfgfile="${ofile}T" 9737 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 9738 $rm -f "$cfgfile" 9739 { echo "$as_me:$LINENO: creating $ofile" >&5 9740echo "$as_me: creating $ofile" >&6;} 9741 9742 cat <<__EOF__ >> "$cfgfile" 9743#! $SHELL 9744 9745# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 9746# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 9747# NOTE: Changes made to this file will be lost: look at ltmain.sh. 9748# 9749# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 9750# Free Software Foundation, Inc. 9751# 9752# This file is part of GNU Libtool: 9753# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 9754# 9755# This program is free software; you can redistribute it and/or modify 9756# it under the terms of the GNU General Public License as published by 9757# the Free Software Foundation; either version 2 of the License, or 9758# (at your option) any later version. 9759# 9760# This program is distributed in the hope that it will be useful, but 9761# WITHOUT ANY WARRANTY; without even the implied warranty of 9762# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 9763# General Public License for more details. 9764# 9765# You should have received a copy of the GNU General Public License 9766# along with this program; if not, write to the Free Software 9767# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 9768# 9769# As a special exception to the GNU General Public License, if you 9770# distribute this file as part of a program that contains a 9771# configuration script generated by Autoconf, you may include it under 9772# the same distribution terms that you use for the rest of that program. 9773 9774# A sed program that does not truncate output. 9775SED=$lt_SED 9776 9777# Sed that helps us avoid accidentally triggering echo(1) options like -n. 9778Xsed="$SED -e s/^X//" 9779 9780# The HP-UX ksh and POSIX shell print the target directory to stdout 9781# if CDPATH is set. 9782(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 9783 9784# The names of the tagged configurations supported by this script. 9785available_tags= 9786 9787# ### BEGIN LIBTOOL CONFIG 9788 9789# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 9790 9791# Shell to use when invoking shell scripts. 9792SHELL=$lt_SHELL 9793 9794# Whether or not to build shared libraries. 9795build_libtool_libs=$enable_shared 9796 9797# Whether or not to build static libraries. 9798build_old_libs=$enable_static 9799 9800# Whether or not to add -lc for building shared libraries. 9801build_libtool_need_lc=$archive_cmds_need_lc 9802 9803# Whether or not to disallow shared libs when runtime libs are static 9804allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 9805 9806# Whether or not to optimize for fast installation. 9807fast_install=$enable_fast_install 9808 9809# The host system. 9810host_alias=$host_alias 9811host=$host 9812 9813# An echo program that does not interpret backslashes. 9814echo=$lt_echo 9815 9816# The archiver. 9817AR=$lt_AR 9818AR_FLAGS=$lt_AR_FLAGS 9819 9820# A C compiler. 9821LTCC=$lt_LTCC 9822 9823# A language-specific compiler. 9824CC=$lt_compiler 9825 9826# Is the compiler the GNU C compiler? 9827with_gcc=$GCC 9828 9829# An ERE matcher. 9830EGREP=$lt_EGREP 9831 9832# The linker used to build libraries. 9833LD=$lt_LD 9834 9835# Whether we need hard or soft links. 9836LN_S=$lt_LN_S 9837 9838# A BSD-compatible nm program. 9839NM=$lt_NM 9840 9841# A symbol stripping program 9842STRIP=$lt_STRIP 9843 9844# Used to examine libraries when file_magic_cmd begins "file" 9845MAGIC_CMD=$MAGIC_CMD 9846 9847# Used on cygwin: DLL creation program. 9848DLLTOOL="$DLLTOOL" 9849 9850# Used on cygwin: object dumper. 9851OBJDUMP="$OBJDUMP" 9852 9853# Used on cygwin: assembler. 9854AS="$AS" 9855 9856# The name of the directory that contains temporary libtool files. 9857objdir=$objdir 9858 9859# How to create reloadable object files. 9860reload_flag=$lt_reload_flag 9861reload_cmds=$lt_reload_cmds 9862 9863# How to pass a linker flag through the compiler. 9864wl=$lt_lt_prog_compiler_wl 9865 9866# Object file suffix (normally "o"). 9867objext="$ac_objext" 9868 9869# Old archive suffix (normally "a"). 9870libext="$libext" 9871 9872# Shared library suffix (normally ".so"). 9873shrext_cmds='$shrext_cmds' 9874 9875# Executable file suffix (normally ""). 9876exeext="$exeext" 9877 9878# Additional compiler flags for building library objects. 9879pic_flag=$lt_lt_prog_compiler_pic 9880pic_mode=$pic_mode 9881 9882# What is the maximum length of a command? 9883max_cmd_len=$lt_cv_sys_max_cmd_len 9884 9885# Does compiler simultaneously support -c and -o options? 9886compiler_c_o=$lt_lt_cv_prog_compiler_c_o 9887 9888# Must we lock files when doing compilation ? 9889need_locks=$lt_need_locks 9890 9891# Do we need the lib prefix for modules? 9892need_lib_prefix=$need_lib_prefix 9893 9894# Do we need a version for libraries? 9895need_version=$need_version 9896 9897# Whether dlopen is supported. 9898dlopen_support=$enable_dlopen 9899 9900# Whether dlopen of programs is supported. 9901dlopen_self=$enable_dlopen_self 9902 9903# Whether dlopen of statically linked programs is supported. 9904dlopen_self_static=$enable_dlopen_self_static 9905 9906# Compiler flag to prevent dynamic linking. 9907link_static_flag=$lt_lt_prog_compiler_static 9908 9909# Compiler flag to turn off builtin functions. 9910no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 9911 9912# Compiler flag to allow reflexive dlopens. 9913export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 9914 9915# Compiler flag to generate shared objects directly from archives. 9916whole_archive_flag_spec=$lt_whole_archive_flag_spec 9917 9918# Compiler flag to generate thread-safe objects. 9919thread_safe_flag_spec=$lt_thread_safe_flag_spec 9920 9921# Library versioning type. 9922version_type=$version_type 9923 9924# Format of library name prefix. 9925libname_spec=$lt_libname_spec 9926 9927# List of archive names. First name is the real one, the rest are links. 9928# The last name is the one that the linker finds with -lNAME. 9929library_names_spec=$lt_library_names_spec 9930 9931# The coded name of the library, if different from the real name. 9932soname_spec=$lt_soname_spec 9933 9934# Commands used to build and install an old-style archive. 9935RANLIB=$lt_RANLIB 9936old_archive_cmds=$lt_old_archive_cmds 9937old_postinstall_cmds=$lt_old_postinstall_cmds 9938old_postuninstall_cmds=$lt_old_postuninstall_cmds 9939 9940# Create an old-style archive from a shared archive. 9941old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 9942 9943# Create a temporary old-style archive to link instead of a shared archive. 9944old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 9945 9946# Commands used to build and install a shared archive. 9947archive_cmds=$lt_archive_cmds 9948archive_expsym_cmds=$lt_archive_expsym_cmds 9949postinstall_cmds=$lt_postinstall_cmds 9950postuninstall_cmds=$lt_postuninstall_cmds 9951 9952# Commands used to build a loadable module (assumed same as above if empty) 9953module_cmds=$lt_module_cmds 9954module_expsym_cmds=$lt_module_expsym_cmds 9955 9956# Commands to strip libraries. 9957old_striplib=$lt_old_striplib 9958striplib=$lt_striplib 9959 9960# Dependencies to place before the objects being linked to create a 9961# shared library. 9962predep_objects=$lt_predep_objects 9963 9964# Dependencies to place after the objects being linked to create a 9965# shared library. 9966postdep_objects=$lt_postdep_objects 9967 9968# Dependencies to place before the objects being linked to create a 9969# shared library. 9970predeps=$lt_predeps 9971 9972# Dependencies to place after the objects being linked to create a 9973# shared library. 9974postdeps=$lt_postdeps 9975 9976# The library search path used internally by the compiler when linking 9977# a shared library. 9978compiler_lib_search_path=$lt_compiler_lib_search_path 9979 9980# Method to check whether dependent libraries are shared objects. 9981deplibs_check_method=$lt_deplibs_check_method 9982 9983# Command to use when deplibs_check_method == file_magic. 9984file_magic_cmd=$lt_file_magic_cmd 9985 9986# Flag that allows shared libraries with undefined symbols to be built. 9987allow_undefined_flag=$lt_allow_undefined_flag 9988 9989# Flag that forces no undefined symbols. 9990no_undefined_flag=$lt_no_undefined_flag 9991 9992# Commands used to finish a libtool library installation in a directory. 9993finish_cmds=$lt_finish_cmds 9994 9995# Same as above, but a single script fragment to be evaled but not shown. 9996finish_eval=$lt_finish_eval 9997 9998# Take the output of nm and produce a listing of raw symbols and C names. 9999global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 10000 10001# Transform the output of nm in a proper C declaration 10002global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 10003 10004# Transform the output of nm in a C name address pair 10005global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 10006 10007# This is the shared library runtime path variable. 10008runpath_var=$runpath_var 10009 10010# This is the shared library path variable. 10011shlibpath_var=$shlibpath_var 10012 10013# Is shlibpath searched before the hard-coded library search path? 10014shlibpath_overrides_runpath=$shlibpath_overrides_runpath 10015 10016# How to hardcode a shared library path into an executable. 10017hardcode_action=$hardcode_action 10018 10019# Whether we should hardcode library paths into libraries. 10020hardcode_into_libs=$hardcode_into_libs 10021 10022# Flag to hardcode \$libdir into a binary during linking. 10023# This must work even if \$libdir does not exist. 10024hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 10025 10026# If ld is used when linking, flag to hardcode \$libdir into 10027# a binary during linking. This must work even if \$libdir does 10028# not exist. 10029hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 10030 10031# Whether we need a single -rpath flag with a separated argument. 10032hardcode_libdir_separator=$lt_hardcode_libdir_separator 10033 10034# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 10035# resulting binary. 10036hardcode_direct=$hardcode_direct 10037 10038# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 10039# resulting binary. 10040hardcode_minus_L=$hardcode_minus_L 10041 10042# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 10043# the resulting binary. 10044hardcode_shlibpath_var=$hardcode_shlibpath_var 10045 10046# Set to yes if building a shared library automatically hardcodes DIR into the library 10047# and all subsequent libraries and executables linked against it. 10048hardcode_automatic=$hardcode_automatic 10049 10050# Variables whose values should be saved in libtool wrapper scripts and 10051# restored at relink time. 10052variables_saved_for_relink="$variables_saved_for_relink" 10053 10054# Whether libtool must link a program against all its dependency libraries. 10055link_all_deplibs=$link_all_deplibs 10056 10057# Compile-time system search path for libraries 10058sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 10059 10060# Run-time system search path for libraries 10061sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 10062 10063# Fix the shell variable \$srcfile for the compiler. 10064fix_srcfile_path="$fix_srcfile_path" 10065 10066# Set to yes if exported symbols are required. 10067always_export_symbols=$always_export_symbols 10068 10069# The commands to list exported symbols. 10070export_symbols_cmds=$lt_export_symbols_cmds 10071 10072# The commands to extract the exported symbol list from a shared archive. 10073extract_expsyms_cmds=$lt_extract_expsyms_cmds 10074 10075# Symbols that should not be listed in the preloaded symbols. 10076exclude_expsyms=$lt_exclude_expsyms 10077 10078# Symbols that must always be exported. 10079include_expsyms=$lt_include_expsyms 10080 10081# ### END LIBTOOL CONFIG 10082 10083__EOF__ 10084 10085 10086 case $host_os in 10087 aix3*) 10088 cat <<\EOF >> "$cfgfile" 10089 10090# AIX sometimes has problems with the GCC collect2 program. For some 10091# reason, if we set the COLLECT_NAMES environment variable, the problems 10092# vanish in a puff of smoke. 10093if test "X${COLLECT_NAMES+set}" != Xset; then 10094 COLLECT_NAMES= 10095 export COLLECT_NAMES 10096fi 10097EOF 10098 ;; 10099 esac 10100 10101 # We use sed instead of cat because bash on DJGPP gets confused if 10102 # if finds mixed CR/LF and LF-only lines. Since sed operates in 10103 # text mode, it properly converts lines to CR/LF. This bash problem 10104 # is reportedly fixed, but why not run on old versions too? 10105 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 10106 10107 mv -f "$cfgfile" "$ofile" || \ 10108 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 10109 chmod +x "$ofile" 10110 10111else 10112 # If there is no Makefile yet, we rely on a make rule to execute 10113 # `config.status --recheck' to rerun these tests and create the 10114 # libtool script then. 10115 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 10116 if test -f "$ltmain_in"; then 10117 test -f Makefile && make "$ltmain" 10118 fi 10119fi 10120 10121 10122ac_ext=c 10123ac_cpp='$CPP $CPPFLAGS' 10124ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10125ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10126ac_compiler_gnu=$ac_cv_c_compiler_gnu 10127 10128CC="$lt_save_CC" 10129 10130 10131# Check whether --with-tags or --without-tags was given. 10132if test "${with_tags+set}" = set; then 10133 withval="$with_tags" 10134 tagnames="$withval" 10135fi; 10136 10137if test -f "$ltmain" && test -n "$tagnames"; then 10138 if test ! -f "${ofile}"; then 10139 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 10140echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 10141 fi 10142 10143 if test -z "$LTCC"; then 10144 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 10145 if test -z "$LTCC"; then 10146 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 10147echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 10148 else 10149 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 10150echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 10151 fi 10152 fi 10153 10154 # Extract list of available tagged configurations in $ofile. 10155 # Note that this assumes the entire list is on one line. 10156 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 10157 10158 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10159 for tagname in $tagnames; do 10160 IFS="$lt_save_ifs" 10161 # Check whether tagname contains only valid characters 10162 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 10163 "") ;; 10164 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 10165echo "$as_me: error: invalid tag name: $tagname" >&2;} 10166 { (exit 1); exit 1; }; } 10167 ;; 10168 esac 10169 10170 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 10171 then 10172 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 10173echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 10174 { (exit 1); exit 1; }; } 10175 fi 10176 10177 # Update the list of available tags. 10178 if test -n "$tagname"; then 10179 echo appending configuration tag "$tagname" to $ofile 10180 10181 case $tagname in 10182 CXX) 10183 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 10184 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 10185 (test "X$CXX" != "Xg++"))) ; then 10186 ac_ext=cc 10187ac_cpp='$CXXCPP $CPPFLAGS' 10188ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10189ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10190ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10191 10192 10193 10194 10195archive_cmds_need_lc_CXX=no 10196allow_undefined_flag_CXX= 10197always_export_symbols_CXX=no 10198archive_expsym_cmds_CXX= 10199export_dynamic_flag_spec_CXX= 10200hardcode_direct_CXX=no 10201hardcode_libdir_flag_spec_CXX= 10202hardcode_libdir_flag_spec_ld_CXX= 10203hardcode_libdir_separator_CXX= 10204hardcode_minus_L_CXX=no 10205hardcode_automatic_CXX=no 10206module_cmds_CXX= 10207module_expsym_cmds_CXX= 10208link_all_deplibs_CXX=unknown 10209old_archive_cmds_CXX=$old_archive_cmds 10210no_undefined_flag_CXX= 10211whole_archive_flag_spec_CXX= 10212enable_shared_with_static_runtimes_CXX=no 10213 10214# Dependencies to place before and after the object being linked: 10215predep_objects_CXX= 10216postdep_objects_CXX= 10217predeps_CXX= 10218postdeps_CXX= 10219compiler_lib_search_path_CXX= 10220 10221# Source file extension for C++ test sources. 10222ac_ext=cc 10223 10224# Object file extension for compiled C++ test sources. 10225objext=o 10226objext_CXX=$objext 10227 10228# Code to be used in simple compile tests 10229lt_simple_compile_test_code="int some_variable = 0;\n" 10230 10231# Code to be used in simple link tests 10232lt_simple_link_test_code='int main(int, char *) { return(0); }\n' 10233 10234# ltmain only uses $CC for tagged configurations so make sure $CC is set. 10235 10236# If no C compiler was specified, use CC. 10237LTCC=${LTCC-"$CC"} 10238 10239# Allow CC to be a program name with arguments. 10240compiler=$CC 10241 10242 10243# Allow CC to be a program name with arguments. 10244lt_save_CC=$CC 10245lt_save_LD=$LD 10246lt_save_GCC=$GCC 10247GCC=$GXX 10248lt_save_with_gnu_ld=$with_gnu_ld 10249lt_save_path_LD=$lt_cv_path_LD 10250if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 10251 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 10252else 10253 unset lt_cv_prog_gnu_ld 10254fi 10255if test -n "${lt_cv_path_LDCXX+set}"; then 10256 lt_cv_path_LD=$lt_cv_path_LDCXX 10257else 10258 unset lt_cv_path_LD 10259fi 10260test -z "${LDCXX+set}" || LD=$LDCXX 10261CC=${CXX-"c++"} 10262compiler=$CC 10263compiler_CXX=$CC 10264cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` 10265 10266# We don't want -fno-exception wen compiling C++ code, so set the 10267# no_builtin_flag separately 10268if test "$GXX" = yes; then 10269 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 10270else 10271 lt_prog_compiler_no_builtin_flag_CXX= 10272fi 10273 10274if test "$GXX" = yes; then 10275 # Set up default GNU C++ configuration 10276 10277 10278# Check whether --with-gnu-ld or --without-gnu-ld was given. 10279if test "${with_gnu_ld+set}" = set; then 10280 withval="$with_gnu_ld" 10281 test "$withval" = no || with_gnu_ld=yes 10282else 10283 with_gnu_ld=no 10284fi; 10285ac_prog=ld 10286if test "$GCC" = yes; then 10287 # Check if gcc -print-prog-name=ld gives a path. 10288 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 10289echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 10290 case $host in 10291 *-*-mingw*) 10292 # gcc leaves a trailing carriage return which upsets mingw 10293 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 10294 *) 10295 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 10296 esac 10297 case $ac_prog in 10298 # Accept absolute paths. 10299 [\\/]* | ?:[\\/]*) 10300 re_direlt='/[^/][^/]*/\.\./' 10301 # Canonicalize the pathname of ld 10302 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 10303 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 10304 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 10305 done 10306 test -z "$LD" && LD="$ac_prog" 10307 ;; 10308 "") 10309 # If it fails, then pretend we aren't using GCC. 10310 ac_prog=ld 10311 ;; 10312 *) 10313 # If it is relative, then search for the first ld in PATH. 10314 with_gnu_ld=unknown 10315 ;; 10316 esac 10317elif test "$with_gnu_ld" = yes; then 10318 echo "$as_me:$LINENO: checking for GNU ld" >&5 10319echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 10320else 10321 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 10322echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 10323fi 10324if test "${lt_cv_path_LD+set}" = set; then 10325 echo $ECHO_N "(cached) $ECHO_C" >&6 10326else 10327 if test -z "$LD"; then 10328 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10329 for ac_dir in $PATH; do 10330 IFS="$lt_save_ifs" 10331 test -z "$ac_dir" && ac_dir=. 10332 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 10333 lt_cv_path_LD="$ac_dir/$ac_prog" 10334 # Check to see if the program is GNU ld. I'd rather use --version, 10335 # but apparently some GNU ld's only accept -v. 10336 # Break only if it was the GNU/non-GNU ld that we prefer. 10337 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 10338 *GNU* | *'with BFD'*) 10339 test "$with_gnu_ld" != no && break 10340 ;; 10341 *) 10342 test "$with_gnu_ld" != yes && break 10343 ;; 10344 esac 10345 fi 10346 done 10347 IFS="$lt_save_ifs" 10348else 10349 lt_cv_path_LD="$LD" # Let the user override the test with a path. 10350fi 10351fi 10352 10353LD="$lt_cv_path_LD" 10354if test -n "$LD"; then 10355 echo "$as_me:$LINENO: result: $LD" >&5 10356echo "${ECHO_T}$LD" >&6 10357else 10358 echo "$as_me:$LINENO: result: no" >&5 10359echo "${ECHO_T}no" >&6 10360fi 10361test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 10362echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 10363 { (exit 1); exit 1; }; } 10364echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 10365echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 10366if test "${lt_cv_prog_gnu_ld+set}" = set; then 10367 echo $ECHO_N "(cached) $ECHO_C" >&6 10368else 10369 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 10370case `$LD -v 2>&1 </dev/null` in 10371*GNU* | *'with BFD'*) 10372 lt_cv_prog_gnu_ld=yes 10373 ;; 10374*) 10375 lt_cv_prog_gnu_ld=no 10376 ;; 10377esac 10378fi 10379echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 10380echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 10381with_gnu_ld=$lt_cv_prog_gnu_ld 10382 10383 10384 10385 # Check if GNU C++ uses GNU ld as the underlying linker, since the 10386 # archiving commands below assume that GNU ld is being used. 10387 if test "$with_gnu_ld" = yes; then 10388 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10389 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' 10390 10391 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 10392 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10393 10394 # If archive_cmds runs LD, not CC, wlarc should be empty 10395 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 10396 # investigate it a little bit more. (MM) 10397 wlarc='${wl}' 10398 10399 # ancient GNU ld didn't support --whole-archive et. al. 10400 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 10401 grep 'no-whole-archive' > /dev/null; then 10402 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10403 else 10404 whole_archive_flag_spec_CXX= 10405 fi 10406 else 10407 with_gnu_ld=no 10408 wlarc= 10409 10410 # A generic and very simple default shared library creation 10411 # command for GNU C++ for the case where it uses the native 10412 # linker, instead of GNU ld. If possible, this setting should 10413 # overridden to take advantage of the native linker features on 10414 # the platform it is being used on. 10415 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10416 fi 10417 10418 # Commands to make compiler produce verbose output that lists 10419 # what "hidden" libraries, object files and flags are used when 10420 # linking a shared library. 10421 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10422 10423else 10424 GXX=no 10425 with_gnu_ld=no 10426 wlarc= 10427fi 10428 10429# PORTME: fill in a description of your system's C++ link characteristics 10430echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10431echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 10432ld_shlibs_CXX=yes 10433case $host_os in 10434 aix3*) 10435 # FIXME: insert proper C++ library support 10436 ld_shlibs_CXX=no 10437 ;; 10438 aix4* | aix5*) 10439 if test "$host_cpu" = ia64; then 10440 # On IA64, the linker does run time linking by default, so we don't 10441 # have to do anything special. 10442 aix_use_runtimelinking=no 10443 exp_sym_flag='-Bexport' 10444 no_entry_flag="" 10445 else 10446 aix_use_runtimelinking=no 10447 10448 # Test if we are trying to use run time linking or normal 10449 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10450 # need to do runtime linking. 10451 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 10452 for ld_flag in $LDFLAGS; do 10453 case $ld_flag in 10454 *-brtl*) 10455 aix_use_runtimelinking=yes 10456 break 10457 ;; 10458 esac 10459 done 10460 esac 10461 10462 exp_sym_flag='-bexport' 10463 no_entry_flag='-bnoentry' 10464 fi 10465 10466 # When large executables or shared objects are built, AIX ld can 10467 # have problems creating the table of contents. If linking a library 10468 # or program results in "error TOC overflow" add -mminimal-toc to 10469 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10470 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10471 10472 archive_cmds_CXX='' 10473 hardcode_direct_CXX=yes 10474 hardcode_libdir_separator_CXX=':' 10475 link_all_deplibs_CXX=yes 10476 10477 if test "$GXX" = yes; then 10478 case $host_os in aix4.012|aix4.012.*) 10479 # We only want to do this on AIX 4.2 and lower, the check 10480 # below for broken collect2 doesn't work under 4.3+ 10481 collect2name=`${CC} -print-prog-name=collect2` 10482 if test -f "$collect2name" && \ 10483 strings "$collect2name" | grep resolve_lib_name >/dev/null 10484 then 10485 # We have reworked collect2 10486 hardcode_direct_CXX=yes 10487 else 10488 # We have old collect2 10489 hardcode_direct_CXX=unsupported 10490 # It fails to find uninstalled libraries when the uninstalled 10491 # path is not listed in the libpath. Setting hardcode_minus_L 10492 # to unsupported forces relinking 10493 hardcode_minus_L_CXX=yes 10494 hardcode_libdir_flag_spec_CXX='-L$libdir' 10495 hardcode_libdir_separator_CXX= 10496 fi 10497 esac 10498 shared_flag='-shared' 10499 else 10500 # not using gcc 10501 if test "$host_cpu" = ia64; then 10502 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10503 # chokes on -Wl,-G. The following line is correct: 10504 shared_flag='-G' 10505 else 10506 if test "$aix_use_runtimelinking" = yes; then 10507 shared_flag='${wl}-G' 10508 else 10509 shared_flag='${wl}-bM:SRE' 10510 fi 10511 fi 10512 fi 10513 10514 # It seems that -bexpall does not export symbols beginning with 10515 # underscore (_), so it is better to generate a list of symbols to export. 10516 always_export_symbols_CXX=yes 10517 if test "$aix_use_runtimelinking" = yes; then 10518 # Warning - without using the other runtime loading flags (-brtl), 10519 # -berok will link without error, but may produce a broken library. 10520 allow_undefined_flag_CXX='-berok' 10521 # Determine the default libpath from the value encoded in an empty executable. 10522 cat >conftest.$ac_ext <<_ACEOF 10523/* confdefs.h. */ 10524_ACEOF 10525cat confdefs.h >>conftest.$ac_ext 10526cat >>conftest.$ac_ext <<_ACEOF 10527/* end confdefs.h. */ 10528 10529int 10530main () 10531{ 10532 10533 ; 10534 return 0; 10535} 10536_ACEOF 10537rm -f conftest.$ac_objext conftest$ac_exeext 10538if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10539 (eval $ac_link) 2>conftest.er1 10540 ac_status=$? 10541 grep -v '^ *+' conftest.er1 >conftest.err 10542 rm -f conftest.er1 10543 cat conftest.err >&5 10544 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10545 (exit $ac_status); } && 10546 { ac_try='test -z "$ac_cxx_werror_flag" 10547 || test ! -s conftest.err' 10548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10549 (eval $ac_try) 2>&5 10550 ac_status=$? 10551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10552 (exit $ac_status); }; } && 10553 { ac_try='test -s conftest$ac_exeext' 10554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10555 (eval $ac_try) 2>&5 10556 ac_status=$? 10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10558 (exit $ac_status); }; }; then 10559 10560aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10561}'` 10562# Check for a 64-bit object if we didn't find anything. 10563if 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; } 10564}'`; fi 10565else 10566 echo "$as_me: failed program was:" >&5 10567sed 's/^/| /' conftest.$ac_ext >&5 10568 10569fi 10570rm -f conftest.err conftest.$ac_objext \ 10571 conftest$ac_exeext conftest.$ac_ext 10572if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10573 10574 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10575 10576 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" 10577 else 10578 if test "$host_cpu" = ia64; then 10579 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 10580 allow_undefined_flag_CXX="-z nodefs" 10581 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" 10582 else 10583 # Determine the default libpath from the value encoded in an empty executable. 10584 cat >conftest.$ac_ext <<_ACEOF 10585/* confdefs.h. */ 10586_ACEOF 10587cat confdefs.h >>conftest.$ac_ext 10588cat >>conftest.$ac_ext <<_ACEOF 10589/* end confdefs.h. */ 10590 10591int 10592main () 10593{ 10594 10595 ; 10596 return 0; 10597} 10598_ACEOF 10599rm -f conftest.$ac_objext conftest$ac_exeext 10600if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10601 (eval $ac_link) 2>conftest.er1 10602 ac_status=$? 10603 grep -v '^ *+' conftest.er1 >conftest.err 10604 rm -f conftest.er1 10605 cat conftest.err >&5 10606 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10607 (exit $ac_status); } && 10608 { ac_try='test -z "$ac_cxx_werror_flag" 10609 || test ! -s conftest.err' 10610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10611 (eval $ac_try) 2>&5 10612 ac_status=$? 10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10614 (exit $ac_status); }; } && 10615 { ac_try='test -s conftest$ac_exeext' 10616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10617 (eval $ac_try) 2>&5 10618 ac_status=$? 10619 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10620 (exit $ac_status); }; }; then 10621 10622aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10623}'` 10624# Check for a 64-bit object if we didn't find anything. 10625if 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; } 10626}'`; fi 10627else 10628 echo "$as_me: failed program was:" >&5 10629sed 's/^/| /' conftest.$ac_ext >&5 10630 10631fi 10632rm -f conftest.err conftest.$ac_objext \ 10633 conftest$ac_exeext conftest.$ac_ext 10634if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10635 10636 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10637 # Warning - without using the other run time loading flags, 10638 # -berok will link without error, but may produce a broken library. 10639 no_undefined_flag_CXX=' ${wl}-bernotok' 10640 allow_undefined_flag_CXX=' ${wl}-berok' 10641 # -bexpall does not export symbols beginning with underscore (_) 10642 always_export_symbols_CXX=yes 10643 # Exported symbols can be pulled into shared objects from archives 10644 whole_archive_flag_spec_CXX=' ' 10645 archive_cmds_need_lc_CXX=yes 10646 # This is similar to how AIX traditionally builds it's shared libraries. 10647 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' 10648 fi 10649 fi 10650 ;; 10651 chorus*) 10652 case $cc_basename in 10653 *) 10654 # FIXME: insert proper C++ library support 10655 ld_shlibs_CXX=no 10656 ;; 10657 esac 10658 ;; 10659 10660 10661 cygwin* | mingw* | pw32*) 10662 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 10663 # as there is no search path for DLLs. 10664 hardcode_libdir_flag_spec_CXX='-L$libdir' 10665 allow_undefined_flag_CXX=unsupported 10666 always_export_symbols_CXX=no 10667 enable_shared_with_static_runtimes_CXX=yes 10668 10669 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 10670 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' 10671 # If the export-symbols file already is a .def file (1st line 10672 # is EXPORTS), use it as is; otherwise, prepend... 10673 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10674 cp $export_symbols $output_objdir/$soname.def; 10675 else 10676 echo EXPORTS > $output_objdir/$soname.def; 10677 cat $export_symbols >> $output_objdir/$soname.def; 10678 fi~ 10679 $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' 10680 else 10681 ld_shlibs_CXX=no 10682 fi 10683 ;; 10684 darwin* | rhapsody*) 10685 case "$host_os" in 10686 rhapsody* | darwin1.[012]) 10687 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 10688 ;; 10689 *) # Darwin 1.3 on 10690 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 10691 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 10692 else 10693 case ${MACOSX_DEPLOYMENT_TARGET} in 10694 10.[012]) 10695 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 10696 ;; 10697 10.*) 10698 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 10699 ;; 10700 esac 10701 fi 10702 ;; 10703 esac 10704 archive_cmds_need_lc_CXX=no 10705 hardcode_direct_CXX=no 10706 hardcode_automatic_CXX=yes 10707 hardcode_shlibpath_var_CXX=unsupported 10708 whole_archive_flag_spec_CXX='' 10709 link_all_deplibs_CXX=yes 10710 10711 if test "$GXX" = yes ; then 10712 lt_int_apple_cc_single_mod=no 10713 output_verbose_link_cmd='echo' 10714 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 10715 lt_int_apple_cc_single_mod=yes 10716 fi 10717 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 10718 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 10719 else 10720 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 10721 fi 10722 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 10723 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 10724 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 10725 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}' 10726 else 10727 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 10728 fi 10729 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}' 10730 else 10731 case "$cc_basename" in 10732 xlc*) 10733 output_verbose_link_cmd='echo' 10734 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 10735 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 10736 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 10737 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 10738 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}' 10739 ;; 10740 *) 10741 ld_shlibs_CXX=no 10742 ;; 10743 esac 10744 fi 10745 ;; 10746 10747 dgux*) 10748 case $cc_basename in 10749 ec++) 10750 # FIXME: insert proper C++ library support 10751 ld_shlibs_CXX=no 10752 ;; 10753 ghcx) 10754 # Green Hills C++ Compiler 10755 # FIXME: insert proper C++ library support 10756 ld_shlibs_CXX=no 10757 ;; 10758 *) 10759 # FIXME: insert proper C++ library support 10760 ld_shlibs_CXX=no 10761 ;; 10762 esac 10763 ;; 10764 freebsd12*) 10765 # C++ shared libraries reported to be fairly broken before switch to ELF 10766 ld_shlibs_CXX=no 10767 ;; 10768 freebsd-elf*) 10769 archive_cmds_need_lc_CXX=no 10770 ;; 10771 freebsd* | kfreebsd*-gnu) 10772 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 10773 # conventions 10774 ld_shlibs_CXX=yes 10775 ;; 10776 gnu*) 10777 ;; 10778 hpux9*) 10779 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10780 hardcode_libdir_separator_CXX=: 10781 export_dynamic_flag_spec_CXX='${wl}-E' 10782 hardcode_direct_CXX=yes 10783 hardcode_minus_L_CXX=yes # Not in the search PATH, 10784 # but as the default 10785 # location of the library. 10786 10787 case $cc_basename in 10788 CC) 10789 # FIXME: insert proper C++ library support 10790 ld_shlibs_CXX=no 10791 ;; 10792 aCC) 10793 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' 10794 # Commands to make compiler produce verbose output that lists 10795 # what "hidden" libraries, object files and flags are used when 10796 # linking a shared library. 10797 # 10798 # There doesn't appear to be a way to prevent this compiler from 10799 # explicitly linking system object files so we need to strip them 10800 # from the output so that they don't get included in the library 10801 # dependencies. 10802 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' 10803 ;; 10804 *) 10805 if test "$GXX" = yes; then 10806 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' 10807 else 10808 # FIXME: insert proper C++ library support 10809 ld_shlibs_CXX=no 10810 fi 10811 ;; 10812 esac 10813 ;; 10814 hpux10*|hpux11*) 10815 if test $with_gnu_ld = no; then 10816 case "$host_cpu" in 10817 hppa*64*) 10818 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10819 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 10820 hardcode_libdir_separator_CXX=: 10821 ;; 10822 ia64*) 10823 hardcode_libdir_flag_spec_CXX='-L$libdir' 10824 ;; 10825 *) 10826 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10827 hardcode_libdir_separator_CXX=: 10828 export_dynamic_flag_spec_CXX='${wl}-E' 10829 ;; 10830 esac 10831 fi 10832 case "$host_cpu" in 10833 hppa*64*) 10834 hardcode_direct_CXX=no 10835 hardcode_shlibpath_var_CXX=no 10836 ;; 10837 ia64*) 10838 hardcode_direct_CXX=no 10839 hardcode_shlibpath_var_CXX=no 10840 hardcode_minus_L_CXX=yes # Not in the search PATH, 10841 # but as the default 10842 # location of the library. 10843 ;; 10844 *) 10845 hardcode_direct_CXX=yes 10846 hardcode_minus_L_CXX=yes # Not in the search PATH, 10847 # but as the default 10848 # location of the library. 10849 ;; 10850 esac 10851 10852 case $cc_basename in 10853 CC) 10854 # FIXME: insert proper C++ library support 10855 ld_shlibs_CXX=no 10856 ;; 10857 aCC) 10858 case "$host_cpu" in 10859 hppa*64*|ia64*) 10860 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 10861 ;; 10862 *) 10863 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10864 ;; 10865 esac 10866 # Commands to make compiler produce verbose output that lists 10867 # what "hidden" libraries, object files and flags are used when 10868 # linking a shared library. 10869 # 10870 # There doesn't appear to be a way to prevent this compiler from 10871 # explicitly linking system object files so we need to strip them 10872 # from the output so that they don't get included in the library 10873 # dependencies. 10874 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' 10875 ;; 10876 *) 10877 if test "$GXX" = yes; then 10878 if test $with_gnu_ld = no; then 10879 case "$host_cpu" in 10880 ia64*|hppa*64*) 10881 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 10882 ;; 10883 *) 10884 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' 10885 ;; 10886 esac 10887 fi 10888 else 10889 # FIXME: insert proper C++ library support 10890 ld_shlibs_CXX=no 10891 fi 10892 ;; 10893 esac 10894 ;; 10895 irix5* | irix6*) 10896 case $cc_basename in 10897 CC) 10898 # SGI C++ 10899 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' 10900 10901 # Archives containing C++ object files must be created using 10902 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 10903 # necessary to make sure instantiated templates are included 10904 # in the archive. 10905 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 10906 ;; 10907 *) 10908 if test "$GXX" = yes; then 10909 if test "$with_gnu_ld" = no; then 10910 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' 10911 else 10912 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' 10913 fi 10914 fi 10915 link_all_deplibs_CXX=yes 10916 ;; 10917 esac 10918 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10919 hardcode_libdir_separator_CXX=: 10920 ;; 10921 linux*) 10922 case $cc_basename in 10923 KCC) 10924 # Kuck and Associates, Inc. (KAI) C++ Compiler 10925 10926 # KCC will only create a shared library if the output file 10927 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10928 # to its proper name (with version) after linking. 10929 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' 10930 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' 10931 # Commands to make compiler produce verbose output that lists 10932 # what "hidden" libraries, object files and flags are used when 10933 # linking a shared library. 10934 # 10935 # There doesn't appear to be a way to prevent this compiler from 10936 # explicitly linking system object files so we need to strip them 10937 # from the output so that they don't get included in the library 10938 # dependencies. 10939 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' 10940 10941 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 10942 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10943 10944 # Archives containing C++ object files must be created using 10945 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 10946 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 10947 ;; 10948 icpc) 10949 # Intel C++ 10950 with_gnu_ld=yes 10951 # version 8.0 and above of icpc choke on multiply defined symbols 10952 # if we add $predep_objects and $postdep_objects, however 7.1 and 10953 # earlier do not add the objects themselves. 10954 case `$CC -V 2>&1` in 10955 *"Version 7."*) 10956 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10957 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' 10958 ;; 10959 *) # Version 8.0 or newer 10960 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10961 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10962 ;; 10963 esac 10964 archive_cmds_need_lc_CXX=no 10965 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10966 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10967 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 10968 ;; 10969 cxx) 10970 # Compaq C++ 10971 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10972 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' 10973 10974 runpath_var=LD_RUN_PATH 10975 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 10976 hardcode_libdir_separator_CXX=: 10977 10978 # Commands to make compiler produce verbose output that lists 10979 # what "hidden" libraries, object files and flags are used when 10980 # linking a shared library. 10981 # 10982 # There doesn't appear to be a way to prevent this compiler from 10983 # explicitly linking system object files so we need to strip them 10984 # from the output so that they don't get included in the library 10985 # dependencies. 10986 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' 10987 ;; 10988 esac 10989 ;; 10990 lynxos*) 10991 # FIXME: insert proper C++ library support 10992 ld_shlibs_CXX=no 10993 ;; 10994 m88k*) 10995 # FIXME: insert proper C++ library support 10996 ld_shlibs_CXX=no 10997 ;; 10998 mvs*) 10999 case $cc_basename in 11000 cxx) 11001 # FIXME: insert proper C++ library support 11002 ld_shlibs_CXX=no 11003 ;; 11004 *) 11005 # FIXME: insert proper C++ library support 11006 ld_shlibs_CXX=no 11007 ;; 11008 esac 11009 ;; 11010 netbsd*) 11011 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11012 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 11013 wlarc= 11014 hardcode_libdir_flag_spec_CXX='-R$libdir' 11015 hardcode_direct_CXX=yes 11016 hardcode_shlibpath_var_CXX=no 11017 fi 11018 # Workaround some broken pre-1.5 toolchains 11019 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 11020 ;; 11021 openbsd2*) 11022 # C++ shared libraries are fairly broken 11023 ld_shlibs_CXX=no 11024 ;; 11025 openbsd*) 11026 hardcode_direct_CXX=yes 11027 hardcode_shlibpath_var_CXX=no 11028 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11029 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11030 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11031 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 11032 export_dynamic_flag_spec_CXX='${wl}-E' 11033 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11034 fi 11035 output_verbose_link_cmd='echo' 11036 ;; 11037 osf3*) 11038 case $cc_basename in 11039 KCC) 11040 # Kuck and Associates, Inc. (KAI) C++ Compiler 11041 11042 # KCC will only create a shared library if the output file 11043 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11044 # to its proper name (with version) after linking. 11045 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' 11046 11047 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11048 hardcode_libdir_separator_CXX=: 11049 11050 # Archives containing C++ object files must be created using 11051 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11052 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11053 11054 ;; 11055 RCC) 11056 # Rational C++ 2.4.1 11057 # FIXME: insert proper C++ library support 11058 ld_shlibs_CXX=no 11059 ;; 11060 cxx) 11061 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11062 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' 11063 11064 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11065 hardcode_libdir_separator_CXX=: 11066 11067 # Commands to make compiler produce verbose output that lists 11068 # what "hidden" libraries, object files and flags are used when 11069 # linking a shared library. 11070 # 11071 # There doesn't appear to be a way to prevent this compiler from 11072 # explicitly linking system object files so we need to strip them 11073 # from the output so that they don't get included in the library 11074 # dependencies. 11075 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' 11076 ;; 11077 *) 11078 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11079 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11080 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' 11081 11082 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11083 hardcode_libdir_separator_CXX=: 11084 11085 # Commands to make compiler produce verbose output that lists 11086 # what "hidden" libraries, object files and flags are used when 11087 # linking a shared library. 11088 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11089 11090 else 11091 # FIXME: insert proper C++ library support 11092 ld_shlibs_CXX=no 11093 fi 11094 ;; 11095 esac 11096 ;; 11097 osf4* | osf5*) 11098 case $cc_basename in 11099 KCC) 11100 # Kuck and Associates, Inc. (KAI) C++ Compiler 11101 11102 # KCC will only create a shared library if the output file 11103 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11104 # to its proper name (with version) after linking. 11105 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' 11106 11107 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11108 hardcode_libdir_separator_CXX=: 11109 11110 # Archives containing C++ object files must be created using 11111 # the KAI C++ compiler. 11112 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 11113 ;; 11114 RCC) 11115 # Rational C++ 2.4.1 11116 # FIXME: insert proper C++ library support 11117 ld_shlibs_CXX=no 11118 ;; 11119 cxx) 11120 allow_undefined_flag_CXX=' -expect_unresolved \*' 11121 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' 11122 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 11123 echo "-hidden">> $lib.exp~ 11124 $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~ 11125 $rm $lib.exp' 11126 11127 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11128 hardcode_libdir_separator_CXX=: 11129 11130 # Commands to make compiler produce verbose output that lists 11131 # what "hidden" libraries, object files and flags are used when 11132 # linking a shared library. 11133 # 11134 # There doesn't appear to be a way to prevent this compiler from 11135 # explicitly linking system object files so we need to strip them 11136 # from the output so that they don't get included in the library 11137 # dependencies. 11138 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' 11139 ;; 11140 *) 11141 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11142 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11143 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' 11144 11145 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11146 hardcode_libdir_separator_CXX=: 11147 11148 # Commands to make compiler produce verbose output that lists 11149 # what "hidden" libraries, object files and flags are used when 11150 # linking a shared library. 11151 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11152 11153 else 11154 # FIXME: insert proper C++ library support 11155 ld_shlibs_CXX=no 11156 fi 11157 ;; 11158 esac 11159 ;; 11160 psos*) 11161 # FIXME: insert proper C++ library support 11162 ld_shlibs_CXX=no 11163 ;; 11164 sco*) 11165 archive_cmds_need_lc_CXX=no 11166 case $cc_basename in 11167 CC) 11168 # FIXME: insert proper C++ library support 11169 ld_shlibs_CXX=no 11170 ;; 11171 *) 11172 # FIXME: insert proper C++ library support 11173 ld_shlibs_CXX=no 11174 ;; 11175 esac 11176 ;; 11177 sunos4*) 11178 case $cc_basename in 11179 CC) 11180 # Sun C++ 4.x 11181 # FIXME: insert proper C++ library support 11182 ld_shlibs_CXX=no 11183 ;; 11184 lcc) 11185 # Lucid 11186 # FIXME: insert proper C++ library support 11187 ld_shlibs_CXX=no 11188 ;; 11189 *) 11190 # FIXME: insert proper C++ library support 11191 ld_shlibs_CXX=no 11192 ;; 11193 esac 11194 ;; 11195 solaris*) 11196 case $cc_basename in 11197 CC) 11198 # Sun C++ 4.2, 5.x and Centerline C++ 11199 no_undefined_flag_CXX=' -zdefs' 11200 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11201 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11202 $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' 11203 11204 hardcode_libdir_flag_spec_CXX='-R$libdir' 11205 hardcode_shlibpath_var_CXX=no 11206 case $host_os in 11207 solaris2.0-5 | solaris2.0-5.*) ;; 11208 *) 11209 # The C++ compiler is used as linker so we must use $wl 11210 # flag to pass the commands to the underlying system 11211 # linker. 11212 # Supported since Solaris 2.6 (maybe 2.5.1?) 11213 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 11214 ;; 11215 esac 11216 link_all_deplibs_CXX=yes 11217 11218 # Commands to make compiler produce verbose output that lists 11219 # what "hidden" libraries, object files and flags are used when 11220 # linking a shared library. 11221 # 11222 # There doesn't appear to be a way to prevent this compiler from 11223 # explicitly linking system object files so we need to strip them 11224 # from the output so that they don't get included in the library 11225 # dependencies. 11226 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' 11227 11228 # Archives containing C++ object files must be created using 11229 # "CC -xar", where "CC" is the Sun C++ compiler. This is 11230 # necessary to make sure instantiated templates are included 11231 # in the archive. 11232 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 11233 ;; 11234 gcx) 11235 # Green Hills C++ Compiler 11236 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11237 11238 # The C++ compiler must be used to create the archive. 11239 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 11240 ;; 11241 *) 11242 # GNU C++ compiler with Solaris linker 11243 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11244 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 11245 if $CC --version | grep -v '^2\.7' > /dev/null; then 11246 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11247 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11248 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11249 11250 # Commands to make compiler produce verbose output that lists 11251 # what "hidden" libraries, object files and flags are used when 11252 # linking a shared library. 11253 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11254 else 11255 # g++ 2.7 appears to require `-G' NOT `-shared' on this 11256 # platform. 11257 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11258 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11259 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11260 11261 # Commands to make compiler produce verbose output that lists 11262 # what "hidden" libraries, object files and flags are used when 11263 # linking a shared library. 11264 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11265 fi 11266 11267 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 11268 fi 11269 ;; 11270 esac 11271 ;; 11272 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 11273 archive_cmds_need_lc_CXX=no 11274 ;; 11275 tandem*) 11276 case $cc_basename in 11277 NCC) 11278 # NonStop-UX NCC 3.20 11279 # FIXME: insert proper C++ library support 11280 ld_shlibs_CXX=no 11281 ;; 11282 *) 11283 # FIXME: insert proper C++ library support 11284 ld_shlibs_CXX=no 11285 ;; 11286 esac 11287 ;; 11288 vxworks*) 11289 # FIXME: insert proper C++ library support 11290 ld_shlibs_CXX=no 11291 ;; 11292 *) 11293 # FIXME: insert proper C++ library support 11294 ld_shlibs_CXX=no 11295 ;; 11296esac 11297echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11298echo "${ECHO_T}$ld_shlibs_CXX" >&6 11299test "$ld_shlibs_CXX" = no && can_build_shared=no 11300 11301GCC_CXX="$GXX" 11302LD_CXX="$LD" 11303 11304 11305cat > conftest.$ac_ext <<EOF 11306class Foo 11307{ 11308public: 11309 Foo (void) { a = 0; } 11310private: 11311 int a; 11312}; 11313EOF 11314 11315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11316 (eval $ac_compile) 2>&5 11317 ac_status=$? 11318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11319 (exit $ac_status); }; then 11320 # Parse the compiler output and extract the necessary 11321 # objects, libraries and library flags. 11322 11323 # Sentinel used to keep track of whether or not we are before 11324 # the conftest object file. 11325 pre_test_object_deps_done=no 11326 11327 # The `*' in the case matches for architectures that use `case' in 11328 # $output_verbose_cmd can trigger glob expansion during the loop 11329 # eval without this substitution. 11330 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" 11331 11332 for p in `eval $output_verbose_link_cmd`; do 11333 case $p in 11334 11335 -L* | -R* | -l*) 11336 # Some compilers place space between "-{L,R}" and the path. 11337 # Remove the space. 11338 if test $p = "-L" \ 11339 || test $p = "-R"; then 11340 prev=$p 11341 continue 11342 else 11343 prev= 11344 fi 11345 11346 if test "$pre_test_object_deps_done" = no; then 11347 case $p in 11348 -L* | -R*) 11349 # Internal compiler library paths should come after those 11350 # provided the user. The postdeps already come after the 11351 # user supplied libs so there is no need to process them. 11352 if test -z "$compiler_lib_search_path_CXX"; then 11353 compiler_lib_search_path_CXX="${prev}${p}" 11354 else 11355 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 11356 fi 11357 ;; 11358 # The "-l" case would never come before the object being 11359 # linked, so don't bother handling this case. 11360 esac 11361 else 11362 if test -z "$postdeps_CXX"; then 11363 postdeps_CXX="${prev}${p}" 11364 else 11365 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 11366 fi 11367 fi 11368 ;; 11369 11370 *.$objext) 11371 # This assumes that the test object file only shows up 11372 # once in the compiler output. 11373 if test "$p" = "conftest.$objext"; then 11374 pre_test_object_deps_done=yes 11375 continue 11376 fi 11377 11378 if test "$pre_test_object_deps_done" = no; then 11379 if test -z "$predep_objects_CXX"; then 11380 predep_objects_CXX="$p" 11381 else 11382 predep_objects_CXX="$predep_objects_CXX $p" 11383 fi 11384 else 11385 if test -z "$postdep_objects_CXX"; then 11386 postdep_objects_CXX="$p" 11387 else 11388 postdep_objects_CXX="$postdep_objects_CXX $p" 11389 fi 11390 fi 11391 ;; 11392 11393 *) ;; # Ignore the rest. 11394 11395 esac 11396 done 11397 11398 # Clean up. 11399 rm -f a.out a.exe 11400else 11401 echo "libtool.m4: error: problem compiling CXX test program" 11402fi 11403 11404$rm -f confest.$objext 11405 11406case " $postdeps_CXX " in 11407*" -lc "*) archive_cmds_need_lc_CXX=no ;; 11408esac 11409 11410lt_prog_compiler_wl_CXX= 11411lt_prog_compiler_pic_CXX= 11412lt_prog_compiler_static_CXX= 11413 11414echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 11415echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 11416 11417 # C++ specific cases for pic, static, wl, etc. 11418 if test "$GXX" = yes; then 11419 lt_prog_compiler_wl_CXX='-Wl,' 11420 lt_prog_compiler_static_CXX='-static' 11421 11422 case $host_os in 11423 aix*) 11424 # All AIX code is PIC. 11425 if test "$host_cpu" = ia64; then 11426 # AIX 5 now supports IA64 processor 11427 lt_prog_compiler_static_CXX='-Bstatic' 11428 fi 11429 ;; 11430 amigaos*) 11431 # FIXME: we need at least 68020 code to build shared libraries, but 11432 # adding the `-m68020' flag to GCC prevents building anything better, 11433 # like `-m68040'. 11434 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 11435 ;; 11436 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 11437 # PIC is the default for these OSes. 11438 ;; 11439 mingw* | os2* | pw32*) 11440 # This hack is so that the source file can tell whether it is being 11441 # built for inclusion in a dll (and should export symbols for example). 11442 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 11443 ;; 11444 darwin* | rhapsody*) 11445 # PIC is the default on this platform 11446 # Common symbols not allowed in MH_DYLIB files 11447 lt_prog_compiler_pic_CXX='-fno-common' 11448 ;; 11449 *djgpp*) 11450 # DJGPP does not support shared libraries at all 11451 lt_prog_compiler_pic_CXX= 11452 ;; 11453 sysv4*MP*) 11454 if test -d /usr/nec; then 11455 lt_prog_compiler_pic_CXX=-Kconform_pic 11456 fi 11457 ;; 11458 hpux*) 11459 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11460 # not for PA HP-UX. 11461 case "$host_cpu" in 11462 hppa*64*|ia64*) 11463 ;; 11464 *) 11465 lt_prog_compiler_pic_CXX='-fPIC' 11466 ;; 11467 esac 11468 ;; 11469 *) 11470 lt_prog_compiler_pic_CXX='-fPIC' 11471 ;; 11472 esac 11473 else 11474 case $host_os in 11475 aix4* | aix5*) 11476 # All AIX code is PIC. 11477 if test "$host_cpu" = ia64; then 11478 # AIX 5 now supports IA64 processor 11479 lt_prog_compiler_static_CXX='-Bstatic' 11480 else 11481 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 11482 fi 11483 ;; 11484 chorus*) 11485 case $cc_basename in 11486 cxch68) 11487 # Green Hills C++ Compiler 11488 # _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" 11489 ;; 11490 esac 11491 ;; 11492 darwin*) 11493 # PIC is the default on this platform 11494 # Common symbols not allowed in MH_DYLIB files 11495 case "$cc_basename" in 11496 xlc*) 11497 lt_prog_compiler_pic_CXX='-qnocommon' 11498 lt_prog_compiler_wl_CXX='-Wl,' 11499 ;; 11500 esac 11501 ;; 11502 dgux*) 11503 case $cc_basename in 11504 ec++) 11505 lt_prog_compiler_pic_CXX='-KPIC' 11506 ;; 11507 ghcx) 11508 # Green Hills C++ Compiler 11509 lt_prog_compiler_pic_CXX='-pic' 11510 ;; 11511 *) 11512 ;; 11513 esac 11514 ;; 11515 freebsd* | kfreebsd*-gnu) 11516 # FreeBSD uses GNU C++ 11517 ;; 11518 hpux9* | hpux10* | hpux11*) 11519 case $cc_basename in 11520 CC) 11521 lt_prog_compiler_wl_CXX='-Wl,' 11522 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 11523 if test "$host_cpu" != ia64; then 11524 lt_prog_compiler_pic_CXX='+Z' 11525 fi 11526 ;; 11527 aCC) 11528 lt_prog_compiler_wl_CXX='-Wl,' 11529 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 11530 case "$host_cpu" in 11531 hppa*64*|ia64*) 11532 # +Z the default 11533 ;; 11534 *) 11535 lt_prog_compiler_pic_CXX='+Z' 11536 ;; 11537 esac 11538 ;; 11539 *) 11540 ;; 11541 esac 11542 ;; 11543 irix5* | irix6* | nonstopux*) 11544 case $cc_basename in 11545 CC) 11546 lt_prog_compiler_wl_CXX='-Wl,' 11547 lt_prog_compiler_static_CXX='-non_shared' 11548 # CC pic flag -KPIC is the default. 11549 ;; 11550 *) 11551 ;; 11552 esac 11553 ;; 11554 linux*) 11555 case $cc_basename in 11556 KCC) 11557 # KAI C++ Compiler 11558 lt_prog_compiler_wl_CXX='--backend -Wl,' 11559 lt_prog_compiler_pic_CXX='-fPIC' 11560 ;; 11561 icpc) 11562 # Intel C++ 11563 lt_prog_compiler_wl_CXX='-Wl,' 11564 lt_prog_compiler_pic_CXX='-KPIC' 11565 lt_prog_compiler_static_CXX='-static' 11566 ;; 11567 cxx) 11568 # Compaq C++ 11569 # Make sure the PIC flag is empty. It appears that all Alpha 11570 # Linux and Compaq Tru64 Unix objects are PIC. 11571 lt_prog_compiler_pic_CXX= 11572 lt_prog_compiler_static_CXX='-non_shared' 11573 ;; 11574 *) 11575 ;; 11576 esac 11577 ;; 11578 lynxos*) 11579 ;; 11580 m88k*) 11581 ;; 11582 mvs*) 11583 case $cc_basename in 11584 cxx) 11585 lt_prog_compiler_pic_CXX='-W c,exportall' 11586 ;; 11587 *) 11588 ;; 11589 esac 11590 ;; 11591 netbsd*) 11592 ;; 11593 osf3* | osf4* | osf5*) 11594 case $cc_basename in 11595 KCC) 11596 lt_prog_compiler_wl_CXX='--backend -Wl,' 11597 ;; 11598 RCC) 11599 # Rational C++ 2.4.1 11600 lt_prog_compiler_pic_CXX='-pic' 11601 ;; 11602 cxx) 11603 # Digital/Compaq C++ 11604 lt_prog_compiler_wl_CXX='-Wl,' 11605 # Make sure the PIC flag is empty. It appears that all Alpha 11606 # Linux and Compaq Tru64 Unix objects are PIC. 11607 lt_prog_compiler_pic_CXX= 11608 lt_prog_compiler_static_CXX='-non_shared' 11609 ;; 11610 *) 11611 ;; 11612 esac 11613 ;; 11614 psos*) 11615 ;; 11616 sco*) 11617 case $cc_basename in 11618 CC) 11619 lt_prog_compiler_pic_CXX='-fPIC' 11620 ;; 11621 *) 11622 ;; 11623 esac 11624 ;; 11625 solaris*) 11626 case $cc_basename in 11627 CC) 11628 # Sun C++ 4.2, 5.x and Centerline C++ 11629 lt_prog_compiler_pic_CXX='-KPIC' 11630 lt_prog_compiler_static_CXX='-Bstatic' 11631 lt_prog_compiler_wl_CXX='-Qoption ld ' 11632 ;; 11633 gcx) 11634 # Green Hills C++ Compiler 11635 lt_prog_compiler_pic_CXX='-PIC' 11636 ;; 11637 *) 11638 ;; 11639 esac 11640 ;; 11641 sunos4*) 11642 case $cc_basename in 11643 CC) 11644 # Sun C++ 4.x 11645 lt_prog_compiler_pic_CXX='-pic' 11646 lt_prog_compiler_static_CXX='-Bstatic' 11647 ;; 11648 lcc) 11649 # Lucid 11650 lt_prog_compiler_pic_CXX='-pic' 11651 ;; 11652 *) 11653 ;; 11654 esac 11655 ;; 11656 tandem*) 11657 case $cc_basename in 11658 NCC) 11659 # NonStop-UX NCC 3.20 11660 lt_prog_compiler_pic_CXX='-KPIC' 11661 ;; 11662 *) 11663 ;; 11664 esac 11665 ;; 11666 unixware*) 11667 ;; 11668 vxworks*) 11669 ;; 11670 *) 11671 lt_prog_compiler_can_build_shared_CXX=no 11672 ;; 11673 esac 11674 fi 11675 11676echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 11677echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 11678 11679# 11680# Check to make sure the PIC flag actually works. 11681# 11682if test -n "$lt_prog_compiler_pic_CXX"; then 11683 11684echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 11685echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 11686if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 11687 echo $ECHO_N "(cached) $ECHO_C" >&6 11688else 11689 lt_prog_compiler_pic_works_CXX=no 11690 ac_outfile=conftest.$ac_objext 11691 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11692 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 11693 # Insert the option either (1) after the last *FLAGS variable, or 11694 # (2) before a word containing "conftest.", or (3) at the end. 11695 # Note that $ac_compile itself does not contain backslashes and begins 11696 # with a dollar sign (not a hyphen), so the echo should work correctly. 11697 # The option is referenced via a variable to avoid confusing sed. 11698 lt_compile=`echo "$ac_compile" | $SED \ 11699 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 11700 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11701 -e 's:$: $lt_compiler_flag:'` 11702 (eval echo "\"\$as_me:11702: $lt_compile\"" >&5) 11703 (eval "$lt_compile" 2>conftest.err) 11704 ac_status=$? 11705 cat conftest.err >&5 11706 echo "$as_me:11706: \$? = $ac_status" >&5 11707 if (exit $ac_status) && test -s "$ac_outfile"; then 11708 # The compiler can only warn and ignore the option if not recognized 11709 # So say no if there are warnings 11710 if test ! -s conftest.err; then 11711 lt_prog_compiler_pic_works_CXX=yes 11712 fi 11713 fi 11714 $rm conftest* 11715 11716fi 11717echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 11718echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 11719 11720if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 11721 case $lt_prog_compiler_pic_CXX in 11722 "" | " "*) ;; 11723 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 11724 esac 11725else 11726 lt_prog_compiler_pic_CXX= 11727 lt_prog_compiler_can_build_shared_CXX=no 11728fi 11729 11730fi 11731case "$host_os" in 11732 # For platforms which do not support PIC, -DPIC is meaningless: 11733 *djgpp*) 11734 lt_prog_compiler_pic_CXX= 11735 ;; 11736 *) 11737 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 11738 ;; 11739esac 11740 11741echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 11742echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 11743if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 11744 echo $ECHO_N "(cached) $ECHO_C" >&6 11745else 11746 lt_cv_prog_compiler_c_o_CXX=no 11747 $rm -r conftest 2>/dev/null 11748 mkdir conftest 11749 cd conftest 11750 mkdir out 11751 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11752 11753 lt_compiler_flag="-o out/conftest2.$ac_objext" 11754 # Insert the option either (1) after the last *FLAGS variable, or 11755 # (2) before a word containing "conftest.", or (3) at the end. 11756 # Note that $ac_compile itself does not contain backslashes and begins 11757 # with a dollar sign (not a hyphen), so the echo should work correctly. 11758 lt_compile=`echo "$ac_compile" | $SED \ 11759 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 11760 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11761 -e 's:$: $lt_compiler_flag:'` 11762 (eval echo "\"\$as_me:11762: $lt_compile\"" >&5) 11763 (eval "$lt_compile" 2>out/conftest.err) 11764 ac_status=$? 11765 cat out/conftest.err >&5 11766 echo "$as_me:11766: \$? = $ac_status" >&5 11767 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11768 then 11769 # The compiler can only warn and ignore the option if not recognized 11770 # So say no if there are warnings 11771 if test ! -s out/conftest.err; then 11772 lt_cv_prog_compiler_c_o_CXX=yes 11773 fi 11774 fi 11775 chmod u+w . 11776 $rm conftest* 11777 # SGI C++ compiler will create directory out/ii_files/ for 11778 # template instantiation 11779 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 11780 $rm out/* && rmdir out 11781 cd .. 11782 rmdir conftest 11783 $rm conftest* 11784 11785fi 11786echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 11787echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 11788 11789 11790hard_links="nottested" 11791if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 11792 # do not overwrite the value of need_locks provided by the user 11793 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 11794echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 11795 hard_links=yes 11796 $rm conftest* 11797 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11798 touch conftest.a 11799 ln conftest.a conftest.b 2>&5 || hard_links=no 11800 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11801 echo "$as_me:$LINENO: result: $hard_links" >&5 11802echo "${ECHO_T}$hard_links" >&6 11803 if test "$hard_links" = no; then 11804 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 11805echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 11806 need_locks=warn 11807 fi 11808else 11809 need_locks=no 11810fi 11811 11812echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11813echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 11814 11815 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11816 case $host_os in 11817 aix4* | aix5*) 11818 # If we're using GNU nm, then we don't want the "-C" option. 11819 # -C means demangle to AIX nm, but means don't demangle with GNU nm 11820 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 11821 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' 11822 else 11823 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' 11824 fi 11825 ;; 11826 pw32*) 11827 export_symbols_cmds_CXX="$ltdll_cmds" 11828 ;; 11829 cygwin* | mingw*) 11830 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 11831 ;; 11832 *) 11833 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11834 ;; 11835 esac 11836 11837echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11838echo "${ECHO_T}$ld_shlibs_CXX" >&6 11839test "$ld_shlibs_CXX" = no && can_build_shared=no 11840 11841variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11842if test "$GCC" = yes; then 11843 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11844fi 11845 11846# 11847# Do we need to explicitly link libc? 11848# 11849case "x$archive_cmds_need_lc_CXX" in 11850x|xyes) 11851 # Assume -lc should be added 11852 archive_cmds_need_lc_CXX=yes 11853 11854 if test "$enable_shared" = yes && test "$GCC" = yes; then 11855 case $archive_cmds_CXX in 11856 *'~'*) 11857 # FIXME: we may have to deal with multi-command sequences. 11858 ;; 11859 '$CC '*) 11860 # Test whether the compiler implicitly links with -lc since on some 11861 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11862 # to ld, don't add -lc before -lgcc. 11863 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 11864echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 11865 $rm conftest* 11866 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11867 11868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11869 (eval $ac_compile) 2>&5 11870 ac_status=$? 11871 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11872 (exit $ac_status); } 2>conftest.err; then 11873 soname=conftest 11874 lib=conftest 11875 libobjs=conftest.$ac_objext 11876 deplibs= 11877 wl=$lt_prog_compiler_wl_CXX 11878 compiler_flags=-v 11879 linker_flags=-v 11880 verstring= 11881 output_objdir=. 11882 libname=conftest 11883 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 11884 allow_undefined_flag_CXX= 11885 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 11886 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 11887 ac_status=$? 11888 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11889 (exit $ac_status); } 11890 then 11891 archive_cmds_need_lc_CXX=no 11892 else 11893 archive_cmds_need_lc_CXX=yes 11894 fi 11895 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 11896 else 11897 cat conftest.err 1>&5 11898 fi 11899 $rm conftest* 11900 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 11901echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 11902 ;; 11903 esac 11904 fi 11905 ;; 11906esac 11907 11908echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 11909echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 11910library_names_spec= 11911libname_spec='lib$name' 11912soname_spec= 11913shrext_cmds=".so" 11914postinstall_cmds= 11915postuninstall_cmds= 11916finish_cmds= 11917finish_eval= 11918shlibpath_var= 11919shlibpath_overrides_runpath=unknown 11920version_type=none 11921dynamic_linker="$host_os ld.so" 11922sys_lib_dlsearch_path_spec="/lib /usr/lib" 11923if test "$GCC" = yes; then 11924 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11925 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 11926 # if the path contains ";" then we assume it to be the separator 11927 # otherwise default to the standard path separator (i.e. ":") - it is 11928 # assumed that no part of a normal pathname contains ";" but that should 11929 # okay in the real world where ";" in dirpaths is itself problematic. 11930 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11931 else 11932 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11933 fi 11934else 11935 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11936fi 11937need_lib_prefix=unknown 11938hardcode_into_libs=no 11939 11940# when you set need_version to no, make sure it does not cause -set_version 11941# flags to be left without arguments 11942need_version=unknown 11943 11944case $host_os in 11945aix3*) 11946 version_type=linux 11947 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 11948 shlibpath_var=LIBPATH 11949 11950 # AIX 3 has no versioning support, so we append a major version to the name. 11951 soname_spec='${libname}${release}${shared_ext}$major' 11952 ;; 11953 11954aix4* | aix5*) 11955 version_type=linux 11956 need_lib_prefix=no 11957 need_version=no 11958 hardcode_into_libs=yes 11959 if test "$host_cpu" = ia64; then 11960 # AIX 5 supports IA64 11961 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 11962 shlibpath_var=LD_LIBRARY_PATH 11963 else 11964 # With GCC up to 2.95.x, collect2 would create an import file 11965 # for dependence libraries. The import file would start with 11966 # the line `#! .'. This would cause the generated library to 11967 # depend on `.', always an invalid library. This was fixed in 11968 # development snapshots of GCC prior to 3.0. 11969 case $host_os in 11970 aix4 | aix4.[01] | aix4.[01].*) 11971 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11972 echo ' yes ' 11973 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 11974 : 11975 else 11976 can_build_shared=no 11977 fi 11978 ;; 11979 esac 11980 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 11981 # soname into executable. Probably we can add versioning support to 11982 # collect2, so additional links can be useful in future. 11983 if test "$aix_use_runtimelinking" = yes; then 11984 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11985 # instead of lib<name>.a to let people know that these are not 11986 # typical AIX shared libraries. 11987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11988 else 11989 # We preserve .a as extension for shared libraries through AIX4.2 11990 # and later when we are not doing run time linking. 11991 library_names_spec='${libname}${release}.a $libname.a' 11992 soname_spec='${libname}${release}${shared_ext}$major' 11993 fi 11994 shlibpath_var=LIBPATH 11995 fi 11996 ;; 11997 11998amigaos*) 11999 library_names_spec='$libname.ixlibrary $libname.a' 12000 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12001 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' 12002 ;; 12003 12004beos*) 12005 library_names_spec='${libname}${shared_ext}' 12006 dynamic_linker="$host_os ld.so" 12007 shlibpath_var=LIBRARY_PATH 12008 ;; 12009 12010bsdi[45]*) 12011 version_type=linux 12012 need_version=no 12013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12014 soname_spec='${libname}${release}${shared_ext}$major' 12015 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12016 shlibpath_var=LD_LIBRARY_PATH 12017 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12018 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12019 # the default ld.so.conf also contains /usr/contrib/lib and 12020 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12021 # libtool to hard-code these into programs 12022 ;; 12023 12024cygwin* | mingw* | pw32*) 12025 version_type=windows 12026 shrext_cmds=".dll" 12027 need_version=no 12028 need_lib_prefix=no 12029 12030 case $GCC,$host_os in 12031 yes,cygwin* | yes,mingw* | yes,pw32*) 12032 library_names_spec='$libname.dll.a' 12033 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12034 postinstall_cmds='base_file=`basename \${file}`~ 12035 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 12036 dldir=$destdir/`dirname \$dlpath`~ 12037 test -d \$dldir || mkdir -p \$dldir~ 12038 $install_prog $dir/$dlname \$dldir/$dlname' 12039 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12040 dlpath=$dir/\$dldll~ 12041 $rm \$dlpath' 12042 shlibpath_overrides_runpath=yes 12043 12044 case $host_os in 12045 cygwin*) 12046 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12047 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12048 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 12049 ;; 12050 mingw*) 12051 # MinGW DLLs use traditional 'lib' prefix 12052 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12053 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12054 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 12055 # It is most probably a Windows format PATH printed by 12056 # mingw gcc, but we are running on Cygwin. Gcc prints its search 12057 # path with ; separators, and with drive letters. We can handle the 12058 # drive letters (cygwin fileutils understands them), so leave them, 12059 # especially as we might pass files found there to a mingw objdump, 12060 # which wouldn't understand a cygwinified path. Ahh. 12061 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12062 else 12063 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12064 fi 12065 ;; 12066 pw32*) 12067 # pw32 DLLs use 'pw' prefix rather than 'lib' 12068 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 12069 ;; 12070 esac 12071 ;; 12072 12073 *) 12074 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 12075 ;; 12076 esac 12077 dynamic_linker='Win32 ld.exe' 12078 # FIXME: first we should search . and the directory the executable is in 12079 shlibpath_var=PATH 12080 ;; 12081 12082darwin* | rhapsody*) 12083 dynamic_linker="$host_os dyld" 12084 version_type=darwin 12085 need_lib_prefix=no 12086 need_version=no 12087 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 12088 soname_spec='${libname}${release}${major}$shared_ext' 12089 shlibpath_overrides_runpath=yes 12090 shlibpath_var=DYLD_LIBRARY_PATH 12091 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 12092 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 12093 if test "$GCC" = yes; then 12094 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"` 12095 else 12096 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 12097 fi 12098 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12099 ;; 12100 12101dgux*) 12102 version_type=linux 12103 need_lib_prefix=no 12104 need_version=no 12105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 12106 soname_spec='${libname}${release}${shared_ext}$major' 12107 shlibpath_var=LD_LIBRARY_PATH 12108 ;; 12109 12110freebsd1*) 12111 dynamic_linker=no 12112 ;; 12113 12114kfreebsd*-gnu) 12115 version_type=linux 12116 need_lib_prefix=no 12117 need_version=no 12118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12119 soname_spec='${libname}${release}${shared_ext}$major' 12120 shlibpath_var=LD_LIBRARY_PATH 12121 shlibpath_overrides_runpath=no 12122 hardcode_into_libs=yes 12123 dynamic_linker='GNU ld.so' 12124 ;; 12125 12126freebsd*) 12127 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 12128 version_type=freebsd-$objformat 12129 case $version_type in 12130 freebsd-elf*) 12131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12132 need_version=no 12133 need_lib_prefix=no 12134 ;; 12135 freebsd-*) 12136 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 12137 need_version=yes 12138 ;; 12139 esac 12140 shlibpath_var=LD_LIBRARY_PATH 12141 case $host_os in 12142 freebsd2*) 12143 shlibpath_overrides_runpath=yes 12144 ;; 12145 freebsd3.01* | freebsdelf3.01*) 12146 shlibpath_overrides_runpath=yes 12147 hardcode_into_libs=yes 12148 ;; 12149 *) # from 3.2 on 12150 shlibpath_overrides_runpath=no 12151 hardcode_into_libs=yes 12152 ;; 12153 esac 12154 ;; 12155 12156gnu*) 12157 version_type=linux 12158 need_lib_prefix=no 12159 need_version=no 12160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12161 soname_spec='${libname}${release}${shared_ext}$major' 12162 shlibpath_var=LD_LIBRARY_PATH 12163 hardcode_into_libs=yes 12164 ;; 12165 12166hpux9* | hpux10* | hpux11*) 12167 # Give a soname corresponding to the major version so that dld.sl refuses to 12168 # link against other versions. 12169 version_type=sunos 12170 need_lib_prefix=no 12171 need_version=no 12172 case "$host_cpu" in 12173 ia64*) 12174 shrext_cmds='.so' 12175 hardcode_into_libs=yes 12176 dynamic_linker="$host_os dld.so" 12177 shlibpath_var=LD_LIBRARY_PATH 12178 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12180 soname_spec='${libname}${release}${shared_ext}$major' 12181 if test "X$HPUX_IA64_MODE" = X32; then 12182 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12183 else 12184 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12185 fi 12186 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12187 ;; 12188 hppa*64*) 12189 shrext_cmds='.sl' 12190 hardcode_into_libs=yes 12191 dynamic_linker="$host_os dld.sl" 12192 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12193 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12195 soname_spec='${libname}${release}${shared_ext}$major' 12196 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12197 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12198 ;; 12199 *) 12200 shrext_cmds='.sl' 12201 dynamic_linker="$host_os dld.sl" 12202 shlibpath_var=SHLIB_PATH 12203 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12205 soname_spec='${libname}${release}${shared_ext}$major' 12206 ;; 12207 esac 12208 # HP-UX runs *really* slowly unless shared libraries are mode 555. 12209 postinstall_cmds='chmod 555 $lib' 12210 ;; 12211 12212irix5* | irix6* | nonstopux*) 12213 case $host_os in 12214 nonstopux*) version_type=nonstopux ;; 12215 *) 12216 if test "$lt_cv_prog_gnu_ld" = yes; then 12217 version_type=linux 12218 else 12219 version_type=irix 12220 fi ;; 12221 esac 12222 need_lib_prefix=no 12223 need_version=no 12224 soname_spec='${libname}${release}${shared_ext}$major' 12225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 12226 case $host_os in 12227 irix5* | nonstopux*) 12228 libsuff= shlibsuff= 12229 ;; 12230 *) 12231 case $LD in # libtool.m4 will add one of these switches to LD 12232 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12233 libsuff= shlibsuff= libmagic=32-bit;; 12234 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12235 libsuff=32 shlibsuff=N32 libmagic=N32;; 12236 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12237 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12238 *) libsuff= shlibsuff= libmagic=never-match;; 12239 esac 12240 ;; 12241 esac 12242 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12243 shlibpath_overrides_runpath=no 12244 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 12245 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 12246 hardcode_into_libs=yes 12247 ;; 12248 12249# No shared lib support for Linux oldld, aout, or coff. 12250linux*oldld* | linux*aout* | linux*coff*) 12251 dynamic_linker=no 12252 ;; 12253 12254# This must be Linux ELF. 12255linux*) 12256 version_type=linux 12257 need_lib_prefix=no 12258 need_version=no 12259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12260 soname_spec='${libname}${release}${shared_ext}$major' 12261 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12262 shlibpath_var=LD_LIBRARY_PATH 12263 shlibpath_overrides_runpath=no 12264 # This implies no fast_install, which is unacceptable. 12265 # Some rework will be needed to allow for fast_install 12266 # before this can be enabled. 12267 hardcode_into_libs=yes 12268 12269 # Append ld.so.conf contents to the search path 12270 if test -f /etc/ld.so.conf; then 12271 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` 12272 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12273 fi 12274 12275 # We used to test for /lib/ld.so.1 and disable shared libraries on 12276 # powerpc, because MkLinux only supported shared libraries with the 12277 # GNU dynamic linker. Since this was broken with cross compilers, 12278 # most powerpc-linux boxes support dynamic linking these days and 12279 # people can always --disable-shared, the test was removed, and we 12280 # assume the GNU/Linux dynamic linker is in use. 12281 dynamic_linker='GNU/Linux ld.so' 12282 ;; 12283 12284knetbsd*-gnu) 12285 version_type=linux 12286 need_lib_prefix=no 12287 need_version=no 12288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12289 soname_spec='${libname}${release}${shared_ext}$major' 12290 shlibpath_var=LD_LIBRARY_PATH 12291 shlibpath_overrides_runpath=no 12292 hardcode_into_libs=yes 12293 dynamic_linker='GNU ld.so' 12294 ;; 12295 12296netbsd*) 12297 version_type=sunos 12298 need_lib_prefix=no 12299 need_version=no 12300 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12302 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12303 dynamic_linker='NetBSD (a.out) ld.so' 12304 else 12305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12306 soname_spec='${libname}${release}${shared_ext}$major' 12307 dynamic_linker='NetBSD ld.elf_so' 12308 fi 12309 shlibpath_var=LD_LIBRARY_PATH 12310 shlibpath_overrides_runpath=yes 12311 hardcode_into_libs=yes 12312 ;; 12313 12314newsos6) 12315 version_type=linux 12316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12317 shlibpath_var=LD_LIBRARY_PATH 12318 shlibpath_overrides_runpath=yes 12319 ;; 12320 12321nto-qnx*) 12322 version_type=linux 12323 need_lib_prefix=no 12324 need_version=no 12325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12326 soname_spec='${libname}${release}${shared_ext}$major' 12327 shlibpath_var=LD_LIBRARY_PATH 12328 shlibpath_overrides_runpath=yes 12329 ;; 12330 12331openbsd*) 12332 version_type=sunos 12333 need_lib_prefix=no 12334 need_version=no 12335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12336 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12337 shlibpath_var=LD_LIBRARY_PATH 12338 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12339 case $host_os in 12340 openbsd2.[89] | openbsd2.[89].*) 12341 shlibpath_overrides_runpath=no 12342 ;; 12343 *) 12344 shlibpath_overrides_runpath=yes 12345 ;; 12346 esac 12347 else 12348 shlibpath_overrides_runpath=yes 12349 fi 12350 ;; 12351 12352os2*) 12353 libname_spec='$name' 12354 shrext_cmds=".dll" 12355 need_lib_prefix=no 12356 library_names_spec='$libname${shared_ext} $libname.a' 12357 dynamic_linker='OS/2 ld.exe' 12358 shlibpath_var=LIBPATH 12359 ;; 12360 12361osf3* | osf4* | osf5*) 12362 version_type=osf 12363 need_lib_prefix=no 12364 need_version=no 12365 soname_spec='${libname}${release}${shared_ext}$major' 12366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12367 shlibpath_var=LD_LIBRARY_PATH 12368 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12369 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 12370 ;; 12371 12372sco3.2v5*) 12373 version_type=osf 12374 soname_spec='${libname}${release}${shared_ext}$major' 12375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12376 shlibpath_var=LD_LIBRARY_PATH 12377 ;; 12378 12379solaris*) 12380 version_type=linux 12381 need_lib_prefix=no 12382 need_version=no 12383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12384 soname_spec='${libname}${release}${shared_ext}$major' 12385 shlibpath_var=LD_LIBRARY_PATH 12386 shlibpath_overrides_runpath=yes 12387 hardcode_into_libs=yes 12388 # ldd complains unless libraries are executable 12389 postinstall_cmds='chmod +x $lib' 12390 ;; 12391 12392sunos4*) 12393 version_type=sunos 12394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12395 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12396 shlibpath_var=LD_LIBRARY_PATH 12397 shlibpath_overrides_runpath=yes 12398 if test "$with_gnu_ld" = yes; then 12399 need_lib_prefix=no 12400 fi 12401 need_version=yes 12402 ;; 12403 12404sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 12405 version_type=linux 12406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12407 soname_spec='${libname}${release}${shared_ext}$major' 12408 shlibpath_var=LD_LIBRARY_PATH 12409 case $host_vendor in 12410 sni) 12411 shlibpath_overrides_runpath=no 12412 need_lib_prefix=no 12413 export_dynamic_flag_spec='${wl}-Blargedynsym' 12414 runpath_var=LD_RUN_PATH 12415 ;; 12416 siemens) 12417 need_lib_prefix=no 12418 ;; 12419 motorola) 12420 need_lib_prefix=no 12421 need_version=no 12422 shlibpath_overrides_runpath=no 12423 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12424 ;; 12425 esac 12426 ;; 12427 12428sysv4*MP*) 12429 if test -d /usr/nec ;then 12430 version_type=linux 12431 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 12432 soname_spec='$libname${shared_ext}.$major' 12433 shlibpath_var=LD_LIBRARY_PATH 12434 fi 12435 ;; 12436 12437uts4*) 12438 version_type=linux 12439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12440 soname_spec='${libname}${release}${shared_ext}$major' 12441 shlibpath_var=LD_LIBRARY_PATH 12442 ;; 12443 12444*) 12445 dynamic_linker=no 12446 ;; 12447esac 12448echo "$as_me:$LINENO: result: $dynamic_linker" >&5 12449echo "${ECHO_T}$dynamic_linker" >&6 12450test "$dynamic_linker" = no && can_build_shared=no 12451 12452echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 12453echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 12454hardcode_action_CXX= 12455if test -n "$hardcode_libdir_flag_spec_CXX" || \ 12456 test -n "$runpath_var_CXX" || \ 12457 test "X$hardcode_automatic_CXX" = "Xyes" ; then 12458 12459 # We can hardcode non-existant directories. 12460 if test "$hardcode_direct_CXX" != no && 12461 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12462 # have to relink, otherwise we might link with an installed library 12463 # when we should be linking with a yet-to-be-installed one 12464 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 12465 test "$hardcode_minus_L_CXX" != no; then 12466 # Linking always hardcodes the temporary library directory. 12467 hardcode_action_CXX=relink 12468 else 12469 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12470 hardcode_action_CXX=immediate 12471 fi 12472else 12473 # We cannot hardcode anything, or else we can only hardcode existing 12474 # directories. 12475 hardcode_action_CXX=unsupported 12476fi 12477echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 12478echo "${ECHO_T}$hardcode_action_CXX" >&6 12479 12480if test "$hardcode_action_CXX" = relink; then 12481 # Fast installation is not supported 12482 enable_fast_install=no 12483elif test "$shlibpath_overrides_runpath" = yes || 12484 test "$enable_shared" = no; then 12485 # Fast installation is not necessary 12486 enable_fast_install=needless 12487fi 12488 12489striplib= 12490old_striplib= 12491echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 12492echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 12493if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 12494 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12495 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12496 echo "$as_me:$LINENO: result: yes" >&5 12497echo "${ECHO_T}yes" >&6 12498else 12499# FIXME - insert some real tests, host_os isn't really good enough 12500 case $host_os in 12501 darwin*) 12502 if test -n "$STRIP" ; then 12503 striplib="$STRIP -x" 12504 echo "$as_me:$LINENO: result: yes" >&5 12505echo "${ECHO_T}yes" >&6 12506 else 12507 echo "$as_me:$LINENO: result: no" >&5 12508echo "${ECHO_T}no" >&6 12509fi 12510 ;; 12511 *) 12512 echo "$as_me:$LINENO: result: no" >&5 12513echo "${ECHO_T}no" >&6 12514 ;; 12515 esac 12516fi 12517 12518if test "x$enable_dlopen" != xyes; then 12519 enable_dlopen=unknown 12520 enable_dlopen_self=unknown 12521 enable_dlopen_self_static=unknown 12522else 12523 lt_cv_dlopen=no 12524 lt_cv_dlopen_libs= 12525 12526 case $host_os in 12527 beos*) 12528 lt_cv_dlopen="load_add_on" 12529 lt_cv_dlopen_libs= 12530 lt_cv_dlopen_self=yes 12531 ;; 12532 12533 mingw* | pw32*) 12534 lt_cv_dlopen="LoadLibrary" 12535 lt_cv_dlopen_libs= 12536 ;; 12537 12538 cygwin*) 12539 lt_cv_dlopen="dlopen" 12540 lt_cv_dlopen_libs= 12541 ;; 12542 12543 darwin*) 12544 # if libdl is installed we need to link against it 12545 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 12546echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 12547if test "${ac_cv_lib_dl_dlopen+set}" = set; then 12548 echo $ECHO_N "(cached) $ECHO_C" >&6 12549else 12550 ac_check_lib_save_LIBS=$LIBS 12551LIBS="-ldl $LIBS" 12552cat >conftest.$ac_ext <<_ACEOF 12553/* confdefs.h. */ 12554_ACEOF 12555cat confdefs.h >>conftest.$ac_ext 12556cat >>conftest.$ac_ext <<_ACEOF 12557/* end confdefs.h. */ 12558 12559/* Override any gcc2 internal prototype to avoid an error. */ 12560#ifdef __cplusplus 12561extern "C" 12562#endif 12563/* We use char because int might match the return type of a gcc2 12564 builtin and then its argument prototype would still apply. */ 12565char dlopen (); 12566int 12567main () 12568{ 12569dlopen (); 12570 ; 12571 return 0; 12572} 12573_ACEOF 12574rm -f conftest.$ac_objext conftest$ac_exeext 12575if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12576 (eval $ac_link) 2>conftest.er1 12577 ac_status=$? 12578 grep -v '^ *+' conftest.er1 >conftest.err 12579 rm -f conftest.er1 12580 cat conftest.err >&5 12581 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12582 (exit $ac_status); } && 12583 { ac_try='test -z "$ac_cxx_werror_flag" 12584 || test ! -s conftest.err' 12585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12586 (eval $ac_try) 2>&5 12587 ac_status=$? 12588 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12589 (exit $ac_status); }; } && 12590 { ac_try='test -s conftest$ac_exeext' 12591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12592 (eval $ac_try) 2>&5 12593 ac_status=$? 12594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12595 (exit $ac_status); }; }; then 12596 ac_cv_lib_dl_dlopen=yes 12597else 12598 echo "$as_me: failed program was:" >&5 12599sed 's/^/| /' conftest.$ac_ext >&5 12600 12601ac_cv_lib_dl_dlopen=no 12602fi 12603rm -f conftest.err conftest.$ac_objext \ 12604 conftest$ac_exeext conftest.$ac_ext 12605LIBS=$ac_check_lib_save_LIBS 12606fi 12607echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 12608echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 12609if test $ac_cv_lib_dl_dlopen = yes; then 12610 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12611else 12612 12613 lt_cv_dlopen="dyld" 12614 lt_cv_dlopen_libs= 12615 lt_cv_dlopen_self=yes 12616 12617fi 12618 12619 ;; 12620 12621 *) 12622 echo "$as_me:$LINENO: checking for shl_load" >&5 12623echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 12624if test "${ac_cv_func_shl_load+set}" = set; then 12625 echo $ECHO_N "(cached) $ECHO_C" >&6 12626else 12627 cat >conftest.$ac_ext <<_ACEOF 12628/* confdefs.h. */ 12629_ACEOF 12630cat confdefs.h >>conftest.$ac_ext 12631cat >>conftest.$ac_ext <<_ACEOF 12632/* end confdefs.h. */ 12633/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 12634 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12635#define shl_load innocuous_shl_load 12636 12637/* System header to define __stub macros and hopefully few prototypes, 12638 which can conflict with char shl_load (); below. 12639 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12640 <limits.h> exists even on freestanding compilers. */ 12641 12642#ifdef __STDC__ 12643# include <limits.h> 12644#else 12645# include <assert.h> 12646#endif 12647 12648#undef shl_load 12649 12650/* Override any gcc2 internal prototype to avoid an error. */ 12651#ifdef __cplusplus 12652extern "C" 12653{ 12654#endif 12655/* We use char because int might match the return type of a gcc2 12656 builtin and then its argument prototype would still apply. */ 12657char shl_load (); 12658/* The GNU C library defines this for functions which it implements 12659 to always fail with ENOSYS. Some functions are actually named 12660 something starting with __ and the normal name is an alias. */ 12661#if defined (__stub_shl_load) || defined (__stub___shl_load) 12662choke me 12663#else 12664char (*f) () = shl_load; 12665#endif 12666#ifdef __cplusplus 12667} 12668#endif 12669 12670int 12671main () 12672{ 12673return f != shl_load; 12674 ; 12675 return 0; 12676} 12677_ACEOF 12678rm -f conftest.$ac_objext conftest$ac_exeext 12679if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12680 (eval $ac_link) 2>conftest.er1 12681 ac_status=$? 12682 grep -v '^ *+' conftest.er1 >conftest.err 12683 rm -f conftest.er1 12684 cat conftest.err >&5 12685 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12686 (exit $ac_status); } && 12687 { ac_try='test -z "$ac_cxx_werror_flag" 12688 || test ! -s conftest.err' 12689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12690 (eval $ac_try) 2>&5 12691 ac_status=$? 12692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12693 (exit $ac_status); }; } && 12694 { ac_try='test -s conftest$ac_exeext' 12695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12696 (eval $ac_try) 2>&5 12697 ac_status=$? 12698 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12699 (exit $ac_status); }; }; then 12700 ac_cv_func_shl_load=yes 12701else 12702 echo "$as_me: failed program was:" >&5 12703sed 's/^/| /' conftest.$ac_ext >&5 12704 12705ac_cv_func_shl_load=no 12706fi 12707rm -f conftest.err conftest.$ac_objext \ 12708 conftest$ac_exeext conftest.$ac_ext 12709fi 12710echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 12711echo "${ECHO_T}$ac_cv_func_shl_load" >&6 12712if test $ac_cv_func_shl_load = yes; then 12713 lt_cv_dlopen="shl_load" 12714else 12715 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 12716echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 12717if test "${ac_cv_lib_dld_shl_load+set}" = set; then 12718 echo $ECHO_N "(cached) $ECHO_C" >&6 12719else 12720 ac_check_lib_save_LIBS=$LIBS 12721LIBS="-ldld $LIBS" 12722cat >conftest.$ac_ext <<_ACEOF 12723/* confdefs.h. */ 12724_ACEOF 12725cat confdefs.h >>conftest.$ac_ext 12726cat >>conftest.$ac_ext <<_ACEOF 12727/* end confdefs.h. */ 12728 12729/* Override any gcc2 internal prototype to avoid an error. */ 12730#ifdef __cplusplus 12731extern "C" 12732#endif 12733/* We use char because int might match the return type of a gcc2 12734 builtin and then its argument prototype would still apply. */ 12735char shl_load (); 12736int 12737main () 12738{ 12739shl_load (); 12740 ; 12741 return 0; 12742} 12743_ACEOF 12744rm -f conftest.$ac_objext conftest$ac_exeext 12745if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12746 (eval $ac_link) 2>conftest.er1 12747 ac_status=$? 12748 grep -v '^ *+' conftest.er1 >conftest.err 12749 rm -f conftest.er1 12750 cat conftest.err >&5 12751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12752 (exit $ac_status); } && 12753 { ac_try='test -z "$ac_cxx_werror_flag" 12754 || test ! -s conftest.err' 12755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12756 (eval $ac_try) 2>&5 12757 ac_status=$? 12758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12759 (exit $ac_status); }; } && 12760 { ac_try='test -s conftest$ac_exeext' 12761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12762 (eval $ac_try) 2>&5 12763 ac_status=$? 12764 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12765 (exit $ac_status); }; }; then 12766 ac_cv_lib_dld_shl_load=yes 12767else 12768 echo "$as_me: failed program was:" >&5 12769sed 's/^/| /' conftest.$ac_ext >&5 12770 12771ac_cv_lib_dld_shl_load=no 12772fi 12773rm -f conftest.err conftest.$ac_objext \ 12774 conftest$ac_exeext conftest.$ac_ext 12775LIBS=$ac_check_lib_save_LIBS 12776fi 12777echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 12778echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 12779if test $ac_cv_lib_dld_shl_load = yes; then 12780 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 12781else 12782 echo "$as_me:$LINENO: checking for dlopen" >&5 12783echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 12784if test "${ac_cv_func_dlopen+set}" = set; then 12785 echo $ECHO_N "(cached) $ECHO_C" >&6 12786else 12787 cat >conftest.$ac_ext <<_ACEOF 12788/* confdefs.h. */ 12789_ACEOF 12790cat confdefs.h >>conftest.$ac_ext 12791cat >>conftest.$ac_ext <<_ACEOF 12792/* end confdefs.h. */ 12793/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 12794 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12795#define dlopen innocuous_dlopen 12796 12797/* System header to define __stub macros and hopefully few prototypes, 12798 which can conflict with char dlopen (); below. 12799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12800 <limits.h> exists even on freestanding compilers. */ 12801 12802#ifdef __STDC__ 12803# include <limits.h> 12804#else 12805# include <assert.h> 12806#endif 12807 12808#undef dlopen 12809 12810/* Override any gcc2 internal prototype to avoid an error. */ 12811#ifdef __cplusplus 12812extern "C" 12813{ 12814#endif 12815/* We use char because int might match the return type of a gcc2 12816 builtin and then its argument prototype would still apply. */ 12817char dlopen (); 12818/* The GNU C library defines this for functions which it implements 12819 to always fail with ENOSYS. Some functions are actually named 12820 something starting with __ and the normal name is an alias. */ 12821#if defined (__stub_dlopen) || defined (__stub___dlopen) 12822choke me 12823#else 12824char (*f) () = dlopen; 12825#endif 12826#ifdef __cplusplus 12827} 12828#endif 12829 12830int 12831main () 12832{ 12833return f != dlopen; 12834 ; 12835 return 0; 12836} 12837_ACEOF 12838rm -f conftest.$ac_objext conftest$ac_exeext 12839if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12840 (eval $ac_link) 2>conftest.er1 12841 ac_status=$? 12842 grep -v '^ *+' conftest.er1 >conftest.err 12843 rm -f conftest.er1 12844 cat conftest.err >&5 12845 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12846 (exit $ac_status); } && 12847 { ac_try='test -z "$ac_cxx_werror_flag" 12848 || test ! -s conftest.err' 12849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12850 (eval $ac_try) 2>&5 12851 ac_status=$? 12852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12853 (exit $ac_status); }; } && 12854 { ac_try='test -s conftest$ac_exeext' 12855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12856 (eval $ac_try) 2>&5 12857 ac_status=$? 12858 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12859 (exit $ac_status); }; }; then 12860 ac_cv_func_dlopen=yes 12861else 12862 echo "$as_me: failed program was:" >&5 12863sed 's/^/| /' conftest.$ac_ext >&5 12864 12865ac_cv_func_dlopen=no 12866fi 12867rm -f conftest.err conftest.$ac_objext \ 12868 conftest$ac_exeext conftest.$ac_ext 12869fi 12870echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 12871echo "${ECHO_T}$ac_cv_func_dlopen" >&6 12872if test $ac_cv_func_dlopen = yes; then 12873 lt_cv_dlopen="dlopen" 12874else 12875 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 12876echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 12877if test "${ac_cv_lib_dl_dlopen+set}" = set; then 12878 echo $ECHO_N "(cached) $ECHO_C" >&6 12879else 12880 ac_check_lib_save_LIBS=$LIBS 12881LIBS="-ldl $LIBS" 12882cat >conftest.$ac_ext <<_ACEOF 12883/* confdefs.h. */ 12884_ACEOF 12885cat confdefs.h >>conftest.$ac_ext 12886cat >>conftest.$ac_ext <<_ACEOF 12887/* end confdefs.h. */ 12888 12889/* Override any gcc2 internal prototype to avoid an error. */ 12890#ifdef __cplusplus 12891extern "C" 12892#endif 12893/* We use char because int might match the return type of a gcc2 12894 builtin and then its argument prototype would still apply. */ 12895char dlopen (); 12896int 12897main () 12898{ 12899dlopen (); 12900 ; 12901 return 0; 12902} 12903_ACEOF 12904rm -f conftest.$ac_objext conftest$ac_exeext 12905if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12906 (eval $ac_link) 2>conftest.er1 12907 ac_status=$? 12908 grep -v '^ *+' conftest.er1 >conftest.err 12909 rm -f conftest.er1 12910 cat conftest.err >&5 12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12912 (exit $ac_status); } && 12913 { ac_try='test -z "$ac_cxx_werror_flag" 12914 || test ! -s conftest.err' 12915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12916 (eval $ac_try) 2>&5 12917 ac_status=$? 12918 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12919 (exit $ac_status); }; } && 12920 { ac_try='test -s conftest$ac_exeext' 12921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12922 (eval $ac_try) 2>&5 12923 ac_status=$? 12924 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12925 (exit $ac_status); }; }; then 12926 ac_cv_lib_dl_dlopen=yes 12927else 12928 echo "$as_me: failed program was:" >&5 12929sed 's/^/| /' conftest.$ac_ext >&5 12930 12931ac_cv_lib_dl_dlopen=no 12932fi 12933rm -f conftest.err conftest.$ac_objext \ 12934 conftest$ac_exeext conftest.$ac_ext 12935LIBS=$ac_check_lib_save_LIBS 12936fi 12937echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 12938echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 12939if test $ac_cv_lib_dl_dlopen = yes; then 12940 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12941else 12942 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 12943echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 12944if test "${ac_cv_lib_svld_dlopen+set}" = set; then 12945 echo $ECHO_N "(cached) $ECHO_C" >&6 12946else 12947 ac_check_lib_save_LIBS=$LIBS 12948LIBS="-lsvld $LIBS" 12949cat >conftest.$ac_ext <<_ACEOF 12950/* confdefs.h. */ 12951_ACEOF 12952cat confdefs.h >>conftest.$ac_ext 12953cat >>conftest.$ac_ext <<_ACEOF 12954/* end confdefs.h. */ 12955 12956/* Override any gcc2 internal prototype to avoid an error. */ 12957#ifdef __cplusplus 12958extern "C" 12959#endif 12960/* We use char because int might match the return type of a gcc2 12961 builtin and then its argument prototype would still apply. */ 12962char dlopen (); 12963int 12964main () 12965{ 12966dlopen (); 12967 ; 12968 return 0; 12969} 12970_ACEOF 12971rm -f conftest.$ac_objext conftest$ac_exeext 12972if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12973 (eval $ac_link) 2>conftest.er1 12974 ac_status=$? 12975 grep -v '^ *+' conftest.er1 >conftest.err 12976 rm -f conftest.er1 12977 cat conftest.err >&5 12978 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12979 (exit $ac_status); } && 12980 { ac_try='test -z "$ac_cxx_werror_flag" 12981 || test ! -s conftest.err' 12982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12983 (eval $ac_try) 2>&5 12984 ac_status=$? 12985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12986 (exit $ac_status); }; } && 12987 { ac_try='test -s conftest$ac_exeext' 12988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12989 (eval $ac_try) 2>&5 12990 ac_status=$? 12991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12992 (exit $ac_status); }; }; then 12993 ac_cv_lib_svld_dlopen=yes 12994else 12995 echo "$as_me: failed program was:" >&5 12996sed 's/^/| /' conftest.$ac_ext >&5 12997 12998ac_cv_lib_svld_dlopen=no 12999fi 13000rm -f conftest.err conftest.$ac_objext \ 13001 conftest$ac_exeext conftest.$ac_ext 13002LIBS=$ac_check_lib_save_LIBS 13003fi 13004echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 13005echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 13006if test $ac_cv_lib_svld_dlopen = yes; then 13007 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 13008else 13009 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 13010echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 13011if test "${ac_cv_lib_dld_dld_link+set}" = set; then 13012 echo $ECHO_N "(cached) $ECHO_C" >&6 13013else 13014 ac_check_lib_save_LIBS=$LIBS 13015LIBS="-ldld $LIBS" 13016cat >conftest.$ac_ext <<_ACEOF 13017/* confdefs.h. */ 13018_ACEOF 13019cat confdefs.h >>conftest.$ac_ext 13020cat >>conftest.$ac_ext <<_ACEOF 13021/* end confdefs.h. */ 13022 13023/* Override any gcc2 internal prototype to avoid an error. */ 13024#ifdef __cplusplus 13025extern "C" 13026#endif 13027/* We use char because int might match the return type of a gcc2 13028 builtin and then its argument prototype would still apply. */ 13029char dld_link (); 13030int 13031main () 13032{ 13033dld_link (); 13034 ; 13035 return 0; 13036} 13037_ACEOF 13038rm -f conftest.$ac_objext conftest$ac_exeext 13039if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13040 (eval $ac_link) 2>conftest.er1 13041 ac_status=$? 13042 grep -v '^ *+' conftest.er1 >conftest.err 13043 rm -f conftest.er1 13044 cat conftest.err >&5 13045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13046 (exit $ac_status); } && 13047 { ac_try='test -z "$ac_cxx_werror_flag" 13048 || test ! -s conftest.err' 13049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13050 (eval $ac_try) 2>&5 13051 ac_status=$? 13052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13053 (exit $ac_status); }; } && 13054 { ac_try='test -s conftest$ac_exeext' 13055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13056 (eval $ac_try) 2>&5 13057 ac_status=$? 13058 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13059 (exit $ac_status); }; }; then 13060 ac_cv_lib_dld_dld_link=yes 13061else 13062 echo "$as_me: failed program was:" >&5 13063sed 's/^/| /' conftest.$ac_ext >&5 13064 13065ac_cv_lib_dld_dld_link=no 13066fi 13067rm -f conftest.err conftest.$ac_objext \ 13068 conftest$ac_exeext conftest.$ac_ext 13069LIBS=$ac_check_lib_save_LIBS 13070fi 13071echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 13072echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 13073if test $ac_cv_lib_dld_dld_link = yes; then 13074 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 13075fi 13076 13077 13078fi 13079 13080 13081fi 13082 13083 13084fi 13085 13086 13087fi 13088 13089 13090fi 13091 13092 ;; 13093 esac 13094 13095 if test "x$lt_cv_dlopen" != xno; then 13096 enable_dlopen=yes 13097 else 13098 enable_dlopen=no 13099 fi 13100 13101 case $lt_cv_dlopen in 13102 dlopen) 13103 save_CPPFLAGS="$CPPFLAGS" 13104 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13105 13106 save_LDFLAGS="$LDFLAGS" 13107 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13108 13109 save_LIBS="$LIBS" 13110 LIBS="$lt_cv_dlopen_libs $LIBS" 13111 13112 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 13113echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 13114if test "${lt_cv_dlopen_self+set}" = set; then 13115 echo $ECHO_N "(cached) $ECHO_C" >&6 13116else 13117 if test "$cross_compiling" = yes; then : 13118 lt_cv_dlopen_self=cross 13119else 13120 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13121 lt_status=$lt_dlunknown 13122 cat > conftest.$ac_ext <<EOF 13123#line 13123 "configure" 13124#include "confdefs.h" 13125 13126#if HAVE_DLFCN_H 13127#include <dlfcn.h> 13128#endif 13129 13130#include <stdio.h> 13131 13132#ifdef RTLD_GLOBAL 13133# define LT_DLGLOBAL RTLD_GLOBAL 13134#else 13135# ifdef DL_GLOBAL 13136# define LT_DLGLOBAL DL_GLOBAL 13137# else 13138# define LT_DLGLOBAL 0 13139# endif 13140#endif 13141 13142/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13143 find out it does not work in some platform. */ 13144#ifndef LT_DLLAZY_OR_NOW 13145# ifdef RTLD_LAZY 13146# define LT_DLLAZY_OR_NOW RTLD_LAZY 13147# else 13148# ifdef DL_LAZY 13149# define LT_DLLAZY_OR_NOW DL_LAZY 13150# else 13151# ifdef RTLD_NOW 13152# define LT_DLLAZY_OR_NOW RTLD_NOW 13153# else 13154# ifdef DL_NOW 13155# define LT_DLLAZY_OR_NOW DL_NOW 13156# else 13157# define LT_DLLAZY_OR_NOW 0 13158# endif 13159# endif 13160# endif 13161# endif 13162#endif 13163 13164#ifdef __cplusplus 13165extern "C" void exit (int); 13166#endif 13167 13168void fnord() { int i=42;} 13169int main () 13170{ 13171 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13172 int status = $lt_dlunknown; 13173 13174 if (self) 13175 { 13176 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13177 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13178 /* dlclose (self); */ 13179 } 13180 13181 exit (status); 13182} 13183EOF 13184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13185 (eval $ac_link) 2>&5 13186 ac_status=$? 13187 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13188 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 13189 (./conftest; exit; ) 2>/dev/null 13190 lt_status=$? 13191 case x$lt_status in 13192 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13193 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13194 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 13195 esac 13196 else : 13197 # compilation failed 13198 lt_cv_dlopen_self=no 13199 fi 13200fi 13201rm -fr conftest* 13202 13203 13204fi 13205echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 13206echo "${ECHO_T}$lt_cv_dlopen_self" >&6 13207 13208 if test "x$lt_cv_dlopen_self" = xyes; then 13209 LDFLAGS="$LDFLAGS $link_static_flag" 13210 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 13211echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 13212if test "${lt_cv_dlopen_self_static+set}" = set; then 13213 echo $ECHO_N "(cached) $ECHO_C" >&6 13214else 13215 if test "$cross_compiling" = yes; then : 13216 lt_cv_dlopen_self_static=cross 13217else 13218 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13219 lt_status=$lt_dlunknown 13220 cat > conftest.$ac_ext <<EOF 13221#line 13221 "configure" 13222#include "confdefs.h" 13223 13224#if HAVE_DLFCN_H 13225#include <dlfcn.h> 13226#endif 13227 13228#include <stdio.h> 13229 13230#ifdef RTLD_GLOBAL 13231# define LT_DLGLOBAL RTLD_GLOBAL 13232#else 13233# ifdef DL_GLOBAL 13234# define LT_DLGLOBAL DL_GLOBAL 13235# else 13236# define LT_DLGLOBAL 0 13237# endif 13238#endif 13239 13240/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13241 find out it does not work in some platform. */ 13242#ifndef LT_DLLAZY_OR_NOW 13243# ifdef RTLD_LAZY 13244# define LT_DLLAZY_OR_NOW RTLD_LAZY 13245# else 13246# ifdef DL_LAZY 13247# define LT_DLLAZY_OR_NOW DL_LAZY 13248# else 13249# ifdef RTLD_NOW 13250# define LT_DLLAZY_OR_NOW RTLD_NOW 13251# else 13252# ifdef DL_NOW 13253# define LT_DLLAZY_OR_NOW DL_NOW 13254# else 13255# define LT_DLLAZY_OR_NOW 0 13256# endif 13257# endif 13258# endif 13259# endif 13260#endif 13261 13262#ifdef __cplusplus 13263extern "C" void exit (int); 13264#endif 13265 13266void fnord() { int i=42;} 13267int main () 13268{ 13269 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13270 int status = $lt_dlunknown; 13271 13272 if (self) 13273 { 13274 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13275 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13276 /* dlclose (self); */ 13277 } 13278 13279 exit (status); 13280} 13281EOF 13282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13283 (eval $ac_link) 2>&5 13284 ac_status=$? 13285 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13286 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 13287 (./conftest; exit; ) 2>/dev/null 13288 lt_status=$? 13289 case x$lt_status in 13290 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13291 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13292 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 13293 esac 13294 else : 13295 # compilation failed 13296 lt_cv_dlopen_self_static=no 13297 fi 13298fi 13299rm -fr conftest* 13300 13301 13302fi 13303echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 13304echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 13305 fi 13306 13307 CPPFLAGS="$save_CPPFLAGS" 13308 LDFLAGS="$save_LDFLAGS" 13309 LIBS="$save_LIBS" 13310 ;; 13311 esac 13312 13313 case $lt_cv_dlopen_self in 13314 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13315 *) enable_dlopen_self=unknown ;; 13316 esac 13317 13318 case $lt_cv_dlopen_self_static in 13319 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13320 *) enable_dlopen_self_static=unknown ;; 13321 esac 13322fi 13323 13324 13325# The else clause should only fire when bootstrapping the 13326# libtool distribution, otherwise you forgot to ship ltmain.sh 13327# with your package, and you will get complaints that there are 13328# no rules to generate ltmain.sh. 13329if test -f "$ltmain"; then 13330 # See if we are running on zsh, and set the options which allow our commands through 13331 # without removal of \ escapes. 13332 if test -n "${ZSH_VERSION+set}" ; then 13333 setopt NO_GLOB_SUBST 13334 fi 13335 # Now quote all the things that may contain metacharacters while being 13336 # careful not to overquote the AC_SUBSTed values. We take copies of the 13337 # variables and quote the copies for generation of the libtool script. 13338 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 13339 SED SHELL STRIP \ 13340 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13341 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13342 deplibs_check_method reload_flag reload_cmds need_locks \ 13343 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13344 lt_cv_sys_global_symbol_to_c_name_address \ 13345 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13346 old_postinstall_cmds old_postuninstall_cmds \ 13347 compiler_CXX \ 13348 CC_CXX \ 13349 LD_CXX \ 13350 lt_prog_compiler_wl_CXX \ 13351 lt_prog_compiler_pic_CXX \ 13352 lt_prog_compiler_static_CXX \ 13353 lt_prog_compiler_no_builtin_flag_CXX \ 13354 export_dynamic_flag_spec_CXX \ 13355 thread_safe_flag_spec_CXX \ 13356 whole_archive_flag_spec_CXX \ 13357 enable_shared_with_static_runtimes_CXX \ 13358 old_archive_cmds_CXX \ 13359 old_archive_from_new_cmds_CXX \ 13360 predep_objects_CXX \ 13361 postdep_objects_CXX \ 13362 predeps_CXX \ 13363 postdeps_CXX \ 13364 compiler_lib_search_path_CXX \ 13365 archive_cmds_CXX \ 13366 archive_expsym_cmds_CXX \ 13367 postinstall_cmds_CXX \ 13368 postuninstall_cmds_CXX \ 13369 old_archive_from_expsyms_cmds_CXX \ 13370 allow_undefined_flag_CXX \ 13371 no_undefined_flag_CXX \ 13372 export_symbols_cmds_CXX \ 13373 hardcode_libdir_flag_spec_CXX \ 13374 hardcode_libdir_flag_spec_ld_CXX \ 13375 hardcode_libdir_separator_CXX \ 13376 hardcode_automatic_CXX \ 13377 module_cmds_CXX \ 13378 module_expsym_cmds_CXX \ 13379 lt_cv_prog_compiler_c_o_CXX \ 13380 exclude_expsyms_CXX \ 13381 include_expsyms_CXX; do 13382 13383 case $var in 13384 old_archive_cmds_CXX | \ 13385 old_archive_from_new_cmds_CXX | \ 13386 archive_cmds_CXX | \ 13387 archive_expsym_cmds_CXX | \ 13388 module_cmds_CXX | \ 13389 module_expsym_cmds_CXX | \ 13390 old_archive_from_expsyms_cmds_CXX | \ 13391 export_symbols_cmds_CXX | \ 13392 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13393 postinstall_cmds | postuninstall_cmds | \ 13394 old_postinstall_cmds | old_postuninstall_cmds | \ 13395 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13396 # Double-quote double-evaled strings. 13397 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13398 ;; 13399 *) 13400 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13401 ;; 13402 esac 13403 done 13404 13405 case $lt_echo in 13406 *'\$0 --fallback-echo"') 13407 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13408 ;; 13409 esac 13410 13411cfgfile="$ofile" 13412 13413 cat <<__EOF__ >> "$cfgfile" 13414# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13415 13416# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13417 13418# Shell to use when invoking shell scripts. 13419SHELL=$lt_SHELL 13420 13421# Whether or not to build shared libraries. 13422build_libtool_libs=$enable_shared 13423 13424# Whether or not to build static libraries. 13425build_old_libs=$enable_static 13426 13427# Whether or not to add -lc for building shared libraries. 13428build_libtool_need_lc=$archive_cmds_need_lc_CXX 13429 13430# Whether or not to disallow shared libs when runtime libs are static 13431allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13432 13433# Whether or not to optimize for fast installation. 13434fast_install=$enable_fast_install 13435 13436# The host system. 13437host_alias=$host_alias 13438host=$host 13439 13440# An echo program that does not interpret backslashes. 13441echo=$lt_echo 13442 13443# The archiver. 13444AR=$lt_AR 13445AR_FLAGS=$lt_AR_FLAGS 13446 13447# A C compiler. 13448LTCC=$lt_LTCC 13449 13450# A language-specific compiler. 13451CC=$lt_compiler_CXX 13452 13453# Is the compiler the GNU C compiler? 13454with_gcc=$GCC_CXX 13455 13456# An ERE matcher. 13457EGREP=$lt_EGREP 13458 13459# The linker used to build libraries. 13460LD=$lt_LD_CXX 13461 13462# Whether we need hard or soft links. 13463LN_S=$lt_LN_S 13464 13465# A BSD-compatible nm program. 13466NM=$lt_NM 13467 13468# A symbol stripping program 13469STRIP=$lt_STRIP 13470 13471# Used to examine libraries when file_magic_cmd begins "file" 13472MAGIC_CMD=$MAGIC_CMD 13473 13474# Used on cygwin: DLL creation program. 13475DLLTOOL="$DLLTOOL" 13476 13477# Used on cygwin: object dumper. 13478OBJDUMP="$OBJDUMP" 13479 13480# Used on cygwin: assembler. 13481AS="$AS" 13482 13483# The name of the directory that contains temporary libtool files. 13484objdir=$objdir 13485 13486# How to create reloadable object files. 13487reload_flag=$lt_reload_flag 13488reload_cmds=$lt_reload_cmds 13489 13490# How to pass a linker flag through the compiler. 13491wl=$lt_lt_prog_compiler_wl_CXX 13492 13493# Object file suffix (normally "o"). 13494objext="$ac_objext" 13495 13496# Old archive suffix (normally "a"). 13497libext="$libext" 13498 13499# Shared library suffix (normally ".so"). 13500shrext_cmds='$shrext_cmds' 13501 13502# Executable file suffix (normally ""). 13503exeext="$exeext" 13504 13505# Additional compiler flags for building library objects. 13506pic_flag=$lt_lt_prog_compiler_pic_CXX 13507pic_mode=$pic_mode 13508 13509# What is the maximum length of a command? 13510max_cmd_len=$lt_cv_sys_max_cmd_len 13511 13512# Does compiler simultaneously support -c and -o options? 13513compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13514 13515# Must we lock files when doing compilation ? 13516need_locks=$lt_need_locks 13517 13518# Do we need the lib prefix for modules? 13519need_lib_prefix=$need_lib_prefix 13520 13521# Do we need a version for libraries? 13522need_version=$need_version 13523 13524# Whether dlopen is supported. 13525dlopen_support=$enable_dlopen 13526 13527# Whether dlopen of programs is supported. 13528dlopen_self=$enable_dlopen_self 13529 13530# Whether dlopen of statically linked programs is supported. 13531dlopen_self_static=$enable_dlopen_self_static 13532 13533# Compiler flag to prevent dynamic linking. 13534link_static_flag=$lt_lt_prog_compiler_static_CXX 13535 13536# Compiler flag to turn off builtin functions. 13537no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13538 13539# Compiler flag to allow reflexive dlopens. 13540export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13541 13542# Compiler flag to generate shared objects directly from archives. 13543whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13544 13545# Compiler flag to generate thread-safe objects. 13546thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13547 13548# Library versioning type. 13549version_type=$version_type 13550 13551# Format of library name prefix. 13552libname_spec=$lt_libname_spec 13553 13554# List of archive names. First name is the real one, the rest are links. 13555# The last name is the one that the linker finds with -lNAME. 13556library_names_spec=$lt_library_names_spec 13557 13558# The coded name of the library, if different from the real name. 13559soname_spec=$lt_soname_spec 13560 13561# Commands used to build and install an old-style archive. 13562RANLIB=$lt_RANLIB 13563old_archive_cmds=$lt_old_archive_cmds_CXX 13564old_postinstall_cmds=$lt_old_postinstall_cmds 13565old_postuninstall_cmds=$lt_old_postuninstall_cmds 13566 13567# Create an old-style archive from a shared archive. 13568old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 13569 13570# Create a temporary old-style archive to link instead of a shared archive. 13571old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 13572 13573# Commands used to build and install a shared archive. 13574archive_cmds=$lt_archive_cmds_CXX 13575archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 13576postinstall_cmds=$lt_postinstall_cmds 13577postuninstall_cmds=$lt_postuninstall_cmds 13578 13579# Commands used to build a loadable module (assumed same as above if empty) 13580module_cmds=$lt_module_cmds_CXX 13581module_expsym_cmds=$lt_module_expsym_cmds_CXX 13582 13583# Commands to strip libraries. 13584old_striplib=$lt_old_striplib 13585striplib=$lt_striplib 13586 13587# Dependencies to place before the objects being linked to create a 13588# shared library. 13589predep_objects=$lt_predep_objects_CXX 13590 13591# Dependencies to place after the objects being linked to create a 13592# shared library. 13593postdep_objects=$lt_postdep_objects_CXX 13594 13595# Dependencies to place before the objects being linked to create a 13596# shared library. 13597predeps=$lt_predeps_CXX 13598 13599# Dependencies to place after the objects being linked to create a 13600# shared library. 13601postdeps=$lt_postdeps_CXX 13602 13603# The library search path used internally by the compiler when linking 13604# a shared library. 13605compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 13606 13607# Method to check whether dependent libraries are shared objects. 13608deplibs_check_method=$lt_deplibs_check_method 13609 13610# Command to use when deplibs_check_method == file_magic. 13611file_magic_cmd=$lt_file_magic_cmd 13612 13613# Flag that allows shared libraries with undefined symbols to be built. 13614allow_undefined_flag=$lt_allow_undefined_flag_CXX 13615 13616# Flag that forces no undefined symbols. 13617no_undefined_flag=$lt_no_undefined_flag_CXX 13618 13619# Commands used to finish a libtool library installation in a directory. 13620finish_cmds=$lt_finish_cmds 13621 13622# Same as above, but a single script fragment to be evaled but not shown. 13623finish_eval=$lt_finish_eval 13624 13625# Take the output of nm and produce a listing of raw symbols and C names. 13626global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13627 13628# Transform the output of nm in a proper C declaration 13629global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13630 13631# Transform the output of nm in a C name address pair 13632global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13633 13634# This is the shared library runtime path variable. 13635runpath_var=$runpath_var 13636 13637# This is the shared library path variable. 13638shlibpath_var=$shlibpath_var 13639 13640# Is shlibpath searched before the hard-coded library search path? 13641shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13642 13643# How to hardcode a shared library path into an executable. 13644hardcode_action=$hardcode_action_CXX 13645 13646# Whether we should hardcode library paths into libraries. 13647hardcode_into_libs=$hardcode_into_libs 13648 13649# Flag to hardcode \$libdir into a binary during linking. 13650# This must work even if \$libdir does not exist. 13651hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 13652 13653# If ld is used when linking, flag to hardcode \$libdir into 13654# a binary during linking. This must work even if \$libdir does 13655# not exist. 13656hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 13657 13658# Whether we need a single -rpath flag with a separated argument. 13659hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 13660 13661# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 13662# resulting binary. 13663hardcode_direct=$hardcode_direct_CXX 13664 13665# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 13666# resulting binary. 13667hardcode_minus_L=$hardcode_minus_L_CXX 13668 13669# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 13670# the resulting binary. 13671hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 13672 13673# Set to yes if building a shared library automatically hardcodes DIR into the library 13674# and all subsequent libraries and executables linked against it. 13675hardcode_automatic=$hardcode_automatic_CXX 13676 13677# Variables whose values should be saved in libtool wrapper scripts and 13678# restored at relink time. 13679variables_saved_for_relink="$variables_saved_for_relink" 13680 13681# Whether libtool must link a program against all its dependency libraries. 13682link_all_deplibs=$link_all_deplibs_CXX 13683 13684# Compile-time system search path for libraries 13685sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13686 13687# Run-time system search path for libraries 13688sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13689 13690# Fix the shell variable \$srcfile for the compiler. 13691fix_srcfile_path="$fix_srcfile_path_CXX" 13692 13693# Set to yes if exported symbols are required. 13694always_export_symbols=$always_export_symbols_CXX 13695 13696# The commands to list exported symbols. 13697export_symbols_cmds=$lt_export_symbols_cmds_CXX 13698 13699# The commands to extract the exported symbol list from a shared archive. 13700extract_expsyms_cmds=$lt_extract_expsyms_cmds 13701 13702# Symbols that should not be listed in the preloaded symbols. 13703exclude_expsyms=$lt_exclude_expsyms_CXX 13704 13705# Symbols that must always be exported. 13706include_expsyms=$lt_include_expsyms_CXX 13707 13708# ### END LIBTOOL TAG CONFIG: $tagname 13709 13710__EOF__ 13711 13712 13713else 13714 # If there is no Makefile yet, we rely on a make rule to execute 13715 # `config.status --recheck' to rerun these tests and create the 13716 # libtool script then. 13717 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 13718 if test -f "$ltmain_in"; then 13719 test -f Makefile && make "$ltmain" 13720 fi 13721fi 13722 13723 13724ac_ext=c 13725ac_cpp='$CPP $CPPFLAGS' 13726ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13727ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13728ac_compiler_gnu=$ac_cv_c_compiler_gnu 13729 13730CC=$lt_save_CC 13731LDCXX=$LD 13732LD=$lt_save_LD 13733GCC=$lt_save_GCC 13734with_gnu_ldcxx=$with_gnu_ld 13735with_gnu_ld=$lt_save_with_gnu_ld 13736lt_cv_path_LDCXX=$lt_cv_path_LD 13737lt_cv_path_LD=$lt_save_path_LD 13738lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 13739lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 13740 13741 else 13742 tagname="" 13743 fi 13744 ;; 13745 13746 F77) 13747 if test -n "$F77" && test "X$F77" != "Xno"; then 13748 13749ac_ext=f 13750ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 13751ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13752ac_compiler_gnu=$ac_cv_f77_compiler_gnu 13753 13754 13755archive_cmds_need_lc_F77=no 13756allow_undefined_flag_F77= 13757always_export_symbols_F77=no 13758archive_expsym_cmds_F77= 13759export_dynamic_flag_spec_F77= 13760hardcode_direct_F77=no 13761hardcode_libdir_flag_spec_F77= 13762hardcode_libdir_flag_spec_ld_F77= 13763hardcode_libdir_separator_F77= 13764hardcode_minus_L_F77=no 13765hardcode_automatic_F77=no 13766module_cmds_F77= 13767module_expsym_cmds_F77= 13768link_all_deplibs_F77=unknown 13769old_archive_cmds_F77=$old_archive_cmds 13770no_undefined_flag_F77= 13771whole_archive_flag_spec_F77= 13772enable_shared_with_static_runtimes_F77=no 13773 13774# Source file extension for f77 test sources. 13775ac_ext=f 13776 13777# Object file extension for compiled f77 test sources. 13778objext=o 13779objext_F77=$objext 13780 13781# Code to be used in simple compile tests 13782lt_simple_compile_test_code=" subroutine t\n return\n end\n" 13783 13784# Code to be used in simple link tests 13785lt_simple_link_test_code=" program t\n end\n" 13786 13787# ltmain only uses $CC for tagged configurations so make sure $CC is set. 13788 13789# If no C compiler was specified, use CC. 13790LTCC=${LTCC-"$CC"} 13791 13792# Allow CC to be a program name with arguments. 13793compiler=$CC 13794 13795 13796# Allow CC to be a program name with arguments. 13797lt_save_CC="$CC" 13798CC=${F77-"f77"} 13799compiler=$CC 13800compiler_F77=$CC 13801cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` 13802 13803echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 13804echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 13805echo "$as_me:$LINENO: result: $can_build_shared" >&5 13806echo "${ECHO_T}$can_build_shared" >&6 13807 13808echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 13809echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 13810test "$can_build_shared" = "no" && enable_shared=no 13811 13812# On AIX, shared libraries and static libraries use the same namespace, and 13813# are all built from PIC. 13814case "$host_os" in 13815aix3*) 13816 test "$enable_shared" = yes && enable_static=no 13817 if test -n "$RANLIB"; then 13818 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13819 postinstall_cmds='$RANLIB $lib' 13820 fi 13821 ;; 13822aix4* | aix5*) 13823 test "$enable_shared" = yes && enable_static=no 13824 ;; 13825esac 13826echo "$as_me:$LINENO: result: $enable_shared" >&5 13827echo "${ECHO_T}$enable_shared" >&6 13828 13829echo "$as_me:$LINENO: checking whether to build static libraries" >&5 13830echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 13831# Make sure either enable_shared or enable_static is yes. 13832test "$enable_shared" = yes || enable_static=yes 13833echo "$as_me:$LINENO: result: $enable_static" >&5 13834echo "${ECHO_T}$enable_static" >&6 13835 13836test "$ld_shlibs_F77" = no && can_build_shared=no 13837 13838GCC_F77="$G77" 13839LD_F77="$LD" 13840 13841lt_prog_compiler_wl_F77= 13842lt_prog_compiler_pic_F77= 13843lt_prog_compiler_static_F77= 13844 13845echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 13846echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 13847 13848 if test "$GCC" = yes; then 13849 lt_prog_compiler_wl_F77='-Wl,' 13850 lt_prog_compiler_static_F77='-static' 13851 13852 case $host_os in 13853 aix*) 13854 # All AIX code is PIC. 13855 if test "$host_cpu" = ia64; then 13856 # AIX 5 now supports IA64 processor 13857 lt_prog_compiler_static_F77='-Bstatic' 13858 fi 13859 ;; 13860 13861 amigaos*) 13862 # FIXME: we need at least 68020 code to build shared libraries, but 13863 # adding the `-m68020' flag to GCC prevents building anything better, 13864 # like `-m68040'. 13865 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 13866 ;; 13867 13868 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13869 # PIC is the default for these OSes. 13870 ;; 13871 13872 mingw* | pw32* | os2*) 13873 # This hack is so that the source file can tell whether it is being 13874 # built for inclusion in a dll (and should export symbols for example). 13875 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13876 ;; 13877 13878 darwin* | rhapsody*) 13879 # PIC is the default on this platform 13880 # Common symbols not allowed in MH_DYLIB files 13881 lt_prog_compiler_pic_F77='-fno-common' 13882 ;; 13883 13884 msdosdjgpp*) 13885 # Just because we use GCC doesn't mean we suddenly get shared libraries 13886 # on systems that don't support them. 13887 lt_prog_compiler_can_build_shared_F77=no 13888 enable_shared=no 13889 ;; 13890 13891 sysv4*MP*) 13892 if test -d /usr/nec; then 13893 lt_prog_compiler_pic_F77=-Kconform_pic 13894 fi 13895 ;; 13896 13897 hpux*) 13898 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13899 # not for PA HP-UX. 13900 case "$host_cpu" in 13901 hppa*64*|ia64*) 13902 # +Z the default 13903 ;; 13904 *) 13905 lt_prog_compiler_pic_F77='-fPIC' 13906 ;; 13907 esac 13908 ;; 13909 13910 *) 13911 lt_prog_compiler_pic_F77='-fPIC' 13912 ;; 13913 esac 13914 else 13915 # PORTME Check for flag to pass linker flags through the system compiler. 13916 case $host_os in 13917 aix*) 13918 lt_prog_compiler_wl_F77='-Wl,' 13919 if test "$host_cpu" = ia64; then 13920 # AIX 5 now supports IA64 processor 13921 lt_prog_compiler_static_F77='-Bstatic' 13922 else 13923 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 13924 fi 13925 ;; 13926 darwin*) 13927 # PIC is the default on this platform 13928 # Common symbols not allowed in MH_DYLIB files 13929 case "$cc_basename" in 13930 xlc*) 13931 lt_prog_compiler_pic_F77='-qnocommon' 13932 lt_prog_compiler_wl_F77='-Wl,' 13933 ;; 13934 esac 13935 ;; 13936 13937 mingw* | pw32* | os2*) 13938 # This hack is so that the source file can tell whether it is being 13939 # built for inclusion in a dll (and should export symbols for example). 13940 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13941 ;; 13942 13943 hpux9* | hpux10* | hpux11*) 13944 lt_prog_compiler_wl_F77='-Wl,' 13945 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13946 # not for PA HP-UX. 13947 case "$host_cpu" in 13948 hppa*64*|ia64*) 13949 # +Z the default 13950 ;; 13951 *) 13952 lt_prog_compiler_pic_F77='+Z' 13953 ;; 13954 esac 13955 # Is there a better lt_prog_compiler_static that works with the bundled CC? 13956 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 13957 ;; 13958 13959 irix5* | irix6* | nonstopux*) 13960 lt_prog_compiler_wl_F77='-Wl,' 13961 # PIC (with -KPIC) is the default. 13962 lt_prog_compiler_static_F77='-non_shared' 13963 ;; 13964 13965 newsos6) 13966 lt_prog_compiler_pic_F77='-KPIC' 13967 lt_prog_compiler_static_F77='-Bstatic' 13968 ;; 13969 13970 linux*) 13971 case $CC in 13972 icc* | ecc*) 13973 lt_prog_compiler_wl_F77='-Wl,' 13974 lt_prog_compiler_pic_F77='-KPIC' 13975 lt_prog_compiler_static_F77='-static' 13976 ;; 13977 ccc*) 13978 lt_prog_compiler_wl_F77='-Wl,' 13979 # All Alpha code is PIC. 13980 lt_prog_compiler_static_F77='-non_shared' 13981 ;; 13982 esac 13983 ;; 13984 13985 osf3* | osf4* | osf5*) 13986 lt_prog_compiler_wl_F77='-Wl,' 13987 # All OSF/1 code is PIC. 13988 lt_prog_compiler_static_F77='-non_shared' 13989 ;; 13990 13991 sco3.2v5*) 13992 lt_prog_compiler_pic_F77='-Kpic' 13993 lt_prog_compiler_static_F77='-dn' 13994 ;; 13995 13996 solaris*) 13997 lt_prog_compiler_wl_F77='-Wl,' 13998 lt_prog_compiler_pic_F77='-KPIC' 13999 lt_prog_compiler_static_F77='-Bstatic' 14000 ;; 14001 14002 sunos4*) 14003 lt_prog_compiler_wl_F77='-Qoption ld ' 14004 lt_prog_compiler_pic_F77='-PIC' 14005 lt_prog_compiler_static_F77='-Bstatic' 14006 ;; 14007 14008 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 14009 lt_prog_compiler_wl_F77='-Wl,' 14010 lt_prog_compiler_pic_F77='-KPIC' 14011 lt_prog_compiler_static_F77='-Bstatic' 14012 ;; 14013 14014 sysv4*MP*) 14015 if test -d /usr/nec ;then 14016 lt_prog_compiler_pic_F77='-Kconform_pic' 14017 lt_prog_compiler_static_F77='-Bstatic' 14018 fi 14019 ;; 14020 14021 uts4*) 14022 lt_prog_compiler_pic_F77='-pic' 14023 lt_prog_compiler_static_F77='-Bstatic' 14024 ;; 14025 14026 *) 14027 lt_prog_compiler_can_build_shared_F77=no 14028 ;; 14029 esac 14030 fi 14031 14032echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 14033echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 14034 14035# 14036# Check to make sure the PIC flag actually works. 14037# 14038if test -n "$lt_prog_compiler_pic_F77"; then 14039 14040echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 14041echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 14042if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 14043 echo $ECHO_N "(cached) $ECHO_C" >&6 14044else 14045 lt_prog_compiler_pic_works_F77=no 14046 ac_outfile=conftest.$ac_objext 14047 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14048 lt_compiler_flag="$lt_prog_compiler_pic_F77" 14049 # Insert the option either (1) after the last *FLAGS variable, or 14050 # (2) before a word containing "conftest.", or (3) at the end. 14051 # Note that $ac_compile itself does not contain backslashes and begins 14052 # with a dollar sign (not a hyphen), so the echo should work correctly. 14053 # The option is referenced via a variable to avoid confusing sed. 14054 lt_compile=`echo "$ac_compile" | $SED \ 14055 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 14056 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14057 -e 's:$: $lt_compiler_flag:'` 14058 (eval echo "\"\$as_me:14058: $lt_compile\"" >&5) 14059 (eval "$lt_compile" 2>conftest.err) 14060 ac_status=$? 14061 cat conftest.err >&5 14062 echo "$as_me:14062: \$? = $ac_status" >&5 14063 if (exit $ac_status) && test -s "$ac_outfile"; then 14064 # The compiler can only warn and ignore the option if not recognized 14065 # So say no if there are warnings 14066 if test ! -s conftest.err; then 14067 lt_prog_compiler_pic_works_F77=yes 14068 fi 14069 fi 14070 $rm conftest* 14071 14072fi 14073echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 14074echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 14075 14076if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 14077 case $lt_prog_compiler_pic_F77 in 14078 "" | " "*) ;; 14079 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 14080 esac 14081else 14082 lt_prog_compiler_pic_F77= 14083 lt_prog_compiler_can_build_shared_F77=no 14084fi 14085 14086fi 14087case "$host_os" in 14088 # For platforms which do not support PIC, -DPIC is meaningless: 14089 *djgpp*) 14090 lt_prog_compiler_pic_F77= 14091 ;; 14092 *) 14093 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 14094 ;; 14095esac 14096 14097echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14098echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 14099if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 14100 echo $ECHO_N "(cached) $ECHO_C" >&6 14101else 14102 lt_cv_prog_compiler_c_o_F77=no 14103 $rm -r conftest 2>/dev/null 14104 mkdir conftest 14105 cd conftest 14106 mkdir out 14107 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14108 14109 lt_compiler_flag="-o out/conftest2.$ac_objext" 14110 # Insert the option either (1) after the last *FLAGS variable, or 14111 # (2) before a word containing "conftest.", or (3) at the end. 14112 # Note that $ac_compile itself does not contain backslashes and begins 14113 # with a dollar sign (not a hyphen), so the echo should work correctly. 14114 lt_compile=`echo "$ac_compile" | $SED \ 14115 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 14116 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14117 -e 's:$: $lt_compiler_flag:'` 14118 (eval echo "\"\$as_me:14118: $lt_compile\"" >&5) 14119 (eval "$lt_compile" 2>out/conftest.err) 14120 ac_status=$? 14121 cat out/conftest.err >&5 14122 echo "$as_me:14122: \$? = $ac_status" >&5 14123 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14124 then 14125 # The compiler can only warn and ignore the option if not recognized 14126 # So say no if there are warnings 14127 if test ! -s out/conftest.err; then 14128 lt_cv_prog_compiler_c_o_F77=yes 14129 fi 14130 fi 14131 chmod u+w . 14132 $rm conftest* 14133 # SGI C++ compiler will create directory out/ii_files/ for 14134 # template instantiation 14135 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14136 $rm out/* && rmdir out 14137 cd .. 14138 rmdir conftest 14139 $rm conftest* 14140 14141fi 14142echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 14143echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 14144 14145 14146hard_links="nottested" 14147if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14148 # do not overwrite the value of need_locks provided by the user 14149 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14150echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 14151 hard_links=yes 14152 $rm conftest* 14153 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14154 touch conftest.a 14155 ln conftest.a conftest.b 2>&5 || hard_links=no 14156 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14157 echo "$as_me:$LINENO: result: $hard_links" >&5 14158echo "${ECHO_T}$hard_links" >&6 14159 if test "$hard_links" = no; then 14160 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14161echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14162 need_locks=warn 14163 fi 14164else 14165 need_locks=no 14166fi 14167 14168echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14169echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 14170 14171 runpath_var= 14172 allow_undefined_flag_F77= 14173 enable_shared_with_static_runtimes_F77=no 14174 archive_cmds_F77= 14175 archive_expsym_cmds_F77= 14176 old_archive_From_new_cmds_F77= 14177 old_archive_from_expsyms_cmds_F77= 14178 export_dynamic_flag_spec_F77= 14179 whole_archive_flag_spec_F77= 14180 thread_safe_flag_spec_F77= 14181 hardcode_libdir_flag_spec_F77= 14182 hardcode_libdir_flag_spec_ld_F77= 14183 hardcode_libdir_separator_F77= 14184 hardcode_direct_F77=no 14185 hardcode_minus_L_F77=no 14186 hardcode_shlibpath_var_F77=unsupported 14187 link_all_deplibs_F77=unknown 14188 hardcode_automatic_F77=no 14189 module_cmds_F77= 14190 module_expsym_cmds_F77= 14191 always_export_symbols_F77=no 14192 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14193 # include_expsyms should be a list of space-separated symbols to be *always* 14194 # included in the symbol list 14195 include_expsyms_F77= 14196 # exclude_expsyms can be an extended regexp of symbols to exclude 14197 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14198 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14199 # as well as any symbol that contains `d'. 14200 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 14201 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14202 # platforms (ab)use it in PIC code, but their linkers get confused if 14203 # the symbol is explicitly referenced. Since portable code cannot 14204 # rely on this symbol name, it's probably fine to never include it in 14205 # preloaded symbol tables. 14206 extract_expsyms_cmds= 14207 14208 case $host_os in 14209 cygwin* | mingw* | pw32*) 14210 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14211 # When not using gcc, we currently assume that we are using 14212 # Microsoft Visual C++. 14213 if test "$GCC" != yes; then 14214 with_gnu_ld=no 14215 fi 14216 ;; 14217 openbsd*) 14218 with_gnu_ld=no 14219 ;; 14220 esac 14221 14222 ld_shlibs_F77=yes 14223 if test "$with_gnu_ld" = yes; then 14224 # If archive_cmds runs LD, not CC, wlarc should be empty 14225 wlarc='${wl}' 14226 14227 # See if GNU ld supports shared libraries. 14228 case $host_os in 14229 aix3* | aix4* | aix5*) 14230 # On AIX/PPC, the GNU linker is very broken 14231 if test "$host_cpu" != ia64; then 14232 ld_shlibs_F77=no 14233 cat <<EOF 1>&2 14234 14235*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14236*** to be unable to reliably create shared libraries on AIX. 14237*** Therefore, libtool is disabling shared libraries support. If you 14238*** really care for shared libraries, you may want to modify your PATH 14239*** so that a non-GNU linker is found, and then restart. 14240 14241EOF 14242 fi 14243 ;; 14244 14245 amigaos*) 14246 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)' 14247 hardcode_libdir_flag_spec_F77='-L$libdir' 14248 hardcode_minus_L_F77=yes 14249 14250 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14251 # that the semantics of dynamic libraries on AmigaOS, at least up 14252 # to version 4, is to share data among multiple programs linked 14253 # with the same dynamic library. Since this doesn't match the 14254 # behavior of shared libraries on other platforms, we can't use 14255 # them. 14256 ld_shlibs_F77=no 14257 ;; 14258 14259 beos*) 14260 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14261 allow_undefined_flag_F77=unsupported 14262 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14263 # support --undefined. This deserves some investigation. FIXME 14264 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14265 else 14266 ld_shlibs_F77=no 14267 fi 14268 ;; 14269 14270 cygwin* | mingw* | pw32*) 14271 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14272 # as there is no search path for DLLs. 14273 hardcode_libdir_flag_spec_F77='-L$libdir' 14274 allow_undefined_flag_F77=unsupported 14275 always_export_symbols_F77=no 14276 enable_shared_with_static_runtimes_F77=yes 14277 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 14278 14279 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14280 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 14281 # If the export-symbols file already is a .def file (1st line 14282 # is EXPORTS), use it as is; otherwise, prepend... 14283 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14284 cp $export_symbols $output_objdir/$soname.def; 14285 else 14286 echo EXPORTS > $output_objdir/$soname.def; 14287 cat $export_symbols >> $output_objdir/$soname.def; 14288 fi~ 14289 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 14290 else 14291 ld_shlibs=no 14292 fi 14293 ;; 14294 14295 netbsd*) 14296 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14297 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14298 wlarc= 14299 else 14300 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14301 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14302 fi 14303 ;; 14304 14305 solaris* | sysv5*) 14306 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14307 ld_shlibs_F77=no 14308 cat <<EOF 1>&2 14309 14310*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14311*** create shared libraries on Solaris systems. Therefore, libtool 14312*** is disabling shared libraries support. We urge you to upgrade GNU 14313*** binutils to release 2.9.1 or newer. Another option is to modify 14314*** your PATH or compiler configuration so that the native linker is 14315*** used, and then restart. 14316 14317EOF 14318 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14319 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14320 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14321 else 14322 ld_shlibs_F77=no 14323 fi 14324 ;; 14325 14326 sunos4*) 14327 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14328 wlarc= 14329 hardcode_direct_F77=yes 14330 hardcode_shlibpath_var_F77=no 14331 ;; 14332 14333 linux*) 14334 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14335 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14336 archive_cmds_F77="$tmp_archive_cmds" 14337 supports_anon_versioning=no 14338 case `$LD -v 2>/dev/null` in 14339 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14340 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14341 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14342 *\ 2.11.*) ;; # other 2.11 versions 14343 *) supports_anon_versioning=yes ;; 14344 esac 14345 if test $supports_anon_versioning = yes; then 14346 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 14347cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14348$echo "local: *; };" >> $output_objdir/$libname.ver~ 14349 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14350 else 14351 archive_expsym_cmds_F77="$tmp_archive_cmds" 14352 fi 14353 else 14354 ld_shlibs_F77=no 14355 fi 14356 ;; 14357 14358 *) 14359 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14360 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14361 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14362 else 14363 ld_shlibs_F77=no 14364 fi 14365 ;; 14366 esac 14367 14368 if test "$ld_shlibs_F77" = yes; then 14369 runpath_var=LD_RUN_PATH 14370 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14371 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14372 # ancient GNU ld didn't support --whole-archive et. al. 14373 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14374 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14375 else 14376 whole_archive_flag_spec_F77= 14377 fi 14378 fi 14379 else 14380 # PORTME fill in a description of your system's linker (not GNU ld) 14381 case $host_os in 14382 aix3*) 14383 allow_undefined_flag_F77=unsupported 14384 always_export_symbols_F77=yes 14385 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' 14386 # Note: this linker hardcodes the directories in LIBPATH if there 14387 # are no directories specified by -L. 14388 hardcode_minus_L_F77=yes 14389 if test "$GCC" = yes && test -z "$link_static_flag"; then 14390 # Neither direct hardcoding nor static linking is supported with a 14391 # broken collect2. 14392 hardcode_direct_F77=unsupported 14393 fi 14394 ;; 14395 14396 aix4* | aix5*) 14397 if test "$host_cpu" = ia64; then 14398 # On IA64, the linker does run time linking by default, so we don't 14399 # have to do anything special. 14400 aix_use_runtimelinking=no 14401 exp_sym_flag='-Bexport' 14402 no_entry_flag="" 14403 else 14404 # If we're using GNU nm, then we don't want the "-C" option. 14405 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14406 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 14407 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' 14408 else 14409 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' 14410 fi 14411 aix_use_runtimelinking=no 14412 14413 # Test if we are trying to use run time linking or normal 14414 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14415 # need to do runtime linking. 14416 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 14417 for ld_flag in $LDFLAGS; do 14418 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 14419 aix_use_runtimelinking=yes 14420 break 14421 fi 14422 done 14423 esac 14424 14425 exp_sym_flag='-bexport' 14426 no_entry_flag='-bnoentry' 14427 fi 14428 14429 # When large executables or shared objects are built, AIX ld can 14430 # have problems creating the table of contents. If linking a library 14431 # or program results in "error TOC overflow" add -mminimal-toc to 14432 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14433 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14434 14435 archive_cmds_F77='' 14436 hardcode_direct_F77=yes 14437 hardcode_libdir_separator_F77=':' 14438 link_all_deplibs_F77=yes 14439 14440 if test "$GCC" = yes; then 14441 case $host_os in aix4.012|aix4.012.*) 14442 # We only want to do this on AIX 4.2 and lower, the check 14443 # below for broken collect2 doesn't work under 4.3+ 14444 collect2name=`${CC} -print-prog-name=collect2` 14445 if test -f "$collect2name" && \ 14446 strings "$collect2name" | grep resolve_lib_name >/dev/null 14447 then 14448 # We have reworked collect2 14449 hardcode_direct_F77=yes 14450 else 14451 # We have old collect2 14452 hardcode_direct_F77=unsupported 14453 # It fails to find uninstalled libraries when the uninstalled 14454 # path is not listed in the libpath. Setting hardcode_minus_L 14455 # to unsupported forces relinking 14456 hardcode_minus_L_F77=yes 14457 hardcode_libdir_flag_spec_F77='-L$libdir' 14458 hardcode_libdir_separator_F77= 14459 fi 14460 esac 14461 shared_flag='-shared' 14462 else 14463 # not using gcc 14464 if test "$host_cpu" = ia64; then 14465 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14466 # chokes on -Wl,-G. The following line is correct: 14467 shared_flag='-G' 14468 else 14469 if test "$aix_use_runtimelinking" = yes; then 14470 shared_flag='${wl}-G' 14471 else 14472 shared_flag='${wl}-bM:SRE' 14473 fi 14474 fi 14475 fi 14476 14477 # It seems that -bexpall does not export symbols beginning with 14478 # underscore (_), so it is better to generate a list of symbols to export. 14479 always_export_symbols_F77=yes 14480 if test "$aix_use_runtimelinking" = yes; then 14481 # Warning - without using the other runtime loading flags (-brtl), 14482 # -berok will link without error, but may produce a broken library. 14483 allow_undefined_flag_F77='-berok' 14484 # Determine the default libpath from the value encoded in an empty executable. 14485 cat >conftest.$ac_ext <<_ACEOF 14486 program main 14487 14488 end 14489_ACEOF 14490rm -f conftest.$ac_objext conftest$ac_exeext 14491if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14492 (eval $ac_link) 2>conftest.er1 14493 ac_status=$? 14494 grep -v '^ *+' conftest.er1 >conftest.err 14495 rm -f conftest.er1 14496 cat conftest.err >&5 14497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14498 (exit $ac_status); } && 14499 { ac_try='test -z "$ac_f77_werror_flag" 14500 || test ! -s conftest.err' 14501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14502 (eval $ac_try) 2>&5 14503 ac_status=$? 14504 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14505 (exit $ac_status); }; } && 14506 { ac_try='test -s conftest$ac_exeext' 14507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14508 (eval $ac_try) 2>&5 14509 ac_status=$? 14510 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14511 (exit $ac_status); }; }; then 14512 14513aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14514}'` 14515# Check for a 64-bit object if we didn't find anything. 14516if 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; } 14517}'`; fi 14518else 14519 echo "$as_me: failed program was:" >&5 14520sed 's/^/| /' conftest.$ac_ext >&5 14521 14522fi 14523rm -f conftest.err conftest.$ac_objext \ 14524 conftest$ac_exeext conftest.$ac_ext 14525if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14526 14527 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14528 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" 14529 else 14530 if test "$host_cpu" = ia64; then 14531 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 14532 allow_undefined_flag_F77="-z nodefs" 14533 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" 14534 else 14535 # Determine the default libpath from the value encoded in an empty executable. 14536 cat >conftest.$ac_ext <<_ACEOF 14537 program main 14538 14539 end 14540_ACEOF 14541rm -f conftest.$ac_objext conftest$ac_exeext 14542if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14543 (eval $ac_link) 2>conftest.er1 14544 ac_status=$? 14545 grep -v '^ *+' conftest.er1 >conftest.err 14546 rm -f conftest.er1 14547 cat conftest.err >&5 14548 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14549 (exit $ac_status); } && 14550 { ac_try='test -z "$ac_f77_werror_flag" 14551 || test ! -s conftest.err' 14552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14553 (eval $ac_try) 2>&5 14554 ac_status=$? 14555 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14556 (exit $ac_status); }; } && 14557 { ac_try='test -s conftest$ac_exeext' 14558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14559 (eval $ac_try) 2>&5 14560 ac_status=$? 14561 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14562 (exit $ac_status); }; }; then 14563 14564aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14565}'` 14566# Check for a 64-bit object if we didn't find anything. 14567if 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; } 14568}'`; fi 14569else 14570 echo "$as_me: failed program was:" >&5 14571sed 's/^/| /' conftest.$ac_ext >&5 14572 14573fi 14574rm -f conftest.err conftest.$ac_objext \ 14575 conftest$ac_exeext conftest.$ac_ext 14576if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14577 14578 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14579 # Warning - without using the other run time loading flags, 14580 # -berok will link without error, but may produce a broken library. 14581 no_undefined_flag_F77=' ${wl}-bernotok' 14582 allow_undefined_flag_F77=' ${wl}-berok' 14583 # -bexpall does not export symbols beginning with underscore (_) 14584 always_export_symbols_F77=yes 14585 # Exported symbols can be pulled into shared objects from archives 14586 whole_archive_flag_spec_F77=' ' 14587 archive_cmds_need_lc_F77=yes 14588 # This is similar to how AIX traditionally builds it's shared libraries. 14589 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' 14590 fi 14591 fi 14592 ;; 14593 14594 amigaos*) 14595 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)' 14596 hardcode_libdir_flag_spec_F77='-L$libdir' 14597 hardcode_minus_L_F77=yes 14598 # see comment about different semantics on the GNU ld section 14599 ld_shlibs_F77=no 14600 ;; 14601 14602 bsdi[45]*) 14603 export_dynamic_flag_spec_F77=-rdynamic 14604 ;; 14605 14606 cygwin* | mingw* | pw32*) 14607 # When not using gcc, we currently assume that we are using 14608 # Microsoft Visual C++. 14609 # hardcode_libdir_flag_spec is actually meaningless, as there is 14610 # no search path for DLLs. 14611 hardcode_libdir_flag_spec_F77=' ' 14612 allow_undefined_flag_F77=unsupported 14613 # Tell ltmain to make .lib files, not .a files. 14614 libext=lib 14615 # Tell ltmain to make .dll files, not .so files. 14616 shrext_cmds=".dll" 14617 # FIXME: Setting linknames here is a bad hack. 14618 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 14619 # The linker will automatically build a .lib file if we build a DLL. 14620 old_archive_From_new_cmds_F77='true' 14621 # FIXME: Should let the user specify the lib program. 14622 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 14623 fix_srcfile_path='`cygpath -w "$srcfile"`' 14624 enable_shared_with_static_runtimes_F77=yes 14625 ;; 14626 14627 darwin* | rhapsody*) 14628 case "$host_os" in 14629 rhapsody* | darwin1.[012]) 14630 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 14631 ;; 14632 *) # Darwin 1.3 on 14633 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 14634 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14635 else 14636 case ${MACOSX_DEPLOYMENT_TARGET} in 14637 10.[012]) 14638 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14639 ;; 14640 10.*) 14641 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 14642 ;; 14643 esac 14644 fi 14645 ;; 14646 esac 14647 archive_cmds_need_lc_F77=no 14648 hardcode_direct_F77=no 14649 hardcode_automatic_F77=yes 14650 hardcode_shlibpath_var_F77=unsupported 14651 whole_archive_flag_spec_F77='' 14652 link_all_deplibs_F77=yes 14653 if test "$GCC" = yes ; then 14654 output_verbose_link_cmd='echo' 14655 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 14656 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14657 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 14658 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 14659 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}' 14660 else 14661 case "$cc_basename" in 14662 xlc*) 14663 output_verbose_link_cmd='echo' 14664 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 14665 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14666 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 14667 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 14668 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}' 14669 ;; 14670 *) 14671 ld_shlibs_F77=no 14672 ;; 14673 esac 14674 fi 14675 ;; 14676 14677 dgux*) 14678 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14679 hardcode_libdir_flag_spec_F77='-L$libdir' 14680 hardcode_shlibpath_var_F77=no 14681 ;; 14682 14683 freebsd1*) 14684 ld_shlibs_F77=no 14685 ;; 14686 14687 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 14688 # support. Future versions do this automatically, but an explicit c++rt0.o 14689 # does not break anything, and helps significantly (at the cost of a little 14690 # extra space). 14691 freebsd2.2*) 14692 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 14693 hardcode_libdir_flag_spec_F77='-R$libdir' 14694 hardcode_direct_F77=yes 14695 hardcode_shlibpath_var_F77=no 14696 ;; 14697 14698 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 14699 freebsd2*) 14700 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14701 hardcode_direct_F77=yes 14702 hardcode_minus_L_F77=yes 14703 hardcode_shlibpath_var_F77=no 14704 ;; 14705 14706 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 14707 freebsd* | kfreebsd*-gnu) 14708 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 14709 hardcode_libdir_flag_spec_F77='-R$libdir' 14710 hardcode_direct_F77=yes 14711 hardcode_shlibpath_var_F77=no 14712 ;; 14713 14714 hpux9*) 14715 if test "$GCC" = yes; then 14716 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' 14717 else 14718 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' 14719 fi 14720 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14721 hardcode_libdir_separator_F77=: 14722 hardcode_direct_F77=yes 14723 14724 # hardcode_minus_L: Not really in the search PATH, 14725 # but as the default location of the library. 14726 hardcode_minus_L_F77=yes 14727 export_dynamic_flag_spec_F77='${wl}-E' 14728 ;; 14729 14730 hpux10* | hpux11*) 14731 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14732 case "$host_cpu" in 14733 hppa*64*|ia64*) 14734 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14735 ;; 14736 *) 14737 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14738 ;; 14739 esac 14740 else 14741 case "$host_cpu" in 14742 hppa*64*|ia64*) 14743 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 14744 ;; 14745 *) 14746 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14747 ;; 14748 esac 14749 fi 14750 if test "$with_gnu_ld" = no; then 14751 case "$host_cpu" in 14752 hppa*64*) 14753 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14754 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 14755 hardcode_libdir_separator_F77=: 14756 hardcode_direct_F77=no 14757 hardcode_shlibpath_var_F77=no 14758 ;; 14759 ia64*) 14760 hardcode_libdir_flag_spec_F77='-L$libdir' 14761 hardcode_direct_F77=no 14762 hardcode_shlibpath_var_F77=no 14763 14764 # hardcode_minus_L: Not really in the search PATH, 14765 # but as the default location of the library. 14766 hardcode_minus_L_F77=yes 14767 ;; 14768 *) 14769 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14770 hardcode_libdir_separator_F77=: 14771 hardcode_direct_F77=yes 14772 export_dynamic_flag_spec_F77='${wl}-E' 14773 14774 # hardcode_minus_L: Not really in the search PATH, 14775 # but as the default location of the library. 14776 hardcode_minus_L_F77=yes 14777 ;; 14778 esac 14779 fi 14780 ;; 14781 14782 irix5* | irix6* | nonstopux*) 14783 if test "$GCC" = yes; then 14784 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' 14785 else 14786 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' 14787 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 14788 fi 14789 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14790 hardcode_libdir_separator_F77=: 14791 link_all_deplibs_F77=yes 14792 ;; 14793 14794 netbsd*) 14795 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14796 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 14797 else 14798 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 14799 fi 14800 hardcode_libdir_flag_spec_F77='-R$libdir' 14801 hardcode_direct_F77=yes 14802 hardcode_shlibpath_var_F77=no 14803 ;; 14804 14805 newsos6) 14806 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14807 hardcode_direct_F77=yes 14808 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14809 hardcode_libdir_separator_F77=: 14810 hardcode_shlibpath_var_F77=no 14811 ;; 14812 14813 openbsd*) 14814 hardcode_direct_F77=yes 14815 hardcode_shlibpath_var_F77=no 14816 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14817 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14818 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 14819 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14820 export_dynamic_flag_spec_F77='${wl}-E' 14821 else 14822 case $host_os in 14823 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 14824 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14825 hardcode_libdir_flag_spec_F77='-R$libdir' 14826 ;; 14827 *) 14828 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14829 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14830 ;; 14831 esac 14832 fi 14833 ;; 14834 14835 os2*) 14836 hardcode_libdir_flag_spec_F77='-L$libdir' 14837 hardcode_minus_L_F77=yes 14838 allow_undefined_flag_F77=unsupported 14839 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' 14840 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 14841 ;; 14842 14843 osf3*) 14844 if test "$GCC" = yes; then 14845 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14846 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' 14847 else 14848 allow_undefined_flag_F77=' -expect_unresolved \*' 14849 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' 14850 fi 14851 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14852 hardcode_libdir_separator_F77=: 14853 ;; 14854 14855 osf4* | osf5*) # as osf3* with the addition of -msym flag 14856 if test "$GCC" = yes; then 14857 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14858 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' 14859 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14860 else 14861 allow_undefined_flag_F77=' -expect_unresolved \*' 14862 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' 14863 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~ 14864 $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' 14865 14866 # Both c and cxx compiler support -rpath directly 14867 hardcode_libdir_flag_spec_F77='-rpath $libdir' 14868 fi 14869 hardcode_libdir_separator_F77=: 14870 ;; 14871 14872 sco3.2v5*) 14873 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14874 hardcode_shlibpath_var_F77=no 14875 export_dynamic_flag_spec_F77='${wl}-Bexport' 14876 runpath_var=LD_RUN_PATH 14877 hardcode_runpath_var=yes 14878 ;; 14879 14880 solaris*) 14881 no_undefined_flag_F77=' -z text' 14882 if test "$GCC" = yes; then 14883 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14884 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14885 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 14886 else 14887 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14888 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14889 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 14890 fi 14891 hardcode_libdir_flag_spec_F77='-R$libdir' 14892 hardcode_shlibpath_var_F77=no 14893 case $host_os in 14894 solaris2.[0-5] | solaris2.[0-5].*) ;; 14895 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 14896 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 14897 esac 14898 link_all_deplibs_F77=yes 14899 ;; 14900 14901 sunos4*) 14902 if test "x$host_vendor" = xsequent; then 14903 # Use $CC to link under sequent, because it throws in some extra .o 14904 # files that make .init and .fini sections work. 14905 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 14906 else 14907 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 14908 fi 14909 hardcode_libdir_flag_spec_F77='-L$libdir' 14910 hardcode_direct_F77=yes 14911 hardcode_minus_L_F77=yes 14912 hardcode_shlibpath_var_F77=no 14913 ;; 14914 14915 sysv4) 14916 case $host_vendor in 14917 sni) 14918 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14919 hardcode_direct_F77=yes # is this really true??? 14920 ;; 14921 siemens) 14922 ## LD is ld it makes a PLAMLIB 14923 ## CC just makes a GrossModule. 14924 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14925 reload_cmds_F77='$CC -r -o $output$reload_objs' 14926 hardcode_direct_F77=no 14927 ;; 14928 motorola) 14929 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14930 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 14931 ;; 14932 esac 14933 runpath_var='LD_RUN_PATH' 14934 hardcode_shlibpath_var_F77=no 14935 ;; 14936 14937 sysv4.3*) 14938 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14939 hardcode_shlibpath_var_F77=no 14940 export_dynamic_flag_spec_F77='-Bexport' 14941 ;; 14942 14943 sysv4*MP*) 14944 if test -d /usr/nec; then 14945 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14946 hardcode_shlibpath_var_F77=no 14947 runpath_var=LD_RUN_PATH 14948 hardcode_runpath_var=yes 14949 ld_shlibs_F77=yes 14950 fi 14951 ;; 14952 14953 sysv4.2uw2*) 14954 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14955 hardcode_direct_F77=yes 14956 hardcode_minus_L_F77=no 14957 hardcode_shlibpath_var_F77=no 14958 hardcode_runpath_var=yes 14959 runpath_var=LD_RUN_PATH 14960 ;; 14961 14962 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 14963 no_undefined_flag_F77='${wl}-z ${wl}text' 14964 if test "$GCC" = yes; then 14965 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14966 else 14967 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14968 fi 14969 runpath_var='LD_RUN_PATH' 14970 hardcode_shlibpath_var_F77=no 14971 ;; 14972 14973 sysv5*) 14974 no_undefined_flag_F77=' -z text' 14975 # $CC -shared without GNU ld will not create a library from C++ 14976 # object files and a static libstdc++, better avoid it by now 14977 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14978 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14979 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 14980 hardcode_libdir_flag_spec_F77= 14981 hardcode_shlibpath_var_F77=no 14982 runpath_var='LD_RUN_PATH' 14983 ;; 14984 14985 uts4*) 14986 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14987 hardcode_libdir_flag_spec_F77='-L$libdir' 14988 hardcode_shlibpath_var_F77=no 14989 ;; 14990 14991 *) 14992 ld_shlibs_F77=no 14993 ;; 14994 esac 14995 fi 14996 14997echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 14998echo "${ECHO_T}$ld_shlibs_F77" >&6 14999test "$ld_shlibs_F77" = no && can_build_shared=no 15000 15001variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15002if test "$GCC" = yes; then 15003 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15004fi 15005 15006# 15007# Do we need to explicitly link libc? 15008# 15009case "x$archive_cmds_need_lc_F77" in 15010x|xyes) 15011 # Assume -lc should be added 15012 archive_cmds_need_lc_F77=yes 15013 15014 if test "$enable_shared" = yes && test "$GCC" = yes; then 15015 case $archive_cmds_F77 in 15016 *'~'*) 15017 # FIXME: we may have to deal with multi-command sequences. 15018 ;; 15019 '$CC '*) 15020 # Test whether the compiler implicitly links with -lc since on some 15021 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15022 # to ld, don't add -lc before -lgcc. 15023 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15024echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 15025 $rm conftest* 15026 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15027 15028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15029 (eval $ac_compile) 2>&5 15030 ac_status=$? 15031 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15032 (exit $ac_status); } 2>conftest.err; then 15033 soname=conftest 15034 lib=conftest 15035 libobjs=conftest.$ac_objext 15036 deplibs= 15037 wl=$lt_prog_compiler_wl_F77 15038 compiler_flags=-v 15039 linker_flags=-v 15040 verstring= 15041 output_objdir=. 15042 libname=conftest 15043 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 15044 allow_undefined_flag_F77= 15045 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15046 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15047 ac_status=$? 15048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15049 (exit $ac_status); } 15050 then 15051 archive_cmds_need_lc_F77=no 15052 else 15053 archive_cmds_need_lc_F77=yes 15054 fi 15055 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15056 else 15057 cat conftest.err 1>&5 15058 fi 15059 $rm conftest* 15060 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 15061echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 15062 ;; 15063 esac 15064 fi 15065 ;; 15066esac 15067 15068echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15069echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 15070library_names_spec= 15071libname_spec='lib$name' 15072soname_spec= 15073shrext_cmds=".so" 15074postinstall_cmds= 15075postuninstall_cmds= 15076finish_cmds= 15077finish_eval= 15078shlibpath_var= 15079shlibpath_overrides_runpath=unknown 15080version_type=none 15081dynamic_linker="$host_os ld.so" 15082sys_lib_dlsearch_path_spec="/lib /usr/lib" 15083if test "$GCC" = yes; then 15084 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15085 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 15086 # if the path contains ";" then we assume it to be the separator 15087 # otherwise default to the standard path separator (i.e. ":") - it is 15088 # assumed that no part of a normal pathname contains ";" but that should 15089 # okay in the real world where ";" in dirpaths is itself problematic. 15090 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15091 else 15092 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15093 fi 15094else 15095 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15096fi 15097need_lib_prefix=unknown 15098hardcode_into_libs=no 15099 15100# when you set need_version to no, make sure it does not cause -set_version 15101# flags to be left without arguments 15102need_version=unknown 15103 15104case $host_os in 15105aix3*) 15106 version_type=linux 15107 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15108 shlibpath_var=LIBPATH 15109 15110 # AIX 3 has no versioning support, so we append a major version to the name. 15111 soname_spec='${libname}${release}${shared_ext}$major' 15112 ;; 15113 15114aix4* | aix5*) 15115 version_type=linux 15116 need_lib_prefix=no 15117 need_version=no 15118 hardcode_into_libs=yes 15119 if test "$host_cpu" = ia64; then 15120 # AIX 5 supports IA64 15121 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15122 shlibpath_var=LD_LIBRARY_PATH 15123 else 15124 # With GCC up to 2.95.x, collect2 would create an import file 15125 # for dependence libraries. The import file would start with 15126 # the line `#! .'. This would cause the generated library to 15127 # depend on `.', always an invalid library. This was fixed in 15128 # development snapshots of GCC prior to 3.0. 15129 case $host_os in 15130 aix4 | aix4.[01] | aix4.[01].*) 15131 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15132 echo ' yes ' 15133 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15134 : 15135 else 15136 can_build_shared=no 15137 fi 15138 ;; 15139 esac 15140 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15141 # soname into executable. Probably we can add versioning support to 15142 # collect2, so additional links can be useful in future. 15143 if test "$aix_use_runtimelinking" = yes; then 15144 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15145 # instead of lib<name>.a to let people know that these are not 15146 # typical AIX shared libraries. 15147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15148 else 15149 # We preserve .a as extension for shared libraries through AIX4.2 15150 # and later when we are not doing run time linking. 15151 library_names_spec='${libname}${release}.a $libname.a' 15152 soname_spec='${libname}${release}${shared_ext}$major' 15153 fi 15154 shlibpath_var=LIBPATH 15155 fi 15156 ;; 15157 15158amigaos*) 15159 library_names_spec='$libname.ixlibrary $libname.a' 15160 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15161 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' 15162 ;; 15163 15164beos*) 15165 library_names_spec='${libname}${shared_ext}' 15166 dynamic_linker="$host_os ld.so" 15167 shlibpath_var=LIBRARY_PATH 15168 ;; 15169 15170bsdi[45]*) 15171 version_type=linux 15172 need_version=no 15173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15174 soname_spec='${libname}${release}${shared_ext}$major' 15175 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15176 shlibpath_var=LD_LIBRARY_PATH 15177 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15178 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15179 # the default ld.so.conf also contains /usr/contrib/lib and 15180 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15181 # libtool to hard-code these into programs 15182 ;; 15183 15184cygwin* | mingw* | pw32*) 15185 version_type=windows 15186 shrext_cmds=".dll" 15187 need_version=no 15188 need_lib_prefix=no 15189 15190 case $GCC,$host_os in 15191 yes,cygwin* | yes,mingw* | yes,pw32*) 15192 library_names_spec='$libname.dll.a' 15193 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15194 postinstall_cmds='base_file=`basename \${file}`~ 15195 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15196 dldir=$destdir/`dirname \$dlpath`~ 15197 test -d \$dldir || mkdir -p \$dldir~ 15198 $install_prog $dir/$dlname \$dldir/$dlname' 15199 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15200 dlpath=$dir/\$dldll~ 15201 $rm \$dlpath' 15202 shlibpath_overrides_runpath=yes 15203 15204 case $host_os in 15205 cygwin*) 15206 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15207 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15208 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15209 ;; 15210 mingw*) 15211 # MinGW DLLs use traditional 'lib' prefix 15212 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15213 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15214 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15215 # It is most probably a Windows format PATH printed by 15216 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15217 # path with ; separators, and with drive letters. We can handle the 15218 # drive letters (cygwin fileutils understands them), so leave them, 15219 # especially as we might pass files found there to a mingw objdump, 15220 # which wouldn't understand a cygwinified path. Ahh. 15221 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15222 else 15223 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15224 fi 15225 ;; 15226 pw32*) 15227 # pw32 DLLs use 'pw' prefix rather than 'lib' 15228 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 15229 ;; 15230 esac 15231 ;; 15232 15233 *) 15234 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15235 ;; 15236 esac 15237 dynamic_linker='Win32 ld.exe' 15238 # FIXME: first we should search . and the directory the executable is in 15239 shlibpath_var=PATH 15240 ;; 15241 15242darwin* | rhapsody*) 15243 dynamic_linker="$host_os dyld" 15244 version_type=darwin 15245 need_lib_prefix=no 15246 need_version=no 15247 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15248 soname_spec='${libname}${release}${major}$shared_ext' 15249 shlibpath_overrides_runpath=yes 15250 shlibpath_var=DYLD_LIBRARY_PATH 15251 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 15252 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 15253 if test "$GCC" = yes; then 15254 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"` 15255 else 15256 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 15257 fi 15258 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15259 ;; 15260 15261dgux*) 15262 version_type=linux 15263 need_lib_prefix=no 15264 need_version=no 15265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15266 soname_spec='${libname}${release}${shared_ext}$major' 15267 shlibpath_var=LD_LIBRARY_PATH 15268 ;; 15269 15270freebsd1*) 15271 dynamic_linker=no 15272 ;; 15273 15274kfreebsd*-gnu) 15275 version_type=linux 15276 need_lib_prefix=no 15277 need_version=no 15278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15279 soname_spec='${libname}${release}${shared_ext}$major' 15280 shlibpath_var=LD_LIBRARY_PATH 15281 shlibpath_overrides_runpath=no 15282 hardcode_into_libs=yes 15283 dynamic_linker='GNU ld.so' 15284 ;; 15285 15286freebsd*) 15287 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 15288 version_type=freebsd-$objformat 15289 case $version_type in 15290 freebsd-elf*) 15291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15292 need_version=no 15293 need_lib_prefix=no 15294 ;; 15295 freebsd-*) 15296 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15297 need_version=yes 15298 ;; 15299 esac 15300 shlibpath_var=LD_LIBRARY_PATH 15301 case $host_os in 15302 freebsd2*) 15303 shlibpath_overrides_runpath=yes 15304 ;; 15305 freebsd3.01* | freebsdelf3.01*) 15306 shlibpath_overrides_runpath=yes 15307 hardcode_into_libs=yes 15308 ;; 15309 *) # from 3.2 on 15310 shlibpath_overrides_runpath=no 15311 hardcode_into_libs=yes 15312 ;; 15313 esac 15314 ;; 15315 15316gnu*) 15317 version_type=linux 15318 need_lib_prefix=no 15319 need_version=no 15320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15321 soname_spec='${libname}${release}${shared_ext}$major' 15322 shlibpath_var=LD_LIBRARY_PATH 15323 hardcode_into_libs=yes 15324 ;; 15325 15326hpux9* | hpux10* | hpux11*) 15327 # Give a soname corresponding to the major version so that dld.sl refuses to 15328 # link against other versions. 15329 version_type=sunos 15330 need_lib_prefix=no 15331 need_version=no 15332 case "$host_cpu" in 15333 ia64*) 15334 shrext_cmds='.so' 15335 hardcode_into_libs=yes 15336 dynamic_linker="$host_os dld.so" 15337 shlibpath_var=LD_LIBRARY_PATH 15338 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15340 soname_spec='${libname}${release}${shared_ext}$major' 15341 if test "X$HPUX_IA64_MODE" = X32; then 15342 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15343 else 15344 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15345 fi 15346 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15347 ;; 15348 hppa*64*) 15349 shrext_cmds='.sl' 15350 hardcode_into_libs=yes 15351 dynamic_linker="$host_os dld.sl" 15352 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15353 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15355 soname_spec='${libname}${release}${shared_ext}$major' 15356 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15357 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15358 ;; 15359 *) 15360 shrext_cmds='.sl' 15361 dynamic_linker="$host_os dld.sl" 15362 shlibpath_var=SHLIB_PATH 15363 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15365 soname_spec='${libname}${release}${shared_ext}$major' 15366 ;; 15367 esac 15368 # HP-UX runs *really* slowly unless shared libraries are mode 555. 15369 postinstall_cmds='chmod 555 $lib' 15370 ;; 15371 15372irix5* | irix6* | nonstopux*) 15373 case $host_os in 15374 nonstopux*) version_type=nonstopux ;; 15375 *) 15376 if test "$lt_cv_prog_gnu_ld" = yes; then 15377 version_type=linux 15378 else 15379 version_type=irix 15380 fi ;; 15381 esac 15382 need_lib_prefix=no 15383 need_version=no 15384 soname_spec='${libname}${release}${shared_ext}$major' 15385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15386 case $host_os in 15387 irix5* | nonstopux*) 15388 libsuff= shlibsuff= 15389 ;; 15390 *) 15391 case $LD in # libtool.m4 will add one of these switches to LD 15392 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15393 libsuff= shlibsuff= libmagic=32-bit;; 15394 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15395 libsuff=32 shlibsuff=N32 libmagic=N32;; 15396 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15397 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15398 *) libsuff= shlibsuff= libmagic=never-match;; 15399 esac 15400 ;; 15401 esac 15402 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15403 shlibpath_overrides_runpath=no 15404 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15405 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15406 hardcode_into_libs=yes 15407 ;; 15408 15409# No shared lib support for Linux oldld, aout, or coff. 15410linux*oldld* | linux*aout* | linux*coff*) 15411 dynamic_linker=no 15412 ;; 15413 15414# This must be Linux ELF. 15415linux*) 15416 version_type=linux 15417 need_lib_prefix=no 15418 need_version=no 15419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15420 soname_spec='${libname}${release}${shared_ext}$major' 15421 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15422 shlibpath_var=LD_LIBRARY_PATH 15423 shlibpath_overrides_runpath=no 15424 # This implies no fast_install, which is unacceptable. 15425 # Some rework will be needed to allow for fast_install 15426 # before this can be enabled. 15427 hardcode_into_libs=yes 15428 15429 # Append ld.so.conf contents to the search path 15430 if test -f /etc/ld.so.conf; then 15431 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` 15432 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15433 fi 15434 15435 # We used to test for /lib/ld.so.1 and disable shared libraries on 15436 # powerpc, because MkLinux only supported shared libraries with the 15437 # GNU dynamic linker. Since this was broken with cross compilers, 15438 # most powerpc-linux boxes support dynamic linking these days and 15439 # people can always --disable-shared, the test was removed, and we 15440 # assume the GNU/Linux dynamic linker is in use. 15441 dynamic_linker='GNU/Linux ld.so' 15442 ;; 15443 15444knetbsd*-gnu) 15445 version_type=linux 15446 need_lib_prefix=no 15447 need_version=no 15448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15449 soname_spec='${libname}${release}${shared_ext}$major' 15450 shlibpath_var=LD_LIBRARY_PATH 15451 shlibpath_overrides_runpath=no 15452 hardcode_into_libs=yes 15453 dynamic_linker='GNU ld.so' 15454 ;; 15455 15456netbsd*) 15457 version_type=sunos 15458 need_lib_prefix=no 15459 need_version=no 15460 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15462 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15463 dynamic_linker='NetBSD (a.out) ld.so' 15464 else 15465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15466 soname_spec='${libname}${release}${shared_ext}$major' 15467 dynamic_linker='NetBSD ld.elf_so' 15468 fi 15469 shlibpath_var=LD_LIBRARY_PATH 15470 shlibpath_overrides_runpath=yes 15471 hardcode_into_libs=yes 15472 ;; 15473 15474newsos6) 15475 version_type=linux 15476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15477 shlibpath_var=LD_LIBRARY_PATH 15478 shlibpath_overrides_runpath=yes 15479 ;; 15480 15481nto-qnx*) 15482 version_type=linux 15483 need_lib_prefix=no 15484 need_version=no 15485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15486 soname_spec='${libname}${release}${shared_ext}$major' 15487 shlibpath_var=LD_LIBRARY_PATH 15488 shlibpath_overrides_runpath=yes 15489 ;; 15490 15491openbsd*) 15492 version_type=sunos 15493 need_lib_prefix=no 15494 need_version=no 15495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15496 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15497 shlibpath_var=LD_LIBRARY_PATH 15498 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15499 case $host_os in 15500 openbsd2.[89] | openbsd2.[89].*) 15501 shlibpath_overrides_runpath=no 15502 ;; 15503 *) 15504 shlibpath_overrides_runpath=yes 15505 ;; 15506 esac 15507 else 15508 shlibpath_overrides_runpath=yes 15509 fi 15510 ;; 15511 15512os2*) 15513 libname_spec='$name' 15514 shrext_cmds=".dll" 15515 need_lib_prefix=no 15516 library_names_spec='$libname${shared_ext} $libname.a' 15517 dynamic_linker='OS/2 ld.exe' 15518 shlibpath_var=LIBPATH 15519 ;; 15520 15521osf3* | osf4* | osf5*) 15522 version_type=osf 15523 need_lib_prefix=no 15524 need_version=no 15525 soname_spec='${libname}${release}${shared_ext}$major' 15526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15527 shlibpath_var=LD_LIBRARY_PATH 15528 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15529 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15530 ;; 15531 15532sco3.2v5*) 15533 version_type=osf 15534 soname_spec='${libname}${release}${shared_ext}$major' 15535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15536 shlibpath_var=LD_LIBRARY_PATH 15537 ;; 15538 15539solaris*) 15540 version_type=linux 15541 need_lib_prefix=no 15542 need_version=no 15543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15544 soname_spec='${libname}${release}${shared_ext}$major' 15545 shlibpath_var=LD_LIBRARY_PATH 15546 shlibpath_overrides_runpath=yes 15547 hardcode_into_libs=yes 15548 # ldd complains unless libraries are executable 15549 postinstall_cmds='chmod +x $lib' 15550 ;; 15551 15552sunos4*) 15553 version_type=sunos 15554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15555 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15556 shlibpath_var=LD_LIBRARY_PATH 15557 shlibpath_overrides_runpath=yes 15558 if test "$with_gnu_ld" = yes; then 15559 need_lib_prefix=no 15560 fi 15561 need_version=yes 15562 ;; 15563 15564sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 15565 version_type=linux 15566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15567 soname_spec='${libname}${release}${shared_ext}$major' 15568 shlibpath_var=LD_LIBRARY_PATH 15569 case $host_vendor in 15570 sni) 15571 shlibpath_overrides_runpath=no 15572 need_lib_prefix=no 15573 export_dynamic_flag_spec='${wl}-Blargedynsym' 15574 runpath_var=LD_RUN_PATH 15575 ;; 15576 siemens) 15577 need_lib_prefix=no 15578 ;; 15579 motorola) 15580 need_lib_prefix=no 15581 need_version=no 15582 shlibpath_overrides_runpath=no 15583 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15584 ;; 15585 esac 15586 ;; 15587 15588sysv4*MP*) 15589 if test -d /usr/nec ;then 15590 version_type=linux 15591 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15592 soname_spec='$libname${shared_ext}.$major' 15593 shlibpath_var=LD_LIBRARY_PATH 15594 fi 15595 ;; 15596 15597uts4*) 15598 version_type=linux 15599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15600 soname_spec='${libname}${release}${shared_ext}$major' 15601 shlibpath_var=LD_LIBRARY_PATH 15602 ;; 15603 15604*) 15605 dynamic_linker=no 15606 ;; 15607esac 15608echo "$as_me:$LINENO: result: $dynamic_linker" >&5 15609echo "${ECHO_T}$dynamic_linker" >&6 15610test "$dynamic_linker" = no && can_build_shared=no 15611 15612echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 15613echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 15614hardcode_action_F77= 15615if test -n "$hardcode_libdir_flag_spec_F77" || \ 15616 test -n "$runpath_var_F77" || \ 15617 test "X$hardcode_automatic_F77" = "Xyes" ; then 15618 15619 # We can hardcode non-existant directories. 15620 if test "$hardcode_direct_F77" != no && 15621 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15622 # have to relink, otherwise we might link with an installed library 15623 # when we should be linking with a yet-to-be-installed one 15624 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 15625 test "$hardcode_minus_L_F77" != no; then 15626 # Linking always hardcodes the temporary library directory. 15627 hardcode_action_F77=relink 15628 else 15629 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15630 hardcode_action_F77=immediate 15631 fi 15632else 15633 # We cannot hardcode anything, or else we can only hardcode existing 15634 # directories. 15635 hardcode_action_F77=unsupported 15636fi 15637echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 15638echo "${ECHO_T}$hardcode_action_F77" >&6 15639 15640if test "$hardcode_action_F77" = relink; then 15641 # Fast installation is not supported 15642 enable_fast_install=no 15643elif test "$shlibpath_overrides_runpath" = yes || 15644 test "$enable_shared" = no; then 15645 # Fast installation is not necessary 15646 enable_fast_install=needless 15647fi 15648 15649striplib= 15650old_striplib= 15651echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 15652echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 15653if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 15654 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 15655 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 15656 echo "$as_me:$LINENO: result: yes" >&5 15657echo "${ECHO_T}yes" >&6 15658else 15659# FIXME - insert some real tests, host_os isn't really good enough 15660 case $host_os in 15661 darwin*) 15662 if test -n "$STRIP" ; then 15663 striplib="$STRIP -x" 15664 echo "$as_me:$LINENO: result: yes" >&5 15665echo "${ECHO_T}yes" >&6 15666 else 15667 echo "$as_me:$LINENO: result: no" >&5 15668echo "${ECHO_T}no" >&6 15669fi 15670 ;; 15671 *) 15672 echo "$as_me:$LINENO: result: no" >&5 15673echo "${ECHO_T}no" >&6 15674 ;; 15675 esac 15676fi 15677 15678 15679 15680# The else clause should only fire when bootstrapping the 15681# libtool distribution, otherwise you forgot to ship ltmain.sh 15682# with your package, and you will get complaints that there are 15683# no rules to generate ltmain.sh. 15684if test -f "$ltmain"; then 15685 # See if we are running on zsh, and set the options which allow our commands through 15686 # without removal of \ escapes. 15687 if test -n "${ZSH_VERSION+set}" ; then 15688 setopt NO_GLOB_SUBST 15689 fi 15690 # Now quote all the things that may contain metacharacters while being 15691 # careful not to overquote the AC_SUBSTed values. We take copies of the 15692 # variables and quote the copies for generation of the libtool script. 15693 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 15694 SED SHELL STRIP \ 15695 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 15696 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 15697 deplibs_check_method reload_flag reload_cmds need_locks \ 15698 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 15699 lt_cv_sys_global_symbol_to_c_name_address \ 15700 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 15701 old_postinstall_cmds old_postuninstall_cmds \ 15702 compiler_F77 \ 15703 CC_F77 \ 15704 LD_F77 \ 15705 lt_prog_compiler_wl_F77 \ 15706 lt_prog_compiler_pic_F77 \ 15707 lt_prog_compiler_static_F77 \ 15708 lt_prog_compiler_no_builtin_flag_F77 \ 15709 export_dynamic_flag_spec_F77 \ 15710 thread_safe_flag_spec_F77 \ 15711 whole_archive_flag_spec_F77 \ 15712 enable_shared_with_static_runtimes_F77 \ 15713 old_archive_cmds_F77 \ 15714 old_archive_from_new_cmds_F77 \ 15715 predep_objects_F77 \ 15716 postdep_objects_F77 \ 15717 predeps_F77 \ 15718 postdeps_F77 \ 15719 compiler_lib_search_path_F77 \ 15720 archive_cmds_F77 \ 15721 archive_expsym_cmds_F77 \ 15722 postinstall_cmds_F77 \ 15723 postuninstall_cmds_F77 \ 15724 old_archive_from_expsyms_cmds_F77 \ 15725 allow_undefined_flag_F77 \ 15726 no_undefined_flag_F77 \ 15727 export_symbols_cmds_F77 \ 15728 hardcode_libdir_flag_spec_F77 \ 15729 hardcode_libdir_flag_spec_ld_F77 \ 15730 hardcode_libdir_separator_F77 \ 15731 hardcode_automatic_F77 \ 15732 module_cmds_F77 \ 15733 module_expsym_cmds_F77 \ 15734 lt_cv_prog_compiler_c_o_F77 \ 15735 exclude_expsyms_F77 \ 15736 include_expsyms_F77; do 15737 15738 case $var in 15739 old_archive_cmds_F77 | \ 15740 old_archive_from_new_cmds_F77 | \ 15741 archive_cmds_F77 | \ 15742 archive_expsym_cmds_F77 | \ 15743 module_cmds_F77 | \ 15744 module_expsym_cmds_F77 | \ 15745 old_archive_from_expsyms_cmds_F77 | \ 15746 export_symbols_cmds_F77 | \ 15747 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 15748 postinstall_cmds | postuninstall_cmds | \ 15749 old_postinstall_cmds | old_postuninstall_cmds | \ 15750 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 15751 # Double-quote double-evaled strings. 15752 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 15753 ;; 15754 *) 15755 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 15756 ;; 15757 esac 15758 done 15759 15760 case $lt_echo in 15761 *'\$0 --fallback-echo"') 15762 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 15763 ;; 15764 esac 15765 15766cfgfile="$ofile" 15767 15768 cat <<__EOF__ >> "$cfgfile" 15769# ### BEGIN LIBTOOL TAG CONFIG: $tagname 15770 15771# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15772 15773# Shell to use when invoking shell scripts. 15774SHELL=$lt_SHELL 15775 15776# Whether or not to build shared libraries. 15777build_libtool_libs=$enable_shared 15778 15779# Whether or not to build static libraries. 15780build_old_libs=$enable_static 15781 15782# Whether or not to add -lc for building shared libraries. 15783build_libtool_need_lc=$archive_cmds_need_lc_F77 15784 15785# Whether or not to disallow shared libs when runtime libs are static 15786allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 15787 15788# Whether or not to optimize for fast installation. 15789fast_install=$enable_fast_install 15790 15791# The host system. 15792host_alias=$host_alias 15793host=$host 15794 15795# An echo program that does not interpret backslashes. 15796echo=$lt_echo 15797 15798# The archiver. 15799AR=$lt_AR 15800AR_FLAGS=$lt_AR_FLAGS 15801 15802# A C compiler. 15803LTCC=$lt_LTCC 15804 15805# A language-specific compiler. 15806CC=$lt_compiler_F77 15807 15808# Is the compiler the GNU C compiler? 15809with_gcc=$GCC_F77 15810 15811# An ERE matcher. 15812EGREP=$lt_EGREP 15813 15814# The linker used to build libraries. 15815LD=$lt_LD_F77 15816 15817# Whether we need hard or soft links. 15818LN_S=$lt_LN_S 15819 15820# A BSD-compatible nm program. 15821NM=$lt_NM 15822 15823# A symbol stripping program 15824STRIP=$lt_STRIP 15825 15826# Used to examine libraries when file_magic_cmd begins "file" 15827MAGIC_CMD=$MAGIC_CMD 15828 15829# Used on cygwin: DLL creation program. 15830DLLTOOL="$DLLTOOL" 15831 15832# Used on cygwin: object dumper. 15833OBJDUMP="$OBJDUMP" 15834 15835# Used on cygwin: assembler. 15836AS="$AS" 15837 15838# The name of the directory that contains temporary libtool files. 15839objdir=$objdir 15840 15841# How to create reloadable object files. 15842reload_flag=$lt_reload_flag 15843reload_cmds=$lt_reload_cmds 15844 15845# How to pass a linker flag through the compiler. 15846wl=$lt_lt_prog_compiler_wl_F77 15847 15848# Object file suffix (normally "o"). 15849objext="$ac_objext" 15850 15851# Old archive suffix (normally "a"). 15852libext="$libext" 15853 15854# Shared library suffix (normally ".so"). 15855shrext_cmds='$shrext_cmds' 15856 15857# Executable file suffix (normally ""). 15858exeext="$exeext" 15859 15860# Additional compiler flags for building library objects. 15861pic_flag=$lt_lt_prog_compiler_pic_F77 15862pic_mode=$pic_mode 15863 15864# What is the maximum length of a command? 15865max_cmd_len=$lt_cv_sys_max_cmd_len 15866 15867# Does compiler simultaneously support -c and -o options? 15868compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 15869 15870# Must we lock files when doing compilation ? 15871need_locks=$lt_need_locks 15872 15873# Do we need the lib prefix for modules? 15874need_lib_prefix=$need_lib_prefix 15875 15876# Do we need a version for libraries? 15877need_version=$need_version 15878 15879# Whether dlopen is supported. 15880dlopen_support=$enable_dlopen 15881 15882# Whether dlopen of programs is supported. 15883dlopen_self=$enable_dlopen_self 15884 15885# Whether dlopen of statically linked programs is supported. 15886dlopen_self_static=$enable_dlopen_self_static 15887 15888# Compiler flag to prevent dynamic linking. 15889link_static_flag=$lt_lt_prog_compiler_static_F77 15890 15891# Compiler flag to turn off builtin functions. 15892no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 15893 15894# Compiler flag to allow reflexive dlopens. 15895export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 15896 15897# Compiler flag to generate shared objects directly from archives. 15898whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 15899 15900# Compiler flag to generate thread-safe objects. 15901thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 15902 15903# Library versioning type. 15904version_type=$version_type 15905 15906# Format of library name prefix. 15907libname_spec=$lt_libname_spec 15908 15909# List of archive names. First name is the real one, the rest are links. 15910# The last name is the one that the linker finds with -lNAME. 15911library_names_spec=$lt_library_names_spec 15912 15913# The coded name of the library, if different from the real name. 15914soname_spec=$lt_soname_spec 15915 15916# Commands used to build and install an old-style archive. 15917RANLIB=$lt_RANLIB 15918old_archive_cmds=$lt_old_archive_cmds_F77 15919old_postinstall_cmds=$lt_old_postinstall_cmds 15920old_postuninstall_cmds=$lt_old_postuninstall_cmds 15921 15922# Create an old-style archive from a shared archive. 15923old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 15924 15925# Create a temporary old-style archive to link instead of a shared archive. 15926old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 15927 15928# Commands used to build and install a shared archive. 15929archive_cmds=$lt_archive_cmds_F77 15930archive_expsym_cmds=$lt_archive_expsym_cmds_F77 15931postinstall_cmds=$lt_postinstall_cmds 15932postuninstall_cmds=$lt_postuninstall_cmds 15933 15934# Commands used to build a loadable module (assumed same as above if empty) 15935module_cmds=$lt_module_cmds_F77 15936module_expsym_cmds=$lt_module_expsym_cmds_F77 15937 15938# Commands to strip libraries. 15939old_striplib=$lt_old_striplib 15940striplib=$lt_striplib 15941 15942# Dependencies to place before the objects being linked to create a 15943# shared library. 15944predep_objects=$lt_predep_objects_F77 15945 15946# Dependencies to place after the objects being linked to create a 15947# shared library. 15948postdep_objects=$lt_postdep_objects_F77 15949 15950# Dependencies to place before the objects being linked to create a 15951# shared library. 15952predeps=$lt_predeps_F77 15953 15954# Dependencies to place after the objects being linked to create a 15955# shared library. 15956postdeps=$lt_postdeps_F77 15957 15958# The library search path used internally by the compiler when linking 15959# a shared library. 15960compiler_lib_search_path=$lt_compiler_lib_search_path_F77 15961 15962# Method to check whether dependent libraries are shared objects. 15963deplibs_check_method=$lt_deplibs_check_method 15964 15965# Command to use when deplibs_check_method == file_magic. 15966file_magic_cmd=$lt_file_magic_cmd 15967 15968# Flag that allows shared libraries with undefined symbols to be built. 15969allow_undefined_flag=$lt_allow_undefined_flag_F77 15970 15971# Flag that forces no undefined symbols. 15972no_undefined_flag=$lt_no_undefined_flag_F77 15973 15974# Commands used to finish a libtool library installation in a directory. 15975finish_cmds=$lt_finish_cmds 15976 15977# Same as above, but a single script fragment to be evaled but not shown. 15978finish_eval=$lt_finish_eval 15979 15980# Take the output of nm and produce a listing of raw symbols and C names. 15981global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15982 15983# Transform the output of nm in a proper C declaration 15984global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15985 15986# Transform the output of nm in a C name address pair 15987global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15988 15989# This is the shared library runtime path variable. 15990runpath_var=$runpath_var 15991 15992# This is the shared library path variable. 15993shlibpath_var=$shlibpath_var 15994 15995# Is shlibpath searched before the hard-coded library search path? 15996shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15997 15998# How to hardcode a shared library path into an executable. 15999hardcode_action=$hardcode_action_F77 16000 16001# Whether we should hardcode library paths into libraries. 16002hardcode_into_libs=$hardcode_into_libs 16003 16004# Flag to hardcode \$libdir into a binary during linking. 16005# This must work even if \$libdir does not exist. 16006hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 16007 16008# If ld is used when linking, flag to hardcode \$libdir into 16009# a binary during linking. This must work even if \$libdir does 16010# not exist. 16011hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 16012 16013# Whether we need a single -rpath flag with a separated argument. 16014hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 16015 16016# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16017# resulting binary. 16018hardcode_direct=$hardcode_direct_F77 16019 16020# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16021# resulting binary. 16022hardcode_minus_L=$hardcode_minus_L_F77 16023 16024# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16025# the resulting binary. 16026hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 16027 16028# Set to yes if building a shared library automatically hardcodes DIR into the library 16029# and all subsequent libraries and executables linked against it. 16030hardcode_automatic=$hardcode_automatic_F77 16031 16032# Variables whose values should be saved in libtool wrapper scripts and 16033# restored at relink time. 16034variables_saved_for_relink="$variables_saved_for_relink" 16035 16036# Whether libtool must link a program against all its dependency libraries. 16037link_all_deplibs=$link_all_deplibs_F77 16038 16039# Compile-time system search path for libraries 16040sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16041 16042# Run-time system search path for libraries 16043sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16044 16045# Fix the shell variable \$srcfile for the compiler. 16046fix_srcfile_path="$fix_srcfile_path_F77" 16047 16048# Set to yes if exported symbols are required. 16049always_export_symbols=$always_export_symbols_F77 16050 16051# The commands to list exported symbols. 16052export_symbols_cmds=$lt_export_symbols_cmds_F77 16053 16054# The commands to extract the exported symbol list from a shared archive. 16055extract_expsyms_cmds=$lt_extract_expsyms_cmds 16056 16057# Symbols that should not be listed in the preloaded symbols. 16058exclude_expsyms=$lt_exclude_expsyms_F77 16059 16060# Symbols that must always be exported. 16061include_expsyms=$lt_include_expsyms_F77 16062 16063# ### END LIBTOOL TAG CONFIG: $tagname 16064 16065__EOF__ 16066 16067 16068else 16069 # If there is no Makefile yet, we rely on a make rule to execute 16070 # `config.status --recheck' to rerun these tests and create the 16071 # libtool script then. 16072 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16073 if test -f "$ltmain_in"; then 16074 test -f Makefile && make "$ltmain" 16075 fi 16076fi 16077 16078 16079ac_ext=c 16080ac_cpp='$CPP $CPPFLAGS' 16081ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16082ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16083ac_compiler_gnu=$ac_cv_c_compiler_gnu 16084 16085CC="$lt_save_CC" 16086 16087 else 16088 tagname="" 16089 fi 16090 ;; 16091 16092 GCJ) 16093 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16094 ac_ext=c 16095ac_cpp='$CPP $CPPFLAGS' 16096ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16097ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16098ac_compiler_gnu=$ac_cv_c_compiler_gnu 16099 16100 16101# Source file extension for Java test sources. 16102ac_ext=java 16103 16104# Object file extension for compiled Java test sources. 16105objext=o 16106objext_GCJ=$objext 16107 16108# Code to be used in simple compile tests 16109lt_simple_compile_test_code="class foo {}\n" 16110 16111# Code to be used in simple link tests 16112lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n' 16113 16114# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16115 16116# If no C compiler was specified, use CC. 16117LTCC=${LTCC-"$CC"} 16118 16119# Allow CC to be a program name with arguments. 16120compiler=$CC 16121 16122 16123# Allow CC to be a program name with arguments. 16124lt_save_CC="$CC" 16125CC=${GCJ-"gcj"} 16126compiler=$CC 16127compiler_GCJ=$CC 16128 16129# GCJ did not exist at the time GCC didn't implicitly link libc in. 16130archive_cmds_need_lc_GCJ=no 16131 16132 16133lt_prog_compiler_no_builtin_flag_GCJ= 16134 16135if test "$GCC" = yes; then 16136 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16137 16138 16139echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16140echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 16141if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16142 echo $ECHO_N "(cached) $ECHO_C" >&6 16143else 16144 lt_cv_prog_compiler_rtti_exceptions=no 16145 ac_outfile=conftest.$ac_objext 16146 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16147 lt_compiler_flag="-fno-rtti -fno-exceptions" 16148 # Insert the option either (1) after the last *FLAGS variable, or 16149 # (2) before a word containing "conftest.", or (3) at the end. 16150 # Note that $ac_compile itself does not contain backslashes and begins 16151 # with a dollar sign (not a hyphen), so the echo should work correctly. 16152 # The option is referenced via a variable to avoid confusing sed. 16153 lt_compile=`echo "$ac_compile" | $SED \ 16154 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 16155 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16156 -e 's:$: $lt_compiler_flag:'` 16157 (eval echo "\"\$as_me:16157: $lt_compile\"" >&5) 16158 (eval "$lt_compile" 2>conftest.err) 16159 ac_status=$? 16160 cat conftest.err >&5 16161 echo "$as_me:16161: \$? = $ac_status" >&5 16162 if (exit $ac_status) && test -s "$ac_outfile"; then 16163 # The compiler can only warn and ignore the option if not recognized 16164 # So say no if there are warnings 16165 if test ! -s conftest.err; then 16166 lt_cv_prog_compiler_rtti_exceptions=yes 16167 fi 16168 fi 16169 $rm conftest* 16170 16171fi 16172echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16173echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 16174 16175if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16176 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16177else 16178 : 16179fi 16180 16181fi 16182 16183lt_prog_compiler_wl_GCJ= 16184lt_prog_compiler_pic_GCJ= 16185lt_prog_compiler_static_GCJ= 16186 16187echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16188echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 16189 16190 if test "$GCC" = yes; then 16191 lt_prog_compiler_wl_GCJ='-Wl,' 16192 lt_prog_compiler_static_GCJ='-static' 16193 16194 case $host_os in 16195 aix*) 16196 # All AIX code is PIC. 16197 if test "$host_cpu" = ia64; then 16198 # AIX 5 now supports IA64 processor 16199 lt_prog_compiler_static_GCJ='-Bstatic' 16200 fi 16201 ;; 16202 16203 amigaos*) 16204 # FIXME: we need at least 68020 code to build shared libraries, but 16205 # adding the `-m68020' flag to GCC prevents building anything better, 16206 # like `-m68040'. 16207 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16208 ;; 16209 16210 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16211 # PIC is the default for these OSes. 16212 ;; 16213 16214 mingw* | pw32* | os2*) 16215 # This hack is so that the source file can tell whether it is being 16216 # built for inclusion in a dll (and should export symbols for example). 16217 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16218 ;; 16219 16220 darwin* | rhapsody*) 16221 # PIC is the default on this platform 16222 # Common symbols not allowed in MH_DYLIB files 16223 lt_prog_compiler_pic_GCJ='-fno-common' 16224 ;; 16225 16226 msdosdjgpp*) 16227 # Just because we use GCC doesn't mean we suddenly get shared libraries 16228 # on systems that don't support them. 16229 lt_prog_compiler_can_build_shared_GCJ=no 16230 enable_shared=no 16231 ;; 16232 16233 sysv4*MP*) 16234 if test -d /usr/nec; then 16235 lt_prog_compiler_pic_GCJ=-Kconform_pic 16236 fi 16237 ;; 16238 16239 hpux*) 16240 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16241 # not for PA HP-UX. 16242 case "$host_cpu" in 16243 hppa*64*|ia64*) 16244 # +Z the default 16245 ;; 16246 *) 16247 lt_prog_compiler_pic_GCJ='-fPIC' 16248 ;; 16249 esac 16250 ;; 16251 16252 *) 16253 lt_prog_compiler_pic_GCJ='-fPIC' 16254 ;; 16255 esac 16256 else 16257 # PORTME Check for flag to pass linker flags through the system compiler. 16258 case $host_os in 16259 aix*) 16260 lt_prog_compiler_wl_GCJ='-Wl,' 16261 if test "$host_cpu" = ia64; then 16262 # AIX 5 now supports IA64 processor 16263 lt_prog_compiler_static_GCJ='-Bstatic' 16264 else 16265 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 16266 fi 16267 ;; 16268 darwin*) 16269 # PIC is the default on this platform 16270 # Common symbols not allowed in MH_DYLIB files 16271 case "$cc_basename" in 16272 xlc*) 16273 lt_prog_compiler_pic_GCJ='-qnocommon' 16274 lt_prog_compiler_wl_GCJ='-Wl,' 16275 ;; 16276 esac 16277 ;; 16278 16279 mingw* | pw32* | os2*) 16280 # This hack is so that the source file can tell whether it is being 16281 # built for inclusion in a dll (and should export symbols for example). 16282 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16283 ;; 16284 16285 hpux9* | hpux10* | hpux11*) 16286 lt_prog_compiler_wl_GCJ='-Wl,' 16287 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16288 # not for PA HP-UX. 16289 case "$host_cpu" in 16290 hppa*64*|ia64*) 16291 # +Z the default 16292 ;; 16293 *) 16294 lt_prog_compiler_pic_GCJ='+Z' 16295 ;; 16296 esac 16297 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16298 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 16299 ;; 16300 16301 irix5* | irix6* | nonstopux*) 16302 lt_prog_compiler_wl_GCJ='-Wl,' 16303 # PIC (with -KPIC) is the default. 16304 lt_prog_compiler_static_GCJ='-non_shared' 16305 ;; 16306 16307 newsos6) 16308 lt_prog_compiler_pic_GCJ='-KPIC' 16309 lt_prog_compiler_static_GCJ='-Bstatic' 16310 ;; 16311 16312 linux*) 16313 case $CC in 16314 icc* | ecc*) 16315 lt_prog_compiler_wl_GCJ='-Wl,' 16316 lt_prog_compiler_pic_GCJ='-KPIC' 16317 lt_prog_compiler_static_GCJ='-static' 16318 ;; 16319 ccc*) 16320 lt_prog_compiler_wl_GCJ='-Wl,' 16321 # All Alpha code is PIC. 16322 lt_prog_compiler_static_GCJ='-non_shared' 16323 ;; 16324 esac 16325 ;; 16326 16327 osf3* | osf4* | osf5*) 16328 lt_prog_compiler_wl_GCJ='-Wl,' 16329 # All OSF/1 code is PIC. 16330 lt_prog_compiler_static_GCJ='-non_shared' 16331 ;; 16332 16333 sco3.2v5*) 16334 lt_prog_compiler_pic_GCJ='-Kpic' 16335 lt_prog_compiler_static_GCJ='-dn' 16336 ;; 16337 16338 solaris*) 16339 lt_prog_compiler_wl_GCJ='-Wl,' 16340 lt_prog_compiler_pic_GCJ='-KPIC' 16341 lt_prog_compiler_static_GCJ='-Bstatic' 16342 ;; 16343 16344 sunos4*) 16345 lt_prog_compiler_wl_GCJ='-Qoption ld ' 16346 lt_prog_compiler_pic_GCJ='-PIC' 16347 lt_prog_compiler_static_GCJ='-Bstatic' 16348 ;; 16349 16350 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 16351 lt_prog_compiler_wl_GCJ='-Wl,' 16352 lt_prog_compiler_pic_GCJ='-KPIC' 16353 lt_prog_compiler_static_GCJ='-Bstatic' 16354 ;; 16355 16356 sysv4*MP*) 16357 if test -d /usr/nec ;then 16358 lt_prog_compiler_pic_GCJ='-Kconform_pic' 16359 lt_prog_compiler_static_GCJ='-Bstatic' 16360 fi 16361 ;; 16362 16363 uts4*) 16364 lt_prog_compiler_pic_GCJ='-pic' 16365 lt_prog_compiler_static_GCJ='-Bstatic' 16366 ;; 16367 16368 *) 16369 lt_prog_compiler_can_build_shared_GCJ=no 16370 ;; 16371 esac 16372 fi 16373 16374echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 16375echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 16376 16377# 16378# Check to make sure the PIC flag actually works. 16379# 16380if test -n "$lt_prog_compiler_pic_GCJ"; then 16381 16382echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 16383echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 16384if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 16385 echo $ECHO_N "(cached) $ECHO_C" >&6 16386else 16387 lt_prog_compiler_pic_works_GCJ=no 16388 ac_outfile=conftest.$ac_objext 16389 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16390 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 16391 # Insert the option either (1) after the last *FLAGS variable, or 16392 # (2) before a word containing "conftest.", or (3) at the end. 16393 # Note that $ac_compile itself does not contain backslashes and begins 16394 # with a dollar sign (not a hyphen), so the echo should work correctly. 16395 # The option is referenced via a variable to avoid confusing sed. 16396 lt_compile=`echo "$ac_compile" | $SED \ 16397 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 16398 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16399 -e 's:$: $lt_compiler_flag:'` 16400 (eval echo "\"\$as_me:16400: $lt_compile\"" >&5) 16401 (eval "$lt_compile" 2>conftest.err) 16402 ac_status=$? 16403 cat conftest.err >&5 16404 echo "$as_me:16404: \$? = $ac_status" >&5 16405 if (exit $ac_status) && test -s "$ac_outfile"; then 16406 # The compiler can only warn and ignore the option if not recognized 16407 # So say no if there are warnings 16408 if test ! -s conftest.err; then 16409 lt_prog_compiler_pic_works_GCJ=yes 16410 fi 16411 fi 16412 $rm conftest* 16413 16414fi 16415echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 16416echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 16417 16418if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 16419 case $lt_prog_compiler_pic_GCJ in 16420 "" | " "*) ;; 16421 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 16422 esac 16423else 16424 lt_prog_compiler_pic_GCJ= 16425 lt_prog_compiler_can_build_shared_GCJ=no 16426fi 16427 16428fi 16429case "$host_os" in 16430 # For platforms which do not support PIC, -DPIC is meaningless: 16431 *djgpp*) 16432 lt_prog_compiler_pic_GCJ= 16433 ;; 16434 *) 16435 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 16436 ;; 16437esac 16438 16439echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 16440echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 16441if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 16442 echo $ECHO_N "(cached) $ECHO_C" >&6 16443else 16444 lt_cv_prog_compiler_c_o_GCJ=no 16445 $rm -r conftest 2>/dev/null 16446 mkdir conftest 16447 cd conftest 16448 mkdir out 16449 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16450 16451 lt_compiler_flag="-o out/conftest2.$ac_objext" 16452 # Insert the option either (1) after the last *FLAGS variable, or 16453 # (2) before a word containing "conftest.", or (3) at the end. 16454 # Note that $ac_compile itself does not contain backslashes and begins 16455 # with a dollar sign (not a hyphen), so the echo should work correctly. 16456 lt_compile=`echo "$ac_compile" | $SED \ 16457 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 16458 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16459 -e 's:$: $lt_compiler_flag:'` 16460 (eval echo "\"\$as_me:16460: $lt_compile\"" >&5) 16461 (eval "$lt_compile" 2>out/conftest.err) 16462 ac_status=$? 16463 cat out/conftest.err >&5 16464 echo "$as_me:16464: \$? = $ac_status" >&5 16465 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16466 then 16467 # The compiler can only warn and ignore the option if not recognized 16468 # So say no if there are warnings 16469 if test ! -s out/conftest.err; then 16470 lt_cv_prog_compiler_c_o_GCJ=yes 16471 fi 16472 fi 16473 chmod u+w . 16474 $rm conftest* 16475 # SGI C++ compiler will create directory out/ii_files/ for 16476 # template instantiation 16477 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 16478 $rm out/* && rmdir out 16479 cd .. 16480 rmdir conftest 16481 $rm conftest* 16482 16483fi 16484echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 16485echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 16486 16487 16488hard_links="nottested" 16489if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 16490 # do not overwrite the value of need_locks provided by the user 16491 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 16492echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 16493 hard_links=yes 16494 $rm conftest* 16495 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16496 touch conftest.a 16497 ln conftest.a conftest.b 2>&5 || hard_links=no 16498 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16499 echo "$as_me:$LINENO: result: $hard_links" >&5 16500echo "${ECHO_T}$hard_links" >&6 16501 if test "$hard_links" = no; then 16502 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 16503echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 16504 need_locks=warn 16505 fi 16506else 16507 need_locks=no 16508fi 16509 16510echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16511echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 16512 16513 runpath_var= 16514 allow_undefined_flag_GCJ= 16515 enable_shared_with_static_runtimes_GCJ=no 16516 archive_cmds_GCJ= 16517 archive_expsym_cmds_GCJ= 16518 old_archive_From_new_cmds_GCJ= 16519 old_archive_from_expsyms_cmds_GCJ= 16520 export_dynamic_flag_spec_GCJ= 16521 whole_archive_flag_spec_GCJ= 16522 thread_safe_flag_spec_GCJ= 16523 hardcode_libdir_flag_spec_GCJ= 16524 hardcode_libdir_flag_spec_ld_GCJ= 16525 hardcode_libdir_separator_GCJ= 16526 hardcode_direct_GCJ=no 16527 hardcode_minus_L_GCJ=no 16528 hardcode_shlibpath_var_GCJ=unsupported 16529 link_all_deplibs_GCJ=unknown 16530 hardcode_automatic_GCJ=no 16531 module_cmds_GCJ= 16532 module_expsym_cmds_GCJ= 16533 always_export_symbols_GCJ=no 16534 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16535 # include_expsyms should be a list of space-separated symbols to be *always* 16536 # included in the symbol list 16537 include_expsyms_GCJ= 16538 # exclude_expsyms can be an extended regexp of symbols to exclude 16539 # it will be wrapped by ` (' and `)$', so one must not match beginning or 16540 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 16541 # as well as any symbol that contains `d'. 16542 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 16543 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16544 # platforms (ab)use it in PIC code, but their linkers get confused if 16545 # the symbol is explicitly referenced. Since portable code cannot 16546 # rely on this symbol name, it's probably fine to never include it in 16547 # preloaded symbol tables. 16548 extract_expsyms_cmds= 16549 16550 case $host_os in 16551 cygwin* | mingw* | pw32*) 16552 # FIXME: the MSVC++ port hasn't been tested in a loooong time 16553 # When not using gcc, we currently assume that we are using 16554 # Microsoft Visual C++. 16555 if test "$GCC" != yes; then 16556 with_gnu_ld=no 16557 fi 16558 ;; 16559 openbsd*) 16560 with_gnu_ld=no 16561 ;; 16562 esac 16563 16564 ld_shlibs_GCJ=yes 16565 if test "$with_gnu_ld" = yes; then 16566 # If archive_cmds runs LD, not CC, wlarc should be empty 16567 wlarc='${wl}' 16568 16569 # See if GNU ld supports shared libraries. 16570 case $host_os in 16571 aix3* | aix4* | aix5*) 16572 # On AIX/PPC, the GNU linker is very broken 16573 if test "$host_cpu" != ia64; then 16574 ld_shlibs_GCJ=no 16575 cat <<EOF 1>&2 16576 16577*** Warning: the GNU linker, at least up to release 2.9.1, is reported 16578*** to be unable to reliably create shared libraries on AIX. 16579*** Therefore, libtool is disabling shared libraries support. If you 16580*** really care for shared libraries, you may want to modify your PATH 16581*** so that a non-GNU linker is found, and then restart. 16582 16583EOF 16584 fi 16585 ;; 16586 16587 amigaos*) 16588 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)' 16589 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16590 hardcode_minus_L_GCJ=yes 16591 16592 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 16593 # that the semantics of dynamic libraries on AmigaOS, at least up 16594 # to version 4, is to share data among multiple programs linked 16595 # with the same dynamic library. Since this doesn't match the 16596 # behavior of shared libraries on other platforms, we can't use 16597 # them. 16598 ld_shlibs_GCJ=no 16599 ;; 16600 16601 beos*) 16602 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16603 allow_undefined_flag_GCJ=unsupported 16604 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16605 # support --undefined. This deserves some investigation. FIXME 16606 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16607 else 16608 ld_shlibs_GCJ=no 16609 fi 16610 ;; 16611 16612 cygwin* | mingw* | pw32*) 16613 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 16614 # as there is no search path for DLLs. 16615 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16616 allow_undefined_flag_GCJ=unsupported 16617 always_export_symbols_GCJ=no 16618 enable_shared_with_static_runtimes_GCJ=yes 16619 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 16620 16621 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 16622 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 16623 # If the export-symbols file already is a .def file (1st line 16624 # is EXPORTS), use it as is; otherwise, prepend... 16625 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 16626 cp $export_symbols $output_objdir/$soname.def; 16627 else 16628 echo EXPORTS > $output_objdir/$soname.def; 16629 cat $export_symbols >> $output_objdir/$soname.def; 16630 fi~ 16631 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 16632 else 16633 ld_shlibs=no 16634 fi 16635 ;; 16636 16637 netbsd*) 16638 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16639 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16640 wlarc= 16641 else 16642 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16643 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16644 fi 16645 ;; 16646 16647 solaris* | sysv5*) 16648 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 16649 ld_shlibs_GCJ=no 16650 cat <<EOF 1>&2 16651 16652*** Warning: The releases 2.8.* of the GNU linker cannot reliably 16653*** create shared libraries on Solaris systems. Therefore, libtool 16654*** is disabling shared libraries support. We urge you to upgrade GNU 16655*** binutils to release 2.9.1 or newer. Another option is to modify 16656*** your PATH or compiler configuration so that the native linker is 16657*** used, and then restart. 16658 16659EOF 16660 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16661 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16662 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16663 else 16664 ld_shlibs_GCJ=no 16665 fi 16666 ;; 16667 16668 sunos4*) 16669 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16670 wlarc= 16671 hardcode_direct_GCJ=yes 16672 hardcode_shlibpath_var_GCJ=no 16673 ;; 16674 16675 linux*) 16676 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16677 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16678 archive_cmds_GCJ="$tmp_archive_cmds" 16679 supports_anon_versioning=no 16680 case `$LD -v 2>/dev/null` in 16681 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16682 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16683 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16684 *\ 2.11.*) ;; # other 2.11 versions 16685 *) supports_anon_versioning=yes ;; 16686 esac 16687 if test $supports_anon_versioning = yes; then 16688 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 16689cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16690$echo "local: *; };" >> $output_objdir/$libname.ver~ 16691 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 16692 else 16693 archive_expsym_cmds_GCJ="$tmp_archive_cmds" 16694 fi 16695 else 16696 ld_shlibs_GCJ=no 16697 fi 16698 ;; 16699 16700 *) 16701 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16702 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16703 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16704 else 16705 ld_shlibs_GCJ=no 16706 fi 16707 ;; 16708 esac 16709 16710 if test "$ld_shlibs_GCJ" = yes; then 16711 runpath_var=LD_RUN_PATH 16712 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 16713 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 16714 # ancient GNU ld didn't support --whole-archive et. al. 16715 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 16716 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 16717 else 16718 whole_archive_flag_spec_GCJ= 16719 fi 16720 fi 16721 else 16722 # PORTME fill in a description of your system's linker (not GNU ld) 16723 case $host_os in 16724 aix3*) 16725 allow_undefined_flag_GCJ=unsupported 16726 always_export_symbols_GCJ=yes 16727 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' 16728 # Note: this linker hardcodes the directories in LIBPATH if there 16729 # are no directories specified by -L. 16730 hardcode_minus_L_GCJ=yes 16731 if test "$GCC" = yes && test -z "$link_static_flag"; then 16732 # Neither direct hardcoding nor static linking is supported with a 16733 # broken collect2. 16734 hardcode_direct_GCJ=unsupported 16735 fi 16736 ;; 16737 16738 aix4* | aix5*) 16739 if test "$host_cpu" = ia64; then 16740 # On IA64, the linker does run time linking by default, so we don't 16741 # have to do anything special. 16742 aix_use_runtimelinking=no 16743 exp_sym_flag='-Bexport' 16744 no_entry_flag="" 16745 else 16746 # If we're using GNU nm, then we don't want the "-C" option. 16747 # -C means demangle to AIX nm, but means don't demangle with GNU nm 16748 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 16749 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' 16750 else 16751 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' 16752 fi 16753 aix_use_runtimelinking=no 16754 16755 # Test if we are trying to use run time linking or normal 16756 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16757 # need to do runtime linking. 16758 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 16759 for ld_flag in $LDFLAGS; do 16760 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 16761 aix_use_runtimelinking=yes 16762 break 16763 fi 16764 done 16765 esac 16766 16767 exp_sym_flag='-bexport' 16768 no_entry_flag='-bnoentry' 16769 fi 16770 16771 # When large executables or shared objects are built, AIX ld can 16772 # have problems creating the table of contents. If linking a library 16773 # or program results in "error TOC overflow" add -mminimal-toc to 16774 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16775 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16776 16777 archive_cmds_GCJ='' 16778 hardcode_direct_GCJ=yes 16779 hardcode_libdir_separator_GCJ=':' 16780 link_all_deplibs_GCJ=yes 16781 16782 if test "$GCC" = yes; then 16783 case $host_os in aix4.012|aix4.012.*) 16784 # We only want to do this on AIX 4.2 and lower, the check 16785 # below for broken collect2 doesn't work under 4.3+ 16786 collect2name=`${CC} -print-prog-name=collect2` 16787 if test -f "$collect2name" && \ 16788 strings "$collect2name" | grep resolve_lib_name >/dev/null 16789 then 16790 # We have reworked collect2 16791 hardcode_direct_GCJ=yes 16792 else 16793 # We have old collect2 16794 hardcode_direct_GCJ=unsupported 16795 # It fails to find uninstalled libraries when the uninstalled 16796 # path is not listed in the libpath. Setting hardcode_minus_L 16797 # to unsupported forces relinking 16798 hardcode_minus_L_GCJ=yes 16799 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16800 hardcode_libdir_separator_GCJ= 16801 fi 16802 esac 16803 shared_flag='-shared' 16804 else 16805 # not using gcc 16806 if test "$host_cpu" = ia64; then 16807 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16808 # chokes on -Wl,-G. The following line is correct: 16809 shared_flag='-G' 16810 else 16811 if test "$aix_use_runtimelinking" = yes; then 16812 shared_flag='${wl}-G' 16813 else 16814 shared_flag='${wl}-bM:SRE' 16815 fi 16816 fi 16817 fi 16818 16819 # It seems that -bexpall does not export symbols beginning with 16820 # underscore (_), so it is better to generate a list of symbols to export. 16821 always_export_symbols_GCJ=yes 16822 if test "$aix_use_runtimelinking" = yes; then 16823 # Warning - without using the other runtime loading flags (-brtl), 16824 # -berok will link without error, but may produce a broken library. 16825 allow_undefined_flag_GCJ='-berok' 16826 # Determine the default libpath from the value encoded in an empty executable. 16827 cat >conftest.$ac_ext <<_ACEOF 16828/* confdefs.h. */ 16829_ACEOF 16830cat confdefs.h >>conftest.$ac_ext 16831cat >>conftest.$ac_ext <<_ACEOF 16832/* end confdefs.h. */ 16833 16834int 16835main () 16836{ 16837 16838 ; 16839 return 0; 16840} 16841_ACEOF 16842rm -f conftest.$ac_objext conftest$ac_exeext 16843if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16844 (eval $ac_link) 2>conftest.er1 16845 ac_status=$? 16846 grep -v '^ *+' conftest.er1 >conftest.err 16847 rm -f conftest.er1 16848 cat conftest.err >&5 16849 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16850 (exit $ac_status); } && 16851 { ac_try='test -z "$ac_c_werror_flag" 16852 || test ! -s conftest.err' 16853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16854 (eval $ac_try) 2>&5 16855 ac_status=$? 16856 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16857 (exit $ac_status); }; } && 16858 { ac_try='test -s conftest$ac_exeext' 16859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16860 (eval $ac_try) 2>&5 16861 ac_status=$? 16862 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16863 (exit $ac_status); }; }; then 16864 16865aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16866}'` 16867# Check for a 64-bit object if we didn't find anything. 16868if 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; } 16869}'`; fi 16870else 16871 echo "$as_me: failed program was:" >&5 16872sed 's/^/| /' conftest.$ac_ext >&5 16873 16874fi 16875rm -f conftest.err conftest.$ac_objext \ 16876 conftest$ac_exeext conftest.$ac_ext 16877if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16878 16879 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 16880 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" 16881 else 16882 if test "$host_cpu" = ia64; then 16883 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 16884 allow_undefined_flag_GCJ="-z nodefs" 16885 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" 16886 else 16887 # Determine the default libpath from the value encoded in an empty executable. 16888 cat >conftest.$ac_ext <<_ACEOF 16889/* confdefs.h. */ 16890_ACEOF 16891cat confdefs.h >>conftest.$ac_ext 16892cat >>conftest.$ac_ext <<_ACEOF 16893/* end confdefs.h. */ 16894 16895int 16896main () 16897{ 16898 16899 ; 16900 return 0; 16901} 16902_ACEOF 16903rm -f conftest.$ac_objext conftest$ac_exeext 16904if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16905 (eval $ac_link) 2>conftest.er1 16906 ac_status=$? 16907 grep -v '^ *+' conftest.er1 >conftest.err 16908 rm -f conftest.er1 16909 cat conftest.err >&5 16910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16911 (exit $ac_status); } && 16912 { ac_try='test -z "$ac_c_werror_flag" 16913 || test ! -s conftest.err' 16914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16915 (eval $ac_try) 2>&5 16916 ac_status=$? 16917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16918 (exit $ac_status); }; } && 16919 { ac_try='test -s conftest$ac_exeext' 16920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16921 (eval $ac_try) 2>&5 16922 ac_status=$? 16923 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16924 (exit $ac_status); }; }; then 16925 16926aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16927}'` 16928# Check for a 64-bit object if we didn't find anything. 16929if 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; } 16930}'`; fi 16931else 16932 echo "$as_me: failed program was:" >&5 16933sed 's/^/| /' conftest.$ac_ext >&5 16934 16935fi 16936rm -f conftest.err conftest.$ac_objext \ 16937 conftest$ac_exeext conftest.$ac_ext 16938if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16939 16940 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 16941 # Warning - without using the other run time loading flags, 16942 # -berok will link without error, but may produce a broken library. 16943 no_undefined_flag_GCJ=' ${wl}-bernotok' 16944 allow_undefined_flag_GCJ=' ${wl}-berok' 16945 # -bexpall does not export symbols beginning with underscore (_) 16946 always_export_symbols_GCJ=yes 16947 # Exported symbols can be pulled into shared objects from archives 16948 whole_archive_flag_spec_GCJ=' ' 16949 archive_cmds_need_lc_GCJ=yes 16950 # This is similar to how AIX traditionally builds it's shared libraries. 16951 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' 16952 fi 16953 fi 16954 ;; 16955 16956 amigaos*) 16957 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)' 16958 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16959 hardcode_minus_L_GCJ=yes 16960 # see comment about different semantics on the GNU ld section 16961 ld_shlibs_GCJ=no 16962 ;; 16963 16964 bsdi[45]*) 16965 export_dynamic_flag_spec_GCJ=-rdynamic 16966 ;; 16967 16968 cygwin* | mingw* | pw32*) 16969 # When not using gcc, we currently assume that we are using 16970 # Microsoft Visual C++. 16971 # hardcode_libdir_flag_spec is actually meaningless, as there is 16972 # no search path for DLLs. 16973 hardcode_libdir_flag_spec_GCJ=' ' 16974 allow_undefined_flag_GCJ=unsupported 16975 # Tell ltmain to make .lib files, not .a files. 16976 libext=lib 16977 # Tell ltmain to make .dll files, not .so files. 16978 shrext_cmds=".dll" 16979 # FIXME: Setting linknames here is a bad hack. 16980 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 16981 # The linker will automatically build a .lib file if we build a DLL. 16982 old_archive_From_new_cmds_GCJ='true' 16983 # FIXME: Should let the user specify the lib program. 16984 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 16985 fix_srcfile_path='`cygpath -w "$srcfile"`' 16986 enable_shared_with_static_runtimes_GCJ=yes 16987 ;; 16988 16989 darwin* | rhapsody*) 16990 case "$host_os" in 16991 rhapsody* | darwin1.[012]) 16992 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 16993 ;; 16994 *) # Darwin 1.3 on 16995 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 16996 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 16997 else 16998 case ${MACOSX_DEPLOYMENT_TARGET} in 16999 10.[012]) 17000 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17001 ;; 17002 10.*) 17003 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 17004 ;; 17005 esac 17006 fi 17007 ;; 17008 esac 17009 archive_cmds_need_lc_GCJ=no 17010 hardcode_direct_GCJ=no 17011 hardcode_automatic_GCJ=yes 17012 hardcode_shlibpath_var_GCJ=unsupported 17013 whole_archive_flag_spec_GCJ='' 17014 link_all_deplibs_GCJ=yes 17015 if test "$GCC" = yes ; then 17016 output_verbose_link_cmd='echo' 17017 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 17018 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17019 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 17020 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17021 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}' 17022 else 17023 case "$cc_basename" in 17024 xlc*) 17025 output_verbose_link_cmd='echo' 17026 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 17027 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17028 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 17029 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17030 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}' 17031 ;; 17032 *) 17033 ld_shlibs_GCJ=no 17034 ;; 17035 esac 17036 fi 17037 ;; 17038 17039 dgux*) 17040 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17041 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17042 hardcode_shlibpath_var_GCJ=no 17043 ;; 17044 17045 freebsd1*) 17046 ld_shlibs_GCJ=no 17047 ;; 17048 17049 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17050 # support. Future versions do this automatically, but an explicit c++rt0.o 17051 # does not break anything, and helps significantly (at the cost of a little 17052 # extra space). 17053 freebsd2.2*) 17054 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17055 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17056 hardcode_direct_GCJ=yes 17057 hardcode_shlibpath_var_GCJ=no 17058 ;; 17059 17060 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17061 freebsd2*) 17062 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17063 hardcode_direct_GCJ=yes 17064 hardcode_minus_L_GCJ=yes 17065 hardcode_shlibpath_var_GCJ=no 17066 ;; 17067 17068 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17069 freebsd* | kfreebsd*-gnu) 17070 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17071 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17072 hardcode_direct_GCJ=yes 17073 hardcode_shlibpath_var_GCJ=no 17074 ;; 17075 17076 hpux9*) 17077 if test "$GCC" = yes; then 17078 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' 17079 else 17080 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' 17081 fi 17082 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17083 hardcode_libdir_separator_GCJ=: 17084 hardcode_direct_GCJ=yes 17085 17086 # hardcode_minus_L: Not really in the search PATH, 17087 # but as the default location of the library. 17088 hardcode_minus_L_GCJ=yes 17089 export_dynamic_flag_spec_GCJ='${wl}-E' 17090 ;; 17091 17092 hpux10* | hpux11*) 17093 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17094 case "$host_cpu" in 17095 hppa*64*|ia64*) 17096 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17097 ;; 17098 *) 17099 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17100 ;; 17101 esac 17102 else 17103 case "$host_cpu" in 17104 hppa*64*|ia64*) 17105 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 17106 ;; 17107 *) 17108 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17109 ;; 17110 esac 17111 fi 17112 if test "$with_gnu_ld" = no; then 17113 case "$host_cpu" in 17114 hppa*64*) 17115 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17116 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 17117 hardcode_libdir_separator_GCJ=: 17118 hardcode_direct_GCJ=no 17119 hardcode_shlibpath_var_GCJ=no 17120 ;; 17121 ia64*) 17122 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17123 hardcode_direct_GCJ=no 17124 hardcode_shlibpath_var_GCJ=no 17125 17126 # hardcode_minus_L: Not really in the search PATH, 17127 # but as the default location of the library. 17128 hardcode_minus_L_GCJ=yes 17129 ;; 17130 *) 17131 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17132 hardcode_libdir_separator_GCJ=: 17133 hardcode_direct_GCJ=yes 17134 export_dynamic_flag_spec_GCJ='${wl}-E' 17135 17136 # hardcode_minus_L: Not really in the search PATH, 17137 # but as the default location of the library. 17138 hardcode_minus_L_GCJ=yes 17139 ;; 17140 esac 17141 fi 17142 ;; 17143 17144 irix5* | irix6* | nonstopux*) 17145 if test "$GCC" = yes; then 17146 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' 17147 else 17148 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' 17149 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 17150 fi 17151 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17152 hardcode_libdir_separator_GCJ=: 17153 link_all_deplibs_GCJ=yes 17154 ;; 17155 17156 netbsd*) 17157 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17158 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17159 else 17160 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17161 fi 17162 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17163 hardcode_direct_GCJ=yes 17164 hardcode_shlibpath_var_GCJ=no 17165 ;; 17166 17167 newsos6) 17168 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17169 hardcode_direct_GCJ=yes 17170 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17171 hardcode_libdir_separator_GCJ=: 17172 hardcode_shlibpath_var_GCJ=no 17173 ;; 17174 17175 openbsd*) 17176 hardcode_direct_GCJ=yes 17177 hardcode_shlibpath_var_GCJ=no 17178 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17179 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17180 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 17181 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17182 export_dynamic_flag_spec_GCJ='${wl}-E' 17183 else 17184 case $host_os in 17185 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 17186 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17187 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17188 ;; 17189 *) 17190 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17191 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17192 ;; 17193 esac 17194 fi 17195 ;; 17196 17197 os2*) 17198 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17199 hardcode_minus_L_GCJ=yes 17200 allow_undefined_flag_GCJ=unsupported 17201 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' 17202 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 17203 ;; 17204 17205 osf3*) 17206 if test "$GCC" = yes; then 17207 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17208 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' 17209 else 17210 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17211 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' 17212 fi 17213 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17214 hardcode_libdir_separator_GCJ=: 17215 ;; 17216 17217 osf4* | osf5*) # as osf3* with the addition of -msym flag 17218 if test "$GCC" = yes; then 17219 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17220 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' 17221 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17222 else 17223 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17224 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' 17225 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~ 17226 $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' 17227 17228 # Both c and cxx compiler support -rpath directly 17229 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 17230 fi 17231 hardcode_libdir_separator_GCJ=: 17232 ;; 17233 17234 sco3.2v5*) 17235 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17236 hardcode_shlibpath_var_GCJ=no 17237 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 17238 runpath_var=LD_RUN_PATH 17239 hardcode_runpath_var=yes 17240 ;; 17241 17242 solaris*) 17243 no_undefined_flag_GCJ=' -z text' 17244 if test "$GCC" = yes; then 17245 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17246 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17247 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 17248 else 17249 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 17250 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17251 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 17252 fi 17253 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17254 hardcode_shlibpath_var_GCJ=no 17255 case $host_os in 17256 solaris2.[0-5] | solaris2.[0-5].*) ;; 17257 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 17258 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 17259 esac 17260 link_all_deplibs_GCJ=yes 17261 ;; 17262 17263 sunos4*) 17264 if test "x$host_vendor" = xsequent; then 17265 # Use $CC to link under sequent, because it throws in some extra .o 17266 # files that make .init and .fini sections work. 17267 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17268 else 17269 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17270 fi 17271 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17272 hardcode_direct_GCJ=yes 17273 hardcode_minus_L_GCJ=yes 17274 hardcode_shlibpath_var_GCJ=no 17275 ;; 17276 17277 sysv4) 17278 case $host_vendor in 17279 sni) 17280 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17281 hardcode_direct_GCJ=yes # is this really true??? 17282 ;; 17283 siemens) 17284 ## LD is ld it makes a PLAMLIB 17285 ## CC just makes a GrossModule. 17286 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17287 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 17288 hardcode_direct_GCJ=no 17289 ;; 17290 motorola) 17291 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17292 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 17293 ;; 17294 esac 17295 runpath_var='LD_RUN_PATH' 17296 hardcode_shlibpath_var_GCJ=no 17297 ;; 17298 17299 sysv4.3*) 17300 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17301 hardcode_shlibpath_var_GCJ=no 17302 export_dynamic_flag_spec_GCJ='-Bexport' 17303 ;; 17304 17305 sysv4*MP*) 17306 if test -d /usr/nec; then 17307 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17308 hardcode_shlibpath_var_GCJ=no 17309 runpath_var=LD_RUN_PATH 17310 hardcode_runpath_var=yes 17311 ld_shlibs_GCJ=yes 17312 fi 17313 ;; 17314 17315 sysv4.2uw2*) 17316 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17317 hardcode_direct_GCJ=yes 17318 hardcode_minus_L_GCJ=no 17319 hardcode_shlibpath_var_GCJ=no 17320 hardcode_runpath_var=yes 17321 runpath_var=LD_RUN_PATH 17322 ;; 17323 17324 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 17325 no_undefined_flag_GCJ='${wl}-z ${wl}text' 17326 if test "$GCC" = yes; then 17327 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17328 else 17329 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17330 fi 17331 runpath_var='LD_RUN_PATH' 17332 hardcode_shlibpath_var_GCJ=no 17333 ;; 17334 17335 sysv5*) 17336 no_undefined_flag_GCJ=' -z text' 17337 # $CC -shared without GNU ld will not create a library from C++ 17338 # object files and a static libstdc++, better avoid it by now 17339 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 17340 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17341 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 17342 hardcode_libdir_flag_spec_GCJ= 17343 hardcode_shlibpath_var_GCJ=no 17344 runpath_var='LD_RUN_PATH' 17345 ;; 17346 17347 uts4*) 17348 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17349 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17350 hardcode_shlibpath_var_GCJ=no 17351 ;; 17352 17353 *) 17354 ld_shlibs_GCJ=no 17355 ;; 17356 esac 17357 fi 17358 17359echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 17360echo "${ECHO_T}$ld_shlibs_GCJ" >&6 17361test "$ld_shlibs_GCJ" = no && can_build_shared=no 17362 17363variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17364if test "$GCC" = yes; then 17365 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17366fi 17367 17368# 17369# Do we need to explicitly link libc? 17370# 17371case "x$archive_cmds_need_lc_GCJ" in 17372x|xyes) 17373 # Assume -lc should be added 17374 archive_cmds_need_lc_GCJ=yes 17375 17376 if test "$enable_shared" = yes && test "$GCC" = yes; then 17377 case $archive_cmds_GCJ in 17378 *'~'*) 17379 # FIXME: we may have to deal with multi-command sequences. 17380 ;; 17381 '$CC '*) 17382 # Test whether the compiler implicitly links with -lc since on some 17383 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17384 # to ld, don't add -lc before -lgcc. 17385 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 17386echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 17387 $rm conftest* 17388 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17389 17390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17391 (eval $ac_compile) 2>&5 17392 ac_status=$? 17393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17394 (exit $ac_status); } 2>conftest.err; then 17395 soname=conftest 17396 lib=conftest 17397 libobjs=conftest.$ac_objext 17398 deplibs= 17399 wl=$lt_prog_compiler_wl_GCJ 17400 compiler_flags=-v 17401 linker_flags=-v 17402 verstring= 17403 output_objdir=. 17404 libname=conftest 17405 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 17406 allow_undefined_flag_GCJ= 17407 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 17408 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 17409 ac_status=$? 17410 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17411 (exit $ac_status); } 17412 then 17413 archive_cmds_need_lc_GCJ=no 17414 else 17415 archive_cmds_need_lc_GCJ=yes 17416 fi 17417 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 17418 else 17419 cat conftest.err 1>&5 17420 fi 17421 $rm conftest* 17422 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 17423echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 17424 ;; 17425 esac 17426 fi 17427 ;; 17428esac 17429 17430echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 17431echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 17432library_names_spec= 17433libname_spec='lib$name' 17434soname_spec= 17435shrext_cmds=".so" 17436postinstall_cmds= 17437postuninstall_cmds= 17438finish_cmds= 17439finish_eval= 17440shlibpath_var= 17441shlibpath_overrides_runpath=unknown 17442version_type=none 17443dynamic_linker="$host_os ld.so" 17444sys_lib_dlsearch_path_spec="/lib /usr/lib" 17445if test "$GCC" = yes; then 17446 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17447 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 17448 # if the path contains ";" then we assume it to be the separator 17449 # otherwise default to the standard path separator (i.e. ":") - it is 17450 # assumed that no part of a normal pathname contains ";" but that should 17451 # okay in the real world where ";" in dirpaths is itself problematic. 17452 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17453 else 17454 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17455 fi 17456else 17457 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17458fi 17459need_lib_prefix=unknown 17460hardcode_into_libs=no 17461 17462# when you set need_version to no, make sure it does not cause -set_version 17463# flags to be left without arguments 17464need_version=unknown 17465 17466case $host_os in 17467aix3*) 17468 version_type=linux 17469 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 17470 shlibpath_var=LIBPATH 17471 17472 # AIX 3 has no versioning support, so we append a major version to the name. 17473 soname_spec='${libname}${release}${shared_ext}$major' 17474 ;; 17475 17476aix4* | aix5*) 17477 version_type=linux 17478 need_lib_prefix=no 17479 need_version=no 17480 hardcode_into_libs=yes 17481 if test "$host_cpu" = ia64; then 17482 # AIX 5 supports IA64 17483 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 17484 shlibpath_var=LD_LIBRARY_PATH 17485 else 17486 # With GCC up to 2.95.x, collect2 would create an import file 17487 # for dependence libraries. The import file would start with 17488 # the line `#! .'. This would cause the generated library to 17489 # depend on `.', always an invalid library. This was fixed in 17490 # development snapshots of GCC prior to 3.0. 17491 case $host_os in 17492 aix4 | aix4.[01] | aix4.[01].*) 17493 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17494 echo ' yes ' 17495 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 17496 : 17497 else 17498 can_build_shared=no 17499 fi 17500 ;; 17501 esac 17502 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 17503 # soname into executable. Probably we can add versioning support to 17504 # collect2, so additional links can be useful in future. 17505 if test "$aix_use_runtimelinking" = yes; then 17506 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17507 # instead of lib<name>.a to let people know that these are not 17508 # typical AIX shared libraries. 17509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17510 else 17511 # We preserve .a as extension for shared libraries through AIX4.2 17512 # and later when we are not doing run time linking. 17513 library_names_spec='${libname}${release}.a $libname.a' 17514 soname_spec='${libname}${release}${shared_ext}$major' 17515 fi 17516 shlibpath_var=LIBPATH 17517 fi 17518 ;; 17519 17520amigaos*) 17521 library_names_spec='$libname.ixlibrary $libname.a' 17522 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17523 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' 17524 ;; 17525 17526beos*) 17527 library_names_spec='${libname}${shared_ext}' 17528 dynamic_linker="$host_os ld.so" 17529 shlibpath_var=LIBRARY_PATH 17530 ;; 17531 17532bsdi[45]*) 17533 version_type=linux 17534 need_version=no 17535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17536 soname_spec='${libname}${release}${shared_ext}$major' 17537 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17538 shlibpath_var=LD_LIBRARY_PATH 17539 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17540 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17541 # the default ld.so.conf also contains /usr/contrib/lib and 17542 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17543 # libtool to hard-code these into programs 17544 ;; 17545 17546cygwin* | mingw* | pw32*) 17547 version_type=windows 17548 shrext_cmds=".dll" 17549 need_version=no 17550 need_lib_prefix=no 17551 17552 case $GCC,$host_os in 17553 yes,cygwin* | yes,mingw* | yes,pw32*) 17554 library_names_spec='$libname.dll.a' 17555 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17556 postinstall_cmds='base_file=`basename \${file}`~ 17557 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 17558 dldir=$destdir/`dirname \$dlpath`~ 17559 test -d \$dldir || mkdir -p \$dldir~ 17560 $install_prog $dir/$dlname \$dldir/$dlname' 17561 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17562 dlpath=$dir/\$dldll~ 17563 $rm \$dlpath' 17564 shlibpath_overrides_runpath=yes 17565 17566 case $host_os in 17567 cygwin*) 17568 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17569 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17570 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 17571 ;; 17572 mingw*) 17573 # MinGW DLLs use traditional 'lib' prefix 17574 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17575 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17576 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 17577 # It is most probably a Windows format PATH printed by 17578 # mingw gcc, but we are running on Cygwin. Gcc prints its search 17579 # path with ; separators, and with drive letters. We can handle the 17580 # drive letters (cygwin fileutils understands them), so leave them, 17581 # especially as we might pass files found there to a mingw objdump, 17582 # which wouldn't understand a cygwinified path. Ahh. 17583 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17584 else 17585 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17586 fi 17587 ;; 17588 pw32*) 17589 # pw32 DLLs use 'pw' prefix rather than 'lib' 17590 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 17591 ;; 17592 esac 17593 ;; 17594 17595 *) 17596 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 17597 ;; 17598 esac 17599 dynamic_linker='Win32 ld.exe' 17600 # FIXME: first we should search . and the directory the executable is in 17601 shlibpath_var=PATH 17602 ;; 17603 17604darwin* | rhapsody*) 17605 dynamic_linker="$host_os dyld" 17606 version_type=darwin 17607 need_lib_prefix=no 17608 need_version=no 17609 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 17610 soname_spec='${libname}${release}${major}$shared_ext' 17611 shlibpath_overrides_runpath=yes 17612 shlibpath_var=DYLD_LIBRARY_PATH 17613 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 17614 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 17615 if test "$GCC" = yes; then 17616 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"` 17617 else 17618 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 17619 fi 17620 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17621 ;; 17622 17623dgux*) 17624 version_type=linux 17625 need_lib_prefix=no 17626 need_version=no 17627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 17628 soname_spec='${libname}${release}${shared_ext}$major' 17629 shlibpath_var=LD_LIBRARY_PATH 17630 ;; 17631 17632freebsd1*) 17633 dynamic_linker=no 17634 ;; 17635 17636kfreebsd*-gnu) 17637 version_type=linux 17638 need_lib_prefix=no 17639 need_version=no 17640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17641 soname_spec='${libname}${release}${shared_ext}$major' 17642 shlibpath_var=LD_LIBRARY_PATH 17643 shlibpath_overrides_runpath=no 17644 hardcode_into_libs=yes 17645 dynamic_linker='GNU ld.so' 17646 ;; 17647 17648freebsd*) 17649 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 17650 version_type=freebsd-$objformat 17651 case $version_type in 17652 freebsd-elf*) 17653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17654 need_version=no 17655 need_lib_prefix=no 17656 ;; 17657 freebsd-*) 17658 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 17659 need_version=yes 17660 ;; 17661 esac 17662 shlibpath_var=LD_LIBRARY_PATH 17663 case $host_os in 17664 freebsd2*) 17665 shlibpath_overrides_runpath=yes 17666 ;; 17667 freebsd3.01* | freebsdelf3.01*) 17668 shlibpath_overrides_runpath=yes 17669 hardcode_into_libs=yes 17670 ;; 17671 *) # from 3.2 on 17672 shlibpath_overrides_runpath=no 17673 hardcode_into_libs=yes 17674 ;; 17675 esac 17676 ;; 17677 17678gnu*) 17679 version_type=linux 17680 need_lib_prefix=no 17681 need_version=no 17682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 17683 soname_spec='${libname}${release}${shared_ext}$major' 17684 shlibpath_var=LD_LIBRARY_PATH 17685 hardcode_into_libs=yes 17686 ;; 17687 17688hpux9* | hpux10* | hpux11*) 17689 # Give a soname corresponding to the major version so that dld.sl refuses to 17690 # link against other versions. 17691 version_type=sunos 17692 need_lib_prefix=no 17693 need_version=no 17694 case "$host_cpu" in 17695 ia64*) 17696 shrext_cmds='.so' 17697 hardcode_into_libs=yes 17698 dynamic_linker="$host_os dld.so" 17699 shlibpath_var=LD_LIBRARY_PATH 17700 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17702 soname_spec='${libname}${release}${shared_ext}$major' 17703 if test "X$HPUX_IA64_MODE" = X32; then 17704 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17705 else 17706 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17707 fi 17708 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17709 ;; 17710 hppa*64*) 17711 shrext_cmds='.sl' 17712 hardcode_into_libs=yes 17713 dynamic_linker="$host_os dld.sl" 17714 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17715 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17717 soname_spec='${libname}${release}${shared_ext}$major' 17718 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17719 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17720 ;; 17721 *) 17722 shrext_cmds='.sl' 17723 dynamic_linker="$host_os dld.sl" 17724 shlibpath_var=SHLIB_PATH 17725 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17727 soname_spec='${libname}${release}${shared_ext}$major' 17728 ;; 17729 esac 17730 # HP-UX runs *really* slowly unless shared libraries are mode 555. 17731 postinstall_cmds='chmod 555 $lib' 17732 ;; 17733 17734irix5* | irix6* | nonstopux*) 17735 case $host_os in 17736 nonstopux*) version_type=nonstopux ;; 17737 *) 17738 if test "$lt_cv_prog_gnu_ld" = yes; then 17739 version_type=linux 17740 else 17741 version_type=irix 17742 fi ;; 17743 esac 17744 need_lib_prefix=no 17745 need_version=no 17746 soname_spec='${libname}${release}${shared_ext}$major' 17747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 17748 case $host_os in 17749 irix5* | nonstopux*) 17750 libsuff= shlibsuff= 17751 ;; 17752 *) 17753 case $LD in # libtool.m4 will add one of these switches to LD 17754 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17755 libsuff= shlibsuff= libmagic=32-bit;; 17756 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17757 libsuff=32 shlibsuff=N32 libmagic=N32;; 17758 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17759 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17760 *) libsuff= shlibsuff= libmagic=never-match;; 17761 esac 17762 ;; 17763 esac 17764 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17765 shlibpath_overrides_runpath=no 17766 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 17767 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 17768 hardcode_into_libs=yes 17769 ;; 17770 17771# No shared lib support for Linux oldld, aout, or coff. 17772linux*oldld* | linux*aout* | linux*coff*) 17773 dynamic_linker=no 17774 ;; 17775 17776# This must be Linux ELF. 17777linux*) 17778 version_type=linux 17779 need_lib_prefix=no 17780 need_version=no 17781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17782 soname_spec='${libname}${release}${shared_ext}$major' 17783 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17784 shlibpath_var=LD_LIBRARY_PATH 17785 shlibpath_overrides_runpath=no 17786 # This implies no fast_install, which is unacceptable. 17787 # Some rework will be needed to allow for fast_install 17788 # before this can be enabled. 17789 hardcode_into_libs=yes 17790 17791 # Append ld.so.conf contents to the search path 17792 if test -f /etc/ld.so.conf; then 17793 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` 17794 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 17795 fi 17796 17797 # We used to test for /lib/ld.so.1 and disable shared libraries on 17798 # powerpc, because MkLinux only supported shared libraries with the 17799 # GNU dynamic linker. Since this was broken with cross compilers, 17800 # most powerpc-linux boxes support dynamic linking these days and 17801 # people can always --disable-shared, the test was removed, and we 17802 # assume the GNU/Linux dynamic linker is in use. 17803 dynamic_linker='GNU/Linux ld.so' 17804 ;; 17805 17806knetbsd*-gnu) 17807 version_type=linux 17808 need_lib_prefix=no 17809 need_version=no 17810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17811 soname_spec='${libname}${release}${shared_ext}$major' 17812 shlibpath_var=LD_LIBRARY_PATH 17813 shlibpath_overrides_runpath=no 17814 hardcode_into_libs=yes 17815 dynamic_linker='GNU ld.so' 17816 ;; 17817 17818netbsd*) 17819 version_type=sunos 17820 need_lib_prefix=no 17821 need_version=no 17822 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17824 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17825 dynamic_linker='NetBSD (a.out) ld.so' 17826 else 17827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17828 soname_spec='${libname}${release}${shared_ext}$major' 17829 dynamic_linker='NetBSD ld.elf_so' 17830 fi 17831 shlibpath_var=LD_LIBRARY_PATH 17832 shlibpath_overrides_runpath=yes 17833 hardcode_into_libs=yes 17834 ;; 17835 17836newsos6) 17837 version_type=linux 17838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17839 shlibpath_var=LD_LIBRARY_PATH 17840 shlibpath_overrides_runpath=yes 17841 ;; 17842 17843nto-qnx*) 17844 version_type=linux 17845 need_lib_prefix=no 17846 need_version=no 17847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17848 soname_spec='${libname}${release}${shared_ext}$major' 17849 shlibpath_var=LD_LIBRARY_PATH 17850 shlibpath_overrides_runpath=yes 17851 ;; 17852 17853openbsd*) 17854 version_type=sunos 17855 need_lib_prefix=no 17856 need_version=no 17857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17858 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17859 shlibpath_var=LD_LIBRARY_PATH 17860 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17861 case $host_os in 17862 openbsd2.[89] | openbsd2.[89].*) 17863 shlibpath_overrides_runpath=no 17864 ;; 17865 *) 17866 shlibpath_overrides_runpath=yes 17867 ;; 17868 esac 17869 else 17870 shlibpath_overrides_runpath=yes 17871 fi 17872 ;; 17873 17874os2*) 17875 libname_spec='$name' 17876 shrext_cmds=".dll" 17877 need_lib_prefix=no 17878 library_names_spec='$libname${shared_ext} $libname.a' 17879 dynamic_linker='OS/2 ld.exe' 17880 shlibpath_var=LIBPATH 17881 ;; 17882 17883osf3* | osf4* | osf5*) 17884 version_type=osf 17885 need_lib_prefix=no 17886 need_version=no 17887 soname_spec='${libname}${release}${shared_ext}$major' 17888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17889 shlibpath_var=LD_LIBRARY_PATH 17890 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17891 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 17892 ;; 17893 17894sco3.2v5*) 17895 version_type=osf 17896 soname_spec='${libname}${release}${shared_ext}$major' 17897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17898 shlibpath_var=LD_LIBRARY_PATH 17899 ;; 17900 17901solaris*) 17902 version_type=linux 17903 need_lib_prefix=no 17904 need_version=no 17905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17906 soname_spec='${libname}${release}${shared_ext}$major' 17907 shlibpath_var=LD_LIBRARY_PATH 17908 shlibpath_overrides_runpath=yes 17909 hardcode_into_libs=yes 17910 # ldd complains unless libraries are executable 17911 postinstall_cmds='chmod +x $lib' 17912 ;; 17913 17914sunos4*) 17915 version_type=sunos 17916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17917 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17918 shlibpath_var=LD_LIBRARY_PATH 17919 shlibpath_overrides_runpath=yes 17920 if test "$with_gnu_ld" = yes; then 17921 need_lib_prefix=no 17922 fi 17923 need_version=yes 17924 ;; 17925 17926sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 17927 version_type=linux 17928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17929 soname_spec='${libname}${release}${shared_ext}$major' 17930 shlibpath_var=LD_LIBRARY_PATH 17931 case $host_vendor in 17932 sni) 17933 shlibpath_overrides_runpath=no 17934 need_lib_prefix=no 17935 export_dynamic_flag_spec='${wl}-Blargedynsym' 17936 runpath_var=LD_RUN_PATH 17937 ;; 17938 siemens) 17939 need_lib_prefix=no 17940 ;; 17941 motorola) 17942 need_lib_prefix=no 17943 need_version=no 17944 shlibpath_overrides_runpath=no 17945 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17946 ;; 17947 esac 17948 ;; 17949 17950sysv4*MP*) 17951 if test -d /usr/nec ;then 17952 version_type=linux 17953 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 17954 soname_spec='$libname${shared_ext}.$major' 17955 shlibpath_var=LD_LIBRARY_PATH 17956 fi 17957 ;; 17958 17959uts4*) 17960 version_type=linux 17961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17962 soname_spec='${libname}${release}${shared_ext}$major' 17963 shlibpath_var=LD_LIBRARY_PATH 17964 ;; 17965 17966*) 17967 dynamic_linker=no 17968 ;; 17969esac 17970echo "$as_me:$LINENO: result: $dynamic_linker" >&5 17971echo "${ECHO_T}$dynamic_linker" >&6 17972test "$dynamic_linker" = no && can_build_shared=no 17973 17974echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 17975echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 17976hardcode_action_GCJ= 17977if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 17978 test -n "$runpath_var_GCJ" || \ 17979 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 17980 17981 # We can hardcode non-existant directories. 17982 if test "$hardcode_direct_GCJ" != no && 17983 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17984 # have to relink, otherwise we might link with an installed library 17985 # when we should be linking with a yet-to-be-installed one 17986 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 17987 test "$hardcode_minus_L_GCJ" != no; then 17988 # Linking always hardcodes the temporary library directory. 17989 hardcode_action_GCJ=relink 17990 else 17991 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17992 hardcode_action_GCJ=immediate 17993 fi 17994else 17995 # We cannot hardcode anything, or else we can only hardcode existing 17996 # directories. 17997 hardcode_action_GCJ=unsupported 17998fi 17999echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 18000echo "${ECHO_T}$hardcode_action_GCJ" >&6 18001 18002if test "$hardcode_action_GCJ" = relink; then 18003 # Fast installation is not supported 18004 enable_fast_install=no 18005elif test "$shlibpath_overrides_runpath" = yes || 18006 test "$enable_shared" = no; then 18007 # Fast installation is not necessary 18008 enable_fast_install=needless 18009fi 18010 18011striplib= 18012old_striplib= 18013echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 18014echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 18015if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 18016 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 18017 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 18018 echo "$as_me:$LINENO: result: yes" >&5 18019echo "${ECHO_T}yes" >&6 18020else 18021# FIXME - insert some real tests, host_os isn't really good enough 18022 case $host_os in 18023 darwin*) 18024 if test -n "$STRIP" ; then 18025 striplib="$STRIP -x" 18026 echo "$as_me:$LINENO: result: yes" >&5 18027echo "${ECHO_T}yes" >&6 18028 else 18029 echo "$as_me:$LINENO: result: no" >&5 18030echo "${ECHO_T}no" >&6 18031fi 18032 ;; 18033 *) 18034 echo "$as_me:$LINENO: result: no" >&5 18035echo "${ECHO_T}no" >&6 18036 ;; 18037 esac 18038fi 18039 18040if test "x$enable_dlopen" != xyes; then 18041 enable_dlopen=unknown 18042 enable_dlopen_self=unknown 18043 enable_dlopen_self_static=unknown 18044else 18045 lt_cv_dlopen=no 18046 lt_cv_dlopen_libs= 18047 18048 case $host_os in 18049 beos*) 18050 lt_cv_dlopen="load_add_on" 18051 lt_cv_dlopen_libs= 18052 lt_cv_dlopen_self=yes 18053 ;; 18054 18055 mingw* | pw32*) 18056 lt_cv_dlopen="LoadLibrary" 18057 lt_cv_dlopen_libs= 18058 ;; 18059 18060 cygwin*) 18061 lt_cv_dlopen="dlopen" 18062 lt_cv_dlopen_libs= 18063 ;; 18064 18065 darwin*) 18066 # if libdl is installed we need to link against it 18067 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 18068echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 18069if test "${ac_cv_lib_dl_dlopen+set}" = set; then 18070 echo $ECHO_N "(cached) $ECHO_C" >&6 18071else 18072 ac_check_lib_save_LIBS=$LIBS 18073LIBS="-ldl $LIBS" 18074cat >conftest.$ac_ext <<_ACEOF 18075/* confdefs.h. */ 18076_ACEOF 18077cat confdefs.h >>conftest.$ac_ext 18078cat >>conftest.$ac_ext <<_ACEOF 18079/* end confdefs.h. */ 18080 18081/* Override any gcc2 internal prototype to avoid an error. */ 18082#ifdef __cplusplus 18083extern "C" 18084#endif 18085/* We use char because int might match the return type of a gcc2 18086 builtin and then its argument prototype would still apply. */ 18087char dlopen (); 18088int 18089main () 18090{ 18091dlopen (); 18092 ; 18093 return 0; 18094} 18095_ACEOF 18096rm -f conftest.$ac_objext conftest$ac_exeext 18097if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18098 (eval $ac_link) 2>conftest.er1 18099 ac_status=$? 18100 grep -v '^ *+' conftest.er1 >conftest.err 18101 rm -f conftest.er1 18102 cat conftest.err >&5 18103 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18104 (exit $ac_status); } && 18105 { ac_try='test -z "$ac_c_werror_flag" 18106 || test ! -s conftest.err' 18107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18108 (eval $ac_try) 2>&5 18109 ac_status=$? 18110 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18111 (exit $ac_status); }; } && 18112 { ac_try='test -s conftest$ac_exeext' 18113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18114 (eval $ac_try) 2>&5 18115 ac_status=$? 18116 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18117 (exit $ac_status); }; }; then 18118 ac_cv_lib_dl_dlopen=yes 18119else 18120 echo "$as_me: failed program was:" >&5 18121sed 's/^/| /' conftest.$ac_ext >&5 18122 18123ac_cv_lib_dl_dlopen=no 18124fi 18125rm -f conftest.err conftest.$ac_objext \ 18126 conftest$ac_exeext conftest.$ac_ext 18127LIBS=$ac_check_lib_save_LIBS 18128fi 18129echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 18130echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 18131if test $ac_cv_lib_dl_dlopen = yes; then 18132 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 18133else 18134 18135 lt_cv_dlopen="dyld" 18136 lt_cv_dlopen_libs= 18137 lt_cv_dlopen_self=yes 18138 18139fi 18140 18141 ;; 18142 18143 *) 18144 echo "$as_me:$LINENO: checking for shl_load" >&5 18145echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 18146if test "${ac_cv_func_shl_load+set}" = set; then 18147 echo $ECHO_N "(cached) $ECHO_C" >&6 18148else 18149 cat >conftest.$ac_ext <<_ACEOF 18150/* confdefs.h. */ 18151_ACEOF 18152cat confdefs.h >>conftest.$ac_ext 18153cat >>conftest.$ac_ext <<_ACEOF 18154/* end confdefs.h. */ 18155/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 18156 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18157#define shl_load innocuous_shl_load 18158 18159/* System header to define __stub macros and hopefully few prototypes, 18160 which can conflict with char shl_load (); below. 18161 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18162 <limits.h> exists even on freestanding compilers. */ 18163 18164#ifdef __STDC__ 18165# include <limits.h> 18166#else 18167# include <assert.h> 18168#endif 18169 18170#undef shl_load 18171 18172/* Override any gcc2 internal prototype to avoid an error. */ 18173#ifdef __cplusplus 18174extern "C" 18175{ 18176#endif 18177/* We use char because int might match the return type of a gcc2 18178 builtin and then its argument prototype would still apply. */ 18179char shl_load (); 18180/* The GNU C library defines this for functions which it implements 18181 to always fail with ENOSYS. Some functions are actually named 18182 something starting with __ and the normal name is an alias. */ 18183#if defined (__stub_shl_load) || defined (__stub___shl_load) 18184choke me 18185#else 18186char (*f) () = shl_load; 18187#endif 18188#ifdef __cplusplus 18189} 18190#endif 18191 18192int 18193main () 18194{ 18195return f != shl_load; 18196 ; 18197 return 0; 18198} 18199_ACEOF 18200rm -f conftest.$ac_objext conftest$ac_exeext 18201if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18202 (eval $ac_link) 2>conftest.er1 18203 ac_status=$? 18204 grep -v '^ *+' conftest.er1 >conftest.err 18205 rm -f conftest.er1 18206 cat conftest.err >&5 18207 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18208 (exit $ac_status); } && 18209 { ac_try='test -z "$ac_c_werror_flag" 18210 || test ! -s conftest.err' 18211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18212 (eval $ac_try) 2>&5 18213 ac_status=$? 18214 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18215 (exit $ac_status); }; } && 18216 { ac_try='test -s conftest$ac_exeext' 18217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18218 (eval $ac_try) 2>&5 18219 ac_status=$? 18220 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18221 (exit $ac_status); }; }; then 18222 ac_cv_func_shl_load=yes 18223else 18224 echo "$as_me: failed program was:" >&5 18225sed 's/^/| /' conftest.$ac_ext >&5 18226 18227ac_cv_func_shl_load=no 18228fi 18229rm -f conftest.err conftest.$ac_objext \ 18230 conftest$ac_exeext conftest.$ac_ext 18231fi 18232echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 18233echo "${ECHO_T}$ac_cv_func_shl_load" >&6 18234if test $ac_cv_func_shl_load = yes; then 18235 lt_cv_dlopen="shl_load" 18236else 18237 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 18238echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 18239if test "${ac_cv_lib_dld_shl_load+set}" = set; then 18240 echo $ECHO_N "(cached) $ECHO_C" >&6 18241else 18242 ac_check_lib_save_LIBS=$LIBS 18243LIBS="-ldld $LIBS" 18244cat >conftest.$ac_ext <<_ACEOF 18245/* confdefs.h. */ 18246_ACEOF 18247cat confdefs.h >>conftest.$ac_ext 18248cat >>conftest.$ac_ext <<_ACEOF 18249/* end confdefs.h. */ 18250 18251/* Override any gcc2 internal prototype to avoid an error. */ 18252#ifdef __cplusplus 18253extern "C" 18254#endif 18255/* We use char because int might match the return type of a gcc2 18256 builtin and then its argument prototype would still apply. */ 18257char shl_load (); 18258int 18259main () 18260{ 18261shl_load (); 18262 ; 18263 return 0; 18264} 18265_ACEOF 18266rm -f conftest.$ac_objext conftest$ac_exeext 18267if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18268 (eval $ac_link) 2>conftest.er1 18269 ac_status=$? 18270 grep -v '^ *+' conftest.er1 >conftest.err 18271 rm -f conftest.er1 18272 cat conftest.err >&5 18273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18274 (exit $ac_status); } && 18275 { ac_try='test -z "$ac_c_werror_flag" 18276 || test ! -s conftest.err' 18277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18278 (eval $ac_try) 2>&5 18279 ac_status=$? 18280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18281 (exit $ac_status); }; } && 18282 { ac_try='test -s conftest$ac_exeext' 18283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18284 (eval $ac_try) 2>&5 18285 ac_status=$? 18286 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18287 (exit $ac_status); }; }; then 18288 ac_cv_lib_dld_shl_load=yes 18289else 18290 echo "$as_me: failed program was:" >&5 18291sed 's/^/| /' conftest.$ac_ext >&5 18292 18293ac_cv_lib_dld_shl_load=no 18294fi 18295rm -f conftest.err conftest.$ac_objext \ 18296 conftest$ac_exeext conftest.$ac_ext 18297LIBS=$ac_check_lib_save_LIBS 18298fi 18299echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 18300echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 18301if test $ac_cv_lib_dld_shl_load = yes; then 18302 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 18303else 18304 echo "$as_me:$LINENO: checking for dlopen" >&5 18305echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 18306if test "${ac_cv_func_dlopen+set}" = set; then 18307 echo $ECHO_N "(cached) $ECHO_C" >&6 18308else 18309 cat >conftest.$ac_ext <<_ACEOF 18310/* confdefs.h. */ 18311_ACEOF 18312cat confdefs.h >>conftest.$ac_ext 18313cat >>conftest.$ac_ext <<_ACEOF 18314/* end confdefs.h. */ 18315/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 18316 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18317#define dlopen innocuous_dlopen 18318 18319/* System header to define __stub macros and hopefully few prototypes, 18320 which can conflict with char dlopen (); below. 18321 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18322 <limits.h> exists even on freestanding compilers. */ 18323 18324#ifdef __STDC__ 18325# include <limits.h> 18326#else 18327# include <assert.h> 18328#endif 18329 18330#undef dlopen 18331 18332/* Override any gcc2 internal prototype to avoid an error. */ 18333#ifdef __cplusplus 18334extern "C" 18335{ 18336#endif 18337/* We use char because int might match the return type of a gcc2 18338 builtin and then its argument prototype would still apply. */ 18339char dlopen (); 18340/* The GNU C library defines this for functions which it implements 18341 to always fail with ENOSYS. Some functions are actually named 18342 something starting with __ and the normal name is an alias. */ 18343#if defined (__stub_dlopen) || defined (__stub___dlopen) 18344choke me 18345#else 18346char (*f) () = dlopen; 18347#endif 18348#ifdef __cplusplus 18349} 18350#endif 18351 18352int 18353main () 18354{ 18355return f != dlopen; 18356 ; 18357 return 0; 18358} 18359_ACEOF 18360rm -f conftest.$ac_objext conftest$ac_exeext 18361if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18362 (eval $ac_link) 2>conftest.er1 18363 ac_status=$? 18364 grep -v '^ *+' conftest.er1 >conftest.err 18365 rm -f conftest.er1 18366 cat conftest.err >&5 18367 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18368 (exit $ac_status); } && 18369 { ac_try='test -z "$ac_c_werror_flag" 18370 || test ! -s conftest.err' 18371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18372 (eval $ac_try) 2>&5 18373 ac_status=$? 18374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18375 (exit $ac_status); }; } && 18376 { ac_try='test -s conftest$ac_exeext' 18377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18378 (eval $ac_try) 2>&5 18379 ac_status=$? 18380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18381 (exit $ac_status); }; }; then 18382 ac_cv_func_dlopen=yes 18383else 18384 echo "$as_me: failed program was:" >&5 18385sed 's/^/| /' conftest.$ac_ext >&5 18386 18387ac_cv_func_dlopen=no 18388fi 18389rm -f conftest.err conftest.$ac_objext \ 18390 conftest$ac_exeext conftest.$ac_ext 18391fi 18392echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 18393echo "${ECHO_T}$ac_cv_func_dlopen" >&6 18394if test $ac_cv_func_dlopen = yes; then 18395 lt_cv_dlopen="dlopen" 18396else 18397 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 18398echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 18399if test "${ac_cv_lib_dl_dlopen+set}" = set; then 18400 echo $ECHO_N "(cached) $ECHO_C" >&6 18401else 18402 ac_check_lib_save_LIBS=$LIBS 18403LIBS="-ldl $LIBS" 18404cat >conftest.$ac_ext <<_ACEOF 18405/* confdefs.h. */ 18406_ACEOF 18407cat confdefs.h >>conftest.$ac_ext 18408cat >>conftest.$ac_ext <<_ACEOF 18409/* end confdefs.h. */ 18410 18411/* Override any gcc2 internal prototype to avoid an error. */ 18412#ifdef __cplusplus 18413extern "C" 18414#endif 18415/* We use char because int might match the return type of a gcc2 18416 builtin and then its argument prototype would still apply. */ 18417char dlopen (); 18418int 18419main () 18420{ 18421dlopen (); 18422 ; 18423 return 0; 18424} 18425_ACEOF 18426rm -f conftest.$ac_objext conftest$ac_exeext 18427if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18428 (eval $ac_link) 2>conftest.er1 18429 ac_status=$? 18430 grep -v '^ *+' conftest.er1 >conftest.err 18431 rm -f conftest.er1 18432 cat conftest.err >&5 18433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18434 (exit $ac_status); } && 18435 { ac_try='test -z "$ac_c_werror_flag" 18436 || test ! -s conftest.err' 18437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18438 (eval $ac_try) 2>&5 18439 ac_status=$? 18440 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18441 (exit $ac_status); }; } && 18442 { ac_try='test -s conftest$ac_exeext' 18443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18444 (eval $ac_try) 2>&5 18445 ac_status=$? 18446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18447 (exit $ac_status); }; }; then 18448 ac_cv_lib_dl_dlopen=yes 18449else 18450 echo "$as_me: failed program was:" >&5 18451sed 's/^/| /' conftest.$ac_ext >&5 18452 18453ac_cv_lib_dl_dlopen=no 18454fi 18455rm -f conftest.err conftest.$ac_objext \ 18456 conftest$ac_exeext conftest.$ac_ext 18457LIBS=$ac_check_lib_save_LIBS 18458fi 18459echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 18460echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 18461if test $ac_cv_lib_dl_dlopen = yes; then 18462 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 18463else 18464 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 18465echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 18466if test "${ac_cv_lib_svld_dlopen+set}" = set; then 18467 echo $ECHO_N "(cached) $ECHO_C" >&6 18468else 18469 ac_check_lib_save_LIBS=$LIBS 18470LIBS="-lsvld $LIBS" 18471cat >conftest.$ac_ext <<_ACEOF 18472/* confdefs.h. */ 18473_ACEOF 18474cat confdefs.h >>conftest.$ac_ext 18475cat >>conftest.$ac_ext <<_ACEOF 18476/* end confdefs.h. */ 18477 18478/* Override any gcc2 internal prototype to avoid an error. */ 18479#ifdef __cplusplus 18480extern "C" 18481#endif 18482/* We use char because int might match the return type of a gcc2 18483 builtin and then its argument prototype would still apply. */ 18484char dlopen (); 18485int 18486main () 18487{ 18488dlopen (); 18489 ; 18490 return 0; 18491} 18492_ACEOF 18493rm -f conftest.$ac_objext conftest$ac_exeext 18494if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18495 (eval $ac_link) 2>conftest.er1 18496 ac_status=$? 18497 grep -v '^ *+' conftest.er1 >conftest.err 18498 rm -f conftest.er1 18499 cat conftest.err >&5 18500 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18501 (exit $ac_status); } && 18502 { ac_try='test -z "$ac_c_werror_flag" 18503 || test ! -s conftest.err' 18504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18505 (eval $ac_try) 2>&5 18506 ac_status=$? 18507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18508 (exit $ac_status); }; } && 18509 { ac_try='test -s conftest$ac_exeext' 18510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18511 (eval $ac_try) 2>&5 18512 ac_status=$? 18513 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18514 (exit $ac_status); }; }; then 18515 ac_cv_lib_svld_dlopen=yes 18516else 18517 echo "$as_me: failed program was:" >&5 18518sed 's/^/| /' conftest.$ac_ext >&5 18519 18520ac_cv_lib_svld_dlopen=no 18521fi 18522rm -f conftest.err conftest.$ac_objext \ 18523 conftest$ac_exeext conftest.$ac_ext 18524LIBS=$ac_check_lib_save_LIBS 18525fi 18526echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 18527echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 18528if test $ac_cv_lib_svld_dlopen = yes; then 18529 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 18530else 18531 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 18532echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 18533if test "${ac_cv_lib_dld_dld_link+set}" = set; then 18534 echo $ECHO_N "(cached) $ECHO_C" >&6 18535else 18536 ac_check_lib_save_LIBS=$LIBS 18537LIBS="-ldld $LIBS" 18538cat >conftest.$ac_ext <<_ACEOF 18539/* confdefs.h. */ 18540_ACEOF 18541cat confdefs.h >>conftest.$ac_ext 18542cat >>conftest.$ac_ext <<_ACEOF 18543/* end confdefs.h. */ 18544 18545/* Override any gcc2 internal prototype to avoid an error. */ 18546#ifdef __cplusplus 18547extern "C" 18548#endif 18549/* We use char because int might match the return type of a gcc2 18550 builtin and then its argument prototype would still apply. */ 18551char dld_link (); 18552int 18553main () 18554{ 18555dld_link (); 18556 ; 18557 return 0; 18558} 18559_ACEOF 18560rm -f conftest.$ac_objext conftest$ac_exeext 18561if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18562 (eval $ac_link) 2>conftest.er1 18563 ac_status=$? 18564 grep -v '^ *+' conftest.er1 >conftest.err 18565 rm -f conftest.er1 18566 cat conftest.err >&5 18567 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18568 (exit $ac_status); } && 18569 { ac_try='test -z "$ac_c_werror_flag" 18570 || test ! -s conftest.err' 18571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18572 (eval $ac_try) 2>&5 18573 ac_status=$? 18574 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18575 (exit $ac_status); }; } && 18576 { ac_try='test -s conftest$ac_exeext' 18577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18578 (eval $ac_try) 2>&5 18579 ac_status=$? 18580 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18581 (exit $ac_status); }; }; then 18582 ac_cv_lib_dld_dld_link=yes 18583else 18584 echo "$as_me: failed program was:" >&5 18585sed 's/^/| /' conftest.$ac_ext >&5 18586 18587ac_cv_lib_dld_dld_link=no 18588fi 18589rm -f conftest.err conftest.$ac_objext \ 18590 conftest$ac_exeext conftest.$ac_ext 18591LIBS=$ac_check_lib_save_LIBS 18592fi 18593echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 18594echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 18595if test $ac_cv_lib_dld_dld_link = yes; then 18596 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 18597fi 18598 18599 18600fi 18601 18602 18603fi 18604 18605 18606fi 18607 18608 18609fi 18610 18611 18612fi 18613 18614 ;; 18615 esac 18616 18617 if test "x$lt_cv_dlopen" != xno; then 18618 enable_dlopen=yes 18619 else 18620 enable_dlopen=no 18621 fi 18622 18623 case $lt_cv_dlopen in 18624 dlopen) 18625 save_CPPFLAGS="$CPPFLAGS" 18626 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 18627 18628 save_LDFLAGS="$LDFLAGS" 18629 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 18630 18631 save_LIBS="$LIBS" 18632 LIBS="$lt_cv_dlopen_libs $LIBS" 18633 18634 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 18635echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 18636if test "${lt_cv_dlopen_self+set}" = set; then 18637 echo $ECHO_N "(cached) $ECHO_C" >&6 18638else 18639 if test "$cross_compiling" = yes; then : 18640 lt_cv_dlopen_self=cross 18641else 18642 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18643 lt_status=$lt_dlunknown 18644 cat > conftest.$ac_ext <<EOF 18645#line 18645 "configure" 18646#include "confdefs.h" 18647 18648#if HAVE_DLFCN_H 18649#include <dlfcn.h> 18650#endif 18651 18652#include <stdio.h> 18653 18654#ifdef RTLD_GLOBAL 18655# define LT_DLGLOBAL RTLD_GLOBAL 18656#else 18657# ifdef DL_GLOBAL 18658# define LT_DLGLOBAL DL_GLOBAL 18659# else 18660# define LT_DLGLOBAL 0 18661# endif 18662#endif 18663 18664/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18665 find out it does not work in some platform. */ 18666#ifndef LT_DLLAZY_OR_NOW 18667# ifdef RTLD_LAZY 18668# define LT_DLLAZY_OR_NOW RTLD_LAZY 18669# else 18670# ifdef DL_LAZY 18671# define LT_DLLAZY_OR_NOW DL_LAZY 18672# else 18673# ifdef RTLD_NOW 18674# define LT_DLLAZY_OR_NOW RTLD_NOW 18675# else 18676# ifdef DL_NOW 18677# define LT_DLLAZY_OR_NOW DL_NOW 18678# else 18679# define LT_DLLAZY_OR_NOW 0 18680# endif 18681# endif 18682# endif 18683# endif 18684#endif 18685 18686#ifdef __cplusplus 18687extern "C" void exit (int); 18688#endif 18689 18690void fnord() { int i=42;} 18691int main () 18692{ 18693 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18694 int status = $lt_dlunknown; 18695 18696 if (self) 18697 { 18698 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18699 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18700 /* dlclose (self); */ 18701 } 18702 18703 exit (status); 18704} 18705EOF 18706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18707 (eval $ac_link) 2>&5 18708 ac_status=$? 18709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18710 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 18711 (./conftest; exit; ) 2>/dev/null 18712 lt_status=$? 18713 case x$lt_status in 18714 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 18715 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 18716 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 18717 esac 18718 else : 18719 # compilation failed 18720 lt_cv_dlopen_self=no 18721 fi 18722fi 18723rm -fr conftest* 18724 18725 18726fi 18727echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 18728echo "${ECHO_T}$lt_cv_dlopen_self" >&6 18729 18730 if test "x$lt_cv_dlopen_self" = xyes; then 18731 LDFLAGS="$LDFLAGS $link_static_flag" 18732 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 18733echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 18734if test "${lt_cv_dlopen_self_static+set}" = set; then 18735 echo $ECHO_N "(cached) $ECHO_C" >&6 18736else 18737 if test "$cross_compiling" = yes; then : 18738 lt_cv_dlopen_self_static=cross 18739else 18740 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18741 lt_status=$lt_dlunknown 18742 cat > conftest.$ac_ext <<EOF 18743#line 18743 "configure" 18744#include "confdefs.h" 18745 18746#if HAVE_DLFCN_H 18747#include <dlfcn.h> 18748#endif 18749 18750#include <stdio.h> 18751 18752#ifdef RTLD_GLOBAL 18753# define LT_DLGLOBAL RTLD_GLOBAL 18754#else 18755# ifdef DL_GLOBAL 18756# define LT_DLGLOBAL DL_GLOBAL 18757# else 18758# define LT_DLGLOBAL 0 18759# endif 18760#endif 18761 18762/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18763 find out it does not work in some platform. */ 18764#ifndef LT_DLLAZY_OR_NOW 18765# ifdef RTLD_LAZY 18766# define LT_DLLAZY_OR_NOW RTLD_LAZY 18767# else 18768# ifdef DL_LAZY 18769# define LT_DLLAZY_OR_NOW DL_LAZY 18770# else 18771# ifdef RTLD_NOW 18772# define LT_DLLAZY_OR_NOW RTLD_NOW 18773# else 18774# ifdef DL_NOW 18775# define LT_DLLAZY_OR_NOW DL_NOW 18776# else 18777# define LT_DLLAZY_OR_NOW 0 18778# endif 18779# endif 18780# endif 18781# endif 18782#endif 18783 18784#ifdef __cplusplus 18785extern "C" void exit (int); 18786#endif 18787 18788void fnord() { int i=42;} 18789int main () 18790{ 18791 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18792 int status = $lt_dlunknown; 18793 18794 if (self) 18795 { 18796 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18797 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18798 /* dlclose (self); */ 18799 } 18800 18801 exit (status); 18802} 18803EOF 18804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18805 (eval $ac_link) 2>&5 18806 ac_status=$? 18807 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18808 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 18809 (./conftest; exit; ) 2>/dev/null 18810 lt_status=$? 18811 case x$lt_status in 18812 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 18813 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 18814 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 18815 esac 18816 else : 18817 # compilation failed 18818 lt_cv_dlopen_self_static=no 18819 fi 18820fi 18821rm -fr conftest* 18822 18823 18824fi 18825echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 18826echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 18827 fi 18828 18829 CPPFLAGS="$save_CPPFLAGS" 18830 LDFLAGS="$save_LDFLAGS" 18831 LIBS="$save_LIBS" 18832 ;; 18833 esac 18834 18835 case $lt_cv_dlopen_self in 18836 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 18837 *) enable_dlopen_self=unknown ;; 18838 esac 18839 18840 case $lt_cv_dlopen_self_static in 18841 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 18842 *) enable_dlopen_self_static=unknown ;; 18843 esac 18844fi 18845 18846 18847# The else clause should only fire when bootstrapping the 18848# libtool distribution, otherwise you forgot to ship ltmain.sh 18849# with your package, and you will get complaints that there are 18850# no rules to generate ltmain.sh. 18851if test -f "$ltmain"; then 18852 # See if we are running on zsh, and set the options which allow our commands through 18853 # without removal of \ escapes. 18854 if test -n "${ZSH_VERSION+set}" ; then 18855 setopt NO_GLOB_SUBST 18856 fi 18857 # Now quote all the things that may contain metacharacters while being 18858 # careful not to overquote the AC_SUBSTed values. We take copies of the 18859 # variables and quote the copies for generation of the libtool script. 18860 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 18861 SED SHELL STRIP \ 18862 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18863 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18864 deplibs_check_method reload_flag reload_cmds need_locks \ 18865 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18866 lt_cv_sys_global_symbol_to_c_name_address \ 18867 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18868 old_postinstall_cmds old_postuninstall_cmds \ 18869 compiler_GCJ \ 18870 CC_GCJ \ 18871 LD_GCJ \ 18872 lt_prog_compiler_wl_GCJ \ 18873 lt_prog_compiler_pic_GCJ \ 18874 lt_prog_compiler_static_GCJ \ 18875 lt_prog_compiler_no_builtin_flag_GCJ \ 18876 export_dynamic_flag_spec_GCJ \ 18877 thread_safe_flag_spec_GCJ \ 18878 whole_archive_flag_spec_GCJ \ 18879 enable_shared_with_static_runtimes_GCJ \ 18880 old_archive_cmds_GCJ \ 18881 old_archive_from_new_cmds_GCJ \ 18882 predep_objects_GCJ \ 18883 postdep_objects_GCJ \ 18884 predeps_GCJ \ 18885 postdeps_GCJ \ 18886 compiler_lib_search_path_GCJ \ 18887 archive_cmds_GCJ \ 18888 archive_expsym_cmds_GCJ \ 18889 postinstall_cmds_GCJ \ 18890 postuninstall_cmds_GCJ \ 18891 old_archive_from_expsyms_cmds_GCJ \ 18892 allow_undefined_flag_GCJ \ 18893 no_undefined_flag_GCJ \ 18894 export_symbols_cmds_GCJ \ 18895 hardcode_libdir_flag_spec_GCJ \ 18896 hardcode_libdir_flag_spec_ld_GCJ \ 18897 hardcode_libdir_separator_GCJ \ 18898 hardcode_automatic_GCJ \ 18899 module_cmds_GCJ \ 18900 module_expsym_cmds_GCJ \ 18901 lt_cv_prog_compiler_c_o_GCJ \ 18902 exclude_expsyms_GCJ \ 18903 include_expsyms_GCJ; do 18904 18905 case $var in 18906 old_archive_cmds_GCJ | \ 18907 old_archive_from_new_cmds_GCJ | \ 18908 archive_cmds_GCJ | \ 18909 archive_expsym_cmds_GCJ | \ 18910 module_cmds_GCJ | \ 18911 module_expsym_cmds_GCJ | \ 18912 old_archive_from_expsyms_cmds_GCJ | \ 18913 export_symbols_cmds_GCJ | \ 18914 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18915 postinstall_cmds | postuninstall_cmds | \ 18916 old_postinstall_cmds | old_postuninstall_cmds | \ 18917 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18918 # Double-quote double-evaled strings. 18919 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18920 ;; 18921 *) 18922 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18923 ;; 18924 esac 18925 done 18926 18927 case $lt_echo in 18928 *'\$0 --fallback-echo"') 18929 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18930 ;; 18931 esac 18932 18933cfgfile="$ofile" 18934 18935 cat <<__EOF__ >> "$cfgfile" 18936# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18937 18938# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18939 18940# Shell to use when invoking shell scripts. 18941SHELL=$lt_SHELL 18942 18943# Whether or not to build shared libraries. 18944build_libtool_libs=$enable_shared 18945 18946# Whether or not to build static libraries. 18947build_old_libs=$enable_static 18948 18949# Whether or not to add -lc for building shared libraries. 18950build_libtool_need_lc=$archive_cmds_need_lc_GCJ 18951 18952# Whether or not to disallow shared libs when runtime libs are static 18953allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 18954 18955# Whether or not to optimize for fast installation. 18956fast_install=$enable_fast_install 18957 18958# The host system. 18959host_alias=$host_alias 18960host=$host 18961 18962# An echo program that does not interpret backslashes. 18963echo=$lt_echo 18964 18965# The archiver. 18966AR=$lt_AR 18967AR_FLAGS=$lt_AR_FLAGS 18968 18969# A C compiler. 18970LTCC=$lt_LTCC 18971 18972# A language-specific compiler. 18973CC=$lt_compiler_GCJ 18974 18975# Is the compiler the GNU C compiler? 18976with_gcc=$GCC_GCJ 18977 18978# An ERE matcher. 18979EGREP=$lt_EGREP 18980 18981# The linker used to build libraries. 18982LD=$lt_LD_GCJ 18983 18984# Whether we need hard or soft links. 18985LN_S=$lt_LN_S 18986 18987# A BSD-compatible nm program. 18988NM=$lt_NM 18989 18990# A symbol stripping program 18991STRIP=$lt_STRIP 18992 18993# Used to examine libraries when file_magic_cmd begins "file" 18994MAGIC_CMD=$MAGIC_CMD 18995 18996# Used on cygwin: DLL creation program. 18997DLLTOOL="$DLLTOOL" 18998 18999# Used on cygwin: object dumper. 19000OBJDUMP="$OBJDUMP" 19001 19002# Used on cygwin: assembler. 19003AS="$AS" 19004 19005# The name of the directory that contains temporary libtool files. 19006objdir=$objdir 19007 19008# How to create reloadable object files. 19009reload_flag=$lt_reload_flag 19010reload_cmds=$lt_reload_cmds 19011 19012# How to pass a linker flag through the compiler. 19013wl=$lt_lt_prog_compiler_wl_GCJ 19014 19015# Object file suffix (normally "o"). 19016objext="$ac_objext" 19017 19018# Old archive suffix (normally "a"). 19019libext="$libext" 19020 19021# Shared library suffix (normally ".so"). 19022shrext_cmds='$shrext_cmds' 19023 19024# Executable file suffix (normally ""). 19025exeext="$exeext" 19026 19027# Additional compiler flags for building library objects. 19028pic_flag=$lt_lt_prog_compiler_pic_GCJ 19029pic_mode=$pic_mode 19030 19031# What is the maximum length of a command? 19032max_cmd_len=$lt_cv_sys_max_cmd_len 19033 19034# Does compiler simultaneously support -c and -o options? 19035compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 19036 19037# Must we lock files when doing compilation ? 19038need_locks=$lt_need_locks 19039 19040# Do we need the lib prefix for modules? 19041need_lib_prefix=$need_lib_prefix 19042 19043# Do we need a version for libraries? 19044need_version=$need_version 19045 19046# Whether dlopen is supported. 19047dlopen_support=$enable_dlopen 19048 19049# Whether dlopen of programs is supported. 19050dlopen_self=$enable_dlopen_self 19051 19052# Whether dlopen of statically linked programs is supported. 19053dlopen_self_static=$enable_dlopen_self_static 19054 19055# Compiler flag to prevent dynamic linking. 19056link_static_flag=$lt_lt_prog_compiler_static_GCJ 19057 19058# Compiler flag to turn off builtin functions. 19059no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 19060 19061# Compiler flag to allow reflexive dlopens. 19062export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 19063 19064# Compiler flag to generate shared objects directly from archives. 19065whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 19066 19067# Compiler flag to generate thread-safe objects. 19068thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 19069 19070# Library versioning type. 19071version_type=$version_type 19072 19073# Format of library name prefix. 19074libname_spec=$lt_libname_spec 19075 19076# List of archive names. First name is the real one, the rest are links. 19077# The last name is the one that the linker finds with -lNAME. 19078library_names_spec=$lt_library_names_spec 19079 19080# The coded name of the library, if different from the real name. 19081soname_spec=$lt_soname_spec 19082 19083# Commands used to build and install an old-style archive. 19084RANLIB=$lt_RANLIB 19085old_archive_cmds=$lt_old_archive_cmds_GCJ 19086old_postinstall_cmds=$lt_old_postinstall_cmds 19087old_postuninstall_cmds=$lt_old_postuninstall_cmds 19088 19089# Create an old-style archive from a shared archive. 19090old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 19091 19092# Create a temporary old-style archive to link instead of a shared archive. 19093old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 19094 19095# Commands used to build and install a shared archive. 19096archive_cmds=$lt_archive_cmds_GCJ 19097archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 19098postinstall_cmds=$lt_postinstall_cmds 19099postuninstall_cmds=$lt_postuninstall_cmds 19100 19101# Commands used to build a loadable module (assumed same as above if empty) 19102module_cmds=$lt_module_cmds_GCJ 19103module_expsym_cmds=$lt_module_expsym_cmds_GCJ 19104 19105# Commands to strip libraries. 19106old_striplib=$lt_old_striplib 19107striplib=$lt_striplib 19108 19109# Dependencies to place before the objects being linked to create a 19110# shared library. 19111predep_objects=$lt_predep_objects_GCJ 19112 19113# Dependencies to place after the objects being linked to create a 19114# shared library. 19115postdep_objects=$lt_postdep_objects_GCJ 19116 19117# Dependencies to place before the objects being linked to create a 19118# shared library. 19119predeps=$lt_predeps_GCJ 19120 19121# Dependencies to place after the objects being linked to create a 19122# shared library. 19123postdeps=$lt_postdeps_GCJ 19124 19125# The library search path used internally by the compiler when linking 19126# a shared library. 19127compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 19128 19129# Method to check whether dependent libraries are shared objects. 19130deplibs_check_method=$lt_deplibs_check_method 19131 19132# Command to use when deplibs_check_method == file_magic. 19133file_magic_cmd=$lt_file_magic_cmd 19134 19135# Flag that allows shared libraries with undefined symbols to be built. 19136allow_undefined_flag=$lt_allow_undefined_flag_GCJ 19137 19138# Flag that forces no undefined symbols. 19139no_undefined_flag=$lt_no_undefined_flag_GCJ 19140 19141# Commands used to finish a libtool library installation in a directory. 19142finish_cmds=$lt_finish_cmds 19143 19144# Same as above, but a single script fragment to be evaled but not shown. 19145finish_eval=$lt_finish_eval 19146 19147# Take the output of nm and produce a listing of raw symbols and C names. 19148global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19149 19150# Transform the output of nm in a proper C declaration 19151global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19152 19153# Transform the output of nm in a C name address pair 19154global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19155 19156# This is the shared library runtime path variable. 19157runpath_var=$runpath_var 19158 19159# This is the shared library path variable. 19160shlibpath_var=$shlibpath_var 19161 19162# Is shlibpath searched before the hard-coded library search path? 19163shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19164 19165# How to hardcode a shared library path into an executable. 19166hardcode_action=$hardcode_action_GCJ 19167 19168# Whether we should hardcode library paths into libraries. 19169hardcode_into_libs=$hardcode_into_libs 19170 19171# Flag to hardcode \$libdir into a binary during linking. 19172# This must work even if \$libdir does not exist. 19173hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 19174 19175# If ld is used when linking, flag to hardcode \$libdir into 19176# a binary during linking. This must work even if \$libdir does 19177# not exist. 19178hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 19179 19180# Whether we need a single -rpath flag with a separated argument. 19181hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 19182 19183# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19184# resulting binary. 19185hardcode_direct=$hardcode_direct_GCJ 19186 19187# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19188# resulting binary. 19189hardcode_minus_L=$hardcode_minus_L_GCJ 19190 19191# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19192# the resulting binary. 19193hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 19194 19195# Set to yes if building a shared library automatically hardcodes DIR into the library 19196# and all subsequent libraries and executables linked against it. 19197hardcode_automatic=$hardcode_automatic_GCJ 19198 19199# Variables whose values should be saved in libtool wrapper scripts and 19200# restored at relink time. 19201variables_saved_for_relink="$variables_saved_for_relink" 19202 19203# Whether libtool must link a program against all its dependency libraries. 19204link_all_deplibs=$link_all_deplibs_GCJ 19205 19206# Compile-time system search path for libraries 19207sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19208 19209# Run-time system search path for libraries 19210sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19211 19212# Fix the shell variable \$srcfile for the compiler. 19213fix_srcfile_path="$fix_srcfile_path_GCJ" 19214 19215# Set to yes if exported symbols are required. 19216always_export_symbols=$always_export_symbols_GCJ 19217 19218# The commands to list exported symbols. 19219export_symbols_cmds=$lt_export_symbols_cmds_GCJ 19220 19221# The commands to extract the exported symbol list from a shared archive. 19222extract_expsyms_cmds=$lt_extract_expsyms_cmds 19223 19224# Symbols that should not be listed in the preloaded symbols. 19225exclude_expsyms=$lt_exclude_expsyms_GCJ 19226 19227# Symbols that must always be exported. 19228include_expsyms=$lt_include_expsyms_GCJ 19229 19230# ### END LIBTOOL TAG CONFIG: $tagname 19231 19232__EOF__ 19233 19234 19235else 19236 # If there is no Makefile yet, we rely on a make rule to execute 19237 # `config.status --recheck' to rerun these tests and create the 19238 # libtool script then. 19239 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19240 if test -f "$ltmain_in"; then 19241 test -f Makefile && make "$ltmain" 19242 fi 19243fi 19244 19245 19246ac_ext=c 19247ac_cpp='$CPP $CPPFLAGS' 19248ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19249ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19250ac_compiler_gnu=$ac_cv_c_compiler_gnu 19251 19252CC="$lt_save_CC" 19253 19254 else 19255 tagname="" 19256 fi 19257 ;; 19258 19259 RC) 19260 ac_ext=c 19261ac_cpp='$CPP $CPPFLAGS' 19262ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19263ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19264ac_compiler_gnu=$ac_cv_c_compiler_gnu 19265 19266 19267# Source file extension for RC test sources. 19268ac_ext=rc 19269 19270# Object file extension for compiled RC test sources. 19271objext=o 19272objext_RC=$objext 19273 19274# Code to be used in simple compile tests 19275lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 19276 19277# Code to be used in simple link tests 19278lt_simple_link_test_code="$lt_simple_compile_test_code" 19279 19280# ltmain only uses $CC for tagged configurations so make sure $CC is set. 19281 19282# If no C compiler was specified, use CC. 19283LTCC=${LTCC-"$CC"} 19284 19285# Allow CC to be a program name with arguments. 19286compiler=$CC 19287 19288 19289# Allow CC to be a program name with arguments. 19290lt_save_CC="$CC" 19291CC=${RC-"windres"} 19292compiler=$CC 19293compiler_RC=$CC 19294lt_cv_prog_compiler_c_o_RC=yes 19295 19296# The else clause should only fire when bootstrapping the 19297# libtool distribution, otherwise you forgot to ship ltmain.sh 19298# with your package, and you will get complaints that there are 19299# no rules to generate ltmain.sh. 19300if test -f "$ltmain"; then 19301 # See if we are running on zsh, and set the options which allow our commands through 19302 # without removal of \ escapes. 19303 if test -n "${ZSH_VERSION+set}" ; then 19304 setopt NO_GLOB_SUBST 19305 fi 19306 # Now quote all the things that may contain metacharacters while being 19307 # careful not to overquote the AC_SUBSTed values. We take copies of the 19308 # variables and quote the copies for generation of the libtool script. 19309 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 19310 SED SHELL STRIP \ 19311 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19312 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19313 deplibs_check_method reload_flag reload_cmds need_locks \ 19314 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19315 lt_cv_sys_global_symbol_to_c_name_address \ 19316 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19317 old_postinstall_cmds old_postuninstall_cmds \ 19318 compiler_RC \ 19319 CC_RC \ 19320 LD_RC \ 19321 lt_prog_compiler_wl_RC \ 19322 lt_prog_compiler_pic_RC \ 19323 lt_prog_compiler_static_RC \ 19324 lt_prog_compiler_no_builtin_flag_RC \ 19325 export_dynamic_flag_spec_RC \ 19326 thread_safe_flag_spec_RC \ 19327 whole_archive_flag_spec_RC \ 19328 enable_shared_with_static_runtimes_RC \ 19329 old_archive_cmds_RC \ 19330 old_archive_from_new_cmds_RC \ 19331 predep_objects_RC \ 19332 postdep_objects_RC \ 19333 predeps_RC \ 19334 postdeps_RC \ 19335 compiler_lib_search_path_RC \ 19336 archive_cmds_RC \ 19337 archive_expsym_cmds_RC \ 19338 postinstall_cmds_RC \ 19339 postuninstall_cmds_RC \ 19340 old_archive_from_expsyms_cmds_RC \ 19341 allow_undefined_flag_RC \ 19342 no_undefined_flag_RC \ 19343 export_symbols_cmds_RC \ 19344 hardcode_libdir_flag_spec_RC \ 19345 hardcode_libdir_flag_spec_ld_RC \ 19346 hardcode_libdir_separator_RC \ 19347 hardcode_automatic_RC \ 19348 module_cmds_RC \ 19349 module_expsym_cmds_RC \ 19350 lt_cv_prog_compiler_c_o_RC \ 19351 exclude_expsyms_RC \ 19352 include_expsyms_RC; do 19353 19354 case $var in 19355 old_archive_cmds_RC | \ 19356 old_archive_from_new_cmds_RC | \ 19357 archive_cmds_RC | \ 19358 archive_expsym_cmds_RC | \ 19359 module_cmds_RC | \ 19360 module_expsym_cmds_RC | \ 19361 old_archive_from_expsyms_cmds_RC | \ 19362 export_symbols_cmds_RC | \ 19363 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19364 postinstall_cmds | postuninstall_cmds | \ 19365 old_postinstall_cmds | old_postuninstall_cmds | \ 19366 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19367 # Double-quote double-evaled strings. 19368 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19369 ;; 19370 *) 19371 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19372 ;; 19373 esac 19374 done 19375 19376 case $lt_echo in 19377 *'\$0 --fallback-echo"') 19378 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19379 ;; 19380 esac 19381 19382cfgfile="$ofile" 19383 19384 cat <<__EOF__ >> "$cfgfile" 19385# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19386 19387# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19388 19389# Shell to use when invoking shell scripts. 19390SHELL=$lt_SHELL 19391 19392# Whether or not to build shared libraries. 19393build_libtool_libs=$enable_shared 19394 19395# Whether or not to build static libraries. 19396build_old_libs=$enable_static 19397 19398# Whether or not to add -lc for building shared libraries. 19399build_libtool_need_lc=$archive_cmds_need_lc_RC 19400 19401# Whether or not to disallow shared libs when runtime libs are static 19402allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 19403 19404# Whether or not to optimize for fast installation. 19405fast_install=$enable_fast_install 19406 19407# The host system. 19408host_alias=$host_alias 19409host=$host 19410 19411# An echo program that does not interpret backslashes. 19412echo=$lt_echo 19413 19414# The archiver. 19415AR=$lt_AR 19416AR_FLAGS=$lt_AR_FLAGS 19417 19418# A C compiler. 19419LTCC=$lt_LTCC 19420 19421# A language-specific compiler. 19422CC=$lt_compiler_RC 19423 19424# Is the compiler the GNU C compiler? 19425with_gcc=$GCC_RC 19426 19427# An ERE matcher. 19428EGREP=$lt_EGREP 19429 19430# The linker used to build libraries. 19431LD=$lt_LD_RC 19432 19433# Whether we need hard or soft links. 19434LN_S=$lt_LN_S 19435 19436# A BSD-compatible nm program. 19437NM=$lt_NM 19438 19439# A symbol stripping program 19440STRIP=$lt_STRIP 19441 19442# Used to examine libraries when file_magic_cmd begins "file" 19443MAGIC_CMD=$MAGIC_CMD 19444 19445# Used on cygwin: DLL creation program. 19446DLLTOOL="$DLLTOOL" 19447 19448# Used on cygwin: object dumper. 19449OBJDUMP="$OBJDUMP" 19450 19451# Used on cygwin: assembler. 19452AS="$AS" 19453 19454# The name of the directory that contains temporary libtool files. 19455objdir=$objdir 19456 19457# How to create reloadable object files. 19458reload_flag=$lt_reload_flag 19459reload_cmds=$lt_reload_cmds 19460 19461# How to pass a linker flag through the compiler. 19462wl=$lt_lt_prog_compiler_wl_RC 19463 19464# Object file suffix (normally "o"). 19465objext="$ac_objext" 19466 19467# Old archive suffix (normally "a"). 19468libext="$libext" 19469 19470# Shared library suffix (normally ".so"). 19471shrext_cmds='$shrext_cmds' 19472 19473# Executable file suffix (normally ""). 19474exeext="$exeext" 19475 19476# Additional compiler flags for building library objects. 19477pic_flag=$lt_lt_prog_compiler_pic_RC 19478pic_mode=$pic_mode 19479 19480# What is the maximum length of a command? 19481max_cmd_len=$lt_cv_sys_max_cmd_len 19482 19483# Does compiler simultaneously support -c and -o options? 19484compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19485 19486# Must we lock files when doing compilation ? 19487need_locks=$lt_need_locks 19488 19489# Do we need the lib prefix for modules? 19490need_lib_prefix=$need_lib_prefix 19491 19492# Do we need a version for libraries? 19493need_version=$need_version 19494 19495# Whether dlopen is supported. 19496dlopen_support=$enable_dlopen 19497 19498# Whether dlopen of programs is supported. 19499dlopen_self=$enable_dlopen_self 19500 19501# Whether dlopen of statically linked programs is supported. 19502dlopen_self_static=$enable_dlopen_self_static 19503 19504# Compiler flag to prevent dynamic linking. 19505link_static_flag=$lt_lt_prog_compiler_static_RC 19506 19507# Compiler flag to turn off builtin functions. 19508no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19509 19510# Compiler flag to allow reflexive dlopens. 19511export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19512 19513# Compiler flag to generate shared objects directly from archives. 19514whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19515 19516# Compiler flag to generate thread-safe objects. 19517thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19518 19519# Library versioning type. 19520version_type=$version_type 19521 19522# Format of library name prefix. 19523libname_spec=$lt_libname_spec 19524 19525# List of archive names. First name is the real one, the rest are links. 19526# The last name is the one that the linker finds with -lNAME. 19527library_names_spec=$lt_library_names_spec 19528 19529# The coded name of the library, if different from the real name. 19530soname_spec=$lt_soname_spec 19531 19532# Commands used to build and install an old-style archive. 19533RANLIB=$lt_RANLIB 19534old_archive_cmds=$lt_old_archive_cmds_RC 19535old_postinstall_cmds=$lt_old_postinstall_cmds 19536old_postuninstall_cmds=$lt_old_postuninstall_cmds 19537 19538# Create an old-style archive from a shared archive. 19539old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19540 19541# Create a temporary old-style archive to link instead of a shared archive. 19542old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19543 19544# Commands used to build and install a shared archive. 19545archive_cmds=$lt_archive_cmds_RC 19546archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19547postinstall_cmds=$lt_postinstall_cmds 19548postuninstall_cmds=$lt_postuninstall_cmds 19549 19550# Commands used to build a loadable module (assumed same as above if empty) 19551module_cmds=$lt_module_cmds_RC 19552module_expsym_cmds=$lt_module_expsym_cmds_RC 19553 19554# Commands to strip libraries. 19555old_striplib=$lt_old_striplib 19556striplib=$lt_striplib 19557 19558# Dependencies to place before the objects being linked to create a 19559# shared library. 19560predep_objects=$lt_predep_objects_RC 19561 19562# Dependencies to place after the objects being linked to create a 19563# shared library. 19564postdep_objects=$lt_postdep_objects_RC 19565 19566# Dependencies to place before the objects being linked to create a 19567# shared library. 19568predeps=$lt_predeps_RC 19569 19570# Dependencies to place after the objects being linked to create a 19571# shared library. 19572postdeps=$lt_postdeps_RC 19573 19574# The library search path used internally by the compiler when linking 19575# a shared library. 19576compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19577 19578# Method to check whether dependent libraries are shared objects. 19579deplibs_check_method=$lt_deplibs_check_method 19580 19581# Command to use when deplibs_check_method == file_magic. 19582file_magic_cmd=$lt_file_magic_cmd 19583 19584# Flag that allows shared libraries with undefined symbols to be built. 19585allow_undefined_flag=$lt_allow_undefined_flag_RC 19586 19587# Flag that forces no undefined symbols. 19588no_undefined_flag=$lt_no_undefined_flag_RC 19589 19590# Commands used to finish a libtool library installation in a directory. 19591finish_cmds=$lt_finish_cmds 19592 19593# Same as above, but a single script fragment to be evaled but not shown. 19594finish_eval=$lt_finish_eval 19595 19596# Take the output of nm and produce a listing of raw symbols and C names. 19597global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19598 19599# Transform the output of nm in a proper C declaration 19600global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19601 19602# Transform the output of nm in a C name address pair 19603global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19604 19605# This is the shared library runtime path variable. 19606runpath_var=$runpath_var 19607 19608# This is the shared library path variable. 19609shlibpath_var=$shlibpath_var 19610 19611# Is shlibpath searched before the hard-coded library search path? 19612shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19613 19614# How to hardcode a shared library path into an executable. 19615hardcode_action=$hardcode_action_RC 19616 19617# Whether we should hardcode library paths into libraries. 19618hardcode_into_libs=$hardcode_into_libs 19619 19620# Flag to hardcode \$libdir into a binary during linking. 19621# This must work even if \$libdir does not exist. 19622hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19623 19624# If ld is used when linking, flag to hardcode \$libdir into 19625# a binary during linking. This must work even if \$libdir does 19626# not exist. 19627hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19628 19629# Whether we need a single -rpath flag with a separated argument. 19630hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19631 19632# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19633# resulting binary. 19634hardcode_direct=$hardcode_direct_RC 19635 19636# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19637# resulting binary. 19638hardcode_minus_L=$hardcode_minus_L_RC 19639 19640# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19641# the resulting binary. 19642hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19643 19644# Set to yes if building a shared library automatically hardcodes DIR into the library 19645# and all subsequent libraries and executables linked against it. 19646hardcode_automatic=$hardcode_automatic_RC 19647 19648# Variables whose values should be saved in libtool wrapper scripts and 19649# restored at relink time. 19650variables_saved_for_relink="$variables_saved_for_relink" 19651 19652# Whether libtool must link a program against all its dependency libraries. 19653link_all_deplibs=$link_all_deplibs_RC 19654 19655# Compile-time system search path for libraries 19656sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19657 19658# Run-time system search path for libraries 19659sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19660 19661# Fix the shell variable \$srcfile for the compiler. 19662fix_srcfile_path="$fix_srcfile_path_RC" 19663 19664# Set to yes if exported symbols are required. 19665always_export_symbols=$always_export_symbols_RC 19666 19667# The commands to list exported symbols. 19668export_symbols_cmds=$lt_export_symbols_cmds_RC 19669 19670# The commands to extract the exported symbol list from a shared archive. 19671extract_expsyms_cmds=$lt_extract_expsyms_cmds 19672 19673# Symbols that should not be listed in the preloaded symbols. 19674exclude_expsyms=$lt_exclude_expsyms_RC 19675 19676# Symbols that must always be exported. 19677include_expsyms=$lt_include_expsyms_RC 19678 19679# ### END LIBTOOL TAG CONFIG: $tagname 19680 19681__EOF__ 19682 19683 19684else 19685 # If there is no Makefile yet, we rely on a make rule to execute 19686 # `config.status --recheck' to rerun these tests and create the 19687 # libtool script then. 19688 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19689 if test -f "$ltmain_in"; then 19690 test -f Makefile && make "$ltmain" 19691 fi 19692fi 19693 19694 19695ac_ext=c 19696ac_cpp='$CPP $CPPFLAGS' 19697ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19698ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19699ac_compiler_gnu=$ac_cv_c_compiler_gnu 19700 19701CC="$lt_save_CC" 19702 19703 ;; 19704 19705 *) 19706 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19707echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19708 { (exit 1); exit 1; }; } 19709 ;; 19710 esac 19711 19712 # Append the new tag name to the list of available tags. 19713 if test -n "$tagname" ; then 19714 available_tags="$available_tags $tagname" 19715 fi 19716 fi 19717 done 19718 IFS="$lt_save_ifs" 19719 19720 # Now substitute the updated list of available tags. 19721 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19722 mv "${ofile}T" "$ofile" 19723 chmod +x "$ofile" 19724 else 19725 rm -f "${ofile}T" 19726 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19727echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19728 { (exit 1); exit 1; }; } 19729 fi 19730fi 19731 19732 19733 19734# This can be used to rebuild libtool when needed 19735LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19736 19737# Always use our own libtool. 19738LIBTOOL='$(SHELL) $(top_builddir)/mklib' 19739 19740# Prevent multiple expansion 19741 19742 19743 19744 19745 19746 19747 19748 19749 19750 19751 19752 19753 19754 19755 19756 19757 19758 19759 19760 19761 19762echo "$as_me:$LINENO: checking for GNU make" >&5 19763echo $ECHO_N "checking for GNU make... $ECHO_C" >&6 19764if test "${llvm_cv_gnu_make_command+set}" = set; then 19765 echo $ECHO_N "(cached) $ECHO_C" >&6 19766else 19767 llvm_cv_gnu_make_command='' 19768 for a in "$MAKE" make gmake gnumake ; do 19769 if test -z "$a" ; then continue ; fi ; 19770 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) 19771 then 19772 llvm_cv_gnu_make_command=$a ; 19773 break; 19774 fi 19775 done 19776fi 19777echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5 19778echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6 19779 if test "x$llvm_cv_gnu_make_command" != "x" ; then 19780 ifGNUmake='' ; 19781 else 19782 ifGNUmake='#' ; 19783 echo "$as_me:$LINENO: result: \"Not found\"" >&5 19784echo "${ECHO_T}\"Not found\"" >&6; 19785 fi 19786 19787 19788echo "$as_me:$LINENO: checking whether ln -s works" >&5 19789echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 19790LN_S=$as_ln_s 19791if test "$LN_S" = "ln -s"; then 19792 echo "$as_me:$LINENO: result: yes" >&5 19793echo "${ECHO_T}yes" >&6 19794else 19795 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 19796echo "${ECHO_T}no, using $LN_S" >&6 19797fi 19798 19799# Extract the first word of "find", so it can be a program name with args. 19800set dummy find; ac_word=$2 19801echo "$as_me:$LINENO: checking for $ac_word" >&5 19802echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 19803if test "${ac_cv_path_FIND+set}" = set; then 19804 echo $ECHO_N "(cached) $ECHO_C" >&6 19805else 19806 case $FIND in 19807 [\\/]* | ?:[\\/]*) 19808 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 19809 ;; 19810 *) 19811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19812for as_dir in $PATH 19813do 19814 IFS=$as_save_IFS 19815 test -z "$as_dir" && as_dir=. 19816 for ac_exec_ext in '' $ac_executable_extensions; do 19817 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19818 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 19819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19820 break 2 19821 fi 19822done 19823done 19824 19825 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" 19826 ;; 19827esac 19828fi 19829FIND=$ac_cv_path_FIND 19830 19831if test -n "$FIND"; then 19832 echo "$as_me:$LINENO: result: $FIND" >&5 19833echo "${ECHO_T}$FIND" >&6 19834else 19835 echo "$as_me:$LINENO: result: no" >&5 19836echo "${ECHO_T}no" >&6 19837fi 19838 19839# Extract the first word of "grep", so it can be a program name with args. 19840set dummy grep; ac_word=$2 19841echo "$as_me:$LINENO: checking for $ac_word" >&5 19842echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 19843if test "${ac_cv_path_GREP+set}" = set; then 19844 echo $ECHO_N "(cached) $ECHO_C" >&6 19845else 19846 case $GREP in 19847 [\\/]* | ?:[\\/]*) 19848 ac_cv_path_GREP="$GREP" # Let the user override the test with a path. 19849 ;; 19850 *) 19851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19852for as_dir in $PATH 19853do 19854 IFS=$as_save_IFS 19855 test -z "$as_dir" && as_dir=. 19856 for ac_exec_ext in '' $ac_executable_extensions; do 19857 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19858 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" 19859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19860 break 2 19861 fi 19862done 19863done 19864 19865 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" 19866 ;; 19867esac 19868fi 19869GREP=$ac_cv_path_GREP 19870 19871if test -n "$GREP"; then 19872 echo "$as_me:$LINENO: result: $GREP" >&5 19873echo "${ECHO_T}$GREP" >&6 19874else 19875 echo "$as_me:$LINENO: result: no" >&5 19876echo "${ECHO_T}no" >&6 19877fi 19878 19879# Extract the first word of "mkdir", so it can be a program name with args. 19880set dummy mkdir; ac_word=$2 19881echo "$as_me:$LINENO: checking for $ac_word" >&5 19882echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 19883if test "${ac_cv_path_MKDIR+set}" = set; then 19884 echo $ECHO_N "(cached) $ECHO_C" >&6 19885else 19886 case $MKDIR in 19887 [\\/]* | ?:[\\/]*) 19888 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 19889 ;; 19890 *) 19891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19892for as_dir in $PATH 19893do 19894 IFS=$as_save_IFS 19895 test -z "$as_dir" && as_dir=. 19896 for ac_exec_ext in '' $ac_executable_extensions; do 19897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19898 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 19899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19900 break 2 19901 fi 19902done 19903done 19904 19905 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" 19906 ;; 19907esac 19908fi 19909MKDIR=$ac_cv_path_MKDIR 19910 19911if test -n "$MKDIR"; then 19912 echo "$as_me:$LINENO: result: $MKDIR" >&5 19913echo "${ECHO_T}$MKDIR" >&6 19914else 19915 echo "$as_me:$LINENO: result: no" >&5 19916echo "${ECHO_T}no" >&6 19917fi 19918 19919# Extract the first word of "mv", so it can be a program name with args. 19920set dummy mv; ac_word=$2 19921echo "$as_me:$LINENO: checking for $ac_word" >&5 19922echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 19923if test "${ac_cv_path_MV+set}" = set; then 19924 echo $ECHO_N "(cached) $ECHO_C" >&6 19925else 19926 case $MV in 19927 [\\/]* | ?:[\\/]*) 19928 ac_cv_path_MV="$MV" # Let the user override the test with a path. 19929 ;; 19930 *) 19931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19932for as_dir in $PATH 19933do 19934 IFS=$as_save_IFS 19935 test -z "$as_dir" && as_dir=. 19936 for ac_exec_ext in '' $ac_executable_extensions; do 19937 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19938 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 19939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19940 break 2 19941 fi 19942done 19943done 19944 19945 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" 19946 ;; 19947esac 19948fi 19949MV=$ac_cv_path_MV 19950 19951if test -n "$MV"; then 19952 echo "$as_me:$LINENO: result: $MV" >&5 19953echo "${ECHO_T}$MV" >&6 19954else 19955 echo "$as_me:$LINENO: result: no" >&5 19956echo "${ECHO_T}no" >&6 19957fi 19958 19959if test -n "$ac_tool_prefix"; then 19960 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 19961set dummy ${ac_tool_prefix}ranlib; ac_word=$2 19962echo "$as_me:$LINENO: checking for $ac_word" >&5 19963echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 19964if test "${ac_cv_prog_RANLIB+set}" = set; then 19965 echo $ECHO_N "(cached) $ECHO_C" >&6 19966else 19967 if test -n "$RANLIB"; then 19968 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 19969else 19970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19971for as_dir in $PATH 19972do 19973 IFS=$as_save_IFS 19974 test -z "$as_dir" && as_dir=. 19975 for ac_exec_ext in '' $ac_executable_extensions; do 19976 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19977 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 19978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19979 break 2 19980 fi 19981done 19982done 19983 19984fi 19985fi 19986RANLIB=$ac_cv_prog_RANLIB 19987if test -n "$RANLIB"; then 19988 echo "$as_me:$LINENO: result: $RANLIB" >&5 19989echo "${ECHO_T}$RANLIB" >&6 19990else 19991 echo "$as_me:$LINENO: result: no" >&5 19992echo "${ECHO_T}no" >&6 19993fi 19994 19995fi 19996if test -z "$ac_cv_prog_RANLIB"; then 19997 ac_ct_RANLIB=$RANLIB 19998 # Extract the first word of "ranlib", so it can be a program name with args. 19999set dummy ranlib; ac_word=$2 20000echo "$as_me:$LINENO: checking for $ac_word" >&5 20001echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 20002if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 20003 echo $ECHO_N "(cached) $ECHO_C" >&6 20004else 20005 if test -n "$ac_ct_RANLIB"; then 20006 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 20007else 20008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20009for as_dir in $PATH 20010do 20011 IFS=$as_save_IFS 20012 test -z "$as_dir" && as_dir=. 20013 for ac_exec_ext in '' $ac_executable_extensions; do 20014 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20015 ac_cv_prog_ac_ct_RANLIB="ranlib" 20016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20017 break 2 20018 fi 20019done 20020done 20021 20022 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 20023fi 20024fi 20025ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 20026if test -n "$ac_ct_RANLIB"; then 20027 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 20028echo "${ECHO_T}$ac_ct_RANLIB" >&6 20029else 20030 echo "$as_me:$LINENO: result: no" >&5 20031echo "${ECHO_T}no" >&6 20032fi 20033 20034 RANLIB=$ac_ct_RANLIB 20035else 20036 RANLIB="$ac_cv_prog_RANLIB" 20037fi 20038 20039# Extract the first word of "rm", so it can be a program name with args. 20040set dummy rm; ac_word=$2 20041echo "$as_me:$LINENO: checking for $ac_word" >&5 20042echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 20043if test "${ac_cv_path_RM+set}" = set; then 20044 echo $ECHO_N "(cached) $ECHO_C" >&6 20045else 20046 case $RM in 20047 [\\/]* | ?:[\\/]*) 20048 ac_cv_path_RM="$RM" # Let the user override the test with a path. 20049 ;; 20050 *) 20051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20052for as_dir in $PATH 20053do 20054 IFS=$as_save_IFS 20055 test -z "$as_dir" && as_dir=. 20056 for ac_exec_ext in '' $ac_executable_extensions; do 20057 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20058 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 20059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20060 break 2 20061 fi 20062done 20063done 20064 20065 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" 20066 ;; 20067esac 20068fi 20069RM=$ac_cv_path_RM 20070 20071if test -n "$RM"; then 20072 echo "$as_me:$LINENO: result: $RM" >&5 20073echo "${ECHO_T}$RM" >&6 20074else 20075 echo "$as_me:$LINENO: result: no" >&5 20076echo "${ECHO_T}no" >&6 20077fi 20078 20079# Extract the first word of "sed", so it can be a program name with args. 20080set dummy sed; ac_word=$2 20081echo "$as_me:$LINENO: checking for $ac_word" >&5 20082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 20083if test "${ac_cv_path_SED+set}" = set; then 20084 echo $ECHO_N "(cached) $ECHO_C" >&6 20085else 20086 case $SED in 20087 [\\/]* | ?:[\\/]*) 20088 ac_cv_path_SED="$SED" # Let the user override the test with a path. 20089 ;; 20090 *) 20091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20092for as_dir in $PATH 20093do 20094 IFS=$as_save_IFS 20095 test -z "$as_dir" && as_dir=. 20096 for ac_exec_ext in '' $ac_executable_extensions; do 20097 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20098 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 20099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20100 break 2 20101 fi 20102done 20103done 20104 20105 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" 20106 ;; 20107esac 20108fi 20109SED=$ac_cv_path_SED 20110 20111if test -n "$SED"; then 20112 echo "$as_me:$LINENO: result: $SED" >&5 20113echo "${ECHO_T}$SED" >&6 20114else 20115 echo "$as_me:$LINENO: result: no" >&5 20116echo "${ECHO_T}no" >&6 20117fi 20118 20119# Extract the first word of "tar", so it can be a program name with args. 20120set dummy tar; ac_word=$2 20121echo "$as_me:$LINENO: checking for $ac_word" >&5 20122echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 20123if test "${ac_cv_path_TAR+set}" = set; then 20124 echo $ECHO_N "(cached) $ECHO_C" >&6 20125else 20126 case $TAR in 20127 [\\/]* | ?:[\\/]*) 20128 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 20129 ;; 20130 *) 20131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20132for as_dir in $PATH 20133do 20134 IFS=$as_save_IFS 20135 test -z "$as_dir" && as_dir=. 20136 for ac_exec_ext in '' $ac_executable_extensions; do 20137 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20138 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 20139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20140 break 2 20141 fi 20142done 20143done 20144 20145 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" 20146 ;; 20147esac 20148fi 20149TAR=$ac_cv_path_TAR 20150 20151if test -n "$TAR"; then 20152 echo "$as_me:$LINENO: result: $TAR" >&5 20153echo "${ECHO_T}$TAR" >&6 20154else 20155 echo "$as_me:$LINENO: result: no" >&5 20156echo "${ECHO_T}no" >&6 20157fi 20158 20159 20160# Find a good install program. We prefer a C program (faster), 20161# so one script is as good as another. But avoid the broken or 20162# incompatible versions: 20163# SysV /etc/install, /usr/sbin/install 20164# SunOS /usr/etc/install 20165# IRIX /sbin/install 20166# AIX /bin/install 20167# AmigaOS /C/install, which installs bootblocks on floppy discs 20168# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 20169# AFS /usr/afsws/bin/install, which mishandles nonexistent args 20170# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 20171# OS/2's system install, which has a completely different semantic 20172# ./install, which can be erroneously created by make from ./install.sh. 20173echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 20174echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 20175if test -z "$INSTALL"; then 20176if test "${ac_cv_path_install+set}" = set; then 20177 echo $ECHO_N "(cached) $ECHO_C" >&6 20178else 20179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20180for as_dir in $PATH 20181do 20182 IFS=$as_save_IFS 20183 test -z "$as_dir" && as_dir=. 20184 # Account for people who put trailing slashes in PATH elements. 20185case $as_dir/ in 20186 ./ | .// | /cC/* | \ 20187 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 20188 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 20189 /usr/ucb/* ) ;; 20190 *) 20191 # OSF1 and SCO ODT 3.0 have their own names for install. 20192 # Don't use installbsd from OSF since it installs stuff as root 20193 # by default. 20194 for ac_prog in ginstall scoinst install; do 20195 for ac_exec_ext in '' $ac_executable_extensions; do 20196 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 20197 if test $ac_prog = install && 20198 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 20199 # AIX install. It has an incompatible calling convention. 20200 : 20201 elif test $ac_prog = install && 20202 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 20203 # program-specific install script used by HP pwplus--don't use. 20204 : 20205 else 20206 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 20207 break 3 20208 fi 20209 fi 20210 done 20211 done 20212 ;; 20213esac 20214done 20215 20216 20217fi 20218 if test "${ac_cv_path_install+set}" = set; then 20219 INSTALL=$ac_cv_path_install 20220 else 20221 # As a last resort, use the slow shell script. We don't cache a 20222 # path for INSTALL within a source directory, because that will 20223 # break other packages using the cache if that directory is 20224 # removed, or if the path is relative. 20225 INSTALL=$ac_install_sh 20226 fi 20227fi 20228echo "$as_me:$LINENO: result: $INSTALL" >&5 20229echo "${ECHO_T}$INSTALL" >&6 20230 20231# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 20232# It thinks the first close brace ends the variable substitution. 20233test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 20234 20235test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 20236 20237test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 20238 20239 20240# Extract the first word of "dot", so it can be a program name with args. 20241set dummy dot; ac_word=$2 20242echo "$as_me:$LINENO: checking for $ac_word" >&5 20243echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 20244if test "${ac_cv_path_DOT+set}" = set; then 20245 echo $ECHO_N "(cached) $ECHO_C" >&6 20246else 20247 case $DOT in 20248 [\\/]* | ?:[\\/]*) 20249 ac_cv_path_DOT="$DOT" # Let the user override the test with a path. 20250 ;; 20251 *) 20252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20253for as_dir in $PATH 20254do 20255 IFS=$as_save_IFS 20256 test -z "$as_dir" && as_dir=. 20257 for ac_exec_ext in '' $ac_executable_extensions; do 20258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20259 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" 20260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20261 break 2 20262 fi 20263done 20264done 20265 20266 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot" 20267 ;; 20268esac 20269fi 20270DOT=$ac_cv_path_DOT 20271 20272if test -n "$DOT"; then 20273 echo "$as_me:$LINENO: result: $DOT" >&5 20274echo "${ECHO_T}$DOT" >&6 20275else 20276 echo "$as_me:$LINENO: result: no" >&5 20277echo "${ECHO_T}no" >&6 20278fi 20279 20280# Extract the first word of "etags", so it can be a program name with args. 20281set dummy etags; ac_word=$2 20282echo "$as_me:$LINENO: checking for $ac_word" >&5 20283echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 20284if test "${ac_cv_path_ETAGS+set}" = set; then 20285 echo $ECHO_N "(cached) $ECHO_C" >&6 20286else 20287 case $ETAGS in 20288 [\\/]* | ?:[\\/]*) 20289 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path. 20290 ;; 20291 *) 20292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20293for as_dir in $PATH 20294do 20295 IFS=$as_save_IFS 20296 test -z "$as_dir" && as_dir=. 20297 for ac_exec_ext in '' $ac_executable_extensions; do 20298 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20299 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext" 20300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20301 break 2 20302 fi 20303done 20304done 20305 20306 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags" 20307 ;; 20308esac 20309fi 20310ETAGS=$ac_cv_path_ETAGS 20311 20312if test -n "$ETAGS"; then 20313 echo "$as_me:$LINENO: result: $ETAGS" >&5 20314echo "${ECHO_T}$ETAGS" >&6 20315else 20316 echo "$as_me:$LINENO: result: no" >&5 20317echo "${ECHO_T}no" >&6 20318fi 20319 20320 20321# Extract the first word of "python", so it can be a program name with args. 20322set dummy python; ac_word=$2 20323echo "$as_me:$LINENO: checking for $ac_word" >&5 20324echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 20325if test "${ac_cv_path_PYTHON+set}" = set; then 20326 echo $ECHO_N "(cached) $ECHO_C" >&6 20327else 20328 case $PYTHON in 20329 [\\/]* | ?:[\\/]*) 20330 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 20331 ;; 20332 *) 20333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20334for as_dir in $PATH 20335do 20336 IFS=$as_save_IFS 20337 test -z "$as_dir" && as_dir=. 20338 for ac_exec_ext in '' $ac_executable_extensions; do 20339 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20340 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" 20341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20342 break 2 20343 fi 20344done 20345done 20346 20347 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python" 20348 ;; 20349esac 20350fi 20351PYTHON=$ac_cv_path_PYTHON 20352 20353if test -n "$PYTHON"; then 20354 echo "$as_me:$LINENO: result: $PYTHON" >&5 20355echo "${ECHO_T}$PYTHON" >&6 20356else 20357 echo "$as_me:$LINENO: result: no" >&5 20358echo "${ECHO_T}no" >&6 20359fi 20360 20361# Extract the first word of "qmtest", so it can be a program name with args. 20362set dummy qmtest; ac_word=$2 20363echo "$as_me:$LINENO: checking for $ac_word" >&5 20364echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 20365if test "${ac_cv_path_QMTEST+set}" = set; then 20366 echo $ECHO_N "(cached) $ECHO_C" >&6 20367else 20368 case $QMTEST in 20369 [\\/]* | ?:[\\/]*) 20370 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path. 20371 ;; 20372 *) 20373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20374for as_dir in $PATH 20375do 20376 IFS=$as_save_IFS 20377 test -z "$as_dir" && as_dir=. 20378 for ac_exec_ext in '' $ac_executable_extensions; do 20379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20380 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext" 20381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20382 break 2 20383 fi 20384done 20385done 20386 20387 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest" 20388 ;; 20389esac 20390fi 20391QMTEST=$ac_cv_path_QMTEST 20392 20393if test -n "$QMTEST"; then 20394 echo "$as_me:$LINENO: result: $QMTEST" >&5 20395echo "${ECHO_T}$QMTEST" >&6 20396else 20397 echo "$as_me:$LINENO: result: no" >&5 20398echo "${ECHO_T}no" >&6 20399fi 20400 20401# Extract the first word of "runtest", so it can be a program name with args. 20402set dummy runtest; ac_word=$2 20403echo "$as_me:$LINENO: checking for $ac_word" >&5 20404echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 20405if test "${ac_cv_path_RUNTEST+set}" = set; then 20406 echo $ECHO_N "(cached) $ECHO_C" >&6 20407else 20408 case $RUNTEST in 20409 [\\/]* | ?:[\\/]*) 20410 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path. 20411 ;; 20412 *) 20413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20414for as_dir in $PATH 20415do 20416 IFS=$as_save_IFS 20417 test -z "$as_dir" && as_dir=. 20418 for ac_exec_ext in '' $ac_executable_extensions; do 20419 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20420 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext" 20421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20422 break 2 20423 fi 20424done 20425done 20426 20427 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest" 20428 ;; 20429esac 20430fi 20431RUNTEST=$ac_cv_path_RUNTEST 20432 20433if test -n "$RUNTEST"; then 20434 echo "$as_me:$LINENO: result: $RUNTEST" >&5 20435echo "${ECHO_T}$RUNTEST" >&6 20436else 20437 echo "$as_me:$LINENO: result: no" >&5 20438echo "${ECHO_T}no" >&6 20439fi 20440 20441 20442echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 20443echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6 20444if test "${llvm_cv_link_use_r+set}" = set; then 20445 echo $ECHO_N "(cached) $ECHO_C" >&6 20446else 20447 ac_ext=c 20448ac_cpp='$CPP $CPPFLAGS' 20449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20451ac_compiler_gnu=$ac_cv_c_compiler_gnu 20452 20453 oldcflags="$CFLAGS" 20454 CFLAGS="$CFLAGS -Wl,-R." 20455 cat >conftest.$ac_ext <<_ACEOF 20456/* confdefs.h. */ 20457_ACEOF 20458cat confdefs.h >>conftest.$ac_ext 20459cat >>conftest.$ac_ext <<_ACEOF 20460/* end confdefs.h. */ 20461 20462int 20463main () 20464{ 20465int main() { return 0; } 20466 ; 20467 return 0; 20468} 20469_ACEOF 20470rm -f conftest.$ac_objext conftest$ac_exeext 20471if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20472 (eval $ac_link) 2>conftest.er1 20473 ac_status=$? 20474 grep -v '^ *+' conftest.er1 >conftest.err 20475 rm -f conftest.er1 20476 cat conftest.err >&5 20477 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20478 (exit $ac_status); } && 20479 { ac_try='test -z "$ac_c_werror_flag" 20480 || test ! -s conftest.err' 20481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20482 (eval $ac_try) 2>&5 20483 ac_status=$? 20484 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20485 (exit $ac_status); }; } && 20486 { ac_try='test -s conftest$ac_exeext' 20487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20488 (eval $ac_try) 2>&5 20489 ac_status=$? 20490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20491 (exit $ac_status); }; }; then 20492 llvm_cv_link_use_r=yes 20493else 20494 echo "$as_me: failed program was:" >&5 20495sed 's/^/| /' conftest.$ac_ext >&5 20496 20497llvm_cv_link_use_r=no 20498fi 20499rm -f conftest.err conftest.$ac_objext \ 20500 conftest$ac_exeext conftest.$ac_ext 20501 CFLAGS="$oldcflags" 20502 ac_ext=c 20503ac_cpp='$CPP $CPPFLAGS' 20504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20506ac_compiler_gnu=$ac_cv_c_compiler_gnu 20507 20508 20509fi 20510echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5 20511echo "${ECHO_T}$llvm_cv_link_use_r" >&6 20512if test "$llvm_cv_link_use_r" = yes ; then 20513 20514cat >>confdefs.h <<\_ACEOF 20515#define HAVE_LINK_R 1 20516_ACEOF 20517 20518 fi 20519 20520 20521etags_version=`$ETAGS --version 2>&1` 20522case "$etags_version" in 20523 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;; 20524 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;; 20525 *) ETAGSFLAGS="" ;; 20526esac 20527ETAGSFLAGS=$ETAGSFLAGS 20528 20529 20530echo "$as_me:$LINENO: checking tool compatibility" >&5 20531echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6 20532 20533if test "$GCC" != "yes" 20534then 20535 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5 20536echo "$as_me: error: gcc required but not found" >&2;} 20537 { (exit 1); exit 1; }; } 20538fi 20539if test "$GXX" != "yes" 20540then 20541 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5 20542echo "$as_me: error: g++ required but not found" >&2;} 20543 { (exit 1); exit 1; }; } 20544fi 20545 20546gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1` 20547if test "$gccmajor" -lt "3" 20548then 20549 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5 20550echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} 20551 { (exit 1); exit 1; }; } 20552fi 20553 20554if test -z "$llvm_cv_gnu_make_command" 20555then 20556 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 20557echo "$as_me: error: GNU Make required but not found" >&2;} 20558 { (exit 1); exit 1; }; } 20559fi 20560 20561echo "$as_me:$LINENO: result: ok" >&5 20562echo "${ECHO_T}ok" >&6 20563 20564if test "$PYTHON" = "false" ; then 20565 { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5 20566echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;} 20567fi 20568if test "$QMTEST" = "false" ; then 20569 { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5 20570echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;} 20571fi 20572if test "$RUNTEST" = "false" ; then 20573 { echo "$as_me:$LINENO: WARNING: runtest (Deja-Gnu) is required for the test sute, but it was not found" >&5 20574echo "$as_me: WARNING: runtest (Deja-Gnu) is required for the test sute, but it was not found" >&2;} 20575fi 20576pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2` 20577pymajor=`echo $pyversion | cut -d. -f1` 20578pyminor=`echo $pyversion | cut -d. -f2` 20579if test "$pymajor" -ge "2" ; then 20580 if test "$pymajor" -eq "2" ; then 20581 if test "$pyminor" -lt "2" ; then 20582 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5 20583echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;} 20584 fi 20585 fi 20586else 20587 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5 20588echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;} 20589fi 20590 20591echo "$as_me:$LINENO: result: " >&5 20592echo "${ECHO_T}" >&6 20593 20594 20595 20596echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5 20597echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6 20598if test "${ac_cv_lib_elf_elf_begin+set}" = set; then 20599 echo $ECHO_N "(cached) $ECHO_C" >&6 20600else 20601 ac_check_lib_save_LIBS=$LIBS 20602LIBS="-lelf $LIBS" 20603cat >conftest.$ac_ext <<_ACEOF 20604/* confdefs.h. */ 20605_ACEOF 20606cat confdefs.h >>conftest.$ac_ext 20607cat >>conftest.$ac_ext <<_ACEOF 20608/* end confdefs.h. */ 20609 20610/* Override any gcc2 internal prototype to avoid an error. */ 20611#ifdef __cplusplus 20612extern "C" 20613#endif 20614/* We use char because int might match the return type of a gcc2 20615 builtin and then its argument prototype would still apply. */ 20616char elf_begin (); 20617int 20618main () 20619{ 20620elf_begin (); 20621 ; 20622 return 0; 20623} 20624_ACEOF 20625rm -f conftest.$ac_objext conftest$ac_exeext 20626if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20627 (eval $ac_link) 2>conftest.er1 20628 ac_status=$? 20629 grep -v '^ *+' conftest.er1 >conftest.err 20630 rm -f conftest.er1 20631 cat conftest.err >&5 20632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20633 (exit $ac_status); } && 20634 { ac_try='test -z "$ac_c_werror_flag" 20635 || test ! -s conftest.err' 20636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20637 (eval $ac_try) 2>&5 20638 ac_status=$? 20639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20640 (exit $ac_status); }; } && 20641 { ac_try='test -s conftest$ac_exeext' 20642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20643 (eval $ac_try) 2>&5 20644 ac_status=$? 20645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20646 (exit $ac_status); }; }; then 20647 ac_cv_lib_elf_elf_begin=yes 20648else 20649 echo "$as_me: failed program was:" >&5 20650sed 's/^/| /' conftest.$ac_ext >&5 20651 20652ac_cv_lib_elf_elf_begin=no 20653fi 20654rm -f conftest.err conftest.$ac_objext \ 20655 conftest$ac_exeext conftest.$ac_ext 20656LIBS=$ac_check_lib_save_LIBS 20657fi 20658echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5 20659echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6 20660if test $ac_cv_lib_elf_elf_begin = yes; then 20661 cat >>confdefs.h <<_ACEOF 20662#define HAVE_LIBELF 1 20663_ACEOF 20664 20665 LIBS="-lelf $LIBS" 20666 20667fi 20668 20669 20670echo "$as_me:$LINENO: checking for gzopen in -lz" >&5 20671echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6 20672if test "${ac_cv_lib_z_gzopen+set}" = set; then 20673 echo $ECHO_N "(cached) $ECHO_C" >&6 20674else 20675 ac_check_lib_save_LIBS=$LIBS 20676LIBS="-lz $LIBS" 20677cat >conftest.$ac_ext <<_ACEOF 20678/* confdefs.h. */ 20679_ACEOF 20680cat confdefs.h >>conftest.$ac_ext 20681cat >>conftest.$ac_ext <<_ACEOF 20682/* end confdefs.h. */ 20683 20684/* Override any gcc2 internal prototype to avoid an error. */ 20685#ifdef __cplusplus 20686extern "C" 20687#endif 20688/* We use char because int might match the return type of a gcc2 20689 builtin and then its argument prototype would still apply. */ 20690char gzopen (); 20691int 20692main () 20693{ 20694gzopen (); 20695 ; 20696 return 0; 20697} 20698_ACEOF 20699rm -f conftest.$ac_objext conftest$ac_exeext 20700if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20701 (eval $ac_link) 2>conftest.er1 20702 ac_status=$? 20703 grep -v '^ *+' conftest.er1 >conftest.err 20704 rm -f conftest.er1 20705 cat conftest.err >&5 20706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20707 (exit $ac_status); } && 20708 { ac_try='test -z "$ac_c_werror_flag" 20709 || test ! -s conftest.err' 20710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20711 (eval $ac_try) 2>&5 20712 ac_status=$? 20713 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20714 (exit $ac_status); }; } && 20715 { ac_try='test -s conftest$ac_exeext' 20716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20717 (eval $ac_try) 2>&5 20718 ac_status=$? 20719 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20720 (exit $ac_status); }; }; then 20721 ac_cv_lib_z_gzopen=yes 20722else 20723 echo "$as_me: failed program was:" >&5 20724sed 's/^/| /' conftest.$ac_ext >&5 20725 20726ac_cv_lib_z_gzopen=no 20727fi 20728rm -f conftest.err conftest.$ac_objext \ 20729 conftest$ac_exeext conftest.$ac_ext 20730LIBS=$ac_check_lib_save_LIBS 20731fi 20732echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5 20733echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6 20734if test $ac_cv_lib_z_gzopen = yes; then 20735 zlib_found=1 20736else 20737 zlib_found=0 20738fi 20739 20740if test $zlib_found -eq 1; then 20741 20742cat >>confdefs.h <<\_ACEOF 20743#define HAVE_ZLIB 1 20744_ACEOF 20745 20746 HAVE_ZLIB=1 20747 20748else 20749 HAVE_ZLIB=0 20750 20751fi 20752echo "$as_me:$LINENO: checking for BZ2_bzCompressInit in -lbz2" >&5 20753echo $ECHO_N "checking for BZ2_bzCompressInit in -lbz2... $ECHO_C" >&6 20754if test "${ac_cv_lib_bz2_BZ2_bzCompressInit+set}" = set; then 20755 echo $ECHO_N "(cached) $ECHO_C" >&6 20756else 20757 ac_check_lib_save_LIBS=$LIBS 20758LIBS="-lbz2 $LIBS" 20759cat >conftest.$ac_ext <<_ACEOF 20760/* confdefs.h. */ 20761_ACEOF 20762cat confdefs.h >>conftest.$ac_ext 20763cat >>conftest.$ac_ext <<_ACEOF 20764/* end confdefs.h. */ 20765 20766/* Override any gcc2 internal prototype to avoid an error. */ 20767#ifdef __cplusplus 20768extern "C" 20769#endif 20770/* We use char because int might match the return type of a gcc2 20771 builtin and then its argument prototype would still apply. */ 20772char BZ2_bzCompressInit (); 20773int 20774main () 20775{ 20776BZ2_bzCompressInit (); 20777 ; 20778 return 0; 20779} 20780_ACEOF 20781rm -f conftest.$ac_objext conftest$ac_exeext 20782if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20783 (eval $ac_link) 2>conftest.er1 20784 ac_status=$? 20785 grep -v '^ *+' conftest.er1 >conftest.err 20786 rm -f conftest.er1 20787 cat conftest.err >&5 20788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20789 (exit $ac_status); } && 20790 { ac_try='test -z "$ac_c_werror_flag" 20791 || test ! -s conftest.err' 20792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20793 (eval $ac_try) 2>&5 20794 ac_status=$? 20795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20796 (exit $ac_status); }; } && 20797 { ac_try='test -s conftest$ac_exeext' 20798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20799 (eval $ac_try) 2>&5 20800 ac_status=$? 20801 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20802 (exit $ac_status); }; }; then 20803 ac_cv_lib_bz2_BZ2_bzCompressInit=yes 20804else 20805 echo "$as_me: failed program was:" >&5 20806sed 's/^/| /' conftest.$ac_ext >&5 20807 20808ac_cv_lib_bz2_BZ2_bzCompressInit=no 20809fi 20810rm -f conftest.err conftest.$ac_objext \ 20811 conftest$ac_exeext conftest.$ac_ext 20812LIBS=$ac_check_lib_save_LIBS 20813fi 20814echo "$as_me:$LINENO: result: $ac_cv_lib_bz2_BZ2_bzCompressInit" >&5 20815echo "${ECHO_T}$ac_cv_lib_bz2_BZ2_bzCompressInit" >&6 20816if test $ac_cv_lib_bz2_BZ2_bzCompressInit = yes; then 20817 bzip2_found=1 20818else 20819 bzip2_found=0 20820fi 20821 20822if test $bzip2_found -eq 1 ; then 20823 20824cat >>confdefs.h <<\_ACEOF 20825#define HAVE_BZIP2 1 20826_ACEOF 20827 20828 HAVE_BZIP2=1 20829 20830else 20831 HAVE_BZIP2=0 20832 20833fi 20834 20835echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5 20836echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6 20837if test "${ac_cv_search_lt_dlopen+set}" = set; then 20838 echo $ECHO_N "(cached) $ECHO_C" >&6 20839else 20840 ac_func_search_save_LIBS=$LIBS 20841ac_cv_search_lt_dlopen=no 20842cat >conftest.$ac_ext <<_ACEOF 20843/* confdefs.h. */ 20844_ACEOF 20845cat confdefs.h >>conftest.$ac_ext 20846cat >>conftest.$ac_ext <<_ACEOF 20847/* end confdefs.h. */ 20848 20849/* Override any gcc2 internal prototype to avoid an error. */ 20850#ifdef __cplusplus 20851extern "C" 20852#endif 20853/* We use char because int might match the return type of a gcc2 20854 builtin and then its argument prototype would still apply. */ 20855char lt_dlopen (); 20856int 20857main () 20858{ 20859lt_dlopen (); 20860 ; 20861 return 0; 20862} 20863_ACEOF 20864rm -f conftest.$ac_objext conftest$ac_exeext 20865if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20866 (eval $ac_link) 2>conftest.er1 20867 ac_status=$? 20868 grep -v '^ *+' conftest.er1 >conftest.err 20869 rm -f conftest.er1 20870 cat conftest.err >&5 20871 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20872 (exit $ac_status); } && 20873 { ac_try='test -z "$ac_c_werror_flag" 20874 || test ! -s conftest.err' 20875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20876 (eval $ac_try) 2>&5 20877 ac_status=$? 20878 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20879 (exit $ac_status); }; } && 20880 { ac_try='test -s conftest$ac_exeext' 20881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20882 (eval $ac_try) 2>&5 20883 ac_status=$? 20884 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20885 (exit $ac_status); }; }; then 20886 ac_cv_search_lt_dlopen="none required" 20887else 20888 echo "$as_me: failed program was:" >&5 20889sed 's/^/| /' conftest.$ac_ext >&5 20890 20891fi 20892rm -f conftest.err conftest.$ac_objext \ 20893 conftest$ac_exeext conftest.$ac_ext 20894if test "$ac_cv_search_lt_dlopen" = no; then 20895 for ac_lib in ltdl; do 20896 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20897 cat >conftest.$ac_ext <<_ACEOF 20898/* confdefs.h. */ 20899_ACEOF 20900cat confdefs.h >>conftest.$ac_ext 20901cat >>conftest.$ac_ext <<_ACEOF 20902/* end confdefs.h. */ 20903 20904/* Override any gcc2 internal prototype to avoid an error. */ 20905#ifdef __cplusplus 20906extern "C" 20907#endif 20908/* We use char because int might match the return type of a gcc2 20909 builtin and then its argument prototype would still apply. */ 20910char lt_dlopen (); 20911int 20912main () 20913{ 20914lt_dlopen (); 20915 ; 20916 return 0; 20917} 20918_ACEOF 20919rm -f conftest.$ac_objext conftest$ac_exeext 20920if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20921 (eval $ac_link) 2>conftest.er1 20922 ac_status=$? 20923 grep -v '^ *+' conftest.er1 >conftest.err 20924 rm -f conftest.er1 20925 cat conftest.err >&5 20926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20927 (exit $ac_status); } && 20928 { ac_try='test -z "$ac_c_werror_flag" 20929 || test ! -s conftest.err' 20930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20931 (eval $ac_try) 2>&5 20932 ac_status=$? 20933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20934 (exit $ac_status); }; } && 20935 { ac_try='test -s conftest$ac_exeext' 20936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20937 (eval $ac_try) 2>&5 20938 ac_status=$? 20939 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20940 (exit $ac_status); }; }; then 20941 ac_cv_search_lt_dlopen="-l$ac_lib" 20942break 20943else 20944 echo "$as_me: failed program was:" >&5 20945sed 's/^/| /' conftest.$ac_ext >&5 20946 20947fi 20948rm -f conftest.err conftest.$ac_objext \ 20949 conftest$ac_exeext conftest.$ac_ext 20950 done 20951fi 20952LIBS=$ac_func_search_save_LIBS 20953fi 20954echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5 20955echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6 20956if test "$ac_cv_search_lt_dlopen" != no; then 20957 test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS" 20958 20959cat >>confdefs.h <<\_ACEOF 20960#define HAVE_LT_DLOPEN 1 20961_ACEOF 20962 20963else 20964 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might 20965 not be available" >&5 20966echo "$as_me: WARNING: lt_dlopen() not found - plugin support might 20967 not be available" >&2;} 20968fi 20969 20970 20971echo "$as_me:$LINENO: checking for library containing dlopen" >&5 20972echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6 20973if test "${ac_cv_search_dlopen+set}" = set; then 20974 echo $ECHO_N "(cached) $ECHO_C" >&6 20975else 20976 ac_func_search_save_LIBS=$LIBS 20977ac_cv_search_dlopen=no 20978cat >conftest.$ac_ext <<_ACEOF 20979/* confdefs.h. */ 20980_ACEOF 20981cat confdefs.h >>conftest.$ac_ext 20982cat >>conftest.$ac_ext <<_ACEOF 20983/* end confdefs.h. */ 20984 20985/* Override any gcc2 internal prototype to avoid an error. */ 20986#ifdef __cplusplus 20987extern "C" 20988#endif 20989/* We use char because int might match the return type of a gcc2 20990 builtin and then its argument prototype would still apply. */ 20991char dlopen (); 20992int 20993main () 20994{ 20995dlopen (); 20996 ; 20997 return 0; 20998} 20999_ACEOF 21000rm -f conftest.$ac_objext conftest$ac_exeext 21001if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21002 (eval $ac_link) 2>conftest.er1 21003 ac_status=$? 21004 grep -v '^ *+' conftest.er1 >conftest.err 21005 rm -f conftest.er1 21006 cat conftest.err >&5 21007 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21008 (exit $ac_status); } && 21009 { ac_try='test -z "$ac_c_werror_flag" 21010 || test ! -s conftest.err' 21011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21012 (eval $ac_try) 2>&5 21013 ac_status=$? 21014 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21015 (exit $ac_status); }; } && 21016 { ac_try='test -s conftest$ac_exeext' 21017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21018 (eval $ac_try) 2>&5 21019 ac_status=$? 21020 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21021 (exit $ac_status); }; }; then 21022 ac_cv_search_dlopen="none required" 21023else 21024 echo "$as_me: failed program was:" >&5 21025sed 's/^/| /' conftest.$ac_ext >&5 21026 21027fi 21028rm -f conftest.err conftest.$ac_objext \ 21029 conftest$ac_exeext conftest.$ac_ext 21030if test "$ac_cv_search_dlopen" = no; then 21031 for ac_lib in dl; do 21032 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21033 cat >conftest.$ac_ext <<_ACEOF 21034/* confdefs.h. */ 21035_ACEOF 21036cat confdefs.h >>conftest.$ac_ext 21037cat >>conftest.$ac_ext <<_ACEOF 21038/* end confdefs.h. */ 21039 21040/* Override any gcc2 internal prototype to avoid an error. */ 21041#ifdef __cplusplus 21042extern "C" 21043#endif 21044/* We use char because int might match the return type of a gcc2 21045 builtin and then its argument prototype would still apply. */ 21046char dlopen (); 21047int 21048main () 21049{ 21050dlopen (); 21051 ; 21052 return 0; 21053} 21054_ACEOF 21055rm -f conftest.$ac_objext conftest$ac_exeext 21056if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21057 (eval $ac_link) 2>conftest.er1 21058 ac_status=$? 21059 grep -v '^ *+' conftest.er1 >conftest.err 21060 rm -f conftest.er1 21061 cat conftest.err >&5 21062 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21063 (exit $ac_status); } && 21064 { ac_try='test -z "$ac_c_werror_flag" 21065 || test ! -s conftest.err' 21066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21067 (eval $ac_try) 2>&5 21068 ac_status=$? 21069 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21070 (exit $ac_status); }; } && 21071 { ac_try='test -s conftest$ac_exeext' 21072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21073 (eval $ac_try) 2>&5 21074 ac_status=$? 21075 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21076 (exit $ac_status); }; }; then 21077 ac_cv_search_dlopen="-l$ac_lib" 21078break 21079else 21080 echo "$as_me: failed program was:" >&5 21081sed 's/^/| /' conftest.$ac_ext >&5 21082 21083fi 21084rm -f conftest.err conftest.$ac_objext \ 21085 conftest$ac_exeext conftest.$ac_ext 21086 done 21087fi 21088LIBS=$ac_func_search_save_LIBS 21089fi 21090echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 21091echo "${ECHO_T}$ac_cv_search_dlopen" >&6 21092if test "$ac_cv_search_dlopen" != no; then 21093 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS" 21094 21095cat >>confdefs.h <<\_ACEOF 21096#define HAVE_DLOPEN 1 21097_ACEOF 21098 21099else 21100 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 21101echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} 21102fi 21103 21104 21105echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 21106echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6 21107if test "${ac_cv_search_mallinfo+set}" = set; then 21108 echo $ECHO_N "(cached) $ECHO_C" >&6 21109else 21110 ac_func_search_save_LIBS=$LIBS 21111ac_cv_search_mallinfo=no 21112cat >conftest.$ac_ext <<_ACEOF 21113/* confdefs.h. */ 21114_ACEOF 21115cat confdefs.h >>conftest.$ac_ext 21116cat >>conftest.$ac_ext <<_ACEOF 21117/* end confdefs.h. */ 21118 21119/* Override any gcc2 internal prototype to avoid an error. */ 21120#ifdef __cplusplus 21121extern "C" 21122#endif 21123/* We use char because int might match the return type of a gcc2 21124 builtin and then its argument prototype would still apply. */ 21125char mallinfo (); 21126int 21127main () 21128{ 21129mallinfo (); 21130 ; 21131 return 0; 21132} 21133_ACEOF 21134rm -f conftest.$ac_objext conftest$ac_exeext 21135if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21136 (eval $ac_link) 2>conftest.er1 21137 ac_status=$? 21138 grep -v '^ *+' conftest.er1 >conftest.err 21139 rm -f conftest.er1 21140 cat conftest.err >&5 21141 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21142 (exit $ac_status); } && 21143 { ac_try='test -z "$ac_c_werror_flag" 21144 || test ! -s conftest.err' 21145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21146 (eval $ac_try) 2>&5 21147 ac_status=$? 21148 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21149 (exit $ac_status); }; } && 21150 { ac_try='test -s conftest$ac_exeext' 21151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21152 (eval $ac_try) 2>&5 21153 ac_status=$? 21154 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21155 (exit $ac_status); }; }; then 21156 ac_cv_search_mallinfo="none required" 21157else 21158 echo "$as_me: failed program was:" >&5 21159sed 's/^/| /' conftest.$ac_ext >&5 21160 21161fi 21162rm -f conftest.err conftest.$ac_objext \ 21163 conftest$ac_exeext conftest.$ac_ext 21164if test "$ac_cv_search_mallinfo" = no; then 21165 for ac_lib in malloc; do 21166 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21167 cat >conftest.$ac_ext <<_ACEOF 21168/* confdefs.h. */ 21169_ACEOF 21170cat confdefs.h >>conftest.$ac_ext 21171cat >>conftest.$ac_ext <<_ACEOF 21172/* end confdefs.h. */ 21173 21174/* Override any gcc2 internal prototype to avoid an error. */ 21175#ifdef __cplusplus 21176extern "C" 21177#endif 21178/* We use char because int might match the return type of a gcc2 21179 builtin and then its argument prototype would still apply. */ 21180char mallinfo (); 21181int 21182main () 21183{ 21184mallinfo (); 21185 ; 21186 return 0; 21187} 21188_ACEOF 21189rm -f conftest.$ac_objext conftest$ac_exeext 21190if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21191 (eval $ac_link) 2>conftest.er1 21192 ac_status=$? 21193 grep -v '^ *+' conftest.er1 >conftest.err 21194 rm -f conftest.er1 21195 cat conftest.err >&5 21196 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21197 (exit $ac_status); } && 21198 { ac_try='test -z "$ac_c_werror_flag" 21199 || test ! -s conftest.err' 21200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21201 (eval $ac_try) 2>&5 21202 ac_status=$? 21203 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21204 (exit $ac_status); }; } && 21205 { ac_try='test -s conftest$ac_exeext' 21206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21207 (eval $ac_try) 2>&5 21208 ac_status=$? 21209 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21210 (exit $ac_status); }; }; then 21211 ac_cv_search_mallinfo="-l$ac_lib" 21212break 21213else 21214 echo "$as_me: failed program was:" >&5 21215sed 's/^/| /' conftest.$ac_ext >&5 21216 21217fi 21218rm -f conftest.err conftest.$ac_objext \ 21219 conftest$ac_exeext conftest.$ac_ext 21220 done 21221fi 21222LIBS=$ac_func_search_save_LIBS 21223fi 21224echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 21225echo "${ECHO_T}$ac_cv_search_mallinfo" >&6 21226if test "$ac_cv_search_mallinfo" != no; then 21227 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS" 21228 21229cat >>confdefs.h <<\_ACEOF 21230#define HAVE_MALLINFO 1 21231_ACEOF 21232 21233fi 21234 21235 21236echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 21237echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6 21238if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then 21239 echo $ECHO_N "(cached) $ECHO_C" >&6 21240else 21241 ac_func_search_save_LIBS=$LIBS 21242ac_cv_search_pthread_mutex_lock=no 21243cat >conftest.$ac_ext <<_ACEOF 21244/* confdefs.h. */ 21245_ACEOF 21246cat confdefs.h >>conftest.$ac_ext 21247cat >>conftest.$ac_ext <<_ACEOF 21248/* end confdefs.h. */ 21249 21250/* Override any gcc2 internal prototype to avoid an error. */ 21251#ifdef __cplusplus 21252extern "C" 21253#endif 21254/* We use char because int might match the return type of a gcc2 21255 builtin and then its argument prototype would still apply. */ 21256char pthread_mutex_lock (); 21257int 21258main () 21259{ 21260pthread_mutex_lock (); 21261 ; 21262 return 0; 21263} 21264_ACEOF 21265rm -f conftest.$ac_objext conftest$ac_exeext 21266if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21267 (eval $ac_link) 2>conftest.er1 21268 ac_status=$? 21269 grep -v '^ *+' conftest.er1 >conftest.err 21270 rm -f conftest.er1 21271 cat conftest.err >&5 21272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21273 (exit $ac_status); } && 21274 { ac_try='test -z "$ac_c_werror_flag" 21275 || test ! -s conftest.err' 21276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21277 (eval $ac_try) 2>&5 21278 ac_status=$? 21279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21280 (exit $ac_status); }; } && 21281 { ac_try='test -s conftest$ac_exeext' 21282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21283 (eval $ac_try) 2>&5 21284 ac_status=$? 21285 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21286 (exit $ac_status); }; }; then 21287 ac_cv_search_pthread_mutex_lock="none required" 21288else 21289 echo "$as_me: failed program was:" >&5 21290sed 's/^/| /' conftest.$ac_ext >&5 21291 21292fi 21293rm -f conftest.err conftest.$ac_objext \ 21294 conftest$ac_exeext conftest.$ac_ext 21295if test "$ac_cv_search_pthread_mutex_lock" = no; then 21296 for ac_lib in pthread; do 21297 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21298 cat >conftest.$ac_ext <<_ACEOF 21299/* confdefs.h. */ 21300_ACEOF 21301cat confdefs.h >>conftest.$ac_ext 21302cat >>conftest.$ac_ext <<_ACEOF 21303/* end confdefs.h. */ 21304 21305/* Override any gcc2 internal prototype to avoid an error. */ 21306#ifdef __cplusplus 21307extern "C" 21308#endif 21309/* We use char because int might match the return type of a gcc2 21310 builtin and then its argument prototype would still apply. */ 21311char pthread_mutex_lock (); 21312int 21313main () 21314{ 21315pthread_mutex_lock (); 21316 ; 21317 return 0; 21318} 21319_ACEOF 21320rm -f conftest.$ac_objext conftest$ac_exeext 21321if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21322 (eval $ac_link) 2>conftest.er1 21323 ac_status=$? 21324 grep -v '^ *+' conftest.er1 >conftest.err 21325 rm -f conftest.er1 21326 cat conftest.err >&5 21327 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21328 (exit $ac_status); } && 21329 { ac_try='test -z "$ac_c_werror_flag" 21330 || test ! -s conftest.err' 21331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21332 (eval $ac_try) 2>&5 21333 ac_status=$? 21334 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21335 (exit $ac_status); }; } && 21336 { ac_try='test -s conftest$ac_exeext' 21337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21338 (eval $ac_try) 2>&5 21339 ac_status=$? 21340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21341 (exit $ac_status); }; }; then 21342 ac_cv_search_pthread_mutex_lock="-l$ac_lib" 21343break 21344else 21345 echo "$as_me: failed program was:" >&5 21346sed 's/^/| /' conftest.$ac_ext >&5 21347 21348fi 21349rm -f conftest.err conftest.$ac_objext \ 21350 conftest$ac_exeext conftest.$ac_ext 21351 done 21352fi 21353LIBS=$ac_func_search_save_LIBS 21354fi 21355echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 21356echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6 21357if test "$ac_cv_search_pthread_mutex_lock" != no; then 21358 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS" 21359 21360cat >>confdefs.h <<\_ACEOF 21361#define HAVE_PTHREAD_MUTEX_LOCK 1 21362_ACEOF 21363 21364fi 21365 21366 21367 21368echo "$as_me:$LINENO: checking for ANSI C header files" >&5 21369echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 21370if test "${ac_cv_header_stdc+set}" = set; then 21371 echo $ECHO_N "(cached) $ECHO_C" >&6 21372else 21373 cat >conftest.$ac_ext <<_ACEOF 21374/* confdefs.h. */ 21375_ACEOF 21376cat confdefs.h >>conftest.$ac_ext 21377cat >>conftest.$ac_ext <<_ACEOF 21378/* end confdefs.h. */ 21379#include <stdlib.h> 21380#include <stdarg.h> 21381#include <string.h> 21382#include <float.h> 21383 21384int 21385main () 21386{ 21387 21388 ; 21389 return 0; 21390} 21391_ACEOF 21392rm -f conftest.$ac_objext 21393if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21394 (eval $ac_compile) 2>conftest.er1 21395 ac_status=$? 21396 grep -v '^ *+' conftest.er1 >conftest.err 21397 rm -f conftest.er1 21398 cat conftest.err >&5 21399 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21400 (exit $ac_status); } && 21401 { ac_try='test -z "$ac_c_werror_flag" 21402 || test ! -s conftest.err' 21403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21404 (eval $ac_try) 2>&5 21405 ac_status=$? 21406 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21407 (exit $ac_status); }; } && 21408 { ac_try='test -s conftest.$ac_objext' 21409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21410 (eval $ac_try) 2>&5 21411 ac_status=$? 21412 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21413 (exit $ac_status); }; }; then 21414 ac_cv_header_stdc=yes 21415else 21416 echo "$as_me: failed program was:" >&5 21417sed 's/^/| /' conftest.$ac_ext >&5 21418 21419ac_cv_header_stdc=no 21420fi 21421rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21422 21423if test $ac_cv_header_stdc = yes; then 21424 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 21425 cat >conftest.$ac_ext <<_ACEOF 21426/* confdefs.h. */ 21427_ACEOF 21428cat confdefs.h >>conftest.$ac_ext 21429cat >>conftest.$ac_ext <<_ACEOF 21430/* end confdefs.h. */ 21431#include <string.h> 21432 21433_ACEOF 21434if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21435 $EGREP "memchr" >/dev/null 2>&1; then 21436 : 21437else 21438 ac_cv_header_stdc=no 21439fi 21440rm -f conftest* 21441 21442fi 21443 21444if test $ac_cv_header_stdc = yes; then 21445 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 21446 cat >conftest.$ac_ext <<_ACEOF 21447/* confdefs.h. */ 21448_ACEOF 21449cat confdefs.h >>conftest.$ac_ext 21450cat >>conftest.$ac_ext <<_ACEOF 21451/* end confdefs.h. */ 21452#include <stdlib.h> 21453 21454_ACEOF 21455if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21456 $EGREP "free" >/dev/null 2>&1; then 21457 : 21458else 21459 ac_cv_header_stdc=no 21460fi 21461rm -f conftest* 21462 21463fi 21464 21465if test $ac_cv_header_stdc = yes; then 21466 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 21467 if test "$cross_compiling" = yes; then 21468 : 21469else 21470 cat >conftest.$ac_ext <<_ACEOF 21471/* confdefs.h. */ 21472_ACEOF 21473cat confdefs.h >>conftest.$ac_ext 21474cat >>conftest.$ac_ext <<_ACEOF 21475/* end confdefs.h. */ 21476#include <ctype.h> 21477#if ((' ' & 0x0FF) == 0x020) 21478# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 21479# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 21480#else 21481# define ISLOWER(c) \ 21482 (('a' <= (c) && (c) <= 'i') \ 21483 || ('j' <= (c) && (c) <= 'r') \ 21484 || ('s' <= (c) && (c) <= 'z')) 21485# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 21486#endif 21487 21488#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 21489int 21490main () 21491{ 21492 int i; 21493 for (i = 0; i < 256; i++) 21494 if (XOR (islower (i), ISLOWER (i)) 21495 || toupper (i) != TOUPPER (i)) 21496 exit(2); 21497 exit (0); 21498} 21499_ACEOF 21500rm -f conftest$ac_exeext 21501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21502 (eval $ac_link) 2>&5 21503 ac_status=$? 21504 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21505 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21507 (eval $ac_try) 2>&5 21508 ac_status=$? 21509 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21510 (exit $ac_status); }; }; then 21511 : 21512else 21513 echo "$as_me: program exited with status $ac_status" >&5 21514echo "$as_me: failed program was:" >&5 21515sed 's/^/| /' conftest.$ac_ext >&5 21516 21517( exit $ac_status ) 21518ac_cv_header_stdc=no 21519fi 21520rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21521fi 21522fi 21523fi 21524echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 21525echo "${ECHO_T}$ac_cv_header_stdc" >&6 21526if test $ac_cv_header_stdc = yes; then 21527 21528cat >>confdefs.h <<\_ACEOF 21529#define STDC_HEADERS 1 21530_ACEOF 21531 21532fi 21533 21534 21535echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 21536echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 21537if test "${ac_cv_header_sys_wait_h+set}" = set; then 21538 echo $ECHO_N "(cached) $ECHO_C" >&6 21539else 21540 cat >conftest.$ac_ext <<_ACEOF 21541/* confdefs.h. */ 21542_ACEOF 21543cat confdefs.h >>conftest.$ac_ext 21544cat >>conftest.$ac_ext <<_ACEOF 21545/* end confdefs.h. */ 21546#include <sys/types.h> 21547#include <sys/wait.h> 21548#ifndef WEXITSTATUS 21549# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 21550#endif 21551#ifndef WIFEXITED 21552# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 21553#endif 21554 21555int 21556main () 21557{ 21558 int s; 21559 wait (&s); 21560 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 21561 ; 21562 return 0; 21563} 21564_ACEOF 21565rm -f conftest.$ac_objext 21566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21567 (eval $ac_compile) 2>conftest.er1 21568 ac_status=$? 21569 grep -v '^ *+' conftest.er1 >conftest.err 21570 rm -f conftest.er1 21571 cat conftest.err >&5 21572 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21573 (exit $ac_status); } && 21574 { ac_try='test -z "$ac_c_werror_flag" 21575 || test ! -s conftest.err' 21576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21577 (eval $ac_try) 2>&5 21578 ac_status=$? 21579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21580 (exit $ac_status); }; } && 21581 { ac_try='test -s conftest.$ac_objext' 21582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21583 (eval $ac_try) 2>&5 21584 ac_status=$? 21585 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21586 (exit $ac_status); }; }; then 21587 ac_cv_header_sys_wait_h=yes 21588else 21589 echo "$as_me: failed program was:" >&5 21590sed 's/^/| /' conftest.$ac_ext >&5 21591 21592ac_cv_header_sys_wait_h=no 21593fi 21594rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21595fi 21596echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 21597echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 21598if test $ac_cv_header_sys_wait_h = yes; then 21599 21600cat >>confdefs.h <<\_ACEOF 21601#define HAVE_SYS_WAIT_H 1 21602_ACEOF 21603 21604fi 21605 21606 21607 21608 21609 21610 21611for ac_header in sys/time.h sys/mman.h sys/resource.h sys/time.h sys/types.h 21612do 21613as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 21614if eval "test \"\${$as_ac_Header+set}\" = set"; then 21615 echo "$as_me:$LINENO: checking for $ac_header" >&5 21616echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 21617if eval "test \"\${$as_ac_Header+set}\" = set"; then 21618 echo $ECHO_N "(cached) $ECHO_C" >&6 21619fi 21620echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 21621echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 21622else 21623 # Is the header compilable? 21624echo "$as_me:$LINENO: checking $ac_header usability" >&5 21625echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 21626cat >conftest.$ac_ext <<_ACEOF 21627/* confdefs.h. */ 21628_ACEOF 21629cat confdefs.h >>conftest.$ac_ext 21630cat >>conftest.$ac_ext <<_ACEOF 21631/* end confdefs.h. */ 21632$ac_includes_default 21633#include <$ac_header> 21634_ACEOF 21635rm -f conftest.$ac_objext 21636if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21637 (eval $ac_compile) 2>conftest.er1 21638 ac_status=$? 21639 grep -v '^ *+' conftest.er1 >conftest.err 21640 rm -f conftest.er1 21641 cat conftest.err >&5 21642 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21643 (exit $ac_status); } && 21644 { ac_try='test -z "$ac_c_werror_flag" 21645 || test ! -s conftest.err' 21646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21647 (eval $ac_try) 2>&5 21648 ac_status=$? 21649 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21650 (exit $ac_status); }; } && 21651 { ac_try='test -s conftest.$ac_objext' 21652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21653 (eval $ac_try) 2>&5 21654 ac_status=$? 21655 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21656 (exit $ac_status); }; }; then 21657 ac_header_compiler=yes 21658else 21659 echo "$as_me: failed program was:" >&5 21660sed 's/^/| /' conftest.$ac_ext >&5 21661 21662ac_header_compiler=no 21663fi 21664rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21665echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21666echo "${ECHO_T}$ac_header_compiler" >&6 21667 21668# Is the header present? 21669echo "$as_me:$LINENO: checking $ac_header presence" >&5 21670echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 21671cat >conftest.$ac_ext <<_ACEOF 21672/* confdefs.h. */ 21673_ACEOF 21674cat confdefs.h >>conftest.$ac_ext 21675cat >>conftest.$ac_ext <<_ACEOF 21676/* end confdefs.h. */ 21677#include <$ac_header> 21678_ACEOF 21679if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 21680 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 21681 ac_status=$? 21682 grep -v '^ *+' conftest.er1 >conftest.err 21683 rm -f conftest.er1 21684 cat conftest.err >&5 21685 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21686 (exit $ac_status); } >/dev/null; then 21687 if test -s conftest.err; then 21688 ac_cpp_err=$ac_c_preproc_warn_flag 21689 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 21690 else 21691 ac_cpp_err= 21692 fi 21693else 21694 ac_cpp_err=yes 21695fi 21696if test -z "$ac_cpp_err"; then 21697 ac_header_preproc=yes 21698else 21699 echo "$as_me: failed program was:" >&5 21700sed 's/^/| /' conftest.$ac_ext >&5 21701 21702 ac_header_preproc=no 21703fi 21704rm -f conftest.err conftest.$ac_ext 21705echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21706echo "${ECHO_T}$ac_header_preproc" >&6 21707 21708# So? What about this header? 21709case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 21710 yes:no: ) 21711 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 21712echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 21713 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 21714echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 21715 ac_header_preproc=yes 21716 ;; 21717 no:yes:* ) 21718 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 21719echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 21720 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 21721echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 21722 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 21723echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 21724 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 21725echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 21726 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 21727echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 21728 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 21729echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 21730 ( 21731 cat <<\_ASBOX 21732## ----------------------------------- ## 21733## Report this to llvmbugs@cs.uiuc.edu ## 21734## ----------------------------------- ## 21735_ASBOX 21736 ) | 21737 sed "s/^/$as_me: WARNING: /" >&2 21738 ;; 21739esac 21740echo "$as_me:$LINENO: checking for $ac_header" >&5 21741echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 21742if eval "test \"\${$as_ac_Header+set}\" = set"; then 21743 echo $ECHO_N "(cached) $ECHO_C" >&6 21744else 21745 eval "$as_ac_Header=\$ac_header_preproc" 21746fi 21747echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 21748echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 21749 21750fi 21751if test `eval echo '${'$as_ac_Header'}'` = yes; then 21752 cat >>confdefs.h <<_ACEOF 21753#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 21754_ACEOF 21755 21756fi 21757 21758done 21759 21760 21761 21762 21763 21764 21765 21766 21767for ac_header in bzlib.h dlfcn.h execinfo.h fcntl.h limits.h link.h ltdl.h 21768do 21769as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 21770if eval "test \"\${$as_ac_Header+set}\" = set"; then 21771 echo "$as_me:$LINENO: checking for $ac_header" >&5 21772echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 21773if eval "test \"\${$as_ac_Header+set}\" = set"; then 21774 echo $ECHO_N "(cached) $ECHO_C" >&6 21775fi 21776echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 21777echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 21778else 21779 # Is the header compilable? 21780echo "$as_me:$LINENO: checking $ac_header usability" >&5 21781echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 21782cat >conftest.$ac_ext <<_ACEOF 21783/* confdefs.h. */ 21784_ACEOF 21785cat confdefs.h >>conftest.$ac_ext 21786cat >>conftest.$ac_ext <<_ACEOF 21787/* end confdefs.h. */ 21788$ac_includes_default 21789#include <$ac_header> 21790_ACEOF 21791rm -f conftest.$ac_objext 21792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21793 (eval $ac_compile) 2>conftest.er1 21794 ac_status=$? 21795 grep -v '^ *+' conftest.er1 >conftest.err 21796 rm -f conftest.er1 21797 cat conftest.err >&5 21798 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21799 (exit $ac_status); } && 21800 { ac_try='test -z "$ac_c_werror_flag" 21801 || test ! -s conftest.err' 21802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21803 (eval $ac_try) 2>&5 21804 ac_status=$? 21805 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21806 (exit $ac_status); }; } && 21807 { ac_try='test -s conftest.$ac_objext' 21808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21809 (eval $ac_try) 2>&5 21810 ac_status=$? 21811 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21812 (exit $ac_status); }; }; then 21813 ac_header_compiler=yes 21814else 21815 echo "$as_me: failed program was:" >&5 21816sed 's/^/| /' conftest.$ac_ext >&5 21817 21818ac_header_compiler=no 21819fi 21820rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21821echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21822echo "${ECHO_T}$ac_header_compiler" >&6 21823 21824# Is the header present? 21825echo "$as_me:$LINENO: checking $ac_header presence" >&5 21826echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 21827cat >conftest.$ac_ext <<_ACEOF 21828/* confdefs.h. */ 21829_ACEOF 21830cat confdefs.h >>conftest.$ac_ext 21831cat >>conftest.$ac_ext <<_ACEOF 21832/* end confdefs.h. */ 21833#include <$ac_header> 21834_ACEOF 21835if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 21836 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 21837 ac_status=$? 21838 grep -v '^ *+' conftest.er1 >conftest.err 21839 rm -f conftest.er1 21840 cat conftest.err >&5 21841 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21842 (exit $ac_status); } >/dev/null; then 21843 if test -s conftest.err; then 21844 ac_cpp_err=$ac_c_preproc_warn_flag 21845 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 21846 else 21847 ac_cpp_err= 21848 fi 21849else 21850 ac_cpp_err=yes 21851fi 21852if test -z "$ac_cpp_err"; then 21853 ac_header_preproc=yes 21854else 21855 echo "$as_me: failed program was:" >&5 21856sed 's/^/| /' conftest.$ac_ext >&5 21857 21858 ac_header_preproc=no 21859fi 21860rm -f conftest.err conftest.$ac_ext 21861echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21862echo "${ECHO_T}$ac_header_preproc" >&6 21863 21864# So? What about this header? 21865case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 21866 yes:no: ) 21867 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 21868echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 21869 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 21870echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 21871 ac_header_preproc=yes 21872 ;; 21873 no:yes:* ) 21874 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 21875echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 21876 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 21877echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 21878 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 21879echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 21880 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 21881echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 21882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 21883echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 21884 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 21885echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 21886 ( 21887 cat <<\_ASBOX 21888## ----------------------------------- ## 21889## Report this to llvmbugs@cs.uiuc.edu ## 21890## ----------------------------------- ## 21891_ASBOX 21892 ) | 21893 sed "s/^/$as_me: WARNING: /" >&2 21894 ;; 21895esac 21896echo "$as_me:$LINENO: checking for $ac_header" >&5 21897echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 21898if eval "test \"\${$as_ac_Header+set}\" = set"; then 21899 echo $ECHO_N "(cached) $ECHO_C" >&6 21900else 21901 eval "$as_ac_Header=\$ac_header_preproc" 21902fi 21903echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 21904echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 21905 21906fi 21907if test `eval echo '${'$as_ac_Header'}'` = yes; then 21908 cat >>confdefs.h <<_ACEOF 21909#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 21910_ACEOF 21911 21912fi 21913 21914done 21915 21916 21917 21918 21919 21920for ac_header in malloc.h unistd.h windows.h zlib.h 21921do 21922as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 21923if eval "test \"\${$as_ac_Header+set}\" = set"; then 21924 echo "$as_me:$LINENO: checking for $ac_header" >&5 21925echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 21926if eval "test \"\${$as_ac_Header+set}\" = set"; then 21927 echo $ECHO_N "(cached) $ECHO_C" >&6 21928fi 21929echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 21930echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 21931else 21932 # Is the header compilable? 21933echo "$as_me:$LINENO: checking $ac_header usability" >&5 21934echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 21935cat >conftest.$ac_ext <<_ACEOF 21936/* confdefs.h. */ 21937_ACEOF 21938cat confdefs.h >>conftest.$ac_ext 21939cat >>conftest.$ac_ext <<_ACEOF 21940/* end confdefs.h. */ 21941$ac_includes_default 21942#include <$ac_header> 21943_ACEOF 21944rm -f conftest.$ac_objext 21945if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21946 (eval $ac_compile) 2>conftest.er1 21947 ac_status=$? 21948 grep -v '^ *+' conftest.er1 >conftest.err 21949 rm -f conftest.er1 21950 cat conftest.err >&5 21951 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21952 (exit $ac_status); } && 21953 { ac_try='test -z "$ac_c_werror_flag" 21954 || test ! -s conftest.err' 21955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21956 (eval $ac_try) 2>&5 21957 ac_status=$? 21958 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21959 (exit $ac_status); }; } && 21960 { ac_try='test -s conftest.$ac_objext' 21961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21962 (eval $ac_try) 2>&5 21963 ac_status=$? 21964 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21965 (exit $ac_status); }; }; then 21966 ac_header_compiler=yes 21967else 21968 echo "$as_me: failed program was:" >&5 21969sed 's/^/| /' conftest.$ac_ext >&5 21970 21971ac_header_compiler=no 21972fi 21973rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21974echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21975echo "${ECHO_T}$ac_header_compiler" >&6 21976 21977# Is the header present? 21978echo "$as_me:$LINENO: checking $ac_header presence" >&5 21979echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 21980cat >conftest.$ac_ext <<_ACEOF 21981/* confdefs.h. */ 21982_ACEOF 21983cat confdefs.h >>conftest.$ac_ext 21984cat >>conftest.$ac_ext <<_ACEOF 21985/* end confdefs.h. */ 21986#include <$ac_header> 21987_ACEOF 21988if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 21989 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 21990 ac_status=$? 21991 grep -v '^ *+' conftest.er1 >conftest.err 21992 rm -f conftest.er1 21993 cat conftest.err >&5 21994 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21995 (exit $ac_status); } >/dev/null; then 21996 if test -s conftest.err; then 21997 ac_cpp_err=$ac_c_preproc_warn_flag 21998 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 21999 else 22000 ac_cpp_err= 22001 fi 22002else 22003 ac_cpp_err=yes 22004fi 22005if test -z "$ac_cpp_err"; then 22006 ac_header_preproc=yes 22007else 22008 echo "$as_me: failed program was:" >&5 22009sed 's/^/| /' conftest.$ac_ext >&5 22010 22011 ac_header_preproc=no 22012fi 22013rm -f conftest.err conftest.$ac_ext 22014echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 22015echo "${ECHO_T}$ac_header_preproc" >&6 22016 22017# So? What about this header? 22018case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 22019 yes:no: ) 22020 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 22021echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 22022 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 22023echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 22024 ac_header_preproc=yes 22025 ;; 22026 no:yes:* ) 22027 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 22028echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 22029 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 22030echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 22031 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 22032echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 22033 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 22034echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 22035 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 22036echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 22037 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 22038echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 22039 ( 22040 cat <<\_ASBOX 22041## ----------------------------------- ## 22042## Report this to llvmbugs@cs.uiuc.edu ## 22043## ----------------------------------- ## 22044_ASBOX 22045 ) | 22046 sed "s/^/$as_me: WARNING: /" >&2 22047 ;; 22048esac 22049echo "$as_me:$LINENO: checking for $ac_header" >&5 22050echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 22051if eval "test \"\${$as_ac_Header+set}\" = set"; then 22052 echo $ECHO_N "(cached) $ECHO_C" >&6 22053else 22054 eval "$as_ac_Header=\$ac_header_preproc" 22055fi 22056echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 22057echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 22058 22059fi 22060if test `eval echo '${'$as_ac_Header'}'` = yes; then 22061 cat >>confdefs.h <<_ACEOF 22062#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 22063_ACEOF 22064 22065fi 22066 22067done 22068 22069echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 22070echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 22071if test "${ac_cv_header_time+set}" = set; then 22072 echo $ECHO_N "(cached) $ECHO_C" >&6 22073else 22074 cat >conftest.$ac_ext <<_ACEOF 22075/* confdefs.h. */ 22076_ACEOF 22077cat confdefs.h >>conftest.$ac_ext 22078cat >>conftest.$ac_ext <<_ACEOF 22079/* end confdefs.h. */ 22080#include <sys/types.h> 22081#include <sys/time.h> 22082#include <time.h> 22083 22084int 22085main () 22086{ 22087if ((struct tm *) 0) 22088return 0; 22089 ; 22090 return 0; 22091} 22092_ACEOF 22093rm -f conftest.$ac_objext 22094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22095 (eval $ac_compile) 2>conftest.er1 22096 ac_status=$? 22097 grep -v '^ *+' conftest.er1 >conftest.err 22098 rm -f conftest.er1 22099 cat conftest.err >&5 22100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22101 (exit $ac_status); } && 22102 { ac_try='test -z "$ac_c_werror_flag" 22103 || test ! -s conftest.err' 22104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22105 (eval $ac_try) 2>&5 22106 ac_status=$? 22107 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22108 (exit $ac_status); }; } && 22109 { ac_try='test -s conftest.$ac_objext' 22110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22111 (eval $ac_try) 2>&5 22112 ac_status=$? 22113 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22114 (exit $ac_status); }; }; then 22115 ac_cv_header_time=yes 22116else 22117 echo "$as_me: failed program was:" >&5 22118sed 's/^/| /' conftest.$ac_ext >&5 22119 22120ac_cv_header_time=no 22121fi 22122rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22123fi 22124echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 22125echo "${ECHO_T}$ac_cv_header_time" >&6 22126if test $ac_cv_header_time = yes; then 22127 22128cat >>confdefs.h <<\_ACEOF 22129#define TIME_WITH_SYS_TIME 1 22130_ACEOF 22131 22132fi 22133 22134echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 22135echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6 22136if test "${ac_cv_header_mmap_anon+set}" = set; then 22137 echo $ECHO_N "(cached) $ECHO_C" >&6 22138else 22139 ac_ext=c 22140ac_cpp='$CPP $CPPFLAGS' 22141ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22142ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22143ac_compiler_gnu=$ac_cv_c_compiler_gnu 22144 22145 cat >conftest.$ac_ext <<_ACEOF 22146/* confdefs.h. */ 22147_ACEOF 22148cat confdefs.h >>conftest.$ac_ext 22149cat >>conftest.$ac_ext <<_ACEOF 22150/* end confdefs.h. */ 22151#include <sys/mman.h> 22152#include <unistd.h> 22153#include <fcntl.h> 22154int 22155main () 22156{ 22157mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); 22158 ; 22159 return 0; 22160} 22161_ACEOF 22162rm -f conftest.$ac_objext 22163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22164 (eval $ac_compile) 2>conftest.er1 22165 ac_status=$? 22166 grep -v '^ *+' conftest.er1 >conftest.err 22167 rm -f conftest.er1 22168 cat conftest.err >&5 22169 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22170 (exit $ac_status); } && 22171 { ac_try='test -z "$ac_c_werror_flag" 22172 || test ! -s conftest.err' 22173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22174 (eval $ac_try) 2>&5 22175 ac_status=$? 22176 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22177 (exit $ac_status); }; } && 22178 { ac_try='test -s conftest.$ac_objext' 22179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22180 (eval $ac_try) 2>&5 22181 ac_status=$? 22182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22183 (exit $ac_status); }; }; then 22184 ac_cv_header_mmap_anon=yes 22185else 22186 echo "$as_me: failed program was:" >&5 22187sed 's/^/| /' conftest.$ac_ext >&5 22188 22189ac_cv_header_mmap_anon=no 22190fi 22191rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22192 ac_ext=c 22193ac_cpp='$CPP $CPPFLAGS' 22194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22196ac_compiler_gnu=$ac_cv_c_compiler_gnu 22197 22198 22199fi 22200echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 22201echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6 22202if test "$ac_cv_header_mmap_anon" = yes; then 22203 22204cat >>confdefs.h <<\_ACEOF 22205#define HAVE_MMAP_ANONYMOUS 22206_ACEOF 22207 22208fi 22209 22210 22211 22212 22213for ac_header in inttypes.h stdint.h 22214do 22215as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 22216if eval "test \"\${$as_ac_Header+set}\" = set"; then 22217 echo "$as_me:$LINENO: checking for $ac_header" >&5 22218echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 22219if eval "test \"\${$as_ac_Header+set}\" = set"; then 22220 echo $ECHO_N "(cached) $ECHO_C" >&6 22221fi 22222echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 22223echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 22224else 22225 # Is the header compilable? 22226echo "$as_me:$LINENO: checking $ac_header usability" >&5 22227echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 22228cat >conftest.$ac_ext <<_ACEOF 22229/* confdefs.h. */ 22230_ACEOF 22231cat confdefs.h >>conftest.$ac_ext 22232cat >>conftest.$ac_ext <<_ACEOF 22233/* end confdefs.h. */ 22234$ac_includes_default 22235#include <$ac_header> 22236_ACEOF 22237rm -f conftest.$ac_objext 22238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22239 (eval $ac_compile) 2>conftest.er1 22240 ac_status=$? 22241 grep -v '^ *+' conftest.er1 >conftest.err 22242 rm -f conftest.er1 22243 cat conftest.err >&5 22244 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22245 (exit $ac_status); } && 22246 { ac_try='test -z "$ac_c_werror_flag" 22247 || test ! -s conftest.err' 22248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22249 (eval $ac_try) 2>&5 22250 ac_status=$? 22251 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22252 (exit $ac_status); }; } && 22253 { ac_try='test -s conftest.$ac_objext' 22254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22255 (eval $ac_try) 2>&5 22256 ac_status=$? 22257 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22258 (exit $ac_status); }; }; then 22259 ac_header_compiler=yes 22260else 22261 echo "$as_me: failed program was:" >&5 22262sed 's/^/| /' conftest.$ac_ext >&5 22263 22264ac_header_compiler=no 22265fi 22266rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22267echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 22268echo "${ECHO_T}$ac_header_compiler" >&6 22269 22270# Is the header present? 22271echo "$as_me:$LINENO: checking $ac_header presence" >&5 22272echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 22273cat >conftest.$ac_ext <<_ACEOF 22274/* confdefs.h. */ 22275_ACEOF 22276cat confdefs.h >>conftest.$ac_ext 22277cat >>conftest.$ac_ext <<_ACEOF 22278/* end confdefs.h. */ 22279#include <$ac_header> 22280_ACEOF 22281if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 22282 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 22283 ac_status=$? 22284 grep -v '^ *+' conftest.er1 >conftest.err 22285 rm -f conftest.er1 22286 cat conftest.err >&5 22287 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22288 (exit $ac_status); } >/dev/null; then 22289 if test -s conftest.err; then 22290 ac_cpp_err=$ac_c_preproc_warn_flag 22291 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 22292 else 22293 ac_cpp_err= 22294 fi 22295else 22296 ac_cpp_err=yes 22297fi 22298if test -z "$ac_cpp_err"; then 22299 ac_header_preproc=yes 22300else 22301 echo "$as_me: failed program was:" >&5 22302sed 's/^/| /' conftest.$ac_ext >&5 22303 22304 ac_header_preproc=no 22305fi 22306rm -f conftest.err conftest.$ac_ext 22307echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 22308echo "${ECHO_T}$ac_header_preproc" >&6 22309 22310# So? What about this header? 22311case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 22312 yes:no: ) 22313 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 22314echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 22315 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 22316echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 22317 ac_header_preproc=yes 22318 ;; 22319 no:yes:* ) 22320 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 22321echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 22322 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 22323echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 22324 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 22325echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 22326 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 22327echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 22328 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 22329echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 22330 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 22331echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 22332 ( 22333 cat <<\_ASBOX 22334## ----------------------------------- ## 22335## Report this to llvmbugs@cs.uiuc.edu ## 22336## ----------------------------------- ## 22337_ASBOX 22338 ) | 22339 sed "s/^/$as_me: WARNING: /" >&2 22340 ;; 22341esac 22342echo "$as_me:$LINENO: checking for $ac_header" >&5 22343echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 22344if eval "test \"\${$as_ac_Header+set}\" = set"; then 22345 echo $ECHO_N "(cached) $ECHO_C" >&6 22346else 22347 eval "$as_ac_Header=\$ac_header_preproc" 22348fi 22349echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 22350echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 22351 22352fi 22353if test `eval echo '${'$as_ac_Header'}'` = yes; then 22354 cat >>confdefs.h <<_ACEOF 22355#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 22356_ACEOF 22357 22358fi 22359 22360done 22361 22362 22363 22364echo "$as_me:$LINENO: checking for pid_t" >&5 22365echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 22366if test "${ac_cv_type_pid_t+set}" = set; then 22367 echo $ECHO_N "(cached) $ECHO_C" >&6 22368else 22369 cat >conftest.$ac_ext <<_ACEOF 22370/* confdefs.h. */ 22371_ACEOF 22372cat confdefs.h >>conftest.$ac_ext 22373cat >>conftest.$ac_ext <<_ACEOF 22374/* end confdefs.h. */ 22375$ac_includes_default 22376int 22377main () 22378{ 22379if ((pid_t *) 0) 22380 return 0; 22381if (sizeof (pid_t)) 22382 return 0; 22383 ; 22384 return 0; 22385} 22386_ACEOF 22387rm -f conftest.$ac_objext 22388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22389 (eval $ac_compile) 2>conftest.er1 22390 ac_status=$? 22391 grep -v '^ *+' conftest.er1 >conftest.err 22392 rm -f conftest.er1 22393 cat conftest.err >&5 22394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22395 (exit $ac_status); } && 22396 { ac_try='test -z "$ac_c_werror_flag" 22397 || test ! -s conftest.err' 22398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22399 (eval $ac_try) 2>&5 22400 ac_status=$? 22401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22402 (exit $ac_status); }; } && 22403 { ac_try='test -s conftest.$ac_objext' 22404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22405 (eval $ac_try) 2>&5 22406 ac_status=$? 22407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22408 (exit $ac_status); }; }; then 22409 ac_cv_type_pid_t=yes 22410else 22411 echo "$as_me: failed program was:" >&5 22412sed 's/^/| /' conftest.$ac_ext >&5 22413 22414ac_cv_type_pid_t=no 22415fi 22416rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22417fi 22418echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 22419echo "${ECHO_T}$ac_cv_type_pid_t" >&6 22420if test $ac_cv_type_pid_t = yes; then 22421 : 22422else 22423 22424cat >>confdefs.h <<_ACEOF 22425#define pid_t int 22426_ACEOF 22427 22428fi 22429 22430echo "$as_me:$LINENO: checking for size_t" >&5 22431echo $ECHO_N "checking for size_t... $ECHO_C" >&6 22432if test "${ac_cv_type_size_t+set}" = set; then 22433 echo $ECHO_N "(cached) $ECHO_C" >&6 22434else 22435 cat >conftest.$ac_ext <<_ACEOF 22436/* confdefs.h. */ 22437_ACEOF 22438cat confdefs.h >>conftest.$ac_ext 22439cat >>conftest.$ac_ext <<_ACEOF 22440/* end confdefs.h. */ 22441$ac_includes_default 22442int 22443main () 22444{ 22445if ((size_t *) 0) 22446 return 0; 22447if (sizeof (size_t)) 22448 return 0; 22449 ; 22450 return 0; 22451} 22452_ACEOF 22453rm -f conftest.$ac_objext 22454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22455 (eval $ac_compile) 2>conftest.er1 22456 ac_status=$? 22457 grep -v '^ *+' conftest.er1 >conftest.err 22458 rm -f conftest.er1 22459 cat conftest.err >&5 22460 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22461 (exit $ac_status); } && 22462 { ac_try='test -z "$ac_c_werror_flag" 22463 || test ! -s conftest.err' 22464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22465 (eval $ac_try) 2>&5 22466 ac_status=$? 22467 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22468 (exit $ac_status); }; } && 22469 { ac_try='test -s conftest.$ac_objext' 22470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22471 (eval $ac_try) 2>&5 22472 ac_status=$? 22473 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22474 (exit $ac_status); }; }; then 22475 ac_cv_type_size_t=yes 22476else 22477 echo "$as_me: failed program was:" >&5 22478sed 's/^/| /' conftest.$ac_ext >&5 22479 22480ac_cv_type_size_t=no 22481fi 22482rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22483fi 22484echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 22485echo "${ECHO_T}$ac_cv_type_size_t" >&6 22486if test $ac_cv_type_size_t = yes; then 22487 : 22488else 22489 22490cat >>confdefs.h <<_ACEOF 22491#define size_t unsigned 22492_ACEOF 22493 22494fi 22495 22496echo "$as_me:$LINENO: checking return type of signal handlers" >&5 22497echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 22498if test "${ac_cv_type_signal+set}" = set; then 22499 echo $ECHO_N "(cached) $ECHO_C" >&6 22500else 22501 cat >conftest.$ac_ext <<_ACEOF 22502/* confdefs.h. */ 22503_ACEOF 22504cat confdefs.h >>conftest.$ac_ext 22505cat >>conftest.$ac_ext <<_ACEOF 22506/* end confdefs.h. */ 22507#include <sys/types.h> 22508#include <signal.h> 22509#ifdef signal 22510# undef signal 22511#endif 22512#ifdef __cplusplus 22513extern "C" void (*signal (int, void (*)(int)))(int); 22514#else 22515void (*signal ()) (); 22516#endif 22517 22518int 22519main () 22520{ 22521int i; 22522 ; 22523 return 0; 22524} 22525_ACEOF 22526rm -f conftest.$ac_objext 22527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22528 (eval $ac_compile) 2>conftest.er1 22529 ac_status=$? 22530 grep -v '^ *+' conftest.er1 >conftest.err 22531 rm -f conftest.er1 22532 cat conftest.err >&5 22533 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22534 (exit $ac_status); } && 22535 { ac_try='test -z "$ac_c_werror_flag" 22536 || test ! -s conftest.err' 22537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22538 (eval $ac_try) 2>&5 22539 ac_status=$? 22540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22541 (exit $ac_status); }; } && 22542 { ac_try='test -s conftest.$ac_objext' 22543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22544 (eval $ac_try) 2>&5 22545 ac_status=$? 22546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22547 (exit $ac_status); }; }; then 22548 ac_cv_type_signal=void 22549else 22550 echo "$as_me: failed program was:" >&5 22551sed 's/^/| /' conftest.$ac_ext >&5 22552 22553ac_cv_type_signal=int 22554fi 22555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22556fi 22557echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 22558echo "${ECHO_T}$ac_cv_type_signal" >&6 22559 22560cat >>confdefs.h <<_ACEOF 22561#define RETSIGTYPE $ac_cv_type_signal 22562_ACEOF 22563 22564 22565echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 22566echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 22567if test "${ac_cv_struct_tm+set}" = set; then 22568 echo $ECHO_N "(cached) $ECHO_C" >&6 22569else 22570 cat >conftest.$ac_ext <<_ACEOF 22571/* confdefs.h. */ 22572_ACEOF 22573cat confdefs.h >>conftest.$ac_ext 22574cat >>conftest.$ac_ext <<_ACEOF 22575/* end confdefs.h. */ 22576#include <sys/types.h> 22577#include <time.h> 22578 22579int 22580main () 22581{ 22582struct tm *tp; tp->tm_sec; 22583 ; 22584 return 0; 22585} 22586_ACEOF 22587rm -f conftest.$ac_objext 22588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22589 (eval $ac_compile) 2>conftest.er1 22590 ac_status=$? 22591 grep -v '^ *+' conftest.er1 >conftest.err 22592 rm -f conftest.er1 22593 cat conftest.err >&5 22594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22595 (exit $ac_status); } && 22596 { ac_try='test -z "$ac_c_werror_flag" 22597 || test ! -s conftest.err' 22598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22599 (eval $ac_try) 2>&5 22600 ac_status=$? 22601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22602 (exit $ac_status); }; } && 22603 { ac_try='test -s conftest.$ac_objext' 22604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22605 (eval $ac_try) 2>&5 22606 ac_status=$? 22607 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22608 (exit $ac_status); }; }; then 22609 ac_cv_struct_tm=time.h 22610else 22611 echo "$as_me: failed program was:" >&5 22612sed 's/^/| /' conftest.$ac_ext >&5 22613 22614ac_cv_struct_tm=sys/time.h 22615fi 22616rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22617fi 22618echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 22619echo "${ECHO_T}$ac_cv_struct_tm" >&6 22620if test $ac_cv_struct_tm = sys/time.h; then 22621 22622cat >>confdefs.h <<\_ACEOF 22623#define TM_IN_SYS_TIME 1 22624_ACEOF 22625 22626fi 22627 22628echo "$as_me:$LINENO: checking for int64_t" >&5 22629echo $ECHO_N "checking for int64_t... $ECHO_C" >&6 22630if test "${ac_cv_type_int64_t+set}" = set; then 22631 echo $ECHO_N "(cached) $ECHO_C" >&6 22632else 22633 cat >conftest.$ac_ext <<_ACEOF 22634/* confdefs.h. */ 22635_ACEOF 22636cat confdefs.h >>conftest.$ac_ext 22637cat >>conftest.$ac_ext <<_ACEOF 22638/* end confdefs.h. */ 22639$ac_includes_default 22640int 22641main () 22642{ 22643if ((int64_t *) 0) 22644 return 0; 22645if (sizeof (int64_t)) 22646 return 0; 22647 ; 22648 return 0; 22649} 22650_ACEOF 22651rm -f conftest.$ac_objext 22652if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22653 (eval $ac_compile) 2>conftest.er1 22654 ac_status=$? 22655 grep -v '^ *+' conftest.er1 >conftest.err 22656 rm -f conftest.er1 22657 cat conftest.err >&5 22658 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22659 (exit $ac_status); } && 22660 { ac_try='test -z "$ac_c_werror_flag" 22661 || test ! -s conftest.err' 22662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22663 (eval $ac_try) 2>&5 22664 ac_status=$? 22665 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22666 (exit $ac_status); }; } && 22667 { ac_try='test -s conftest.$ac_objext' 22668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22669 (eval $ac_try) 2>&5 22670 ac_status=$? 22671 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22672 (exit $ac_status); }; }; then 22673 ac_cv_type_int64_t=yes 22674else 22675 echo "$as_me: failed program was:" >&5 22676sed 's/^/| /' conftest.$ac_ext >&5 22677 22678ac_cv_type_int64_t=no 22679fi 22680rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22681fi 22682echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 22683echo "${ECHO_T}$ac_cv_type_int64_t" >&6 22684if test $ac_cv_type_int64_t = yes; then 22685 22686cat >>confdefs.h <<_ACEOF 22687#define HAVE_INT64_T 1 22688_ACEOF 22689 22690 22691else 22692 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 22693echo "$as_me: error: Type int64_t required but not found" >&2;} 22694 { (exit 1); exit 1; }; } 22695fi 22696 22697echo "$as_me:$LINENO: checking for uint64_t" >&5 22698echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 22699if test "${ac_cv_type_uint64_t+set}" = set; then 22700 echo $ECHO_N "(cached) $ECHO_C" >&6 22701else 22702 cat >conftest.$ac_ext <<_ACEOF 22703/* confdefs.h. */ 22704_ACEOF 22705cat confdefs.h >>conftest.$ac_ext 22706cat >>conftest.$ac_ext <<_ACEOF 22707/* end confdefs.h. */ 22708$ac_includes_default 22709int 22710main () 22711{ 22712if ((uint64_t *) 0) 22713 return 0; 22714if (sizeof (uint64_t)) 22715 return 0; 22716 ; 22717 return 0; 22718} 22719_ACEOF 22720rm -f conftest.$ac_objext 22721if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22722 (eval $ac_compile) 2>conftest.er1 22723 ac_status=$? 22724 grep -v '^ *+' conftest.er1 >conftest.err 22725 rm -f conftest.er1 22726 cat conftest.err >&5 22727 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22728 (exit $ac_status); } && 22729 { ac_try='test -z "$ac_c_werror_flag" 22730 || test ! -s conftest.err' 22731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22732 (eval $ac_try) 2>&5 22733 ac_status=$? 22734 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22735 (exit $ac_status); }; } && 22736 { ac_try='test -s conftest.$ac_objext' 22737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22738 (eval $ac_try) 2>&5 22739 ac_status=$? 22740 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22741 (exit $ac_status); }; }; then 22742 ac_cv_type_uint64_t=yes 22743else 22744 echo "$as_me: failed program was:" >&5 22745sed 's/^/| /' conftest.$ac_ext >&5 22746 22747ac_cv_type_uint64_t=no 22748fi 22749rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22750fi 22751echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 22752echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 22753if test $ac_cv_type_uint64_t = yes; then 22754 22755cat >>confdefs.h <<_ACEOF 22756#define HAVE_UINT64_T 1 22757_ACEOF 22758 22759 22760else 22761 echo "$as_me:$LINENO: checking for u_int64_t" >&5 22762echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6 22763if test "${ac_cv_type_u_int64_t+set}" = set; then 22764 echo $ECHO_N "(cached) $ECHO_C" >&6 22765else 22766 cat >conftest.$ac_ext <<_ACEOF 22767/* confdefs.h. */ 22768_ACEOF 22769cat confdefs.h >>conftest.$ac_ext 22770cat >>conftest.$ac_ext <<_ACEOF 22771/* end confdefs.h. */ 22772$ac_includes_default 22773int 22774main () 22775{ 22776if ((u_int64_t *) 0) 22777 return 0; 22778if (sizeof (u_int64_t)) 22779 return 0; 22780 ; 22781 return 0; 22782} 22783_ACEOF 22784rm -f conftest.$ac_objext 22785if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22786 (eval $ac_compile) 2>conftest.er1 22787 ac_status=$? 22788 grep -v '^ *+' conftest.er1 >conftest.err 22789 rm -f conftest.er1 22790 cat conftest.err >&5 22791 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22792 (exit $ac_status); } && 22793 { ac_try='test -z "$ac_c_werror_flag" 22794 || test ! -s conftest.err' 22795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22796 (eval $ac_try) 2>&5 22797 ac_status=$? 22798 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22799 (exit $ac_status); }; } && 22800 { ac_try='test -s conftest.$ac_objext' 22801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22802 (eval $ac_try) 2>&5 22803 ac_status=$? 22804 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22805 (exit $ac_status); }; }; then 22806 ac_cv_type_u_int64_t=yes 22807else 22808 echo "$as_me: failed program was:" >&5 22809sed 's/^/| /' conftest.$ac_ext >&5 22810 22811ac_cv_type_u_int64_t=no 22812fi 22813rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22814fi 22815echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 22816echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6 22817if test $ac_cv_type_u_int64_t = yes; then 22818 22819cat >>confdefs.h <<_ACEOF 22820#define HAVE_U_INT64_T 1 22821_ACEOF 22822 22823 22824else 22825 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 22826echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} 22827 { (exit 1); exit 1; }; } 22828fi 22829 22830fi 22831 22832 22833 22834 22835 22836 22837 22838 22839 22840for ac_func in backtrace getcwd gettimeofday isatty getrusage mkstemp 22841do 22842as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 22843echo "$as_me:$LINENO: checking for $ac_func" >&5 22844echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 22845if eval "test \"\${$as_ac_var+set}\" = set"; then 22846 echo $ECHO_N "(cached) $ECHO_C" >&6 22847else 22848 cat >conftest.$ac_ext <<_ACEOF 22849/* confdefs.h. */ 22850_ACEOF 22851cat confdefs.h >>conftest.$ac_ext 22852cat >>conftest.$ac_ext <<_ACEOF 22853/* end confdefs.h. */ 22854/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 22855 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 22856#define $ac_func innocuous_$ac_func 22857 22858/* System header to define __stub macros and hopefully few prototypes, 22859 which can conflict with char $ac_func (); below. 22860 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 22861 <limits.h> exists even on freestanding compilers. */ 22862 22863#ifdef __STDC__ 22864# include <limits.h> 22865#else 22866# include <assert.h> 22867#endif 22868 22869#undef $ac_func 22870 22871/* Override any gcc2 internal prototype to avoid an error. */ 22872#ifdef __cplusplus 22873extern "C" 22874{ 22875#endif 22876/* We use char because int might match the return type of a gcc2 22877 builtin and then its argument prototype would still apply. */ 22878char $ac_func (); 22879/* The GNU C library defines this for functions which it implements 22880 to always fail with ENOSYS. Some functions are actually named 22881 something starting with __ and the normal name is an alias. */ 22882#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 22883choke me 22884#else 22885char (*f) () = $ac_func; 22886#endif 22887#ifdef __cplusplus 22888} 22889#endif 22890 22891int 22892main () 22893{ 22894return f != $ac_func; 22895 ; 22896 return 0; 22897} 22898_ACEOF 22899rm -f conftest.$ac_objext conftest$ac_exeext 22900if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22901 (eval $ac_link) 2>conftest.er1 22902 ac_status=$? 22903 grep -v '^ *+' conftest.er1 >conftest.err 22904 rm -f conftest.er1 22905 cat conftest.err >&5 22906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22907 (exit $ac_status); } && 22908 { ac_try='test -z "$ac_c_werror_flag" 22909 || test ! -s conftest.err' 22910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22911 (eval $ac_try) 2>&5 22912 ac_status=$? 22913 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22914 (exit $ac_status); }; } && 22915 { ac_try='test -s conftest$ac_exeext' 22916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22917 (eval $ac_try) 2>&5 22918 ac_status=$? 22919 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22920 (exit $ac_status); }; }; then 22921 eval "$as_ac_var=yes" 22922else 22923 echo "$as_me: failed program was:" >&5 22924sed 's/^/| /' conftest.$ac_ext >&5 22925 22926eval "$as_ac_var=no" 22927fi 22928rm -f conftest.err conftest.$ac_objext \ 22929 conftest$ac_exeext conftest.$ac_ext 22930fi 22931echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 22932echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 22933if test `eval echo '${'$as_ac_var'}'` = yes; then 22934 cat >>confdefs.h <<_ACEOF 22935#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 22936_ACEOF 22937 22938fi 22939done 22940 22941 22942 22943 22944for ac_func in strdup strtoq strtoll 22945do 22946as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 22947echo "$as_me:$LINENO: checking for $ac_func" >&5 22948echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 22949if eval "test \"\${$as_ac_var+set}\" = set"; then 22950 echo $ECHO_N "(cached) $ECHO_C" >&6 22951else 22952 cat >conftest.$ac_ext <<_ACEOF 22953/* confdefs.h. */ 22954_ACEOF 22955cat confdefs.h >>conftest.$ac_ext 22956cat >>conftest.$ac_ext <<_ACEOF 22957/* end confdefs.h. */ 22958/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 22959 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 22960#define $ac_func innocuous_$ac_func 22961 22962/* System header to define __stub macros and hopefully few prototypes, 22963 which can conflict with char $ac_func (); below. 22964 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 22965 <limits.h> exists even on freestanding compilers. */ 22966 22967#ifdef __STDC__ 22968# include <limits.h> 22969#else 22970# include <assert.h> 22971#endif 22972 22973#undef $ac_func 22974 22975/* Override any gcc2 internal prototype to avoid an error. */ 22976#ifdef __cplusplus 22977extern "C" 22978{ 22979#endif 22980/* We use char because int might match the return type of a gcc2 22981 builtin and then its argument prototype would still apply. */ 22982char $ac_func (); 22983/* The GNU C library defines this for functions which it implements 22984 to always fail with ENOSYS. Some functions are actually named 22985 something starting with __ and the normal name is an alias. */ 22986#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 22987choke me 22988#else 22989char (*f) () = $ac_func; 22990#endif 22991#ifdef __cplusplus 22992} 22993#endif 22994 22995int 22996main () 22997{ 22998return f != $ac_func; 22999 ; 23000 return 0; 23001} 23002_ACEOF 23003rm -f conftest.$ac_objext conftest$ac_exeext 23004if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23005 (eval $ac_link) 2>conftest.er1 23006 ac_status=$? 23007 grep -v '^ *+' conftest.er1 >conftest.err 23008 rm -f conftest.er1 23009 cat conftest.err >&5 23010 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23011 (exit $ac_status); } && 23012 { ac_try='test -z "$ac_c_werror_flag" 23013 || test ! -s conftest.err' 23014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23015 (eval $ac_try) 2>&5 23016 ac_status=$? 23017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23018 (exit $ac_status); }; } && 23019 { ac_try='test -s conftest$ac_exeext' 23020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23021 (eval $ac_try) 2>&5 23022 ac_status=$? 23023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23024 (exit $ac_status); }; }; then 23025 eval "$as_ac_var=yes" 23026else 23027 echo "$as_me: failed program was:" >&5 23028sed 's/^/| /' conftest.$ac_ext >&5 23029 23030eval "$as_ac_var=no" 23031fi 23032rm -f conftest.err conftest.$ac_objext \ 23033 conftest$ac_exeext conftest.$ac_ext 23034fi 23035echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 23036echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 23037if test `eval echo '${'$as_ac_var'}'` = yes; then 23038 cat >>confdefs.h <<_ACEOF 23039#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 23040_ACEOF 23041 23042fi 23043done 23044 23045echo "$as_me:$LINENO: checking if printf has the %a format character" >&5 23046echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6 23047if test "${ac_cv_printf_a+set}" = set; then 23048 echo $ECHO_N "(cached) $ECHO_C" >&6 23049else 23050 ac_ext=c 23051ac_cpp='$CPP $CPPFLAGS' 23052ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 23053ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 23054ac_compiler_gnu=$ac_cv_c_compiler_gnu 23055 23056 if test "$cross_compiling" = yes; then 23057 ac_c_printf_a=no 23058else 23059 cat >conftest.$ac_ext <<_ACEOF 23060 23061 /* confdefs.h. */ 23062_ACEOF 23063cat confdefs.h >>conftest.$ac_ext 23064cat >>conftest.$ac_ext <<_ACEOF 23065/* end confdefs.h. */ 23066 23067#include <stdio.h> 23068#include <stdlib.h> 23069 23070int 23071main () 23072{ 23073 23074volatile double A, B; 23075char Buffer[100]; 23076A = 1; 23077A /= 10.0; 23078sprintf(Buffer, "%a", A); 23079B = atof(Buffer); 23080if (A != B) 23081 return (1); 23082if (A != 0x1.999999999999ap-4) 23083 return (1); 23084return (0); 23085 ; 23086 return 0; 23087} 23088_ACEOF 23089rm -f conftest$ac_exeext 23090if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23091 (eval $ac_link) 2>&5 23092 ac_status=$? 23093 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23094 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 23095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23096 (eval $ac_try) 2>&5 23097 ac_status=$? 23098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23099 (exit $ac_status); }; }; then 23100 ac_c_printf_a=yes 23101else 23102 echo "$as_me: program exited with status $ac_status" >&5 23103echo "$as_me: failed program was:" >&5 23104sed 's/^/| /' conftest.$ac_ext >&5 23105 23106( exit $ac_status ) 23107ac_c_printf_a=no 23108fi 23109rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 23110fi 23111 ac_ext=c 23112ac_cpp='$CPP $CPPFLAGS' 23113ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 23114ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 23115ac_compiler_gnu=$ac_cv_c_compiler_gnu 23116 23117fi 23118echo "$as_me:$LINENO: result: $ac_cv_printf_a" >&5 23119echo "${ECHO_T}$ac_cv_printf_a" >&6 23120 if test "$ac_cv_printf_a" = "yes"; then 23121 23122cat >>confdefs.h <<\_ACEOF 23123#define HAVE_PRINTF_A 1 23124_ACEOF 23125 23126 fi 23127 23128# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 23129# for constant arguments. Useless! 23130echo "$as_me:$LINENO: checking for working alloca.h" >&5 23131echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 23132if test "${ac_cv_working_alloca_h+set}" = set; then 23133 echo $ECHO_N "(cached) $ECHO_C" >&6 23134else 23135 cat >conftest.$ac_ext <<_ACEOF 23136/* confdefs.h. */ 23137_ACEOF 23138cat confdefs.h >>conftest.$ac_ext 23139cat >>conftest.$ac_ext <<_ACEOF 23140/* end confdefs.h. */ 23141#include <alloca.h> 23142int 23143main () 23144{ 23145char *p = (char *) alloca (2 * sizeof (int)); 23146 ; 23147 return 0; 23148} 23149_ACEOF 23150rm -f conftest.$ac_objext conftest$ac_exeext 23151if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23152 (eval $ac_link) 2>conftest.er1 23153 ac_status=$? 23154 grep -v '^ *+' conftest.er1 >conftest.err 23155 rm -f conftest.er1 23156 cat conftest.err >&5 23157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23158 (exit $ac_status); } && 23159 { ac_try='test -z "$ac_c_werror_flag" 23160 || test ! -s conftest.err' 23161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23162 (eval $ac_try) 2>&5 23163 ac_status=$? 23164 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23165 (exit $ac_status); }; } && 23166 { ac_try='test -s conftest$ac_exeext' 23167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23168 (eval $ac_try) 2>&5 23169 ac_status=$? 23170 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23171 (exit $ac_status); }; }; then 23172 ac_cv_working_alloca_h=yes 23173else 23174 echo "$as_me: failed program was:" >&5 23175sed 's/^/| /' conftest.$ac_ext >&5 23176 23177ac_cv_working_alloca_h=no 23178fi 23179rm -f conftest.err conftest.$ac_objext \ 23180 conftest$ac_exeext conftest.$ac_ext 23181fi 23182echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 23183echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 23184if test $ac_cv_working_alloca_h = yes; then 23185 23186cat >>confdefs.h <<\_ACEOF 23187#define HAVE_ALLOCA_H 1 23188_ACEOF 23189 23190fi 23191 23192echo "$as_me:$LINENO: checking for alloca" >&5 23193echo $ECHO_N "checking for alloca... $ECHO_C" >&6 23194if test "${ac_cv_func_alloca_works+set}" = set; then 23195 echo $ECHO_N "(cached) $ECHO_C" >&6 23196else 23197 cat >conftest.$ac_ext <<_ACEOF 23198/* confdefs.h. */ 23199_ACEOF 23200cat confdefs.h >>conftest.$ac_ext 23201cat >>conftest.$ac_ext <<_ACEOF 23202/* end confdefs.h. */ 23203#ifdef __GNUC__ 23204# define alloca __builtin_alloca 23205#else 23206# ifdef _MSC_VER 23207# include <malloc.h> 23208# define alloca _alloca 23209# else 23210# if HAVE_ALLOCA_H 23211# include <alloca.h> 23212# else 23213# ifdef _AIX 23214 #pragma alloca 23215# else 23216# ifndef alloca /* predefined by HP cc +Olibcalls */ 23217char *alloca (); 23218# endif 23219# endif 23220# endif 23221# endif 23222#endif 23223 23224int 23225main () 23226{ 23227char *p = (char *) alloca (1); 23228 ; 23229 return 0; 23230} 23231_ACEOF 23232rm -f conftest.$ac_objext conftest$ac_exeext 23233if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23234 (eval $ac_link) 2>conftest.er1 23235 ac_status=$? 23236 grep -v '^ *+' conftest.er1 >conftest.err 23237 rm -f conftest.er1 23238 cat conftest.err >&5 23239 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23240 (exit $ac_status); } && 23241 { ac_try='test -z "$ac_c_werror_flag" 23242 || test ! -s conftest.err' 23243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23244 (eval $ac_try) 2>&5 23245 ac_status=$? 23246 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23247 (exit $ac_status); }; } && 23248 { ac_try='test -s conftest$ac_exeext' 23249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23250 (eval $ac_try) 2>&5 23251 ac_status=$? 23252 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23253 (exit $ac_status); }; }; then 23254 ac_cv_func_alloca_works=yes 23255else 23256 echo "$as_me: failed program was:" >&5 23257sed 's/^/| /' conftest.$ac_ext >&5 23258 23259ac_cv_func_alloca_works=no 23260fi 23261rm -f conftest.err conftest.$ac_objext \ 23262 conftest$ac_exeext conftest.$ac_ext 23263fi 23264echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 23265echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 23266 23267if test $ac_cv_func_alloca_works = yes; then 23268 23269cat >>confdefs.h <<\_ACEOF 23270#define HAVE_ALLOCA 1 23271_ACEOF 23272 23273else 23274 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 23275# that cause trouble. Some versions do not even contain alloca or 23276# contain a buggy version. If you still want to use their alloca, 23277# use ar to extract alloca.o from them instead of compiling alloca.c. 23278 23279ALLOCA=alloca.$ac_objext 23280 23281cat >>confdefs.h <<\_ACEOF 23282#define C_ALLOCA 1 23283_ACEOF 23284 23285 23286echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 23287echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 23288if test "${ac_cv_os_cray+set}" = set; then 23289 echo $ECHO_N "(cached) $ECHO_C" >&6 23290else 23291 cat >conftest.$ac_ext <<_ACEOF 23292/* confdefs.h. */ 23293_ACEOF 23294cat confdefs.h >>conftest.$ac_ext 23295cat >>conftest.$ac_ext <<_ACEOF 23296/* end confdefs.h. */ 23297#if defined(CRAY) && ! defined(CRAY2) 23298webecray 23299#else 23300wenotbecray 23301#endif 23302 23303_ACEOF 23304if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23305 $EGREP "webecray" >/dev/null 2>&1; then 23306 ac_cv_os_cray=yes 23307else 23308 ac_cv_os_cray=no 23309fi 23310rm -f conftest* 23311 23312fi 23313echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 23314echo "${ECHO_T}$ac_cv_os_cray" >&6 23315if test $ac_cv_os_cray = yes; then 23316 for ac_func in _getb67 GETB67 getb67; do 23317 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 23318echo "$as_me:$LINENO: checking for $ac_func" >&5 23319echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 23320if eval "test \"\${$as_ac_var+set}\" = set"; then 23321 echo $ECHO_N "(cached) $ECHO_C" >&6 23322else 23323 cat >conftest.$ac_ext <<_ACEOF 23324/* confdefs.h. */ 23325_ACEOF 23326cat confdefs.h >>conftest.$ac_ext 23327cat >>conftest.$ac_ext <<_ACEOF 23328/* end confdefs.h. */ 23329/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 23330 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 23331#define $ac_func innocuous_$ac_func 23332 23333/* System header to define __stub macros and hopefully few prototypes, 23334 which can conflict with char $ac_func (); below. 23335 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 23336 <limits.h> exists even on freestanding compilers. */ 23337 23338#ifdef __STDC__ 23339# include <limits.h> 23340#else 23341# include <assert.h> 23342#endif 23343 23344#undef $ac_func 23345 23346/* Override any gcc2 internal prototype to avoid an error. */ 23347#ifdef __cplusplus 23348extern "C" 23349{ 23350#endif 23351/* We use char because int might match the return type of a gcc2 23352 builtin and then its argument prototype would still apply. */ 23353char $ac_func (); 23354/* The GNU C library defines this for functions which it implements 23355 to always fail with ENOSYS. Some functions are actually named 23356 something starting with __ and the normal name is an alias. */ 23357#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 23358choke me 23359#else 23360char (*f) () = $ac_func; 23361#endif 23362#ifdef __cplusplus 23363} 23364#endif 23365 23366int 23367main () 23368{ 23369return f != $ac_func; 23370 ; 23371 return 0; 23372} 23373_ACEOF 23374rm -f conftest.$ac_objext conftest$ac_exeext 23375if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23376 (eval $ac_link) 2>conftest.er1 23377 ac_status=$? 23378 grep -v '^ *+' conftest.er1 >conftest.err 23379 rm -f conftest.er1 23380 cat conftest.err >&5 23381 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23382 (exit $ac_status); } && 23383 { ac_try='test -z "$ac_c_werror_flag" 23384 || test ! -s conftest.err' 23385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23386 (eval $ac_try) 2>&5 23387 ac_status=$? 23388 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23389 (exit $ac_status); }; } && 23390 { ac_try='test -s conftest$ac_exeext' 23391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23392 (eval $ac_try) 2>&5 23393 ac_status=$? 23394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23395 (exit $ac_status); }; }; then 23396 eval "$as_ac_var=yes" 23397else 23398 echo "$as_me: failed program was:" >&5 23399sed 's/^/| /' conftest.$ac_ext >&5 23400 23401eval "$as_ac_var=no" 23402fi 23403rm -f conftest.err conftest.$ac_objext \ 23404 conftest$ac_exeext conftest.$ac_ext 23405fi 23406echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 23407echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 23408if test `eval echo '${'$as_ac_var'}'` = yes; then 23409 23410cat >>confdefs.h <<_ACEOF 23411#define CRAY_STACKSEG_END $ac_func 23412_ACEOF 23413 23414 break 23415fi 23416 23417 done 23418fi 23419 23420echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 23421echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 23422if test "${ac_cv_c_stack_direction+set}" = set; then 23423 echo $ECHO_N "(cached) $ECHO_C" >&6 23424else 23425 if test "$cross_compiling" = yes; then 23426 ac_cv_c_stack_direction=0 23427else 23428 cat >conftest.$ac_ext <<_ACEOF 23429/* confdefs.h. */ 23430_ACEOF 23431cat confdefs.h >>conftest.$ac_ext 23432cat >>conftest.$ac_ext <<_ACEOF 23433/* end confdefs.h. */ 23434int 23435find_stack_direction () 23436{ 23437 static char *addr = 0; 23438 auto char dummy; 23439 if (addr == 0) 23440 { 23441 addr = &dummy; 23442 return find_stack_direction (); 23443 } 23444 else 23445 return (&dummy > addr) ? 1 : -1; 23446} 23447 23448int 23449main () 23450{ 23451 exit (find_stack_direction () < 0); 23452} 23453_ACEOF 23454rm -f conftest$ac_exeext 23455if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23456 (eval $ac_link) 2>&5 23457 ac_status=$? 23458 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23459 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 23460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23461 (eval $ac_try) 2>&5 23462 ac_status=$? 23463 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23464 (exit $ac_status); }; }; then 23465 ac_cv_c_stack_direction=1 23466else 23467 echo "$as_me: program exited with status $ac_status" >&5 23468echo "$as_me: failed program was:" >&5 23469sed 's/^/| /' conftest.$ac_ext >&5 23470 23471( exit $ac_status ) 23472ac_cv_c_stack_direction=-1 23473fi 23474rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 23475fi 23476fi 23477echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 23478echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 23479 23480cat >>confdefs.h <<_ACEOF 23481#define STACK_DIRECTION $ac_cv_c_stack_direction 23482_ACEOF 23483 23484 23485fi 23486 23487 23488echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5 23489echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6 23490if test "${ac_cv_func_rand48+set}" = set; then 23491 echo $ECHO_N "(cached) $ECHO_C" >&6 23492else 23493 ac_ext=cc 23494ac_cpp='$CXXCPP $CPPFLAGS' 23495ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 23496ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 23497ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 23498 23499 cat >conftest.$ac_ext <<_ACEOF 23500/* confdefs.h. */ 23501_ACEOF 23502cat confdefs.h >>conftest.$ac_ext 23503cat >>conftest.$ac_ext <<_ACEOF 23504/* end confdefs.h. */ 23505#include <stdlib.h> 23506int 23507main () 23508{ 23509srand48(0);lrand48();drand48(); 23510 ; 23511 return 0; 23512} 23513_ACEOF 23514rm -f conftest.$ac_objext 23515if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 23516 (eval $ac_compile) 2>conftest.er1 23517 ac_status=$? 23518 grep -v '^ *+' conftest.er1 >conftest.err 23519 rm -f conftest.er1 23520 cat conftest.err >&5 23521 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23522 (exit $ac_status); } && 23523 { ac_try='test -z "$ac_cxx_werror_flag" 23524 || test ! -s conftest.err' 23525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23526 (eval $ac_try) 2>&5 23527 ac_status=$? 23528 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23529 (exit $ac_status); }; } && 23530 { ac_try='test -s conftest.$ac_objext' 23531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23532 (eval $ac_try) 2>&5 23533 ac_status=$? 23534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23535 (exit $ac_status); }; }; then 23536 ac_cv_func_rand48=yes 23537else 23538 echo "$as_me: failed program was:" >&5 23539sed 's/^/| /' conftest.$ac_ext >&5 23540 23541ac_cv_func_rand48=no 23542fi 23543rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 23544 ac_ext=c 23545ac_cpp='$CPP $CPPFLAGS' 23546ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 23547ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 23548ac_compiler_gnu=$ac_cv_c_compiler_gnu 23549 23550fi 23551echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5 23552echo "${ECHO_T}$ac_cv_func_rand48" >&6 23553 23554if test "$ac_cv_func_rand48" = "yes" ; then 23555 23556cat >>confdefs.h <<\_ACEOF 23557#define HAVE_RAND48 1 23558_ACEOF 23559 23560fi 23561 23562 23563echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5 23564echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6 23565if test "${ac_cv_cxx_namespaces+set}" = set; then 23566 echo $ECHO_N "(cached) $ECHO_C" >&6 23567else 23568 ac_ext=cc 23569ac_cpp='$CXXCPP $CPPFLAGS' 23570ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 23571ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 23572ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 23573 23574 cat >conftest.$ac_ext <<_ACEOF 23575/* confdefs.h. */ 23576_ACEOF 23577cat confdefs.h >>conftest.$ac_ext 23578cat >>conftest.$ac_ext <<_ACEOF 23579/* end confdefs.h. */ 23580namespace Outer { namespace Inner { int i = 0; }} 23581int 23582main () 23583{ 23584using namespace Outer::Inner; return i; 23585 ; 23586 return 0; 23587} 23588_ACEOF 23589rm -f conftest.$ac_objext 23590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 23591 (eval $ac_compile) 2>conftest.er1 23592 ac_status=$? 23593 grep -v '^ *+' conftest.er1 >conftest.err 23594 rm -f conftest.er1 23595 cat conftest.err >&5 23596 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23597 (exit $ac_status); } && 23598 { ac_try='test -z "$ac_cxx_werror_flag" 23599 || test ! -s conftest.err' 23600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23601 (eval $ac_try) 2>&5 23602 ac_status=$? 23603 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23604 (exit $ac_status); }; } && 23605 { ac_try='test -s conftest.$ac_objext' 23606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23607 (eval $ac_try) 2>&5 23608 ac_status=$? 23609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23610 (exit $ac_status); }; }; then 23611 ac_cv_cxx_namespaces=yes 23612else 23613 echo "$as_me: failed program was:" >&5 23614sed 's/^/| /' conftest.$ac_ext >&5 23615 23616ac_cv_cxx_namespaces=no 23617fi 23618rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 23619 ac_ext=c 23620ac_cpp='$CPP $CPPFLAGS' 23621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 23622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 23623ac_compiler_gnu=$ac_cv_c_compiler_gnu 23624 23625 23626fi 23627echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5 23628echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6 23629if test "$ac_cv_cxx_namespaces" = yes; then 23630 23631cat >>confdefs.h <<\_ACEOF 23632#define HAVE_NAMESPACES 23633_ACEOF 23634 23635fi 23636 23637echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5 23638echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6 23639if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then 23640 echo $ECHO_N "(cached) $ECHO_C" >&6 23641else 23642 23643 ac_ext=cc 23644ac_cpp='$CXXCPP $CPPFLAGS' 23645ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 23646ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 23647ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 23648 23649 cat >conftest.$ac_ext <<_ACEOF 23650/* confdefs.h. */ 23651_ACEOF 23652cat confdefs.h >>conftest.$ac_ext 23653cat >>conftest.$ac_ext <<_ACEOF 23654/* end confdefs.h. */ 23655#include <ext/hash_map> 23656#ifdef HAVE_NAMESPACES 23657using namespace std; 23658#endif 23659int 23660main () 23661{ 23662hash_map<int, int> t; 23663 ; 23664 return 0; 23665} 23666_ACEOF 23667rm -f conftest.$ac_objext 23668if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 23669 (eval $ac_compile) 2>conftest.er1 23670 ac_status=$? 23671 grep -v '^ *+' conftest.er1 >conftest.err 23672 rm -f conftest.er1 23673 cat conftest.err >&5 23674 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23675 (exit $ac_status); } && 23676 { ac_try='test -z "$ac_cxx_werror_flag" 23677 || test ! -s conftest.err' 23678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23679 (eval $ac_try) 2>&5 23680 ac_status=$? 23681 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23682 (exit $ac_status); }; } && 23683 { ac_try='test -s conftest.$ac_objext' 23684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23685 (eval $ac_try) 2>&5 23686 ac_status=$? 23687 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23688 (exit $ac_status); }; }; then 23689 ac_cv_cxx_have_std_ext_hash_map=yes 23690else 23691 echo "$as_me: failed program was:" >&5 23692sed 's/^/| /' conftest.$ac_ext >&5 23693 23694ac_cv_cxx_have_std_ext_hash_map=no 23695fi 23696rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 23697 ac_ext=c 23698ac_cpp='$CPP $CPPFLAGS' 23699ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 23700ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 23701ac_compiler_gnu=$ac_cv_c_compiler_gnu 23702 23703fi 23704echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5 23705echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6 23706 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes 23707 then 23708 23709cat >>confdefs.h <<\_ACEOF 23710#define HAVE_STD_EXT_HASH_MAP 1 23711_ACEOF 23712 23713 else 23714 23715cat >>confdefs.h <<\_ACEOF 23716#define HAVE_STD_EXT_HASH_MAP 0 23717_ACEOF 23718 23719 fi 23720 23721 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5 23722echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6 23723if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then 23724 echo $ECHO_N "(cached) $ECHO_C" >&6 23725else 23726 23727 ac_ext=cc 23728ac_cpp='$CXXCPP $CPPFLAGS' 23729ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 23730ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 23731ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 23732 23733 cat >conftest.$ac_ext <<_ACEOF 23734/* confdefs.h. */ 23735_ACEOF 23736cat confdefs.h >>conftest.$ac_ext 23737cat >>conftest.$ac_ext <<_ACEOF 23738/* end confdefs.h. */ 23739#include <ext/hash_map> 23740#ifdef HAVE_NAMESPACES 23741using namespace __gnu_cxx; 23742#endif 23743int 23744main () 23745{ 23746hash_map<int,int> t; 23747 ; 23748 return 0; 23749} 23750_ACEOF 23751rm -f conftest.$ac_objext 23752if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 23753 (eval $ac_compile) 2>conftest.er1 23754 ac_status=$? 23755 grep -v '^ *+' conftest.er1 >conftest.err 23756 rm -f conftest.er1 23757 cat conftest.err >&5 23758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23759 (exit $ac_status); } && 23760 { ac_try='test -z "$ac_cxx_werror_flag" 23761 || test ! -s conftest.err' 23762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23763 (eval $ac_try) 2>&5 23764 ac_status=$? 23765 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23766 (exit $ac_status); }; } && 23767 { ac_try='test -s conftest.$ac_objext' 23768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23769 (eval $ac_try) 2>&5 23770 ac_status=$? 23771 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23772 (exit $ac_status); }; }; then 23773 ac_cv_cxx_have_gnu_ext_hash_map=yes 23774else 23775 echo "$as_me: failed program was:" >&5 23776sed 's/^/| /' conftest.$ac_ext >&5 23777 23778ac_cv_cxx_have_gnu_ext_hash_map=no 23779fi 23780rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 23781 ac_ext=c 23782ac_cpp='$CPP $CPPFLAGS' 23783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 23784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 23785ac_compiler_gnu=$ac_cv_c_compiler_gnu 23786 23787fi 23788echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5 23789echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6 23790 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes 23791 then 23792 23793cat >>confdefs.h <<\_ACEOF 23794#define HAVE_GNU_EXT_HASH_MAP 1 23795_ACEOF 23796 23797 else 23798 23799cat >>confdefs.h <<\_ACEOF 23800#define HAVE_GNU_EXT_HASH_MAP 0 23801_ACEOF 23802 23803 fi 23804 23805 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5 23806echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6 23807if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then 23808 echo $ECHO_N "(cached) $ECHO_C" >&6 23809else 23810 23811 ac_ext=cc 23812ac_cpp='$CXXCPP $CPPFLAGS' 23813ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 23814ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 23815ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 23816 23817 cat >conftest.$ac_ext <<_ACEOF 23818/* confdefs.h. */ 23819_ACEOF 23820cat confdefs.h >>conftest.$ac_ext 23821cat >>conftest.$ac_ext <<_ACEOF 23822/* end confdefs.h. */ 23823#include <hash_map> 23824int 23825main () 23826{ 23827hash_map<int,int> t; 23828 ; 23829 return 0; 23830} 23831_ACEOF 23832rm -f conftest.$ac_objext 23833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 23834 (eval $ac_compile) 2>conftest.er1 23835 ac_status=$? 23836 grep -v '^ *+' conftest.er1 >conftest.err 23837 rm -f conftest.er1 23838 cat conftest.err >&5 23839 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23840 (exit $ac_status); } && 23841 { ac_try='test -z "$ac_cxx_werror_flag" 23842 || test ! -s conftest.err' 23843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23844 (eval $ac_try) 2>&5 23845 ac_status=$? 23846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23847 (exit $ac_status); }; } && 23848 { ac_try='test -s conftest.$ac_objext' 23849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23850 (eval $ac_try) 2>&5 23851 ac_status=$? 23852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23853 (exit $ac_status); }; }; then 23854 ac_cv_cxx_have_global_hash_map=yes 23855else 23856 echo "$as_me: failed program was:" >&5 23857sed 's/^/| /' conftest.$ac_ext >&5 23858 23859ac_cv_cxx_have_global_hash_map=no 23860fi 23861rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 23862 ac_ext=c 23863ac_cpp='$CPP $CPPFLAGS' 23864ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 23865ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 23866ac_compiler_gnu=$ac_cv_c_compiler_gnu 23867 23868fi 23869echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5 23870echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6 23871 if test "$ac_cv_cxx_have_global_hash_map" = yes 23872 then 23873 23874cat >>confdefs.h <<\_ACEOF 23875#define HAVE_GLOBAL_HASH_MAP 1 23876_ACEOF 23877 23878 else 23879 23880cat >>confdefs.h <<\_ACEOF 23881#define HAVE_GLOBAL_HASH_MAP 0 23882_ACEOF 23883 23884 fi 23885 23886echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5 23887echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6 23888if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then 23889 echo $ECHO_N "(cached) $ECHO_C" >&6 23890else 23891 23892 ac_ext=cc 23893ac_cpp='$CXXCPP $CPPFLAGS' 23894ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 23895ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 23896ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 23897 23898 cat >conftest.$ac_ext <<_ACEOF 23899/* confdefs.h. */ 23900_ACEOF 23901cat confdefs.h >>conftest.$ac_ext 23902cat >>conftest.$ac_ext <<_ACEOF 23903/* end confdefs.h. */ 23904#include <ext/hash_set> 23905#ifdef HAVE_NAMESPACES 23906using namespace std; 23907#endif 23908int 23909main () 23910{ 23911hash_set<int> t; 23912 ; 23913 return 0; 23914} 23915_ACEOF 23916rm -f conftest.$ac_objext 23917if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 23918 (eval $ac_compile) 2>conftest.er1 23919 ac_status=$? 23920 grep -v '^ *+' conftest.er1 >conftest.err 23921 rm -f conftest.er1 23922 cat conftest.err >&5 23923 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23924 (exit $ac_status); } && 23925 { ac_try='test -z "$ac_cxx_werror_flag" 23926 || test ! -s conftest.err' 23927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23928 (eval $ac_try) 2>&5 23929 ac_status=$? 23930 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23931 (exit $ac_status); }; } && 23932 { ac_try='test -s conftest.$ac_objext' 23933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23934 (eval $ac_try) 2>&5 23935 ac_status=$? 23936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23937 (exit $ac_status); }; }; then 23938 ac_cv_cxx_have_std_ext_hash_set=yes 23939else 23940 echo "$as_me: failed program was:" >&5 23941sed 's/^/| /' conftest.$ac_ext >&5 23942 23943ac_cv_cxx_have_std_ext_hash_set=no 23944fi 23945rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 23946 ac_ext=c 23947ac_cpp='$CPP $CPPFLAGS' 23948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 23949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 23950ac_compiler_gnu=$ac_cv_c_compiler_gnu 23951 23952fi 23953echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5 23954echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6 23955 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes 23956 then 23957 23958cat >>confdefs.h <<\_ACEOF 23959#define HAVE_STD_EXT_HASH_SET 1 23960_ACEOF 23961 23962 else 23963 23964cat >>confdefs.h <<\_ACEOF 23965#define HAVE_STD_EXT_HASH_SET 0 23966_ACEOF 23967 23968 fi 23969 23970 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5 23971echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6 23972if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then 23973 echo $ECHO_N "(cached) $ECHO_C" >&6 23974else 23975 23976 ac_ext=cc 23977ac_cpp='$CXXCPP $CPPFLAGS' 23978ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 23979ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 23980ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 23981 23982 cat >conftest.$ac_ext <<_ACEOF 23983/* confdefs.h. */ 23984_ACEOF 23985cat confdefs.h >>conftest.$ac_ext 23986cat >>conftest.$ac_ext <<_ACEOF 23987/* end confdefs.h. */ 23988#include <ext/hash_set> 23989#ifdef HAVE_NAMESPACES 23990using namespace __gnu_cxx; 23991#endif 23992int 23993main () 23994{ 23995hash_set<int> t; 23996 ; 23997 return 0; 23998} 23999_ACEOF 24000rm -f conftest.$ac_objext 24001if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 24002 (eval $ac_compile) 2>conftest.er1 24003 ac_status=$? 24004 grep -v '^ *+' conftest.er1 >conftest.err 24005 rm -f conftest.er1 24006 cat conftest.err >&5 24007 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24008 (exit $ac_status); } && 24009 { ac_try='test -z "$ac_cxx_werror_flag" 24010 || test ! -s conftest.err' 24011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24012 (eval $ac_try) 2>&5 24013 ac_status=$? 24014 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24015 (exit $ac_status); }; } && 24016 { ac_try='test -s conftest.$ac_objext' 24017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24018 (eval $ac_try) 2>&5 24019 ac_status=$? 24020 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24021 (exit $ac_status); }; }; then 24022 ac_cv_cxx_have_gnu_ext_hash_set=yes 24023else 24024 echo "$as_me: failed program was:" >&5 24025sed 's/^/| /' conftest.$ac_ext >&5 24026 24027ac_cv_cxx_have_gnu_ext_hash_set=no 24028fi 24029rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 24030 ac_ext=c 24031ac_cpp='$CPP $CPPFLAGS' 24032ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24033ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24034ac_compiler_gnu=$ac_cv_c_compiler_gnu 24035 24036fi 24037echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5 24038echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6 24039 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes 24040 then 24041 24042cat >>confdefs.h <<\_ACEOF 24043#define HAVE_GNU_EXT_HASH_SET 1 24044_ACEOF 24045 24046 else 24047 24048cat >>confdefs.h <<\_ACEOF 24049#define HAVE_GNU_EXT_HASH_SET 0 24050_ACEOF 24051 24052 fi 24053 24054 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5 24055echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6 24056if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then 24057 echo $ECHO_N "(cached) $ECHO_C" >&6 24058else 24059 24060 ac_ext=cc 24061ac_cpp='$CXXCPP $CPPFLAGS' 24062ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24063ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24064ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 24065 24066 cat >conftest.$ac_ext <<_ACEOF 24067/* confdefs.h. */ 24068_ACEOF 24069cat confdefs.h >>conftest.$ac_ext 24070cat >>conftest.$ac_ext <<_ACEOF 24071/* end confdefs.h. */ 24072#include <hash_set> 24073int 24074main () 24075{ 24076hash_set<int> t; return 0; 24077 ; 24078 return 0; 24079} 24080_ACEOF 24081rm -f conftest.$ac_objext 24082if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 24083 (eval $ac_compile) 2>conftest.er1 24084 ac_status=$? 24085 grep -v '^ *+' conftest.er1 >conftest.err 24086 rm -f conftest.er1 24087 cat conftest.err >&5 24088 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24089 (exit $ac_status); } && 24090 { ac_try='test -z "$ac_cxx_werror_flag" 24091 || test ! -s conftest.err' 24092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24093 (eval $ac_try) 2>&5 24094 ac_status=$? 24095 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24096 (exit $ac_status); }; } && 24097 { ac_try='test -s conftest.$ac_objext' 24098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24099 (eval $ac_try) 2>&5 24100 ac_status=$? 24101 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24102 (exit $ac_status); }; }; then 24103 ac_cv_cxx_have_global_hash_set=yes 24104else 24105 echo "$as_me: failed program was:" >&5 24106sed 's/^/| /' conftest.$ac_ext >&5 24107 24108ac_cv_cxx_have_global_hash_set=no 24109fi 24110rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 24111 ac_ext=c 24112ac_cpp='$CPP $CPPFLAGS' 24113ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24114ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24115ac_compiler_gnu=$ac_cv_c_compiler_gnu 24116 24117fi 24118echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5 24119echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6 24120 if test "$ac_cv_cxx_have_global_hash_set" = yes 24121 then 24122 24123cat >>confdefs.h <<\_ACEOF 24124#define HAVE_GLOBAL_HASH_SET 1 24125_ACEOF 24126 24127 else 24128 24129cat >>confdefs.h <<\_ACEOF 24130#define HAVE_GLOBAL_HASH_SET 0 24131_ACEOF 24132 24133 fi 24134 24135echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5 24136echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6 24137if test "${ac_cv_cxx_have_std_iterator+set}" = set; then 24138 echo $ECHO_N "(cached) $ECHO_C" >&6 24139else 24140 24141 ac_ext=cc 24142ac_cpp='$CXXCPP $CPPFLAGS' 24143ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24144ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24145ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 24146 24147 cat >conftest.$ac_ext <<_ACEOF 24148/* confdefs.h. */ 24149_ACEOF 24150cat confdefs.h >>conftest.$ac_ext 24151cat >>conftest.$ac_ext <<_ACEOF 24152/* end confdefs.h. */ 24153#include <iterator> 24154#ifdef HAVE_NAMESPACES 24155using namespace std; 24156#endif 24157int 24158main () 24159{ 24160iterator<int,int,int> t; return 0; 24161 ; 24162 return 0; 24163} 24164_ACEOF 24165rm -f conftest.$ac_objext 24166if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 24167 (eval $ac_compile) 2>conftest.er1 24168 ac_status=$? 24169 grep -v '^ *+' conftest.er1 >conftest.err 24170 rm -f conftest.er1 24171 cat conftest.err >&5 24172 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24173 (exit $ac_status); } && 24174 { ac_try='test -z "$ac_cxx_werror_flag" 24175 || test ! -s conftest.err' 24176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24177 (eval $ac_try) 2>&5 24178 ac_status=$? 24179 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24180 (exit $ac_status); }; } && 24181 { ac_try='test -s conftest.$ac_objext' 24182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24183 (eval $ac_try) 2>&5 24184 ac_status=$? 24185 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24186 (exit $ac_status); }; }; then 24187 ac_cv_cxx_have_std_iterator=yes 24188else 24189 echo "$as_me: failed program was:" >&5 24190sed 's/^/| /' conftest.$ac_ext >&5 24191 24192ac_cv_cxx_have_std_iterator=no 24193fi 24194rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 24195 ac_ext=c 24196ac_cpp='$CPP $CPPFLAGS' 24197ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24198ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24199ac_compiler_gnu=$ac_cv_c_compiler_gnu 24200 24201 24202fi 24203echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5 24204echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6 24205if test "$ac_cv_cxx_have_std_iterator" = yes 24206then 24207 24208cat >>confdefs.h <<\_ACEOF 24209#define HAVE_STD_ITERATOR 1 24210_ACEOF 24211 24212else 24213 24214cat >>confdefs.h <<\_ACEOF 24215#define HAVE_STD_ITERATOR 0 24216_ACEOF 24217 24218fi 24219 24220echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5 24221echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6 24222if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then 24223 echo $ECHO_N "(cached) $ECHO_C" >&6 24224else 24225 24226 ac_ext=cc 24227ac_cpp='$CXXCPP $CPPFLAGS' 24228ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24229ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24230ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 24231 24232 cat >conftest.$ac_ext <<_ACEOF 24233/* confdefs.h. */ 24234_ACEOF 24235cat confdefs.h >>conftest.$ac_ext 24236cat >>conftest.$ac_ext <<_ACEOF 24237/* end confdefs.h. */ 24238#include <iterator> 24239#ifdef HAVE_NAMESPACES 24240using namespace std; 24241#endif 24242int 24243main () 24244{ 24245bidirectional_iterator<int,int> t; return 0; 24246 ; 24247 return 0; 24248} 24249_ACEOF 24250rm -f conftest.$ac_objext 24251if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 24252 (eval $ac_compile) 2>conftest.er1 24253 ac_status=$? 24254 grep -v '^ *+' conftest.er1 >conftest.err 24255 rm -f conftest.er1 24256 cat conftest.err >&5 24257 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24258 (exit $ac_status); } && 24259 { ac_try='test -z "$ac_cxx_werror_flag" 24260 || test ! -s conftest.err' 24261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24262 (eval $ac_try) 2>&5 24263 ac_status=$? 24264 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24265 (exit $ac_status); }; } && 24266 { ac_try='test -s conftest.$ac_objext' 24267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24268 (eval $ac_try) 2>&5 24269 ac_status=$? 24270 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24271 (exit $ac_status); }; }; then 24272 ac_cv_cxx_have_bi_iterator=yes 24273else 24274 echo "$as_me: failed program was:" >&5 24275sed 's/^/| /' conftest.$ac_ext >&5 24276 24277ac_cv_cxx_have_bi_iterator=no 24278fi 24279rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 24280 ac_ext=c 24281ac_cpp='$CPP $CPPFLAGS' 24282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24284ac_compiler_gnu=$ac_cv_c_compiler_gnu 24285 24286 24287fi 24288echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5 24289echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6 24290if test "$ac_cv_cxx_have_bi_iterator" = yes 24291then 24292 24293cat >>confdefs.h <<\_ACEOF 24294#define HAVE_BI_ITERATOR 1 24295_ACEOF 24296 24297else 24298 24299cat >>confdefs.h <<\_ACEOF 24300#define HAVE_BI_ITERATOR 0 24301_ACEOF 24302 24303fi 24304 24305echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5 24306echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6 24307if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then 24308 echo $ECHO_N "(cached) $ECHO_C" >&6 24309else 24310 24311 ac_ext=cc 24312ac_cpp='$CXXCPP $CPPFLAGS' 24313ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24314ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24315ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 24316 24317 cat >conftest.$ac_ext <<_ACEOF 24318/* confdefs.h. */ 24319_ACEOF 24320cat confdefs.h >>conftest.$ac_ext 24321cat >>conftest.$ac_ext <<_ACEOF 24322/* end confdefs.h. */ 24323#include <iterator> 24324#ifdef HAVE_NAMESPACES 24325using namespace std; 24326#endif 24327int 24328main () 24329{ 24330forward_iterator<int,int> t; return 0; 24331 ; 24332 return 0; 24333} 24334_ACEOF 24335rm -f conftest.$ac_objext 24336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 24337 (eval $ac_compile) 2>conftest.er1 24338 ac_status=$? 24339 grep -v '^ *+' conftest.er1 >conftest.err 24340 rm -f conftest.er1 24341 cat conftest.err >&5 24342 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24343 (exit $ac_status); } && 24344 { ac_try='test -z "$ac_cxx_werror_flag" 24345 || test ! -s conftest.err' 24346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24347 (eval $ac_try) 2>&5 24348 ac_status=$? 24349 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24350 (exit $ac_status); }; } && 24351 { ac_try='test -s conftest.$ac_objext' 24352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24353 (eval $ac_try) 2>&5 24354 ac_status=$? 24355 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24356 (exit $ac_status); }; }; then 24357 ac_cv_cxx_have_fwd_iterator=yes 24358else 24359 echo "$as_me: failed program was:" >&5 24360sed 's/^/| /' conftest.$ac_ext >&5 24361 24362ac_cv_cxx_have_fwd_iterator=no 24363fi 24364rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 24365 ac_ext=c 24366ac_cpp='$CPP $CPPFLAGS' 24367ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24368ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24369ac_compiler_gnu=$ac_cv_c_compiler_gnu 24370 24371 24372fi 24373echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5 24374echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6 24375if test "$ac_cv_cxx_have_fwd_iterator" = yes 24376then 24377 24378cat >>confdefs.h <<\_ACEOF 24379#define HAVE_FWD_ITERATOR 1 24380_ACEOF 24381 24382else 24383 24384cat >>confdefs.h <<\_ACEOF 24385#define HAVE_FWD_ITERATOR 0 24386_ACEOF 24387 24388fi 24389 24390 24391echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5 24392echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6 24393if test "${ac_cv_func_isnan_in_math_h+set}" = set; then 24394 echo $ECHO_N "(cached) $ECHO_C" >&6 24395else 24396 ac_ext=cc 24397ac_cpp='$CXXCPP $CPPFLAGS' 24398ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24399ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24400ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 24401 24402 cat >conftest.$ac_ext <<_ACEOF 24403/* confdefs.h. */ 24404_ACEOF 24405cat confdefs.h >>conftest.$ac_ext 24406cat >>conftest.$ac_ext <<_ACEOF 24407/* end confdefs.h. */ 24408#include <math.h> 24409int 24410main () 24411{ 24412float f; isnan(f); 24413 ; 24414 return 0; 24415} 24416_ACEOF 24417rm -f conftest.$ac_objext 24418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 24419 (eval $ac_compile) 2>conftest.er1 24420 ac_status=$? 24421 grep -v '^ *+' conftest.er1 >conftest.err 24422 rm -f conftest.er1 24423 cat conftest.err >&5 24424 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24425 (exit $ac_status); } && 24426 { ac_try='test -z "$ac_cxx_werror_flag" 24427 || test ! -s conftest.err' 24428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24429 (eval $ac_try) 2>&5 24430 ac_status=$? 24431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24432 (exit $ac_status); }; } && 24433 { ac_try='test -s conftest.$ac_objext' 24434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24435 (eval $ac_try) 2>&5 24436 ac_status=$? 24437 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24438 (exit $ac_status); }; }; then 24439 ac_cv_func_isnan_in_math_h=yes 24440else 24441 echo "$as_me: failed program was:" >&5 24442sed 's/^/| /' conftest.$ac_ext >&5 24443 24444ac_cv_func_isnan_in_math_h=no 24445fi 24446rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 24447 ac_ext=c 24448ac_cpp='$CPP $CPPFLAGS' 24449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24451ac_compiler_gnu=$ac_cv_c_compiler_gnu 24452 24453fi 24454echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 24455echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6 24456 24457 24458if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then 24459 24460cat >>confdefs.h <<\_ACEOF 24461#define HAVE_ISNAN_IN_MATH_H 1 24462_ACEOF 24463 24464fi 24465 24466echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5 24467echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6 24468if test "${ac_cv_func_isnan_in_cmath+set}" = set; then 24469 echo $ECHO_N "(cached) $ECHO_C" >&6 24470else 24471 ac_ext=cc 24472ac_cpp='$CXXCPP $CPPFLAGS' 24473ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24474ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24475ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 24476 24477 cat >conftest.$ac_ext <<_ACEOF 24478/* confdefs.h. */ 24479_ACEOF 24480cat confdefs.h >>conftest.$ac_ext 24481cat >>conftest.$ac_ext <<_ACEOF 24482/* end confdefs.h. */ 24483#include <cmath> 24484int 24485main () 24486{ 24487float f; isnan(f); 24488 ; 24489 return 0; 24490} 24491_ACEOF 24492rm -f conftest.$ac_objext 24493if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 24494 (eval $ac_compile) 2>conftest.er1 24495 ac_status=$? 24496 grep -v '^ *+' conftest.er1 >conftest.err 24497 rm -f conftest.er1 24498 cat conftest.err >&5 24499 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24500 (exit $ac_status); } && 24501 { ac_try='test -z "$ac_cxx_werror_flag" 24502 || test ! -s conftest.err' 24503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24504 (eval $ac_try) 2>&5 24505 ac_status=$? 24506 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24507 (exit $ac_status); }; } && 24508 { ac_try='test -s conftest.$ac_objext' 24509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24510 (eval $ac_try) 2>&5 24511 ac_status=$? 24512 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24513 (exit $ac_status); }; }; then 24514 ac_cv_func_isnan_in_cmath=yes 24515else 24516 echo "$as_me: failed program was:" >&5 24517sed 's/^/| /' conftest.$ac_ext >&5 24518 24519ac_cv_func_isnan_in_cmath=no 24520fi 24521rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 24522 ac_ext=c 24523ac_cpp='$CPP $CPPFLAGS' 24524ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24525ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24526ac_compiler_gnu=$ac_cv_c_compiler_gnu 24527 24528fi 24529echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 24530echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6 24531 24532if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then 24533 24534cat >>confdefs.h <<\_ACEOF 24535#define HAVE_ISNAN_IN_CMATH 1 24536_ACEOF 24537 24538fi 24539 24540echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5 24541echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6 24542if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then 24543 echo $ECHO_N "(cached) $ECHO_C" >&6 24544else 24545 ac_ext=cc 24546ac_cpp='$CXXCPP $CPPFLAGS' 24547ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24548ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24549ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 24550 24551 cat >conftest.$ac_ext <<_ACEOF 24552/* confdefs.h. */ 24553_ACEOF 24554cat confdefs.h >>conftest.$ac_ext 24555cat >>conftest.$ac_ext <<_ACEOF 24556/* end confdefs.h. */ 24557#include <cmath> 24558int 24559main () 24560{ 24561float f; std::isnan(f); 24562 ; 24563 return 0; 24564} 24565_ACEOF 24566rm -f conftest.$ac_objext 24567if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 24568 (eval $ac_compile) 2>conftest.er1 24569 ac_status=$? 24570 grep -v '^ *+' conftest.er1 >conftest.err 24571 rm -f conftest.er1 24572 cat conftest.err >&5 24573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24574 (exit $ac_status); } && 24575 { ac_try='test -z "$ac_cxx_werror_flag" 24576 || test ! -s conftest.err' 24577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24578 (eval $ac_try) 2>&5 24579 ac_status=$? 24580 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24581 (exit $ac_status); }; } && 24582 { ac_try='test -s conftest.$ac_objext' 24583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24584 (eval $ac_try) 2>&5 24585 ac_status=$? 24586 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24587 (exit $ac_status); }; }; then 24588 ac_cv_func_std_isnan_in_cmath=yes 24589else 24590 echo "$as_me: failed program was:" >&5 24591sed 's/^/| /' conftest.$ac_ext >&5 24592 24593ac_cv_func_std_isnan_in_cmath=no 24594fi 24595rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 24596 ac_ext=c 24597ac_cpp='$CPP $CPPFLAGS' 24598ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24599ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24600ac_compiler_gnu=$ac_cv_c_compiler_gnu 24601 24602fi 24603echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 24604echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6 24605 24606if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then 24607 24608cat >>confdefs.h <<\_ACEOF 24609#define HAVE_STD_ISNAN_IN_CMATH 1 24610_ACEOF 24611 24612fi 24613 24614 24615echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5 24616echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6 24617if test "${ac_cv_func_isinf_in_math_h+set}" = set; then 24618 echo $ECHO_N "(cached) $ECHO_C" >&6 24619else 24620 ac_ext=cc 24621ac_cpp='$CXXCPP $CPPFLAGS' 24622ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24623ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24624ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 24625 24626 cat >conftest.$ac_ext <<_ACEOF 24627/* confdefs.h. */ 24628_ACEOF 24629cat confdefs.h >>conftest.$ac_ext 24630cat >>conftest.$ac_ext <<_ACEOF 24631/* end confdefs.h. */ 24632#include <math.h> 24633int 24634main () 24635{ 24636float f; isinf(f); 24637 ; 24638 return 0; 24639} 24640_ACEOF 24641rm -f conftest.$ac_objext 24642if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 24643 (eval $ac_compile) 2>conftest.er1 24644 ac_status=$? 24645 grep -v '^ *+' conftest.er1 >conftest.err 24646 rm -f conftest.er1 24647 cat conftest.err >&5 24648 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24649 (exit $ac_status); } && 24650 { ac_try='test -z "$ac_cxx_werror_flag" 24651 || test ! -s conftest.err' 24652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24653 (eval $ac_try) 2>&5 24654 ac_status=$? 24655 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24656 (exit $ac_status); }; } && 24657 { ac_try='test -s conftest.$ac_objext' 24658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24659 (eval $ac_try) 2>&5 24660 ac_status=$? 24661 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24662 (exit $ac_status); }; }; then 24663 ac_cv_func_isinf_in_math_h=yes 24664else 24665 echo "$as_me: failed program was:" >&5 24666sed 's/^/| /' conftest.$ac_ext >&5 24667 24668ac_cv_func_isinf_in_math_h=no 24669fi 24670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 24671 ac_ext=c 24672ac_cpp='$CPP $CPPFLAGS' 24673ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24674ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24675ac_compiler_gnu=$ac_cv_c_compiler_gnu 24676 24677fi 24678echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 24679echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6 24680 24681if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then 24682 24683cat >>confdefs.h <<\_ACEOF 24684#define HAVE_ISINF_IN_MATH_H 1 24685_ACEOF 24686 24687fi 24688 24689echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5 24690echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6 24691if test "${ac_cv_func_isinf_in_cmath+set}" = set; then 24692 echo $ECHO_N "(cached) $ECHO_C" >&6 24693else 24694 ac_ext=cc 24695ac_cpp='$CXXCPP $CPPFLAGS' 24696ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24697ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24698ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 24699 24700 cat >conftest.$ac_ext <<_ACEOF 24701/* confdefs.h. */ 24702_ACEOF 24703cat confdefs.h >>conftest.$ac_ext 24704cat >>conftest.$ac_ext <<_ACEOF 24705/* end confdefs.h. */ 24706#include <cmath> 24707int 24708main () 24709{ 24710float f; isinf(f); 24711 ; 24712 return 0; 24713} 24714_ACEOF 24715rm -f conftest.$ac_objext 24716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 24717 (eval $ac_compile) 2>conftest.er1 24718 ac_status=$? 24719 grep -v '^ *+' conftest.er1 >conftest.err 24720 rm -f conftest.er1 24721 cat conftest.err >&5 24722 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24723 (exit $ac_status); } && 24724 { ac_try='test -z "$ac_cxx_werror_flag" 24725 || test ! -s conftest.err' 24726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24727 (eval $ac_try) 2>&5 24728 ac_status=$? 24729 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24730 (exit $ac_status); }; } && 24731 { ac_try='test -s conftest.$ac_objext' 24732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24733 (eval $ac_try) 2>&5 24734 ac_status=$? 24735 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24736 (exit $ac_status); }; }; then 24737 ac_cv_func_isinf_in_cmath=yes 24738else 24739 echo "$as_me: failed program was:" >&5 24740sed 's/^/| /' conftest.$ac_ext >&5 24741 24742ac_cv_func_isinf_in_cmath=no 24743fi 24744rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 24745 ac_ext=c 24746ac_cpp='$CPP $CPPFLAGS' 24747ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24748ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24749ac_compiler_gnu=$ac_cv_c_compiler_gnu 24750 24751fi 24752echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 24753echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6 24754 24755if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then 24756 24757cat >>confdefs.h <<\_ACEOF 24758#define HAVE_ISINF_IN_CMATH 1 24759_ACEOF 24760 24761fi 24762 24763echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5 24764echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6 24765if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then 24766 echo $ECHO_N "(cached) $ECHO_C" >&6 24767else 24768 ac_ext=cc 24769ac_cpp='$CXXCPP $CPPFLAGS' 24770ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24771ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24772ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 24773 24774 cat >conftest.$ac_ext <<_ACEOF 24775/* confdefs.h. */ 24776_ACEOF 24777cat confdefs.h >>conftest.$ac_ext 24778cat >>conftest.$ac_ext <<_ACEOF 24779/* end confdefs.h. */ 24780#include <cmath> 24781int 24782main () 24783{ 24784float f; std::isinf(f)} 24785 ; 24786 return 0; 24787} 24788_ACEOF 24789rm -f conftest.$ac_objext 24790if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 24791 (eval $ac_compile) 2>conftest.er1 24792 ac_status=$? 24793 grep -v '^ *+' conftest.er1 >conftest.err 24794 rm -f conftest.er1 24795 cat conftest.err >&5 24796 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24797 (exit $ac_status); } && 24798 { ac_try='test -z "$ac_cxx_werror_flag" 24799 || test ! -s conftest.err' 24800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24801 (eval $ac_try) 2>&5 24802 ac_status=$? 24803 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24804 (exit $ac_status); }; } && 24805 { ac_try='test -s conftest.$ac_objext' 24806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24807 (eval $ac_try) 2>&5 24808 ac_status=$? 24809 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24810 (exit $ac_status); }; }; then 24811 ac_cv_func_std_isinf_in_cmath=yes 24812else 24813 echo "$as_me: failed program was:" >&5 24814sed 's/^/| /' conftest.$ac_ext >&5 24815 24816ac_cv_func_std_isinf_in_cmath=no 24817fi 24818rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 24819 ac_ext=c 24820ac_cpp='$CPP $CPPFLAGS' 24821ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24822ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24823ac_compiler_gnu=$ac_cv_c_compiler_gnu 24824 24825fi 24826echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5 24827echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6 24828 24829if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then 24830 24831cat >>confdefs.h <<\_ACEOF 24832#define HAVE_STD_ISINF_IN_CMATH 1 24833_ACEOF 24834 24835fi 24836 24837echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5 24838echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6 24839if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then 24840 echo $ECHO_N "(cached) $ECHO_C" >&6 24841else 24842 ac_ext=cc 24843ac_cpp='$CXXCPP $CPPFLAGS' 24844ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24845ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24846ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 24847 24848 cat >conftest.$ac_ext <<_ACEOF 24849/* confdefs.h. */ 24850_ACEOF 24851cat confdefs.h >>conftest.$ac_ext 24852cat >>conftest.$ac_ext <<_ACEOF 24853/* end confdefs.h. */ 24854#include <ieeefp.h> 24855int 24856main () 24857{ 24858float f; finite(f); 24859 ; 24860 return 0; 24861} 24862_ACEOF 24863rm -f conftest.$ac_objext 24864if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 24865 (eval $ac_compile) 2>conftest.er1 24866 ac_status=$? 24867 grep -v '^ *+' conftest.er1 >conftest.err 24868 rm -f conftest.er1 24869 cat conftest.err >&5 24870 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24871 (exit $ac_status); } && 24872 { ac_try='test -z "$ac_cxx_werror_flag" 24873 || test ! -s conftest.err' 24874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24875 (eval $ac_try) 2>&5 24876 ac_status=$? 24877 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24878 (exit $ac_status); }; } && 24879 { ac_try='test -s conftest.$ac_objext' 24880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24881 (eval $ac_try) 2>&5 24882 ac_status=$? 24883 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24884 (exit $ac_status); }; }; then 24885 ac_cv_func_finite_in_ieeefp_h=yes 24886else 24887 echo "$as_me: failed program was:" >&5 24888sed 's/^/| /' conftest.$ac_ext >&5 24889 24890ac_cv_func_finite_in_ieeefp_h=no 24891fi 24892rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 24893 ac_ext=c 24894ac_cpp='$CPP $CPPFLAGS' 24895ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24896ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24897ac_compiler_gnu=$ac_cv_c_compiler_gnu 24898 24899fi 24900echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5 24901echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6 24902 24903if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then 24904 24905cat >>confdefs.h <<\_ACEOF 24906#define HAVE_FINITE_IN_IEEEFP_H 1 24907_ACEOF 24908 24909fi 24910 24911 24912 24913 24914 24915for ac_header in stdlib.h unistd.h 24916do 24917as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 24918if eval "test \"\${$as_ac_Header+set}\" = set"; then 24919 echo "$as_me:$LINENO: checking for $ac_header" >&5 24920echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 24921if eval "test \"\${$as_ac_Header+set}\" = set"; then 24922 echo $ECHO_N "(cached) $ECHO_C" >&6 24923fi 24924echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 24925echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 24926else 24927 # Is the header compilable? 24928echo "$as_me:$LINENO: checking $ac_header usability" >&5 24929echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 24930cat >conftest.$ac_ext <<_ACEOF 24931/* confdefs.h. */ 24932_ACEOF 24933cat confdefs.h >>conftest.$ac_ext 24934cat >>conftest.$ac_ext <<_ACEOF 24935/* end confdefs.h. */ 24936$ac_includes_default 24937#include <$ac_header> 24938_ACEOF 24939rm -f conftest.$ac_objext 24940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 24941 (eval $ac_compile) 2>conftest.er1 24942 ac_status=$? 24943 grep -v '^ *+' conftest.er1 >conftest.err 24944 rm -f conftest.er1 24945 cat conftest.err >&5 24946 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24947 (exit $ac_status); } && 24948 { ac_try='test -z "$ac_c_werror_flag" 24949 || test ! -s conftest.err' 24950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24951 (eval $ac_try) 2>&5 24952 ac_status=$? 24953 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24954 (exit $ac_status); }; } && 24955 { ac_try='test -s conftest.$ac_objext' 24956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24957 (eval $ac_try) 2>&5 24958 ac_status=$? 24959 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24960 (exit $ac_status); }; }; then 24961 ac_header_compiler=yes 24962else 24963 echo "$as_me: failed program was:" >&5 24964sed 's/^/| /' conftest.$ac_ext >&5 24965 24966ac_header_compiler=no 24967fi 24968rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 24969echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 24970echo "${ECHO_T}$ac_header_compiler" >&6 24971 24972# Is the header present? 24973echo "$as_me:$LINENO: checking $ac_header presence" >&5 24974echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 24975cat >conftest.$ac_ext <<_ACEOF 24976/* confdefs.h. */ 24977_ACEOF 24978cat confdefs.h >>conftest.$ac_ext 24979cat >>conftest.$ac_ext <<_ACEOF 24980/* end confdefs.h. */ 24981#include <$ac_header> 24982_ACEOF 24983if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 24984 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 24985 ac_status=$? 24986 grep -v '^ *+' conftest.er1 >conftest.err 24987 rm -f conftest.er1 24988 cat conftest.err >&5 24989 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24990 (exit $ac_status); } >/dev/null; then 24991 if test -s conftest.err; then 24992 ac_cpp_err=$ac_c_preproc_warn_flag 24993 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 24994 else 24995 ac_cpp_err= 24996 fi 24997else 24998 ac_cpp_err=yes 24999fi 25000if test -z "$ac_cpp_err"; then 25001 ac_header_preproc=yes 25002else 25003 echo "$as_me: failed program was:" >&5 25004sed 's/^/| /' conftest.$ac_ext >&5 25005 25006 ac_header_preproc=no 25007fi 25008rm -f conftest.err conftest.$ac_ext 25009echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 25010echo "${ECHO_T}$ac_header_preproc" >&6 25011 25012# So? What about this header? 25013case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 25014 yes:no: ) 25015 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 25016echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 25017 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 25018echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 25019 ac_header_preproc=yes 25020 ;; 25021 no:yes:* ) 25022 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 25023echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 25024 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 25025echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 25026 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 25027echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 25028 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 25029echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 25030 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 25031echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 25032 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 25033echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 25034 ( 25035 cat <<\_ASBOX 25036## ----------------------------------- ## 25037## Report this to llvmbugs@cs.uiuc.edu ## 25038## ----------------------------------- ## 25039_ASBOX 25040 ) | 25041 sed "s/^/$as_me: WARNING: /" >&2 25042 ;; 25043esac 25044echo "$as_me:$LINENO: checking for $ac_header" >&5 25045echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 25046if eval "test \"\${$as_ac_Header+set}\" = set"; then 25047 echo $ECHO_N "(cached) $ECHO_C" >&6 25048else 25049 eval "$as_ac_Header=\$ac_header_preproc" 25050fi 25051echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 25052echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 25053 25054fi 25055if test `eval echo '${'$as_ac_Header'}'` = yes; then 25056 cat >>confdefs.h <<_ACEOF 25057#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 25058_ACEOF 25059 25060fi 25061 25062done 25063 25064 25065for ac_func in getpagesize 25066do 25067as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 25068echo "$as_me:$LINENO: checking for $ac_func" >&5 25069echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 25070if eval "test \"\${$as_ac_var+set}\" = set"; then 25071 echo $ECHO_N "(cached) $ECHO_C" >&6 25072else 25073 cat >conftest.$ac_ext <<_ACEOF 25074/* confdefs.h. */ 25075_ACEOF 25076cat confdefs.h >>conftest.$ac_ext 25077cat >>conftest.$ac_ext <<_ACEOF 25078/* end confdefs.h. */ 25079/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 25080 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 25081#define $ac_func innocuous_$ac_func 25082 25083/* System header to define __stub macros and hopefully few prototypes, 25084 which can conflict with char $ac_func (); below. 25085 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 25086 <limits.h> exists even on freestanding compilers. */ 25087 25088#ifdef __STDC__ 25089# include <limits.h> 25090#else 25091# include <assert.h> 25092#endif 25093 25094#undef $ac_func 25095 25096/* Override any gcc2 internal prototype to avoid an error. */ 25097#ifdef __cplusplus 25098extern "C" 25099{ 25100#endif 25101/* We use char because int might match the return type of a gcc2 25102 builtin and then its argument prototype would still apply. */ 25103char $ac_func (); 25104/* The GNU C library defines this for functions which it implements 25105 to always fail with ENOSYS. Some functions are actually named 25106 something starting with __ and the normal name is an alias. */ 25107#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 25108choke me 25109#else 25110char (*f) () = $ac_func; 25111#endif 25112#ifdef __cplusplus 25113} 25114#endif 25115 25116int 25117main () 25118{ 25119return f != $ac_func; 25120 ; 25121 return 0; 25122} 25123_ACEOF 25124rm -f conftest.$ac_objext conftest$ac_exeext 25125if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 25126 (eval $ac_link) 2>conftest.er1 25127 ac_status=$? 25128 grep -v '^ *+' conftest.er1 >conftest.err 25129 rm -f conftest.er1 25130 cat conftest.err >&5 25131 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25132 (exit $ac_status); } && 25133 { ac_try='test -z "$ac_c_werror_flag" 25134 || test ! -s conftest.err' 25135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25136 (eval $ac_try) 2>&5 25137 ac_status=$? 25138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25139 (exit $ac_status); }; } && 25140 { ac_try='test -s conftest$ac_exeext' 25141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25142 (eval $ac_try) 2>&5 25143 ac_status=$? 25144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25145 (exit $ac_status); }; }; then 25146 eval "$as_ac_var=yes" 25147else 25148 echo "$as_me: failed program was:" >&5 25149sed 's/^/| /' conftest.$ac_ext >&5 25150 25151eval "$as_ac_var=no" 25152fi 25153rm -f conftest.err conftest.$ac_objext \ 25154 conftest$ac_exeext conftest.$ac_ext 25155fi 25156echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 25157echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 25158if test `eval echo '${'$as_ac_var'}'` = yes; then 25159 cat >>confdefs.h <<_ACEOF 25160#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 25161_ACEOF 25162 25163fi 25164done 25165 25166echo "$as_me:$LINENO: checking for working mmap" >&5 25167echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 25168if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then 25169 echo $ECHO_N "(cached) $ECHO_C" >&6 25170else 25171 if test "$cross_compiling" = yes; then 25172 ac_cv_func_mmap_fixed_mapped=no 25173else 25174 cat >conftest.$ac_ext <<_ACEOF 25175/* confdefs.h. */ 25176_ACEOF 25177cat confdefs.h >>conftest.$ac_ext 25178cat >>conftest.$ac_ext <<_ACEOF 25179/* end confdefs.h. */ 25180$ac_includes_default 25181/* malloc might have been renamed as rpl_malloc. */ 25182#undef malloc 25183 25184/* Thanks to Mike Haertel and Jim Avera for this test. 25185 Here is a matrix of mmap possibilities: 25186 mmap private not fixed 25187 mmap private fixed at somewhere currently unmapped 25188 mmap private fixed at somewhere already mapped 25189 mmap shared not fixed 25190 mmap shared fixed at somewhere currently unmapped 25191 mmap shared fixed at somewhere already mapped 25192 For private mappings, we should verify that changes cannot be read() 25193 back from the file, nor mmap's back from the file at a different 25194 address. (There have been systems where private was not correctly 25195 implemented like the infamous i386 svr4.0, and systems where the 25196 VM page cache was not coherent with the file system buffer cache 25197 like early versions of FreeBSD and possibly contemporary NetBSD.) 25198 For shared mappings, we should conversely verify that changes get 25199 propagated back to all the places they're supposed to be. 25200 25201 Grep wants private fixed already mapped. 25202 The main things grep needs to know about mmap are: 25203 * does it exist and is it safe to write into the mmap'd area 25204 * how to use it (BSD variants) */ 25205 25206#include <fcntl.h> 25207#include <sys/mman.h> 25208 25209#if !STDC_HEADERS && !HAVE_STDLIB_H 25210char *malloc (); 25211#endif 25212 25213/* This mess was copied from the GNU getpagesize.h. */ 25214#if !HAVE_GETPAGESIZE 25215/* Assume that all systems that can run configure have sys/param.h. */ 25216# if !HAVE_SYS_PARAM_H 25217# define HAVE_SYS_PARAM_H 1 25218# endif 25219 25220# ifdef _SC_PAGESIZE 25221# define getpagesize() sysconf(_SC_PAGESIZE) 25222# else /* no _SC_PAGESIZE */ 25223# if HAVE_SYS_PARAM_H 25224# include <sys/param.h> 25225# ifdef EXEC_PAGESIZE 25226# define getpagesize() EXEC_PAGESIZE 25227# else /* no EXEC_PAGESIZE */ 25228# ifdef NBPG 25229# define getpagesize() NBPG * CLSIZE 25230# ifndef CLSIZE 25231# define CLSIZE 1 25232# endif /* no CLSIZE */ 25233# else /* no NBPG */ 25234# ifdef NBPC 25235# define getpagesize() NBPC 25236# else /* no NBPC */ 25237# ifdef PAGESIZE 25238# define getpagesize() PAGESIZE 25239# endif /* PAGESIZE */ 25240# endif /* no NBPC */ 25241# endif /* no NBPG */ 25242# endif /* no EXEC_PAGESIZE */ 25243# else /* no HAVE_SYS_PARAM_H */ 25244# define getpagesize() 8192 /* punt totally */ 25245# endif /* no HAVE_SYS_PARAM_H */ 25246# endif /* no _SC_PAGESIZE */ 25247 25248#endif /* no HAVE_GETPAGESIZE */ 25249 25250int 25251main () 25252{ 25253 char *data, *data2, *data3; 25254 int i, pagesize; 25255 int fd; 25256 25257 pagesize = getpagesize (); 25258 25259 /* First, make a file with some known garbage in it. */ 25260 data = (char *) malloc (pagesize); 25261 if (!data) 25262 exit (1); 25263 for (i = 0; i < pagesize; ++i) 25264 *(data + i) = rand (); 25265 umask (0); 25266 fd = creat ("conftest.mmap", 0600); 25267 if (fd < 0) 25268 exit (1); 25269 if (write (fd, data, pagesize) != pagesize) 25270 exit (1); 25271 close (fd); 25272 25273 /* Next, try to mmap the file at a fixed address which already has 25274 something else allocated at it. If we can, also make sure that 25275 we see the same garbage. */ 25276 fd = open ("conftest.mmap", O_RDWR); 25277 if (fd < 0) 25278 exit (1); 25279 data2 = (char *) malloc (2 * pagesize); 25280 if (!data2) 25281 exit (1); 25282 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); 25283 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 25284 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 25285 exit (1); 25286 for (i = 0; i < pagesize; ++i) 25287 if (*(data + i) != *(data2 + i)) 25288 exit (1); 25289 25290 /* Finally, make sure that changes to the mapped area do not 25291 percolate back to the file as seen by read(). (This is a bug on 25292 some variants of i386 svr4.0.) */ 25293 for (i = 0; i < pagesize; ++i) 25294 *(data2 + i) = *(data2 + i) + 1; 25295 data3 = (char *) malloc (pagesize); 25296 if (!data3) 25297 exit (1); 25298 if (read (fd, data3, pagesize) != pagesize) 25299 exit (1); 25300 for (i = 0; i < pagesize; ++i) 25301 if (*(data + i) != *(data3 + i)) 25302 exit (1); 25303 close (fd); 25304 exit (0); 25305} 25306_ACEOF 25307rm -f conftest$ac_exeext 25308if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 25309 (eval $ac_link) 2>&5 25310 ac_status=$? 25311 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25312 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 25313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25314 (eval $ac_try) 2>&5 25315 ac_status=$? 25316 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25317 (exit $ac_status); }; }; then 25318 ac_cv_func_mmap_fixed_mapped=yes 25319else 25320 echo "$as_me: program exited with status $ac_status" >&5 25321echo "$as_me: failed program was:" >&5 25322sed 's/^/| /' conftest.$ac_ext >&5 25323 25324( exit $ac_status ) 25325ac_cv_func_mmap_fixed_mapped=no 25326fi 25327rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 25328fi 25329fi 25330echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 25331echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 25332if test $ac_cv_func_mmap_fixed_mapped = yes; then 25333 25334cat >>confdefs.h <<\_ACEOF 25335#define HAVE_MMAP 1 25336_ACEOF 25337 25338fi 25339rm -f conftest.mmap 25340 25341echo "$as_me:$LINENO: checking for mmap of files" >&5 25342echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6 25343if test "${ac_cv_func_mmap_file+set}" = set; then 25344 echo $ECHO_N "(cached) $ECHO_C" >&6 25345else 25346 ac_ext=c 25347ac_cpp='$CPP $CPPFLAGS' 25348ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 25349ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 25350ac_compiler_gnu=$ac_cv_c_compiler_gnu 25351 25352 if test "$cross_compiling" = yes; then 25353 ac_cv_func_mmap_file=no 25354else 25355 cat >conftest.$ac_ext <<_ACEOF 25356 25357 /* confdefs.h. */ 25358_ACEOF 25359cat confdefs.h >>conftest.$ac_ext 25360cat >>conftest.$ac_ext <<_ACEOF 25361/* end confdefs.h. */ 25362 25363#include <sys/types.h> 25364#include <sys/mman.h> 25365#include <fcntl.h> 25366 25367int 25368main () 25369{ 25370 25371 int fd; 25372 fd = creat ("foo",0777); 25373 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); 25374 unlink ("foo"); 25375 return (fd != (int) MAP_FAILED); 25376 ; 25377 return 0; 25378} 25379_ACEOF 25380rm -f conftest$ac_exeext 25381if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 25382 (eval $ac_link) 2>&5 25383 ac_status=$? 25384 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25385 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 25386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25387 (eval $ac_try) 2>&5 25388 ac_status=$? 25389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25390 (exit $ac_status); }; }; then 25391 ac_cv_func_mmap_file=yes 25392else 25393 echo "$as_me: program exited with status $ac_status" >&5 25394echo "$as_me: failed program was:" >&5 25395sed 's/^/| /' conftest.$ac_ext >&5 25396 25397( exit $ac_status ) 25398ac_cv_func_mmap_file=no 25399fi 25400rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 25401fi 25402 ac_ext=c 25403ac_cpp='$CPP $CPPFLAGS' 25404ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 25405ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 25406ac_compiler_gnu=$ac_cv_c_compiler_gnu 25407 25408 25409fi 25410echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 25411echo "${ECHO_T}$ac_cv_func_mmap_file" >&6 25412if test "$ac_cv_func_mmap_file" = yes; then 25413 25414cat >>confdefs.h <<\_ACEOF 25415#define HAVE_MMAP_FILE 25416_ACEOF 25417 25418 MMAP_FILE=yes 25419 25420fi 25421 25422echo "$as_me:$LINENO: checking for mprotect" >&5 25423echo $ECHO_N "checking for mprotect... $ECHO_C" >&6 25424if test "${ac_cv_func_mprotect+set}" = set; then 25425 echo $ECHO_N "(cached) $ECHO_C" >&6 25426else 25427 cat >conftest.$ac_ext <<_ACEOF 25428/* confdefs.h. */ 25429_ACEOF 25430cat confdefs.h >>conftest.$ac_ext 25431cat >>conftest.$ac_ext <<_ACEOF 25432/* end confdefs.h. */ 25433/* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect. 25434 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 25435#define mprotect innocuous_mprotect 25436 25437/* System header to define __stub macros and hopefully few prototypes, 25438 which can conflict with char mprotect (); below. 25439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 25440 <limits.h> exists even on freestanding compilers. */ 25441 25442#ifdef __STDC__ 25443# include <limits.h> 25444#else 25445# include <assert.h> 25446#endif 25447 25448#undef mprotect 25449 25450/* Override any gcc2 internal prototype to avoid an error. */ 25451#ifdef __cplusplus 25452extern "C" 25453{ 25454#endif 25455/* We use char because int might match the return type of a gcc2 25456 builtin and then its argument prototype would still apply. */ 25457char mprotect (); 25458/* The GNU C library defines this for functions which it implements 25459 to always fail with ENOSYS. Some functions are actually named 25460 something starting with __ and the normal name is an alias. */ 25461#if defined (__stub_mprotect) || defined (__stub___mprotect) 25462choke me 25463#else 25464char (*f) () = mprotect; 25465#endif 25466#ifdef __cplusplus 25467} 25468#endif 25469 25470int 25471main () 25472{ 25473return f != mprotect; 25474 ; 25475 return 0; 25476} 25477_ACEOF 25478rm -f conftest.$ac_objext conftest$ac_exeext 25479if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 25480 (eval $ac_link) 2>conftest.er1 25481 ac_status=$? 25482 grep -v '^ *+' conftest.er1 >conftest.err 25483 rm -f conftest.er1 25484 cat conftest.err >&5 25485 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25486 (exit $ac_status); } && 25487 { ac_try='test -z "$ac_c_werror_flag" 25488 || test ! -s conftest.err' 25489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25490 (eval $ac_try) 2>&5 25491 ac_status=$? 25492 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25493 (exit $ac_status); }; } && 25494 { ac_try='test -s conftest$ac_exeext' 25495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25496 (eval $ac_try) 2>&5 25497 ac_status=$? 25498 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25499 (exit $ac_status); }; }; then 25500 ac_cv_func_mprotect=yes 25501else 25502 echo "$as_me: failed program was:" >&5 25503sed 's/^/| /' conftest.$ac_ext >&5 25504 25505ac_cv_func_mprotect=no 25506fi 25507rm -f conftest.err conftest.$ac_objext \ 25508 conftest$ac_exeext conftest.$ac_ext 25509fi 25510echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5 25511echo "${ECHO_T}$ac_cv_func_mprotect" >&6 25512if test $ac_cv_func_mprotect = yes; then 25513 : 25514else 25515 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5 25516echo "$as_me: error: Function mprotect() required but not found" >&2;} 25517 { (exit 1); exit 1; }; } 25518fi 25519 25520 25521if test "$ac_cv_func_mmap_fixed_mapped" = "no" 25522then 25523 { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5 25524echo "$as_me: WARNING: mmap() required but not found" >&2;} 25525fi 25526if test "$ac_cv_func_mmap_file" = "no" 25527then 25528 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5 25529echo "$as_me: WARNING: mmap() of files required but not found" >&2;} 25530fi 25531 25532 25533echo "$as_me:$LINENO: checking for llvm-gcc" >&5 25534echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6 25535if test "${llvm_cv_llvmgcc+set}" = set; then 25536 echo $ECHO_N "(cached) $ECHO_C" >&6 25537else 25538 llvm_cv_llvmgcc='llvmgcc_not_found' 25539if test -d "$LLVMGCCDIR" ; then 25540 if test -x "$LLVMGCCDIR/bin/gcc" ; then 25541 llvm_cv_llvmgcc="$LLVMGCCDIR/bin/gcc" 25542 fi 25543fi 25544fi 25545echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc" >&5 25546echo "${ECHO_T}$llvm_cv_llvmgcc" >&6 25547 25548echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5 25549echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6 25550if test "${llvm_cv_llvmgcc_sanity+set}" = set; then 25551 echo $ECHO_N "(cached) $ECHO_C" >&6 25552else 25553 llvm_cv_llvmgcc_sanity="no" 25554if test -x "$llvm_cv_llvmgcc" ; then 25555 cp /dev/null conftest.c 25556 "$llvm_cv_llvmgcc" -S -o - conftest.c | grep implementation > /dev/null 2>&1 25557 if test $? -eq 0 ; then 25558 llvm_cv_llvmgcc_sanity="yes" 25559 fi 25560 rm conftest.c 25561fi 25562fi 25563echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5 25564echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6 25565 25566if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then 25567 LLVMGCC="$llvm_cv_llvmgcc" 25568 25569 llvmcc1path=`"$llvm_cv_llvmgcc" --print-prog-name=cc1` 25570 LLVMCC1=$llvmcc1path 25571 25572 llvmcc1pluspath=`"$llvm_cv_llvmgcc" --print-prog-name=cc1plus` 25573 LLVMCC1PLUS=$llvmcc1pluspath 25574 25575fi 25576 25577echo "$as_me:$LINENO: checking for shared library suffix" >&5 25578echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6 25579eval "SHLIBEXT=$shrext_cmds" 25580echo "$as_me:$LINENO: result: $SHLIBEXT" >&5 25581echo "${ECHO_T}$SHLIBEXT" >&6 25582SHLIBEXT=$SHLIBEXT 25583 25584 25585cat >>confdefs.h <<_ACEOF 25586#define SHLIBEXT "$SHLIBEXT" 25587_ACEOF 25588 25589 25590# Translate the various configuration directories and other basic 25591# information into substitutions that will end up in Makefile.config.in 25592# that these configured values can be used by the makefiles 25593eval LLVM_PREFIX="${prefix}"; 25594eval LLVM_BINDIR="${prefix}/bin"; 25595eval LLVM_LIBDIR="${prefix}/lib"; 25596eval LLVM_DATADIR="${prefix}/data"; 25597eval LLVM_DOCSDIR="${prefix}/docs"; 25598eval LLVM_ETCDIR="${prefix}/etc"; 25599eval LLVM_INCLUDEDIR="${prefix}/include"; 25600eval LLVM_INFODIR="${prefix}/info"; 25601eval LLVM_MANDIR="${prefix}/man"; 25602LLVM_CONFIGTIME=`date` 25603 25604 25605 25606 25607 25608 25609 25610 25611 25612 25613 25614# Place the various directores into the config.h file as #defines so that we 25615# can know about the installation paths within LLVM. 25616 25617cat >>confdefs.h <<_ACEOF 25618#define LLVM_PREFIX "$LLVM_PREFIX" 25619_ACEOF 25620 25621 25622cat >>confdefs.h <<_ACEOF 25623#define LLVM_BINDIR "$LLVM_BINDIR" 25624_ACEOF 25625 25626 25627cat >>confdefs.h <<_ACEOF 25628#define LLVM_LIBDIR "$LLVM_LIBDIR" 25629_ACEOF 25630 25631 25632cat >>confdefs.h <<_ACEOF 25633#define LLVM_DATADIR "$LLVM_DATADIR" 25634_ACEOF 25635 25636 25637cat >>confdefs.h <<_ACEOF 25638#define LLVM_DATADIR "$LLVM_DOCSDIR" 25639_ACEOF 25640 25641 25642cat >>confdefs.h <<_ACEOF 25643#define LLVM_ETCDIR "$LLVM_ETCDIR" 25644_ACEOF 25645 25646 25647cat >>confdefs.h <<_ACEOF 25648#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" 25649_ACEOF 25650 25651 25652cat >>confdefs.h <<_ACEOF 25653#define LLVM_INFODIR "$LLVM_INFODIR" 25654_ACEOF 25655 25656 25657cat >>confdefs.h <<_ACEOF 25658#define LLVM_MANDIR "$LLVM_MANDIR" 25659_ACEOF 25660 25661 25662cat >>confdefs.h <<_ACEOF 25663#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" 25664_ACEOF 25665 25666 25667 25668 ac_config_headers="$ac_config_headers include/llvm/Config/config.h" 25669 25670 25671 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h" 25672 25673 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map" 25674 25675 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set" 25676 25677 ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h" 25678 25679 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator" 25680 25681 25682 ac_config_files="$ac_config_files Makefile.config" 25683 25684 25685 ac_config_files="$ac_config_files tools/llvmc/st tools/llvmc/cpp tools/llvmc/ll tools/llvmc/c" 25686 25687 25688 ac_config_commands="$ac_config_commands Makefile" 25689 25690 25691 ac_config_commands="$ac_config_commands Makefile.common" 25692 25693 25694 ac_config_commands="$ac_config_commands examples/Makefile" 25695 25696 25697 ac_config_commands="$ac_config_commands lib/Makefile" 25698 25699 25700 ac_config_commands="$ac_config_commands runtime/Makefile" 25701 25702 25703 ac_config_commands="$ac_config_commands test/Makefile" 25704 25705 25706 ac_config_commands="$ac_config_commands test/Makefile.tests" 25707 25708 25709 ac_config_commands="$ac_config_commands test/QMTest/llvm.py" 25710 25711 25712 ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py" 25713 25714 25715 ac_config_commands="$ac_config_commands tools/Makefile" 25716 25717 25718 ac_config_commands="$ac_config_commands tools/Makefile.JIT" 25719 25720 25721 ac_config_commands="$ac_config_commands utils/Makefile" 25722 25723 25724 ac_config_commands="$ac_config_commands projects/Makefile" 25725 25726 25727 25728cat >confcache <<\_ACEOF 25729# This file is a shell script that caches the results of configure 25730# tests run on this system so they can be shared between configure 25731# scripts and configure runs, see configure's option --config-cache. 25732# It is not useful on other systems. If it contains results you don't 25733# want to keep, you may remove or edit it. 25734# 25735# config.status only pays attention to the cache file if you give it 25736# the --recheck option to rerun configure. 25737# 25738# `ac_cv_env_foo' variables (set or unset) will be overridden when 25739# loading this file, other *unset* `ac_cv_foo' will be assigned the 25740# following values. 25741 25742_ACEOF 25743 25744# The following way of writing the cache mishandles newlines in values, 25745# but we know of no workaround that is simple, portable, and efficient. 25746# So, don't put newlines in cache variables' values. 25747# Ultrix sh set writes to stderr and can't be redirected directly, 25748# and sets the high bit in the cache file unless we assign to the vars. 25749{ 25750 (set) 2>&1 | 25751 case `(ac_space=' '; set | grep ac_space) 2>&1` in 25752 *ac_space=\ *) 25753 # `set' does not quote correctly, so add quotes (double-quote 25754 # substitution turns \\\\ into \\, and sed turns \\ into \). 25755 sed -n \ 25756 "s/'/'\\\\''/g; 25757 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 25758 ;; 25759 *) 25760 # `set' quotes correctly as required by POSIX, so do not add quotes. 25761 sed -n \ 25762 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 25763 ;; 25764 esac; 25765} | 25766 sed ' 25767 t clear 25768 : clear 25769 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 25770 t end 25771 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 25772 : end' >>confcache 25773if diff $cache_file confcache >/dev/null 2>&1; then :; else 25774 if test -w $cache_file; then 25775 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 25776 cat confcache >$cache_file 25777 else 25778 echo "not updating unwritable cache $cache_file" 25779 fi 25780fi 25781rm -f confcache 25782 25783test "x$prefix" = xNONE && prefix=$ac_default_prefix 25784# Let make expand exec_prefix. 25785test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 25786 25787# VPATH may cause trouble with some makes, so we remove $(srcdir), 25788# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 25789# trailing colons and then remove the whole line if VPATH becomes empty 25790# (actually we leave an empty line to preserve line numbers). 25791if test "x$srcdir" = x.; then 25792 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 25793s/:*\$(srcdir):*/:/; 25794s/:*\${srcdir}:*/:/; 25795s/:*@srcdir@:*/:/; 25796s/^\([^=]*=[ ]*\):*/\1/; 25797s/:*$//; 25798s/^[^=]*=[ ]*$//; 25799}' 25800fi 25801 25802DEFS=-DHAVE_CONFIG_H 25803 25804ac_libobjs= 25805ac_ltlibobjs= 25806for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 25807 # 1. Remove the extension, and $U if already installed. 25808 ac_i=`echo "$ac_i" | 25809 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 25810 # 2. Add them. 25811 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 25812 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 25813done 25814LIBOBJS=$ac_libobjs 25815 25816LTLIBOBJS=$ac_ltlibobjs 25817 25818 25819 25820: ${CONFIG_STATUS=./config.status} 25821ac_clean_files_save=$ac_clean_files 25822ac_clean_files="$ac_clean_files $CONFIG_STATUS" 25823{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 25824echo "$as_me: creating $CONFIG_STATUS" >&6;} 25825cat >$CONFIG_STATUS <<_ACEOF 25826#! $SHELL 25827# Generated by $as_me. 25828# Run this file to recreate the current configuration. 25829# Compiler output produced by configure, useful for debugging 25830# configure, is in config.log if it exists. 25831 25832debug=false 25833ac_cs_recheck=false 25834ac_cs_silent=false 25835SHELL=\${CONFIG_SHELL-$SHELL} 25836_ACEOF 25837 25838cat >>$CONFIG_STATUS <<\_ACEOF 25839## --------------------- ## 25840## M4sh Initialization. ## 25841## --------------------- ## 25842 25843# Be Bourne compatible 25844if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 25845 emulate sh 25846 NULLCMD=: 25847 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 25848 # is contrary to our usage. Disable this feature. 25849 alias -g '${1+"$@"}'='"$@"' 25850elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 25851 set -o posix 25852fi 25853DUALCASE=1; export DUALCASE # for MKS sh 25854 25855# Support unset when possible. 25856if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 25857 as_unset=unset 25858else 25859 as_unset=false 25860fi 25861 25862 25863# Work around bugs in pre-3.0 UWIN ksh. 25864$as_unset ENV MAIL MAILPATH 25865PS1='$ ' 25866PS2='> ' 25867PS4='+ ' 25868 25869# NLS nuisances. 25870for as_var in \ 25871 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 25872 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 25873 LC_TELEPHONE LC_TIME 25874do 25875 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 25876 eval $as_var=C; export $as_var 25877 else 25878 $as_unset $as_var 25879 fi 25880done 25881 25882# Required to use basename. 25883if expr a : '\(a\)' >/dev/null 2>&1; then 25884 as_expr=expr 25885else 25886 as_expr=false 25887fi 25888 25889if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 25890 as_basename=basename 25891else 25892 as_basename=false 25893fi 25894 25895 25896# Name of the executable. 25897as_me=`$as_basename "$0" || 25898$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 25899 X"$0" : 'X\(//\)$' \| \ 25900 X"$0" : 'X\(/\)$' \| \ 25901 . : '\(.\)' 2>/dev/null || 25902echo X/"$0" | 25903 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 25904 /^X\/\(\/\/\)$/{ s//\1/; q; } 25905 /^X\/\(\/\).*/{ s//\1/; q; } 25906 s/.*/./; q'` 25907 25908 25909# PATH needs CR, and LINENO needs CR and PATH. 25910# Avoid depending upon Character Ranges. 25911as_cr_letters='abcdefghijklmnopqrstuvwxyz' 25912as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 25913as_cr_Letters=$as_cr_letters$as_cr_LETTERS 25914as_cr_digits='0123456789' 25915as_cr_alnum=$as_cr_Letters$as_cr_digits 25916 25917# The user is always right. 25918if test "${PATH_SEPARATOR+set}" != set; then 25919 echo "#! /bin/sh" >conf$$.sh 25920 echo "exit 0" >>conf$$.sh 25921 chmod +x conf$$.sh 25922 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 25923 PATH_SEPARATOR=';' 25924 else 25925 PATH_SEPARATOR=: 25926 fi 25927 rm -f conf$$.sh 25928fi 25929 25930 25931 as_lineno_1=$LINENO 25932 as_lineno_2=$LINENO 25933 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 25934 test "x$as_lineno_1" != "x$as_lineno_2" && 25935 test "x$as_lineno_3" = "x$as_lineno_2" || { 25936 # Find who we are. Look in the path if we contain no path at all 25937 # relative or not. 25938 case $0 in 25939 *[\\/]* ) as_myself=$0 ;; 25940 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25941for as_dir in $PATH 25942do 25943 IFS=$as_save_IFS 25944 test -z "$as_dir" && as_dir=. 25945 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 25946done 25947 25948 ;; 25949 esac 25950 # We did not find ourselves, most probably we were run as `sh COMMAND' 25951 # in which case we are not to be found in the path. 25952 if test "x$as_myself" = x; then 25953 as_myself=$0 25954 fi 25955 if test ! -f "$as_myself"; then 25956 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 25957echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 25958 { (exit 1); exit 1; }; } 25959 fi 25960 case $CONFIG_SHELL in 25961 '') 25962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25963for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 25964do 25965 IFS=$as_save_IFS 25966 test -z "$as_dir" && as_dir=. 25967 for as_base in sh bash ksh sh5; do 25968 case $as_dir in 25969 /*) 25970 if ("$as_dir/$as_base" -c ' 25971 as_lineno_1=$LINENO 25972 as_lineno_2=$LINENO 25973 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 25974 test "x$as_lineno_1" != "x$as_lineno_2" && 25975 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 25976 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 25977 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 25978 CONFIG_SHELL=$as_dir/$as_base 25979 export CONFIG_SHELL 25980 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 25981 fi;; 25982 esac 25983 done 25984done 25985;; 25986 esac 25987 25988 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 25989 # uniformly replaced by the line number. The first 'sed' inserts a 25990 # line-number line before each line; the second 'sed' does the real 25991 # work. The second script uses 'N' to pair each line-number line 25992 # with the numbered line, and appends trailing '-' during 25993 # substitution so that $LINENO is not a special case at line end. 25994 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 25995 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 25996 sed '=' <$as_myself | 25997 sed ' 25998 N 25999 s,$,-, 26000 : loop 26001 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 26002 t loop 26003 s,-$,, 26004 s,^['$as_cr_digits']*\n,, 26005 ' >$as_me.lineno && 26006 chmod +x $as_me.lineno || 26007 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 26008echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 26009 { (exit 1); exit 1; }; } 26010 26011 # Don't try to exec as it changes $[0], causing all sort of problems 26012 # (the dirname of $[0] is not the place where we might find the 26013 # original and so on. Autoconf is especially sensible to this). 26014 . ./$as_me.lineno 26015 # Exit status is that of the last command. 26016 exit 26017} 26018 26019 26020case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 26021 *c*,-n*) ECHO_N= ECHO_C=' 26022' ECHO_T=' ' ;; 26023 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 26024 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 26025esac 26026 26027if expr a : '\(a\)' >/dev/null 2>&1; then 26028 as_expr=expr 26029else 26030 as_expr=false 26031fi 26032 26033rm -f conf$$ conf$$.exe conf$$.file 26034echo >conf$$.file 26035if ln -s conf$$.file conf$$ 2>/dev/null; then 26036 # We could just check for DJGPP; but this test a) works b) is more generic 26037 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 26038 if test -f conf$$.exe; then 26039 # Don't use ln at all; we don't have any links 26040 as_ln_s='cp -p' 26041 else 26042 as_ln_s='ln -s' 26043 fi 26044elif ln conf$$.file conf$$ 2>/dev/null; then 26045 as_ln_s=ln 26046else 26047 as_ln_s='cp -p' 26048fi 26049rm -f conf$$ conf$$.exe conf$$.file 26050 26051if mkdir -p . 2>/dev/null; then 26052 as_mkdir_p=: 26053else 26054 test -d ./-p && rmdir ./-p 26055 as_mkdir_p=false 26056fi 26057 26058as_executable_p="test -f" 26059 26060# Sed expression to map a string onto a valid CPP name. 26061as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 26062 26063# Sed expression to map a string onto a valid variable name. 26064as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 26065 26066 26067# IFS 26068# We need space, tab and new line, in precisely that order. 26069as_nl=' 26070' 26071IFS=" $as_nl" 26072 26073# CDPATH. 26074$as_unset CDPATH 26075 26076exec 6>&1 26077 26078# Open the log real soon, to keep \$[0] and so on meaningful, and to 26079# report actual input values of CONFIG_FILES etc. instead of their 26080# values after options handling. Logging --version etc. is OK. 26081exec 5>>config.log 26082{ 26083 echo 26084 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 26085## Running $as_me. ## 26086_ASBOX 26087} >&5 26088cat >&5 <<_CSEOF 26089 26090This file was extended by llvm $as_me 1.4, which was 26091generated by GNU Autoconf 2.59. Invocation command line was 26092 26093 CONFIG_FILES = $CONFIG_FILES 26094 CONFIG_HEADERS = $CONFIG_HEADERS 26095 CONFIG_LINKS = $CONFIG_LINKS 26096 CONFIG_COMMANDS = $CONFIG_COMMANDS 26097 $ $0 $@ 26098 26099_CSEOF 26100echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 26101echo >&5 26102_ACEOF 26103 26104# Files that config.status was made for. 26105if test -n "$ac_config_files"; then 26106 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 26107fi 26108 26109if test -n "$ac_config_headers"; then 26110 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 26111fi 26112 26113if test -n "$ac_config_links"; then 26114 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 26115fi 26116 26117if test -n "$ac_config_commands"; then 26118 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 26119fi 26120 26121cat >>$CONFIG_STATUS <<\_ACEOF 26122 26123ac_cs_usage="\ 26124\`$as_me' instantiates files from templates according to the 26125current configuration. 26126 26127Usage: $0 [OPTIONS] [FILE]... 26128 26129 -h, --help print this help, then exit 26130 -V, --version print version number, then exit 26131 -q, --quiet do not print progress messages 26132 -d, --debug don't remove temporary files 26133 --recheck update $as_me by reconfiguring in the same conditions 26134 --file=FILE[:TEMPLATE] 26135 instantiate the configuration file FILE 26136 --header=FILE[:TEMPLATE] 26137 instantiate the configuration header FILE 26138 26139Configuration files: 26140$config_files 26141 26142Configuration headers: 26143$config_headers 26144 26145Configuration links: 26146$config_links 26147 26148Configuration commands: 26149$config_commands 26150 26151Report bugs to <bug-autoconf@gnu.org>." 26152_ACEOF 26153 26154cat >>$CONFIG_STATUS <<_ACEOF 26155ac_cs_version="\\ 26156llvm config.status 1.4 26157configured by $0, generated by GNU Autoconf 2.59, 26158 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 26159 26160Copyright (C) 2003 Free Software Foundation, Inc. 26161This config.status script is free software; the Free Software Foundation 26162gives unlimited permission to copy, distribute and modify it." 26163srcdir=$srcdir 26164INSTALL="$INSTALL" 26165_ACEOF 26166 26167cat >>$CONFIG_STATUS <<\_ACEOF 26168# If no file are specified by the user, then we need to provide default 26169# value. By we need to know if files were specified by the user. 26170ac_need_defaults=: 26171while test $# != 0 26172do 26173 case $1 in 26174 --*=*) 26175 ac_option=`expr "x$1" : 'x\([^=]*\)='` 26176 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 26177 ac_shift=: 26178 ;; 26179 -*) 26180 ac_option=$1 26181 ac_optarg=$2 26182 ac_shift=shift 26183 ;; 26184 *) # This is not an option, so the user has probably given explicit 26185 # arguments. 26186 ac_option=$1 26187 ac_need_defaults=false;; 26188 esac 26189 26190 case $ac_option in 26191 # Handling of the options. 26192_ACEOF 26193cat >>$CONFIG_STATUS <<\_ACEOF 26194 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 26195 ac_cs_recheck=: ;; 26196 --version | --vers* | -V ) 26197 echo "$ac_cs_version"; exit 0 ;; 26198 --he | --h) 26199 # Conflict between --help and --header 26200 { { echo "$as_me:$LINENO: error: ambiguous option: $1 26201Try \`$0 --help' for more information." >&5 26202echo "$as_me: error: ambiguous option: $1 26203Try \`$0 --help' for more information." >&2;} 26204 { (exit 1); exit 1; }; };; 26205 --help | --hel | -h ) 26206 echo "$ac_cs_usage"; exit 0 ;; 26207 --debug | --d* | -d ) 26208 debug=: ;; 26209 --file | --fil | --fi | --f ) 26210 $ac_shift 26211 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 26212 ac_need_defaults=false;; 26213 --header | --heade | --head | --hea ) 26214 $ac_shift 26215 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 26216 ac_need_defaults=false;; 26217 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 26218 | -silent | --silent | --silen | --sile | --sil | --si | --s) 26219 ac_cs_silent=: ;; 26220 26221 # This is an error. 26222 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 26223Try \`$0 --help' for more information." >&5 26224echo "$as_me: error: unrecognized option: $1 26225Try \`$0 --help' for more information." >&2;} 26226 { (exit 1); exit 1; }; } ;; 26227 26228 *) ac_config_targets="$ac_config_targets $1" ;; 26229 26230 esac 26231 shift 26232done 26233 26234ac_configure_extra_args= 26235 26236if $ac_cs_silent; then 26237 exec 6>/dev/null 26238 ac_configure_extra_args="$ac_configure_extra_args --silent" 26239fi 26240 26241_ACEOF 26242cat >>$CONFIG_STATUS <<_ACEOF 26243if \$ac_cs_recheck; then 26244 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 26245 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 26246fi 26247 26248_ACEOF 26249 26250cat >>$CONFIG_STATUS <<_ACEOF 26251# 26252# INIT-COMMANDS section. 26253# 26254 26255${srcdir}/autoconf/mkinstalldirs `dirname Makefile` 26256${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common` 26257${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile` 26258${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile` 26259${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile` 26260${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile` 26261${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests` 26262${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py` 26263${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py` 26264${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile` 26265${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile.JIT` 26266${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile` 26267${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile` 26268 26269_ACEOF 26270 26271 26272 26273cat >>$CONFIG_STATUS <<\_ACEOF 26274for ac_config_target in $ac_config_targets 26275do 26276 case "$ac_config_target" in 26277 # Handling of arguments. 26278 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; 26279 "tools/llvmc/st" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/st" ;; 26280 "tools/llvmc/cpp" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/cpp" ;; 26281 "tools/llvmc/ll" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/ll" ;; 26282 "tools/llvmc/c" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/c" ;; 26283 "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$llvm_cv_platform_type" ;; 26284 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; 26285 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; 26286 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;; 26287 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; 26288 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; 26289 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; 26290 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; 26291 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;; 26292 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;; 26293 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; 26294 "tools/Makefile.JIT" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile.JIT" ;; 26295 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; 26296 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; 26297 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;; 26298 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;; 26299 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;; 26300 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;; 26301 "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;; 26302 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;; 26303 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 26304echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 26305 { (exit 1); exit 1; }; };; 26306 esac 26307done 26308 26309# If the user did not use the arguments to specify the items to instantiate, 26310# then the envvar interface is used. Set only those that are not. 26311# We use the long form for the default assignment because of an extremely 26312# bizarre bug on SunOS 4.1.3. 26313if $ac_need_defaults; then 26314 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 26315 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 26316 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links 26317 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 26318fi 26319 26320# Have a temporary directory for convenience. Make it in the build tree 26321# simply because there is no reason to put it here, and in addition, 26322# creating and moving files from /tmp can sometimes cause problems. 26323# Create a temporary directory, and hook for its removal unless debugging. 26324$debug || 26325{ 26326 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 26327 trap '{ (exit 1); exit 1; }' 1 2 13 15 26328} 26329 26330# Create a (secure) tmp directory for tmp files. 26331 26332{ 26333 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 26334 test -n "$tmp" && test -d "$tmp" 26335} || 26336{ 26337 tmp=./confstat$$-$RANDOM 26338 (umask 077 && mkdir $tmp) 26339} || 26340{ 26341 echo "$me: cannot create a temporary directory in ." >&2 26342 { (exit 1); exit 1; } 26343} 26344 26345_ACEOF 26346 26347cat >>$CONFIG_STATUS <<_ACEOF 26348 26349# 26350# CONFIG_FILES section. 26351# 26352 26353# No need to generate the scripts if there are no CONFIG_FILES. 26354# This happens for instance when ./config.status config.h 26355if test -n "\$CONFIG_FILES"; then 26356 # Protect against being on the right side of a sed subst in config.status. 26357 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 26358 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 26359s,@SHELL@,$SHELL,;t t 26360s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 26361s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 26362s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 26363s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 26364s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 26365s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 26366s,@exec_prefix@,$exec_prefix,;t t 26367s,@prefix@,$prefix,;t t 26368s,@program_transform_name@,$program_transform_name,;t t 26369s,@bindir@,$bindir,;t t 26370s,@sbindir@,$sbindir,;t t 26371s,@libexecdir@,$libexecdir,;t t 26372s,@datadir@,$datadir,;t t 26373s,@sysconfdir@,$sysconfdir,;t t 26374s,@sharedstatedir@,$sharedstatedir,;t t 26375s,@localstatedir@,$localstatedir,;t t 26376s,@libdir@,$libdir,;t t 26377s,@includedir@,$includedir,;t t 26378s,@oldincludedir@,$oldincludedir,;t t 26379s,@infodir@,$infodir,;t t 26380s,@mandir@,$mandir,;t t 26381s,@build_alias@,$build_alias,;t t 26382s,@host_alias@,$host_alias,;t t 26383s,@target_alias@,$target_alias,;t t 26384s,@DEFS@,$DEFS,;t t 26385s,@ECHO_C@,$ECHO_C,;t t 26386s,@ECHO_N@,$ECHO_N,;t t 26387s,@ECHO_T@,$ECHO_T,;t t 26388s,@LIBS@,$LIBS,;t t 26389s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t 26390s,@subdirs@,$subdirs,;t t 26391s,@build@,$build,;t t 26392s,@build_cpu@,$build_cpu,;t t 26393s,@build_vendor@,$build_vendor,;t t 26394s,@build_os@,$build_os,;t t 26395s,@host@,$host,;t t 26396s,@host_cpu@,$host_cpu,;t t 26397s,@host_vendor@,$host_vendor,;t t 26398s,@host_os@,$host_os,;t t 26399s,@target@,$target,;t t 26400s,@target_cpu@,$target_cpu,;t t 26401s,@target_vendor@,$target_vendor,;t t 26402s,@target_os@,$target_os,;t t 26403s,@OS@,$OS,;t t 26404s,@ARCH@,$ARCH,;t t 26405s,@ENDIAN@,$ENDIAN,;t t 26406s,@CC@,$CC,;t t 26407s,@CFLAGS@,$CFLAGS,;t t 26408s,@LDFLAGS@,$LDFLAGS,;t t 26409s,@CPPFLAGS@,$CPPFLAGS,;t t 26410s,@ac_ct_CC@,$ac_ct_CC,;t t 26411s,@EXEEXT@,$EXEEXT,;t t 26412s,@OBJEXT@,$OBJEXT,;t t 26413s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t 26414s,@JIT@,$JIT,;t t 26415s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t 26416s,@CPP@,$CPP,;t t 26417s,@CXX@,$CXX,;t t 26418s,@CXXFLAGS@,$CXXFLAGS,;t t 26419s,@ac_ct_CXX@,$ac_ct_CXX,;t t 26420s,@LEX@,$LEX,;t t 26421s,@LEXLIB@,$LEXLIB,;t t 26422s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t 26423s,@FLEX@,$FLEX,;t t 26424s,@YACC@,$YACC,;t t 26425s,@BISON@,$BISON,;t t 26426s,@EGREP@,$EGREP,;t t 26427s,@LN_S@,$LN_S,;t t 26428s,@ECHO@,$ECHO,;t t 26429s,@AR@,$AR,;t t 26430s,@ac_ct_AR@,$ac_ct_AR,;t t 26431s,@RANLIB@,$RANLIB,;t t 26432s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 26433s,@STRIP@,$STRIP,;t t 26434s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 26435s,@CXXCPP@,$CXXCPP,;t t 26436s,@F77@,$F77,;t t 26437s,@FFLAGS@,$FFLAGS,;t t 26438s,@ac_ct_F77@,$ac_ct_F77,;t t 26439s,@LIBTOOL@,$LIBTOOL,;t t 26440s,@ifGNUmake@,$ifGNUmake,;t t 26441s,@FIND@,$FIND,;t t 26442s,@GREP@,$GREP,;t t 26443s,@MKDIR@,$MKDIR,;t t 26444s,@MV@,$MV,;t t 26445s,@RM@,$RM,;t t 26446s,@SED@,$SED,;t t 26447s,@TAR@,$TAR,;t t 26448s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 26449s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 26450s,@INSTALL_DATA@,$INSTALL_DATA,;t t 26451s,@DOT@,$DOT,;t t 26452s,@ETAGS@,$ETAGS,;t t 26453s,@PYTHON@,$PYTHON,;t t 26454s,@QMTEST@,$QMTEST,;t t 26455s,@RUNTEST@,$RUNTEST,;t t 26456s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t 26457s,@HAVE_ZLIB@,$HAVE_ZLIB,;t t 26458s,@HAVE_BZIP2@,$HAVE_BZIP2,;t t 26459s,@ALLOCA@,$ALLOCA,;t t 26460s,@MMAP_FILE@,$MMAP_FILE,;t t 26461s,@LLVMGCC@,$LLVMGCC,;t t 26462s,@LLVMCC1@,$LLVMCC1,;t t 26463s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t 26464s,@SHLIBEXT@,$SHLIBEXT,;t t 26465s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t 26466s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t 26467s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t 26468s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t 26469s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t 26470s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t 26471s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t 26472s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t 26473s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t 26474s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t 26475s,@LIBOBJS@,$LIBOBJS,;t t 26476s,@LTLIBOBJS@,$LTLIBOBJS,;t t 26477CEOF 26478 26479_ACEOF 26480 26481 cat >>$CONFIG_STATUS <<\_ACEOF 26482 # Split the substitutions into bite-sized pieces for seds with 26483 # small command number limits, like on Digital OSF/1 and HP-UX. 26484 ac_max_sed_lines=48 26485 ac_sed_frag=1 # Number of current file. 26486 ac_beg=1 # First line for current file. 26487 ac_end=$ac_max_sed_lines # Line after last line for current file. 26488 ac_more_lines=: 26489 ac_sed_cmds= 26490 while $ac_more_lines; do 26491 if test $ac_beg -gt 1; then 26492 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 26493 else 26494 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 26495 fi 26496 if test ! -s $tmp/subs.frag; then 26497 ac_more_lines=false 26498 else 26499 # The purpose of the label and of the branching condition is to 26500 # speed up the sed processing (if there are no `@' at all, there 26501 # is no need to browse any of the substitutions). 26502 # These are the two extra sed commands mentioned above. 26503 (echo ':t 26504 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 26505 if test -z "$ac_sed_cmds"; then 26506 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 26507 else 26508 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 26509 fi 26510 ac_sed_frag=`expr $ac_sed_frag + 1` 26511 ac_beg=$ac_end 26512 ac_end=`expr $ac_end + $ac_max_sed_lines` 26513 fi 26514 done 26515 if test -z "$ac_sed_cmds"; then 26516 ac_sed_cmds=cat 26517 fi 26518fi # test -n "$CONFIG_FILES" 26519 26520_ACEOF 26521cat >>$CONFIG_STATUS <<\_ACEOF 26522for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 26523 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 26524 case $ac_file in 26525 - | *:- | *:-:* ) # input from stdin 26526 cat >$tmp/stdin 26527 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 26528 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 26529 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 26530 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 26531 * ) ac_file_in=$ac_file.in ;; 26532 esac 26533 26534 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 26535 ac_dir=`(dirname "$ac_file") 2>/dev/null || 26536$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 26537 X"$ac_file" : 'X\(//\)[^/]' \| \ 26538 X"$ac_file" : 'X\(//\)$' \| \ 26539 X"$ac_file" : 'X\(/\)' \| \ 26540 . : '\(.\)' 2>/dev/null || 26541echo X"$ac_file" | 26542 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 26543 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 26544 /^X\(\/\/\)$/{ s//\1/; q; } 26545 /^X\(\/\).*/{ s//\1/; q; } 26546 s/.*/./; q'` 26547 { if $as_mkdir_p; then 26548 mkdir -p "$ac_dir" 26549 else 26550 as_dir="$ac_dir" 26551 as_dirs= 26552 while test ! -d "$as_dir"; do 26553 as_dirs="$as_dir $as_dirs" 26554 as_dir=`(dirname "$as_dir") 2>/dev/null || 26555$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 26556 X"$as_dir" : 'X\(//\)[^/]' \| \ 26557 X"$as_dir" : 'X\(//\)$' \| \ 26558 X"$as_dir" : 'X\(/\)' \| \ 26559 . : '\(.\)' 2>/dev/null || 26560echo X"$as_dir" | 26561 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 26562 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 26563 /^X\(\/\/\)$/{ s//\1/; q; } 26564 /^X\(\/\).*/{ s//\1/; q; } 26565 s/.*/./; q'` 26566 done 26567 test ! -n "$as_dirs" || mkdir $as_dirs 26568 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 26569echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 26570 { (exit 1); exit 1; }; }; } 26571 26572 ac_builddir=. 26573 26574if test "$ac_dir" != .; then 26575 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 26576 # A "../" for each directory in $ac_dir_suffix. 26577 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 26578else 26579 ac_dir_suffix= ac_top_builddir= 26580fi 26581 26582case $srcdir in 26583 .) # No --srcdir option. We are building in place. 26584 ac_srcdir=. 26585 if test -z "$ac_top_builddir"; then 26586 ac_top_srcdir=. 26587 else 26588 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 26589 fi ;; 26590 [\\/]* | ?:[\\/]* ) # Absolute path. 26591 ac_srcdir=$srcdir$ac_dir_suffix; 26592 ac_top_srcdir=$srcdir ;; 26593 *) # Relative path. 26594 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 26595 ac_top_srcdir=$ac_top_builddir$srcdir ;; 26596esac 26597 26598# Do not use `cd foo && pwd` to compute absolute paths, because 26599# the directories may not exist. 26600case `pwd` in 26601.) ac_abs_builddir="$ac_dir";; 26602*) 26603 case "$ac_dir" in 26604 .) ac_abs_builddir=`pwd`;; 26605 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 26606 *) ac_abs_builddir=`pwd`/"$ac_dir";; 26607 esac;; 26608esac 26609case $ac_abs_builddir in 26610.) ac_abs_top_builddir=${ac_top_builddir}.;; 26611*) 26612 case ${ac_top_builddir}. in 26613 .) ac_abs_top_builddir=$ac_abs_builddir;; 26614 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 26615 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 26616 esac;; 26617esac 26618case $ac_abs_builddir in 26619.) ac_abs_srcdir=$ac_srcdir;; 26620*) 26621 case $ac_srcdir in 26622 .) ac_abs_srcdir=$ac_abs_builddir;; 26623 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 26624 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 26625 esac;; 26626esac 26627case $ac_abs_builddir in 26628.) ac_abs_top_srcdir=$ac_top_srcdir;; 26629*) 26630 case $ac_top_srcdir in 26631 .) ac_abs_top_srcdir=$ac_abs_builddir;; 26632 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 26633 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 26634 esac;; 26635esac 26636 26637 26638 case $INSTALL in 26639 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 26640 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 26641 esac 26642 26643 if test x"$ac_file" != x-; then 26644 { echo "$as_me:$LINENO: creating $ac_file" >&5 26645echo "$as_me: creating $ac_file" >&6;} 26646 rm -f "$ac_file" 26647 fi 26648 # Let's still pretend it is `configure' which instantiates (i.e., don't 26649 # use $as_me), people would be surprised to read: 26650 # /* config.h. Generated by config.status. */ 26651 if test x"$ac_file" = x-; then 26652 configure_input= 26653 else 26654 configure_input="$ac_file. " 26655 fi 26656 configure_input=$configure_input"Generated from `echo $ac_file_in | 26657 sed 's,.*/,,'` by configure." 26658 26659 # First look for the input files in the build tree, otherwise in the 26660 # src tree. 26661 ac_file_inputs=`IFS=: 26662 for f in $ac_file_in; do 26663 case $f in 26664 -) echo $tmp/stdin ;; 26665 [\\/$]*) 26666 # Absolute (can't be DOS-style, as IFS=:) 26667 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 26668echo "$as_me: error: cannot find input file: $f" >&2;} 26669 { (exit 1); exit 1; }; } 26670 echo "$f";; 26671 *) # Relative 26672 if test -f "$f"; then 26673 # Build tree 26674 echo "$f" 26675 elif test -f "$srcdir/$f"; then 26676 # Source tree 26677 echo "$srcdir/$f" 26678 else 26679 # /dev/null tree 26680 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 26681echo "$as_me: error: cannot find input file: $f" >&2;} 26682 { (exit 1); exit 1; }; } 26683 fi;; 26684 esac 26685 done` || { (exit 1); exit 1; } 26686_ACEOF 26687cat >>$CONFIG_STATUS <<_ACEOF 26688 sed "$ac_vpsub 26689$extrasub 26690_ACEOF 26691cat >>$CONFIG_STATUS <<\_ACEOF 26692:t 26693/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 26694s,@configure_input@,$configure_input,;t t 26695s,@srcdir@,$ac_srcdir,;t t 26696s,@abs_srcdir@,$ac_abs_srcdir,;t t 26697s,@top_srcdir@,$ac_top_srcdir,;t t 26698s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 26699s,@builddir@,$ac_builddir,;t t 26700s,@abs_builddir@,$ac_abs_builddir,;t t 26701s,@top_builddir@,$ac_top_builddir,;t t 26702s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 26703s,@INSTALL@,$ac_INSTALL,;t t 26704" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 26705 rm -f $tmp/stdin 26706 if test x"$ac_file" != x-; then 26707 mv $tmp/out $ac_file 26708 else 26709 cat $tmp/out 26710 rm -f $tmp/out 26711 fi 26712 26713done 26714_ACEOF 26715cat >>$CONFIG_STATUS <<\_ACEOF 26716 26717# 26718# CONFIG_HEADER section. 26719# 26720 26721# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 26722# NAME is the cpp macro being defined and VALUE is the value it is being given. 26723# 26724# ac_d sets the value in "#define NAME VALUE" lines. 26725ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 26726ac_dB='[ ].*$,\1#\2' 26727ac_dC=' ' 26728ac_dD=',;t' 26729# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 26730ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 26731ac_uB='$,\1#\2define\3' 26732ac_uC=' ' 26733ac_uD=',;t' 26734 26735for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 26736 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 26737 case $ac_file in 26738 - | *:- | *:-:* ) # input from stdin 26739 cat >$tmp/stdin 26740 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 26741 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 26742 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 26743 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 26744 * ) ac_file_in=$ac_file.in ;; 26745 esac 26746 26747 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 26748echo "$as_me: creating $ac_file" >&6;} 26749 26750 # First look for the input files in the build tree, otherwise in the 26751 # src tree. 26752 ac_file_inputs=`IFS=: 26753 for f in $ac_file_in; do 26754 case $f in 26755 -) echo $tmp/stdin ;; 26756 [\\/$]*) 26757 # Absolute (can't be DOS-style, as IFS=:) 26758 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 26759echo "$as_me: error: cannot find input file: $f" >&2;} 26760 { (exit 1); exit 1; }; } 26761 # Do quote $f, to prevent DOS paths from being IFS'd. 26762 echo "$f";; 26763 *) # Relative 26764 if test -f "$f"; then 26765 # Build tree 26766 echo "$f" 26767 elif test -f "$srcdir/$f"; then 26768 # Source tree 26769 echo "$srcdir/$f" 26770 else 26771 # /dev/null tree 26772 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 26773echo "$as_me: error: cannot find input file: $f" >&2;} 26774 { (exit 1); exit 1; }; } 26775 fi;; 26776 esac 26777 done` || { (exit 1); exit 1; } 26778 # Remove the trailing spaces. 26779 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 26780 26781_ACEOF 26782 26783# Transform confdefs.h into two sed scripts, `conftest.defines' and 26784# `conftest.undefs', that substitutes the proper values into 26785# config.h.in to produce config.h. The first handles `#define' 26786# templates, and the second `#undef' templates. 26787# And first: Protect against being on the right side of a sed subst in 26788# config.status. Protect against being in an unquoted here document 26789# in config.status. 26790rm -f conftest.defines conftest.undefs 26791# Using a here document instead of a string reduces the quoting nightmare. 26792# Putting comments in sed scripts is not portable. 26793# 26794# `end' is used to avoid that the second main sed command (meant for 26795# 0-ary CPP macros) applies to n-ary macro definitions. 26796# See the Autoconf documentation for `clear'. 26797cat >confdef2sed.sed <<\_ACEOF 26798s/[\\&,]/\\&/g 26799s,[\\$`],\\&,g 26800t clear 26801: clear 26802s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 26803t end 26804s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 26805: end 26806_ACEOF 26807# If some macros were called several times there might be several times 26808# the same #defines, which is useless. Nevertheless, we may not want to 26809# sort them, since we want the *last* AC-DEFINE to be honored. 26810uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 26811sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 26812rm -f confdef2sed.sed 26813 26814# This sed command replaces #undef with comments. This is necessary, for 26815# example, in the case of _POSIX_SOURCE, which is predefined and required 26816# on some systems where configure will not decide to define it. 26817cat >>conftest.undefs <<\_ACEOF 26818s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 26819_ACEOF 26820 26821# Break up conftest.defines because some shells have a limit on the size 26822# of here documents, and old seds have small limits too (100 cmds). 26823echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 26824echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 26825echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 26826echo ' :' >>$CONFIG_STATUS 26827rm -f conftest.tail 26828while grep . conftest.defines >/dev/null 26829do 26830 # Write a limited-size here document to $tmp/defines.sed. 26831 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 26832 # Speed up: don't consider the non `#define' lines. 26833 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 26834 # Work around the forget-to-reset-the-flag bug. 26835 echo 't clr' >>$CONFIG_STATUS 26836 echo ': clr' >>$CONFIG_STATUS 26837 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 26838 echo 'CEOF 26839 sed -f $tmp/defines.sed $tmp/in >$tmp/out 26840 rm -f $tmp/in 26841 mv $tmp/out $tmp/in 26842' >>$CONFIG_STATUS 26843 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 26844 rm -f conftest.defines 26845 mv conftest.tail conftest.defines 26846done 26847rm -f conftest.defines 26848echo ' fi # grep' >>$CONFIG_STATUS 26849echo >>$CONFIG_STATUS 26850 26851# Break up conftest.undefs because some shells have a limit on the size 26852# of here documents, and old seds have small limits too (100 cmds). 26853echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 26854rm -f conftest.tail 26855while grep . conftest.undefs >/dev/null 26856do 26857 # Write a limited-size here document to $tmp/undefs.sed. 26858 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 26859 # Speed up: don't consider the non `#undef' 26860 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 26861 # Work around the forget-to-reset-the-flag bug. 26862 echo 't clr' >>$CONFIG_STATUS 26863 echo ': clr' >>$CONFIG_STATUS 26864 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 26865 echo 'CEOF 26866 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 26867 rm -f $tmp/in 26868 mv $tmp/out $tmp/in 26869' >>$CONFIG_STATUS 26870 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 26871 rm -f conftest.undefs 26872 mv conftest.tail conftest.undefs 26873done 26874rm -f conftest.undefs 26875 26876cat >>$CONFIG_STATUS <<\_ACEOF 26877 # Let's still pretend it is `configure' which instantiates (i.e., don't 26878 # use $as_me), people would be surprised to read: 26879 # /* config.h. Generated by config.status. */ 26880 if test x"$ac_file" = x-; then 26881 echo "/* Generated by configure. */" >$tmp/config.h 26882 else 26883 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 26884 fi 26885 cat $tmp/in >>$tmp/config.h 26886 rm -f $tmp/in 26887 if test x"$ac_file" != x-; then 26888 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 26889 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 26890echo "$as_me: $ac_file is unchanged" >&6;} 26891 else 26892 ac_dir=`(dirname "$ac_file") 2>/dev/null || 26893$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 26894 X"$ac_file" : 'X\(//\)[^/]' \| \ 26895 X"$ac_file" : 'X\(//\)$' \| \ 26896 X"$ac_file" : 'X\(/\)' \| \ 26897 . : '\(.\)' 2>/dev/null || 26898echo X"$ac_file" | 26899 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 26900 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 26901 /^X\(\/\/\)$/{ s//\1/; q; } 26902 /^X\(\/\).*/{ s//\1/; q; } 26903 s/.*/./; q'` 26904 { if $as_mkdir_p; then 26905 mkdir -p "$ac_dir" 26906 else 26907 as_dir="$ac_dir" 26908 as_dirs= 26909 while test ! -d "$as_dir"; do 26910 as_dirs="$as_dir $as_dirs" 26911 as_dir=`(dirname "$as_dir") 2>/dev/null || 26912$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 26913 X"$as_dir" : 'X\(//\)[^/]' \| \ 26914 X"$as_dir" : 'X\(//\)$' \| \ 26915 X"$as_dir" : 'X\(/\)' \| \ 26916 . : '\(.\)' 2>/dev/null || 26917echo X"$as_dir" | 26918 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 26919 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 26920 /^X\(\/\/\)$/{ s//\1/; q; } 26921 /^X\(\/\).*/{ s//\1/; q; } 26922 s/.*/./; q'` 26923 done 26924 test ! -n "$as_dirs" || mkdir $as_dirs 26925 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 26926echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 26927 { (exit 1); exit 1; }; }; } 26928 26929 rm -f $ac_file 26930 mv $tmp/config.h $ac_file 26931 fi 26932 else 26933 cat $tmp/config.h 26934 rm -f $tmp/config.h 26935 fi 26936done 26937_ACEOF 26938cat >>$CONFIG_STATUS <<\_ACEOF 26939 26940# 26941# CONFIG_LINKS section. 26942# 26943 26944for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue 26945 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 26946 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 26947 26948 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5 26949echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;} 26950 26951 if test ! -r $srcdir/$ac_source; then 26952 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5 26953echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;} 26954 { (exit 1); exit 1; }; } 26955 fi 26956 rm -f $ac_dest 26957 26958 # Make relative symlinks. 26959 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null || 26960$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 26961 X"$ac_dest" : 'X\(//\)[^/]' \| \ 26962 X"$ac_dest" : 'X\(//\)$' \| \ 26963 X"$ac_dest" : 'X\(/\)' \| \ 26964 . : '\(.\)' 2>/dev/null || 26965echo X"$ac_dest" | 26966 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 26967 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 26968 /^X\(\/\/\)$/{ s//\1/; q; } 26969 /^X\(\/\).*/{ s//\1/; q; } 26970 s/.*/./; q'` 26971 { if $as_mkdir_p; then 26972 mkdir -p "$ac_dest_dir" 26973 else 26974 as_dir="$ac_dest_dir" 26975 as_dirs= 26976 while test ! -d "$as_dir"; do 26977 as_dirs="$as_dir $as_dirs" 26978 as_dir=`(dirname "$as_dir") 2>/dev/null || 26979$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 26980 X"$as_dir" : 'X\(//\)[^/]' \| \ 26981 X"$as_dir" : 'X\(//\)$' \| \ 26982 X"$as_dir" : 'X\(/\)' \| \ 26983 . : '\(.\)' 2>/dev/null || 26984echo X"$as_dir" | 26985 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 26986 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 26987 /^X\(\/\/\)$/{ s//\1/; q; } 26988 /^X\(\/\).*/{ s//\1/; q; } 26989 s/.*/./; q'` 26990 done 26991 test ! -n "$as_dirs" || mkdir $as_dirs 26992 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5 26993echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;} 26994 { (exit 1); exit 1; }; }; } 26995 26996 ac_builddir=. 26997 26998if test "$ac_dest_dir" != .; then 26999 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'` 27000 # A "../" for each directory in $ac_dir_suffix. 27001 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 27002else 27003 ac_dir_suffix= ac_top_builddir= 27004fi 27005 27006case $srcdir in 27007 .) # No --srcdir option. We are building in place. 27008 ac_srcdir=. 27009 if test -z "$ac_top_builddir"; then 27010 ac_top_srcdir=. 27011 else 27012 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 27013 fi ;; 27014 [\\/]* | ?:[\\/]* ) # Absolute path. 27015 ac_srcdir=$srcdir$ac_dir_suffix; 27016 ac_top_srcdir=$srcdir ;; 27017 *) # Relative path. 27018 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 27019 ac_top_srcdir=$ac_top_builddir$srcdir ;; 27020esac 27021 27022# Do not use `cd foo && pwd` to compute absolute paths, because 27023# the directories may not exist. 27024case `pwd` in 27025.) ac_abs_builddir="$ac_dest_dir";; 27026*) 27027 case "$ac_dest_dir" in 27028 .) ac_abs_builddir=`pwd`;; 27029 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";; 27030 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";; 27031 esac;; 27032esac 27033case $ac_abs_builddir in 27034.) ac_abs_top_builddir=${ac_top_builddir}.;; 27035*) 27036 case ${ac_top_builddir}. in 27037 .) ac_abs_top_builddir=$ac_abs_builddir;; 27038 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 27039 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 27040 esac;; 27041esac 27042case $ac_abs_builddir in 27043.) ac_abs_srcdir=$ac_srcdir;; 27044*) 27045 case $ac_srcdir in 27046 .) ac_abs_srcdir=$ac_abs_builddir;; 27047 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 27048 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 27049 esac;; 27050esac 27051case $ac_abs_builddir in 27052.) ac_abs_top_srcdir=$ac_top_srcdir;; 27053*) 27054 case $ac_top_srcdir in 27055 .) ac_abs_top_srcdir=$ac_abs_builddir;; 27056 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 27057 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 27058 esac;; 27059esac 27060 27061 27062 case $srcdir in 27063 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;; 27064 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;; 27065 esac 27066 27067 # Try a symlink, then a hard link, then a copy. 27068 ln -s $ac_rel_source $ac_dest 2>/dev/null || 27069 ln $srcdir/$ac_source $ac_dest 2>/dev/null || 27070 cp -p $srcdir/$ac_source $ac_dest || 27071 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5 27072echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;} 27073 { (exit 1); exit 1; }; } 27074done 27075_ACEOF 27076cat >>$CONFIG_STATUS <<\_ACEOF 27077 27078# 27079# CONFIG_COMMANDS section. 27080# 27081for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 27082 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 27083 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 27084 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 27085$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 27086 X"$ac_dest" : 'X\(//\)[^/]' \| \ 27087 X"$ac_dest" : 'X\(//\)$' \| \ 27088 X"$ac_dest" : 'X\(/\)' \| \ 27089 . : '\(.\)' 2>/dev/null || 27090echo X"$ac_dest" | 27091 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 27092 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 27093 /^X\(\/\/\)$/{ s//\1/; q; } 27094 /^X\(\/\).*/{ s//\1/; q; } 27095 s/.*/./; q'` 27096 { if $as_mkdir_p; then 27097 mkdir -p "$ac_dir" 27098 else 27099 as_dir="$ac_dir" 27100 as_dirs= 27101 while test ! -d "$as_dir"; do 27102 as_dirs="$as_dir $as_dirs" 27103 as_dir=`(dirname "$as_dir") 2>/dev/null || 27104$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 27105 X"$as_dir" : 'X\(//\)[^/]' \| \ 27106 X"$as_dir" : 'X\(//\)$' \| \ 27107 X"$as_dir" : 'X\(/\)' \| \ 27108 . : '\(.\)' 2>/dev/null || 27109echo X"$as_dir" | 27110 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 27111 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 27112 /^X\(\/\/\)$/{ s//\1/; q; } 27113 /^X\(\/\).*/{ s//\1/; q; } 27114 s/.*/./; q'` 27115 done 27116 test ! -n "$as_dirs" || mkdir $as_dirs 27117 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 27118echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 27119 { (exit 1); exit 1; }; }; } 27120 27121 ac_builddir=. 27122 27123if test "$ac_dir" != .; then 27124 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 27125 # A "../" for each directory in $ac_dir_suffix. 27126 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 27127else 27128 ac_dir_suffix= ac_top_builddir= 27129fi 27130 27131case $srcdir in 27132 .) # No --srcdir option. We are building in place. 27133 ac_srcdir=. 27134 if test -z "$ac_top_builddir"; then 27135 ac_top_srcdir=. 27136 else 27137 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 27138 fi ;; 27139 [\\/]* | ?:[\\/]* ) # Absolute path. 27140 ac_srcdir=$srcdir$ac_dir_suffix; 27141 ac_top_srcdir=$srcdir ;; 27142 *) # Relative path. 27143 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 27144 ac_top_srcdir=$ac_top_builddir$srcdir ;; 27145esac 27146 27147# Do not use `cd foo && pwd` to compute absolute paths, because 27148# the directories may not exist. 27149case `pwd` in 27150.) ac_abs_builddir="$ac_dir";; 27151*) 27152 case "$ac_dir" in 27153 .) ac_abs_builddir=`pwd`;; 27154 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 27155 *) ac_abs_builddir=`pwd`/"$ac_dir";; 27156 esac;; 27157esac 27158case $ac_abs_builddir in 27159.) ac_abs_top_builddir=${ac_top_builddir}.;; 27160*) 27161 case ${ac_top_builddir}. in 27162 .) ac_abs_top_builddir=$ac_abs_builddir;; 27163 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 27164 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 27165 esac;; 27166esac 27167case $ac_abs_builddir in 27168.) ac_abs_srcdir=$ac_srcdir;; 27169*) 27170 case $ac_srcdir in 27171 .) ac_abs_srcdir=$ac_abs_builddir;; 27172 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 27173 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 27174 esac;; 27175esac 27176case $ac_abs_builddir in 27177.) ac_abs_top_srcdir=$ac_top_srcdir;; 27178*) 27179 case $ac_top_srcdir in 27180 .) ac_abs_top_srcdir=$ac_abs_builddir;; 27181 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 27182 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 27183 esac;; 27184esac 27185 27186 27187 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 27188echo "$as_me: executing $ac_dest commands" >&6;} 27189 case $ac_dest in 27190 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;; 27191 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;; 27192 examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;; 27193 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;; 27194 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;; 27195 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;; 27196 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;; 27197 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;; 27198 test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;; 27199 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;; 27200 tools/Makefile.JIT ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile.JIT tools/Makefile.JIT ;; 27201 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;; 27202 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;; 27203 esac 27204done 27205_ACEOF 27206 27207cat >>$CONFIG_STATUS <<\_ACEOF 27208 27209{ (exit 0); exit 0; } 27210_ACEOF 27211chmod +x $CONFIG_STATUS 27212ac_clean_files=$ac_clean_files_save 27213 27214 27215# configure is writing to config.log, and then calls config.status. 27216# config.status does its own redirection, appending to config.log. 27217# Unfortunately, on DOS this fails, as config.log is still kept open 27218# by configure, so config.status won't be able to write to it; its 27219# output is simply discarded. So we exec the FD to /dev/null, 27220# effectively closing config.log, so it can be properly (re)opened and 27221# appended to by config.status. When coming back to configure, we 27222# need to make the FD available again. 27223if test "$no_create" != yes; then 27224 ac_cs_success=: 27225 ac_config_status_args= 27226 test "$silent" = yes && 27227 ac_config_status_args="$ac_config_status_args --quiet" 27228 exec 5>/dev/null 27229 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 27230 exec 5>>config.log 27231 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 27232 # would make configure fail if this is the last instruction. 27233 $ac_cs_success || { (exit 1); exit 1; } 27234fi 27235 27236# 27237# CONFIG_SUBDIRS section. 27238# 27239if test "$no_recursion" != yes; then 27240 27241 # Remove --cache-file and --srcdir arguments so they do not pile up. 27242 ac_sub_configure_args= 27243 ac_prev= 27244 for ac_arg in $ac_configure_args; do 27245 if test -n "$ac_prev"; then 27246 ac_prev= 27247 continue 27248 fi 27249 case $ac_arg in 27250 -cache-file | --cache-file | --cache-fil | --cache-fi \ 27251 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 27252 ac_prev=cache_file ;; 27253 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 27254 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 27255 | --c=*) 27256 ;; 27257 --config-cache | -C) 27258 ;; 27259 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 27260 ac_prev=srcdir ;; 27261 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 27262 ;; 27263 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 27264 ac_prev=prefix ;; 27265 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 27266 ;; 27267 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; 27268 esac 27269 done 27270 27271 # Always prepend --prefix to ensure using the same prefix 27272 # in subdir configurations. 27273 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" 27274 27275 ac_popdir=`pwd` 27276 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 27277 27278 # Do not complain, so a configure script can configure whichever 27279 # parts of a large source tree are present. 27280 test -d $srcdir/$ac_dir || continue 27281 27282 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 27283echo "$as_me: configuring in $ac_dir" >&6;} 27284 { if $as_mkdir_p; then 27285 mkdir -p "$ac_dir" 27286 else 27287 as_dir="$ac_dir" 27288 as_dirs= 27289 while test ! -d "$as_dir"; do 27290 as_dirs="$as_dir $as_dirs" 27291 as_dir=`(dirname "$as_dir") 2>/dev/null || 27292$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 27293 X"$as_dir" : 'X\(//\)[^/]' \| \ 27294 X"$as_dir" : 'X\(//\)$' \| \ 27295 X"$as_dir" : 'X\(/\)' \| \ 27296 . : '\(.\)' 2>/dev/null || 27297echo X"$as_dir" | 27298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 27299 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 27300 /^X\(\/\/\)$/{ s//\1/; q; } 27301 /^X\(\/\).*/{ s//\1/; q; } 27302 s/.*/./; q'` 27303 done 27304 test ! -n "$as_dirs" || mkdir $as_dirs 27305 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 27306echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 27307 { (exit 1); exit 1; }; }; } 27308 27309 ac_builddir=. 27310 27311if test "$ac_dir" != .; then 27312 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 27313 # A "../" for each directory in $ac_dir_suffix. 27314 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 27315else 27316 ac_dir_suffix= ac_top_builddir= 27317fi 27318 27319case $srcdir in 27320 .) # No --srcdir option. We are building in place. 27321 ac_srcdir=. 27322 if test -z "$ac_top_builddir"; then 27323 ac_top_srcdir=. 27324 else 27325 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 27326 fi ;; 27327 [\\/]* | ?:[\\/]* ) # Absolute path. 27328 ac_srcdir=$srcdir$ac_dir_suffix; 27329 ac_top_srcdir=$srcdir ;; 27330 *) # Relative path. 27331 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 27332 ac_top_srcdir=$ac_top_builddir$srcdir ;; 27333esac 27334 27335# Do not use `cd foo && pwd` to compute absolute paths, because 27336# the directories may not exist. 27337case `pwd` in 27338.) ac_abs_builddir="$ac_dir";; 27339*) 27340 case "$ac_dir" in 27341 .) ac_abs_builddir=`pwd`;; 27342 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 27343 *) ac_abs_builddir=`pwd`/"$ac_dir";; 27344 esac;; 27345esac 27346case $ac_abs_builddir in 27347.) ac_abs_top_builddir=${ac_top_builddir}.;; 27348*) 27349 case ${ac_top_builddir}. in 27350 .) ac_abs_top_builddir=$ac_abs_builddir;; 27351 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 27352 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 27353 esac;; 27354esac 27355case $ac_abs_builddir in 27356.) ac_abs_srcdir=$ac_srcdir;; 27357*) 27358 case $ac_srcdir in 27359 .) ac_abs_srcdir=$ac_abs_builddir;; 27360 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 27361 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 27362 esac;; 27363esac 27364case $ac_abs_builddir in 27365.) ac_abs_top_srcdir=$ac_top_srcdir;; 27366*) 27367 case $ac_top_srcdir in 27368 .) ac_abs_top_srcdir=$ac_abs_builddir;; 27369 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 27370 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 27371 esac;; 27372esac 27373 27374 27375 cd $ac_dir 27376 27377 # Check for guested configure; otherwise get Cygnus style configure. 27378 if test -f $ac_srcdir/configure.gnu; then 27379 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" 27380 elif test -f $ac_srcdir/configure; then 27381 ac_sub_configure="$SHELL '$ac_srcdir/configure'" 27382 elif test -f $ac_srcdir/configure.in; then 27383 ac_sub_configure=$ac_configure 27384 else 27385 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 27386echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 27387 ac_sub_configure= 27388 fi 27389 27390 # The recursion is here. 27391 if test -n "$ac_sub_configure"; then 27392 # Make the cache file name correct relative to the subdirectory. 27393 case $cache_file in 27394 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 27395 *) # Relative path. 27396 ac_sub_cache_file=$ac_top_builddir$cache_file ;; 27397 esac 27398 27399 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 27400echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 27401 # The eval makes quoting arguments work. 27402 eval $ac_sub_configure $ac_sub_configure_args \ 27403 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || 27404 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 27405echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} 27406 { (exit 1); exit 1; }; } 27407 fi 27408 27409 cd $ac_popdir 27410 done 27411fi 27412 27413 27414if test $bzip2_found -ne 1 ; then 27415 if test $zlib_found -ne 1 ; then 27416 { echo "$as_me:$LINENO: WARNING: *** Neither zlib nor bzip2 compression libraries were found." >&5 27417echo "$as_me: WARNING: *** Neither zlib nor bzip2 compression libraries were found." >&2;} 27418 { echo "$as_me:$LINENO: WARNING: *** Bytecode archives will not support compression!" >&5 27419echo "$as_me: WARNING: *** Bytecode archives will not support compression!" >&2;} 27420 { echo "$as_me:$LINENO: WARNING: *** To correct, install the libraries and and re-run configure." >&5 27421echo "$as_me: WARNING: *** To correct, install the libraries and and re-run configure." >&2;} 27422 fi 27423fi 27424 27425if test "$llvm_cv_llvmgcc_sanity" = "no" ; then 27426 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5 27427echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;} 27428 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5 27429echo "$as_me: WARNING: ***** appear to be working." >&2;} 27430 { echo "$as_me:$LINENO: WARNING: ***** " >&5 27431echo "$as_me: WARNING: ***** " >&2;} 27432 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5 27433echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;} 27434 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5 27435echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;} 27436 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5 27437echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;} 27438fi 27439