configure revision 1281063da2f782dd92ef7954a5cfed264f067147
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.57 for [LLVM] [1.1]. 4# 5# Report bugs to <llvmbugs@cs.uiuc.edu>. 6# 7# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 8# Free Software Foundation, Inc. 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## --------------------- ## 12## M4sh Initialization. ## 13## --------------------- ## 14 15# Be Bourne compatible 16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 17 emulate sh 18 NULLCMD=: 19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 20 # is contrary to our usage. Disable this feature. 21 alias -g '${1+"$@"}'='"$@"' 22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 23 set -o posix 24fi 25 26# Support unset when possible. 27if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 28 as_unset=unset 29else 30 as_unset=false 31fi 32 33 34# Work around bugs in pre-3.0 UWIN ksh. 35$as_unset ENV MAIL MAILPATH 36PS1='$ ' 37PS2='> ' 38PS4='+ ' 39 40# NLS nuisances. 41for as_var in \ 42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 44 LC_TELEPHONE LC_TIME 45do 46 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then 47 eval $as_var=C; export $as_var 48 else 49 $as_unset $as_var 50 fi 51done 52 53# Required to use basename. 54if expr a : '\(a\)' >/dev/null 2>&1; then 55 as_expr=expr 56else 57 as_expr=false 58fi 59 60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 61 as_basename=basename 62else 63 as_basename=false 64fi 65 66 67# Name of the executable. 68as_me=`$as_basename "$0" || 69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 70 X"$0" : 'X\(//\)$' \| \ 71 X"$0" : 'X\(/\)$' \| \ 72 . : '\(.\)' 2>/dev/null || 73echo X/"$0" | 74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 75 /^X\/\(\/\/\)$/{ s//\1/; q; } 76 /^X\/\(\/\).*/{ s//\1/; q; } 77 s/.*/./; q'` 78 79 80# PATH needs CR, and LINENO needs CR and PATH. 81# Avoid depending upon Character Ranges. 82as_cr_letters='abcdefghijklmnopqrstuvwxyz' 83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 84as_cr_Letters=$as_cr_letters$as_cr_LETTERS 85as_cr_digits='0123456789' 86as_cr_alnum=$as_cr_Letters$as_cr_digits 87 88# The user is always right. 89if test "${PATH_SEPARATOR+set}" != set; then 90 echo "#! /bin/sh" >conf$$.sh 91 echo "exit 0" >>conf$$.sh 92 chmod +x conf$$.sh 93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 94 PATH_SEPARATOR=';' 95 else 96 PATH_SEPARATOR=: 97 fi 98 rm -f conf$$.sh 99fi 100 101 102 as_lineno_1=$LINENO 103 as_lineno_2=$LINENO 104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 105 test "x$as_lineno_1" != "x$as_lineno_2" && 106 test "x$as_lineno_3" = "x$as_lineno_2" || { 107 # Find who we are. Look in the path if we contain no path at all 108 # relative or not. 109 case $0 in 110 *[\\/]* ) as_myself=$0 ;; 111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 112for as_dir in $PATH 113do 114 IFS=$as_save_IFS 115 test -z "$as_dir" && as_dir=. 116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 117done 118 119 ;; 120 esac 121 # We did not find ourselves, most probably we were run as `sh COMMAND' 122 # in which case we are not to be found in the path. 123 if test "x$as_myself" = x; then 124 as_myself=$0 125 fi 126 if test ! -f "$as_myself"; then 127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 128 { (exit 1); exit 1; }; } 129 fi 130 case $CONFIG_SHELL in 131 '') 132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 134do 135 IFS=$as_save_IFS 136 test -z "$as_dir" && as_dir=. 137 for as_base in sh bash ksh sh5; do 138 case $as_dir in 139 /*) 140 if ("$as_dir/$as_base" -c ' 141 as_lineno_1=$LINENO 142 as_lineno_2=$LINENO 143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 144 test "x$as_lineno_1" != "x$as_lineno_2" && 145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 148 CONFIG_SHELL=$as_dir/$as_base 149 export CONFIG_SHELL 150 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 151 fi;; 152 esac 153 done 154done 155;; 156 esac 157 158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 159 # uniformly replaced by the line number. The first 'sed' inserts a 160 # line-number line before each line; the second 'sed' does the real 161 # work. The second script uses 'N' to pair each line-number line 162 # with the numbered line, and appends trailing '-' during 163 # substitution so that $LINENO is not a special case at line end. 164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 166 sed '=' <$as_myself | 167 sed ' 168 N 169 s,$,-, 170 : loop 171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 172 t loop 173 s,-$,, 174 s,^['$as_cr_digits']*\n,, 175 ' >$as_me.lineno && 176 chmod +x $as_me.lineno || 177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 178 { (exit 1); exit 1; }; } 179 180 # Don't try to exec as it changes $[0], causing all sort of problems 181 # (the dirname of $[0] is not the place where we might find the 182 # original and so on. Autoconf is especially sensible to this). 183 . ./$as_me.lineno 184 # Exit status is that of the last command. 185 exit 186} 187 188 189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 190 *c*,-n*) ECHO_N= ECHO_C=' 191' ECHO_T=' ' ;; 192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 194esac 195 196if expr a : '\(a\)' >/dev/null 2>&1; then 197 as_expr=expr 198else 199 as_expr=false 200fi 201 202rm -f conf$$ conf$$.exe conf$$.file 203echo >conf$$.file 204if ln -s conf$$.file conf$$ 2>/dev/null; then 205 # We could just check for DJGPP; but this test a) works b) is more generic 206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 207 if test -f conf$$.exe; then 208 # Don't use ln at all; we don't have any links 209 as_ln_s='cp -p' 210 else 211 as_ln_s='ln -s' 212 fi 213elif ln conf$$.file conf$$ 2>/dev/null; then 214 as_ln_s=ln 215else 216 as_ln_s='cp -p' 217fi 218rm -f conf$$ conf$$.exe conf$$.file 219 220if mkdir -p . 2>/dev/null; then 221 as_mkdir_p=: 222else 223 as_mkdir_p=false 224fi 225 226as_executable_p="test -f" 227 228# Sed expression to map a string onto a valid CPP name. 229as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 230 231# Sed expression to map a string onto a valid variable name. 232as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 233 234 235# IFS 236# We need space, tab and new line, in precisely that order. 237as_nl=' 238' 239IFS=" $as_nl" 240 241# CDPATH. 242$as_unset CDPATH 243 244 245 246# Check that we are running under the correct shell. 247SHELL=${CONFIG_SHELL-/bin/sh} 248 249case X$ECHO in 250X*--fallback-echo) 251 # Remove one level of quotation (which was required for Make). 252 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 253 ;; 254esac 255 256echo=${ECHO-echo} 257if test "X$1" = X--no-reexec; then 258 # Discard the --no-reexec flag, and continue. 259 shift 260elif test "X$1" = X--fallback-echo; then 261 # Avoid inline document here, it may be left over 262 : 263elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 264 # Yippee, $echo works! 265 : 266else 267 # Restart under the correct shell. 268 exec $SHELL "$0" --no-reexec ${1+"$@"} 269fi 270 271if test "X$1" = X--fallback-echo; then 272 # used as fallback echo 273 shift 274 cat <<EOF 275$* 276EOF 277 exit 0 278fi 279 280# The HP-UX ksh and POSIX shell print the target directory to stdout 281# if CDPATH is set. 282if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 283 284if test -z "$ECHO"; then 285if test "X${echo_test_string+set}" != Xset; then 286# find a string as large as possible, as long as the shell can cope with it 287 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 288 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 289 if (echo_test_string="`eval $cmd`") 2>/dev/null && 290 echo_test_string="`eval $cmd`" && 291 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 292 then 293 break 294 fi 295 done 296fi 297 298if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 299 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 300 test "X$echo_testing_string" = "X$echo_test_string"; then 301 : 302else 303 # The Solaris, AIX, and Digital Unix default echo programs unquote 304 # backslashes. This makes it impossible to quote backslashes using 305 # echo "$something" | sed 's/\\/\\\\/g' 306 # 307 # So, first we look for a working echo in the user's PATH. 308 309 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 310 for dir in $PATH /usr/ucb; do 311 IFS="$lt_save_ifs" 312 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 313 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 314 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 315 test "X$echo_testing_string" = "X$echo_test_string"; then 316 echo="$dir/echo" 317 break 318 fi 319 done 320 IFS="$lt_save_ifs" 321 322 if test "X$echo" = Xecho; then 323 # We didn't find a better echo, so look for alternatives. 324 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 325 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 326 test "X$echo_testing_string" = "X$echo_test_string"; then 327 # This shell has a builtin print -r that does the trick. 328 echo='print -r' 329 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 330 test "X$CONFIG_SHELL" != X/bin/ksh; then 331 # If we have ksh, try running configure again with it. 332 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 333 export ORIGINAL_CONFIG_SHELL 334 CONFIG_SHELL=/bin/ksh 335 export CONFIG_SHELL 336 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 337 else 338 # Try using printf. 339 echo='printf %s\n' 340 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 341 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 342 test "X$echo_testing_string" = "X$echo_test_string"; then 343 # Cool, printf works 344 : 345 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 346 test "X$echo_testing_string" = 'X\t' && 347 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 348 test "X$echo_testing_string" = "X$echo_test_string"; then 349 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 350 export CONFIG_SHELL 351 SHELL="$CONFIG_SHELL" 352 export SHELL 353 echo="$CONFIG_SHELL $0 --fallback-echo" 354 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 355 test "X$echo_testing_string" = 'X\t' && 356 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 357 test "X$echo_testing_string" = "X$echo_test_string"; then 358 echo="$CONFIG_SHELL $0 --fallback-echo" 359 else 360 # maybe with a smaller string... 361 prev=: 362 363 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 364 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 365 then 366 break 367 fi 368 prev="$cmd" 369 done 370 371 if test "$prev" != 'sed 50q "$0"'; then 372 echo_test_string=`eval $prev` 373 export echo_test_string 374 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 375 else 376 # Oops. We lost completely, so just stick with echo. 377 echo=echo 378 fi 379 fi 380 fi 381 fi 382fi 383fi 384 385# Copy echo and quote the copy suitably for passing to libtool from 386# the Makefile, instead of quoting the original, which is used later. 387ECHO=$echo 388if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 389 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 390fi 391 392 393 394 395tagnames=`echo "$tagnames,CXX" | sed 's/^,//'` 396 397tagnames=`echo "$tagnames,F77" | sed 's/^,//'` 398 399# Name of the host. 400# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 401# so uname gets run too. 402ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 403 404exec 6>&1 405 406# 407# Initializations. 408# 409ac_default_prefix=/usr/local 410ac_config_libobj_dir=. 411cross_compiling=no 412subdirs= 413MFLAGS= 414MAKEFLAGS= 415SHELL=${CONFIG_SHELL-/bin/sh} 416 417# Maximum number of lines to put in a shell here document. 418# This variable seems obsolete. It should probably be removed, and 419# only ac_max_sed_lines should be used. 420: ${ac_max_here_lines=38} 421 422# Identity of this package. 423PACKAGE_NAME='[LLVM]' 424PACKAGE_TARNAME='--llvm--' 425PACKAGE_VERSION='[1.1]' 426PACKAGE_STRING='[LLVM] [1.1]' 427PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu' 428 429ac_subdirs_all="$ac_subdirs_all projects/${i}" 430# Factoring default headers for most tests. 431ac_includes_default="\ 432#include <stdio.h> 433#if HAVE_SYS_TYPES_H 434# include <sys/types.h> 435#endif 436#if HAVE_SYS_STAT_H 437# include <sys/stat.h> 438#endif 439#if STDC_HEADERS 440# include <stdlib.h> 441# include <stddef.h> 442#else 443# if HAVE_STDLIB_H 444# include <stdlib.h> 445# endif 446#endif 447#if HAVE_STRING_H 448# if !STDC_HEADERS && HAVE_MEMORY_H 449# include <memory.h> 450# endif 451# include <string.h> 452#endif 453#if HAVE_STRINGS_H 454# include <strings.h> 455#endif 456#if HAVE_INTTYPES_H 457# include <inttypes.h> 458#else 459# if HAVE_STDINT_H 460# include <stdint.h> 461# endif 462#endif 463#if HAVE_UNISTD_H 464# include <unistd.h> 465#endif" 466 467ac_unique_file=""Makefile.config.in"" 468ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS subdirs INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVMGCCDIR ARCH CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP ifGNUmake LEX LEXLIB LEX_OUTPUT_ROOT 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 DOT ETAGS PYTHON QMTEST ALLOCA MMAP_FILE ENABLE_OPTIMIZED SPEC_ROOT USE_SPEC UPB DISABLE_LLC_DIFFS JIT BCR PAPIDIR LIBOBJS LTLIBOBJS' 469ac_subst_files='' 470 471# Initialize some variables set by options. 472ac_init_help= 473ac_init_version=false 474# The variables have the same names as the options, with 475# dashes changed to underlines. 476cache_file=/dev/null 477exec_prefix=NONE 478no_create= 479no_recursion= 480prefix=NONE 481program_prefix=NONE 482program_suffix=NONE 483program_transform_name=s,x,x, 484silent= 485site= 486srcdir= 487verbose= 488x_includes=NONE 489x_libraries=NONE 490 491# Installation directory options. 492# These are left unexpanded so users can "make install exec_prefix=/foo" 493# and all the variables that are supposed to be based on exec_prefix 494# by default will actually change. 495# Use braces instead of parens because sh, perl, etc. also accept them. 496bindir='${exec_prefix}/bin' 497sbindir='${exec_prefix}/sbin' 498libexecdir='${exec_prefix}/libexec' 499datadir='${prefix}/share' 500sysconfdir='${prefix}/etc' 501sharedstatedir='${prefix}/com' 502localstatedir='${prefix}/var' 503libdir='${exec_prefix}/lib' 504includedir='${prefix}/include' 505oldincludedir='/usr/include' 506infodir='${prefix}/info' 507mandir='${prefix}/man' 508 509ac_prev= 510for ac_option 511do 512 # If the previous option needs an argument, assign it. 513 if test -n "$ac_prev"; then 514 eval "$ac_prev=\$ac_option" 515 ac_prev= 516 continue 517 fi 518 519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 520 521 # Accept the important Cygnus configure options, so we can diagnose typos. 522 523 case $ac_option in 524 525 -bindir | --bindir | --bindi | --bind | --bin | --bi) 526 ac_prev=bindir ;; 527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 528 bindir=$ac_optarg ;; 529 530 -build | --build | --buil | --bui | --bu) 531 ac_prev=build_alias ;; 532 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 533 build_alias=$ac_optarg ;; 534 535 -cache-file | --cache-file | --cache-fil | --cache-fi \ 536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 537 ac_prev=cache_file ;; 538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 540 cache_file=$ac_optarg ;; 541 542 --config-cache | -C) 543 cache_file=config.cache ;; 544 545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 546 ac_prev=datadir ;; 547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 548 | --da=*) 549 datadir=$ac_optarg ;; 550 551 -disable-* | --disable-*) 552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 553 # Reject names that are not valid shell variable names. 554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 556 { (exit 1); exit 1; }; } 557 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 558 eval "enable_$ac_feature=no" ;; 559 560 -enable-* | --enable-*) 561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 562 # Reject names that are not valid shell variable names. 563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 565 { (exit 1); exit 1; }; } 566 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 567 case $ac_option in 568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 569 *) ac_optarg=yes ;; 570 esac 571 eval "enable_$ac_feature='$ac_optarg'" ;; 572 573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 575 | --exec | --exe | --ex) 576 ac_prev=exec_prefix ;; 577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 579 | --exec=* | --exe=* | --ex=*) 580 exec_prefix=$ac_optarg ;; 581 582 -gas | --gas | --ga | --g) 583 # Obsolete; use --with-gas. 584 with_gas=yes ;; 585 586 -help | --help | --hel | --he | -h) 587 ac_init_help=long ;; 588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 589 ac_init_help=recursive ;; 590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 591 ac_init_help=short ;; 592 593 -host | --host | --hos | --ho) 594 ac_prev=host_alias ;; 595 -host=* | --host=* | --hos=* | --ho=*) 596 host_alias=$ac_optarg ;; 597 598 -includedir | --includedir | --includedi | --included | --include \ 599 | --includ | --inclu | --incl | --inc) 600 ac_prev=includedir ;; 601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 602 | --includ=* | --inclu=* | --incl=* | --inc=*) 603 includedir=$ac_optarg ;; 604 605 -infodir | --infodir | --infodi | --infod | --info | --inf) 606 ac_prev=infodir ;; 607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 608 infodir=$ac_optarg ;; 609 610 -libdir | --libdir | --libdi | --libd) 611 ac_prev=libdir ;; 612 -libdir=* | --libdir=* | --libdi=* | --libd=*) 613 libdir=$ac_optarg ;; 614 615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 616 | --libexe | --libex | --libe) 617 ac_prev=libexecdir ;; 618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 619 | --libexe=* | --libex=* | --libe=*) 620 libexecdir=$ac_optarg ;; 621 622 -localstatedir | --localstatedir | --localstatedi | --localstated \ 623 | --localstate | --localstat | --localsta | --localst \ 624 | --locals | --local | --loca | --loc | --lo) 625 ac_prev=localstatedir ;; 626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 629 localstatedir=$ac_optarg ;; 630 631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 632 ac_prev=mandir ;; 633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 634 mandir=$ac_optarg ;; 635 636 -nfp | --nfp | --nf) 637 # Obsolete; use --without-fp. 638 with_fp=no ;; 639 640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 641 | --no-cr | --no-c | -n) 642 no_create=yes ;; 643 644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 646 no_recursion=yes ;; 647 648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 650 | --oldin | --oldi | --old | --ol | --o) 651 ac_prev=oldincludedir ;; 652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 655 oldincludedir=$ac_optarg ;; 656 657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 658 ac_prev=prefix ;; 659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 660 prefix=$ac_optarg ;; 661 662 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 663 | --program-pre | --program-pr | --program-p) 664 ac_prev=program_prefix ;; 665 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 667 program_prefix=$ac_optarg ;; 668 669 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 670 | --program-suf | --program-su | --program-s) 671 ac_prev=program_suffix ;; 672 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 674 program_suffix=$ac_optarg ;; 675 676 -program-transform-name | --program-transform-name \ 677 | --program-transform-nam | --program-transform-na \ 678 | --program-transform-n | --program-transform- \ 679 | --program-transform | --program-transfor \ 680 | --program-transfo | --program-transf \ 681 | --program-trans | --program-tran \ 682 | --progr-tra | --program-tr | --program-t) 683 ac_prev=program_transform_name ;; 684 -program-transform-name=* | --program-transform-name=* \ 685 | --program-transform-nam=* | --program-transform-na=* \ 686 | --program-transform-n=* | --program-transform-=* \ 687 | --program-transform=* | --program-transfor=* \ 688 | --program-transfo=* | --program-transf=* \ 689 | --program-trans=* | --program-tran=* \ 690 | --progr-tra=* | --program-tr=* | --program-t=*) 691 program_transform_name=$ac_optarg ;; 692 693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 694 | -silent | --silent | --silen | --sile | --sil) 695 silent=yes ;; 696 697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 698 ac_prev=sbindir ;; 699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 700 | --sbi=* | --sb=*) 701 sbindir=$ac_optarg ;; 702 703 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 705 | --sharedst | --shareds | --shared | --share | --shar \ 706 | --sha | --sh) 707 ac_prev=sharedstatedir ;; 708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 711 | --sha=* | --sh=*) 712 sharedstatedir=$ac_optarg ;; 713 714 -site | --site | --sit) 715 ac_prev=site ;; 716 -site=* | --site=* | --sit=*) 717 site=$ac_optarg ;; 718 719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 720 ac_prev=srcdir ;; 721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 722 srcdir=$ac_optarg ;; 723 724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 725 | --syscon | --sysco | --sysc | --sys | --sy) 726 ac_prev=sysconfdir ;; 727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 729 sysconfdir=$ac_optarg ;; 730 731 -target | --target | --targe | --targ | --tar | --ta | --t) 732 ac_prev=target_alias ;; 733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 734 target_alias=$ac_optarg ;; 735 736 -v | -verbose | --verbose | --verbos | --verbo | --verb) 737 verbose=yes ;; 738 739 -version | --version | --versio | --versi | --vers | -V) 740 ac_init_version=: ;; 741 742 -with-* | --with-*) 743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 744 # Reject names that are not valid shell variable names. 745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 746 { echo "$as_me: error: invalid package name: $ac_package" >&2 747 { (exit 1); exit 1; }; } 748 ac_package=`echo $ac_package| sed 's/-/_/g'` 749 case $ac_option in 750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 751 *) ac_optarg=yes ;; 752 esac 753 eval "with_$ac_package='$ac_optarg'" ;; 754 755 -without-* | --without-*) 756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 757 # Reject names that are not valid shell variable names. 758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 759 { echo "$as_me: error: invalid package name: $ac_package" >&2 760 { (exit 1); exit 1; }; } 761 ac_package=`echo $ac_package | sed 's/-/_/g'` 762 eval "with_$ac_package=no" ;; 763 764 --x) 765 # Obsolete; use --with-x. 766 with_x=yes ;; 767 768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 769 | --x-incl | --x-inc | --x-in | --x-i) 770 ac_prev=x_includes ;; 771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 773 x_includes=$ac_optarg ;; 774 775 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 777 ac_prev=x_libraries ;; 778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 780 x_libraries=$ac_optarg ;; 781 782 -*) { echo "$as_me: error: unrecognized option: $ac_option 783Try \`$0 --help' for more information." >&2 784 { (exit 1); exit 1; }; } 785 ;; 786 787 *=*) 788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 789 # Reject names that are not valid shell variable names. 790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 792 { (exit 1); exit 1; }; } 793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 794 eval "$ac_envvar='$ac_optarg'" 795 export $ac_envvar ;; 796 797 *) 798 # FIXME: should be removed in autoconf 3.0. 799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 803 ;; 804 805 esac 806done 807 808if test -n "$ac_prev"; then 809 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 810 { echo "$as_me: error: missing argument to $ac_option" >&2 811 { (exit 1); exit 1; }; } 812fi 813 814# Be sure to have absolute paths. 815for ac_var in exec_prefix prefix 816do 817 eval ac_val=$`echo $ac_var` 818 case $ac_val in 819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 821 { (exit 1); exit 1; }; };; 822 esac 823done 824 825# Be sure to have absolute paths. 826for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 827 localstatedir libdir includedir oldincludedir infodir mandir 828do 829 eval ac_val=$`echo $ac_var` 830 case $ac_val in 831 [\\/$]* | ?:[\\/]* ) ;; 832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 833 { (exit 1); exit 1; }; };; 834 esac 835done 836 837# There might be people who depend on the old broken behavior: `$host' 838# used to hold the argument of --host etc. 839# FIXME: To remove some day. 840build=$build_alias 841host=$host_alias 842target=$target_alias 843 844# FIXME: To remove some day. 845if test "x$host_alias" != x; then 846 if test "x$build_alias" = x; then 847 cross_compiling=maybe 848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 849 If a cross compiler is detected then cross compile mode will be used." >&2 850 elif test "x$build_alias" != "x$host_alias"; then 851 cross_compiling=yes 852 fi 853fi 854 855ac_tool_prefix= 856test -n "$host_alias" && ac_tool_prefix=$host_alias- 857 858test "$silent" = yes && exec 6>/dev/null 859 860 861# Find the source files, if location was not specified. 862if test -z "$srcdir"; then 863 ac_srcdir_defaulted=yes 864 # Try the directory containing this script, then its parent. 865 ac_confdir=`(dirname "$0") 2>/dev/null || 866$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 867 X"$0" : 'X\(//\)[^/]' \| \ 868 X"$0" : 'X\(//\)$' \| \ 869 X"$0" : 'X\(/\)' \| \ 870 . : '\(.\)' 2>/dev/null || 871echo X"$0" | 872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 873 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 874 /^X\(\/\/\)$/{ s//\1/; q; } 875 /^X\(\/\).*/{ s//\1/; q; } 876 s/.*/./; q'` 877 srcdir=$ac_confdir 878 if test ! -r $srcdir/$ac_unique_file; then 879 srcdir=.. 880 fi 881else 882 ac_srcdir_defaulted=no 883fi 884if test ! -r $srcdir/$ac_unique_file; then 885 if test "$ac_srcdir_defaulted" = yes; then 886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 887 { (exit 1); exit 1; }; } 888 else 889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 890 { (exit 1); exit 1; }; } 891 fi 892fi 893(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 895 { (exit 1); exit 1; }; } 896srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 897ac_env_build_alias_set=${build_alias+set} 898ac_env_build_alias_value=$build_alias 899ac_cv_env_build_alias_set=${build_alias+set} 900ac_cv_env_build_alias_value=$build_alias 901ac_env_host_alias_set=${host_alias+set} 902ac_env_host_alias_value=$host_alias 903ac_cv_env_host_alias_set=${host_alias+set} 904ac_cv_env_host_alias_value=$host_alias 905ac_env_target_alias_set=${target_alias+set} 906ac_env_target_alias_value=$target_alias 907ac_cv_env_target_alias_set=${target_alias+set} 908ac_cv_env_target_alias_value=$target_alias 909ac_env_CXX_set=${CXX+set} 910ac_env_CXX_value=$CXX 911ac_cv_env_CXX_set=${CXX+set} 912ac_cv_env_CXX_value=$CXX 913ac_env_CXXFLAGS_set=${CXXFLAGS+set} 914ac_env_CXXFLAGS_value=$CXXFLAGS 915ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 916ac_cv_env_CXXFLAGS_value=$CXXFLAGS 917ac_env_LDFLAGS_set=${LDFLAGS+set} 918ac_env_LDFLAGS_value=$LDFLAGS 919ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 920ac_cv_env_LDFLAGS_value=$LDFLAGS 921ac_env_CPPFLAGS_set=${CPPFLAGS+set} 922ac_env_CPPFLAGS_value=$CPPFLAGS 923ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 924ac_cv_env_CPPFLAGS_value=$CPPFLAGS 925ac_env_CC_set=${CC+set} 926ac_env_CC_value=$CC 927ac_cv_env_CC_set=${CC+set} 928ac_cv_env_CC_value=$CC 929ac_env_CFLAGS_set=${CFLAGS+set} 930ac_env_CFLAGS_value=$CFLAGS 931ac_cv_env_CFLAGS_set=${CFLAGS+set} 932ac_cv_env_CFLAGS_value=$CFLAGS 933ac_env_CPP_set=${CPP+set} 934ac_env_CPP_value=$CPP 935ac_cv_env_CPP_set=${CPP+set} 936ac_cv_env_CPP_value=$CPP 937ac_env_CXXCPP_set=${CXXCPP+set} 938ac_env_CXXCPP_value=$CXXCPP 939ac_cv_env_CXXCPP_set=${CXXCPP+set} 940ac_cv_env_CXXCPP_value=$CXXCPP 941ac_env_F77_set=${F77+set} 942ac_env_F77_value=$F77 943ac_cv_env_F77_set=${F77+set} 944ac_cv_env_F77_value=$F77 945ac_env_FFLAGS_set=${FFLAGS+set} 946ac_env_FFLAGS_value=$FFLAGS 947ac_cv_env_FFLAGS_set=${FFLAGS+set} 948ac_cv_env_FFLAGS_value=$FFLAGS 949 950# 951# Report the --help message. 952# 953if test "$ac_init_help" = "long"; then 954 # Omit some internal or obsolete options to make the list less imposing. 955 # This message is too long to be a string in the A/UX 3.1 sh. 956 cat <<_ACEOF 957\`configure' configures [LLVM] [1.1] to adapt to many kinds of systems. 958 959Usage: $0 [OPTION]... [VAR=VALUE]... 960 961To assign environment variables (e.g., CC, CFLAGS...), specify them as 962VAR=VALUE. See below for descriptions of some of the useful variables. 963 964Defaults for the options are specified in brackets. 965 966Configuration: 967 -h, --help display this help and exit 968 --help=short display options specific to this package 969 --help=recursive display the short help of all the included packages 970 -V, --version display version information and exit 971 -q, --quiet, --silent do not print \`checking...' messages 972 --cache-file=FILE cache test results in FILE [disabled] 973 -C, --config-cache alias for \`--cache-file=config.cache' 974 -n, --no-create do not create output files 975 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 976 977_ACEOF 978 979 cat <<_ACEOF 980Installation directories: 981 --prefix=PREFIX install architecture-independent files in PREFIX 982 [$ac_default_prefix] 983 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 984 [PREFIX] 985 986By default, \`make install' will install all the files in 987\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 988an installation prefix other than \`$ac_default_prefix' using \`--prefix', 989for instance \`--prefix=\$HOME'. 990 991For better control, use the options below. 992 993Fine tuning of the installation directories: 994 --bindir=DIR user executables [EPREFIX/bin] 995 --sbindir=DIR system admin executables [EPREFIX/sbin] 996 --libexecdir=DIR program executables [EPREFIX/libexec] 997 --datadir=DIR read-only architecture-independent data [PREFIX/share] 998 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 999 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1000 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1001 --libdir=DIR object code libraries [EPREFIX/lib] 1002 --includedir=DIR C header files [PREFIX/include] 1003 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1004 --infodir=DIR info documentation [PREFIX/info] 1005 --mandir=DIR man documentation [PREFIX/man] 1006_ACEOF 1007 1008 cat <<\_ACEOF 1009 1010System types: 1011 --build=BUILD configure for building on BUILD [guessed] 1012 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1013 --target=TARGET configure for building compilers for TARGET [HOST] 1014_ACEOF 1015fi 1016 1017if test -n "$ac_init_help"; then 1018 case $ac_init_help in 1019 short | recursive ) echo "Configuration of [LLVM] [1.1]:";; 1020 esac 1021 cat <<\_ACEOF 1022 1023Optional Features: 1024 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1025 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1026 --enable-shared[=PKGS] 1027 build shared libraries [default=yes] 1028 --enable-static[=PKGS] 1029 build static libraries [default=yes] 1030 --enable-fast-install[=PKGS] 1031 optimize for fast installation [default=yes] 1032 --disable-libtool-lock avoid locking (might break parallel builds) 1033 --enable-optimized Compile with optimizations enabled (default is NO) 1034 --enable-spec2000 Compile SPEC 2000 benchmarks (default is NO) 1035 --enable-precompiled_bytecode 1036 Use pre-compiled bytecode (default is NO) 1037 --enable-llc_diffs Enable LLC Diffs when testing (default is YES) 1038 --enable-jit Enable Just In Time Compiling (default is YES) 1039 1040Optional Packages: 1041 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1042 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1043 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1044 --with-pic try to use only PIC/non-PIC objects [default=use 1045 both] 1046 --with-tags[=TAGS] 1047 include additional configurations [automatic] 1048 --with-llvmgccdir Location of LLVM GCC front-end 1049 --with-bcrepos Location of Bytecode Repository 1050 --with-papi Location of PAPI 1051 1052Some influential environment variables: 1053 CXX C++ compiler command 1054 CXXFLAGS C++ compiler flags 1055 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1056 nonstandard directory <lib dir> 1057 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1058 headers in a nonstandard directory <include dir> 1059 CC C compiler command 1060 CFLAGS C compiler flags 1061 CPP C preprocessor 1062 CXXCPP C++ preprocessor 1063 F77 Fortran 77 compiler command 1064 FFLAGS Fortran 77 compiler flags 1065 1066Use these variables to override the choices made by `configure' or to help 1067it to find libraries and programs with nonstandard names/locations. 1068 1069Report bugs to <llvmbugs@cs.uiuc.edu>. 1070_ACEOF 1071fi 1072 1073if test "$ac_init_help" = "recursive"; then 1074 # If there are subdirs, report their specific --help. 1075 ac_popdir=`pwd` 1076 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1077 test -d $ac_dir || continue 1078 ac_builddir=. 1079 1080if test "$ac_dir" != .; then 1081 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1082 # A "../" for each directory in $ac_dir_suffix. 1083 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 1084else 1085 ac_dir_suffix= ac_top_builddir= 1086fi 1087 1088case $srcdir in 1089 .) # No --srcdir option. We are building in place. 1090 ac_srcdir=. 1091 if test -z "$ac_top_builddir"; then 1092 ac_top_srcdir=. 1093 else 1094 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 1095 fi ;; 1096 [\\/]* | ?:[\\/]* ) # Absolute path. 1097 ac_srcdir=$srcdir$ac_dir_suffix; 1098 ac_top_srcdir=$srcdir ;; 1099 *) # Relative path. 1100 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 1101 ac_top_srcdir=$ac_top_builddir$srcdir ;; 1102esac 1103# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 1104# absolute. 1105ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 1106ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` 1107ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 1108ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 1109 1110 cd $ac_dir 1111 # Check for guested configure; otherwise get Cygnus style configure. 1112 if test -f $ac_srcdir/configure.gnu; then 1113 echo 1114 $SHELL $ac_srcdir/configure.gnu --help=recursive 1115 elif test -f $ac_srcdir/configure; then 1116 echo 1117 $SHELL $ac_srcdir/configure --help=recursive 1118 elif test -f $ac_srcdir/configure.ac || 1119 test -f $ac_srcdir/configure.in; then 1120 echo 1121 $ac_configure --help 1122 else 1123 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1124 fi 1125 cd $ac_popdir 1126 done 1127fi 1128 1129test -n "$ac_init_help" && exit 0 1130if $ac_init_version; then 1131 cat <<\_ACEOF 1132[LLVM] configure [1.1] 1133generated by GNU Autoconf 2.57 1134 1135Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 1136Free Software Foundation, Inc. 1137This configure script is free software; the Free Software Foundation 1138gives unlimited permission to copy, distribute and modify it. 1139_ACEOF 1140 exit 0 1141fi 1142exec 5>config.log 1143cat >&5 <<_ACEOF 1144This file contains any messages produced by compilers while 1145running configure, to aid debugging if configure makes a mistake. 1146 1147It was created by [LLVM] $as_me [1.1], which was 1148generated by GNU Autoconf 2.57. Invocation command line was 1149 1150 $ $0 $@ 1151 1152_ACEOF 1153{ 1154cat <<_ASUNAME 1155## --------- ## 1156## Platform. ## 1157## --------- ## 1158 1159hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1160uname -m = `(uname -m) 2>/dev/null || echo unknown` 1161uname -r = `(uname -r) 2>/dev/null || echo unknown` 1162uname -s = `(uname -s) 2>/dev/null || echo unknown` 1163uname -v = `(uname -v) 2>/dev/null || echo unknown` 1164 1165/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1166/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1167 1168/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1169/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1170/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1171hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1172/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1173/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1174/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1175 1176_ASUNAME 1177 1178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1179for as_dir in $PATH 1180do 1181 IFS=$as_save_IFS 1182 test -z "$as_dir" && as_dir=. 1183 echo "PATH: $as_dir" 1184done 1185 1186} >&5 1187 1188cat >&5 <<_ACEOF 1189 1190 1191## ----------- ## 1192## Core tests. ## 1193## ----------- ## 1194 1195_ACEOF 1196 1197 1198# Keep a trace of the command line. 1199# Strip out --no-create and --no-recursion so they do not pile up. 1200# Strip out --silent because we don't want to record it for future runs. 1201# Also quote any args containing shell meta-characters. 1202# Make two passes to allow for proper duplicate-argument suppression. 1203ac_configure_args= 1204ac_configure_args0= 1205ac_configure_args1= 1206ac_sep= 1207ac_must_keep_next=false 1208for ac_pass in 1 2 1209do 1210 for ac_arg 1211 do 1212 case $ac_arg in 1213 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1214 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1215 | -silent | --silent | --silen | --sile | --sil) 1216 continue ;; 1217 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1218 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1219 esac 1220 case $ac_pass in 1221 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1222 2) 1223 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1224 if test $ac_must_keep_next = true; then 1225 ac_must_keep_next=false # Got value, back to normal. 1226 else 1227 case $ac_arg in 1228 *=* | --config-cache | -C | -disable-* | --disable-* \ 1229 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1230 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1231 | -with-* | --with-* | -without-* | --without-* | --x) 1232 case "$ac_configure_args0 " in 1233 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1234 esac 1235 ;; 1236 -* ) ac_must_keep_next=true ;; 1237 esac 1238 fi 1239 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1240 # Get rid of the leading space. 1241 ac_sep=" " 1242 ;; 1243 esac 1244 done 1245done 1246$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1247$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1248 1249# When interrupted or exit'd, cleanup temporary files, and complete 1250# config.log. We remove comments because anyway the quotes in there 1251# would cause problems or look ugly. 1252# WARNING: Be sure not to use single quotes in there, as some shells, 1253# such as our DU 5.0 friend, will then `close' the trap. 1254trap 'exit_status=$? 1255 # Save into config.log some information that might help in debugging. 1256 { 1257 echo 1258 1259 cat <<\_ASBOX 1260## ---------------- ## 1261## Cache variables. ## 1262## ---------------- ## 1263_ASBOX 1264 echo 1265 # The following way of writing the cache mishandles newlines in values, 1266{ 1267 (set) 2>&1 | 1268 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1269 *ac_space=\ *) 1270 sed -n \ 1271 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1272 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1273 ;; 1274 *) 1275 sed -n \ 1276 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1277 ;; 1278 esac; 1279} 1280 echo 1281 1282 cat <<\_ASBOX 1283## ----------------- ## 1284## Output variables. ## 1285## ----------------- ## 1286_ASBOX 1287 echo 1288 for ac_var in $ac_subst_vars 1289 do 1290 eval ac_val=$`echo $ac_var` 1291 echo "$ac_var='"'"'$ac_val'"'"'" 1292 done | sort 1293 echo 1294 1295 if test -n "$ac_subst_files"; then 1296 cat <<\_ASBOX 1297## ------------- ## 1298## Output files. ## 1299## ------------- ## 1300_ASBOX 1301 echo 1302 for ac_var in $ac_subst_files 1303 do 1304 eval ac_val=$`echo $ac_var` 1305 echo "$ac_var='"'"'$ac_val'"'"'" 1306 done | sort 1307 echo 1308 fi 1309 1310 if test -s confdefs.h; then 1311 cat <<\_ASBOX 1312## ----------- ## 1313## confdefs.h. ## 1314## ----------- ## 1315_ASBOX 1316 echo 1317 sed "/^$/d" confdefs.h | sort 1318 echo 1319 fi 1320 test "$ac_signal" != 0 && 1321 echo "$as_me: caught signal $ac_signal" 1322 echo "$as_me: exit $exit_status" 1323 } >&5 1324 rm -f core core.* *.core && 1325 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1326 exit $exit_status 1327 ' 0 1328for ac_signal in 1 2 13 15; do 1329 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1330done 1331ac_signal=0 1332 1333# confdefs.h avoids OS command line length limits that DEFS can exceed. 1334rm -rf conftest* confdefs.h 1335# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1336echo >confdefs.h 1337 1338# Predefined preprocessor variables. 1339 1340cat >>confdefs.h <<_ACEOF 1341#define PACKAGE_NAME "$PACKAGE_NAME" 1342_ACEOF 1343 1344 1345cat >>confdefs.h <<_ACEOF 1346#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1347_ACEOF 1348 1349 1350cat >>confdefs.h <<_ACEOF 1351#define PACKAGE_VERSION "$PACKAGE_VERSION" 1352_ACEOF 1353 1354 1355cat >>confdefs.h <<_ACEOF 1356#define PACKAGE_STRING "$PACKAGE_STRING" 1357_ACEOF 1358 1359 1360cat >>confdefs.h <<_ACEOF 1361#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1362_ACEOF 1363 1364 1365# Let the site file select an alternate cache file if it wants to. 1366# Prefer explicitly selected file to automatically selected ones. 1367if test -z "$CONFIG_SITE"; then 1368 if test "x$prefix" != xNONE; then 1369 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1370 else 1371 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1372 fi 1373fi 1374for ac_site_file in $CONFIG_SITE; do 1375 if test -r "$ac_site_file"; then 1376 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1377echo "$as_me: loading site script $ac_site_file" >&6;} 1378 sed 's/^/| /' "$ac_site_file" >&5 1379 . "$ac_site_file" 1380 fi 1381done 1382 1383if test -r "$cache_file"; then 1384 # Some versions of bash will fail to source /dev/null (special 1385 # files actually), so we avoid doing that. 1386 if test -f "$cache_file"; then 1387 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1388echo "$as_me: loading cache $cache_file" >&6;} 1389 case $cache_file in 1390 [\\/]* | ?:[\\/]* ) . $cache_file;; 1391 *) . ./$cache_file;; 1392 esac 1393 fi 1394else 1395 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1396echo "$as_me: creating cache $cache_file" >&6;} 1397 >$cache_file 1398fi 1399 1400# Check that the precious variables saved in the cache have kept the same 1401# value. 1402ac_cache_corrupted=false 1403for ac_var in `(set) 2>&1 | 1404 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1405 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1406 eval ac_new_set=\$ac_env_${ac_var}_set 1407 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1408 eval ac_new_val="\$ac_env_${ac_var}_value" 1409 case $ac_old_set,$ac_new_set in 1410 set,) 1411 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1412echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1413 ac_cache_corrupted=: ;; 1414 ,set) 1415 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1416echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1417 ac_cache_corrupted=: ;; 1418 ,);; 1419 *) 1420 if test "x$ac_old_val" != "x$ac_new_val"; then 1421 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1422echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1423 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1424echo "$as_me: former value: $ac_old_val" >&2;} 1425 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1426echo "$as_me: current value: $ac_new_val" >&2;} 1427 ac_cache_corrupted=: 1428 fi;; 1429 esac 1430 # Pass precious variables to config.status. 1431 if test "$ac_new_set" = set; then 1432 case $ac_new_val in 1433 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1434 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1435 *) ac_arg=$ac_var=$ac_new_val ;; 1436 esac 1437 case " $ac_configure_args " in 1438 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1439 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1440 esac 1441 fi 1442done 1443if $ac_cache_corrupted; then 1444 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1445echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1446 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1447echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1448 { (exit 1); exit 1; }; } 1449fi 1450 1451ac_ext=c 1452ac_cpp='$CPP $CPPFLAGS' 1453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1455ac_compiler_gnu=$ac_cv_c_compiler_gnu 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484ac_aux_dir= 1485for ac_dir in autoconf $srcdir/autoconf; do 1486 if test -f $ac_dir/install-sh; then 1487 ac_aux_dir=$ac_dir 1488 ac_install_sh="$ac_aux_dir/install-sh -c" 1489 break 1490 elif test -f $ac_dir/install.sh; then 1491 ac_aux_dir=$ac_dir 1492 ac_install_sh="$ac_aux_dir/install.sh -c" 1493 break 1494 elif test -f $ac_dir/shtool; then 1495 ac_aux_dir=$ac_dir 1496 ac_install_sh="$ac_aux_dir/shtool install -c" 1497 break 1498 fi 1499done 1500if test -z "$ac_aux_dir"; then 1501 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5 1502echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;} 1503 { (exit 1); exit 1; }; } 1504fi 1505ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1506ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1507ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1508 1509 1510if test ${srcdir} != "." 1511then 1512 if test -f ${srcdir}/include/Config/config.h 1513 then 1514 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5 1515echo "$as_me: error: Already configured in ${srcdir}" >&2;} 1516 { (exit 1); exit 1; }; } 1517 fi 1518fi 1519 1520for i in `ls ${srcdir}/projects` 1521do 1522 if test ${i} != "CVS" 1523 then 1524 if test -f ${srcdir}/projects/${i}/configure 1525 then 1526 1527 1528subdirs="$subdirs projects/${i}" 1529 1530 fi 1531 fi 1532done 1533 1534 ac_config_headers="$ac_config_headers include/Config/config.h" 1535 1536 ac_config_commands="$ac_config_commands Makefile" 1537 1538 1539 ac_config_commands="$ac_config_commands Makefile.common" 1540 1541 1542 ac_config_commands="$ac_config_commands lib/Makefile" 1543 1544 1545 ac_config_commands="$ac_config_commands runtime/Makefile" 1546 1547 1548 ac_config_commands="$ac_config_commands test/Makefile" 1549 1550 1551 ac_config_commands="$ac_config_commands test/Makefile.tests" 1552 1553 1554 ac_config_commands="$ac_config_commands test/QMTest/llvm.py" 1555 1556 1557 ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py" 1558 1559 1560 ac_config_commands="$ac_config_commands test/Programs/Makefile" 1561 1562 1563 ac_config_commands="$ac_config_commands test/Programs/Makefile.programs" 1564 1565 1566 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile" 1567 1568 1569 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report" 1570 1571 1572 ac_config_commands="$ac_config_commands test/Programs/TEST.micro.report" 1573 1574 1575 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report" 1576 1577 1578 ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile" 1579 1580 1581 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile" 1582 1583 1584 ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile" 1585 1586 1587 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile" 1588 1589 1590 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report" 1591 1592 1593 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile" 1594 1595 1596 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report" 1597 1598 1599 ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile" 1600 1601 1602 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot" 1603 1604 1605 ac_config_commands="$ac_config_commands test/Programs/TEST.micro.Makefile" 1606 1607 1608 ac_config_commands="$ac_config_commands test/Programs/External/Makefile" 1609 1610 1611 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile" 1612 1613 1614 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec" 1615 1616 1617 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile" 1618 1619 1620 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc" 1621 1622 1623 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" 1624 1625 1626 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" 1627 1628 1629 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" 1630 1631 1632 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" 1633 1634 1635 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" 1636 1637 1638 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" 1639 1640 1641 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" 1642 1643 1644 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" 1645 1646 1647 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" 1648 1649 1650 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" 1651 1652 1653 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" 1654 1655 1656 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" 1657 1658 1659 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" 1660 1661 1662 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile" 1663 1664 1665 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc" 1666 1667 1668 ac_config_commands="$ac_config_commands tools/Makefile" 1669 1670 1671 ac_config_commands="$ac_config_commands utils/Makefile" 1672 1673 1674 ac_config_commands="$ac_config_commands projects/Makefile" 1675 1676 1677 1678# Find a good install program. We prefer a C program (faster), 1679# so one script is as good as another. But avoid the broken or 1680# incompatible versions: 1681# SysV /etc/install, /usr/sbin/install 1682# SunOS /usr/etc/install 1683# IRIX /sbin/install 1684# AIX /bin/install 1685# AmigaOS /C/install, which installs bootblocks on floppy discs 1686# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1687# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1688# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1689# ./install, which can be erroneously created by make from ./install.sh. 1690echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1691echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 1692if test -z "$INSTALL"; then 1693if test "${ac_cv_path_install+set}" = set; then 1694 echo $ECHO_N "(cached) $ECHO_C" >&6 1695else 1696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1697for as_dir in $PATH 1698do 1699 IFS=$as_save_IFS 1700 test -z "$as_dir" && as_dir=. 1701 # Account for people who put trailing slashes in PATH elements. 1702case $as_dir/ in 1703 ./ | .// | /cC/* | \ 1704 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1705 /usr/ucb/* ) ;; 1706 *) 1707 # OSF1 and SCO ODT 3.0 have their own names for install. 1708 # Don't use installbsd from OSF since it installs stuff as root 1709 # by default. 1710 for ac_prog in ginstall scoinst install; do 1711 for ac_exec_ext in '' $ac_executable_extensions; do 1712 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 1713 if test $ac_prog = install && 1714 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1715 # AIX install. It has an incompatible calling convention. 1716 : 1717 elif test $ac_prog = install && 1718 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1719 # program-specific install script used by HP pwplus--don't use. 1720 : 1721 else 1722 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1723 break 3 1724 fi 1725 fi 1726 done 1727 done 1728 ;; 1729esac 1730done 1731 1732 1733fi 1734 if test "${ac_cv_path_install+set}" = set; then 1735 INSTALL=$ac_cv_path_install 1736 else 1737 # As a last resort, use the slow shell script. We don't cache a 1738 # path for INSTALL within a source directory, because that will 1739 # break other packages using the cache if that directory is 1740 # removed, or if the path is relative. 1741 INSTALL=$ac_install_sh 1742 fi 1743fi 1744echo "$as_me:$LINENO: result: $INSTALL" >&5 1745echo "${ECHO_T}$INSTALL" >&6 1746 1747# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1748# It thinks the first close brace ends the variable substitution. 1749test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1750 1751test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1752 1753test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1754 1755 1756# Make sure we can run config.sub. 1757$ac_config_sub sun4 >/dev/null 2>&1 || 1758 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 1759echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1760 { (exit 1); exit 1; }; } 1761 1762echo "$as_me:$LINENO: checking build system type" >&5 1763echo $ECHO_N "checking build system type... $ECHO_C" >&6 1764if test "${ac_cv_build+set}" = set; then 1765 echo $ECHO_N "(cached) $ECHO_C" >&6 1766else 1767 ac_cv_build_alias=$build_alias 1768test -z "$ac_cv_build_alias" && 1769 ac_cv_build_alias=`$ac_config_guess` 1770test -z "$ac_cv_build_alias" && 1771 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1772echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1773 { (exit 1); exit 1; }; } 1774ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 1775 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 1776echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 1777 { (exit 1); exit 1; }; } 1778 1779fi 1780echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1781echo "${ECHO_T}$ac_cv_build" >&6 1782build=$ac_cv_build 1783build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1784build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1785build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1786 1787 1788echo "$as_me:$LINENO: checking host system type" >&5 1789echo $ECHO_N "checking host system type... $ECHO_C" >&6 1790if test "${ac_cv_host+set}" = set; then 1791 echo $ECHO_N "(cached) $ECHO_C" >&6 1792else 1793 ac_cv_host_alias=$host_alias 1794test -z "$ac_cv_host_alias" && 1795 ac_cv_host_alias=$ac_cv_build_alias 1796ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 1797 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 1798echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 1799 { (exit 1); exit 1; }; } 1800 1801fi 1802echo "$as_me:$LINENO: result: $ac_cv_host" >&5 1803echo "${ECHO_T}$ac_cv_host" >&6 1804host=$ac_cv_host 1805host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1806host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1807host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1808 1809 1810echo "$as_me:$LINENO: checking target system type" >&5 1811echo $ECHO_N "checking target system type... $ECHO_C" >&6 1812if test "${ac_cv_target+set}" = set; then 1813 echo $ECHO_N "(cached) $ECHO_C" >&6 1814else 1815 ac_cv_target_alias=$target_alias 1816test "x$ac_cv_target_alias" = "x" && 1817 ac_cv_target_alias=$ac_cv_host_alias 1818ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || 1819 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 1820echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} 1821 { (exit 1); exit 1; }; } 1822 1823fi 1824echo "$as_me:$LINENO: result: $ac_cv_target" >&5 1825echo "${ECHO_T}$ac_cv_target" >&6 1826target=$ac_cv_target 1827target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1828target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1829target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1830 1831 1832# The aliases save the names the user supplied, while $host etc. 1833# will get canonicalized. 1834test -n "$target_alias" && 1835 test "$program_prefix$program_suffix$program_transform_name" = \ 1836 NONENONEs,x,x, && 1837 program_prefix=${target_alias}- 1838 1839case $build in 1840 *-*-linux*) 1841 OS=Linux 1842 1843 if test -d /home/vadve/lattner/local/x86/llvm-gcc 1844 then 1845 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/ 1846 1847 fi 1848 ;; 1849 1850 *-*-solaris*) 1851 OS=SunOS 1852 1853 if test -d /home/vadve/lattner/local/sparc/llvm-gcc 1854 then 1855 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/ 1856 1857 fi 1858 ;; 1859 1860 *-*-darwin*) 1861 OS=Darwin 1862 1863 ;; 1864 1865 *) OS=Unknown 1866 1867 ;; 1868esac 1869 1870case $target in 1871 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8 1872 1873 ;; 1874esac 1875 1876case $target in 1877 i*86-*) ARCH=x86 1878 1879 ;; 1880 sparc*-*) ARCH=Sparc 1881 1882 ;; 1883 powerpc*-*) ARCH=PowerPC 1884 1885 ;; 1886 *) ARCH=Unknown 1887 1888 ;; 1889esac 1890 1891ac_ext=cc 1892ac_cpp='$CXXCPP $CPPFLAGS' 1893ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1894ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1895ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 1896if test -n "$ac_tool_prefix"; then 1897 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 1898 do 1899 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1900set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1901echo "$as_me:$LINENO: checking for $ac_word" >&5 1902echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1903if test "${ac_cv_prog_CXX+set}" = set; then 1904 echo $ECHO_N "(cached) $ECHO_C" >&6 1905else 1906 if test -n "$CXX"; then 1907 ac_cv_prog_CXX="$CXX" # Let the user override the test. 1908else 1909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1910for as_dir in $PATH 1911do 1912 IFS=$as_save_IFS 1913 test -z "$as_dir" && as_dir=. 1914 for ac_exec_ext in '' $ac_executable_extensions; do 1915 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1916 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 1917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1918 break 2 1919 fi 1920done 1921done 1922 1923fi 1924fi 1925CXX=$ac_cv_prog_CXX 1926if test -n "$CXX"; then 1927 echo "$as_me:$LINENO: result: $CXX" >&5 1928echo "${ECHO_T}$CXX" >&6 1929else 1930 echo "$as_me:$LINENO: result: no" >&5 1931echo "${ECHO_T}no" >&6 1932fi 1933 1934 test -n "$CXX" && break 1935 done 1936fi 1937if test -z "$CXX"; then 1938 ac_ct_CXX=$CXX 1939 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 1940do 1941 # Extract the first word of "$ac_prog", so it can be a program name with args. 1942set dummy $ac_prog; ac_word=$2 1943echo "$as_me:$LINENO: checking for $ac_word" >&5 1944echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1945if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 1946 echo $ECHO_N "(cached) $ECHO_C" >&6 1947else 1948 if test -n "$ac_ct_CXX"; then 1949 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 1950else 1951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1952for as_dir in $PATH 1953do 1954 IFS=$as_save_IFS 1955 test -z "$as_dir" && as_dir=. 1956 for ac_exec_ext in '' $ac_executable_extensions; do 1957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1958 ac_cv_prog_ac_ct_CXX="$ac_prog" 1959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1960 break 2 1961 fi 1962done 1963done 1964 1965fi 1966fi 1967ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 1968if test -n "$ac_ct_CXX"; then 1969 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 1970echo "${ECHO_T}$ac_ct_CXX" >&6 1971else 1972 echo "$as_me:$LINENO: result: no" >&5 1973echo "${ECHO_T}no" >&6 1974fi 1975 1976 test -n "$ac_ct_CXX" && break 1977done 1978test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 1979 1980 CXX=$ac_ct_CXX 1981fi 1982 1983 1984# Provide some information about the compiler. 1985echo "$as_me:$LINENO:" \ 1986 "checking for C++ compiler version" >&5 1987ac_compiler=`set X $ac_compile; echo $2` 1988{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1989 (eval $ac_compiler --version </dev/null >&5) 2>&5 1990 ac_status=$? 1991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1992 (exit $ac_status); } 1993{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 1994 (eval $ac_compiler -v </dev/null >&5) 2>&5 1995 ac_status=$? 1996 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1997 (exit $ac_status); } 1998{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 1999 (eval $ac_compiler -V </dev/null >&5) 2>&5 2000 ac_status=$? 2001 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2002 (exit $ac_status); } 2003 2004cat >conftest.$ac_ext <<_ACEOF 2005#line $LINENO "configure" 2006/* confdefs.h. */ 2007_ACEOF 2008cat confdefs.h >>conftest.$ac_ext 2009cat >>conftest.$ac_ext <<_ACEOF 2010/* end confdefs.h. */ 2011 2012int 2013main () 2014{ 2015 2016 ; 2017 return 0; 2018} 2019_ACEOF 2020ac_clean_files_save=$ac_clean_files 2021ac_clean_files="$ac_clean_files a.out a.exe b.out" 2022# Try to create an executable without -o first, disregard a.out. 2023# It will help us diagnose broken compilers, and finding out an intuition 2024# of exeext. 2025echo "$as_me:$LINENO: checking for C++ compiler default output" >&5 2026echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6 2027ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2028if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2029 (eval $ac_link_default) 2>&5 2030 ac_status=$? 2031 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2032 (exit $ac_status); }; then 2033 # Find the output, starting from the most likely. This scheme is 2034# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2035# resort. 2036 2037# Be careful to initialize this variable, since it used to be cached. 2038# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2039ac_cv_exeext= 2040# b.out is created by i960 compilers. 2041for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2042do 2043 test -f "$ac_file" || continue 2044 case $ac_file in 2045 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2046 ;; 2047 conftest.$ac_ext ) 2048 # This is the source file. 2049 ;; 2050 [ab].out ) 2051 # We found the default executable, but exeext='' is most 2052 # certainly right. 2053 break;; 2054 *.* ) 2055 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2056 # FIXME: I believe we export ac_cv_exeext for Libtool, 2057 # but it would be cool to find out if it's true. Does anybody 2058 # maintain Libtool? --akim. 2059 export ac_cv_exeext 2060 break;; 2061 * ) 2062 break;; 2063 esac 2064done 2065else 2066 echo "$as_me: failed program was:" >&5 2067sed 's/^/| /' conftest.$ac_ext >&5 2068 2069{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables 2070See \`config.log' for more details." >&5 2071echo "$as_me: error: C++ compiler cannot create executables 2072See \`config.log' for more details." >&2;} 2073 { (exit 77); exit 77; }; } 2074fi 2075 2076ac_exeext=$ac_cv_exeext 2077echo "$as_me:$LINENO: result: $ac_file" >&5 2078echo "${ECHO_T}$ac_file" >&6 2079 2080# Check the compiler produces executables we can run. If not, either 2081# the compiler is broken, or we cross compile. 2082echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 2083echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 2084# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2085# If not cross compiling, check that we can run a simple program. 2086if test "$cross_compiling" != yes; then 2087 if { ac_try='./$ac_file' 2088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2089 (eval $ac_try) 2>&5 2090 ac_status=$? 2091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2092 (exit $ac_status); }; }; then 2093 cross_compiling=no 2094 else 2095 if test "$cross_compiling" = maybe; then 2096 cross_compiling=yes 2097 else 2098 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. 2099If you meant to cross compile, use \`--host'. 2100See \`config.log' for more details." >&5 2101echo "$as_me: error: cannot run C++ compiled programs. 2102If you meant to cross compile, use \`--host'. 2103See \`config.log' for more details." >&2;} 2104 { (exit 1); exit 1; }; } 2105 fi 2106 fi 2107fi 2108echo "$as_me:$LINENO: result: yes" >&5 2109echo "${ECHO_T}yes" >&6 2110 2111rm -f a.out a.exe conftest$ac_cv_exeext b.out 2112ac_clean_files=$ac_clean_files_save 2113# Check the compiler produces executables we can run. If not, either 2114# the compiler is broken, or we cross compile. 2115echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2116echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2117echo "$as_me:$LINENO: result: $cross_compiling" >&5 2118echo "${ECHO_T}$cross_compiling" >&6 2119 2120echo "$as_me:$LINENO: checking for suffix of executables" >&5 2121echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2122if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2123 (eval $ac_link) 2>&5 2124 ac_status=$? 2125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2126 (exit $ac_status); }; then 2127 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2128# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2129# work properly (i.e., refer to `conftest.exe'), while it won't with 2130# `rm'. 2131for ac_file in conftest.exe conftest conftest.*; do 2132 test -f "$ac_file" || continue 2133 case $ac_file in 2134 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2135 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2136 export ac_cv_exeext 2137 break;; 2138 * ) break;; 2139 esac 2140done 2141else 2142 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2143See \`config.log' for more details." >&5 2144echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2145See \`config.log' for more details." >&2;} 2146 { (exit 1); exit 1; }; } 2147fi 2148 2149rm -f conftest$ac_cv_exeext 2150echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2151echo "${ECHO_T}$ac_cv_exeext" >&6 2152 2153rm -f conftest.$ac_ext 2154EXEEXT=$ac_cv_exeext 2155ac_exeext=$EXEEXT 2156echo "$as_me:$LINENO: checking for suffix of object files" >&5 2157echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2158if test "${ac_cv_objext+set}" = set; then 2159 echo $ECHO_N "(cached) $ECHO_C" >&6 2160else 2161 cat >conftest.$ac_ext <<_ACEOF 2162#line $LINENO "configure" 2163/* confdefs.h. */ 2164_ACEOF 2165cat confdefs.h >>conftest.$ac_ext 2166cat >>conftest.$ac_ext <<_ACEOF 2167/* end confdefs.h. */ 2168 2169int 2170main () 2171{ 2172 2173 ; 2174 return 0; 2175} 2176_ACEOF 2177rm -f conftest.o conftest.obj 2178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2179 (eval $ac_compile) 2>&5 2180 ac_status=$? 2181 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2182 (exit $ac_status); }; then 2183 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2184 case $ac_file in 2185 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2186 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2187 break;; 2188 esac 2189done 2190else 2191 echo "$as_me: failed program was:" >&5 2192sed 's/^/| /' conftest.$ac_ext >&5 2193 2194{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2195See \`config.log' for more details." >&5 2196echo "$as_me: error: cannot compute suffix of object files: cannot compile 2197See \`config.log' for more details." >&2;} 2198 { (exit 1); exit 1; }; } 2199fi 2200 2201rm -f conftest.$ac_cv_objext conftest.$ac_ext 2202fi 2203echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2204echo "${ECHO_T}$ac_cv_objext" >&6 2205OBJEXT=$ac_cv_objext 2206ac_objext=$OBJEXT 2207echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 2208echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 2209if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 2210 echo $ECHO_N "(cached) $ECHO_C" >&6 2211else 2212 cat >conftest.$ac_ext <<_ACEOF 2213#line $LINENO "configure" 2214/* confdefs.h. */ 2215_ACEOF 2216cat confdefs.h >>conftest.$ac_ext 2217cat >>conftest.$ac_ext <<_ACEOF 2218/* end confdefs.h. */ 2219 2220int 2221main () 2222{ 2223#ifndef __GNUC__ 2224 choke me 2225#endif 2226 2227 ; 2228 return 0; 2229} 2230_ACEOF 2231rm -f conftest.$ac_objext 2232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2233 (eval $ac_compile) 2>&5 2234 ac_status=$? 2235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2236 (exit $ac_status); } && 2237 { ac_try='test -s conftest.$ac_objext' 2238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2239 (eval $ac_try) 2>&5 2240 ac_status=$? 2241 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2242 (exit $ac_status); }; }; then 2243 ac_compiler_gnu=yes 2244else 2245 echo "$as_me: failed program was:" >&5 2246sed 's/^/| /' conftest.$ac_ext >&5 2247 2248ac_compiler_gnu=no 2249fi 2250rm -f conftest.$ac_objext conftest.$ac_ext 2251ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 2252 2253fi 2254echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 2255echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 2256GXX=`test $ac_compiler_gnu = yes && echo yes` 2257ac_test_CXXFLAGS=${CXXFLAGS+set} 2258ac_save_CXXFLAGS=$CXXFLAGS 2259CXXFLAGS="-g" 2260echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 2261echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 2262if test "${ac_cv_prog_cxx_g+set}" = set; then 2263 echo $ECHO_N "(cached) $ECHO_C" >&6 2264else 2265 cat >conftest.$ac_ext <<_ACEOF 2266#line $LINENO "configure" 2267/* confdefs.h. */ 2268_ACEOF 2269cat confdefs.h >>conftest.$ac_ext 2270cat >>conftest.$ac_ext <<_ACEOF 2271/* end confdefs.h. */ 2272 2273int 2274main () 2275{ 2276 2277 ; 2278 return 0; 2279} 2280_ACEOF 2281rm -f conftest.$ac_objext 2282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2283 (eval $ac_compile) 2>&5 2284 ac_status=$? 2285 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2286 (exit $ac_status); } && 2287 { ac_try='test -s conftest.$ac_objext' 2288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2289 (eval $ac_try) 2>&5 2290 ac_status=$? 2291 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2292 (exit $ac_status); }; }; then 2293 ac_cv_prog_cxx_g=yes 2294else 2295 echo "$as_me: failed program was:" >&5 2296sed 's/^/| /' conftest.$ac_ext >&5 2297 2298ac_cv_prog_cxx_g=no 2299fi 2300rm -f conftest.$ac_objext conftest.$ac_ext 2301fi 2302echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 2303echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 2304if test "$ac_test_CXXFLAGS" = set; then 2305 CXXFLAGS=$ac_save_CXXFLAGS 2306elif test $ac_cv_prog_cxx_g = yes; then 2307 if test "$GXX" = yes; then 2308 CXXFLAGS="-g -O2" 2309 else 2310 CXXFLAGS="-g" 2311 fi 2312else 2313 if test "$GXX" = yes; then 2314 CXXFLAGS="-O2" 2315 else 2316 CXXFLAGS= 2317 fi 2318fi 2319for ac_declaration in \ 2320 ''\ 2321 '#include <stdlib.h>' \ 2322 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2323 'extern "C" void std::exit (int); using std::exit;' \ 2324 'extern "C" void exit (int) throw ();' \ 2325 'extern "C" void exit (int);' \ 2326 'void exit (int);' 2327do 2328 cat >conftest.$ac_ext <<_ACEOF 2329#line $LINENO "configure" 2330/* confdefs.h. */ 2331_ACEOF 2332cat confdefs.h >>conftest.$ac_ext 2333cat >>conftest.$ac_ext <<_ACEOF 2334/* end confdefs.h. */ 2335#include <stdlib.h> 2336$ac_declaration 2337int 2338main () 2339{ 2340exit (42); 2341 ; 2342 return 0; 2343} 2344_ACEOF 2345rm -f conftest.$ac_objext 2346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2347 (eval $ac_compile) 2>&5 2348 ac_status=$? 2349 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2350 (exit $ac_status); } && 2351 { ac_try='test -s conftest.$ac_objext' 2352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2353 (eval $ac_try) 2>&5 2354 ac_status=$? 2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2356 (exit $ac_status); }; }; then 2357 : 2358else 2359 echo "$as_me: failed program was:" >&5 2360sed 's/^/| /' conftest.$ac_ext >&5 2361 2362continue 2363fi 2364rm -f conftest.$ac_objext conftest.$ac_ext 2365 cat >conftest.$ac_ext <<_ACEOF 2366#line $LINENO "configure" 2367/* confdefs.h. */ 2368_ACEOF 2369cat confdefs.h >>conftest.$ac_ext 2370cat >>conftest.$ac_ext <<_ACEOF 2371/* end confdefs.h. */ 2372$ac_declaration 2373int 2374main () 2375{ 2376exit (42); 2377 ; 2378 return 0; 2379} 2380_ACEOF 2381rm -f conftest.$ac_objext 2382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2383 (eval $ac_compile) 2>&5 2384 ac_status=$? 2385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2386 (exit $ac_status); } && 2387 { ac_try='test -s conftest.$ac_objext' 2388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2389 (eval $ac_try) 2>&5 2390 ac_status=$? 2391 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2392 (exit $ac_status); }; }; then 2393 break 2394else 2395 echo "$as_me: failed program was:" >&5 2396sed 's/^/| /' conftest.$ac_ext >&5 2397 2398fi 2399rm -f conftest.$ac_objext conftest.$ac_ext 2400done 2401rm -f conftest* 2402if test -n "$ac_declaration"; then 2403 echo '#ifdef __cplusplus' >>confdefs.h 2404 echo $ac_declaration >>confdefs.h 2405 echo '#endif' >>confdefs.h 2406fi 2407 2408ac_ext=c 2409ac_cpp='$CPP $CPPFLAGS' 2410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2412ac_compiler_gnu=$ac_cv_c_compiler_gnu 2413 2414ac_ext=c 2415ac_cpp='$CPP $CPPFLAGS' 2416ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2417ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2418ac_compiler_gnu=$ac_cv_c_compiler_gnu 2419if test -n "$ac_tool_prefix"; then 2420 for ac_prog in gcc 2421 do 2422 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2423set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2424echo "$as_me:$LINENO: checking for $ac_word" >&5 2425echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2426if test "${ac_cv_prog_CC+set}" = set; then 2427 echo $ECHO_N "(cached) $ECHO_C" >&6 2428else 2429 if test -n "$CC"; then 2430 ac_cv_prog_CC="$CC" # Let the user override the test. 2431else 2432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2433for as_dir in $PATH 2434do 2435 IFS=$as_save_IFS 2436 test -z "$as_dir" && as_dir=. 2437 for ac_exec_ext in '' $ac_executable_extensions; do 2438 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2439 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2441 break 2 2442 fi 2443done 2444done 2445 2446fi 2447fi 2448CC=$ac_cv_prog_CC 2449if test -n "$CC"; then 2450 echo "$as_me:$LINENO: result: $CC" >&5 2451echo "${ECHO_T}$CC" >&6 2452else 2453 echo "$as_me:$LINENO: result: no" >&5 2454echo "${ECHO_T}no" >&6 2455fi 2456 2457 test -n "$CC" && break 2458 done 2459fi 2460if test -z "$CC"; then 2461 ac_ct_CC=$CC 2462 for ac_prog in gcc 2463do 2464 # Extract the first word of "$ac_prog", so it can be a program name with args. 2465set dummy $ac_prog; ac_word=$2 2466echo "$as_me:$LINENO: checking for $ac_word" >&5 2467echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2468if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2469 echo $ECHO_N "(cached) $ECHO_C" >&6 2470else 2471 if test -n "$ac_ct_CC"; then 2472 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2473else 2474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2475for as_dir in $PATH 2476do 2477 IFS=$as_save_IFS 2478 test -z "$as_dir" && as_dir=. 2479 for ac_exec_ext in '' $ac_executable_extensions; do 2480 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2481 ac_cv_prog_ac_ct_CC="$ac_prog" 2482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2483 break 2 2484 fi 2485done 2486done 2487 2488fi 2489fi 2490ac_ct_CC=$ac_cv_prog_ac_ct_CC 2491if test -n "$ac_ct_CC"; then 2492 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2493echo "${ECHO_T}$ac_ct_CC" >&6 2494else 2495 echo "$as_me:$LINENO: result: no" >&5 2496echo "${ECHO_T}no" >&6 2497fi 2498 2499 test -n "$ac_ct_CC" && break 2500done 2501 2502 CC=$ac_ct_CC 2503fi 2504 2505 2506test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2507See \`config.log' for more details." >&5 2508echo "$as_me: error: no acceptable C compiler found in \$PATH 2509See \`config.log' for more details." >&2;} 2510 { (exit 1); exit 1; }; } 2511 2512# Provide some information about the compiler. 2513echo "$as_me:$LINENO:" \ 2514 "checking for C compiler version" >&5 2515ac_compiler=`set X $ac_compile; echo $2` 2516{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2517 (eval $ac_compiler --version </dev/null >&5) 2>&5 2518 ac_status=$? 2519 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2520 (exit $ac_status); } 2521{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2522 (eval $ac_compiler -v </dev/null >&5) 2>&5 2523 ac_status=$? 2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2525 (exit $ac_status); } 2526{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2527 (eval $ac_compiler -V </dev/null >&5) 2>&5 2528 ac_status=$? 2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2530 (exit $ac_status); } 2531 2532echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2533echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2534if test "${ac_cv_c_compiler_gnu+set}" = set; then 2535 echo $ECHO_N "(cached) $ECHO_C" >&6 2536else 2537 cat >conftest.$ac_ext <<_ACEOF 2538#line $LINENO "configure" 2539/* confdefs.h. */ 2540_ACEOF 2541cat confdefs.h >>conftest.$ac_ext 2542cat >>conftest.$ac_ext <<_ACEOF 2543/* end confdefs.h. */ 2544 2545int 2546main () 2547{ 2548#ifndef __GNUC__ 2549 choke me 2550#endif 2551 2552 ; 2553 return 0; 2554} 2555_ACEOF 2556rm -f conftest.$ac_objext 2557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2558 (eval $ac_compile) 2>&5 2559 ac_status=$? 2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2561 (exit $ac_status); } && 2562 { ac_try='test -s conftest.$ac_objext' 2563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2564 (eval $ac_try) 2>&5 2565 ac_status=$? 2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2567 (exit $ac_status); }; }; then 2568 ac_compiler_gnu=yes 2569else 2570 echo "$as_me: failed program was:" >&5 2571sed 's/^/| /' conftest.$ac_ext >&5 2572 2573ac_compiler_gnu=no 2574fi 2575rm -f conftest.$ac_objext conftest.$ac_ext 2576ac_cv_c_compiler_gnu=$ac_compiler_gnu 2577 2578fi 2579echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2580echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2581GCC=`test $ac_compiler_gnu = yes && echo yes` 2582ac_test_CFLAGS=${CFLAGS+set} 2583ac_save_CFLAGS=$CFLAGS 2584CFLAGS="-g" 2585echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2586echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2587if test "${ac_cv_prog_cc_g+set}" = set; then 2588 echo $ECHO_N "(cached) $ECHO_C" >&6 2589else 2590 cat >conftest.$ac_ext <<_ACEOF 2591#line $LINENO "configure" 2592/* confdefs.h. */ 2593_ACEOF 2594cat confdefs.h >>conftest.$ac_ext 2595cat >>conftest.$ac_ext <<_ACEOF 2596/* end confdefs.h. */ 2597 2598int 2599main () 2600{ 2601 2602 ; 2603 return 0; 2604} 2605_ACEOF 2606rm -f conftest.$ac_objext 2607if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2608 (eval $ac_compile) 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 ac_cv_prog_cc_g=yes 2619else 2620 echo "$as_me: failed program was:" >&5 2621sed 's/^/| /' conftest.$ac_ext >&5 2622 2623ac_cv_prog_cc_g=no 2624fi 2625rm -f conftest.$ac_objext conftest.$ac_ext 2626fi 2627echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2628echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2629if test "$ac_test_CFLAGS" = set; then 2630 CFLAGS=$ac_save_CFLAGS 2631elif test $ac_cv_prog_cc_g = yes; then 2632 if test "$GCC" = yes; then 2633 CFLAGS="-g -O2" 2634 else 2635 CFLAGS="-g" 2636 fi 2637else 2638 if test "$GCC" = yes; then 2639 CFLAGS="-O2" 2640 else 2641 CFLAGS= 2642 fi 2643fi 2644echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2645echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2646if test "${ac_cv_prog_cc_stdc+set}" = set; then 2647 echo $ECHO_N "(cached) $ECHO_C" >&6 2648else 2649 ac_cv_prog_cc_stdc=no 2650ac_save_CC=$CC 2651cat >conftest.$ac_ext <<_ACEOF 2652#line $LINENO "configure" 2653/* confdefs.h. */ 2654_ACEOF 2655cat confdefs.h >>conftest.$ac_ext 2656cat >>conftest.$ac_ext <<_ACEOF 2657/* end confdefs.h. */ 2658#include <stdarg.h> 2659#include <stdio.h> 2660#include <sys/types.h> 2661#include <sys/stat.h> 2662/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2663struct buf { int x; }; 2664FILE * (*rcsopen) (struct buf *, struct stat *, int); 2665static char *e (p, i) 2666 char **p; 2667 int i; 2668{ 2669 return p[i]; 2670} 2671static char *f (char * (*g) (char **, int), char **p, ...) 2672{ 2673 char *s; 2674 va_list v; 2675 va_start (v,p); 2676 s = g (p, va_arg (v,int)); 2677 va_end (v); 2678 return s; 2679} 2680int test (int i, double x); 2681struct s1 {int (*f) (int a);}; 2682struct s2 {int (*f) (double a);}; 2683int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2684int argc; 2685char **argv; 2686int 2687main () 2688{ 2689return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2690 ; 2691 return 0; 2692} 2693_ACEOF 2694# Don't try gcc -ansi; that turns off useful extensions and 2695# breaks some systems' header files. 2696# AIX -qlanglvl=ansi 2697# Ultrix and OSF/1 -std1 2698# HP-UX 10.20 and later -Ae 2699# HP-UX older versions -Aa -D_HPUX_SOURCE 2700# SVR4 -Xc -D__EXTENSIONS__ 2701for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2702do 2703 CC="$ac_save_CC $ac_arg" 2704 rm -f conftest.$ac_objext 2705if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2706 (eval $ac_compile) 2>&5 2707 ac_status=$? 2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2709 (exit $ac_status); } && 2710 { ac_try='test -s conftest.$ac_objext' 2711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2712 (eval $ac_try) 2>&5 2713 ac_status=$? 2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2715 (exit $ac_status); }; }; then 2716 ac_cv_prog_cc_stdc=$ac_arg 2717break 2718else 2719 echo "$as_me: failed program was:" >&5 2720sed 's/^/| /' conftest.$ac_ext >&5 2721 2722fi 2723rm -f conftest.$ac_objext 2724done 2725rm -f conftest.$ac_ext conftest.$ac_objext 2726CC=$ac_save_CC 2727 2728fi 2729 2730case "x$ac_cv_prog_cc_stdc" in 2731 x|xno) 2732 echo "$as_me:$LINENO: result: none needed" >&5 2733echo "${ECHO_T}none needed" >&6 ;; 2734 *) 2735 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2736echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2737 CC="$CC $ac_cv_prog_cc_stdc" ;; 2738esac 2739 2740# Some people use a C++ compiler to compile C. Since we use `exit', 2741# in C++ we need to declare it. In case someone uses the same compiler 2742# for both compiling C and C++ we need to have the C++ compiler decide 2743# the declaration of exit, since it's the most demanding environment. 2744cat >conftest.$ac_ext <<_ACEOF 2745#ifndef __cplusplus 2746 choke me 2747#endif 2748_ACEOF 2749rm -f conftest.$ac_objext 2750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2751 (eval $ac_compile) 2>&5 2752 ac_status=$? 2753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2754 (exit $ac_status); } && 2755 { ac_try='test -s conftest.$ac_objext' 2756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2757 (eval $ac_try) 2>&5 2758 ac_status=$? 2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2760 (exit $ac_status); }; }; then 2761 for ac_declaration in \ 2762 ''\ 2763 '#include <stdlib.h>' \ 2764 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2765 'extern "C" void std::exit (int); using std::exit;' \ 2766 'extern "C" void exit (int) throw ();' \ 2767 'extern "C" void exit (int);' \ 2768 'void exit (int);' 2769do 2770 cat >conftest.$ac_ext <<_ACEOF 2771#line $LINENO "configure" 2772/* confdefs.h. */ 2773_ACEOF 2774cat confdefs.h >>conftest.$ac_ext 2775cat >>conftest.$ac_ext <<_ACEOF 2776/* end confdefs.h. */ 2777#include <stdlib.h> 2778$ac_declaration 2779int 2780main () 2781{ 2782exit (42); 2783 ; 2784 return 0; 2785} 2786_ACEOF 2787rm -f conftest.$ac_objext 2788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2789 (eval $ac_compile) 2>&5 2790 ac_status=$? 2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2792 (exit $ac_status); } && 2793 { ac_try='test -s conftest.$ac_objext' 2794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2795 (eval $ac_try) 2>&5 2796 ac_status=$? 2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2798 (exit $ac_status); }; }; then 2799 : 2800else 2801 echo "$as_me: failed program was:" >&5 2802sed 's/^/| /' conftest.$ac_ext >&5 2803 2804continue 2805fi 2806rm -f conftest.$ac_objext conftest.$ac_ext 2807 cat >conftest.$ac_ext <<_ACEOF 2808#line $LINENO "configure" 2809/* confdefs.h. */ 2810_ACEOF 2811cat confdefs.h >>conftest.$ac_ext 2812cat >>conftest.$ac_ext <<_ACEOF 2813/* end confdefs.h. */ 2814$ac_declaration 2815int 2816main () 2817{ 2818exit (42); 2819 ; 2820 return 0; 2821} 2822_ACEOF 2823rm -f conftest.$ac_objext 2824if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2825 (eval $ac_compile) 2>&5 2826 ac_status=$? 2827 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2828 (exit $ac_status); } && 2829 { ac_try='test -s conftest.$ac_objext' 2830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2831 (eval $ac_try) 2>&5 2832 ac_status=$? 2833 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2834 (exit $ac_status); }; }; then 2835 break 2836else 2837 echo "$as_me: failed program was:" >&5 2838sed 's/^/| /' conftest.$ac_ext >&5 2839 2840fi 2841rm -f conftest.$ac_objext conftest.$ac_ext 2842done 2843rm -f conftest* 2844if test -n "$ac_declaration"; then 2845 echo '#ifdef __cplusplus' >>confdefs.h 2846 echo $ac_declaration >>confdefs.h 2847 echo '#endif' >>confdefs.h 2848fi 2849 2850else 2851 echo "$as_me: failed program was:" >&5 2852sed 's/^/| /' conftest.$ac_ext >&5 2853 2854fi 2855rm -f conftest.$ac_objext conftest.$ac_ext 2856ac_ext=c 2857ac_cpp='$CPP $CPPFLAGS' 2858ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2859ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2860ac_compiler_gnu=$ac_cv_c_compiler_gnu 2861 2862ac_ext=c 2863ac_cpp='$CPP $CPPFLAGS' 2864ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2865ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2866ac_compiler_gnu=$ac_cv_c_compiler_gnu 2867echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2868echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2869# On Suns, sometimes $CPP names a directory. 2870if test -n "$CPP" && test -d "$CPP"; then 2871 CPP= 2872fi 2873if test -z "$CPP"; then 2874 if test "${ac_cv_prog_CPP+set}" = set; then 2875 echo $ECHO_N "(cached) $ECHO_C" >&6 2876else 2877 # Double quotes because CPP needs to be expanded 2878 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2879 do 2880 ac_preproc_ok=false 2881for ac_c_preproc_warn_flag in '' yes 2882do 2883 # Use a header file that comes with gcc, so configuring glibc 2884 # with a fresh cross-compiler works. 2885 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2886 # <limits.h> exists even on freestanding compilers. 2887 # On the NeXT, cc -E runs the code through the compiler's parser, 2888 # not just through cpp. "Syntax error" is here to catch this case. 2889 cat >conftest.$ac_ext <<_ACEOF 2890#line $LINENO "configure" 2891/* confdefs.h. */ 2892_ACEOF 2893cat confdefs.h >>conftest.$ac_ext 2894cat >>conftest.$ac_ext <<_ACEOF 2895/* end confdefs.h. */ 2896#ifdef __STDC__ 2897# include <limits.h> 2898#else 2899# include <assert.h> 2900#endif 2901 Syntax error 2902_ACEOF 2903if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2904 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2905 ac_status=$? 2906 grep -v '^ *+' conftest.er1 >conftest.err 2907 rm -f conftest.er1 2908 cat conftest.err >&5 2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2910 (exit $ac_status); } >/dev/null; then 2911 if test -s conftest.err; then 2912 ac_cpp_err=$ac_c_preproc_warn_flag 2913 else 2914 ac_cpp_err= 2915 fi 2916else 2917 ac_cpp_err=yes 2918fi 2919if test -z "$ac_cpp_err"; then 2920 : 2921else 2922 echo "$as_me: failed program was:" >&5 2923sed 's/^/| /' conftest.$ac_ext >&5 2924 2925 # Broken: fails on valid input. 2926continue 2927fi 2928rm -f conftest.err conftest.$ac_ext 2929 2930 # OK, works on sane cases. Now check whether non-existent headers 2931 # can be detected and how. 2932 cat >conftest.$ac_ext <<_ACEOF 2933#line $LINENO "configure" 2934/* confdefs.h. */ 2935_ACEOF 2936cat confdefs.h >>conftest.$ac_ext 2937cat >>conftest.$ac_ext <<_ACEOF 2938/* end confdefs.h. */ 2939#include <ac_nonexistent.h> 2940_ACEOF 2941if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2942 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2943 ac_status=$? 2944 grep -v '^ *+' conftest.er1 >conftest.err 2945 rm -f conftest.er1 2946 cat conftest.err >&5 2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2948 (exit $ac_status); } >/dev/null; then 2949 if test -s conftest.err; then 2950 ac_cpp_err=$ac_c_preproc_warn_flag 2951 else 2952 ac_cpp_err= 2953 fi 2954else 2955 ac_cpp_err=yes 2956fi 2957if test -z "$ac_cpp_err"; then 2958 # Broken: success on invalid input. 2959continue 2960else 2961 echo "$as_me: failed program was:" >&5 2962sed 's/^/| /' conftest.$ac_ext >&5 2963 2964 # Passes both tests. 2965ac_preproc_ok=: 2966break 2967fi 2968rm -f conftest.err conftest.$ac_ext 2969 2970done 2971# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2972rm -f conftest.err conftest.$ac_ext 2973if $ac_preproc_ok; then 2974 break 2975fi 2976 2977 done 2978 ac_cv_prog_CPP=$CPP 2979 2980fi 2981 CPP=$ac_cv_prog_CPP 2982else 2983 ac_cv_prog_CPP=$CPP 2984fi 2985echo "$as_me:$LINENO: result: $CPP" >&5 2986echo "${ECHO_T}$CPP" >&6 2987ac_preproc_ok=false 2988for ac_c_preproc_warn_flag in '' yes 2989do 2990 # Use a header file that comes with gcc, so configuring glibc 2991 # with a fresh cross-compiler works. 2992 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2993 # <limits.h> exists even on freestanding compilers. 2994 # On the NeXT, cc -E runs the code through the compiler's parser, 2995 # not just through cpp. "Syntax error" is here to catch this case. 2996 cat >conftest.$ac_ext <<_ACEOF 2997#line $LINENO "configure" 2998/* confdefs.h. */ 2999_ACEOF 3000cat confdefs.h >>conftest.$ac_ext 3001cat >>conftest.$ac_ext <<_ACEOF 3002/* end confdefs.h. */ 3003#ifdef __STDC__ 3004# include <limits.h> 3005#else 3006# include <assert.h> 3007#endif 3008 Syntax error 3009_ACEOF 3010if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3011 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3012 ac_status=$? 3013 grep -v '^ *+' conftest.er1 >conftest.err 3014 rm -f conftest.er1 3015 cat conftest.err >&5 3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3017 (exit $ac_status); } >/dev/null; then 3018 if test -s conftest.err; then 3019 ac_cpp_err=$ac_c_preproc_warn_flag 3020 else 3021 ac_cpp_err= 3022 fi 3023else 3024 ac_cpp_err=yes 3025fi 3026if test -z "$ac_cpp_err"; then 3027 : 3028else 3029 echo "$as_me: failed program was:" >&5 3030sed 's/^/| /' conftest.$ac_ext >&5 3031 3032 # Broken: fails on valid input. 3033continue 3034fi 3035rm -f conftest.err conftest.$ac_ext 3036 3037 # OK, works on sane cases. Now check whether non-existent headers 3038 # can be detected and how. 3039 cat >conftest.$ac_ext <<_ACEOF 3040#line $LINENO "configure" 3041/* confdefs.h. */ 3042_ACEOF 3043cat confdefs.h >>conftest.$ac_ext 3044cat >>conftest.$ac_ext <<_ACEOF 3045/* end confdefs.h. */ 3046#include <ac_nonexistent.h> 3047_ACEOF 3048if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3049 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3050 ac_status=$? 3051 grep -v '^ *+' conftest.er1 >conftest.err 3052 rm -f conftest.er1 3053 cat conftest.err >&5 3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3055 (exit $ac_status); } >/dev/null; then 3056 if test -s conftest.err; then 3057 ac_cpp_err=$ac_c_preproc_warn_flag 3058 else 3059 ac_cpp_err= 3060 fi 3061else 3062 ac_cpp_err=yes 3063fi 3064if test -z "$ac_cpp_err"; then 3065 # Broken: success on invalid input. 3066continue 3067else 3068 echo "$as_me: failed program was:" >&5 3069sed 's/^/| /' conftest.$ac_ext >&5 3070 3071 # Passes both tests. 3072ac_preproc_ok=: 3073break 3074fi 3075rm -f conftest.err conftest.$ac_ext 3076 3077done 3078# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3079rm -f conftest.err conftest.$ac_ext 3080if $ac_preproc_ok; then 3081 : 3082else 3083 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3084See \`config.log' for more details." >&5 3085echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3086See \`config.log' for more details." >&2;} 3087 { (exit 1); exit 1; }; } 3088fi 3089 3090ac_ext=c 3091ac_cpp='$CPP $CPPFLAGS' 3092ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3093ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3094ac_compiler_gnu=$ac_cv_c_compiler_gnu 3095 3096 3097if test "$GCC" != "yes" 3098then 3099 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5 3100echo "$as_me: error: gcc required but not found" >&2;} 3101 { (exit 1); exit 1; }; } 3102fi 3103if test "$GXX" != "yes" 3104then 3105 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5 3106echo "$as_me: error: g++ required but not found" >&2;} 3107 { (exit 1); exit 1; }; } 3108fi 3109 3110gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1` 3111if test "$gccmajor" -lt "3" 3112then 3113 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5 3114echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} 3115 { (exit 1); exit 1; }; } 3116fi 3117 3118 echo "$as_me:$LINENO: checking for GNU make" >&5 3119echo $ECHO_N "checking for GNU make... $ECHO_C" >&6 3120if test "${_cv_gnu_make_command+set}" = set; then 3121 echo $ECHO_N "(cached) $ECHO_C" >&6 3122else 3123 _cv_gnu_make_command='' ; 3124 for a in "$MAKE" make gmake gnumake ; do 3125 if test -z "$a" ; then continue ; fi ; 3126 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then 3127 _cv_gnu_make_command=$a ; 3128 break; 3129 fi 3130 done ; 3131 3132fi 3133echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5 3134echo "${ECHO_T}$_cv_gnu_make_command" >&6 ; 3135 if test "x$_cv_gnu_make_command" != "x" ; then 3136 ifGNUmake='' ; 3137 else 3138 ifGNUmake='#' ; 3139 echo "$as_me:$LINENO: result: \"Not found\"" >&5 3140echo "${ECHO_T}\"Not found\"" >&6; 3141 fi 3142 3143 3144if test -z "$_cv_gnu_make_command" 3145then 3146 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 3147echo "$as_me: error: GNU Make required but not found" >&2;} 3148 { (exit 1); exit 1; }; } 3149fi 3150 3151 3152echo "$as_me:$LINENO: checking " >&5 3153echo $ECHO_N "checking ... $ECHO_C" >&6 3154if test "${ac_cv_has_flex+set}" = set; then 3155 echo $ECHO_N "(cached) $ECHO_C" >&6 3156else 3157 for ac_prog in flex lex 3158do 3159 # Extract the first word of "$ac_prog", so it can be a program name with args. 3160set dummy $ac_prog; ac_word=$2 3161echo "$as_me:$LINENO: checking for $ac_word" >&5 3162echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3163if test "${ac_cv_prog_LEX+set}" = set; then 3164 echo $ECHO_N "(cached) $ECHO_C" >&6 3165else 3166 if test -n "$LEX"; then 3167 ac_cv_prog_LEX="$LEX" # Let the user override the test. 3168else 3169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3170for as_dir in $PATH 3171do 3172 IFS=$as_save_IFS 3173 test -z "$as_dir" && as_dir=. 3174 for ac_exec_ext in '' $ac_executable_extensions; do 3175 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3176 ac_cv_prog_LEX="$ac_prog" 3177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3178 break 2 3179 fi 3180done 3181done 3182 3183fi 3184fi 3185LEX=$ac_cv_prog_LEX 3186if test -n "$LEX"; then 3187 echo "$as_me:$LINENO: result: $LEX" >&5 3188echo "${ECHO_T}$LEX" >&6 3189else 3190 echo "$as_me:$LINENO: result: no" >&5 3191echo "${ECHO_T}no" >&6 3192fi 3193 3194 test -n "$LEX" && break 3195done 3196test -n "$LEX" || LEX=":" 3197 3198if test -z "$LEXLIB" 3199then 3200 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 3201echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 3202if test "${ac_cv_lib_fl_yywrap+set}" = set; then 3203 echo $ECHO_N "(cached) $ECHO_C" >&6 3204else 3205 ac_check_lib_save_LIBS=$LIBS 3206LIBS="-lfl $LIBS" 3207cat >conftest.$ac_ext <<_ACEOF 3208#line $LINENO "configure" 3209/* confdefs.h. */ 3210_ACEOF 3211cat confdefs.h >>conftest.$ac_ext 3212cat >>conftest.$ac_ext <<_ACEOF 3213/* end confdefs.h. */ 3214 3215/* Override any gcc2 internal prototype to avoid an error. */ 3216#ifdef __cplusplus 3217extern "C" 3218#endif 3219/* We use char because int might match the return type of a gcc2 3220 builtin and then its argument prototype would still apply. */ 3221char yywrap (); 3222int 3223main () 3224{ 3225yywrap (); 3226 ; 3227 return 0; 3228} 3229_ACEOF 3230rm -f conftest.$ac_objext conftest$ac_exeext 3231if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3232 (eval $ac_link) 2>&5 3233 ac_status=$? 3234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3235 (exit $ac_status); } && 3236 { ac_try='test -s conftest$ac_exeext' 3237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3238 (eval $ac_try) 2>&5 3239 ac_status=$? 3240 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3241 (exit $ac_status); }; }; then 3242 ac_cv_lib_fl_yywrap=yes 3243else 3244 echo "$as_me: failed program was:" >&5 3245sed 's/^/| /' conftest.$ac_ext >&5 3246 3247ac_cv_lib_fl_yywrap=no 3248fi 3249rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3250LIBS=$ac_check_lib_save_LIBS 3251fi 3252echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 3253echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 3254if test $ac_cv_lib_fl_yywrap = yes; then 3255 LEXLIB="-lfl" 3256else 3257 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 3258echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 3259if test "${ac_cv_lib_l_yywrap+set}" = set; then 3260 echo $ECHO_N "(cached) $ECHO_C" >&6 3261else 3262 ac_check_lib_save_LIBS=$LIBS 3263LIBS="-ll $LIBS" 3264cat >conftest.$ac_ext <<_ACEOF 3265#line $LINENO "configure" 3266/* confdefs.h. */ 3267_ACEOF 3268cat confdefs.h >>conftest.$ac_ext 3269cat >>conftest.$ac_ext <<_ACEOF 3270/* end confdefs.h. */ 3271 3272/* Override any gcc2 internal prototype to avoid an error. */ 3273#ifdef __cplusplus 3274extern "C" 3275#endif 3276/* We use char because int might match the return type of a gcc2 3277 builtin and then its argument prototype would still apply. */ 3278char yywrap (); 3279int 3280main () 3281{ 3282yywrap (); 3283 ; 3284 return 0; 3285} 3286_ACEOF 3287rm -f conftest.$ac_objext conftest$ac_exeext 3288if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3289 (eval $ac_link) 2>&5 3290 ac_status=$? 3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3292 (exit $ac_status); } && 3293 { ac_try='test -s conftest$ac_exeext' 3294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3295 (eval $ac_try) 2>&5 3296 ac_status=$? 3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3298 (exit $ac_status); }; }; then 3299 ac_cv_lib_l_yywrap=yes 3300else 3301 echo "$as_me: failed program was:" >&5 3302sed 's/^/| /' conftest.$ac_ext >&5 3303 3304ac_cv_lib_l_yywrap=no 3305fi 3306rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3307LIBS=$ac_check_lib_save_LIBS 3308fi 3309echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 3310echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 3311if test $ac_cv_lib_l_yywrap = yes; then 3312 LEXLIB="-ll" 3313fi 3314 3315fi 3316 3317fi 3318 3319if test "x$LEX" != "x:"; then 3320 echo "$as_me:$LINENO: checking lex output file root" >&5 3321echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 3322if test "${ac_cv_prog_lex_root+set}" = set; then 3323 echo $ECHO_N "(cached) $ECHO_C" >&6 3324else 3325 # The minimal lex program is just a single line: %%. But some broken lexes 3326# (Solaris, I think it was) want two %% lines, so accommodate them. 3327cat >conftest.l <<_ACEOF 3328%% 3329%% 3330_ACEOF 3331{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5 3332 (eval $LEX conftest.l) 2>&5 3333 ac_status=$? 3334 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3335 (exit $ac_status); } 3336if test -f lex.yy.c; then 3337 ac_cv_prog_lex_root=lex.yy 3338elif test -f lexyy.c; then 3339 ac_cv_prog_lex_root=lexyy 3340else 3341 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 3342echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} 3343 { (exit 1); exit 1; }; } 3344fi 3345fi 3346echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 3347echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 3348rm -f conftest.l 3349LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 3350 3351echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 3352echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 3353if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then 3354 echo $ECHO_N "(cached) $ECHO_C" >&6 3355else 3356 # POSIX says lex can declare yytext either as a pointer or an array; the 3357# default is implementation-dependent. Figure out which it is, since 3358# not all implementations provide the %pointer and %array declarations. 3359ac_cv_prog_lex_yytext_pointer=no 3360echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c 3361ac_save_LIBS=$LIBS 3362LIBS="$LIBS $LEXLIB" 3363cat >conftest.$ac_ext <<_ACEOF 3364`cat $LEX_OUTPUT_ROOT.c` 3365_ACEOF 3366rm -f conftest.$ac_objext conftest$ac_exeext 3367if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3368 (eval $ac_link) 2>&5 3369 ac_status=$? 3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3371 (exit $ac_status); } && 3372 { ac_try='test -s conftest$ac_exeext' 3373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3374 (eval $ac_try) 2>&5 3375 ac_status=$? 3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3377 (exit $ac_status); }; }; then 3378 ac_cv_prog_lex_yytext_pointer=yes 3379else 3380 echo "$as_me: failed program was:" >&5 3381sed 's/^/| /' conftest.$ac_ext >&5 3382 3383fi 3384rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3385LIBS=$ac_save_LIBS 3386rm -f "${LEX_OUTPUT_ROOT}.c" 3387 3388fi 3389echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 3390echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 3391if test $ac_cv_prog_lex_yytext_pointer = yes; then 3392 3393cat >>confdefs.h <<\_ACEOF 3394#define YYTEXT_POINTER 1 3395_ACEOF 3396 3397fi 3398 3399fi 3400 3401fi 3402echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5 3403echo "${ECHO_T}$ac_cv_has_flex" >&6 3404if test "$LEX" != "flex"; then 3405 { { echo "$as_me:$LINENO: error: flex not found but required" >&5 3406echo "$as_me: error: flex not found but required" >&2;} 3407 { (exit 1); exit 1; }; } 3408fi 3409 3410echo "$as_me:$LINENO: checking " >&5 3411echo $ECHO_N "checking ... $ECHO_C" >&6 3412if test "${ac_cv_has_bison+set}" = set; then 3413 echo $ECHO_N "(cached) $ECHO_C" >&6 3414else 3415 for ac_prog in 'bison -y' byacc 3416do 3417 # Extract the first word of "$ac_prog", so it can be a program name with args. 3418set dummy $ac_prog; ac_word=$2 3419echo "$as_me:$LINENO: checking for $ac_word" >&5 3420echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3421if test "${ac_cv_prog_YACC+set}" = set; then 3422 echo $ECHO_N "(cached) $ECHO_C" >&6 3423else 3424 if test -n "$YACC"; then 3425 ac_cv_prog_YACC="$YACC" # Let the user override the test. 3426else 3427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3428for as_dir in $PATH 3429do 3430 IFS=$as_save_IFS 3431 test -z "$as_dir" && as_dir=. 3432 for ac_exec_ext in '' $ac_executable_extensions; do 3433 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3434 ac_cv_prog_YACC="$ac_prog" 3435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3436 break 2 3437 fi 3438done 3439done 3440 3441fi 3442fi 3443YACC=$ac_cv_prog_YACC 3444if test -n "$YACC"; then 3445 echo "$as_me:$LINENO: result: $YACC" >&5 3446echo "${ECHO_T}$YACC" >&6 3447else 3448 echo "$as_me:$LINENO: result: no" >&5 3449echo "${ECHO_T}no" >&6 3450fi 3451 3452 test -n "$YACC" && break 3453done 3454test -n "$YACC" || YACC="yacc" 3455 3456 3457fi 3458echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5 3459echo "${ECHO_T}$ac_cv_has_bison" >&6 3460if test "$YACC" != "bison -y"; then 3461 { { echo "$as_me:$LINENO: error: bison not found but required" >&5 3462echo "$as_me: error: bison not found but required" >&2;} 3463 { (exit 1); exit 1; }; } 3464else 3465 BISON=bison 3466 3467fi 3468 3469# Check whether --enable-shared or --disable-shared was given. 3470if test "${enable_shared+set}" = set; then 3471 enableval="$enable_shared" 3472 p=${PACKAGE-default} 3473 case $enableval in 3474 yes) enable_shared=yes ;; 3475 no) enable_shared=no ;; 3476 *) 3477 enable_shared=no 3478 # Look at the argument we got. We use all the common list separators. 3479 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3480 for pkg in $enableval; do 3481 IFS="$lt_save_ifs" 3482 if test "X$pkg" = "X$p"; then 3483 enable_shared=yes 3484 fi 3485 done 3486 IFS="$lt_save_ifs" 3487 ;; 3488 esac 3489else 3490 enable_shared=yes 3491fi; 3492 3493# Check whether --enable-static or --disable-static was given. 3494if test "${enable_static+set}" = set; then 3495 enableval="$enable_static" 3496 p=${PACKAGE-default} 3497 case $enableval in 3498 yes) enable_static=yes ;; 3499 no) enable_static=no ;; 3500 *) 3501 enable_static=no 3502 # Look at the argument we got. We use all the common list separators. 3503 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3504 for pkg in $enableval; do 3505 IFS="$lt_save_ifs" 3506 if test "X$pkg" = "X$p"; then 3507 enable_static=yes 3508 fi 3509 done 3510 IFS="$lt_save_ifs" 3511 ;; 3512 esac 3513else 3514 enable_static=yes 3515fi; 3516 3517# Check whether --enable-fast-install or --disable-fast-install was given. 3518if test "${enable_fast_install+set}" = set; then 3519 enableval="$enable_fast_install" 3520 p=${PACKAGE-default} 3521 case $enableval in 3522 yes) enable_fast_install=yes ;; 3523 no) enable_fast_install=no ;; 3524 *) 3525 enable_fast_install=no 3526 # Look at the argument we got. We use all the common list separators. 3527 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3528 for pkg in $enableval; do 3529 IFS="$lt_save_ifs" 3530 if test "X$pkg" = "X$p"; then 3531 enable_fast_install=yes 3532 fi 3533 done 3534 IFS="$lt_save_ifs" 3535 ;; 3536 esac 3537else 3538 enable_fast_install=yes 3539fi; 3540 3541echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3542echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 3543if test "${lt_cv_path_SED+set}" = set; then 3544 echo $ECHO_N "(cached) $ECHO_C" >&6 3545else 3546 # Loop through the user's path and test for sed and gsed. 3547# Then use that list of sed's as ones to test for truncation. 3548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3549for as_dir in $PATH 3550do 3551 IFS=$as_save_IFS 3552 test -z "$as_dir" && as_dir=. 3553 for lt_ac_prog in sed gsed; do 3554 for ac_exec_ext in '' $ac_executable_extensions; do 3555 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 3556 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3557 fi 3558 done 3559 done 3560done 3561lt_ac_max=0 3562lt_ac_count=0 3563# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3564# along with /bin/sed that truncates output. 3565for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3566 test ! -f $lt_ac_sed && break 3567 cat /dev/null > conftest.in 3568 lt_ac_count=0 3569 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3570 # Check for GNU sed and select it if it is found. 3571 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3572 lt_cv_path_SED=$lt_ac_sed 3573 break 3574 fi 3575 while true; do 3576 cat conftest.in conftest.in >conftest.tmp 3577 mv conftest.tmp conftest.in 3578 cp conftest.in conftest.nl 3579 echo >>conftest.nl 3580 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3581 cmp -s conftest.out conftest.nl || break 3582 # 10000 chars as input seems more than enough 3583 test $lt_ac_count -gt 10 && break 3584 lt_ac_count=`expr $lt_ac_count + 1` 3585 if test $lt_ac_count -gt $lt_ac_max; then 3586 lt_ac_max=$lt_ac_count 3587 lt_cv_path_SED=$lt_ac_sed 3588 fi 3589 done 3590done 3591SED=$lt_cv_path_SED 3592 3593fi 3594 3595echo "$as_me:$LINENO: result: $SED" >&5 3596echo "${ECHO_T}$SED" >&6 3597 3598echo "$as_me:$LINENO: checking for egrep" >&5 3599echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3600if test "${ac_cv_prog_egrep+set}" = set; then 3601 echo $ECHO_N "(cached) $ECHO_C" >&6 3602else 3603 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3604 then ac_cv_prog_egrep='grep -E' 3605 else ac_cv_prog_egrep='egrep' 3606 fi 3607fi 3608echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3609echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3610 EGREP=$ac_cv_prog_egrep 3611 3612 3613 3614# Check whether --with-gnu-ld or --without-gnu-ld was given. 3615if test "${with_gnu_ld+set}" = set; then 3616 withval="$with_gnu_ld" 3617 test "$withval" = no || with_gnu_ld=yes 3618else 3619 with_gnu_ld=no 3620fi; 3621ac_prog=ld 3622if test "$GCC" = yes; then 3623 # Check if gcc -print-prog-name=ld gives a path. 3624 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 3625echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 3626 case $host in 3627 *-*-mingw*) 3628 # gcc leaves a trailing carriage return which upsets mingw 3629 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3630 *) 3631 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3632 esac 3633 case $ac_prog in 3634 # Accept absolute paths. 3635 [\\/]* | ?:[\\/]*) 3636 re_direlt='/[^/][^/]*/\.\./' 3637 # Canonicalize the path of ld 3638 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 3639 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 3640 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 3641 done 3642 test -z "$LD" && LD="$ac_prog" 3643 ;; 3644 "") 3645 # If it fails, then pretend we aren't using GCC. 3646 ac_prog=ld 3647 ;; 3648 *) 3649 # If it is relative, then search for the first ld in PATH. 3650 with_gnu_ld=unknown 3651 ;; 3652 esac 3653elif test "$with_gnu_ld" = yes; then 3654 echo "$as_me:$LINENO: checking for GNU ld" >&5 3655echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 3656else 3657 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 3658echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 3659fi 3660if test "${lt_cv_path_LD+set}" = set; then 3661 echo $ECHO_N "(cached) $ECHO_C" >&6 3662else 3663 if test -z "$LD"; then 3664 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3665 for ac_dir in $PATH; do 3666 IFS="$lt_save_ifs" 3667 test -z "$ac_dir" && ac_dir=. 3668 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3669 lt_cv_path_LD="$ac_dir/$ac_prog" 3670 # Check to see if the program is GNU ld. I'd rather use --version, 3671 # but apparently some GNU ld's only accept -v. 3672 # Break only if it was the GNU/non-GNU ld that we prefer. 3673 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3674 *GNU* | *'with BFD'*) 3675 test "$with_gnu_ld" != no && break 3676 ;; 3677 *) 3678 test "$with_gnu_ld" != yes && break 3679 ;; 3680 esac 3681 fi 3682 done 3683 IFS="$lt_save_ifs" 3684else 3685 lt_cv_path_LD="$LD" # Let the user override the test with a path. 3686fi 3687fi 3688 3689LD="$lt_cv_path_LD" 3690if test -n "$LD"; then 3691 echo "$as_me:$LINENO: result: $LD" >&5 3692echo "${ECHO_T}$LD" >&6 3693else 3694 echo "$as_me:$LINENO: result: no" >&5 3695echo "${ECHO_T}no" >&6 3696fi 3697test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 3698echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 3699 { (exit 1); exit 1; }; } 3700echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 3701echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 3702if test "${lt_cv_prog_gnu_ld+set}" = set; then 3703 echo $ECHO_N "(cached) $ECHO_C" >&6 3704else 3705 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 3706case `"$LD" -v 2>&1 </dev/null` in 3707*GNU* | *'with BFD'*) 3708 lt_cv_prog_gnu_ld=yes 3709 ;; 3710*) 3711 lt_cv_prog_gnu_ld=no 3712 ;; 3713esac 3714fi 3715echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 3716echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 3717with_gnu_ld=$lt_cv_prog_gnu_ld 3718 3719 3720echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 3721echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 3722if test "${lt_cv_ld_reload_flag+set}" = set; then 3723 echo $ECHO_N "(cached) $ECHO_C" >&6 3724else 3725 lt_cv_ld_reload_flag='-r' 3726fi 3727echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 3728echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 3729reload_flag=$lt_cv_ld_reload_flag 3730case $reload_flag in 3731"" | " "*) ;; 3732*) reload_flag=" $reload_flag" ;; 3733esac 3734reload_cmds='$LD$reload_flag -o $output$reload_objs' 3735 3736echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 3737echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 3738if test "${lt_cv_path_NM+set}" = set; then 3739 echo $ECHO_N "(cached) $ECHO_C" >&6 3740else 3741 if test -n "$NM"; then 3742 # Let the user override the test. 3743 lt_cv_path_NM="$NM" 3744else 3745 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3746 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 3747 IFS="$lt_save_ifs" 3748 test -z "$ac_dir" && ac_dir=. 3749 tmp_nm="$ac_dir/${ac_tool_prefix}nm" 3750 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 3751 # Check to see if the nm accepts a BSD-compat flag. 3752 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 3753 # nm: unknown option "B" ignored 3754 # Tru64's nm complains that /dev/null is an invalid object file 3755 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 3756 */dev/null* | *'Invalid file or object type'*) 3757 lt_cv_path_NM="$tmp_nm -B" 3758 break 3759 ;; 3760 *) 3761 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 3762 */dev/null*) 3763 lt_cv_path_NM="$tmp_nm -p" 3764 break 3765 ;; 3766 *) 3767 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 3768 continue # so that we can try to find one that supports BSD flags 3769 ;; 3770 esac 3771 esac 3772 fi 3773 done 3774 IFS="$lt_save_ifs" 3775 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 3776fi 3777fi 3778echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 3779echo "${ECHO_T}$lt_cv_path_NM" >&6 3780NM="$lt_cv_path_NM" 3781 3782echo "$as_me:$LINENO: checking whether ln -s works" >&5 3783echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 3784LN_S=$as_ln_s 3785if test "$LN_S" = "ln -s"; then 3786 echo "$as_me:$LINENO: result: yes" >&5 3787echo "${ECHO_T}yes" >&6 3788else 3789 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 3790echo "${ECHO_T}no, using $LN_S" >&6 3791fi 3792 3793echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 3794echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 3795if test "${lt_cv_deplibs_check_method+set}" = set; then 3796 echo $ECHO_N "(cached) $ECHO_C" >&6 3797else 3798 lt_cv_file_magic_cmd='$MAGIC_CMD' 3799lt_cv_file_magic_test_file= 3800lt_cv_deplibs_check_method='unknown' 3801# Need to set the preceding variable on all platforms that support 3802# interlibrary dependencies. 3803# 'none' -- dependencies not supported. 3804# `unknown' -- same as none, but documents that we really don't know. 3805# 'pass_all' -- all dependencies passed with no checks. 3806# 'test_compile' -- check by making test program. 3807# 'file_magic [[regex]]' -- check by looking for files in library path 3808# which responds to the $file_magic_cmd with a given extended regex. 3809# If you have `file' or equivalent on your system and you're not sure 3810# whether `pass_all' will *always* work, you probably want this one. 3811 3812case $host_os in 3813aix4* | aix5*) 3814 lt_cv_deplibs_check_method=pass_all 3815 ;; 3816 3817beos*) 3818 lt_cv_deplibs_check_method=pass_all 3819 ;; 3820 3821bsdi4*) 3822 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 3823 lt_cv_file_magic_cmd='/usr/bin/file -L' 3824 lt_cv_file_magic_test_file=/shlib/libc.so 3825 ;; 3826 3827cygwin* | mingw* | pw32*) 3828 # win32_libid is a shell function defined in ltmain.sh 3829 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 3830 lt_cv_file_magic_cmd='win32_libid' 3831 ;; 3832 3833darwin* | rhapsody*) 3834 # this will be overwritten by pass_all, but leave it in just in case 3835 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' 3836 lt_cv_file_magic_cmd='/usr/bin/file -L' 3837 case "$host_os" in 3838 rhapsody* | darwin1.[012]) 3839 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System` 3840 ;; 3841 *) # Darwin 1.3 on 3842 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' 3843 ;; 3844 esac 3845 lt_cv_deplibs_check_method=pass_all 3846 ;; 3847 3848freebsd*) 3849 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3850 case $host_cpu in 3851 i*86 ) 3852 # Not sure whether the presence of OpenBSD here was a mistake. 3853 # Let's accept both of them until this is cleared up. 3854 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' 3855 lt_cv_file_magic_cmd=/usr/bin/file 3856 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 3857 ;; 3858 esac 3859 else 3860 lt_cv_deplibs_check_method=pass_all 3861 fi 3862 ;; 3863 3864gnu*) 3865 lt_cv_deplibs_check_method=pass_all 3866 ;; 3867 3868hpux10.20* | hpux11*) 3869 lt_cv_file_magic_cmd=/usr/bin/file 3870 case "$host_cpu" in 3871 ia64*) 3872 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 3873 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 3874 ;; 3875 hppa*64*) 3876 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]' 3877 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 3878 ;; 3879 *) 3880 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 3881 lt_cv_file_magic_test_file=/usr/lib/libc.sl 3882 ;; 3883 esac 3884 ;; 3885 3886irix5* | irix6* | nonstopux*) 3887 case $host_os in 3888 irix5* | nonstopux*) 3889 # this will be overridden with pass_all, but let us keep it just in case 3890 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" 3891 ;; 3892 *) 3893 case $LD in 3894 *-32|*"-32 ") libmagic=32-bit;; 3895 *-n32|*"-n32 ") libmagic=N32;; 3896 *-64|*"-64 ") libmagic=64-bit;; 3897 *) libmagic=never-match;; 3898 esac 3899 # this will be overridden with pass_all, but let us keep it just in case 3900 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" 3901 ;; 3902 esac 3903 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` 3904 lt_cv_deplibs_check_method=pass_all 3905 ;; 3906 3907# This must be Linux ELF. 3908linux*) 3909 case $host_cpu in 3910 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*) 3911 lt_cv_deplibs_check_method=pass_all ;; 3912 *) 3913 # glibc up to 2.1.1 does not perform some relocations on ARM 3914 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; 3915 esac 3916 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` 3917 ;; 3918 3919netbsd*) 3920 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3921 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 3922 else 3923 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 3924 fi 3925 ;; 3926 3927newos6*) 3928 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 3929 lt_cv_file_magic_cmd=/usr/bin/file 3930 lt_cv_file_magic_test_file=/usr/lib/libnls.so 3931 ;; 3932 3933nto-qnx) 3934 lt_cv_deplibs_check_method=unknown 3935 ;; 3936 3937openbsd*) 3938 lt_cv_file_magic_cmd=/usr/bin/file 3939 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 3940 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 3941 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' 3942 else 3943 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' 3944 fi 3945 ;; 3946 3947osf3* | osf4* | osf5*) 3948 # this will be overridden with pass_all, but let us keep it just in case 3949 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' 3950 lt_cv_file_magic_test_file=/shlib/libc.so 3951 lt_cv_deplibs_check_method=pass_all 3952 ;; 3953 3954sco3.2v5*) 3955 lt_cv_deplibs_check_method=pass_all 3956 ;; 3957 3958solaris*) 3959 lt_cv_deplibs_check_method=pass_all 3960 lt_cv_file_magic_test_file=/lib/libc.so 3961 ;; 3962 3963sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 3964 case $host_vendor in 3965 motorola) 3966 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]' 3967 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 3968 ;; 3969 ncr) 3970 lt_cv_deplibs_check_method=pass_all 3971 ;; 3972 sequent) 3973 lt_cv_file_magic_cmd='/bin/file' 3974 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 3975 ;; 3976 sni) 3977 lt_cv_file_magic_cmd='/bin/file' 3978 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 3979 lt_cv_file_magic_test_file=/lib/libc.so 3980 ;; 3981 siemens) 3982 lt_cv_deplibs_check_method=pass_all 3983 ;; 3984 esac 3985 ;; 3986 3987sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) 3988 lt_cv_deplibs_check_method=pass_all 3989 ;; 3990esac 3991 3992fi 3993echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 3994echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 3995file_magic_cmd=$lt_cv_file_magic_cmd 3996deplibs_check_method=$lt_cv_deplibs_check_method 3997test -z "$deplibs_check_method" && deplibs_check_method=unknown 3998 3999 4000 4001 4002# If no C compiler was specified, use CC. 4003LTCC=${LTCC-"$CC"} 4004 4005# Allow CC to be a program name with arguments. 4006compiler=$CC 4007 4008# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 4009if test "${enable_libtool_lock+set}" = set; then 4010 enableval="$enable_libtool_lock" 4011 4012fi; 4013test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4014 4015# Some flags need to be propagated to the compiler or linker for good 4016# libtool support. 4017case $host in 4018ia64-*-hpux*) 4019 # Find out which ABI we are using. 4020 echo 'int i;' > conftest.$ac_ext 4021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4022 (eval $ac_compile) 2>&5 4023 ac_status=$? 4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4025 (exit $ac_status); }; then 4026 case `/usr/bin/file conftest.$ac_objext` in 4027 *ELF-32*) 4028 HPUX_IA64_MODE="32" 4029 ;; 4030 *ELF-64*) 4031 HPUX_IA64_MODE="64" 4032 ;; 4033 esac 4034 fi 4035 rm -rf conftest* 4036 ;; 4037*-*-irix6*) 4038 # Find out which ABI we are using. 4039 echo '#line 4039 "configure"' > conftest.$ac_ext 4040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4041 (eval $ac_compile) 2>&5 4042 ac_status=$? 4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4044 (exit $ac_status); }; then 4045 if test "$lt_cv_prog_gnu_ld" = yes; then 4046 case `/usr/bin/file conftest.$ac_objext` in 4047 *32-bit*) 4048 LD="${LD-ld} -melf32bsmip" 4049 ;; 4050 *N32*) 4051 LD="${LD-ld} -melf32bmipn32" 4052 ;; 4053 *64-bit*) 4054 LD="${LD-ld} -melf64bmip" 4055 ;; 4056 esac 4057 else 4058 case `/usr/bin/file conftest.$ac_objext` in 4059 *32-bit*) 4060 LD="${LD-ld} -32" 4061 ;; 4062 *N32*) 4063 LD="${LD-ld} -n32" 4064 ;; 4065 *64-bit*) 4066 LD="${LD-ld} -64" 4067 ;; 4068 esac 4069 fi 4070 fi 4071 rm -rf conftest* 4072 ;; 4073 4074x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 4075 # Find out which ABI we are using. 4076 echo 'int i;' > conftest.$ac_ext 4077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4078 (eval $ac_compile) 2>&5 4079 ac_status=$? 4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4081 (exit $ac_status); }; then 4082 case "`/usr/bin/file conftest.o`" in 4083 *32-bit*) 4084 case $host in 4085 x86_64-*linux*) 4086 LD="${LD-ld} -m elf_i386" 4087 ;; 4088 ppc64-*linux*) 4089 LD="${LD-ld} -m elf32ppclinux" 4090 ;; 4091 s390x-*linux*) 4092 LD="${LD-ld} -m elf_s390" 4093 ;; 4094 sparc64-*linux*) 4095 LD="${LD-ld} -m elf32_sparc" 4096 ;; 4097 esac 4098 ;; 4099 *64-bit*) 4100 case $host in 4101 x86_64-*linux*) 4102 LD="${LD-ld} -m elf_x86_64" 4103 ;; 4104 ppc*-*linux*|powerpc*-*linux*) 4105 LD="${LD-ld} -m elf64ppc" 4106 ;; 4107 s390*-*linux*) 4108 LD="${LD-ld} -m elf64_s390" 4109 ;; 4110 sparc*-*linux*) 4111 LD="${LD-ld} -m elf64_sparc" 4112 ;; 4113 esac 4114 ;; 4115 esac 4116 fi 4117 rm -rf conftest* 4118 ;; 4119 4120*-*-sco3.2v5*) 4121 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4122 SAVE_CFLAGS="$CFLAGS" 4123 CFLAGS="$CFLAGS -belf" 4124 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4125echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 4126if test "${lt_cv_cc_needs_belf+set}" = set; then 4127 echo $ECHO_N "(cached) $ECHO_C" >&6 4128else 4129 ac_ext=c 4130ac_cpp='$CPP $CPPFLAGS' 4131ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4132ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4133ac_compiler_gnu=$ac_cv_c_compiler_gnu 4134 4135 cat >conftest.$ac_ext <<_ACEOF 4136#line $LINENO "configure" 4137/* confdefs.h. */ 4138_ACEOF 4139cat confdefs.h >>conftest.$ac_ext 4140cat >>conftest.$ac_ext <<_ACEOF 4141/* end confdefs.h. */ 4142 4143int 4144main () 4145{ 4146 4147 ; 4148 return 0; 4149} 4150_ACEOF 4151rm -f conftest.$ac_objext conftest$ac_exeext 4152if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4153 (eval $ac_link) 2>&5 4154 ac_status=$? 4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4156 (exit $ac_status); } && 4157 { ac_try='test -s conftest$ac_exeext' 4158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4159 (eval $ac_try) 2>&5 4160 ac_status=$? 4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4162 (exit $ac_status); }; }; then 4163 lt_cv_cc_needs_belf=yes 4164else 4165 echo "$as_me: failed program was:" >&5 4166sed 's/^/| /' conftest.$ac_ext >&5 4167 4168lt_cv_cc_needs_belf=no 4169fi 4170rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4171 ac_ext=c 4172ac_cpp='$CPP $CPPFLAGS' 4173ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4174ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4175ac_compiler_gnu=$ac_cv_c_compiler_gnu 4176 4177fi 4178echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4179echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 4180 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4181 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4182 CFLAGS="$SAVE_CFLAGS" 4183 fi 4184 ;; 4185 4186esac 4187 4188need_locks="$enable_libtool_lock" 4189 4190 4191 4192echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4193echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 4194if test "${ac_cv_header_stdc+set}" = set; then 4195 echo $ECHO_N "(cached) $ECHO_C" >&6 4196else 4197 cat >conftest.$ac_ext <<_ACEOF 4198#line $LINENO "configure" 4199/* confdefs.h. */ 4200_ACEOF 4201cat confdefs.h >>conftest.$ac_ext 4202cat >>conftest.$ac_ext <<_ACEOF 4203/* end confdefs.h. */ 4204#include <stdlib.h> 4205#include <stdarg.h> 4206#include <string.h> 4207#include <float.h> 4208 4209int 4210main () 4211{ 4212 4213 ; 4214 return 0; 4215} 4216_ACEOF 4217rm -f conftest.$ac_objext 4218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4219 (eval $ac_compile) 2>&5 4220 ac_status=$? 4221 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4222 (exit $ac_status); } && 4223 { ac_try='test -s conftest.$ac_objext' 4224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4225 (eval $ac_try) 2>&5 4226 ac_status=$? 4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4228 (exit $ac_status); }; }; then 4229 ac_cv_header_stdc=yes 4230else 4231 echo "$as_me: failed program was:" >&5 4232sed 's/^/| /' conftest.$ac_ext >&5 4233 4234ac_cv_header_stdc=no 4235fi 4236rm -f conftest.$ac_objext conftest.$ac_ext 4237 4238if test $ac_cv_header_stdc = yes; then 4239 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4240 cat >conftest.$ac_ext <<_ACEOF 4241#line $LINENO "configure" 4242/* confdefs.h. */ 4243_ACEOF 4244cat confdefs.h >>conftest.$ac_ext 4245cat >>conftest.$ac_ext <<_ACEOF 4246/* end confdefs.h. */ 4247#include <string.h> 4248 4249_ACEOF 4250if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4251 $EGREP "memchr" >/dev/null 2>&1; then 4252 : 4253else 4254 ac_cv_header_stdc=no 4255fi 4256rm -f conftest* 4257 4258fi 4259 4260if test $ac_cv_header_stdc = yes; then 4261 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4262 cat >conftest.$ac_ext <<_ACEOF 4263#line $LINENO "configure" 4264/* confdefs.h. */ 4265_ACEOF 4266cat confdefs.h >>conftest.$ac_ext 4267cat >>conftest.$ac_ext <<_ACEOF 4268/* end confdefs.h. */ 4269#include <stdlib.h> 4270 4271_ACEOF 4272if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4273 $EGREP "free" >/dev/null 2>&1; then 4274 : 4275else 4276 ac_cv_header_stdc=no 4277fi 4278rm -f conftest* 4279 4280fi 4281 4282if test $ac_cv_header_stdc = yes; then 4283 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4284 if test "$cross_compiling" = yes; then 4285 : 4286else 4287 cat >conftest.$ac_ext <<_ACEOF 4288#line $LINENO "configure" 4289/* confdefs.h. */ 4290_ACEOF 4291cat confdefs.h >>conftest.$ac_ext 4292cat >>conftest.$ac_ext <<_ACEOF 4293/* end confdefs.h. */ 4294#include <ctype.h> 4295#if ((' ' & 0x0FF) == 0x020) 4296# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4297# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4298#else 4299# define ISLOWER(c) \ 4300 (('a' <= (c) && (c) <= 'i') \ 4301 || ('j' <= (c) && (c) <= 'r') \ 4302 || ('s' <= (c) && (c) <= 'z')) 4303# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4304#endif 4305 4306#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4307int 4308main () 4309{ 4310 int i; 4311 for (i = 0; i < 256; i++) 4312 if (XOR (islower (i), ISLOWER (i)) 4313 || toupper (i) != TOUPPER (i)) 4314 exit(2); 4315 exit (0); 4316} 4317_ACEOF 4318rm -f conftest$ac_exeext 4319if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4320 (eval $ac_link) 2>&5 4321 ac_status=$? 4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4323 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4325 (eval $ac_try) 2>&5 4326 ac_status=$? 4327 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4328 (exit $ac_status); }; }; then 4329 : 4330else 4331 echo "$as_me: program exited with status $ac_status" >&5 4332echo "$as_me: failed program was:" >&5 4333sed 's/^/| /' conftest.$ac_ext >&5 4334 4335( exit $ac_status ) 4336ac_cv_header_stdc=no 4337fi 4338rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4339fi 4340fi 4341fi 4342echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4343echo "${ECHO_T}$ac_cv_header_stdc" >&6 4344if test $ac_cv_header_stdc = yes; then 4345 4346cat >>confdefs.h <<\_ACEOF 4347#define STDC_HEADERS 1 4348_ACEOF 4349 4350fi 4351 4352# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4363 inttypes.h stdint.h unistd.h 4364do 4365as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4366echo "$as_me:$LINENO: checking for $ac_header" >&5 4367echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4368if eval "test \"\${$as_ac_Header+set}\" = set"; then 4369 echo $ECHO_N "(cached) $ECHO_C" >&6 4370else 4371 cat >conftest.$ac_ext <<_ACEOF 4372#line $LINENO "configure" 4373/* confdefs.h. */ 4374_ACEOF 4375cat confdefs.h >>conftest.$ac_ext 4376cat >>conftest.$ac_ext <<_ACEOF 4377/* end confdefs.h. */ 4378$ac_includes_default 4379 4380#include <$ac_header> 4381_ACEOF 4382rm -f conftest.$ac_objext 4383if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4384 (eval $ac_compile) 2>&5 4385 ac_status=$? 4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4387 (exit $ac_status); } && 4388 { ac_try='test -s conftest.$ac_objext' 4389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4390 (eval $ac_try) 2>&5 4391 ac_status=$? 4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4393 (exit $ac_status); }; }; then 4394 eval "$as_ac_Header=yes" 4395else 4396 echo "$as_me: failed program was:" >&5 4397sed 's/^/| /' conftest.$ac_ext >&5 4398 4399eval "$as_ac_Header=no" 4400fi 4401rm -f conftest.$ac_objext conftest.$ac_ext 4402fi 4403echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4404echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4405if test `eval echo '${'$as_ac_Header'}'` = yes; then 4406 cat >>confdefs.h <<_ACEOF 4407#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4408_ACEOF 4409 4410fi 4411 4412done 4413 4414 4415 4416for ac_header in dlfcn.h 4417do 4418as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4419if eval "test \"\${$as_ac_Header+set}\" = set"; then 4420 echo "$as_me:$LINENO: checking for $ac_header" >&5 4421echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4422if eval "test \"\${$as_ac_Header+set}\" = set"; then 4423 echo $ECHO_N "(cached) $ECHO_C" >&6 4424fi 4425echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4426echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4427else 4428 # Is the header compilable? 4429echo "$as_me:$LINENO: checking $ac_header usability" >&5 4430echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4431cat >conftest.$ac_ext <<_ACEOF 4432#line $LINENO "configure" 4433/* confdefs.h. */ 4434_ACEOF 4435cat confdefs.h >>conftest.$ac_ext 4436cat >>conftest.$ac_ext <<_ACEOF 4437/* end confdefs.h. */ 4438$ac_includes_default 4439#include <$ac_header> 4440_ACEOF 4441rm -f conftest.$ac_objext 4442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4443 (eval $ac_compile) 2>&5 4444 ac_status=$? 4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4446 (exit $ac_status); } && 4447 { ac_try='test -s conftest.$ac_objext' 4448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4449 (eval $ac_try) 2>&5 4450 ac_status=$? 4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4452 (exit $ac_status); }; }; then 4453 ac_header_compiler=yes 4454else 4455 echo "$as_me: failed program was:" >&5 4456sed 's/^/| /' conftest.$ac_ext >&5 4457 4458ac_header_compiler=no 4459fi 4460rm -f conftest.$ac_objext conftest.$ac_ext 4461echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4462echo "${ECHO_T}$ac_header_compiler" >&6 4463 4464# Is the header present? 4465echo "$as_me:$LINENO: checking $ac_header presence" >&5 4466echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4467cat >conftest.$ac_ext <<_ACEOF 4468#line $LINENO "configure" 4469/* confdefs.h. */ 4470_ACEOF 4471cat confdefs.h >>conftest.$ac_ext 4472cat >>conftest.$ac_ext <<_ACEOF 4473/* end confdefs.h. */ 4474#include <$ac_header> 4475_ACEOF 4476if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4477 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4478 ac_status=$? 4479 grep -v '^ *+' conftest.er1 >conftest.err 4480 rm -f conftest.er1 4481 cat conftest.err >&5 4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4483 (exit $ac_status); } >/dev/null; then 4484 if test -s conftest.err; then 4485 ac_cpp_err=$ac_c_preproc_warn_flag 4486 else 4487 ac_cpp_err= 4488 fi 4489else 4490 ac_cpp_err=yes 4491fi 4492if test -z "$ac_cpp_err"; then 4493 ac_header_preproc=yes 4494else 4495 echo "$as_me: failed program was:" >&5 4496sed 's/^/| /' conftest.$ac_ext >&5 4497 4498 ac_header_preproc=no 4499fi 4500rm -f conftest.err conftest.$ac_ext 4501echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4502echo "${ECHO_T}$ac_header_preproc" >&6 4503 4504# So? What about this header? 4505case $ac_header_compiler:$ac_header_preproc in 4506 yes:no ) 4507 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4508echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4509 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4510echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4511 ( 4512 cat <<\_ASBOX 4513## ------------------------------------ ## 4514## Report this to bug-autoconf@gnu.org. ## 4515## ------------------------------------ ## 4516_ASBOX 4517 ) | 4518 sed "s/^/$as_me: WARNING: /" >&2 4519 ;; 4520 no:yes ) 4521 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4522echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4523 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4524echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4526echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4527 ( 4528 cat <<\_ASBOX 4529## ------------------------------------ ## 4530## Report this to bug-autoconf@gnu.org. ## 4531## ------------------------------------ ## 4532_ASBOX 4533 ) | 4534 sed "s/^/$as_me: WARNING: /" >&2 4535 ;; 4536esac 4537echo "$as_me:$LINENO: checking for $ac_header" >&5 4538echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4539if eval "test \"\${$as_ac_Header+set}\" = set"; then 4540 echo $ECHO_N "(cached) $ECHO_C" >&6 4541else 4542 eval "$as_ac_Header=$ac_header_preproc" 4543fi 4544echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4545echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4546 4547fi 4548if test `eval echo '${'$as_ac_Header'}'` = yes; then 4549 cat >>confdefs.h <<_ACEOF 4550#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4551_ACEOF 4552 4553fi 4554 4555done 4556 4557ac_ext=cc 4558ac_cpp='$CXXCPP $CPPFLAGS' 4559ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4560ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4561ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4562echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 4563echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 4564if test -z "$CXXCPP"; then 4565 if test "${ac_cv_prog_CXXCPP+set}" = set; then 4566 echo $ECHO_N "(cached) $ECHO_C" >&6 4567else 4568 # Double quotes because CXXCPP needs to be expanded 4569 for CXXCPP in "$CXX -E" "/lib/cpp" 4570 do 4571 ac_preproc_ok=false 4572for ac_cxx_preproc_warn_flag in '' yes 4573do 4574 # Use a header file that comes with gcc, so configuring glibc 4575 # with a fresh cross-compiler works. 4576 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4577 # <limits.h> exists even on freestanding compilers. 4578 # On the NeXT, cc -E runs the code through the compiler's parser, 4579 # not just through cpp. "Syntax error" is here to catch this case. 4580 cat >conftest.$ac_ext <<_ACEOF 4581#line $LINENO "configure" 4582/* confdefs.h. */ 4583_ACEOF 4584cat confdefs.h >>conftest.$ac_ext 4585cat >>conftest.$ac_ext <<_ACEOF 4586/* end confdefs.h. */ 4587#ifdef __STDC__ 4588# include <limits.h> 4589#else 4590# include <assert.h> 4591#endif 4592 Syntax error 4593_ACEOF 4594if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4595 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4596 ac_status=$? 4597 grep -v '^ *+' conftest.er1 >conftest.err 4598 rm -f conftest.er1 4599 cat conftest.err >&5 4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4601 (exit $ac_status); } >/dev/null; then 4602 if test -s conftest.err; then 4603 ac_cpp_err=$ac_cxx_preproc_warn_flag 4604 else 4605 ac_cpp_err= 4606 fi 4607else 4608 ac_cpp_err=yes 4609fi 4610if test -z "$ac_cpp_err"; then 4611 : 4612else 4613 echo "$as_me: failed program was:" >&5 4614sed 's/^/| /' conftest.$ac_ext >&5 4615 4616 # Broken: fails on valid input. 4617continue 4618fi 4619rm -f conftest.err conftest.$ac_ext 4620 4621 # OK, works on sane cases. Now check whether non-existent headers 4622 # can be detected and how. 4623 cat >conftest.$ac_ext <<_ACEOF 4624#line $LINENO "configure" 4625/* confdefs.h. */ 4626_ACEOF 4627cat confdefs.h >>conftest.$ac_ext 4628cat >>conftest.$ac_ext <<_ACEOF 4629/* end confdefs.h. */ 4630#include <ac_nonexistent.h> 4631_ACEOF 4632if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4633 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4634 ac_status=$? 4635 grep -v '^ *+' conftest.er1 >conftest.err 4636 rm -f conftest.er1 4637 cat conftest.err >&5 4638 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4639 (exit $ac_status); } >/dev/null; then 4640 if test -s conftest.err; then 4641 ac_cpp_err=$ac_cxx_preproc_warn_flag 4642 else 4643 ac_cpp_err= 4644 fi 4645else 4646 ac_cpp_err=yes 4647fi 4648if test -z "$ac_cpp_err"; then 4649 # Broken: success on invalid input. 4650continue 4651else 4652 echo "$as_me: failed program was:" >&5 4653sed 's/^/| /' conftest.$ac_ext >&5 4654 4655 # Passes both tests. 4656ac_preproc_ok=: 4657break 4658fi 4659rm -f conftest.err conftest.$ac_ext 4660 4661done 4662# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4663rm -f conftest.err conftest.$ac_ext 4664if $ac_preproc_ok; then 4665 break 4666fi 4667 4668 done 4669 ac_cv_prog_CXXCPP=$CXXCPP 4670 4671fi 4672 CXXCPP=$ac_cv_prog_CXXCPP 4673else 4674 ac_cv_prog_CXXCPP=$CXXCPP 4675fi 4676echo "$as_me:$LINENO: result: $CXXCPP" >&5 4677echo "${ECHO_T}$CXXCPP" >&6 4678ac_preproc_ok=false 4679for ac_cxx_preproc_warn_flag in '' yes 4680do 4681 # Use a header file that comes with gcc, so configuring glibc 4682 # with a fresh cross-compiler works. 4683 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4684 # <limits.h> exists even on freestanding compilers. 4685 # On the NeXT, cc -E runs the code through the compiler's parser, 4686 # not just through cpp. "Syntax error" is here to catch this case. 4687 cat >conftest.$ac_ext <<_ACEOF 4688#line $LINENO "configure" 4689/* confdefs.h. */ 4690_ACEOF 4691cat confdefs.h >>conftest.$ac_ext 4692cat >>conftest.$ac_ext <<_ACEOF 4693/* end confdefs.h. */ 4694#ifdef __STDC__ 4695# include <limits.h> 4696#else 4697# include <assert.h> 4698#endif 4699 Syntax error 4700_ACEOF 4701if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4702 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4703 ac_status=$? 4704 grep -v '^ *+' conftest.er1 >conftest.err 4705 rm -f conftest.er1 4706 cat conftest.err >&5 4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4708 (exit $ac_status); } >/dev/null; then 4709 if test -s conftest.err; then 4710 ac_cpp_err=$ac_cxx_preproc_warn_flag 4711 else 4712 ac_cpp_err= 4713 fi 4714else 4715 ac_cpp_err=yes 4716fi 4717if test -z "$ac_cpp_err"; then 4718 : 4719else 4720 echo "$as_me: failed program was:" >&5 4721sed 's/^/| /' conftest.$ac_ext >&5 4722 4723 # Broken: fails on valid input. 4724continue 4725fi 4726rm -f conftest.err conftest.$ac_ext 4727 4728 # OK, works on sane cases. Now check whether non-existent headers 4729 # can be detected and how. 4730 cat >conftest.$ac_ext <<_ACEOF 4731#line $LINENO "configure" 4732/* confdefs.h. */ 4733_ACEOF 4734cat confdefs.h >>conftest.$ac_ext 4735cat >>conftest.$ac_ext <<_ACEOF 4736/* end confdefs.h. */ 4737#include <ac_nonexistent.h> 4738_ACEOF 4739if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4740 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4741 ac_status=$? 4742 grep -v '^ *+' conftest.er1 >conftest.err 4743 rm -f conftest.er1 4744 cat conftest.err >&5 4745 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4746 (exit $ac_status); } >/dev/null; then 4747 if test -s conftest.err; then 4748 ac_cpp_err=$ac_cxx_preproc_warn_flag 4749 else 4750 ac_cpp_err= 4751 fi 4752else 4753 ac_cpp_err=yes 4754fi 4755if test -z "$ac_cpp_err"; then 4756 # Broken: success on invalid input. 4757continue 4758else 4759 echo "$as_me: failed program was:" >&5 4760sed 's/^/| /' conftest.$ac_ext >&5 4761 4762 # Passes both tests. 4763ac_preproc_ok=: 4764break 4765fi 4766rm -f conftest.err conftest.$ac_ext 4767 4768done 4769# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4770rm -f conftest.err conftest.$ac_ext 4771if $ac_preproc_ok; then 4772 : 4773else 4774 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 4775See \`config.log' for more details." >&5 4776echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 4777See \`config.log' for more details." >&2;} 4778 { (exit 1); exit 1; }; } 4779fi 4780 4781ac_ext=cc 4782ac_cpp='$CXXCPP $CPPFLAGS' 4783ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4784ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4785ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4786 4787 4788ac_ext=f 4789ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 4790ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4791ac_compiler_gnu=$ac_cv_f77_compiler_gnu 4792if test -n "$ac_tool_prefix"; then 4793 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95 4794 do 4795 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4796set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4797echo "$as_me:$LINENO: checking for $ac_word" >&5 4798echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4799if test "${ac_cv_prog_F77+set}" = set; then 4800 echo $ECHO_N "(cached) $ECHO_C" >&6 4801else 4802 if test -n "$F77"; then 4803 ac_cv_prog_F77="$F77" # Let the user override the test. 4804else 4805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4806for as_dir in $PATH 4807do 4808 IFS=$as_save_IFS 4809 test -z "$as_dir" && as_dir=. 4810 for ac_exec_ext in '' $ac_executable_extensions; do 4811 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4812 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 4813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4814 break 2 4815 fi 4816done 4817done 4818 4819fi 4820fi 4821F77=$ac_cv_prog_F77 4822if test -n "$F77"; then 4823 echo "$as_me:$LINENO: result: $F77" >&5 4824echo "${ECHO_T}$F77" >&6 4825else 4826 echo "$as_me:$LINENO: result: no" >&5 4827echo "${ECHO_T}no" >&6 4828fi 4829 4830 test -n "$F77" && break 4831 done 4832fi 4833if test -z "$F77"; then 4834 ac_ct_F77=$F77 4835 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95 4836do 4837 # Extract the first word of "$ac_prog", so it can be a program name with args. 4838set dummy $ac_prog; ac_word=$2 4839echo "$as_me:$LINENO: checking for $ac_word" >&5 4840echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4841if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 4842 echo $ECHO_N "(cached) $ECHO_C" >&6 4843else 4844 if test -n "$ac_ct_F77"; then 4845 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 4846else 4847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4848for as_dir in $PATH 4849do 4850 IFS=$as_save_IFS 4851 test -z "$as_dir" && as_dir=. 4852 for ac_exec_ext in '' $ac_executable_extensions; do 4853 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4854 ac_cv_prog_ac_ct_F77="$ac_prog" 4855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4856 break 2 4857 fi 4858done 4859done 4860 4861fi 4862fi 4863ac_ct_F77=$ac_cv_prog_ac_ct_F77 4864if test -n "$ac_ct_F77"; then 4865 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 4866echo "${ECHO_T}$ac_ct_F77" >&6 4867else 4868 echo "$as_me:$LINENO: result: no" >&5 4869echo "${ECHO_T}no" >&6 4870fi 4871 4872 test -n "$ac_ct_F77" && break 4873done 4874 4875 F77=$ac_ct_F77 4876fi 4877 4878 4879# Provide some information about the compiler. 4880echo "$as_me:4880:" \ 4881 "checking for Fortran 77 compiler version" >&5 4882ac_compiler=`set X $ac_compile; echo $2` 4883{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 4884 (eval $ac_compiler --version </dev/null >&5) 2>&5 4885 ac_status=$? 4886 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4887 (exit $ac_status); } 4888{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 4889 (eval $ac_compiler -v </dev/null >&5) 2>&5 4890 ac_status=$? 4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4892 (exit $ac_status); } 4893{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 4894 (eval $ac_compiler -V </dev/null >&5) 2>&5 4895 ac_status=$? 4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4897 (exit $ac_status); } 4898 4899# If we don't use `.F' as extension, the preprocessor is not run on the 4900# input file. 4901ac_save_ext=$ac_ext 4902ac_ext=F 4903echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 4904echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 4905if test "${ac_cv_f77_compiler_gnu+set}" = set; then 4906 echo $ECHO_N "(cached) $ECHO_C" >&6 4907else 4908 cat >conftest.$ac_ext <<_ACEOF 4909 program main 4910#ifndef __GNUC__ 4911 choke me 4912#endif 4913 4914 end 4915_ACEOF 4916rm -f conftest.$ac_objext 4917if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4918 (eval $ac_compile) 2>&5 4919 ac_status=$? 4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4921 (exit $ac_status); } && 4922 { ac_try='test -s conftest.$ac_objext' 4923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4924 (eval $ac_try) 2>&5 4925 ac_status=$? 4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4927 (exit $ac_status); }; }; then 4928 ac_compiler_gnu=yes 4929else 4930 echo "$as_me: failed program was:" >&5 4931sed 's/^/| /' conftest.$ac_ext >&5 4932 4933ac_compiler_gnu=no 4934fi 4935rm -f conftest.$ac_objext conftest.$ac_ext 4936ac_cv_f77_compiler_gnu=$ac_compiler_gnu 4937 4938fi 4939echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 4940echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 4941ac_ext=$ac_save_ext 4942G77=`test $ac_compiler_gnu = yes && echo yes` 4943ac_test_FFLAGS=${FFLAGS+set} 4944ac_save_FFLAGS=$FFLAGS 4945FFLAGS= 4946echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 4947echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 4948if test "${ac_cv_prog_f77_g+set}" = set; then 4949 echo $ECHO_N "(cached) $ECHO_C" >&6 4950else 4951 FFLAGS=-g 4952cat >conftest.$ac_ext <<_ACEOF 4953 program main 4954 4955 end 4956_ACEOF 4957rm -f conftest.$ac_objext 4958if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4959 (eval $ac_compile) 2>&5 4960 ac_status=$? 4961 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4962 (exit $ac_status); } && 4963 { ac_try='test -s conftest.$ac_objext' 4964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4965 (eval $ac_try) 2>&5 4966 ac_status=$? 4967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4968 (exit $ac_status); }; }; then 4969 ac_cv_prog_f77_g=yes 4970else 4971 echo "$as_me: failed program was:" >&5 4972sed 's/^/| /' conftest.$ac_ext >&5 4973 4974ac_cv_prog_f77_g=no 4975fi 4976rm -f conftest.$ac_objext conftest.$ac_ext 4977 4978fi 4979echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 4980echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 4981if test "$ac_test_FFLAGS" = set; then 4982 FFLAGS=$ac_save_FFLAGS 4983elif test $ac_cv_prog_f77_g = yes; then 4984 if test "$G77" = yes; then 4985 FFLAGS="-g -O2" 4986 else 4987 FFLAGS="-g" 4988 fi 4989else 4990 if test "$G77" = yes; then 4991 FFLAGS="-O2" 4992 else 4993 FFLAGS= 4994 fi 4995fi 4996ac_ext=c 4997ac_cpp='$CPP $CPPFLAGS' 4998ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4999ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5000ac_compiler_gnu=$ac_cv_c_compiler_gnu 5001 5002 5003 5004# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 5005 5006# find the maximum length of command line arguments 5007echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 5008echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 5009if test "${lt_cv_sys_max_cmd_len+set}" = set; then 5010 echo $ECHO_N "(cached) $ECHO_C" >&6 5011else 5012 i=0 5013 testring="ABCD" 5014 5015 case $build_os in 5016 msdosdjgpp*) 5017 # On DJGPP, this test can blow up pretty badly due to problems in libc 5018 # (any single argument exceeding 2000 bytes causes a buffer overrun 5019 # during glob expansion). Even if it were fixed, the result of this 5020 # check would be larger than it should be. 5021 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5022 ;; 5023 5024 gnu*) 5025 # Under GNU Hurd, this test is not required because there is 5026 # no limit to the length of command line arguments. 5027 # Libtool will interpret -1 as no limit whatsoever 5028 lt_cv_sys_max_cmd_len=-1; 5029 ;; 5030 5031 cygwin* | mingw*) 5032 # On Win9x/ME, this test blows up -- it succeeds, but takes 5033 # about 5 minutes as the teststring grows exponentially. 5034 # Worse, since 9x/ME are not pre-emptively multitasking, 5035 # you end up with a "frozen" computer, even though with patience 5036 # the test eventually succeeds (with a max line length of 256k). 5037 # Instead, let's just punt: use the minimum linelength reported by 5038 # all of the supported platforms: 8192 (on NT/2K/XP). 5039 lt_cv_sys_max_cmd_len=8192; 5040 ;; 5041 5042 *) 5043 # If test is not a shell built-in, we'll probably end up computing a 5044 # maximum length that is only half of the actual maximum length, but 5045 # we can't tell. 5046 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \ 5047 = "XX$testring") >/dev/null 2>&1 && 5048 new_result=`expr "X$testring" : ".*" 2>&1` && 5049 lt_cv_sys_max_cmd_len=$new_result && 5050 test $i != 17 # 1/2 MB should be enough 5051 do 5052 i=`expr $i + 1` 5053 testring=$testring$testring 5054 done 5055 testring= 5056 # Add a significant safety factor because C++ compilers can tack on massive 5057 # amounts of additional arguments before passing them to the linker. 5058 # It appears as though 1/2 is a usable value. 5059 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5060 ;; 5061 esac 5062 5063fi 5064 5065if test -n $lt_cv_sys_max_cmd_len ; then 5066 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 5067echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 5068else 5069 echo "$as_me:$LINENO: result: none" >&5 5070echo "${ECHO_T}none" >&6 5071fi 5072 5073 5074 5075 5076# Check for command to grab the raw symbol name followed by C symbol from nm. 5077echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 5078echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 5079if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 5080 echo $ECHO_N "(cached) $ECHO_C" >&6 5081else 5082 5083# These are sane defaults that work on at least a few old systems. 5084# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5085 5086# Character class describing NM global symbol codes. 5087symcode='[BCDEGRST]' 5088 5089# Regexp to match symbols that can be accessed directly from C. 5090sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5091 5092# Transform the above into a raw symbol and a C symbol. 5093symxfrm='\1 \2\3 \3' 5094 5095# Transform an extracted symbol line into a proper C declaration 5096lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 5097 5098# Transform an extracted symbol line into symbol name and symbol address 5099lt_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'" 5100 5101# Define system-specific variables. 5102case $host_os in 5103aix*) 5104 symcode='[BCDT]' 5105 ;; 5106cygwin* | mingw* | pw32*) 5107 symcode='[ABCDGISTW]' 5108 ;; 5109hpux*) # Its linker distinguishes data from code symbols 5110 if test "$host_cpu" = ia64; then 5111 symcode='[ABCDEGRST]' 5112 fi 5113 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5114 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'" 5115 ;; 5116irix* | nonstopux*) 5117 symcode='[BCDEGRST]' 5118 ;; 5119osf*) 5120 symcode='[BCDEGQRST]' 5121 ;; 5122solaris* | sysv5*) 5123 symcode='[BDT]' 5124 ;; 5125sysv4) 5126 symcode='[DFNSTU]' 5127 ;; 5128esac 5129 5130# Handle CRLF in mingw tool chain 5131opt_cr= 5132case $build_os in 5133mingw*) 5134 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5135 ;; 5136esac 5137 5138# If we're using GNU nm, then use its standard symbol codes. 5139case `$NM -V 2>&1` in 5140*GNU* | *'with BFD'*) 5141 symcode='[ABCDGISTW]' ;; 5142esac 5143 5144# Try without a prefix undercore, then with it. 5145for ac_symprfx in "" "_"; do 5146 5147 # Write the raw and C identifiers. 5148 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" 5149 5150 # Check to see that the pipe works correctly. 5151 pipe_works=no 5152 5153 rm -f conftest* 5154 cat > conftest.$ac_ext <<EOF 5155#ifdef __cplusplus 5156extern "C" { 5157#endif 5158char nm_test_var; 5159void nm_test_func(){} 5160#ifdef __cplusplus 5161} 5162#endif 5163int main(){nm_test_var='a';nm_test_func();return(0);} 5164EOF 5165 5166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5167 (eval $ac_compile) 2>&5 5168 ac_status=$? 5169 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5170 (exit $ac_status); }; then 5171 # Now try to grab the symbols. 5172 nlist=conftest.nm 5173 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 5174 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5175 ac_status=$? 5176 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5177 (exit $ac_status); } && test -s "$nlist"; then 5178 # Try sorting and uniquifying the output. 5179 if sort "$nlist" | uniq > "$nlist"T; then 5180 mv -f "$nlist"T "$nlist" 5181 else 5182 rm -f "$nlist"T 5183 fi 5184 5185 # Make sure that we snagged all the symbols we need. 5186 if grep ' nm_test_var$' "$nlist" >/dev/null; then 5187 if grep ' nm_test_func$' "$nlist" >/dev/null; then 5188 cat <<EOF > conftest.$ac_ext 5189#ifdef __cplusplus 5190extern "C" { 5191#endif 5192 5193EOF 5194 # Now generate the symbol file. 5195 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 5196 5197 cat <<EOF >> conftest.$ac_ext 5198#if defined (__STDC__) && __STDC__ 5199# define lt_ptr_t void * 5200#else 5201# define lt_ptr_t char * 5202# define const 5203#endif 5204 5205/* The mapping between symbol names and symbols. */ 5206const struct { 5207 const char *name; 5208 lt_ptr_t address; 5209} 5210lt_preloaded_symbols[] = 5211{ 5212EOF 5213 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 5214 cat <<\EOF >> conftest.$ac_ext 5215 {0, (lt_ptr_t) 0} 5216}; 5217 5218#ifdef __cplusplus 5219} 5220#endif 5221EOF 5222 # Now try linking the two files. 5223 mv conftest.$ac_objext conftstm.$ac_objext 5224 lt_save_LIBS="$LIBS" 5225 lt_save_CFLAGS="$CFLAGS" 5226 LIBS="conftstm.$ac_objext" 5227 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5229 (eval $ac_link) 2>&5 5230 ac_status=$? 5231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5232 (exit $ac_status); } && test -s conftest${ac_exeext}; then 5233 pipe_works=yes 5234 fi 5235 LIBS="$lt_save_LIBS" 5236 CFLAGS="$lt_save_CFLAGS" 5237 else 5238 echo "cannot find nm_test_func in $nlist" >&5 5239 fi 5240 else 5241 echo "cannot find nm_test_var in $nlist" >&5 5242 fi 5243 else 5244 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5245 fi 5246 else 5247 echo "$progname: failed program was:" >&5 5248 cat conftest.$ac_ext >&5 5249 fi 5250 rm -f conftest* conftst* 5251 5252 # Do not use the global_symbol_pipe unless it works. 5253 if test "$pipe_works" = yes; then 5254 break 5255 else 5256 lt_cv_sys_global_symbol_pipe= 5257 fi 5258done 5259 5260fi 5261 5262if test -z "$lt_cv_sys_global_symbol_pipe"; then 5263 lt_cv_sys_global_symbol_to_cdecl= 5264fi 5265if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5266 echo "$as_me:$LINENO: result: failed" >&5 5267echo "${ECHO_T}failed" >&6 5268else 5269 echo "$as_me:$LINENO: result: ok" >&5 5270echo "${ECHO_T}ok" >&6 5271fi 5272 5273echo "$as_me:$LINENO: checking for objdir" >&5 5274echo $ECHO_N "checking for objdir... $ECHO_C" >&6 5275if test "${lt_cv_objdir+set}" = set; then 5276 echo $ECHO_N "(cached) $ECHO_C" >&6 5277else 5278 rm -f .libs 2>/dev/null 5279mkdir .libs 2>/dev/null 5280if test -d .libs; then 5281 lt_cv_objdir=.libs 5282else 5283 # MS-DOS does not allow filenames that begin with a dot. 5284 lt_cv_objdir=_libs 5285fi 5286rmdir .libs 2>/dev/null 5287fi 5288echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 5289echo "${ECHO_T}$lt_cv_objdir" >&6 5290objdir=$lt_cv_objdir 5291 5292 5293 5294 5295 5296case $host_os in 5297aix3*) 5298 # AIX sometimes has problems with the GCC collect2 program. For some 5299 # reason, if we set the COLLECT_NAMES environment variable, the problems 5300 # vanish in a puff of smoke. 5301 if test "X${COLLECT_NAMES+set}" != Xset; then 5302 COLLECT_NAMES= 5303 export COLLECT_NAMES 5304 fi 5305 ;; 5306esac 5307 5308# Sed substitution that helps us do robust quoting. It backslashifies 5309# metacharacters that are still active within double-quoted strings. 5310Xsed='sed -e s/^X//' 5311sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 5312 5313# Same as above, but do not quote variable references. 5314double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 5315 5316# Sed substitution to delay expansion of an escaped shell variable in a 5317# double_quote_subst'ed string. 5318delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5319 5320# Sed substitution to avoid accidental globbing in evaled expressions 5321no_glob_subst='s/\*/\\\*/g' 5322 5323# Constants: 5324rm="rm -f" 5325 5326# Global variables: 5327default_ofile=mklib 5328can_build_shared=yes 5329 5330# All known linkers require a `.a' archive for static linking (except M$VC, 5331# which needs '.lib'). 5332libext=a 5333ltmain="$ac_aux_dir/ltmain.sh" 5334ofile="$default_ofile" 5335with_gnu_ld="$lt_cv_prog_gnu_ld" 5336 5337if test -n "$ac_tool_prefix"; then 5338 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5339set dummy ${ac_tool_prefix}ar; ac_word=$2 5340echo "$as_me:$LINENO: checking for $ac_word" >&5 5341echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5342if test "${ac_cv_prog_AR+set}" = set; then 5343 echo $ECHO_N "(cached) $ECHO_C" >&6 5344else 5345 if test -n "$AR"; then 5346 ac_cv_prog_AR="$AR" # Let the user override the test. 5347else 5348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5349for as_dir in $PATH 5350do 5351 IFS=$as_save_IFS 5352 test -z "$as_dir" && as_dir=. 5353 for ac_exec_ext in '' $ac_executable_extensions; do 5354 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5355 ac_cv_prog_AR="${ac_tool_prefix}ar" 5356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5357 break 2 5358 fi 5359done 5360done 5361 5362fi 5363fi 5364AR=$ac_cv_prog_AR 5365if test -n "$AR"; then 5366 echo "$as_me:$LINENO: result: $AR" >&5 5367echo "${ECHO_T}$AR" >&6 5368else 5369 echo "$as_me:$LINENO: result: no" >&5 5370echo "${ECHO_T}no" >&6 5371fi 5372 5373fi 5374if test -z "$ac_cv_prog_AR"; then 5375 ac_ct_AR=$AR 5376 # Extract the first word of "ar", so it can be a program name with args. 5377set dummy ar; ac_word=$2 5378echo "$as_me:$LINENO: checking for $ac_word" >&5 5379echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5380if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 5381 echo $ECHO_N "(cached) $ECHO_C" >&6 5382else 5383 if test -n "$ac_ct_AR"; then 5384 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5385else 5386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5387for as_dir in $PATH 5388do 5389 IFS=$as_save_IFS 5390 test -z "$as_dir" && as_dir=. 5391 for ac_exec_ext in '' $ac_executable_extensions; do 5392 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5393 ac_cv_prog_ac_ct_AR="ar" 5394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5395 break 2 5396 fi 5397done 5398done 5399 5400 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" 5401fi 5402fi 5403ac_ct_AR=$ac_cv_prog_ac_ct_AR 5404if test -n "$ac_ct_AR"; then 5405 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 5406echo "${ECHO_T}$ac_ct_AR" >&6 5407else 5408 echo "$as_me:$LINENO: result: no" >&5 5409echo "${ECHO_T}no" >&6 5410fi 5411 5412 AR=$ac_ct_AR 5413else 5414 AR="$ac_cv_prog_AR" 5415fi 5416 5417if test -n "$ac_tool_prefix"; then 5418 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5419set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5420echo "$as_me:$LINENO: checking for $ac_word" >&5 5421echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5422if test "${ac_cv_prog_RANLIB+set}" = set; then 5423 echo $ECHO_N "(cached) $ECHO_C" >&6 5424else 5425 if test -n "$RANLIB"; then 5426 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5427else 5428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5429for as_dir in $PATH 5430do 5431 IFS=$as_save_IFS 5432 test -z "$as_dir" && as_dir=. 5433 for ac_exec_ext in '' $ac_executable_extensions; do 5434 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5435 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5437 break 2 5438 fi 5439done 5440done 5441 5442fi 5443fi 5444RANLIB=$ac_cv_prog_RANLIB 5445if test -n "$RANLIB"; then 5446 echo "$as_me:$LINENO: result: $RANLIB" >&5 5447echo "${ECHO_T}$RANLIB" >&6 5448else 5449 echo "$as_me:$LINENO: result: no" >&5 5450echo "${ECHO_T}no" >&6 5451fi 5452 5453fi 5454if test -z "$ac_cv_prog_RANLIB"; then 5455 ac_ct_RANLIB=$RANLIB 5456 # Extract the first word of "ranlib", so it can be a program name with args. 5457set dummy ranlib; ac_word=$2 5458echo "$as_me:$LINENO: checking for $ac_word" >&5 5459echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5460if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 5461 echo $ECHO_N "(cached) $ECHO_C" >&6 5462else 5463 if test -n "$ac_ct_RANLIB"; then 5464 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5465else 5466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5467for as_dir in $PATH 5468do 5469 IFS=$as_save_IFS 5470 test -z "$as_dir" && as_dir=. 5471 for ac_exec_ext in '' $ac_executable_extensions; do 5472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5473 ac_cv_prog_ac_ct_RANLIB="ranlib" 5474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5475 break 2 5476 fi 5477done 5478done 5479 5480 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 5481fi 5482fi 5483ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5484if test -n "$ac_ct_RANLIB"; then 5485 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 5486echo "${ECHO_T}$ac_ct_RANLIB" >&6 5487else 5488 echo "$as_me:$LINENO: result: no" >&5 5489echo "${ECHO_T}no" >&6 5490fi 5491 5492 RANLIB=$ac_ct_RANLIB 5493else 5494 RANLIB="$ac_cv_prog_RANLIB" 5495fi 5496 5497if test -n "$ac_tool_prefix"; then 5498 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5499set dummy ${ac_tool_prefix}strip; ac_word=$2 5500echo "$as_me:$LINENO: checking for $ac_word" >&5 5501echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5502if test "${ac_cv_prog_STRIP+set}" = set; then 5503 echo $ECHO_N "(cached) $ECHO_C" >&6 5504else 5505 if test -n "$STRIP"; then 5506 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5507else 5508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5509for as_dir in $PATH 5510do 5511 IFS=$as_save_IFS 5512 test -z "$as_dir" && as_dir=. 5513 for ac_exec_ext in '' $ac_executable_extensions; do 5514 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5515 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5517 break 2 5518 fi 5519done 5520done 5521 5522fi 5523fi 5524STRIP=$ac_cv_prog_STRIP 5525if test -n "$STRIP"; then 5526 echo "$as_me:$LINENO: result: $STRIP" >&5 5527echo "${ECHO_T}$STRIP" >&6 5528else 5529 echo "$as_me:$LINENO: result: no" >&5 5530echo "${ECHO_T}no" >&6 5531fi 5532 5533fi 5534if test -z "$ac_cv_prog_STRIP"; then 5535 ac_ct_STRIP=$STRIP 5536 # Extract the first word of "strip", so it can be a program name with args. 5537set dummy strip; ac_word=$2 5538echo "$as_me:$LINENO: checking for $ac_word" >&5 5539echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5540if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 5541 echo $ECHO_N "(cached) $ECHO_C" >&6 5542else 5543 if test -n "$ac_ct_STRIP"; then 5544 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5545else 5546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5547for as_dir in $PATH 5548do 5549 IFS=$as_save_IFS 5550 test -z "$as_dir" && as_dir=. 5551 for ac_exec_ext in '' $ac_executable_extensions; do 5552 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5553 ac_cv_prog_ac_ct_STRIP="strip" 5554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5555 break 2 5556 fi 5557done 5558done 5559 5560 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 5561fi 5562fi 5563ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5564if test -n "$ac_ct_STRIP"; then 5565 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 5566echo "${ECHO_T}$ac_ct_STRIP" >&6 5567else 5568 echo "$as_me:$LINENO: result: no" >&5 5569echo "${ECHO_T}no" >&6 5570fi 5571 5572 STRIP=$ac_ct_STRIP 5573else 5574 STRIP="$ac_cv_prog_STRIP" 5575fi 5576 5577 5578old_CC="$CC" 5579old_CFLAGS="$CFLAGS" 5580 5581# Set sane defaults for various variables 5582test -z "$AR" && AR=ar 5583test -z "$AR_FLAGS" && AR_FLAGS=cru 5584test -z "$AS" && AS=as 5585test -z "$CC" && CC=cc 5586test -z "$LTCC" && LTCC=$CC 5587test -z "$DLLTOOL" && DLLTOOL=dlltool 5588test -z "$LD" && LD=ld 5589test -z "$LN_S" && LN_S="ln -s" 5590test -z "$MAGIC_CMD" && MAGIC_CMD=file 5591test -z "$NM" && NM=nm 5592test -z "$SED" && SED=sed 5593test -z "$OBJDUMP" && OBJDUMP=objdump 5594test -z "$RANLIB" && RANLIB=: 5595test -z "$STRIP" && STRIP=: 5596test -z "$ac_objext" && ac_objext=o 5597 5598# Determine commands to create old-style static archives. 5599old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 5600old_postinstall_cmds='chmod 644 $oldlib' 5601old_postuninstall_cmds= 5602 5603if test -n "$RANLIB"; then 5604 case $host_os in 5605 openbsd*) 5606 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" 5607 ;; 5608 *) 5609 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" 5610 ;; 5611 esac 5612 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5613fi 5614 5615# Only perform the check for file, if the check method requires it 5616case $deplibs_check_method in 5617file_magic*) 5618 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 5619 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 5620echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 5621if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 5622 echo $ECHO_N "(cached) $ECHO_C" >&6 5623else 5624 case $MAGIC_CMD in 5625[\\/*] | ?:[\\/]*) 5626 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 5627 ;; 5628*) 5629 lt_save_MAGIC_CMD="$MAGIC_CMD" 5630 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5631 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 5632 for ac_dir in $ac_dummy; do 5633 IFS="$lt_save_ifs" 5634 test -z "$ac_dir" && ac_dir=. 5635 if test -f $ac_dir/${ac_tool_prefix}file; then 5636 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 5637 if test -n "$file_magic_test_file"; then 5638 case $deplibs_check_method in 5639 "file_magic "*) 5640 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 5641 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5642 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 5643 $EGREP "$file_magic_regex" > /dev/null; then 5644 : 5645 else 5646 cat <<EOF 1>&2 5647 5648*** Warning: the command libtool uses to detect shared libraries, 5649*** $file_magic_cmd, produces output that libtool cannot recognize. 5650*** The result is that libtool may fail to recognize shared libraries 5651*** as such. This will affect the creation of libtool libraries that 5652*** depend on shared libraries, but programs linked with such libtool 5653*** libraries will work regardless of this problem. Nevertheless, you 5654*** may want to report the problem to your system manager and/or to 5655*** bug-libtool@gnu.org 5656 5657EOF 5658 fi ;; 5659 esac 5660 fi 5661 break 5662 fi 5663 done 5664 IFS="$lt_save_ifs" 5665 MAGIC_CMD="$lt_save_MAGIC_CMD" 5666 ;; 5667esac 5668fi 5669 5670MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5671if test -n "$MAGIC_CMD"; then 5672 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 5673echo "${ECHO_T}$MAGIC_CMD" >&6 5674else 5675 echo "$as_me:$LINENO: result: no" >&5 5676echo "${ECHO_T}no" >&6 5677fi 5678 5679if test -z "$lt_cv_path_MAGIC_CMD"; then 5680 if test -n "$ac_tool_prefix"; then 5681 echo "$as_me:$LINENO: checking for file" >&5 5682echo $ECHO_N "checking for file... $ECHO_C" >&6 5683if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 5684 echo $ECHO_N "(cached) $ECHO_C" >&6 5685else 5686 case $MAGIC_CMD in 5687[\\/*] | ?:[\\/]*) 5688 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 5689 ;; 5690*) 5691 lt_save_MAGIC_CMD="$MAGIC_CMD" 5692 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5693 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 5694 for ac_dir in $ac_dummy; do 5695 IFS="$lt_save_ifs" 5696 test -z "$ac_dir" && ac_dir=. 5697 if test -f $ac_dir/file; then 5698 lt_cv_path_MAGIC_CMD="$ac_dir/file" 5699 if test -n "$file_magic_test_file"; then 5700 case $deplibs_check_method in 5701 "file_magic "*) 5702 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 5703 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5704 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 5705 $EGREP "$file_magic_regex" > /dev/null; then 5706 : 5707 else 5708 cat <<EOF 1>&2 5709 5710*** Warning: the command libtool uses to detect shared libraries, 5711*** $file_magic_cmd, produces output that libtool cannot recognize. 5712*** The result is that libtool may fail to recognize shared libraries 5713*** as such. This will affect the creation of libtool libraries that 5714*** depend on shared libraries, but programs linked with such libtool 5715*** libraries will work regardless of this problem. Nevertheless, you 5716*** may want to report the problem to your system manager and/or to 5717*** bug-libtool@gnu.org 5718 5719EOF 5720 fi ;; 5721 esac 5722 fi 5723 break 5724 fi 5725 done 5726 IFS="$lt_save_ifs" 5727 MAGIC_CMD="$lt_save_MAGIC_CMD" 5728 ;; 5729esac 5730fi 5731 5732MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5733if test -n "$MAGIC_CMD"; then 5734 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 5735echo "${ECHO_T}$MAGIC_CMD" >&6 5736else 5737 echo "$as_me:$LINENO: result: no" >&5 5738echo "${ECHO_T}no" >&6 5739fi 5740 5741 else 5742 MAGIC_CMD=: 5743 fi 5744fi 5745 5746 fi 5747 ;; 5748esac 5749 5750enable_dlopen=no 5751enable_win32_dll=no 5752 5753# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 5754if test "${enable_libtool_lock+set}" = set; then 5755 enableval="$enable_libtool_lock" 5756 5757fi; 5758test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5759 5760 5761# Check whether --with-pic or --without-pic was given. 5762if test "${with_pic+set}" = set; then 5763 withval="$with_pic" 5764 pic_mode="$withval" 5765else 5766 pic_mode=default 5767fi; 5768test -z "$pic_mode" && pic_mode=default 5769 5770# Use C for the default configuration in the libtool script 5771tagname= 5772lt_save_CC="$CC" 5773ac_ext=c 5774ac_cpp='$CPP $CPPFLAGS' 5775ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5776ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5777ac_compiler_gnu=$ac_cv_c_compiler_gnu 5778 5779 5780# Source file extension for C test sources. 5781ac_ext=c 5782 5783# Object file extension for compiled C test sources. 5784objext=o 5785objext=$objext 5786 5787# Code to be used in simple compile tests 5788lt_simple_compile_test_code="int some_variable = 0;\n" 5789 5790# Code to be used in simple link tests 5791lt_simple_link_test_code='int main(){return(0);}\n' 5792 5793 5794# If no C compiler was specified, use CC. 5795LTCC=${LTCC-"$CC"} 5796 5797# Allow CC to be a program name with arguments. 5798compiler=$CC 5799 5800 5801# 5802# Check for any special shared library compilation flags. 5803# 5804lt_prog_cc_shlib= 5805if test "$GCC" = no; then 5806 case $host_os in 5807 sco3.2v5*) 5808 lt_prog_cc_shlib='-belf' 5809 ;; 5810 esac 5811fi 5812if test -n "$lt_prog_cc_shlib"; then 5813 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 5814echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} 5815 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : 5816 else 5817 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 5818echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} 5819 lt_cv_prog_cc_can_build_shared=no 5820 fi 5821fi 5822 5823 5824# 5825# Check to make sure the static flag actually works. 5826# 5827echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 5828echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 5829if test "${lt_prog_compiler_static_works+set}" = set; then 5830 echo $ECHO_N "(cached) $ECHO_C" >&6 5831else 5832 lt_prog_compiler_static_works=no 5833 save_LDFLAGS="$LDFLAGS" 5834 LDFLAGS="$LDFLAGS $lt_prog_compiler_static" 5835 printf "$lt_simple_link_test_code" > conftest.$ac_ext 5836 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 5837 # The compiler can only warn and ignore the option if not recognized 5838 # So say no if there are warnings 5839 if test -s conftest.err; then 5840 # Append any errors to the config.log. 5841 cat conftest.err 1>&5 5842 else 5843 lt_prog_compiler_static_works=yes 5844 fi 5845 fi 5846 $rm conftest* 5847 LDFLAGS="$save_LDFLAGS" 5848 5849fi 5850echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 5851echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 5852 5853if test x"$lt_prog_compiler_static_works" = xyes; then 5854 : 5855else 5856 lt_prog_compiler_static= 5857fi 5858 5859 5860 5861 5862lt_prog_compiler_no_builtin_flag= 5863 5864if test "$GCC" = yes; then 5865 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 5866 5867 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 5868echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 5869if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 5870 echo $ECHO_N "(cached) $ECHO_C" >&6 5871else 5872 lt_cv_prog_compiler_rtti_exceptions=no 5873 ac_outfile=conftest.$ac_objext 5874 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 5875 lt_compiler_flag="-fno-rtti -fno-exceptions" 5876 # Insert the option either (1) after the last *FLAGS variable, or 5877 # (2) before a word containing "conftest.", or (3) at the end. 5878 # Note that $ac_compile itself does not contain backslashes and begins 5879 # with a dollar sign (not a hyphen), so the echo should work correctly. 5880 # The option is referenced via a variable to avoid confusing sed. 5881 lt_compile=`echo "$ac_compile" | $SED \ 5882 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 5883 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 5884 -e 's:$: $lt_compiler_flag:'` 5885 (eval echo "\"\$as_me:5885: $lt_compile\"" >&5) 5886 (eval "$lt_compile" 2>conftest.err) 5887 ac_status=$? 5888 cat conftest.err >&5 5889 echo "$as_me:5889: \$? = $ac_status" >&5 5890 if (exit $ac_status) && test -s "$ac_outfile"; then 5891 # The compiler can only warn and ignore the option if not recognized 5892 # So say no if there are warnings 5893 if test ! -s conftest.err; then 5894 lt_cv_prog_compiler_rtti_exceptions=yes 5895 fi 5896 fi 5897 $rm conftest* 5898 5899fi 5900echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 5901echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 5902 5903if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 5904 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 5905else 5906 : 5907fi 5908 5909fi 5910 5911lt_prog_compiler_wl= 5912lt_prog_compiler_pic= 5913lt_prog_compiler_static= 5914 5915echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 5916echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 5917 5918 if test "$GCC" = yes; then 5919 lt_prog_compiler_wl='-Wl,' 5920 lt_prog_compiler_static='-static' 5921 5922 case $host_os in 5923 aix*) 5924 # All AIX code is PIC. 5925 if test "$host_cpu" = ia64; then 5926 # AIX 5 now supports IA64 processor 5927 lt_prog_compiler_static='-Bstatic' 5928 fi 5929 ;; 5930 5931 amigaos*) 5932 # FIXME: we need at least 68020 code to build shared libraries, but 5933 # adding the `-m68020' flag to GCC prevents building anything better, 5934 # like `-m68040'. 5935 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 5936 ;; 5937 5938 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 5939 # PIC is the default for these OSes. 5940 ;; 5941 5942 mingw* | pw32* | os2*) 5943 # This hack is so that the source file can tell whether it is being 5944 # built for inclusion in a dll (and should export symbols for example). 5945 lt_prog_compiler_pic='-DDLL_EXPORT' 5946 ;; 5947 5948 darwin* | rhapsody*) 5949 # PIC is the default on this platform 5950 # Common symbols not allowed in MH_DYLIB files 5951 lt_prog_compiler_pic='-fno-common' 5952 ;; 5953 5954 msdosdjgpp*) 5955 # Just because we use GCC doesn't mean we suddenly get shared libraries 5956 # on systems that don't support them. 5957 lt_prog_compiler_can_build_shared=no 5958 enable_shared=no 5959 ;; 5960 5961 sysv4*MP*) 5962 if test -d /usr/nec; then 5963 lt_prog_compiler_pic=-Kconform_pic 5964 fi 5965 ;; 5966 5967 hpux*) 5968 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 5969 # not for PA HP-UX. 5970 case "$host_cpu" in 5971 hppa*64*|ia64*) 5972 # +Z the default 5973 ;; 5974 *) 5975 lt_prog_compiler_pic='-fPIC' 5976 ;; 5977 esac 5978 ;; 5979 5980 *) 5981 lt_prog_compiler_pic='-fPIC' 5982 ;; 5983 esac 5984 else 5985 # PORTME Check for flag to pass linker flags through the system compiler. 5986 case $host_os in 5987 aix*) 5988 lt_prog_compiler_wl='-Wl,' 5989 if test "$host_cpu" = ia64; then 5990 # AIX 5 now supports IA64 processor 5991 lt_prog_compiler_static='-Bstatic' 5992 else 5993 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 5994 fi 5995 ;; 5996 5997 mingw* | pw32* | os2*) 5998 # This hack is so that the source file can tell whether it is being 5999 # built for inclusion in a dll (and should export symbols for example). 6000 lt_prog_compiler_pic='-DDLL_EXPORT' 6001 ;; 6002 6003 hpux9* | hpux10* | hpux11*) 6004 lt_prog_compiler_wl='-Wl,' 6005 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6006 # not for PA HP-UX. 6007 case "$host_cpu" in 6008 hppa*64*|ia64*) 6009 # +Z the default 6010 ;; 6011 *) 6012 lt_prog_compiler_pic='+Z' 6013 ;; 6014 esac 6015 # Is there a better lt_prog_compiler_static that works with the bundled CC? 6016 lt_prog_compiler_static='${wl}-a ${wl}archive' 6017 ;; 6018 6019 irix5* | irix6* | nonstopux*) 6020 lt_prog_compiler_wl='-Wl,' 6021 # PIC (with -KPIC) is the default. 6022 lt_prog_compiler_static='-non_shared' 6023 ;; 6024 6025 newsos6) 6026 lt_prog_compiler_pic='-KPIC' 6027 lt_prog_compiler_static='-Bstatic' 6028 ;; 6029 6030 linux*) 6031 case $CC in 6032 icc|ecc) 6033 lt_prog_compiler_wl='-Wl,' 6034 lt_prog_compiler_pic='-KPIC' 6035 lt_prog_compiler_static='-static' 6036 ;; 6037 ccc) 6038 lt_prog_compiler_wl='-Wl,' 6039 # All Alpha code is PIC. 6040 lt_prog_compiler_static='-non_shared' 6041 ;; 6042 esac 6043 ;; 6044 6045 osf3* | osf4* | osf5*) 6046 lt_prog_compiler_wl='-Wl,' 6047 # All OSF/1 code is PIC. 6048 lt_prog_compiler_static='-non_shared' 6049 ;; 6050 6051 sco3.2v5*) 6052 lt_prog_compiler_pic='-Kpic' 6053 lt_prog_compiler_static='-dn' 6054 ;; 6055 6056 solaris*) 6057 lt_prog_compiler_wl='-Wl,' 6058 lt_prog_compiler_pic='-KPIC' 6059 lt_prog_compiler_static='-Bstatic' 6060 ;; 6061 6062 sunos4*) 6063 lt_prog_compiler_wl='-Qoption ld ' 6064 lt_prog_compiler_pic='-PIC' 6065 lt_prog_compiler_static='-Bstatic' 6066 ;; 6067 6068 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 6069 lt_prog_compiler_wl='-Wl,' 6070 lt_prog_compiler_pic='-KPIC' 6071 lt_prog_compiler_static='-Bstatic' 6072 ;; 6073 6074 sysv4*MP*) 6075 if test -d /usr/nec ;then 6076 lt_prog_compiler_pic='-Kconform_pic' 6077 lt_prog_compiler_static='-Bstatic' 6078 fi 6079 ;; 6080 6081 uts4*) 6082 lt_prog_compiler_pic='-pic' 6083 lt_prog_compiler_static='-Bstatic' 6084 ;; 6085 6086 *) 6087 lt_prog_compiler_can_build_shared=no 6088 ;; 6089 esac 6090 fi 6091 6092echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 6093echo "${ECHO_T}$lt_prog_compiler_pic" >&6 6094 6095# 6096# Check to make sure the PIC flag actually works. 6097# 6098if test -n "$lt_prog_compiler_pic"; then 6099 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 6100echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 6101if test "${lt_prog_compiler_pic_works+set}" = set; then 6102 echo $ECHO_N "(cached) $ECHO_C" >&6 6103else 6104 lt_prog_compiler_pic_works=no 6105 ac_outfile=conftest.$ac_objext 6106 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6107 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 6108 # Insert the option either (1) after the last *FLAGS variable, or 6109 # (2) before a word containing "conftest.", or (3) at the end. 6110 # Note that $ac_compile itself does not contain backslashes and begins 6111 # with a dollar sign (not a hyphen), so the echo should work correctly. 6112 # The option is referenced via a variable to avoid confusing sed. 6113 lt_compile=`echo "$ac_compile" | $SED \ 6114 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 6115 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6116 -e 's:$: $lt_compiler_flag:'` 6117 (eval echo "\"\$as_me:6117: $lt_compile\"" >&5) 6118 (eval "$lt_compile" 2>conftest.err) 6119 ac_status=$? 6120 cat conftest.err >&5 6121 echo "$as_me:6121: \$? = $ac_status" >&5 6122 if (exit $ac_status) && test -s "$ac_outfile"; then 6123 # The compiler can only warn and ignore the option if not recognized 6124 # So say no if there are warnings 6125 if test ! -s conftest.err; then 6126 lt_prog_compiler_pic_works=yes 6127 fi 6128 fi 6129 $rm conftest* 6130 6131fi 6132echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 6133echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 6134 6135if test x"$lt_prog_compiler_pic_works" = xyes; then 6136 case $lt_prog_compiler_pic in 6137 "" | " "*) ;; 6138 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 6139 esac 6140else 6141 lt_prog_compiler_pic= 6142 lt_prog_compiler_can_build_shared=no 6143fi 6144 6145fi 6146case "$host_os" in 6147 # For platforms which do not support PIC, -DPIC is meaningless: 6148 *djgpp*) 6149 lt_prog_compiler_pic= 6150 ;; 6151 *) 6152 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 6153 ;; 6154esac 6155 6156echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 6157echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 6158if test "${lt_cv_prog_compiler_c_o+set}" = set; then 6159 echo $ECHO_N "(cached) $ECHO_C" >&6 6160else 6161 lt_cv_prog_compiler_c_o=no 6162 $rm -r conftest 2>/dev/null 6163 mkdir conftest 6164 cd conftest 6165 mkdir out 6166 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6167 6168 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers 6169 # that will create temporary files in the current directory regardless of 6170 # the output directory. Thus, making CWD read-only will cause this test 6171 # to fail, enabling locking or at least warning the user not to do parallel 6172 # builds. 6173 chmod -w . 6174 6175 lt_compiler_flag="-o out/conftest2.$ac_objext" 6176 # Insert the option either (1) after the last *FLAGS variable, or 6177 # (2) before a word containing "conftest.", or (3) at the end. 6178 # Note that $ac_compile itself does not contain backslashes and begins 6179 # with a dollar sign (not a hyphen), so the echo should work correctly. 6180 lt_compile=`echo "$ac_compile" | $SED \ 6181 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 6182 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6183 -e 's:$: $lt_compiler_flag:'` 6184 (eval echo "\"\$as_me:6184: $lt_compile\"" >&5) 6185 (eval "$lt_compile" 2>out/conftest.err) 6186 ac_status=$? 6187 cat out/conftest.err >&5 6188 echo "$as_me:6188: \$? = $ac_status" >&5 6189 if (exit $ac_status) && test -s out/conftest2.$ac_objext 6190 then 6191 # The compiler can only warn and ignore the option if not recognized 6192 # So say no if there are warnings 6193 if test ! -s out/conftest.err; then 6194 lt_cv_prog_compiler_c_o=yes 6195 fi 6196 fi 6197 chmod u+w . 6198 $rm conftest* out/* 6199 rmdir out 6200 cd .. 6201 rmdir conftest 6202 $rm conftest* 6203 6204fi 6205echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 6206echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 6207 6208 6209hard_links="nottested" 6210if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 6211 # do not overwrite the value of need_locks provided by the user 6212 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 6213echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 6214 hard_links=yes 6215 $rm conftest* 6216 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6217 touch conftest.a 6218 ln conftest.a conftest.b 2>&5 || hard_links=no 6219 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6220 echo "$as_me:$LINENO: result: $hard_links" >&5 6221echo "${ECHO_T}$hard_links" >&6 6222 if test "$hard_links" = no; then 6223 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 6224echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 6225 need_locks=warn 6226 fi 6227else 6228 need_locks=no 6229fi 6230 6231echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 6232echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 6233 6234 runpath_var= 6235 allow_undefined_flag= 6236 enable_shared_with_static_runtimes=no 6237 archive_cmds= 6238 archive_expsym_cmds= 6239 old_archive_From_new_cmds= 6240 old_archive_from_expsyms_cmds= 6241 export_dynamic_flag_spec= 6242 whole_archive_flag_spec= 6243 thread_safe_flag_spec= 6244 hardcode_libdir_flag_spec= 6245 hardcode_libdir_flag_spec_ld= 6246 hardcode_libdir_separator= 6247 hardcode_direct=no 6248 hardcode_minus_L=no 6249 hardcode_shlibpath_var=unsupported 6250 link_all_deplibs=unknown 6251 hardcode_automatic=no 6252 module_cmds= 6253 module_expsym_cmds= 6254 always_export_symbols=no 6255 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 6256 # include_expsyms should be a list of space-separated symbols to be *always* 6257 # included in the symbol list 6258 include_expsyms= 6259 # exclude_expsyms can be an extended regexp of symbols to exclude 6260 # it will be wrapped by ` (' and `)$', so one must not match beginning or 6261 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 6262 # as well as any symbol that contains `d'. 6263 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 6264 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 6265 # platforms (ab)use it in PIC code, but their linkers get confused if 6266 # the symbol is explicitly referenced. Since portable code cannot 6267 # rely on this symbol name, it's probably fine to never include it in 6268 # preloaded symbol tables. 6269 extract_expsyms_cmds= 6270 6271 case $host_os in 6272 cygwin* | mingw* | pw32*) 6273 # FIXME: the MSVC++ port hasn't been tested in a loooong time 6274 # When not using gcc, we currently assume that we are using 6275 # Microsoft Visual C++. 6276 if test "$GCC" != yes; then 6277 with_gnu_ld=no 6278 fi 6279 ;; 6280 openbsd*) 6281 with_gnu_ld=no 6282 ;; 6283 esac 6284 6285 ld_shlibs=yes 6286 if test "$with_gnu_ld" = yes; then 6287 # If archive_cmds runs LD, not CC, wlarc should be empty 6288 wlarc='${wl}' 6289 6290 # See if GNU ld supports shared libraries. 6291 case $host_os in 6292 aix3* | aix4* | aix5*) 6293 # On AIX/PPC, the GNU linker is very broken 6294 if test "$host_cpu" != ia64; then 6295 ld_shlibs=no 6296 cat <<EOF 1>&2 6297 6298*** Warning: the GNU linker, at least up to release 2.9.1, is reported 6299*** to be unable to reliably create shared libraries on AIX. 6300*** Therefore, libtool is disabling shared libraries support. If you 6301*** really care for shared libraries, you may want to modify your PATH 6302*** so that a non-GNU linker is found, and then restart. 6303 6304EOF 6305 fi 6306 ;; 6307 6308 amigaos*) 6309 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)' 6310 hardcode_libdir_flag_spec='-L$libdir' 6311 hardcode_minus_L=yes 6312 6313 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 6314 # that the semantics of dynamic libraries on AmigaOS, at least up 6315 # to version 4, is to share data among multiple programs linked 6316 # with the same dynamic library. Since this doesn't match the 6317 # behavior of shared libraries on other platforms, we can't use 6318 # them. 6319 ld_shlibs=no 6320 ;; 6321 6322 beos*) 6323 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6324 allow_undefined_flag=unsupported 6325 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 6326 # support --undefined. This deserves some investigation. FIXME 6327 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6328 else 6329 ld_shlibs=no 6330 fi 6331 ;; 6332 6333 cygwin* | mingw* | pw32*) 6334 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 6335 # as there is no search path for DLLs. 6336 hardcode_libdir_flag_spec='-L$libdir' 6337 allow_undefined_flag=unsupported 6338 always_export_symbols=no 6339 enable_shared_with_static_runtimes=yes 6340 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 6341 6342 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 6343 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 6344 # If the export-symbols file already is a .def file (1st line 6345 # is EXPORTS), use it as is; otherwise, prepend... 6346 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 6347 cp $export_symbols $output_objdir/$soname.def; 6348 else 6349 echo EXPORTS > $output_objdir/$soname.def; 6350 cat $export_symbols >> $output_objdir/$soname.def; 6351 fi~ 6352 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 6353 else 6354 ld_shlibs=no 6355 fi 6356 ;; 6357 6358 netbsd*) 6359 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 6360 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 6361 wlarc= 6362 else 6363 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6364 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6365 fi 6366 ;; 6367 6368 solaris* | sysv5*) 6369 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 6370 ld_shlibs=no 6371 cat <<EOF 1>&2 6372 6373*** Warning: The releases 2.8.* of the GNU linker cannot reliably 6374*** create shared libraries on Solaris systems. Therefore, libtool 6375*** is disabling shared libraries support. We urge you to upgrade GNU 6376*** binutils to release 2.9.1 or newer. Another option is to modify 6377*** your PATH or compiler configuration so that the native linker is 6378*** used, and then restart. 6379 6380EOF 6381 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6382 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6383 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6384 else 6385 ld_shlibs=no 6386 fi 6387 ;; 6388 6389 sunos4*) 6390 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6391 wlarc= 6392 hardcode_direct=yes 6393 hardcode_shlibpath_var=no 6394 ;; 6395 6396 *) 6397 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6398 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6399 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6400 else 6401 ld_shlibs=no 6402 fi 6403 ;; 6404 esac 6405 6406 if test "$ld_shlibs" = yes; then 6407 runpath_var=LD_RUN_PATH 6408 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 6409 export_dynamic_flag_spec='${wl}--export-dynamic' 6410 # ancient GNU ld didn't support --whole-archive et. al. 6411 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 6412 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 6413 else 6414 whole_archive_flag_spec= 6415 fi 6416 fi 6417 else 6418 # PORTME fill in a description of your system's linker (not GNU ld) 6419 case $host_os in 6420 aix3*) 6421 allow_undefined_flag=unsupported 6422 always_export_symbols=yes 6423 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' 6424 # Note: this linker hardcodes the directories in LIBPATH if there 6425 # are no directories specified by -L. 6426 hardcode_minus_L=yes 6427 if test "$GCC" = yes && test -z "$link_static_flag"; then 6428 # Neither direct hardcoding nor static linking is supported with a 6429 # broken collect2. 6430 hardcode_direct=unsupported 6431 fi 6432 ;; 6433 6434 aix4* | aix5*) 6435 if test "$host_cpu" = ia64; then 6436 # On IA64, the linker does run time linking by default, so we don't 6437 # have to do anything special. 6438 aix_use_runtimelinking=no 6439 exp_sym_flag='-Bexport' 6440 no_entry_flag="" 6441 else 6442 # If we're using GNU nm, then we don't want the "-C" option. 6443 # -C means demangle to AIX nm, but means don't demangle with GNU nm 6444 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 6445 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' 6446 else 6447 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' 6448 fi 6449 aix_use_runtimelinking=no 6450 6451 # Test if we are trying to use run time linking or normal 6452 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 6453 # need to do runtime linking. 6454 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 6455 for ld_flag in $LDFLAGS; do 6456 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 6457 aix_use_runtimelinking=yes 6458 break 6459 fi 6460 done 6461 esac 6462 6463 exp_sym_flag='-bexport' 6464 no_entry_flag='-bnoentry' 6465 fi 6466 6467 # When large executables or shared objects are built, AIX ld can 6468 # have problems creating the table of contents. If linking a library 6469 # or program results in "error TOC overflow" add -mminimal-toc to 6470 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 6471 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 6472 6473 archive_cmds='' 6474 hardcode_direct=yes 6475 hardcode_libdir_separator=':' 6476 link_all_deplibs=yes 6477 6478 if test "$GCC" = yes; then 6479 case $host_os in aix4.012|aix4.012.*) 6480 # We only want to do this on AIX 4.2 and lower, the check 6481 # below for broken collect2 doesn't work under 4.3+ 6482 collect2name=`${CC} -print-prog-name=collect2` 6483 if test -f "$collect2name" && \ 6484 strings "$collect2name" | grep resolve_lib_name >/dev/null 6485 then 6486 # We have reworked collect2 6487 hardcode_direct=yes 6488 else 6489 # We have old collect2 6490 hardcode_direct=unsupported 6491 # It fails to find uninstalled libraries when the uninstalled 6492 # path is not listed in the libpath. Setting hardcode_minus_L 6493 # to unsupported forces relinking 6494 hardcode_minus_L=yes 6495 hardcode_libdir_flag_spec='-L$libdir' 6496 hardcode_libdir_separator= 6497 fi 6498 esac 6499 shared_flag='-shared' 6500 else 6501 # not using gcc 6502 if test "$host_cpu" = ia64; then 6503 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 6504 # chokes on -Wl,-G. The following line is correct: 6505 shared_flag='-G' 6506 else 6507 if test "$aix_use_runtimelinking" = yes; then 6508 shared_flag='${wl}-G' 6509 else 6510 shared_flag='${wl}-bM:SRE' 6511 fi 6512 fi 6513 fi 6514 6515 # It seems that -bexpall does not export symbols beginning with 6516 # underscore (_), so it is better to generate a list of symbols to export. 6517 always_export_symbols=yes 6518 if test "$aix_use_runtimelinking" = yes; then 6519 # Warning - without using the other runtime loading flags (-brtl), 6520 # -berok will link without error, but may produce a broken library. 6521 allow_undefined_flag='-berok' 6522 # Determine the default libpath from the value encoded in an empty executable. 6523 cat >conftest.$ac_ext <<_ACEOF 6524#line $LINENO "configure" 6525/* confdefs.h. */ 6526_ACEOF 6527cat confdefs.h >>conftest.$ac_ext 6528cat >>conftest.$ac_ext <<_ACEOF 6529/* end confdefs.h. */ 6530 6531int 6532main () 6533{ 6534 6535 ; 6536 return 0; 6537} 6538_ACEOF 6539rm -f conftest.$ac_objext conftest$ac_exeext 6540if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6541 (eval $ac_link) 2>&5 6542 ac_status=$? 6543 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6544 (exit $ac_status); } && 6545 { ac_try='test -s conftest$ac_exeext' 6546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6547 (eval $ac_try) 2>&5 6548 ac_status=$? 6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6550 (exit $ac_status); }; }; then 6551 6552aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 6553}'` 6554# Check for a 64-bit object if we didn't find anything. 6555if 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; } 6556}'`; fi 6557else 6558 echo "$as_me: failed program was:" >&5 6559sed 's/^/| /' conftest.$ac_ext >&5 6560 6561fi 6562rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6563if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 6564 6565 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 6566 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" 6567 else 6568 if test "$host_cpu" = ia64; then 6569 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 6570 allow_undefined_flag="-z nodefs" 6571 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" 6572 else 6573 # Determine the default libpath from the value encoded in an empty executable. 6574 cat >conftest.$ac_ext <<_ACEOF 6575#line $LINENO "configure" 6576/* confdefs.h. */ 6577_ACEOF 6578cat confdefs.h >>conftest.$ac_ext 6579cat >>conftest.$ac_ext <<_ACEOF 6580/* end confdefs.h. */ 6581 6582int 6583main () 6584{ 6585 6586 ; 6587 return 0; 6588} 6589_ACEOF 6590rm -f conftest.$ac_objext conftest$ac_exeext 6591if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6592 (eval $ac_link) 2>&5 6593 ac_status=$? 6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6595 (exit $ac_status); } && 6596 { ac_try='test -s conftest$ac_exeext' 6597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6598 (eval $ac_try) 2>&5 6599 ac_status=$? 6600 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6601 (exit $ac_status); }; }; then 6602 6603aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 6604}'` 6605# Check for a 64-bit object if we didn't find anything. 6606if 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; } 6607}'`; fi 6608else 6609 echo "$as_me: failed program was:" >&5 6610sed 's/^/| /' conftest.$ac_ext >&5 6611 6612fi 6613rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6614if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 6615 6616 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 6617 # Warning - without using the other run time loading flags, 6618 # -berok will link without error, but may produce a broken library. 6619 no_undefined_flag=' ${wl}-bernotok' 6620 allow_undefined_flag=' ${wl}-berok' 6621 # -bexpall does not export symbols beginning with underscore (_) 6622 always_export_symbols=yes 6623 # Exported symbols can be pulled into shared objects from archives 6624 whole_archive_flag_spec=' ' 6625 archive_cmds_need_lc=yes 6626 # This is similar to how AIX traditionally builds it's shared libraries. 6627 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' 6628 fi 6629 fi 6630 ;; 6631 6632 amigaos*) 6633 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)' 6634 hardcode_libdir_flag_spec='-L$libdir' 6635 hardcode_minus_L=yes 6636 # see comment about different semantics on the GNU ld section 6637 ld_shlibs=no 6638 ;; 6639 6640 bsdi4*) 6641 export_dynamic_flag_spec=-rdynamic 6642 ;; 6643 6644 cygwin* | mingw* | pw32*) 6645 # When not using gcc, we currently assume that we are using 6646 # Microsoft Visual C++. 6647 # hardcode_libdir_flag_spec is actually meaningless, as there is 6648 # no search path for DLLs. 6649 hardcode_libdir_flag_spec=' ' 6650 allow_undefined_flag=unsupported 6651 # Tell ltmain to make .lib files, not .a files. 6652 libext=lib 6653 # Tell ltmain to make .dll files, not .so files. 6654 shrext=".dll" 6655 # FIXME: Setting linknames here is a bad hack. 6656 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 6657 # The linker will automatically build a .lib file if we build a DLL. 6658 old_archive_From_new_cmds='true' 6659 # FIXME: Should let the user specify the lib program. 6660 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 6661 fix_srcfile_path='`cygpath -w "$srcfile"`' 6662 enable_shared_with_static_runtimes=yes 6663 ;; 6664 6665 darwin* | rhapsody*) 6666 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then 6667 archive_cmds_need_lc=no 6668 case "$host_os" in 6669 rhapsody* | darwin1.[012]) 6670 allow_undefined_flag='-undefined suppress' 6671 ;; 6672 *) # Darwin 1.3 on 6673 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress' 6674 ;; 6675 esac 6676 # FIXME: Relying on posixy $() will cause problems for 6677 # cross-compilation, but unfortunately the echo tests do not 6678 # yet detect zsh echo's removal of \ escapes. Also zsh mangles 6679 # `"' quotes if we put them in here... so don't! 6680 lt_int_apple_cc_single_mod=no 6681 output_verbose_link_cmd='echo' 6682 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 6683 lt_int_apple_cc_single_mod=yes 6684 fi 6685 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 6686 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 6687 else 6688 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 6689 fi 6690 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' 6691 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 6692 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 6693 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 6694 else 6695 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 6696 fi 6697 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 6698 hardcode_direct=no 6699 hardcode_automatic=yes 6700 hardcode_shlibpath_var=unsupported 6701 whole_archive_flag_spec='-all_load $convenience' 6702 link_all_deplibs=yes 6703 fi 6704 ;; 6705 6706 dgux*) 6707 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6708 hardcode_libdir_flag_spec='-L$libdir' 6709 hardcode_shlibpath_var=no 6710 ;; 6711 6712 freebsd1*) 6713 ld_shlibs=no 6714 ;; 6715 6716 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 6717 # support. Future versions do this automatically, but an explicit c++rt0.o 6718 # does not break anything, and helps significantly (at the cost of a little 6719 # extra space). 6720 freebsd2.2*) 6721 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 6722 hardcode_libdir_flag_spec='-R$libdir' 6723 hardcode_direct=yes 6724 hardcode_shlibpath_var=no 6725 ;; 6726 6727 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 6728 freebsd2*) 6729 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6730 hardcode_direct=yes 6731 hardcode_minus_L=yes 6732 hardcode_shlibpath_var=no 6733 ;; 6734 6735 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 6736 freebsd*) 6737 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 6738 hardcode_libdir_flag_spec='-R$libdir' 6739 hardcode_direct=yes 6740 hardcode_shlibpath_var=no 6741 ;; 6742 6743 hpux9*) 6744 if test "$GCC" = yes; then 6745 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' 6746 else 6747 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' 6748 fi 6749 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 6750 hardcode_libdir_separator=: 6751 hardcode_direct=yes 6752 6753 # hardcode_minus_L: Not really in the search PATH, 6754 # but as the default location of the library. 6755 hardcode_minus_L=yes 6756 export_dynamic_flag_spec='${wl}-E' 6757 ;; 6758 6759 hpux10* | hpux11*) 6760 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 6761 case "$host_cpu" in 6762 hppa*64*|ia64*) 6763 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 6764 ;; 6765 *) 6766 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 6767 ;; 6768 esac 6769 else 6770 case "$host_cpu" in 6771 hppa*64*|ia64*) 6772 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 6773 ;; 6774 *) 6775 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 6776 ;; 6777 esac 6778 fi 6779 if test "$with_gnu_ld" = no; then 6780 case "$host_cpu" in 6781 hppa*64*) 6782 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 6783 hardcode_libdir_flag_spec_ld='+b $libdir' 6784 hardcode_libdir_separator=: 6785 hardcode_direct=no 6786 hardcode_shlibpath_var=no 6787 ;; 6788 ia64*) 6789 hardcode_libdir_flag_spec='-L$libdir' 6790 hardcode_direct=no 6791 hardcode_shlibpath_var=no 6792 6793 # hardcode_minus_L: Not really in the search PATH, 6794 # but as the default location of the library. 6795 hardcode_minus_L=yes 6796 ;; 6797 *) 6798 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 6799 hardcode_libdir_separator=: 6800 hardcode_direct=yes 6801 export_dynamic_flag_spec='${wl}-E' 6802 6803 # hardcode_minus_L: Not really in the search PATH, 6804 # but as the default location of the library. 6805 hardcode_minus_L=yes 6806 ;; 6807 esac 6808 fi 6809 ;; 6810 6811 irix5* | irix6* | nonstopux*) 6812 if test "$GCC" = yes; then 6813 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' 6814 else 6815 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' 6816 hardcode_libdir_flag_spec_ld='-rpath $libdir' 6817 fi 6818 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 6819 hardcode_libdir_separator=: 6820 link_all_deplibs=yes 6821 ;; 6822 6823 netbsd*) 6824 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 6825 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 6826 else 6827 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 6828 fi 6829 hardcode_libdir_flag_spec='-R$libdir' 6830 hardcode_direct=yes 6831 hardcode_shlibpath_var=no 6832 ;; 6833 6834 newsos6) 6835 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6836 hardcode_direct=yes 6837 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 6838 hardcode_libdir_separator=: 6839 hardcode_shlibpath_var=no 6840 ;; 6841 6842 openbsd*) 6843 hardcode_direct=yes 6844 hardcode_shlibpath_var=no 6845 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6846 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 6847 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 6848 export_dynamic_flag_spec='${wl}-E' 6849 else 6850 case $host_os in 6851 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 6852 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6853 hardcode_libdir_flag_spec='-R$libdir' 6854 ;; 6855 *) 6856 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 6857 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 6858 ;; 6859 esac 6860 fi 6861 ;; 6862 6863 os2*) 6864 hardcode_libdir_flag_spec='-L$libdir' 6865 hardcode_minus_L=yes 6866 allow_undefined_flag=unsupported 6867 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' 6868 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 6869 ;; 6870 6871 osf3*) 6872 if test "$GCC" = yes; then 6873 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 6874 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' 6875 else 6876 allow_undefined_flag=' -expect_unresolved \*' 6877 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' 6878 fi 6879 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 6880 hardcode_libdir_separator=: 6881 ;; 6882 6883 osf4* | osf5*) # as osf3* with the addition of -msym flag 6884 if test "$GCC" = yes; then 6885 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 6886 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' 6887 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 6888 else 6889 allow_undefined_flag=' -expect_unresolved \*' 6890 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' 6891 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 6892 $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' 6893 6894 # Both c and cxx compiler support -rpath directly 6895 hardcode_libdir_flag_spec='-rpath $libdir' 6896 fi 6897 hardcode_libdir_separator=: 6898 ;; 6899 6900 sco3.2v5*) 6901 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6902 hardcode_shlibpath_var=no 6903 export_dynamic_flag_spec='${wl}-Bexport' 6904 runpath_var=LD_RUN_PATH 6905 hardcode_runpath_var=yes 6906 ;; 6907 6908 solaris*) 6909 no_undefined_flag=' -z text' 6910 if test "$GCC" = yes; then 6911 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 6912 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 6913 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 6914 else 6915 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 6916 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 6917 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 6918 fi 6919 hardcode_libdir_flag_spec='-R$libdir' 6920 hardcode_shlibpath_var=no 6921 case $host_os in 6922 solaris2.[0-5] | solaris2.[0-5].*) ;; 6923 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 6924 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 6925 esac 6926 link_all_deplibs=yes 6927 ;; 6928 6929 sunos4*) 6930 if test "x$host_vendor" = xsequent; then 6931 # Use $CC to link under sequent, because it throws in some extra .o 6932 # files that make .init and .fini sections work. 6933 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 6934 else 6935 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 6936 fi 6937 hardcode_libdir_flag_spec='-L$libdir' 6938 hardcode_direct=yes 6939 hardcode_minus_L=yes 6940 hardcode_shlibpath_var=no 6941 ;; 6942 6943 sysv4) 6944 case $host_vendor in 6945 sni) 6946 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6947 hardcode_direct=yes # is this really true??? 6948 ;; 6949 siemens) 6950 ## LD is ld it makes a PLAMLIB 6951 ## CC just makes a GrossModule. 6952 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 6953 reload_cmds='$CC -r -o $output$reload_objs' 6954 hardcode_direct=no 6955 ;; 6956 motorola) 6957 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6958 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 6959 ;; 6960 esac 6961 runpath_var='LD_RUN_PATH' 6962 hardcode_shlibpath_var=no 6963 ;; 6964 6965 sysv4.3*) 6966 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6967 hardcode_shlibpath_var=no 6968 export_dynamic_flag_spec='-Bexport' 6969 ;; 6970 6971 sysv4*MP*) 6972 if test -d /usr/nec; then 6973 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6974 hardcode_shlibpath_var=no 6975 runpath_var=LD_RUN_PATH 6976 hardcode_runpath_var=yes 6977 ld_shlibs=yes 6978 fi 6979 ;; 6980 6981 sysv4.2uw2*) 6982 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 6983 hardcode_direct=yes 6984 hardcode_minus_L=no 6985 hardcode_shlibpath_var=no 6986 hardcode_runpath_var=yes 6987 runpath_var=LD_RUN_PATH 6988 ;; 6989 6990 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 6991 no_undefined_flag='${wl}-z ${wl}text' 6992 if test "$GCC" = yes; then 6993 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 6994 else 6995 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 6996 fi 6997 runpath_var='LD_RUN_PATH' 6998 hardcode_shlibpath_var=no 6999 ;; 7000 7001 sysv5*) 7002 no_undefined_flag=' -z text' 7003 # $CC -shared without GNU ld will not create a library from C++ 7004 # object files and a static libstdc++, better avoid it by now 7005 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 7006 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7007 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 7008 hardcode_libdir_flag_spec= 7009 hardcode_shlibpath_var=no 7010 runpath_var='LD_RUN_PATH' 7011 ;; 7012 7013 uts4*) 7014 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7015 hardcode_libdir_flag_spec='-L$libdir' 7016 hardcode_shlibpath_var=no 7017 ;; 7018 7019 *) 7020 ld_shlibs=no 7021 ;; 7022 esac 7023 fi 7024 7025echo "$as_me:$LINENO: result: $ld_shlibs" >&5 7026echo "${ECHO_T}$ld_shlibs" >&6 7027test "$ld_shlibs" = no && can_build_shared=no 7028 7029variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 7030if test "$GCC" = yes; then 7031 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 7032fi 7033 7034# 7035# Do we need to explicitly link libc? 7036# 7037case "x$archive_cmds_need_lc" in 7038x|xyes) 7039 # Assume -lc should be added 7040 archive_cmds_need_lc=yes 7041 7042 if test "$enable_shared" = yes && test "$GCC" = yes; then 7043 case $archive_cmds in 7044 *'~'*) 7045 # FIXME: we may have to deal with multi-command sequences. 7046 ;; 7047 '$CC '*) 7048 # Test whether the compiler implicitly links with -lc since on some 7049 # systems, -lgcc has to come before -lc. If gcc already passes -lc 7050 # to ld, don't add -lc before -lgcc. 7051 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 7052echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 7053 $rm conftest* 7054 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7055 7056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7057 (eval $ac_compile) 2>&5 7058 ac_status=$? 7059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7060 (exit $ac_status); } 2>conftest.err; then 7061 soname=conftest 7062 lib=conftest 7063 libobjs=conftest.$ac_objext 7064 deplibs= 7065 wl=$lt_prog_compiler_wl 7066 compiler_flags=-v 7067 linker_flags=-v 7068 verstring= 7069 output_objdir=. 7070 libname=conftest 7071 lt_save_allow_undefined_flag=$allow_undefined_flag 7072 allow_undefined_flag= 7073 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 7074 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 7075 ac_status=$? 7076 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7077 (exit $ac_status); } 7078 then 7079 archive_cmds_need_lc=no 7080 else 7081 archive_cmds_need_lc=yes 7082 fi 7083 allow_undefined_flag=$lt_save_allow_undefined_flag 7084 else 7085 cat conftest.err 1>&5 7086 fi 7087 $rm conftest* 7088 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 7089echo "${ECHO_T}$archive_cmds_need_lc" >&6 7090 ;; 7091 esac 7092 fi 7093 ;; 7094esac 7095 7096echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 7097echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 7098hardcode_action= 7099if test -n "$hardcode_libdir_flag_spec" || \ 7100 test -n "$runpath_var " || \ 7101 test "X$hardcode_automatic"="Xyes" ; then 7102 7103 # We can hardcode non-existant directories. 7104 if test "$hardcode_direct" != no && 7105 # If the only mechanism to avoid hardcoding is shlibpath_var, we 7106 # have to relink, otherwise we might link with an installed library 7107 # when we should be linking with a yet-to-be-installed one 7108 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 7109 test "$hardcode_minus_L" != no; then 7110 # Linking always hardcodes the temporary library directory. 7111 hardcode_action=relink 7112 else 7113 # We can link without hardcoding, and we can hardcode nonexisting dirs. 7114 hardcode_action=immediate 7115 fi 7116else 7117 # We cannot hardcode anything, or else we can only hardcode existing 7118 # directories. 7119 hardcode_action=unsupported 7120fi 7121echo "$as_me:$LINENO: result: $hardcode_action" >&5 7122echo "${ECHO_T}$hardcode_action" >&6 7123 7124if test "$hardcode_action" = relink; then 7125 # Fast installation is not supported 7126 enable_fast_install=no 7127elif test "$shlibpath_overrides_runpath" = yes || 7128 test "$enable_shared" = no; then 7129 # Fast installation is not necessary 7130 enable_fast_install=needless 7131fi 7132 7133striplib= 7134old_striplib= 7135echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 7136echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 7137if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 7138 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 7139 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 7140 echo "$as_me:$LINENO: result: yes" >&5 7141echo "${ECHO_T}yes" >&6 7142else 7143# FIXME - insert some real tests, host_os isn't really good enough 7144 case $host_os in 7145 darwin*) 7146 if test -n "$STRIP" ; then 7147 striplib="$STRIP -x" 7148 echo "$as_me:$LINENO: result: yes" >&5 7149echo "${ECHO_T}yes" >&6 7150 else 7151 echo "$as_me:$LINENO: result: no" >&5 7152echo "${ECHO_T}no" >&6 7153fi 7154 ;; 7155 *) 7156 echo "$as_me:$LINENO: result: no" >&5 7157echo "${ECHO_T}no" >&6 7158 ;; 7159 esac 7160fi 7161 7162echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 7163echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 7164library_names_spec= 7165libname_spec='lib$name' 7166soname_spec= 7167shrext=".so" 7168postinstall_cmds= 7169postuninstall_cmds= 7170finish_cmds= 7171finish_eval= 7172shlibpath_var= 7173shlibpath_overrides_runpath=unknown 7174version_type=none 7175dynamic_linker="$host_os ld.so" 7176sys_lib_dlsearch_path_spec="/lib /usr/lib" 7177if test "$GCC" = yes; then 7178 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7179 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 7180 # if the path contains ";" then we assume it to be the separator 7181 # otherwise default to the standard path separator (i.e. ":") - it is 7182 # assumed that no part of a normal pathname contains ";" but that should 7183 # okay in the real world where ";" in dirpaths is itself problematic. 7184 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 7185 else 7186 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 7187 fi 7188else 7189 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 7190fi 7191need_lib_prefix=unknown 7192hardcode_into_libs=no 7193 7194# when you set need_version to no, make sure it does not cause -set_version 7195# flags to be left without arguments 7196need_version=unknown 7197 7198case $host_os in 7199aix3*) 7200 version_type=linux 7201 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 7202 shlibpath_var=LIBPATH 7203 7204 # AIX 3 has no versioning support, so we append a major version to the name. 7205 soname_spec='${libname}${release}${shared_ext}$major' 7206 ;; 7207 7208aix4* | aix5*) 7209 version_type=linux 7210 need_lib_prefix=no 7211 need_version=no 7212 hardcode_into_libs=yes 7213 if test "$host_cpu" = ia64; then 7214 # AIX 5 supports IA64 7215 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 7216 shlibpath_var=LD_LIBRARY_PATH 7217 else 7218 # With GCC up to 2.95.x, collect2 would create an import file 7219 # for dependence libraries. The import file would start with 7220 # the line `#! .'. This would cause the generated library to 7221 # depend on `.', always an invalid library. This was fixed in 7222 # development snapshots of GCC prior to 3.0. 7223 case $host_os in 7224 aix4 | aix4.[01] | aix4.[01].*) 7225 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 7226 echo ' yes ' 7227 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 7228 : 7229 else 7230 can_build_shared=no 7231 fi 7232 ;; 7233 esac 7234 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 7235 # soname into executable. Probably we can add versioning support to 7236 # collect2, so additional links can be useful in future. 7237 if test "$aix_use_runtimelinking" = yes; then 7238 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 7239 # instead of lib<name>.a to let people know that these are not 7240 # typical AIX shared libraries. 7241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7242 else 7243 # We preserve .a as extension for shared libraries through AIX4.2 7244 # and later when we are not doing run time linking. 7245 library_names_spec='${libname}${release}.a $libname.a' 7246 soname_spec='${libname}${release}${shared_ext}$major' 7247 fi 7248 shlibpath_var=LIBPATH 7249 fi 7250 ;; 7251 7252amigaos*) 7253 library_names_spec='$libname.ixlibrary $libname.a' 7254 # Create ${libname}_ixlibrary.a entries in /sys/libs. 7255 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' 7256 ;; 7257 7258beos*) 7259 library_names_spec='${libname}${shared_ext}' 7260 dynamic_linker="$host_os ld.so" 7261 shlibpath_var=LIBRARY_PATH 7262 ;; 7263 7264bsdi4*) 7265 version_type=linux 7266 need_version=no 7267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7268 soname_spec='${libname}${release}${shared_ext}$major' 7269 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 7270 shlibpath_var=LD_LIBRARY_PATH 7271 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 7272 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 7273 # the default ld.so.conf also contains /usr/contrib/lib and 7274 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 7275 # libtool to hard-code these into programs 7276 ;; 7277 7278cygwin* | mingw* | pw32*) 7279 version_type=windows 7280 shrext=".dll" 7281 need_version=no 7282 need_lib_prefix=no 7283 7284 case $GCC,$host_os in 7285 yes,cygwin* | yes,mingw* | yes,pw32*) 7286 library_names_spec='$libname.dll.a' 7287 # DLL is installed to $(libdir)/../bin by postinstall_cmds 7288 postinstall_cmds='base_file=`basename \${file}`~ 7289 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 7290 dldir=$destdir/`dirname \$dlpath`~ 7291 test -d \$dldir || mkdir -p \$dldir~ 7292 $install_prog $dir/$dlname \$dldir/$dlname' 7293 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 7294 dlpath=$dir/\$dldll~ 7295 $rm \$dlpath' 7296 shlibpath_overrides_runpath=yes 7297 7298 case $host_os in 7299 cygwin*) 7300 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 7301 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7302 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" 7303 ;; 7304 mingw*) 7305 # MinGW DLLs use traditional 'lib' prefix 7306 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7307 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7308 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 7309 # It is most probably a Windows format PATH printed by 7310 # mingw gcc, but we are running on Cygwin. Gcc prints its search 7311 # path with ; separators, and with drive letters. We can handle the 7312 # drive letters (cygwin fileutils understands them), so leave them, 7313 # especially as we might pass files found there to a mingw objdump, 7314 # which wouldn't understand a cygwinified path. Ahh. 7315 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 7316 else 7317 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 7318 fi 7319 ;; 7320 pw32*) 7321 # pw32 DLLs use 'pw' prefix rather than 'lib' 7322 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 7323 ;; 7324 esac 7325 ;; 7326 7327 *) 7328 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 7329 ;; 7330 esac 7331 dynamic_linker='Win32 ld.exe' 7332 # FIXME: first we should search . and the directory the executable is in 7333 shlibpath_var=PATH 7334 ;; 7335 7336darwin* | rhapsody*) 7337 dynamic_linker="$host_os dyld" 7338 version_type=darwin 7339 need_lib_prefix=no 7340 need_version=no 7341 # FIXME: Relying on posixy $() will cause problems for 7342 # cross-compilation, but unfortunately the echo tests do not 7343 # yet detect zsh echo's removal of \ escapes. 7344 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 7345 soname_spec='${libname}${release}${major}$shared_ext' 7346 shlibpath_overrides_runpath=yes 7347 shlibpath_var=DYLD_LIBRARY_PATH 7348 shrext='$(test .$module = .yes && echo .so || echo .dylib)' 7349 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 7350 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then 7351 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"` 7352 fi 7353 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 7354 ;; 7355 7356dgux*) 7357 version_type=linux 7358 need_lib_prefix=no 7359 need_version=no 7360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 7361 soname_spec='${libname}${release}${shared_ext}$major' 7362 shlibpath_var=LD_LIBRARY_PATH 7363 ;; 7364 7365freebsd1*) 7366 dynamic_linker=no 7367 ;; 7368 7369freebsd*) 7370 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 7371 version_type=freebsd-$objformat 7372 case $version_type in 7373 freebsd-elf*) 7374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 7375 need_version=no 7376 need_lib_prefix=no 7377 ;; 7378 freebsd-*) 7379 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 7380 need_version=yes 7381 ;; 7382 esac 7383 shlibpath_var=LD_LIBRARY_PATH 7384 case $host_os in 7385 freebsd2*) 7386 shlibpath_overrides_runpath=yes 7387 ;; 7388 freebsd3.01* | freebsdelf3.01*) 7389 shlibpath_overrides_runpath=yes 7390 hardcode_into_libs=yes 7391 ;; 7392 *) # from 3.2 on 7393 shlibpath_overrides_runpath=no 7394 hardcode_into_libs=yes 7395 ;; 7396 esac 7397 ;; 7398 7399gnu*) 7400 version_type=linux 7401 need_lib_prefix=no 7402 need_version=no 7403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 7404 soname_spec='${libname}${release}${shared_ext}$major' 7405 shlibpath_var=LD_LIBRARY_PATH 7406 hardcode_into_libs=yes 7407 ;; 7408 7409hpux9* | hpux10* | hpux11*) 7410 # Give a soname corresponding to the major version so that dld.sl refuses to 7411 # link against other versions. 7412 version_type=sunos 7413 need_lib_prefix=no 7414 need_version=no 7415 case "$host_cpu" in 7416 ia64*) 7417 shrext='.so' 7418 hardcode_into_libs=yes 7419 dynamic_linker="$host_os dld.so" 7420 shlibpath_var=LD_LIBRARY_PATH 7421 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 7422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7423 soname_spec='${libname}${release}${shared_ext}$major' 7424 if test "X$HPUX_IA64_MODE" = X32; then 7425 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 7426 else 7427 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 7428 fi 7429 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 7430 ;; 7431 hppa*64*) 7432 shrext='.sl' 7433 hardcode_into_libs=yes 7434 dynamic_linker="$host_os dld.sl" 7435 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 7436 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 7437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7438 soname_spec='${libname}${release}${shared_ext}$major' 7439 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 7440 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 7441 ;; 7442 *) 7443 shrext='.sl' 7444 dynamic_linker="$host_os dld.sl" 7445 shlibpath_var=SHLIB_PATH 7446 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 7447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7448 soname_spec='${libname}${release}${shared_ext}$major' 7449 ;; 7450 esac 7451 # HP-UX runs *really* slowly unless shared libraries are mode 555. 7452 postinstall_cmds='chmod 555 $lib' 7453 ;; 7454 7455irix5* | irix6* | nonstopux*) 7456 case $host_os in 7457 nonstopux*) version_type=nonstopux ;; 7458 *) 7459 if test "$lt_cv_prog_gnu_ld" = yes; then 7460 version_type=linux 7461 else 7462 version_type=irix 7463 fi ;; 7464 esac 7465 need_lib_prefix=no 7466 need_version=no 7467 soname_spec='${libname}${release}${shared_ext}$major' 7468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 7469 case $host_os in 7470 irix5* | nonstopux*) 7471 libsuff= shlibsuff= 7472 ;; 7473 *) 7474 case $LD in # libtool.m4 will add one of these switches to LD 7475 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 7476 libsuff= shlibsuff= libmagic=32-bit;; 7477 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 7478 libsuff=32 shlibsuff=N32 libmagic=N32;; 7479 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 7480 libsuff=64 shlibsuff=64 libmagic=64-bit;; 7481 *) libsuff= shlibsuff= libmagic=never-match;; 7482 esac 7483 ;; 7484 esac 7485 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 7486 shlibpath_overrides_runpath=no 7487 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 7488 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 7489 hardcode_into_libs=yes 7490 ;; 7491 7492# No shared lib support for Linux oldld, aout, or coff. 7493linux*oldld* | linux*aout* | linux*coff*) 7494 dynamic_linker=no 7495 ;; 7496 7497# This must be Linux ELF. 7498linux*) 7499 version_type=linux 7500 need_lib_prefix=no 7501 need_version=no 7502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7503 soname_spec='${libname}${release}${shared_ext}$major' 7504 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 7505 shlibpath_var=LD_LIBRARY_PATH 7506 shlibpath_overrides_runpath=no 7507 # This implies no fast_install, which is unacceptable. 7508 # Some rework will be needed to allow for fast_install 7509 # before this can be enabled. 7510 hardcode_into_libs=yes 7511 7512 # We used to test for /lib/ld.so.1 and disable shared libraries on 7513 # powerpc, because MkLinux only supported shared libraries with the 7514 # GNU dynamic linker. Since this was broken with cross compilers, 7515 # most powerpc-linux boxes support dynamic linking these days and 7516 # people can always --disable-shared, the test was removed, and we 7517 # assume the GNU/Linux dynamic linker is in use. 7518 dynamic_linker='GNU/Linux ld.so' 7519 ;; 7520 7521netbsd*) 7522 version_type=sunos 7523 need_lib_prefix=no 7524 need_version=no 7525 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 7527 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 7528 dynamic_linker='NetBSD (a.out) ld.so' 7529 else 7530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' 7531 soname_spec='${libname}${release}${shared_ext}$major' 7532 dynamic_linker='NetBSD ld.elf_so' 7533 fi 7534 shlibpath_var=LD_LIBRARY_PATH 7535 shlibpath_overrides_runpath=yes 7536 hardcode_into_libs=yes 7537 ;; 7538 7539newsos6) 7540 version_type=linux 7541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7542 shlibpath_var=LD_LIBRARY_PATH 7543 shlibpath_overrides_runpath=yes 7544 ;; 7545 7546nto-qnx) 7547 version_type=linux 7548 need_lib_prefix=no 7549 need_version=no 7550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7551 soname_spec='${libname}${release}${shared_ext}$major' 7552 shlibpath_var=LD_LIBRARY_PATH 7553 shlibpath_overrides_runpath=yes 7554 ;; 7555 7556openbsd*) 7557 version_type=sunos 7558 need_lib_prefix=no 7559 need_version=no 7560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 7561 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 7562 shlibpath_var=LD_LIBRARY_PATH 7563 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7564 case $host_os in 7565 openbsd2.[89] | openbsd2.[89].*) 7566 shlibpath_overrides_runpath=no 7567 ;; 7568 *) 7569 shlibpath_overrides_runpath=yes 7570 ;; 7571 esac 7572 else 7573 shlibpath_overrides_runpath=yes 7574 fi 7575 ;; 7576 7577os2*) 7578 libname_spec='$name' 7579 shrext=".dll" 7580 need_lib_prefix=no 7581 library_names_spec='$libname${shared_ext} $libname.a' 7582 dynamic_linker='OS/2 ld.exe' 7583 shlibpath_var=LIBPATH 7584 ;; 7585 7586osf3* | osf4* | osf5*) 7587 version_type=osf 7588 need_lib_prefix=no 7589 need_version=no 7590 soname_spec='${libname}${release}${shared_ext}$major' 7591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7592 shlibpath_var=LD_LIBRARY_PATH 7593 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 7594 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 7595 ;; 7596 7597sco3.2v5*) 7598 version_type=osf 7599 soname_spec='${libname}${release}${shared_ext}$major' 7600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7601 shlibpath_var=LD_LIBRARY_PATH 7602 ;; 7603 7604solaris*) 7605 version_type=linux 7606 need_lib_prefix=no 7607 need_version=no 7608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7609 soname_spec='${libname}${release}${shared_ext}$major' 7610 shlibpath_var=LD_LIBRARY_PATH 7611 shlibpath_overrides_runpath=yes 7612 hardcode_into_libs=yes 7613 # ldd complains unless libraries are executable 7614 postinstall_cmds='chmod +x $lib' 7615 ;; 7616 7617sunos4*) 7618 version_type=sunos 7619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 7620 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 7621 shlibpath_var=LD_LIBRARY_PATH 7622 shlibpath_overrides_runpath=yes 7623 if test "$with_gnu_ld" = yes; then 7624 need_lib_prefix=no 7625 fi 7626 need_version=yes 7627 ;; 7628 7629sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 7630 version_type=linux 7631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7632 soname_spec='${libname}${release}${shared_ext}$major' 7633 shlibpath_var=LD_LIBRARY_PATH 7634 case $host_vendor in 7635 sni) 7636 shlibpath_overrides_runpath=no 7637 need_lib_prefix=no 7638 export_dynamic_flag_spec='${wl}-Blargedynsym' 7639 runpath_var=LD_RUN_PATH 7640 ;; 7641 siemens) 7642 need_lib_prefix=no 7643 ;; 7644 motorola) 7645 need_lib_prefix=no 7646 need_version=no 7647 shlibpath_overrides_runpath=no 7648 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 7649 ;; 7650 esac 7651 ;; 7652 7653sysv4*MP*) 7654 if test -d /usr/nec ;then 7655 version_type=linux 7656 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 7657 soname_spec='$libname${shared_ext}.$major' 7658 shlibpath_var=LD_LIBRARY_PATH 7659 fi 7660 ;; 7661 7662uts4*) 7663 version_type=linux 7664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7665 soname_spec='${libname}${release}${shared_ext}$major' 7666 shlibpath_var=LD_LIBRARY_PATH 7667 ;; 7668 7669*) 7670 dynamic_linker=no 7671 ;; 7672esac 7673echo "$as_me:$LINENO: result: $dynamic_linker" >&5 7674echo "${ECHO_T}$dynamic_linker" >&6 7675test "$dynamic_linker" = no && can_build_shared=no 7676 7677if test "x$enable_dlopen" != xyes; then 7678 enable_dlopen=unknown 7679 enable_dlopen_self=unknown 7680 enable_dlopen_self_static=unknown 7681else 7682 lt_cv_dlopen=no 7683 lt_cv_dlopen_libs= 7684 7685 case $host_os in 7686 beos*) 7687 lt_cv_dlopen="load_add_on" 7688 lt_cv_dlopen_libs= 7689 lt_cv_dlopen_self=yes 7690 ;; 7691 7692 mingw* | pw32*) 7693 lt_cv_dlopen="LoadLibrary" 7694 lt_cv_dlopen_libs= 7695 ;; 7696 7697 cygwin*) 7698 lt_cv_dlopen="dlopen" 7699 lt_cv_dlopen_libs= 7700 ;; 7701 7702 darwin*) 7703 # if libdl is installed we need to link against it 7704 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 7705echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 7706if test "${ac_cv_lib_dl_dlopen+set}" = set; then 7707 echo $ECHO_N "(cached) $ECHO_C" >&6 7708else 7709 ac_check_lib_save_LIBS=$LIBS 7710LIBS="-ldl $LIBS" 7711cat >conftest.$ac_ext <<_ACEOF 7712#line $LINENO "configure" 7713/* confdefs.h. */ 7714_ACEOF 7715cat confdefs.h >>conftest.$ac_ext 7716cat >>conftest.$ac_ext <<_ACEOF 7717/* end confdefs.h. */ 7718 7719/* Override any gcc2 internal prototype to avoid an error. */ 7720#ifdef __cplusplus 7721extern "C" 7722#endif 7723/* We use char because int might match the return type of a gcc2 7724 builtin and then its argument prototype would still apply. */ 7725char dlopen (); 7726int 7727main () 7728{ 7729dlopen (); 7730 ; 7731 return 0; 7732} 7733_ACEOF 7734rm -f conftest.$ac_objext conftest$ac_exeext 7735if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7736 (eval $ac_link) 2>&5 7737 ac_status=$? 7738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7739 (exit $ac_status); } && 7740 { ac_try='test -s conftest$ac_exeext' 7741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7742 (eval $ac_try) 2>&5 7743 ac_status=$? 7744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7745 (exit $ac_status); }; }; then 7746 ac_cv_lib_dl_dlopen=yes 7747else 7748 echo "$as_me: failed program was:" >&5 7749sed 's/^/| /' conftest.$ac_ext >&5 7750 7751ac_cv_lib_dl_dlopen=no 7752fi 7753rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7754LIBS=$ac_check_lib_save_LIBS 7755fi 7756echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 7757echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 7758if test $ac_cv_lib_dl_dlopen = yes; then 7759 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 7760else 7761 7762 lt_cv_dlopen="dyld" 7763 lt_cv_dlopen_libs= 7764 lt_cv_dlopen_self=yes 7765 7766fi 7767 7768 ;; 7769 7770 *) 7771 echo "$as_me:$LINENO: checking for shl_load" >&5 7772echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 7773if test "${ac_cv_func_shl_load+set}" = set; then 7774 echo $ECHO_N "(cached) $ECHO_C" >&6 7775else 7776 cat >conftest.$ac_ext <<_ACEOF 7777#line $LINENO "configure" 7778/* confdefs.h. */ 7779_ACEOF 7780cat confdefs.h >>conftest.$ac_ext 7781cat >>conftest.$ac_ext <<_ACEOF 7782/* end confdefs.h. */ 7783/* System header to define __stub macros and hopefully few prototypes, 7784 which can conflict with char shl_load (); below. 7785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7786 <limits.h> exists even on freestanding compilers. */ 7787#ifdef __STDC__ 7788# include <limits.h> 7789#else 7790# include <assert.h> 7791#endif 7792/* Override any gcc2 internal prototype to avoid an error. */ 7793#ifdef __cplusplus 7794extern "C" 7795{ 7796#endif 7797/* We use char because int might match the return type of a gcc2 7798 builtin and then its argument prototype would still apply. */ 7799char shl_load (); 7800/* The GNU C library defines this for functions which it implements 7801 to always fail with ENOSYS. Some functions are actually named 7802 something starting with __ and the normal name is an alias. */ 7803#if defined (__stub_shl_load) || defined (__stub___shl_load) 7804choke me 7805#else 7806char (*f) () = shl_load; 7807#endif 7808#ifdef __cplusplus 7809} 7810#endif 7811 7812int 7813main () 7814{ 7815return f != shl_load; 7816 ; 7817 return 0; 7818} 7819_ACEOF 7820rm -f conftest.$ac_objext conftest$ac_exeext 7821if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7822 (eval $ac_link) 2>&5 7823 ac_status=$? 7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7825 (exit $ac_status); } && 7826 { ac_try='test -s conftest$ac_exeext' 7827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7828 (eval $ac_try) 2>&5 7829 ac_status=$? 7830 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7831 (exit $ac_status); }; }; then 7832 ac_cv_func_shl_load=yes 7833else 7834 echo "$as_me: failed program was:" >&5 7835sed 's/^/| /' conftest.$ac_ext >&5 7836 7837ac_cv_func_shl_load=no 7838fi 7839rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7840fi 7841echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 7842echo "${ECHO_T}$ac_cv_func_shl_load" >&6 7843if test $ac_cv_func_shl_load = yes; then 7844 lt_cv_dlopen="shl_load" 7845else 7846 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 7847echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 7848if test "${ac_cv_lib_dld_shl_load+set}" = set; then 7849 echo $ECHO_N "(cached) $ECHO_C" >&6 7850else 7851 ac_check_lib_save_LIBS=$LIBS 7852LIBS="-ldld $LIBS" 7853cat >conftest.$ac_ext <<_ACEOF 7854#line $LINENO "configure" 7855/* confdefs.h. */ 7856_ACEOF 7857cat confdefs.h >>conftest.$ac_ext 7858cat >>conftest.$ac_ext <<_ACEOF 7859/* end confdefs.h. */ 7860 7861/* Override any gcc2 internal prototype to avoid an error. */ 7862#ifdef __cplusplus 7863extern "C" 7864#endif 7865/* We use char because int might match the return type of a gcc2 7866 builtin and then its argument prototype would still apply. */ 7867char shl_load (); 7868int 7869main () 7870{ 7871shl_load (); 7872 ; 7873 return 0; 7874} 7875_ACEOF 7876rm -f conftest.$ac_objext conftest$ac_exeext 7877if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7878 (eval $ac_link) 2>&5 7879 ac_status=$? 7880 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7881 (exit $ac_status); } && 7882 { ac_try='test -s conftest$ac_exeext' 7883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7884 (eval $ac_try) 2>&5 7885 ac_status=$? 7886 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7887 (exit $ac_status); }; }; then 7888 ac_cv_lib_dld_shl_load=yes 7889else 7890 echo "$as_me: failed program was:" >&5 7891sed 's/^/| /' conftest.$ac_ext >&5 7892 7893ac_cv_lib_dld_shl_load=no 7894fi 7895rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7896LIBS=$ac_check_lib_save_LIBS 7897fi 7898echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 7899echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 7900if test $ac_cv_lib_dld_shl_load = yes; then 7901 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 7902else 7903 echo "$as_me:$LINENO: checking for dlopen" >&5 7904echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 7905if test "${ac_cv_func_dlopen+set}" = set; then 7906 echo $ECHO_N "(cached) $ECHO_C" >&6 7907else 7908 cat >conftest.$ac_ext <<_ACEOF 7909#line $LINENO "configure" 7910/* confdefs.h. */ 7911_ACEOF 7912cat confdefs.h >>conftest.$ac_ext 7913cat >>conftest.$ac_ext <<_ACEOF 7914/* end confdefs.h. */ 7915/* System header to define __stub macros and hopefully few prototypes, 7916 which can conflict with char dlopen (); below. 7917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7918 <limits.h> exists even on freestanding compilers. */ 7919#ifdef __STDC__ 7920# include <limits.h> 7921#else 7922# include <assert.h> 7923#endif 7924/* Override any gcc2 internal prototype to avoid an error. */ 7925#ifdef __cplusplus 7926extern "C" 7927{ 7928#endif 7929/* We use char because int might match the return type of a gcc2 7930 builtin and then its argument prototype would still apply. */ 7931char dlopen (); 7932/* The GNU C library defines this for functions which it implements 7933 to always fail with ENOSYS. Some functions are actually named 7934 something starting with __ and the normal name is an alias. */ 7935#if defined (__stub_dlopen) || defined (__stub___dlopen) 7936choke me 7937#else 7938char (*f) () = dlopen; 7939#endif 7940#ifdef __cplusplus 7941} 7942#endif 7943 7944int 7945main () 7946{ 7947return f != dlopen; 7948 ; 7949 return 0; 7950} 7951_ACEOF 7952rm -f conftest.$ac_objext conftest$ac_exeext 7953if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7954 (eval $ac_link) 2>&5 7955 ac_status=$? 7956 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7957 (exit $ac_status); } && 7958 { ac_try='test -s conftest$ac_exeext' 7959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7960 (eval $ac_try) 2>&5 7961 ac_status=$? 7962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7963 (exit $ac_status); }; }; then 7964 ac_cv_func_dlopen=yes 7965else 7966 echo "$as_me: failed program was:" >&5 7967sed 's/^/| /' conftest.$ac_ext >&5 7968 7969ac_cv_func_dlopen=no 7970fi 7971rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7972fi 7973echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 7974echo "${ECHO_T}$ac_cv_func_dlopen" >&6 7975if test $ac_cv_func_dlopen = yes; then 7976 lt_cv_dlopen="dlopen" 7977else 7978 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 7979echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 7980if test "${ac_cv_lib_dl_dlopen+set}" = set; then 7981 echo $ECHO_N "(cached) $ECHO_C" >&6 7982else 7983 ac_check_lib_save_LIBS=$LIBS 7984LIBS="-ldl $LIBS" 7985cat >conftest.$ac_ext <<_ACEOF 7986#line $LINENO "configure" 7987/* confdefs.h. */ 7988_ACEOF 7989cat confdefs.h >>conftest.$ac_ext 7990cat >>conftest.$ac_ext <<_ACEOF 7991/* end confdefs.h. */ 7992 7993/* Override any gcc2 internal prototype to avoid an error. */ 7994#ifdef __cplusplus 7995extern "C" 7996#endif 7997/* We use char because int might match the return type of a gcc2 7998 builtin and then its argument prototype would still apply. */ 7999char dlopen (); 8000int 8001main () 8002{ 8003dlopen (); 8004 ; 8005 return 0; 8006} 8007_ACEOF 8008rm -f conftest.$ac_objext conftest$ac_exeext 8009if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8010 (eval $ac_link) 2>&5 8011 ac_status=$? 8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8013 (exit $ac_status); } && 8014 { ac_try='test -s conftest$ac_exeext' 8015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8016 (eval $ac_try) 2>&5 8017 ac_status=$? 8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8019 (exit $ac_status); }; }; then 8020 ac_cv_lib_dl_dlopen=yes 8021else 8022 echo "$as_me: failed program was:" >&5 8023sed 's/^/| /' conftest.$ac_ext >&5 8024 8025ac_cv_lib_dl_dlopen=no 8026fi 8027rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8028LIBS=$ac_check_lib_save_LIBS 8029fi 8030echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 8031echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 8032if test $ac_cv_lib_dl_dlopen = yes; then 8033 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 8034else 8035 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 8036echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 8037if test "${ac_cv_lib_svld_dlopen+set}" = set; then 8038 echo $ECHO_N "(cached) $ECHO_C" >&6 8039else 8040 ac_check_lib_save_LIBS=$LIBS 8041LIBS="-lsvld $LIBS" 8042cat >conftest.$ac_ext <<_ACEOF 8043#line $LINENO "configure" 8044/* confdefs.h. */ 8045_ACEOF 8046cat confdefs.h >>conftest.$ac_ext 8047cat >>conftest.$ac_ext <<_ACEOF 8048/* end confdefs.h. */ 8049 8050/* Override any gcc2 internal prototype to avoid an error. */ 8051#ifdef __cplusplus 8052extern "C" 8053#endif 8054/* We use char because int might match the return type of a gcc2 8055 builtin and then its argument prototype would still apply. */ 8056char dlopen (); 8057int 8058main () 8059{ 8060dlopen (); 8061 ; 8062 return 0; 8063} 8064_ACEOF 8065rm -f conftest.$ac_objext conftest$ac_exeext 8066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8067 (eval $ac_link) 2>&5 8068 ac_status=$? 8069 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8070 (exit $ac_status); } && 8071 { ac_try='test -s conftest$ac_exeext' 8072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8073 (eval $ac_try) 2>&5 8074 ac_status=$? 8075 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8076 (exit $ac_status); }; }; then 8077 ac_cv_lib_svld_dlopen=yes 8078else 8079 echo "$as_me: failed program was:" >&5 8080sed 's/^/| /' conftest.$ac_ext >&5 8081 8082ac_cv_lib_svld_dlopen=no 8083fi 8084rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8085LIBS=$ac_check_lib_save_LIBS 8086fi 8087echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 8088echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 8089if test $ac_cv_lib_svld_dlopen = yes; then 8090 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 8091else 8092 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 8093echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 8094if test "${ac_cv_lib_dld_dld_link+set}" = set; then 8095 echo $ECHO_N "(cached) $ECHO_C" >&6 8096else 8097 ac_check_lib_save_LIBS=$LIBS 8098LIBS="-ldld $LIBS" 8099cat >conftest.$ac_ext <<_ACEOF 8100#line $LINENO "configure" 8101/* confdefs.h. */ 8102_ACEOF 8103cat confdefs.h >>conftest.$ac_ext 8104cat >>conftest.$ac_ext <<_ACEOF 8105/* end confdefs.h. */ 8106 8107/* Override any gcc2 internal prototype to avoid an error. */ 8108#ifdef __cplusplus 8109extern "C" 8110#endif 8111/* We use char because int might match the return type of a gcc2 8112 builtin and then its argument prototype would still apply. */ 8113char dld_link (); 8114int 8115main () 8116{ 8117dld_link (); 8118 ; 8119 return 0; 8120} 8121_ACEOF 8122rm -f conftest.$ac_objext conftest$ac_exeext 8123if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8124 (eval $ac_link) 2>&5 8125 ac_status=$? 8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8127 (exit $ac_status); } && 8128 { ac_try='test -s conftest$ac_exeext' 8129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8130 (eval $ac_try) 2>&5 8131 ac_status=$? 8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8133 (exit $ac_status); }; }; then 8134 ac_cv_lib_dld_dld_link=yes 8135else 8136 echo "$as_me: failed program was:" >&5 8137sed 's/^/| /' conftest.$ac_ext >&5 8138 8139ac_cv_lib_dld_dld_link=no 8140fi 8141rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8142LIBS=$ac_check_lib_save_LIBS 8143fi 8144echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 8145echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 8146if test $ac_cv_lib_dld_dld_link = yes; then 8147 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 8148fi 8149 8150 8151fi 8152 8153 8154fi 8155 8156 8157fi 8158 8159 8160fi 8161 8162 8163fi 8164 8165 ;; 8166 esac 8167 8168 if test "x$lt_cv_dlopen" != xno; then 8169 enable_dlopen=yes 8170 else 8171 enable_dlopen=no 8172 fi 8173 8174 case $lt_cv_dlopen in 8175 dlopen) 8176 save_CPPFLAGS="$CPPFLAGS" 8177 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 8178 8179 save_LDFLAGS="$LDFLAGS" 8180 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 8181 8182 save_LIBS="$LIBS" 8183 LIBS="$lt_cv_dlopen_libs $LIBS" 8184 8185 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 8186echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 8187if test "${lt_cv_dlopen_self+set}" = set; then 8188 echo $ECHO_N "(cached) $ECHO_C" >&6 8189else 8190 if test "$cross_compiling" = yes; then : 8191 lt_cv_dlopen_self=cross 8192else 8193 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 8194 lt_status=$lt_dlunknown 8195 cat > conftest.$ac_ext <<EOF 8196#line 8196 "configure" 8197#include "confdefs.h" 8198 8199#if HAVE_DLFCN_H 8200#include <dlfcn.h> 8201#endif 8202 8203#include <stdio.h> 8204 8205#ifdef RTLD_GLOBAL 8206# define LT_DLGLOBAL RTLD_GLOBAL 8207#else 8208# ifdef DL_GLOBAL 8209# define LT_DLGLOBAL DL_GLOBAL 8210# else 8211# define LT_DLGLOBAL 0 8212# endif 8213#endif 8214 8215/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 8216 find out it does not work in some platform. */ 8217#ifndef LT_DLLAZY_OR_NOW 8218# ifdef RTLD_LAZY 8219# define LT_DLLAZY_OR_NOW RTLD_LAZY 8220# else 8221# ifdef DL_LAZY 8222# define LT_DLLAZY_OR_NOW DL_LAZY 8223# else 8224# ifdef RTLD_NOW 8225# define LT_DLLAZY_OR_NOW RTLD_NOW 8226# else 8227# ifdef DL_NOW 8228# define LT_DLLAZY_OR_NOW DL_NOW 8229# else 8230# define LT_DLLAZY_OR_NOW 0 8231# endif 8232# endif 8233# endif 8234# endif 8235#endif 8236 8237#ifdef __cplusplus 8238extern "C" void exit (int); 8239#endif 8240 8241void fnord() { int i=42;} 8242int main () 8243{ 8244 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 8245 int status = $lt_dlunknown; 8246 8247 if (self) 8248 { 8249 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 8250 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 8251 /* dlclose (self); */ 8252 } 8253 8254 exit (status); 8255} 8256EOF 8257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8258 (eval $ac_link) 2>&5 8259 ac_status=$? 8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8261 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 8262 (./conftest; exit; ) 2>/dev/null 8263 lt_status=$? 8264 case x$lt_status in 8265 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 8266 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 8267 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 8268 esac 8269 else : 8270 # compilation failed 8271 lt_cv_dlopen_self=no 8272 fi 8273fi 8274rm -fr conftest* 8275 8276 8277fi 8278echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 8279echo "${ECHO_T}$lt_cv_dlopen_self" >&6 8280 8281 if test "x$lt_cv_dlopen_self" = xyes; then 8282 LDFLAGS="$LDFLAGS $link_static_flag" 8283 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 8284echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 8285if test "${lt_cv_dlopen_self_static+set}" = set; then 8286 echo $ECHO_N "(cached) $ECHO_C" >&6 8287else 8288 if test "$cross_compiling" = yes; then : 8289 lt_cv_dlopen_self_static=cross 8290else 8291 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 8292 lt_status=$lt_dlunknown 8293 cat > conftest.$ac_ext <<EOF 8294#line 8294 "configure" 8295#include "confdefs.h" 8296 8297#if HAVE_DLFCN_H 8298#include <dlfcn.h> 8299#endif 8300 8301#include <stdio.h> 8302 8303#ifdef RTLD_GLOBAL 8304# define LT_DLGLOBAL RTLD_GLOBAL 8305#else 8306# ifdef DL_GLOBAL 8307# define LT_DLGLOBAL DL_GLOBAL 8308# else 8309# define LT_DLGLOBAL 0 8310# endif 8311#endif 8312 8313/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 8314 find out it does not work in some platform. */ 8315#ifndef LT_DLLAZY_OR_NOW 8316# ifdef RTLD_LAZY 8317# define LT_DLLAZY_OR_NOW RTLD_LAZY 8318# else 8319# ifdef DL_LAZY 8320# define LT_DLLAZY_OR_NOW DL_LAZY 8321# else 8322# ifdef RTLD_NOW 8323# define LT_DLLAZY_OR_NOW RTLD_NOW 8324# else 8325# ifdef DL_NOW 8326# define LT_DLLAZY_OR_NOW DL_NOW 8327# else 8328# define LT_DLLAZY_OR_NOW 0 8329# endif 8330# endif 8331# endif 8332# endif 8333#endif 8334 8335#ifdef __cplusplus 8336extern "C" void exit (int); 8337#endif 8338 8339void fnord() { int i=42;} 8340int main () 8341{ 8342 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 8343 int status = $lt_dlunknown; 8344 8345 if (self) 8346 { 8347 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 8348 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 8349 /* dlclose (self); */ 8350 } 8351 8352 exit (status); 8353} 8354EOF 8355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8356 (eval $ac_link) 2>&5 8357 ac_status=$? 8358 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8359 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 8360 (./conftest; exit; ) 2>/dev/null 8361 lt_status=$? 8362 case x$lt_status in 8363 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 8364 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 8365 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 8366 esac 8367 else : 8368 # compilation failed 8369 lt_cv_dlopen_self_static=no 8370 fi 8371fi 8372rm -fr conftest* 8373 8374 8375fi 8376echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 8377echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 8378 fi 8379 8380 CPPFLAGS="$save_CPPFLAGS" 8381 LDFLAGS="$save_LDFLAGS" 8382 LIBS="$save_LIBS" 8383 ;; 8384 esac 8385 8386 case $lt_cv_dlopen_self in 8387 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 8388 *) enable_dlopen_self=unknown ;; 8389 esac 8390 8391 case $lt_cv_dlopen_self_static in 8392 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 8393 *) enable_dlopen_self_static=unknown ;; 8394 esac 8395fi 8396 8397 8398# Report which librarie types wil actually be built 8399echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 8400echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 8401echo "$as_me:$LINENO: result: $can_build_shared" >&5 8402echo "${ECHO_T}$can_build_shared" >&6 8403 8404echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 8405echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 8406test "$can_build_shared" = "no" && enable_shared=no 8407 8408# On AIX, shared libraries and static libraries use the same namespace, and 8409# are all built from PIC. 8410case "$host_os" in 8411aix3*) 8412 test "$enable_shared" = yes && enable_static=no 8413 if test -n "$RANLIB"; then 8414 archive_cmds="$archive_cmds~\$RANLIB \$lib" 8415 postinstall_cmds='$RANLIB $lib' 8416 fi 8417 ;; 8418 8419aix4*) 8420 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 8421 test "$enable_shared" = yes && enable_static=no 8422 fi 8423 ;; 8424 darwin* | rhapsody*) 8425 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then 8426 archive_cmds_need_lc=no 8427 case "$host_os" in 8428 rhapsody* | darwin1.[012]) 8429 allow_undefined_flag='-undefined suppress' 8430 ;; 8431 *) # Darwin 1.3 on 8432 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress' 8433 ;; 8434 esac 8435 # FIXME: Relying on posixy $() will cause problems for 8436 # cross-compilation, but unfortunately the echo tests do not 8437 # yet detect zsh echo's removal of \ escapes. Also zsh mangles 8438 # `"' quotes if we put them in here... so don't! 8439 output_verbose_link_cmd='echo' 8440 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring' 8441 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' 8442 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 8443 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}' 8444 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 8445 hardcode_direct=no 8446 hardcode_automatic=yes 8447 hardcode_shlibpath_var=unsupported 8448 whole_archive_flag_spec='-all_load $convenience' 8449 link_all_deplibs=yes 8450 fi 8451 ;; 8452esac 8453echo "$as_me:$LINENO: result: $enable_shared" >&5 8454echo "${ECHO_T}$enable_shared" >&6 8455 8456echo "$as_me:$LINENO: checking whether to build static libraries" >&5 8457echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 8458# Make sure either enable_shared or enable_static is yes. 8459test "$enable_shared" = yes || enable_static=yes 8460echo "$as_me:$LINENO: result: $enable_static" >&5 8461echo "${ECHO_T}$enable_static" >&6 8462 8463# The else clause should only fire when bootstrapping the 8464# libtool distribution, otherwise you forgot to ship ltmain.sh 8465# with your package, and you will get complaints that there are 8466# no rules to generate ltmain.sh. 8467if test -f "$ltmain"; then 8468 # See if we are running on zsh, and set the options which allow our commands through 8469 # without removal of \ escapes. 8470 if test -n "${ZSH_VERSION+set}" ; then 8471 setopt NO_GLOB_SUBST 8472 fi 8473 # Now quote all the things that may contain metacharacters while being 8474 # careful not to overquote the AC_SUBSTed values. We take copies of the 8475 # variables and quote the copies for generation of the libtool script. 8476 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ 8477 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 8478 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 8479 deplibs_check_method reload_flag reload_cmds need_locks \ 8480 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 8481 lt_cv_sys_global_symbol_to_c_name_address \ 8482 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 8483 old_postinstall_cmds old_postuninstall_cmds \ 8484 compiler \ 8485 CC \ 8486 LD \ 8487 lt_prog_compiler_wl \ 8488 lt_prog_compiler_pic \ 8489 lt_prog_compiler_static \ 8490 lt_prog_compiler_no_builtin_flag \ 8491 export_dynamic_flag_spec \ 8492 thread_safe_flag_spec \ 8493 whole_archive_flag_spec \ 8494 enable_shared_with_static_runtimes \ 8495 old_archive_cmds \ 8496 old_archive_from_new_cmds \ 8497 predep_objects \ 8498 postdep_objects \ 8499 predeps \ 8500 postdeps \ 8501 compiler_lib_search_path \ 8502 archive_cmds \ 8503 archive_expsym_cmds \ 8504 postinstall_cmds \ 8505 postuninstall_cmds \ 8506 old_archive_from_expsyms_cmds \ 8507 allow_undefined_flag \ 8508 no_undefined_flag \ 8509 export_symbols_cmds \ 8510 hardcode_libdir_flag_spec \ 8511 hardcode_libdir_flag_spec_ld \ 8512 hardcode_libdir_separator \ 8513 hardcode_automatic \ 8514 module_cmds \ 8515 module_expsym_cmds \ 8516 lt_cv_prog_compiler_c_o \ 8517 exclude_expsyms \ 8518 include_expsyms; do 8519 8520 case $var in 8521 old_archive_cmds | \ 8522 old_archive_from_new_cmds | \ 8523 archive_cmds | \ 8524 archive_expsym_cmds | \ 8525 module_cmds | \ 8526 module_expsym_cmds | \ 8527 old_archive_from_expsyms_cmds | \ 8528 export_symbols_cmds | \ 8529 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 8530 postinstall_cmds | postuninstall_cmds | \ 8531 old_postinstall_cmds | old_postuninstall_cmds | \ 8532 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 8533 # Double-quote double-evaled strings. 8534 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 8535 ;; 8536 *) 8537 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 8538 ;; 8539 esac 8540 done 8541 8542 case $lt_echo in 8543 *'\$0 --fallback-echo"') 8544 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 8545 ;; 8546 esac 8547 8548cfgfile="${ofile}T" 8549 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 8550 $rm -f "$cfgfile" 8551 { echo "$as_me:$LINENO: creating $ofile" >&5 8552echo "$as_me: creating $ofile" >&6;} 8553 8554 cat <<__EOF__ >> "$cfgfile" 8555#! $SHELL 8556 8557# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 8558# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 8559# NOTE: Changes made to this file will be lost: look at ltmain.sh. 8560# 8561# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 8562# Free Software Foundation, Inc. 8563# 8564# This file is part of GNU Libtool: 8565# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 8566# 8567# This program is free software; you can redistribute it and/or modify 8568# it under the terms of the GNU General Public License as published by 8569# the Free Software Foundation; either version 2 of the License, or 8570# (at your option) any later version. 8571# 8572# This program is distributed in the hope that it will be useful, but 8573# WITHOUT ANY WARRANTY; without even the implied warranty of 8574# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 8575# General Public License for more details. 8576# 8577# You should have received a copy of the GNU General Public License 8578# along with this program; if not, write to the Free Software 8579# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 8580# 8581# As a special exception to the GNU General Public License, if you 8582# distribute this file as part of a program that contains a 8583# configuration script generated by Autoconf, you may include it under 8584# the same distribution terms that you use for the rest of that program. 8585 8586# A sed program that does not truncate output. 8587SED=$lt_SED 8588 8589# Sed that helps us avoid accidentally triggering echo(1) options like -n. 8590Xsed="$SED -e s/^X//" 8591 8592# The HP-UX ksh and POSIX shell print the target directory to stdout 8593# if CDPATH is set. 8594if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 8595 8596# The names of the tagged configurations supported by this script. 8597available_tags= 8598 8599# ### BEGIN LIBTOOL CONFIG 8600 8601# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 8602 8603# Shell to use when invoking shell scripts. 8604SHELL=$lt_SHELL 8605 8606# Whether or not to build shared libraries. 8607build_libtool_libs=$enable_shared 8608 8609# Whether or not to build static libraries. 8610build_old_libs=$enable_static 8611 8612# Whether or not to add -lc for building shared libraries. 8613build_libtool_need_lc=$archive_cmds_need_lc 8614 8615# Whether or not to disallow shared libs when runtime libs are static 8616allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 8617 8618# Whether or not to optimize for fast installation. 8619fast_install=$enable_fast_install 8620 8621# The host system. 8622host_alias=$host_alias 8623host=$host 8624 8625# An echo program that does not interpret backslashes. 8626echo=$lt_echo 8627 8628# The archiver. 8629AR=$lt_AR 8630AR_FLAGS=$lt_AR_FLAGS 8631 8632# A C compiler. 8633LTCC=$lt_LTCC 8634 8635# A language-specific compiler. 8636CC=$lt_compiler 8637 8638# Is the compiler the GNU C compiler? 8639with_gcc=$GCC 8640 8641# An ERE matcher. 8642EGREP=$lt_EGREP 8643 8644# The linker used to build libraries. 8645LD=$lt_LD 8646 8647# Whether we need hard or soft links. 8648LN_S=$lt_LN_S 8649 8650# A BSD-compatible nm program. 8651NM=$lt_NM 8652 8653# A symbol stripping program 8654STRIP=$STRIP 8655 8656# Used to examine libraries when file_magic_cmd begins "file" 8657MAGIC_CMD=$MAGIC_CMD 8658 8659# Used on cygwin: DLL creation program. 8660DLLTOOL="$DLLTOOL" 8661 8662# Used on cygwin: object dumper. 8663OBJDUMP="$OBJDUMP" 8664 8665# Used on cygwin: assembler. 8666AS="$AS" 8667 8668# The name of the directory that contains temporary libtool files. 8669objdir=$objdir 8670 8671# How to create reloadable object files. 8672reload_flag=$lt_reload_flag 8673reload_cmds=$lt_reload_cmds 8674 8675# How to pass a linker flag through the compiler. 8676wl=$lt_lt_prog_compiler_wl 8677 8678# Object file suffix (normally "o"). 8679objext="$ac_objext" 8680 8681# Old archive suffix (normally "a"). 8682libext="$libext" 8683 8684# Shared library suffix (normally ".so"). 8685shrext='$shrext' 8686 8687# Executable file suffix (normally ""). 8688exeext="$exeext" 8689 8690# Additional compiler flags for building library objects. 8691pic_flag=$lt_lt_prog_compiler_pic 8692pic_mode=$pic_mode 8693 8694# What is the maximum length of a command? 8695max_cmd_len=$lt_cv_sys_max_cmd_len 8696 8697# Does compiler simultaneously support -c and -o options? 8698compiler_c_o=$lt_lt_cv_prog_compiler_c_o 8699 8700# Must we lock files when doing compilation ? 8701need_locks=$lt_need_locks 8702 8703# Do we need the lib prefix for modules? 8704need_lib_prefix=$need_lib_prefix 8705 8706# Do we need a version for libraries? 8707need_version=$need_version 8708 8709# Whether dlopen is supported. 8710dlopen_support=$enable_dlopen 8711 8712# Whether dlopen of programs is supported. 8713dlopen_self=$enable_dlopen_self 8714 8715# Whether dlopen of statically linked programs is supported. 8716dlopen_self_static=$enable_dlopen_self_static 8717 8718# Compiler flag to prevent dynamic linking. 8719link_static_flag=$lt_lt_prog_compiler_static 8720 8721# Compiler flag to turn off builtin functions. 8722no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 8723 8724# Compiler flag to allow reflexive dlopens. 8725export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 8726 8727# Compiler flag to generate shared objects directly from archives. 8728whole_archive_flag_spec=$lt_whole_archive_flag_spec 8729 8730# Compiler flag to generate thread-safe objects. 8731thread_safe_flag_spec=$lt_thread_safe_flag_spec 8732 8733# Library versioning type. 8734version_type=$version_type 8735 8736# Format of library name prefix. 8737libname_spec=$lt_libname_spec 8738 8739# List of archive names. First name is the real one, the rest are links. 8740# The last name is the one that the linker finds with -lNAME. 8741library_names_spec=$lt_library_names_spec 8742 8743# The coded name of the library, if different from the real name. 8744soname_spec=$lt_soname_spec 8745 8746# Commands used to build and install an old-style archive. 8747RANLIB=$lt_RANLIB 8748old_archive_cmds=$lt_old_archive_cmds 8749old_postinstall_cmds=$lt_old_postinstall_cmds 8750old_postuninstall_cmds=$lt_old_postuninstall_cmds 8751 8752# Create an old-style archive from a shared archive. 8753old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 8754 8755# Create a temporary old-style archive to link instead of a shared archive. 8756old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 8757 8758# Commands used to build and install a shared archive. 8759archive_cmds=$lt_archive_cmds 8760archive_expsym_cmds=$lt_archive_expsym_cmds 8761postinstall_cmds=$lt_postinstall_cmds 8762postuninstall_cmds=$lt_postuninstall_cmds 8763 8764# Commands used to build a loadable module (assumed same as above if empty) 8765module_cmds=$lt_module_cmds 8766module_expsym_cmds=$lt_module_expsym_cmds 8767 8768# Commands to strip libraries. 8769old_striplib=$lt_old_striplib 8770striplib=$lt_striplib 8771 8772# Dependencies to place before the objects being linked to create a 8773# shared library. 8774predep_objects=$lt_predep_objects 8775 8776# Dependencies to place after the objects being linked to create a 8777# shared library. 8778postdep_objects=$lt_postdep_objects 8779 8780# Dependencies to place before the objects being linked to create a 8781# shared library. 8782predeps=$lt_predeps 8783 8784# Dependencies to place after the objects being linked to create a 8785# shared library. 8786postdeps=$lt_postdeps 8787 8788# The library search path used internally by the compiler when linking 8789# a shared library. 8790compiler_lib_search_path=$lt_compiler_lib_search_path 8791 8792# Method to check whether dependent libraries are shared objects. 8793deplibs_check_method=$lt_deplibs_check_method 8794 8795# Command to use when deplibs_check_method == file_magic. 8796file_magic_cmd=$lt_file_magic_cmd 8797 8798# Flag that allows shared libraries with undefined symbols to be built. 8799allow_undefined_flag=$lt_allow_undefined_flag 8800 8801# Flag that forces no undefined symbols. 8802no_undefined_flag=$lt_no_undefined_flag 8803 8804# Commands used to finish a libtool library installation in a directory. 8805finish_cmds=$lt_finish_cmds 8806 8807# Same as above, but a single script fragment to be evaled but not shown. 8808finish_eval=$lt_finish_eval 8809 8810# Take the output of nm and produce a listing of raw symbols and C names. 8811global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 8812 8813# Transform the output of nm in a proper C declaration 8814global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 8815 8816# Transform the output of nm in a C name address pair 8817global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 8818 8819# This is the shared library runtime path variable. 8820runpath_var=$runpath_var 8821 8822# This is the shared library path variable. 8823shlibpath_var=$shlibpath_var 8824 8825# Is shlibpath searched before the hard-coded library search path? 8826shlibpath_overrides_runpath=$shlibpath_overrides_runpath 8827 8828# How to hardcode a shared library path into an executable. 8829hardcode_action=$hardcode_action 8830 8831# Whether we should hardcode library paths into libraries. 8832hardcode_into_libs=$hardcode_into_libs 8833 8834# Flag to hardcode \$libdir into a binary during linking. 8835# This must work even if \$libdir does not exist. 8836hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 8837 8838# If ld is used when linking, flag to hardcode \$libdir into 8839# a binary during linking. This must work even if \$libdir does 8840# not exist. 8841hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 8842 8843# Whether we need a single -rpath flag with a separated argument. 8844hardcode_libdir_separator=$lt_hardcode_libdir_separator 8845 8846# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 8847# resulting binary. 8848hardcode_direct=$hardcode_direct 8849 8850# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 8851# resulting binary. 8852hardcode_minus_L=$hardcode_minus_L 8853 8854# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 8855# the resulting binary. 8856hardcode_shlibpath_var=$hardcode_shlibpath_var 8857 8858# Set to yes if building a shared library automatically hardcodes DIR into the library 8859# and all subsequent libraries and executables linked against it. 8860hardcode_automatic=$hardcode_automatic 8861 8862# Variables whose values should be saved in libtool wrapper scripts and 8863# restored at relink time. 8864variables_saved_for_relink="$variables_saved_for_relink" 8865 8866# Whether libtool must link a program against all its dependency libraries. 8867link_all_deplibs=$link_all_deplibs 8868 8869# Compile-time system search path for libraries 8870sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 8871 8872# Run-time system search path for libraries 8873sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 8874 8875# Fix the shell variable \$srcfile for the compiler. 8876fix_srcfile_path="$fix_srcfile_path" 8877 8878# Set to yes if exported symbols are required. 8879always_export_symbols=$always_export_symbols 8880 8881# The commands to list exported symbols. 8882export_symbols_cmds=$lt_export_symbols_cmds 8883 8884# The commands to extract the exported symbol list from a shared archive. 8885extract_expsyms_cmds=$lt_extract_expsyms_cmds 8886 8887# Symbols that should not be listed in the preloaded symbols. 8888exclude_expsyms=$lt_exclude_expsyms 8889 8890# Symbols that must always be exported. 8891include_expsyms=$lt_include_expsyms 8892 8893# ### END LIBTOOL CONFIG 8894 8895__EOF__ 8896 8897 8898 case $host_os in 8899 aix3*) 8900 cat <<\EOF >> "$cfgfile" 8901 8902# AIX sometimes has problems with the GCC collect2 program. For some 8903# reason, if we set the COLLECT_NAMES environment variable, the problems 8904# vanish in a puff of smoke. 8905if test "X${COLLECT_NAMES+set}" != Xset; then 8906 COLLECT_NAMES= 8907 export COLLECT_NAMES 8908fi 8909EOF 8910 ;; 8911 esac 8912 8913 # We use sed instead of cat because bash on DJGPP gets confused if 8914 # if finds mixed CR/LF and LF-only lines. Since sed operates in 8915 # text mode, it properly converts lines to CR/LF. This bash problem 8916 # is reportedly fixed, but why not run on old versions too? 8917 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 8918 8919 mv -f "$cfgfile" "$ofile" || \ 8920 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 8921 chmod +x "$ofile" 8922 8923else 8924 # If there is no Makefile yet, we rely on a make rule to execute 8925 # `config.status --recheck' to rerun these tests and create the 8926 # libtool script then. 8927 test -f Makefile && make "$ltmain" 8928fi 8929 8930 8931ac_ext=c 8932ac_cpp='$CPP $CPPFLAGS' 8933ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8934ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8935ac_compiler_gnu=$ac_cv_c_compiler_gnu 8936 8937CC="$lt_save_CC" 8938 8939 8940# Check whether --with-tags or --without-tags was given. 8941if test "${with_tags+set}" = set; then 8942 withval="$with_tags" 8943 tagnames="$withval" 8944fi; 8945 8946if test -f "$ltmain" && test -n "$tagnames"; then 8947 if test ! -f "${ofile}"; then 8948 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 8949echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 8950 fi 8951 8952 if test -z "$LTCC"; then 8953 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 8954 if test -z "$LTCC"; then 8955 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 8956echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 8957 else 8958 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 8959echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 8960 fi 8961 fi 8962 8963 # Extract list of available tagged configurations in $ofile. 8964 # Note that this assumes the entire list is on one line. 8965 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 8966 8967 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8968 for tagname in $tagnames; do 8969 IFS="$lt_save_ifs" 8970 # Check whether tagname contains only valid characters 8971 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 8972 "") ;; 8973 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 8974echo "$as_me: error: invalid tag name: $tagname" >&2;} 8975 { (exit 1); exit 1; }; } 8976 ;; 8977 esac 8978 8979 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 8980 then 8981 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 8982echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 8983 { (exit 1); exit 1; }; } 8984 fi 8985 8986 # Update the list of available tags. 8987 if test -n "$tagname"; then 8988 echo appending configuration tag \"$tagname\" to $ofile 8989 8990 case $tagname in 8991 CXX) 8992 if test -n "$CXX" && test "X$CXX" != "Xno"; then 8993 ac_ext=cc 8994ac_cpp='$CXXCPP $CPPFLAGS' 8995ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8996ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8997ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 8998 8999 9000 9001 9002archive_cmds_need_lc_CXX=no 9003allow_undefined_flag_CXX= 9004always_export_symbols_CXX=no 9005archive_expsym_cmds_CXX= 9006export_dynamic_flag_spec_CXX= 9007hardcode_direct_CXX=no 9008hardcode_libdir_flag_spec_CXX= 9009hardcode_libdir_flag_spec_ld_CXX= 9010hardcode_libdir_separator_CXX= 9011hardcode_minus_L_CXX=no 9012hardcode_automatic_CXX=no 9013module_cmds_CXX= 9014module_expsym_cmds_CXX= 9015link_all_deplibs_CXX=unknown 9016old_archive_cmds_CXX=$old_archive_cmds 9017no_undefined_flag_CXX= 9018whole_archive_flag_spec_CXX= 9019enable_shared_with_static_runtimes_CXX=no 9020 9021# Dependencies to place before and after the object being linked: 9022predep_objects_CXX= 9023postdep_objects_CXX= 9024predeps_CXX= 9025postdeps_CXX= 9026compiler_lib_search_path_CXX= 9027 9028# Source file extension for C++ test sources. 9029ac_ext=cc 9030 9031# Object file extension for compiled C++ test sources. 9032objext=o 9033objext_CXX=$objext 9034 9035# Code to be used in simple compile tests 9036lt_simple_compile_test_code="int some_variable = 0;\n" 9037 9038# Code to be used in simple link tests 9039lt_simple_link_test_code='int main(int, char *) { return(0); }\n' 9040 9041# ltmain only uses $CC for tagged configurations so make sure $CC is set. 9042 9043# If no C compiler was specified, use CC. 9044LTCC=${LTCC-"$CC"} 9045 9046# Allow CC to be a program name with arguments. 9047compiler=$CC 9048 9049 9050# Allow CC to be a program name with arguments. 9051lt_save_CC=$CC 9052lt_save_LD=$LD 9053lt_save_GCC=$GCC 9054GCC=$GXX 9055lt_save_with_gnu_ld=$with_gnu_ld 9056lt_save_path_LD=$lt_cv_path_LD 9057if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 9058 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 9059else 9060 unset lt_cv_prog_gnu_ld 9061fi 9062if test -n "${lt_cv_path_LDCXX+set}"; then 9063 lt_cv_path_LD=$lt_cv_path_LDCXX 9064else 9065 unset lt_cv_path_LD 9066fi 9067test -z "${LDCXX+set}" || LD=$LDCXX 9068CC=${CXX-"c++"} 9069compiler=$CC 9070compiler_CXX=$CC 9071cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` 9072 9073# We don't want -fno-exception wen compiling C++ code, so set the 9074# no_builtin_flag separately 9075if test "$GXX" = yes; then 9076 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 9077else 9078 lt_prog_compiler_no_builtin_flag_CXX= 9079fi 9080 9081if test "$GXX" = yes; then 9082 # Set up default GNU C++ configuration 9083 9084 9085# Check whether --with-gnu-ld or --without-gnu-ld was given. 9086if test "${with_gnu_ld+set}" = set; then 9087 withval="$with_gnu_ld" 9088 test "$withval" = no || with_gnu_ld=yes 9089else 9090 with_gnu_ld=no 9091fi; 9092ac_prog=ld 9093if test "$GCC" = yes; then 9094 # Check if gcc -print-prog-name=ld gives a path. 9095 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 9096echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 9097 case $host in 9098 *-*-mingw*) 9099 # gcc leaves a trailing carriage return which upsets mingw 9100 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 9101 *) 9102 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 9103 esac 9104 case $ac_prog in 9105 # Accept absolute paths. 9106 [\\/]* | ?:[\\/]*) 9107 re_direlt='/[^/][^/]*/\.\./' 9108 # Canonicalize the path of ld 9109 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 9110 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 9111 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 9112 done 9113 test -z "$LD" && LD="$ac_prog" 9114 ;; 9115 "") 9116 # If it fails, then pretend we aren't using GCC. 9117 ac_prog=ld 9118 ;; 9119 *) 9120 # If it is relative, then search for the first ld in PATH. 9121 with_gnu_ld=unknown 9122 ;; 9123 esac 9124elif test "$with_gnu_ld" = yes; then 9125 echo "$as_me:$LINENO: checking for GNU ld" >&5 9126echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 9127else 9128 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 9129echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 9130fi 9131if test "${lt_cv_path_LD+set}" = set; then 9132 echo $ECHO_N "(cached) $ECHO_C" >&6 9133else 9134 if test -z "$LD"; then 9135 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9136 for ac_dir in $PATH; do 9137 IFS="$lt_save_ifs" 9138 test -z "$ac_dir" && ac_dir=. 9139 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 9140 lt_cv_path_LD="$ac_dir/$ac_prog" 9141 # Check to see if the program is GNU ld. I'd rather use --version, 9142 # but apparently some GNU ld's only accept -v. 9143 # Break only if it was the GNU/non-GNU ld that we prefer. 9144 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 9145 *GNU* | *'with BFD'*) 9146 test "$with_gnu_ld" != no && break 9147 ;; 9148 *) 9149 test "$with_gnu_ld" != yes && break 9150 ;; 9151 esac 9152 fi 9153 done 9154 IFS="$lt_save_ifs" 9155else 9156 lt_cv_path_LD="$LD" # Let the user override the test with a path. 9157fi 9158fi 9159 9160LD="$lt_cv_path_LD" 9161if test -n "$LD"; then 9162 echo "$as_me:$LINENO: result: $LD" >&5 9163echo "${ECHO_T}$LD" >&6 9164else 9165 echo "$as_me:$LINENO: result: no" >&5 9166echo "${ECHO_T}no" >&6 9167fi 9168test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 9169echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 9170 { (exit 1); exit 1; }; } 9171echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 9172echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 9173if test "${lt_cv_prog_gnu_ld+set}" = set; then 9174 echo $ECHO_N "(cached) $ECHO_C" >&6 9175else 9176 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 9177case `"$LD" -v 2>&1 </dev/null` in 9178*GNU* | *'with BFD'*) 9179 lt_cv_prog_gnu_ld=yes 9180 ;; 9181*) 9182 lt_cv_prog_gnu_ld=no 9183 ;; 9184esac 9185fi 9186echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 9187echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 9188with_gnu_ld=$lt_cv_prog_gnu_ld 9189 9190 9191 9192 # Check if GNU C++ uses GNU ld as the underlying linker, since the 9193 # archiving commands below assume that GNU ld is being used. 9194 if test "$with_gnu_ld" = yes; then 9195 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 9196 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' 9197 9198 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 9199 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 9200 9201 # If archive_cmds runs LD, not CC, wlarc should be empty 9202 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 9203 # investigate it a little bit more. (MM) 9204 wlarc='${wl}' 9205 9206 # ancient GNU ld didn't support --whole-archive et. al. 9207 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 9208 grep 'no-whole-archive' > /dev/null; then 9209 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9210 else 9211 whole_archive_flag_spec_CXX= 9212 fi 9213 else 9214 with_gnu_ld=no 9215 wlarc= 9216 9217 # A generic and very simple default shared library creation 9218 # command for GNU C++ for the case where it uses the native 9219 # linker, instead of GNU ld. If possible, this setting should 9220 # overridden to take advantage of the native linker features on 9221 # the platform it is being used on. 9222 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 9223 fi 9224 9225 # Commands to make compiler produce verbose output that lists 9226 # what "hidden" libraries, object files and flags are used when 9227 # linking a shared library. 9228 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 9229 9230else 9231 GXX=no 9232 with_gnu_ld=no 9233 wlarc= 9234fi 9235 9236# PORTME: fill in a description of your system's C++ link characteristics 9237echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9238echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 9239ld_shlibs_CXX=yes 9240case $host_os in 9241 aix3*) 9242 # FIXME: insert proper C++ library support 9243 ld_shlibs_CXX=no 9244 ;; 9245 aix4* | aix5*) 9246 if test "$host_cpu" = ia64; then 9247 # On IA64, the linker does run time linking by default, so we don't 9248 # have to do anything special. 9249 aix_use_runtimelinking=no 9250 exp_sym_flag='-Bexport' 9251 no_entry_flag="" 9252 else 9253 aix_use_runtimelinking=no 9254 9255 # Test if we are trying to use run time linking or normal 9256 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9257 # need to do runtime linking. 9258 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 9259 for ld_flag in $LDFLAGS; do 9260 case $ld_flag in 9261 *-brtl*) 9262 aix_use_runtimelinking=yes 9263 break 9264 ;; 9265 esac 9266 done 9267 esac 9268 9269 exp_sym_flag='-bexport' 9270 no_entry_flag='-bnoentry' 9271 fi 9272 9273 # When large executables or shared objects are built, AIX ld can 9274 # have problems creating the table of contents. If linking a library 9275 # or program results in "error TOC overflow" add -mminimal-toc to 9276 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9277 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9278 9279 archive_cmds_CXX='' 9280 hardcode_direct_CXX=yes 9281 hardcode_libdir_separator_CXX=':' 9282 link_all_deplibs_CXX=yes 9283 9284 if test "$GXX" = yes; then 9285 case $host_os in aix4.012|aix4.012.*) 9286 # We only want to do this on AIX 4.2 and lower, the check 9287 # below for broken collect2 doesn't work under 4.3+ 9288 collect2name=`${CC} -print-prog-name=collect2` 9289 if test -f "$collect2name" && \ 9290 strings "$collect2name" | grep resolve_lib_name >/dev/null 9291 then 9292 # We have reworked collect2 9293 hardcode_direct_CXX=yes 9294 else 9295 # We have old collect2 9296 hardcode_direct_CXX=unsupported 9297 # It fails to find uninstalled libraries when the uninstalled 9298 # path is not listed in the libpath. Setting hardcode_minus_L 9299 # to unsupported forces relinking 9300 hardcode_minus_L_CXX=yes 9301 hardcode_libdir_flag_spec_CXX='-L$libdir' 9302 hardcode_libdir_separator_CXX= 9303 fi 9304 esac 9305 shared_flag='-shared' 9306 else 9307 # not using gcc 9308 if test "$host_cpu" = ia64; then 9309 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9310 # chokes on -Wl,-G. The following line is correct: 9311 shared_flag='-G' 9312 else 9313 if test "$aix_use_runtimelinking" = yes; then 9314 shared_flag='${wl}-G' 9315 else 9316 shared_flag='${wl}-bM:SRE' 9317 fi 9318 fi 9319 fi 9320 9321 # It seems that -bexpall does not export symbols beginning with 9322 # underscore (_), so it is better to generate a list of symbols to export. 9323 always_export_symbols_CXX=yes 9324 if test "$aix_use_runtimelinking" = yes; then 9325 # Warning - without using the other runtime loading flags (-brtl), 9326 # -berok will link without error, but may produce a broken library. 9327 allow_undefined_flag_CXX='-berok' 9328 # Determine the default libpath from the value encoded in an empty executable. 9329 cat >conftest.$ac_ext <<_ACEOF 9330#line $LINENO "configure" 9331/* confdefs.h. */ 9332_ACEOF 9333cat confdefs.h >>conftest.$ac_ext 9334cat >>conftest.$ac_ext <<_ACEOF 9335/* end confdefs.h. */ 9336 9337int 9338main () 9339{ 9340 9341 ; 9342 return 0; 9343} 9344_ACEOF 9345rm -f conftest.$ac_objext conftest$ac_exeext 9346if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9347 (eval $ac_link) 2>&5 9348 ac_status=$? 9349 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9350 (exit $ac_status); } && 9351 { ac_try='test -s conftest$ac_exeext' 9352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9353 (eval $ac_try) 2>&5 9354 ac_status=$? 9355 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9356 (exit $ac_status); }; }; then 9357 9358aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 9359}'` 9360# Check for a 64-bit object if we didn't find anything. 9361if 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; } 9362}'`; fi 9363else 9364 echo "$as_me: failed program was:" >&5 9365sed 's/^/| /' conftest.$ac_ext >&5 9366 9367fi 9368rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9369if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9370 9371 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 9372 9373 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" 9374 else 9375 if test "$host_cpu" = ia64; then 9376 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 9377 allow_undefined_flag_CXX="-z nodefs" 9378 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" 9379 else 9380 # Determine the default libpath from the value encoded in an empty executable. 9381 cat >conftest.$ac_ext <<_ACEOF 9382#line $LINENO "configure" 9383/* confdefs.h. */ 9384_ACEOF 9385cat confdefs.h >>conftest.$ac_ext 9386cat >>conftest.$ac_ext <<_ACEOF 9387/* end confdefs.h. */ 9388 9389int 9390main () 9391{ 9392 9393 ; 9394 return 0; 9395} 9396_ACEOF 9397rm -f conftest.$ac_objext conftest$ac_exeext 9398if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9399 (eval $ac_link) 2>&5 9400 ac_status=$? 9401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9402 (exit $ac_status); } && 9403 { ac_try='test -s conftest$ac_exeext' 9404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9405 (eval $ac_try) 2>&5 9406 ac_status=$? 9407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9408 (exit $ac_status); }; }; then 9409 9410aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 9411}'` 9412# Check for a 64-bit object if we didn't find anything. 9413if 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; } 9414}'`; fi 9415else 9416 echo "$as_me: failed program was:" >&5 9417sed 's/^/| /' conftest.$ac_ext >&5 9418 9419fi 9420rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9421if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9422 9423 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 9424 # Warning - without using the other run time loading flags, 9425 # -berok will link without error, but may produce a broken library. 9426 no_undefined_flag_CXX=' ${wl}-bernotok' 9427 allow_undefined_flag_CXX=' ${wl}-berok' 9428 # -bexpall does not export symbols beginning with underscore (_) 9429 always_export_symbols_CXX=yes 9430 # Exported symbols can be pulled into shared objects from archives 9431 whole_archive_flag_spec_CXX=' ' 9432 archive_cmds_need_lc_CXX=yes 9433 # This is similar to how AIX traditionally builds it's shared libraries. 9434 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' 9435 fi 9436 fi 9437 ;; 9438 chorus*) 9439 case $cc_basename in 9440 *) 9441 # FIXME: insert proper C++ library support 9442 ld_shlibs_CXX=no 9443 ;; 9444 esac 9445 ;; 9446 9447 cygwin* | mingw* | pw32*) 9448 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 9449 # as there is no search path for DLLs. 9450 hardcode_libdir_flag_spec_CXX='-L$libdir' 9451 allow_undefined_flag_CXX=unsupported 9452 always_export_symbols_CXX=no 9453 enable_shared_with_static_runtimes_CXX=yes 9454 9455 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 9456 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' 9457 # If the export-symbols file already is a .def file (1st line 9458 # is EXPORTS), use it as is; otherwise, prepend... 9459 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9460 cp $export_symbols $output_objdir/$soname.def; 9461 else 9462 echo EXPORTS > $output_objdir/$soname.def; 9463 cat $export_symbols >> $output_objdir/$soname.def; 9464 fi~ 9465 $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' 9466 else 9467 ld_shlibs_CXX=no 9468 fi 9469 ;; 9470 9471 darwin* | rhapsody*) 9472 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then 9473 archive_cmds_need_lc_CXX=no 9474 case "$host_os" in 9475 rhapsody* | darwin1.[012]) 9476 allow_undefined_flag_CXX='-undefined suppress' 9477 ;; 9478 *) # Darwin 1.3 on 9479 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress' 9480 ;; 9481 esac 9482 lt_int_apple_cc_single_mod=no 9483 output_verbose_link_cmd='echo' 9484 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 9485 lt_int_apple_cc_single_mod=yes 9486 fi 9487 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 9488 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 9489 else 9490 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 9491 fi 9492 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' 9493 9494 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 9495 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 9496 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}' 9497 else 9498 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 9499 fi 9500 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 9501 hardcode_direct_CXX=no 9502 hardcode_automatic_CXX=yes 9503 hardcode_shlibpath_var_CXX=unsupported 9504 whole_archive_flag_spec_CXX='-all_load $convenience' 9505 link_all_deplibs_CXX=yes 9506 fi 9507 ;; 9508 9509 dgux*) 9510 case $cc_basename in 9511 ec++) 9512 # FIXME: insert proper C++ library support 9513 ld_shlibs_CXX=no 9514 ;; 9515 ghcx) 9516 # Green Hills C++ Compiler 9517 # FIXME: insert proper C++ library support 9518 ld_shlibs_CXX=no 9519 ;; 9520 *) 9521 # FIXME: insert proper C++ library support 9522 ld_shlibs_CXX=no 9523 ;; 9524 esac 9525 ;; 9526 freebsd12*) 9527 # C++ shared libraries reported to be fairly broken before switch to ELF 9528 ld_shlibs_CXX=no 9529 ;; 9530 freebsd-elf*) 9531 archive_cmds_need_lc_CXX=no 9532 ;; 9533 freebsd*) 9534 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 9535 # conventions 9536 ld_shlibs_CXX=yes 9537 ;; 9538 gnu*) 9539 ;; 9540 hpux9*) 9541 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 9542 hardcode_libdir_separator_CXX=: 9543 export_dynamic_flag_spec_CXX='${wl}-E' 9544 hardcode_direct_CXX=yes 9545 hardcode_minus_L_CXX=yes # Not in the search PATH, 9546 # but as the default 9547 # location of the library. 9548 9549 case $cc_basename in 9550 CC) 9551 # FIXME: insert proper C++ library support 9552 ld_shlibs_CXX=no 9553 ;; 9554 aCC) 9555 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' 9556 # Commands to make compiler produce verbose output that lists 9557 # what "hidden" libraries, object files and flags are used when 9558 # linking a shared library. 9559 # 9560 # There doesn't appear to be a way to prevent this compiler from 9561 # explicitly linking system object files so we need to strip them 9562 # from the output so that they don't get included in the library 9563 # dependencies. 9564 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 9565 ;; 9566 *) 9567 if test "$GXX" = yes; then 9568 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' 9569 else 9570 # FIXME: insert proper C++ library support 9571 ld_shlibs_CXX=no 9572 fi 9573 ;; 9574 esac 9575 ;; 9576 hpux10*|hpux11*) 9577 if test $with_gnu_ld = no; then 9578 case "$host_cpu" in 9579 hppa*64*) 9580 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 9581 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 9582 hardcode_libdir_separator_CXX=: 9583 ;; 9584 ia64*) 9585 hardcode_libdir_flag_spec_CXX='-L$libdir' 9586 ;; 9587 *) 9588 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 9589 hardcode_libdir_separator_CXX=: 9590 export_dynamic_flag_spec_CXX='${wl}-E' 9591 ;; 9592 esac 9593 fi 9594 case "$host_cpu" in 9595 hppa*64*) 9596 hardcode_direct_CXX=no 9597 hardcode_shlibpath_var_CXX=no 9598 ;; 9599 ia64*) 9600 hardcode_direct_CXX=no 9601 hardcode_shlibpath_var_CXX=no 9602 hardcode_minus_L_CXX=yes # Not in the search PATH, 9603 # but as the default 9604 # location of the library. 9605 ;; 9606 *) 9607 hardcode_direct_CXX=yes 9608 hardcode_minus_L_CXX=yes # Not in the search PATH, 9609 # but as the default 9610 # location of the library. 9611 ;; 9612 esac 9613 9614 case $cc_basename in 9615 CC) 9616 # FIXME: insert proper C++ library support 9617 ld_shlibs_CXX=no 9618 ;; 9619 aCC) 9620 case "$host_cpu" in 9621 hppa*64*|ia64*) 9622 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 9623 ;; 9624 *) 9625 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 9626 ;; 9627 esac 9628 # Commands to make compiler produce verbose output that lists 9629 # what "hidden" libraries, object files and flags are used when 9630 # linking a shared library. 9631 # 9632 # There doesn't appear to be a way to prevent this compiler from 9633 # explicitly linking system object files so we need to strip them 9634 # from the output so that they don't get included in the library 9635 # dependencies. 9636 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' 9637 ;; 9638 *) 9639 if test "$GXX" = yes; then 9640 if test $with_gnu_ld = no; then 9641 case "$host_cpu" in 9642 ia64*|hppa*64*) 9643 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 9644 ;; 9645 *) 9646 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' 9647 ;; 9648 esac 9649 fi 9650 else 9651 # FIXME: insert proper C++ library support 9652 ld_shlibs_CXX=no 9653 fi 9654 ;; 9655 esac 9656 ;; 9657 irix5* | irix6*) 9658 case $cc_basename in 9659 CC) 9660 # SGI C++ 9661 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' 9662 9663 # Archives containing C++ object files must be created using 9664 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 9665 # necessary to make sure instantiated templates are included 9666 # in the archive. 9667 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 9668 ;; 9669 *) 9670 if test "$GXX" = yes; then 9671 if test "$with_gnu_ld" = no; then 9672 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' 9673 else 9674 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' 9675 fi 9676 fi 9677 link_all_deplibs_CXX=yes 9678 ;; 9679 esac 9680 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 9681 hardcode_libdir_separator_CXX=: 9682 ;; 9683 linux*) 9684 case $cc_basename in 9685 KCC) 9686 # Kuck and Associates, Inc. (KAI) C++ Compiler 9687 9688 # KCC will only create a shared library if the output file 9689 # ends with ".so" (or ".sl" for HP-UX), so rename the library 9690 # to its proper name (with version) after linking. 9691 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' 9692 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' 9693 # Commands to make compiler produce verbose output that lists 9694 # what "hidden" libraries, object files and flags are used when 9695 # linking a shared library. 9696 # 9697 # There doesn't appear to be a way to prevent this compiler from 9698 # explicitly linking system object files so we need to strip them 9699 # from the output so that they don't get included in the library 9700 # dependencies. 9701 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' 9702 9703 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 9704 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 9705 9706 # Archives containing C++ object files must be created using 9707 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 9708 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 9709 ;; 9710 icpc) 9711 # Intel C++ 9712 with_gnu_ld=yes 9713 archive_cmds_need_lc_CXX=no 9714 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 9715 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' 9716 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 9717 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 9718 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9719 ;; 9720 cxx) 9721 # Compaq C++ 9722 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 9723 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' 9724 9725 runpath_var=LD_RUN_PATH 9726 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 9727 hardcode_libdir_separator_CXX=: 9728 9729 # Commands to make compiler produce verbose output that lists 9730 # what "hidden" libraries, object files and flags are used when 9731 # linking a shared library. 9732 # 9733 # There doesn't appear to be a way to prevent this compiler from 9734 # explicitly linking system object files so we need to strip them 9735 # from the output so that they don't get included in the library 9736 # dependencies. 9737 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' 9738 ;; 9739 esac 9740 ;; 9741 lynxos*) 9742 # FIXME: insert proper C++ library support 9743 ld_shlibs_CXX=no 9744 ;; 9745 m88k*) 9746 # FIXME: insert proper C++ library support 9747 ld_shlibs_CXX=no 9748 ;; 9749 mvs*) 9750 case $cc_basename in 9751 cxx) 9752 # FIXME: insert proper C++ library support 9753 ld_shlibs_CXX=no 9754 ;; 9755 *) 9756 # FIXME: insert proper C++ library support 9757 ld_shlibs_CXX=no 9758 ;; 9759 esac 9760 ;; 9761 netbsd*) 9762 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9763 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 9764 wlarc= 9765 hardcode_libdir_flag_spec_CXX='-R$libdir' 9766 hardcode_direct_CXX=yes 9767 hardcode_shlibpath_var_CXX=no 9768 fi 9769 # Workaround some broken pre-1.5 toolchains 9770 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 9771 ;; 9772 osf3*) 9773 case $cc_basename in 9774 KCC) 9775 # Kuck and Associates, Inc. (KAI) C++ Compiler 9776 9777 # KCC will only create a shared library if the output file 9778 # ends with ".so" (or ".sl" for HP-UX), so rename the library 9779 # to its proper name (with version) after linking. 9780 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' 9781 9782 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 9783 hardcode_libdir_separator_CXX=: 9784 9785 # Archives containing C++ object files must be created using 9786 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 9787 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 9788 9789 ;; 9790 RCC) 9791 # Rational C++ 2.4.1 9792 # FIXME: insert proper C++ library support 9793 ld_shlibs_CXX=no 9794 ;; 9795 cxx) 9796 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 9797 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' 9798 9799 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 9800 hardcode_libdir_separator_CXX=: 9801 9802 # Commands to make compiler produce verbose output that lists 9803 # what "hidden" libraries, object files and flags are used when 9804 # linking a shared library. 9805 # 9806 # There doesn't appear to be a way to prevent this compiler from 9807 # explicitly linking system object files so we need to strip them 9808 # from the output so that they don't get included in the library 9809 # dependencies. 9810 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' 9811 ;; 9812 *) 9813 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 9814 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 9815 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' 9816 9817 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 9818 hardcode_libdir_separator_CXX=: 9819 9820 # Commands to make compiler produce verbose output that lists 9821 # what "hidden" libraries, object files and flags are used when 9822 # linking a shared library. 9823 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 9824 9825 else 9826 # FIXME: insert proper C++ library support 9827 ld_shlibs_CXX=no 9828 fi 9829 ;; 9830 esac 9831 ;; 9832 osf4* | osf5*) 9833 case $cc_basename in 9834 KCC) 9835 # Kuck and Associates, Inc. (KAI) C++ Compiler 9836 9837 # KCC will only create a shared library if the output file 9838 # ends with ".so" (or ".sl" for HP-UX), so rename the library 9839 # to its proper name (with version) after linking. 9840 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' 9841 9842 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 9843 hardcode_libdir_separator_CXX=: 9844 9845 # Archives containing C++ object files must be created using 9846 # the KAI C++ compiler. 9847 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 9848 ;; 9849 RCC) 9850 # Rational C++ 2.4.1 9851 # FIXME: insert proper C++ library support 9852 ld_shlibs_CXX=no 9853 ;; 9854 cxx) 9855 allow_undefined_flag_CXX=' -expect_unresolved \*' 9856 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' 9857 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 9858 echo "-hidden">> $lib.exp~ 9859 $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~ 9860 $rm $lib.exp' 9861 9862 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 9863 hardcode_libdir_separator_CXX=: 9864 9865 # Commands to make compiler produce verbose output that lists 9866 # what "hidden" libraries, object files and flags are used when 9867 # linking a shared library. 9868 # 9869 # There doesn't appear to be a way to prevent this compiler from 9870 # explicitly linking system object files so we need to strip them 9871 # from the output so that they don't get included in the library 9872 # dependencies. 9873 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' 9874 ;; 9875 *) 9876 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 9877 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 9878 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' 9879 9880 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 9881 hardcode_libdir_separator_CXX=: 9882 9883 # Commands to make compiler produce verbose output that lists 9884 # what "hidden" libraries, object files and flags are used when 9885 # linking a shared library. 9886 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 9887 9888 else 9889 # FIXME: insert proper C++ library support 9890 ld_shlibs_CXX=no 9891 fi 9892 ;; 9893 esac 9894 ;; 9895 psos*) 9896 # FIXME: insert proper C++ library support 9897 ld_shlibs_CXX=no 9898 ;; 9899 sco*) 9900 archive_cmds_need_lc_CXX=no 9901 case $cc_basename in 9902 CC) 9903 # FIXME: insert proper C++ library support 9904 ld_shlibs_CXX=no 9905 ;; 9906 *) 9907 # FIXME: insert proper C++ library support 9908 ld_shlibs_CXX=no 9909 ;; 9910 esac 9911 ;; 9912 sunos4*) 9913 case $cc_basename in 9914 CC) 9915 # Sun C++ 4.x 9916 # FIXME: insert proper C++ library support 9917 ld_shlibs_CXX=no 9918 ;; 9919 lcc) 9920 # Lucid 9921 # FIXME: insert proper C++ library support 9922 ld_shlibs_CXX=no 9923 ;; 9924 *) 9925 # FIXME: insert proper C++ library support 9926 ld_shlibs_CXX=no 9927 ;; 9928 esac 9929 ;; 9930 solaris*) 9931 case $cc_basename in 9932 CC) 9933 # Sun C++ 4.2, 5.x and Centerline C++ 9934 no_undefined_flag_CXX=' -zdefs' 9935 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 9936 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 9937 $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' 9938 9939 hardcode_libdir_flag_spec_CXX='-R$libdir' 9940 hardcode_shlibpath_var_CXX=no 9941 case $host_os in 9942 solaris2.0-5 | solaris2.0-5.*) ;; 9943 *) 9944 # The C++ compiler is used as linker so we must use $wl 9945 # flag to pass the commands to the underlying system 9946 # linker. 9947 # Supported since Solaris 2.6 (maybe 2.5.1?) 9948 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9949 ;; 9950 esac 9951 link_all_deplibs_CXX=yes 9952 9953 # Commands to make compiler produce verbose output that lists 9954 # what "hidden" libraries, object files and flags are used when 9955 # linking a shared library. 9956 # 9957 # There doesn't appear to be a way to prevent this compiler from 9958 # explicitly linking system object files so we need to strip them 9959 # from the output so that they don't get included in the library 9960 # dependencies. 9961 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' 9962 9963 # Archives containing C++ object files must be created using 9964 # "CC -xar", where "CC" is the Sun C++ compiler. This is 9965 # necessary to make sure instantiated templates are included 9966 # in the archive. 9967 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 9968 ;; 9969 gcx) 9970 # Green Hills C++ Compiler 9971 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 9972 9973 # The C++ compiler must be used to create the archive. 9974 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 9975 ;; 9976 *) 9977 # GNU C++ compiler with Solaris linker 9978 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 9979 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 9980 if $CC --version | grep -v '^2\.7' > /dev/null; then 9981 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 9982 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 9983 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 9984 9985 # Commands to make compiler produce verbose output that lists 9986 # what "hidden" libraries, object files and flags are used when 9987 # linking a shared library. 9988 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 9989 else 9990 # g++ 2.7 appears to require `-G' NOT `-shared' on this 9991 # platform. 9992 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 9993 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 9994 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 9995 9996 # Commands to make compiler produce verbose output that lists 9997 # what "hidden" libraries, object files and flags are used when 9998 # linking a shared library. 9999 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 10000 fi 10001 10002 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 10003 fi 10004 ;; 10005 esac 10006 ;; 10007 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 10008 archive_cmds_need_lc_CXX=no 10009 ;; 10010 tandem*) 10011 case $cc_basename in 10012 NCC) 10013 # NonStop-UX NCC 3.20 10014 # FIXME: insert proper C++ library support 10015 ld_shlibs_CXX=no 10016 ;; 10017 *) 10018 # FIXME: insert proper C++ library support 10019 ld_shlibs_CXX=no 10020 ;; 10021 esac 10022 ;; 10023 vxworks*) 10024 # FIXME: insert proper C++ library support 10025 ld_shlibs_CXX=no 10026 ;; 10027 *) 10028 # FIXME: insert proper C++ library support 10029 ld_shlibs_CXX=no 10030 ;; 10031esac 10032echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 10033echo "${ECHO_T}$ld_shlibs_CXX" >&6 10034test "$ld_shlibs_CXX" = no && can_build_shared=no 10035 10036GCC_CXX="$GXX" 10037LD_CXX="$LD" 10038 10039 10040cat > conftest.$ac_ext <<EOF 10041class Foo 10042{ 10043public: 10044 Foo (void) { a = 0; } 10045private: 10046 int a; 10047}; 10048EOF 10049 10050if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10051 (eval $ac_compile) 2>&5 10052 ac_status=$? 10053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10054 (exit $ac_status); }; then 10055 # Parse the compiler output and extract the necessary 10056 # objects, libraries and library flags. 10057 10058 # Sentinel used to keep track of whether or not we are before 10059 # the conftest object file. 10060 pre_test_object_deps_done=no 10061 10062 # The `*' in the case matches for architectures that use `case' in 10063 # $output_verbose_cmd can trigger glob expansion during the loop 10064 # eval without this substitution. 10065 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" 10066 10067 for p in `eval $output_verbose_link_cmd`; do 10068 case $p in 10069 10070 -L* | -R* | -l*) 10071 # Some compilers place space between "-{L,R}" and the path. 10072 # Remove the space. 10073 if test $p = "-L" \ 10074 || test $p = "-R"; then 10075 prev=$p 10076 continue 10077 else 10078 prev= 10079 fi 10080 10081 if test "$pre_test_object_deps_done" = no; then 10082 case $p in 10083 -L* | -R*) 10084 # Internal compiler library paths should come after those 10085 # provided the user. The postdeps already come after the 10086 # user supplied libs so there is no need to process them. 10087 if test -z "$compiler_lib_search_path_CXX"; then 10088 compiler_lib_search_path_CXX="${prev}${p}" 10089 else 10090 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 10091 fi 10092 ;; 10093 # The "-l" case would never come before the object being 10094 # linked, so don't bother handling this case. 10095 esac 10096 else 10097 if test -z "$postdeps_CXX"; then 10098 postdeps_CXX="${prev}${p}" 10099 else 10100 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 10101 fi 10102 fi 10103 ;; 10104 10105 *.$objext) 10106 # This assumes that the test object file only shows up 10107 # once in the compiler output. 10108 if test "$p" = "conftest.$objext"; then 10109 pre_test_object_deps_done=yes 10110 continue 10111 fi 10112 10113 if test "$pre_test_object_deps_done" = no; then 10114 if test -z "$predep_objects_CXX"; then 10115 predep_objects_CXX="$p" 10116 else 10117 predep_objects_CXX="$predep_objects_CXX $p" 10118 fi 10119 else 10120 if test -z "$postdep_objects_CXX"; then 10121 postdep_objects_CXX="$p" 10122 else 10123 postdep_objects_CXX="$postdep_objects_CXX $p" 10124 fi 10125 fi 10126 ;; 10127 10128 *) ;; # Ignore the rest. 10129 10130 esac 10131 done 10132 10133 # Clean up. 10134 rm -f a.out a.exe 10135else 10136 echo "libtool.m4: error: problem compiling CXX test program" 10137fi 10138 10139$rm -f confest.$objext 10140 10141case " $postdeps_CXX " in 10142*" -lc "*) archive_cmds_need_lc_CXX=no ;; 10143esac 10144 10145lt_prog_compiler_wl_CXX= 10146lt_prog_compiler_pic_CXX= 10147lt_prog_compiler_static_CXX= 10148 10149echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 10150echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 10151 10152 # C++ specific cases for pic, static, wl, etc. 10153 if test "$GXX" = yes; then 10154 lt_prog_compiler_wl_CXX='-Wl,' 10155 lt_prog_compiler_static_CXX='-static' 10156 10157 case $host_os in 10158 aix*) 10159 # All AIX code is PIC. 10160 if test "$host_cpu" = ia64; then 10161 # AIX 5 now supports IA64 processor 10162 lt_prog_compiler_static_CXX='-Bstatic' 10163 fi 10164 ;; 10165 amigaos*) 10166 # FIXME: we need at least 68020 code to build shared libraries, but 10167 # adding the `-m68020' flag to GCC prevents building anything better, 10168 # like `-m68040'. 10169 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 10170 ;; 10171 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 10172 # PIC is the default for these OSes. 10173 ;; 10174 mingw* | os2* | pw32*) 10175 # This hack is so that the source file can tell whether it is being 10176 # built for inclusion in a dll (and should export symbols for example). 10177 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 10178 ;; 10179 darwin* | rhapsody*) 10180 # PIC is the default on this platform 10181 # Common symbols not allowed in MH_DYLIB files 10182 lt_prog_compiler_pic_CXX='-fno-common' 10183 ;; 10184 *djgpp*) 10185 # DJGPP does not support shared libraries at all 10186 lt_prog_compiler_pic_CXX= 10187 ;; 10188 sysv4*MP*) 10189 if test -d /usr/nec; then 10190 lt_prog_compiler_pic_CXX=-Kconform_pic 10191 fi 10192 ;; 10193 hpux*) 10194 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 10195 # not for PA HP-UX. 10196 case "$host_cpu" in 10197 hppa*64*|ia64*) 10198 ;; 10199 *) 10200 lt_prog_compiler_pic_CXX='-fPIC' 10201 ;; 10202 esac 10203 ;; 10204 *) 10205 lt_prog_compiler_pic_CXX='-fPIC' 10206 ;; 10207 esac 10208 else 10209 case $host_os in 10210 aix4* | aix5*) 10211 # All AIX code is PIC. 10212 if test "$host_cpu" = ia64; then 10213 # AIX 5 now supports IA64 processor 10214 lt_prog_compiler_static_CXX='-Bstatic' 10215 else 10216 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 10217 fi 10218 ;; 10219 chorus*) 10220 case $cc_basename in 10221 cxch68) 10222 # Green Hills C++ Compiler 10223 # _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" 10224 ;; 10225 esac 10226 ;; 10227 dgux*) 10228 case $cc_basename in 10229 ec++) 10230 lt_prog_compiler_pic_CXX='-KPIC' 10231 ;; 10232 ghcx) 10233 # Green Hills C++ Compiler 10234 lt_prog_compiler_pic_CXX='-pic' 10235 ;; 10236 *) 10237 ;; 10238 esac 10239 ;; 10240 freebsd*) 10241 # FreeBSD uses GNU C++ 10242 ;; 10243 hpux9* | hpux10* | hpux11*) 10244 case $cc_basename in 10245 CC) 10246 lt_prog_compiler_wl_CXX='-Wl,' 10247 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 10248 if test "$host_cpu" != ia64; then 10249 lt_prog_compiler_pic_CXX='+Z' 10250 fi 10251 ;; 10252 aCC) 10253 lt_prog_compiler_wl_CXX='-Wl,' 10254 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 10255 case "$host_cpu" in 10256 hppa*64*|ia64*) 10257 # +Z the default 10258 ;; 10259 *) 10260 lt_prog_compiler_pic_CXX='+Z' 10261 ;; 10262 esac 10263 ;; 10264 *) 10265 ;; 10266 esac 10267 ;; 10268 irix5* | irix6* | nonstopux*) 10269 case $cc_basename in 10270 CC) 10271 lt_prog_compiler_wl_CXX='-Wl,' 10272 lt_prog_compiler_static_CXX='-non_shared' 10273 # CC pic flag -KPIC is the default. 10274 ;; 10275 *) 10276 ;; 10277 esac 10278 ;; 10279 linux*) 10280 case $cc_basename in 10281 KCC) 10282 # KAI C++ Compiler 10283 lt_prog_compiler_wl_CXX='--backend -Wl,' 10284 lt_prog_compiler_pic_CXX='-fPIC' 10285 ;; 10286 icpc) 10287 # Intel C++ 10288 lt_prog_compiler_wl_CXX='-Wl,' 10289 lt_prog_compiler_pic_CXX='-KPIC' 10290 lt_prog_compiler_static_CXX='-static' 10291 ;; 10292 cxx) 10293 # Compaq C++ 10294 # Make sure the PIC flag is empty. It appears that all Alpha 10295 # Linux and Compaq Tru64 Unix objects are PIC. 10296 lt_prog_compiler_pic_CXX= 10297 lt_prog_compiler_static_CXX='-non_shared' 10298 ;; 10299 *) 10300 ;; 10301 esac 10302 ;; 10303 lynxos*) 10304 ;; 10305 m88k*) 10306 ;; 10307 mvs*) 10308 case $cc_basename in 10309 cxx) 10310 lt_prog_compiler_pic_CXX='-W c,exportall' 10311 ;; 10312 *) 10313 ;; 10314 esac 10315 ;; 10316 netbsd*) 10317 ;; 10318 osf3* | osf4* | osf5*) 10319 case $cc_basename in 10320 KCC) 10321 lt_prog_compiler_wl_CXX='--backend -Wl,' 10322 ;; 10323 RCC) 10324 # Rational C++ 2.4.1 10325 lt_prog_compiler_pic_CXX='-pic' 10326 ;; 10327 cxx) 10328 # Digital/Compaq C++ 10329 lt_prog_compiler_wl_CXX='-Wl,' 10330 # Make sure the PIC flag is empty. It appears that all Alpha 10331 # Linux and Compaq Tru64 Unix objects are PIC. 10332 lt_prog_compiler_pic_CXX= 10333 lt_prog_compiler_static_CXX='-non_shared' 10334 ;; 10335 *) 10336 ;; 10337 esac 10338 ;; 10339 psos*) 10340 ;; 10341 sco*) 10342 case $cc_basename in 10343 CC) 10344 lt_prog_compiler_pic_CXX='-fPIC' 10345 ;; 10346 *) 10347 ;; 10348 esac 10349 ;; 10350 solaris*) 10351 case $cc_basename in 10352 CC) 10353 # Sun C++ 4.2, 5.x and Centerline C++ 10354 lt_prog_compiler_pic_CXX='-KPIC' 10355 lt_prog_compiler_static_CXX='-Bstatic' 10356 lt_prog_compiler_wl_CXX='-Qoption ld ' 10357 ;; 10358 gcx) 10359 # Green Hills C++ Compiler 10360 lt_prog_compiler_pic_CXX='-PIC' 10361 ;; 10362 *) 10363 ;; 10364 esac 10365 ;; 10366 sunos4*) 10367 case $cc_basename in 10368 CC) 10369 # Sun C++ 4.x 10370 lt_prog_compiler_pic_CXX='-pic' 10371 lt_prog_compiler_static_CXX='-Bstatic' 10372 ;; 10373 lcc) 10374 # Lucid 10375 lt_prog_compiler_pic_CXX='-pic' 10376 ;; 10377 *) 10378 ;; 10379 esac 10380 ;; 10381 tandem*) 10382 case $cc_basename in 10383 NCC) 10384 # NonStop-UX NCC 3.20 10385 lt_prog_compiler_pic_CXX='-KPIC' 10386 ;; 10387 *) 10388 ;; 10389 esac 10390 ;; 10391 unixware*) 10392 ;; 10393 vxworks*) 10394 ;; 10395 *) 10396 lt_prog_compiler_can_build_shared_CXX=no 10397 ;; 10398 esac 10399 fi 10400 10401echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 10402echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 10403 10404# 10405# Check to make sure the PIC flag actually works. 10406# 10407if test -n "$lt_prog_compiler_pic_CXX"; then 10408 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 10409echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 10410if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 10411 echo $ECHO_N "(cached) $ECHO_C" >&6 10412else 10413 lt_prog_compiler_pic_works_CXX=no 10414 ac_outfile=conftest.$ac_objext 10415 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 10416 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 10417 # Insert the option either (1) after the last *FLAGS variable, or 10418 # (2) before a word containing "conftest.", or (3) at the end. 10419 # Note that $ac_compile itself does not contain backslashes and begins 10420 # with a dollar sign (not a hyphen), so the echo should work correctly. 10421 # The option is referenced via a variable to avoid confusing sed. 10422 lt_compile=`echo "$ac_compile" | $SED \ 10423 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 10424 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10425 -e 's:$: $lt_compiler_flag:'` 10426 (eval echo "\"\$as_me:10426: $lt_compile\"" >&5) 10427 (eval "$lt_compile" 2>conftest.err) 10428 ac_status=$? 10429 cat conftest.err >&5 10430 echo "$as_me:10430: \$? = $ac_status" >&5 10431 if (exit $ac_status) && test -s "$ac_outfile"; then 10432 # The compiler can only warn and ignore the option if not recognized 10433 # So say no if there are warnings 10434 if test ! -s conftest.err; then 10435 lt_prog_compiler_pic_works_CXX=yes 10436 fi 10437 fi 10438 $rm conftest* 10439 10440fi 10441echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 10442echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 10443 10444if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 10445 case $lt_prog_compiler_pic_CXX in 10446 "" | " "*) ;; 10447 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 10448 esac 10449else 10450 lt_prog_compiler_pic_CXX= 10451 lt_prog_compiler_can_build_shared_CXX=no 10452fi 10453 10454fi 10455case "$host_os" in 10456 # For platforms which do not support PIC, -DPIC is meaningless: 10457 *djgpp*) 10458 lt_prog_compiler_pic_CXX= 10459 ;; 10460 *) 10461 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 10462 ;; 10463esac 10464 10465echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 10466echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 10467if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 10468 echo $ECHO_N "(cached) $ECHO_C" >&6 10469else 10470 lt_cv_prog_compiler_c_o_CXX=no 10471 $rm -r conftest 2>/dev/null 10472 mkdir conftest 10473 cd conftest 10474 mkdir out 10475 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 10476 10477 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers 10478 # that will create temporary files in the current directory regardless of 10479 # the output directory. Thus, making CWD read-only will cause this test 10480 # to fail, enabling locking or at least warning the user not to do parallel 10481 # builds. 10482 chmod -w . 10483 10484 lt_compiler_flag="-o out/conftest2.$ac_objext" 10485 # Insert the option either (1) after the last *FLAGS variable, or 10486 # (2) before a word containing "conftest.", or (3) at the end. 10487 # Note that $ac_compile itself does not contain backslashes and begins 10488 # with a dollar sign (not a hyphen), so the echo should work correctly. 10489 lt_compile=`echo "$ac_compile" | $SED \ 10490 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 10491 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10492 -e 's:$: $lt_compiler_flag:'` 10493 (eval echo "\"\$as_me:10493: $lt_compile\"" >&5) 10494 (eval "$lt_compile" 2>out/conftest.err) 10495 ac_status=$? 10496 cat out/conftest.err >&5 10497 echo "$as_me:10497: \$? = $ac_status" >&5 10498 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10499 then 10500 # The compiler can only warn and ignore the option if not recognized 10501 # So say no if there are warnings 10502 if test ! -s out/conftest.err; then 10503 lt_cv_prog_compiler_c_o_CXX=yes 10504 fi 10505 fi 10506 chmod u+w . 10507 $rm conftest* out/* 10508 rmdir out 10509 cd .. 10510 rmdir conftest 10511 $rm conftest* 10512 10513fi 10514echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 10515echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 10516 10517 10518hard_links="nottested" 10519if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 10520 # do not overwrite the value of need_locks provided by the user 10521 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 10522echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 10523 hard_links=yes 10524 $rm conftest* 10525 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10526 touch conftest.a 10527 ln conftest.a conftest.b 2>&5 || hard_links=no 10528 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10529 echo "$as_me:$LINENO: result: $hard_links" >&5 10530echo "${ECHO_T}$hard_links" >&6 10531 if test "$hard_links" = no; then 10532 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 10533echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 10534 need_locks=warn 10535 fi 10536else 10537 need_locks=no 10538fi 10539 10540echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10541echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 10542 10543 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10544 case $host_os in 10545 aix4* | aix5*) 10546 # If we're using GNU nm, then we don't want the "-C" option. 10547 # -C means demangle to AIX nm, but means don't demangle with GNU nm 10548 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 10549 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' 10550 else 10551 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' 10552 fi 10553 ;; 10554 pw32*) 10555 export_symbols_cmds_CXX="$ltdll_cmds" 10556 ;; 10557 cygwin* | mingw*) 10558 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 10559 ;; 10560 *) 10561 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10562 ;; 10563 esac 10564 10565echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 10566echo "${ECHO_T}$ld_shlibs_CXX" >&6 10567test "$ld_shlibs_CXX" = no && can_build_shared=no 10568 10569variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10570if test "$GCC" = yes; then 10571 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10572fi 10573 10574# 10575# Do we need to explicitly link libc? 10576# 10577case "x$archive_cmds_need_lc_CXX" in 10578x|xyes) 10579 # Assume -lc should be added 10580 archive_cmds_need_lc_CXX=yes 10581 10582 if test "$enable_shared" = yes && test "$GCC" = yes; then 10583 case $archive_cmds_CXX in 10584 *'~'*) 10585 # FIXME: we may have to deal with multi-command sequences. 10586 ;; 10587 '$CC '*) 10588 # Test whether the compiler implicitly links with -lc since on some 10589 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10590 # to ld, don't add -lc before -lgcc. 10591 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 10592echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 10593 $rm conftest* 10594 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 10595 10596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10597 (eval $ac_compile) 2>&5 10598 ac_status=$? 10599 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10600 (exit $ac_status); } 2>conftest.err; then 10601 soname=conftest 10602 lib=conftest 10603 libobjs=conftest.$ac_objext 10604 deplibs= 10605 wl=$lt_prog_compiler_wl_CXX 10606 compiler_flags=-v 10607 linker_flags=-v 10608 verstring= 10609 output_objdir=. 10610 libname=conftest 10611 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 10612 allow_undefined_flag_CXX= 10613 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 10614 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 10615 ac_status=$? 10616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10617 (exit $ac_status); } 10618 then 10619 archive_cmds_need_lc_CXX=no 10620 else 10621 archive_cmds_need_lc_CXX=yes 10622 fi 10623 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 10624 else 10625 cat conftest.err 1>&5 10626 fi 10627 $rm conftest* 10628 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 10629echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 10630 ;; 10631 esac 10632 fi 10633 ;; 10634esac 10635 10636echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 10637echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 10638hardcode_action_CXX= 10639if test -n "$hardcode_libdir_flag_spec_CXX" || \ 10640 test -n "$runpath_var CXX" || \ 10641 test "X$hardcode_automatic_CXX"="Xyes" ; then 10642 10643 # We can hardcode non-existant directories. 10644 if test "$hardcode_direct_CXX" != no && 10645 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10646 # have to relink, otherwise we might link with an installed library 10647 # when we should be linking with a yet-to-be-installed one 10648 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 10649 test "$hardcode_minus_L_CXX" != no; then 10650 # Linking always hardcodes the temporary library directory. 10651 hardcode_action_CXX=relink 10652 else 10653 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10654 hardcode_action_CXX=immediate 10655 fi 10656else 10657 # We cannot hardcode anything, or else we can only hardcode existing 10658 # directories. 10659 hardcode_action_CXX=unsupported 10660fi 10661echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 10662echo "${ECHO_T}$hardcode_action_CXX" >&6 10663 10664if test "$hardcode_action_CXX" = relink; then 10665 # Fast installation is not supported 10666 enable_fast_install=no 10667elif test "$shlibpath_overrides_runpath" = yes || 10668 test "$enable_shared" = no; then 10669 # Fast installation is not necessary 10670 enable_fast_install=needless 10671fi 10672 10673striplib= 10674old_striplib= 10675echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 10676echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 10677if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 10678 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 10679 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 10680 echo "$as_me:$LINENO: result: yes" >&5 10681echo "${ECHO_T}yes" >&6 10682else 10683# FIXME - insert some real tests, host_os isn't really good enough 10684 case $host_os in 10685 darwin*) 10686 if test -n "$STRIP" ; then 10687 striplib="$STRIP -x" 10688 echo "$as_me:$LINENO: result: yes" >&5 10689echo "${ECHO_T}yes" >&6 10690 else 10691 echo "$as_me:$LINENO: result: no" >&5 10692echo "${ECHO_T}no" >&6 10693fi 10694 ;; 10695 *) 10696 echo "$as_me:$LINENO: result: no" >&5 10697echo "${ECHO_T}no" >&6 10698 ;; 10699 esac 10700fi 10701 10702echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 10703echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 10704library_names_spec= 10705libname_spec='lib$name' 10706soname_spec= 10707shrext=".so" 10708postinstall_cmds= 10709postuninstall_cmds= 10710finish_cmds= 10711finish_eval= 10712shlibpath_var= 10713shlibpath_overrides_runpath=unknown 10714version_type=none 10715dynamic_linker="$host_os ld.so" 10716sys_lib_dlsearch_path_spec="/lib /usr/lib" 10717if test "$GCC" = yes; then 10718 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10719 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 10720 # if the path contains ";" then we assume it to be the separator 10721 # otherwise default to the standard path separator (i.e. ":") - it is 10722 # assumed that no part of a normal pathname contains ";" but that should 10723 # okay in the real world where ";" in dirpaths is itself problematic. 10724 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10725 else 10726 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10727 fi 10728else 10729 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10730fi 10731need_lib_prefix=unknown 10732hardcode_into_libs=no 10733 10734# when you set need_version to no, make sure it does not cause -set_version 10735# flags to be left without arguments 10736need_version=unknown 10737 10738case $host_os in 10739aix3*) 10740 version_type=linux 10741 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10742 shlibpath_var=LIBPATH 10743 10744 # AIX 3 has no versioning support, so we append a major version to the name. 10745 soname_spec='${libname}${release}${shared_ext}$major' 10746 ;; 10747 10748aix4* | aix5*) 10749 version_type=linux 10750 need_lib_prefix=no 10751 need_version=no 10752 hardcode_into_libs=yes 10753 if test "$host_cpu" = ia64; then 10754 # AIX 5 supports IA64 10755 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10756 shlibpath_var=LD_LIBRARY_PATH 10757 else 10758 # With GCC up to 2.95.x, collect2 would create an import file 10759 # for dependence libraries. The import file would start with 10760 # the line `#! .'. This would cause the generated library to 10761 # depend on `.', always an invalid library. This was fixed in 10762 # development snapshots of GCC prior to 3.0. 10763 case $host_os in 10764 aix4 | aix4.[01] | aix4.[01].*) 10765 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10766 echo ' yes ' 10767 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 10768 : 10769 else 10770 can_build_shared=no 10771 fi 10772 ;; 10773 esac 10774 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10775 # soname into executable. Probably we can add versioning support to 10776 # collect2, so additional links can be useful in future. 10777 if test "$aix_use_runtimelinking" = yes; then 10778 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10779 # instead of lib<name>.a to let people know that these are not 10780 # typical AIX shared libraries. 10781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10782 else 10783 # We preserve .a as extension for shared libraries through AIX4.2 10784 # and later when we are not doing run time linking. 10785 library_names_spec='${libname}${release}.a $libname.a' 10786 soname_spec='${libname}${release}${shared_ext}$major' 10787 fi 10788 shlibpath_var=LIBPATH 10789 fi 10790 ;; 10791 10792amigaos*) 10793 library_names_spec='$libname.ixlibrary $libname.a' 10794 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10795 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' 10796 ;; 10797 10798beos*) 10799 library_names_spec='${libname}${shared_ext}' 10800 dynamic_linker="$host_os ld.so" 10801 shlibpath_var=LIBRARY_PATH 10802 ;; 10803 10804bsdi4*) 10805 version_type=linux 10806 need_version=no 10807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10808 soname_spec='${libname}${release}${shared_ext}$major' 10809 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10810 shlibpath_var=LD_LIBRARY_PATH 10811 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10812 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10813 # the default ld.so.conf also contains /usr/contrib/lib and 10814 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10815 # libtool to hard-code these into programs 10816 ;; 10817 10818cygwin* | mingw* | pw32*) 10819 version_type=windows 10820 shrext=".dll" 10821 need_version=no 10822 need_lib_prefix=no 10823 10824 case $GCC,$host_os in 10825 yes,cygwin* | yes,mingw* | yes,pw32*) 10826 library_names_spec='$libname.dll.a' 10827 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10828 postinstall_cmds='base_file=`basename \${file}`~ 10829 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 10830 dldir=$destdir/`dirname \$dlpath`~ 10831 test -d \$dldir || mkdir -p \$dldir~ 10832 $install_prog $dir/$dlname \$dldir/$dlname' 10833 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10834 dlpath=$dir/\$dldll~ 10835 $rm \$dlpath' 10836 shlibpath_overrides_runpath=yes 10837 10838 case $host_os in 10839 cygwin*) 10840 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10841 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10842 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" 10843 ;; 10844 mingw*) 10845 # MinGW DLLs use traditional 'lib' prefix 10846 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10847 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10848 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 10849 # It is most probably a Windows format PATH printed by 10850 # mingw gcc, but we are running on Cygwin. Gcc prints its search 10851 # path with ; separators, and with drive letters. We can handle the 10852 # drive letters (cygwin fileutils understands them), so leave them, 10853 # especially as we might pass files found there to a mingw objdump, 10854 # which wouldn't understand a cygwinified path. Ahh. 10855 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10856 else 10857 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10858 fi 10859 ;; 10860 pw32*) 10861 # pw32 DLLs use 'pw' prefix rather than 'lib' 10862 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 10863 ;; 10864 esac 10865 ;; 10866 10867 *) 10868 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10869 ;; 10870 esac 10871 dynamic_linker='Win32 ld.exe' 10872 # FIXME: first we should search . and the directory the executable is in 10873 shlibpath_var=PATH 10874 ;; 10875 10876darwin* | rhapsody*) 10877 dynamic_linker="$host_os dyld" 10878 version_type=darwin 10879 need_lib_prefix=no 10880 need_version=no 10881 # FIXME: Relying on posixy $() will cause problems for 10882 # cross-compilation, but unfortunately the echo tests do not 10883 # yet detect zsh echo's removal of \ escapes. 10884 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10885 soname_spec='${libname}${release}${major}$shared_ext' 10886 shlibpath_overrides_runpath=yes 10887 shlibpath_var=DYLD_LIBRARY_PATH 10888 shrext='$(test .$module = .yes && echo .so || echo .dylib)' 10889 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 10890 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then 10891 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"` 10892 fi 10893 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10894 ;; 10895 10896dgux*) 10897 version_type=linux 10898 need_lib_prefix=no 10899 need_version=no 10900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10901 soname_spec='${libname}${release}${shared_ext}$major' 10902 shlibpath_var=LD_LIBRARY_PATH 10903 ;; 10904 10905freebsd1*) 10906 dynamic_linker=no 10907 ;; 10908 10909freebsd*) 10910 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 10911 version_type=freebsd-$objformat 10912 case $version_type in 10913 freebsd-elf*) 10914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10915 need_version=no 10916 need_lib_prefix=no 10917 ;; 10918 freebsd-*) 10919 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10920 need_version=yes 10921 ;; 10922 esac 10923 shlibpath_var=LD_LIBRARY_PATH 10924 case $host_os in 10925 freebsd2*) 10926 shlibpath_overrides_runpath=yes 10927 ;; 10928 freebsd3.01* | freebsdelf3.01*) 10929 shlibpath_overrides_runpath=yes 10930 hardcode_into_libs=yes 10931 ;; 10932 *) # from 3.2 on 10933 shlibpath_overrides_runpath=no 10934 hardcode_into_libs=yes 10935 ;; 10936 esac 10937 ;; 10938 10939gnu*) 10940 version_type=linux 10941 need_lib_prefix=no 10942 need_version=no 10943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10944 soname_spec='${libname}${release}${shared_ext}$major' 10945 shlibpath_var=LD_LIBRARY_PATH 10946 hardcode_into_libs=yes 10947 ;; 10948 10949hpux9* | hpux10* | hpux11*) 10950 # Give a soname corresponding to the major version so that dld.sl refuses to 10951 # link against other versions. 10952 version_type=sunos 10953 need_lib_prefix=no 10954 need_version=no 10955 case "$host_cpu" in 10956 ia64*) 10957 shrext='.so' 10958 hardcode_into_libs=yes 10959 dynamic_linker="$host_os dld.so" 10960 shlibpath_var=LD_LIBRARY_PATH 10961 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10963 soname_spec='${libname}${release}${shared_ext}$major' 10964 if test "X$HPUX_IA64_MODE" = X32; then 10965 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10966 else 10967 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10968 fi 10969 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10970 ;; 10971 hppa*64*) 10972 shrext='.sl' 10973 hardcode_into_libs=yes 10974 dynamic_linker="$host_os dld.sl" 10975 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10976 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10978 soname_spec='${libname}${release}${shared_ext}$major' 10979 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10980 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10981 ;; 10982 *) 10983 shrext='.sl' 10984 dynamic_linker="$host_os dld.sl" 10985 shlibpath_var=SHLIB_PATH 10986 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10988 soname_spec='${libname}${release}${shared_ext}$major' 10989 ;; 10990 esac 10991 # HP-UX runs *really* slowly unless shared libraries are mode 555. 10992 postinstall_cmds='chmod 555 $lib' 10993 ;; 10994 10995irix5* | irix6* | nonstopux*) 10996 case $host_os in 10997 nonstopux*) version_type=nonstopux ;; 10998 *) 10999 if test "$lt_cv_prog_gnu_ld" = yes; then 11000 version_type=linux 11001 else 11002 version_type=irix 11003 fi ;; 11004 esac 11005 need_lib_prefix=no 11006 need_version=no 11007 soname_spec='${libname}${release}${shared_ext}$major' 11008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11009 case $host_os in 11010 irix5* | nonstopux*) 11011 libsuff= shlibsuff= 11012 ;; 11013 *) 11014 case $LD in # libtool.m4 will add one of these switches to LD 11015 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11016 libsuff= shlibsuff= libmagic=32-bit;; 11017 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11018 libsuff=32 shlibsuff=N32 libmagic=N32;; 11019 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11020 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11021 *) libsuff= shlibsuff= libmagic=never-match;; 11022 esac 11023 ;; 11024 esac 11025 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11026 shlibpath_overrides_runpath=no 11027 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11028 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11029 hardcode_into_libs=yes 11030 ;; 11031 11032# No shared lib support for Linux oldld, aout, or coff. 11033linux*oldld* | linux*aout* | linux*coff*) 11034 dynamic_linker=no 11035 ;; 11036 11037# This must be Linux ELF. 11038linux*) 11039 version_type=linux 11040 need_lib_prefix=no 11041 need_version=no 11042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11043 soname_spec='${libname}${release}${shared_ext}$major' 11044 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11045 shlibpath_var=LD_LIBRARY_PATH 11046 shlibpath_overrides_runpath=no 11047 # This implies no fast_install, which is unacceptable. 11048 # Some rework will be needed to allow for fast_install 11049 # before this can be enabled. 11050 hardcode_into_libs=yes 11051 11052 # We used to test for /lib/ld.so.1 and disable shared libraries on 11053 # powerpc, because MkLinux only supported shared libraries with the 11054 # GNU dynamic linker. Since this was broken with cross compilers, 11055 # most powerpc-linux boxes support dynamic linking these days and 11056 # people can always --disable-shared, the test was removed, and we 11057 # assume the GNU/Linux dynamic linker is in use. 11058 dynamic_linker='GNU/Linux ld.so' 11059 ;; 11060 11061netbsd*) 11062 version_type=sunos 11063 need_lib_prefix=no 11064 need_version=no 11065 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11067 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11068 dynamic_linker='NetBSD (a.out) ld.so' 11069 else 11070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' 11071 soname_spec='${libname}${release}${shared_ext}$major' 11072 dynamic_linker='NetBSD ld.elf_so' 11073 fi 11074 shlibpath_var=LD_LIBRARY_PATH 11075 shlibpath_overrides_runpath=yes 11076 hardcode_into_libs=yes 11077 ;; 11078 11079newsos6) 11080 version_type=linux 11081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11082 shlibpath_var=LD_LIBRARY_PATH 11083 shlibpath_overrides_runpath=yes 11084 ;; 11085 11086nto-qnx) 11087 version_type=linux 11088 need_lib_prefix=no 11089 need_version=no 11090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11091 soname_spec='${libname}${release}${shared_ext}$major' 11092 shlibpath_var=LD_LIBRARY_PATH 11093 shlibpath_overrides_runpath=yes 11094 ;; 11095 11096openbsd*) 11097 version_type=sunos 11098 need_lib_prefix=no 11099 need_version=no 11100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11101 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11102 shlibpath_var=LD_LIBRARY_PATH 11103 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11104 case $host_os in 11105 openbsd2.[89] | openbsd2.[89].*) 11106 shlibpath_overrides_runpath=no 11107 ;; 11108 *) 11109 shlibpath_overrides_runpath=yes 11110 ;; 11111 esac 11112 else 11113 shlibpath_overrides_runpath=yes 11114 fi 11115 ;; 11116 11117os2*) 11118 libname_spec='$name' 11119 shrext=".dll" 11120 need_lib_prefix=no 11121 library_names_spec='$libname${shared_ext} $libname.a' 11122 dynamic_linker='OS/2 ld.exe' 11123 shlibpath_var=LIBPATH 11124 ;; 11125 11126osf3* | osf4* | osf5*) 11127 version_type=osf 11128 need_lib_prefix=no 11129 need_version=no 11130 soname_spec='${libname}${release}${shared_ext}$major' 11131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11132 shlibpath_var=LD_LIBRARY_PATH 11133 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11134 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11135 ;; 11136 11137sco3.2v5*) 11138 version_type=osf 11139 soname_spec='${libname}${release}${shared_ext}$major' 11140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11141 shlibpath_var=LD_LIBRARY_PATH 11142 ;; 11143 11144solaris*) 11145 version_type=linux 11146 need_lib_prefix=no 11147 need_version=no 11148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11149 soname_spec='${libname}${release}${shared_ext}$major' 11150 shlibpath_var=LD_LIBRARY_PATH 11151 shlibpath_overrides_runpath=yes 11152 hardcode_into_libs=yes 11153 # ldd complains unless libraries are executable 11154 postinstall_cmds='chmod +x $lib' 11155 ;; 11156 11157sunos4*) 11158 version_type=sunos 11159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11160 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11161 shlibpath_var=LD_LIBRARY_PATH 11162 shlibpath_overrides_runpath=yes 11163 if test "$with_gnu_ld" = yes; then 11164 need_lib_prefix=no 11165 fi 11166 need_version=yes 11167 ;; 11168 11169sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11170 version_type=linux 11171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11172 soname_spec='${libname}${release}${shared_ext}$major' 11173 shlibpath_var=LD_LIBRARY_PATH 11174 case $host_vendor in 11175 sni) 11176 shlibpath_overrides_runpath=no 11177 need_lib_prefix=no 11178 export_dynamic_flag_spec='${wl}-Blargedynsym' 11179 runpath_var=LD_RUN_PATH 11180 ;; 11181 siemens) 11182 need_lib_prefix=no 11183 ;; 11184 motorola) 11185 need_lib_prefix=no 11186 need_version=no 11187 shlibpath_overrides_runpath=no 11188 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11189 ;; 11190 esac 11191 ;; 11192 11193sysv4*MP*) 11194 if test -d /usr/nec ;then 11195 version_type=linux 11196 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11197 soname_spec='$libname${shared_ext}.$major' 11198 shlibpath_var=LD_LIBRARY_PATH 11199 fi 11200 ;; 11201 11202uts4*) 11203 version_type=linux 11204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11205 soname_spec='${libname}${release}${shared_ext}$major' 11206 shlibpath_var=LD_LIBRARY_PATH 11207 ;; 11208 11209*) 11210 dynamic_linker=no 11211 ;; 11212esac 11213echo "$as_me:$LINENO: result: $dynamic_linker" >&5 11214echo "${ECHO_T}$dynamic_linker" >&6 11215test "$dynamic_linker" = no && can_build_shared=no 11216 11217if test "x$enable_dlopen" != xyes; then 11218 enable_dlopen=unknown 11219 enable_dlopen_self=unknown 11220 enable_dlopen_self_static=unknown 11221else 11222 lt_cv_dlopen=no 11223 lt_cv_dlopen_libs= 11224 11225 case $host_os in 11226 beos*) 11227 lt_cv_dlopen="load_add_on" 11228 lt_cv_dlopen_libs= 11229 lt_cv_dlopen_self=yes 11230 ;; 11231 11232 mingw* | pw32*) 11233 lt_cv_dlopen="LoadLibrary" 11234 lt_cv_dlopen_libs= 11235 ;; 11236 11237 cygwin*) 11238 lt_cv_dlopen="dlopen" 11239 lt_cv_dlopen_libs= 11240 ;; 11241 11242 darwin*) 11243 # if libdl is installed we need to link against it 11244 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 11245echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 11246if test "${ac_cv_lib_dl_dlopen+set}" = set; then 11247 echo $ECHO_N "(cached) $ECHO_C" >&6 11248else 11249 ac_check_lib_save_LIBS=$LIBS 11250LIBS="-ldl $LIBS" 11251cat >conftest.$ac_ext <<_ACEOF 11252#line $LINENO "configure" 11253/* confdefs.h. */ 11254_ACEOF 11255cat confdefs.h >>conftest.$ac_ext 11256cat >>conftest.$ac_ext <<_ACEOF 11257/* end confdefs.h. */ 11258 11259/* Override any gcc2 internal prototype to avoid an error. */ 11260#ifdef __cplusplus 11261extern "C" 11262#endif 11263/* We use char because int might match the return type of a gcc2 11264 builtin and then its argument prototype would still apply. */ 11265char dlopen (); 11266int 11267main () 11268{ 11269dlopen (); 11270 ; 11271 return 0; 11272} 11273_ACEOF 11274rm -f conftest.$ac_objext conftest$ac_exeext 11275if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11276 (eval $ac_link) 2>&5 11277 ac_status=$? 11278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11279 (exit $ac_status); } && 11280 { ac_try='test -s conftest$ac_exeext' 11281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11282 (eval $ac_try) 2>&5 11283 ac_status=$? 11284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11285 (exit $ac_status); }; }; then 11286 ac_cv_lib_dl_dlopen=yes 11287else 11288 echo "$as_me: failed program was:" >&5 11289sed 's/^/| /' conftest.$ac_ext >&5 11290 11291ac_cv_lib_dl_dlopen=no 11292fi 11293rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11294LIBS=$ac_check_lib_save_LIBS 11295fi 11296echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 11297echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 11298if test $ac_cv_lib_dl_dlopen = yes; then 11299 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11300else 11301 11302 lt_cv_dlopen="dyld" 11303 lt_cv_dlopen_libs= 11304 lt_cv_dlopen_self=yes 11305 11306fi 11307 11308 ;; 11309 11310 *) 11311 echo "$as_me:$LINENO: checking for shl_load" >&5 11312echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 11313if test "${ac_cv_func_shl_load+set}" = set; then 11314 echo $ECHO_N "(cached) $ECHO_C" >&6 11315else 11316 cat >conftest.$ac_ext <<_ACEOF 11317#line $LINENO "configure" 11318/* confdefs.h. */ 11319_ACEOF 11320cat confdefs.h >>conftest.$ac_ext 11321cat >>conftest.$ac_ext <<_ACEOF 11322/* end confdefs.h. */ 11323/* System header to define __stub macros and hopefully few prototypes, 11324 which can conflict with char shl_load (); below. 11325 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11326 <limits.h> exists even on freestanding compilers. */ 11327#ifdef __STDC__ 11328# include <limits.h> 11329#else 11330# include <assert.h> 11331#endif 11332/* Override any gcc2 internal prototype to avoid an error. */ 11333#ifdef __cplusplus 11334extern "C" 11335{ 11336#endif 11337/* We use char because int might match the return type of a gcc2 11338 builtin and then its argument prototype would still apply. */ 11339char shl_load (); 11340/* The GNU C library defines this for functions which it implements 11341 to always fail with ENOSYS. Some functions are actually named 11342 something starting with __ and the normal name is an alias. */ 11343#if defined (__stub_shl_load) || defined (__stub___shl_load) 11344choke me 11345#else 11346char (*f) () = shl_load; 11347#endif 11348#ifdef __cplusplus 11349} 11350#endif 11351 11352int 11353main () 11354{ 11355return f != shl_load; 11356 ; 11357 return 0; 11358} 11359_ACEOF 11360rm -f conftest.$ac_objext conftest$ac_exeext 11361if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11362 (eval $ac_link) 2>&5 11363 ac_status=$? 11364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11365 (exit $ac_status); } && 11366 { ac_try='test -s conftest$ac_exeext' 11367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11368 (eval $ac_try) 2>&5 11369 ac_status=$? 11370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11371 (exit $ac_status); }; }; then 11372 ac_cv_func_shl_load=yes 11373else 11374 echo "$as_me: failed program was:" >&5 11375sed 's/^/| /' conftest.$ac_ext >&5 11376 11377ac_cv_func_shl_load=no 11378fi 11379rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11380fi 11381echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 11382echo "${ECHO_T}$ac_cv_func_shl_load" >&6 11383if test $ac_cv_func_shl_load = yes; then 11384 lt_cv_dlopen="shl_load" 11385else 11386 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 11387echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 11388if test "${ac_cv_lib_dld_shl_load+set}" = set; then 11389 echo $ECHO_N "(cached) $ECHO_C" >&6 11390else 11391 ac_check_lib_save_LIBS=$LIBS 11392LIBS="-ldld $LIBS" 11393cat >conftest.$ac_ext <<_ACEOF 11394#line $LINENO "configure" 11395/* confdefs.h. */ 11396_ACEOF 11397cat confdefs.h >>conftest.$ac_ext 11398cat >>conftest.$ac_ext <<_ACEOF 11399/* end confdefs.h. */ 11400 11401/* Override any gcc2 internal prototype to avoid an error. */ 11402#ifdef __cplusplus 11403extern "C" 11404#endif 11405/* We use char because int might match the return type of a gcc2 11406 builtin and then its argument prototype would still apply. */ 11407char shl_load (); 11408int 11409main () 11410{ 11411shl_load (); 11412 ; 11413 return 0; 11414} 11415_ACEOF 11416rm -f conftest.$ac_objext conftest$ac_exeext 11417if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11418 (eval $ac_link) 2>&5 11419 ac_status=$? 11420 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11421 (exit $ac_status); } && 11422 { ac_try='test -s conftest$ac_exeext' 11423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11424 (eval $ac_try) 2>&5 11425 ac_status=$? 11426 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11427 (exit $ac_status); }; }; then 11428 ac_cv_lib_dld_shl_load=yes 11429else 11430 echo "$as_me: failed program was:" >&5 11431sed 's/^/| /' conftest.$ac_ext >&5 11432 11433ac_cv_lib_dld_shl_load=no 11434fi 11435rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11436LIBS=$ac_check_lib_save_LIBS 11437fi 11438echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 11439echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 11440if test $ac_cv_lib_dld_shl_load = yes; then 11441 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 11442else 11443 echo "$as_me:$LINENO: checking for dlopen" >&5 11444echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 11445if test "${ac_cv_func_dlopen+set}" = set; then 11446 echo $ECHO_N "(cached) $ECHO_C" >&6 11447else 11448 cat >conftest.$ac_ext <<_ACEOF 11449#line $LINENO "configure" 11450/* confdefs.h. */ 11451_ACEOF 11452cat confdefs.h >>conftest.$ac_ext 11453cat >>conftest.$ac_ext <<_ACEOF 11454/* end confdefs.h. */ 11455/* System header to define __stub macros and hopefully few prototypes, 11456 which can conflict with char dlopen (); below. 11457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11458 <limits.h> exists even on freestanding compilers. */ 11459#ifdef __STDC__ 11460# include <limits.h> 11461#else 11462# include <assert.h> 11463#endif 11464/* Override any gcc2 internal prototype to avoid an error. */ 11465#ifdef __cplusplus 11466extern "C" 11467{ 11468#endif 11469/* We use char because int might match the return type of a gcc2 11470 builtin and then its argument prototype would still apply. */ 11471char dlopen (); 11472/* The GNU C library defines this for functions which it implements 11473 to always fail with ENOSYS. Some functions are actually named 11474 something starting with __ and the normal name is an alias. */ 11475#if defined (__stub_dlopen) || defined (__stub___dlopen) 11476choke me 11477#else 11478char (*f) () = dlopen; 11479#endif 11480#ifdef __cplusplus 11481} 11482#endif 11483 11484int 11485main () 11486{ 11487return f != dlopen; 11488 ; 11489 return 0; 11490} 11491_ACEOF 11492rm -f conftest.$ac_objext conftest$ac_exeext 11493if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11494 (eval $ac_link) 2>&5 11495 ac_status=$? 11496 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11497 (exit $ac_status); } && 11498 { ac_try='test -s conftest$ac_exeext' 11499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11500 (eval $ac_try) 2>&5 11501 ac_status=$? 11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11503 (exit $ac_status); }; }; then 11504 ac_cv_func_dlopen=yes 11505else 11506 echo "$as_me: failed program was:" >&5 11507sed 's/^/| /' conftest.$ac_ext >&5 11508 11509ac_cv_func_dlopen=no 11510fi 11511rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11512fi 11513echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 11514echo "${ECHO_T}$ac_cv_func_dlopen" >&6 11515if test $ac_cv_func_dlopen = yes; then 11516 lt_cv_dlopen="dlopen" 11517else 11518 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 11519echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 11520if test "${ac_cv_lib_dl_dlopen+set}" = set; then 11521 echo $ECHO_N "(cached) $ECHO_C" >&6 11522else 11523 ac_check_lib_save_LIBS=$LIBS 11524LIBS="-ldl $LIBS" 11525cat >conftest.$ac_ext <<_ACEOF 11526#line $LINENO "configure" 11527/* confdefs.h. */ 11528_ACEOF 11529cat confdefs.h >>conftest.$ac_ext 11530cat >>conftest.$ac_ext <<_ACEOF 11531/* end confdefs.h. */ 11532 11533/* Override any gcc2 internal prototype to avoid an error. */ 11534#ifdef __cplusplus 11535extern "C" 11536#endif 11537/* We use char because int might match the return type of a gcc2 11538 builtin and then its argument prototype would still apply. */ 11539char dlopen (); 11540int 11541main () 11542{ 11543dlopen (); 11544 ; 11545 return 0; 11546} 11547_ACEOF 11548rm -f conftest.$ac_objext conftest$ac_exeext 11549if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11550 (eval $ac_link) 2>&5 11551 ac_status=$? 11552 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11553 (exit $ac_status); } && 11554 { ac_try='test -s conftest$ac_exeext' 11555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11556 (eval $ac_try) 2>&5 11557 ac_status=$? 11558 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11559 (exit $ac_status); }; }; then 11560 ac_cv_lib_dl_dlopen=yes 11561else 11562 echo "$as_me: failed program was:" >&5 11563sed 's/^/| /' conftest.$ac_ext >&5 11564 11565ac_cv_lib_dl_dlopen=no 11566fi 11567rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11568LIBS=$ac_check_lib_save_LIBS 11569fi 11570echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 11571echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 11572if test $ac_cv_lib_dl_dlopen = yes; then 11573 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11574else 11575 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 11576echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 11577if test "${ac_cv_lib_svld_dlopen+set}" = set; then 11578 echo $ECHO_N "(cached) $ECHO_C" >&6 11579else 11580 ac_check_lib_save_LIBS=$LIBS 11581LIBS="-lsvld $LIBS" 11582cat >conftest.$ac_ext <<_ACEOF 11583#line $LINENO "configure" 11584/* confdefs.h. */ 11585_ACEOF 11586cat confdefs.h >>conftest.$ac_ext 11587cat >>conftest.$ac_ext <<_ACEOF 11588/* end confdefs.h. */ 11589 11590/* Override any gcc2 internal prototype to avoid an error. */ 11591#ifdef __cplusplus 11592extern "C" 11593#endif 11594/* We use char because int might match the return type of a gcc2 11595 builtin and then its argument prototype would still apply. */ 11596char dlopen (); 11597int 11598main () 11599{ 11600dlopen (); 11601 ; 11602 return 0; 11603} 11604_ACEOF 11605rm -f conftest.$ac_objext conftest$ac_exeext 11606if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11607 (eval $ac_link) 2>&5 11608 ac_status=$? 11609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11610 (exit $ac_status); } && 11611 { ac_try='test -s conftest$ac_exeext' 11612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11613 (eval $ac_try) 2>&5 11614 ac_status=$? 11615 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11616 (exit $ac_status); }; }; then 11617 ac_cv_lib_svld_dlopen=yes 11618else 11619 echo "$as_me: failed program was:" >&5 11620sed 's/^/| /' conftest.$ac_ext >&5 11621 11622ac_cv_lib_svld_dlopen=no 11623fi 11624rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11625LIBS=$ac_check_lib_save_LIBS 11626fi 11627echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 11628echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 11629if test $ac_cv_lib_svld_dlopen = yes; then 11630 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11631else 11632 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 11633echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 11634if test "${ac_cv_lib_dld_dld_link+set}" = set; then 11635 echo $ECHO_N "(cached) $ECHO_C" >&6 11636else 11637 ac_check_lib_save_LIBS=$LIBS 11638LIBS="-ldld $LIBS" 11639cat >conftest.$ac_ext <<_ACEOF 11640#line $LINENO "configure" 11641/* confdefs.h. */ 11642_ACEOF 11643cat confdefs.h >>conftest.$ac_ext 11644cat >>conftest.$ac_ext <<_ACEOF 11645/* end confdefs.h. */ 11646 11647/* Override any gcc2 internal prototype to avoid an error. */ 11648#ifdef __cplusplus 11649extern "C" 11650#endif 11651/* We use char because int might match the return type of a gcc2 11652 builtin and then its argument prototype would still apply. */ 11653char dld_link (); 11654int 11655main () 11656{ 11657dld_link (); 11658 ; 11659 return 0; 11660} 11661_ACEOF 11662rm -f conftest.$ac_objext conftest$ac_exeext 11663if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11664 (eval $ac_link) 2>&5 11665 ac_status=$? 11666 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11667 (exit $ac_status); } && 11668 { ac_try='test -s conftest$ac_exeext' 11669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11670 (eval $ac_try) 2>&5 11671 ac_status=$? 11672 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11673 (exit $ac_status); }; }; then 11674 ac_cv_lib_dld_dld_link=yes 11675else 11676 echo "$as_me: failed program was:" >&5 11677sed 's/^/| /' conftest.$ac_ext >&5 11678 11679ac_cv_lib_dld_dld_link=no 11680fi 11681rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11682LIBS=$ac_check_lib_save_LIBS 11683fi 11684echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 11685echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 11686if test $ac_cv_lib_dld_dld_link = yes; then 11687 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 11688fi 11689 11690 11691fi 11692 11693 11694fi 11695 11696 11697fi 11698 11699 11700fi 11701 11702 11703fi 11704 11705 ;; 11706 esac 11707 11708 if test "x$lt_cv_dlopen" != xno; then 11709 enable_dlopen=yes 11710 else 11711 enable_dlopen=no 11712 fi 11713 11714 case $lt_cv_dlopen in 11715 dlopen) 11716 save_CPPFLAGS="$CPPFLAGS" 11717 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11718 11719 save_LDFLAGS="$LDFLAGS" 11720 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11721 11722 save_LIBS="$LIBS" 11723 LIBS="$lt_cv_dlopen_libs $LIBS" 11724 11725 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 11726echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 11727if test "${lt_cv_dlopen_self+set}" = set; then 11728 echo $ECHO_N "(cached) $ECHO_C" >&6 11729else 11730 if test "$cross_compiling" = yes; then : 11731 lt_cv_dlopen_self=cross 11732else 11733 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11734 lt_status=$lt_dlunknown 11735 cat > conftest.$ac_ext <<EOF 11736#line 11736 "configure" 11737#include "confdefs.h" 11738 11739#if HAVE_DLFCN_H 11740#include <dlfcn.h> 11741#endif 11742 11743#include <stdio.h> 11744 11745#ifdef RTLD_GLOBAL 11746# define LT_DLGLOBAL RTLD_GLOBAL 11747#else 11748# ifdef DL_GLOBAL 11749# define LT_DLGLOBAL DL_GLOBAL 11750# else 11751# define LT_DLGLOBAL 0 11752# endif 11753#endif 11754 11755/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11756 find out it does not work in some platform. */ 11757#ifndef LT_DLLAZY_OR_NOW 11758# ifdef RTLD_LAZY 11759# define LT_DLLAZY_OR_NOW RTLD_LAZY 11760# else 11761# ifdef DL_LAZY 11762# define LT_DLLAZY_OR_NOW DL_LAZY 11763# else 11764# ifdef RTLD_NOW 11765# define LT_DLLAZY_OR_NOW RTLD_NOW 11766# else 11767# ifdef DL_NOW 11768# define LT_DLLAZY_OR_NOW DL_NOW 11769# else 11770# define LT_DLLAZY_OR_NOW 0 11771# endif 11772# endif 11773# endif 11774# endif 11775#endif 11776 11777#ifdef __cplusplus 11778extern "C" void exit (int); 11779#endif 11780 11781void fnord() { int i=42;} 11782int main () 11783{ 11784 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11785 int status = $lt_dlunknown; 11786 11787 if (self) 11788 { 11789 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11790 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11791 /* dlclose (self); */ 11792 } 11793 11794 exit (status); 11795} 11796EOF 11797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11798 (eval $ac_link) 2>&5 11799 ac_status=$? 11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11801 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 11802 (./conftest; exit; ) 2>/dev/null 11803 lt_status=$? 11804 case x$lt_status in 11805 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11806 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11807 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 11808 esac 11809 else : 11810 # compilation failed 11811 lt_cv_dlopen_self=no 11812 fi 11813fi 11814rm -fr conftest* 11815 11816 11817fi 11818echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 11819echo "${ECHO_T}$lt_cv_dlopen_self" >&6 11820 11821 if test "x$lt_cv_dlopen_self" = xyes; then 11822 LDFLAGS="$LDFLAGS $link_static_flag" 11823 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 11824echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 11825if test "${lt_cv_dlopen_self_static+set}" = set; then 11826 echo $ECHO_N "(cached) $ECHO_C" >&6 11827else 11828 if test "$cross_compiling" = yes; then : 11829 lt_cv_dlopen_self_static=cross 11830else 11831 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11832 lt_status=$lt_dlunknown 11833 cat > conftest.$ac_ext <<EOF 11834#line 11834 "configure" 11835#include "confdefs.h" 11836 11837#if HAVE_DLFCN_H 11838#include <dlfcn.h> 11839#endif 11840 11841#include <stdio.h> 11842 11843#ifdef RTLD_GLOBAL 11844# define LT_DLGLOBAL RTLD_GLOBAL 11845#else 11846# ifdef DL_GLOBAL 11847# define LT_DLGLOBAL DL_GLOBAL 11848# else 11849# define LT_DLGLOBAL 0 11850# endif 11851#endif 11852 11853/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11854 find out it does not work in some platform. */ 11855#ifndef LT_DLLAZY_OR_NOW 11856# ifdef RTLD_LAZY 11857# define LT_DLLAZY_OR_NOW RTLD_LAZY 11858# else 11859# ifdef DL_LAZY 11860# define LT_DLLAZY_OR_NOW DL_LAZY 11861# else 11862# ifdef RTLD_NOW 11863# define LT_DLLAZY_OR_NOW RTLD_NOW 11864# else 11865# ifdef DL_NOW 11866# define LT_DLLAZY_OR_NOW DL_NOW 11867# else 11868# define LT_DLLAZY_OR_NOW 0 11869# endif 11870# endif 11871# endif 11872# endif 11873#endif 11874 11875#ifdef __cplusplus 11876extern "C" void exit (int); 11877#endif 11878 11879void fnord() { int i=42;} 11880int main () 11881{ 11882 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11883 int status = $lt_dlunknown; 11884 11885 if (self) 11886 { 11887 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11888 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11889 /* dlclose (self); */ 11890 } 11891 11892 exit (status); 11893} 11894EOF 11895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11896 (eval $ac_link) 2>&5 11897 ac_status=$? 11898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11899 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 11900 (./conftest; exit; ) 2>/dev/null 11901 lt_status=$? 11902 case x$lt_status in 11903 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11904 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11905 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 11906 esac 11907 else : 11908 # compilation failed 11909 lt_cv_dlopen_self_static=no 11910 fi 11911fi 11912rm -fr conftest* 11913 11914 11915fi 11916echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 11917echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 11918 fi 11919 11920 CPPFLAGS="$save_CPPFLAGS" 11921 LDFLAGS="$save_LDFLAGS" 11922 LIBS="$save_LIBS" 11923 ;; 11924 esac 11925 11926 case $lt_cv_dlopen_self in 11927 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11928 *) enable_dlopen_self=unknown ;; 11929 esac 11930 11931 case $lt_cv_dlopen_self_static in 11932 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11933 *) enable_dlopen_self_static=unknown ;; 11934 esac 11935fi 11936 11937 11938# The else clause should only fire when bootstrapping the 11939# libtool distribution, otherwise you forgot to ship ltmain.sh 11940# with your package, and you will get complaints that there are 11941# no rules to generate ltmain.sh. 11942if test -f "$ltmain"; then 11943 # See if we are running on zsh, and set the options which allow our commands through 11944 # without removal of \ escapes. 11945 if test -n "${ZSH_VERSION+set}" ; then 11946 setopt NO_GLOB_SUBST 11947 fi 11948 # Now quote all the things that may contain metacharacters while being 11949 # careful not to overquote the AC_SUBSTed values. We take copies of the 11950 # variables and quote the copies for generation of the libtool script. 11951 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ 11952 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 11953 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 11954 deplibs_check_method reload_flag reload_cmds need_locks \ 11955 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 11956 lt_cv_sys_global_symbol_to_c_name_address \ 11957 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 11958 old_postinstall_cmds old_postuninstall_cmds \ 11959 compiler_CXX \ 11960 CC_CXX \ 11961 LD_CXX \ 11962 lt_prog_compiler_wl_CXX \ 11963 lt_prog_compiler_pic_CXX \ 11964 lt_prog_compiler_static_CXX \ 11965 lt_prog_compiler_no_builtin_flag_CXX \ 11966 export_dynamic_flag_spec_CXX \ 11967 thread_safe_flag_spec_CXX \ 11968 whole_archive_flag_spec_CXX \ 11969 enable_shared_with_static_runtimes_CXX \ 11970 old_archive_cmds_CXX \ 11971 old_archive_from_new_cmds_CXX \ 11972 predep_objects_CXX \ 11973 postdep_objects_CXX \ 11974 predeps_CXX \ 11975 postdeps_CXX \ 11976 compiler_lib_search_path_CXX \ 11977 archive_cmds_CXX \ 11978 archive_expsym_cmds_CXX \ 11979 postinstall_cmds_CXX \ 11980 postuninstall_cmds_CXX \ 11981 old_archive_from_expsyms_cmds_CXX \ 11982 allow_undefined_flag_CXX \ 11983 no_undefined_flag_CXX \ 11984 export_symbols_cmds_CXX \ 11985 hardcode_libdir_flag_spec_CXX \ 11986 hardcode_libdir_flag_spec_ld_CXX \ 11987 hardcode_libdir_separator_CXX \ 11988 hardcode_automatic_CXX \ 11989 module_cmds_CXX \ 11990 module_expsym_cmds_CXX \ 11991 lt_cv_prog_compiler_c_o_CXX \ 11992 exclude_expsyms_CXX \ 11993 include_expsyms_CXX; do 11994 11995 case $var in 11996 old_archive_cmds_CXX | \ 11997 old_archive_from_new_cmds_CXX | \ 11998 archive_cmds_CXX | \ 11999 archive_expsym_cmds_CXX | \ 12000 module_cmds_CXX | \ 12001 module_expsym_cmds_CXX | \ 12002 old_archive_from_expsyms_cmds_CXX | \ 12003 export_symbols_cmds_CXX | \ 12004 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 12005 postinstall_cmds | postuninstall_cmds | \ 12006 old_postinstall_cmds | old_postuninstall_cmds | \ 12007 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 12008 # Double-quote double-evaled strings. 12009 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 12010 ;; 12011 *) 12012 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 12013 ;; 12014 esac 12015 done 12016 12017 case $lt_echo in 12018 *'\$0 --fallback-echo"') 12019 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 12020 ;; 12021 esac 12022 12023cfgfile="$ofile" 12024 12025 cat <<__EOF__ >> "$cfgfile" 12026# ### BEGIN LIBTOOL TAG CONFIG: $tagname 12027 12028# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 12029 12030# Shell to use when invoking shell scripts. 12031SHELL=$lt_SHELL 12032 12033# Whether or not to build shared libraries. 12034build_libtool_libs=$enable_shared 12035 12036# Whether or not to build static libraries. 12037build_old_libs=$enable_static 12038 12039# Whether or not to add -lc for building shared libraries. 12040build_libtool_need_lc=$archive_cmds_need_lc_CXX 12041 12042# Whether or not to disallow shared libs when runtime libs are static 12043allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 12044 12045# Whether or not to optimize for fast installation. 12046fast_install=$enable_fast_install 12047 12048# The host system. 12049host_alias=$host_alias 12050host=$host 12051 12052# An echo program that does not interpret backslashes. 12053echo=$lt_echo 12054 12055# The archiver. 12056AR=$lt_AR 12057AR_FLAGS=$lt_AR_FLAGS 12058 12059# A C compiler. 12060LTCC=$lt_LTCC 12061 12062# A language-specific compiler. 12063CC=$lt_compiler_CXX 12064 12065# Is the compiler the GNU C compiler? 12066with_gcc=$GCC_CXX 12067 12068# An ERE matcher. 12069EGREP=$lt_EGREP 12070 12071# The linker used to build libraries. 12072LD=$lt_LD_CXX 12073 12074# Whether we need hard or soft links. 12075LN_S=$lt_LN_S 12076 12077# A BSD-compatible nm program. 12078NM=$lt_NM 12079 12080# A symbol stripping program 12081STRIP=$STRIP 12082 12083# Used to examine libraries when file_magic_cmd begins "file" 12084MAGIC_CMD=$MAGIC_CMD 12085 12086# Used on cygwin: DLL creation program. 12087DLLTOOL="$DLLTOOL" 12088 12089# Used on cygwin: object dumper. 12090OBJDUMP="$OBJDUMP" 12091 12092# Used on cygwin: assembler. 12093AS="$AS" 12094 12095# The name of the directory that contains temporary libtool files. 12096objdir=$objdir 12097 12098# How to create reloadable object files. 12099reload_flag=$lt_reload_flag 12100reload_cmds=$lt_reload_cmds 12101 12102# How to pass a linker flag through the compiler. 12103wl=$lt_lt_prog_compiler_wl_CXX 12104 12105# Object file suffix (normally "o"). 12106objext="$ac_objext" 12107 12108# Old archive suffix (normally "a"). 12109libext="$libext" 12110 12111# Shared library suffix (normally ".so"). 12112shrext='$shrext' 12113 12114# Executable file suffix (normally ""). 12115exeext="$exeext" 12116 12117# Additional compiler flags for building library objects. 12118pic_flag=$lt_lt_prog_compiler_pic_CXX 12119pic_mode=$pic_mode 12120 12121# What is the maximum length of a command? 12122max_cmd_len=$lt_cv_sys_max_cmd_len 12123 12124# Does compiler simultaneously support -c and -o options? 12125compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 12126 12127# Must we lock files when doing compilation ? 12128need_locks=$lt_need_locks 12129 12130# Do we need the lib prefix for modules? 12131need_lib_prefix=$need_lib_prefix 12132 12133# Do we need a version for libraries? 12134need_version=$need_version 12135 12136# Whether dlopen is supported. 12137dlopen_support=$enable_dlopen 12138 12139# Whether dlopen of programs is supported. 12140dlopen_self=$enable_dlopen_self 12141 12142# Whether dlopen of statically linked programs is supported. 12143dlopen_self_static=$enable_dlopen_self_static 12144 12145# Compiler flag to prevent dynamic linking. 12146link_static_flag=$lt_lt_prog_compiler_static_CXX 12147 12148# Compiler flag to turn off builtin functions. 12149no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 12150 12151# Compiler flag to allow reflexive dlopens. 12152export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 12153 12154# Compiler flag to generate shared objects directly from archives. 12155whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 12156 12157# Compiler flag to generate thread-safe objects. 12158thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 12159 12160# Library versioning type. 12161version_type=$version_type 12162 12163# Format of library name prefix. 12164libname_spec=$lt_libname_spec 12165 12166# List of archive names. First name is the real one, the rest are links. 12167# The last name is the one that the linker finds with -lNAME. 12168library_names_spec=$lt_library_names_spec 12169 12170# The coded name of the library, if different from the real name. 12171soname_spec=$lt_soname_spec 12172 12173# Commands used to build and install an old-style archive. 12174RANLIB=$lt_RANLIB 12175old_archive_cmds=$lt_old_archive_cmds_CXX 12176old_postinstall_cmds=$lt_old_postinstall_cmds 12177old_postuninstall_cmds=$lt_old_postuninstall_cmds 12178 12179# Create an old-style archive from a shared archive. 12180old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 12181 12182# Create a temporary old-style archive to link instead of a shared archive. 12183old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 12184 12185# Commands used to build and install a shared archive. 12186archive_cmds=$lt_archive_cmds_CXX 12187archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 12188postinstall_cmds=$lt_postinstall_cmds 12189postuninstall_cmds=$lt_postuninstall_cmds 12190 12191# Commands used to build a loadable module (assumed same as above if empty) 12192module_cmds=$lt_module_cmds_CXX 12193module_expsym_cmds=$lt_module_expsym_cmds_CXX 12194 12195# Commands to strip libraries. 12196old_striplib=$lt_old_striplib 12197striplib=$lt_striplib 12198 12199# Dependencies to place before the objects being linked to create a 12200# shared library. 12201predep_objects=$lt_predep_objects_CXX 12202 12203# Dependencies to place after the objects being linked to create a 12204# shared library. 12205postdep_objects=$lt_postdep_objects_CXX 12206 12207# Dependencies to place before the objects being linked to create a 12208# shared library. 12209predeps=$lt_predeps_CXX 12210 12211# Dependencies to place after the objects being linked to create a 12212# shared library. 12213postdeps=$lt_postdeps_CXX 12214 12215# The library search path used internally by the compiler when linking 12216# a shared library. 12217compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 12218 12219# Method to check whether dependent libraries are shared objects. 12220deplibs_check_method=$lt_deplibs_check_method 12221 12222# Command to use when deplibs_check_method == file_magic. 12223file_magic_cmd=$lt_file_magic_cmd 12224 12225# Flag that allows shared libraries with undefined symbols to be built. 12226allow_undefined_flag=$lt_allow_undefined_flag_CXX 12227 12228# Flag that forces no undefined symbols. 12229no_undefined_flag=$lt_no_undefined_flag_CXX 12230 12231# Commands used to finish a libtool library installation in a directory. 12232finish_cmds=$lt_finish_cmds 12233 12234# Same as above, but a single script fragment to be evaled but not shown. 12235finish_eval=$lt_finish_eval 12236 12237# Take the output of nm and produce a listing of raw symbols and C names. 12238global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 12239 12240# Transform the output of nm in a proper C declaration 12241global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 12242 12243# Transform the output of nm in a C name address pair 12244global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 12245 12246# This is the shared library runtime path variable. 12247runpath_var=$runpath_var 12248 12249# This is the shared library path variable. 12250shlibpath_var=$shlibpath_var 12251 12252# Is shlibpath searched before the hard-coded library search path? 12253shlibpath_overrides_runpath=$shlibpath_overrides_runpath 12254 12255# How to hardcode a shared library path into an executable. 12256hardcode_action=$hardcode_action_CXX 12257 12258# Whether we should hardcode library paths into libraries. 12259hardcode_into_libs=$hardcode_into_libs 12260 12261# Flag to hardcode \$libdir into a binary during linking. 12262# This must work even if \$libdir does not exist. 12263hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 12264 12265# If ld is used when linking, flag to hardcode \$libdir into 12266# a binary during linking. This must work even if \$libdir does 12267# not exist. 12268hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 12269 12270# Whether we need a single -rpath flag with a separated argument. 12271hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 12272 12273# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 12274# resulting binary. 12275hardcode_direct=$hardcode_direct_CXX 12276 12277# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 12278# resulting binary. 12279hardcode_minus_L=$hardcode_minus_L_CXX 12280 12281# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 12282# the resulting binary. 12283hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 12284 12285# Set to yes if building a shared library automatically hardcodes DIR into the library 12286# and all subsequent libraries and executables linked against it. 12287hardcode_automatic=$hardcode_automatic_CXX 12288 12289# Variables whose values should be saved in libtool wrapper scripts and 12290# restored at relink time. 12291variables_saved_for_relink="$variables_saved_for_relink" 12292 12293# Whether libtool must link a program against all its dependency libraries. 12294link_all_deplibs=$link_all_deplibs_CXX 12295 12296# Compile-time system search path for libraries 12297sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 12298 12299# Run-time system search path for libraries 12300sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 12301 12302# Fix the shell variable \$srcfile for the compiler. 12303fix_srcfile_path="$fix_srcfile_path_CXX" 12304 12305# Set to yes if exported symbols are required. 12306always_export_symbols=$always_export_symbols_CXX 12307 12308# The commands to list exported symbols. 12309export_symbols_cmds=$lt_export_symbols_cmds_CXX 12310 12311# The commands to extract the exported symbol list from a shared archive. 12312extract_expsyms_cmds=$lt_extract_expsyms_cmds 12313 12314# Symbols that should not be listed in the preloaded symbols. 12315exclude_expsyms=$lt_exclude_expsyms_CXX 12316 12317# Symbols that must always be exported. 12318include_expsyms=$lt_include_expsyms_CXX 12319 12320# ### END LIBTOOL TAG CONFIG: $tagname 12321 12322__EOF__ 12323 12324 12325else 12326 # If there is no Makefile yet, we rely on a make rule to execute 12327 # `config.status --recheck' to rerun these tests and create the 12328 # libtool script then. 12329 test -f Makefile && make "$ltmain" 12330fi 12331 12332 12333ac_ext=c 12334ac_cpp='$CPP $CPPFLAGS' 12335ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12336ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12337ac_compiler_gnu=$ac_cv_c_compiler_gnu 12338 12339CC=$lt_save_CC 12340LDCXX=$LD 12341LD=$lt_save_LD 12342GCC=$lt_save_GCC 12343with_gnu_ldcxx=$with_gnu_ld 12344with_gnu_ld=$lt_save_with_gnu_ld 12345lt_cv_path_LDCXX=$lt_cv_path_LD 12346lt_cv_path_LD=$lt_save_path_LD 12347lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 12348lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 12349 12350 else 12351 tagname="" 12352 fi 12353 ;; 12354 12355 F77) 12356 if test -n "$F77" && test "X$F77" != "Xno"; then 12357 12358ac_ext=f 12359ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 12360ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12361ac_compiler_gnu=$ac_cv_f77_compiler_gnu 12362 12363 12364archive_cmds_need_lc_F77=no 12365allow_undefined_flag_F77= 12366always_export_symbols_F77=no 12367archive_expsym_cmds_F77= 12368export_dynamic_flag_spec_F77= 12369hardcode_direct_F77=no 12370hardcode_libdir_flag_spec_F77= 12371hardcode_libdir_flag_spec_ld_F77= 12372hardcode_libdir_separator_F77= 12373hardcode_minus_L_F77=no 12374hardcode_automatic_F77=no 12375module_cmds_F77= 12376module_expsym_cmds_F77= 12377link_all_deplibs_F77=unknown 12378old_archive_cmds_F77=$old_archive_cmds 12379no_undefined_flag_F77= 12380whole_archive_flag_spec_F77= 12381enable_shared_with_static_runtimes_F77=no 12382 12383# Source file extension for f77 test sources. 12384ac_ext=f 12385 12386# Object file extension for compiled f77 test sources. 12387objext=o 12388objext_F77=$objext 12389 12390# Code to be used in simple compile tests 12391lt_simple_compile_test_code=" subroutine t\n return\n end\n" 12392 12393# Code to be used in simple link tests 12394lt_simple_link_test_code=" program t\n end\n" 12395 12396# ltmain only uses $CC for tagged configurations so make sure $CC is set. 12397 12398# If no C compiler was specified, use CC. 12399LTCC=${LTCC-"$CC"} 12400 12401# Allow CC to be a program name with arguments. 12402compiler=$CC 12403 12404 12405# Allow CC to be a program name with arguments. 12406lt_save_CC="$CC" 12407CC=${F77-"f77"} 12408compiler=$CC 12409compiler_F77=$CC 12410cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` 12411 12412echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 12413echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 12414echo "$as_me:$LINENO: result: $can_build_shared" >&5 12415echo "${ECHO_T}$can_build_shared" >&6 12416 12417echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 12418echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 12419test "$can_build_shared" = "no" && enable_shared=no 12420 12421# On AIX, shared libraries and static libraries use the same namespace, and 12422# are all built from PIC. 12423case "$host_os" in 12424aix3*) 12425 test "$enable_shared" = yes && enable_static=no 12426 if test -n "$RANLIB"; then 12427 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12428 postinstall_cmds='$RANLIB $lib' 12429 fi 12430 ;; 12431aix4*) 12432 test "$enable_shared" = yes && enable_static=no 12433 ;; 12434esac 12435echo "$as_me:$LINENO: result: $enable_shared" >&5 12436echo "${ECHO_T}$enable_shared" >&6 12437 12438echo "$as_me:$LINENO: checking whether to build static libraries" >&5 12439echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 12440# Make sure either enable_shared or enable_static is yes. 12441test "$enable_shared" = yes || enable_static=yes 12442echo "$as_me:$LINENO: result: $enable_static" >&5 12443echo "${ECHO_T}$enable_static" >&6 12444 12445test "$ld_shlibs_F77" = no && can_build_shared=no 12446 12447GCC_F77="$G77" 12448LD_F77="$LD" 12449 12450lt_prog_compiler_wl_F77= 12451lt_prog_compiler_pic_F77= 12452lt_prog_compiler_static_F77= 12453 12454echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 12455echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 12456 12457 if test "$GCC" = yes; then 12458 lt_prog_compiler_wl_F77='-Wl,' 12459 lt_prog_compiler_static_F77='-static' 12460 12461 case $host_os in 12462 aix*) 12463 # All AIX code is PIC. 12464 if test "$host_cpu" = ia64; then 12465 # AIX 5 now supports IA64 processor 12466 lt_prog_compiler_static_F77='-Bstatic' 12467 fi 12468 ;; 12469 12470 amigaos*) 12471 # FIXME: we need at least 68020 code to build shared libraries, but 12472 # adding the `-m68020' flag to GCC prevents building anything better, 12473 # like `-m68040'. 12474 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 12475 ;; 12476 12477 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12478 # PIC is the default for these OSes. 12479 ;; 12480 12481 mingw* | pw32* | os2*) 12482 # This hack is so that the source file can tell whether it is being 12483 # built for inclusion in a dll (and should export symbols for example). 12484 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 12485 ;; 12486 12487 darwin* | rhapsody*) 12488 # PIC is the default on this platform 12489 # Common symbols not allowed in MH_DYLIB files 12490 lt_prog_compiler_pic_F77='-fno-common' 12491 ;; 12492 12493 msdosdjgpp*) 12494 # Just because we use GCC doesn't mean we suddenly get shared libraries 12495 # on systems that don't support them. 12496 lt_prog_compiler_can_build_shared_F77=no 12497 enable_shared=no 12498 ;; 12499 12500 sysv4*MP*) 12501 if test -d /usr/nec; then 12502 lt_prog_compiler_pic_F77=-Kconform_pic 12503 fi 12504 ;; 12505 12506 hpux*) 12507 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12508 # not for PA HP-UX. 12509 case "$host_cpu" in 12510 hppa*64*|ia64*) 12511 # +Z the default 12512 ;; 12513 *) 12514 lt_prog_compiler_pic_F77='-fPIC' 12515 ;; 12516 esac 12517 ;; 12518 12519 *) 12520 lt_prog_compiler_pic_F77='-fPIC' 12521 ;; 12522 esac 12523 else 12524 # PORTME Check for flag to pass linker flags through the system compiler. 12525 case $host_os in 12526 aix*) 12527 lt_prog_compiler_wl_F77='-Wl,' 12528 if test "$host_cpu" = ia64; then 12529 # AIX 5 now supports IA64 processor 12530 lt_prog_compiler_static_F77='-Bstatic' 12531 else 12532 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 12533 fi 12534 ;; 12535 12536 mingw* | pw32* | os2*) 12537 # This hack is so that the source file can tell whether it is being 12538 # built for inclusion in a dll (and should export symbols for example). 12539 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 12540 ;; 12541 12542 hpux9* | hpux10* | hpux11*) 12543 lt_prog_compiler_wl_F77='-Wl,' 12544 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12545 # not for PA HP-UX. 12546 case "$host_cpu" in 12547 hppa*64*|ia64*) 12548 # +Z the default 12549 ;; 12550 *) 12551 lt_prog_compiler_pic_F77='+Z' 12552 ;; 12553 esac 12554 # Is there a better lt_prog_compiler_static that works with the bundled CC? 12555 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 12556 ;; 12557 12558 irix5* | irix6* | nonstopux*) 12559 lt_prog_compiler_wl_F77='-Wl,' 12560 # PIC (with -KPIC) is the default. 12561 lt_prog_compiler_static_F77='-non_shared' 12562 ;; 12563 12564 newsos6) 12565 lt_prog_compiler_pic_F77='-KPIC' 12566 lt_prog_compiler_static_F77='-Bstatic' 12567 ;; 12568 12569 linux*) 12570 case $CC in 12571 icc|ecc) 12572 lt_prog_compiler_wl_F77='-Wl,' 12573 lt_prog_compiler_pic_F77='-KPIC' 12574 lt_prog_compiler_static_F77='-static' 12575 ;; 12576 ccc) 12577 lt_prog_compiler_wl_F77='-Wl,' 12578 # All Alpha code is PIC. 12579 lt_prog_compiler_static_F77='-non_shared' 12580 ;; 12581 esac 12582 ;; 12583 12584 osf3* | osf4* | osf5*) 12585 lt_prog_compiler_wl_F77='-Wl,' 12586 # All OSF/1 code is PIC. 12587 lt_prog_compiler_static_F77='-non_shared' 12588 ;; 12589 12590 sco3.2v5*) 12591 lt_prog_compiler_pic_F77='-Kpic' 12592 lt_prog_compiler_static_F77='-dn' 12593 ;; 12594 12595 solaris*) 12596 lt_prog_compiler_wl_F77='-Wl,' 12597 lt_prog_compiler_pic_F77='-KPIC' 12598 lt_prog_compiler_static_F77='-Bstatic' 12599 ;; 12600 12601 sunos4*) 12602 lt_prog_compiler_wl_F77='-Qoption ld ' 12603 lt_prog_compiler_pic_F77='-PIC' 12604 lt_prog_compiler_static_F77='-Bstatic' 12605 ;; 12606 12607 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 12608 lt_prog_compiler_wl_F77='-Wl,' 12609 lt_prog_compiler_pic_F77='-KPIC' 12610 lt_prog_compiler_static_F77='-Bstatic' 12611 ;; 12612 12613 sysv4*MP*) 12614 if test -d /usr/nec ;then 12615 lt_prog_compiler_pic_F77='-Kconform_pic' 12616 lt_prog_compiler_static_F77='-Bstatic' 12617 fi 12618 ;; 12619 12620 uts4*) 12621 lt_prog_compiler_pic_F77='-pic' 12622 lt_prog_compiler_static_F77='-Bstatic' 12623 ;; 12624 12625 *) 12626 lt_prog_compiler_can_build_shared_F77=no 12627 ;; 12628 esac 12629 fi 12630 12631echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 12632echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 12633 12634# 12635# Check to make sure the PIC flag actually works. 12636# 12637if test -n "$lt_prog_compiler_pic_F77"; then 12638 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 12639echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 12640if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 12641 echo $ECHO_N "(cached) $ECHO_C" >&6 12642else 12643 lt_prog_compiler_pic_works_F77=no 12644 ac_outfile=conftest.$ac_objext 12645 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12646 lt_compiler_flag="$lt_prog_compiler_pic_F77" 12647 # Insert the option either (1) after the last *FLAGS variable, or 12648 # (2) before a word containing "conftest.", or (3) at the end. 12649 # Note that $ac_compile itself does not contain backslashes and begins 12650 # with a dollar sign (not a hyphen), so the echo should work correctly. 12651 # The option is referenced via a variable to avoid confusing sed. 12652 lt_compile=`echo "$ac_compile" | $SED \ 12653 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 12654 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12655 -e 's:$: $lt_compiler_flag:'` 12656 (eval echo "\"\$as_me:12656: $lt_compile\"" >&5) 12657 (eval "$lt_compile" 2>conftest.err) 12658 ac_status=$? 12659 cat conftest.err >&5 12660 echo "$as_me:12660: \$? = $ac_status" >&5 12661 if (exit $ac_status) && test -s "$ac_outfile"; then 12662 # The compiler can only warn and ignore the option if not recognized 12663 # So say no if there are warnings 12664 if test ! -s conftest.err; then 12665 lt_prog_compiler_pic_works_F77=yes 12666 fi 12667 fi 12668 $rm conftest* 12669 12670fi 12671echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 12672echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 12673 12674if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 12675 case $lt_prog_compiler_pic_F77 in 12676 "" | " "*) ;; 12677 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 12678 esac 12679else 12680 lt_prog_compiler_pic_F77= 12681 lt_prog_compiler_can_build_shared_F77=no 12682fi 12683 12684fi 12685case "$host_os" in 12686 # For platforms which do not support PIC, -DPIC is meaningless: 12687 *djgpp*) 12688 lt_prog_compiler_pic_F77= 12689 ;; 12690 *) 12691 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 12692 ;; 12693esac 12694 12695echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12696echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 12697if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 12698 echo $ECHO_N "(cached) $ECHO_C" >&6 12699else 12700 lt_cv_prog_compiler_c_o_F77=no 12701 $rm -r conftest 2>/dev/null 12702 mkdir conftest 12703 cd conftest 12704 mkdir out 12705 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12706 12707 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers 12708 # that will create temporary files in the current directory regardless of 12709 # the output directory. Thus, making CWD read-only will cause this test 12710 # to fail, enabling locking or at least warning the user not to do parallel 12711 # builds. 12712 chmod -w . 12713 12714 lt_compiler_flag="-o out/conftest2.$ac_objext" 12715 # Insert the option either (1) after the last *FLAGS variable, or 12716 # (2) before a word containing "conftest.", or (3) at the end. 12717 # Note that $ac_compile itself does not contain backslashes and begins 12718 # with a dollar sign (not a hyphen), so the echo should work correctly. 12719 lt_compile=`echo "$ac_compile" | $SED \ 12720 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 12721 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12722 -e 's:$: $lt_compiler_flag:'` 12723 (eval echo "\"\$as_me:12723: $lt_compile\"" >&5) 12724 (eval "$lt_compile" 2>out/conftest.err) 12725 ac_status=$? 12726 cat out/conftest.err >&5 12727 echo "$as_me:12727: \$? = $ac_status" >&5 12728 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12729 then 12730 # The compiler can only warn and ignore the option if not recognized 12731 # So say no if there are warnings 12732 if test ! -s out/conftest.err; then 12733 lt_cv_prog_compiler_c_o_F77=yes 12734 fi 12735 fi 12736 chmod u+w . 12737 $rm conftest* out/* 12738 rmdir out 12739 cd .. 12740 rmdir conftest 12741 $rm conftest* 12742 12743fi 12744echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 12745echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 12746 12747 12748hard_links="nottested" 12749if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 12750 # do not overwrite the value of need_locks provided by the user 12751 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 12752echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 12753 hard_links=yes 12754 $rm conftest* 12755 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12756 touch conftest.a 12757 ln conftest.a conftest.b 2>&5 || hard_links=no 12758 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12759 echo "$as_me:$LINENO: result: $hard_links" >&5 12760echo "${ECHO_T}$hard_links" >&6 12761 if test "$hard_links" = no; then 12762 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 12763echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 12764 need_locks=warn 12765 fi 12766else 12767 need_locks=no 12768fi 12769 12770echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12771echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 12772 12773 runpath_var= 12774 allow_undefined_flag_F77= 12775 enable_shared_with_static_runtimes_F77=no 12776 archive_cmds_F77= 12777 archive_expsym_cmds_F77= 12778 old_archive_From_new_cmds_F77= 12779 old_archive_from_expsyms_cmds_F77= 12780 export_dynamic_flag_spec_F77= 12781 whole_archive_flag_spec_F77= 12782 thread_safe_flag_spec_F77= 12783 hardcode_libdir_flag_spec_F77= 12784 hardcode_libdir_flag_spec_ld_F77= 12785 hardcode_libdir_separator_F77= 12786 hardcode_direct_F77=no 12787 hardcode_minus_L_F77=no 12788 hardcode_shlibpath_var_F77=unsupported 12789 link_all_deplibs_F77=unknown 12790 hardcode_automatic_F77=no 12791 module_cmds_F77= 12792 module_expsym_cmds_F77= 12793 always_export_symbols_F77=no 12794 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12795 # include_expsyms should be a list of space-separated symbols to be *always* 12796 # included in the symbol list 12797 include_expsyms_F77= 12798 # exclude_expsyms can be an extended regexp of symbols to exclude 12799 # it will be wrapped by ` (' and `)$', so one must not match beginning or 12800 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 12801 # as well as any symbol that contains `d'. 12802 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 12803 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 12804 # platforms (ab)use it in PIC code, but their linkers get confused if 12805 # the symbol is explicitly referenced. Since portable code cannot 12806 # rely on this symbol name, it's probably fine to never include it in 12807 # preloaded symbol tables. 12808 extract_expsyms_cmds= 12809 12810 case $host_os in 12811 cygwin* | mingw* | pw32*) 12812 # FIXME: the MSVC++ port hasn't been tested in a loooong time 12813 # When not using gcc, we currently assume that we are using 12814 # Microsoft Visual C++. 12815 if test "$GCC" != yes; then 12816 with_gnu_ld=no 12817 fi 12818 ;; 12819 openbsd*) 12820 with_gnu_ld=no 12821 ;; 12822 esac 12823 12824 ld_shlibs_F77=yes 12825 if test "$with_gnu_ld" = yes; then 12826 # If archive_cmds runs LD, not CC, wlarc should be empty 12827 wlarc='${wl}' 12828 12829 # See if GNU ld supports shared libraries. 12830 case $host_os in 12831 aix3* | aix4* | aix5*) 12832 # On AIX/PPC, the GNU linker is very broken 12833 if test "$host_cpu" != ia64; then 12834 ld_shlibs_F77=no 12835 cat <<EOF 1>&2 12836 12837*** Warning: the GNU linker, at least up to release 2.9.1, is reported 12838*** to be unable to reliably create shared libraries on AIX. 12839*** Therefore, libtool is disabling shared libraries support. If you 12840*** really care for shared libraries, you may want to modify your PATH 12841*** so that a non-GNU linker is found, and then restart. 12842 12843EOF 12844 fi 12845 ;; 12846 12847 amigaos*) 12848 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)' 12849 hardcode_libdir_flag_spec_F77='-L$libdir' 12850 hardcode_minus_L_F77=yes 12851 12852 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 12853 # that the semantics of dynamic libraries on AmigaOS, at least up 12854 # to version 4, is to share data among multiple programs linked 12855 # with the same dynamic library. Since this doesn't match the 12856 # behavior of shared libraries on other platforms, we can't use 12857 # them. 12858 ld_shlibs_F77=no 12859 ;; 12860 12861 beos*) 12862 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 12863 allow_undefined_flag_F77=unsupported 12864 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 12865 # support --undefined. This deserves some investigation. FIXME 12866 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12867 else 12868 ld_shlibs_F77=no 12869 fi 12870 ;; 12871 12872 cygwin* | mingw* | pw32*) 12873 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 12874 # as there is no search path for DLLs. 12875 hardcode_libdir_flag_spec_F77='-L$libdir' 12876 allow_undefined_flag_F77=unsupported 12877 always_export_symbols_F77=no 12878 enable_shared_with_static_runtimes_F77=yes 12879 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 12880 12881 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 12882 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 12883 # If the export-symbols file already is a .def file (1st line 12884 # is EXPORTS), use it as is; otherwise, prepend... 12885 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12886 cp $export_symbols $output_objdir/$soname.def; 12887 else 12888 echo EXPORTS > $output_objdir/$soname.def; 12889 cat $export_symbols >> $output_objdir/$soname.def; 12890 fi~ 12891 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 12892 else 12893 ld_shlibs=no 12894 fi 12895 ;; 12896 12897 netbsd*) 12898 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12899 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 12900 wlarc= 12901 else 12902 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12903 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12904 fi 12905 ;; 12906 12907 solaris* | sysv5*) 12908 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 12909 ld_shlibs_F77=no 12910 cat <<EOF 1>&2 12911 12912*** Warning: The releases 2.8.* of the GNU linker cannot reliably 12913*** create shared libraries on Solaris systems. Therefore, libtool 12914*** is disabling shared libraries support. We urge you to upgrade GNU 12915*** binutils to release 2.9.1 or newer. Another option is to modify 12916*** your PATH or compiler configuration so that the native linker is 12917*** used, and then restart. 12918 12919EOF 12920 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 12921 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12922 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12923 else 12924 ld_shlibs_F77=no 12925 fi 12926 ;; 12927 12928 sunos4*) 12929 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 12930 wlarc= 12931 hardcode_direct_F77=yes 12932 hardcode_shlibpath_var_F77=no 12933 ;; 12934 12935 *) 12936 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 12937 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12938 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12939 else 12940 ld_shlibs_F77=no 12941 fi 12942 ;; 12943 esac 12944 12945 if test "$ld_shlibs_F77" = yes; then 12946 runpath_var=LD_RUN_PATH 12947 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 12948 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 12949 # ancient GNU ld didn't support --whole-archive et. al. 12950 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 12951 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12952 else 12953 whole_archive_flag_spec_F77= 12954 fi 12955 fi 12956 else 12957 # PORTME fill in a description of your system's linker (not GNU ld) 12958 case $host_os in 12959 aix3*) 12960 allow_undefined_flag_F77=unsupported 12961 always_export_symbols_F77=yes 12962 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' 12963 # Note: this linker hardcodes the directories in LIBPATH if there 12964 # are no directories specified by -L. 12965 hardcode_minus_L_F77=yes 12966 if test "$GCC" = yes && test -z "$link_static_flag"; then 12967 # Neither direct hardcoding nor static linking is supported with a 12968 # broken collect2. 12969 hardcode_direct_F77=unsupported 12970 fi 12971 ;; 12972 12973 aix4* | aix5*) 12974 if test "$host_cpu" = ia64; then 12975 # On IA64, the linker does run time linking by default, so we don't 12976 # have to do anything special. 12977 aix_use_runtimelinking=no 12978 exp_sym_flag='-Bexport' 12979 no_entry_flag="" 12980 else 12981 # If we're using GNU nm, then we don't want the "-C" option. 12982 # -C means demangle to AIX nm, but means don't demangle with GNU nm 12983 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 12984 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' 12985 else 12986 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' 12987 fi 12988 aix_use_runtimelinking=no 12989 12990 # Test if we are trying to use run time linking or normal 12991 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 12992 # need to do runtime linking. 12993 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 12994 for ld_flag in $LDFLAGS; do 12995 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 12996 aix_use_runtimelinking=yes 12997 break 12998 fi 12999 done 13000 esac 13001 13002 exp_sym_flag='-bexport' 13003 no_entry_flag='-bnoentry' 13004 fi 13005 13006 # When large executables or shared objects are built, AIX ld can 13007 # have problems creating the table of contents. If linking a library 13008 # or program results in "error TOC overflow" add -mminimal-toc to 13009 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13010 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13011 13012 archive_cmds_F77='' 13013 hardcode_direct_F77=yes 13014 hardcode_libdir_separator_F77=':' 13015 link_all_deplibs_F77=yes 13016 13017 if test "$GCC" = yes; then 13018 case $host_os in aix4.012|aix4.012.*) 13019 # We only want to do this on AIX 4.2 and lower, the check 13020 # below for broken collect2 doesn't work under 4.3+ 13021 collect2name=`${CC} -print-prog-name=collect2` 13022 if test -f "$collect2name" && \ 13023 strings "$collect2name" | grep resolve_lib_name >/dev/null 13024 then 13025 # We have reworked collect2 13026 hardcode_direct_F77=yes 13027 else 13028 # We have old collect2 13029 hardcode_direct_F77=unsupported 13030 # It fails to find uninstalled libraries when the uninstalled 13031 # path is not listed in the libpath. Setting hardcode_minus_L 13032 # to unsupported forces relinking 13033 hardcode_minus_L_F77=yes 13034 hardcode_libdir_flag_spec_F77='-L$libdir' 13035 hardcode_libdir_separator_F77= 13036 fi 13037 esac 13038 shared_flag='-shared' 13039 else 13040 # not using gcc 13041 if test "$host_cpu" = ia64; then 13042 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13043 # chokes on -Wl,-G. The following line is correct: 13044 shared_flag='-G' 13045 else 13046 if test "$aix_use_runtimelinking" = yes; then 13047 shared_flag='${wl}-G' 13048 else 13049 shared_flag='${wl}-bM:SRE' 13050 fi 13051 fi 13052 fi 13053 13054 # It seems that -bexpall does not export symbols beginning with 13055 # underscore (_), so it is better to generate a list of symbols to export. 13056 always_export_symbols_F77=yes 13057 if test "$aix_use_runtimelinking" = yes; then 13058 # Warning - without using the other runtime loading flags (-brtl), 13059 # -berok will link without error, but may produce a broken library. 13060 allow_undefined_flag_F77='-berok' 13061 # Determine the default libpath from the value encoded in an empty executable. 13062 cat >conftest.$ac_ext <<_ACEOF 13063 program main 13064 13065 end 13066_ACEOF 13067rm -f conftest.$ac_objext conftest$ac_exeext 13068if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13069 (eval $ac_link) 2>&5 13070 ac_status=$? 13071 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13072 (exit $ac_status); } && 13073 { ac_try='test -s conftest$ac_exeext' 13074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13075 (eval $ac_try) 2>&5 13076 ac_status=$? 13077 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13078 (exit $ac_status); }; }; then 13079 13080aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 13081}'` 13082# Check for a 64-bit object if we didn't find anything. 13083if 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; } 13084}'`; fi 13085else 13086 echo "$as_me: failed program was:" >&5 13087sed 's/^/| /' conftest.$ac_ext >&5 13088 13089fi 13090rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 13091if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 13092 13093 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 13094 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" 13095 else 13096 if test "$host_cpu" = ia64; then 13097 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 13098 allow_undefined_flag_F77="-z nodefs" 13099 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" 13100 else 13101 # Determine the default libpath from the value encoded in an empty executable. 13102 cat >conftest.$ac_ext <<_ACEOF 13103 program main 13104 13105 end 13106_ACEOF 13107rm -f conftest.$ac_objext conftest$ac_exeext 13108if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13109 (eval $ac_link) 2>&5 13110 ac_status=$? 13111 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13112 (exit $ac_status); } && 13113 { ac_try='test -s conftest$ac_exeext' 13114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13115 (eval $ac_try) 2>&5 13116 ac_status=$? 13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13118 (exit $ac_status); }; }; then 13119 13120aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 13121}'` 13122# Check for a 64-bit object if we didn't find anything. 13123if 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; } 13124}'`; fi 13125else 13126 echo "$as_me: failed program was:" >&5 13127sed 's/^/| /' conftest.$ac_ext >&5 13128 13129fi 13130rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 13131if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 13132 13133 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 13134 # Warning - without using the other run time loading flags, 13135 # -berok will link without error, but may produce a broken library. 13136 no_undefined_flag_F77=' ${wl}-bernotok' 13137 allow_undefined_flag_F77=' ${wl}-berok' 13138 # -bexpall does not export symbols beginning with underscore (_) 13139 always_export_symbols_F77=yes 13140 # Exported symbols can be pulled into shared objects from archives 13141 whole_archive_flag_spec_F77=' ' 13142 archive_cmds_need_lc_F77=yes 13143 # This is similar to how AIX traditionally builds it's shared libraries. 13144 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' 13145 fi 13146 fi 13147 ;; 13148 13149 amigaos*) 13150 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)' 13151 hardcode_libdir_flag_spec_F77='-L$libdir' 13152 hardcode_minus_L_F77=yes 13153 # see comment about different semantics on the GNU ld section 13154 ld_shlibs_F77=no 13155 ;; 13156 13157 bsdi4*) 13158 export_dynamic_flag_spec_F77=-rdynamic 13159 ;; 13160 13161 cygwin* | mingw* | pw32*) 13162 # When not using gcc, we currently assume that we are using 13163 # Microsoft Visual C++. 13164 # hardcode_libdir_flag_spec is actually meaningless, as there is 13165 # no search path for DLLs. 13166 hardcode_libdir_flag_spec_F77=' ' 13167 allow_undefined_flag_F77=unsupported 13168 # Tell ltmain to make .lib files, not .a files. 13169 libext=lib 13170 # Tell ltmain to make .dll files, not .so files. 13171 shrext=".dll" 13172 # FIXME: Setting linknames here is a bad hack. 13173 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 13174 # The linker will automatically build a .lib file if we build a DLL. 13175 old_archive_From_new_cmds_F77='true' 13176 # FIXME: Should let the user specify the lib program. 13177 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 13178 fix_srcfile_path='`cygpath -w "$srcfile"`' 13179 enable_shared_with_static_runtimes_F77=yes 13180 ;; 13181 13182 darwin* | rhapsody*) 13183 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then 13184 archive_cmds_need_lc_F77=no 13185 case "$host_os" in 13186 rhapsody* | darwin1.[012]) 13187 allow_undefined_flag_F77='-undefined suppress' 13188 ;; 13189 *) # Darwin 1.3 on 13190 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress' 13191 ;; 13192 esac 13193 # FIXME: Relying on posixy $() will cause problems for 13194 # cross-compilation, but unfortunately the echo tests do not 13195 # yet detect zsh echo's removal of \ escapes. Also zsh mangles 13196 # `"' quotes if we put them in here... so don't! 13197 lt_int_apple_cc_single_mod=no 13198 output_verbose_link_cmd='echo' 13199 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 13200 lt_int_apple_cc_single_mod=yes 13201 fi 13202 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 13203 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 13204 else 13205 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 13206 fi 13207 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' 13208 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 13209 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 13210 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 13211 else 13212 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 13213 fi 13214 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 13215 hardcode_direct_F77=no 13216 hardcode_automatic_F77=yes 13217 hardcode_shlibpath_var_F77=unsupported 13218 whole_archive_flag_spec_F77='-all_load $convenience' 13219 link_all_deplibs_F77=yes 13220 fi 13221 ;; 13222 13223 dgux*) 13224 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13225 hardcode_libdir_flag_spec_F77='-L$libdir' 13226 hardcode_shlibpath_var_F77=no 13227 ;; 13228 13229 freebsd1*) 13230 ld_shlibs_F77=no 13231 ;; 13232 13233 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 13234 # support. Future versions do this automatically, but an explicit c++rt0.o 13235 # does not break anything, and helps significantly (at the cost of a little 13236 # extra space). 13237 freebsd2.2*) 13238 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 13239 hardcode_libdir_flag_spec_F77='-R$libdir' 13240 hardcode_direct_F77=yes 13241 hardcode_shlibpath_var_F77=no 13242 ;; 13243 13244 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 13245 freebsd2*) 13246 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13247 hardcode_direct_F77=yes 13248 hardcode_minus_L_F77=yes 13249 hardcode_shlibpath_var_F77=no 13250 ;; 13251 13252 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 13253 freebsd*) 13254 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 13255 hardcode_libdir_flag_spec_F77='-R$libdir' 13256 hardcode_direct_F77=yes 13257 hardcode_shlibpath_var_F77=no 13258 ;; 13259 13260 hpux9*) 13261 if test "$GCC" = yes; then 13262 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' 13263 else 13264 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' 13265 fi 13266 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 13267 hardcode_libdir_separator_F77=: 13268 hardcode_direct_F77=yes 13269 13270 # hardcode_minus_L: Not really in the search PATH, 13271 # but as the default location of the library. 13272 hardcode_minus_L_F77=yes 13273 export_dynamic_flag_spec_F77='${wl}-E' 13274 ;; 13275 13276 hpux10* | hpux11*) 13277 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 13278 case "$host_cpu" in 13279 hppa*64*|ia64*) 13280 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 13281 ;; 13282 *) 13283 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13284 ;; 13285 esac 13286 else 13287 case "$host_cpu" in 13288 hppa*64*|ia64*) 13289 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 13290 ;; 13291 *) 13292 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 13293 ;; 13294 esac 13295 fi 13296 if test "$with_gnu_ld" = no; then 13297 case "$host_cpu" in 13298 hppa*64*) 13299 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 13300 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 13301 hardcode_libdir_separator_F77=: 13302 hardcode_direct_F77=no 13303 hardcode_shlibpath_var_F77=no 13304 ;; 13305 ia64*) 13306 hardcode_libdir_flag_spec_F77='-L$libdir' 13307 hardcode_direct_F77=no 13308 hardcode_shlibpath_var_F77=no 13309 13310 # hardcode_minus_L: Not really in the search PATH, 13311 # but as the default location of the library. 13312 hardcode_minus_L_F77=yes 13313 ;; 13314 *) 13315 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 13316 hardcode_libdir_separator_F77=: 13317 hardcode_direct_F77=yes 13318 export_dynamic_flag_spec_F77='${wl}-E' 13319 13320 # hardcode_minus_L: Not really in the search PATH, 13321 # but as the default location of the library. 13322 hardcode_minus_L_F77=yes 13323 ;; 13324 esac 13325 fi 13326 ;; 13327 13328 irix5* | irix6* | nonstopux*) 13329 if test "$GCC" = yes; then 13330 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' 13331 else 13332 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' 13333 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 13334 fi 13335 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 13336 hardcode_libdir_separator_F77=: 13337 link_all_deplibs_F77=yes 13338 ;; 13339 13340 netbsd*) 13341 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13342 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 13343 else 13344 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 13345 fi 13346 hardcode_libdir_flag_spec_F77='-R$libdir' 13347 hardcode_direct_F77=yes 13348 hardcode_shlibpath_var_F77=no 13349 ;; 13350 13351 newsos6) 13352 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13353 hardcode_direct_F77=yes 13354 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 13355 hardcode_libdir_separator_F77=: 13356 hardcode_shlibpath_var_F77=no 13357 ;; 13358 13359 openbsd*) 13360 hardcode_direct_F77=yes 13361 hardcode_shlibpath_var_F77=no 13362 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13363 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13364 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 13365 export_dynamic_flag_spec_F77='${wl}-E' 13366 else 13367 case $host_os in 13368 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 13369 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13370 hardcode_libdir_flag_spec_F77='-R$libdir' 13371 ;; 13372 *) 13373 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13374 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 13375 ;; 13376 esac 13377 fi 13378 ;; 13379 13380 os2*) 13381 hardcode_libdir_flag_spec_F77='-L$libdir' 13382 hardcode_minus_L_F77=yes 13383 allow_undefined_flag_F77=unsupported 13384 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' 13385 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 13386 ;; 13387 13388 osf3*) 13389 if test "$GCC" = yes; then 13390 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 13391 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' 13392 else 13393 allow_undefined_flag_F77=' -expect_unresolved \*' 13394 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' 13395 fi 13396 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 13397 hardcode_libdir_separator_F77=: 13398 ;; 13399 13400 osf4* | osf5*) # as osf3* with the addition of -msym flag 13401 if test "$GCC" = yes; then 13402 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 13403 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' 13404 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 13405 else 13406 allow_undefined_flag_F77=' -expect_unresolved \*' 13407 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' 13408 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~ 13409 $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' 13410 13411 # Both c and cxx compiler support -rpath directly 13412 hardcode_libdir_flag_spec_F77='-rpath $libdir' 13413 fi 13414 hardcode_libdir_separator_F77=: 13415 ;; 13416 13417 sco3.2v5*) 13418 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13419 hardcode_shlibpath_var_F77=no 13420 export_dynamic_flag_spec_F77='${wl}-Bexport' 13421 runpath_var=LD_RUN_PATH 13422 hardcode_runpath_var=yes 13423 ;; 13424 13425 solaris*) 13426 no_undefined_flag_F77=' -z text' 13427 if test "$GCC" = yes; then 13428 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 13429 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 13430 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 13431 else 13432 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 13433 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 13434 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 13435 fi 13436 hardcode_libdir_flag_spec_F77='-R$libdir' 13437 hardcode_shlibpath_var_F77=no 13438 case $host_os in 13439 solaris2.[0-5] | solaris2.[0-5].*) ;; 13440 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 13441 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 13442 esac 13443 link_all_deplibs_F77=yes 13444 ;; 13445 13446 sunos4*) 13447 if test "x$host_vendor" = xsequent; then 13448 # Use $CC to link under sequent, because it throws in some extra .o 13449 # files that make .init and .fini sections work. 13450 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 13451 else 13452 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 13453 fi 13454 hardcode_libdir_flag_spec_F77='-L$libdir' 13455 hardcode_direct_F77=yes 13456 hardcode_minus_L_F77=yes 13457 hardcode_shlibpath_var_F77=no 13458 ;; 13459 13460 sysv4) 13461 case $host_vendor in 13462 sni) 13463 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13464 hardcode_direct_F77=yes # is this really true??? 13465 ;; 13466 siemens) 13467 ## LD is ld it makes a PLAMLIB 13468 ## CC just makes a GrossModule. 13469 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 13470 reload_cmds_F77='$CC -r -o $output$reload_objs' 13471 hardcode_direct_F77=no 13472 ;; 13473 motorola) 13474 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13475 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 13476 ;; 13477 esac 13478 runpath_var='LD_RUN_PATH' 13479 hardcode_shlibpath_var_F77=no 13480 ;; 13481 13482 sysv4.3*) 13483 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13484 hardcode_shlibpath_var_F77=no 13485 export_dynamic_flag_spec_F77='-Bexport' 13486 ;; 13487 13488 sysv4*MP*) 13489 if test -d /usr/nec; then 13490 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13491 hardcode_shlibpath_var_F77=no 13492 runpath_var=LD_RUN_PATH 13493 hardcode_runpath_var=yes 13494 ld_shlibs_F77=yes 13495 fi 13496 ;; 13497 13498 sysv4.2uw2*) 13499 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 13500 hardcode_direct_F77=yes 13501 hardcode_minus_L_F77=no 13502 hardcode_shlibpath_var_F77=no 13503 hardcode_runpath_var=yes 13504 runpath_var=LD_RUN_PATH 13505 ;; 13506 13507 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 13508 no_undefined_flag_F77='${wl}-z ${wl}text' 13509 if test "$GCC" = yes; then 13510 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 13511 else 13512 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 13513 fi 13514 runpath_var='LD_RUN_PATH' 13515 hardcode_shlibpath_var_F77=no 13516 ;; 13517 13518 sysv5*) 13519 no_undefined_flag_F77=' -z text' 13520 # $CC -shared without GNU ld will not create a library from C++ 13521 # object files and a static libstdc++, better avoid it by now 13522 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 13523 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 13524 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 13525 hardcode_libdir_flag_spec_F77= 13526 hardcode_shlibpath_var_F77=no 13527 runpath_var='LD_RUN_PATH' 13528 ;; 13529 13530 uts4*) 13531 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13532 hardcode_libdir_flag_spec_F77='-L$libdir' 13533 hardcode_shlibpath_var_F77=no 13534 ;; 13535 13536 *) 13537 ld_shlibs_F77=no 13538 ;; 13539 esac 13540 fi 13541 13542echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 13543echo "${ECHO_T}$ld_shlibs_F77" >&6 13544test "$ld_shlibs_F77" = no && can_build_shared=no 13545 13546variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13547if test "$GCC" = yes; then 13548 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13549fi 13550 13551# 13552# Do we need to explicitly link libc? 13553# 13554case "x$archive_cmds_need_lc_F77" in 13555x|xyes) 13556 # Assume -lc should be added 13557 archive_cmds_need_lc_F77=yes 13558 13559 if test "$enable_shared" = yes && test "$GCC" = yes; then 13560 case $archive_cmds_F77 in 13561 *'~'*) 13562 # FIXME: we may have to deal with multi-command sequences. 13563 ;; 13564 '$CC '*) 13565 # Test whether the compiler implicitly links with -lc since on some 13566 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13567 # to ld, don't add -lc before -lgcc. 13568 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 13569echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 13570 $rm conftest* 13571 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13572 13573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13574 (eval $ac_compile) 2>&5 13575 ac_status=$? 13576 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13577 (exit $ac_status); } 2>conftest.err; then 13578 soname=conftest 13579 lib=conftest 13580 libobjs=conftest.$ac_objext 13581 deplibs= 13582 wl=$lt_prog_compiler_wl_F77 13583 compiler_flags=-v 13584 linker_flags=-v 13585 verstring= 13586 output_objdir=. 13587 libname=conftest 13588 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 13589 allow_undefined_flag_F77= 13590 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 13591 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 13592 ac_status=$? 13593 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13594 (exit $ac_status); } 13595 then 13596 archive_cmds_need_lc_F77=no 13597 else 13598 archive_cmds_need_lc_F77=yes 13599 fi 13600 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 13601 else 13602 cat conftest.err 1>&5 13603 fi 13604 $rm conftest* 13605 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 13606echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 13607 ;; 13608 esac 13609 fi 13610 ;; 13611esac 13612 13613echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 13614echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 13615hardcode_action_F77= 13616if test -n "$hardcode_libdir_flag_spec_F77" || \ 13617 test -n "$runpath_var F77" || \ 13618 test "X$hardcode_automatic_F77"="Xyes" ; then 13619 13620 # We can hardcode non-existant directories. 13621 if test "$hardcode_direct_F77" != no && 13622 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13623 # have to relink, otherwise we might link with an installed library 13624 # when we should be linking with a yet-to-be-installed one 13625 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 13626 test "$hardcode_minus_L_F77" != no; then 13627 # Linking always hardcodes the temporary library directory. 13628 hardcode_action_F77=relink 13629 else 13630 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13631 hardcode_action_F77=immediate 13632 fi 13633else 13634 # We cannot hardcode anything, or else we can only hardcode existing 13635 # directories. 13636 hardcode_action_F77=unsupported 13637fi 13638echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 13639echo "${ECHO_T}$hardcode_action_F77" >&6 13640 13641if test "$hardcode_action_F77" = relink; then 13642 # Fast installation is not supported 13643 enable_fast_install=no 13644elif test "$shlibpath_overrides_runpath" = yes || 13645 test "$enable_shared" = no; then 13646 # Fast installation is not necessary 13647 enable_fast_install=needless 13648fi 13649 13650striplib= 13651old_striplib= 13652echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 13653echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 13654if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 13655 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 13656 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 13657 echo "$as_me:$LINENO: result: yes" >&5 13658echo "${ECHO_T}yes" >&6 13659else 13660# FIXME - insert some real tests, host_os isn't really good enough 13661 case $host_os in 13662 darwin*) 13663 if test -n "$STRIP" ; then 13664 striplib="$STRIP -x" 13665 echo "$as_me:$LINENO: result: yes" >&5 13666echo "${ECHO_T}yes" >&6 13667 else 13668 echo "$as_me:$LINENO: result: no" >&5 13669echo "${ECHO_T}no" >&6 13670fi 13671 ;; 13672 *) 13673 echo "$as_me:$LINENO: result: no" >&5 13674echo "${ECHO_T}no" >&6 13675 ;; 13676 esac 13677fi 13678 13679echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 13680echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 13681library_names_spec= 13682libname_spec='lib$name' 13683soname_spec= 13684shrext=".so" 13685postinstall_cmds= 13686postuninstall_cmds= 13687finish_cmds= 13688finish_eval= 13689shlibpath_var= 13690shlibpath_overrides_runpath=unknown 13691version_type=none 13692dynamic_linker="$host_os ld.so" 13693sys_lib_dlsearch_path_spec="/lib /usr/lib" 13694if test "$GCC" = yes; then 13695 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13696 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 13697 # if the path contains ";" then we assume it to be the separator 13698 # otherwise default to the standard path separator (i.e. ":") - it is 13699 # assumed that no part of a normal pathname contains ";" but that should 13700 # okay in the real world where ";" in dirpaths is itself problematic. 13701 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13702 else 13703 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13704 fi 13705else 13706 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 13707fi 13708need_lib_prefix=unknown 13709hardcode_into_libs=no 13710 13711# when you set need_version to no, make sure it does not cause -set_version 13712# flags to be left without arguments 13713need_version=unknown 13714 13715case $host_os in 13716aix3*) 13717 version_type=linux 13718 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 13719 shlibpath_var=LIBPATH 13720 13721 # AIX 3 has no versioning support, so we append a major version to the name. 13722 soname_spec='${libname}${release}${shared_ext}$major' 13723 ;; 13724 13725aix4* | aix5*) 13726 version_type=linux 13727 need_lib_prefix=no 13728 need_version=no 13729 hardcode_into_libs=yes 13730 if test "$host_cpu" = ia64; then 13731 # AIX 5 supports IA64 13732 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 13733 shlibpath_var=LD_LIBRARY_PATH 13734 else 13735 # With GCC up to 2.95.x, collect2 would create an import file 13736 # for dependence libraries. The import file would start with 13737 # the line `#! .'. This would cause the generated library to 13738 # depend on `.', always an invalid library. This was fixed in 13739 # development snapshots of GCC prior to 3.0. 13740 case $host_os in 13741 aix4 | aix4.[01] | aix4.[01].*) 13742 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13743 echo ' yes ' 13744 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 13745 : 13746 else 13747 can_build_shared=no 13748 fi 13749 ;; 13750 esac 13751 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 13752 # soname into executable. Probably we can add versioning support to 13753 # collect2, so additional links can be useful in future. 13754 if test "$aix_use_runtimelinking" = yes; then 13755 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13756 # instead of lib<name>.a to let people know that these are not 13757 # typical AIX shared libraries. 13758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13759 else 13760 # We preserve .a as extension for shared libraries through AIX4.2 13761 # and later when we are not doing run time linking. 13762 library_names_spec='${libname}${release}.a $libname.a' 13763 soname_spec='${libname}${release}${shared_ext}$major' 13764 fi 13765 shlibpath_var=LIBPATH 13766 fi 13767 ;; 13768 13769amigaos*) 13770 library_names_spec='$libname.ixlibrary $libname.a' 13771 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13772 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' 13773 ;; 13774 13775beos*) 13776 library_names_spec='${libname}${shared_ext}' 13777 dynamic_linker="$host_os ld.so" 13778 shlibpath_var=LIBRARY_PATH 13779 ;; 13780 13781bsdi4*) 13782 version_type=linux 13783 need_version=no 13784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13785 soname_spec='${libname}${release}${shared_ext}$major' 13786 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13787 shlibpath_var=LD_LIBRARY_PATH 13788 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13789 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13790 # the default ld.so.conf also contains /usr/contrib/lib and 13791 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13792 # libtool to hard-code these into programs 13793 ;; 13794 13795cygwin* | mingw* | pw32*) 13796 version_type=windows 13797 shrext=".dll" 13798 need_version=no 13799 need_lib_prefix=no 13800 13801 case $GCC,$host_os in 13802 yes,cygwin* | yes,mingw* | yes,pw32*) 13803 library_names_spec='$libname.dll.a' 13804 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13805 postinstall_cmds='base_file=`basename \${file}`~ 13806 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 13807 dldir=$destdir/`dirname \$dlpath`~ 13808 test -d \$dldir || mkdir -p \$dldir~ 13809 $install_prog $dir/$dlname \$dldir/$dlname' 13810 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13811 dlpath=$dir/\$dldll~ 13812 $rm \$dlpath' 13813 shlibpath_overrides_runpath=yes 13814 13815 case $host_os in 13816 cygwin*) 13817 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13818 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13819 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" 13820 ;; 13821 mingw*) 13822 # MinGW DLLs use traditional 'lib' prefix 13823 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13824 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13825 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 13826 # It is most probably a Windows format PATH printed by 13827 # mingw gcc, but we are running on Cygwin. Gcc prints its search 13828 # path with ; separators, and with drive letters. We can handle the 13829 # drive letters (cygwin fileutils understands them), so leave them, 13830 # especially as we might pass files found there to a mingw objdump, 13831 # which wouldn't understand a cygwinified path. Ahh. 13832 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13833 else 13834 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13835 fi 13836 ;; 13837 pw32*) 13838 # pw32 DLLs use 'pw' prefix rather than 'lib' 13839 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 13840 ;; 13841 esac 13842 ;; 13843 13844 *) 13845 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13846 ;; 13847 esac 13848 dynamic_linker='Win32 ld.exe' 13849 # FIXME: first we should search . and the directory the executable is in 13850 shlibpath_var=PATH 13851 ;; 13852 13853darwin* | rhapsody*) 13854 dynamic_linker="$host_os dyld" 13855 version_type=darwin 13856 need_lib_prefix=no 13857 need_version=no 13858 # FIXME: Relying on posixy $() will cause problems for 13859 # cross-compilation, but unfortunately the echo tests do not 13860 # yet detect zsh echo's removal of \ escapes. 13861 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13862 soname_spec='${libname}${release}${major}$shared_ext' 13863 shlibpath_overrides_runpath=yes 13864 shlibpath_var=DYLD_LIBRARY_PATH 13865 shrext='$(test .$module = .yes && echo .so || echo .dylib)' 13866 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 13867 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then 13868 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"` 13869 fi 13870 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13871 ;; 13872 13873dgux*) 13874 version_type=linux 13875 need_lib_prefix=no 13876 need_version=no 13877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13878 soname_spec='${libname}${release}${shared_ext}$major' 13879 shlibpath_var=LD_LIBRARY_PATH 13880 ;; 13881 13882freebsd1*) 13883 dynamic_linker=no 13884 ;; 13885 13886freebsd*) 13887 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 13888 version_type=freebsd-$objformat 13889 case $version_type in 13890 freebsd-elf*) 13891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13892 need_version=no 13893 need_lib_prefix=no 13894 ;; 13895 freebsd-*) 13896 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 13897 need_version=yes 13898 ;; 13899 esac 13900 shlibpath_var=LD_LIBRARY_PATH 13901 case $host_os in 13902 freebsd2*) 13903 shlibpath_overrides_runpath=yes 13904 ;; 13905 freebsd3.01* | freebsdelf3.01*) 13906 shlibpath_overrides_runpath=yes 13907 hardcode_into_libs=yes 13908 ;; 13909 *) # from 3.2 on 13910 shlibpath_overrides_runpath=no 13911 hardcode_into_libs=yes 13912 ;; 13913 esac 13914 ;; 13915 13916gnu*) 13917 version_type=linux 13918 need_lib_prefix=no 13919 need_version=no 13920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13921 soname_spec='${libname}${release}${shared_ext}$major' 13922 shlibpath_var=LD_LIBRARY_PATH 13923 hardcode_into_libs=yes 13924 ;; 13925 13926hpux9* | hpux10* | hpux11*) 13927 # Give a soname corresponding to the major version so that dld.sl refuses to 13928 # link against other versions. 13929 version_type=sunos 13930 need_lib_prefix=no 13931 need_version=no 13932 case "$host_cpu" in 13933 ia64*) 13934 shrext='.so' 13935 hardcode_into_libs=yes 13936 dynamic_linker="$host_os dld.so" 13937 shlibpath_var=LD_LIBRARY_PATH 13938 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13940 soname_spec='${libname}${release}${shared_ext}$major' 13941 if test "X$HPUX_IA64_MODE" = X32; then 13942 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13943 else 13944 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13945 fi 13946 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13947 ;; 13948 hppa*64*) 13949 shrext='.sl' 13950 hardcode_into_libs=yes 13951 dynamic_linker="$host_os dld.sl" 13952 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13953 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13955 soname_spec='${libname}${release}${shared_ext}$major' 13956 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13957 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13958 ;; 13959 *) 13960 shrext='.sl' 13961 dynamic_linker="$host_os dld.sl" 13962 shlibpath_var=SHLIB_PATH 13963 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13965 soname_spec='${libname}${release}${shared_ext}$major' 13966 ;; 13967 esac 13968 # HP-UX runs *really* slowly unless shared libraries are mode 555. 13969 postinstall_cmds='chmod 555 $lib' 13970 ;; 13971 13972irix5* | irix6* | nonstopux*) 13973 case $host_os in 13974 nonstopux*) version_type=nonstopux ;; 13975 *) 13976 if test "$lt_cv_prog_gnu_ld" = yes; then 13977 version_type=linux 13978 else 13979 version_type=irix 13980 fi ;; 13981 esac 13982 need_lib_prefix=no 13983 need_version=no 13984 soname_spec='${libname}${release}${shared_ext}$major' 13985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 13986 case $host_os in 13987 irix5* | nonstopux*) 13988 libsuff= shlibsuff= 13989 ;; 13990 *) 13991 case $LD in # libtool.m4 will add one of these switches to LD 13992 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13993 libsuff= shlibsuff= libmagic=32-bit;; 13994 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13995 libsuff=32 shlibsuff=N32 libmagic=N32;; 13996 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13997 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13998 *) libsuff= shlibsuff= libmagic=never-match;; 13999 esac 14000 ;; 14001 esac 14002 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14003 shlibpath_overrides_runpath=no 14004 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 14005 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 14006 hardcode_into_libs=yes 14007 ;; 14008 14009# No shared lib support for Linux oldld, aout, or coff. 14010linux*oldld* | linux*aout* | linux*coff*) 14011 dynamic_linker=no 14012 ;; 14013 14014# This must be Linux ELF. 14015linux*) 14016 version_type=linux 14017 need_lib_prefix=no 14018 need_version=no 14019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14020 soname_spec='${libname}${release}${shared_ext}$major' 14021 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14022 shlibpath_var=LD_LIBRARY_PATH 14023 shlibpath_overrides_runpath=no 14024 # This implies no fast_install, which is unacceptable. 14025 # Some rework will be needed to allow for fast_install 14026 # before this can be enabled. 14027 hardcode_into_libs=yes 14028 14029 # We used to test for /lib/ld.so.1 and disable shared libraries on 14030 # powerpc, because MkLinux only supported shared libraries with the 14031 # GNU dynamic linker. Since this was broken with cross compilers, 14032 # most powerpc-linux boxes support dynamic linking these days and 14033 # people can always --disable-shared, the test was removed, and we 14034 # assume the GNU/Linux dynamic linker is in use. 14035 dynamic_linker='GNU/Linux ld.so' 14036 ;; 14037 14038netbsd*) 14039 version_type=sunos 14040 need_lib_prefix=no 14041 need_version=no 14042 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14044 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14045 dynamic_linker='NetBSD (a.out) ld.so' 14046 else 14047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' 14048 soname_spec='${libname}${release}${shared_ext}$major' 14049 dynamic_linker='NetBSD ld.elf_so' 14050 fi 14051 shlibpath_var=LD_LIBRARY_PATH 14052 shlibpath_overrides_runpath=yes 14053 hardcode_into_libs=yes 14054 ;; 14055 14056newsos6) 14057 version_type=linux 14058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14059 shlibpath_var=LD_LIBRARY_PATH 14060 shlibpath_overrides_runpath=yes 14061 ;; 14062 14063nto-qnx) 14064 version_type=linux 14065 need_lib_prefix=no 14066 need_version=no 14067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14068 soname_spec='${libname}${release}${shared_ext}$major' 14069 shlibpath_var=LD_LIBRARY_PATH 14070 shlibpath_overrides_runpath=yes 14071 ;; 14072 14073openbsd*) 14074 version_type=sunos 14075 need_lib_prefix=no 14076 need_version=no 14077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14078 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14079 shlibpath_var=LD_LIBRARY_PATH 14080 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14081 case $host_os in 14082 openbsd2.[89] | openbsd2.[89].*) 14083 shlibpath_overrides_runpath=no 14084 ;; 14085 *) 14086 shlibpath_overrides_runpath=yes 14087 ;; 14088 esac 14089 else 14090 shlibpath_overrides_runpath=yes 14091 fi 14092 ;; 14093 14094os2*) 14095 libname_spec='$name' 14096 shrext=".dll" 14097 need_lib_prefix=no 14098 library_names_spec='$libname${shared_ext} $libname.a' 14099 dynamic_linker='OS/2 ld.exe' 14100 shlibpath_var=LIBPATH 14101 ;; 14102 14103osf3* | osf4* | osf5*) 14104 version_type=osf 14105 need_lib_prefix=no 14106 need_version=no 14107 soname_spec='${libname}${release}${shared_ext}$major' 14108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14109 shlibpath_var=LD_LIBRARY_PATH 14110 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14111 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 14112 ;; 14113 14114sco3.2v5*) 14115 version_type=osf 14116 soname_spec='${libname}${release}${shared_ext}$major' 14117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14118 shlibpath_var=LD_LIBRARY_PATH 14119 ;; 14120 14121solaris*) 14122 version_type=linux 14123 need_lib_prefix=no 14124 need_version=no 14125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14126 soname_spec='${libname}${release}${shared_ext}$major' 14127 shlibpath_var=LD_LIBRARY_PATH 14128 shlibpath_overrides_runpath=yes 14129 hardcode_into_libs=yes 14130 # ldd complains unless libraries are executable 14131 postinstall_cmds='chmod +x $lib' 14132 ;; 14133 14134sunos4*) 14135 version_type=sunos 14136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14137 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14138 shlibpath_var=LD_LIBRARY_PATH 14139 shlibpath_overrides_runpath=yes 14140 if test "$with_gnu_ld" = yes; then 14141 need_lib_prefix=no 14142 fi 14143 need_version=yes 14144 ;; 14145 14146sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 14147 version_type=linux 14148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14149 soname_spec='${libname}${release}${shared_ext}$major' 14150 shlibpath_var=LD_LIBRARY_PATH 14151 case $host_vendor in 14152 sni) 14153 shlibpath_overrides_runpath=no 14154 need_lib_prefix=no 14155 export_dynamic_flag_spec='${wl}-Blargedynsym' 14156 runpath_var=LD_RUN_PATH 14157 ;; 14158 siemens) 14159 need_lib_prefix=no 14160 ;; 14161 motorola) 14162 need_lib_prefix=no 14163 need_version=no 14164 shlibpath_overrides_runpath=no 14165 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14166 ;; 14167 esac 14168 ;; 14169 14170sysv4*MP*) 14171 if test -d /usr/nec ;then 14172 version_type=linux 14173 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 14174 soname_spec='$libname${shared_ext}.$major' 14175 shlibpath_var=LD_LIBRARY_PATH 14176 fi 14177 ;; 14178 14179uts4*) 14180 version_type=linux 14181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14182 soname_spec='${libname}${release}${shared_ext}$major' 14183 shlibpath_var=LD_LIBRARY_PATH 14184 ;; 14185 14186*) 14187 dynamic_linker=no 14188 ;; 14189esac 14190echo "$as_me:$LINENO: result: $dynamic_linker" >&5 14191echo "${ECHO_T}$dynamic_linker" >&6 14192test "$dynamic_linker" = no && can_build_shared=no 14193 14194 14195# The else clause should only fire when bootstrapping the 14196# libtool distribution, otherwise you forgot to ship ltmain.sh 14197# with your package, and you will get complaints that there are 14198# no rules to generate ltmain.sh. 14199if test -f "$ltmain"; then 14200 # See if we are running on zsh, and set the options which allow our commands through 14201 # without removal of \ escapes. 14202 if test -n "${ZSH_VERSION+set}" ; then 14203 setopt NO_GLOB_SUBST 14204 fi 14205 # Now quote all the things that may contain metacharacters while being 14206 # careful not to overquote the AC_SUBSTed values. We take copies of the 14207 # variables and quote the copies for generation of the libtool script. 14208 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ 14209 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 14210 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 14211 deplibs_check_method reload_flag reload_cmds need_locks \ 14212 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 14213 lt_cv_sys_global_symbol_to_c_name_address \ 14214 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 14215 old_postinstall_cmds old_postuninstall_cmds \ 14216 compiler_F77 \ 14217 CC_F77 \ 14218 LD_F77 \ 14219 lt_prog_compiler_wl_F77 \ 14220 lt_prog_compiler_pic_F77 \ 14221 lt_prog_compiler_static_F77 \ 14222 lt_prog_compiler_no_builtin_flag_F77 \ 14223 export_dynamic_flag_spec_F77 \ 14224 thread_safe_flag_spec_F77 \ 14225 whole_archive_flag_spec_F77 \ 14226 enable_shared_with_static_runtimes_F77 \ 14227 old_archive_cmds_F77 \ 14228 old_archive_from_new_cmds_F77 \ 14229 predep_objects_F77 \ 14230 postdep_objects_F77 \ 14231 predeps_F77 \ 14232 postdeps_F77 \ 14233 compiler_lib_search_path_F77 \ 14234 archive_cmds_F77 \ 14235 archive_expsym_cmds_F77 \ 14236 postinstall_cmds_F77 \ 14237 postuninstall_cmds_F77 \ 14238 old_archive_from_expsyms_cmds_F77 \ 14239 allow_undefined_flag_F77 \ 14240 no_undefined_flag_F77 \ 14241 export_symbols_cmds_F77 \ 14242 hardcode_libdir_flag_spec_F77 \ 14243 hardcode_libdir_flag_spec_ld_F77 \ 14244 hardcode_libdir_separator_F77 \ 14245 hardcode_automatic_F77 \ 14246 module_cmds_F77 \ 14247 module_expsym_cmds_F77 \ 14248 lt_cv_prog_compiler_c_o_F77 \ 14249 exclude_expsyms_F77 \ 14250 include_expsyms_F77; do 14251 14252 case $var in 14253 old_archive_cmds_F77 | \ 14254 old_archive_from_new_cmds_F77 | \ 14255 archive_cmds_F77 | \ 14256 archive_expsym_cmds_F77 | \ 14257 module_cmds_F77 | \ 14258 module_expsym_cmds_F77 | \ 14259 old_archive_from_expsyms_cmds_F77 | \ 14260 export_symbols_cmds_F77 | \ 14261 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 14262 postinstall_cmds | postuninstall_cmds | \ 14263 old_postinstall_cmds | old_postuninstall_cmds | \ 14264 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 14265 # Double-quote double-evaled strings. 14266 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 14267 ;; 14268 *) 14269 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 14270 ;; 14271 esac 14272 done 14273 14274 case $lt_echo in 14275 *'\$0 --fallback-echo"') 14276 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 14277 ;; 14278 esac 14279 14280cfgfile="$ofile" 14281 14282 cat <<__EOF__ >> "$cfgfile" 14283# ### BEGIN LIBTOOL TAG CONFIG: $tagname 14284 14285# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14286 14287# Shell to use when invoking shell scripts. 14288SHELL=$lt_SHELL 14289 14290# Whether or not to build shared libraries. 14291build_libtool_libs=$enable_shared 14292 14293# Whether or not to build static libraries. 14294build_old_libs=$enable_static 14295 14296# Whether or not to add -lc for building shared libraries. 14297build_libtool_need_lc=$archive_cmds_need_lc_F77 14298 14299# Whether or not to disallow shared libs when runtime libs are static 14300allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 14301 14302# Whether or not to optimize for fast installation. 14303fast_install=$enable_fast_install 14304 14305# The host system. 14306host_alias=$host_alias 14307host=$host 14308 14309# An echo program that does not interpret backslashes. 14310echo=$lt_echo 14311 14312# The archiver. 14313AR=$lt_AR 14314AR_FLAGS=$lt_AR_FLAGS 14315 14316# A C compiler. 14317LTCC=$lt_LTCC 14318 14319# A language-specific compiler. 14320CC=$lt_compiler_F77 14321 14322# Is the compiler the GNU C compiler? 14323with_gcc=$GCC_F77 14324 14325# An ERE matcher. 14326EGREP=$lt_EGREP 14327 14328# The linker used to build libraries. 14329LD=$lt_LD_F77 14330 14331# Whether we need hard or soft links. 14332LN_S=$lt_LN_S 14333 14334# A BSD-compatible nm program. 14335NM=$lt_NM 14336 14337# A symbol stripping program 14338STRIP=$STRIP 14339 14340# Used to examine libraries when file_magic_cmd begins "file" 14341MAGIC_CMD=$MAGIC_CMD 14342 14343# Used on cygwin: DLL creation program. 14344DLLTOOL="$DLLTOOL" 14345 14346# Used on cygwin: object dumper. 14347OBJDUMP="$OBJDUMP" 14348 14349# Used on cygwin: assembler. 14350AS="$AS" 14351 14352# The name of the directory that contains temporary libtool files. 14353objdir=$objdir 14354 14355# How to create reloadable object files. 14356reload_flag=$lt_reload_flag 14357reload_cmds=$lt_reload_cmds 14358 14359# How to pass a linker flag through the compiler. 14360wl=$lt_lt_prog_compiler_wl_F77 14361 14362# Object file suffix (normally "o"). 14363objext="$ac_objext" 14364 14365# Old archive suffix (normally "a"). 14366libext="$libext" 14367 14368# Shared library suffix (normally ".so"). 14369shrext='$shrext' 14370 14371# Executable file suffix (normally ""). 14372exeext="$exeext" 14373 14374# Additional compiler flags for building library objects. 14375pic_flag=$lt_lt_prog_compiler_pic_F77 14376pic_mode=$pic_mode 14377 14378# What is the maximum length of a command? 14379max_cmd_len=$lt_cv_sys_max_cmd_len 14380 14381# Does compiler simultaneously support -c and -o options? 14382compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 14383 14384# Must we lock files when doing compilation ? 14385need_locks=$lt_need_locks 14386 14387# Do we need the lib prefix for modules? 14388need_lib_prefix=$need_lib_prefix 14389 14390# Do we need a version for libraries? 14391need_version=$need_version 14392 14393# Whether dlopen is supported. 14394dlopen_support=$enable_dlopen 14395 14396# Whether dlopen of programs is supported. 14397dlopen_self=$enable_dlopen_self 14398 14399# Whether dlopen of statically linked programs is supported. 14400dlopen_self_static=$enable_dlopen_self_static 14401 14402# Compiler flag to prevent dynamic linking. 14403link_static_flag=$lt_lt_prog_compiler_static_F77 14404 14405# Compiler flag to turn off builtin functions. 14406no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 14407 14408# Compiler flag to allow reflexive dlopens. 14409export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 14410 14411# Compiler flag to generate shared objects directly from archives. 14412whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 14413 14414# Compiler flag to generate thread-safe objects. 14415thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 14416 14417# Library versioning type. 14418version_type=$version_type 14419 14420# Format of library name prefix. 14421libname_spec=$lt_libname_spec 14422 14423# List of archive names. First name is the real one, the rest are links. 14424# The last name is the one that the linker finds with -lNAME. 14425library_names_spec=$lt_library_names_spec 14426 14427# The coded name of the library, if different from the real name. 14428soname_spec=$lt_soname_spec 14429 14430# Commands used to build and install an old-style archive. 14431RANLIB=$lt_RANLIB 14432old_archive_cmds=$lt_old_archive_cmds_F77 14433old_postinstall_cmds=$lt_old_postinstall_cmds 14434old_postuninstall_cmds=$lt_old_postuninstall_cmds 14435 14436# Create an old-style archive from a shared archive. 14437old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 14438 14439# Create a temporary old-style archive to link instead of a shared archive. 14440old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 14441 14442# Commands used to build and install a shared archive. 14443archive_cmds=$lt_archive_cmds_F77 14444archive_expsym_cmds=$lt_archive_expsym_cmds_F77 14445postinstall_cmds=$lt_postinstall_cmds 14446postuninstall_cmds=$lt_postuninstall_cmds 14447 14448# Commands used to build a loadable module (assumed same as above if empty) 14449module_cmds=$lt_module_cmds_F77 14450module_expsym_cmds=$lt_module_expsym_cmds_F77 14451 14452# Commands to strip libraries. 14453old_striplib=$lt_old_striplib 14454striplib=$lt_striplib 14455 14456# Dependencies to place before the objects being linked to create a 14457# shared library. 14458predep_objects=$lt_predep_objects_F77 14459 14460# Dependencies to place after the objects being linked to create a 14461# shared library. 14462postdep_objects=$lt_postdep_objects_F77 14463 14464# Dependencies to place before the objects being linked to create a 14465# shared library. 14466predeps=$lt_predeps_F77 14467 14468# Dependencies to place after the objects being linked to create a 14469# shared library. 14470postdeps=$lt_postdeps_F77 14471 14472# The library search path used internally by the compiler when linking 14473# a shared library. 14474compiler_lib_search_path=$lt_compiler_lib_search_path_F77 14475 14476# Method to check whether dependent libraries are shared objects. 14477deplibs_check_method=$lt_deplibs_check_method 14478 14479# Command to use when deplibs_check_method == file_magic. 14480file_magic_cmd=$lt_file_magic_cmd 14481 14482# Flag that allows shared libraries with undefined symbols to be built. 14483allow_undefined_flag=$lt_allow_undefined_flag_F77 14484 14485# Flag that forces no undefined symbols. 14486no_undefined_flag=$lt_no_undefined_flag_F77 14487 14488# Commands used to finish a libtool library installation in a directory. 14489finish_cmds=$lt_finish_cmds 14490 14491# Same as above, but a single script fragment to be evaled but not shown. 14492finish_eval=$lt_finish_eval 14493 14494# Take the output of nm and produce a listing of raw symbols and C names. 14495global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14496 14497# Transform the output of nm in a proper C declaration 14498global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14499 14500# Transform the output of nm in a C name address pair 14501global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14502 14503# This is the shared library runtime path variable. 14504runpath_var=$runpath_var 14505 14506# This is the shared library path variable. 14507shlibpath_var=$shlibpath_var 14508 14509# Is shlibpath searched before the hard-coded library search path? 14510shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14511 14512# How to hardcode a shared library path into an executable. 14513hardcode_action=$hardcode_action_F77 14514 14515# Whether we should hardcode library paths into libraries. 14516hardcode_into_libs=$hardcode_into_libs 14517 14518# Flag to hardcode \$libdir into a binary during linking. 14519# This must work even if \$libdir does not exist. 14520hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 14521 14522# If ld is used when linking, flag to hardcode \$libdir into 14523# a binary during linking. This must work even if \$libdir does 14524# not exist. 14525hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 14526 14527# Whether we need a single -rpath flag with a separated argument. 14528hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 14529 14530# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 14531# resulting binary. 14532hardcode_direct=$hardcode_direct_F77 14533 14534# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 14535# resulting binary. 14536hardcode_minus_L=$hardcode_minus_L_F77 14537 14538# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 14539# the resulting binary. 14540hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 14541 14542# Set to yes if building a shared library automatically hardcodes DIR into the library 14543# and all subsequent libraries and executables linked against it. 14544hardcode_automatic=$hardcode_automatic_F77 14545 14546# Variables whose values should be saved in libtool wrapper scripts and 14547# restored at relink time. 14548variables_saved_for_relink="$variables_saved_for_relink" 14549 14550# Whether libtool must link a program against all its dependency libraries. 14551link_all_deplibs=$link_all_deplibs_F77 14552 14553# Compile-time system search path for libraries 14554sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14555 14556# Run-time system search path for libraries 14557sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14558 14559# Fix the shell variable \$srcfile for the compiler. 14560fix_srcfile_path="$fix_srcfile_path_F77" 14561 14562# Set to yes if exported symbols are required. 14563always_export_symbols=$always_export_symbols_F77 14564 14565# The commands to list exported symbols. 14566export_symbols_cmds=$lt_export_symbols_cmds_F77 14567 14568# The commands to extract the exported symbol list from a shared archive. 14569extract_expsyms_cmds=$lt_extract_expsyms_cmds 14570 14571# Symbols that should not be listed in the preloaded symbols. 14572exclude_expsyms=$lt_exclude_expsyms_F77 14573 14574# Symbols that must always be exported. 14575include_expsyms=$lt_include_expsyms_F77 14576 14577# ### END LIBTOOL TAG CONFIG: $tagname 14578 14579__EOF__ 14580 14581 14582else 14583 # If there is no Makefile yet, we rely on a make rule to execute 14584 # `config.status --recheck' to rerun these tests and create the 14585 # libtool script then. 14586 test -f Makefile && make "$ltmain" 14587fi 14588 14589 14590ac_ext=c 14591ac_cpp='$CPP $CPPFLAGS' 14592ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14593ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14594ac_compiler_gnu=$ac_cv_c_compiler_gnu 14595 14596CC="$lt_save_CC" 14597 14598 else 14599 tagname="" 14600 fi 14601 ;; 14602 14603 GCJ) 14604 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 14605 14606 14607 14608# Source file extension for Java test sources. 14609ac_ext=java 14610 14611# Object file extension for compiled Java test sources. 14612objext=o 14613objext_GCJ=$objext 14614 14615# Code to be used in simple compile tests 14616lt_simple_compile_test_code="class foo {}\n" 14617 14618# Code to be used in simple link tests 14619lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n' 14620 14621# ltmain only uses $CC for tagged configurations so make sure $CC is set. 14622 14623# If no C compiler was specified, use CC. 14624LTCC=${LTCC-"$CC"} 14625 14626# Allow CC to be a program name with arguments. 14627compiler=$CC 14628 14629 14630# Allow CC to be a program name with arguments. 14631lt_save_CC="$CC" 14632CC=${GCJ-"gcj"} 14633compiler=$CC 14634compiler_GCJ=$CC 14635 14636# GCJ did not exist at the time GCC didn't implicitly link libc in. 14637archive_cmds_need_lc_GCJ=no 14638 14639 14640lt_prog_compiler_no_builtin_flag_GCJ= 14641 14642if test "$GCC" = yes; then 14643 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 14644 14645 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 14646echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 14647if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 14648 echo $ECHO_N "(cached) $ECHO_C" >&6 14649else 14650 lt_cv_prog_compiler_rtti_exceptions=no 14651 ac_outfile=conftest.$ac_objext 14652 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14653 lt_compiler_flag="-fno-rtti -fno-exceptions" 14654 # Insert the option either (1) after the last *FLAGS variable, or 14655 # (2) before a word containing "conftest.", or (3) at the end. 14656 # Note that $ac_compile itself does not contain backslashes and begins 14657 # with a dollar sign (not a hyphen), so the echo should work correctly. 14658 # The option is referenced via a variable to avoid confusing sed. 14659 lt_compile=`echo "$ac_compile" | $SED \ 14660 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 14661 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14662 -e 's:$: $lt_compiler_flag:'` 14663 (eval echo "\"\$as_me:14663: $lt_compile\"" >&5) 14664 (eval "$lt_compile" 2>conftest.err) 14665 ac_status=$? 14666 cat conftest.err >&5 14667 echo "$as_me:14667: \$? = $ac_status" >&5 14668 if (exit $ac_status) && test -s "$ac_outfile"; then 14669 # The compiler can only warn and ignore the option if not recognized 14670 # So say no if there are warnings 14671 if test ! -s conftest.err; then 14672 lt_cv_prog_compiler_rtti_exceptions=yes 14673 fi 14674 fi 14675 $rm conftest* 14676 14677fi 14678echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 14679echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 14680 14681if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 14682 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 14683else 14684 : 14685fi 14686 14687fi 14688 14689lt_prog_compiler_wl_GCJ= 14690lt_prog_compiler_pic_GCJ= 14691lt_prog_compiler_static_GCJ= 14692 14693echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 14694echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 14695 14696 if test "$GCC" = yes; then 14697 lt_prog_compiler_wl_GCJ='-Wl,' 14698 lt_prog_compiler_static_GCJ='-static' 14699 14700 case $host_os in 14701 aix*) 14702 # All AIX code is PIC. 14703 if test "$host_cpu" = ia64; then 14704 # AIX 5 now supports IA64 processor 14705 lt_prog_compiler_static_GCJ='-Bstatic' 14706 fi 14707 ;; 14708 14709 amigaos*) 14710 # FIXME: we need at least 68020 code to build shared libraries, but 14711 # adding the `-m68020' flag to GCC prevents building anything better, 14712 # like `-m68040'. 14713 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 14714 ;; 14715 14716 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14717 # PIC is the default for these OSes. 14718 ;; 14719 14720 mingw* | pw32* | os2*) 14721 # This hack is so that the source file can tell whether it is being 14722 # built for inclusion in a dll (and should export symbols for example). 14723 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 14724 ;; 14725 14726 darwin* | rhapsody*) 14727 # PIC is the default on this platform 14728 # Common symbols not allowed in MH_DYLIB files 14729 lt_prog_compiler_pic_GCJ='-fno-common' 14730 ;; 14731 14732 msdosdjgpp*) 14733 # Just because we use GCC doesn't mean we suddenly get shared libraries 14734 # on systems that don't support them. 14735 lt_prog_compiler_can_build_shared_GCJ=no 14736 enable_shared=no 14737 ;; 14738 14739 sysv4*MP*) 14740 if test -d /usr/nec; then 14741 lt_prog_compiler_pic_GCJ=-Kconform_pic 14742 fi 14743 ;; 14744 14745 hpux*) 14746 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14747 # not for PA HP-UX. 14748 case "$host_cpu" in 14749 hppa*64*|ia64*) 14750 # +Z the default 14751 ;; 14752 *) 14753 lt_prog_compiler_pic_GCJ='-fPIC' 14754 ;; 14755 esac 14756 ;; 14757 14758 *) 14759 lt_prog_compiler_pic_GCJ='-fPIC' 14760 ;; 14761 esac 14762 else 14763 # PORTME Check for flag to pass linker flags through the system compiler. 14764 case $host_os in 14765 aix*) 14766 lt_prog_compiler_wl_GCJ='-Wl,' 14767 if test "$host_cpu" = ia64; then 14768 # AIX 5 now supports IA64 processor 14769 lt_prog_compiler_static_GCJ='-Bstatic' 14770 else 14771 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 14772 fi 14773 ;; 14774 14775 mingw* | pw32* | os2*) 14776 # This hack is so that the source file can tell whether it is being 14777 # built for inclusion in a dll (and should export symbols for example). 14778 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 14779 ;; 14780 14781 hpux9* | hpux10* | hpux11*) 14782 lt_prog_compiler_wl_GCJ='-Wl,' 14783 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14784 # not for PA HP-UX. 14785 case "$host_cpu" in 14786 hppa*64*|ia64*) 14787 # +Z the default 14788 ;; 14789 *) 14790 lt_prog_compiler_pic_GCJ='+Z' 14791 ;; 14792 esac 14793 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14794 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 14795 ;; 14796 14797 irix5* | irix6* | nonstopux*) 14798 lt_prog_compiler_wl_GCJ='-Wl,' 14799 # PIC (with -KPIC) is the default. 14800 lt_prog_compiler_static_GCJ='-non_shared' 14801 ;; 14802 14803 newsos6) 14804 lt_prog_compiler_pic_GCJ='-KPIC' 14805 lt_prog_compiler_static_GCJ='-Bstatic' 14806 ;; 14807 14808 linux*) 14809 case $CC in 14810 icc|ecc) 14811 lt_prog_compiler_wl_GCJ='-Wl,' 14812 lt_prog_compiler_pic_GCJ='-KPIC' 14813 lt_prog_compiler_static_GCJ='-static' 14814 ;; 14815 ccc) 14816 lt_prog_compiler_wl_GCJ='-Wl,' 14817 # All Alpha code is PIC. 14818 lt_prog_compiler_static_GCJ='-non_shared' 14819 ;; 14820 esac 14821 ;; 14822 14823 osf3* | osf4* | osf5*) 14824 lt_prog_compiler_wl_GCJ='-Wl,' 14825 # All OSF/1 code is PIC. 14826 lt_prog_compiler_static_GCJ='-non_shared' 14827 ;; 14828 14829 sco3.2v5*) 14830 lt_prog_compiler_pic_GCJ='-Kpic' 14831 lt_prog_compiler_static_GCJ='-dn' 14832 ;; 14833 14834 solaris*) 14835 lt_prog_compiler_wl_GCJ='-Wl,' 14836 lt_prog_compiler_pic_GCJ='-KPIC' 14837 lt_prog_compiler_static_GCJ='-Bstatic' 14838 ;; 14839 14840 sunos4*) 14841 lt_prog_compiler_wl_GCJ='-Qoption ld ' 14842 lt_prog_compiler_pic_GCJ='-PIC' 14843 lt_prog_compiler_static_GCJ='-Bstatic' 14844 ;; 14845 14846 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 14847 lt_prog_compiler_wl_GCJ='-Wl,' 14848 lt_prog_compiler_pic_GCJ='-KPIC' 14849 lt_prog_compiler_static_GCJ='-Bstatic' 14850 ;; 14851 14852 sysv4*MP*) 14853 if test -d /usr/nec ;then 14854 lt_prog_compiler_pic_GCJ='-Kconform_pic' 14855 lt_prog_compiler_static_GCJ='-Bstatic' 14856 fi 14857 ;; 14858 14859 uts4*) 14860 lt_prog_compiler_pic_GCJ='-pic' 14861 lt_prog_compiler_static_GCJ='-Bstatic' 14862 ;; 14863 14864 *) 14865 lt_prog_compiler_can_build_shared_GCJ=no 14866 ;; 14867 esac 14868 fi 14869 14870echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 14871echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 14872 14873# 14874# Check to make sure the PIC flag actually works. 14875# 14876if test -n "$lt_prog_compiler_pic_GCJ"; then 14877 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 14878echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 14879if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 14880 echo $ECHO_N "(cached) $ECHO_C" >&6 14881else 14882 lt_prog_compiler_pic_works_GCJ=no 14883 ac_outfile=conftest.$ac_objext 14884 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14885 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 14886 # Insert the option either (1) after the last *FLAGS variable, or 14887 # (2) before a word containing "conftest.", or (3) at the end. 14888 # Note that $ac_compile itself does not contain backslashes and begins 14889 # with a dollar sign (not a hyphen), so the echo should work correctly. 14890 # The option is referenced via a variable to avoid confusing sed. 14891 lt_compile=`echo "$ac_compile" | $SED \ 14892 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 14893 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14894 -e 's:$: $lt_compiler_flag:'` 14895 (eval echo "\"\$as_me:14895: $lt_compile\"" >&5) 14896 (eval "$lt_compile" 2>conftest.err) 14897 ac_status=$? 14898 cat conftest.err >&5 14899 echo "$as_me:14899: \$? = $ac_status" >&5 14900 if (exit $ac_status) && test -s "$ac_outfile"; then 14901 # The compiler can only warn and ignore the option if not recognized 14902 # So say no if there are warnings 14903 if test ! -s conftest.err; then 14904 lt_prog_compiler_pic_works_GCJ=yes 14905 fi 14906 fi 14907 $rm conftest* 14908 14909fi 14910echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 14911echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 14912 14913if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 14914 case $lt_prog_compiler_pic_GCJ in 14915 "" | " "*) ;; 14916 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 14917 esac 14918else 14919 lt_prog_compiler_pic_GCJ= 14920 lt_prog_compiler_can_build_shared_GCJ=no 14921fi 14922 14923fi 14924case "$host_os" in 14925 # For platforms which do not support PIC, -DPIC is meaningless: 14926 *djgpp*) 14927 lt_prog_compiler_pic_GCJ= 14928 ;; 14929 *) 14930 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 14931 ;; 14932esac 14933 14934echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14935echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 14936if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 14937 echo $ECHO_N "(cached) $ECHO_C" >&6 14938else 14939 lt_cv_prog_compiler_c_o_GCJ=no 14940 $rm -r conftest 2>/dev/null 14941 mkdir conftest 14942 cd conftest 14943 mkdir out 14944 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14945 14946 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers 14947 # that will create temporary files in the current directory regardless of 14948 # the output directory. Thus, making CWD read-only will cause this test 14949 # to fail, enabling locking or at least warning the user not to do parallel 14950 # builds. 14951 chmod -w . 14952 14953 lt_compiler_flag="-o out/conftest2.$ac_objext" 14954 # Insert the option either (1) after the last *FLAGS variable, or 14955 # (2) before a word containing "conftest.", or (3) at the end. 14956 # Note that $ac_compile itself does not contain backslashes and begins 14957 # with a dollar sign (not a hyphen), so the echo should work correctly. 14958 lt_compile=`echo "$ac_compile" | $SED \ 14959 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 14960 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14961 -e 's:$: $lt_compiler_flag:'` 14962 (eval echo "\"\$as_me:14962: $lt_compile\"" >&5) 14963 (eval "$lt_compile" 2>out/conftest.err) 14964 ac_status=$? 14965 cat out/conftest.err >&5 14966 echo "$as_me:14966: \$? = $ac_status" >&5 14967 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14968 then 14969 # The compiler can only warn and ignore the option if not recognized 14970 # So say no if there are warnings 14971 if test ! -s out/conftest.err; then 14972 lt_cv_prog_compiler_c_o_GCJ=yes 14973 fi 14974 fi 14975 chmod u+w . 14976 $rm conftest* out/* 14977 rmdir out 14978 cd .. 14979 rmdir conftest 14980 $rm conftest* 14981 14982fi 14983echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 14984echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 14985 14986 14987hard_links="nottested" 14988if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 14989 # do not overwrite the value of need_locks provided by the user 14990 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14991echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 14992 hard_links=yes 14993 $rm conftest* 14994 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14995 touch conftest.a 14996 ln conftest.a conftest.b 2>&5 || hard_links=no 14997 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14998 echo "$as_me:$LINENO: result: $hard_links" >&5 14999echo "${ECHO_T}$hard_links" >&6 15000 if test "$hard_links" = no; then 15001 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 15002echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 15003 need_locks=warn 15004 fi 15005else 15006 need_locks=no 15007fi 15008 15009echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15010echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 15011 15012 runpath_var= 15013 allow_undefined_flag_GCJ= 15014 enable_shared_with_static_runtimes_GCJ=no 15015 archive_cmds_GCJ= 15016 archive_expsym_cmds_GCJ= 15017 old_archive_From_new_cmds_GCJ= 15018 old_archive_from_expsyms_cmds_GCJ= 15019 export_dynamic_flag_spec_GCJ= 15020 whole_archive_flag_spec_GCJ= 15021 thread_safe_flag_spec_GCJ= 15022 hardcode_libdir_flag_spec_GCJ= 15023 hardcode_libdir_flag_spec_ld_GCJ= 15024 hardcode_libdir_separator_GCJ= 15025 hardcode_direct_GCJ=no 15026 hardcode_minus_L_GCJ=no 15027 hardcode_shlibpath_var_GCJ=unsupported 15028 link_all_deplibs_GCJ=unknown 15029 hardcode_automatic_GCJ=no 15030 module_cmds_GCJ= 15031 module_expsym_cmds_GCJ= 15032 always_export_symbols_GCJ=no 15033 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15034 # include_expsyms should be a list of space-separated symbols to be *always* 15035 # included in the symbol list 15036 include_expsyms_GCJ= 15037 # exclude_expsyms can be an extended regexp of symbols to exclude 15038 # it will be wrapped by ` (' and `)$', so one must not match beginning or 15039 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 15040 # as well as any symbol that contains `d'. 15041 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 15042 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 15043 # platforms (ab)use it in PIC code, but their linkers get confused if 15044 # the symbol is explicitly referenced. Since portable code cannot 15045 # rely on this symbol name, it's probably fine to never include it in 15046 # preloaded symbol tables. 15047 extract_expsyms_cmds= 15048 15049 case $host_os in 15050 cygwin* | mingw* | pw32*) 15051 # FIXME: the MSVC++ port hasn't been tested in a loooong time 15052 # When not using gcc, we currently assume that we are using 15053 # Microsoft Visual C++. 15054 if test "$GCC" != yes; then 15055 with_gnu_ld=no 15056 fi 15057 ;; 15058 openbsd*) 15059 with_gnu_ld=no 15060 ;; 15061 esac 15062 15063 ld_shlibs_GCJ=yes 15064 if test "$with_gnu_ld" = yes; then 15065 # If archive_cmds runs LD, not CC, wlarc should be empty 15066 wlarc='${wl}' 15067 15068 # See if GNU ld supports shared libraries. 15069 case $host_os in 15070 aix3* | aix4* | aix5*) 15071 # On AIX/PPC, the GNU linker is very broken 15072 if test "$host_cpu" != ia64; then 15073 ld_shlibs_GCJ=no 15074 cat <<EOF 1>&2 15075 15076*** Warning: the GNU linker, at least up to release 2.9.1, is reported 15077*** to be unable to reliably create shared libraries on AIX. 15078*** Therefore, libtool is disabling shared libraries support. If you 15079*** really care for shared libraries, you may want to modify your PATH 15080*** so that a non-GNU linker is found, and then restart. 15081 15082EOF 15083 fi 15084 ;; 15085 15086 amigaos*) 15087 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)' 15088 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15089 hardcode_minus_L_GCJ=yes 15090 15091 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 15092 # that the semantics of dynamic libraries on AmigaOS, at least up 15093 # to version 4, is to share data among multiple programs linked 15094 # with the same dynamic library. Since this doesn't match the 15095 # behavior of shared libraries on other platforms, we can't use 15096 # them. 15097 ld_shlibs_GCJ=no 15098 ;; 15099 15100 beos*) 15101 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15102 allow_undefined_flag_GCJ=unsupported 15103 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 15104 # support --undefined. This deserves some investigation. FIXME 15105 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15106 else 15107 ld_shlibs_GCJ=no 15108 fi 15109 ;; 15110 15111 cygwin* | mingw* | pw32*) 15112 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 15113 # as there is no search path for DLLs. 15114 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15115 allow_undefined_flag_GCJ=unsupported 15116 always_export_symbols_GCJ=no 15117 enable_shared_with_static_runtimes_GCJ=yes 15118 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 15119 15120 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 15121 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 15122 # If the export-symbols file already is a .def file (1st line 15123 # is EXPORTS), use it as is; otherwise, prepend... 15124 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 15125 cp $export_symbols $output_objdir/$soname.def; 15126 else 15127 echo EXPORTS > $output_objdir/$soname.def; 15128 cat $export_symbols >> $output_objdir/$soname.def; 15129 fi~ 15130 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 15131 else 15132 ld_shlibs=no 15133 fi 15134 ;; 15135 15136 netbsd*) 15137 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15138 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 15139 wlarc= 15140 else 15141 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15142 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15143 fi 15144 ;; 15145 15146 solaris* | sysv5*) 15147 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 15148 ld_shlibs_GCJ=no 15149 cat <<EOF 1>&2 15150 15151*** Warning: The releases 2.8.* of the GNU linker cannot reliably 15152*** create shared libraries on Solaris systems. Therefore, libtool 15153*** is disabling shared libraries support. We urge you to upgrade GNU 15154*** binutils to release 2.9.1 or newer. Another option is to modify 15155*** your PATH or compiler configuration so that the native linker is 15156*** used, and then restart. 15157 15158EOF 15159 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15160 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15161 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15162 else 15163 ld_shlibs_GCJ=no 15164 fi 15165 ;; 15166 15167 sunos4*) 15168 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15169 wlarc= 15170 hardcode_direct_GCJ=yes 15171 hardcode_shlibpath_var_GCJ=no 15172 ;; 15173 15174 *) 15175 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15176 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15177 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15178 else 15179 ld_shlibs_GCJ=no 15180 fi 15181 ;; 15182 esac 15183 15184 if test "$ld_shlibs_GCJ" = yes; then 15185 runpath_var=LD_RUN_PATH 15186 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 15187 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 15188 # ancient GNU ld didn't support --whole-archive et. al. 15189 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 15190 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 15191 else 15192 whole_archive_flag_spec_GCJ= 15193 fi 15194 fi 15195 else 15196 # PORTME fill in a description of your system's linker (not GNU ld) 15197 case $host_os in 15198 aix3*) 15199 allow_undefined_flag_GCJ=unsupported 15200 always_export_symbols_GCJ=yes 15201 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' 15202 # Note: this linker hardcodes the directories in LIBPATH if there 15203 # are no directories specified by -L. 15204 hardcode_minus_L_GCJ=yes 15205 if test "$GCC" = yes && test -z "$link_static_flag"; then 15206 # Neither direct hardcoding nor static linking is supported with a 15207 # broken collect2. 15208 hardcode_direct_GCJ=unsupported 15209 fi 15210 ;; 15211 15212 aix4* | aix5*) 15213 if test "$host_cpu" = ia64; then 15214 # On IA64, the linker does run time linking by default, so we don't 15215 # have to do anything special. 15216 aix_use_runtimelinking=no 15217 exp_sym_flag='-Bexport' 15218 no_entry_flag="" 15219 else 15220 # If we're using GNU nm, then we don't want the "-C" option. 15221 # -C means demangle to AIX nm, but means don't demangle with GNU nm 15222 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 15223 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' 15224 else 15225 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' 15226 fi 15227 aix_use_runtimelinking=no 15228 15229 # Test if we are trying to use run time linking or normal 15230 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15231 # need to do runtime linking. 15232 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 15233 for ld_flag in $LDFLAGS; do 15234 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 15235 aix_use_runtimelinking=yes 15236 break 15237 fi 15238 done 15239 esac 15240 15241 exp_sym_flag='-bexport' 15242 no_entry_flag='-bnoentry' 15243 fi 15244 15245 # When large executables or shared objects are built, AIX ld can 15246 # have problems creating the table of contents. If linking a library 15247 # or program results in "error TOC overflow" add -mminimal-toc to 15248 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15249 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15250 15251 archive_cmds_GCJ='' 15252 hardcode_direct_GCJ=yes 15253 hardcode_libdir_separator_GCJ=':' 15254 link_all_deplibs_GCJ=yes 15255 15256 if test "$GCC" = yes; then 15257 case $host_os in aix4.012|aix4.012.*) 15258 # We only want to do this on AIX 4.2 and lower, the check 15259 # below for broken collect2 doesn't work under 4.3+ 15260 collect2name=`${CC} -print-prog-name=collect2` 15261 if test -f "$collect2name" && \ 15262 strings "$collect2name" | grep resolve_lib_name >/dev/null 15263 then 15264 # We have reworked collect2 15265 hardcode_direct_GCJ=yes 15266 else 15267 # We have old collect2 15268 hardcode_direct_GCJ=unsupported 15269 # It fails to find uninstalled libraries when the uninstalled 15270 # path is not listed in the libpath. Setting hardcode_minus_L 15271 # to unsupported forces relinking 15272 hardcode_minus_L_GCJ=yes 15273 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15274 hardcode_libdir_separator_GCJ= 15275 fi 15276 esac 15277 shared_flag='-shared' 15278 else 15279 # not using gcc 15280 if test "$host_cpu" = ia64; then 15281 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15282 # chokes on -Wl,-G. The following line is correct: 15283 shared_flag='-G' 15284 else 15285 if test "$aix_use_runtimelinking" = yes; then 15286 shared_flag='${wl}-G' 15287 else 15288 shared_flag='${wl}-bM:SRE' 15289 fi 15290 fi 15291 fi 15292 15293 # It seems that -bexpall does not export symbols beginning with 15294 # underscore (_), so it is better to generate a list of symbols to export. 15295 always_export_symbols_GCJ=yes 15296 if test "$aix_use_runtimelinking" = yes; then 15297 # Warning - without using the other runtime loading flags (-brtl), 15298 # -berok will link without error, but may produce a broken library. 15299 allow_undefined_flag_GCJ='-berok' 15300 # Determine the default libpath from the value encoded in an empty executable. 15301 cat >conftest.$ac_ext <<_ACEOF 15302#line $LINENO "configure" 15303/* confdefs.h. */ 15304_ACEOF 15305cat confdefs.h >>conftest.$ac_ext 15306cat >>conftest.$ac_ext <<_ACEOF 15307/* end confdefs.h. */ 15308 15309int 15310main () 15311{ 15312 15313 ; 15314 return 0; 15315} 15316_ACEOF 15317rm -f conftest.$ac_objext conftest$ac_exeext 15318if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15319 (eval $ac_link) 2>&5 15320 ac_status=$? 15321 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15322 (exit $ac_status); } && 15323 { ac_try='test -s conftest$ac_exeext' 15324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15325 (eval $ac_try) 2>&5 15326 ac_status=$? 15327 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15328 (exit $ac_status); }; }; then 15329 15330aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15331}'` 15332# Check for a 64-bit object if we didn't find anything. 15333if 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; } 15334}'`; fi 15335else 15336 echo "$as_me: failed program was:" >&5 15337sed 's/^/| /' conftest.$ac_ext >&5 15338 15339fi 15340rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 15341if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15342 15343 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 15344 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" 15345 else 15346 if test "$host_cpu" = ia64; then 15347 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 15348 allow_undefined_flag_GCJ="-z nodefs" 15349 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" 15350 else 15351 # Determine the default libpath from the value encoded in an empty executable. 15352 cat >conftest.$ac_ext <<_ACEOF 15353#line $LINENO "configure" 15354/* confdefs.h. */ 15355_ACEOF 15356cat confdefs.h >>conftest.$ac_ext 15357cat >>conftest.$ac_ext <<_ACEOF 15358/* end confdefs.h. */ 15359 15360int 15361main () 15362{ 15363 15364 ; 15365 return 0; 15366} 15367_ACEOF 15368rm -f conftest.$ac_objext conftest$ac_exeext 15369if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15370 (eval $ac_link) 2>&5 15371 ac_status=$? 15372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15373 (exit $ac_status); } && 15374 { ac_try='test -s conftest$ac_exeext' 15375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15376 (eval $ac_try) 2>&5 15377 ac_status=$? 15378 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15379 (exit $ac_status); }; }; then 15380 15381aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15382}'` 15383# Check for a 64-bit object if we didn't find anything. 15384if 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; } 15385}'`; fi 15386else 15387 echo "$as_me: failed program was:" >&5 15388sed 's/^/| /' conftest.$ac_ext >&5 15389 15390fi 15391rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 15392if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15393 15394 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 15395 # Warning - without using the other run time loading flags, 15396 # -berok will link without error, but may produce a broken library. 15397 no_undefined_flag_GCJ=' ${wl}-bernotok' 15398 allow_undefined_flag_GCJ=' ${wl}-berok' 15399 # -bexpall does not export symbols beginning with underscore (_) 15400 always_export_symbols_GCJ=yes 15401 # Exported symbols can be pulled into shared objects from archives 15402 whole_archive_flag_spec_GCJ=' ' 15403 archive_cmds_need_lc_GCJ=yes 15404 # This is similar to how AIX traditionally builds it's shared libraries. 15405 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' 15406 fi 15407 fi 15408 ;; 15409 15410 amigaos*) 15411 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)' 15412 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15413 hardcode_minus_L_GCJ=yes 15414 # see comment about different semantics on the GNU ld section 15415 ld_shlibs_GCJ=no 15416 ;; 15417 15418 bsdi4*) 15419 export_dynamic_flag_spec_GCJ=-rdynamic 15420 ;; 15421 15422 cygwin* | mingw* | pw32*) 15423 # When not using gcc, we currently assume that we are using 15424 # Microsoft Visual C++. 15425 # hardcode_libdir_flag_spec is actually meaningless, as there is 15426 # no search path for DLLs. 15427 hardcode_libdir_flag_spec_GCJ=' ' 15428 allow_undefined_flag_GCJ=unsupported 15429 # Tell ltmain to make .lib files, not .a files. 15430 libext=lib 15431 # Tell ltmain to make .dll files, not .so files. 15432 shrext=".dll" 15433 # FIXME: Setting linknames here is a bad hack. 15434 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 15435 # The linker will automatically build a .lib file if we build a DLL. 15436 old_archive_From_new_cmds_GCJ='true' 15437 # FIXME: Should let the user specify the lib program. 15438 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 15439 fix_srcfile_path='`cygpath -w "$srcfile"`' 15440 enable_shared_with_static_runtimes_GCJ=yes 15441 ;; 15442 15443 darwin* | rhapsody*) 15444 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then 15445 archive_cmds_need_lc_GCJ=no 15446 case "$host_os" in 15447 rhapsody* | darwin1.[012]) 15448 allow_undefined_flag_GCJ='-undefined suppress' 15449 ;; 15450 *) # Darwin 1.3 on 15451 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' 15452 ;; 15453 esac 15454 # FIXME: Relying on posixy $() will cause problems for 15455 # cross-compilation, but unfortunately the echo tests do not 15456 # yet detect zsh echo's removal of \ escapes. Also zsh mangles 15457 # `"' quotes if we put them in here... so don't! 15458 lt_int_apple_cc_single_mod=no 15459 output_verbose_link_cmd='echo' 15460 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 15461 lt_int_apple_cc_single_mod=yes 15462 fi 15463 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 15464 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 15465 else 15466 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 15467 fi 15468 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' 15469 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 15470 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 15471 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 15472 else 15473 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 15474 fi 15475 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 15476 hardcode_direct_GCJ=no 15477 hardcode_automatic_GCJ=yes 15478 hardcode_shlibpath_var_GCJ=unsupported 15479 whole_archive_flag_spec_GCJ='-all_load $convenience' 15480 link_all_deplibs_GCJ=yes 15481 fi 15482 ;; 15483 15484 dgux*) 15485 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15486 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15487 hardcode_shlibpath_var_GCJ=no 15488 ;; 15489 15490 freebsd1*) 15491 ld_shlibs_GCJ=no 15492 ;; 15493 15494 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15495 # support. Future versions do this automatically, but an explicit c++rt0.o 15496 # does not break anything, and helps significantly (at the cost of a little 15497 # extra space). 15498 freebsd2.2*) 15499 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15500 hardcode_libdir_flag_spec_GCJ='-R$libdir' 15501 hardcode_direct_GCJ=yes 15502 hardcode_shlibpath_var_GCJ=no 15503 ;; 15504 15505 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15506 freebsd2*) 15507 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15508 hardcode_direct_GCJ=yes 15509 hardcode_minus_L_GCJ=yes 15510 hardcode_shlibpath_var_GCJ=no 15511 ;; 15512 15513 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15514 freebsd*) 15515 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 15516 hardcode_libdir_flag_spec_GCJ='-R$libdir' 15517 hardcode_direct_GCJ=yes 15518 hardcode_shlibpath_var_GCJ=no 15519 ;; 15520 15521 hpux9*) 15522 if test "$GCC" = yes; then 15523 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' 15524 else 15525 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' 15526 fi 15527 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 15528 hardcode_libdir_separator_GCJ=: 15529 hardcode_direct_GCJ=yes 15530 15531 # hardcode_minus_L: Not really in the search PATH, 15532 # but as the default location of the library. 15533 hardcode_minus_L_GCJ=yes 15534 export_dynamic_flag_spec_GCJ='${wl}-E' 15535 ;; 15536 15537 hpux10* | hpux11*) 15538 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15539 case "$host_cpu" in 15540 hppa*64*|ia64*) 15541 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15542 ;; 15543 *) 15544 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15545 ;; 15546 esac 15547 else 15548 case "$host_cpu" in 15549 hppa*64*|ia64*) 15550 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 15551 ;; 15552 *) 15553 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15554 ;; 15555 esac 15556 fi 15557 if test "$with_gnu_ld" = no; then 15558 case "$host_cpu" in 15559 hppa*64*) 15560 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 15561 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 15562 hardcode_libdir_separator_GCJ=: 15563 hardcode_direct_GCJ=no 15564 hardcode_shlibpath_var_GCJ=no 15565 ;; 15566 ia64*) 15567 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15568 hardcode_direct_GCJ=no 15569 hardcode_shlibpath_var_GCJ=no 15570 15571 # hardcode_minus_L: Not really in the search PATH, 15572 # but as the default location of the library. 15573 hardcode_minus_L_GCJ=yes 15574 ;; 15575 *) 15576 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 15577 hardcode_libdir_separator_GCJ=: 15578 hardcode_direct_GCJ=yes 15579 export_dynamic_flag_spec_GCJ='${wl}-E' 15580 15581 # hardcode_minus_L: Not really in the search PATH, 15582 # but as the default location of the library. 15583 hardcode_minus_L_GCJ=yes 15584 ;; 15585 esac 15586 fi 15587 ;; 15588 15589 irix5* | irix6* | nonstopux*) 15590 if test "$GCC" = yes; then 15591 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' 15592 else 15593 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' 15594 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 15595 fi 15596 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 15597 hardcode_libdir_separator_GCJ=: 15598 link_all_deplibs_GCJ=yes 15599 ;; 15600 15601 netbsd*) 15602 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15603 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15604 else 15605 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15606 fi 15607 hardcode_libdir_flag_spec_GCJ='-R$libdir' 15608 hardcode_direct_GCJ=yes 15609 hardcode_shlibpath_var_GCJ=no 15610 ;; 15611 15612 newsos6) 15613 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15614 hardcode_direct_GCJ=yes 15615 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 15616 hardcode_libdir_separator_GCJ=: 15617 hardcode_shlibpath_var_GCJ=no 15618 ;; 15619 15620 openbsd*) 15621 hardcode_direct_GCJ=yes 15622 hardcode_shlibpath_var_GCJ=no 15623 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15624 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15625 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 15626 export_dynamic_flag_spec_GCJ='${wl}-E' 15627 else 15628 case $host_os in 15629 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15630 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15631 hardcode_libdir_flag_spec_GCJ='-R$libdir' 15632 ;; 15633 *) 15634 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15635 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 15636 ;; 15637 esac 15638 fi 15639 ;; 15640 15641 os2*) 15642 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15643 hardcode_minus_L_GCJ=yes 15644 allow_undefined_flag_GCJ=unsupported 15645 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' 15646 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15647 ;; 15648 15649 osf3*) 15650 if test "$GCC" = yes; then 15651 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 15652 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' 15653 else 15654 allow_undefined_flag_GCJ=' -expect_unresolved \*' 15655 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' 15656 fi 15657 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 15658 hardcode_libdir_separator_GCJ=: 15659 ;; 15660 15661 osf4* | osf5*) # as osf3* with the addition of -msym flag 15662 if test "$GCC" = yes; then 15663 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 15664 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' 15665 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 15666 else 15667 allow_undefined_flag_GCJ=' -expect_unresolved \*' 15668 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' 15669 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~ 15670 $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' 15671 15672 # Both c and cxx compiler support -rpath directly 15673 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 15674 fi 15675 hardcode_libdir_separator_GCJ=: 15676 ;; 15677 15678 sco3.2v5*) 15679 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15680 hardcode_shlibpath_var_GCJ=no 15681 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 15682 runpath_var=LD_RUN_PATH 15683 hardcode_runpath_var=yes 15684 ;; 15685 15686 solaris*) 15687 no_undefined_flag_GCJ=' -z text' 15688 if test "$GCC" = yes; then 15689 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15690 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15691 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 15692 else 15693 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15694 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15695 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15696 fi 15697 hardcode_libdir_flag_spec_GCJ='-R$libdir' 15698 hardcode_shlibpath_var_GCJ=no 15699 case $host_os in 15700 solaris2.[0-5] | solaris2.[0-5].*) ;; 15701 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 15702 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 15703 esac 15704 link_all_deplibs_GCJ=yes 15705 ;; 15706 15707 sunos4*) 15708 if test "x$host_vendor" = xsequent; then 15709 # Use $CC to link under sequent, because it throws in some extra .o 15710 # files that make .init and .fini sections work. 15711 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15712 else 15713 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15714 fi 15715 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15716 hardcode_direct_GCJ=yes 15717 hardcode_minus_L_GCJ=yes 15718 hardcode_shlibpath_var_GCJ=no 15719 ;; 15720 15721 sysv4) 15722 case $host_vendor in 15723 sni) 15724 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15725 hardcode_direct_GCJ=yes # is this really true??? 15726 ;; 15727 siemens) 15728 ## LD is ld it makes a PLAMLIB 15729 ## CC just makes a GrossModule. 15730 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15731 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 15732 hardcode_direct_GCJ=no 15733 ;; 15734 motorola) 15735 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15736 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 15737 ;; 15738 esac 15739 runpath_var='LD_RUN_PATH' 15740 hardcode_shlibpath_var_GCJ=no 15741 ;; 15742 15743 sysv4.3*) 15744 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15745 hardcode_shlibpath_var_GCJ=no 15746 export_dynamic_flag_spec_GCJ='-Bexport' 15747 ;; 15748 15749 sysv4*MP*) 15750 if test -d /usr/nec; then 15751 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15752 hardcode_shlibpath_var_GCJ=no 15753 runpath_var=LD_RUN_PATH 15754 hardcode_runpath_var=yes 15755 ld_shlibs_GCJ=yes 15756 fi 15757 ;; 15758 15759 sysv4.2uw2*) 15760 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15761 hardcode_direct_GCJ=yes 15762 hardcode_minus_L_GCJ=no 15763 hardcode_shlibpath_var_GCJ=no 15764 hardcode_runpath_var=yes 15765 runpath_var=LD_RUN_PATH 15766 ;; 15767 15768 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 15769 no_undefined_flag_GCJ='${wl}-z ${wl}text' 15770 if test "$GCC" = yes; then 15771 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15772 else 15773 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15774 fi 15775 runpath_var='LD_RUN_PATH' 15776 hardcode_shlibpath_var_GCJ=no 15777 ;; 15778 15779 sysv5*) 15780 no_undefined_flag_GCJ=' -z text' 15781 # $CC -shared without GNU ld will not create a library from C++ 15782 # object files and a static libstdc++, better avoid it by now 15783 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15784 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15785 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15786 hardcode_libdir_flag_spec_GCJ= 15787 hardcode_shlibpath_var_GCJ=no 15788 runpath_var='LD_RUN_PATH' 15789 ;; 15790 15791 uts4*) 15792 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15793 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15794 hardcode_shlibpath_var_GCJ=no 15795 ;; 15796 15797 *) 15798 ld_shlibs_GCJ=no 15799 ;; 15800 esac 15801 fi 15802 15803echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 15804echo "${ECHO_T}$ld_shlibs_GCJ" >&6 15805test "$ld_shlibs_GCJ" = no && can_build_shared=no 15806 15807variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15808if test "$GCC" = yes; then 15809 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15810fi 15811 15812# 15813# Do we need to explicitly link libc? 15814# 15815case "x$archive_cmds_need_lc_GCJ" in 15816x|xyes) 15817 # Assume -lc should be added 15818 archive_cmds_need_lc_GCJ=yes 15819 15820 if test "$enable_shared" = yes && test "$GCC" = yes; then 15821 case $archive_cmds_GCJ in 15822 *'~'*) 15823 # FIXME: we may have to deal with multi-command sequences. 15824 ;; 15825 '$CC '*) 15826 # Test whether the compiler implicitly links with -lc since on some 15827 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15828 # to ld, don't add -lc before -lgcc. 15829 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15830echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 15831 $rm conftest* 15832 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15833 15834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15835 (eval $ac_compile) 2>&5 15836 ac_status=$? 15837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15838 (exit $ac_status); } 2>conftest.err; then 15839 soname=conftest 15840 lib=conftest 15841 libobjs=conftest.$ac_objext 15842 deplibs= 15843 wl=$lt_prog_compiler_wl_GCJ 15844 compiler_flags=-v 15845 linker_flags=-v 15846 verstring= 15847 output_objdir=. 15848 libname=conftest 15849 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 15850 allow_undefined_flag_GCJ= 15851 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15852 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15853 ac_status=$? 15854 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15855 (exit $ac_status); } 15856 then 15857 archive_cmds_need_lc_GCJ=no 15858 else 15859 archive_cmds_need_lc_GCJ=yes 15860 fi 15861 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 15862 else 15863 cat conftest.err 1>&5 15864 fi 15865 $rm conftest* 15866 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 15867echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 15868 ;; 15869 esac 15870 fi 15871 ;; 15872esac 15873 15874echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 15875echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 15876hardcode_action_GCJ= 15877if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 15878 test -n "$runpath_var GCJ" || \ 15879 test "X$hardcode_automatic_GCJ"="Xyes" ; then 15880 15881 # We can hardcode non-existant directories. 15882 if test "$hardcode_direct_GCJ" != no && 15883 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15884 # have to relink, otherwise we might link with an installed library 15885 # when we should be linking with a yet-to-be-installed one 15886 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 15887 test "$hardcode_minus_L_GCJ" != no; then 15888 # Linking always hardcodes the temporary library directory. 15889 hardcode_action_GCJ=relink 15890 else 15891 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15892 hardcode_action_GCJ=immediate 15893 fi 15894else 15895 # We cannot hardcode anything, or else we can only hardcode existing 15896 # directories. 15897 hardcode_action_GCJ=unsupported 15898fi 15899echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 15900echo "${ECHO_T}$hardcode_action_GCJ" >&6 15901 15902if test "$hardcode_action_GCJ" = relink; then 15903 # Fast installation is not supported 15904 enable_fast_install=no 15905elif test "$shlibpath_overrides_runpath" = yes || 15906 test "$enable_shared" = no; then 15907 # Fast installation is not necessary 15908 enable_fast_install=needless 15909fi 15910 15911striplib= 15912old_striplib= 15913echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 15914echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 15915if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 15916 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 15917 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 15918 echo "$as_me:$LINENO: result: yes" >&5 15919echo "${ECHO_T}yes" >&6 15920else 15921# FIXME - insert some real tests, host_os isn't really good enough 15922 case $host_os in 15923 darwin*) 15924 if test -n "$STRIP" ; then 15925 striplib="$STRIP -x" 15926 echo "$as_me:$LINENO: result: yes" >&5 15927echo "${ECHO_T}yes" >&6 15928 else 15929 echo "$as_me:$LINENO: result: no" >&5 15930echo "${ECHO_T}no" >&6 15931fi 15932 ;; 15933 *) 15934 echo "$as_me:$LINENO: result: no" >&5 15935echo "${ECHO_T}no" >&6 15936 ;; 15937 esac 15938fi 15939 15940echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15941echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 15942library_names_spec= 15943libname_spec='lib$name' 15944soname_spec= 15945shrext=".so" 15946postinstall_cmds= 15947postuninstall_cmds= 15948finish_cmds= 15949finish_eval= 15950shlibpath_var= 15951shlibpath_overrides_runpath=unknown 15952version_type=none 15953dynamic_linker="$host_os ld.so" 15954sys_lib_dlsearch_path_spec="/lib /usr/lib" 15955if test "$GCC" = yes; then 15956 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15957 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 15958 # if the path contains ";" then we assume it to be the separator 15959 # otherwise default to the standard path separator (i.e. ":") - it is 15960 # assumed that no part of a normal pathname contains ";" but that should 15961 # okay in the real world where ";" in dirpaths is itself problematic. 15962 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15963 else 15964 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15965 fi 15966else 15967 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15968fi 15969need_lib_prefix=unknown 15970hardcode_into_libs=no 15971 15972# when you set need_version to no, make sure it does not cause -set_version 15973# flags to be left without arguments 15974need_version=unknown 15975 15976case $host_os in 15977aix3*) 15978 version_type=linux 15979 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15980 shlibpath_var=LIBPATH 15981 15982 # AIX 3 has no versioning support, so we append a major version to the name. 15983 soname_spec='${libname}${release}${shared_ext}$major' 15984 ;; 15985 15986aix4* | aix5*) 15987 version_type=linux 15988 need_lib_prefix=no 15989 need_version=no 15990 hardcode_into_libs=yes 15991 if test "$host_cpu" = ia64; then 15992 # AIX 5 supports IA64 15993 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15994 shlibpath_var=LD_LIBRARY_PATH 15995 else 15996 # With GCC up to 2.95.x, collect2 would create an import file 15997 # for dependence libraries. The import file would start with 15998 # the line `#! .'. This would cause the generated library to 15999 # depend on `.', always an invalid library. This was fixed in 16000 # development snapshots of GCC prior to 3.0. 16001 case $host_os in 16002 aix4 | aix4.[01] | aix4.[01].*) 16003 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16004 echo ' yes ' 16005 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 16006 : 16007 else 16008 can_build_shared=no 16009 fi 16010 ;; 16011 esac 16012 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 16013 # soname into executable. Probably we can add versioning support to 16014 # collect2, so additional links can be useful in future. 16015 if test "$aix_use_runtimelinking" = yes; then 16016 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16017 # instead of lib<name>.a to let people know that these are not 16018 # typical AIX shared libraries. 16019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16020 else 16021 # We preserve .a as extension for shared libraries through AIX4.2 16022 # and later when we are not doing run time linking. 16023 library_names_spec='${libname}${release}.a $libname.a' 16024 soname_spec='${libname}${release}${shared_ext}$major' 16025 fi 16026 shlibpath_var=LIBPATH 16027 fi 16028 ;; 16029 16030amigaos*) 16031 library_names_spec='$libname.ixlibrary $libname.a' 16032 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16033 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' 16034 ;; 16035 16036beos*) 16037 library_names_spec='${libname}${shared_ext}' 16038 dynamic_linker="$host_os ld.so" 16039 shlibpath_var=LIBRARY_PATH 16040 ;; 16041 16042bsdi4*) 16043 version_type=linux 16044 need_version=no 16045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16046 soname_spec='${libname}${release}${shared_ext}$major' 16047 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16048 shlibpath_var=LD_LIBRARY_PATH 16049 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16050 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16051 # the default ld.so.conf also contains /usr/contrib/lib and 16052 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16053 # libtool to hard-code these into programs 16054 ;; 16055 16056cygwin* | mingw* | pw32*) 16057 version_type=windows 16058 shrext=".dll" 16059 need_version=no 16060 need_lib_prefix=no 16061 16062 case $GCC,$host_os in 16063 yes,cygwin* | yes,mingw* | yes,pw32*) 16064 library_names_spec='$libname.dll.a' 16065 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16066 postinstall_cmds='base_file=`basename \${file}`~ 16067 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 16068 dldir=$destdir/`dirname \$dlpath`~ 16069 test -d \$dldir || mkdir -p \$dldir~ 16070 $install_prog $dir/$dlname \$dldir/$dlname' 16071 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16072 dlpath=$dir/\$dldll~ 16073 $rm \$dlpath' 16074 shlibpath_overrides_runpath=yes 16075 16076 case $host_os in 16077 cygwin*) 16078 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16079 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16080 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" 16081 ;; 16082 mingw*) 16083 # MinGW DLLs use traditional 'lib' prefix 16084 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16085 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 16086 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 16087 # It is most probably a Windows format PATH printed by 16088 # mingw gcc, but we are running on Cygwin. Gcc prints its search 16089 # path with ; separators, and with drive letters. We can handle the 16090 # drive letters (cygwin fileutils understands them), so leave them, 16091 # especially as we might pass files found there to a mingw objdump, 16092 # which wouldn't understand a cygwinified path. Ahh. 16093 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16094 else 16095 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16096 fi 16097 ;; 16098 pw32*) 16099 # pw32 DLLs use 'pw' prefix rather than 'lib' 16100 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 16101 ;; 16102 esac 16103 ;; 16104 16105 *) 16106 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 16107 ;; 16108 esac 16109 dynamic_linker='Win32 ld.exe' 16110 # FIXME: first we should search . and the directory the executable is in 16111 shlibpath_var=PATH 16112 ;; 16113 16114darwin* | rhapsody*) 16115 dynamic_linker="$host_os dyld" 16116 version_type=darwin 16117 need_lib_prefix=no 16118 need_version=no 16119 # FIXME: Relying on posixy $() will cause problems for 16120 # cross-compilation, but unfortunately the echo tests do not 16121 # yet detect zsh echo's removal of \ escapes. 16122 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 16123 soname_spec='${libname}${release}${major}$shared_ext' 16124 shlibpath_overrides_runpath=yes 16125 shlibpath_var=DYLD_LIBRARY_PATH 16126 shrext='$(test .$module = .yes && echo .so || echo .dylib)' 16127 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 16128 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then 16129 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"` 16130 fi 16131 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16132 ;; 16133 16134dgux*) 16135 version_type=linux 16136 need_lib_prefix=no 16137 need_version=no 16138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 16139 soname_spec='${libname}${release}${shared_ext}$major' 16140 shlibpath_var=LD_LIBRARY_PATH 16141 ;; 16142 16143freebsd1*) 16144 dynamic_linker=no 16145 ;; 16146 16147freebsd*) 16148 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 16149 version_type=freebsd-$objformat 16150 case $version_type in 16151 freebsd-elf*) 16152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16153 need_version=no 16154 need_lib_prefix=no 16155 ;; 16156 freebsd-*) 16157 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 16158 need_version=yes 16159 ;; 16160 esac 16161 shlibpath_var=LD_LIBRARY_PATH 16162 case $host_os in 16163 freebsd2*) 16164 shlibpath_overrides_runpath=yes 16165 ;; 16166 freebsd3.01* | freebsdelf3.01*) 16167 shlibpath_overrides_runpath=yes 16168 hardcode_into_libs=yes 16169 ;; 16170 *) # from 3.2 on 16171 shlibpath_overrides_runpath=no 16172 hardcode_into_libs=yes 16173 ;; 16174 esac 16175 ;; 16176 16177gnu*) 16178 version_type=linux 16179 need_lib_prefix=no 16180 need_version=no 16181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16182 soname_spec='${libname}${release}${shared_ext}$major' 16183 shlibpath_var=LD_LIBRARY_PATH 16184 hardcode_into_libs=yes 16185 ;; 16186 16187hpux9* | hpux10* | hpux11*) 16188 # Give a soname corresponding to the major version so that dld.sl refuses to 16189 # link against other versions. 16190 version_type=sunos 16191 need_lib_prefix=no 16192 need_version=no 16193 case "$host_cpu" in 16194 ia64*) 16195 shrext='.so' 16196 hardcode_into_libs=yes 16197 dynamic_linker="$host_os dld.so" 16198 shlibpath_var=LD_LIBRARY_PATH 16199 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16201 soname_spec='${libname}${release}${shared_ext}$major' 16202 if test "X$HPUX_IA64_MODE" = X32; then 16203 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16204 else 16205 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16206 fi 16207 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16208 ;; 16209 hppa*64*) 16210 shrext='.sl' 16211 hardcode_into_libs=yes 16212 dynamic_linker="$host_os dld.sl" 16213 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16214 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16216 soname_spec='${libname}${release}${shared_ext}$major' 16217 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16218 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16219 ;; 16220 *) 16221 shrext='.sl' 16222 dynamic_linker="$host_os dld.sl" 16223 shlibpath_var=SHLIB_PATH 16224 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16226 soname_spec='${libname}${release}${shared_ext}$major' 16227 ;; 16228 esac 16229 # HP-UX runs *really* slowly unless shared libraries are mode 555. 16230 postinstall_cmds='chmod 555 $lib' 16231 ;; 16232 16233irix5* | irix6* | nonstopux*) 16234 case $host_os in 16235 nonstopux*) version_type=nonstopux ;; 16236 *) 16237 if test "$lt_cv_prog_gnu_ld" = yes; then 16238 version_type=linux 16239 else 16240 version_type=irix 16241 fi ;; 16242 esac 16243 need_lib_prefix=no 16244 need_version=no 16245 soname_spec='${libname}${release}${shared_ext}$major' 16246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 16247 case $host_os in 16248 irix5* | nonstopux*) 16249 libsuff= shlibsuff= 16250 ;; 16251 *) 16252 case $LD in # libtool.m4 will add one of these switches to LD 16253 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16254 libsuff= shlibsuff= libmagic=32-bit;; 16255 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16256 libsuff=32 shlibsuff=N32 libmagic=N32;; 16257 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16258 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16259 *) libsuff= shlibsuff= libmagic=never-match;; 16260 esac 16261 ;; 16262 esac 16263 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16264 shlibpath_overrides_runpath=no 16265 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16266 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16267 hardcode_into_libs=yes 16268 ;; 16269 16270# No shared lib support for Linux oldld, aout, or coff. 16271linux*oldld* | linux*aout* | linux*coff*) 16272 dynamic_linker=no 16273 ;; 16274 16275# This must be Linux ELF. 16276linux*) 16277 version_type=linux 16278 need_lib_prefix=no 16279 need_version=no 16280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16281 soname_spec='${libname}${release}${shared_ext}$major' 16282 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16283 shlibpath_var=LD_LIBRARY_PATH 16284 shlibpath_overrides_runpath=no 16285 # This implies no fast_install, which is unacceptable. 16286 # Some rework will be needed to allow for fast_install 16287 # before this can be enabled. 16288 hardcode_into_libs=yes 16289 16290 # We used to test for /lib/ld.so.1 and disable shared libraries on 16291 # powerpc, because MkLinux only supported shared libraries with the 16292 # GNU dynamic linker. Since this was broken with cross compilers, 16293 # most powerpc-linux boxes support dynamic linking these days and 16294 # people can always --disable-shared, the test was removed, and we 16295 # assume the GNU/Linux dynamic linker is in use. 16296 dynamic_linker='GNU/Linux ld.so' 16297 ;; 16298 16299netbsd*) 16300 version_type=sunos 16301 need_lib_prefix=no 16302 need_version=no 16303 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16305 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16306 dynamic_linker='NetBSD (a.out) ld.so' 16307 else 16308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' 16309 soname_spec='${libname}${release}${shared_ext}$major' 16310 dynamic_linker='NetBSD ld.elf_so' 16311 fi 16312 shlibpath_var=LD_LIBRARY_PATH 16313 shlibpath_overrides_runpath=yes 16314 hardcode_into_libs=yes 16315 ;; 16316 16317newsos6) 16318 version_type=linux 16319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16320 shlibpath_var=LD_LIBRARY_PATH 16321 shlibpath_overrides_runpath=yes 16322 ;; 16323 16324nto-qnx) 16325 version_type=linux 16326 need_lib_prefix=no 16327 need_version=no 16328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16329 soname_spec='${libname}${release}${shared_ext}$major' 16330 shlibpath_var=LD_LIBRARY_PATH 16331 shlibpath_overrides_runpath=yes 16332 ;; 16333 16334openbsd*) 16335 version_type=sunos 16336 need_lib_prefix=no 16337 need_version=no 16338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16339 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16340 shlibpath_var=LD_LIBRARY_PATH 16341 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16342 case $host_os in 16343 openbsd2.[89] | openbsd2.[89].*) 16344 shlibpath_overrides_runpath=no 16345 ;; 16346 *) 16347 shlibpath_overrides_runpath=yes 16348 ;; 16349 esac 16350 else 16351 shlibpath_overrides_runpath=yes 16352 fi 16353 ;; 16354 16355os2*) 16356 libname_spec='$name' 16357 shrext=".dll" 16358 need_lib_prefix=no 16359 library_names_spec='$libname${shared_ext} $libname.a' 16360 dynamic_linker='OS/2 ld.exe' 16361 shlibpath_var=LIBPATH 16362 ;; 16363 16364osf3* | osf4* | osf5*) 16365 version_type=osf 16366 need_lib_prefix=no 16367 need_version=no 16368 soname_spec='${libname}${release}${shared_ext}$major' 16369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16370 shlibpath_var=LD_LIBRARY_PATH 16371 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16372 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16373 ;; 16374 16375sco3.2v5*) 16376 version_type=osf 16377 soname_spec='${libname}${release}${shared_ext}$major' 16378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16379 shlibpath_var=LD_LIBRARY_PATH 16380 ;; 16381 16382solaris*) 16383 version_type=linux 16384 need_lib_prefix=no 16385 need_version=no 16386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16387 soname_spec='${libname}${release}${shared_ext}$major' 16388 shlibpath_var=LD_LIBRARY_PATH 16389 shlibpath_overrides_runpath=yes 16390 hardcode_into_libs=yes 16391 # ldd complains unless libraries are executable 16392 postinstall_cmds='chmod +x $lib' 16393 ;; 16394 16395sunos4*) 16396 version_type=sunos 16397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16398 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16399 shlibpath_var=LD_LIBRARY_PATH 16400 shlibpath_overrides_runpath=yes 16401 if test "$with_gnu_ld" = yes; then 16402 need_lib_prefix=no 16403 fi 16404 need_version=yes 16405 ;; 16406 16407sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 16408 version_type=linux 16409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16410 soname_spec='${libname}${release}${shared_ext}$major' 16411 shlibpath_var=LD_LIBRARY_PATH 16412 case $host_vendor in 16413 sni) 16414 shlibpath_overrides_runpath=no 16415 need_lib_prefix=no 16416 export_dynamic_flag_spec='${wl}-Blargedynsym' 16417 runpath_var=LD_RUN_PATH 16418 ;; 16419 siemens) 16420 need_lib_prefix=no 16421 ;; 16422 motorola) 16423 need_lib_prefix=no 16424 need_version=no 16425 shlibpath_overrides_runpath=no 16426 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16427 ;; 16428 esac 16429 ;; 16430 16431sysv4*MP*) 16432 if test -d /usr/nec ;then 16433 version_type=linux 16434 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16435 soname_spec='$libname${shared_ext}.$major' 16436 shlibpath_var=LD_LIBRARY_PATH 16437 fi 16438 ;; 16439 16440uts4*) 16441 version_type=linux 16442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16443 soname_spec='${libname}${release}${shared_ext}$major' 16444 shlibpath_var=LD_LIBRARY_PATH 16445 ;; 16446 16447*) 16448 dynamic_linker=no 16449 ;; 16450esac 16451echo "$as_me:$LINENO: result: $dynamic_linker" >&5 16452echo "${ECHO_T}$dynamic_linker" >&6 16453test "$dynamic_linker" = no && can_build_shared=no 16454 16455if test "x$enable_dlopen" != xyes; then 16456 enable_dlopen=unknown 16457 enable_dlopen_self=unknown 16458 enable_dlopen_self_static=unknown 16459else 16460 lt_cv_dlopen=no 16461 lt_cv_dlopen_libs= 16462 16463 case $host_os in 16464 beos*) 16465 lt_cv_dlopen="load_add_on" 16466 lt_cv_dlopen_libs= 16467 lt_cv_dlopen_self=yes 16468 ;; 16469 16470 mingw* | pw32*) 16471 lt_cv_dlopen="LoadLibrary" 16472 lt_cv_dlopen_libs= 16473 ;; 16474 16475 cygwin*) 16476 lt_cv_dlopen="dlopen" 16477 lt_cv_dlopen_libs= 16478 ;; 16479 16480 darwin*) 16481 # if libdl is installed we need to link against it 16482 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 16483echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 16484if test "${ac_cv_lib_dl_dlopen+set}" = set; then 16485 echo $ECHO_N "(cached) $ECHO_C" >&6 16486else 16487 ac_check_lib_save_LIBS=$LIBS 16488LIBS="-ldl $LIBS" 16489cat >conftest.$ac_ext <<_ACEOF 16490#line $LINENO "configure" 16491/* confdefs.h. */ 16492_ACEOF 16493cat confdefs.h >>conftest.$ac_ext 16494cat >>conftest.$ac_ext <<_ACEOF 16495/* end confdefs.h. */ 16496 16497/* Override any gcc2 internal prototype to avoid an error. */ 16498#ifdef __cplusplus 16499extern "C" 16500#endif 16501/* We use char because int might match the return type of a gcc2 16502 builtin and then its argument prototype would still apply. */ 16503char dlopen (); 16504int 16505main () 16506{ 16507dlopen (); 16508 ; 16509 return 0; 16510} 16511_ACEOF 16512rm -f conftest.$ac_objext conftest$ac_exeext 16513if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16514 (eval $ac_link) 2>&5 16515 ac_status=$? 16516 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16517 (exit $ac_status); } && 16518 { ac_try='test -s conftest$ac_exeext' 16519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16520 (eval $ac_try) 2>&5 16521 ac_status=$? 16522 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16523 (exit $ac_status); }; }; then 16524 ac_cv_lib_dl_dlopen=yes 16525else 16526 echo "$as_me: failed program was:" >&5 16527sed 's/^/| /' conftest.$ac_ext >&5 16528 16529ac_cv_lib_dl_dlopen=no 16530fi 16531rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16532LIBS=$ac_check_lib_save_LIBS 16533fi 16534echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 16535echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 16536if test $ac_cv_lib_dl_dlopen = yes; then 16537 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 16538else 16539 16540 lt_cv_dlopen="dyld" 16541 lt_cv_dlopen_libs= 16542 lt_cv_dlopen_self=yes 16543 16544fi 16545 16546 ;; 16547 16548 *) 16549 echo "$as_me:$LINENO: checking for shl_load" >&5 16550echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 16551if test "${ac_cv_func_shl_load+set}" = set; then 16552 echo $ECHO_N "(cached) $ECHO_C" >&6 16553else 16554 cat >conftest.$ac_ext <<_ACEOF 16555#line $LINENO "configure" 16556/* confdefs.h. */ 16557_ACEOF 16558cat confdefs.h >>conftest.$ac_ext 16559cat >>conftest.$ac_ext <<_ACEOF 16560/* end confdefs.h. */ 16561/* System header to define __stub macros and hopefully few prototypes, 16562 which can conflict with char shl_load (); below. 16563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 16564 <limits.h> exists even on freestanding compilers. */ 16565#ifdef __STDC__ 16566# include <limits.h> 16567#else 16568# include <assert.h> 16569#endif 16570/* Override any gcc2 internal prototype to avoid an error. */ 16571#ifdef __cplusplus 16572extern "C" 16573{ 16574#endif 16575/* We use char because int might match the return type of a gcc2 16576 builtin and then its argument prototype would still apply. */ 16577char shl_load (); 16578/* The GNU C library defines this for functions which it implements 16579 to always fail with ENOSYS. Some functions are actually named 16580 something starting with __ and the normal name is an alias. */ 16581#if defined (__stub_shl_load) || defined (__stub___shl_load) 16582choke me 16583#else 16584char (*f) () = shl_load; 16585#endif 16586#ifdef __cplusplus 16587} 16588#endif 16589 16590int 16591main () 16592{ 16593return f != shl_load; 16594 ; 16595 return 0; 16596} 16597_ACEOF 16598rm -f conftest.$ac_objext conftest$ac_exeext 16599if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16600 (eval $ac_link) 2>&5 16601 ac_status=$? 16602 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16603 (exit $ac_status); } && 16604 { ac_try='test -s conftest$ac_exeext' 16605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16606 (eval $ac_try) 2>&5 16607 ac_status=$? 16608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16609 (exit $ac_status); }; }; then 16610 ac_cv_func_shl_load=yes 16611else 16612 echo "$as_me: failed program was:" >&5 16613sed 's/^/| /' conftest.$ac_ext >&5 16614 16615ac_cv_func_shl_load=no 16616fi 16617rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16618fi 16619echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 16620echo "${ECHO_T}$ac_cv_func_shl_load" >&6 16621if test $ac_cv_func_shl_load = yes; then 16622 lt_cv_dlopen="shl_load" 16623else 16624 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 16625echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 16626if test "${ac_cv_lib_dld_shl_load+set}" = set; then 16627 echo $ECHO_N "(cached) $ECHO_C" >&6 16628else 16629 ac_check_lib_save_LIBS=$LIBS 16630LIBS="-ldld $LIBS" 16631cat >conftest.$ac_ext <<_ACEOF 16632#line $LINENO "configure" 16633/* confdefs.h. */ 16634_ACEOF 16635cat confdefs.h >>conftest.$ac_ext 16636cat >>conftest.$ac_ext <<_ACEOF 16637/* end confdefs.h. */ 16638 16639/* Override any gcc2 internal prototype to avoid an error. */ 16640#ifdef __cplusplus 16641extern "C" 16642#endif 16643/* We use char because int might match the return type of a gcc2 16644 builtin and then its argument prototype would still apply. */ 16645char shl_load (); 16646int 16647main () 16648{ 16649shl_load (); 16650 ; 16651 return 0; 16652} 16653_ACEOF 16654rm -f conftest.$ac_objext conftest$ac_exeext 16655if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16656 (eval $ac_link) 2>&5 16657 ac_status=$? 16658 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16659 (exit $ac_status); } && 16660 { ac_try='test -s conftest$ac_exeext' 16661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16662 (eval $ac_try) 2>&5 16663 ac_status=$? 16664 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16665 (exit $ac_status); }; }; then 16666 ac_cv_lib_dld_shl_load=yes 16667else 16668 echo "$as_me: failed program was:" >&5 16669sed 's/^/| /' conftest.$ac_ext >&5 16670 16671ac_cv_lib_dld_shl_load=no 16672fi 16673rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16674LIBS=$ac_check_lib_save_LIBS 16675fi 16676echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 16677echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 16678if test $ac_cv_lib_dld_shl_load = yes; then 16679 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 16680else 16681 echo "$as_me:$LINENO: checking for dlopen" >&5 16682echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 16683if test "${ac_cv_func_dlopen+set}" = set; then 16684 echo $ECHO_N "(cached) $ECHO_C" >&6 16685else 16686 cat >conftest.$ac_ext <<_ACEOF 16687#line $LINENO "configure" 16688/* confdefs.h. */ 16689_ACEOF 16690cat confdefs.h >>conftest.$ac_ext 16691cat >>conftest.$ac_ext <<_ACEOF 16692/* end confdefs.h. */ 16693/* System header to define __stub macros and hopefully few prototypes, 16694 which can conflict with char dlopen (); below. 16695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 16696 <limits.h> exists even on freestanding compilers. */ 16697#ifdef __STDC__ 16698# include <limits.h> 16699#else 16700# include <assert.h> 16701#endif 16702/* Override any gcc2 internal prototype to avoid an error. */ 16703#ifdef __cplusplus 16704extern "C" 16705{ 16706#endif 16707/* We use char because int might match the return type of a gcc2 16708 builtin and then its argument prototype would still apply. */ 16709char dlopen (); 16710/* The GNU C library defines this for functions which it implements 16711 to always fail with ENOSYS. Some functions are actually named 16712 something starting with __ and the normal name is an alias. */ 16713#if defined (__stub_dlopen) || defined (__stub___dlopen) 16714choke me 16715#else 16716char (*f) () = dlopen; 16717#endif 16718#ifdef __cplusplus 16719} 16720#endif 16721 16722int 16723main () 16724{ 16725return f != dlopen; 16726 ; 16727 return 0; 16728} 16729_ACEOF 16730rm -f conftest.$ac_objext conftest$ac_exeext 16731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16732 (eval $ac_link) 2>&5 16733 ac_status=$? 16734 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16735 (exit $ac_status); } && 16736 { ac_try='test -s conftest$ac_exeext' 16737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16738 (eval $ac_try) 2>&5 16739 ac_status=$? 16740 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16741 (exit $ac_status); }; }; then 16742 ac_cv_func_dlopen=yes 16743else 16744 echo "$as_me: failed program was:" >&5 16745sed 's/^/| /' conftest.$ac_ext >&5 16746 16747ac_cv_func_dlopen=no 16748fi 16749rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16750fi 16751echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 16752echo "${ECHO_T}$ac_cv_func_dlopen" >&6 16753if test $ac_cv_func_dlopen = yes; then 16754 lt_cv_dlopen="dlopen" 16755else 16756 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 16757echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 16758if test "${ac_cv_lib_dl_dlopen+set}" = set; then 16759 echo $ECHO_N "(cached) $ECHO_C" >&6 16760else 16761 ac_check_lib_save_LIBS=$LIBS 16762LIBS="-ldl $LIBS" 16763cat >conftest.$ac_ext <<_ACEOF 16764#line $LINENO "configure" 16765/* confdefs.h. */ 16766_ACEOF 16767cat confdefs.h >>conftest.$ac_ext 16768cat >>conftest.$ac_ext <<_ACEOF 16769/* end confdefs.h. */ 16770 16771/* Override any gcc2 internal prototype to avoid an error. */ 16772#ifdef __cplusplus 16773extern "C" 16774#endif 16775/* We use char because int might match the return type of a gcc2 16776 builtin and then its argument prototype would still apply. */ 16777char dlopen (); 16778int 16779main () 16780{ 16781dlopen (); 16782 ; 16783 return 0; 16784} 16785_ACEOF 16786rm -f conftest.$ac_objext conftest$ac_exeext 16787if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16788 (eval $ac_link) 2>&5 16789 ac_status=$? 16790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16791 (exit $ac_status); } && 16792 { ac_try='test -s conftest$ac_exeext' 16793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16794 (eval $ac_try) 2>&5 16795 ac_status=$? 16796 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16797 (exit $ac_status); }; }; then 16798 ac_cv_lib_dl_dlopen=yes 16799else 16800 echo "$as_me: failed program was:" >&5 16801sed 's/^/| /' conftest.$ac_ext >&5 16802 16803ac_cv_lib_dl_dlopen=no 16804fi 16805rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16806LIBS=$ac_check_lib_save_LIBS 16807fi 16808echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 16809echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 16810if test $ac_cv_lib_dl_dlopen = yes; then 16811 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 16812else 16813 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 16814echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 16815if test "${ac_cv_lib_svld_dlopen+set}" = set; then 16816 echo $ECHO_N "(cached) $ECHO_C" >&6 16817else 16818 ac_check_lib_save_LIBS=$LIBS 16819LIBS="-lsvld $LIBS" 16820cat >conftest.$ac_ext <<_ACEOF 16821#line $LINENO "configure" 16822/* confdefs.h. */ 16823_ACEOF 16824cat confdefs.h >>conftest.$ac_ext 16825cat >>conftest.$ac_ext <<_ACEOF 16826/* end confdefs.h. */ 16827 16828/* Override any gcc2 internal prototype to avoid an error. */ 16829#ifdef __cplusplus 16830extern "C" 16831#endif 16832/* We use char because int might match the return type of a gcc2 16833 builtin and then its argument prototype would still apply. */ 16834char dlopen (); 16835int 16836main () 16837{ 16838dlopen (); 16839 ; 16840 return 0; 16841} 16842_ACEOF 16843rm -f conftest.$ac_objext conftest$ac_exeext 16844if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16845 (eval $ac_link) 2>&5 16846 ac_status=$? 16847 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16848 (exit $ac_status); } && 16849 { ac_try='test -s conftest$ac_exeext' 16850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16851 (eval $ac_try) 2>&5 16852 ac_status=$? 16853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16854 (exit $ac_status); }; }; then 16855 ac_cv_lib_svld_dlopen=yes 16856else 16857 echo "$as_me: failed program was:" >&5 16858sed 's/^/| /' conftest.$ac_ext >&5 16859 16860ac_cv_lib_svld_dlopen=no 16861fi 16862rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16863LIBS=$ac_check_lib_save_LIBS 16864fi 16865echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 16866echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 16867if test $ac_cv_lib_svld_dlopen = yes; then 16868 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 16869else 16870 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 16871echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 16872if test "${ac_cv_lib_dld_dld_link+set}" = set; then 16873 echo $ECHO_N "(cached) $ECHO_C" >&6 16874else 16875 ac_check_lib_save_LIBS=$LIBS 16876LIBS="-ldld $LIBS" 16877cat >conftest.$ac_ext <<_ACEOF 16878#line $LINENO "configure" 16879/* confdefs.h. */ 16880_ACEOF 16881cat confdefs.h >>conftest.$ac_ext 16882cat >>conftest.$ac_ext <<_ACEOF 16883/* end confdefs.h. */ 16884 16885/* Override any gcc2 internal prototype to avoid an error. */ 16886#ifdef __cplusplus 16887extern "C" 16888#endif 16889/* We use char because int might match the return type of a gcc2 16890 builtin and then its argument prototype would still apply. */ 16891char dld_link (); 16892int 16893main () 16894{ 16895dld_link (); 16896 ; 16897 return 0; 16898} 16899_ACEOF 16900rm -f conftest.$ac_objext conftest$ac_exeext 16901if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16902 (eval $ac_link) 2>&5 16903 ac_status=$? 16904 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16905 (exit $ac_status); } && 16906 { ac_try='test -s conftest$ac_exeext' 16907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16908 (eval $ac_try) 2>&5 16909 ac_status=$? 16910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16911 (exit $ac_status); }; }; then 16912 ac_cv_lib_dld_dld_link=yes 16913else 16914 echo "$as_me: failed program was:" >&5 16915sed 's/^/| /' conftest.$ac_ext >&5 16916 16917ac_cv_lib_dld_dld_link=no 16918fi 16919rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16920LIBS=$ac_check_lib_save_LIBS 16921fi 16922echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 16923echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 16924if test $ac_cv_lib_dld_dld_link = yes; then 16925 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 16926fi 16927 16928 16929fi 16930 16931 16932fi 16933 16934 16935fi 16936 16937 16938fi 16939 16940 16941fi 16942 16943 ;; 16944 esac 16945 16946 if test "x$lt_cv_dlopen" != xno; then 16947 enable_dlopen=yes 16948 else 16949 enable_dlopen=no 16950 fi 16951 16952 case $lt_cv_dlopen in 16953 dlopen) 16954 save_CPPFLAGS="$CPPFLAGS" 16955 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 16956 16957 save_LDFLAGS="$LDFLAGS" 16958 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 16959 16960 save_LIBS="$LIBS" 16961 LIBS="$lt_cv_dlopen_libs $LIBS" 16962 16963 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 16964echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 16965if test "${lt_cv_dlopen_self+set}" = set; then 16966 echo $ECHO_N "(cached) $ECHO_C" >&6 16967else 16968 if test "$cross_compiling" = yes; then : 16969 lt_cv_dlopen_self=cross 16970else 16971 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 16972 lt_status=$lt_dlunknown 16973 cat > conftest.$ac_ext <<EOF 16974#line 16974 "configure" 16975#include "confdefs.h" 16976 16977#if HAVE_DLFCN_H 16978#include <dlfcn.h> 16979#endif 16980 16981#include <stdio.h> 16982 16983#ifdef RTLD_GLOBAL 16984# define LT_DLGLOBAL RTLD_GLOBAL 16985#else 16986# ifdef DL_GLOBAL 16987# define LT_DLGLOBAL DL_GLOBAL 16988# else 16989# define LT_DLGLOBAL 0 16990# endif 16991#endif 16992 16993/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 16994 find out it does not work in some platform. */ 16995#ifndef LT_DLLAZY_OR_NOW 16996# ifdef RTLD_LAZY 16997# define LT_DLLAZY_OR_NOW RTLD_LAZY 16998# else 16999# ifdef DL_LAZY 17000# define LT_DLLAZY_OR_NOW DL_LAZY 17001# else 17002# ifdef RTLD_NOW 17003# define LT_DLLAZY_OR_NOW RTLD_NOW 17004# else 17005# ifdef DL_NOW 17006# define LT_DLLAZY_OR_NOW DL_NOW 17007# else 17008# define LT_DLLAZY_OR_NOW 0 17009# endif 17010# endif 17011# endif 17012# endif 17013#endif 17014 17015#ifdef __cplusplus 17016extern "C" void exit (int); 17017#endif 17018 17019void fnord() { int i=42;} 17020int main () 17021{ 17022 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 17023 int status = $lt_dlunknown; 17024 17025 if (self) 17026 { 17027 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 17028 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 17029 /* dlclose (self); */ 17030 } 17031 17032 exit (status); 17033} 17034EOF 17035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17036 (eval $ac_link) 2>&5 17037 ac_status=$? 17038 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17039 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 17040 (./conftest; exit; ) 2>/dev/null 17041 lt_status=$? 17042 case x$lt_status in 17043 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 17044 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 17045 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 17046 esac 17047 else : 17048 # compilation failed 17049 lt_cv_dlopen_self=no 17050 fi 17051fi 17052rm -fr conftest* 17053 17054 17055fi 17056echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 17057echo "${ECHO_T}$lt_cv_dlopen_self" >&6 17058 17059 if test "x$lt_cv_dlopen_self" = xyes; then 17060 LDFLAGS="$LDFLAGS $link_static_flag" 17061 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 17062echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 17063if test "${lt_cv_dlopen_self_static+set}" = set; then 17064 echo $ECHO_N "(cached) $ECHO_C" >&6 17065else 17066 if test "$cross_compiling" = yes; then : 17067 lt_cv_dlopen_self_static=cross 17068else 17069 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 17070 lt_status=$lt_dlunknown 17071 cat > conftest.$ac_ext <<EOF 17072#line 17072 "configure" 17073#include "confdefs.h" 17074 17075#if HAVE_DLFCN_H 17076#include <dlfcn.h> 17077#endif 17078 17079#include <stdio.h> 17080 17081#ifdef RTLD_GLOBAL 17082# define LT_DLGLOBAL RTLD_GLOBAL 17083#else 17084# ifdef DL_GLOBAL 17085# define LT_DLGLOBAL DL_GLOBAL 17086# else 17087# define LT_DLGLOBAL 0 17088# endif 17089#endif 17090 17091/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 17092 find out it does not work in some platform. */ 17093#ifndef LT_DLLAZY_OR_NOW 17094# ifdef RTLD_LAZY 17095# define LT_DLLAZY_OR_NOW RTLD_LAZY 17096# else 17097# ifdef DL_LAZY 17098# define LT_DLLAZY_OR_NOW DL_LAZY 17099# else 17100# ifdef RTLD_NOW 17101# define LT_DLLAZY_OR_NOW RTLD_NOW 17102# else 17103# ifdef DL_NOW 17104# define LT_DLLAZY_OR_NOW DL_NOW 17105# else 17106# define LT_DLLAZY_OR_NOW 0 17107# endif 17108# endif 17109# endif 17110# endif 17111#endif 17112 17113#ifdef __cplusplus 17114extern "C" void exit (int); 17115#endif 17116 17117void fnord() { int i=42;} 17118int main () 17119{ 17120 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 17121 int status = $lt_dlunknown; 17122 17123 if (self) 17124 { 17125 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 17126 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 17127 /* dlclose (self); */ 17128 } 17129 17130 exit (status); 17131} 17132EOF 17133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17134 (eval $ac_link) 2>&5 17135 ac_status=$? 17136 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17137 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 17138 (./conftest; exit; ) 2>/dev/null 17139 lt_status=$? 17140 case x$lt_status in 17141 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 17142 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 17143 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 17144 esac 17145 else : 17146 # compilation failed 17147 lt_cv_dlopen_self_static=no 17148 fi 17149fi 17150rm -fr conftest* 17151 17152 17153fi 17154echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 17155echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 17156 fi 17157 17158 CPPFLAGS="$save_CPPFLAGS" 17159 LDFLAGS="$save_LDFLAGS" 17160 LIBS="$save_LIBS" 17161 ;; 17162 esac 17163 17164 case $lt_cv_dlopen_self in 17165 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 17166 *) enable_dlopen_self=unknown ;; 17167 esac 17168 17169 case $lt_cv_dlopen_self_static in 17170 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 17171 *) enable_dlopen_self_static=unknown ;; 17172 esac 17173fi 17174 17175 17176# The else clause should only fire when bootstrapping the 17177# libtool distribution, otherwise you forgot to ship ltmain.sh 17178# with your package, and you will get complaints that there are 17179# no rules to generate ltmain.sh. 17180if test -f "$ltmain"; then 17181 # See if we are running on zsh, and set the options which allow our commands through 17182 # without removal of \ escapes. 17183 if test -n "${ZSH_VERSION+set}" ; then 17184 setopt NO_GLOB_SUBST 17185 fi 17186 # Now quote all the things that may contain metacharacters while being 17187 # careful not to overquote the AC_SUBSTed values. We take copies of the 17188 # variables and quote the copies for generation of the libtool script. 17189 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ 17190 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 17191 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 17192 deplibs_check_method reload_flag reload_cmds need_locks \ 17193 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 17194 lt_cv_sys_global_symbol_to_c_name_address \ 17195 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 17196 old_postinstall_cmds old_postuninstall_cmds \ 17197 compiler_GCJ \ 17198 CC_GCJ \ 17199 LD_GCJ \ 17200 lt_prog_compiler_wl_GCJ \ 17201 lt_prog_compiler_pic_GCJ \ 17202 lt_prog_compiler_static_GCJ \ 17203 lt_prog_compiler_no_builtin_flag_GCJ \ 17204 export_dynamic_flag_spec_GCJ \ 17205 thread_safe_flag_spec_GCJ \ 17206 whole_archive_flag_spec_GCJ \ 17207 enable_shared_with_static_runtimes_GCJ \ 17208 old_archive_cmds_GCJ \ 17209 old_archive_from_new_cmds_GCJ \ 17210 predep_objects_GCJ \ 17211 postdep_objects_GCJ \ 17212 predeps_GCJ \ 17213 postdeps_GCJ \ 17214 compiler_lib_search_path_GCJ \ 17215 archive_cmds_GCJ \ 17216 archive_expsym_cmds_GCJ \ 17217 postinstall_cmds_GCJ \ 17218 postuninstall_cmds_GCJ \ 17219 old_archive_from_expsyms_cmds_GCJ \ 17220 allow_undefined_flag_GCJ \ 17221 no_undefined_flag_GCJ \ 17222 export_symbols_cmds_GCJ \ 17223 hardcode_libdir_flag_spec_GCJ \ 17224 hardcode_libdir_flag_spec_ld_GCJ \ 17225 hardcode_libdir_separator_GCJ \ 17226 hardcode_automatic_GCJ \ 17227 module_cmds_GCJ \ 17228 module_expsym_cmds_GCJ \ 17229 lt_cv_prog_compiler_c_o_GCJ \ 17230 exclude_expsyms_GCJ \ 17231 include_expsyms_GCJ; do 17232 17233 case $var in 17234 old_archive_cmds_GCJ | \ 17235 old_archive_from_new_cmds_GCJ | \ 17236 archive_cmds_GCJ | \ 17237 archive_expsym_cmds_GCJ | \ 17238 module_cmds_GCJ | \ 17239 module_expsym_cmds_GCJ | \ 17240 old_archive_from_expsyms_cmds_GCJ | \ 17241 export_symbols_cmds_GCJ | \ 17242 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 17243 postinstall_cmds | postuninstall_cmds | \ 17244 old_postinstall_cmds | old_postuninstall_cmds | \ 17245 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 17246 # Double-quote double-evaled strings. 17247 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 17248 ;; 17249 *) 17250 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 17251 ;; 17252 esac 17253 done 17254 17255 case $lt_echo in 17256 *'\$0 --fallback-echo"') 17257 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 17258 ;; 17259 esac 17260 17261cfgfile="$ofile" 17262 17263 cat <<__EOF__ >> "$cfgfile" 17264# ### BEGIN LIBTOOL TAG CONFIG: $tagname 17265 17266# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17267 17268# Shell to use when invoking shell scripts. 17269SHELL=$lt_SHELL 17270 17271# Whether or not to build shared libraries. 17272build_libtool_libs=$enable_shared 17273 17274# Whether or not to build static libraries. 17275build_old_libs=$enable_static 17276 17277# Whether or not to add -lc for building shared libraries. 17278build_libtool_need_lc=$archive_cmds_need_lc_GCJ 17279 17280# Whether or not to disallow shared libs when runtime libs are static 17281allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 17282 17283# Whether or not to optimize for fast installation. 17284fast_install=$enable_fast_install 17285 17286# The host system. 17287host_alias=$host_alias 17288host=$host 17289 17290# An echo program that does not interpret backslashes. 17291echo=$lt_echo 17292 17293# The archiver. 17294AR=$lt_AR 17295AR_FLAGS=$lt_AR_FLAGS 17296 17297# A C compiler. 17298LTCC=$lt_LTCC 17299 17300# A language-specific compiler. 17301CC=$lt_compiler_GCJ 17302 17303# Is the compiler the GNU C compiler? 17304with_gcc=$GCC_GCJ 17305 17306# An ERE matcher. 17307EGREP=$lt_EGREP 17308 17309# The linker used to build libraries. 17310LD=$lt_LD_GCJ 17311 17312# Whether we need hard or soft links. 17313LN_S=$lt_LN_S 17314 17315# A BSD-compatible nm program. 17316NM=$lt_NM 17317 17318# A symbol stripping program 17319STRIP=$STRIP 17320 17321# Used to examine libraries when file_magic_cmd begins "file" 17322MAGIC_CMD=$MAGIC_CMD 17323 17324# Used on cygwin: DLL creation program. 17325DLLTOOL="$DLLTOOL" 17326 17327# Used on cygwin: object dumper. 17328OBJDUMP="$OBJDUMP" 17329 17330# Used on cygwin: assembler. 17331AS="$AS" 17332 17333# The name of the directory that contains temporary libtool files. 17334objdir=$objdir 17335 17336# How to create reloadable object files. 17337reload_flag=$lt_reload_flag 17338reload_cmds=$lt_reload_cmds 17339 17340# How to pass a linker flag through the compiler. 17341wl=$lt_lt_prog_compiler_wl_GCJ 17342 17343# Object file suffix (normally "o"). 17344objext="$ac_objext" 17345 17346# Old archive suffix (normally "a"). 17347libext="$libext" 17348 17349# Shared library suffix (normally ".so"). 17350shrext='$shrext' 17351 17352# Executable file suffix (normally ""). 17353exeext="$exeext" 17354 17355# Additional compiler flags for building library objects. 17356pic_flag=$lt_lt_prog_compiler_pic_GCJ 17357pic_mode=$pic_mode 17358 17359# What is the maximum length of a command? 17360max_cmd_len=$lt_cv_sys_max_cmd_len 17361 17362# Does compiler simultaneously support -c and -o options? 17363compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 17364 17365# Must we lock files when doing compilation ? 17366need_locks=$lt_need_locks 17367 17368# Do we need the lib prefix for modules? 17369need_lib_prefix=$need_lib_prefix 17370 17371# Do we need a version for libraries? 17372need_version=$need_version 17373 17374# Whether dlopen is supported. 17375dlopen_support=$enable_dlopen 17376 17377# Whether dlopen of programs is supported. 17378dlopen_self=$enable_dlopen_self 17379 17380# Whether dlopen of statically linked programs is supported. 17381dlopen_self_static=$enable_dlopen_self_static 17382 17383# Compiler flag to prevent dynamic linking. 17384link_static_flag=$lt_lt_prog_compiler_static_GCJ 17385 17386# Compiler flag to turn off builtin functions. 17387no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 17388 17389# Compiler flag to allow reflexive dlopens. 17390export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 17391 17392# Compiler flag to generate shared objects directly from archives. 17393whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 17394 17395# Compiler flag to generate thread-safe objects. 17396thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 17397 17398# Library versioning type. 17399version_type=$version_type 17400 17401# Format of library name prefix. 17402libname_spec=$lt_libname_spec 17403 17404# List of archive names. First name is the real one, the rest are links. 17405# The last name is the one that the linker finds with -lNAME. 17406library_names_spec=$lt_library_names_spec 17407 17408# The coded name of the library, if different from the real name. 17409soname_spec=$lt_soname_spec 17410 17411# Commands used to build and install an old-style archive. 17412RANLIB=$lt_RANLIB 17413old_archive_cmds=$lt_old_archive_cmds_GCJ 17414old_postinstall_cmds=$lt_old_postinstall_cmds 17415old_postuninstall_cmds=$lt_old_postuninstall_cmds 17416 17417# Create an old-style archive from a shared archive. 17418old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 17419 17420# Create a temporary old-style archive to link instead of a shared archive. 17421old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 17422 17423# Commands used to build and install a shared archive. 17424archive_cmds=$lt_archive_cmds_GCJ 17425archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 17426postinstall_cmds=$lt_postinstall_cmds 17427postuninstall_cmds=$lt_postuninstall_cmds 17428 17429# Commands used to build a loadable module (assumed same as above if empty) 17430module_cmds=$lt_module_cmds_GCJ 17431module_expsym_cmds=$lt_module_expsym_cmds_GCJ 17432 17433# Commands to strip libraries. 17434old_striplib=$lt_old_striplib 17435striplib=$lt_striplib 17436 17437# Dependencies to place before the objects being linked to create a 17438# shared library. 17439predep_objects=$lt_predep_objects_GCJ 17440 17441# Dependencies to place after the objects being linked to create a 17442# shared library. 17443postdep_objects=$lt_postdep_objects_GCJ 17444 17445# Dependencies to place before the objects being linked to create a 17446# shared library. 17447predeps=$lt_predeps_GCJ 17448 17449# Dependencies to place after the objects being linked to create a 17450# shared library. 17451postdeps=$lt_postdeps_GCJ 17452 17453# The library search path used internally by the compiler when linking 17454# a shared library. 17455compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 17456 17457# Method to check whether dependent libraries are shared objects. 17458deplibs_check_method=$lt_deplibs_check_method 17459 17460# Command to use when deplibs_check_method == file_magic. 17461file_magic_cmd=$lt_file_magic_cmd 17462 17463# Flag that allows shared libraries with undefined symbols to be built. 17464allow_undefined_flag=$lt_allow_undefined_flag_GCJ 17465 17466# Flag that forces no undefined symbols. 17467no_undefined_flag=$lt_no_undefined_flag_GCJ 17468 17469# Commands used to finish a libtool library installation in a directory. 17470finish_cmds=$lt_finish_cmds 17471 17472# Same as above, but a single script fragment to be evaled but not shown. 17473finish_eval=$lt_finish_eval 17474 17475# Take the output of nm and produce a listing of raw symbols and C names. 17476global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17477 17478# Transform the output of nm in a proper C declaration 17479global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17480 17481# Transform the output of nm in a C name address pair 17482global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 17483 17484# This is the shared library runtime path variable. 17485runpath_var=$runpath_var 17486 17487# This is the shared library path variable. 17488shlibpath_var=$shlibpath_var 17489 17490# Is shlibpath searched before the hard-coded library search path? 17491shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17492 17493# How to hardcode a shared library path into an executable. 17494hardcode_action=$hardcode_action_GCJ 17495 17496# Whether we should hardcode library paths into libraries. 17497hardcode_into_libs=$hardcode_into_libs 17498 17499# Flag to hardcode \$libdir into a binary during linking. 17500# This must work even if \$libdir does not exist. 17501hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 17502 17503# If ld is used when linking, flag to hardcode \$libdir into 17504# a binary during linking. This must work even if \$libdir does 17505# not exist. 17506hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 17507 17508# Whether we need a single -rpath flag with a separated argument. 17509hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 17510 17511# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 17512# resulting binary. 17513hardcode_direct=$hardcode_direct_GCJ 17514 17515# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 17516# resulting binary. 17517hardcode_minus_L=$hardcode_minus_L_GCJ 17518 17519# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 17520# the resulting binary. 17521hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 17522 17523# Set to yes if building a shared library automatically hardcodes DIR into the library 17524# and all subsequent libraries and executables linked against it. 17525hardcode_automatic=$hardcode_automatic_GCJ 17526 17527# Variables whose values should be saved in libtool wrapper scripts and 17528# restored at relink time. 17529variables_saved_for_relink="$variables_saved_for_relink" 17530 17531# Whether libtool must link a program against all its dependency libraries. 17532link_all_deplibs=$link_all_deplibs_GCJ 17533 17534# Compile-time system search path for libraries 17535sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 17536 17537# Run-time system search path for libraries 17538sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 17539 17540# Fix the shell variable \$srcfile for the compiler. 17541fix_srcfile_path="$fix_srcfile_path_GCJ" 17542 17543# Set to yes if exported symbols are required. 17544always_export_symbols=$always_export_symbols_GCJ 17545 17546# The commands to list exported symbols. 17547export_symbols_cmds=$lt_export_symbols_cmds_GCJ 17548 17549# The commands to extract the exported symbol list from a shared archive. 17550extract_expsyms_cmds=$lt_extract_expsyms_cmds 17551 17552# Symbols that should not be listed in the preloaded symbols. 17553exclude_expsyms=$lt_exclude_expsyms_GCJ 17554 17555# Symbols that must always be exported. 17556include_expsyms=$lt_include_expsyms_GCJ 17557 17558# ### END LIBTOOL TAG CONFIG: $tagname 17559 17560__EOF__ 17561 17562 17563else 17564 # If there is no Makefile yet, we rely on a make rule to execute 17565 # `config.status --recheck' to rerun these tests and create the 17566 # libtool script then. 17567 test -f Makefile && make "$ltmain" 17568fi 17569 17570 17571ac_ext=c 17572ac_cpp='$CPP $CPPFLAGS' 17573ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17574ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17575ac_compiler_gnu=$ac_cv_c_compiler_gnu 17576 17577CC="$lt_save_CC" 17578 17579 else 17580 tagname="" 17581 fi 17582 ;; 17583 17584 RC) 17585 17586 17587 17588# Source file extension for RC test sources. 17589ac_ext=rc 17590 17591# Object file extension for compiled RC test sources. 17592objext=o 17593objext_RC=$objext 17594 17595# Code to be used in simple compile tests 17596lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 17597 17598# Code to be used in simple link tests 17599lt_simple_link_test_code="$lt_simple_compile_test_code" 17600 17601# ltmain only uses $CC for tagged configurations so make sure $CC is set. 17602 17603# If no C compiler was specified, use CC. 17604LTCC=${LTCC-"$CC"} 17605 17606# Allow CC to be a program name with arguments. 17607compiler=$CC 17608 17609 17610# Allow CC to be a program name with arguments. 17611lt_save_CC="$CC" 17612CC=${RC-"windres"} 17613compiler=$CC 17614compiler_RC=$CC 17615lt_cv_prog_compiler_c_o_RC=yes 17616 17617# The else clause should only fire when bootstrapping the 17618# libtool distribution, otherwise you forgot to ship ltmain.sh 17619# with your package, and you will get complaints that there are 17620# no rules to generate ltmain.sh. 17621if test -f "$ltmain"; then 17622 # See if we are running on zsh, and set the options which allow our commands through 17623 # without removal of \ escapes. 17624 if test -n "${ZSH_VERSION+set}" ; then 17625 setopt NO_GLOB_SUBST 17626 fi 17627 # Now quote all the things that may contain metacharacters while being 17628 # careful not to overquote the AC_SUBSTed values. We take copies of the 17629 # variables and quote the copies for generation of the libtool script. 17630 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ 17631 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 17632 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 17633 deplibs_check_method reload_flag reload_cmds need_locks \ 17634 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 17635 lt_cv_sys_global_symbol_to_c_name_address \ 17636 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 17637 old_postinstall_cmds old_postuninstall_cmds \ 17638 compiler_RC \ 17639 CC_RC \ 17640 LD_RC \ 17641 lt_prog_compiler_wl_RC \ 17642 lt_prog_compiler_pic_RC \ 17643 lt_prog_compiler_static_RC \ 17644 lt_prog_compiler_no_builtin_flag_RC \ 17645 export_dynamic_flag_spec_RC \ 17646 thread_safe_flag_spec_RC \ 17647 whole_archive_flag_spec_RC \ 17648 enable_shared_with_static_runtimes_RC \ 17649 old_archive_cmds_RC \ 17650 old_archive_from_new_cmds_RC \ 17651 predep_objects_RC \ 17652 postdep_objects_RC \ 17653 predeps_RC \ 17654 postdeps_RC \ 17655 compiler_lib_search_path_RC \ 17656 archive_cmds_RC \ 17657 archive_expsym_cmds_RC \ 17658 postinstall_cmds_RC \ 17659 postuninstall_cmds_RC \ 17660 old_archive_from_expsyms_cmds_RC \ 17661 allow_undefined_flag_RC \ 17662 no_undefined_flag_RC \ 17663 export_symbols_cmds_RC \ 17664 hardcode_libdir_flag_spec_RC \ 17665 hardcode_libdir_flag_spec_ld_RC \ 17666 hardcode_libdir_separator_RC \ 17667 hardcode_automatic_RC \ 17668 module_cmds_RC \ 17669 module_expsym_cmds_RC \ 17670 lt_cv_prog_compiler_c_o_RC \ 17671 exclude_expsyms_RC \ 17672 include_expsyms_RC; do 17673 17674 case $var in 17675 old_archive_cmds_RC | \ 17676 old_archive_from_new_cmds_RC | \ 17677 archive_cmds_RC | \ 17678 archive_expsym_cmds_RC | \ 17679 module_cmds_RC | \ 17680 module_expsym_cmds_RC | \ 17681 old_archive_from_expsyms_cmds_RC | \ 17682 export_symbols_cmds_RC | \ 17683 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 17684 postinstall_cmds | postuninstall_cmds | \ 17685 old_postinstall_cmds | old_postuninstall_cmds | \ 17686 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 17687 # Double-quote double-evaled strings. 17688 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 17689 ;; 17690 *) 17691 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 17692 ;; 17693 esac 17694 done 17695 17696 case $lt_echo in 17697 *'\$0 --fallback-echo"') 17698 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 17699 ;; 17700 esac 17701 17702cfgfile="$ofile" 17703 17704 cat <<__EOF__ >> "$cfgfile" 17705# ### BEGIN LIBTOOL TAG CONFIG: $tagname 17706 17707# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17708 17709# Shell to use when invoking shell scripts. 17710SHELL=$lt_SHELL 17711 17712# Whether or not to build shared libraries. 17713build_libtool_libs=$enable_shared 17714 17715# Whether or not to build static libraries. 17716build_old_libs=$enable_static 17717 17718# Whether or not to add -lc for building shared libraries. 17719build_libtool_need_lc=$archive_cmds_need_lc_RC 17720 17721# Whether or not to disallow shared libs when runtime libs are static 17722allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 17723 17724# Whether or not to optimize for fast installation. 17725fast_install=$enable_fast_install 17726 17727# The host system. 17728host_alias=$host_alias 17729host=$host 17730 17731# An echo program that does not interpret backslashes. 17732echo=$lt_echo 17733 17734# The archiver. 17735AR=$lt_AR 17736AR_FLAGS=$lt_AR_FLAGS 17737 17738# A C compiler. 17739LTCC=$lt_LTCC 17740 17741# A language-specific compiler. 17742CC=$lt_compiler_RC 17743 17744# Is the compiler the GNU C compiler? 17745with_gcc=$GCC_RC 17746 17747# An ERE matcher. 17748EGREP=$lt_EGREP 17749 17750# The linker used to build libraries. 17751LD=$lt_LD_RC 17752 17753# Whether we need hard or soft links. 17754LN_S=$lt_LN_S 17755 17756# A BSD-compatible nm program. 17757NM=$lt_NM 17758 17759# A symbol stripping program 17760STRIP=$STRIP 17761 17762# Used to examine libraries when file_magic_cmd begins "file" 17763MAGIC_CMD=$MAGIC_CMD 17764 17765# Used on cygwin: DLL creation program. 17766DLLTOOL="$DLLTOOL" 17767 17768# Used on cygwin: object dumper. 17769OBJDUMP="$OBJDUMP" 17770 17771# Used on cygwin: assembler. 17772AS="$AS" 17773 17774# The name of the directory that contains temporary libtool files. 17775objdir=$objdir 17776 17777# How to create reloadable object files. 17778reload_flag=$lt_reload_flag 17779reload_cmds=$lt_reload_cmds 17780 17781# How to pass a linker flag through the compiler. 17782wl=$lt_lt_prog_compiler_wl_RC 17783 17784# Object file suffix (normally "o"). 17785objext="$ac_objext" 17786 17787# Old archive suffix (normally "a"). 17788libext="$libext" 17789 17790# Shared library suffix (normally ".so"). 17791shrext='$shrext' 17792 17793# Executable file suffix (normally ""). 17794exeext="$exeext" 17795 17796# Additional compiler flags for building library objects. 17797pic_flag=$lt_lt_prog_compiler_pic_RC 17798pic_mode=$pic_mode 17799 17800# What is the maximum length of a command? 17801max_cmd_len=$lt_cv_sys_max_cmd_len 17802 17803# Does compiler simultaneously support -c and -o options? 17804compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 17805 17806# Must we lock files when doing compilation ? 17807need_locks=$lt_need_locks 17808 17809# Do we need the lib prefix for modules? 17810need_lib_prefix=$need_lib_prefix 17811 17812# Do we need a version for libraries? 17813need_version=$need_version 17814 17815# Whether dlopen is supported. 17816dlopen_support=$enable_dlopen 17817 17818# Whether dlopen of programs is supported. 17819dlopen_self=$enable_dlopen_self 17820 17821# Whether dlopen of statically linked programs is supported. 17822dlopen_self_static=$enable_dlopen_self_static 17823 17824# Compiler flag to prevent dynamic linking. 17825link_static_flag=$lt_lt_prog_compiler_static_RC 17826 17827# Compiler flag to turn off builtin functions. 17828no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 17829 17830# Compiler flag to allow reflexive dlopens. 17831export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 17832 17833# Compiler flag to generate shared objects directly from archives. 17834whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 17835 17836# Compiler flag to generate thread-safe objects. 17837thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 17838 17839# Library versioning type. 17840version_type=$version_type 17841 17842# Format of library name prefix. 17843libname_spec=$lt_libname_spec 17844 17845# List of archive names. First name is the real one, the rest are links. 17846# The last name is the one that the linker finds with -lNAME. 17847library_names_spec=$lt_library_names_spec 17848 17849# The coded name of the library, if different from the real name. 17850soname_spec=$lt_soname_spec 17851 17852# Commands used to build and install an old-style archive. 17853RANLIB=$lt_RANLIB 17854old_archive_cmds=$lt_old_archive_cmds_RC 17855old_postinstall_cmds=$lt_old_postinstall_cmds 17856old_postuninstall_cmds=$lt_old_postuninstall_cmds 17857 17858# Create an old-style archive from a shared archive. 17859old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 17860 17861# Create a temporary old-style archive to link instead of a shared archive. 17862old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 17863 17864# Commands used to build and install a shared archive. 17865archive_cmds=$lt_archive_cmds_RC 17866archive_expsym_cmds=$lt_archive_expsym_cmds_RC 17867postinstall_cmds=$lt_postinstall_cmds 17868postuninstall_cmds=$lt_postuninstall_cmds 17869 17870# Commands used to build a loadable module (assumed same as above if empty) 17871module_cmds=$lt_module_cmds_RC 17872module_expsym_cmds=$lt_module_expsym_cmds_RC 17873 17874# Commands to strip libraries. 17875old_striplib=$lt_old_striplib 17876striplib=$lt_striplib 17877 17878# Dependencies to place before the objects being linked to create a 17879# shared library. 17880predep_objects=$lt_predep_objects_RC 17881 17882# Dependencies to place after the objects being linked to create a 17883# shared library. 17884postdep_objects=$lt_postdep_objects_RC 17885 17886# Dependencies to place before the objects being linked to create a 17887# shared library. 17888predeps=$lt_predeps_RC 17889 17890# Dependencies to place after the objects being linked to create a 17891# shared library. 17892postdeps=$lt_postdeps_RC 17893 17894# The library search path used internally by the compiler when linking 17895# a shared library. 17896compiler_lib_search_path=$lt_compiler_lib_search_path_RC 17897 17898# Method to check whether dependent libraries are shared objects. 17899deplibs_check_method=$lt_deplibs_check_method 17900 17901# Command to use when deplibs_check_method == file_magic. 17902file_magic_cmd=$lt_file_magic_cmd 17903 17904# Flag that allows shared libraries with undefined symbols to be built. 17905allow_undefined_flag=$lt_allow_undefined_flag_RC 17906 17907# Flag that forces no undefined symbols. 17908no_undefined_flag=$lt_no_undefined_flag_RC 17909 17910# Commands used to finish a libtool library installation in a directory. 17911finish_cmds=$lt_finish_cmds 17912 17913# Same as above, but a single script fragment to be evaled but not shown. 17914finish_eval=$lt_finish_eval 17915 17916# Take the output of nm and produce a listing of raw symbols and C names. 17917global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17918 17919# Transform the output of nm in a proper C declaration 17920global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17921 17922# Transform the output of nm in a C name address pair 17923global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 17924 17925# This is the shared library runtime path variable. 17926runpath_var=$runpath_var 17927 17928# This is the shared library path variable. 17929shlibpath_var=$shlibpath_var 17930 17931# Is shlibpath searched before the hard-coded library search path? 17932shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17933 17934# How to hardcode a shared library path into an executable. 17935hardcode_action=$hardcode_action_RC 17936 17937# Whether we should hardcode library paths into libraries. 17938hardcode_into_libs=$hardcode_into_libs 17939 17940# Flag to hardcode \$libdir into a binary during linking. 17941# This must work even if \$libdir does not exist. 17942hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 17943 17944# If ld is used when linking, flag to hardcode \$libdir into 17945# a binary during linking. This must work even if \$libdir does 17946# not exist. 17947hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 17948 17949# Whether we need a single -rpath flag with a separated argument. 17950hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 17951 17952# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 17953# resulting binary. 17954hardcode_direct=$hardcode_direct_RC 17955 17956# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 17957# resulting binary. 17958hardcode_minus_L=$hardcode_minus_L_RC 17959 17960# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 17961# the resulting binary. 17962hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 17963 17964# Set to yes if building a shared library automatically hardcodes DIR into the library 17965# and all subsequent libraries and executables linked against it. 17966hardcode_automatic=$hardcode_automatic_RC 17967 17968# Variables whose values should be saved in libtool wrapper scripts and 17969# restored at relink time. 17970variables_saved_for_relink="$variables_saved_for_relink" 17971 17972# Whether libtool must link a program against all its dependency libraries. 17973link_all_deplibs=$link_all_deplibs_RC 17974 17975# Compile-time system search path for libraries 17976sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 17977 17978# Run-time system search path for libraries 17979sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 17980 17981# Fix the shell variable \$srcfile for the compiler. 17982fix_srcfile_path="$fix_srcfile_path_RC" 17983 17984# Set to yes if exported symbols are required. 17985always_export_symbols=$always_export_symbols_RC 17986 17987# The commands to list exported symbols. 17988export_symbols_cmds=$lt_export_symbols_cmds_RC 17989 17990# The commands to extract the exported symbol list from a shared archive. 17991extract_expsyms_cmds=$lt_extract_expsyms_cmds 17992 17993# Symbols that should not be listed in the preloaded symbols. 17994exclude_expsyms=$lt_exclude_expsyms_RC 17995 17996# Symbols that must always be exported. 17997include_expsyms=$lt_include_expsyms_RC 17998 17999# ### END LIBTOOL TAG CONFIG: $tagname 18000 18001__EOF__ 18002 18003 18004else 18005 # If there is no Makefile yet, we rely on a make rule to execute 18006 # `config.status --recheck' to rerun these tests and create the 18007 # libtool script then. 18008 test -f Makefile && make "$ltmain" 18009fi 18010 18011 18012ac_ext=c 18013ac_cpp='$CPP $CPPFLAGS' 18014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18016ac_compiler_gnu=$ac_cv_c_compiler_gnu 18017 18018CC="$lt_save_CC" 18019 18020 ;; 18021 18022 *) 18023 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 18024echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 18025 { (exit 1); exit 1; }; } 18026 ;; 18027 esac 18028 18029 # Append the new tag name to the list of available tags. 18030 if test -n "$tagname" ; then 18031 available_tags="$available_tags $tagname" 18032 fi 18033 fi 18034 done 18035 IFS="$lt_save_ifs" 18036 18037 # Now substitute the updated list of available tags. 18038 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 18039 mv "${ofile}T" "$ofile" 18040 chmod +x "$ofile" 18041 else 18042 rm -f "${ofile}T" 18043 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 18044echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 18045 { (exit 1); exit 1; }; } 18046 fi 18047fi 18048 18049 18050 18051# This can be used to rebuild libtool when needed 18052LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 18053 18054# Always use our own libtool. 18055LIBTOOL='$(SHELL) $(top_builddir)/mklib' 18056 18057# Prevent multiple expansion 18058 18059 18060 18061 18062 18063 18064 18065 18066 18067 18068 18069 18070 18071 18072 18073 18074 18075 18076 18077 18078 18079# Extract the first word of "dot", so it can be a program name with args. 18080set dummy dot; ac_word=$2 18081echo "$as_me:$LINENO: checking for $ac_word" >&5 18082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18083if test "${ac_cv_path_DOT+set}" = set; then 18084 echo $ECHO_N "(cached) $ECHO_C" >&6 18085else 18086 case $DOT in 18087 [\\/]* | ?:[\\/]*) 18088 ac_cv_path_DOT="$DOT" # Let the user override the test with a path. 18089 ;; 18090 *) 18091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18092for as_dir in $PATH 18093do 18094 IFS=$as_save_IFS 18095 test -z "$as_dir" && as_dir=. 18096 for ac_exec_ext in '' $ac_executable_extensions; do 18097 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18098 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" 18099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18100 break 2 18101 fi 18102done 18103done 18104 18105 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot" 18106 ;; 18107esac 18108fi 18109DOT=$ac_cv_path_DOT 18110 18111if test -n "$DOT"; then 18112 echo "$as_me:$LINENO: result: $DOT" >&5 18113echo "${ECHO_T}$DOT" >&6 18114else 18115 echo "$as_me:$LINENO: result: no" >&5 18116echo "${ECHO_T}no" >&6 18117fi 18118 18119# Extract the first word of "etags", so it can be a program name with args. 18120set dummy etags; ac_word=$2 18121echo "$as_me:$LINENO: checking for $ac_word" >&5 18122echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18123if test "${ac_cv_path_ETAGS+set}" = set; then 18124 echo $ECHO_N "(cached) $ECHO_C" >&6 18125else 18126 case $ETAGS in 18127 [\\/]* | ?:[\\/]*) 18128 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path. 18129 ;; 18130 *) 18131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18132for as_dir in $PATH 18133do 18134 IFS=$as_save_IFS 18135 test -z "$as_dir" && as_dir=. 18136 for ac_exec_ext in '' $ac_executable_extensions; do 18137 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18138 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext" 18139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18140 break 2 18141 fi 18142done 18143done 18144 18145 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags" 18146 ;; 18147esac 18148fi 18149ETAGS=$ac_cv_path_ETAGS 18150 18151if test -n "$ETAGS"; then 18152 echo "$as_me:$LINENO: result: $ETAGS" >&5 18153echo "${ECHO_T}$ETAGS" >&6 18154else 18155 echo "$as_me:$LINENO: result: no" >&5 18156echo "${ECHO_T}no" >&6 18157fi 18158 18159# Extract the first word of "python", so it can be a program name with args. 18160set dummy python; ac_word=$2 18161echo "$as_me:$LINENO: checking for $ac_word" >&5 18162echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18163if test "${ac_cv_path_PYTHON+set}" = set; then 18164 echo $ECHO_N "(cached) $ECHO_C" >&6 18165else 18166 case $PYTHON in 18167 [\\/]* | ?:[\\/]*) 18168 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 18169 ;; 18170 *) 18171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18172for as_dir in $PATH 18173do 18174 IFS=$as_save_IFS 18175 test -z "$as_dir" && as_dir=. 18176 for ac_exec_ext in '' $ac_executable_extensions; do 18177 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18178 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" 18179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18180 break 2 18181 fi 18182done 18183done 18184 18185 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python" 18186 ;; 18187esac 18188fi 18189PYTHON=$ac_cv_path_PYTHON 18190 18191if test -n "$PYTHON"; then 18192 echo "$as_me:$LINENO: result: $PYTHON" >&5 18193echo "${ECHO_T}$PYTHON" >&6 18194else 18195 echo "$as_me:$LINENO: result: no" >&5 18196echo "${ECHO_T}no" >&6 18197fi 18198 18199if test "$PYTHON" = "false" 18200then 18201 { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5 18202echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;} 18203fi 18204# Extract the first word of "qmtest", so it can be a program name with args. 18205set dummy qmtest; ac_word=$2 18206echo "$as_me:$LINENO: checking for $ac_word" >&5 18207echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18208if test "${ac_cv_path_QMTEST+set}" = set; then 18209 echo $ECHO_N "(cached) $ECHO_C" >&6 18210else 18211 case $QMTEST in 18212 [\\/]* | ?:[\\/]*) 18213 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path. 18214 ;; 18215 *) 18216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18217for as_dir in $PATH 18218do 18219 IFS=$as_save_IFS 18220 test -z "$as_dir" && as_dir=. 18221 for ac_exec_ext in '' $ac_executable_extensions; do 18222 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18223 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext" 18224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18225 break 2 18226 fi 18227done 18228done 18229 18230 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest" 18231 ;; 18232esac 18233fi 18234QMTEST=$ac_cv_path_QMTEST 18235 18236if test -n "$QMTEST"; then 18237 echo "$as_me:$LINENO: result: $QMTEST" >&5 18238echo "${ECHO_T}$QMTEST" >&6 18239else 18240 echo "$as_me:$LINENO: result: no" >&5 18241echo "${ECHO_T}no" >&6 18242fi 18243 18244if test "$QMTEST" = "false" 18245then 18246 { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5 18247echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;} 18248fi 18249 18250pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2` 18251pymajor=`echo $pyversion | cut -d. -f1` 18252pyminor=`echo $pyversion | cut -d. -f2` 18253 18254if test "$pymajor" -ge "2" 18255then 18256 if test "$pymajor" -eq "2" 18257 then 18258 if test "$pyminor" -lt "2" 18259 then 18260 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5 18261echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;} 18262 fi 18263 fi 18264else 18265 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5 18266echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;} 18267fi 18268 18269 18270 18271 18272echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5 18273echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6 18274if test "${ac_cv_lib_elf_elf_begin+set}" = set; then 18275 echo $ECHO_N "(cached) $ECHO_C" >&6 18276else 18277 ac_check_lib_save_LIBS=$LIBS 18278LIBS="-lelf $LIBS" 18279cat >conftest.$ac_ext <<_ACEOF 18280#line $LINENO "configure" 18281/* confdefs.h. */ 18282_ACEOF 18283cat confdefs.h >>conftest.$ac_ext 18284cat >>conftest.$ac_ext <<_ACEOF 18285/* end confdefs.h. */ 18286 18287/* Override any gcc2 internal prototype to avoid an error. */ 18288#ifdef __cplusplus 18289extern "C" 18290#endif 18291/* We use char because int might match the return type of a gcc2 18292 builtin and then its argument prototype would still apply. */ 18293char elf_begin (); 18294int 18295main () 18296{ 18297elf_begin (); 18298 ; 18299 return 0; 18300} 18301_ACEOF 18302rm -f conftest.$ac_objext conftest$ac_exeext 18303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18304 (eval $ac_link) 2>&5 18305 ac_status=$? 18306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18307 (exit $ac_status); } && 18308 { ac_try='test -s conftest$ac_exeext' 18309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18310 (eval $ac_try) 2>&5 18311 ac_status=$? 18312 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18313 (exit $ac_status); }; }; then 18314 ac_cv_lib_elf_elf_begin=yes 18315else 18316 echo "$as_me: failed program was:" >&5 18317sed 's/^/| /' conftest.$ac_ext >&5 18318 18319ac_cv_lib_elf_elf_begin=no 18320fi 18321rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 18322LIBS=$ac_check_lib_save_LIBS 18323fi 18324echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5 18325echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6 18326if test $ac_cv_lib_elf_elf_begin = yes; then 18327 cat >>confdefs.h <<_ACEOF 18328#define HAVE_LIBELF 1 18329_ACEOF 18330 18331 LIBS="-lelf $LIBS" 18332 18333fi 18334 18335 18336echo "$as_me:$LINENO: checking for library containing dlopen" >&5 18337echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6 18338if test "${ac_cv_search_dlopen+set}" = set; then 18339 echo $ECHO_N "(cached) $ECHO_C" >&6 18340else 18341 ac_func_search_save_LIBS=$LIBS 18342ac_cv_search_dlopen=no 18343cat >conftest.$ac_ext <<_ACEOF 18344#line $LINENO "configure" 18345/* confdefs.h. */ 18346_ACEOF 18347cat confdefs.h >>conftest.$ac_ext 18348cat >>conftest.$ac_ext <<_ACEOF 18349/* end confdefs.h. */ 18350 18351/* Override any gcc2 internal prototype to avoid an error. */ 18352#ifdef __cplusplus 18353extern "C" 18354#endif 18355/* We use char because int might match the return type of a gcc2 18356 builtin and then its argument prototype would still apply. */ 18357char dlopen (); 18358int 18359main () 18360{ 18361dlopen (); 18362 ; 18363 return 0; 18364} 18365_ACEOF 18366rm -f conftest.$ac_objext conftest$ac_exeext 18367if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18368 (eval $ac_link) 2>&5 18369 ac_status=$? 18370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18371 (exit $ac_status); } && 18372 { ac_try='test -s conftest$ac_exeext' 18373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18374 (eval $ac_try) 2>&5 18375 ac_status=$? 18376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18377 (exit $ac_status); }; }; then 18378 ac_cv_search_dlopen="none required" 18379else 18380 echo "$as_me: failed program was:" >&5 18381sed 's/^/| /' conftest.$ac_ext >&5 18382 18383fi 18384rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 18385if test "$ac_cv_search_dlopen" = no; then 18386 for ac_lib in dl; do 18387 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18388 cat >conftest.$ac_ext <<_ACEOF 18389#line $LINENO "configure" 18390/* confdefs.h. */ 18391_ACEOF 18392cat confdefs.h >>conftest.$ac_ext 18393cat >>conftest.$ac_ext <<_ACEOF 18394/* end confdefs.h. */ 18395 18396/* Override any gcc2 internal prototype to avoid an error. */ 18397#ifdef __cplusplus 18398extern "C" 18399#endif 18400/* We use char because int might match the return type of a gcc2 18401 builtin and then its argument prototype would still apply. */ 18402char dlopen (); 18403int 18404main () 18405{ 18406dlopen (); 18407 ; 18408 return 0; 18409} 18410_ACEOF 18411rm -f conftest.$ac_objext conftest$ac_exeext 18412if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18413 (eval $ac_link) 2>&5 18414 ac_status=$? 18415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18416 (exit $ac_status); } && 18417 { ac_try='test -s conftest$ac_exeext' 18418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18419 (eval $ac_try) 2>&5 18420 ac_status=$? 18421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18422 (exit $ac_status); }; }; then 18423 ac_cv_search_dlopen="-l$ac_lib" 18424break 18425else 18426 echo "$as_me: failed program was:" >&5 18427sed 's/^/| /' conftest.$ac_ext >&5 18428 18429fi 18430rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 18431 done 18432fi 18433LIBS=$ac_func_search_save_LIBS 18434fi 18435echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 18436echo "${ECHO_T}$ac_cv_search_dlopen" >&6 18437if test "$ac_cv_search_dlopen" != no; then 18438 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS" 18439 18440cat >>confdefs.h <<\_ACEOF 18441#define HAVE_DLOPEN 1 18442_ACEOF 18443 18444else 18445 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 18446echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} 18447fi 18448 18449 18450echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 18451echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6 18452if test "${ac_cv_search_mallinfo+set}" = set; then 18453 echo $ECHO_N "(cached) $ECHO_C" >&6 18454else 18455 ac_func_search_save_LIBS=$LIBS 18456ac_cv_search_mallinfo=no 18457cat >conftest.$ac_ext <<_ACEOF 18458#line $LINENO "configure" 18459/* confdefs.h. */ 18460_ACEOF 18461cat confdefs.h >>conftest.$ac_ext 18462cat >>conftest.$ac_ext <<_ACEOF 18463/* end confdefs.h. */ 18464 18465/* Override any gcc2 internal prototype to avoid an error. */ 18466#ifdef __cplusplus 18467extern "C" 18468#endif 18469/* We use char because int might match the return type of a gcc2 18470 builtin and then its argument prototype would still apply. */ 18471char mallinfo (); 18472int 18473main () 18474{ 18475mallinfo (); 18476 ; 18477 return 0; 18478} 18479_ACEOF 18480rm -f conftest.$ac_objext conftest$ac_exeext 18481if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18482 (eval $ac_link) 2>&5 18483 ac_status=$? 18484 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18485 (exit $ac_status); } && 18486 { ac_try='test -s conftest$ac_exeext' 18487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18488 (eval $ac_try) 2>&5 18489 ac_status=$? 18490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18491 (exit $ac_status); }; }; then 18492 ac_cv_search_mallinfo="none required" 18493else 18494 echo "$as_me: failed program was:" >&5 18495sed 's/^/| /' conftest.$ac_ext >&5 18496 18497fi 18498rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 18499if test "$ac_cv_search_mallinfo" = no; then 18500 for ac_lib in malloc; do 18501 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18502 cat >conftest.$ac_ext <<_ACEOF 18503#line $LINENO "configure" 18504/* confdefs.h. */ 18505_ACEOF 18506cat confdefs.h >>conftest.$ac_ext 18507cat >>conftest.$ac_ext <<_ACEOF 18508/* end confdefs.h. */ 18509 18510/* Override any gcc2 internal prototype to avoid an error. */ 18511#ifdef __cplusplus 18512extern "C" 18513#endif 18514/* We use char because int might match the return type of a gcc2 18515 builtin and then its argument prototype would still apply. */ 18516char mallinfo (); 18517int 18518main () 18519{ 18520mallinfo (); 18521 ; 18522 return 0; 18523} 18524_ACEOF 18525rm -f conftest.$ac_objext conftest$ac_exeext 18526if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18527 (eval $ac_link) 2>&5 18528 ac_status=$? 18529 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18530 (exit $ac_status); } && 18531 { ac_try='test -s conftest$ac_exeext' 18532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18533 (eval $ac_try) 2>&5 18534 ac_status=$? 18535 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18536 (exit $ac_status); }; }; then 18537 ac_cv_search_mallinfo="-l$ac_lib" 18538break 18539else 18540 echo "$as_me: failed program was:" >&5 18541sed 's/^/| /' conftest.$ac_ext >&5 18542 18543fi 18544rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 18545 done 18546fi 18547LIBS=$ac_func_search_save_LIBS 18548fi 18549echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 18550echo "${ECHO_T}$ac_cv_search_mallinfo" >&6 18551if test "$ac_cv_search_mallinfo" != no; then 18552 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS" 18553 18554cat >>confdefs.h <<\_ACEOF 18555#define HAVE_MALLINFO 1 18556_ACEOF 18557 18558fi 18559 18560 18561echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 18562echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6 18563if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then 18564 echo $ECHO_N "(cached) $ECHO_C" >&6 18565else 18566 ac_func_search_save_LIBS=$LIBS 18567ac_cv_search_pthread_mutex_lock=no 18568cat >conftest.$ac_ext <<_ACEOF 18569#line $LINENO "configure" 18570/* confdefs.h. */ 18571_ACEOF 18572cat confdefs.h >>conftest.$ac_ext 18573cat >>conftest.$ac_ext <<_ACEOF 18574/* end confdefs.h. */ 18575 18576/* Override any gcc2 internal prototype to avoid an error. */ 18577#ifdef __cplusplus 18578extern "C" 18579#endif 18580/* We use char because int might match the return type of a gcc2 18581 builtin and then its argument prototype would still apply. */ 18582char pthread_mutex_lock (); 18583int 18584main () 18585{ 18586pthread_mutex_lock (); 18587 ; 18588 return 0; 18589} 18590_ACEOF 18591rm -f conftest.$ac_objext conftest$ac_exeext 18592if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18593 (eval $ac_link) 2>&5 18594 ac_status=$? 18595 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18596 (exit $ac_status); } && 18597 { ac_try='test -s conftest$ac_exeext' 18598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18599 (eval $ac_try) 2>&5 18600 ac_status=$? 18601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18602 (exit $ac_status); }; }; then 18603 ac_cv_search_pthread_mutex_lock="none required" 18604else 18605 echo "$as_me: failed program was:" >&5 18606sed 's/^/| /' conftest.$ac_ext >&5 18607 18608fi 18609rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 18610if test "$ac_cv_search_pthread_mutex_lock" = no; then 18611 for ac_lib in pthread; do 18612 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18613 cat >conftest.$ac_ext <<_ACEOF 18614#line $LINENO "configure" 18615/* confdefs.h. */ 18616_ACEOF 18617cat confdefs.h >>conftest.$ac_ext 18618cat >>conftest.$ac_ext <<_ACEOF 18619/* end confdefs.h. */ 18620 18621/* Override any gcc2 internal prototype to avoid an error. */ 18622#ifdef __cplusplus 18623extern "C" 18624#endif 18625/* We use char because int might match the return type of a gcc2 18626 builtin and then its argument prototype would still apply. */ 18627char pthread_mutex_lock (); 18628int 18629main () 18630{ 18631pthread_mutex_lock (); 18632 ; 18633 return 0; 18634} 18635_ACEOF 18636rm -f conftest.$ac_objext conftest$ac_exeext 18637if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18638 (eval $ac_link) 2>&5 18639 ac_status=$? 18640 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18641 (exit $ac_status); } && 18642 { ac_try='test -s conftest$ac_exeext' 18643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18644 (eval $ac_try) 2>&5 18645 ac_status=$? 18646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18647 (exit $ac_status); }; }; then 18648 ac_cv_search_pthread_mutex_lock="-l$ac_lib" 18649break 18650else 18651 echo "$as_me: failed program was:" >&5 18652sed 's/^/| /' conftest.$ac_ext >&5 18653 18654fi 18655rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 18656 done 18657fi 18658LIBS=$ac_func_search_save_LIBS 18659fi 18660echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 18661echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6 18662if test "$ac_cv_search_pthread_mutex_lock" != no; then 18663 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS" 18664 18665cat >>confdefs.h <<\_ACEOF 18666#define HAVE_PTHREAD_MUTEX_LOCK 1 18667_ACEOF 18668 18669fi 18670 18671 18672echo "$as_me:$LINENO: checking for ANSI C header files" >&5 18673echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 18674if test "${ac_cv_header_stdc+set}" = set; then 18675 echo $ECHO_N "(cached) $ECHO_C" >&6 18676else 18677 cat >conftest.$ac_ext <<_ACEOF 18678#line $LINENO "configure" 18679/* confdefs.h. */ 18680_ACEOF 18681cat confdefs.h >>conftest.$ac_ext 18682cat >>conftest.$ac_ext <<_ACEOF 18683/* end confdefs.h. */ 18684#include <stdlib.h> 18685#include <stdarg.h> 18686#include <string.h> 18687#include <float.h> 18688 18689int 18690main () 18691{ 18692 18693 ; 18694 return 0; 18695} 18696_ACEOF 18697rm -f conftest.$ac_objext 18698if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18699 (eval $ac_compile) 2>&5 18700 ac_status=$? 18701 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18702 (exit $ac_status); } && 18703 { ac_try='test -s conftest.$ac_objext' 18704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18705 (eval $ac_try) 2>&5 18706 ac_status=$? 18707 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18708 (exit $ac_status); }; }; then 18709 ac_cv_header_stdc=yes 18710else 18711 echo "$as_me: failed program was:" >&5 18712sed 's/^/| /' conftest.$ac_ext >&5 18713 18714ac_cv_header_stdc=no 18715fi 18716rm -f conftest.$ac_objext conftest.$ac_ext 18717 18718if test $ac_cv_header_stdc = yes; then 18719 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 18720 cat >conftest.$ac_ext <<_ACEOF 18721#line $LINENO "configure" 18722/* confdefs.h. */ 18723_ACEOF 18724cat confdefs.h >>conftest.$ac_ext 18725cat >>conftest.$ac_ext <<_ACEOF 18726/* end confdefs.h. */ 18727#include <string.h> 18728 18729_ACEOF 18730if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18731 $EGREP "memchr" >/dev/null 2>&1; then 18732 : 18733else 18734 ac_cv_header_stdc=no 18735fi 18736rm -f conftest* 18737 18738fi 18739 18740if test $ac_cv_header_stdc = yes; then 18741 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 18742 cat >conftest.$ac_ext <<_ACEOF 18743#line $LINENO "configure" 18744/* confdefs.h. */ 18745_ACEOF 18746cat confdefs.h >>conftest.$ac_ext 18747cat >>conftest.$ac_ext <<_ACEOF 18748/* end confdefs.h. */ 18749#include <stdlib.h> 18750 18751_ACEOF 18752if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18753 $EGREP "free" >/dev/null 2>&1; then 18754 : 18755else 18756 ac_cv_header_stdc=no 18757fi 18758rm -f conftest* 18759 18760fi 18761 18762if test $ac_cv_header_stdc = yes; then 18763 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 18764 if test "$cross_compiling" = yes; then 18765 : 18766else 18767 cat >conftest.$ac_ext <<_ACEOF 18768#line $LINENO "configure" 18769/* confdefs.h. */ 18770_ACEOF 18771cat confdefs.h >>conftest.$ac_ext 18772cat >>conftest.$ac_ext <<_ACEOF 18773/* end confdefs.h. */ 18774#include <ctype.h> 18775#if ((' ' & 0x0FF) == 0x020) 18776# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 18777# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 18778#else 18779# define ISLOWER(c) \ 18780 (('a' <= (c) && (c) <= 'i') \ 18781 || ('j' <= (c) && (c) <= 'r') \ 18782 || ('s' <= (c) && (c) <= 'z')) 18783# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 18784#endif 18785 18786#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 18787int 18788main () 18789{ 18790 int i; 18791 for (i = 0; i < 256; i++) 18792 if (XOR (islower (i), ISLOWER (i)) 18793 || toupper (i) != TOUPPER (i)) 18794 exit(2); 18795 exit (0); 18796} 18797_ACEOF 18798rm -f conftest$ac_exeext 18799if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18800 (eval $ac_link) 2>&5 18801 ac_status=$? 18802 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18803 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 18804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18805 (eval $ac_try) 2>&5 18806 ac_status=$? 18807 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18808 (exit $ac_status); }; }; then 18809 : 18810else 18811 echo "$as_me: program exited with status $ac_status" >&5 18812echo "$as_me: failed program was:" >&5 18813sed 's/^/| /' conftest.$ac_ext >&5 18814 18815( exit $ac_status ) 18816ac_cv_header_stdc=no 18817fi 18818rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 18819fi 18820fi 18821fi 18822echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 18823echo "${ECHO_T}$ac_cv_header_stdc" >&6 18824if test $ac_cv_header_stdc = yes; then 18825 18826cat >>confdefs.h <<\_ACEOF 18827#define STDC_HEADERS 1 18828_ACEOF 18829 18830fi 18831 18832echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 18833echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 18834if test "${ac_cv_header_sys_wait_h+set}" = set; then 18835 echo $ECHO_N "(cached) $ECHO_C" >&6 18836else 18837 cat >conftest.$ac_ext <<_ACEOF 18838#line $LINENO "configure" 18839/* confdefs.h. */ 18840_ACEOF 18841cat confdefs.h >>conftest.$ac_ext 18842cat >>conftest.$ac_ext <<_ACEOF 18843/* end confdefs.h. */ 18844#include <sys/types.h> 18845#include <sys/wait.h> 18846#ifndef WEXITSTATUS 18847# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 18848#endif 18849#ifndef WIFEXITED 18850# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 18851#endif 18852 18853int 18854main () 18855{ 18856 int s; 18857 wait (&s); 18858 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 18859 ; 18860 return 0; 18861} 18862_ACEOF 18863rm -f conftest.$ac_objext 18864if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18865 (eval $ac_compile) 2>&5 18866 ac_status=$? 18867 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18868 (exit $ac_status); } && 18869 { ac_try='test -s conftest.$ac_objext' 18870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18871 (eval $ac_try) 2>&5 18872 ac_status=$? 18873 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18874 (exit $ac_status); }; }; then 18875 ac_cv_header_sys_wait_h=yes 18876else 18877 echo "$as_me: failed program was:" >&5 18878sed 's/^/| /' conftest.$ac_ext >&5 18879 18880ac_cv_header_sys_wait_h=no 18881fi 18882rm -f conftest.$ac_objext conftest.$ac_ext 18883fi 18884echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 18885echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 18886if test $ac_cv_header_sys_wait_h = yes; then 18887 18888cat >>confdefs.h <<\_ACEOF 18889#define HAVE_SYS_WAIT_H 1 18890_ACEOF 18891 18892fi 18893 18894 18895 18896 18897 18898 18899 18900 18901 18902 18903 18904for ac_header in fcntl.h limits.h sys/time.h unistd.h malloc.h sys/mman.h sys/resource.h dlfcn.h link.h 18905do 18906as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 18907if eval "test \"\${$as_ac_Header+set}\" = set"; then 18908 echo "$as_me:$LINENO: checking for $ac_header" >&5 18909echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 18910if eval "test \"\${$as_ac_Header+set}\" = set"; then 18911 echo $ECHO_N "(cached) $ECHO_C" >&6 18912fi 18913echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 18914echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 18915else 18916 # Is the header compilable? 18917echo "$as_me:$LINENO: checking $ac_header usability" >&5 18918echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 18919cat >conftest.$ac_ext <<_ACEOF 18920#line $LINENO "configure" 18921/* confdefs.h. */ 18922_ACEOF 18923cat confdefs.h >>conftest.$ac_ext 18924cat >>conftest.$ac_ext <<_ACEOF 18925/* end confdefs.h. */ 18926$ac_includes_default 18927#include <$ac_header> 18928_ACEOF 18929rm -f conftest.$ac_objext 18930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18931 (eval $ac_compile) 2>&5 18932 ac_status=$? 18933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18934 (exit $ac_status); } && 18935 { ac_try='test -s conftest.$ac_objext' 18936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18937 (eval $ac_try) 2>&5 18938 ac_status=$? 18939 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18940 (exit $ac_status); }; }; then 18941 ac_header_compiler=yes 18942else 18943 echo "$as_me: failed program was:" >&5 18944sed 's/^/| /' conftest.$ac_ext >&5 18945 18946ac_header_compiler=no 18947fi 18948rm -f conftest.$ac_objext conftest.$ac_ext 18949echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 18950echo "${ECHO_T}$ac_header_compiler" >&6 18951 18952# Is the header present? 18953echo "$as_me:$LINENO: checking $ac_header presence" >&5 18954echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 18955cat >conftest.$ac_ext <<_ACEOF 18956#line $LINENO "configure" 18957/* confdefs.h. */ 18958_ACEOF 18959cat confdefs.h >>conftest.$ac_ext 18960cat >>conftest.$ac_ext <<_ACEOF 18961/* end confdefs.h. */ 18962#include <$ac_header> 18963_ACEOF 18964if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 18965 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 18966 ac_status=$? 18967 grep -v '^ *+' conftest.er1 >conftest.err 18968 rm -f conftest.er1 18969 cat conftest.err >&5 18970 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18971 (exit $ac_status); } >/dev/null; then 18972 if test -s conftest.err; then 18973 ac_cpp_err=$ac_c_preproc_warn_flag 18974 else 18975 ac_cpp_err= 18976 fi 18977else 18978 ac_cpp_err=yes 18979fi 18980if test -z "$ac_cpp_err"; then 18981 ac_header_preproc=yes 18982else 18983 echo "$as_me: failed program was:" >&5 18984sed 's/^/| /' conftest.$ac_ext >&5 18985 18986 ac_header_preproc=no 18987fi 18988rm -f conftest.err conftest.$ac_ext 18989echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 18990echo "${ECHO_T}$ac_header_preproc" >&6 18991 18992# So? What about this header? 18993case $ac_header_compiler:$ac_header_preproc in 18994 yes:no ) 18995 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 18996echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 18997 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 18998echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 18999 ( 19000 cat <<\_ASBOX 19001## ------------------------------------ ## 19002## Report this to bug-autoconf@gnu.org. ## 19003## ------------------------------------ ## 19004_ASBOX 19005 ) | 19006 sed "s/^/$as_me: WARNING: /" >&2 19007 ;; 19008 no:yes ) 19009 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 19010echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 19011 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 19012echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 19013 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 19014echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 19015 ( 19016 cat <<\_ASBOX 19017## ------------------------------------ ## 19018## Report this to bug-autoconf@gnu.org. ## 19019## ------------------------------------ ## 19020_ASBOX 19021 ) | 19022 sed "s/^/$as_me: WARNING: /" >&2 19023 ;; 19024esac 19025echo "$as_me:$LINENO: checking for $ac_header" >&5 19026echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 19027if eval "test \"\${$as_ac_Header+set}\" = set"; then 19028 echo $ECHO_N "(cached) $ECHO_C" >&6 19029else 19030 eval "$as_ac_Header=$ac_header_preproc" 19031fi 19032echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 19033echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 19034 19035fi 19036if test `eval echo '${'$as_ac_Header'}'` = yes; then 19037 cat >>confdefs.h <<_ACEOF 19038#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 19039_ACEOF 19040 19041fi 19042 19043done 19044 19045 19046echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 19047echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 19048if test "${ac_cv_c_bigendian+set}" = set; then 19049 echo $ECHO_N "(cached) $ECHO_C" >&6 19050else 19051 # See if sys/param.h defines the BYTE_ORDER macro. 19052cat >conftest.$ac_ext <<_ACEOF 19053#line $LINENO "configure" 19054/* confdefs.h. */ 19055_ACEOF 19056cat confdefs.h >>conftest.$ac_ext 19057cat >>conftest.$ac_ext <<_ACEOF 19058/* end confdefs.h. */ 19059#include <sys/types.h> 19060#include <sys/param.h> 19061 19062int 19063main () 19064{ 19065#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 19066 bogus endian macros 19067#endif 19068 19069 ; 19070 return 0; 19071} 19072_ACEOF 19073rm -f conftest.$ac_objext 19074if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19075 (eval $ac_compile) 2>&5 19076 ac_status=$? 19077 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19078 (exit $ac_status); } && 19079 { ac_try='test -s conftest.$ac_objext' 19080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19081 (eval $ac_try) 2>&5 19082 ac_status=$? 19083 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19084 (exit $ac_status); }; }; then 19085 # It does; now see whether it defined to BIG_ENDIAN or not. 19086cat >conftest.$ac_ext <<_ACEOF 19087#line $LINENO "configure" 19088/* confdefs.h. */ 19089_ACEOF 19090cat confdefs.h >>conftest.$ac_ext 19091cat >>conftest.$ac_ext <<_ACEOF 19092/* end confdefs.h. */ 19093#include <sys/types.h> 19094#include <sys/param.h> 19095 19096int 19097main () 19098{ 19099#if BYTE_ORDER != BIG_ENDIAN 19100 not big endian 19101#endif 19102 19103 ; 19104 return 0; 19105} 19106_ACEOF 19107rm -f conftest.$ac_objext 19108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19109 (eval $ac_compile) 2>&5 19110 ac_status=$? 19111 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19112 (exit $ac_status); } && 19113 { ac_try='test -s conftest.$ac_objext' 19114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19115 (eval $ac_try) 2>&5 19116 ac_status=$? 19117 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19118 (exit $ac_status); }; }; then 19119 ac_cv_c_bigendian=yes 19120else 19121 echo "$as_me: failed program was:" >&5 19122sed 's/^/| /' conftest.$ac_ext >&5 19123 19124ac_cv_c_bigendian=no 19125fi 19126rm -f conftest.$ac_objext conftest.$ac_ext 19127else 19128 echo "$as_me: failed program was:" >&5 19129sed 's/^/| /' conftest.$ac_ext >&5 19130 19131# It does not; compile a test program. 19132if test "$cross_compiling" = yes; then 19133 # try to guess the endianness by grepping values into an object file 19134 ac_cv_c_bigendian=unknown 19135 cat >conftest.$ac_ext <<_ACEOF 19136#line $LINENO "configure" 19137/* confdefs.h. */ 19138_ACEOF 19139cat confdefs.h >>conftest.$ac_ext 19140cat >>conftest.$ac_ext <<_ACEOF 19141/* end confdefs.h. */ 19142short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 19143short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 19144void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 19145short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 19146short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 19147void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 19148int 19149main () 19150{ 19151 _ascii (); _ebcdic (); 19152 ; 19153 return 0; 19154} 19155_ACEOF 19156rm -f conftest.$ac_objext 19157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19158 (eval $ac_compile) 2>&5 19159 ac_status=$? 19160 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19161 (exit $ac_status); } && 19162 { ac_try='test -s conftest.$ac_objext' 19163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19164 (eval $ac_try) 2>&5 19165 ac_status=$? 19166 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19167 (exit $ac_status); }; }; then 19168 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 19169 ac_cv_c_bigendian=yes 19170fi 19171if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 19172 if test "$ac_cv_c_bigendian" = unknown; then 19173 ac_cv_c_bigendian=no 19174 else 19175 # finding both strings is unlikely to happen, but who knows? 19176 ac_cv_c_bigendian=unknown 19177 fi 19178fi 19179else 19180 echo "$as_me: failed program was:" >&5 19181sed 's/^/| /' conftest.$ac_ext >&5 19182 19183fi 19184rm -f conftest.$ac_objext conftest.$ac_ext 19185else 19186 cat >conftest.$ac_ext <<_ACEOF 19187#line $LINENO "configure" 19188/* confdefs.h. */ 19189_ACEOF 19190cat confdefs.h >>conftest.$ac_ext 19191cat >>conftest.$ac_ext <<_ACEOF 19192/* end confdefs.h. */ 19193int 19194main () 19195{ 19196 /* Are we little or big endian? From Harbison&Steele. */ 19197 union 19198 { 19199 long l; 19200 char c[sizeof (long)]; 19201 } u; 19202 u.l = 1; 19203 exit (u.c[sizeof (long) - 1] == 1); 19204} 19205_ACEOF 19206rm -f conftest$ac_exeext 19207if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19208 (eval $ac_link) 2>&5 19209 ac_status=$? 19210 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19211 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 19212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19213 (eval $ac_try) 2>&5 19214 ac_status=$? 19215 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19216 (exit $ac_status); }; }; then 19217 ac_cv_c_bigendian=no 19218else 19219 echo "$as_me: program exited with status $ac_status" >&5 19220echo "$as_me: failed program was:" >&5 19221sed 's/^/| /' conftest.$ac_ext >&5 19222 19223( exit $ac_status ) 19224ac_cv_c_bigendian=yes 19225fi 19226rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 19227fi 19228fi 19229rm -f conftest.$ac_objext conftest.$ac_ext 19230fi 19231echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 19232echo "${ECHO_T}$ac_cv_c_bigendian" >&6 19233case $ac_cv_c_bigendian in 19234 yes) 19235 19236cat >>confdefs.h <<\_ACEOF 19237#define ENDIAN_BIG 19238_ACEOF 19239 ;; 19240 no) 19241 19242cat >>confdefs.h <<\_ACEOF 19243#define ENDIAN_LITTLE 19244_ACEOF 19245 ;; 19246 *) 19247 { { echo "$as_me:$LINENO: error: unknown endianness 19248presetting ac_cv_c_bigendian=no (or yes) will help" >&5 19249echo "$as_me: error: unknown endianness 19250presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 19251 { (exit 1); exit 1; }; } ;; 19252esac 19253 19254 19255echo "$as_me:$LINENO: checking for pid_t" >&5 19256echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 19257if test "${ac_cv_type_pid_t+set}" = set; then 19258 echo $ECHO_N "(cached) $ECHO_C" >&6 19259else 19260 cat >conftest.$ac_ext <<_ACEOF 19261#line $LINENO "configure" 19262/* confdefs.h. */ 19263_ACEOF 19264cat confdefs.h >>conftest.$ac_ext 19265cat >>conftest.$ac_ext <<_ACEOF 19266/* end confdefs.h. */ 19267$ac_includes_default 19268int 19269main () 19270{ 19271if ((pid_t *) 0) 19272 return 0; 19273if (sizeof (pid_t)) 19274 return 0; 19275 ; 19276 return 0; 19277} 19278_ACEOF 19279rm -f conftest.$ac_objext 19280if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19281 (eval $ac_compile) 2>&5 19282 ac_status=$? 19283 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19284 (exit $ac_status); } && 19285 { ac_try='test -s conftest.$ac_objext' 19286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19287 (eval $ac_try) 2>&5 19288 ac_status=$? 19289 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19290 (exit $ac_status); }; }; then 19291 ac_cv_type_pid_t=yes 19292else 19293 echo "$as_me: failed program was:" >&5 19294sed 's/^/| /' conftest.$ac_ext >&5 19295 19296ac_cv_type_pid_t=no 19297fi 19298rm -f conftest.$ac_objext conftest.$ac_ext 19299fi 19300echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 19301echo "${ECHO_T}$ac_cv_type_pid_t" >&6 19302if test $ac_cv_type_pid_t = yes; then 19303 : 19304else 19305 19306cat >>confdefs.h <<_ACEOF 19307#define pid_t int 19308_ACEOF 19309 19310fi 19311 19312echo "$as_me:$LINENO: checking for size_t" >&5 19313echo $ECHO_N "checking for size_t... $ECHO_C" >&6 19314if test "${ac_cv_type_size_t+set}" = set; then 19315 echo $ECHO_N "(cached) $ECHO_C" >&6 19316else 19317 cat >conftest.$ac_ext <<_ACEOF 19318#line $LINENO "configure" 19319/* confdefs.h. */ 19320_ACEOF 19321cat confdefs.h >>conftest.$ac_ext 19322cat >>conftest.$ac_ext <<_ACEOF 19323/* end confdefs.h. */ 19324$ac_includes_default 19325int 19326main () 19327{ 19328if ((size_t *) 0) 19329 return 0; 19330if (sizeof (size_t)) 19331 return 0; 19332 ; 19333 return 0; 19334} 19335_ACEOF 19336rm -f conftest.$ac_objext 19337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19338 (eval $ac_compile) 2>&5 19339 ac_status=$? 19340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19341 (exit $ac_status); } && 19342 { ac_try='test -s conftest.$ac_objext' 19343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19344 (eval $ac_try) 2>&5 19345 ac_status=$? 19346 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19347 (exit $ac_status); }; }; then 19348 ac_cv_type_size_t=yes 19349else 19350 echo "$as_me: failed program was:" >&5 19351sed 's/^/| /' conftest.$ac_ext >&5 19352 19353ac_cv_type_size_t=no 19354fi 19355rm -f conftest.$ac_objext conftest.$ac_ext 19356fi 19357echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 19358echo "${ECHO_T}$ac_cv_type_size_t" >&6 19359if test $ac_cv_type_size_t = yes; then 19360 : 19361else 19362 19363cat >>confdefs.h <<_ACEOF 19364#define size_t unsigned 19365_ACEOF 19366 19367fi 19368 19369echo "$as_me:$LINENO: checking for int64_t" >&5 19370echo $ECHO_N "checking for int64_t... $ECHO_C" >&6 19371if test "${ac_cv_type_int64_t+set}" = set; then 19372 echo $ECHO_N "(cached) $ECHO_C" >&6 19373else 19374 cat >conftest.$ac_ext <<_ACEOF 19375#line $LINENO "configure" 19376/* confdefs.h. */ 19377_ACEOF 19378cat confdefs.h >>conftest.$ac_ext 19379cat >>conftest.$ac_ext <<_ACEOF 19380/* end confdefs.h. */ 19381$ac_includes_default 19382int 19383main () 19384{ 19385if ((int64_t *) 0) 19386 return 0; 19387if (sizeof (int64_t)) 19388 return 0; 19389 ; 19390 return 0; 19391} 19392_ACEOF 19393rm -f conftest.$ac_objext 19394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19395 (eval $ac_compile) 2>&5 19396 ac_status=$? 19397 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19398 (exit $ac_status); } && 19399 { ac_try='test -s conftest.$ac_objext' 19400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19401 (eval $ac_try) 2>&5 19402 ac_status=$? 19403 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19404 (exit $ac_status); }; }; then 19405 ac_cv_type_int64_t=yes 19406else 19407 echo "$as_me: failed program was:" >&5 19408sed 's/^/| /' conftest.$ac_ext >&5 19409 19410ac_cv_type_int64_t=no 19411fi 19412rm -f conftest.$ac_objext conftest.$ac_ext 19413fi 19414echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 19415echo "${ECHO_T}$ac_cv_type_int64_t" >&6 19416if test $ac_cv_type_int64_t = yes; then 19417 19418cat >>confdefs.h <<_ACEOF 19419#define HAVE_INT64_T 1 19420_ACEOF 19421 19422 19423else 19424 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 19425echo "$as_me: error: Type int64_t required but not found" >&2;} 19426 { (exit 1); exit 1; }; } 19427fi 19428 19429echo "$as_me:$LINENO: checking for uint64_t" >&5 19430echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 19431if test "${ac_cv_type_uint64_t+set}" = set; then 19432 echo $ECHO_N "(cached) $ECHO_C" >&6 19433else 19434 cat >conftest.$ac_ext <<_ACEOF 19435#line $LINENO "configure" 19436/* confdefs.h. */ 19437_ACEOF 19438cat confdefs.h >>conftest.$ac_ext 19439cat >>conftest.$ac_ext <<_ACEOF 19440/* end confdefs.h. */ 19441$ac_includes_default 19442int 19443main () 19444{ 19445if ((uint64_t *) 0) 19446 return 0; 19447if (sizeof (uint64_t)) 19448 return 0; 19449 ; 19450 return 0; 19451} 19452_ACEOF 19453rm -f conftest.$ac_objext 19454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19455 (eval $ac_compile) 2>&5 19456 ac_status=$? 19457 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19458 (exit $ac_status); } && 19459 { ac_try='test -s conftest.$ac_objext' 19460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19461 (eval $ac_try) 2>&5 19462 ac_status=$? 19463 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19464 (exit $ac_status); }; }; then 19465 ac_cv_type_uint64_t=yes 19466else 19467 echo "$as_me: failed program was:" >&5 19468sed 's/^/| /' conftest.$ac_ext >&5 19469 19470ac_cv_type_uint64_t=no 19471fi 19472rm -f conftest.$ac_objext conftest.$ac_ext 19473fi 19474echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 19475echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 19476if test $ac_cv_type_uint64_t = yes; then 19477 19478cat >>confdefs.h <<_ACEOF 19479#define HAVE_UINT64_T 1 19480_ACEOF 19481 19482 19483else 19484 { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5 19485echo "$as_me: error: Type uint64_t required but not found" >&2;} 19486 { (exit 1); exit 1; }; } 19487fi 19488 19489echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 19490echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 19491if test "${ac_cv_header_time+set}" = set; then 19492 echo $ECHO_N "(cached) $ECHO_C" >&6 19493else 19494 cat >conftest.$ac_ext <<_ACEOF 19495#line $LINENO "configure" 19496/* confdefs.h. */ 19497_ACEOF 19498cat confdefs.h >>conftest.$ac_ext 19499cat >>conftest.$ac_ext <<_ACEOF 19500/* end confdefs.h. */ 19501#include <sys/types.h> 19502#include <sys/time.h> 19503#include <time.h> 19504 19505int 19506main () 19507{ 19508if ((struct tm *) 0) 19509return 0; 19510 ; 19511 return 0; 19512} 19513_ACEOF 19514rm -f conftest.$ac_objext 19515if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19516 (eval $ac_compile) 2>&5 19517 ac_status=$? 19518 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19519 (exit $ac_status); } && 19520 { ac_try='test -s conftest.$ac_objext' 19521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19522 (eval $ac_try) 2>&5 19523 ac_status=$? 19524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19525 (exit $ac_status); }; }; then 19526 ac_cv_header_time=yes 19527else 19528 echo "$as_me: failed program was:" >&5 19529sed 's/^/| /' conftest.$ac_ext >&5 19530 19531ac_cv_header_time=no 19532fi 19533rm -f conftest.$ac_objext conftest.$ac_ext 19534fi 19535echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 19536echo "${ECHO_T}$ac_cv_header_time" >&6 19537if test $ac_cv_header_time = yes; then 19538 19539cat >>confdefs.h <<\_ACEOF 19540#define TIME_WITH_SYS_TIME 1 19541_ACEOF 19542 19543fi 19544 19545echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 19546echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 19547if test "${ac_cv_struct_tm+set}" = set; then 19548 echo $ECHO_N "(cached) $ECHO_C" >&6 19549else 19550 cat >conftest.$ac_ext <<_ACEOF 19551#line $LINENO "configure" 19552/* confdefs.h. */ 19553_ACEOF 19554cat confdefs.h >>conftest.$ac_ext 19555cat >>conftest.$ac_ext <<_ACEOF 19556/* end confdefs.h. */ 19557#include <sys/types.h> 19558#include <time.h> 19559 19560int 19561main () 19562{ 19563struct tm *tp; tp->tm_sec; 19564 ; 19565 return 0; 19566} 19567_ACEOF 19568rm -f conftest.$ac_objext 19569if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19570 (eval $ac_compile) 2>&5 19571 ac_status=$? 19572 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19573 (exit $ac_status); } && 19574 { ac_try='test -s conftest.$ac_objext' 19575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19576 (eval $ac_try) 2>&5 19577 ac_status=$? 19578 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19579 (exit $ac_status); }; }; then 19580 ac_cv_struct_tm=time.h 19581else 19582 echo "$as_me: failed program was:" >&5 19583sed 's/^/| /' conftest.$ac_ext >&5 19584 19585ac_cv_struct_tm=sys/time.h 19586fi 19587rm -f conftest.$ac_objext conftest.$ac_ext 19588fi 19589echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 19590echo "${ECHO_T}$ac_cv_struct_tm" >&6 19591if test $ac_cv_struct_tm = sys/time.h; then 19592 19593cat >>confdefs.h <<\_ACEOF 19594#define TM_IN_SYS_TIME 1 19595_ACEOF 19596 19597fi 19598 19599 19600 19601 19602 19603 ac_ext=c 19604ac_cpp='$CPP $CPPFLAGS' 19605ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19606ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19607ac_compiler_gnu=$ac_cv_c_compiler_gnu 19608 19609 if test "$cross_compiling" = yes; then 19610 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 19611See \`config.log' for more details." >&5 19612echo "$as_me: error: cannot run test program while cross compiling 19613See \`config.log' for more details." >&2;} 19614 { (exit 1); exit 1; }; } 19615else 19616 cat >conftest.$ac_ext <<_ACEOF 19617#line $LINENO "configure" 19618/* confdefs.h. */ 19619_ACEOF 19620cat confdefs.h >>conftest.$ac_ext 19621cat >>conftest.$ac_ext <<_ACEOF 19622/* end confdefs.h. */ 19623#include <stdio.h> 19624 #include <stdlib.h> 19625int 19626main () 19627{ 19628 19629 volatile double A, B; 19630 char Buffer[100]; 19631 A = 1; 19632 A /= 10.0; 19633 sprintf(Buffer, "%a", A); 19634 B = atof(Buffer); 19635 if (A != B) 19636 return (1); 19637 if (A != 0x1.999999999999ap-4) 19638 return (1); 19639 return (0); 19640 ; 19641 return 0; 19642} 19643_ACEOF 19644rm -f conftest$ac_exeext 19645if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19646 (eval $ac_link) 2>&5 19647 ac_status=$? 19648 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19649 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 19650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19651 (eval $ac_try) 2>&5 19652 ac_status=$? 19653 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19654 (exit $ac_status); }; }; then 19655 ac_c_printf_a=yes 19656else 19657 echo "$as_me: program exited with status $ac_status" >&5 19658echo "$as_me: failed program was:" >&5 19659sed 's/^/| /' conftest.$ac_ext >&5 19660 19661( exit $ac_status ) 19662ac_c_printf_a=no 19663fi 19664rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 19665fi 19666 ac_ext=c 19667ac_cpp='$CPP $CPPFLAGS' 19668ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19669ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19670ac_compiler_gnu=$ac_cv_c_compiler_gnu 19671 19672 if test "$ac_c_printf_a" = "yes"; then 19673 19674cat >>confdefs.h <<\_ACEOF 19675#define HAVE_PRINTF_A 1 19676_ACEOF 19677 19678 fi 19679 19680 19681echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5 19682echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6 19683if test "${ac_cv_cxx_namespaces+set}" = set; then 19684 echo $ECHO_N "(cached) $ECHO_C" >&6 19685else 19686 19687 19688 ac_ext=cc 19689ac_cpp='$CXXCPP $CPPFLAGS' 19690ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19691ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19692ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19693 19694 cat >conftest.$ac_ext <<_ACEOF 19695#line $LINENO "configure" 19696/* confdefs.h. */ 19697_ACEOF 19698cat confdefs.h >>conftest.$ac_ext 19699cat >>conftest.$ac_ext <<_ACEOF 19700/* end confdefs.h. */ 19701namespace Outer { namespace Inner { int i = 0; }} 19702int 19703main () 19704{ 19705using namespace Outer::Inner; return i; 19706 ; 19707 return 0; 19708} 19709_ACEOF 19710rm -f conftest.$ac_objext 19711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19712 (eval $ac_compile) 2>&5 19713 ac_status=$? 19714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19715 (exit $ac_status); } && 19716 { ac_try='test -s conftest.$ac_objext' 19717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19718 (eval $ac_try) 2>&5 19719 ac_status=$? 19720 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19721 (exit $ac_status); }; }; then 19722 ac_cv_cxx_namespaces=yes 19723else 19724 echo "$as_me: failed program was:" >&5 19725sed 's/^/| /' conftest.$ac_ext >&5 19726 19727ac_cv_cxx_namespaces=no 19728fi 19729rm -f conftest.$ac_objext conftest.$ac_ext 19730 ac_ext=c 19731ac_cpp='$CPP $CPPFLAGS' 19732ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19733ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19734ac_compiler_gnu=$ac_cv_c_compiler_gnu 19735 19736 19737fi 19738echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5 19739echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6 19740if test "$ac_cv_cxx_namespaces" = yes; then 19741 19742cat >>confdefs.h <<\_ACEOF 19743#define HAVE_NAMESPACES 19744_ACEOF 19745 19746fi 19747 19748echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5 19749echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6 19750if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then 19751 echo $ECHO_N "(cached) $ECHO_C" >&6 19752else 19753 19754 19755 19756 ac_ext=cc 19757ac_cpp='$CXXCPP $CPPFLAGS' 19758ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19759ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19760ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19761 19762 cat >conftest.$ac_ext <<_ACEOF 19763#line $LINENO "configure" 19764/* confdefs.h. */ 19765_ACEOF 19766cat confdefs.h >>conftest.$ac_ext 19767cat >>conftest.$ac_ext <<_ACEOF 19768/* end confdefs.h. */ 19769#include <ext/hash_map> 19770#ifdef HAVE_NAMESPACES 19771using namespace std; 19772#endif 19773int 19774main () 19775{ 19776hash_map<int, int> t; 19777 ; 19778 return 0; 19779} 19780_ACEOF 19781rm -f conftest.$ac_objext 19782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19783 (eval $ac_compile) 2>&5 19784 ac_status=$? 19785 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19786 (exit $ac_status); } && 19787 { ac_try='test -s conftest.$ac_objext' 19788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19789 (eval $ac_try) 2>&5 19790 ac_status=$? 19791 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19792 (exit $ac_status); }; }; then 19793 ac_cv_cxx_have_std_ext_hash_map=yes 19794else 19795 echo "$as_me: failed program was:" >&5 19796sed 's/^/| /' conftest.$ac_ext >&5 19797 19798ac_cv_cxx_have_std_ext_hash_map=no 19799fi 19800rm -f conftest.$ac_objext conftest.$ac_ext 19801 ac_ext=c 19802ac_cpp='$CPP $CPPFLAGS' 19803ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19804ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19805ac_compiler_gnu=$ac_cv_c_compiler_gnu 19806 19807fi 19808echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5 19809echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6 19810 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes; then 19811 19812cat >>confdefs.h <<\_ACEOF 19813#define HAVE_STD_EXT_HASH_MAP 19814_ACEOF 19815 19816 fi 19817 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5 19818echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6 19819if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then 19820 echo $ECHO_N "(cached) $ECHO_C" >&6 19821else 19822 19823 19824 19825 ac_ext=cc 19826ac_cpp='$CXXCPP $CPPFLAGS' 19827ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19828ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19829ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19830 19831 cat >conftest.$ac_ext <<_ACEOF 19832#line $LINENO "configure" 19833/* confdefs.h. */ 19834_ACEOF 19835cat confdefs.h >>conftest.$ac_ext 19836cat >>conftest.$ac_ext <<_ACEOF 19837/* end confdefs.h. */ 19838#include <ext/hash_map> 19839#ifdef HAVE_NAMESPACES 19840using namespace __gnu_cxx; 19841#endif 19842int 19843main () 19844{ 19845hash_map<int,int> t; 19846 ; 19847 return 0; 19848} 19849_ACEOF 19850rm -f conftest.$ac_objext 19851if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19852 (eval $ac_compile) 2>&5 19853 ac_status=$? 19854 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19855 (exit $ac_status); } && 19856 { ac_try='test -s conftest.$ac_objext' 19857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19858 (eval $ac_try) 2>&5 19859 ac_status=$? 19860 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19861 (exit $ac_status); }; }; then 19862 ac_cv_cxx_have_gnu_ext_hash_map=yes 19863else 19864 echo "$as_me: failed program was:" >&5 19865sed 's/^/| /' conftest.$ac_ext >&5 19866 19867ac_cv_cxx_have_gnu_ext_hash_map=no 19868fi 19869rm -f conftest.$ac_objext conftest.$ac_ext 19870 ac_ext=c 19871ac_cpp='$CPP $CPPFLAGS' 19872ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19873ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19874ac_compiler_gnu=$ac_cv_c_compiler_gnu 19875 19876fi 19877echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5 19878echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6 19879 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes; then 19880 19881cat >>confdefs.h <<\_ACEOF 19882#define HAVE_GNU_EXT_HASH_MAP 19883_ACEOF 19884 19885 fi 19886 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5 19887echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6 19888if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then 19889 echo $ECHO_N "(cached) $ECHO_C" >&6 19890else 19891 19892 19893 19894 ac_ext=cc 19895ac_cpp='$CXXCPP $CPPFLAGS' 19896ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19897ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19898ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19899 19900 cat >conftest.$ac_ext <<_ACEOF 19901#line $LINENO "configure" 19902/* confdefs.h. */ 19903_ACEOF 19904cat confdefs.h >>conftest.$ac_ext 19905cat >>conftest.$ac_ext <<_ACEOF 19906/* end confdefs.h. */ 19907#include <hash_map> 19908int 19909main () 19910{ 19911hash_map<int,int> t; 19912 ; 19913 return 0; 19914} 19915_ACEOF 19916rm -f conftest.$ac_objext 19917if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19918 (eval $ac_compile) 2>&5 19919 ac_status=$? 19920 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19921 (exit $ac_status); } && 19922 { ac_try='test -s conftest.$ac_objext' 19923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19924 (eval $ac_try) 2>&5 19925 ac_status=$? 19926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19927 (exit $ac_status); }; }; then 19928 ac_cv_cxx_have_global_hash_map=yes 19929else 19930 echo "$as_me: failed program was:" >&5 19931sed 's/^/| /' conftest.$ac_ext >&5 19932 19933ac_cv_cxx_have_global_hash_map=no 19934fi 19935rm -f conftest.$ac_objext conftest.$ac_ext 19936 ac_ext=c 19937ac_cpp='$CPP $CPPFLAGS' 19938ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19939ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19940ac_compiler_gnu=$ac_cv_c_compiler_gnu 19941 19942fi 19943echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5 19944echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6 19945 if test "$ac_cv_cxx_have_global_hash_map" = yes; then 19946 19947cat >>confdefs.h <<\_ACEOF 19948#define HAVE_GLOBAL_HASH_MAP 19949_ACEOF 19950 19951 fi 19952echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5 19953echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6 19954if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then 19955 echo $ECHO_N "(cached) $ECHO_C" >&6 19956else 19957 19958 19959 19960 ac_ext=cc 19961ac_cpp='$CXXCPP $CPPFLAGS' 19962ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19963ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19964ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19965 19966 cat >conftest.$ac_ext <<_ACEOF 19967#line $LINENO "configure" 19968/* confdefs.h. */ 19969_ACEOF 19970cat confdefs.h >>conftest.$ac_ext 19971cat >>conftest.$ac_ext <<_ACEOF 19972/* end confdefs.h. */ 19973#include <ext/hash_set> 19974#ifdef HAVE_NAMESPACES 19975using namespace std; 19976#endif 19977int 19978main () 19979{ 19980hash_set<int> t; 19981 ; 19982 return 0; 19983} 19984_ACEOF 19985rm -f conftest.$ac_objext 19986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19987 (eval $ac_compile) 2>&5 19988 ac_status=$? 19989 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19990 (exit $ac_status); } && 19991 { ac_try='test -s conftest.$ac_objext' 19992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19993 (eval $ac_try) 2>&5 19994 ac_status=$? 19995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19996 (exit $ac_status); }; }; then 19997 ac_cv_cxx_have_std_ext_hash_set=yes 19998else 19999 echo "$as_me: failed program was:" >&5 20000sed 's/^/| /' conftest.$ac_ext >&5 20001 20002ac_cv_cxx_have_std_ext_hash_set=no 20003fi 20004rm -f conftest.$ac_objext conftest.$ac_ext 20005 ac_ext=c 20006ac_cpp='$CPP $CPPFLAGS' 20007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20009ac_compiler_gnu=$ac_cv_c_compiler_gnu 20010 20011fi 20012echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5 20013echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6 20014 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes; then 20015 20016cat >>confdefs.h <<\_ACEOF 20017#define HAVE_STD_EXT_HASH_SET 20018_ACEOF 20019 20020 fi 20021 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5 20022echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6 20023if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then 20024 echo $ECHO_N "(cached) $ECHO_C" >&6 20025else 20026 20027 20028 20029 ac_ext=cc 20030ac_cpp='$CXXCPP $CPPFLAGS' 20031ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20032ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20033ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20034 20035 cat >conftest.$ac_ext <<_ACEOF 20036#line $LINENO "configure" 20037/* confdefs.h. */ 20038_ACEOF 20039cat confdefs.h >>conftest.$ac_ext 20040cat >>conftest.$ac_ext <<_ACEOF 20041/* end confdefs.h. */ 20042#include <ext/hash_set> 20043#ifdef HAVE_NAMESPACES 20044using namespace __gnu_cxx; 20045#endif 20046int 20047main () 20048{ 20049hash_set<int> t; 20050 ; 20051 return 0; 20052} 20053_ACEOF 20054rm -f conftest.$ac_objext 20055if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20056 (eval $ac_compile) 2>&5 20057 ac_status=$? 20058 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20059 (exit $ac_status); } && 20060 { ac_try='test -s conftest.$ac_objext' 20061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20062 (eval $ac_try) 2>&5 20063 ac_status=$? 20064 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20065 (exit $ac_status); }; }; then 20066 ac_cv_cxx_have_gnu_ext_hash_set=yes 20067else 20068 echo "$as_me: failed program was:" >&5 20069sed 's/^/| /' conftest.$ac_ext >&5 20070 20071ac_cv_cxx_have_gnu_ext_hash_set=no 20072fi 20073rm -f conftest.$ac_objext conftest.$ac_ext 20074 ac_ext=c 20075ac_cpp='$CPP $CPPFLAGS' 20076ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20077ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20078ac_compiler_gnu=$ac_cv_c_compiler_gnu 20079 20080fi 20081echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5 20082echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6 20083 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes; then 20084 20085cat >>confdefs.h <<\_ACEOF 20086#define HAVE_GNU_EXT_HASH_SET 20087_ACEOF 20088 20089 fi 20090 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5 20091echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6 20092if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then 20093 echo $ECHO_N "(cached) $ECHO_C" >&6 20094else 20095 20096 20097 20098 ac_ext=cc 20099ac_cpp='$CXXCPP $CPPFLAGS' 20100ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20101ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20102ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20103 20104 cat >conftest.$ac_ext <<_ACEOF 20105#line $LINENO "configure" 20106/* confdefs.h. */ 20107_ACEOF 20108cat confdefs.h >>conftest.$ac_ext 20109cat >>conftest.$ac_ext <<_ACEOF 20110/* end confdefs.h. */ 20111#include <hash_set> 20112int 20113main () 20114{ 20115hash_set<int> t; return 0; 20116 ; 20117 return 0; 20118} 20119_ACEOF 20120rm -f conftest.$ac_objext 20121if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20122 (eval $ac_compile) 2>&5 20123 ac_status=$? 20124 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20125 (exit $ac_status); } && 20126 { ac_try='test -s conftest.$ac_objext' 20127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20128 (eval $ac_try) 2>&5 20129 ac_status=$? 20130 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20131 (exit $ac_status); }; }; then 20132 ac_cv_cxx_have_global_hash_set=yes 20133else 20134 echo "$as_me: failed program was:" >&5 20135sed 's/^/| /' conftest.$ac_ext >&5 20136 20137ac_cv_cxx_have_global_hash_set=no 20138fi 20139rm -f conftest.$ac_objext conftest.$ac_ext 20140 ac_ext=c 20141ac_cpp='$CPP $CPPFLAGS' 20142ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20143ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20144ac_compiler_gnu=$ac_cv_c_compiler_gnu 20145 20146fi 20147echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5 20148echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6 20149 if test "$ac_cv_cxx_have_global_hash_set" = yes; then 20150 20151cat >>confdefs.h <<\_ACEOF 20152#define HAVE_GLOBAL_HASH_SET 20153_ACEOF 20154 20155 fi 20156echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5 20157echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6 20158if test "${ac_cv_cxx_have_ext_slist+set}" = set; then 20159 echo $ECHO_N "(cached) $ECHO_C" >&6 20160else 20161 20162 20163 20164 ac_ext=cc 20165ac_cpp='$CXXCPP $CPPFLAGS' 20166ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20167ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20168ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20169 20170 cat >conftest.$ac_ext <<_ACEOF 20171#line $LINENO "configure" 20172/* confdefs.h. */ 20173_ACEOF 20174cat confdefs.h >>conftest.$ac_ext 20175cat >>conftest.$ac_ext <<_ACEOF 20176/* end confdefs.h. */ 20177#include <ext/slist> 20178#ifdef HAVE_NAMESPACES 20179using namespace std; 20180#endif 20181int 20182main () 20183{ 20184slist<int> s; return 0; 20185 ; 20186 return 0; 20187} 20188_ACEOF 20189rm -f conftest.$ac_objext 20190if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20191 (eval $ac_compile) 2>&5 20192 ac_status=$? 20193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20194 (exit $ac_status); } && 20195 { ac_try='test -s conftest.$ac_objext' 20196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20197 (eval $ac_try) 2>&5 20198 ac_status=$? 20199 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20200 (exit $ac_status); }; }; then 20201 ac_cv_cxx_have_ext_slist=std 20202else 20203 echo "$as_me: failed program was:" >&5 20204sed 's/^/| /' conftest.$ac_ext >&5 20205 20206ac_cv_cxx_have_ext_slist=no 20207fi 20208rm -f conftest.$ac_objext conftest.$ac_ext 20209 cat >conftest.$ac_ext <<_ACEOF 20210#line $LINENO "configure" 20211/* confdefs.h. */ 20212_ACEOF 20213cat confdefs.h >>conftest.$ac_ext 20214cat >>conftest.$ac_ext <<_ACEOF 20215/* end confdefs.h. */ 20216#include <ext/slist> 20217#ifdef HAVE_NAMESPACES 20218using namespace __gnu_cxx; 20219#endif 20220int 20221main () 20222{ 20223slist<int> s; return 0; 20224 ; 20225 return 0; 20226} 20227_ACEOF 20228rm -f conftest.$ac_objext 20229if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20230 (eval $ac_compile) 2>&5 20231 ac_status=$? 20232 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20233 (exit $ac_status); } && 20234 { ac_try='test -s conftest.$ac_objext' 20235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20236 (eval $ac_try) 2>&5 20237 ac_status=$? 20238 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20239 (exit $ac_status); }; }; then 20240 ac_cv_cxx_have_ext_slist=gnu 20241else 20242 echo "$as_me: failed program was:" >&5 20243sed 's/^/| /' conftest.$ac_ext >&5 20244 20245ac_cv_cxx_have_ext_slist=no 20246fi 20247rm -f conftest.$ac_objext conftest.$ac_ext 20248 20249 ac_ext=c 20250ac_cpp='$CPP $CPPFLAGS' 20251ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20252ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20253ac_compiler_gnu=$ac_cv_c_compiler_gnu 20254 20255 20256fi 20257echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5 20258echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6 20259if test "$ac_cv_cxx_have_ext_slist" = std; then 20260 20261cat >>confdefs.h <<\_ACEOF 20262#define HAVE_EXT_SLIST std 20263_ACEOF 20264 20265fi 20266if test "$ac_cv_cxx_have_ext_slist" = gnu; then 20267 20268cat >>confdefs.h <<\_ACEOF 20269#define HAVE_EXT_SLIST gnu 20270_ACEOF 20271 20272fi 20273 20274echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5 20275echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6 20276if test "${ac_cv_cxx_have_std_iterator+set}" = set; then 20277 echo $ECHO_N "(cached) $ECHO_C" >&6 20278else 20279 20280 20281 20282 ac_ext=cc 20283ac_cpp='$CXXCPP $CPPFLAGS' 20284ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20285ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20286ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20287 20288 cat >conftest.$ac_ext <<_ACEOF 20289#line $LINENO "configure" 20290/* confdefs.h. */ 20291_ACEOF 20292cat confdefs.h >>conftest.$ac_ext 20293cat >>conftest.$ac_ext <<_ACEOF 20294/* end confdefs.h. */ 20295#include <iterator> 20296#ifdef HAVE_NAMESPACES 20297using namespace std; 20298#endif 20299int 20300main () 20301{ 20302iterator<int,int,int> t; return 0; 20303 ; 20304 return 0; 20305} 20306_ACEOF 20307rm -f conftest.$ac_objext 20308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20309 (eval $ac_compile) 2>&5 20310 ac_status=$? 20311 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20312 (exit $ac_status); } && 20313 { ac_try='test -s conftest.$ac_objext' 20314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20315 (eval $ac_try) 2>&5 20316 ac_status=$? 20317 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20318 (exit $ac_status); }; }; then 20319 ac_cv_cxx_have_std_iterator=yes 20320else 20321 echo "$as_me: failed program was:" >&5 20322sed 's/^/| /' conftest.$ac_ext >&5 20323 20324ac_cv_cxx_have_std_iterator=no 20325fi 20326rm -f conftest.$ac_objext conftest.$ac_ext 20327 ac_ext=c 20328ac_cpp='$CPP $CPPFLAGS' 20329ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20330ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20331ac_compiler_gnu=$ac_cv_c_compiler_gnu 20332 20333 20334fi 20335echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5 20336echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6 20337if test "$ac_cv_cxx_have_std_iterator" = yes; then 20338 20339cat >>confdefs.h <<\_ACEOF 20340#define HAVE_STD_ITERATOR 20341_ACEOF 20342 20343fi 20344 20345echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5 20346echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6 20347if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then 20348 echo $ECHO_N "(cached) $ECHO_C" >&6 20349else 20350 20351 20352 20353 ac_ext=cc 20354ac_cpp='$CXXCPP $CPPFLAGS' 20355ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20356ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20357ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20358 20359 cat >conftest.$ac_ext <<_ACEOF 20360#line $LINENO "configure" 20361/* confdefs.h. */ 20362_ACEOF 20363cat confdefs.h >>conftest.$ac_ext 20364cat >>conftest.$ac_ext <<_ACEOF 20365/* end confdefs.h. */ 20366#include <iterator> 20367#ifdef HAVE_NAMESPACES 20368using namespace std; 20369#endif 20370int 20371main () 20372{ 20373bidirectional_iterator<int,int> t; return 0; 20374 ; 20375 return 0; 20376} 20377_ACEOF 20378rm -f conftest.$ac_objext 20379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20380 (eval $ac_compile) 2>&5 20381 ac_status=$? 20382 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20383 (exit $ac_status); } && 20384 { ac_try='test -s conftest.$ac_objext' 20385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20386 (eval $ac_try) 2>&5 20387 ac_status=$? 20388 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20389 (exit $ac_status); }; }; then 20390 ac_cv_cxx_have_bi_iterator=yes 20391else 20392 echo "$as_me: failed program was:" >&5 20393sed 's/^/| /' conftest.$ac_ext >&5 20394 20395ac_cv_cxx_have_bi_iterator=no 20396fi 20397rm -f conftest.$ac_objext conftest.$ac_ext 20398 ac_ext=c 20399ac_cpp='$CPP $CPPFLAGS' 20400ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20401ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20402ac_compiler_gnu=$ac_cv_c_compiler_gnu 20403 20404 20405fi 20406echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5 20407echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6 20408if test "$ac_cv_cxx_have_bi_iterator" = yes; then 20409 20410cat >>confdefs.h <<\_ACEOF 20411#define HAVE_BI_ITERATOR 20412_ACEOF 20413 20414fi 20415 20416echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5 20417echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6 20418if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then 20419 echo $ECHO_N "(cached) $ECHO_C" >&6 20420else 20421 20422 20423 20424 ac_ext=cc 20425ac_cpp='$CXXCPP $CPPFLAGS' 20426ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20427ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20428ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20429 20430 cat >conftest.$ac_ext <<_ACEOF 20431#line $LINENO "configure" 20432/* confdefs.h. */ 20433_ACEOF 20434cat confdefs.h >>conftest.$ac_ext 20435cat >>conftest.$ac_ext <<_ACEOF 20436/* end confdefs.h. */ 20437#include <iterator> 20438#ifdef HAVE_NAMESPACES 20439using namespace std; 20440#endif 20441int 20442main () 20443{ 20444forward_iterator<int,int> t; return 0; 20445 ; 20446 return 0; 20447} 20448_ACEOF 20449rm -f conftest.$ac_objext 20450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20451 (eval $ac_compile) 2>&5 20452 ac_status=$? 20453 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20454 (exit $ac_status); } && 20455 { ac_try='test -s conftest.$ac_objext' 20456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20457 (eval $ac_try) 2>&5 20458 ac_status=$? 20459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20460 (exit $ac_status); }; }; then 20461 ac_cv_cxx_have_fwd_iterator=yes 20462else 20463 echo "$as_me: failed program was:" >&5 20464sed 's/^/| /' conftest.$ac_ext >&5 20465 20466ac_cv_cxx_have_fwd_iterator=no 20467fi 20468rm -f conftest.$ac_objext conftest.$ac_ext 20469 ac_ext=c 20470ac_cpp='$CPP $CPPFLAGS' 20471ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20472ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20473ac_compiler_gnu=$ac_cv_c_compiler_gnu 20474 20475 20476fi 20477echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5 20478echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6 20479if test "$ac_cv_cxx_have_fwd_iterator" = yes; then 20480 20481cat >>confdefs.h <<\_ACEOF 20482#define HAVE_FWD_ITERATOR 20483_ACEOF 20484 20485fi 20486 20487 20488# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 20489# for constant arguments. Useless! 20490echo "$as_me:$LINENO: checking for working alloca.h" >&5 20491echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 20492if test "${ac_cv_working_alloca_h+set}" = set; then 20493 echo $ECHO_N "(cached) $ECHO_C" >&6 20494else 20495 cat >conftest.$ac_ext <<_ACEOF 20496#line $LINENO "configure" 20497/* confdefs.h. */ 20498_ACEOF 20499cat confdefs.h >>conftest.$ac_ext 20500cat >>conftest.$ac_ext <<_ACEOF 20501/* end confdefs.h. */ 20502#include <alloca.h> 20503int 20504main () 20505{ 20506char *p = (char *) alloca (2 * sizeof (int)); 20507 ; 20508 return 0; 20509} 20510_ACEOF 20511rm -f conftest.$ac_objext conftest$ac_exeext 20512if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20513 (eval $ac_link) 2>&5 20514 ac_status=$? 20515 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20516 (exit $ac_status); } && 20517 { ac_try='test -s conftest$ac_exeext' 20518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20519 (eval $ac_try) 2>&5 20520 ac_status=$? 20521 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20522 (exit $ac_status); }; }; then 20523 ac_cv_working_alloca_h=yes 20524else 20525 echo "$as_me: failed program was:" >&5 20526sed 's/^/| /' conftest.$ac_ext >&5 20527 20528ac_cv_working_alloca_h=no 20529fi 20530rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 20531fi 20532echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 20533echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 20534if test $ac_cv_working_alloca_h = yes; then 20535 20536cat >>confdefs.h <<\_ACEOF 20537#define HAVE_ALLOCA_H 1 20538_ACEOF 20539 20540fi 20541 20542echo "$as_me:$LINENO: checking for alloca" >&5 20543echo $ECHO_N "checking for alloca... $ECHO_C" >&6 20544if test "${ac_cv_func_alloca_works+set}" = set; then 20545 echo $ECHO_N "(cached) $ECHO_C" >&6 20546else 20547 cat >conftest.$ac_ext <<_ACEOF 20548#line $LINENO "configure" 20549/* confdefs.h. */ 20550_ACEOF 20551cat confdefs.h >>conftest.$ac_ext 20552cat >>conftest.$ac_ext <<_ACEOF 20553/* end confdefs.h. */ 20554#ifdef __GNUC__ 20555# define alloca __builtin_alloca 20556#else 20557# ifdef _MSC_VER 20558# include <malloc.h> 20559# define alloca _alloca 20560# else 20561# if HAVE_ALLOCA_H 20562# include <alloca.h> 20563# else 20564# ifdef _AIX 20565 #pragma alloca 20566# else 20567# ifndef alloca /* predefined by HP cc +Olibcalls */ 20568char *alloca (); 20569# endif 20570# endif 20571# endif 20572# endif 20573#endif 20574 20575int 20576main () 20577{ 20578char *p = (char *) alloca (1); 20579 ; 20580 return 0; 20581} 20582_ACEOF 20583rm -f conftest.$ac_objext conftest$ac_exeext 20584if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20585 (eval $ac_link) 2>&5 20586 ac_status=$? 20587 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20588 (exit $ac_status); } && 20589 { ac_try='test -s conftest$ac_exeext' 20590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20591 (eval $ac_try) 2>&5 20592 ac_status=$? 20593 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20594 (exit $ac_status); }; }; then 20595 ac_cv_func_alloca_works=yes 20596else 20597 echo "$as_me: failed program was:" >&5 20598sed 's/^/| /' conftest.$ac_ext >&5 20599 20600ac_cv_func_alloca_works=no 20601fi 20602rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 20603fi 20604echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 20605echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 20606 20607if test $ac_cv_func_alloca_works = yes; then 20608 20609cat >>confdefs.h <<\_ACEOF 20610#define HAVE_ALLOCA 1 20611_ACEOF 20612 20613else 20614 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 20615# that cause trouble. Some versions do not even contain alloca or 20616# contain a buggy version. If you still want to use their alloca, 20617# use ar to extract alloca.o from them instead of compiling alloca.c. 20618 20619ALLOCA=alloca.$ac_objext 20620 20621cat >>confdefs.h <<\_ACEOF 20622#define C_ALLOCA 1 20623_ACEOF 20624 20625 20626echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 20627echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 20628if test "${ac_cv_os_cray+set}" = set; then 20629 echo $ECHO_N "(cached) $ECHO_C" >&6 20630else 20631 cat >conftest.$ac_ext <<_ACEOF 20632#line $LINENO "configure" 20633/* confdefs.h. */ 20634_ACEOF 20635cat confdefs.h >>conftest.$ac_ext 20636cat >>conftest.$ac_ext <<_ACEOF 20637/* end confdefs.h. */ 20638#if defined(CRAY) && ! defined(CRAY2) 20639webecray 20640#else 20641wenotbecray 20642#endif 20643 20644_ACEOF 20645if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20646 $EGREP "webecray" >/dev/null 2>&1; then 20647 ac_cv_os_cray=yes 20648else 20649 ac_cv_os_cray=no 20650fi 20651rm -f conftest* 20652 20653fi 20654echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 20655echo "${ECHO_T}$ac_cv_os_cray" >&6 20656if test $ac_cv_os_cray = yes; then 20657 for ac_func in _getb67 GETB67 getb67; do 20658 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 20659echo "$as_me:$LINENO: checking for $ac_func" >&5 20660echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 20661if eval "test \"\${$as_ac_var+set}\" = set"; then 20662 echo $ECHO_N "(cached) $ECHO_C" >&6 20663else 20664 cat >conftest.$ac_ext <<_ACEOF 20665#line $LINENO "configure" 20666/* confdefs.h. */ 20667_ACEOF 20668cat confdefs.h >>conftest.$ac_ext 20669cat >>conftest.$ac_ext <<_ACEOF 20670/* end confdefs.h. */ 20671/* System header to define __stub macros and hopefully few prototypes, 20672 which can conflict with char $ac_func (); below. 20673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20674 <limits.h> exists even on freestanding compilers. */ 20675#ifdef __STDC__ 20676# include <limits.h> 20677#else 20678# include <assert.h> 20679#endif 20680/* Override any gcc2 internal prototype to avoid an error. */ 20681#ifdef __cplusplus 20682extern "C" 20683{ 20684#endif 20685/* We use char because int might match the return type of a gcc2 20686 builtin and then its argument prototype would still apply. */ 20687char $ac_func (); 20688/* The GNU C library defines this for functions which it implements 20689 to always fail with ENOSYS. Some functions are actually named 20690 something starting with __ and the normal name is an alias. */ 20691#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 20692choke me 20693#else 20694char (*f) () = $ac_func; 20695#endif 20696#ifdef __cplusplus 20697} 20698#endif 20699 20700int 20701main () 20702{ 20703return f != $ac_func; 20704 ; 20705 return 0; 20706} 20707_ACEOF 20708rm -f conftest.$ac_objext conftest$ac_exeext 20709if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20710 (eval $ac_link) 2>&5 20711 ac_status=$? 20712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20713 (exit $ac_status); } && 20714 { ac_try='test -s conftest$ac_exeext' 20715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20716 (eval $ac_try) 2>&5 20717 ac_status=$? 20718 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20719 (exit $ac_status); }; }; then 20720 eval "$as_ac_var=yes" 20721else 20722 echo "$as_me: failed program was:" >&5 20723sed 's/^/| /' conftest.$ac_ext >&5 20724 20725eval "$as_ac_var=no" 20726fi 20727rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 20728fi 20729echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 20730echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 20731if test `eval echo '${'$as_ac_var'}'` = yes; then 20732 20733cat >>confdefs.h <<_ACEOF 20734#define CRAY_STACKSEG_END $ac_func 20735_ACEOF 20736 20737 break 20738fi 20739 20740 done 20741fi 20742 20743echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 20744echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 20745if test "${ac_cv_c_stack_direction+set}" = set; then 20746 echo $ECHO_N "(cached) $ECHO_C" >&6 20747else 20748 if test "$cross_compiling" = yes; then 20749 ac_cv_c_stack_direction=0 20750else 20751 cat >conftest.$ac_ext <<_ACEOF 20752#line $LINENO "configure" 20753/* confdefs.h. */ 20754_ACEOF 20755cat confdefs.h >>conftest.$ac_ext 20756cat >>conftest.$ac_ext <<_ACEOF 20757/* end confdefs.h. */ 20758int 20759find_stack_direction () 20760{ 20761 static char *addr = 0; 20762 auto char dummy; 20763 if (addr == 0) 20764 { 20765 addr = &dummy; 20766 return find_stack_direction (); 20767 } 20768 else 20769 return (&dummy > addr) ? 1 : -1; 20770} 20771 20772int 20773main () 20774{ 20775 exit (find_stack_direction () < 0); 20776} 20777_ACEOF 20778rm -f conftest$ac_exeext 20779if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20780 (eval $ac_link) 2>&5 20781 ac_status=$? 20782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20783 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20785 (eval $ac_try) 2>&5 20786 ac_status=$? 20787 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20788 (exit $ac_status); }; }; then 20789 ac_cv_c_stack_direction=1 20790else 20791 echo "$as_me: program exited with status $ac_status" >&5 20792echo "$as_me: failed program was:" >&5 20793sed 's/^/| /' conftest.$ac_ext >&5 20794 20795( exit $ac_status ) 20796ac_cv_c_stack_direction=-1 20797fi 20798rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20799fi 20800fi 20801echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 20802echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 20803 20804cat >>confdefs.h <<_ACEOF 20805#define STACK_DIRECTION $ac_cv_c_stack_direction 20806_ACEOF 20807 20808 20809fi 20810 20811 20812 20813for ac_header in stdlib.h unistd.h 20814do 20815as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 20816if eval "test \"\${$as_ac_Header+set}\" = set"; then 20817 echo "$as_me:$LINENO: checking for $ac_header" >&5 20818echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 20819if eval "test \"\${$as_ac_Header+set}\" = set"; then 20820 echo $ECHO_N "(cached) $ECHO_C" >&6 20821fi 20822echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 20823echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 20824else 20825 # Is the header compilable? 20826echo "$as_me:$LINENO: checking $ac_header usability" >&5 20827echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 20828cat >conftest.$ac_ext <<_ACEOF 20829#line $LINENO "configure" 20830/* confdefs.h. */ 20831_ACEOF 20832cat confdefs.h >>conftest.$ac_ext 20833cat >>conftest.$ac_ext <<_ACEOF 20834/* end confdefs.h. */ 20835$ac_includes_default 20836#include <$ac_header> 20837_ACEOF 20838rm -f conftest.$ac_objext 20839if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20840 (eval $ac_compile) 2>&5 20841 ac_status=$? 20842 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20843 (exit $ac_status); } && 20844 { ac_try='test -s conftest.$ac_objext' 20845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20846 (eval $ac_try) 2>&5 20847 ac_status=$? 20848 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20849 (exit $ac_status); }; }; then 20850 ac_header_compiler=yes 20851else 20852 echo "$as_me: failed program was:" >&5 20853sed 's/^/| /' conftest.$ac_ext >&5 20854 20855ac_header_compiler=no 20856fi 20857rm -f conftest.$ac_objext conftest.$ac_ext 20858echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20859echo "${ECHO_T}$ac_header_compiler" >&6 20860 20861# Is the header present? 20862echo "$as_me:$LINENO: checking $ac_header presence" >&5 20863echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 20864cat >conftest.$ac_ext <<_ACEOF 20865#line $LINENO "configure" 20866/* confdefs.h. */ 20867_ACEOF 20868cat confdefs.h >>conftest.$ac_ext 20869cat >>conftest.$ac_ext <<_ACEOF 20870/* end confdefs.h. */ 20871#include <$ac_header> 20872_ACEOF 20873if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 20874 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 20875 ac_status=$? 20876 grep -v '^ *+' conftest.er1 >conftest.err 20877 rm -f conftest.er1 20878 cat conftest.err >&5 20879 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20880 (exit $ac_status); } >/dev/null; then 20881 if test -s conftest.err; then 20882 ac_cpp_err=$ac_c_preproc_warn_flag 20883 else 20884 ac_cpp_err= 20885 fi 20886else 20887 ac_cpp_err=yes 20888fi 20889if test -z "$ac_cpp_err"; then 20890 ac_header_preproc=yes 20891else 20892 echo "$as_me: failed program was:" >&5 20893sed 's/^/| /' conftest.$ac_ext >&5 20894 20895 ac_header_preproc=no 20896fi 20897rm -f conftest.err conftest.$ac_ext 20898echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 20899echo "${ECHO_T}$ac_header_preproc" >&6 20900 20901# So? What about this header? 20902case $ac_header_compiler:$ac_header_preproc in 20903 yes:no ) 20904 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 20905echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 20906 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 20907echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 20908 ( 20909 cat <<\_ASBOX 20910## ------------------------------------ ## 20911## Report this to bug-autoconf@gnu.org. ## 20912## ------------------------------------ ## 20913_ASBOX 20914 ) | 20915 sed "s/^/$as_me: WARNING: /" >&2 20916 ;; 20917 no:yes ) 20918 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 20919echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 20920 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 20921echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 20922 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 20923echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 20924 ( 20925 cat <<\_ASBOX 20926## ------------------------------------ ## 20927## Report this to bug-autoconf@gnu.org. ## 20928## ------------------------------------ ## 20929_ASBOX 20930 ) | 20931 sed "s/^/$as_me: WARNING: /" >&2 20932 ;; 20933esac 20934echo "$as_me:$LINENO: checking for $ac_header" >&5 20935echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 20936if eval "test \"\${$as_ac_Header+set}\" = set"; then 20937 echo $ECHO_N "(cached) $ECHO_C" >&6 20938else 20939 eval "$as_ac_Header=$ac_header_preproc" 20940fi 20941echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 20942echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 20943 20944fi 20945if test `eval echo '${'$as_ac_Header'}'` = yes; then 20946 cat >>confdefs.h <<_ACEOF 20947#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 20948_ACEOF 20949 20950fi 20951 20952done 20953 20954 20955for ac_func in getpagesize 20956do 20957as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 20958echo "$as_me:$LINENO: checking for $ac_func" >&5 20959echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 20960if eval "test \"\${$as_ac_var+set}\" = set"; then 20961 echo $ECHO_N "(cached) $ECHO_C" >&6 20962else 20963 cat >conftest.$ac_ext <<_ACEOF 20964#line $LINENO "configure" 20965/* confdefs.h. */ 20966_ACEOF 20967cat confdefs.h >>conftest.$ac_ext 20968cat >>conftest.$ac_ext <<_ACEOF 20969/* end confdefs.h. */ 20970/* System header to define __stub macros and hopefully few prototypes, 20971 which can conflict with char $ac_func (); below. 20972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20973 <limits.h> exists even on freestanding compilers. */ 20974#ifdef __STDC__ 20975# include <limits.h> 20976#else 20977# include <assert.h> 20978#endif 20979/* Override any gcc2 internal prototype to avoid an error. */ 20980#ifdef __cplusplus 20981extern "C" 20982{ 20983#endif 20984/* We use char because int might match the return type of a gcc2 20985 builtin and then its argument prototype would still apply. */ 20986char $ac_func (); 20987/* The GNU C library defines this for functions which it implements 20988 to always fail with ENOSYS. Some functions are actually named 20989 something starting with __ and the normal name is an alias. */ 20990#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 20991choke me 20992#else 20993char (*f) () = $ac_func; 20994#endif 20995#ifdef __cplusplus 20996} 20997#endif 20998 20999int 21000main () 21001{ 21002return f != $ac_func; 21003 ; 21004 return 0; 21005} 21006_ACEOF 21007rm -f conftest.$ac_objext conftest$ac_exeext 21008if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21009 (eval $ac_link) 2>&5 21010 ac_status=$? 21011 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21012 (exit $ac_status); } && 21013 { ac_try='test -s conftest$ac_exeext' 21014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21015 (eval $ac_try) 2>&5 21016 ac_status=$? 21017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21018 (exit $ac_status); }; }; then 21019 eval "$as_ac_var=yes" 21020else 21021 echo "$as_me: failed program was:" >&5 21022sed 's/^/| /' conftest.$ac_ext >&5 21023 21024eval "$as_ac_var=no" 21025fi 21026rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 21027fi 21028echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 21029echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 21030if test `eval echo '${'$as_ac_var'}'` = yes; then 21031 cat >>confdefs.h <<_ACEOF 21032#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 21033_ACEOF 21034 21035fi 21036done 21037 21038echo "$as_me:$LINENO: checking for working mmap" >&5 21039echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 21040if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then 21041 echo $ECHO_N "(cached) $ECHO_C" >&6 21042else 21043 if test "$cross_compiling" = yes; then 21044 ac_cv_func_mmap_fixed_mapped=no 21045else 21046 cat >conftest.$ac_ext <<_ACEOF 21047#line $LINENO "configure" 21048/* confdefs.h. */ 21049_ACEOF 21050cat confdefs.h >>conftest.$ac_ext 21051cat >>conftest.$ac_ext <<_ACEOF 21052/* end confdefs.h. */ 21053$ac_includes_default 21054/* malloc might have been renamed as rpl_malloc. */ 21055#undef malloc 21056 21057/* Thanks to Mike Haertel and Jim Avera for this test. 21058 Here is a matrix of mmap possibilities: 21059 mmap private not fixed 21060 mmap private fixed at somewhere currently unmapped 21061 mmap private fixed at somewhere already mapped 21062 mmap shared not fixed 21063 mmap shared fixed at somewhere currently unmapped 21064 mmap shared fixed at somewhere already mapped 21065 For private mappings, we should verify that changes cannot be read() 21066 back from the file, nor mmap's back from the file at a different 21067 address. (There have been systems where private was not correctly 21068 implemented like the infamous i386 svr4.0, and systems where the 21069 VM page cache was not coherent with the file system buffer cache 21070 like early versions of FreeBSD and possibly contemporary NetBSD.) 21071 For shared mappings, we should conversely verify that changes get 21072 propagated back to all the places they're supposed to be. 21073 21074 Grep wants private fixed already mapped. 21075 The main things grep needs to know about mmap are: 21076 * does it exist and is it safe to write into the mmap'd area 21077 * how to use it (BSD variants) */ 21078 21079#include <fcntl.h> 21080#include <sys/mman.h> 21081 21082#if !STDC_HEADERS && !HAVE_STDLIB_H 21083char *malloc (); 21084#endif 21085 21086/* This mess was copied from the GNU getpagesize.h. */ 21087#if !HAVE_GETPAGESIZE 21088/* Assume that all systems that can run configure have sys/param.h. */ 21089# if !HAVE_SYS_PARAM_H 21090# define HAVE_SYS_PARAM_H 1 21091# endif 21092 21093# ifdef _SC_PAGESIZE 21094# define getpagesize() sysconf(_SC_PAGESIZE) 21095# else /* no _SC_PAGESIZE */ 21096# if HAVE_SYS_PARAM_H 21097# include <sys/param.h> 21098# ifdef EXEC_PAGESIZE 21099# define getpagesize() EXEC_PAGESIZE 21100# else /* no EXEC_PAGESIZE */ 21101# ifdef NBPG 21102# define getpagesize() NBPG * CLSIZE 21103# ifndef CLSIZE 21104# define CLSIZE 1 21105# endif /* no CLSIZE */ 21106# else /* no NBPG */ 21107# ifdef NBPC 21108# define getpagesize() NBPC 21109# else /* no NBPC */ 21110# ifdef PAGESIZE 21111# define getpagesize() PAGESIZE 21112# endif /* PAGESIZE */ 21113# endif /* no NBPC */ 21114# endif /* no NBPG */ 21115# endif /* no EXEC_PAGESIZE */ 21116# else /* no HAVE_SYS_PARAM_H */ 21117# define getpagesize() 8192 /* punt totally */ 21118# endif /* no HAVE_SYS_PARAM_H */ 21119# endif /* no _SC_PAGESIZE */ 21120 21121#endif /* no HAVE_GETPAGESIZE */ 21122 21123int 21124main () 21125{ 21126 char *data, *data2, *data3; 21127 int i, pagesize; 21128 int fd; 21129 21130 pagesize = getpagesize (); 21131 21132 /* First, make a file with some known garbage in it. */ 21133 data = (char *) malloc (pagesize); 21134 if (!data) 21135 exit (1); 21136 for (i = 0; i < pagesize; ++i) 21137 *(data + i) = rand (); 21138 umask (0); 21139 fd = creat ("conftest.mmap", 0600); 21140 if (fd < 0) 21141 exit (1); 21142 if (write (fd, data, pagesize) != pagesize) 21143 exit (1); 21144 close (fd); 21145 21146 /* Next, try to mmap the file at a fixed address which already has 21147 something else allocated at it. If we can, also make sure that 21148 we see the same garbage. */ 21149 fd = open ("conftest.mmap", O_RDWR); 21150 if (fd < 0) 21151 exit (1); 21152 data2 = (char *) malloc (2 * pagesize); 21153 if (!data2) 21154 exit (1); 21155 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); 21156 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 21157 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 21158 exit (1); 21159 for (i = 0; i < pagesize; ++i) 21160 if (*(data + i) != *(data2 + i)) 21161 exit (1); 21162 21163 /* Finally, make sure that changes to the mapped area do not 21164 percolate back to the file as seen by read(). (This is a bug on 21165 some variants of i386 svr4.0.) */ 21166 for (i = 0; i < pagesize; ++i) 21167 *(data2 + i) = *(data2 + i) + 1; 21168 data3 = (char *) malloc (pagesize); 21169 if (!data3) 21170 exit (1); 21171 if (read (fd, data3, pagesize) != pagesize) 21172 exit (1); 21173 for (i = 0; i < pagesize; ++i) 21174 if (*(data + i) != *(data3 + i)) 21175 exit (1); 21176 close (fd); 21177 exit (0); 21178} 21179_ACEOF 21180rm -f conftest$ac_exeext 21181if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21182 (eval $ac_link) 2>&5 21183 ac_status=$? 21184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21185 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21187 (eval $ac_try) 2>&5 21188 ac_status=$? 21189 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21190 (exit $ac_status); }; }; then 21191 ac_cv_func_mmap_fixed_mapped=yes 21192else 21193 echo "$as_me: program exited with status $ac_status" >&5 21194echo "$as_me: failed program was:" >&5 21195sed 's/^/| /' conftest.$ac_ext >&5 21196 21197( exit $ac_status ) 21198ac_cv_func_mmap_fixed_mapped=no 21199fi 21200rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21201fi 21202fi 21203echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 21204echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 21205if test $ac_cv_func_mmap_fixed_mapped = yes; then 21206 21207cat >>confdefs.h <<\_ACEOF 21208#define HAVE_MMAP 1 21209_ACEOF 21210 21211fi 21212rm -f conftest.mmap 21213 21214if test "$ac_cv_func_mmap_fixed_mapped" = "no" 21215then 21216 { { echo "$as_me:$LINENO: error: mmap() required but not found" >&5 21217echo "$as_me: error: mmap() required but not found" >&2;} 21218 { (exit 1); exit 1; }; } 21219fi 21220echo "$as_me:$LINENO: checking for mmap of files" >&5 21221echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6 21222if test "${ac_cv_func_mmap_file+set}" = set; then 21223 echo $ECHO_N "(cached) $ECHO_C" >&6 21224else 21225 21226 21227 ac_ext=c 21228ac_cpp='$CPP $CPPFLAGS' 21229ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21230ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21231ac_compiler_gnu=$ac_cv_c_compiler_gnu 21232 21233 if test "$cross_compiling" = yes; then 21234 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 21235See \`config.log' for more details." >&5 21236echo "$as_me: error: cannot run test program while cross compiling 21237See \`config.log' for more details." >&2;} 21238 { (exit 1); exit 1; }; } 21239else 21240 cat >conftest.$ac_ext <<_ACEOF 21241#line $LINENO "configure" 21242/* confdefs.h. */ 21243_ACEOF 21244cat confdefs.h >>conftest.$ac_ext 21245cat >>conftest.$ac_ext <<_ACEOF 21246/* end confdefs.h. */ 21247 21248#ifdef HAVE_SYS_TYPES_H 21249#include <sys/types.h> 21250#endif 21251 21252#ifdef HAVE_SYS_MMAN_H 21253#include <sys/mman.h> 21254#endif 21255 21256#ifdef HAVE_FCNTL_H 21257#include <fcntl.h> 21258#endif 21259 21260 int fd; 21261 int main () { 21262 fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != (int) MAP_FAILED);} 21263_ACEOF 21264rm -f conftest$ac_exeext 21265if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21266 (eval $ac_link) 2>&5 21267 ac_status=$? 21268 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21269 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21271 (eval $ac_try) 2>&5 21272 ac_status=$? 21273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21274 (exit $ac_status); }; }; then 21275 ac_cv_func_mmap_file=yes 21276else 21277 echo "$as_me: program exited with status $ac_status" >&5 21278echo "$as_me: failed program was:" >&5 21279sed 's/^/| /' conftest.$ac_ext >&5 21280 21281( exit $ac_status ) 21282ac_cv_func_mmap_file=no 21283fi 21284rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21285fi 21286 ac_ext=c 21287ac_cpp='$CPP $CPPFLAGS' 21288ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21289ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21290ac_compiler_gnu=$ac_cv_c_compiler_gnu 21291 21292 21293fi 21294echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 21295echo "${ECHO_T}$ac_cv_func_mmap_file" >&6 21296if test "$ac_cv_func_mmap_file" = yes; then 21297 21298cat >>confdefs.h <<\_ACEOF 21299#define HAVE_MMAP_FILE 21300_ACEOF 21301 21302 MMAP_FILE=yes 21303 21304fi 21305 21306if test "$ac_cv_func_mmap_file" = "no" 21307then 21308 { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5 21309echo "$as_me: error: mmap() of files required but not found" >&2;} 21310 { (exit 1); exit 1; }; } 21311fi 21312echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 21313echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6 21314if test "${ac_cv_header_mmap_anon+set}" = set; then 21315 echo $ECHO_N "(cached) $ECHO_C" >&6 21316else 21317 21318 21319 ac_ext=c 21320ac_cpp='$CPP $CPPFLAGS' 21321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21323ac_compiler_gnu=$ac_cv_c_compiler_gnu 21324 21325 cat >conftest.$ac_ext <<_ACEOF 21326#line $LINENO "configure" 21327/* confdefs.h. */ 21328_ACEOF 21329cat confdefs.h >>conftest.$ac_ext 21330cat >>conftest.$ac_ext <<_ACEOF 21331/* end confdefs.h. */ 21332#include <sys/mman.h> 21333 #include <unistd.h> 21334 #include <fcntl.h> 21335int 21336main () 21337{ 21338mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); 21339 ; 21340 return 0; 21341} 21342_ACEOF 21343rm -f conftest.$ac_objext 21344if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21345 (eval $ac_compile) 2>&5 21346 ac_status=$? 21347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21348 (exit $ac_status); } && 21349 { ac_try='test -s conftest.$ac_objext' 21350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21351 (eval $ac_try) 2>&5 21352 ac_status=$? 21353 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21354 (exit $ac_status); }; }; then 21355 ac_cv_header_mmap_anon=yes 21356else 21357 echo "$as_me: failed program was:" >&5 21358sed 's/^/| /' conftest.$ac_ext >&5 21359 21360ac_cv_header_mmap_anon=no 21361fi 21362rm -f conftest.$ac_objext conftest.$ac_ext 21363 ac_ext=c 21364ac_cpp='$CPP $CPPFLAGS' 21365ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21366ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21367ac_compiler_gnu=$ac_cv_c_compiler_gnu 21368 21369 21370fi 21371echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 21372echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6 21373if test "$ac_cv_header_mmap_anon" = yes; then 21374 21375cat >>confdefs.h <<\_ACEOF 21376#define HAVE_MMAP_ANONYMOUS 21377_ACEOF 21378 21379fi 21380 21381echo "$as_me:$LINENO: checking return type of signal handlers" >&5 21382echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 21383if test "${ac_cv_type_signal+set}" = set; then 21384 echo $ECHO_N "(cached) $ECHO_C" >&6 21385else 21386 cat >conftest.$ac_ext <<_ACEOF 21387#line $LINENO "configure" 21388/* confdefs.h. */ 21389_ACEOF 21390cat confdefs.h >>conftest.$ac_ext 21391cat >>conftest.$ac_ext <<_ACEOF 21392/* end confdefs.h. */ 21393#include <sys/types.h> 21394#include <signal.h> 21395#ifdef signal 21396# undef signal 21397#endif 21398#ifdef __cplusplus 21399extern "C" void (*signal (int, void (*)(int)))(int); 21400#else 21401void (*signal ()) (); 21402#endif 21403 21404int 21405main () 21406{ 21407int i; 21408 ; 21409 return 0; 21410} 21411_ACEOF 21412rm -f conftest.$ac_objext 21413if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21414 (eval $ac_compile) 2>&5 21415 ac_status=$? 21416 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21417 (exit $ac_status); } && 21418 { ac_try='test -s conftest.$ac_objext' 21419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21420 (eval $ac_try) 2>&5 21421 ac_status=$? 21422 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21423 (exit $ac_status); }; }; then 21424 ac_cv_type_signal=void 21425else 21426 echo "$as_me: failed program was:" >&5 21427sed 's/^/| /' conftest.$ac_ext >&5 21428 21429ac_cv_type_signal=int 21430fi 21431rm -f conftest.$ac_objext conftest.$ac_ext 21432fi 21433echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 21434echo "${ECHO_T}$ac_cv_type_signal" >&6 21435 21436cat >>confdefs.h <<_ACEOF 21437#define RETSIGTYPE $ac_cv_type_signal 21438_ACEOF 21439 21440 21441 21442 21443 21444 21445 21446for ac_func in getcwd gettimeofday strdup strtoq strtoll 21447do 21448as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 21449echo "$as_me:$LINENO: checking for $ac_func" >&5 21450echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 21451if eval "test \"\${$as_ac_var+set}\" = set"; then 21452 echo $ECHO_N "(cached) $ECHO_C" >&6 21453else 21454 cat >conftest.$ac_ext <<_ACEOF 21455#line $LINENO "configure" 21456/* confdefs.h. */ 21457_ACEOF 21458cat confdefs.h >>conftest.$ac_ext 21459cat >>conftest.$ac_ext <<_ACEOF 21460/* end confdefs.h. */ 21461/* System header to define __stub macros and hopefully few prototypes, 21462 which can conflict with char $ac_func (); below. 21463 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 21464 <limits.h> exists even on freestanding compilers. */ 21465#ifdef __STDC__ 21466# include <limits.h> 21467#else 21468# include <assert.h> 21469#endif 21470/* Override any gcc2 internal prototype to avoid an error. */ 21471#ifdef __cplusplus 21472extern "C" 21473{ 21474#endif 21475/* We use char because int might match the return type of a gcc2 21476 builtin and then its argument prototype would still apply. */ 21477char $ac_func (); 21478/* The GNU C library defines this for functions which it implements 21479 to always fail with ENOSYS. Some functions are actually named 21480 something starting with __ and the normal name is an alias. */ 21481#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 21482choke me 21483#else 21484char (*f) () = $ac_func; 21485#endif 21486#ifdef __cplusplus 21487} 21488#endif 21489 21490int 21491main () 21492{ 21493return f != $ac_func; 21494 ; 21495 return 0; 21496} 21497_ACEOF 21498rm -f conftest.$ac_objext conftest$ac_exeext 21499if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21500 (eval $ac_link) 2>&5 21501 ac_status=$? 21502 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21503 (exit $ac_status); } && 21504 { ac_try='test -s conftest$ac_exeext' 21505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21506 (eval $ac_try) 2>&5 21507 ac_status=$? 21508 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21509 (exit $ac_status); }; }; then 21510 eval "$as_ac_var=yes" 21511else 21512 echo "$as_me: failed program was:" >&5 21513sed 's/^/| /' conftest.$ac_ext >&5 21514 21515eval "$as_ac_var=no" 21516fi 21517rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 21518fi 21519echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 21520echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 21521if test `eval echo '${'$as_ac_var'}'` = yes; then 21522 cat >>confdefs.h <<_ACEOF 21523#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 21524_ACEOF 21525 21526fi 21527done 21528 21529echo "$as_me:$LINENO: checking for mprotect" >&5 21530echo $ECHO_N "checking for mprotect... $ECHO_C" >&6 21531if test "${ac_cv_func_mprotect+set}" = set; then 21532 echo $ECHO_N "(cached) $ECHO_C" >&6 21533else 21534 cat >conftest.$ac_ext <<_ACEOF 21535#line $LINENO "configure" 21536/* confdefs.h. */ 21537_ACEOF 21538cat confdefs.h >>conftest.$ac_ext 21539cat >>conftest.$ac_ext <<_ACEOF 21540/* end confdefs.h. */ 21541/* System header to define __stub macros and hopefully few prototypes, 21542 which can conflict with char mprotect (); below. 21543 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 21544 <limits.h> exists even on freestanding compilers. */ 21545#ifdef __STDC__ 21546# include <limits.h> 21547#else 21548# include <assert.h> 21549#endif 21550/* Override any gcc2 internal prototype to avoid an error. */ 21551#ifdef __cplusplus 21552extern "C" 21553{ 21554#endif 21555/* We use char because int might match the return type of a gcc2 21556 builtin and then its argument prototype would still apply. */ 21557char mprotect (); 21558/* The GNU C library defines this for functions which it implements 21559 to always fail with ENOSYS. Some functions are actually named 21560 something starting with __ and the normal name is an alias. */ 21561#if defined (__stub_mprotect) || defined (__stub___mprotect) 21562choke me 21563#else 21564char (*f) () = mprotect; 21565#endif 21566#ifdef __cplusplus 21567} 21568#endif 21569 21570int 21571main () 21572{ 21573return f != mprotect; 21574 ; 21575 return 0; 21576} 21577_ACEOF 21578rm -f conftest.$ac_objext conftest$ac_exeext 21579if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21580 (eval $ac_link) 2>&5 21581 ac_status=$? 21582 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21583 (exit $ac_status); } && 21584 { ac_try='test -s conftest$ac_exeext' 21585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21586 (eval $ac_try) 2>&5 21587 ac_status=$? 21588 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21589 (exit $ac_status); }; }; then 21590 ac_cv_func_mprotect=yes 21591else 21592 echo "$as_me: failed program was:" >&5 21593sed 's/^/| /' conftest.$ac_ext >&5 21594 21595ac_cv_func_mprotect=no 21596fi 21597rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 21598fi 21599echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5 21600echo "${ECHO_T}$ac_cv_func_mprotect" >&6 21601if test $ac_cv_func_mprotect = yes; then 21602 : 21603else 21604 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5 21605echo "$as_me: error: Function mprotect() required but not found" >&2;} 21606 { (exit 1); exit 1; }; } 21607fi 21608 21609 21610 21611 21612 21613 ac_ext=c 21614ac_cpp='$CPP $CPPFLAGS' 21615ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21616ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21617ac_compiler_gnu=$ac_cv_c_compiler_gnu 21618 21619 oldcflags="$CFLAGS" 21620 CFLAGS="$CFLAGS -Wl,-R." 21621 cat >conftest.$ac_ext <<_ACEOF 21622int main() { return 0; } 21623_ACEOF 21624rm -f conftest.$ac_objext conftest$ac_exeext 21625if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21626 (eval $ac_link) 2>&5 21627 ac_status=$? 21628 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21629 (exit $ac_status); } && 21630 { ac_try='test -s conftest$ac_exeext' 21631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21632 (eval $ac_try) 2>&5 21633 ac_status=$? 21634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21635 (exit $ac_status); }; }; then 21636 ac_cv_link_use_r=yes 21637else 21638 echo "$as_me: failed program was:" >&5 21639sed 's/^/| /' conftest.$ac_ext >&5 21640 21641ac_cv_link_use_r=no 21642fi 21643rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 21644 CFLAGS="$oldcflags" 21645 ac_ext=c 21646ac_cpp='$CPP $CPPFLAGS' 21647ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21648ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21649ac_compiler_gnu=$ac_cv_c_compiler_gnu 21650 21651 if test "$ac_cv_link_use_r" = yes 21652 then 21653 21654cat >>confdefs.h <<\_ACEOF 21655#define HAVE_LINK_R 1 21656_ACEOF 21657 21658 fi 21659 21660 21661# Check whether --enable-optimized or --disable-optimized was given. 21662if test "${enable_optimized+set}" = set; then 21663 enableval="$enable_optimized" 21664 21665else 21666 enableval=no 21667fi; 21668if test ${enableval} = "no" 21669then 21670 ENABLE_OPTIMIZED= 21671 21672else 21673 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 21674 21675fi 21676 21677# Check whether --enable-spec2000 or --disable-spec2000 was given. 21678if test "${enable_spec2000+set}" = set; then 21679 enableval="$enable_spec2000" 21680 21681else 21682 enableval=no 21683fi; 21684if test ${enableval} = "no" 21685then 21686 if test -d /home/vadve/shared/benchmarks/speccpu2000/benchspec 21687 then 21688 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec 21689 21690 USE_SPEC=USE_SPEC=1 21691 21692 else 21693 USE_SPEC= 21694 21695 21696 fi 21697else 21698 if test ${enableval} = "" 21699 then 21700 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec 21701 21702 else 21703 SPEC_ROOT=${enableval} 21704 21705 fi 21706 USE_SPEC=USE_SPEC=1 21707 21708fi 21709 21710# Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given. 21711if test "${enable_precompiled_bytecode+set}" = set; then 21712 enableval="$enable_precompiled_bytecode" 21713 21714else 21715 enableval=no 21716fi; 21717if test ${enableval} = "no" 21718then 21719 UPB= 21720 21721else 21722 UPB=USE_PRECOMPILED_BYTECODE=1 21723 21724fi 21725 21726# Check whether --enable-llc_diffs or --disable-llc_diffs was given. 21727if test "${enable_llc_diffs+set}" = set; then 21728 enableval="$enable_llc_diffs" 21729 21730else 21731 enableval=yes 21732fi; 21733if test ${enableval} = "no" 21734then 21735 DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1 21736 21737else 21738 DISABLE_LLC_DIFFS= 21739 21740fi 21741 21742# Check whether --enable-jit or --disable-jit was given. 21743if test "${enable_jit+set}" = set; then 21744 enableval="$enable_jit" 21745 21746else 21747 enableval=default 21748fi; 21749if test ${enableval} = "no" 21750then 21751 JIT= 21752 21753else 21754 case $target in 21755 *i*86*) 21756 JIT=TARGET_HAS_JIT=1 21757 21758 ;; 21759 *sparc*) 21760 JIT=TARGET_HAS_JIT=1 21761 21762 ;; 21763 *) 21764 JIT= 21765 21766 ;; 21767 esac 21768fi 21769 21770 21771# Check whether --with-llvmgccdir or --without-llvmgccdir was given. 21772if test "${with_llvmgccdir+set}" = set; then 21773 withval="$with_llvmgccdir" 21774 LLVMGCCDIR=$withval 21775 21776fi; 21777echo "$as_me:$LINENO: checking for llvm-gcc" >&5 21778echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6 21779LLVM_GCC_CHECK=no 21780if test -d "$LLVMGCCDIR" 21781then 21782 if test -x "$LLVMGCCDIR/bin/gcc" 21783 then 21784 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc" 21785 fi 21786fi 21787llvmgccwarn=no 21788echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5 21789echo "${ECHO_T}$LLVM_GCC_CHECK" >&6 21790if test "$LLVM_GCC_CHECK" = "no" 21791then 21792 llvmgccwarn=yes 21793fi 21794echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5 21795echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6 21796LLVM_GCC_SANE=no 21797if test -x "$LLVM_GCC_CHECK" 21798then 21799 cp /dev/null conftest.c 21800 "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1 21801 if test $? -eq 0 21802 then 21803 LLVM_GCC_SANE=yes 21804 fi 21805 rm conftest.c 21806fi 21807echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5 21808echo "${ECHO_T}$LLVM_GCC_SANE" >&6 21809if test "$LLVM_GCC_SANE" = "no" 21810then 21811 llvmgccwarn=yes 21812fi 21813 21814 21815# Check whether --with-bcrepos or --without-bcrepos was given. 21816if test "${with_bcrepos+set}" = set; then 21817 withval="$with_bcrepos" 21818 BCR=$withval 21819 21820else 21821 BCR=/home/vadve/lattner/LLVMPrograms 21822 21823fi; 21824 21825 21826# Check whether --with-papi or --without-papi was given. 21827if test "${with_papi+set}" = set; then 21828 withval="$with_papi" 21829 PAPIDIR=$withval 21830 21831else 21832 PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1 21833 21834fi; 21835 21836 ac_config_files="$ac_config_files Makefile.config" 21837cat >confcache <<\_ACEOF 21838# This file is a shell script that caches the results of configure 21839# tests run on this system so they can be shared between configure 21840# scripts and configure runs, see configure's option --config-cache. 21841# It is not useful on other systems. If it contains results you don't 21842# want to keep, you may remove or edit it. 21843# 21844# config.status only pays attention to the cache file if you give it 21845# the --recheck option to rerun configure. 21846# 21847# `ac_cv_env_foo' variables (set or unset) will be overridden when 21848# loading this file, other *unset* `ac_cv_foo' will be assigned the 21849# following values. 21850 21851_ACEOF 21852 21853# The following way of writing the cache mishandles newlines in values, 21854# but we know of no workaround that is simple, portable, and efficient. 21855# So, don't put newlines in cache variables' values. 21856# Ultrix sh set writes to stderr and can't be redirected directly, 21857# and sets the high bit in the cache file unless we assign to the vars. 21858{ 21859 (set) 2>&1 | 21860 case `(ac_space=' '; set | grep ac_space) 2>&1` in 21861 *ac_space=\ *) 21862 # `set' does not quote correctly, so add quotes (double-quote 21863 # substitution turns \\\\ into \\, and sed turns \\ into \). 21864 sed -n \ 21865 "s/'/'\\\\''/g; 21866 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21867 ;; 21868 *) 21869 # `set' quotes correctly as required by POSIX, so do not add quotes. 21870 sed -n \ 21871 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 21872 ;; 21873 esac; 21874} | 21875 sed ' 21876 t clear 21877 : clear 21878 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 21879 t end 21880 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 21881 : end' >>confcache 21882if diff $cache_file confcache >/dev/null 2>&1; then :; else 21883 if test -w $cache_file; then 21884 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 21885 cat confcache >$cache_file 21886 else 21887 echo "not updating unwritable cache $cache_file" 21888 fi 21889fi 21890rm -f confcache 21891 21892test "x$prefix" = xNONE && prefix=$ac_default_prefix 21893# Let make expand exec_prefix. 21894test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21895 21896# VPATH may cause trouble with some makes, so we remove $(srcdir), 21897# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 21898# trailing colons and then remove the whole line if VPATH becomes empty 21899# (actually we leave an empty line to preserve line numbers). 21900if test "x$srcdir" = x.; then 21901 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 21902s/:*\$(srcdir):*/:/; 21903s/:*\${srcdir}:*/:/; 21904s/:*@srcdir@:*/:/; 21905s/^\([^=]*=[ ]*\):*/\1/; 21906s/:*$//; 21907s/^[^=]*=[ ]*$//; 21908}' 21909fi 21910 21911DEFS=-DHAVE_CONFIG_H 21912 21913ac_libobjs= 21914ac_ltlibobjs= 21915for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21916 # 1. Remove the extension, and $U if already installed. 21917 ac_i=`echo "$ac_i" | 21918 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 21919 # 2. Add them. 21920 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 21921 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 21922done 21923LIBOBJS=$ac_libobjs 21924 21925LTLIBOBJS=$ac_ltlibobjs 21926 21927 21928 21929: ${CONFIG_STATUS=./config.status} 21930ac_clean_files_save=$ac_clean_files 21931ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21932{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 21933echo "$as_me: creating $CONFIG_STATUS" >&6;} 21934cat >$CONFIG_STATUS <<_ACEOF 21935#! $SHELL 21936# Generated by $as_me. 21937# Run this file to recreate the current configuration. 21938# Compiler output produced by configure, useful for debugging 21939# configure, is in config.log if it exists. 21940 21941debug=false 21942ac_cs_recheck=false 21943ac_cs_silent=false 21944SHELL=\${CONFIG_SHELL-$SHELL} 21945_ACEOF 21946 21947cat >>$CONFIG_STATUS <<\_ACEOF 21948## --------------------- ## 21949## M4sh Initialization. ## 21950## --------------------- ## 21951 21952# Be Bourne compatible 21953if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 21954 emulate sh 21955 NULLCMD=: 21956 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 21957 # is contrary to our usage. Disable this feature. 21958 alias -g '${1+"$@"}'='"$@"' 21959elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 21960 set -o posix 21961fi 21962 21963# Support unset when possible. 21964if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 21965 as_unset=unset 21966else 21967 as_unset=false 21968fi 21969 21970 21971# Work around bugs in pre-3.0 UWIN ksh. 21972$as_unset ENV MAIL MAILPATH 21973PS1='$ ' 21974PS2='> ' 21975PS4='+ ' 21976 21977# NLS nuisances. 21978for as_var in \ 21979 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 21980 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 21981 LC_TELEPHONE LC_TIME 21982do 21983 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then 21984 eval $as_var=C; export $as_var 21985 else 21986 $as_unset $as_var 21987 fi 21988done 21989 21990# Required to use basename. 21991if expr a : '\(a\)' >/dev/null 2>&1; then 21992 as_expr=expr 21993else 21994 as_expr=false 21995fi 21996 21997if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 21998 as_basename=basename 21999else 22000 as_basename=false 22001fi 22002 22003 22004# Name of the executable. 22005as_me=`$as_basename "$0" || 22006$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 22007 X"$0" : 'X\(//\)$' \| \ 22008 X"$0" : 'X\(/\)$' \| \ 22009 . : '\(.\)' 2>/dev/null || 22010echo X/"$0" | 22011 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 22012 /^X\/\(\/\/\)$/{ s//\1/; q; } 22013 /^X\/\(\/\).*/{ s//\1/; q; } 22014 s/.*/./; q'` 22015 22016 22017# PATH needs CR, and LINENO needs CR and PATH. 22018# Avoid depending upon Character Ranges. 22019as_cr_letters='abcdefghijklmnopqrstuvwxyz' 22020as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 22021as_cr_Letters=$as_cr_letters$as_cr_LETTERS 22022as_cr_digits='0123456789' 22023as_cr_alnum=$as_cr_Letters$as_cr_digits 22024 22025# The user is always right. 22026if test "${PATH_SEPARATOR+set}" != set; then 22027 echo "#! /bin/sh" >conf$$.sh 22028 echo "exit 0" >>conf$$.sh 22029 chmod +x conf$$.sh 22030 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 22031 PATH_SEPARATOR=';' 22032 else 22033 PATH_SEPARATOR=: 22034 fi 22035 rm -f conf$$.sh 22036fi 22037 22038 22039 as_lineno_1=$LINENO 22040 as_lineno_2=$LINENO 22041 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 22042 test "x$as_lineno_1" != "x$as_lineno_2" && 22043 test "x$as_lineno_3" = "x$as_lineno_2" || { 22044 # Find who we are. Look in the path if we contain no path at all 22045 # relative or not. 22046 case $0 in 22047 *[\\/]* ) as_myself=$0 ;; 22048 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22049for as_dir in $PATH 22050do 22051 IFS=$as_save_IFS 22052 test -z "$as_dir" && as_dir=. 22053 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 22054done 22055 22056 ;; 22057 esac 22058 # We did not find ourselves, most probably we were run as `sh COMMAND' 22059 # in which case we are not to be found in the path. 22060 if test "x$as_myself" = x; then 22061 as_myself=$0 22062 fi 22063 if test ! -f "$as_myself"; then 22064 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 22065echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 22066 { (exit 1); exit 1; }; } 22067 fi 22068 case $CONFIG_SHELL in 22069 '') 22070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22071for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 22072do 22073 IFS=$as_save_IFS 22074 test -z "$as_dir" && as_dir=. 22075 for as_base in sh bash ksh sh5; do 22076 case $as_dir in 22077 /*) 22078 if ("$as_dir/$as_base" -c ' 22079 as_lineno_1=$LINENO 22080 as_lineno_2=$LINENO 22081 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 22082 test "x$as_lineno_1" != "x$as_lineno_2" && 22083 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 22084 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 22085 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 22086 CONFIG_SHELL=$as_dir/$as_base 22087 export CONFIG_SHELL 22088 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 22089 fi;; 22090 esac 22091 done 22092done 22093;; 22094 esac 22095 22096 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 22097 # uniformly replaced by the line number. The first 'sed' inserts a 22098 # line-number line before each line; the second 'sed' does the real 22099 # work. The second script uses 'N' to pair each line-number line 22100 # with the numbered line, and appends trailing '-' during 22101 # substitution so that $LINENO is not a special case at line end. 22102 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 22103 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 22104 sed '=' <$as_myself | 22105 sed ' 22106 N 22107 s,$,-, 22108 : loop 22109 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 22110 t loop 22111 s,-$,, 22112 s,^['$as_cr_digits']*\n,, 22113 ' >$as_me.lineno && 22114 chmod +x $as_me.lineno || 22115 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 22116echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 22117 { (exit 1); exit 1; }; } 22118 22119 # Don't try to exec as it changes $[0], causing all sort of problems 22120 # (the dirname of $[0] is not the place where we might find the 22121 # original and so on. Autoconf is especially sensible to this). 22122 . ./$as_me.lineno 22123 # Exit status is that of the last command. 22124 exit 22125} 22126 22127 22128case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 22129 *c*,-n*) ECHO_N= ECHO_C=' 22130' ECHO_T=' ' ;; 22131 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 22132 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 22133esac 22134 22135if expr a : '\(a\)' >/dev/null 2>&1; then 22136 as_expr=expr 22137else 22138 as_expr=false 22139fi 22140 22141rm -f conf$$ conf$$.exe conf$$.file 22142echo >conf$$.file 22143if ln -s conf$$.file conf$$ 2>/dev/null; then 22144 # We could just check for DJGPP; but this test a) works b) is more generic 22145 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 22146 if test -f conf$$.exe; then 22147 # Don't use ln at all; we don't have any links 22148 as_ln_s='cp -p' 22149 else 22150 as_ln_s='ln -s' 22151 fi 22152elif ln conf$$.file conf$$ 2>/dev/null; then 22153 as_ln_s=ln 22154else 22155 as_ln_s='cp -p' 22156fi 22157rm -f conf$$ conf$$.exe conf$$.file 22158 22159if mkdir -p . 2>/dev/null; then 22160 as_mkdir_p=: 22161else 22162 as_mkdir_p=false 22163fi 22164 22165as_executable_p="test -f" 22166 22167# Sed expression to map a string onto a valid CPP name. 22168as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 22169 22170# Sed expression to map a string onto a valid variable name. 22171as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 22172 22173 22174# IFS 22175# We need space, tab and new line, in precisely that order. 22176as_nl=' 22177' 22178IFS=" $as_nl" 22179 22180# CDPATH. 22181$as_unset CDPATH 22182 22183exec 6>&1 22184 22185# Open the log real soon, to keep \$[0] and so on meaningful, and to 22186# report actual input values of CONFIG_FILES etc. instead of their 22187# values after options handling. Logging --version etc. is OK. 22188exec 5>>config.log 22189{ 22190 echo 22191 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 22192## Running $as_me. ## 22193_ASBOX 22194} >&5 22195cat >&5 <<_CSEOF 22196 22197This file was extended by [LLVM] $as_me [1.1], which was 22198generated by GNU Autoconf 2.57. Invocation command line was 22199 22200 CONFIG_FILES = $CONFIG_FILES 22201 CONFIG_HEADERS = $CONFIG_HEADERS 22202 CONFIG_LINKS = $CONFIG_LINKS 22203 CONFIG_COMMANDS = $CONFIG_COMMANDS 22204 $ $0 $@ 22205 22206_CSEOF 22207echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 22208echo >&5 22209_ACEOF 22210 22211# Files that config.status was made for. 22212if test -n "$ac_config_files"; then 22213 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 22214fi 22215 22216if test -n "$ac_config_headers"; then 22217 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 22218fi 22219 22220if test -n "$ac_config_links"; then 22221 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 22222fi 22223 22224if test -n "$ac_config_commands"; then 22225 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 22226fi 22227 22228cat >>$CONFIG_STATUS <<\_ACEOF 22229 22230ac_cs_usage="\ 22231\`$as_me' instantiates files from templates according to the 22232current configuration. 22233 22234Usage: $0 [OPTIONS] [FILE]... 22235 22236 -h, --help print this help, then exit 22237 -V, --version print version number, then exit 22238 -q, --quiet do not print progress messages 22239 -d, --debug don't remove temporary files 22240 --recheck update $as_me by reconfiguring in the same conditions 22241 --file=FILE[:TEMPLATE] 22242 instantiate the configuration file FILE 22243 --header=FILE[:TEMPLATE] 22244 instantiate the configuration header FILE 22245 22246Configuration files: 22247$config_files 22248 22249Configuration headers: 22250$config_headers 22251 22252Configuration commands: 22253$config_commands 22254 22255Report bugs to <bug-autoconf@gnu.org>." 22256_ACEOF 22257 22258cat >>$CONFIG_STATUS <<_ACEOF 22259ac_cs_version="\\ 22260[LLVM] config.status [1.1] 22261configured by $0, generated by GNU Autoconf 2.57, 22262 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 22263 22264Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 22265Free Software Foundation, Inc. 22266This config.status script is free software; the Free Software Foundation 22267gives unlimited permission to copy, distribute and modify it." 22268srcdir=$srcdir 22269INSTALL="$INSTALL" 22270_ACEOF 22271 22272cat >>$CONFIG_STATUS <<\_ACEOF 22273# If no file are specified by the user, then we need to provide default 22274# value. By we need to know if files were specified by the user. 22275ac_need_defaults=: 22276while test $# != 0 22277do 22278 case $1 in 22279 --*=*) 22280 ac_option=`expr "x$1" : 'x\([^=]*\)='` 22281 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 22282 ac_shift=: 22283 ;; 22284 -*) 22285 ac_option=$1 22286 ac_optarg=$2 22287 ac_shift=shift 22288 ;; 22289 *) # This is not an option, so the user has probably given explicit 22290 # arguments. 22291 ac_option=$1 22292 ac_need_defaults=false;; 22293 esac 22294 22295 case $ac_option in 22296 # Handling of the options. 22297_ACEOF 22298cat >>$CONFIG_STATUS <<\_ACEOF 22299 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 22300 ac_cs_recheck=: ;; 22301 --version | --vers* | -V ) 22302 echo "$ac_cs_version"; exit 0 ;; 22303 --he | --h) 22304 # Conflict between --help and --header 22305 { { echo "$as_me:$LINENO: error: ambiguous option: $1 22306Try \`$0 --help' for more information." >&5 22307echo "$as_me: error: ambiguous option: $1 22308Try \`$0 --help' for more information." >&2;} 22309 { (exit 1); exit 1; }; };; 22310 --help | --hel | -h ) 22311 echo "$ac_cs_usage"; exit 0 ;; 22312 --debug | --d* | -d ) 22313 debug=: ;; 22314 --file | --fil | --fi | --f ) 22315 $ac_shift 22316 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 22317 ac_need_defaults=false;; 22318 --header | --heade | --head | --hea ) 22319 $ac_shift 22320 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 22321 ac_need_defaults=false;; 22322 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 22323 | -silent | --silent | --silen | --sile | --sil | --si | --s) 22324 ac_cs_silent=: ;; 22325 22326 # This is an error. 22327 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 22328Try \`$0 --help' for more information." >&5 22329echo "$as_me: error: unrecognized option: $1 22330Try \`$0 --help' for more information." >&2;} 22331 { (exit 1); exit 1; }; } ;; 22332 22333 *) ac_config_targets="$ac_config_targets $1" ;; 22334 22335 esac 22336 shift 22337done 22338 22339ac_configure_extra_args= 22340 22341if $ac_cs_silent; then 22342 exec 6>/dev/null 22343 ac_configure_extra_args="$ac_configure_extra_args --silent" 22344fi 22345 22346_ACEOF 22347cat >>$CONFIG_STATUS <<_ACEOF 22348if \$ac_cs_recheck; then 22349 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 22350 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 22351fi 22352 22353_ACEOF 22354 22355cat >>$CONFIG_STATUS <<_ACEOF 22356# 22357# INIT-COMMANDS section. 22358# 22359 22360${srcdir}/autoconf/mkinstalldirs `dirname Makefile` 22361${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common` 22362${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile` 22363${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile` 22364${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile` 22365${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests` 22366${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py` 22367${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py` 22368${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile` 22369${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs` 22370${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile` 22371${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report` 22372${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report` 22373${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report` 22374${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile` 22375${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile` 22376${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile` 22377${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile` 22378${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report` 22379${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile` 22380${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report` 22381${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile` 22382${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot` 22383${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile` 22384${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile` 22385${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile` 22386${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec` 22387${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile` 22388${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc` 22389${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in` 22390${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile` 22391${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in` 22392${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile` 22393${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in` 22394${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile` 22395${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in` 22396${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile` 22397${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in` 22398${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile` 22399${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in` 22400${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile` 22401${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in` 22402${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile` 22403${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc` 22404${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile` 22405${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile` 22406${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile` 22407 22408_ACEOF 22409 22410 22411 22412cat >>$CONFIG_STATUS <<\_ACEOF 22413for ac_config_target in $ac_config_targets 22414do 22415 case "$ac_config_target" in 22416 # Handling of arguments. 22417 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; 22418 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; 22419 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; 22420 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; 22421 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; 22422 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; 22423 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; 22424 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;; 22425 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;; 22426 "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;; 22427 "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;; 22428 "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;; 22429 "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;; 22430 "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;; 22431 "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;; 22432 "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;; 22433 "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;; 22434 "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;; 22435 "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;; 22436 "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;; 22437 "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;; 22438 "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;; 22439 "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;; 22440 "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;; 22441 "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;; 22442 "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;; 22443 "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;; 22444 "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;; 22445 "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;; 22446 "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;; 22447 "test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ;; 22448 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ;; 22449 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ;; 22450 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ;; 22451 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ;; 22452 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ;; 22453 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ;; 22454 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ;; 22455 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ;; 22456 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ;; 22457 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ;; 22458 "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ;; 22459 "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ;; 22460 "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;; 22461 "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;; 22462 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; 22463 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; 22464 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; 22465 "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;; 22466 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 22467echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 22468 { (exit 1); exit 1; }; };; 22469 esac 22470done 22471 22472# If the user did not use the arguments to specify the items to instantiate, 22473# then the envvar interface is used. Set only those that are not. 22474# We use the long form for the default assignment because of an extremely 22475# bizarre bug on SunOS 4.1.3. 22476if $ac_need_defaults; then 22477 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 22478 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 22479 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 22480fi 22481 22482# Have a temporary directory for convenience. Make it in the build tree 22483# simply because there is no reason to put it here, and in addition, 22484# creating and moving files from /tmp can sometimes cause problems. 22485# Create a temporary directory, and hook for its removal unless debugging. 22486$debug || 22487{ 22488 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 22489 trap '{ (exit 1); exit 1; }' 1 2 13 15 22490} 22491 22492# Create a (secure) tmp directory for tmp files. 22493 22494{ 22495 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 22496 test -n "$tmp" && test -d "$tmp" 22497} || 22498{ 22499 tmp=./confstat$$-$RANDOM 22500 (umask 077 && mkdir $tmp) 22501} || 22502{ 22503 echo "$me: cannot create a temporary directory in ." >&2 22504 { (exit 1); exit 1; } 22505} 22506 22507_ACEOF 22508 22509cat >>$CONFIG_STATUS <<_ACEOF 22510 22511# 22512# CONFIG_FILES section. 22513# 22514 22515# No need to generate the scripts if there are no CONFIG_FILES. 22516# This happens for instance when ./config.status config.h 22517if test -n "\$CONFIG_FILES"; then 22518 # Protect against being on the right side of a sed subst in config.status. 22519 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 22520 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 22521s,@SHELL@,$SHELL,;t t 22522s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 22523s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 22524s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 22525s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 22526s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 22527s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 22528s,@exec_prefix@,$exec_prefix,;t t 22529s,@prefix@,$prefix,;t t 22530s,@program_transform_name@,$program_transform_name,;t t 22531s,@bindir@,$bindir,;t t 22532s,@sbindir@,$sbindir,;t t 22533s,@libexecdir@,$libexecdir,;t t 22534s,@datadir@,$datadir,;t t 22535s,@sysconfdir@,$sysconfdir,;t t 22536s,@sharedstatedir@,$sharedstatedir,;t t 22537s,@localstatedir@,$localstatedir,;t t 22538s,@libdir@,$libdir,;t t 22539s,@includedir@,$includedir,;t t 22540s,@oldincludedir@,$oldincludedir,;t t 22541s,@infodir@,$infodir,;t t 22542s,@mandir@,$mandir,;t t 22543s,@build_alias@,$build_alias,;t t 22544s,@host_alias@,$host_alias,;t t 22545s,@target_alias@,$target_alias,;t t 22546s,@DEFS@,$DEFS,;t t 22547s,@ECHO_C@,$ECHO_C,;t t 22548s,@ECHO_N@,$ECHO_N,;t t 22549s,@ECHO_T@,$ECHO_T,;t t 22550s,@LIBS@,$LIBS,;t t 22551s,@subdirs@,$subdirs,;t t 22552s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 22553s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 22554s,@INSTALL_DATA@,$INSTALL_DATA,;t t 22555s,@build@,$build,;t t 22556s,@build_cpu@,$build_cpu,;t t 22557s,@build_vendor@,$build_vendor,;t t 22558s,@build_os@,$build_os,;t t 22559s,@host@,$host,;t t 22560s,@host_cpu@,$host_cpu,;t t 22561s,@host_vendor@,$host_vendor,;t t 22562s,@host_os@,$host_os,;t t 22563s,@target@,$target,;t t 22564s,@target_cpu@,$target_cpu,;t t 22565s,@target_vendor@,$target_vendor,;t t 22566s,@target_os@,$target_os,;t t 22567s,@OS@,$OS,;t t 22568s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t 22569s,@ARCH@,$ARCH,;t t 22570s,@CXX@,$CXX,;t t 22571s,@CXXFLAGS@,$CXXFLAGS,;t t 22572s,@LDFLAGS@,$LDFLAGS,;t t 22573s,@CPPFLAGS@,$CPPFLAGS,;t t 22574s,@ac_ct_CXX@,$ac_ct_CXX,;t t 22575s,@EXEEXT@,$EXEEXT,;t t 22576s,@OBJEXT@,$OBJEXT,;t t 22577s,@CC@,$CC,;t t 22578s,@CFLAGS@,$CFLAGS,;t t 22579s,@ac_ct_CC@,$ac_ct_CC,;t t 22580s,@CPP@,$CPP,;t t 22581s,@ifGNUmake@,$ifGNUmake,;t t 22582s,@LEX@,$LEX,;t t 22583s,@LEXLIB@,$LEXLIB,;t t 22584s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t 22585s,@YACC@,$YACC,;t t 22586s,@BISON@,$BISON,;t t 22587s,@EGREP@,$EGREP,;t t 22588s,@LN_S@,$LN_S,;t t 22589s,@ECHO@,$ECHO,;t t 22590s,@AR@,$AR,;t t 22591s,@ac_ct_AR@,$ac_ct_AR,;t t 22592s,@RANLIB@,$RANLIB,;t t 22593s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 22594s,@STRIP@,$STRIP,;t t 22595s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 22596s,@CXXCPP@,$CXXCPP,;t t 22597s,@F77@,$F77,;t t 22598s,@FFLAGS@,$FFLAGS,;t t 22599s,@ac_ct_F77@,$ac_ct_F77,;t t 22600s,@LIBTOOL@,$LIBTOOL,;t t 22601s,@DOT@,$DOT,;t t 22602s,@ETAGS@,$ETAGS,;t t 22603s,@PYTHON@,$PYTHON,;t t 22604s,@QMTEST@,$QMTEST,;t t 22605s,@ALLOCA@,$ALLOCA,;t t 22606s,@MMAP_FILE@,$MMAP_FILE,;t t 22607s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t 22608s,@SPEC_ROOT@,$SPEC_ROOT,;t t 22609s,@USE_SPEC@,$USE_SPEC,;t t 22610s,@UPB@,$UPB,;t t 22611s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t 22612s,@JIT@,$JIT,;t t 22613s,@BCR@,$BCR,;t t 22614s,@PAPIDIR@,$PAPIDIR,;t t 22615s,@LIBOBJS@,$LIBOBJS,;t t 22616s,@LTLIBOBJS@,$LTLIBOBJS,;t t 22617CEOF 22618 22619_ACEOF 22620 22621 cat >>$CONFIG_STATUS <<\_ACEOF 22622 # Split the substitutions into bite-sized pieces for seds with 22623 # small command number limits, like on Digital OSF/1 and HP-UX. 22624 ac_max_sed_lines=48 22625 ac_sed_frag=1 # Number of current file. 22626 ac_beg=1 # First line for current file. 22627 ac_end=$ac_max_sed_lines # Line after last line for current file. 22628 ac_more_lines=: 22629 ac_sed_cmds= 22630 while $ac_more_lines; do 22631 if test $ac_beg -gt 1; then 22632 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 22633 else 22634 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 22635 fi 22636 if test ! -s $tmp/subs.frag; then 22637 ac_more_lines=false 22638 else 22639 # The purpose of the label and of the branching condition is to 22640 # speed up the sed processing (if there are no `@' at all, there 22641 # is no need to browse any of the substitutions). 22642 # These are the two extra sed commands mentioned above. 22643 (echo ':t 22644 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 22645 if test -z "$ac_sed_cmds"; then 22646 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 22647 else 22648 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 22649 fi 22650 ac_sed_frag=`expr $ac_sed_frag + 1` 22651 ac_beg=$ac_end 22652 ac_end=`expr $ac_end + $ac_max_sed_lines` 22653 fi 22654 done 22655 if test -z "$ac_sed_cmds"; then 22656 ac_sed_cmds=cat 22657 fi 22658fi # test -n "$CONFIG_FILES" 22659 22660_ACEOF 22661cat >>$CONFIG_STATUS <<\_ACEOF 22662for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 22663 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 22664 case $ac_file in 22665 - | *:- | *:-:* ) # input from stdin 22666 cat >$tmp/stdin 22667 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 22668 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 22669 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 22670 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 22671 * ) ac_file_in=$ac_file.in ;; 22672 esac 22673 22674 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 22675 ac_dir=`(dirname "$ac_file") 2>/dev/null || 22676$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22677 X"$ac_file" : 'X\(//\)[^/]' \| \ 22678 X"$ac_file" : 'X\(//\)$' \| \ 22679 X"$ac_file" : 'X\(/\)' \| \ 22680 . : '\(.\)' 2>/dev/null || 22681echo X"$ac_file" | 22682 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22683 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22684 /^X\(\/\/\)$/{ s//\1/; q; } 22685 /^X\(\/\).*/{ s//\1/; q; } 22686 s/.*/./; q'` 22687 { if $as_mkdir_p; then 22688 mkdir -p "$ac_dir" 22689 else 22690 as_dir="$ac_dir" 22691 as_dirs= 22692 while test ! -d "$as_dir"; do 22693 as_dirs="$as_dir $as_dirs" 22694 as_dir=`(dirname "$as_dir") 2>/dev/null || 22695$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22696 X"$as_dir" : 'X\(//\)[^/]' \| \ 22697 X"$as_dir" : 'X\(//\)$' \| \ 22698 X"$as_dir" : 'X\(/\)' \| \ 22699 . : '\(.\)' 2>/dev/null || 22700echo X"$as_dir" | 22701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22702 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22703 /^X\(\/\/\)$/{ s//\1/; q; } 22704 /^X\(\/\).*/{ s//\1/; q; } 22705 s/.*/./; q'` 22706 done 22707 test ! -n "$as_dirs" || mkdir $as_dirs 22708 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 22709echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 22710 { (exit 1); exit 1; }; }; } 22711 22712 ac_builddir=. 22713 22714if test "$ac_dir" != .; then 22715 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 22716 # A "../" for each directory in $ac_dir_suffix. 22717 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 22718else 22719 ac_dir_suffix= ac_top_builddir= 22720fi 22721 22722case $srcdir in 22723 .) # No --srcdir option. We are building in place. 22724 ac_srcdir=. 22725 if test -z "$ac_top_builddir"; then 22726 ac_top_srcdir=. 22727 else 22728 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 22729 fi ;; 22730 [\\/]* | ?:[\\/]* ) # Absolute path. 22731 ac_srcdir=$srcdir$ac_dir_suffix; 22732 ac_top_srcdir=$srcdir ;; 22733 *) # Relative path. 22734 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 22735 ac_top_srcdir=$ac_top_builddir$srcdir ;; 22736esac 22737# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 22738# absolute. 22739ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 22740ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` 22741ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 22742ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 22743 22744 22745 case $INSTALL in 22746 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22747 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 22748 esac 22749 22750 if test x"$ac_file" != x-; then 22751 { echo "$as_me:$LINENO: creating $ac_file" >&5 22752echo "$as_me: creating $ac_file" >&6;} 22753 rm -f "$ac_file" 22754 fi 22755 # Let's still pretend it is `configure' which instantiates (i.e., don't 22756 # use $as_me), people would be surprised to read: 22757 # /* config.h. Generated by config.status. */ 22758 if test x"$ac_file" = x-; then 22759 configure_input= 22760 else 22761 configure_input="$ac_file. " 22762 fi 22763 configure_input=$configure_input"Generated from `echo $ac_file_in | 22764 sed 's,.*/,,'` by configure." 22765 22766 # First look for the input files in the build tree, otherwise in the 22767 # src tree. 22768 ac_file_inputs=`IFS=: 22769 for f in $ac_file_in; do 22770 case $f in 22771 -) echo $tmp/stdin ;; 22772 [\\/$]*) 22773 # Absolute (can't be DOS-style, as IFS=:) 22774 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 22775echo "$as_me: error: cannot find input file: $f" >&2;} 22776 { (exit 1); exit 1; }; } 22777 echo $f;; 22778 *) # Relative 22779 if test -f "$f"; then 22780 # Build tree 22781 echo $f 22782 elif test -f "$srcdir/$f"; then 22783 # Source tree 22784 echo $srcdir/$f 22785 else 22786 # /dev/null tree 22787 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 22788echo "$as_me: error: cannot find input file: $f" >&2;} 22789 { (exit 1); exit 1; }; } 22790 fi;; 22791 esac 22792 done` || { (exit 1); exit 1; } 22793_ACEOF 22794cat >>$CONFIG_STATUS <<_ACEOF 22795 sed "$ac_vpsub 22796$extrasub 22797_ACEOF 22798cat >>$CONFIG_STATUS <<\_ACEOF 22799:t 22800/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22801s,@configure_input@,$configure_input,;t t 22802s,@srcdir@,$ac_srcdir,;t t 22803s,@abs_srcdir@,$ac_abs_srcdir,;t t 22804s,@top_srcdir@,$ac_top_srcdir,;t t 22805s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 22806s,@builddir@,$ac_builddir,;t t 22807s,@abs_builddir@,$ac_abs_builddir,;t t 22808s,@top_builddir@,$ac_top_builddir,;t t 22809s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 22810s,@INSTALL@,$ac_INSTALL,;t t 22811" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 22812 rm -f $tmp/stdin 22813 if test x"$ac_file" != x-; then 22814 mv $tmp/out $ac_file 22815 else 22816 cat $tmp/out 22817 rm -f $tmp/out 22818 fi 22819 22820done 22821_ACEOF 22822cat >>$CONFIG_STATUS <<\_ACEOF 22823 22824# 22825# CONFIG_HEADER section. 22826# 22827 22828# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 22829# NAME is the cpp macro being defined and VALUE is the value it is being given. 22830# 22831# ac_d sets the value in "#define NAME VALUE" lines. 22832ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 22833ac_dB='[ ].*$,\1#\2' 22834ac_dC=' ' 22835ac_dD=',;t' 22836# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 22837ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 22838ac_uB='$,\1#\2define\3' 22839ac_uC=' ' 22840ac_uD=',;t' 22841 22842for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 22843 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 22844 case $ac_file in 22845 - | *:- | *:-:* ) # input from stdin 22846 cat >$tmp/stdin 22847 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 22848 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 22849 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 22850 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 22851 * ) ac_file_in=$ac_file.in ;; 22852 esac 22853 22854 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 22855echo "$as_me: creating $ac_file" >&6;} 22856 22857 # First look for the input files in the build tree, otherwise in the 22858 # src tree. 22859 ac_file_inputs=`IFS=: 22860 for f in $ac_file_in; do 22861 case $f in 22862 -) echo $tmp/stdin ;; 22863 [\\/$]*) 22864 # Absolute (can't be DOS-style, as IFS=:) 22865 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 22866echo "$as_me: error: cannot find input file: $f" >&2;} 22867 { (exit 1); exit 1; }; } 22868 echo $f;; 22869 *) # Relative 22870 if test -f "$f"; then 22871 # Build tree 22872 echo $f 22873 elif test -f "$srcdir/$f"; then 22874 # Source tree 22875 echo $srcdir/$f 22876 else 22877 # /dev/null tree 22878 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 22879echo "$as_me: error: cannot find input file: $f" >&2;} 22880 { (exit 1); exit 1; }; } 22881 fi;; 22882 esac 22883 done` || { (exit 1); exit 1; } 22884 # Remove the trailing spaces. 22885 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 22886 22887_ACEOF 22888 22889# Transform confdefs.h into two sed scripts, `conftest.defines' and 22890# `conftest.undefs', that substitutes the proper values into 22891# config.h.in to produce config.h. The first handles `#define' 22892# templates, and the second `#undef' templates. 22893# And first: Protect against being on the right side of a sed subst in 22894# config.status. Protect against being in an unquoted here document 22895# in config.status. 22896rm -f conftest.defines conftest.undefs 22897# Using a here document instead of a string reduces the quoting nightmare. 22898# Putting comments in sed scripts is not portable. 22899# 22900# `end' is used to avoid that the second main sed command (meant for 22901# 0-ary CPP macros) applies to n-ary macro definitions. 22902# See the Autoconf documentation for `clear'. 22903cat >confdef2sed.sed <<\_ACEOF 22904s/[\\&,]/\\&/g 22905s,[\\$`],\\&,g 22906t clear 22907: clear 22908s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 22909t end 22910s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 22911: end 22912_ACEOF 22913# If some macros were called several times there might be several times 22914# the same #defines, which is useless. Nevertheless, we may not want to 22915# sort them, since we want the *last* AC-DEFINE to be honored. 22916uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 22917sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 22918rm -f confdef2sed.sed 22919 22920# This sed command replaces #undef with comments. This is necessary, for 22921# example, in the case of _POSIX_SOURCE, which is predefined and required 22922# on some systems where configure will not decide to define it. 22923cat >>conftest.undefs <<\_ACEOF 22924s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 22925_ACEOF 22926 22927# Break up conftest.defines because some shells have a limit on the size 22928# of here documents, and old seds have small limits too (100 cmds). 22929echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 22930echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 22931echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 22932echo ' :' >>$CONFIG_STATUS 22933rm -f conftest.tail 22934while grep . conftest.defines >/dev/null 22935do 22936 # Write a limited-size here document to $tmp/defines.sed. 22937 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 22938 # Speed up: don't consider the non `#define' lines. 22939 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 22940 # Work around the forget-to-reset-the-flag bug. 22941 echo 't clr' >>$CONFIG_STATUS 22942 echo ': clr' >>$CONFIG_STATUS 22943 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 22944 echo 'CEOF 22945 sed -f $tmp/defines.sed $tmp/in >$tmp/out 22946 rm -f $tmp/in 22947 mv $tmp/out $tmp/in 22948' >>$CONFIG_STATUS 22949 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 22950 rm -f conftest.defines 22951 mv conftest.tail conftest.defines 22952done 22953rm -f conftest.defines 22954echo ' fi # grep' >>$CONFIG_STATUS 22955echo >>$CONFIG_STATUS 22956 22957# Break up conftest.undefs because some shells have a limit on the size 22958# of here documents, and old seds have small limits too (100 cmds). 22959echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 22960rm -f conftest.tail 22961while grep . conftest.undefs >/dev/null 22962do 22963 # Write a limited-size here document to $tmp/undefs.sed. 22964 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 22965 # Speed up: don't consider the non `#undef' 22966 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 22967 # Work around the forget-to-reset-the-flag bug. 22968 echo 't clr' >>$CONFIG_STATUS 22969 echo ': clr' >>$CONFIG_STATUS 22970 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 22971 echo 'CEOF 22972 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 22973 rm -f $tmp/in 22974 mv $tmp/out $tmp/in 22975' >>$CONFIG_STATUS 22976 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 22977 rm -f conftest.undefs 22978 mv conftest.tail conftest.undefs 22979done 22980rm -f conftest.undefs 22981 22982cat >>$CONFIG_STATUS <<\_ACEOF 22983 # Let's still pretend it is `configure' which instantiates (i.e., don't 22984 # use $as_me), people would be surprised to read: 22985 # /* config.h. Generated by config.status. */ 22986 if test x"$ac_file" = x-; then 22987 echo "/* Generated by configure. */" >$tmp/config.h 22988 else 22989 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 22990 fi 22991 cat $tmp/in >>$tmp/config.h 22992 rm -f $tmp/in 22993 if test x"$ac_file" != x-; then 22994 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 22995 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 22996echo "$as_me: $ac_file is unchanged" >&6;} 22997 else 22998 ac_dir=`(dirname "$ac_file") 2>/dev/null || 22999$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23000 X"$ac_file" : 'X\(//\)[^/]' \| \ 23001 X"$ac_file" : 'X\(//\)$' \| \ 23002 X"$ac_file" : 'X\(/\)' \| \ 23003 . : '\(.\)' 2>/dev/null || 23004echo X"$ac_file" | 23005 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23006 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23007 /^X\(\/\/\)$/{ s//\1/; q; } 23008 /^X\(\/\).*/{ s//\1/; q; } 23009 s/.*/./; q'` 23010 { if $as_mkdir_p; then 23011 mkdir -p "$ac_dir" 23012 else 23013 as_dir="$ac_dir" 23014 as_dirs= 23015 while test ! -d "$as_dir"; do 23016 as_dirs="$as_dir $as_dirs" 23017 as_dir=`(dirname "$as_dir") 2>/dev/null || 23018$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23019 X"$as_dir" : 'X\(//\)[^/]' \| \ 23020 X"$as_dir" : 'X\(//\)$' \| \ 23021 X"$as_dir" : 'X\(/\)' \| \ 23022 . : '\(.\)' 2>/dev/null || 23023echo X"$as_dir" | 23024 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23025 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23026 /^X\(\/\/\)$/{ s//\1/; q; } 23027 /^X\(\/\).*/{ s//\1/; q; } 23028 s/.*/./; q'` 23029 done 23030 test ! -n "$as_dirs" || mkdir $as_dirs 23031 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 23032echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 23033 { (exit 1); exit 1; }; }; } 23034 23035 rm -f $ac_file 23036 mv $tmp/config.h $ac_file 23037 fi 23038 else 23039 cat $tmp/config.h 23040 rm -f $tmp/config.h 23041 fi 23042done 23043_ACEOF 23044cat >>$CONFIG_STATUS <<\_ACEOF 23045 23046# 23047# CONFIG_COMMANDS section. 23048# 23049for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 23050 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 23051 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 23052 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 23053$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23054 X"$ac_dest" : 'X\(//\)[^/]' \| \ 23055 X"$ac_dest" : 'X\(//\)$' \| \ 23056 X"$ac_dest" : 'X\(/\)' \| \ 23057 . : '\(.\)' 2>/dev/null || 23058echo X"$ac_dest" | 23059 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23060 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23061 /^X\(\/\/\)$/{ s//\1/; q; } 23062 /^X\(\/\).*/{ s//\1/; q; } 23063 s/.*/./; q'` 23064 ac_builddir=. 23065 23066if test "$ac_dir" != .; then 23067 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 23068 # A "../" for each directory in $ac_dir_suffix. 23069 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 23070else 23071 ac_dir_suffix= ac_top_builddir= 23072fi 23073 23074case $srcdir in 23075 .) # No --srcdir option. We are building in place. 23076 ac_srcdir=. 23077 if test -z "$ac_top_builddir"; then 23078 ac_top_srcdir=. 23079 else 23080 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 23081 fi ;; 23082 [\\/]* | ?:[\\/]* ) # Absolute path. 23083 ac_srcdir=$srcdir$ac_dir_suffix; 23084 ac_top_srcdir=$srcdir ;; 23085 *) # Relative path. 23086 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 23087 ac_top_srcdir=$ac_top_builddir$srcdir ;; 23088esac 23089# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 23090# absolute. 23091ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 23092ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` 23093ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 23094ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 23095 23096 23097 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 23098echo "$as_me: executing $ac_dest commands" >&6;} 23099 case $ac_dest in 23100 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;; 23101 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;; 23102 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;; 23103 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;; 23104 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;; 23105 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;; 23106 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;; 23107 test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;; 23108 test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;; 23109 test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;; 23110 test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;; 23111 test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;; 23112 test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;; 23113 test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;; 23114 test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;; 23115 test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;; 23116 test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;; 23117 test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;; 23118 test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;; 23119 test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;; 23120 test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;; 23121 test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;; 23122 test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;; 23123 test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;; 23124 test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;; 23125 test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;; 23126 test/Programs/External/SPEC/Makefile.spec ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile.spec test/Programs/External/SPEC/Makefile.spec ;; 23127 test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;; 23128 test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;; 23129 test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in ;; 23130 test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile ;; 23131 test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in ;; 23132 test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile ;; 23133 test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in ;; 23134 test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile ;; 23135 test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in ;; 23136 test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile ;; 23137 test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in ;; 23138 test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile ;; 23139 test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in ;; 23140 test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile ;; 23141 test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in ;; 23142 test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;; 23143 test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;; 23144 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;; 23145 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;; 23146 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;; 23147 esac 23148done 23149_ACEOF 23150 23151cat >>$CONFIG_STATUS <<\_ACEOF 23152 23153{ (exit 0); exit 0; } 23154_ACEOF 23155chmod +x $CONFIG_STATUS 23156ac_clean_files=$ac_clean_files_save 23157 23158 23159# configure is writing to config.log, and then calls config.status. 23160# config.status does its own redirection, appending to config.log. 23161# Unfortunately, on DOS this fails, as config.log is still kept open 23162# by configure, so config.status won't be able to write to it; its 23163# output is simply discarded. So we exec the FD to /dev/null, 23164# effectively closing config.log, so it can be properly (re)opened and 23165# appended to by config.status. When coming back to configure, we 23166# need to make the FD available again. 23167if test "$no_create" != yes; then 23168 ac_cs_success=: 23169 ac_config_status_args= 23170 test "$silent" = yes && 23171 ac_config_status_args="$ac_config_status_args --quiet" 23172 exec 5>/dev/null 23173 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23174 exec 5>>config.log 23175 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23176 # would make configure fail if this is the last instruction. 23177 $ac_cs_success || { (exit 1); exit 1; } 23178fi 23179 23180# 23181# CONFIG_SUBDIRS section. 23182# 23183if test "$no_recursion" != yes; then 23184 23185 # Remove --cache-file and --srcdir arguments so they do not pile up. 23186 ac_sub_configure_args= 23187 ac_prev= 23188 for ac_arg in $ac_configure_args; do 23189 if test -n "$ac_prev"; then 23190 ac_prev= 23191 continue 23192 fi 23193 case $ac_arg in 23194 -cache-file | --cache-file | --cache-fil | --cache-fi \ 23195 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 23196 ac_prev=cache_file ;; 23197 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 23198 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 23199 | --c=*) 23200 ;; 23201 --config-cache | -C) 23202 ;; 23203 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 23204 ac_prev=srcdir ;; 23205 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 23206 ;; 23207 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 23208 ac_prev=prefix ;; 23209 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 23210 ;; 23211 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; 23212 esac 23213 done 23214 23215 # Always prepend --prefix to ensure using the same prefix 23216 # in subdir configurations. 23217 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" 23218 23219 ac_popdir=`pwd` 23220 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 23221 23222 # Do not complain, so a configure script can configure whichever 23223 # parts of a large source tree are present. 23224 test -d $srcdir/$ac_dir || continue 23225 23226 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 23227echo "$as_me: configuring in $ac_dir" >&6;} 23228 { if $as_mkdir_p; then 23229 mkdir -p "$ac_dir" 23230 else 23231 as_dir="$ac_dir" 23232 as_dirs= 23233 while test ! -d "$as_dir"; do 23234 as_dirs="$as_dir $as_dirs" 23235 as_dir=`(dirname "$as_dir") 2>/dev/null || 23236$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23237 X"$as_dir" : 'X\(//\)[^/]' \| \ 23238 X"$as_dir" : 'X\(//\)$' \| \ 23239 X"$as_dir" : 'X\(/\)' \| \ 23240 . : '\(.\)' 2>/dev/null || 23241echo X"$as_dir" | 23242 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23243 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23244 /^X\(\/\/\)$/{ s//\1/; q; } 23245 /^X\(\/\).*/{ s//\1/; q; } 23246 s/.*/./; q'` 23247 done 23248 test ! -n "$as_dirs" || mkdir $as_dirs 23249 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 23250echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 23251 { (exit 1); exit 1; }; }; } 23252 23253 ac_builddir=. 23254 23255if test "$ac_dir" != .; then 23256 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 23257 # A "../" for each directory in $ac_dir_suffix. 23258 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 23259else 23260 ac_dir_suffix= ac_top_builddir= 23261fi 23262 23263case $srcdir in 23264 .) # No --srcdir option. We are building in place. 23265 ac_srcdir=. 23266 if test -z "$ac_top_builddir"; then 23267 ac_top_srcdir=. 23268 else 23269 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 23270 fi ;; 23271 [\\/]* | ?:[\\/]* ) # Absolute path. 23272 ac_srcdir=$srcdir$ac_dir_suffix; 23273 ac_top_srcdir=$srcdir ;; 23274 *) # Relative path. 23275 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 23276 ac_top_srcdir=$ac_top_builddir$srcdir ;; 23277esac 23278# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 23279# absolute. 23280ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 23281ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` 23282ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 23283ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 23284 23285 23286 cd $ac_dir 23287 23288 # Check for guested configure; otherwise get Cygnus style configure. 23289 if test -f $ac_srcdir/configure.gnu; then 23290 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" 23291 elif test -f $ac_srcdir/configure; then 23292 ac_sub_configure="$SHELL '$ac_srcdir/configure'" 23293 elif test -f $ac_srcdir/configure.in; then 23294 ac_sub_configure=$ac_configure 23295 else 23296 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 23297echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 23298 ac_sub_configure= 23299 fi 23300 23301 # The recursion is here. 23302 if test -n "$ac_sub_configure"; then 23303 # Make the cache file name correct relative to the subdirectory. 23304 case $cache_file in 23305 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 23306 *) # Relative path. 23307 ac_sub_cache_file=$ac_top_builddir$cache_file ;; 23308 esac 23309 23310 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 23311echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 23312 # The eval makes quoting arguments work. 23313 eval $ac_sub_configure $ac_sub_configure_args \ 23314 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || 23315 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 23316echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} 23317 { (exit 1); exit 1; }; } 23318 fi 23319 23320 cd $ac_popdir 23321 done 23322fi 23323 23324 23325if test $llvmgccwarn = yes 23326then 23327 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5 23328echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;} 23329 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5 23330echo "$as_me: WARNING: ***** appear to be working." >&2;} 23331 { echo "$as_me:$LINENO: WARNING: ***** " >&5 23332echo "$as_me: WARNING: ***** " >&2;} 23333 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5 23334echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;} 23335 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5 23336echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;} 23337 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5 23338echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;} 23339fi 23340